base.js.下载 2.5 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826
  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. Copyright Google LLC
  7. SPDX-License-Identifier: Apache-2.0
  8. */
  9. /*
  10. Copyright Google LLC All Rights Reserved.
  11. Use of this source code is governed by an MIT-style license that can be
  12. found in the LICENSE file at https://angular.dev/license
  13. */
  14. /*
  15. (The MIT License)
  16. Copyright (C) 2014 by Vitaly Puzrin
  17. Permission is hereby granted, free of charge, to any person obtaining a copy
  18. of this software and associated documentation files (the "Software"), to deal
  19. in the Software without restriction, including without limitation the rights
  20. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  21. copies of the Software, and to permit persons to whom the Software is
  22. furnished to do so, subject to the following conditions:
  23. The above copyright notice and this permission notice shall be included in
  24. all copies or substantial portions of the Software.
  25. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  26. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  27. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  28. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  29. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  30. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  31. THE SOFTWARE.
  32. -----------------------------------------------------------------------------
  33. Ported from zlib, which is under the following license
  34. https://github.com/madler/zlib/blob/master/zlib.h
  35. zlib.h -- interface of the 'zlib' general purpose compression library
  36. version 1.2.8, April 28th, 2013
  37. Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
  38. This software is provided 'as-is', without any express or implied
  39. warranty. In no event will the authors be held liable for any damages
  40. arising from the use of this software.
  41. Permission is granted to anyone to use this software for any purpose,
  42. including commercial applications, and to alter it and redistribute it
  43. freely, subject to the following restrictions:
  44. 1. The origin of this software must not be misrepresented; you must not
  45. claim that you wrote the original software. If you use this software
  46. in a product, an acknowledgment in the product documentation would be
  47. appreciated but is not required.
  48. 2. Altered source versions must be plainly marked as such, and must not be
  49. misrepresented as being the original software.
  50. 3. This notice may not be removed or altered from any source distribution.
  51. Jean-loup Gailly Mark Adler
  52. [email protected] [email protected]
  53. The data format used by the zlib library is described by RFCs (Request for
  54. Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950
  55. (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
  56. */
  57. /*
  58. The MIT License (MIT)
  59. Copyright (c) 2015-present Dan Abramov
  60. Permission is hereby granted, free of charge, to any person obtaining a copy
  61. of this software and associated documentation files (the "Software"), to deal
  62. in the Software without restriction, including without limitation the rights
  63. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  64. copies of the Software, and to permit persons to whom the Software is
  65. furnished to do so, subject to the following conditions:
  66. The above copyright notice and this permission notice shall be included in all
  67. copies or substantial portions of the Software.
  68. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  69. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  70. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  71. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  72. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  73. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  74. SOFTWARE.
  75. */
  76. 'use strict';var X='split;length;G;U;startsWith;set;hE;/videoplayback;r;Hl;signatureCipher;get;prototype;unshift;;n;pop;1970-01-01T07:45:05.000+07:45;path;1;s;http://local;,""/;j;undefined;mn;slice;cmo;/;url;redirector.googlevideo.com;a1.googlevideo.com;scheme;push;join;splice;rr;/api/manifest;1970-01-01T05:30:30.000+05:30;oG;youtube.player.web_20250721_08_RC00;T;fromCharCode;clone;indexOf;assign;Ra;,;1970-01-01T10:15:08.000+10:15;&;index.m3u8;=;/initplayback;:;cmo=;1970-01-01T11:15:39.000+11:15;cmo=pf;forEach;,}"()}(;://;Ei;\\.a1\\.googlevideo\\.com$;/file/index.m3u8;\\.googlevideo\\.com$;match;fallback_count;replace;%3D;https://local;0;cmo=td;sp;local;//;fvip;cL;toString;Untrusted URL;---;file;reverse;?;1969-12-31T21:00:02.000-03:00;rr?[1-9].*\\.c\\.youtube\\.com$;playerfallback;1970-01-01T00:59:56.000+01:00;XR;pow;www.youtube.com;w18PggyGkZgw54BvOH-_w8_;throw'.split(";"),
  77. dI,q6_,TI1,gI,Y62,UHn,yf,bND,hY,Xg1,Hg,Qf,MH,cg,JY7,sQn,k2,Pg,$HN,Wg,g2f,u_,DX,Fjf,fN,z7,i_,mj,l_,NIf,vg,Yc,RnY,yYX,hnD,Nx,HNg,QQY,xc,MDf,cYH,HR,jQ7,aXQ,LB,AY_,wL,pgQ,ZND,CB,OND,n26,rYI,tDn,vR,db,BIf,KjH,eY,gb,G7D,H2,Ql,M$,c2,EN,jY,P_Y,aT,Az,ph,Wjg,u1I,ON,DHN,B2,GX,wb,fh,zX,iw,wgn,fX2,IT,SY,mf,znN,iN_,IXX,mHX,lXI,v2,oT,dt,qX,TP,ev,UD,dxH,Jn,$S,gt,Fk,NX,xS,yY,qI6,hn,HZ,cZ,YIX,e77,Uxf,ED,ay,An,OD,nn,tn,BZ,NLN,R7D,xxf,yE2,Kn,h72,GP,Ln,kS,HB6,PZ,Qsj,cEI,DG,fn,Iy,Sv,l4,anH,jsg,ncf,ZBf,tjD,VY,TO,XE,GlN,
  78. kl7,LqQ,sM,g_,PQI,$E,yp,oy,CQQ,Wq_,cB,MQ,vZ,u_N,A4,Zv,pT,Dxj,nT,wRn,t4,BB,KT,GO,LT,kE,PB,CT,uY,zO,iY,SV,z7D,InQ,iBj,mxf,SIg,qq,TI,YQ,vcj,e0,ocD,XQ,J0,$Q,d$j,qNg,eiN,TbH,U$D,sT7,gv,JzQ,bhX,FQ,Nq,$$2,Rc,g9Y,xQ,Nb7,FfQ,RiD,x$g,QC,Mq,yz7,hiI,Hh6,cz,Ew,QT1,jTj,j0,amI,Azj,rz6,ZV,n96,p2f,Bb1,Lf_,np,t0,Kp,Bz,kXg,GI,Lp,kQ,Cp,u$,DV,fp,w22,zI,fm_,Ic,vz,m$j,dY,Ti,eE,SN_,Yj,lmD,v92,US,qb,bl,Xe,o9f,JA,gY,dXn,Fe,Nb,R4,YDg,cE,eSf,UXg,bn2,XZ_,Mb,QX,xj,qDj,TtY,Jnj,$XX,gS6,Fng,a4,AA,p$,Ntn,n$,tA,BE,K$,RSQ,ynI,L$,hSX,
  79. ul,C$,ESf,wY,DY,aGX,pZ6,il,f$,ZnH,I4,mT,SE,zi,vE,ll,VX,o4,es,OnN,d2,Tg,Uy,nSI,bD,rn6,X2,JI,F2,NA,Rl,sy,g2,$J,yw,tvY,hI,BtH,HV,GPn,Qw,LnH,al,YJ,AI,p2,Zc,P4n,Oy,n2,tI,BV,K2,Gg,L2,Wn6,kJ,C46,PV,WV,C2,Dc,uD,w2,f2,zg,iD,Il,uk1,wZQ,Ss,fGj,zS2,in6,vV,ol,gz,mX7,Fj,lG6,NV,oS1,Rb,xY,yu,VvN,h3,dQg,H0,qMn,T_Q,Qu,YM_,MV,c0,Et,eu2,ab,A3,bT6,Ot,sr2,UQH,ng,t3,B0,FZX,$Q_,kY,wz,N_1,xQ6,y42,fg,zU,Ib,m3,S8,lL,v0,Qr1,MV1,c4D,jr2,avg,A4_,Vu,dQ,pB_,qj,ZTD,OT7,r42,GO7,T3,LZ7,kOH,PYD,WZn,CYY,Ub,uE6,Xm,wB_,$f,gQ,zu_,Fm,Nj,
  80. Rq,iT_,Iv1,hq,HK,cK,Eb,SMj,lv6,vE1,Ob,Z7,p5,oEY,VV1,dqN,n5,rQ,tq,Tv_,kf,PK,ekN,UqY,bpn,WK,C5,Xz1,J0Q,uB,scf,$qD,gQ6,FA6,z3,wQ,iB,Iq,SG,NvX,Rkg,xqY,lB,vK,y01,oq,hk2,HpY,Qc7,V6,M0X,dD,q8,c07,EQn,cAD,Ejg,j4g,aY_,e9,UR,bp,Jy,Z$Y,sR,$t,O$H,pEQ,Xc,njX,gD,Fc,N8,xt,RO,rA7,tE_,BYH,M8,Gin,c5,ki6,Pl7,WT1,ClX,ueQ,Dbf,wEn,fY1,aO,Ay,pF,i$j,z1N,IYY,mbn,OR,SS1,nF,lY1,vj6,rD,ty,B5,oj6,G1,LF,VE2,kt,P5,W5,CF,up,Dl,wD,fF,dA1,qyf,T2I,YyH,z1,eZN,b2Y,UA1,IO,mv,JI7,XVX,gJX,RZ1,N2j,S9,xAY,yII,hZI,Ql6,H2I,MsQ,lp,cIf,EJn,oO,
  81. jlN,acQ,AIn,pVn,Vg,Z26,dS,O2N,q5,Ts,rIX,Y3,tsn,eI,Ur,B2f,Kg_,b3,JD,Lg6,sr,Ggn,kg7,PDH,Wg2,u2g,$3,DAX,N5,RL,fcN,zZf,mAj,SyI,x3,yc,hD,H3,Qc,M5,c3,Er,jI,aL,AD,pJ,ZU,VsQ,oJD,dVj,TzI,qt7,eRg,vJQ,YtI,lcI,Or,nJ,bgH,X0N,J3Y,P3,W3,CJ,rS,$Vn,u3,UVQ,F37,NzI,gYg,DU,wS,fJ,zs,RRI,sbI,xVY,i3,y3I,hRf,Hgg,Qb6,M86,jb2,aLj,A3f,p07,IL,mt,Zgn,Og2,t81,BzY,SI,v3,GUX,oL,l3,kUY,L3_,PLI,W3g,CLH,dq,qS,DVH,w07,fLn,zR2,igN,ILH,mVj,Stn,lL1,vYf,Ym,e$,UE,bm,XP,JS,oYn,qbQ,TQn,Yb2,Uj6,ex_,b5N,gq,FP,XK2,Jqg,sqD,NS,RB,xm,y1,hS,HP,Q1,
  82. MS,$jg,EE,Fb7,aB,NQY,Rxf,AS,pb,ZQ,nb,OE,xjf,hx6,rq,ob,EEg,Lb,H5_,Qqn,km,MGj,Gx,Ef6,cq_,Kb,PP,WP,jqg,a7N,AqX,pKI,Cb,Z5Q,um,djI,V8j,DQ,wq,zx,im,rqg,IB,m4,lm,tGN,BQ6,vP,PBj,TB,G3Q,k3I,d1,V1,g1,F6,Wbn,x1,CBj,y7,hK,umN,wKf,zxj,ZZ,nK,SbX,l7I,vfN,r1,qRI,cd,I72,YR6,d8Y,ofj,VG1,eD7,TDX,Bd,LK,bFf,X51,JyH,sOn,$8_,Pd,gtf,CK,Fv_,x8f,yy_,uZ,HFg,M97,QO_,cyg,w1,iZ,lZ,o_,V7,de,q0,TA,al_,Ayg,p56,YH,e_,vd,Uq,bj,XT,ZFN,Vc,Jf,OFQ,$H,t91,ge,FT,Kv_,BDf,G1j,Lvn,k1Y,N0,PpX,WvI,Cpn,R2,xH,D82,zDg,iFD,ym,llI,SRN,vtQ,otN,V9Y,
  83. hf,d56,Ilf,HJ,qr6,TS6,Qm,e46,U5g,bJf,X3j,JDD,cJ,sL7,$5I,g3D,Ft1,x5I,NSn,Eq,j_,a2,Af,pi,Z_,Oq,ni,h4f,tf,re,HJg,Ki,cD6,BJ,E3N,jLf,OJ2,aUn,ADQ,p3n,ZJH,GA,Li,kH,n32,PJ,WJ,Ci,uj,D_,we,GsD,rDg,I2,Kt_,m6,BSX,ij,fi,tIN,zA,lj,ksH,o2,vJ,P3X,WtI,C3I,YM,eA,bc,w3H,UC,sC,fU7,$M,uz_,IU6,m5f,Srj,NK,R1,xM,lUI,y5,h_,Hh,Q5,v3Y,MK,ch,EC,o37,VIf,jA,dSN,flf,Tqg,YEf,eKn,US1,XPY,qE_,JSI,gm2,A_,Z6,NqQ,RK6,xSD,yS1,Hbj,rW,n9,QBI,hKI,jBY,Em_,t_,K9,AS_,Bh,pPf,L9,Zb1,kM,Wh,C9,ObX,nm1,SA,rS1,vh,t$7,BqI,bM,K4Y,L4g,Xr,kx1,PmD,wPX,
  84. W4D,g9,Fr,Ng,xG,yy,mSH,hx,H7,Qy,lQ1,EA,vmY,omn,jp,dLY,Ax,pv,Zg,OA,qfj,nv,tx,B7,Kv,GR,T1g,YfY,eFD,kG,P7,W7,Cv,uM,Dg,UL2,bKg,Xd2,JKf,s_2,$LQ,w9,g1X,lM,FWg,N17,RFn,v7,Vy,dw,qv,eW,Us,bF,yKQ,$5,gw,FM,hFf,HKY,Nv,Q_X,M4j,x5,OKN,n1g,rKI,yH,t4n,B12,LW2,Hq,PZ1,kB1,WWI,u6j,DL7,cq,Es,wdX,jW,aE,A1,ps,ZA,Os,ns,rw,t1,Bq,Ks,G2,Ls,k5,fZ7,zFY,iKD,Wq,ww,IZ7,IE,mR,SW,lF,vq,VH,d7,v1j,q4,Tt,YA,V4H,o1f,mL2,bb,U3,Yqf,Xq,yB,N4,hd,HL,U0g,M4,s26,XJY,Jf7,gHN,yfN,F61,RJQ,x0Q,eJ1,E3,cL,Hi6,aD,Ad,pZ,Q2Y,BL,M_6,KZ,Gt,LZ,PL,cfQ,
  85. CZ,ub,EH1,Dq,w7,a_f,ib,m9,Se,lb,vL,oD,VB,d8,qs,Ty,pJ7,YO,b5,Ud,Oi_,Bej,rf_,t_1,K61,GAj,kAI,PjD,L6n,Cj2,sd,$O,Ns,uTY,D0I,FH,RY,f__,zJ7,Sqn,m0n,Hu,Qi,Ms,cu,Ed,vH7,oHg,r8,tB,V_2,dK7,qCI,kO,Pu,Wu,TW2,YC6,UK_,Xhj,w8,J_2,i5,fW,SX,l5,oY,s1I,U2,bR,X8,Jr,$7,gO,Nw,RN7,xKX,x7,y_I,hNN,Hj,H9Q,Q16,Qt,Mw,MAn,c_g,j1Y,aJ,A_I,phN,E2,Z9j,O9f,r_f,nM6,O2,a66,BWf,KE1,Ga,Bj,GhH,LEI,L7,k7,khj,PcI,C7,WEH,Cc1,uO2,DKf,za,whD,f61,zN7,i9_,I6g,mKn,SCD,l6Q,IJ,vMj,SF,VAj,dg6,qAN,T96,YAX,lR,TN,Ug2,Jx7,YL,sM2,gGI,e6H,F$_,N9Q,R6_,
  86. bvf,X7j,vj,oJ,qz,$gQ,dM,Vt,xgg,yx1,h6_,HvX,QMD,MpQ,AxD,cxn,JL,sg,gM,Ovf,tp7,rx2,$L,RR,B97,hL,K$f,L$2,Eg,GRQ,z66,kRj,fgg,p4,ivX,SAX,Zd,AL,IgX,mg1,lg7,n4,oG6,VpQ,dvH,qsD,TwH,Ysn,eYH,vGD,bsN,Xq2,J1g,$vX,sEg,FRH,K4,Nwf,GN,L4,kL,RY6,xvD,C4,uI,hYg,y11,Dd,Hs1,MW6,E5D,c1Q,jEN,pqN,aA6,Yy,by,Uu,ZsI,ea,XZ,J$,$y,g4,OsY,N9,r1I,h$,yF,QF,M9,ci,Eu,tW6,aC,pC,BwQ,Ou,r4,t$,KRQ,G2X,LR2,k26,Bi,GT,PF1,LC,ky,Pi,CFg,Wi,CC,uMg,D5,zT,fC,w4,iy,IC,fAN,lAN,o56,Ssg,mvf,v5H,ly,VF,T77,VW_,d41,q3g,wq_,gAH,sL,$4H,RB7,sDY,Sa,$z,Yz,
  87. Xn,F9D,qh,isg,zYY,IA1,oC,Jd7,R$,MeD,xz,EAQ,jD2,aq2,ht,AdD,pLf,ZZI,nA_,rdI,Mh,B77,ca,K9I,GtH,ktD,PbD,W9g,jn,CbN,D4Y,a$,wLD,At,p1,qw,S3X,dsf,Ba,T81,Usj,Gp,Xuf,JBN,sYD,md,I$,$sQ,f1,nGj,Dz,zp,wi,L1,TW,qP,ex,bE,F2g,XA,sx,$P,N8g,RT1,NP,yBf,hTj,HWN,hi,QYn,MXj,cBH,EO1,jYX,asg,AB7,Hk,puf,Q9,ck,ZWj,OWN,nOn,rBI,tXD,Ex,jx,B8H,K2D,GyN,L2n,kyD,P5_,W26,C5I,Zy,Ox,nM,uHn,rx,Dsf,Bk,fs6,wu_,GW,LM,kP,Pk,zTf,Wk,CM,iWj,IsI,uE,Dy,vO2,msg,lsN,SdI,wx,fM,zW,oO_,VX2,dwN,iE,TO6,Uw7,eG_,Ih,mr,Sx,lE,vk,V9,ds,qY,Tc,Yo,eC,b7H,Xj_,
  88. Jr6,UP,b2,X$,Jm,$o,F$,g7_,$wf,Ru,FYQ,xo,yZ,hm,HG,QZ,EP,jC,au,Am,pG,Z0,OP,nG,xw2,rs,tm,BG,yr1,H7f,ko,QJ6,PG,WG,E7Q,jJg,aPY,pjg,O7X,zc,n7j,Iu,i2,BOI,KY_,GaD,SC,l2,kaY,ou,VZ,dc,q3,WY1,TY,Yh,el,CRY,UG,PR7,b9,XK,DwD,u87,JU,sG,$h,FK,Ra,fPn,zGg,ya,hU,Qa,M3,i7Q,Hm,S27,lPQ,v7D,o71,VFj,dzY,qg6,EG,cm,mwI,e2_,jl,b4N,XWf,OG,JL6,AU,pU,sRD,nU,gLg,NMD,rc,tU,R26,Bm,yLX,KU,EL1,MT_,h2j,QRn,H4N,LU,kh,Pm,Wm,CU,u9,DO,fU,adX,Z4_,Ia,K3D,mM,O4Q,rL6,l9,d5,vm,Va,oa,KLg,BMg,tT6,GN1,qt,LL2,CIg,Tq,e2,DzX,Uv,bz,XJ,JV,wWf,fd7,$X,
  89. g5,FJ,z2n,i4D,Re,H6,QA,Mt,c6,Ev,j2,Id2,ae,AV,po,ZS,Ov,no,r5,mz7,Sg2,tV,w5,fo,zq,iz,Ie,ld7,vLj,mP,oe,d9N,quf,VA,dE,ba,Yu1,sn,$U,eW6,N1,U9j,XiY,bCH,J$D,sC1,$9f,gyX,FIX,N41,x9f,RWI,y$f,QCH,c$N,HC2,Ey2,jC1,A$H,xU,yK,ZC6,pig,HD,QK,M1,ny6,cD,En,jo,taQ,B4D,aw,r$_,Ab,LIQ,p3,Zh,On,n3,rE,tb,BD,K3,Gm,L3,kU,PD,WD,C3,ua,Dh,wE,f3,zm,ia,Iw,m0,So,la,vD,ow,VK,dJ,q_,Te,Yg,et,UH,b7,Xb,Js,sH,$g,gJ,Fb,N_,RV,xg,yq,hs,H4,Qq,M_,c4,EH,jt,aV,As,pm,Z3,OH,nm,rJ,ts,B4,Km,Ge,Lm,kg,P4,W4,Cm,u7,D3,wJ,fm,i7,IV,PyQ,m5,S,St,ze,l7,
  90. v4,oV,Cyg,dp,D96,Vq,wi2,Tn,f5_,eh,qE,U5,bG,XX,s5,iCI,I52,m9_,Su_,HA,Qz,Rj,ME,vyn,oy1,Va_,dhg,zWX,qL6,Jo,Ti2,YLf,E5,Zp,jh,gp,emj,$v,cA,aj,O5,b17,FX,NE,pu,Ao,Xaj,nu,rp,to,BA,Jtf,Ku,Gn,Lu,kv,PA,s$2,$h1,Fdg,Nij,uG,Dp,xh7,wp,Q$2,ctg,j$_,azQ,zn,pan,Z1f,vA,O1Y,oj,Vz,dX,qo,TS,Yu,nz7,tnI,BiI,rtD,Kd2,Gp7,XI,J8,$u,FI,No,R5,Ld_,xu,kpH,yT,h8,s0,Mo,cp,E0,jP,PnX,QT,CnH,a5,unD,Dh_,A8,waj,pw,Zb,fzQ,zmI,O0,i1Y,Iz7,nw,mh6,SLf,lz7,vz_,rX,t8,ozn,VnH,Bp,Kw,GS,dP_,Lw,ku,Pp,Wp,qx1,Cw,uO,TxN,Db,YxI,wX,esf,UPg,bMI,Xk7,Jig,
  91. shg,fw,$PI,gP_,Frn,zS,Nx_,iO,Rs_,I5,xP2,ma,yiN,hs6,SP,dP,HMN,qI,TL,YV,e7,Qh6,UJ,bW,Xg,Mxj,ciD,sJ,$V,jhn,gP,ayg,AiI,EPQ,pk1,ZMf,OMf,NI,nPD,RI,yb,hQ,ri7,HH,Qb,cH,txf,EJ,j7,BxD,AQ,OJ,pe,BH,Ke,Kr7,GL,GW7,kV,PH,WH,LrX,uW,kWX,wP,zL,iW,rP,II,m1,S7,PEN,lW,vH,oI,Wr1,Vb,dC,qF,T5,Yx,e1,bN,XD,Je,sX,CEn,uAN,DPX,NF,$x,Rp,xx,wkN,fyD,zsX,yQ,he,Hl,iM_,Iy6,FD,mP2,SxH,QQ,ly2,MF,cl,j1,ap,Ae,pk,Z2,nk,rC,Bl,Kk,G5,Lk,te,Vx7,dYn,Pl,Wl,Ck,qPH,D2,YPn,wC,fk,evN,z5,Ip,S1,UY1,mi,lN,vl,op,bGQ,qB,Jm_,suQ,$Yf,YK,Tu,go1,FVD,Ns7,
  92. ed,xY7,uN,Rvg,ymH,U_,hvI,bu,HGN,XF,Quf,MC7,cm7,EoH,juj,JP,AmN,a06,s_,FF,pGX,NB,ZGg,R0,OG_,noI,xK,rmn,tC1,BsN,KVf,yj,GcQ,hP,kc1,Qj,MB,WVI,P2N,C2X,u$I,DYI,E_,jd,a0,wGX,f0n,zv2,iGf,I0D,mY6,SPn,l01,vof,oo_,pd,ZD,VC2,d3f,O_,nd,qGD,rU,tP,Kd,TcY,Gu,Ld,kK,YG2,Pn,eUD,Wn,U3N,Cd,bUD,XmN,uu,JUn,saY,$3_,DD,wU,fd,zu,iu,ghg,FM6,I0,ml,Sd,Ncn,lu,vn,o0,Vj,dG,RUY,x37,qm,T8,yU7,Yb,e5,UO,bV,gzn,hUH,HUY,XY,Qa_,Ml1,cU7,JR,sO,$b,gG,FY,Nm,RF,EO,j5,aF,AR,Ehn,jaX,BY,KS,AU2,G8,DJ,kb,z8,tlX,kYf,BcX,P9D,C9_,uKY,WMg,D3X,wmI,fO2,
  93. Yq,IO6,lOn,SGX,oh7,VlD,dtX,XC,JC,T5f,YvN,X6n,s7,JV6,epg,$q,gN,FC,N6,$tn,N5Q,gXD,yVN,je_,EX1,hpj,aSn,xq,QeH,Hoj,Zo1,rV6,nXQ,Gqn,t21,yE,hC,Czg,M6,uJI,mt_,IS2,ion,zpY,w6N,vXf,lSY,fSX,TE2,qnY,Ynn,AC,b3n,erX,U1H,DtQ,XDH,Jb_,c_,ji,V2_,oX1,d12,swH,E7,Svg,gUI,NEI,x1D,hr2,Mon,cbg,jwf,ah2,pDf,Abj,tog,O3n,Z3Y,BE7,L0Y,kmf,Pa_,W0X,kq,U7,D1N,CaD,C6,wN,f6,zr1,i3g,fhg,zb,Ihj,iv,Ix,eP,mo,iUN,Si,lv,v_,m1D,Snf,ox,lhI,vUX,oUf,VE,dg,q7,TD,YC,eN,UT,bq,X4,Voj,d_n,JH,qHX,sT,gU,$C,gg,eoX,TJ7,F4,U__,bm1,X4g,N7,YHH,Rm,Jsf,
  94. xC,sVg,$_n,vh7,ggX,yI,U0,Cu,p6,F5Y,NJY,HN,WPQ,H_,Roj,P_,W_,O7,Zw,Rx,rN,H3Q,EUj,n6,LPg,K0I,x_Q,AV7,M2j,QI,wDH,bv,ho7,ys_,seX,QwH,Hmj,Gmf,Gb,kqn,Pzj,OoQ,yb6,RrY,xtn,FPg,bo1,Utn,qvQ,$1Q,cVI,nU6,B5j,KP6,B_,K6,tC,rbH,F0n,MtX,QV1,M7,cN,ET,jN,am,AH,csI,OT,n0,rg,BN,K0,Eg7,tH,GD,L0,jVX,kC,PN,WN,uq,AsD,p4Y,D4,wg,f0,zD,iq,Im,mx,SN,rs6,vN,tt6,lq,BJN,Om2,ng1,K5D,om,VI,Ge2,L5j,dj,ke_,dO,W5X,P76,ubY,w4I,f36,D_6,I3I,m_Y,vg6,VtH,dE2,og2,JF,$e,so,q5X,Tp7,eOI,Y5g,bt,UE6,buf,XAn,JoX,XL,FX2,Npf,ROX,gv6,$EN,sjj,xE6,gj,
  95. SHH,yoN,l32,hON,Hu7,cog,Qjg,FL,MhQ,ap_,EvQ,jj_,pAN,AoN,ZuN,OuI,Rg,thn,nv2,BpN,roI,KXg,Gn6,LXI,knI,PG_,WX1,CG7,uX7,DE_,wAH,fpY,zO6,xe,IpQ,mE6,S52,iu7,lp2,ovN,yR,hF,VhD,do7,HI,QR,q07,TXn,Y0D,elf,cI,UoH,bwQ,jK,ag,J8f,s5D,$oN,NX1,pY,nY,tF,RlY,BI,KY,GG,Hw7,MP6,Q5I,EuN,tPD,abj,wj,ke,c8j,hlY,y86,xoj,DW,PI,ut,SK,lt,GS6,vI,og,mp,Wa6,La_,kSf,COf,VR,d0,Do2,Tz,Yk,eL,UK,b8,X0,Ju,wpX,fb6,sK,$k,F0,iwj,IbN,g0,moQ,vun,ou2,Nn,VPD,yL,dI_,hu,QL,qJ2,Ht,Mn,TPD,EK,eIN,UIg,a8,Au,r0,XH6,ZT,tu,Kj,JQX,Lj,nj,Bt,sIn,kk,$In,Pt,
  96. gV1,pj,OK,beI,Gz,Wt,F16,NP2,Cj,RIn,u8,DT,w0,fj,xIg,i8,zz,I8,mU,yQX,hI_,SL,l8,vt,o8,VL,HeD,dT,qG,QIj,M7N,TE,Yw,eu,EV7,cQ1,U$,jIf,aBj,AQY,bP,pHI,Ze6,OeH,nVI,rQD,Xo,Jl,s$,$w,t7j,BPj,Fo,K1D,NG,Rd,GLN,L17,xw,kLQ,PWX,DIX,wHQ,W1Y,CWY,ugn,hl,Hb,Q8,MG,fBD,zIH,ieH,IBH,E$,lBI,ju,oV2,dFf,V7j,O$,Ze,TCI,YXn,e0Q,UF1,ny,bkY,tl,Bb,Xl6,spD,$F2,GE,Wb,R0H,nuX,WI,yeY,h0g,HkQ,QpD,M17,LY,Ly,De,wT,jpY,a22,AeN,fy,nxH,plH,Zk7,t1D,BCX,zE,Kif,rej,G51,iP,Id,mF,LiD,k5g,Su,lP,PND,vb,Wig,od,Cy,TH,CN_,r8N,j5H,Y8,eJ,be,Xv,Jj,s4,$8,
  97. U4,Nd,DF_,x8,f2f,yU,ikg,z0H,wln,I2g,mFI,SX6,Md,l2f,vx_,V1D,cx,Ka2,E4,q_2,Y_I,fY,ecf,UB7,CY,A8D,Zw7,OwI,dB1,a9,Aj,ZN,bdf,XnQ,JPn,s0I,$BY,gKN,Fl_,xB1,yPf,RcY,hc7,Hd_,Q0j,Mdf,O4,cP7,tj,EKQ,j0_,aDD,Bx,AP2,GH,LO,k8,Px,Wx,pn_,CO,ue,ZdI,OdX,DN,w6,fO,zH,ie,I9,rP1,nKH,mz,tdf,KlY,SJ,Gug,BUI,Rn,FW,xl,hJ,HT,Hx,Ll2,fD6,yz,Ni,Em,mB7,lD_,TF,Zi,qi,Om,tJ,oKH,gn,BT,TG1,KI,GF,YO_,eEH,Um_,bSj,LI,XY1,JRX,kl,sFn,REY,NG6,$mX,Fun,gbD,PT,xm2,WT,yRX,hEj,QF6,M5H,cR7,Eb2,ZS7,fI,zF,rRY,iS,In,t5H,G81,LuX,k8H,PV6,m8,SZ,lS,vT,Wug,
  98. uY_,DmQ,bx,vbY,iSY,IJD,V51,Xx,d6I,TNQ,q77,Y7H,sB,Fx,eyf,Jw,NR,Rf,U6Q,X_j,Hr,cr,pt,nt,cCj,Eq1,GC,Kt,kp,Pr,jxj,p_I,ACD,Z6f,Ct,Wr,O6_,rCj,tij,KoD,wd,BN7,GbY,Loj,zC,ix,Pvn,hw,Du,NN6,b6g,hyY,of,Lt,nqn,bH,Zu,J7,sF,lwg,oqX,vqN,OB,rd,Vi7,gm,FG,qTj,NC,R6,TgY,tw,x4,awj,h7,w_n,HU,gqg,$61,JC1,Q2,efY,cU,Ng6,FxX,x7N,yHI,a6,pV,Z$,A7,nV,rm,hfQ,t7,Qmn,BU,cHf,LV,MNH,k4,PU,AHj,WU,O0Y,nC6,D$,rHY,KxD,dR,Tk,eq,Xp,GD7,JM,sc,Nf,Rz,xT,yD,LxH,hM,Hs,Cq1,QD,Mf,u47,D7H,cs,Ec,wN2,f42,zfY,i07,jq,az,I4j,m7Q,STI,Oc,nR,Bs,KR,l4f,
  99. vCj,Gk,LR,kT,Ps,oC2,VNg,Ws,de_,qo2,CR,YoQ,TjQ,eH1,ui,bYI,Uef,XIg,Dx,wR,JFg,$eD,ge1,fR,zk,ii,Fp1,RHY,Iz,xeI,Sq,yFg,hHj,mH,li,vs,oz,MKf,EeY,HY_,cFg,jg1,QgH,aWI,AFg,VD,pI2,OYf,tKn,KpY,BjD,Xs,bk,$I,Lpf,gK,Fs,NO,Ptj,R3,Wp_,kG1,xI,De7,yh,hk,wIX,HX,fWn,zE7,lJ2,iYg,zHY,meD,IWX,Soj,Qh,MO,cX,Ej,lWN,VKI,Ak,pz,Za,qK6,dnj,j6,T0D,YKf,ej6,bjI,Oj,xnf,cu_,Kz,EkN,qO,aT2,Auj,pt2,Zj1,OjY,Lz,nkI,kI,PX,WX,ruH,Da,tL_,B0f,wK,fz,KUQ,Gz1,LUI,kzY,P86,zM,uk,WUg,C87,ik,Dnn,wt7,fTN,I3,zjX,ijQ,ITN,mn1,SKQ,lTf,vk6,ok2,VLn,dGN,mD,
  100. TTI,S6,e86,Y$Q,byg,UGQ,JlQ,Vh,q$2,lk,df,sdY,$GX,qM,gwD,T0,Y_,eM,Uz,bs,FFH,Xt,NTN,sz,HyD,clf,Ew7,jd_,ae1,Ft,Alg,MuQ,h8n,pbn,$_,Zyj,nwI,J5,gf,xGf,ylY,NM,rl2,tuX,Qdj,R8Q,BTN,x_,KFI,yx,h5,GE2,Ho,PPX,LFH,kEY,Qx,WFj,MM,co,Ez,jM,CP6,uog,DGj,ao,fe7,z82,A5,iyH,pP,Z9,Ie6,mGg,S$1,lej,vwn,owf,Y4Q,ddj,nej,nP,UdQ,bOQ,q4I,T6X,Vu7,Bo,g8D,t5,rf,ehH,N66,$d2,s9Q,Jj2,XxN,G0,Rhn,dK,LP,k_,Po,xd1,Wo,yjf,CP,hh7,sj,HOI,us,YI,Uj,ZYQ,fP,is,cj_,E87,Io,SM,z0,wf,ls,D9,Q97,MJH,vo,j9Q,aNg,o3,Xb1,TM,oo,Ajn,mh,pxH,ZOX,OON,n82,Vx,
  101. dZ,rjf,tJj,B61,KzQ,GHN,Oyg,BX,T$,YW,qy,kHI,Ctf,uL2,eB,Pen,Wz7,CeD,uvn,UY,Ddj,bo,wxg,zhY,Xw,iOX,INj,$W,md6,sY,BM,lN_,S4Q,VJH,o8_,diD,qmf,v8g,KH,TnH,G$,YmQ,Ui6,eqX,LH,u0N,bID,XT2,JJX,snQ,$i_,F8D,NnY,Rq2,xin,yJj,gl1,kW,oeN,PM,Qn1,WM,HIj,MZX,cJg,veH,a3,ElY,jnI,uo,rJ7,nlX,io,tZn,OIf,L82,kF6,PS2,W8I,CSf,uWI,Di_,wT_,fi_,zq6,iIN,Ii7,miX,Smn,SB,CH,vlI,ol6,I7,dRf,lig,mc,qBY,Tdf,URg,JwH,btj,vM,sf2,o7,YBH,lo,Ve,eVD,qZ,FJ6,RVj,Ndj,xRj,gp6,ywj,hVQ,HtD,QfX,MHg,Epn,jf6,cwg,AwD,Ztg,prD,tH1,np2,auD,OtH,BdN,rwQ,KJ_,
  102. GC2,LJn,WJj,Pxj,kC_,T6,Cxn,uxQ,DRg,wrj,fu2,it_,mRI,SB2,luX,vpf,opD,YN,VH_,dCQ,TmI,YFD,Xf,UCN,sV,XUj,J7H,s62,$CY,F7H,g4f,xC_,y7Y,hX6,$N,HV_,NmN,RXI,MfH,c7I,E47,j6_,a$H,A7_,vX,pUf,ZVY,OV_,r71,n4N,tfH,K7H,GJH,Bmf,dk,gZ,kJH,PHf,W7D,iV2,DC1,wUn,f$I,I$6,SFX,FzI,Ff,uG7,CH1,mCH,Jk,zX1,Oz,e6,XrQ,df2,VfY,qcD,TRN,e9N,Ufg,Q6j,R7,Fw,v4_,bR6,o4j,s7I,JW,$yj,fN2,$RY,l$D,Ny,xN,yo,Fc7,hp,NZY,RQD,xyQ,yWn,hQ_,Q72,MB6,aMD,cWf,j7f,AW1,Qo,nW2,ZH7,OH6,BZ1,Kc1,G$f,MZ,LcN,H8,k$7,tBI,pM_,c8,Po1,EWg,WcI,EV,uwn,CoY,wMj,fMX,zQj,
  103. DyY,jO,myn,IM2,vWX,lMD,SY6,oW2,VBf,ai,dZX,qVg,YVj,e5Q,Tk6,UZQ,$Zn,X82,JpD,siI,gNI,F_D,Nkj,xZf,R5f,yp7,h5f,Ap,HEf,Qi2,cpN,MOH,EN_,jiD,Apf,p86,OEI,rpN,ZEX,tOg,Bk6,K_2,aKD,G62,nN2,ZK,L_H,k66,PC2,W_Q,nE,ufn,CCn,DZQ,w8Q,fKH,IK2,z52,lKI,rk,iEQ,vNN,tp,TFI,oNH,KE,G6,Y82,B8,eaD,LE,X$2,bcj,daN,q8Q,JG_,sZ_,$aI,VOI,gsj,kN,FBD,Ua1,bVH,OV,Raj,xaY,yGQ,ha6,HcN,QZ1,MRN,cGn,Esg,jZf,AG1,p$D,ZcI,atN,Oc7,ns7,rG2,tR7,BFN,KBn,kQ6,LBD,GQ7,Pf2,CE,oPf,WBf,CfX,uC,uaD,DaI,wk,zaY,icI,fE,maD,S8H,ItH,ftg,z6,DK,w$7,m_,iC,lt7,SO,
  104. Ii,dcN,Yif,UcY,baj,Jc7,osY,eAg,sNg,VRf,$c_,grQ,FS2,dF,lC,xc7,yc2,NVX,oi,Ha_,QNQ,TV1,qi_,hAH,MzY,Xcn,RAj,vsf,qa,TQ,Ys,ccg,eR,ZaI,afN,OaN,Acg,jNf,nrQ,ErY,BVD,rc2,U8,KSX,LSX,P0N,WSQ,DcX,s8,wcQ,C0_,Vo,iaI,IfD,RZ,VZY,bf,mcI,Si1,vrj,lf2,orI,zA2,gF,Vzj,dlg,qaD,YaD,Tr6,L7Y,$s,e$_,bqD,UlQ,Jg6,X9D,kV1,$lf,sW7,Fa,Xa,gBI,yk,FG_,Nr1,R$Q,xln,yg6,xs,uif,gWN,v8,h$j,hG,Hq1,QWn,Mgn,cg1,EBQ,jWj,H$,Qk,p9_,Zqj,Oq_,aIg,AgQ,Ma,Br1,rgD,tg1,KGN,c$,GZ_,LGX,kZf,E8,Pg_,CgN,uyH,DlD,jR,WGY,aZ,AG,w9f,fIN,z$j,iqN,II7,mlH,San,O8,
  105. pc,Zt,lI7,nc,vB2,oBI,VgH,qkI,dN1,Lc,Ykj,et2,TlY,UN1,ks,bAQ,P$,XFN,W$,JZI,sk6,FN_,xNN,$Nf,Nl1,Cc,gng,Rt1,yZ1,htY,HAN,Qk7,Dt,Mw1,zQ,wF,cZj,IZ,mB,jk1,akI,lf,v$,AZg,SR,pFY,oZ,OAf,ZA1,dV,qc,TV,twn,nnX,rZ1,Yr,BlX,kjn,GjX,KNN,LNQ,ez,WND,wFg,fk6,Ui,zt_,Cr7,iA6,b0,u3_,SkN,Xi,Jc,lk2,vnn,onI,Vwn,dUI,gV,YeY,ebI,UU7,Fi,Ta_,JaY,$r,Nc,RN,qeH,giN,$Un,QV,FKQ,Rb_,yaf,Na7,Mc,hc,Ei,Hc,xUf,cc,hbf,jz,HlQ,QUg,Mkn,aN,Ac,caN,Eig,jUD,ajn,Aa2,p1H,ZlY,raD,Oln,tkX,BaH,LKD,krg,fj1,kr,IjY,lj1,SeX,mU6,DUY,w1j,P6j,C6D,zbI,Pc,Wc,
  106. oi_,I6,EC_,Vk6,u0,wV,dkN,qWD,WK6,ilY,YWQ,ez6,UkI,fa,vc,Xef,JT_,sP2,oN,$k7,FON,g$j,NB1,VV,dr,Rz6,hzf,Hrf,YB,yT2,QPj,My_,xkN,bg,cT2,E$n,Ua,jPQ,ar_,ATg,peD,Or_,Zrj,ty2,BBN,n$n,G_I,LOD,rTf,sa,$B,k_Y,CU2,gr,WOn,PUY,uUH,weD,Dkg,frQ,Fy,zzY,irD,Ir7,mk1,SW1,lr2,v$1,VyD,o$D,dJD,qU_,TAX,YUf,eMI,b87,RW,Nl,xB,XyD,JXj,UJH,NA2,RM7,xJ7,H8I,hMH,yXn,QS_,MrH,yr,hg,cXQ,E01,jSg,aF7,pyN,Z8X,Qr,O8n,H9,c9,AX_,Ea,n0_,rXQ,trQ,BAD,KyI,jg,Gon,LyY,Wyf,aW,CKD,PK2,Ag,pq,ZI,DJ6,wy1,fFH,uu7,i8D,zM2,IF6,Oa,mJ7,SUQ,v0X,dpf,lFf,o0Y,
  107. nq,qQf,YQf,eeQ,bf_,XS1,rr,tg,JN_,T$7,gdN,$p_,sKY,B9,Kq,N$6,Fkf,GZ,Lq,kB,Re1,P9,xp6,yND,heQ,Hf_,W9,QK_,Cq,MQ6,ug,cN7,DI,wr,EdY,fq,jKX,zZ,ig,ANQ,OfN,ndn,aoD,rN_,KkY,GwD,LkQ,B$_,tQY,PJn,kw6,WkN,Dp7,Sg,foY,wSD,CJY,u5N,ze_,ifQ,lg,v9,Io7,mpf,SQn,lof,vd7,odg,d21,qhj,sX6,ewN,U2H,Ty6,gFX,Yn,Uk,y27,hw6,JZ,H_D,sk,QXj,Fs1,Tj,F3,gl,br,c2D,EF7,NN,aRj,pwQ,A2I,Rk,X3,qN,jXQ,$n,NyX,MmQ,O_I,oW,xn,nFj,r2_,ew,RwH,yW,hZ,tmn,HF,QW,MN,ByY,Ks7,Ls1,k9Y,G96,cF,PX6,Ek,jw,Wsj,CX1,uBY,D2g,wwj,fR2,i_7,zwn,AZ,ak,IRX,ShD,m2H,pA,
  108. Zk,lRQ,oFg,VmN,Ok,vFn,dD7,qZN,YZX,nA,T31,e_6,UD2,bQH,tZ,BF,J97,XCj,st_,KA,Gj,g6D,$DX,FCH,R_n,N3Q,xDg,kn,y9N,h__,WF,HQ6,MUH,Qt7,ur,c9n,E6Y,jtH,A9j,pC7,ZQN,aHD,OQQ,n61,r9j,tU1,B3_,KCX,G4j,LC6,k42,fA,PT_,WCX,CT6,DDg,iQ2,fH7,udg,Ik,wCY,ir,z_N,mN,mD1,IHY,Sw,lH1,v6j,o66,bEX,VW,BgI,vF,da,ok,Tr,VUj,Yi,eL1,Ur6,bDQ,JO6,XQ_,sv2,$rn,ga2,NHQ,RLN,xrN,Fmj,EaN,jvn,cO6,aE6,pQf,OD_,naf,rO1,Ja,ZDn,AOn,yOg,se,BH1,KmX,tcY,kvn,Lmn,Phf,Wmj,ChX,u9D,$i,Drg,QvY,b6,wQI,fEj,zLg,iDj,hLg,HD1,Xh,Spf,lE7,va2,oaN,IEn,Fh,mrf,dT_,
  109. eCD,RU,UT6,bxj,ToY,y3,Xfj,JhI,VcX,sGY,Yl6,$T7,ha,xi,gR7,NoQ,FwD,NU,xTI,H1,ffD,yhY,QGg,HxI,chY,ERj,M3_,MU,Q3,a1D,Ahf,pfQ,Zxf,kf6,BoN,Kw6,rhn,nRN,jk,ulQ,WwX,DT2,wf2,Ee,Aa,pl,I1Y,ixI,zC6,Oe,Lwg,B1,Sln,ta,Zj,vR6,oRN,V3f,P1_,Ll,P1,dWn,GfD,mTQ,nl,q9X,aU,ThY,Y9j,ePH,u6,l12,UW1,bLj,Dj,wa,XO7,ra,C1g,Jvg,sAX,ki,$WX,Kl,gZI,Gr,GJ,FQ7,RPY,fl,zr,xWH,yvj,hPf,Cl,W1,HL6,hC_,QAD,t3Q,MSn,cv1,EZf,jAj,i6,IU,pOH,nZ1,tS2,Avf,CA7,uSN,DW7,wOg,fC6,zPD,iL_,mWf,IC1,mK,Sk,l6,S97,lCD,vZn,$K,oZ1,v1,VS1,oU,du_,V3,dB,q1D,Fg,qk,WA,
  110. TuX,uv,uN7,Y1D,QE,edj,VQ,dU,Uu1,hH,bXN,Xvn,Dw,m36,J6I,sH1,$u1,T_,Fe_,NuQ,Y$,UW,bU,Rd7,hdX,HX2,XU,QH1,xuH,c6g,y6g,MbD,EDf,jHY,a82,A6f,JT,ZX1,WdY,gX,Hn,OX2,nDf,cn,pvH,Hp,r66,tbg,Buf,sW,kx,Gdg,LeD,$$,gB,kdD,FU,Nk,ey,Pdg,WeX,XGD,RP,x$,Cdf,y_,hT,uRI,He,Du1,Q_,Mk,wv1,f8Q,LV1,ce,zdD,I8f,iXj,EW,jy,muQ,aP,S1n,l8N,vDX,oD7,Vb1,dHN,TI_,pr,q6Q,Y6c,enE,UH7,bNj,$HB,Xg_,JYl,sQ7,FjN,RnE,xH7,yYn,NIN,Zr,hnj,HNR,QQE,MDN,cYx,nr,E2j,rB,tT,Be,jQl,aXs,pgs,ZNj,ONj,n2I,tD7,rYL,BIN,Kr,G_,Ljj,Kjx,G7j,Lr,k7L,P_E,k$,Pe,WjR,We,
  111. C_n,Cr,u1L,uU,Dr,DHB,wB,fr,wg7,fXc,z_,iU,znB,IP,iNQ,IXn,ve,oP,mHn,S6j,lXL,VD7,o2N,V_,dxx,qII,TLI,zU1,v2s,e7l,UxN,XRq,dHf,$2;dI=function(d){return function(){return dHf[d].apply(this,arguments)}};
  112. g.eD=function(d,q){return dHf[d]=q};
  113. q6_=function(d){var q=0;return function(){return q<d.length?{done:!1,value:d[q++]}:{done:!0}}};
  114. TI1=function(d){d=["object"==typeof globalThis&&globalThis,d,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var q=0;q<d.length;++q){var T=d[q];if(T&&T.Math==Math)return T}throw Error("Cannot find global object");};
  115. gI=function(d,q){if(q)a:{var T=g.U6;d=d.split(".");for(var Y=0;Y<d.length-1;Y++){var e=d[Y];if(!(e in T))break a;T=T[e]}d=d[d.length-1];Y=T[d];q=q(Y);q!=Y&&q!=null&&$2(T,d,{configurable:!0,writable:!0,value:q})}};
  116. Y62=function(d){d={next:d};d[Symbol.iterator]=function(){return this};
  117. return d};
  118. g.M=function(d,q){d.prototype=enY(q.prototype);d.prototype.constructor=d;if(NH)NH(d,q);else for(var T in q)if(T!="prototype")if(Object.defineProperties){var Y=Object.getOwnPropertyDescriptor(q,T);Y&&Object.defineProperty(d,T,Y)}else d[T]=q[T];d.VX=q.prototype};
  119. g.E=function(d){var q=typeof Symbol!="undefined"&&Symbol.iterator&&d[Symbol.iterator];if(q)return q.call(d);if(typeof d.length=="number")return{next:q6_(d)};throw Error(String(d)+" is not an iterable or ArrayLike");};
  120. UHn=function(d){for(var q,T=[];!(q=d.next()).done;)T.push(q.value);return T};
  121. g.RQ=function(d){return d instanceof Array?d:UHn(g.E(d))};
  122. yf=function(d){return bND(d,d)};
  123. bND=function(d,q){d.raw=q;Object.freeze&&(Object.freeze(d),Object.freeze(q));return d};
  124. hY=function(d,q){return Object.prototype.hasOwnProperty.call(d,q)};
  125. Xg1=function(d){if(!(d instanceof Object))throw new TypeError("Iterator result "+d+" is not an object");};
  126. Hg=function(){this.L=!1;this.T=null;this.G=void 0;this.U=1;this.S=this.X=0;this.K=this.j=null};
  127. Qf=function(d){if(d.L)throw new TypeError("Generator is already running");d.L=!0};
  128. MH=function(d,q){d.j={Bk:q,JU:!0};d.U=d.X||d.S};
  129. g.B=function(d,q,T){d.U=T;return{value:q}};
  130. cg=function(d,q,T){q=g.E(q);var Y=q.next();Xg1(Y);if(Y.done)d.G=Y.value,d.U=T;else return d.T=q,g.B(d,Y.value,T)};
  131. g.E6=function(d){d.U=0};
  132. g.jD=function(d,q,T){d.X=q;T!=void 0&&(d.S=T)};
  133. g.aQ=function(d,q){d.X=0;d.S=q||0};
  134. g.ZX=function(d,q,T){d.U=q;d.X=T||0};
  135. g.nN=function(d,q){d.X=q||0;q=d.j.Bk;d.j=null;return q};
  136. g.KN=function(d,q,T,Y){Y?d.K[Y]=d.j:d.K=[d.j];d.X=q||0;d.S=T||0};
  137. g.LN=function(d,q,T){T=d.K.splice(T||0)[0];(T=d.j=d.j||T)?T.JU?d.U=d.X||d.S:T.tF!=void 0&&d.S<T.tF?(d.U=T.tF,d.j=null):d.U=d.S:d.U=q};
  138. JY7=function(d){this.G=new Hg;this.U=d};
  139. sQn=function(d,q){Qf(d.G);var T=d.G.T;if(T)return k2(d,"return"in T?T["return"]:function(Y){return{value:Y,done:!0}},q,d.G.return);
  140. d.G.return(q);return Pg(d)};
  141. k2=function(d,q,T,Y){try{var e=q.call(d.G.T,T);Xg1(e);if(!e.done)return d.G.L=!1,e;var U=e.value}catch(b){return d.G.T=null,MH(d.G,b),Pg(d)}d.G.T=null;Y.call(d.G,U);return Pg(d)};
  142. Pg=function(d){for(;d.G.U;)try{var q=d.U(d.G);if(q)return d.G.L=!1,{value:q.value,done:!1}}catch(T){d.G.G=void 0,MH(d.G,T)}d.G.L=!1;if(d.G.j){q=d.G.j;d.G.j=null;if(q.JU)throw q.Bk;return{value:q.return,done:!0}}return{value:void 0,done:!0}};
  143. $HN=function(d){this.next=function(q){Qf(d.G);d.G.T?q=k2(d,d.G.T.next,q,d.G.B):(d.G.B(q),q=Pg(d));return q};
  144. this.throw=function(q){Qf(d.G);d.G.T?q=k2(d,d.G.T["throw"],q,d.G.B):(MH(d.G,q),q=Pg(d));return q};
  145. this.return=function(q){return sQn(d,q)};
  146. this[Symbol.iterator]=function(){return this}};
  147. Wg=function(d,q){q=new $HN(new JY7(q));NH&&d.prototype&&NH(q,d.prototype);return q};
  148. g2f=function(d){function q(Y){return d.next(Y)}
  149. function T(Y){return d.throw(Y)}
  150. return new Promise(function(Y,e){function U(b){b.done?Y(b.value):Promise.resolve(b.value).then(q,T).then(U,e)}
  151. U(d.next())})};
  152. g.G=function(d){return g2f(new $HN(new JY7(d)))};
  153. g.CN=function(){for(var d=Number(this),q=[],T=d;T<arguments.length;T++)q[T-d]=arguments[T];return q};
  154. u_=function(d){return d};
  155. DX=function(d,q,T){if(d==null)throw new TypeError("The 'this' value for String.prototype."+T+" must not be null or undefined");if(q instanceof RegExp)throw new TypeError("First argument to String.prototype."+T+" must not be a regular expression");return d+""};
  156. Fjf=function(d,q,T){d instanceof String&&(d=String(d));for(var Y=d.length,e=0;e<Y;e++){var U=d[e];if(q.call(T,U,e,d))return{jg:e,LP:U}}return{jg:-1,LP:void 0}};
  157. fN=function(d,q){d instanceof String&&(d+="");var T=0,Y=!1,e={next:function(){if(!Y&&T<d.length){var U=T++;return{value:q(U,d[U]),done:!1}}Y=!0;return{done:!0,value:void 0}}};
  158. e[Symbol.iterator]=function(){return e};
  159. return e};
  160. z7=function(d){return d?d:Array.prototype.fill};
  161. i_=function(d){return d?d:Array.prototype.copyWithin};
  162. mj=function(d){d=Math.trunc(d)||0;d<0&&(d+=this.length);if(!(d<0||d>=this.length))return this[d]};
  163. l_=function(d){return d?d:mj};
  164. NIf=function(d,q,T){d instanceof String&&(d=String(d));for(var Y=d.length-1;Y>=0;Y--){var e=d[Y];if(q.call(T,e,Y,d))return{jg:Y,LP:e}}return{jg:-1,LP:void 0}};
  165. vg=function(d){return d?d:function(q,T){return NIf(this,q,T).jg}};
  166. g.Vf=function(d,q,T){d=d.split(".");T=T||g.oQ;for(var Y;d.length&&(Y=d.shift());)d.length||q===void 0?T[Y]&&T[Y]!==Object.prototype[Y]?T=T[Y]:T=T[Y]={}:T[Y]=q};
  167. Yc=function(d,q){var T=g.qx("CLOSURE_FLAGS");d=T&&T[d];return d!=null?d:q};
  168. g.qx=function(d,q){d=d.split(".");q=q||g.oQ;for(var T=0;T<d.length;T++)if(q=q[d[T]],q==null)return null;return q};
  169. RnY=function(d){var q=typeof d;return q!="object"?q:d?Array.isArray(d)?"array":q:"null"};
  170. g.ej=function(d){var q=RnY(d);return q=="array"||q=="object"&&typeof d.length=="number"};
  171. g.UI=function(d){var q=typeof d;return q=="object"&&d!=null||q=="function"};
  172. g.X_=function(d){return Object.prototype.hasOwnProperty.call(d,bQ)&&d[bQ]||(d[bQ]=++xHn)};
  173. yYX=function(d,q,T){return d.call.apply(d.bind,arguments)};
  174. hnD=function(d,q,T){if(!d)throw Error();if(arguments.length>2){var Y=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,Y);return d.apply(q,e)}}return function(){return d.apply(q,arguments)}};
  175. g.sI=function(d,q,T){g.sI=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?yYX:hnD;return g.sI.apply(null,arguments)};
  176. g.$c=function(d,q){var T=Array.prototype.slice.call(arguments,1);return function(){var Y=T.slice();Y.push.apply(Y,arguments);return d.apply(this,Y)}};
  177. g.F_=function(){return Date.now()};
  178. Nx=function(d){return d};
  179. g.Rs=function(d,q){function T(){}
  180. T.prototype=q.prototype;d.VX=q.prototype;d.prototype=new T;d.prototype.constructor=d;d.Wf=function(Y,e,U){for(var b=Array(arguments.length-2),J=2;J<arguments.length;J++)b[J-2]=arguments[J];return q.prototype[e].apply(Y,b)}};
  181. HNg=function(d,q){if(q!==null&&q!==void 0){if(typeof q!=="object"&&typeof q!=="function")throw new TypeError("Object expected.");if(T===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");var T=q[Symbol.dispose]}if(typeof T!=="function")throw new TypeError("Object not disposable.");d.stack.push({value:q,dispose:T,async:!1})}return q};
  182. QQY=function(d){function q(U){d.error=d.hasError?new SuppressedError(U,d.error,"An error was suppressed during disposal."):U;d.hasError=!0}
  183. function T(){for(;Y=d.stack.pop();)try{if(!Y.async&&e===1)return e=0,d.stack.push(Y),Promise.resolve().then(T);if(Y.dispose){var U=Y.dispose.call(Y.value);if(Y.async)return e|=2,Promise.resolve(U).then(T,function(b){q(b);return T()})}else e|=1}catch(b){q(b)}if(e===1)return d.hasError?Promise.reject(d.error):Promise.resolve();
  184. if(d.hasError)throw d.error;}
  185. var Y,e=0;T()};
  186. xc=function(d,q){if(Error.captureStackTrace)Error.captureStackTrace(this,xc);else{var T=Error().stack;T&&(this.stack=T)}d&&(this.message=String(d));q!==void 0&&(this.cause=q)};
  187. MDf=function(){};
  188. g.yN=function(d){return d[d.length-1]};
  189. cYH=function(d,q){var T=d.length,Y=typeof d==="string"?d.split(""):d;for(--T;T>=0;--T)T in Y&&q.call(void 0,Y[T],T,d)};
  190. g.QN=function(d,q,T){q=HR(d,q,T);return q<0?null:typeof d==="string"?d.charAt(q):d[q]};
  191. HR=function(d,q,T){for(var Y=d.length,e=typeof d==="string"?d.split(""):d,U=0;U<Y;U++)if(U in e&&q.call(T,e[U],U,d))return U;return-1};
  192. g.Mx=function(d,q,T){var Y=d.length,e=typeof d==="string"?d.split(""):d;for(--Y;Y>=0;Y--)if(Y in e&&q.call(T,e[Y],Y,d))return Y;return-1};
  193. g.cR=function(d,q){return E2D(d,q)>=0};
  194. jQ7=function(d){if(!Array.isArray(d))for(var q=d.length-1;q>=0;q--)delete d[q];d.length=0};
  195. g.jj=function(d,q){q=E2D(d,q);var T;(T=q>=0)&&g.EI(d,q);return T};
  196. g.EI=function(d,q){return Array.prototype.splice.call(d,q,1).length==1};
  197. g.OI=function(d,q){q=HR(d,q);q>=0&&g.EI(d,q)};
  198. aXQ=function(d,q){var T=0;cYH(d,function(Y,e){q.call(void 0,Y,e,d)&&g.EI(d,e)&&T++})};
  199. g.nB=function(d){return Array.prototype.concat.apply([],arguments)};
  200. g.rL=function(d){var q=d.length;if(q>0){for(var T=Array(q),Y=0;Y<q;Y++)T[Y]=d[Y];return T}return[]};
  201. g.tE=function(d,q){for(var T=1;T<arguments.length;T++){var Y=arguments[T];if(g.ej(Y)){var e=d.length||0,U=Y.length||0;d.length=e+U;for(var b=0;b<U;b++)d[e+b]=Y[b]}else d.push(Y)}};
  202. g.WR=function(d,q,T,Y){Array.prototype.splice.apply(d,LB(arguments,1))};
  203. LB=function(d,q,T){return arguments.length<=2?Array.prototype.slice.call(d,q):Array.prototype.slice.call(d,q,T)};
  204. AY_=function(d){for(var q=0,T=0,Y={};T<d.length;){var e=d[T++],U=g.UI(e)?"o"+g.X_(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(Y,U)||(Y[U]=!0,d[q++]=e)}d.length=q};
  205. g.Dn=function(d,q,T){return pgQ(d,T||CB,!1,q)};
  206. wL=function(d,q){return pgQ(d,q,!0)};
  207. pgQ=function(d,q,T,Y){for(var e=0,U=d.length,b;e<U;){var J=e+(U-e>>>1),F=void 0;T?F=q.call(void 0,d[J],J,d):F=q(Y,d[J]);F>0?e=J+1:(U=J,b=!F)}return b?e:-e-1};
  208. g.iQ=function(d,q){d.sort(q||CB)};
  209. ZND=function(d,q){var T=CB;g.iQ(d,function(Y,e){return T(q(Y),q(e))})};
  210. g.Is=function(d,q,T){if(!g.ej(d)||!g.ej(q)||d.length!=q.length)return!1;var Y=d.length;T=T||OND;for(var e=0;e<Y;e++)if(!T(d[e],q[e]))return!1;return!0};
  211. CB=function(d,q){return d>q?1:d<q?-1:0};
  212. OND=function(d,q){return d===q};
  213. g.mq=function(d,q,T){T=g.Dn(d,q,T);T<0&&g.WR(d,-(T+1),0,q)};
  214. g.lQ=function(d,q,T){var Y={};(0,g.Sj)(d,function(e,U){Y[q.call(T,e,U,d)]=e});
  215. return Y};
  216. n26=function(d){for(var q=[],T=0;T<d;T++)q[T]="";return q};
  217. rYI=function(d,q){q=Array.prototype.splice.call(d,q,1);Array.prototype.splice.call(d,0,0,q[0])};
  218. tDn=function(d){var q={};g.Sj(d,function(T){var Y=T.event,e=q[Y];q.hasOwnProperty(Y)?e!==null&&(T.equals(e)||(q[Y]=null)):q[Y]=T});
  219. aXQ(d,function(T){return q[T.event]===null})};
  220. vR=function(){this.Rc=0;this.G=!1;this.U=-1;this.wZ=!1;this.Cq=0};
  221. g.os=function(d,q,T){for(var Y in d)q.call(T,d[Y],Y,d)};
  222. g.VN=function(d,q,T){var Y={},e;for(e in d)q.call(T,d[e],e,d)&&(Y[e]=d[e]);return Y};
  223. db=function(d,q){var T={},Y;for(Y in d)T[Y]=q.call(void 0,d[Y],Y,d);return T};
  224. g.q$=function(d,q,T){for(var Y in d)if(q.call(T,d[Y],Y,d))return!0;return!1};
  225. BIf=function(d,q){for(var T in d)if(!q.call(void 0,d[T],T,d))return!1;return!0};
  226. g.TX=function(d){for(var q in d)return q};
  227. KjH=function(d){for(var q in d)return d[q]};
  228. eY=function(d){var q=[],T=0,Y;for(Y in d)q[T++]=d[Y];return q};
  229. g.UN=function(d){var q=[],T=0,Y;for(Y in d)q[T++]=Y;return q};
  230. g.sN=function(d,q){return d!==null&&q in d};
  231. g.$9=function(d,q){for(var T in d)if(d[T]==q)return!0;return!1};
  232. gb=function(d,q){for(var T in d)if(q.call(void 0,d[T],T,d))return T};
  233. G7D=function(d,q){return(q=gb(d,q))&&d[q]};
  234. g.FV=function(d){for(var q in d)return!1;return!0};
  235. g.LjD=function(d){for(var q in d)delete d[q]};
  236. g.N$=function(d,q,T){return d!==null&&q in d?d[q]:T};
  237. g.RT=function(d,q){for(var T in d)if(!(T in q)||d[T]!==q[T])return!1;for(var Y in q)if(!(Y in d))return!1;return!0};
  238. g.x9=function(d){var q={},T;for(T in d)q[T]=d[T];return q};
  239. g.yl=function(d){if(!d||typeof d!=="object")return d;if(typeof d.clone==="function")return d.clone();if(typeof Map!=="undefined"&&d instanceof Map)return new Map(d);if(typeof Set!=="undefined"&&d instanceof Set)return new Set(d);if(d instanceof Date)return new Date(d.getTime());var q=Array.isArray(d)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(d)||d instanceof DataView?{}:new d.constructor(d.length),T;for(T in d)q[T]=g.yl(d[T]);return q};
  240. g.hz=function(d,q){for(var T,Y,e=1;e<arguments.length;e++){Y=arguments[e];for(T in Y)d[T]=Y[T];for(var U=0;U<k7I.length;U++)T=k7I[U],Object.prototype.hasOwnProperty.call(Y,T)&&(d[T]=Y[T])}};
  241. H2=function(){this.U=null;this.G=!1};
  242. Ql=function(d){H2.call(this);this.T=d};
  243. M$=function(){H2.call(this)};
  244. c2=function(){H2.call(this)};
  245. EN=function(){this.G={};this.U=!0;this.j={}};
  246. jY=function(d,q,T){d.G[q]||(d.G[q]=new Ql(T));return d.G[q]};
  247. P_Y=function(d){d.G.queryid||(d.G.queryid=new c2)};
  248. aT=function(d,q,T){(d=d.G[q])&&d.j(T)};
  249. Az=function(d,q){if(g.sN(d.j,q))return d.j[q];if(d=d.G[q])return d.getValue()};
  250. ph=function(d){var q={},T=g.VN(d.G,function(Y){return Y.G});
  251. g.os(T,function(Y,e){Y=d.j[e]!==void 0?String(d.j[e]):Y.G&&Y.U!==null?String(Y.U):"";Y.length>0&&(q[e]=Y)},d);
  252. return q};
  253. Wjg=function(d){d=ph(d);var q=[];g.os(d,function(T,Y){Y in Object.prototype||typeof T!="undefined"&&q.push([Y,":",T].join(""))});
  254. return q};
  255. u1I=function(d){jY(d,"od",C_X);jY(d,"opac",Zm).G=!0;jY(d,"sbeos",Zm).G=!0;jY(d,"prf",Zm).G=!0;jY(d,"mwt",Zm).G=!0;jY(d,"iogeo",Zm)};
  256. ON=function(d,q){return d.lastIndexOf(q,0)==0};
  257. DHN=function(d,q){var T=d.length-q.length;return T>=0&&d.indexOf(q,T)==T};
  258. g.nh=function(d){return/^[\s\xa0]*$/.test(d)};
  259. g.rb=function(d,q){return d.indexOf(q)!=-1};
  260. B2=function(d,q){return g.rb(d.toLowerCase(),q.toLowerCase())};
  261. g.Lh=function(d,q){var T=0;d=Kh(String(d)).split(".");q=Kh(String(q)).split(".");for(var Y=Math.max(d.length,q.length),e=0;T==0&&e<Y;e++){var U=d[e]||"",b=q[e]||"";do{U=/(\d*)(\D*)(.*)/.exec(U)||["","","",""];b=/(\d*)(\D*)(.*)/.exec(b)||["","","",""];if(U[0].length==0&&b[0].length==0)break;T=GX(U[1].length==0?0:parseInt(U[1],10),b[1].length==0?0:parseInt(b[1],10))||GX(U[2].length==0,b[2].length==0)||GX(U[2],b[2]);U=U[3];b=b[3]}while(T==0)}return T};
  262. GX=function(d,q){return d<q?-1:d>q?1:0};
  263. g.k9=function(){var d=g.oQ.navigator;return d&&(d=d.userAgent)?d:""};
  264. wb=function(d){if(!P2&&!W2||!Dm)return!1;for(var q=0;q<Dm.brands.length;q++){var T=Dm.brands[q].brand;if(T&&g.rb(T,d))return!0}return!1};
  265. fh=function(d){return g.rb(g.k9(),d)};
  266. zX=function(){return P2||W2?!!Dm&&Dm.brands.length>0:!1};
  267. iw=function(){return zX()?!1:fh("Opera")};
  268. wgn=function(){return zX()?!1:fh("Trident")||fh("MSIE")};
  269. fX2=function(){return zX()?wb("Microsoft Edge"):fh("Edg/")};
  270. IT=function(){return fh("Firefox")||fh("FxiOS")};
  271. SY=function(){return fh("Safari")&&!(mf()||(zX()?0:fh("Coast"))||iw()||(zX()?0:fh("Edge"))||fX2()||(zX()?wb("Opera"):fh("OPR"))||IT()||fh("Silk")||fh("Android"))};
  272. mf=function(){return zX()?wb("Chromium"):(fh("Chrome")||fh("CriOS"))&&!(zX()?0:fh("Edge"))||fh("Silk")};
  273. znN=function(){return fh("Android")&&!(mf()||IT()||iw()||fh("Silk"))};
  274. iN_=function(d){var q={};d.forEach(function(T){q[T[0]]=T[1]});
  275. return function(T){return q[T.find(function(Y){return Y in q})]||""}};
  276. IXX=function(d){var q=g.k9();if(d==="Internet Explorer"){if(wgn())if((d=/rv: *([\d\.]*)/.exec(q))&&d[1])q=d[1];else{d="";var T=/MSIE +([\d\.]+)/.exec(q);if(T&&T[1])if(q=/Trident\/(\d.\d)/.exec(q),T[1]=="7.0")if(q&&q[1])switch(q[1]){case "4.0":d="8.0";break;case "5.0":d="9.0";break;case "6.0":d="10.0";break;case "7.0":d="11.0"}else d="7.0";else d=T[1];q=d}else q="";return q}var Y=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");T=[];for(var e;e=Y.exec(q);)T.push([e[1],e[2],e[3]||void 0]);
  277. q=iN_(T);switch(d){case "Opera":if(iw())return q(["Version","Opera"]);if(zX()?wb("Opera"):fh("OPR"))return q(["OPR"]);break;case "Microsoft Edge":if(zX()?0:fh("Edge"))return q(["Edge"]);if(fX2())return q(["Edg"]);break;case "Chromium":if(mf())return q(["Chrome","CriOS","HeadlessChrome"])}return d==="Firefox"&&IT()||d==="Safari"&&SY()||d==="Android Browser"&&znN()||d==="Silk"&&fh("Silk")?(q=T[2])&&q[1]||"":""};
  278. mHX=function(d){if(zX()&&d!=="Silk"){var q=Dm.brands.find(function(T){return T.brand===d});
  279. if(!q||!q.version)return NaN;q=q.version.split(".")}else{q=IXX(d);if(q==="")return NaN;q=q.split(".")}return q.length===0?NaN:Number(q[0])};
  280. lXI=function(){var d=null;if(!S6D)return d;try{var q=function(T){return T};
  281. d=S6D.createPolicy("goog#html",{createHTML:q,createScript:q,createScriptURL:q})}catch(T){}return d};
  282. v2=function(){lw===void 0&&(lw=lXI());return lw};
  283. oT=function(d){this.G=d};
  284. dt=function(d){var q=v2();d=q?q.createScriptURL(d):d;return new oT(d)};
  285. qX=function(d){if(d instanceof oT)return d.G;throw Error("");};
  286. TP=function(d){this.G=d};
  287. g.YS=function(d){if(d instanceof TP)return d.G;throw Error("");};
  288. ev=function(d){this.LH=d};
  289. UD=function(d){return new ev(function(q){return q.substr(0,d.length+1).toLowerCase()===d+":"})};
  290. g.b4=function(d,q){q=q===void 0?v2Q:q;a:if(q=q===void 0?v2Q:q,!(d instanceof TP)){for(var T=0;T<q.length;++T){var Y=q[T];if(Y instanceof ev&&Y.LH(d)){d=new TP(d);break a}}d=void 0}return d||o2f};
  291. dxH=function(d){if(VDn.test(d))return d};
  292. Jn=function(d){return d instanceof TP?g.YS(d):dxH(d)};
  293. g.sD=function(d,q){q=Jn(q);q!==void 0&&(d.href=q)};
  294. $S=function(d,q){throw Error(q===void 0?"unexpected value "+d+"!":q);};
  295. gt=function(d){this.G=d};
  296. Fk=function(d){var q=v2();d=q?q.createHTML(d):d;return new gt(d)};
  297. NX=function(d){if(d instanceof gt)return d.G;throw Error("");};
  298. g.Ry=function(d,q,T,Y){q=Jn(q);return q!==void 0?d.open(q,T,Y):null};
  299. xS=function(d){d=d===void 0?document:d;var q,T;d=(T=(q=d).querySelector)==null?void 0:T.call(q,"script[nonce]");return d==null?"":d.nonce||d.getAttribute("nonce")||""};
  300. yY=function(d){this.G=d};
  301. qI6=function(d){var q=v2();d=q?q.createScript(d):d;return new yY(d)};
  302. hn=function(d){if(d instanceof yY)return d.G;throw Error("");};
  303. HZ=function(d){var q=xS(d.ownerDocument);q&&d.setAttribute("nonce",q)};
  304. g.QY=function(d,q){d.src=qX(q);HZ(d)};
  305. cZ=function(){this.G=TL6[0].toLowerCase()};
  306. YIX=function(d){var q="true".toString(),T=[new cZ];if(T.length===0)throw Error("");if(T.map(function(Y){if(Y instanceof cZ)Y=Y.G;else throw Error("");return Y}).every(function(Y){return"data-loaded".indexOf(Y)!==0}))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.');
  307. d.setAttribute("data-loaded",q)};
  308. e77=function(d,q){d.__closure__error__context__984382||(d.__closure__error__context__984382={});d.__closure__error__context__984382.severity=q};
  309. Uxf=function(d){var q=g.qx("window.location.href");d==null&&(d='Unknown Error of type "null/undefined"');if(typeof d==="string")return{message:d,name:"Unknown error",lineNumber:"Not available",fileName:q,stack:"Not available"};var T=!1;try{var Y=d.lineNumber||d.line||"Not available"}catch(b){Y="Not available",T=!0}try{var e=d.fileName||d.filename||d.sourceURL||g.oQ.$googDebugFname||q}catch(b){e="Not available",T=!0}q=ED(d);if(!(!T&&d.lineNumber&&d.fileName&&d.stack&&d.message&&d.name)){T=d.message;
  310. if(T==null){if(d.constructor&&d.constructor instanceof Function){if(d.constructor.name)T=d.constructor.name;else if(T=d.constructor,jv[T])T=jv[T];else{T=String(T);if(!jv[T]){var U=/function\s+([^\(]+)/m.exec(T);jv[T]=U?U[1]:"[Anonymous]"}T=jv[T]}T='Unknown Error of type "'+T+'"'}else T="Unknown Error of unknown type";typeof d.toString==="function"&&Object.prototype.toString!==d.toString&&(T+=": "+d.toString())}return{message:T,name:d.name||"UnknownError",lineNumber:Y,fileName:e,stack:q||"Not available"}}return{message:d.message,
  311. name:d.name,lineNumber:d.lineNumber,fileName:d.fileName,stack:q}};
  312. ED=function(d,q){q||(q={});q[ay(d)]=!0;var T=d.stack||"",Y=d.cause;Y&&!q[ay(Y)]&&(T+="\nCaused by: ",Y.stack&&Y.stack.indexOf(Y.toString())==0||(T+=typeof Y==="string"?Y:Y.message+"\n"),T+=ED(Y,q));d=d.errors;if(Array.isArray(d)){Y=1;var e;for(e=0;e<d.length&&!(Y>4);e++)q[ay(d[e])]||(T+="\nInner error "+Y++ +": ",d[e].stack&&d[e].stack.indexOf(d[e].toString())==0||(T+=typeof d[e]==="string"?d[e]:d[e].message+"\n"),T+=ED(d[e],q));e<d.length&&(T+="\n... "+(d.length-e)+" more inner errors")}return T};
  313. ay=function(d){var q="";typeof d.toString==="function"&&(q=""+d);return q+d.stack};
  314. An=function(d,q,T){return d.parseFromString(NX(q),T)};
  315. g.pn=function(d){return encodeURIComponent(String(d))};
  316. OD=function(d){return decodeURIComponent(d.replace(/\+/g," "))};
  317. nn=function(d){bB_.test(d)&&(d.indexOf("&")!=-1&&(d=d.replace(XRj,"&amp;")),d.indexOf("<")!=-1&&(d=d.replace(JE7,"&lt;")),d.indexOf(">")!=-1&&(d=d.replace(ssQ,"&gt;")),d.indexOf('"')!=-1&&(d=d.replace($x1,"&quot;")),d.indexOf("'")!=-1&&(d=d.replace(gcN,"&#39;")),d.indexOf("\x00")!=-1&&(d=d.replace(Fqn,"&#0;")));return d};
  318. g.rt=function(d){return d==null?"":String(d)};
  319. tn=function(d){for(var q=0,T=0;T<d.length;++T)q=31*q+d.charCodeAt(T)>>>0;return q};
  320. BZ=function(d){var q=Number(d);return q==0&&g.nh(d)?NaN:q};
  321. NLN=function(d){return String(d).replace(/\-([a-z])/g,function(q,T){return T.toUpperCase()})};
  322. R7D=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
  323. xxf=function(d){return d.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(q,T,Y){return T+Y.toUpperCase()})};
  324. yE2=function(d){var q=1;d=d.split(":");for(var T=[];q>0&&d.length;)T.push(d.shift()),q--;d.length&&T.push(d.join(":"));return T};
  325. Kn=function(){return P2||W2?!!Dm&&!!Dm.platform:!1};
  326. h72=function(){return Kn()?Dm.platform==="Android":fh("Android")};
  327. GP=function(){return fh("iPhone")&&!fh("iPod")&&!fh("iPad")};
  328. Ln=function(){return GP()||fh("iPad")||fh("iPod")};
  329. kS=function(){return Kn()?Dm.platform==="macOS":fh("Macintosh")};
  330. HB6=function(){return Kn()?Dm.platform==="Windows":fh("Windows")};
  331. PZ=function(d){PZ[" "](d);return d};
  332. Qsj=function(d,q){try{return PZ(d[q]),!0}catch(T){}return!1};
  333. cEI=function(d,q){var T=Mjg;return Object.prototype.hasOwnProperty.call(T,d)?T[d]:T[d]=q(d)};
  334. g.WZ=function(d){return cEI(d,function(){return g.Lh(Ecn,d)>=0})};
  335. g.Cn=function(d,q,T){return Math.min(Math.max(d,q),T)};
  336. g.u4=function(d,q){d%=q;return d*q<0?d+q:d};
  337. DG=function(d,q,T){return d+T*(q-d)};
  338. g.wt=function(d,q){this.x=d!==void 0?d:0;this.y=q!==void 0?q:0};
  339. fn=function(d,q){return d==q?!0:d&&q?d.x==q.x&&d.y==q.y:!1};
  340. g.zP=function(d,q){this.width=d;this.height=q};
  341. g.i4=function(d,q){return d==q?!0:d&&q?d.width==q.width&&d.height==q.height:!1};
  342. Iy=function(d){return d.width*d.height};
  343. Sv=function(d,q){this.G=d===mn&&q||""};
  344. l4=function(d){if(d instanceof gt)return d;d=String(d).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;");return Fk(d)};
  345. anH=function(d){return jsg(d)};
  346. jsg=function(d){var q=l4("");return Fk(d.map(function(T){return NX(l4(T))}).join(NX(q).toString()))};
  347. ncf=function(d){var q;if(!AEH.test("div"))throw Error("");if(pRN.indexOf("DIV")!==-1)throw Error("");var T="<div";d&&(T+=ZBf(d));Array.isArray(q)||(q=q===void 0?[]:[q]);OBn.indexOf("DIV")!==-1?T+=">":(d=anH(q.map(function(Y){return Y instanceof gt?Y:l4(String(Y))})),T+=">"+d.toString()+"</div>");
  348. return Fk(T)};
  349. ZBf=function(d){for(var q="",T=Object.keys(d),Y=0;Y<T.length;Y++){var e=T[Y],U=d[e];if(!AEH.test(e))throw Error("");if(U!==void 0&&U!==null){if(/^on./i.test(e))throw Error("");rEj.indexOf(e.toLowerCase())!==-1&&(U=U instanceof TP?U.toString():dxH(String(U))||"about:invalid#zClosurez");U=e+'="'+l4(String(U))+'"';q+=" "+U}}return q};
  350. tjD=function(d){var q=g.CN.apply(1,arguments);if(q.length===0)return dt(d[0]);for(var T=d[0],Y=0;Y<q.length;Y++)T+=encodeURIComponent(q[Y])+d[Y+1];return dt(T)};
  351. VY=function(d){return d?new vZ(oy(d)):BLg||(BLg=new vZ)};
  352. TO=function(d,q){return typeof q==="string"?d.getElementById(q):q};
  353. g.YE=function(d,q){return(q||document).getElementsByTagName(String(d))};
  354. g.eV=function(d,q){return(q||document).querySelectorAll("."+d)};
  355. g.bY=function(d,q){var T=q||document;T.getElementsByClassName?d=T.getElementsByClassName(d)[0]:(T=document,d=d?(q||T).querySelector(d?"."+d:""):g.UM(T,"*",d,q)[0]||null);return d||null};
  356. g.UM=function(d,q,T,Y){d=Y||d;return(q=q&&q!="*"?String(q).toUpperCase():"")||T?d.querySelectorAll(q+(T?"."+T:"")):d.getElementsByTagName("*")};
  357. XE=function(d,q){g.os(q,function(T,Y){Y=="style"?d.style.cssText=T:Y=="class"?d.className=T:Y=="for"?d.htmlFor=T:KqI.hasOwnProperty(Y)?d.setAttribute(KqI[Y],T):ON(Y,"aria-")||ON(Y,"data-")?d.setAttribute(Y,T):d[Y]=T})};
  358. GlN=function(d){d=d.document;d=d.compatMode=="CSS1Compat"?d.documentElement:d.body;return new g.zP(d.clientWidth,d.clientHeight)};
  359. kl7=function(d){var q=LqQ(d);d=d.defaultView;return new g.wt(d.pageXOffset||q.scrollLeft,d.pageYOffset||q.scrollTop)};
  360. LqQ=function(d){return d.scrollingElement?d.scrollingElement:g.J4||d.compatMode!="CSS1Compat"?d.body||d.documentElement:d.documentElement};
  361. sM=function(d){return d?d.defaultView:window};
  362. g_=function(d,q,T){var Y=arguments,e=document,U=Y[1],b=$E(e,String(Y[0]));U&&(typeof U==="string"?b.className=U:Array.isArray(U)?b.className=U.join(" "):XE(b,U));Y.length>2&&PQI(e,b,Y,2);return b};
  363. PQI=function(d,q,T,Y){function e(J){J&&q.appendChild(typeof J==="string"?d.createTextNode(J):J)}
  364. for(;Y<T.length;Y++){var U=T[Y];if(!g.ej(U)||g.UI(U)&&U.nodeType>0)e(U);else{a:{if(U&&typeof U.length=="number"){if(g.UI(U)){var b=typeof U.item=="function"||typeof U.item=="string";break a}if(typeof U==="function"){b=typeof U.item=="function";break a}}b=!1}g.Sj(b?g.rL(U):U,e)}}};
  365. g.FE=function(d){return $E(document,d)};
  366. $E=function(d,q){q=String(q);d.contentType==="application/xhtml+xml"&&(q=q.toLowerCase());return d.createElement(q)};
  367. g.NQ=function(d){return document.createTextNode(String(d))};
  368. g.Rr=function(d,q){d.appendChild(q)};
  369. g.xE=function(d){for(var q;q=d.firstChild;)d.removeChild(q)};
  370. yp=function(d,q,T){d.insertBefore(q,d.childNodes[T]||null)};
  371. g.h4=function(d){return d&&d.parentNode?d.parentNode.removeChild(d):null};
  372. g.HB=function(d,q){if(!d||!q)return!1;if(d.contains&&q.nodeType==1)return d==q||d.contains(q);if(typeof d.compareDocumentPosition!="undefined")return d==q||!!(d.compareDocumentPosition(q)&16);for(;q&&d!=q;)q=q.parentNode;return q==d};
  373. oy=function(d){return d.nodeType==9?d:d.ownerDocument||d.document};
  374. g.Qp=function(d,q){if("textContent"in d)d.textContent=q;else if(d.nodeType==3)d.data=String(q);else if(d.firstChild&&d.firstChild.nodeType==3){for(;d.lastChild!=d.firstChild;)d.removeChild(d.lastChild);d.firstChild.data=String(q)}else g.xE(d),d.appendChild(oy(d).createTextNode(String(q)))};
  375. CQQ=function(d){return d.tagName=="A"&&d.hasAttribute("href")||d.tagName=="INPUT"||d.tagName=="TEXTAREA"||d.tagName=="SELECT"||d.tagName=="BUTTON"?!d.disabled&&(!d.hasAttribute("tabindex")||Wq_(d)):d.hasAttribute("tabindex")&&Wq_(d)};
  376. Wq_=function(d){d=d.tabIndex;return typeof d==="number"&&d>=0&&d<32768};
  377. cB=function(d,q,T){if(!q&&!T)return null;var Y=q?String(q).toUpperCase():null;return MQ(d,function(e){return(!Y||e.nodeName==Y)&&(!T||typeof e.className==="string"&&g.cR(e.className.split(/\s+/),T))},!0)};
  378. MQ=function(d,q,T){d&&!T&&(d=d.parentNode);for(T=0;d;){if(q(d))return d;d=d.parentNode;T++}return null};
  379. vZ=function(d){this.G=d||g.oQ.document||document};
  380. u_N=function(){this.G=this.Qm=null};
  381. A4=function(){};
  382. Zv=function(){if(!pT())throw Error();};
  383. pT=function(){return!(!OM||!OM.performance)};
  384. Dxj=function(d){return g.J4?"webkit"+d:d.toLowerCase()};
  385. nT=function(d){return function(){return d}};
  386. g.r_=function(){};
  387. wRn=function(d){var q=q||0;return function(){return d.apply(this,Array.prototype.slice.call(arguments,0,q))}};
  388. t4=function(d){var q=!1,T;return function(){q||(T=d(),q=!0);return T}};
  389. BB=function(d){var q=d;return function(){if(q){var T=q;q=null;T()}}};
  390. KT=function(d,q,T){var Y=0;return function(e){g.oQ.clearTimeout(Y);var U=arguments;Y=g.oQ.setTimeout(function(){d.apply(T,U)},q)}};
  391. GO=function(d,q,T,Y){this.top=d;this.right=q;this.bottom=T;this.left=Y};
  392. LT=function(d){return d.right-d.left};
  393. kE=function(d,q){return d==q?!0:d&&q?d.top==q.top&&d.right==q.right&&d.bottom==q.bottom&&d.left==q.left:!1};
  394. PB=function(d,q,T){q instanceof g.wt?(d.left+=q.x,d.right+=q.x,d.top+=q.y,d.bottom+=q.y):(d.left+=q,d.right+=q,typeof T==="number"&&(d.top+=T,d.bottom+=T));return d};
  395. g.WB=function(d,q,T,Y){this.left=d;this.top=q;this.width=T;this.height=Y};
  396. CT=function(d,q){return d==q?!0:d&&q?d.left==q.left&&d.width==q.width&&d.top==q.top&&d.height==q.height:!1};
  397. g.Dv=function(d,q,T){if(typeof q==="string")(q=uY(d,q))&&(d.style[q]=T);else for(var Y in q){T=d;var e=q[Y],U=uY(T,Y);U&&(T.style[U]=e)}};
  398. uY=function(d,q){var T=fnf[q];if(!T){var Y=NLN(q);T=Y;d.style[Y]===void 0&&(Y=(g.J4?"Webkit":w_?"Moz":null)+xxf(Y),d.style[Y]!==void 0&&(T=Y));fnf[q]=T}return T};
  399. g.fT=function(d,q){var T=d.style[NLN(q)];return typeof T!=="undefined"?T:d.style[uY(d,q)]||""};
  400. zO=function(d,q){var T=oy(d);return T.defaultView&&T.defaultView.getComputedStyle&&(d=T.defaultView.getComputedStyle(d,null))?d[q]||d.getPropertyValue(q)||"":""};
  401. iY=function(d,q){return zO(d,q)||(d.currentStyle?d.currentStyle[q]:null)||d.style&&d.style[q]};
  402. g.mZ=function(d,q,T){if(q instanceof g.wt){var Y=q.x;q=q.y}else Y=q,q=T;d.style.left=g.Ir(Y,!1);d.style.top=g.Ir(q,!1)};
  403. SV=function(d){try{return d.getBoundingClientRect()}catch(q){return{left:0,top:0,right:0,bottom:0}}};
  404. z7D=function(d){var q=oy(d),T=iY(d,"position"),Y=T=="fixed"||T=="absolute";for(d=d.parentNode;d&&d!=q;d=d.parentNode)if(d.nodeType==11&&d.host&&(d=d.host),T=iY(d,"position"),Y=Y&&T=="static"&&d!=q.documentElement&&d!=q.body,!Y&&(d.scrollWidth>d.clientWidth||d.scrollHeight>d.clientHeight||T=="fixed"||T=="absolute"||T=="relative"))return d;return null};
  405. g.lY=function(d){var q=oy(d),T=new g.wt(0,0);if(d==(q?oy(q):document).documentElement)return T;d=SV(d);q=VY(q);q=kl7(q.G);T.x=d.left+q.x;T.y=d.top+q.y;return T};
  406. InQ=function(d,q){var T=new g.wt(0,0),Y=sM(oy(d));if(!Qsj(Y,"parent"))return T;do{var e=Y==q?g.lY(d):iBj(d);T.x+=e.x;T.y+=e.y}while(Y&&Y!=q&&Y!=Y.parent&&(d=Y.frameElement)&&(Y=Y.parent));return T};
  407. g.vB=function(d,q){d=mxf(d);q=mxf(q);return new g.wt(d.x-q.x,d.y-q.y)};
  408. iBj=function(d){d=SV(d);return new g.wt(d.left,d.top)};
  409. mxf=function(d){if(d.nodeType==1)return iBj(d);d=d.changedTouches?d.changedTouches[0]:d;return new g.wt(d.clientX,d.clientY)};
  410. g.or=function(d,q,T){if(q instanceof g.zP)T=q.height,q=q.width;else if(T==void 0)throw Error("missing height argument");d.style.width=g.Ir(q,!0);d.style.height=g.Ir(T,!0)};
  411. g.Ir=function(d,q){typeof d=="number"&&(d=(q?Math.round(d):d)+"px");return d};
  412. g.Vp=function(d){var q=SIg;if(iY(d,"display")!="none")return q(d);var T=d.style,Y=T.display,e=T.visibility,U=T.position;T.visibility="hidden";T.position="absolute";T.display="inline";d=q(d);T.display=Y;T.position=U;T.visibility=e;return d};
  413. SIg=function(d){var q=d.offsetWidth,T=d.offsetHeight,Y=g.J4&&!q&&!T;return(q===void 0||Y)&&d.getBoundingClientRect?(d=SV(d),new g.zP(d.right-d.left,d.bottom-d.top)):new g.zP(q,T)};
  414. g.dv=function(d,q){d.style.display=q?"":"none"};
  415. qq=function(d){return d?d.passive&&lnN()?d:d.capture||!1:!1};
  416. TI=function(d,q,T,Y){return typeof d.addEventListener==="function"?(d.addEventListener(q,T,qq(Y)),!0):!1};
  417. YQ=function(d){if(d.prerendering)return 3;var q;return(q={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[d.visibilityState||d.webkitVisibilityState||d.mozVisibilityState||""])!=null?q:0};
  418. vcj=function(){};
  419. e0=function(d){d.Www=!0;return d};
  420. ocD=function(){return(P2||W2)&&Dm?Dm.mobile:!XQ()&&(fh("iPod")||fh("iPhone")||fh("Android")||fh("IEMobile"))};
  421. XQ=function(){return(P2||W2)&&Dm?!Dm.mobile&&(fh("iPad")||fh("Android")||fh("Silk")):fh("iPad")||fh("Android")&&!fh("Mobile")||fh("Silk")};
  422. J0=function(d){try{return!!d&&d.location.href!=null&&Qsj(d,"foo")}catch(q){return!1}};
  423. $Q=function(d,q){if(d)for(var T in d)Object.prototype.hasOwnProperty.call(d,T)&&q(d[T],T,d)};
  424. d$j=function(){var d=[];$Q(VjN,function(q){d.push(q)});
  425. return d};
  426. qNg=function(d){var q,T;return(T=(q=/https?:\/\/[^\/]+/.exec(d))==null?void 0:q[0])!=null?T:""};
  427. eiN=function(){var d=TbH("IFRAME"),q={};g.Sj(YNg(),function(T){d.sandbox&&d.sandbox.supports&&d.sandbox.supports(T)&&(q[T]=!0)});
  428. return q};
  429. TbH=function(d,q){q=q===void 0?document:q;return q.createElement(String(d).toLowerCase())};
  430. U$D=function(d){for(var q=d;d&&d!=d.parent;)d=d.parent,J0(d)&&(q=d);return q};
  431. sT7=function(d){d=d||gv();for(var q=new bhX(g.oQ.location.href,!1),T=null,Y=d.length-1,e=Y;e>=0;--e){var U=d[e];!T&&X2I.test(U.url)&&(T=U);if(U.url&&!U.G){q=U;break}}e=null;U=d.length&&d[Y].url;q.depth!==0&&U&&(e=d[Y]);return new JzQ(q,e,T)};
  432. gv=function(){var d=g.oQ,q=[],T=null;do{var Y=d;if(J0(Y)){var e=Y.location.href;T=Y.document&&Y.document.referrer||null}else e=T,T=null;q.push(new bhX(e||""));try{d=Y.parent}catch(U){d=null}}while(d&&Y!==d);Y=0;for(d=q.length-1;Y<=d;++Y)q[Y].depth=d-Y;Y=g.oQ;if(Y.location&&Y.location.ancestorOrigins&&Y.location.ancestorOrigins.length===q.length-1)for(d=1;d<q.length;++d)e=q[d],e.url||(e.url=Y.location.ancestorOrigins[d-1]||"",e.G=!0);return q};
  433. JzQ=function(d,q,T){this.G=d;this.U=q;this.j=T};
  434. bhX=function(d,q){this.url=d;this.G=!!q;this.depth=null};
  435. FQ=function(){this.j="&";this.U={};this.T=0;this.G=[]};
  436. Nq=function(d,q){var T={};T[d]=q;return[T]};
  437. $$2=function(d,q,T,Y,e){var U=[];$Q(d,function(b,J){(b=Rc(b,q,T,Y,e))&&U.push(J+"="+b)});
  438. return U.join(q)};
  439. Rc=function(d,q,T,Y,e){if(d==null)return"";q=q||"&";T=T||",$";typeof T==="string"&&(T=T.split(""));if(d instanceof Array){if(Y||(Y=0),Y<T.length){for(var U=[],b=0;b<d.length;b++)U.push(Rc(d[b],q,T,Y+1,e));return U.join(T[Y])}}else if(typeof d==="object")return e||(e=0),e<2?encodeURIComponent($$2(d,q,T,Y,e+1)):"...";return encodeURIComponent(String(d))};
  440. g9Y=function(d){var q=1,T;for(T in d.U)T.length>q&&(q=T.length);return 3997-q-d.j.length-1};
  441. xQ=function(d,q){this.G=d;this.depth=q};
  442. Nb7=function(){function d(J,F){return J==null?F:J}
  443. var q=gv(),T=Math.max(q.length-1,0),Y=sT7(q);q=Y.G;var e=Y.U,U=Y.j,b=[];U&&b.push(new xQ([U.url,U.G?2:0],d(U.depth,1)));e&&e!=U&&b.push(new xQ([e.url,2],0));q.url&&q!=U&&b.push(new xQ([q.url,0],d(q.depth,T)));Y=g.yC(b,function(J,F){return b.slice(0,b.length-F)});
  444. !q.url||(U||e)&&q!=U||(e=qNg(q.url))&&Y.push([new xQ([e,1],d(q.depth,T))]);Y.push([]);return g.yC(Y,function(J){return FfQ(T,J)})};
  445. FfQ=function(d,q){g.h0(q,function(e){return e.depth>=0});
  446. var T=Hz(q,function(e,U){return Math.max(e,U.depth)},-1),Y=n26(T+2);
  447. Y[0]=d;g.Sj(q,function(e){return Y[e.depth+1]=e.G});
  448. return Y};
  449. RiD=function(){var d=d===void 0?Nb7():d;return d.map(function(q){return Rc(q)})};
  450. x$g=function(d){var q=!1;q=q===void 0?!1:q;OM.google_image_requests||(OM.google_image_requests=[]);var T=TbH("IMG",OM.document);q&&(T.attributionSrc="");T.src=d;OM.google_image_requests.push(T)};
  451. QC=function(d){var q="zS";if(d.zS&&d.hasOwnProperty(q))return d.zS;var T=new d;d.zS=T;d.hasOwnProperty(q);return T};
  452. Mq=function(){this.U=new vcj;this.G=pT()?new Zv:new A4};
  453. yz7=function(){cz();var d=OM.document;return!!(d&&d.body&&d.body.getBoundingClientRect&&typeof OM.setInterval==="function"&&typeof OM.clearInterval==="function"&&typeof OM.setTimeout==="function"&&typeof OM.clearTimeout==="function")};
  454. hiI=function(){cz();return RiD()};
  455. Hh6=function(){};
  456. cz=function(){var d=QC(Hh6);if(!d.G){if(!OM)throw Error("Context has not been set and window is undefined.");d.G=QC(Mq)}return d.G};
  457. Ew=function(){throw Error("Invalid UTF8");};
  458. QT1=function(d,q){q=String.fromCharCode.apply(null,q);return d==null?q:d+q};
  459. jTj=function(d){var q=!1;q=q===void 0?!1:q;if(MYn){if(q&&(cz_?!d.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(d)))throw Error("Found an unpaired surrogate");d=(E97||(E97=new TextEncoder)).encode(d)}else{for(var T=0,Y=new Uint8Array(3*d.length),e=0;e<d.length;e++){var U=d.charCodeAt(e);if(U<128)Y[T++]=U;else{if(U<2048)Y[T++]=U>>6|192;else{if(U>=55296&&U<=57343){if(U<=56319&&e<d.length){var b=d.charCodeAt(++e);if(b>=56320&&b<=57343){U=(U-55296)*1024+
  460. b-56320+65536;Y[T++]=U>>18|240;Y[T++]=U>>12&63|128;Y[T++]=U>>6&63|128;Y[T++]=U&63|128;continue}else e--}if(q)throw Error("Found an unpaired surrogate");U=65533}Y[T++]=U>>12|224;Y[T++]=U>>6&63|128}Y[T++]=U&63|128}}d=T===Y.length?Y:Y.subarray(0,T)}return d};
  461. j0=function(d){g.oQ.setTimeout(function(){throw d;},0)};
  462. amI=function(d){return Array.prototype.map.call(d,function(q){q=q.toString(16);return q.length>1?q:"0"+q}).join("")};
  463. Azj=function(d){for(var q=[],T=0;T<d.length;T+=2)q.push(parseInt(d.substring(T,T+2),16));return q};
  464. g.ac=function(d){for(var q=[],T=0,Y=0;Y<d.length;Y++){var e=d.charCodeAt(Y);e<128?q[T++]=e:(e<2048?q[T++]=e>>6|192:((e&64512)==55296&&Y+1<d.length&&(d.charCodeAt(Y+1)&64512)==56320?(e=65536+((e&1023)<<10)+(d.charCodeAt(++Y)&1023),q[T++]=e>>18|240,q[T++]=e>>12&63|128):q[T++]=e>>12|224,q[T++]=e>>6&63|128),q[T++]=e&63|128)}return q};
  465. g.A0=function(d,q){q===void 0&&(q=0);p2f();q=ZhN[q];for(var T=Array(Math.floor(d.length/3)),Y=q[64]||"",e=0,U=0;e<d.length-2;e+=3){var b=d[e],J=d[e+1],F=d[e+2],N=q[b>>2];b=q[(b&3)<<4|J>>4];J=q[(J&15)<<2|F>>6];F=q[F&63];T[U++]=""+N+b+J+F}N=0;F=Y;switch(d.length-e){case 2:N=d[e+1],F=q[(N&15)<<2]||Y;case 1:d=d[e],T[U]=""+q[d>>2]+q[(d&3)<<4|N>>4]+F+Y}return T.join("")};
  466. g.pp=function(d,q){if(OhI&&!q)d=g.oQ.btoa(d);else{for(var T=[],Y=0,e=0;e<d.length;e++){var U=d.charCodeAt(e);U>255&&(T[Y++]=U&255,U>>=8);T[Y++]=U}d=g.A0(T,q)}return d};
  467. rz6=function(d){var q=[];n96(d,function(T){q.push(T)});
  468. return q};
  469. ZV=function(d){var q=d.length,T=q*3/4;T%3?T=Math.floor(T):g.rb("=.",d[q-1])&&(T=g.rb("=.",d[q-2])?T-2:T-1);var Y=new Uint8Array(T),e=0;n96(d,function(U){Y[e++]=U});
  470. return e!==T?Y.subarray(0,e):Y};
  471. n96=function(d,q){function T(F){for(;Y<d.length;){var N=d.charAt(Y++),R=Ow[N];if(R!=null)return R;if(!g.nh(N))throw Error("Unknown base64 encoding at char: "+N);}return F}
  472. p2f();for(var Y=0;;){var e=T(-1),U=T(0),b=T(64),J=T(64);if(J===64&&e===-1)break;q(e<<2|U>>4);b!=64&&(q(U<<4&240|b>>2),J!=64&&q(b<<6&192|J))}};
  473. p2f=function(){if(!Ow){Ow={};for(var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),q=["+/=","+/","-_=","-_.","-_"],T=0;T<5;T++){var Y=d.concat(q[T].split(""));ZhN[T]=Y;for(var e=0;e<Y.length;e++){var U=Y[e];Ow[U]===void 0&&(Ow[U]=e)}}}};
  474. Bb1=function(d){return tYY[d]||""};
  475. Lf_=function(d){if(!Kfn)return ZV(d);d=GXD.test(d)?d.replace(GXD,Bb1):d;d=atob(d);for(var q=new Uint8Array(d.length),T=0;T<d.length;T++)q[T]=d.charCodeAt(T);return q};
  476. np=function(d,q){kXg(q);this.G=d;if(d!=null&&d.length===0)throw Error("ByteString should be constructed with non-empty values");};
  477. t0=function(){return Pw_||(Pw_=new np(null,rv))};
  478. Kp=function(d){return new Uint8Array(Bz(d)||0)};
  479. Bz=function(d){kXg(rv);var q=d.G;q=q==null||Wfj&&q!=null&&q instanceof Uint8Array?q:typeof q==="string"?Lf_(q):null;return q==null?q:d.G=q};
  480. kXg=function(d){if(d!==rv)throw Error("illegal external caller");};
  481. GI=function(d){d=Error(d);e77(d,"warning");return d};
  482. Lp=function(d,q){if(d!=null){var T;var Y=(T=CwD)!=null?T:CwD={};T=Y[d]||0;T>=q||(Y[d]=T+1,d=Error(),e77(d,"incident"),j0(d))}};
  483. kQ=function(d,q,T){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(T===void 0?0:T)&&Symbol.for&&d?Symbol.for(d):d!=null?Symbol(d):Symbol():q};
  484. Cp=function(d,q){Pz||Wz in d||uVI(d,D$I);d[Wz]|=q};
  485. u$=function(d,q){Pz||Wz in d||uVI(d,D$I);d[Wz]=q};
  486. DV=function(){return typeof BigInt==="function"};
  487. fp=function(d,q){return q===void 0?d.G!==wv&&!!(2&(d.Kf[Wz]|0)):!!(2&q)&&d.G!==wv};
  488. w22=function(d,q){if(d!=null)if(typeof d==="string")d=d?new np(d,rv):t0();else if(d.constructor!==np)if(Wfj&&d!=null&&d instanceof Uint8Array)d=d.length?new np(new Uint8Array(d),rv):t0();else{if(!q)throw Error();d=void 0}return d};
  489. zI=function(d,q){if(typeof q!=="number"||q<0||q>=d.length)throw Error();};
  490. fm_=function(d,q,T){var Y=q&128?0:-1,e=d.length,U;if(U=!!e)U=d[e-1],U=U!=null&&typeof U==="object"&&U.constructor===Object;var b=e+(U?-1:0);for(q=q&128?1:0;q<b;q++)T(q-Y,d[q]);if(U){d=d[e-1];for(var J in d)!isNaN(J)&&T(+J,d[J])}};
  491. Ic=function(d){return d&128?i$:void 0};
  492. vz=function(d){var q=d;if(ziQ(q)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(q))throw Error(String(q));}else if(ihQ(q)&&!Number.isSafeInteger(q))throw Error(String(q));return mA?BigInt(d):d=ImH(d)?d?"1":"0":ziQ(d)?d.trim()||"0":String(d)};
  493. m$j=function(d,q){if(d.length>q.length)return!1;if(d.length<q.length||d===q)return!0;for(var T=0;T<d.length;T++){var Y=d[T],e=q[T];if(Y>e)return!1;if(Y<e)return!0}};
  494. dY=function(d){var q=d>>>0;oc=q;VC=(d-q)/4294967296>>>0};
  495. Ti=function(d){if(d<0){dY(0-d);var q=g.E(qb(oc,VC));d=q.next().value;q=q.next().value;oc=d>>>0;VC=q>>>0}else dY(d)};
  496. eE=function(d,q){var T=q*4294967296+(d>>>0);return Number.isSafeInteger(T)?T:Yj(d,q)};
  497. SN_=function(d,q){var T=q&2147483648;T&&(d=~d+1>>>0,q=~q>>>0,d==0&&(q=q+1>>>0));d=eE(d,q);return typeof d==="number"?T?-d:d:T?"-"+d:d};
  498. Yj=function(d,q){q>>>=0;d>>>=0;if(q<=2097151)var T=""+(4294967296*q+d);else DV()?T=""+(BigInt(q)<<BigInt(32)|BigInt(d)):(T=(d>>>24|q<<8)&16777215,q=q>>16&65535,d=(d&16777215)+T*6777216+q*6710656,T+=q*8147497,q*=2,d>=1E7&&(T+=d/1E7>>>0,d%=1E7),T>=1E7&&(q+=T/1E7>>>0,T%=1E7),T=q+lmD(T)+lmD(d));return T};
  499. lmD=function(d){d=String(d);return"0000000".slice(d.length)+d};
  500. v92=function(){var d=oc,q=VC;q&2147483648?DV()?d=""+(BigInt(q|0)<<BigInt(32)|BigInt(d>>>0)):(q=g.E(qb(d,q)),d=q.next().value,q=q.next().value,d="-"+Yj(d,q)):d=Yj(d,q);return d};
  501. US=function(d){if(d.length<16)Ti(Number(d));else if(DV())d=BigInt(d),oc=Number(d&BigInt(4294967295))>>>0,VC=Number(d>>BigInt(32)&BigInt(4294967295));else{var q=+(d[0]==="-");VC=oc=0;for(var T=d.length,Y=0+q,e=(T-q)%6+q;e<=T;Y=e,e+=6)Y=Number(d.slice(Y,e)),VC*=1E6,oc=oc*1E6+Y,oc>=4294967296&&(VC+=Math.trunc(oc/4294967296),VC>>>=0,oc>>>=0);q&&(q=g.E(qb(oc,VC)),d=q.next().value,q=q.next().value,oc=d,VC=q)}};
  502. qb=function(d,q){q=~q;d?d=~d+1:q+=1;return[d,q]};
  503. bl=function(d){return Array.prototype.slice.call(d)};
  504. Xe=function(d){if(d!=null&&typeof d!=="number")throw Error("Value of float/double field must be a number, found "+typeof d+": "+d);return d};
  505. o9f=function(d){return d.displayName||d.name||"unknown type name"};
  506. JA=function(d){if(d!=null&&typeof d!=="boolean")throw Error("Expected boolean but got "+RnY(d)+": "+d);return d};
  507. gY=function(d){switch(typeof d){case "bigint":return!0;case "number":return sS(d);case "string":return VY_.test(d);default:return!1}};
  508. dXn=function(d){if(typeof d!=="number")throw GI("int32");if(!sS(d))throw GI("int32");return d|0};
  509. Fe=function(d){return d==null?d:dXn(d)};
  510. Nb=function(d){if(d==null)return d;if(typeof d==="string"&&d)d=+d;else if(typeof d!=="number")return;return sS(d)?d|0:void 0};
  511. R4=function(d){if(d==null)return d;if(typeof d==="string"&&d)d=+d;else if(typeof d!=="number")return;return sS(d)?d>>>0:void 0};
  512. YDg=function(d){var q=0;q=q===void 0?0:q;if(!gY(d))throw GI("int64");var T=typeof d;switch(q){case 512:switch(T){case "string":return xj(d);case "bigint":return String(yX(64,d));default:return QX(d)}case 1024:switch(T){case "string":return qDj(d);case "bigint":return vz(yX(64,d));default:return TtY(d)}case 0:switch(T){case "string":return xj(d);case "bigint":return vz(yX(64,d));default:return Mb(d)}default:return $S(q,"Unknown format requested type for int64")}};
  513. cE=function(d){return d==null?d:YDg(d)};
  514. eSf=function(d){if(d[0]==="-")return!1;var q=d.length;return q<20?!0:q===20&&Number(d.substring(0,6))<184467};
  515. UXg=function(d){var q=d.length;return d[0]==="-"?q<20?!0:q===20&&Number(d.substring(0,7))>-922337:q<19?!0:q===19&&Number(d.substring(0,6))<922337};
  516. bn2=function(d){if(d<0){Ti(d);var q=Yj(oc,VC);d=Number(q);return ES(d)?d:q}q=String(d);if(eSf(q))return q;Ti(d);return eE(oc,VC)};
  517. XZ_=function(d){if(UXg(d))return d;US(d);return v92()};
  518. Mb=function(d){gY(d);d=jE(d);ES(d)||(Ti(d),d=SN_(oc,VC));return d};
  519. QX=function(d){gY(d);d=jE(d);if(ES(d))d=String(d);else{var q=String(d);UXg(q)?d=q:(Ti(d),d=v92())}return d};
  520. xj=function(d){gY(d);var q=jE(Number(d));if(ES(q))return String(q);q=d.indexOf(".");q!==-1&&(d=d.substring(0,q));return XZ_(d)};
  521. qDj=function(d){var q=jE(Number(d));if(ES(q))return vz(q);q=d.indexOf(".");q!==-1&&(d=d.substring(0,q));return DV()?vz(yX(64,BigInt(d))):vz(XZ_(d))};
  522. TtY=function(d){return ES(d)?vz(Mb(d)):vz(QX(d))};
  523. Jnj=function(d){if(d==null)return d;var q=typeof d;if(q==="bigint")return String(yX(64,d));if(gY(d)){if(q==="string")return xj(d);if(q==="number")return Mb(d)}};
  524. $XX=function(d){if(d==null)return d;var q=typeof d;if(q==="bigint")return String(syI(64,d));if(gY(d)){if(q==="string")return gY(d),q=jE(Number(d)),ES(q)&&q>=0?d=String(q):(q=d.indexOf("."),q!==-1&&(d=d.substring(0,q)),eSf(d)||(US(d),d=Yj(oc,VC))),d;if(q==="number")return gY(d),d=jE(d),d>=0&&ES(d)?d:bn2(d)}};
  525. gS6=function(d){if(d==null||typeof d=="string"||d instanceof np)return d};
  526. Fng=function(d){if(typeof d!=="string")throw Error();return d};
  527. a4=function(d){if(d!=null&&typeof d!=="string")throw Error();return d};
  528. AA=function(d){return d==null||typeof d==="string"?d:void 0};
  529. p$=function(d,q){if(!(d instanceof q))throw Error("Expected instanceof "+o9f(q)+" but got "+(d&&o9f(d.constructor)));return d};
  530. Ntn=function(d,q,T){if(d!=null&&d[ZY]===OS)return d;if(Array.isArray(d)){var Y=d[Wz]|0;T=Y|T&32|T&2;T!==Y&&u$(d,T);return new q(d)}};
  531. n$=function(d){return d};
  532. tA=function(d){var q=Nx(rY);return q?d[q]:void 0};
  533. BE=function(){};
  534. K$=function(d,q){for(var T in d)!isNaN(T)&&q(d,+T,d[T])};
  535. RSQ=function(d){var q=new BE;K$(d,function(T,Y,e){q[Y]=bl(e)});
  536. q.hX=d.hX;return q};
  537. ynI=function(d,q){q<100||Lp(xXQ,1)};
  538. L$=function(d,q,T,Y){var e=Y!==void 0;Y=!!Y;var U=Nx(rY),b;!e&&Pz&&U&&(b=d[U])&&K$(b,ynI);U=[];var J=d.length;b=4294967295;var F=!1,N=!!(q&64),R=N?q&128?0:-1:void 0;if(!(q&1)){var x=J&&d[J-1];x!=null&&typeof x==="object"&&x.constructor===Object?(J--,b=J):x=void 0;if(N&&!(q&128)&&!e){F=!0;var y;b=((y=Gi)!=null?y:n$)(b-R,R,d,x,void 0)+R}}q=void 0;for(y=0;y<J;y++){var h=d[y];if(h!=null&&(h=T(h,Y))!=null)if(N&&y>=b){var H=y-R,a=void 0;((a=q)!=null?a:q={})[H]=h}else U[y]=h}if(x)for(var p in x)J=x[p],J!=
  539. null&&(J=T(J,Y))!=null&&(y=+p,h=void 0,N&&!Number.isNaN(y)&&(h=y+R)<b?U[h]=J:(y=void 0,((y=q)!=null?y:q={})[p]=J));q&&(F?U.push(q):U[b]=q);e&&Nx(rY)&&(d=tA(d))&&d instanceof BE&&(U[rY]=RSQ(d));return U};
  540. hSX=function(d){switch(typeof d){case "number":return Number.isFinite(d)?d:""+d;case "bigint":return kj(d)?Number(d):""+d;case "boolean":return d?1:0;case "object":if(Array.isArray(d)){var q=d[Wz]|0;return d.length===0&&q&1?void 0:L$(d,q,hSX)}if(d!=null&&d[ZY]===OS)return C$(d);if(d instanceof np){q=d.G;if(q==null)d="";else if(typeof q==="string")d=q;else{if(Kfn){for(var T="",Y=0,e=q.length-10240;Y<e;)T+=String.fromCharCode.apply(null,q.subarray(Y,Y+=10240));T+=String.fromCharCode.apply(null,Y?q.subarray(Y):
  541. q);q=btoa(T)}else q=g.A0(q);d=d.G=q}return d}return}return d};
  542. ul=function(d,q){if(q){Gi=q==null||q===n$||q[HnI]!==QyD?n$:q;try{return C$(d)}finally{Gi=void 0}}return C$(d)};
  543. C$=function(d){d=d.Kf;return L$(d,d[Wz]|0,hSX)};
  544. ESf=function(d){switch(typeof d){case "boolean":return Mvj||(Mvj=[0,void 0,!0]);case "number":return d>0?void 0:d===0?cn2||(cn2=[0,void 0]):[-d,void 0];case "string":return[0,d];case "object":return d}};
  545. wY=function(d,q,T){return d=DY(d,q[0],q[1],T?1:2)};
  546. DY=function(d,q,T,Y){Y=Y===void 0?0:Y;if(d==null){var e=32;T?(d=[T],e|=128):d=[];q&&(e=e&-8380417|(q&1023)<<13)}else{if(!Array.isArray(d))throw Error("narr");e=d[Wz]|0;if(jy7&&1&e)throw Error("rfarr");2048&e&&!(2&e)&&aGX();if(e&256)throw Error("farr");if(e&64)return Y!==0||e&2048||u$(d,e|2048),d;if(T&&(e|=128,T!==d[0]))throw Error("mid");a:{T=d;e|=64;var U=T.length;if(U){var b=U-1,J=T[b];if(J!=null&&typeof J==="object"&&J.constructor===Object){q=e&128?0:-1;b-=q;if(b>=1024)throw Error("pvtlmt");for(var F in J)U=
  547. +F,U<b&&(T[U+q]=J[F],delete J[F]);e=e&-8380417|(b&1023)<<13;break a}}if(q){F=Math.max(q,U-(e&128?0:-1));if(F>1024)throw Error("spvt");e=e&-8380417|(F&1023)<<13}}}e|=64;Y===0&&(e|=2048);u$(d,e);return d};
  548. aGX=function(){if(jy7)throw Error("carr");Lp(Anf,5)};
  549. pZ6=function(d,q){if(typeof d!=="object")return d;if(Array.isArray(d)){var T=d[Wz]|0;d.length===0&&T&1?d=void 0:T&2||(!q||4096&T||16&T?d=f$(d,T,!1,q&&!(T&16)):(Cp(d,34),T&4&&Object.freeze(d)));return d}if(d!=null&&d[ZY]===OS)return q=d.Kf,T=q[Wz]|0,fp(d,T)?d:zi(d,q,T)?il(d,q):f$(q,T);if(d instanceof np)return d};
  550. il=function(d,q,T){d=new d.constructor(q);T&&(d.G=wv);d.U=wv;return d};
  551. f$=function(d,q,T,Y){Y!=null||(Y=!!(34&q));d=L$(d,q,pZ6,Y);Y=32;T&&(Y|=2);q=q&8380609|Y;u$(d,q);return d};
  552. ZnH=function(d){var q=d.Kf,T=q[Wz]|0;return fp(d,T)?zi(d,q,T)?il(d,q,!0):new d.constructor(f$(q,T,!1)):d};
  553. I4=function(d){if(d.G!==wv)return!1;var q=d.Kf;q=f$(q,q[Wz]|0);Cp(q,2048);d.Kf=q;d.G=void 0;d.U=void 0;return!0};
  554. mT=function(d){if(!I4(d)&&fp(d,d.Kf[Wz]|0))throw Error();};
  555. SE=function(d,q){q===void 0&&(q=d[Wz]|0);q&32&&!(q&4096)&&u$(d,q|4096)};
  556. zi=function(d,q,T){return T&2?!0:T&32&&!(T&4096)?(u$(q,T|2),d.G=wv,!0):!1};
  557. vE=function(d,q,T,Y,e){Object.isExtensible(d);q=ll(d.Kf,q,T,e);if(q!==null||Y&&d.U!==wv)return q};
  558. ll=function(d,q,T,Y){if(q===-1)return null;var e=q+(T?0:-1),U=d.length-1;if(!(U<1+(T?0:-1))){if(e>=U){var b=d[U];if(b!=null&&typeof b==="object"&&b.constructor===Object){T=b[q];var J=!0}else if(e===U)T=b;else return}else T=d[e];if(Y&&T!=null){Y=Y(T);if(Y==null)return Y;if(!Object.is(Y,T))return J?b[q]=Y:d[e]=Y,Y}return T}};
  559. VX=function(d,q,T,Y){mT(d);var e=d.Kf;o4(e,e[Wz]|0,q,T,Y);return d};
  560. o4=function(d,q,T,Y,e){var U=T+(e?0:-1),b=d.length-1;if(b>=1+(e?0:-1)&&U>=b){var J=d[b];if(J!=null&&typeof J==="object"&&J.constructor===Object)return J[T]=Y,q}if(U<=b)return d[U]=Y,q;if(Y!==void 0){var F;b=((F=q)!=null?F:q=d[Wz]|0)>>13&1023||536870912;T>=b?Y!=null&&(U={},d[b+(e?0:-1)]=(U[T]=Y,U)):d[U]=Y}return q};
  561. es=function(d,q,T,Y,e){var U=d.Kf,b=U[Wz]|0;Y=fp(d,b)?1:Y;e=!!e||Y===3;Y===2&&I4(d)&&(U=d.Kf,b=U[Wz]|0);d=d2(U,q);var J=d===qA?7:d[Wz]|0,F=Tg(J,b);var N=4&F?!1:!0;if(N){4&F&&(d=bl(d),J=0,F=YJ(F,b),b=o4(U,b,q,d));for(var R=0,x=0;R<d.length;R++){var y=T(d[R]);y!=null&&(d[x++]=y)}x<R&&(d.length=x);T=(F|4)&-513;F=T&=-1025;F&=-4097}F!==J&&(u$(d,F),2&F&&Object.freeze(d));return d=OnN(d,F,U,b,q,Y,N,e)};
  562. OnN=function(d,q,T,Y,e,U,b,J){var F=q;U===1||(U!==4?0:2&q||!(16&q)&&32&Y)?Uy(q)||(q|=!d.length||b&&!(4096&q)||32&Y&&!(4096&q||16&q)?2:256,q!==F&&u$(d,q),Object.freeze(d)):(U===2&&Uy(q)&&(d=bl(d),F=0,q=YJ(q,Y),Y=o4(T,Y,e,d)),Uy(q)||(J||(q|=16),q!==F&&u$(d,q)));2&q||!(4096&q||16&q)||SE(T,Y);return d};
  563. d2=function(d,q,T){d=ll(d,q,T);return Array.isArray(d)?d:qA};
  564. Tg=function(d,q){2&q&&(d|=2);return d|1};
  565. Uy=function(d){return!!(2&d)&&!!(4&d)||!!(256&d)};
  566. nSI=function(d){return w22(d,!0)};
  567. bD=function(d,q){d=vE(d,q,void 0,void 0,nSI);return d==null?t0():d};
  568. rn6=function(d,q,T){mT(d);var Y=d.Kf,e=Y[Wz]|0;if(q==null)return o4(Y,e,3),d;if(!Array.isArray(q))throw GI();var U=q===qA?7:q[Wz]|0,b=U,J=Uy(U),F=J||Object.isFrozen(q);J||(U=0);F||(q=bl(q),b=0,U=YJ(U,e),F=!1);U|=5;J=4&U?512&U?512:1024&U?1024:0:void 0;J=J!=null?J:0;for(var N=0;N<q.length;N++){var R=q[N],x=T(R,J);Object.is(R,x)||(F&&(q=bl(q),b=0,U=YJ(U,e),F=!1),q[N]=x)}U!==b&&(F&&(q=bl(q),U=YJ(U,e)),u$(q,U));o4(Y,e,3,q);return d};
  569. X2=function(d,q,T,Y,e){mT(d);var U=d.Kf;o4(U,U[Wz]|0,q,(Y==="0"?Number(T)===0:T===Y)?void 0:T,e);return d};
  570. JI=function(d,q,T){if(q&2)throw Error();var Y=Ic(q),e=d2(d,T,Y),U=e===qA?7:e[Wz]|0,b=Tg(U,q);if(2&b||Uy(b)||16&b)e=bl(e),U=0,b=YJ(b,q),o4(d,q,T,e,Y);b&=-13;b!==U&&u$(e,b);return e};
  571. F2=function(d,q,T,Y){mT(d);var e=d.Kf,U=e[Wz]|0;if(Y==null){var b=sy(e);if($J(b,e,U,T)===q)b.set(T,0);else return d}else U=g2(e,U,T,q);o4(e,U,q,Y);return d};
  572. NA=function(d,q,T,Y){var e=d[Wz]|0,U=Ic(e);e=g2(d,e,T,q,U);o4(d,e,q,Y,U)};
  573. Rl=function(d,q,T){d=d.Kf;return $J(sy(d),d,void 0,q)===T?T:-1};
  574. sy=function(d){if(Pz){var q;return(q=d[xJ])!=null?q:d[xJ]=new Map}if(xJ in d)return d[xJ];q=new Map;Object.defineProperty(d,xJ,{value:q});return q};
  575. g2=function(d,q,T,Y,e){Y===0||T.includes(Y);var U=sy(d),b=$J(U,d,q,T,e);b!==Y&&(b&&(q=o4(d,q,b,void 0,e)),U.set(T,Y));return q};
  576. $J=function(d,q,T,Y,e){var U=d.get(Y);if(U!=null)return U;for(var b=U=0;b<Y.length;b++){var J=Y[b];ll(q,J,e)!=null&&(U!==0&&(T=o4(q,T,U,void 0,e)),U=J)}d.set(Y,U);return U};
  577. yw=function(d,q,T){var Y=d[Wz]|0,e=Ic(Y),U=ll(d,T,e);if(U!=null&&U[ZY]===OS){if(!fp(U))return I4(U),U.Kf;var b=U.Kf}else Array.isArray(U)&&(b=U);if(b){var J=b[Wz]|0;J&2&&(b=f$(b,J))}b=wY(b,q,!0);b!==U&&o4(d,Y,T,b,e);return b};
  578. tvY=function(d,q,T,Y,e){var U=!1;Y=ll(d,Y,e,function(b){var J=Ntn(b,T,q);U=J!==b&&J!=null;return J});
  579. if(Y!=null)return U&&!fp(Y)&&SE(d,q),Y};
  580. hI=function(d,q,T,Y){var e=d.Kf,U=e[Wz]|0;q=tvY(e,U,q,T,Y);if(q==null)return q;U=e[Wz]|0;if(!fp(d,U)){var b=ZnH(q);b!==q&&(I4(d)&&(e=d.Kf,U=e[Wz]|0),q=b,U=o4(e,U,T,q,Y),SE(e,U))}return q};
  581. BtH=function(d,q,T,Y,e,U,b,J){var F=fp(d,T);U=F?1:U;b=!!b||U===3;F=J&&!F;(U===2||F)&&I4(d)&&(q=d.Kf,T=q[Wz]|0);d=d2(q,e);var N=d===qA?7:d[Wz]|0,R=Tg(N,T);if(J=!(4&R)){var x=d,y=T,h=!!(2&R);h&&(y|=2);for(var H=!h,a=!0,p=0,t=0;p<x.length;p++){var n=Ntn(x[p],Y,y);if(n instanceof Y){if(!h){var K=fp(n);H&&(H=!K);a&&(a=K)}x[t++]=n}}t<p&&(x.length=t);R|=4;R=a?R&-4097:R|4096;R=H?R|8:R&-9}R!==N&&(u$(d,R),2&R&&Object.freeze(d));if(F&&!(8&R||!d.length&&(U===1||(U!==4?0:2&R||!(16&R)&&32&T)))){Uy(R)&&(d=bl(d),
  582. R=YJ(R,T),T=o4(q,T,e,d));Y=d;F=R;for(N=0;N<Y.length;N++)x=Y[N],R=ZnH(x),x!==R&&(Y[N]=R);F|=8;R=F=Y.length?F|4096:F&-4097;u$(d,R)}return d=OnN(d,R,q,T,e,U,J,b)};
  583. HV=function(d,q,T){var Y=d.Kf;return BtH(d,Y,Y[Wz]|0,q,T,void 0===KnN?2:4,!1,!0)};
  584. GPn=function(d,q){d!=null?p$(d,q):d=void 0;return d};
  585. Qw=function(d,q,T,Y,e){Y=GPn(Y,q);VX(d,T,Y,e);Y&&!fp(Y)&&SE(d.Kf);return d};
  586. LnH=function(d,q,T,Y,e){e=GPn(e,q);F2(d,T,Y,e);e&&!fp(e)&&SE(d.Kf);return d};
  587. al=function(d,q,T,Y){mT(d);var e=d.Kf,U=e[Wz]|0;if(Y==null)return o4(e,U,T),d;if(!Array.isArray(Y))throw GI();for(var b=Y===qA?7:Y[Wz]|0,J=b,F=Uy(b),N=F||Object.isFrozen(Y),R=!0,x=!0,y=0;y<Y.length;y++){var h=Y[y];p$(h,q);F||(h=fp(h),R&&(R=!h),x&&(x=h))}F||(b=R?13:5,b=x?b&-4097:b|4096);N&&b===J||(Y=bl(Y),J=0,b=YJ(b,U));b!==J&&u$(Y,b);U=o4(e,U,T,Y);2&b||!(4096&b||16&b)||SE(e,U);return d};
  588. YJ=function(d,q){return d=(2&q?d|2:d&-3)&-273};
  589. AI=function(d,q,T,Y){var e=Y;mT(d);Y=d.Kf;d=BtH(d,Y,Y[Wz]|0,T,q,2,!0);e=e!=null?p$(e,T):new T;d.push(e);q=T=d===qA?7:d[Wz]|0;(e=fp(e))?(T&=-9,d.length===1&&(T&=-4097)):T|=4096;T!==q&&u$(d,T);e||SE(Y)};
  590. p2=function(d,q,T){T=T===void 0?0:T;d=Nb(vE(d,q));return d!=null?d:T};
  591. Zc=function(d,q){var T=T===void 0?0:T;var Y;return(Y=R4(vE(d,q)))!=null?Y:T};
  592. P4n=function(d,q,T){T=T===void 0?kPI:T;d=vE(d,q);q=typeof d;d=d==null?d:q==="bigint"?vz(yX(64,d)):gY(d)?q==="string"?qDj(d):TtY(d):void 0;return d!=null?d:T};
  593. Oy=function(d,q,T,Y){T=T===void 0?"":T;var e;return(e=AA(vE(d,q,Y)))!=null?e:T};
  594. n2=function(d,q){var T=T===void 0?0:T;d=vE(d,q);d=d==null?d:sS(d)?d|0:void 0;return d!=null?d:T};
  595. tI=function(d,q){return AA(vE(d,q,void 0,r2))};
  596. BV=function(d,q,T){return VX(d,q,cE(T))};
  597. K2=function(d,q,T){return VX(d,q,a4(T))};
  598. Gg=function(d,q,T,Y){return X2(d,q,a4(T),"",Y)};
  599. L2=function(d,q,T){if(T!=null){if(!sS(T))throw GI("enum");T|=0}return VX(d,q,T)};
  600. Wn6=function(d,q){return Error("Invalid wire type: "+d+" (at position "+q+")")};
  601. kJ=function(){return Error("Failed to read varint, encoding is invalid.")};
  602. C46=function(d,q){return Error("Tried to read past the end of the data "+q+" > "+d)};
  603. PV=function(d,q,T){this.buffer=d;if(T&&!q)throw Error();this.G=q};
  604. WV=function(d,q){if(typeof d==="string")return new PV(Lf_(d),q);if(Array.isArray(d))return new PV(new Uint8Array(d),q);if(d.constructor===Uint8Array)return new PV(d,!1);if(d.constructor===ArrayBuffer)return d=new Uint8Array(d),new PV(d,!1);if(d.constructor===np)return q=Bz(d)||new Uint8Array(0),new PV(q,!0,d);if(d instanceof Uint8Array)return d=d.constructor===Uint8Array?d:new Uint8Array(d.buffer,d.byteOffset,d.byteLength),new PV(d,!1);throw Error();};
  605. C2=function(d,q,T,Y){this.U=null;this.S=!1;this.G=this.j=this.T=0;this.init(d,q,T,Y)};
  606. Dc=function(d){var q=0,T=0,Y=0,e=d.U,U=d.G;do{var b=e[U++];q|=(b&127)<<Y;Y+=7}while(Y<32&&b&128);Y>32&&(T|=(b&127)>>4);for(Y=3;Y<32&&b&128;Y+=7)b=e[U++],T|=(b&127)<<Y;uD(d,U);if(b<128)return SN_(q>>>0,T>>>0);throw kJ();};
  607. uD=function(d,q){d.G=q;if(q>d.j)throw C46(d.j,q);};
  608. w2=function(d){var q=d.U,T=d.G,Y=q[T++],e=Y&127;if(Y&128&&(Y=q[T++],e|=(Y&127)<<7,Y&128&&(Y=q[T++],e|=(Y&127)<<14,Y&128&&(Y=q[T++],e|=(Y&127)<<21,Y&128&&(Y=q[T++],e|=Y<<28,Y&128&&q[T++]&128&&q[T++]&128&&q[T++]&128&&q[T++]&128&&q[T++]&128)))))throw kJ();uD(d,T);return e};
  609. f2=function(d){var q=d.U,T=d.G,Y=q[T+0],e=q[T+1],U=q[T+2];q=q[T+3];uD(d,d.G+4);return(Y<<0|e<<8|U<<16|q<<24)>>>0};
  610. zg=function(d){var q=f2(d);d=f2(d);return eE(q,d)};
  611. iD=function(d){var q=f2(d),T=f2(d);d=(T>>31)*2+1;var Y=T>>>20&2047;q=4294967296*(T&1048575)+q;return Y==2047?q?NaN:d*Infinity:Y==0?d*4.9E-324*q:d*Math.pow(2,Y-1075)*(q+4503599627370496)};
  612. Il=function(d){for(var q=0,T=d.G,Y=T+10,e=d.U;T<Y;){var U=e[T++];q|=U;if((U&128)===0)return uD(d,T),!!(q&127)}throw kJ();};
  613. uk1=function(d,q){if(q<0)throw Error("Tried to read a negative byte length: "+q);var T=d.G,Y=T+q;if(Y>d.j)throw C46(q,d.j-T);d.G=Y;return T};
  614. wZQ=function(d,q){if(q==0)return t0();var T=uk1(d,q);d.Xj&&d.S?T=d.U.subarray(T,T+q):(d=d.U,q=T+q,T=T===q?new Uint8Array(0):DX2?d.slice(T,q):new Uint8Array(d.subarray(T,q)));return T.length==0?t0():new np(T,rv)};
  615. Ss=function(d,q,T,Y){if(mg.length){var e=mg.pop();e.init(d,q,T,Y);d=e}else d=new C2(d,q,T,Y);this.G=d;this.j=this.G.G;this.U=this.T=-1;fGj(this,Y)};
  616. fGj=function(d,q){q=q===void 0?{}:q;d.o3=q.o3===void 0?!1:q.o3};
  617. zS2=function(d,q,T,Y){if(lD.length){var e=lD.pop();fGj(e,Y);e.G.init(d,q,T,Y);return e}return new Ss(d,q,T,Y)};
  618. in6=function(d){var q=d.G;if(q.G==q.j)return!1;d.j=d.G.G;var T=w2(d.G)>>>0;q=T>>>3;T&=7;if(!(T>=0&&T<=5))throw Wn6(T,d.j);if(q<1)throw Error("Invalid field number: "+q+" (at position "+d.j+")");d.T=q;d.U=T;return!0};
  619. vV=function(d){switch(d.U){case 0:d.U!=0?vV(d):Il(d.G);break;case 1:d=d.G;uD(d,d.G+8);break;case 2:if(d.U!=2)vV(d);else{var q=w2(d.G)>>>0;d=d.G;uD(d,d.G+q)}break;case 5:d=d.G;uD(d,d.G+4);break;case 3:q=d.T;do{if(!in6(d))throw Error("Unmatched start-group tag: stream EOF");if(d.U==4){if(d.T!=q)throw Error("Unmatched end-group tag");break}vV(d)}while(1);break;default:throw Wn6(d.U,d.j);}};
  620. ol=function(d,q,T){var Y=d.G.j,e=w2(d.G)>>>0,U=d.G.G+e,b=U-Y;b<=0&&(d.G.j=U,T(q,d,void 0,void 0,void 0),b=U-d.G.G);if(b)throw Error("Message parsing ended unexpectedly. Expected to read "+(e+" bytes, instead read "+(e-b)+" bytes, either the data ended unexpectedly or the message misreported its own length"));d.G.G=U;d.G.j=Y};
  621. gz=function(d){var q=w2(d.G)>>>0;d=d.G;var T=uk1(d,q);d=d.U;if(IG6){var Y=d,e;(e=J3)||(e=J3=new TextDecoder("utf-8",{fatal:!0}));q=T+q;Y=T===0&&q===Y.length?Y:Y.subarray(T,q);try{var U=e.decode(Y)}catch(N){if($Y===void 0){try{e.decode(new Uint8Array([128]))}catch(R){}try{e.decode(new Uint8Array([97])),$Y=!0}catch(R){$Y=!1}}!$Y&&(J3=void 0);throw N;}}else{U=T;q=U+q;T=[];for(var b=null,J,F;U<q;)J=d[U++],J<128?T.push(J):J<224?U>=q?Ew():(F=d[U++],J<194||(F&192)!==128?(U--,Ew()):T.push((J&31)<<6|F&63)):
  622. J<240?U>=q-1?Ew():(F=d[U++],(F&192)!==128||J===224&&F<160||J===237&&F>=160||((e=d[U++])&192)!==128?(U--,Ew()):T.push((J&15)<<12|(F&63)<<6|e&63)):J<=244?U>=q-2?Ew():(F=d[U++],(F&192)!==128||(J<<28)+(F-144)>>30!==0||((e=d[U++])&192)!==128||((Y=d[U++])&192)!==128?(U--,Ew()):(J=(J&7)<<18|(F&63)<<12|(e&63)<<6|Y&63,J-=65536,T.push((J>>10&1023)+55296,(J&1023)+56320))):Ew(),T.length>=8192&&(b=QT1(b,T),T.length=0);U=QT1(b,T)}return U};
  623. mX7=function(d){var q=w2(d.G)>>>0;return wZQ(d.G,q)};
  624. Fj=function(d,q){this.U=d>>>0;this.G=q>>>0};
  625. lG6=function(d){if(!d)return SDj||(SDj=new Fj(0,0));if(!/^\d+$/.test(d))return null;US(d);return new Fj(oc,VC)};
  626. NV=function(d,q){this.U=d>>>0;this.G=q>>>0};
  627. oS1=function(d){if(!d)return vSN||(vSN=new NV(0,0));if(!/^-?\d+$/.test(d))return null;US(d);return new NV(oc,VC)};
  628. Rb=function(){this.G=[]};
  629. xY=function(d,q,T){for(;T>0||q>127;)d.G.push(q&127|128),q=(q>>>7|T<<25)>>>0,T>>>=7;d.G.push(q)};
  630. yu=function(d,q){for(;q>127;)d.G.push(q&127|128),q>>>=7;d.G.push(q)};
  631. VvN=function(d,q){if(q>=0)yu(d,q);else{for(var T=0;T<9;T++)d.G.push(q&127|128),q>>=7;d.G.push(1)}};
  632. h3=function(d,q){d.G.push(q>>>0&255);d.G.push(q>>>8&255);d.G.push(q>>>16&255);d.G.push(q>>>24&255)};
  633. dQg=function(){this.j=[];this.U=0;this.G=new Rb};
  634. H0=function(d,q){q.length!==0&&(d.j.push(q),d.U+=q.length)};
  635. qMn=function(d,q){Qu(d,q,2);q=d.G.end();H0(d,q);q.push(d.U);return q};
  636. T_Q=function(d,q){var T=q.pop();for(T=d.U+d.G.length()-T;T>127;)q.push(T&127|128),T>>>=7,d.U++;q.push(T);d.U++};
  637. Qu=function(d,q,T){yu(d.G,q*8+T)};
  638. YM_=function(d,q,T){if(T!=null){switch(typeof T){case "string":lG6(T)}Qu(d,q,1);switch(typeof T){case "number":d=d.G;dY(T);h3(d,oc);h3(d,VC);break;case "bigint":T=BigInt.asUintN(64,T);T=new Fj(Number(T&BigInt(4294967295)),Number(T>>BigInt(32)));d=d.G;q=T.G;h3(d,T.U);h3(d,q);break;default:T=lG6(T),d=d.G,q=T.G,h3(d,T.U),h3(d,q)}}};
  639. MV=function(d,q,T){Qu(d,q,2);yu(d.G,T.length);H0(d,d.G.end());H0(d,T)};
  640. c0=function(){function d(){throw Error();}
  641. Object.setPrototypeOf(d,d.prototype);return d};
  642. Et=function(d,q,T){this.Kf=DY(d,q,T)};
  643. eu2=function(d,q){if(q==null||q=="")return new d;q=JSON.parse(q);if(!Array.isArray(q))throw Error("dnarr");Cp(q,32);return new d(q)};
  644. ab=function(d,q,T){this.Wp=d;this.Bp=q;d=Nx(j8);this.G=!!d&&T===d||!1};
  645. A3=function(d,q){var T=T===void 0?j8:T;return new ab(d,q,T)};
  646. bT6=function(d,q,T,Y,e){q=UQH(q,Y);q!=null&&(T=qMn(d,T),e(q,d),T_Q(d,T))};
  647. Ot=function(d,q,T,Y){var e=Y[d];if(e)return e;e={};e.fQ=Y;e.Jy=ESf(Y[0]);var U=Y[1],b=1;U&&U.constructor===Object&&(e.extensions=U,U=Y[++b],typeof U==="function"&&(e.RY=!0,pg!=null||(pg=U),ZL!=null||(ZL=Y[b+1]),U=Y[b+=2]));for(var J={};U&&Array.isArray(U)&&U.length&&typeof U[0]==="number"&&U[0]>0;){for(var F=0;F<U.length;F++)J[U[F]]=U;U=Y[++b]}for(F=1;U!==void 0;){typeof U==="number"&&(F+=U,U=Y[++b]);var N=void 0;if(U instanceof ab)var R=U;else R=XB6,b--;U=void 0;if((U=R)==null?0:U.G){U=Y[++b];N=
  648. Y;var x=b;typeof U==="function"&&(U=U(),N[x]=U);N=U}U=Y[++b];x=F+1;typeof U==="number"&&U<0&&(x-=U,U=Y[++b]);for(;F<x;F++){var y=J[F];N?T(e,F,R,N,y):q(e,F,R,y)}}return Y[d]=e};
  649. sr2=function(d){return Array.isArray(d)?d[0]instanceof ab?d:[J4I,d]:[d,void 0]};
  650. UQH=function(d,q){if(d instanceof Et)return d.Kf;if(Array.isArray(d))return wY(d,q,!1)};
  651. ng=function(d,q,T,Y){var e=T.Wp;d[q]=Y?function(U,b,J){return e(U,b,J,Y)}:e};
  652. t3=function(d,q,T,Y,e){var U=T.Wp,b,J;d[q]=function(F,N,R){return U(F,N,R,J||(J=Ot(rz,ng,t3,Y).Jy),b||(b=B0(Y)),e)}};
  653. B0=function(d){var q=d[Kg];if(q!=null)return q;var T=Ot(rz,ng,t3,d);q=T.RY?function(Y,e){return pg(Y,e,T)}:function(Y,e){for(;in6(e)&&e.U!=4;){var U=e.T,b=T[U];
  654. if(b==null){var J=T.extensions;J&&(J=J[U])&&(J=$Q_(J),J!=null&&(b=T[U]=J))}if(b==null||!b(e,Y,U)){J=e;b=J.j;vV(J);if(J.o3)var F=void 0;else{var N=J.G.G-b;J.G.G=b;F=wZQ(J.G,N)}N=J=b=void 0;var R=Y;F&&((b=(J=(N=R[rY])!=null?N:R[rY]=new BE)[U])!=null?b:J[U]=[]).push(F)}}if(Y=tA(Y))Y.hX=T.fQ[gE6];return!0};
  655. d[Kg]=q;d[gE6]=FZX.bind(d);return q};
  656. FZX=function(d,q,T,Y){var e=this[rz],U=this[Kg],b=wY(void 0,e.Jy,!1),J=tA(d);if(J){var F=!1,N=e.extensions;if(N){e=function(H,a,p){if(p.length!==0)if(N[a])for(H=g.E(p),a=H.next();!a.done;a=H.next()){a=zS2(a.value);try{F=!0,U(b,a)}finally{a.free()}}else Y==null||Y(d,a,p)};
  657. if(q==null)K$(J,e);else if(J!=null){var R=J[q];R&&e(J,q,R)}if(F){var x=d[Wz]|0;if(x&2&&x&2048&&(T==null||!T.bzf))throw Error();var y=Ic(x),h=function(H,a){if(ll(d,H,y)!=null)switch(T==null?void 0:T.FNr){case 1:return;default:throw Error();}a!=null&&(x=o4(d,x,H,a,y));delete J[H]};
  658. q==null?fm_(b,b[Wz]|0,function(H,a){h(H,a)}):h(q,ll(b,q,y))}}}};
  659. $Q_=function(d){d=sr2(d);var q=d[0].Wp;if(d=d[1]){var T=B0(d),Y=Ot(rz,ng,t3,d).Jy;return function(e,U,b){return q(e,U,b,Y,T)}}return q};
  660. kY=function(d,q,T){d[q]=T.Bp};
  661. wz=function(d,q,T,Y){var e,U,b=T.Bp;d[q]=function(J,F,N){return b(J,F,N,U||(U=Ot(DL,kY,wz,Y).Jy),e||(e=N_1(Y)))}};
  662. N_1=function(d){var q=d[RuN];if(!q){var T=Ot(DL,kY,wz,d);q=function(Y,e){return xQ6(Y,e,T)};
  663. d[RuN]=q}return q};
  664. xQ6=function(d,q,T){fm_(d,d[Wz]|0,function(Y,e){if(e!=null){var U=y42(T,Y);U?U(q,e,Y):Y<500||Lp(hu6,3)}});
  665. (d=tA(d))&&K$(d,function(Y,e,U){H0(q,q.G.end());for(Y=0;Y<U.length;Y++)H0(q,Bz(U[Y])||new Uint8Array(0))})};
  666. y42=function(d,q){var T=d[q];if(T)return T;if(T=d.extensions)if(T=T[q]){T=sr2(T);var Y=T[0].Bp;if(T=T[1]){var e=N_1(T),U=Ot(DL,kY,wz,T).Jy;T=d.RY?ZL(U,e):function(b,J,F){return Y(b,J,F,U,e)}}else T=Y;
  667. return d[q]=T}};
  668. fg=function(d,q,T){if(Array.isArray(q)){var Y=q[Wz]|0;if(Y&4)return q;for(var e=0,U=0;e<q.length;e++){var b=d(q[e]);b!=null&&(q[U++]=b)}U<e&&(q.length=U);T&&(u$(q,(Y|5)&-1537),Y&2&&Object.freeze(q));return q}};
  669. zU=function(d,q,T){return new ab(d,q,T)};
  670. Ib=function(d,q,T){return new ab(d,q,T)};
  671. m3=function(d,q,T){o4(d,d[Wz]|0,q,T,Ic(d[Wz]|0))};
  672. S8=function(d,q,T){q=q==null||typeof q==="number"?q:q==="NaN"||q==="Infinity"||q==="-Infinity"?Number(q):void 0;q!=null&&(Qu(d,T,1),d=d.G,T=HTg||(HTg=new DataView(new ArrayBuffer(8))),T.setFloat64(0,+q,!0),oc=T.getUint32(0,!0),VC=T.getUint32(4,!0),h3(d,oc),h3(d,VC))};
  673. lL=function(d,q,T){q=Jnj(q);if(q!=null){switch(typeof q){case "string":oS1(q)}if(q!=null)switch(Qu(d,T,0),typeof q){case "number":d=d.G;Ti(q);xY(d,oc,VC);break;case "bigint":T=BigInt.asUintN(64,q);T=new NV(Number(T&BigInt(4294967295)),Number(T>>BigInt(32)));xY(d.G,T.U,T.G);break;default:T=oS1(q),xY(d.G,T.U,T.G)}}};
  674. v0=function(d,q,T){q=Nb(q);q!=null&&q!=null&&(Qu(d,T,0),VvN(d.G,q))};
  675. Qr1=function(d,q,T){q=q==null||typeof q==="boolean"?q:typeof q==="number"?!!q:void 0;q!=null&&(Qu(d,T,0),d.G.G.push(q?1:0))};
  676. MV1=function(d,q,T){q=AA(q);q!=null&&MV(d,T,jTj(q))};
  677. c4D=function(d,q,T,Y,e){q=UQH(q,Y);q!=null&&(T=qMn(d,T),e(q,d),T_Q(d,T))};
  678. jr2=function(){var d=ob;this.G=EEg;this.isRepeated=0;this.U=hI;this.defaultValue=void 0;this.j=d.messageId!=null?i$:void 0};
  679. avg=function(d,q){return function(T,Y){var e={Re:!0};Y&&Object.assign(e,Y);T=zS2(T,void 0,void 0,e);try{var U=new d,b=U.Kf;B0(q)(b,T);var J=U}finally{T.free()}return J}};
  680. A4_=function(d){return function(){var q=new dQg;xQ6(this.Kf,q,Ot(DL,kY,wz,d));H0(q,q.G.end());for(var T=new Uint8Array(q.U),Y=q.j,e=Y.length,U=0,b=0;b<e;b++){var J=Y[b];T.set(J,U);U+=J.length}q.j=[T];return T}};
  681. Vu=function(d){return function(q){return eu2(d,q)}};
  682. dQ=function(d){this.Kf=DY(d)};
  683. pB_=function(d){this.j=d;this.G=-1;this.U=this.T=0};
  684. qj=function(d,q){return function(){var T=g.CN.apply(0,arguments);if(d.G>-1)return q.apply(null,g.RQ(T));try{return d.G=d.j.G.now(),q.apply(null,g.RQ(T))}finally{d.T+=d.j.G.now()-d.G,d.G=-1,d.U+=1}}};
  685. ZTD=function(d,q){this.U=d;this.j=q;this.G=new pB_(d)};
  686. OT7=function(){this.G={}};
  687. r42=function(){var d=T3().flags,q=nE6;d=d.G[q.key];if(q.valueType==="proto"){try{var T=JSON.parse(d);if(Array.isArray(T))return T}catch(Y){}return q.defaultValue}return typeof d===typeof q.defaultValue?d:q.defaultValue};
  688. GO7=function(){this.j=void 0;this.U=this.X=0;this.S=-1;this.QU=new EN;jY(this.QU,"mv",tVn).G=!0;jY(this.QU,"omid",Zm);jY(this.QU,"epoh",Zm).G=!0;jY(this.QU,"epph",Zm).G=!0;jY(this.QU,"umt",Zm).G=!0;jY(this.QU,"phel",Zm).G=!0;jY(this.QU,"phell",Zm).G=!0;jY(this.QU,"oseid",B_Q).G=!0;var d=this.QU;d.G.sloi||(d.G.sloi=new M$);d.G.sloi.G=!0;jY(this.QU,"mm",Yf);jY(this.QU,"ovms",KZ6).G=!0;jY(this.QU,"xdi",Zm).G=!0;jY(this.QU,"amp",Zm).G=!0;jY(this.QU,"prf",Zm).G=!0;jY(this.QU,"gtx",Zm).G=!0;jY(this.QU,
  689. "mvp_lv",Zm).G=!0;jY(this.QU,"ssmol",Zm).G=!0;jY(this.QU,"fmd",Zm).G=!0;jY(this.QU,"gen204simple",Zm);this.G=new ZTD(cz(),this.QU);this.T=!1;this.flags=new OT7};
  690. T3=function(){return QC(GO7)};
  691. LZ7=function(d,q,T,Y){if(Math.random()<(Y||d.G))try{if(T instanceof FQ)var e=T;else e=new FQ,$Q(T,function(b,J){var F=e,N=F.T++;b=Nq(J,b);F.G.push(N);F.U[N]=b});
  692. var U=e.Hl(d.U,"pagead2.googlesyndication.com","/pagead/gen_204?id="+q+"&");U&&(cz(),x$g(U))}catch(b){}};
  693. kOH=function(d,q,T){T=T===void 0?{}:T;this.error=d;this.meta=T;this.context=q.context;this.msg=q.message||"";this.id=q.id||"jserror"};
  694. PYD=function(){var d=d===void 0?g.oQ:d;return(d=d.performance)&&d.now&&d.timing?Math.floor(d.now()+d.timing.navigationStart):g.F_()};
  695. WZn=function(){var d=d===void 0?g.oQ:d;return(d=d.performance)&&d.now?d.now():null};
  696. CYY=function(d,q,T){this.label=d;this.type=q;this.value=T;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()};
  697. Ub=function(){var d=window;this.events=[];this.U=d||g.oQ;var q=null;d&&(d.google_js_reporting_queue=d.google_js_reporting_queue||[],this.events=d.google_js_reporting_queue,q=d.google_measure_js_timing);this.G=eG()||(q!=null?q:Math.random()<1)};
  698. uE6=function(d){d&&bB&&eG()&&(bB.clearMarks("goog_"+d.label+"_"+d.uniqueId+"_start"),bB.clearMarks("goog_"+d.label+"_"+d.uniqueId+"_end"))};
  699. Xm=function(d,q,T,Y,e,U,b){var J="";d&&(J+=d+":");T&&(J+="//",q&&(J+=q+"@"),J+=T,Y&&(J+=":"+Y));e&&(J+=e);U&&(J+="?"+U);b&&(J+="#"+b);return J};
  700. g.Jq=function(d){return d.match(DQn)};
  701. wB_=function(d){return d?decodeURI(d):d};
  702. g.sb=function(d){return wB_(g.Jq(d)[3]||null)};
  703. $f=function(d){return wB_(g.Jq(d)[5]||null)};
  704. g.fvY=function(d){d=g.Jq(d);return Xm(d[1],d[2],d[3],d[4])};
  705. gQ=function(d){d=g.Jq(d);return Xm(null,null,null,null,d[5],d[6],d[7])};
  706. zu_=function(d){var q=d.indexOf("#");return q<0?d:d.slice(0,q)};
  707. Fm=function(d,q){if(d){d=d.split("&");for(var T=0;T<d.length;T++){var Y=d[T].indexOf("="),e=null;if(Y>=0){var U=d[T].substring(0,Y);e=d[T].substring(Y+1)}else U=d[T];q(U,e?OD(e):"")}}};
  708. Nj=function(d,q){if(!q)return d;var T=d.indexOf("#");T<0&&(T=d.length);var Y=d.indexOf("?");if(Y<0||Y>T){Y=T;var e=""}else e=d.substring(Y+1,T);d=[d.slice(0,Y),e,d.slice(T)];T=d[1];d[1]=q?T?T+"&"+q:q:T;return d[0]+(d[1]?"?"+d[1]:"")+d[2]};
  709. Rq=function(d,q,T){if(Array.isArray(q))for(var Y=0;Y<q.length;Y++)Rq(d,String(q[Y]),T);else q!=null&&T.push(d+(q===""?"":"="+g.pn(q)))};
  710. iT_=function(d,q){var T=[];for(q=q||0;q<d.length;q+=2)Rq(d[q],d[q+1],T);return T.join("&")};
  711. g.xf=function(d){var q=[],T;for(T in d)Rq(T,d[T],q);return q.join("&")};
  712. Iv1=function(d,q){var T=arguments.length==2?iT_(arguments[1],0):iT_(arguments,1);return Nj(d,T)};
  713. g.y6=function(d,q){q=g.xf(q);return Nj(d,q)};
  714. hq=function(d,q,T){T=T!=null?"="+g.pn(T):"";return Nj(d,q+T)};
  715. HK=function(d,q,T,Y){for(var e=T.length;(q=d.indexOf(T,q))>=0&&q<Y;){var U=d.charCodeAt(q-1);if(U==38||U==63)if(U=d.charCodeAt(q+e),!U||U==61||U==38||U==35)return q;q+=e+1}return-1};
  716. cK=function(d,q){var T=d.search(Q6),Y=HK(d,0,q,T);if(Y<0)return null;var e=d.indexOf("&",Y);if(e<0||e>T)e=T;Y+=q.length+1;return OD(d.slice(Y,e!==-1?e:0))};
  717. Eb=function(d,q){for(var T=d.search(Q6),Y=0,e,U=[];(e=HK(d,Y,q,T))>=0;)U.push(d.substring(Y,e)),Y=Math.min(d.indexOf("&",e)+1||T,T);U.push(d.slice(Y));return U.join("").replace(mQj,"$1")};
  718. SMj=function(d,q,T){return hq(Eb(d,q),q,T)};
  719. lv6=function(){var d=jG;this.G=aq;this.g7="jserror";this.K_=!0;this.CU=null;this.U=this.RT;this.EF=d===void 0?null:d};
  720. vE1=function(d,q,T){var Y=Aq;return qj(T3().G.G,function(){try{if(Y.EF&&Y.EF.G){var e=Y.EF.start(d.toString(),3);var U=q();Y.EF.end(e)}else U=q()}catch(J){var b=Y.K_;try{uE6(e),b=Y.U(d,new p5(Z7(J)),void 0,T)}catch(F){Y.RT(217,F)}if(!b)throw J;}return U})()};
  721. Ob=function(d,q,T,Y){return qj(T3().G.G,function(){var e=g.CN.apply(0,arguments);return vE1(d,function(){return q.apply(T,e)},Y)})};
  722. Z7=function(d){var q=d.toString();d.name&&q.indexOf(d.name)==-1&&(q+=": "+d.name);d.message&&q.indexOf(d.message)==-1&&(q+=": "+d.message);if(d.stack)a:{d=d.stack;var T=q;try{d.indexOf(T)==-1&&(d=T+"\n"+d);for(var Y;d!=Y;)Y=d,d=d.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");q=d.replace(/\n */g,"\n");break a}catch(e){q=T;break a}q=void 0}return q};
  723. p5=function(d){kOH.call(this,Error(d),{message:d})};
  724. oEY=function(){OM&&typeof OM.google_measure_js_timing!="undefined"&&(OM.google_measure_js_timing||jG.disable())};
  725. VV1=function(d){Aq.CU=function(q){g.Sj(d,function(T){T(q)})}};
  726. dqN=function(d,q){return vE1(d,q)};
  727. n5=function(d,q){return Ob(d,q)};
  728. rQ=function(d,q,T,Y){Aq.RT(d,q,T,Y)};
  729. tq=function(){return Date.now()-qwN};
  730. Tv_=function(){var d=T3().j,q=BK>=0?tq()-BK:-1,T=K5?tq()-G3:-1,Y=L5>=0?tq()-L5:-1;if(d==947190542)return 100;if(d==79463069)return 200;d=[2E3,4E3];var e=[250,500,1E3];rQ(637,Error(),.001);var U=q;T!=-1&&T<q&&(U=T);for(q=0;q<d.length;++q)if(U<d[q]){var b=e[q];break}b===void 0&&(b=e[d.length]);return Y!=-1&&Y>1500&&Y<4E3?500:b};
  731. kf=function(d,q,T){var Y=new GO(0,0,0,0);this.time=d;this.volume=null;this.j=q;this.G=Y;this.U=T};
  732. PK=function(d,q,T,Y,e,U,b,J){this.T=d;this.L=q;this.j=T;this.X=Y;this.G=e;this.S=U;this.U=b;this.B=J};
  733. ekN=function(d){var q=d!==d.top,T=d.top===U$D(d),Y=-1,e=0;if(q&&T&&d.top.mraid){Y=3;var U=d.top.mraid}else Y=(U=d.mraid)?q?T?2:1:0:-1;U&&(U.IS_GMA_SDK||(e=2),BIf(YwH,function(b){return typeof U[b]==="function"})||(e=1));
  734. return{oi:U,compatibility:e,POf:Y}};
  735. UqY=function(){var d=window.document;return d&&typeof d.elementFromPoint==="function"};
  736. bpn=function(d,q,T){if(d&&q!==null&&q!=q.top){if(!q.top)return new g.zP(-12245933,-12245933);q=q.top}try{return(T===void 0?0:T)?(new g.zP(q.innerWidth,q.innerHeight)).round():GlN(q||window).round()}catch(Y){return new g.zP(-12245933,-12245933)}};
  737. WK=function(d,q,T){try{if(d){if(!q.top)return new GO(-12245933,-12245933,-12245933,-12245933);q=q.top}var Y=bpn(d,q,T),e=Y.height,U=Y.width;if(U===-12245933)return new GO(U,U,U,U);var b=VY(q.document);var J=kl7(b.G);var F=J.x,N=J.y;return new GO(N,F+U,N+e,F)}catch(R){return new GO(-12245933,-12245933,-12245933,-12245933)}};
  738. C5=function(d,q){q=Math.pow(10,q);return Math.floor(d*q)/q};
  739. Xz1=function(d){return new GO(d.top,d.right,d.bottom,d.left)};
  740. J0Q=function(d){var q=d.top||0,T=d.left||0;return new GO(q,T+(d.width||0),q+(d.height||0),T)};
  741. uB=function(d){return d!=null&&d>=0&&d<=1};
  742. scf=function(){var d=g.k9();return d?D7("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(q){return B2(d,q)})||B2(d,"OMI/")&&!B2(d,"XiaoMi/")?!0:B2(d,"Presto")&&B2(d,"Linux")&&!B2(d,"X11")&&!B2(d,"Android")&&!B2(d,"Mobi"):!1};
  743. $qD=function(){this.j=!J0(OM.top);this.isMobileDevice=XQ()||ocD();var d=gv();this.domain=d.length>0&&d[d.length-1]!=null&&d[d.length-1].url!=null?g.sb(d[d.length-1].url)||"":"";this.G=new GO(0,0,0,0);this.T=new g.zP(0,0);this.S=new g.zP(0,0);this.L=new GO(0,0,0,0);this.frameOffset=new g.wt(0,0);this.X=0;this.B=!1;this.U=!(!OM||!ekN(OM).oi);this.update(OM)};
  744. gQ6=function(d,q){q&&q.screen&&(d.T=new g.zP(q.screen.width,q.screen.height))};
  745. FA6=function(d,q){a:{var T=d.G?new g.zP(LT(d.G),d.G.getHeight()):new g.zP(0,0);q=q===void 0?OM:q;q!==null&&q!=q.top&&(q=q.top);var Y=0,e=0;try{var U=q.document,b=U.body,J=U.documentElement;if(U.compatMode=="CSS1Compat"&&J.scrollHeight)Y=J.scrollHeight!=T.height?J.scrollHeight:J.offsetHeight,e=J.scrollWidth!=T.width?J.scrollWidth:J.offsetWidth;else{var F=J.scrollHeight,N=J.scrollWidth,R=J.offsetHeight,x=J.offsetWidth;J.clientHeight!=R&&(F=b.scrollHeight,N=b.scrollWidth,R=b.offsetHeight,x=b.offsetWidth);
  746. F>T.height?F>R?(Y=F,e=N):(Y=R,e=x):F<R?(Y=F,e=N):(Y=R,e=x)}var y=new g.zP(e,Y);break a}catch(h){y=new g.zP(-12245933,-12245933);break a}y=void 0}d.S=y};
  747. z3=function(){var d=wQ();if(d.X>0||d.B)return!0;d=cz().U.isVisible();var q=YQ(f5)===0;return d||q};
  748. wQ=function(){return QC($qD)};
  749. iB=function(d){this.j=d;this.U=0;this.G=null};
  750. Iq=function(d,q,T){this.j=d;this.RU=T===void 0?"na":T;this.S=[];this.isInitialized=!1;this.T=new kf(-1,!0,this);this.G=this;this.B=q;this.lr=this.K=!1;this.z2="uk";this.rO=!1;this.X=!0};
  751. SG=function(d,q){g.cR(d.S,q)||(d.S.push(q),q.GK(d.G),q.BZ(d.T),q.c$()&&(d.K=!0))};
  752. NvX=function(d){d=d.G;d.UB();d.l7();var q=wQ();q.L=WK(!1,d.j,q.isMobileDevice);FA6(wQ(),d.j);d.T.G=d.qg()};
  753. Rkg=function(d){d.K=d.S.length?D7(d.S,function(q){return q.c$()}):!1};
  754. xqY=function(d){var q=g.rL(d.S);g.Sj(q,function(T){T.BZ(d.T)})};
  755. lB=function(d){var q=g.rL(d.S);g.Sj(q,function(T){T.GK(d.G)});
  756. d.G!=d||xqY(d)};
  757. vK=function(d,q,T,Y){this.element=d;this.G=new GO(0,0,0,0);this.j=null;this.X=new GO(0,0,0,0);this.U=q;this.QU=T;this.rO=Y;this.yv=!1;this.timestamp=-1;this.K=new PK(q.T,this.element,this.G,new GO(0,0,0,0),0,0,tq(),0);this.S=void 0};
  758. y01=function(d,q){return d.S?new GO(Math.max(q.top+d.S.top,q.top),Math.min(q.left+d.S.right,q.right),Math.min(q.top+d.S.bottom,q.bottom),Math.max(q.left+d.S.left,q.left)):q.clone()};
  759. oq=function(d){this.S=!1;this.G=d;this.T=function(){}};
  760. hk2=function(d,q,T){this.j=T===void 0?0:T;this.U=d;this.G=q==null?"":q};
  761. HpY=function(d){switch(Math.trunc(d.j)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
  762. Qc7=function(d,q){return d.j<q.j?!0:d.j>q.j?!1:d.U<q.U?!0:d.U>q.U?!1:typeof d.G<typeof q.G?!0:typeof d.G>typeof q.G?!1:d.G<q.G};
  763. V6=function(){this.j=0;this.G=[];this.U=!1};
  764. M0X=function(d,q){(0,g.Sj)(q.G,function(T){d.add(T.U,T.G,HpY(T))})};
  765. dD=function(d,q){var T=T===void 0?0:T;var Y=Y===void 0?!0:Y;$Q(q,function(e,U){Y&&e===void 0||d.add(U,e,T)});
  766. return d};
  767. q8=function(d){var q=c07;d.U&&(g.iQ(d.G,function(T,Y){return Qc7(Y,T)?1:Qc7(T,Y)?-1:0}),d.U=!1);
  768. return Hz(d.G,function(T,Y){Y=q(Y);return""+T+(T!=""&&Y!=""?"&":"")+Y},"")};
  769. c07=function(d){var q=d.U;d=d.G;return d===""?q:typeof d==="boolean"?d?q:"":Array.isArray(d)?d.length===0?q:q+"="+d.join():q+"="+(g.cR(["mtos","tos","p"],q)?d:encodeURIComponent(d))};
  770. EQn=function(d){var q=q===void 0?!0:q;this.G=new V6;d!==void 0&&M0X(this.G,d);q&&this.G.add("v","unreleased",-16)};
  771. cAD=function(d){var q=[],T=[];g.os(d,function(Y,e){if(!(e in Object.prototype)&&typeof Y!="undefined")switch(Array.isArray(Y)&&(Y=Y.join(",")),Y=[e,"=",Y].join(""),e){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":q.unshift(Y);break;case "req":case "url":case "referrer":case "iframe_loc":T.push(Y);break;default:q.push(Y)}});
  772. return q.concat(T)};
  773. Ejg=function(d){d=d.toString();cz();x$g(d)};
  774. j4g=function(){this.G=0};
  775. g.T1=function(d){d&&typeof d.dispose=="function"&&d.dispose()};
  776. g.Yt=function(d){for(var q=0,T=arguments.length;q<T;++q){var Y=arguments[q];g.ej(Y)?g.Yt.apply(null,Y):g.T1(Y)}};
  777. g.W=function(){this.TB=this.TB;this.Ox=this.Ox};
  778. g.C=function(d,q){d.addOnDisposeCallback(g.$c(g.T1,q))};
  779. aY_=function(d,q,T){(0,g.Sj)(d.j,function(Y){var e=d.G;if(!Y.G&&(Y.j(q,T),Y.T())){Y.G=!0;var U=Y.U(),b=new V6;b.add("id","av-js");b.add("type","verif");b.add("vtype",Y.S);Y=QC(j4g);b.add("i",Y.G++);b.add("adk",e);dD(b,U);e=new EQn(b);Ejg(e)}})};
  780. e9=function(){this.U=this.j=this.T=this.G=0};
  781. UR=function(d){this.U=d=d===void 0?AAj:d;this.G=g.yC(this.U,function(){return new e9})};
  782. bp=function(d,q){return pEQ(d,function(T){return T.G},q===void 0?!0:q)};
  783. Jy=function(d,q){return Xc(d,q,function(T){return T.G})};
  784. Z$Y=function(d,q){return pEQ(d,function(T){return T.j},q===void 0?!0:q)};
  785. sR=function(d,q){return Xc(d,q,function(T){return T.j})};
  786. $t=function(d,q){return Xc(d,q,function(T){return T.U})};
  787. O$H=function(d){g.Sj(d.G,function(q){q.U=0})};
  788. pEQ=function(d,q,T){d=g.yC(d.G,function(Y){return q(Y)});
  789. return T?d:njX(d)};
  790. Xc=function(d,q,T){var Y=g.Mx(d.U,function(e){return q<=e});
  791. return Y==-1?0:T(d.G[Y])};
  792. njX=function(d){return g.yC(d,function(q,T,Y){return T>0?Y[T]-Y[T-1]:Y[T]})};
  793. gD=function(){this.U=new UR;this.RU=this.aU=0;this.xx=new e9;this.UD=this.L=-1;this.Bv=1E3;this.kx=new UR([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.z2=this.yv=-1};
  794. Fc=function(d,q){return Z$Y(d.U,q===void 0?!0:q)};
  795. N8=function(d,q,T,Y){var e=e===void 0?!1:e;T=Ob(Y,T);TI(d,q,T,{capture:e})};
  796. xt=function(d,q){q=RO(q);return q===0?0:RO(d)/q};
  797. RO=function(d){return Math.max(d.bottom-d.top,0)*Math.max(d.right-d.left,0)};
  798. rA7=function(d,q){if(!d||!q)return!1;for(var T=0;d!==null&&T++<100;){if(d===q)return!0;try{if(d=d.parentElement||d){var Y=oy(d),e=Y&&sM(Y),U=e&&e.frameElement;U&&(d=U)}}catch(b){break}}return!1};
  799. tE_=function(d,q,T){if(!d||!q)return!1;q=PB(d.clone(),-q.left,-q.top);d=(q.left+q.right)/2;q=(q.top+q.bottom)/2;J0(window.top)&&window.top&&window.top.document&&(window=window.top);if(!UqY())return!1;d=window.document.elementFromPoint(d,q);if(!d)return!1;q=(q=(q=oy(T))&&q.defaultView&&q.defaultView.frameElement)&&rA7(q,d);var Y=d===T;d=!Y&&d&&MQ(d,function(e){return e===T});
  800. return!(q||Y||d)};
  801. BYH=function(d,q,T,Y){return wQ().j?!1:LT(d)<=0||d.getHeight()<=0?!0:T&&Y?dqN(208,function(){return tE_(d,q,T)}):!1};
  802. M8=function(d,q,T){g.W.call(this);this.position=KTH.clone();this.fJ=this.KB();this.H5=-2;this.timeCreated=Date.now();this.qB=-1;this.ul=q;this.AS=null;this.cC=!1;this.JL=null;this.opacity=-1;this.requestSource=T;this.mpv=!1;this.v5=function(){};
  803. this.Kr=function(){};
  804. this.tp=new u_N;this.tp.Qm=d;this.tp.G=d;this.Vh=!1;this.zw={Fo:null,LT:null};this.Bw=!0;this.iK=null;this.tO=this.Hc=!1;T3().X++;this.zN=this.Pt();this.ue=-1;this.vl=null;this.hasCompleted=this.bJ=!1;this.QU=new EN;u1I(this.QU);Gin(this);this.requestSource==1?aT(this.QU,"od",1):aT(this.QU,"od",0)};
  805. Gin=function(d){d=d.tp.Qm;var q;if(q=d&&d.getAttribute)q=/-[a-z]/.test("googleAvInapp")?!1:LT7&&d.dataset?"googleAvInapp"in d.dataset:d.hasAttribute?d.hasAttribute("data-"+R7D()):!!d.getAttribute("data-"+R7D());q&&(wQ().U=!0)};
  806. c5=function(d,q){q!=d.tO&&(d.tO=q,d=wQ(),q?d.X++:d.X>0&&d.X--)};
  807. ki6=function(d,q){if(d.vl){if(q.getName()===d.vl.getName())return;d.vl.dispose();d.vl=null}q=q.create(d.tp.G,d.QU,d.c$());if(q=q!=null&&q.observe()?q:null)d.vl=q};
  808. Pl7=function(d,q,T){if(!d.AS||d.ul==-1||q.U===-1||d.AS.U===-1)return 0;d=q.U-d.AS.U;return d>T?0:d};
  809. WT1=function(d,q,T){if(d.vl){d.vl.tv();var Y=d.vl.K,e=Y.T,U=e.G;if(Y.X!=null){var b=Y.j;d.JL=new g.wt(b.left-U.left,b.top-U.top)}U=d.yG()?Math.max(Y.G,Y.S):Y.G;b={};e.volume!==null&&(b.volume=e.volume);e=d.Yn(Y);d.AS=Y;d.S5(U,q,T,!1,b,e,Y.B)}};
  810. ClX=function(d){if(d.cC&&d.iK){var q=Az(d.QU,"od")==1,T=wQ().G,Y=d.iK,e=d.vl?d.vl.getName():"ns",U=d.JL,b=new g.zP(LT(T),T.getHeight());T=d.yG();d={M$v:e,JL:U,UMD:b,yG:T,Rc:d.zN.Rc,w4O:q};if(q=Y.U){q.tv();e=q.K;U=e.T.G;var J=b=null;e.X!=null&&U&&(b=e.j,b=new g.wt(b.left-U.left,b.top-U.top),J=new g.zP(U.right-U.left,U.bottom-U.top));e=T?Math.max(e.G,e.S):e.G;T={M$v:q.getName(),JL:b,UMD:J,yG:T,w4O:!1,Rc:e}}else T=null;T&&aY_(Y,d,T)}};
  811. ueQ=function(d,q,T){q&&(d.v5=q);T&&(d.Kr=T)};
  812. g.ER=function(){};
  813. g.j9=function(d){return{value:d,done:!1}};
  814. Dbf=function(){this.T=this.G=this.j=this.U=this.S=0};
  815. wEn=function(d){var q={};var T=g.F_()-d.S;q=(q.ptlt=T,q);(T=d.U)&&(q.pnk=T);(T=d.j)&&(q.pnc=T);(T=d.T)&&(q.pnmm=T);(d=d.G)&&(q.pns=d);return q};
  816. fY1=function(){vR.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
  817. aO=function(d){return uB(d.volume)&&d.volume>0};
  818. Ay=function(d,q,T,Y){T=T===void 0?!0:T;Y=Y===void 0?function(){return!0}:Y;
  819. return function(e){var U=e[d];if(Array.isArray(U)&&Y(e))return z1N(U,q,T)}};
  820. pF=function(d,q){return function(T){return q(T)?T[d]:void 0}};
  821. i$j=function(d){return function(q){for(var T=0;T<d.length;T++)if(d[T]===q.e||d[T]===void 0&&!q.hasOwnProperty("e"))return!0;return!1}};
  822. z1N=function(d,q,T){return T===void 0||T?g.Zl(d,function(Y,e){return g.cR(q,e)}):g.yC(q,function(Y,e,U){return d.slice(e>0?U[e-1]+1:0,Y+1).reduce(function(b,J){return b+J},0)})};
  823. IYY=function(){this.U=this.G=""};
  824. mbn=function(){};
  825. OR=function(d,q){var T={};if(d!==void 0)if(q!=null)for(var Y in q){var e=q[Y];Y in Object.prototype||e!=null&&(T[Y]=typeof e==="function"?e(d):d[e])}else g.hz(T,d);return q8(dD(new V6,T))};
  826. SS1=function(){var d={};this.U=(d.vs=[1,0],d.vw=[0,1],d.am=[2,2],d.a=[4,4],d.f=[8,8],d.bm=[16,16],d.b=[32,32],d.avw=[0,64],d.avs=[64,0],d.pv=[256,256],d.gdr=[0,512],d.p=[0,1024],d.r=[0,2048],d.m=[0,4096],d.um=[0,8192],d.ef=[0,16384],d.s=[0,32768],d.pmx=[0,16777216],d.mut=[33554432,33554432],d.umutb=[67108864,67108864],d.tvoff=[134217728,134217728],d);this.G={};for(var q in this.U)this.U[q][1]>0&&(this.G[q]=0);this.j=0};
  827. nF=function(d,q){var T=d.U[q],Y=T[1];d.j+=T[0];Y>0&&d.G[q]==0&&(d.G[q]=1)};
  828. lY1=function(d){var q=g.UN(d.U),T=0,Y;for(Y in d.G)g.cR(q,Y)&&d.G[Y]==1&&(T+=d.U[Y][1],d.G[Y]=2);return T};
  829. vj6=function(d){var q=0,T;for(T in d.G){var Y=d.G[T];if(Y==1||Y==2)q+=d.U[T][1]}return q};
  830. rD=function(){this.G=this.U=0};
  831. ty=function(){gD.call(this);this.j=new e9;this.qk=this.K=this.rO=0;this.B=-1;this.wO=new e9;this.S=new e9;this.G=new UR;this.X=this.T=-1;this.lr=new e9;this.Bv=2E3;this.dO=new rD;this.Fw=new rD;this.AF=new rD};
  832. B5=function(d,q,T){var Y=d.qk;K5||T||d.B==-1||(Y+=q-d.B);return Y};
  833. oj6=function(){this.j=!1};
  834. G1=function(d,q){this.j=!1;this.T=d;this.K=q;this.S=0};
  835. LF=function(d,q){G1.call(this,d,q);this.L=[]};
  836. VE2=function(){};
  837. kt=function(){};
  838. P5=function(d,q,T,Y){vK.call(this,d,q,T,Y)};
  839. W5=function(d,q,T){vK.call(this,null,d,q,T);this.B=d.isActive();this.L=0};
  840. CF=function(d){return[d.top,d.left,d.bottom,d.right]};
  841. up=function(d,q,T,Y,e,U){U=U===void 0?new kt:U;M8.call(this,q,T,Y);this.AT=e;this.Pm=0;this.uw={};this.Dh=new SS1;this.t$={};this.UN="";this.AF=null;this.lF=!1;this.G=[];this.QY=U.U();this.X=U.j();this.T=null;this.j=-1;this.RU=this.K=void 0;this.UD=this.lr=0;this.z2=-1;this.Bv=this.Fw=!1;this.rO=this.B=this.U=this.c6=this.fn=0;new UR;this.dO=this.qk=0;this.xx=-1;this.eV=0;this.L=g.r_;this.yv=[this.KB()];this.q5=2;this.nh={};this.nh.pause="p";this.nh.resume="r";this.nh.skip="s";this.nh.mute="m";this.nh.unmute=
  842. "um";this.nh.exitfullscreen="ef";this.S=null;this.kx=this.wO=!1;this.Qp=Math.floor(Date.now()/1E3-1704067200);this.aU=0};
  843. Dl=function(d){d.hasCompleted=!0;d.eV!=0&&(d.eV=3)};
  844. wD=function(d){return d===void 0?d:Number(d)?C5(d,3):0};
  845. fF=function(d,q){return d.yv[q!=null&&q<d.yv.length?q:d.yv.length-1]};
  846. dA1=function(d){var q=!!Az(T3().QU,"umt");return d.K||!q&&!d.RU?0:1};
  847. qyf=function(d,q){d.wK()?q=0:d.ul==-1?q=0:(q-=d.ul,q=q>Math.max(1E4,d.j/3)?0:q);var T=d.L(d)||{};T=T.currentTime!==void 0?T.currentTime:d.lr;var Y=T-d.lr,e=0;Y>=0?(d.UD+=q,d.dO+=Math.max(q-Y,0),e=Math.min(Y,d.UD)):d.qk+=Math.abs(Y);Y!=0&&(d.UD=0);d.xx==-1&&Y>0&&(d.xx=L5>=0?tq()-L5:-1);d.lr=T;return e};
  848. T2I=function(d,q){D7(d.X,function(T){return T.T==q.T})||d.X.push(q)};
  849. YyH=function(d){var q=Jy(d.Rk().G,1);return z1(d,q)};
  850. z1=function(d,q,T){return q>=15E3?!0:d.Fw?(T===void 0?0:T)?!0:d.j>0?q>=d.j/2:d.z2>0?q>=d.z2:!1:!1};
  851. eZN=function(d){var q=C5(d.zN.Rc,2),T=d.Dh.j,Y=d.zN,e=fF(d),U=wD(e.T),b=wD(e.X),J=wD(Y.volume),F=C5(e.L,2),N=C5(e.UD,2),R=C5(Y.Rc,2),x=C5(e.yv,2),y=C5(e.z2,2);Y=C5(Y.Cq,2);var h=d.eE().clone().round();d=d.vl&&d.vl.j?(d.vl?d.vl.j:null).clone().round():null;e=Fc(e,!1);return{lfx:q,WS:T,jB:U,KO:b,h5:J,TR:F,wE:N,Rc:R,Q3:x,Pe:y,Cq:Y,position:h,nk:d,tL:e}};
  852. b2Y=function(d,q){UA1(d.G,q,function(){return{lfx:0,WS:void 0,jB:-1,KO:-1,h5:-1,TR:-1,wE:-1,Rc:-1,Q3:-1,Pe:-1,Cq:-1,position:void 0,nk:void 0,tL:[]}});
  853. d.G[q]=eZN(d)};
  854. UA1=function(d,q,T){for(var Y=d.length;Y<q+1;)d.push(T()),Y++};
  855. IO=function(d,q,T){var Y=d.t$[q];if(Y!=null)return Y;Y=XVX(d,q);var e=gb(ip,function(U){return U==q});
  856. d=JI7(d,Y,Y,T,sl2[ip[e]]);q=="fully_viewable_audible_half_duration_impression"&&(d.std="csm");return d};
  857. mv=function(d,q,T){var Y=[q];if(d!=q||T!=q)Y.unshift(d),Y.push(T);return Y};
  858. JI7=function(d,q,T,Y,e){if(d.Vh)return{"if":0,vs:0};var U=d.eE().clone().round(),b=d.vl?d.vl.j:null,J=wQ(),F=T3(),N=d.Rk(),R=d.vl?d.vl.getName():"ns",x={};x["if"]=J.j?1:void 0;x.sdk=d.T?d.T:void 0;x.t=d.timeCreated;x.p=[U.top,U.left,U.bottom,U.right];U&&b&&!kE(b,U)&&(U=b.round(),x.cp=[U.top,U.left,U.bottom,U.right]);x.tos=bp(N.U,!1);x.mtos=Fc(N);x.mcvt=N.xx.j;x.ps=void 0;U=B5(N,tq(),d.wK());x.vht=U;x.mut=N.wO.j;x.a=wD(d.zN.volume);x.mv=wD(N.X);x.fs=d.tO?1:0;x.ft=N.lr.G;x.at=N.S.G;x.as=N.T>0?1:0;x.atos=
  859. bp(N.G);x.ssb=bp(N.kx,!1);x.amtos=Z$Y(N.G,!1);x.uac=d.fn;x.vpt=N.j.G;R=="nio"&&(x.nio=1,x.avms="nio");x.gmm="4";x.gdr=z1(d,N.j.G,!0)?1:0;x.efpf=d.q5;if(R=="gsv"||R=="nis")R=d.vl,R.L>0&&(x.nnut=R.L);x.tcm=dA1(d);x.nmt=d.qk;x.bt=d.dO;x.pst=d.xx;x.vpaid=d.K;x.dur=d.j;x.vmtime=d.lr;x.is=d.Dh.j;d.G.length>=1&&(x.i0=d.G[0].WS,x.a0=[d.G[0].h5],x.c0=[d.G[0].Rc],x.ss0=[d.G[0].Cq],R=d.G[0].position,U=d.G[0].nk,x.p0=R?CF(R):void 0,R&&U&&!kE(U,R)&&(x.cp0=CF(U)));d.G.length>=2&&(x.i1=d.G[1].WS,x.a1=mv(d.G[1].jB,
  860. d.G[1].h5,d.G[1].KO),x.c1=mv(d.G[1].TR,d.G[1].Rc,d.G[1].wE),x.ss1=mv(d.G[1].Q3,d.G[1].Cq,d.G[1].Pe),R=d.G[1].position,U=d.G[1].nk,x.p1=R?CF(R):void 0,R&&U&&!kE(U,R)&&(x.cp1=CF(U)),x.mtos1=d.G[1].tL);d.G.length>=3&&(x.i2=d.G[2].WS,x.a2=mv(d.G[2].jB,d.G[2].h5,d.G[2].KO),x.c2=mv(d.G[2].TR,d.G[2].Rc,d.G[2].wE),x.ss2=mv(d.G[2].Q3,d.G[2].Cq,d.G[2].Pe),R=d.G[2].position,U=d.G[2].nk,x.p2=R?CF(R):void 0,R&&U&&!kE(U,R)&&(x.cp2=CF(U)),x.mtos2=d.G[2].tL);d.G.length>=4&&(x.i3=d.G[3].WS,x.a3=mv(d.G[3].jB,d.G[3].h5,
  861. d.G[3].KO),x.c3=mv(d.G[3].TR,d.G[3].Rc,d.G[3].wE),x.ss3=mv(d.G[3].Q3,d.G[3].Cq,d.G[3].Pe),R=d.G[3].position,U=d.G[3].nk,x.p3=R?CF(R):void 0,R&&U&&!kE(U,R)&&(x.cp3=CF(U)),x.mtos3=d.G[3].tL);x.cs=vj6(d.Dh);q&&(x.ic=lY1(d.Dh),x.dvpt=N.j.U,x.dvs=$t(N.U,.5),x.dfvs=$t(N.U,1),x.davs=$t(N.G,.5),x.dafvs=$t(N.G,1),T&&(N.j.U=0,O$H(N.U),O$H(N.G)),d.i8()&&(x.dtos=N.rO,x.dav=N.K,x.dtoss=d.Pm+1,T&&(N.rO=0,N.K=0,d.Pm++)),x.dat=N.S.U,x.dft=N.lr.U,T&&(N.S.U=0,N.lr.U=0));x.ps=[J.S.width,J.S.height];x.bs=[LT(J.G),J.G.getHeight()];
  862. x.scs=[J.T.width,J.T.height];x.dom=J.domain;d.c6&&(x.vds=d.c6);if(d.X.length>0||d.QY)q=g.rL(d.X),d.QY&&q.push(d.QY),x.pings=g.yC(q,function(y){return y.toString()});
  863. q=g.yC(g.Zl(d.X,function(y){return y.X()}),function(y){return y.getId()});
  864. AY_(q);x.ces=q;d.U&&(x.vmer=d.U);d.B&&(x.vmmk=d.B);d.rO&&(x.vmiec=d.rO);x.avms=d.vl?d.vl.getName():"ns";d.vl&&g.hz(x,d.vl.EX());Y?(x.c=C5(d.zN.Rc,2),x.ss=C5(d.zN.Cq,2)):x.tth=tq()-$AN;x.mc=C5(N.UD,2);x.nc=C5(N.L,2);x.mv=wD(N.X);x.nv=wD(N.T);x.lte=C5(d.H5,2);Y=fF(d,e);Fc(N);x.qmtos=Fc(Y);x.qnc=C5(Y.L,2);x.qmv=wD(Y.X);x.qnv=wD(Y.T);x.qas=Y.T>0?1:0;x.qi=d.UN;x.avms||(x.avms="geo");x.psm=N.dO.G;x.psv=N.dO.getValue();x.psfv=N.Fw.getValue();x.psa=N.AF.getValue();F=Wjg(F.QU);F.length&&(x.veid=F);d.S&&g.hz(x,
  865. wEn(d.S));x.avas=d.NW();x.vs=d.EY();x.co=gJX(d);x.tm=N.aU;x.tu=N.RU;return x};
  866. XVX=function(d,q){if(g.cR(Fg7,q))return!0;var T=d.uw[q];return T!==void 0?(d.uw[q]=!0,!T):!1};
  867. gJX=function(d){var q=d.aU.toString(10).padStart(2,"0");q=""+d.Qp+q;d.aU<99&&d.aU++;return q};
  868. RZ1=function(){this.G={};var d=sM();S9(this,d,document);var q=N2j();try{if("1"==q){for(var T=d.parent;T!=d.top;T=T.parent)S9(this,T,T.document);S9(this,d.top,d.top.document)}}catch(Y){}};
  869. N2j=function(){var d=document.documentElement;try{if(!J0(sM().top))return"2";var q=[],T=sM(d.ownerDocument);for(d=T;d!=T.top;d=d.parent)if(d.frameElement)q.push(d.frameElement);else break;return q&&q.length!=0?"1":"0"}catch(Y){return"2"}};
  870. S9=function(d,q,T){N8(T,"mousedown",function(){return xAY(d)},301);
  871. N8(q,"scroll",function(){return yII(d)},302);
  872. N8(T,"touchmove",function(){return hZI(d)},303);
  873. N8(T,"mousemove",function(){return H2I(d)},304);
  874. N8(T,"keydown",function(){return Ql6(d)},305)};
  875. xAY=function(d){g.os(d.G,function(q){q.j>1E5||++q.j})};
  876. yII=function(d){g.os(d.G,function(q){q.G>1E5||++q.G})};
  877. hZI=function(d){g.os(d.G,function(q){q.G>1E5||++q.G})};
  878. Ql6=function(d){g.os(d.G,function(q){q.U>1E5||++q.U})};
  879. H2I=function(d){g.os(d.G,function(q){q.T>1E5||++q.T})};
  880. MsQ=function(){this.G=[];this.U=[]};
  881. lp=function(d,q){return g.QN(d.G,function(T){return T.UN==q})};
  882. cIf=function(d,q){return q?g.QN(d.G,function(T){return T.tp.Qm==q}):null};
  883. EJn=function(d,q){return g.QN(d.U,function(T){return T.T3()==2&&T.UN==q})};
  884. oO=function(){var d=v5;return d.G.length==0?d.U:d.U.length==0?d.G:g.nB(d.U,d.G)};
  885. jlN=function(d,q){d=q.T3()==1?d.G:d.U;var T=HR(d,function(Y){return Y==q});
  886. return T!=-1?(d.splice(T,1),q.vl&&q.vl.unobserve(),q.dispose(),!0):!1};
  887. acQ=function(d){var q=v5;if(jlN(q,d)){switch(d.T3()){case 0:var T=function(){return null};
  888. case 2:T=function(){return EJn(q,d.UN)};
  889. break;case 1:T=function(){return lp(q,d.UN)}}for(var Y=T();Y;Y=T())jlN(q,Y)}};
  890. AIn=function(d){var q=v5;d=g.Zl(d,function(T){return!cIf(q,T.tp.Qm)});
  891. q.G.push.apply(q.G,g.RQ(d))};
  892. pVn=function(d){var q=[];g.Sj(d,function(T){D7(v5.G,function(Y){return Y.tp.Qm===T.tp.Qm&&Y.UN===T.UN})||(v5.G.push(T),q.push(T))})};
  893. Vg=function(){this.G=this.U=null};
  894. Z26=function(d,q){function T(Y,e){q(Y,e)}
  895. if(d.U==null)return!1;d.G=g.QN(d.U,function(Y){return Y!=null&&Y.oM()});
  896. d.G&&(d.G.init(T)?NvX(d.G.G):q(d.G.G.gD(),d.G));return d.G!=null};
  897. dS=function(d){d=O2N(d);oq.call(this,d.length?d[d.length-1]:new Iq(OM,0));this.j=d;this.U=null};
  898. O2N=function(d){if(!d.length)return[];d=(0,g.Zl)(d,function(T){return T!=null&&T.mU()});
  899. for(var q=1;q<d.length;q++)SG(d[q-1],d[q]);return d};
  900. q5=function(d,q,T,Y){vK.call(this,d,q,T,Y);this.UD=this.lr=this.L=this.B=this.T=null};
  901. Ts=function(d){return d.T&&d.T.takeRecords?d.T.takeRecords():[]};
  902. rIX=function(d){if(!d.element)return!1;var q=d.element,T=d.U.G.j,Y=T3().G.G;d.T=new T.IntersectionObserver(qj(Y,function(e){return Y3(d,e)}),nJY);
  903. Y=qj(Y,function(){d.T.unobserve(q);d.T.observe(q);Y3(d,Ts(d))});
  904. T.ResizeObserver?(d.B=new T.ResizeObserver(Y),d.B.observe(q)):T.MutationObserver&&(d.L=new g.oQ.MutationObserver(Y),d.L.observe(q,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));d.T.observe(q);Y3(d,Ts(d));return!0};
  905. Y3=function(d,q){try{if(q.length){d.lr||(d.lr=tq());var T=tsn(q),Y=InQ(d.element,d.U.G.j),e=Y.x,U=Y.y;d.j=new GO(Math.round(U),Math.round(e)+T.boundingClientRect.width,Math.round(U)+T.boundingClientRect.height,Math.round(e));d.G=y01(d,d.j);var b=Xz1(T.intersectionRect);d.X=PB(b,d.j.left-b.left,d.j.top-b.top)}}catch(J){d.unobserve(),rQ(299,J)}};
  906. tsn=function(d){return Hz(d,function(q,T){return q.time>T.time?q:T},d[0])};
  907. eI=function(d){d=d===void 0?OM:d;oq.call(this,new Iq(d,2))};
  908. Ur=function(){var d=B2f();Iq.call(this,OM.top,d,"geo")};
  909. B2f=function(){T3();var d=wQ();return d.j||d.U?0:2};
  910. Kg_=function(){};
  911. b3=function(){this.done=!1;this.G={DU:0,Y3:0,xsw:0,n6:0,Wt:-1,Rq:0,JG:0,v8:0,yEx:0};this.S=null;this.X=!1;this.j=null;this.L=0;this.U=new iB(this)};
  912. JD=function(){var d=Xz;d.X||(d.X=!0,Ggn(d,function(){return d.T.apply(d,g.RQ(g.CN.apply(0,arguments)))}),d.T())};
  913. Lg6=function(){QC(Kg_);var d=QC(Vg);d.G!=null&&d.G.G?NvX(d.G.G):wQ().update(OM)};
  914. sr=function(d,q,T){if(!d.done&&(d.U.cancel(),q.length!=0)){d.j=null;try{Lg6();var Y=tq();T3().S=Y;if(QC(Vg).G!=null)for(var e=0;e<q.length;e++)WT1(q[e],Y,T);for(Y=0;Y<q.length;Y++)ClX(q[Y]);++d.G.n6}finally{T?g.Sj(q,function(U){U.zN.Rc=0}):d.U.schedule()}}};
  915. Ggn=function(d,q){if(!d.S){q=Ob(142,q);cz();var T;f5.visibilityState?T="visibilitychange":f5.mozVisibilityState?T="mozvisibilitychange":f5.webkitVisibilityState&&(T="webkitvisibilitychange");T&&TI(f5,T,q,{capture:!1})&&(d.S=q)}};
  916. kg7=function(){var d=QC(Vg);if(d.G!=null){var q=d.G;g.Sj(oO(),function(T){return ki6(T,q)})}};
  917. PDH=function(d,q){d=d.L;K5&&(d+=q-G3);return d};
  918. Wg2=function(d){d=d===void 0?function(){return{}}:d;
  919. Aq.g7="av-js";aq.G=.01;VV1([function(q){var T=T3(),Y={};Y=(Y.bin=T.U,Y.type="error",Y);T=ph(T.QU);if(!Xz.j){var e=Xz,U=OM.document,b=BK>=0?tq()-BK:-1,J=tq();e.G.Wt==-1&&(b=J);var F=wQ(),N=T3(),R=ph(N.QU),x=oO();try{if(x.length>0){var y=F.G;y&&(R.bs=[LT(y),y.getHeight()]);var h=F.S;h&&(R.ps=[h.width,h.height]);OM.screen&&(R.scs=[OM.screen.width,OM.screen.height])}else R.url=encodeURIComponent(OM.location.href.substring(0,512)),U.referrer&&(R.referrer=encodeURIComponent(U.referrer.substring(0,512)));
  920. R.tt=b;R.pt=BK;R.bin=N.U;OM.google_osd_load_pub_page_exp!==void 0&&(R.olpp=OM.google_osd_load_pub_page_exp);R.deb=[1,e.G.DU,e.G.Y3,e.G.n6,e.G.Wt,0,e.U.U,e.G.Rq,e.G.JG,e.G.v8,e.G.yEx,-1].join(";");R.tvt=PDH(e,J);F.U&&(R.inapp=1);if(OM!==null&&OM!=OM.top){x.length>0&&(R.iframe_loc=encodeURIComponent(OM.location.href.substring(0,512)));var H=F.L;R.is=[LT(H),H.getHeight()]}}catch(a){R.error=1}Xz.j=R}y=g.x9(Xz.j);h=T3().G;Az(h.j,"prf")==1?(H=new dQ,e=h.G,U=0,e.G>-1&&(U=e.j.G.now()-e.G),H=X2(H,1,Xe(e.T+
  921. U),0),e=h.G,H=X2(H,5,Fe(e.G>-1?e.U+1:e.U),0),H=X2(H,2,cE(h.U.G.j()),"0"),H=X2(H,3,cE(h.U.G.U()),"0"),h=X2(H,4,cE(h.U.G.G()),"0"),H={},h=(H.pf=g.A0(h.j()),H)):h={};g.hz(y,h);g.hz(q,Y,T,y,d())}])};
  922. u2g=function(){var d=CDI||OM;if(!d)return"";var q=[];if(!d.location||!d.location.href)return"";q.push("url="+encodeURIComponent(d.location.href.substring(0,512)));d.document&&d.document.referrer&&q.push("referrer="+encodeURIComponent(d.document.referrer.substring(0,512)));return q.join("&")};
  923. $3=function(){var d="youtube.player.web_20250721_08_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250721_08_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250721_08_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250721_08_RC00".match(/_(\d{8})_\d+_RC\d+$/),q;if(((q=d)==null?void 0:q.length)==2)return d[1];d="youtube.player.web_20250721_08_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var T;return((T=d)==null?void 0:T.length)==3?"20"+d[1]+d[2]:null};
  924. DAX=function(){return"av.default_js".includes("ima_html5_sdk")?{WO:"ima",Z7:null}:"av.default_js".includes("ima_native_sdk")?{WO:"nima",Z7:null}:"av.default_js".includes("admob-native-video-javascript")?{WO:"an",Z7:null}:"youtube.player.web_20250721_08_RC00".includes("cast_js_sdk")?{WO:"cast",Z7:$3()}:"youtube.player.web_20250721_08_RC00".includes("youtube.player.web")?{WO:"yw",Z7:$3()}:"youtube.player.web_20250721_08_RC00".includes("outstream_web_client")?{WO:"out",Z7:$3()}:"youtube.player.web_20250721_08_RC00".includes("drx_rewarded_web")?
  925. {WO:"r",Z7:$3()}:"youtube.player.web_20250721_08_RC00".includes("gam_native_web_video")?{WO:"n",Z7:$3()}:"youtube.player.web_20250721_08_RC00".includes("admob_interstitial_video")?{WO:"int",Z7:$3()}:{WO:"j",Z7:null}};
  926. N5=function(d,q){var T={sv:"967"};gS!==null&&(T.v=gS);T.cb=wVg;T.nas=v5.G.length;T.msg=d;q!==void 0&&(d=fcN(q))&&(T.e=Fz[d]);return T};
  927. RL=function(d){return ON(d,"custom_metric_viewable")};
  928. fcN=function(d){var q=RL(d)?"custom_metric_viewable":d.toLowerCase();return gb(ip,function(T){return T==q})};
  929. zZf=function(){this.G=void 0;this.U=!1;this.j=0;this.T=-1;this.S="tos"};
  930. mAj=function(d){try{var q=d.split(",");return q.length>g.UN(i21).length?null:Hz(q,function(T,Y){Y=Y.toLowerCase().split("=");if(Y.length!=2||IcY[Y[0]]===void 0||!IcY[Y[0]](Y[1]))throw Error("Entry ("+Y[0]+", "+Y[1]+") is invalid.");T[Y[0]]=Y[1];return T},{})}catch(T){return null}};
  931. SyI=function(d,q){if(d.G==void 0)return 0;switch(d.S){case "mtos":return d.U?sR(q.G,d.G):sR(q.U,d.G);case "tos":return d.U?Jy(q.G,d.G):Jy(q.U,d.G)}return 0};
  932. x3=function(d,q,T,Y){G1.call(this,q,Y);this.L=d;this.B=T};
  933. yc=function(){};
  934. hD=function(d){G1.call(this,"fully_viewable_audible_half_duration_impression",d)};
  935. H3=function(d){this.G=d};
  936. Qc=function(d,q){G1.call(this,d,q)};
  937. M5=function(d){LF.call(this,"measurable_impression",d)};
  938. c3=function(){H3.apply(this,arguments)};
  939. Er=function(d,q,T){W5.call(this,d,q,T)};
  940. jI=function(d){d=d===void 0?OM:d;oq.call(this,new Iq(d,2))};
  941. aL=function(d,q,T){W5.call(this,d,q,T)};
  942. AD=function(d){d=d===void 0?OM:d;oq.call(this,new Iq(d,2))};
  943. pJ=function(){Iq.call(this,OM,2,"mraid");this.dO=0;this.UD=this.yv=!1;this.L=null;this.U=ekN(this.j);this.T.G=new GO(0,0,0,0);this.aU=!1};
  944. ZU=function(d,q,T){d.gf("addEventListener",q,T)};
  945. VsQ=function(d){T3().T=!!d.gf("isViewable");ZU(d,"viewableChange",lcI);d.gf("getState")==="loading"?ZU(d,"ready",vJQ):oJD(d)};
  946. oJD=function(d){typeof d.U.oi.AFMA_LIDAR==="string"?(d.yv=!0,dVj(d)):(d.U.compatibility=3,d.L="nc",d.fail("w"))};
  947. dVj=function(d){d.UD=!1;var q=Az(T3().QU,"rmmt")==1,T=!!d.gf("isViewable");(q?!T:1)&&cz().setTimeout(n5(524,function(){d.UD||(qt7(d),rQ(540,Error()),d.L="mt",d.fail("w"))}),500);
  948. TzI(d);ZU(d,d.U.oi.AFMA_LIDAR,YtI)};
  949. TzI=function(d){var q=Az(T3().QU,"sneio")==1,T=d.U.oi.AFMA_LIDAR_EXP_1!==void 0,Y=d.U.oi.AFMA_LIDAR_EXP_2!==void 0;(q=q&&Y)&&(d.U.oi.AFMA_LIDAR_EXP_2=!0);T&&(d.U.oi.AFMA_LIDAR_EXP_1=!q)};
  950. qt7=function(d){d.gf("removeEventListener",d.U.oi.AFMA_LIDAR,YtI);d.yv=!1};
  951. eRg=function(d,q){if(d.gf("getState")==="loading")return new g.zP(-1,-1);q=d.gf(q);if(!q)return new g.zP(-1,-1);d=parseInt(q.width,10);q=parseInt(q.height,10);return isNaN(d)||isNaN(q)?new g.zP(-1,-1):new g.zP(d,q)};
  952. vJQ=function(){try{var d=QC(pJ);d.gf("removeEventListener","ready",vJQ);oJD(d)}catch(q){rQ(541,q)}};
  953. YtI=function(d,q){try{var T=QC(pJ);T.UD=!0;var Y=d?new GO(d.y,d.x+d.width,d.y+d.height,d.x):new GO(0,0,0,0);var e=tq(),U=z3();var b=new kf(e,U,T);b.G=Y;b.volume=q;T.BZ(b)}catch(J){rQ(542,J)}};
  954. lcI=function(d){var q=T3(),T=QC(pJ);d&&!q.T&&(q.T=!0,T.aU=!0,T.L&&T.fail("w",!0))};
  955. Or=function(){this.isInitialized=!1;this.G=this.U=null;var d={};this.L=(d.start=this.GL,d.firstquartile=this.kW,d.midpoint=this.KI,d.thirdquartile=this.fV,d.complete=this.O3,d.error=this.cI,d.pause=this.xC,d.resume=this.hn,d.skip=this.Pc,d.viewable_impression=this.yj,d.mute=this.ZV,d.unmute=this.ZV,d.fullscreen=this.V7,d.exitfullscreen=this.CI,d.fully_viewable_audible_half_duration_impression=this.yj,d.measurable_impression=this.yj,d.abandon=this.xC,d.engagedview=this.yj,d.impression=this.yj,d.creativeview=
  956. this.yj,d.progress=this.ZV,d.custom_metric_viewable=this.yj,d.bufferstart=this.xC,d.bufferfinish=this.hn,d.audio_measurable=this.yj,d.audio_audible=this.yj,d);d={};this.B=(d.overlay_resize=this.w2,d.abandon=this.XY,d.close=this.XY,d.collapse=this.XY,d.overlay_unmeasurable_impression=function(q){return IO(q,"overlay_unmeasurable_impression",z3())},d.overlay_viewable_immediate_impression=function(q){return IO(q,"overlay_viewable_immediate_impression",z3())},d.overlay_unviewable_impression=function(q){return IO(q,
  957. "overlay_unviewable_impression",z3())},d.overlay_viewable_end_of_session_impression=function(q){return IO(q,"overlay_viewable_end_of_session_impression",z3())},d);
  958. T3().U=3;UVQ(this);this.j=null};
  959. nJ=function(d,q,T,Y){d=d.R$(null,Y,!0,q);d.T=T;AIn([d]);return d};
  960. bgH=function(d,q,T){tDn(q);var Y=d.G;g.Sj(q,function(e){var U=g.yC(e.criteria,function(b){var J=mAj(b);if(J==null)b=null;else if(b=new zZf,J.visible!=null&&(b.G=J.visible/100),J.audible!=null&&(b.U=J.audible==1),J.time!=null){var F=J.timetype=="mtos"?"mtos":"tos",N=DHN(J.time,"%")?"%":"ms";J=parseInt(J.time,10);N=="%"&&(J/=100);b.setTime(J,N,F)}return b});
  961. D7(U,function(b){return b==null})||T2I(T,new x3(e.id,e.event,U,Y))})};
  962. X0N=function(){var d=[],q=T3();d.push(QC(Ur));Az(q.QU,"mvp_lv")&&d.push(QC(pJ));q=[new jI,new AD];q.push(new dS(d));q.push(new eI(OM));return q};
  963. J3Y=function(d){if(!d.isInitialized){d.isInitialized=!0;try{var q=tq(),T=T3(),Y=wQ();BK=q;T.j=79463069;d.U!=="o"&&(CDI=U$D(OM));if(yz7()){Xz.G.Y3=0;Xz.G.Wt=tq()-q;var e=X0N(),U=QC(Vg);U.U=e;Z26(U,function(){rS()})?Xz.done||(kg7(),SG(U.G.G,d),JD()):Y.j?rS():JD()}else tD=!0}catch(b){throw v5.reset(),b;
  964. }}};
  965. P3=function(d){Xz.U.cancel();k3=d;Xz.done=!0};
  966. W3=function(d){if(d.U)return d.U;var q=QC(Vg).G;if(q)switch(q.getName()){case "nis":d.U="n";break;case "gsv":d.U="m"}d.U||(d.U="h");return d.U};
  967. CJ=function(d,q,T){if(d.G==null)return q.c6|=4,!1;d=sbI(d.G,T,q);q.c6|=d;return d==0};
  968. rS=function(){var d=[new eI(OM)],q=QC(Vg);q.U=d;Z26(q,function(){P3("i")})?Xz.done||(kg7(),JD()):P3("i")};
  969. $Vn=function(d,q){if(!d.lF){var T=IO(d,"start",z3());T=d.AT.G(T).G;var Y={id:"lidarv"};Y.r=q;Y.sv="967";gS!==null&&(Y.v=gS);Fm(T,function(e,U){return Y[e]=e=="mtos"||e=="tos"?U:encodeURIComponent(U)});
  970. q=u2g();Fm(q,function(e,U){return Y[e]=encodeURIComponent(U)});
  971. q="//pagead2.googlesyndication.com/pagead/gen_204?"+q8(dD(new V6,Y));Ejg(q);d.lF=!0}};
  972. u3=function(d,q,T){sr(Xz,[d],!z3());b2Y(d,T);T!=4&&UA1(d.yv,T,d.KB);return IO(d,q,z3())};
  973. UVQ=function(d){Wg2(function(){var q=gYg();d.U!=null&&(q.sdk=d.U);var T=QC(Vg);T.G!=null&&(q.avms=T.G.getName());return q})};
  974. F37=function(d,q,T,Y){var e=cIf(v5,T);e!==null&&e.UN!==q&&(d.Qa(e),e=null);e||(q=d.R$(T,tq(),!1,q),v5.U.length==0&&(T3().j=79463069),pVn([q]),e=q,e.T=W3(d),Y&&(e.AF=Y));return e};
  975. NzI=function(d,q){var T=d[q];T!==void 0&&T>0&&(d[q]=Math.floor(T*1E3))};
  976. gYg=function(){var d=wQ(),q={},T={},Y={};return Object.assign({},(q.sv="967",q),gS!==null&&(T.v=gS,T),(Y["if"]=d.j?"1":"0",Y.nas=String(v5.G.length),Y))};
  977. DU=function(d){G1.call(this,"audio_audible",d)};
  978. wS=function(d){LF.call(this,"audio_measurable",d)};
  979. fJ=function(){H3.apply(this,arguments)};
  980. zs=function(){};
  981. RRI=function(d){this.G=d};
  982. sbI=function(d,q,T){d=d.U();if(typeof d==="function"){var Y={};var e={};Y=Object.assign({},gS!==null&&(Y.v=gS,Y),(e.sv="967",e.cb=wVg,e.e=xVY(q),e));e=IO(T,q,z3());g.hz(Y,e);T.t$[q]=e;Y=T.T3()==2?cAD(Y).join("&"):T.AT.G(Y).G;try{return d(T.UN,Y,q),0}catch(U){return 2}}else return 1};
  983. xVY=function(d){var q=RL(d)?"custom_metric_viewable":d;d=gb(ip,function(T){return T==q});
  984. return Fz[d]};
  985. i3=function(){Or.call(this);this.X=null;this.S=!1;this.T="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
  986. y3I=function(d,q,T){T=T.opt_configurable_tracking_events;d.G!=null&&Array.isArray(T)&&bgH(d,T,q)};
  987. hRf=function(d,q,T){var Y=lp(v5,q);Y||(Y=T.opt_nativeTime||-1,Y=nJ(d,q,W3(d),Y),T.opt_osdId&&(Y.AF=T.opt_osdId));return Y};
  988. Hgg=function(d,q,T){var Y=lp(v5,q);Y||(Y=nJ(d,q,"n",T.opt_nativeTime||-1));return Y};
  989. Qb6=function(d,q){var T=lp(v5,q);T||(T=nJ(d,q,"h",-1));return T};
  990. M86=function(d){T3();switch(W3(d)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null};
  991. jb2=function(d,q,T,Y){T=T===void 0?{}:T;var e={};g.hz(e,{opt_adElement:void 0,opt_fullscreen:void 0},T);var U=d.i4(q,T);T=U?U.AT:d.Bz();if(e.opt_bounds)return T.G(N5("ol",Y));if(Y!==void 0)if(fcN(Y)!==void 0)if(tD)d=N5("ue",Y);else if(J3Y(d),k3=="i")d=N5("i",Y),d["if"]=0;else if(q=d.i4(q,e)){b:{k3=="i"&&(q.Vh=!0);U=e.opt_fullscreen;U!==void 0&&c5(q,!!U);var b;if(U=!wQ().U)(U=B2(g.k9(),"CrKey")&&!(B2(g.k9(),"CrKey")&&B2(g.k9(),"SmartSpeaker"))||B2(g.k9(),"PlayStation")||B2(g.k9(),"Roku")||scf()||B2(g.k9(),
  992. "Xbox"))||(U=g.k9(),U=B2(U,"AppleTV")||B2(U,"Apple TV")||B2(U,"CFNetwork")||B2(U,"tvOS")),U||(U=g.k9(),U=B2(U,"sdk_google_atv_x86")||B2(U,"Android TV")),U=!U;U&&(cz(),U=YQ(f5)===0);if(b=U){switch(q.T3()){case 1:$Vn(q,"pv");break;case 2:d.jy(q)}P3("pv")}U=Y.toLowerCase();if(b=!b)b=Az(T3().QU,"ssmol")&&U==="loaded"?!1:g.cR(c31,U);if(b&&q.eV==0){k3!="i"&&(Xz.done=!1);b=e!==void 0?e.opt_nativeTime:void 0;L5=b=typeof b==="number"?b:tq();q.cC=!0;var J=z3();q.eV=1;q.uw={};q.uw.start=!1;q.uw.firstquartile=
  993. !1;q.uw.midpoint=!1;q.uw.thirdquartile=!1;q.uw.complete=!1;q.uw.resume=!1;q.uw.pause=!1;q.uw.skip=!1;q.uw.mute=!1;q.uw.unmute=!1;q.uw.viewable_impression=!1;q.uw.measurable_impression=!1;q.uw.fully_viewable_audible_half_duration_impression=!1;q.uw.fullscreen=!1;q.uw.exitfullscreen=!1;q.Pm=0;J||(q.Rk().B=b);sr(Xz,[q],!J)}(b=q.nh[U])&&nF(q.Dh,b);Az(T3().QU,"fmd")||g.cR(EYX,U)&&q.QY&&q.QY.U(q,null);switch(q.T3()){case 1:var F=RL(U)?d.L.custom_metric_viewable:d.L[U];break;case 2:F=d.B[U]}if(F&&(Y=F.call(d,
  994. q,e,Y),Az(T3().QU,"fmd")&&g.cR(EYX,U)&&q.QY&&q.QY.U(q,null),Y!==void 0)){e=N5(void 0,U);g.hz(e,Y);Y=e;break b}Y=void 0}q.eV==3&&d.Qa(q);d=Y}else d=N5("nf",Y);else d=void 0;else tD?d=N5("ue"):U?(d=N5(),g.hz(d,JI7(U,!0,!1,!1))):d=N5("nf");return typeof d==="string"?T.G():T.G(d)};
  995. aLj=function(d,q){q&&(d.T=q)};
  996. A3f=function(d){var q={};return q.viewability=d.G,q.googleViewability=d.U,q};
  997. p07=function(d,q,T){T=T===void 0?{}:T;d=jb2(QC(i3),q,T,d);return A3f(d)};
  998. IL=function(d){var q=g.CN.apply(1,arguments).filter(Boolean).join("&");if(!q)return d;var T=d.match(/[?&]adurl=/);return T?d.slice(0,T.index+1)+q+"&"+d.slice(T.index+1):d+(d.indexOf("?")<0?"?":"&")+q};
  999. mt=function(d,q){return q?"&"+d+"="+encodeURIComponent(q):""};
  1000. Zgn=function(d){var q=d.url;d=d.YXg;this.U=q;this.T=d;this.j=(new Date).getTime()-17040672E5;this.G={};for(var T=/[?&]([^&=]+)=([^&]*)/g;d=T.exec(q);)this.G[d[1]]=d[2]};
  1001. Og2=function(d){d=d.T;if(!d)return"";var q=mt("uap",d.platform)+mt("uapv",d.platformVersion)+mt("uafv",d.uaFullVersion)+mt("uaa",d.architecture)+mt("uam",d.model)+mt("uab",d.bitness);d.fullVersionList&&(q+="&uafvl="+encodeURIComponent(d.fullVersionList.map(function(T){return encodeURIComponent(T.brand)+";"+encodeURIComponent(T.version)}).join("|")));
  1002. d.wow64!=null&&(q+="&uaw="+Number(d.wow64));return q.slice(1)};
  1003. t81=function(d,q,T,Y,e){var U=window;var b=b===void 0?!1:b;var J;T?J=(b===void 0?0:b)?"//ep1.adtrafficquality.google/bg/"+nn(T)+".js":"//pagead2.googlesyndication.com/bg/"+nn(T)+".js":J="";b=b===void 0?!1:b;T=U.document;var F={};q&&(F._scs_=q);F._bgu_=J;F._bgp_=Y;F._li_="v_h.3.0.0.0";e&&(F._upb_=e);(q=U.GoogleTyFxhY)&&typeof q.push=="function"||(q=U.GoogleTyFxhY=[]);q.push(F);q=VY(T).createElement("SCRIPT");q.type="text/javascript";q.async=!0;d=(b===void 0?0:b)?tjD(nYQ,nn(d)+".js"):tjD(r3g,nn(d)+
  1004. ".js");g.QY(q,d);(U=(U.GoogleTyFxhYEET||{})[q.src])?U():T.getElementsByTagName("head")[0].appendChild(q)};
  1005. BzY=function(){try{var d,q;return!!((d=window)==null?0:(q=d.top)==null?0:q.location.href)&&!1}catch(T){return!0}};
  1006. SI=function(d,q,T){T=T===void 0?Error():T;var Y=Error.call(this);this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);this.code=d;q+=":";T instanceof Error?(this.message=q+T.message,this.stack=T.stack||""):(this.message=q+String(T),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
  1007. v3=function(){var d=K3D();d=d===void 0?"bevasrsg":d;return new Promise(function(q){var T=window===window.top?window:BzY()?window:window.top,Y=T[d],e;((e=Y)==null?0:e.bevasrs)?q(new l3(Y.bevasrs)):(Y||(Y={},Y=(Y.nqfbel=[],Y),T[d]=Y),Y.nqfbel.push(function(U){q(new l3(U))}))})};
  1008. GUX=function(d){var q={c:d.BO,e:d.yE,mc:d.qw,me:d.m9};d.MI&&(q.co={c:d.MI.yO,a:d.MI.vN,s:d.MI.Tn});return q};
  1009. oL=function(d){g.W.call(this);this.wpc=d};
  1010. l3=function(d){g.W.call(this);var q=this;this.CH=d;this.j="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.U=void 0;this.w0=this.CH.p;this.T=this.f0.bind(this);this.addOnDisposeCallback(function(){return void L3_(q)})};
  1011. kUY=function(d){var q;return g.G(function(T){if(T.U==1){if(!d.CH.wpc)throw new SI(30,"NWA");return d.G?T.return(d.G):g.B(T,d.CH.wpc(),2)}q=T.G;d.G=new oL(q);return T.return(d.G)})};
  1012. L3_=function(d){d.U!==void 0&&(d.j.forEach(function(q){var T;(T=d.U)==null||T.removeEventListener(q,d.T)}),d.U=void 0)};
  1013. PLI=function(d){var q=q===void 0?50:q;var T=[];HV(d,Vc,6).forEach(function(Y){p2(Y,2)<=q&&T.push(p2(Y,1))});
  1014. return T};
  1015. W3g=function(d){var q=q===void 0?50:q;var T=[];HV(d,Vc,6).forEach(function(Y){p2(Y,2)>q&&T.push(p2(Y,1))});
  1016. return T};
  1017. CLH=function(d){d.then(function(){},function(){})};
  1018. dq=function(){g.W.apply(this,arguments);this.U=1;this[uj_]=this.dispose};
  1019. qS=function(d){return{fieldType:2,fieldName:d}};
  1020. g.Tx=function(d){return{fieldType:3,fieldName:d}};
  1021. DVH=function(d){this.G=d;d.cU("/client_streamz/bg/frs",g.Tx("mk"))};
  1022. w07=function(d){this.G=d;d.cU("/client_streamz/bg/wrl",g.Tx("mn"),qS("ac"),qS("sc"),g.Tx("rk"),g.Tx("mk"))};
  1023. fLn=function(d){this.G=d;d.Ib("/client_streamz/bg/ec",g.Tx("en"),g.Tx("mk"))};
  1024. zR2=function(d){this.G=d;d.cU("/client_streamz/bg/el",g.Tx("en"),g.Tx("mk"))};
  1025. igN=function(d){this.G=d;d.Ib("/client_streamz/bg/cec",qS("ec"),g.Tx("mk"))};
  1026. ILH=function(d){this.G=d;d.Ib("/client_streamz/bg/po/csc",qS("cs"),g.Tx("mk"))};
  1027. mVj=function(d){this.G=d;d.Ib("/client_streamz/bg/po/ctav",g.Tx("av"),g.Tx("mk"))};
  1028. Stn=function(d){this.G=d;d.Ib("/client_streamz/bg/po/cwsc",g.Tx("su"),g.Tx("mk"))};
  1029. lL1=function(d){this.Kf=DY(d)};
  1030. vYf=function(d,q){return rn6(d,q,dXn)};
  1031. Ym=function(d){this.Kf=DY(d)};
  1032. e$=function(d){this.Kf=DY(d)};
  1033. UE=function(d){this.Kf=DY(d)};
  1034. bm=function(d){this.Kf=DY(d)};
  1035. XP=function(d){this.Kf=DY(d)};
  1036. JS=function(d){this.Kf=DY(d)};
  1037. oYn=function(d){this.Kf=DY(d)};
  1038. qbQ=function(d){var q=new JS;q=K2(q,1,d.U);var T=V8j(d);q=rn6(q,T,Fng);T=[];for(var Y=[],e=g.E(d.G.keys()),U=e.next();!U.done;U=e.next())Y.push(U.value.split(","));for(e=0;e<Y.length;e++){U=Y[e];for(var b=d.T,J=d.Fe(U)||[],F=[],N=0;N<J.length;N++){var R=J[N],x=R&&R.G;R=new e$;switch(b){case 3:x=Number(x);Number.isFinite(x)&&F2(R,1,sE,cE(x));break;case 2:F2(R,2,sE,Xe(Number(x)))}F.push(R)}b=F;for(J=0;J<b.length;J++){F=b[J];N=new UE;F=Qw(N,e$,2,F);N=[];R=djI(d);for(x=0;x<R.length;x++){var y=R[x],h=
  1039. U[x],H=new Ym;switch(y){case 3:F2(H,1,$m,a4(String(h)));break;case 2:y=Number(h);Number.isFinite(y)&&F2(H,2,$m,Fe(y));break;case 1:F2(H,3,$m,JA(h==="true"))}N.push(H)}al(F,Ym,1,N);T.push(F)}}al(q,UE,4,T);return q};
  1040. TQn=function(d){if(!d)return"";if(/^about:(?:blank|srcdoc)$/.test(d))return window.origin||"";d.indexOf("blob:")===0&&(d=d.substring(5));d=d.split("#")[0].split("?")[0];d=d.toLowerCase();d.indexOf("//")==0&&(d=window.location.protocol+d);/^[\w\-]*:\/\//.test(d)||(d=window.location.href);var q=d.substring(d.indexOf("://")+3),T=q.indexOf("/");T!=-1&&(q=q.substring(0,T));T=d.substring(0,d.indexOf("://"));if(!T)throw Error("URI is missing protocol: "+d);if(T!=="http"&&T!=="https"&&T!=="chrome-extension"&&
  1041. T!=="moz-extension"&&T!=="file"&&T!=="android-app"&&T!=="chrome-search"&&T!=="chrome-untrusted"&&T!=="chrome"&&T!=="app"&&T!=="devtools")throw Error("Invalid URI scheme in origin: "+T);d="";var Y=q.indexOf(":");if(Y!=-1){var e=q.substring(Y+1);q=q.substring(0,Y);if(T==="http"&&e!=="80"||T==="https"&&e!=="443")d=":"+e}return T+"://"+q+d};
  1042. Yb2=function(){function d(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;R=N=0}
  1043. function q(x){for(var y=b,h=0;h<64;h+=4)y[h/4]=x[h]<<24|x[h+1]<<16|x[h+2]<<8|x[h+3];for(h=16;h<80;h++)x=y[h-3]^y[h-8]^y[h-14]^y[h-16],y[h]=(x<<1|x>>>31)&4294967295;x=e[0];var H=e[1],a=e[2],p=e[3],t=e[4];for(h=0;h<80;h++){if(h<40)if(h<20){var n=p^H&(a^p);var K=1518500249}else n=H^a^p,K=1859775393;else h<60?(n=H&a|p&(H|a),K=2400959708):(n=H^a^p,K=3395469782);n=((x<<5|x>>>27)&4294967295)+n+t+K+y[h]&4294967295;t=p;p=a;a=(H<<30|H>>>2)&4294967295;H=x;x=n}e[0]=e[0]+x&4294967295;e[1]=e[1]+H&4294967295;e[2]=
  1044. e[2]+a&4294967295;e[3]=e[3]+p&4294967295;e[4]=e[4]+t&4294967295}
  1045. function T(x,y){if(typeof x==="string"){x=unescape(encodeURIComponent(x));for(var h=[],H=0,a=x.length;H<a;++H)h.push(x.charCodeAt(H));x=h}y||(y=x.length);h=0;if(N==0)for(;h+64<y;)q(x.slice(h,h+64)),h+=64,R+=64;for(;h<y;)if(U[N++]=x[h++],R++,N==64)for(N=0,q(U);h+64<y;)q(x.slice(h,h+64)),h+=64,R+=64}
  1046. function Y(){var x=[],y=R*8;N<56?T(J,56-N):T(J,64-(N-56));for(var h=63;h>=56;h--)U[h]=y&255,y>>>=8;q(U);for(h=y=0;h<5;h++)for(var H=24;H>=0;H-=8)x[y++]=e[h]>>H&255;return x}
  1047. for(var e=[],U=[],b=[],J=[128],F=1;F<64;++F)J[F]=0;var N,R;d();return{reset:d,update:T,digest:Y,W8:function(){for(var x=Y(),y="",h=0;h<x.length;h++)y+="0123456789ABCDEF".charAt(Math.floor(x[h]/16))+"0123456789ABCDEF".charAt(x[h]%16);return y}}};
  1048. Uj6=function(d,q,T){var Y=String(g.oQ.location.href);return Y&&d&&q?[q,ex_(TQn(Y),d,T||null)].join(" "):null};
  1049. ex_=function(d,q,T){var Y=[],e=[];if((Array.isArray(T)?2:1)==1)return e=[q,d],g.Sj(Y,function(J){e.push(J)}),b5N(e.join(" "));
  1050. var U=[],b=[];g.Sj(T,function(J){b.push(J.key);U.push(J.value)});
  1051. T=Math.floor((new Date).getTime()/1E3);e=U.length==0?[T,q,d]:[U.join(":"),T,q,d];g.Sj(Y,function(J){e.push(J)});
  1052. d=b5N(e.join(" "));d=[T,d];b.length==0||d.push(b.join(""));return d.join("_")};
  1053. b5N=function(d){var q=Yb2();q.update(d);return q.W8().toLowerCase()};
  1054. gq=function(d){this.G=d||{cookie:""}};
  1055. FP=function(d){d=(d.G.cookie||"").split(";");for(var q=[],T=[],Y,e,U=0;U<d.length;U++)e=Kh(d[U]),Y=e.indexOf("="),Y==-1?(q.push(""),T.push(e)):(q.push(e.substring(0,Y)),T.push(e.substring(Y+1)));return{keys:q,values:T}};
  1056. XK2=function(){var d=g.oQ.__SAPISID||g.oQ.__APISID||g.oQ.__3PSAPISID||g.oQ.__1PSAPISID||g.oQ.__OVERRIDE_SID;if(d)return!0;typeof document!=="undefined"&&(d=new gq(document),d=d.get("SAPISID")||d.get("APISID")||d.get("__Secure-3PAPISID")||d.get("__Secure-1PAPISID"));return!!d};
  1057. Jqg=function(d,q,T,Y){(d=g.oQ[d])||typeof document==="undefined"||(d=(new gq(document)).get(q));return d?Uj6(d,T,Y):null};
  1058. sqD=function(d){var q=TQn(g.oQ==null?void 0:g.oQ.location.href),T=[];if(XK2()){q=q.indexOf("https:")==0||q.indexOf("chrome-extension:")==0||q.indexOf("chrome-untrusted://new-tab-page")==0||q.indexOf("moz-extension:")==0;var Y=q?g.oQ.__SAPISID:g.oQ.__APISID;Y||typeof document==="undefined"||(Y=new gq(document),Y=Y.get(q?"SAPISID":"APISID")||Y.get("__Secure-3PAPISID"));(Y=Y?Uj6(Y,q?"SAPISIDHASH":"APISIDHASH",d):null)&&T.push(Y);q&&((q=Jqg("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",d))&&T.push(q),
  1059. (d=Jqg("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",d))&&T.push(d))}return T.length==0?null:T.join(" ")};
  1060. NS=function(){};
  1061. RB=function(d){this.Kf=DY(d)};
  1062. xm=function(d,q){this.intervalMs=d;this.callback=q;this.enabled=!1;this.G=function(){return g.F_()};
  1063. this.U=this.G()};
  1064. y1=function(d){this.Kf=DY(d)};
  1065. hS=function(d){this.Kf=DY(d)};
  1066. HP=function(d){this.Kf=DY(d)};
  1067. Q1=function(d){this.Kf=DY(d)};
  1068. MS=function(d){this.Kf=DY(d)};
  1069. $jg=function(d){al(cP,Q1,1,d)};
  1070. EE=function(d){this.Kf=DY(d)};
  1071. Fb7=function(d,q){q=q===void 0?gfg:q;if(!j$){var T;d=(T=d.navigator)==null?void 0:T.userAgentData;if(!d||typeof d.getHighEntropyValues!=="function"||d.brands&&typeof d.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));$jg((d.brands||[]).map(function(e){var U=new Q1;U=K2(U,1,e.brand);return K2(U,2,e.version)}));
  1072. typeof d.mobile==="boolean"&&VX(cP,2,JA(d.mobile));j$=d.getHighEntropyValues(q)}var Y=new Set(q);return j$.then(function(e){var U=cP.clone();Y.has("platform")&&K2(U,3,e.platform);Y.has("platformVersion")&&K2(U,4,e.platformVersion);Y.has("architecture")&&K2(U,5,e.architecture);Y.has("model")&&K2(U,6,e.model);Y.has("uaFullVersion")&&K2(U,7,e.uaFullVersion);return U.VH()}).catch(function(){return cP.VH()})};
  1073. aB=function(d){this.Kf=DY(d)};
  1074. NQY=function(d){return L2(d,1,1)};
  1075. Rxf=function(d){this.Kf=DY(d)};
  1076. AS=function(d){this.Kf=DY(d,4)};
  1077. pb=function(d){this.Kf=DY(d,36)};
  1078. ZQ=function(d){this.Kf=DY(d,19)};
  1079. nb=function(d,q){this.oW=q=q===void 0?!1:q;this.uach=this.locale=null;this.U=0;this.isFinal=!1;this.G=new ZQ;Number.isInteger(d)&&this.G.cj(d);q||(this.locale=document.documentElement.getAttribute("lang"));OE(this,new aB)};
  1080. OE=function(d,q){Qw(d.G,aB,1,q);n2(q,1)||NQY(q);d.oW||(q=rq(d),Oy(q,5)||K2(q,5,d.locale));d.uach&&(q=rq(d),hI(q,MS,9)||Qw(q,MS,9,d.uach))};
  1081. xjf=function(d,q){d.U=q};
  1082. hx6=function(d){var q=q===void 0?gfg:q;var T=d.oW?void 0:sM();T?Fb7(T,q).then(function(Y){d.uach=yqX(Y!=null?Y:"[]");Y=rq(d);Qw(Y,MS,9,d.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)};
  1083. rq=function(d){var q=hI(d.G,aB,1);q||(q=new aB,OE(d,q));d=q;q=hI(d,EE,11);q||(q=new EE,Qw(d,EE,11,q));return q};
  1084. g.tS=function(d,q,T,Y){this.T=d;this.S=q;this.G=this.j=d;this.X=T||0;this.L=Y||2};
  1085. g.BP=function(d){d.G=Math.min(d.S,d.G*d.L);d.j=Math.min(d.S,d.G+(d.X?Math.round(d.X*(Math.random()-.5)*2*d.G):0));d.U++};
  1086. ob=function(d){this.Kf=DY(d,8)};
  1087. EEg=function(d){this.Kf=DY(d)};
  1088. Lb=function(d){g.W.call(this);var q=this;this.componentId="";this.G=[];this.RU="";this.pageId=null;this.qk=this.rO=-1;this.L=this.experimentIds=null;this.X=this.T=0;this.K=null;this.UD=this.yv=0;this.xx=1;this.timeoutMillis=0;this.z2=!1;this.logSource=d.logSource;this.Nq=d.Nq||function(){};
  1089. this.j=new nb(d.logSource,d.oW);this.network=d.network||null;this.wd=d.wd||null;this.B=d.kur||null;this.sessionIndex=d.sessionIndex||null;this.gS=d.gS||!1;this.logger=null;this.withCredentials=!d.Uy;this.oW=d.oW||!1;this.lr=!this.oW&&!!sM()&&!!sM().navigator&&sM().navigator.sendBeacon!==void 0;this.aU=typeof URLSearchParams!=="undefined"&&!!(new URL(Kb())).searchParams&&!!(new URL(Kb())).searchParams.set;var T=NQY(new aB);OE(this.j,T);this.S=new g.tS(1E4,3E5,.1);d=H5_(this,d.D9);this.U=new xm(this.S.getValue(),
  1090. d);this.dO=new xm(6E5,d);this.gS||this.dO.start();this.oW||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){Gx(q);var Y;(Y=q.K)==null||Y.flush()}}),document.addEventListener("pagehide",function(){Gx(q);
  1091. var Y;(Y=q.K)==null||Y.flush()}))};
  1092. H5_=function(d,q){return d.aU?q?function(){q().then(function(){d.flush()})}:function(){d.flush()}:function(){}};
  1093. Qqn=function(d){d.B||(d.B=Kb());try{return(new URL(d.B)).toString()}catch(q){return(new URL(d.B,sM().location.origin)).toString()}};
  1094. km=function(d,q,T){d.K&&d.K.Er(q,T)};
  1095. MGj=function(d,q,T){T=T===void 0?null:T;var Y=Y===void 0?d.withCredentials:Y;var e={},U=new URL(Qqn(d));T&&(e.Authorization=T);d.sessionIndex&&(e["X-Goog-AuthUser"]=d.sessionIndex,U.searchParams.set("authuser",d.sessionIndex));d.pageId&&(Object.defineProperty(e,"X-Goog-PageId",{value:d.pageId}),U.searchParams.set("pageId",d.pageId));return{url:U.toString(),body:q,UA:1,requestHeaders:e,requestType:"POST",withCredentials:Y,timeoutMillis:d.timeoutMillis}};
  1096. Gx=function(d){d.j.isFinal=!0;d.flush();d.j.isFinal=!1};
  1097. Ef6=function(d){cq_(d,function(q,T){q=new URL(q);q.searchParams.set("format","json");var Y=!1;try{Y=sM().navigator.sendBeacon(q.toString(),T.VH())}catch(e){}Y||(d.lr=!1);return Y})};
  1098. cq_=function(d,q){if(d.G.length!==0){var T=new URL(Qqn(d));T.searchParams.delete("format");var Y=d.Nq();Y&&T.searchParams.set("auth",Y);T.searchParams.set("authuser",d.sessionIndex||"0");for(Y=0;Y<10&&d.G.length;++Y){var e=d.G.slice(0,32),U=d.j.build(e,d.T,d.X,d.wd,d.yv,d.UD);if(!q(T.toString(),U)){++d.X;break}d.T=0;d.X=0;d.yv=0;d.UD=0;d.G=d.G.slice(e.length)}d.U.enabled&&d.U.stop()}};
  1099. Kb=function(){return"https://play.google.com/log?format=json&hasfast=true"};
  1100. PP=function(){this.nK=typeof AbortController!=="undefined"};
  1101. WP=function(d,q){q=q===void 0?"0":q;g.W.call(this);this.logSource=d;this.sessionIndex=q;this.sX="https://play.google.com/log?format=json&hasfast=true";this.U=null;this.T=!1;this.network=null;this.componentId="";this.G=this.wd=null;this.j=!1;this.pageId=null};
  1102. jqg=function(d,q){d.U=q;return d};
  1103. a7N=function(d,q){d.network=q;return d};
  1104. AqX=function(d,q){d.G=q};
  1105. pKI=function(d){d.j=!0;return d};
  1106. Cb=function(d,q,T,Y,e,U,b){d=d===void 0?-1:d;q=q===void 0?"":q;T=T===void 0?"":T;Y=Y===void 0?!1:Y;e=e===void 0?"":e;g.W.call(this);this.logSource=d;this.componentId=q;U?q=U:(d=new WP(d,"0"),d.componentId=q,g.C(this,d),T!==""&&(d.sX=T),Y&&(d.T=!0),e&&jqg(d,e),b&&a7N(d,b),q=d.build());this.G=q};
  1107. Z5Q=function(d){this.G=d};
  1108. um=function(d,q,T){this.U=d;this.T=q;this.fields=T||[];this.G=new Map};
  1109. djI=function(d){return d.fields.map(function(q){return q.fieldType})};
  1110. V8j=function(d){return d.fields.map(function(q){return q.fieldName})};
  1111. DQ=function(d,q){um.call(this,d,3,q)};
  1112. wq=function(d,q){um.call(this,d,2,q)};
  1113. g.fb=function(d,q){this.type=d;this.currentTarget=this.target=q;this.defaultPrevented=this.U=!1};
  1114. zx=function(d,q){g.fb.call(this,d?d.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.G=null;d&&this.init(d,q)};
  1115. im=function(d){return!(!d||!d[O5N])};
  1116. rqg=function(d,q,T,Y,e){this.listener=d;this.proxy=null;this.src=q;this.type=T;this.capture=!!Y;this.CC=e;this.key=++nf_;this.removed=this.WQ=!1};
  1117. IB=function(d){d.removed=!0;d.listener=null;d.proxy=null;d.src=null;d.CC=null};
  1118. m4=function(d){this.src=d;this.listeners={};this.G=0};
  1119. g.S$=function(d,q){var T=q.type;T in d.listeners&&g.jj(d.listeners[T],q)&&(IB(q),d.listeners[T].length==0&&(delete d.listeners[T],d.G--))};
  1120. lm=function(d,q,T,Y){for(var e=0;e<d.length;++e){var U=d[e];if(!U.removed&&U.listener==q&&U.capture==!!T&&U.CC==Y)return e}return-1};
  1121. g.oB=function(d,q,T,Y,e){if(Y&&Y.once)return vP(d,q,T,Y,e);if(Array.isArray(q)){for(var U=0;U<q.length;U++)g.oB(d,q[U],T,Y,e);return null}T=V1(T);return im(d)?d.listen(q,T,g.UI(Y)?!!Y.capture:!!Y,e):tGN(d,q,T,!1,Y,e)};
  1122. tGN=function(d,q,T,Y,e,U){if(!q)throw Error("Invalid event type");var b=g.UI(e)?!!e.capture:!!e,J=d1(d);J||(d[qL]=J=new m4(d));T=J.add(q,T,Y,b,U);if(T.proxy)return T;Y=BQ6();T.proxy=Y;Y.src=d;Y.listener=T;if(d.addEventListener)Kb6||(e=b),e===void 0&&(e=!1),d.addEventListener(q.toString(),Y,e);else if(d.attachEvent)d.attachEvent(G3Q(q.toString()),Y);else if(d.addListener&&d.removeListener)d.addListener(Y);else throw Error("addEventListener and attachEvent are unavailable.");Lb6++;return T};
  1123. BQ6=function(){function d(T){return q.call(d.src,d.listener,T)}
  1124. var q=k3I;return d};
  1125. vP=function(d,q,T,Y,e){if(Array.isArray(q)){for(var U=0;U<q.length;U++)vP(d,q[U],T,Y,e);return null}T=V1(T);return im(d)?d.zg(q,T,g.UI(Y)?!!Y.capture:!!Y,e):tGN(d,q,T,!0,Y,e)};
  1126. PBj=function(d,q,T,Y,e){if(Array.isArray(q))for(var U=0;U<q.length;U++)PBj(d,q[U],T,Y,e);else Y=g.UI(Y)?!!Y.capture:!!Y,T=V1(T),im(d)?d.t1(q,T,Y,e):d&&(d=d1(d))&&(q=d.a7(q,T,Y,e))&&TB(q)};
  1127. TB=function(d){if(typeof d!=="number"&&d&&!d.removed){var q=d.src;if(im(q))g.S$(q.SH,d);else{var T=d.type,Y=d.proxy;q.removeEventListener?q.removeEventListener(T,Y,d.capture):q.detachEvent?q.detachEvent(G3Q(T),Y):q.addListener&&q.removeListener&&q.removeListener(Y);Lb6--;(T=d1(q))?(g.S$(T,d),T.G==0&&(T.src=null,q[qL]=null)):IB(d)}}};
  1128. G3Q=function(d){return d in Y1?Y1[d]:Y1[d]="on"+d};
  1129. k3I=function(d,q){if(d.removed)d=!0;else{q=new zx(q,this);var T=d.listener,Y=d.CC||d.src;d.WQ&&TB(d);d=T.call(Y,q)}return d};
  1130. d1=function(d){d=d[qL];return d instanceof m4?d:null};
  1131. V1=function(d){if(typeof d==="function")return d;d[JK]||(d[JK]=function(q){return d.handleEvent(q)});
  1132. return d[JK]};
  1133. g.$1=function(){g.W.call(this);this.SH=new m4(this);this.F2=this;this.Lg=null};
  1134. g1=function(d,q,T,Y){q=d.SH.listeners[String(q)];if(!q)return!0;q=q.concat();for(var e=!0,U=0;U<q.length;++U){var b=q[U];if(b&&!b.removed&&b.capture==T){var J=b.listener,F=b.CC||b.src;b.WQ&&g.S$(d.SH,b);e=J.call(F,Y)!==!1&&e}}return e&&!Y.defaultPrevented};
  1135. F6=function(d,q){this.j=d;this.T=q;this.U=0;this.G=null};
  1136. Wbn=function(d,q){d.T(q);d.U<100&&(d.U++,q.next=d.G,d.G=q)};
  1137. x1=function(d){d=NL(d);R_||(R_=CBj());R_(d)};
  1138. CBj=function(){if(typeof MessageChannel!=="undefined"){var d=new MessageChannel,q={},T=q;d.port1.onmessage=function(){if(q.next!==void 0){q=q.next;var Y=q.Cv;q.Cv=null;Y()}};
  1139. return function(Y){T.next={Cv:Y};T=T.next;d.port2.postMessage(0)}}return function(Y){g.oQ.setTimeout(Y,0)}};
  1140. y7=function(){this.U=this.G=null};
  1141. hK=function(){this.next=this.scope=this.G=null};
  1142. g.ML=function(d,q){Hd||umN();Q7||(Hd(),Q7=!0);Dj2.add(d,q)};
  1143. umN=function(){var d=Promise.resolve(void 0);Hd=function(){d.then(wKf)}};
  1144. wKf=function(){for(var d;d=Dj2.remove();){try{d.G.call(d.scope)}catch(q){j0(q)}Wbn(f7_,d)}Q7=!1};
  1145. g.pK=function(d){this.G=0;this.L=void 0;this.T=this.U=this.j=null;this.S=this.X=!1;if(d!=g.r_)try{var q=this;d.call(void 0,function(T){cd(q,2,T)},function(T){cd(q,3,T)})}catch(T){cd(this,3,T)}};
  1146. zxj=function(){this.next=this.context=this.U=this.j=this.G=null;this.T=!1};
  1147. ZZ=function(d,q,T){var Y=i51.get();Y.j=d;Y.U=q;Y.context=T;return Y};
  1148. g.Of=function(d){if(d instanceof g.pK)return d;var q=new g.pK(g.r_);cd(q,2,d);return q};
  1149. nK=function(d){return new g.pK(function(q,T){T(d)})};
  1150. g.mjN=function(d,q,T){I72(d,q,T,null)||g.ML(g.$c(q,d))};
  1151. SbX=function(d){return new g.pK(function(q,T){d.length||q(void 0);for(var Y,e=0;e<d.length;e++)Y=d[e],g.mjN(Y,q,T)})};
  1152. l7I=function(d,q,T,Y){r1(d,ZZ(q||g.r_,T||null,Y))};
  1153. g.tK=function(d,q){q=NL(q);q=ZZ(q,q);q.T=!0;r1(d,q);return d};
  1154. vfN=function(d,q){if(d.G==0)if(d.j){var T=d.j;if(T.U){for(var Y=0,e=null,U=null,b=T.U;b&&(b.T||(Y++,b.G==d&&(e=b),!(e&&Y>1)));b=b.next)e||(U=b);e&&(T.G==0&&Y==1?vfN(T,q):(U?(Y=U,Y.next==T.T&&(T.T=Y),Y.next=Y.next.next):ofj(T),VG1(T,e,3,q)))}d.j=null}else cd(d,3,q)};
  1155. r1=function(d,q){d.U||d.G!=2&&d.G!=3||d8Y(d);d.T?d.T.next=q:d.U=q;d.T=q};
  1156. qRI=function(d,q,T,Y){var e=ZZ(null,null,null);e.G=new g.pK(function(U,b){e.j=q?function(J){try{var F=q.call(Y,J);U(F)}catch(N){b(N)}}:U;
  1157. e.U=T?function(J){try{var F=T.call(Y,J);F===void 0&&J instanceof Bd?b(J):U(F)}catch(N){b(N)}}:b});
  1158. e.G.j=d;r1(d,e);return e.G};
  1159. cd=function(d,q,T){d.G==0&&(d===T&&(q=3,T=new TypeError("Promise cannot resolve to itself")),d.G=1,I72(T,d.Lfr,d.FfU,d)||(d.L=T,d.G=q,d.j=null,d8Y(d),q!=3||T instanceof Bd||TDX(d,T)))};
  1160. I72=function(d,q,T,Y){if(d instanceof g.pK)return l7I(d,q,T,Y),!0;if(d)try{var e=!!d.$goog_Thenable}catch(b){e=!1}else e=!1;if(e)return d.then(q,T,Y),!0;if(g.UI(d))try{var U=d.then;if(typeof U==="function")return YR6(d,U,q,T,Y),!0}catch(b){return T.call(Y,b),!0}return!1};
  1161. YR6=function(d,q,T,Y,e){function U(F){J||(J=!0,Y.call(e,F))}
  1162. function b(F){J||(J=!0,T.call(e,F))}
  1163. var J=!1;try{q.call(d,b,U)}catch(F){U(F)}};
  1164. d8Y=function(d){d.X||(d.X=!0,g.ML(d.bU,d))};
  1165. ofj=function(d){var q=null;d.U&&(q=d.U,d.U=q.next,q.next=null);d.U||(d.T=null);return q};
  1166. VG1=function(d,q,T,Y){if(T==3&&q.U&&!q.T)for(;d&&d.S;d=d.j)d.S=!1;if(q.G)q.G.j=null,eD7(q,T,Y);else try{q.T?q.j.call(q.context):eD7(q,T,Y)}catch(e){U8g.call(null,e)}Wbn(i51,q)};
  1167. eD7=function(d,q,T){q==2?d.j.call(d.context,T):d.U&&d.U.call(d.context,T)};
  1168. TDX=function(d,q){d.S=!0;g.ML(function(){d.S&&U8g.call(null,q)})};
  1169. Bd=function(d){xc.call(this,d)};
  1170. g.KK=function(d,q){g.$1.call(this);this.VS=d||1;this.bK=q||g.oQ;this.BN=(0,g.sI)(this.HjF,this);this.Dz=g.F_()};
  1171. g.GB=function(d,q,T){if(typeof d==="function")T&&(d=(0,g.sI)(d,T));else if(d&&typeof d.handleEvent=="function")d=(0,g.sI)(d.handleEvent,d);else throw Error("Invalid listener argument");return Number(q)>2147483647?-1:g.oQ.setTimeout(d,q||0)};
  1172. LK=function(d,q){var T=null;return(new g.pK(function(Y,e){T=g.GB(function(){Y(q)},d);
  1173. T==-1&&e(Error("Failed to schedule timer."))})).C8(function(Y){g.oQ.clearTimeout(T);
  1174. throw Y;})};
  1175. g.k1=function(d){g.W.call(this);this.L=d;this.T=0;this.j=100;this.S=!1;this.U=new Map;this.X=new Set;this.flushInterval=3E4;this.G=new g.KK(this.flushInterval);this.G.listen("tick",this.pP,!1,this);g.C(this,this.G)};
  1176. bFf=function(d){d.G.enabled||d.G.start();d.T++;d.T>=d.j&&d.pP()};
  1177. X51=function(d,q){return d.X.has(q)?void 0:d.U.get(q)};
  1178. JyH=function(d){for(var q=0;q<d.length;q++)d[q].clear()};
  1179. sOn=function(d){switch(d){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}};
  1180. $8_=function(d){switch(d){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";
  1181. default:return""}};
  1182. Pd=function(d,q,T){T=T===void 0?{}:T;q=Error.call(this,q);this.message=q.message;"stack"in q&&(this.stack=q.stack);this.code=d;this.metadata=T;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
  1183. g.Wd=function(d){return(new gtf).VH(d)};
  1184. gtf=function(){};
  1185. CK=function(d,q,T){if(q==null)T.push("null");else{if(typeof q=="object"){if(Array.isArray(q)){var Y=q;q=Y.length;T.push("[");for(var e="",U=0;U<q;U++)T.push(e),CK(d,Y[U],T),e=",";T.push("]");return}if(q instanceof String||q instanceof Number||q instanceof Boolean)q=q.valueOf();else{T.push("{");e="";for(Y in q)Object.prototype.hasOwnProperty.call(q,Y)&&(U=q[Y],typeof U!="function"&&(T.push(e),Fv_(Y,T),T.push(":"),CK(d,U,T),e=","));T.push("}");return}}switch(typeof q){case "string":Fv_(q,T);break;case "number":T.push(isFinite(q)&&
  1186. !isNaN(q)?String(q):"null");break;case "boolean":T.push(String(q));break;case "function":T.push("null");break;default:throw Error("Unknown type: "+typeof q);}}};
  1187. Fv_=function(d,q){q.push('"',d.replace(NDj,function(T){var Y=RDf[T];Y||(Y="\\u"+(T.charCodeAt(0)|65536).toString(16).slice(1),RDf[T]=Y);return Y}),'"')};
  1188. x8f=function(d){switch(d){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"}};
  1189. yy_=function(){};
  1190. uZ=function(){};
  1191. g.DZ=function(d){g.$1.call(this);this.headers=new Map;this.z2=d||null;this.j=!1;this.G=null;this.B="";this.U=0;this.T="";this.S=this.yv=this.K=this.UD=!1;this.lr=0;this.X=null;this.rO="";this.L=!1};
  1192. HFg=function(d,q,T,Y,e,U,b){var J=new g.DZ;hDX.push(J);q&&J.listen("complete",q);J.zg("ready",J.rq);U&&(J.lr=Math.max(0,U));b&&(J.L=b);J.send(d,T,Y,e)};
  1193. M97=function(d,q){d.j=!1;d.G&&(d.S=!0,d.G.abort(),d.S=!1);d.T=q;d.U=5;QO_(d);w1(d)};
  1194. QO_=function(d){d.UD||(d.UD=!0,d.dispatchEvent("complete"),d.dispatchEvent("error"))};
  1195. cyg=function(d){if(d.j&&typeof fK!="undefined")if(d.K&&g.zB(d)==4)setTimeout(d.Mz.bind(d),0);else if(d.dispatchEvent("readystatechange"),d.isComplete()){d.getStatus();d.j=!1;try{if(iZ(d))d.dispatchEvent("complete"),d.dispatchEvent("success");else{d.U=6;try{var q=g.zB(d)>2?d.G.statusText:""}catch(T){q=""}d.T=q+" ["+d.getStatus()+"]";QO_(d)}}finally{w1(d)}}};
  1196. w1=function(d,q){if(d.G){d.X&&(clearTimeout(d.X),d.X=null);var T=d.G;d.G=null;q||d.dispatchEvent("ready");try{T.onreadystatechange=null}catch(Y){}}};
  1197. iZ=function(d){var q=d.getStatus();a:switch(q){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var T=!0;break a;default:T=!1}if(!T){if(q=q===0)d=g.Jq(String(d.B))[1]||null,!d&&g.oQ.self&&g.oQ.self.location&&(d=g.oQ.self.location.protocol.slice(0,-1)),q=!Etf.test(d?d.toLowerCase():"");T=q}return T};
  1198. g.zB=function(d){return d.G?d.G.readyState:0};
  1199. g.I_=function(d){try{return d.G?d.G.responseText:""}catch(q){return""}};
  1200. g.mW=function(d){try{if(!d.G)return null;if("response"in d.G)return d.G.response;switch(d.rO){case "":case "text":return d.G.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in d.G)return d.G.mozResponseArrayBuffer}return null}catch(q){return null}};
  1201. g.jOY=function(d){var q={};d=(d.G&&g.zB(d)>=2?d.G.getAllResponseHeaders()||"":"").split("\r\n");for(var T=0;T<d.length;T++)if(!g.nh(d[T])){var Y=yE2(d[T]),e=Y[0];Y=Y[1];if(typeof Y==="string"){Y=Y.trim();var U=q[e]||[];q[e]=U;U.push(Y)}}return db(q,function(b){return b.join(", ")})};
  1202. g.S4=function(d,q){return d.G?d.G.getResponseHeader(q):null};
  1203. lZ=function(){};
  1204. o_=function(d,q){this.logger=d;this.event=q;this.startTime=vd()};
  1205. V7=function(){dq.apply(this,arguments);this.fC={AI:function(){return[]}}};
  1206. de=function(d,q,T){var Y=vd();q=q();d.bA(T,vd()-Y);return q};
  1207. q0=function(){V7.apply(this,arguments)};
  1208. TA=function(d){V7.call(this);var q=this;this.logger=d;this.fC={x15:function(){return q.logger},
  1209. AI:function(){return q.logger.fC.AI()}};
  1210. this.addOnDisposeCallback(function(){return void q.logger.dispose()})};
  1211. al_=function(d,q,T,Y,e){d=pKI(a7N(jqg(new WP(1828,"0"),d),new lZ));q.length&&AqX(d,vYf(new lL1,q));Y!==void 0&&(d.sX=Y);e&&d.Uy();var U=new Cb(1828,"","",!1,"",d.build());g.C(U,d);var b=new g.k1({flush:function(J){try{U.flush(J)}catch(F){T(F)}}});
  1212. b.addOnDisposeCallback(function(){setTimeout(function(){try{b.pP()}finally{U.dispose()}})});
  1213. b.j=1E5;b.flushInterval=3E4;b.G.setInterval(3E4);return b};
  1214. Ayg=function(d,q){g.W.call(this);var T=this;this.callback=d;this.U=q;this.G=-q;this.addOnDisposeCallback(function(){return void clearTimeout(T.timer)})};
  1215. p56=function(d){if(d.timer===void 0){var q=Math.max(0,d.G+d.U-vd());d.timer=setTimeout(function(){try{d.callback()}finally{d.G=vd(),d.timer=void 0}},q)}};
  1216. YH=function(d,q){V7.call(this);this.metrics=d;this.wH=q};
  1217. e_=function(d,q){q=q===void 0?[]:q;var T={wH:d.wH||"_",qW:d.qW||[],uj:d.uj|0,sX:d.sX,disableClearcutCredentialBinding:d.disableClearcutCredentialBinding,eB:d.eB||function(){},
  1218. FG:d.FG||function(U,b){return al_(U,b,T.eB,T.sX,T.disableClearcutCredentialBinding)}},Y=T.FG("50",T.qW.concat(q));
  1219. YH.call(this,{fhv:new DVH(Y),errorCount:new igN(Y),eventCount:new fLn(Y),hM:new zR2(Y),jtk:new w07(Y),TU5:new ILH(Y),ib:new mVj(Y),iAD:new Stn(Y)},T.wH);var e=this;this.fC={AI:function(){return e.options.qW.concat(e.T).sort(function(U,b){return U-b})}};
  1220. this.options=T;this.service=Y;this.j=!d.FG;this.G=new Ayg(function(){return void e.service.pP()},T.uj);
  1221. this.addOnDisposeCallback(function(){e.G.dispose();e.j&&e.service.dispose()});
  1222. g.iQ(this.T=q.slice())};
  1223. vd=function(){var d,q,T;return(T=(d=globalThis.performance)==null?void 0:(q=d.now)==null?void 0:q.call(d))!=null?T:Date.now()};
  1224. Uq=function(d){this.Kf=DY(d)};
  1225. bj=function(d){this.Kf=DY(d)};
  1226. XT=function(d){this.Kf=DY(d,0,XT.messageId)};
  1227. ZFN=function(d){this.Kf=DY(d)};
  1228. Vc=function(d){this.Kf=DY(d)};
  1229. Jf=function(d){this.Kf=DY(d)};
  1230. g.sq=function(){var d=this;this.promise=new Promise(function(q,T){d.resolve=q;d.reject=T})};
  1231. OFQ=function(d,q){if(d.disable)return new q0;var T=q?PLI(q):[],Y=d.wH,e=d.a5,U=d.TOD,b=d.sX,J=d.eB;d=d.FG;q=q==null?void 0:hI(q,ZFN,11);var F=F===void 0?50:F;q=(q==null?void 0:p2(q,1))||0;Y={wH:Y,qW:e,uj:U,sX:b,eB:J,FG:d,disableClearcutCredentialBinding:q>0&&F>=q};T=T===void 0?[]:T;return new e_(Y,T)};
  1232. $H=function(d){function q(H,a,p,t){Promise.resolve().then(function(){F.done();J.qs();J.dispose();b.resolve({KK:H,Kjk:a,RUF:p,F1D:t})})}
  1233. function T(H,a,p,t){if(!Y.logger.JF()){var n="k";a?n="h":p&&(n="u");n!=="k"?t!==0&&(Y.logger.v$(n),Y.logger.bA(n,H)):Y.U<=0?(Y.logger.v$(n),Y.logger.bA(n,H),Y.U=Math.floor(Math.random()*200)):Y.U--}}
  1234. g.W.call(this);var Y=this;this.U=Math.floor(Math.random()*200);this.G=new Jf;if("challenge"in d&&nt2(d.challenge)){var e=Oy(d.challenge,4,void 0,i$);var U=Oy(d.challenge,5,void 0,i$);Oy(d.challenge,7,void 0,i$)&&(this.G=ryQ(Oy(d.challenge,7,void 0,i$)))}else e=d.program,U=d.globalName;this.addOnDisposeCallback(function(){var H,a,p;return g.G(function(t){if(t.U==1)return g.B(t,Y.j,2);H=t.G;a=H.Kjk;(p=a)==null||p();g.E6(t)})});
  1235. this.logger=OFQ(d.AO||{},this.G);g.C(this,this.logger);var b=new g.sq;this.j=b.promise;this.logger.v$("t");var J=this.logger.share(),F=new o_(J,"t");if(!g.oQ[U])throw this.logger.EP(25),Error("EGOU");if(!g.oQ[U].a)throw this.logger.EP(26),Error("ELIU");try{var N=g.oQ[U].a;U=[];for(var R=[],x=PLI(this.G),y=0;y<x.length;y++)U.push(x[y]),R.push(1);var h=W3g(this.G);for(x=0;x<h.length;x++)U.push(h[x]),R.push(2);this.T=g.E(N(e,q,!0,d.Qx,T,[U,R],Oy(this.G,5))).next().value;this.w0=b.promise.then(function(){})}catch(H){throw this.logger.EP(28),
  1236. H;
  1237. }};
  1238. t91=function(d){if(!d)return null;d=tI(d,4);return d===null||d===void 0?null:dt(d)};
  1239. ge=function(){this.U={};this.G=null};
  1240. FT=function(){ge.instance||(ge.instance=new ge);return ge.instance};
  1241. Kv_=function(d,q){return BDf(d,hI(q,Uq,1,i$),hI(q,bj,2,i$),Oy(q,3,void 0,i$))};
  1242. BDf=function(d,q,T,Y){if(!q&&!T)return Promise.resolve();if(!Y)return G1j(q,T);var e;(e=d.U)[Y]||(e[Y]=new Promise(function(U,b){G1j(q,T).then(function(){d.G=Y;U()},function(J){delete d.U[Y];
  1243. b(J)})}));
  1244. return d.U[Y]};
  1245. G1j=function(d,q){return q?Lvn(q):d?k1Y(d):Promise.resolve()};
  1246. Lvn=function(d){return new Promise(function(q,T){var Y=g.FE("SCRIPT"),e=t91(d);g.QY(Y,e);Y.onload=function(){g.h4(Y);q()};
  1247. Y.onerror=function(){g.h4(Y);T(Error("EWLS"))};
  1248. (g.YE("HEAD")[0]||document.documentElement).appendChild(Y)})};
  1249. k1Y=function(d){return new Promise(function(q){var T=g.FE("SCRIPT");if(d){var Y=tI(d,6);Y=Y===null||Y===void 0?null:qI6(Y)}else Y=null;T.textContent=hn(Y);HZ(T);(g.YE("HEAD")[0]||document.documentElement).appendChild(T);g.h4(T);q()})};
  1250. N0=function(d){this.Kf=DY(d)};
  1251. PpX=function(d,q){return Gg(d,1,q)};
  1252. WvI=function(d,q){return Gg(d,2,q)};
  1253. Cpn=function(d,q){return Gg(d,3,q)};
  1254. R2=function(d){this.Kf=DY(d)};
  1255. xH=function(d,q,T){this.client=d;this.El=q;this.G=T};
  1256. D82=function(d,q,T,Y,e){var U,b,J,F,N;return g.G(function(R){if(R.U==1)return U=Cpn(WvI(PpX(new N0,d.El),q),T),b=d.G(),g.B(R,Y.IE("c",d.El,e,d.client.create(U,b)),2);J=R.G;F=Kp(bD(J,2));if(F.length)return R.return(de(Y,function(){for(var x=new Uint8Array(F.length),y=0;y<F.length;y++)x[y]=F[y]+97;if(g.oQ.TextDecoder)x=(new TextDecoder).decode(x);else if(x.length<=8192)x=String.fromCharCode.apply(null,x);else{y="";for(var h=0;h<x.length;h+=8192)y+=String.fromCharCode.apply(null,Array.prototype.slice.call(x,
  1257. h,h+8192));x=y}return ucQ(x)},"U"));
  1258. N=hI(J,XT,1);if(!N)throw Error("Missing field");return R.return(N)})};
  1259. zDg=function(d,q,T,Y){var e,U;return g.G(function(b){e=d.G();var J=new R2;J=Gg(J,1,d.El);U=Gg(J,2,q);J=b.return;var F=T.IE,N=d.El,R=d.client;var x=R.G;R=R.U+"/$rpc/google.internal.waa.v1.Waa/GenerateIT";var y=U,h=e||{},H=w5j,a=void 0;a=a===void 0?{}:a;x=flf(x,R,y,h,H,a);return J.call(b,F.call(T,"g",N,Y,x))})};
  1260. iFD=function(d,q,T,Y,e){return d instanceof xH?D82(d,Y,e,q,T):D82(d,Y,e,new q0,0)};
  1261. ym=function(d){g.W.call(this);var q=this;this.options=d;this.X=new g.sq;this.w0=this.X.promise;this.S=new g.sq;this.B=1;this.j=new g.sq;this.T=[];this.AL=d.AL||function(){};
  1262. this.logger=new TA(OFQ(d.AO||{}));Ilf(this,d.J6,d.Fw5,d.Dsv,d.lLw,Object.assign({},m8N,d.aG||{}));this.addOnDisposeCallback(function(){return void SRN(q)})};
  1263. llI=function(d){var q;return g.G(function(T){if(d.JF())throw Error("Already disposed");(q=d.G)!=null&&(q.endTimeMs=0,q.MK(1));return g.B(T,d.j.promise,0)})};
  1264. SRN=function(d){d.L=Error("Cancelled by dispose");d.S.resolve();CLH(d.X.promise);d.X.reject(Error("Cancelled by dispose"));d.logger.dispose();Promise.all(d.T).then(function(){var T;return g.G(function(Y){(T=d.U)==null||T.dispose();d.U=void 0;g.E6(Y)})});
  1265. d.T=[];var q;(q=d.G)!=null&&(q.endTimeMs=0,q.MK(1));CLH(d.j.promise);d.j.reject(Error("Cancelled by dispose"))};
  1266. vtQ=function(d,q){var T=d.AL;d.AL=function(){T();q()}};
  1267. otN=function(d,q){d.JF()||(d.U=q,d.logger.update(q.oe()),d.S.resolve(),d.X.resolve(void 0),d.AL())};
  1268. V9Y=function(d,q){q&&(Promise.all(d.T).then(function(){return void q.dispose()}),d.T=[])};
  1269. hf=function(d,q){d.B=q;var T,Y;(Y=(T=d.options).sW2)==null||Y.call(T,q)};
  1270. d56=function(d){d.JF()||(d.j.resolve(),d.j=new g.sq)};
  1271. Ilf=function(d,q,T,Y,e,U){Y=Y===void 0?FT():Y;e=e===void 0?Promise.resolve(void 0):e;var b,J,F,N,R,x,y,h,H,a,p,t;g.G(function(n){switch(n.U){case 1:return g.B(n,0,3);case 3:J=null;if(!b){n.tF(6);break}hf(d,7);g.jD(n,7);return g.B(n,HJ(b.snapshot({}),U.ub,function(){return Promise.resolve("E:CTO")}),9);
  1272. case 9:J=n.G;g.ZX(n,6);break;case 7:g.nN(n),J="E:UCE";case 6:F=void 0,N=b?U.tM:U.z7,R=new g.tS(N,U.I5,U.Y5,U.MV),x=1;case 10:if(!(x<=U.maxAttempts)){n.tF(12);break}if(x===1){n.tF(13);break}hf(d,0);d.G=new qr6(R.getValue(),U.HP,U.XJ);return g.B(n,d.G.promise,14);case 14:y=n.G,d.G=void 0,y===1?(x=1,R.reset()):g.BP(R);case 13:g.jD(n,15);h=void 0;if(T){h=T;n.tF(17);break}hf(d,5);H=Y.G;return g.B(n,HJ(iFD(q,d.logger,x,H,J),U.R5,function(){return Promise.reject(Error("RGF:Fetch timed out"))}),18);
  1273. case 18:h=n.G;case 17:return hf(d,3),g.B(n,HJ(Kv_(Y,h),U.LV,function(){return Promise.reject(Error("DTZ:Script timed out"))}),19);
  1274. case 19:return hf(d,8),g.B(n,e,20);case 20:return a=new $H({challenge:h,AO:d.options.AO,Qx:d.options.Qx}),g.B(n,HJ(a.w0,U.kAO,function(){return Promise.reject(Error("QEG:Setup timed out"))}),21);
  1275. case 21:F=a;n.tF(12);break;case 15:p=g.nN(n),d.handleError(p),d56(d);case 11:x++;n.tF(10);break;case 12:if(d.JF()){n.tF(5);break}F&&(T=void 0,V9Y(d,b),b=F,otN(d,F),d56(d));hf(d,2);d.G=new qr6(U.lYw,U.HP,U.XJ);return g.B(n,d.G.promise,22);case 22:d.G=void 0;if(d.JF()){n.tF(5);break}n.tF(3);break;case 5:(t=b)==null||t.dispose(),g.E6(n)}})};
  1276. HJ=function(d,q,T){var Y,e=new Promise(function(U){Y=setTimeout(U,q)});
  1277. return Promise.race([d.finally(function(){return void clearTimeout(Y)}),
  1278. e.then(T)])};
  1279. qr6=function(d,q,T){function Y(){var U=e.endTimeMs-Date.now();U<=T?e.MK(0):setTimeout(Y,Math.min(U,q))}
  1280. var e=this;this.endTimeMs=Date.now()+d;this.promise=new Promise(function(U){e.MK=U});
  1281. Y()};
  1282. TS6=function(d,q){try{return globalThis.sessionStorage.setItem(d,q),!0}catch(T){return!1}};
  1283. Qm=function(d,q,T,Y){q=q===void 0?0:q;T=T===void 0?d.length:T;var e=0;for(Y&&(e=Qm(Y));q<T;q++)Y=typeof d==="string"?d.charCodeAt(q):d[q],e=YrI(31,e)+Y|0;return e};
  1284. e46=function(d,q){return[Qm(d,0,d.length>>1,q),Qm(d,d.length>>1)]};
  1285. U5g=function(d){var q=g.E(e46(d,M0));d=q.next().value;q=q.next().value;return d.toString(16)+q.toString(16)};
  1286. bJf=function(d,q){var T=e46(q);d=new Uint32Array(d.buffer);q=d[0];var Y=g.E(T);T=Y.next().value;Y=Y.next().value;for(var e=1;e<d.length;e+=2){for(var U=q,b=e,J=T,F=Y,N=0;N<22;N++)b=b>>>8|b<<24,b+=U|0,b^=J+38293,U=U<<3|U>>>29,U^=b,F=F>>>8|F<<24,F+=J|0,F^=N+38293,J=J<<3|J>>>29,J^=F;U=[U,b];d[e]^=U[0];e+1<d.length&&(d[e+1]^=U[1])}};
  1287. X3j=function(d,q,T,Y,e){var U=(4-(M0.length+T.length)%4)%4,b=new Uint8Array(4+U+M0.length+4+T.length),J=new DataView(b.buffer),F=0;J.setUint32(F,Math.random()*4294967295);F=F+4+U;b.set(M0,F);F+=M0.length;J.setUint32(F,e);b.set(T,F+4);bJf(b,Y);return d.LA(q,function(N){return void globalThis.sessionStorage.removeItem(N)})?TS6(q,g.A0(b))?"s":"t":"i"};
  1288. JDD=function(d,q){var T=globalThis.sessionStorage.getItem(d);if(!T)return["m"];try{var Y=ZV(T);bJf(Y,q)}catch(e){return globalThis.sessionStorage.removeItem(d),["c"]}for(q=4;q<7&&Y[q]===0;)q++;for(T=0;T<M0.length;T++)if(Y[q++]!==M0[T])return globalThis.sessionStorage.removeItem(d),["d"];T=(new DataView(Y.buffer)).getUint32(q);return Math.floor(Date.now()/1E3)>=T?(globalThis.sessionStorage.removeItem(d),["e"]):["a",new Uint8Array(Y.buffer,q+4)]};
  1289. cJ=function(d,q,T){T=T===void 0?[]:T;this.maxItems=d;this.G=q===void 0?0:q;this.U=T};
  1290. sL7=function(d){var q=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!q)return new cJ(d);var T=q.split(",");if(T.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new cJ(d);q=T.slice(1);q.length===1&&q[0]===""&&(q=[]);T=Number(T[0]);return isNaN(T)||T<0||T>q.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new cJ(d)):new cJ(d,T,q)};
  1291. $5I=function(d,q){this.logger=q;try{var T=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(Y){T=!1}T&&(this.index=sL7(d))};
  1292. g3D=function(d,q,T,Y,e){var U=d.index?de(d.logger,function(){return X3j(d.index,U5g(q),T,Y,e)},"W"):"u";
  1293. d.logger.cH(U)};
  1294. Ft1=function(d,q,T){var Y=g.E(d.index?de(d.logger,function(){return JDD(U5g(q),T)},"R"):["u"]),e=Y.next().value;
  1295. Y=Y.next().value;d.logger.Zl(e);return Y};
  1296. x5I=function(d){function q(){T-=Y;T-=e;T^=e>>>13;Y-=e;Y-=T;Y^=T<<8;e-=T;e-=Y;e^=Y>>>13;T-=Y;T-=e;T^=e>>>12;Y-=e;Y-=T;Y^=T<<16;e-=T;e-=Y;e^=Y>>>5;T-=Y;T-=e;T^=e>>>3;Y-=e;Y-=T;Y^=T<<10;e-=T;e-=Y;e^=Y>>>15}
  1297. d=NSn(d);for(var T=2654435769,Y=2654435769,e=314159265,U=d.length,b=U,J=0;b>=12;b-=12,J+=12)T+=Eq(d,J),Y+=Eq(d,J+4),e+=Eq(d,J+8),q();e+=U;switch(b){case 11:e+=d[J+10]<<24;case 10:e+=d[J+9]<<16;case 9:e+=d[J+8]<<8;case 8:Y+=d[J+7]<<24;case 7:Y+=d[J+6]<<16;case 6:Y+=d[J+5]<<8;case 5:Y+=d[J+4];case 4:T+=d[J+3]<<24;case 3:T+=d[J+2]<<16;case 2:T+=d[J+1]<<8;case 1:T+=d[J+0]}q();return R4H.toString(e)};
  1298. NSn=function(d){for(var q=[],T=0;T<d.length;T++)q.push(d.charCodeAt(T));return q};
  1299. Eq=function(d,q){return d[q+0]+(d[q+1]<<8)+(d[q+2]<<16)+(d[q+3]<<24)};
  1300. j_=function(d){g.W.call(this);this.logger=d;this.j=new g.sq;this[yDN]=this.dispose};
  1301. a2=function(d,q){var T=setTimeout(function(){d.j.resolve()},q);
  1302. d.addOnDisposeCallback(function(){return void clearTimeout(T)})};
  1303. Af=function(d,q,T,Y){return de(d.logger,function(){return T?d.RE(q,Y):d.rf(q,Y)},d.G)};
  1304. pi=function(d,q,T,Y){j_.call(this,d);this.T=q;this.X=T;this.G="m";this.U="x";this.S=0;a2(this,Y)};
  1305. Z_=function(d,q,T){j_.call(this,d);this.T=q;this.G="f";this.U="z";a2(this,T)};
  1306. Oq=function(d,q,T){j_.call(this,d);this.T=q;this.G="w";this.U="z";a2(this,T)};
  1307. ni=function(d,q){j_.call(this,d);this.error=q;this.G="e";this.U="y"};
  1308. h4f=function(d,q){var T=(q(d.error.message)+":"+q(d.error.stack)).substring(0,2048);q=T.length+1;T=re(T);var Y=new Uint8Array(4+T.length);Y.set([42,q&127|128,q>>7,d.error.code]);Y.set(T,4);return Y};
  1309. tf=function(d,q,T){j_.call(this,d);this.T=q;this.clientState=T;this.G="S";this.U="q"};
  1310. re=function(d){return globalThis.TextEncoder?(new TextEncoder).encode(d):g.ac(d)};
  1311. HJg=function(d,q,T){return d instanceof xH?zDg(d,T,q,1):d.ut(T)};
  1312. Ki=function(d){g.W.call(this);var q=this;this.j=new g.sq;this.T=0;this.U=void 0;this.state=2;this.CH=d.CH;this.J6=d.J6;this.aG=Object.assign({},QLY,d.aG||{});this.logger=d.CH.oe();var T;this.onError=(T=d.onError)!=null?T:function(){};
  1313. this.d$=d.d$||!1;if(MI_(d)){var Y=this.CH;this.S=function(){return llI(Y).catch(function(b){b=q.reportError(new SI(q.G?20:32,"TRG:Disposed",b));q.U=b;var J;(J=q.G)==null||J.dispose();q.G=void 0;q.j.reject(b)})};
  1314. vtQ(Y,function(){return void BJ(q)});
  1315. Y.B===2&&BJ(this)}else this.S=d.a8x,BJ(this);var e=this.logger.share();e.v$("o");var U=new o_(e,"o");this.j.promise.then(function(){U.done();e.qs();e.dispose()},function(){return void e.dispose()});
  1316. this.addOnDisposeCallback(function(){q.G?(q.G.dispose(),q.G=void 0):q.U?q.logger.qs():(q.U=q.reportError(new SI(32,"TNP:Disposed")),q.logger.qs(),q.j.reject(q.U))});
  1317. g.C(this,this.logger)};
  1318. cD6=function(d,q){if(!(q instanceof SI))if(q instanceof Pd){var T=Error(q.toString());T.stack=q.stack;q=new SI(11,"EBH:Error",T)}else q=new SI(12,"BSO:Unknown",q);return d.reportError(q)};
  1319. BJ=function(d){var q,T,Y,e,U,b,J,F,N,R,x,y,h,H,a;return g.G(function(p){switch(p.U){case 1:q=void 0;d.T++;T=new g.sq;d.CH instanceof ym&&d.CH.T.push(T.promise);if(!d.d$){p.tF(2);break}Y=new g.sq;setTimeout(function(){return void Y.resolve()});
  1320. return g.B(p,Y.promise,2);case 2:return e=d.logger.share(),g.jD(p,4,5),d.state=5,U={},b=[],g.B(p,HJ(d.CH.snapshot({BO:U,r$:b}),d.aG.lhO,function(){return Promise.reject(new SI(15,"MDA:Timeout"))}),7);
  1321. case 7:J=p.G;if(d.JF())throw new SI(d.G?20:32,"MDA:Disposed");F=b[0];d.state=6;return g.B(p,HJ(HJg(d.J6,e,J),d.aG.X1,function(){return Promise.reject(new SI(10,"BWB:Timeout"))}),8);
  1322. case 8:N=p.G;if(d.JF())throw new SI(d.G?20:32,"BWB:Disposed");d.state=7;q=de(e,function(){var n=E3N(d,N,T,F);n.j.promise.then(function(){return void d.S()});
  1323. return n},"i");
  1324. case 5:g.KN(p);e.dispose();g.LN(p,6);break;case 4:R=g.nN(p);(x=q)==null||x.dispose();if(!d.U){y=cD6(d,R);T.resolve();var t;if(t=d.CH instanceof ym&&d.T<2)a:if(R instanceof SI)t=R.code!==32&&R.code!==20&&R.code!==10;else{if(R instanceof Pd)switch(R.code){case 2:case 13:case 14:case 4:break;default:t=!1;break a}t=!0}if(t)return h=(1+Math.random()*.25)*(d.G?6E4:1E3),H=setTimeout(function(){return void d.S()},h),d.addOnDisposeCallback(function(){return void clearTimeout(H)}),p.return();
  1325. d.U=y}e.EP(d.G?13:14);d.j.reject(d.U);return p.return();case 6:d.state=8,d.T=0,(a=d.G)==null||a.dispose(),d.G=q,d.j.resolve(),g.E6(p)}})};
  1326. E3N=function(d,q,T,Y){var e=Zc(q,2)*1E3;if(e<=0)throw new SI(31,"TTM:Invalid");if(Oy(q,4))return new Oq(d.logger,Oy(q,4),e);if(!Zc(q,3))return new Z_(d.logger,Kp(bD(q,1)),e);if(!Y)throw new SI(4,"PMD:Undefined");Y=Y(Kp(bD(q,1)));if(!(Y instanceof Function))throw new SI(16,"APF:Failed");d.X=Math.floor((Date.now()+e)/1E3);d=new pi(d.logger,Y,Zc(q,3),e);d.addOnDisposeCallback(function(){return void T.resolve()});
  1327. return d};
  1328. jLf=function(d,q){q=q instanceof SI?q:new SI(5,"TVD:error",q);return d.reportError(q)};
  1329. OJ2=function(d,q,T){try{if(d.JF())throw new SI(21,"BNT:disposed");if(!d.G&&d.U)throw d.U;var Y,e;return(e=(Y=aUn(d,q,T))!=null?Y:ADQ(d,q,T))!=null?e:p3n(d,q,T)}catch(U){if(!q.m9)throw jLf(d,U);return ZJH(d,T,U)}};
  1330. aUn=function(d,q,T){var Y;return(Y=d.G)==null?void 0:Af(Y,function(){return GA(d,q)},T,function(e){var U;
  1331. if(d.G instanceof pi&&((U=q.MI)==null?0:U.Tn))try{var b;(b=d.cache)==null||g3D(b,GA(d,q),e,q.MI.yO,d.X-120)}catch(J){d.reportError(new SI(24,"ELX:write",J))}})};
  1332. ADQ=function(d,q,T){var Y;if((Y=q.MI)!=null&&Y.vN)try{var e,U=(e=d.cache)==null?void 0:Ft1(e,GA(d,q),q.MI.yO);return U?T?de(d.logger,function(){return g.A0(U,2)},"a"):U:void 0}catch(b){d.reportError(new SI(23,"RXO:read",b))}};
  1333. p3n=function(d,q,T){var Y={stack:[],error:void 0,hasError:!1};try{if(!q.qw)throw new SI(29,"SDF:notready");return Af(HNg(Y,new tf(d.logger,0,d.state)),function(){return GA(d,q)},T)}catch(e){Y.error=e,Y.hasError=!0}finally{QQY(Y)}};
  1334. ZJH=function(d,q,T){var Y={stack:[],error:void 0,hasError:!1};try{var e=jLf(d,T);return Af(HNg(Y,new ni(d.logger,e)),function(){return[]},q)}catch(U){Y.error=U,Y.hasError=!0}finally{QQY(Y)}};
  1335. GA=function(d,q){return q.yE?q.yE:q.BO?de(d.logger,function(){return q.yE=re(q.BO)},"c"):[]};
  1336. Li=function(){var d=0,q;return function(T){q||(q=new q0);var Y=new tf(q,d,1),e=Af(Y,function(){return re(T)},!0);
  1337. Y.dispose();d++;return e}};
  1338. kH=function(d){this.Kf=DY(d)};
  1339. n32=function(d,q,T){this.Qy=d;this.Ji=q;this.metadata=T};
  1340. PJ=function(d,q){q=q===void 0?{}:q;this.YrO=d;this.metadata=q;this.status=null};
  1341. WJ=function(d,q,T,Y,e){this.name=d;this.methodType="unary";this.requestType=q;this.responseType=T;this.G=Y;this.U=e};
  1342. Ci=function(d){this.Kf=DY(d)};
  1343. uj=function(d){this.Kf=DY(d)};
  1344. D_=function(d){this.Kf=DY(d)};
  1345. we=function(d,q){this.L=d.Iwr;this.B=q;this.G=d.xhr;this.j=[];this.S=[];this.X=[];this.T=[];this.U=[];this.L&&rDg(this)};
  1346. GsD=function(d,q){var T=new tIN;g.oB(d.G,"complete",function(){if(iZ(d.G)){var Y=g.I_(d.G);if(q&&d.G.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");Y=atob(Y)}try{var e=d.B(Y)}catch(J){fi(d,zA(new Pd(13,"Error when deserializing response data; error: "+J+(", response: "+Y)),T));return}Y=sOn(d.G.getStatus());ij(d,I2(d));Y==0?BSX(d,e):fi(d,zA(new Pd(Y,"Xhr succeeded but the status code is not 200"),T))}else{Y=g.I_(d.G);e=I2(d);if(Y){var U=Kt_(d,
  1347. Y);Y=U.code;var b=U.details;U=U.metadata}else Y=2,b="Rpc failed due to xhr error. uri: "+String(d.G.B)+", error code: "+d.G.U+", error: "+d.G.getLastError(),U=e;ij(d,e);fi(d,zA(new Pd(Y,b,U),T))}})};
  1348. rDg=function(d){d.L.rJ("data",function(q){if("1"in q){var T=q["1"];try{var Y=d.B(T)}catch(e){fi(d,new Pd(13,"Error when deserializing response data; error: "+e+(", response: "+T)))}Y&&BSX(d,Y)}if("2"in q)for(q=Kt_(d,q["2"]),T=0;T<d.X.length;T++)d.X[T](q)});
  1349. d.L.rJ("end",function(){ij(d,I2(d));for(var q=0;q<d.T.length;q++)d.T[q]()});
  1350. d.L.rJ("error",function(){if(d.U.length!=0){var q=d.G.U;q!==0||iZ(d.G)||(q=6);var T=-1;switch(q){case 0:var Y=2;break;case 7:Y=10;break;case 8:Y=4;break;case 6:T=d.G.getStatus();Y=sOn(T);break;default:Y=14}ij(d,I2(d));q=x8f(q)+", error: "+d.G.getLastError();T!=-1&&(q+=", http status code: "+T);fi(d,new Pd(Y,q))}})};
  1351. I2=function(d){var q={},T=g.jOY(d.G);Object.keys(T).forEach(function(Y){q[Y]=T[Y]});
  1352. return q};
  1353. Kt_=function(d,q){var T=2,Y={};try{var e=Lt6(q);T=p2(e,1);var U=e.getMessage();HV(e,uj,3).length&&(Y["grpc-web-status-details-bin"]=q)}catch(b){d.G&&d.G.getStatus()===404?(T=5,U="Not Found: "+String(d.G.B)):(T=14,U="Unable to parse RpcStatus: "+b)}return{code:T,details:U,metadata:Y}};
  1354. m6=function(d,q){q=d.indexOf(q);q>-1&&d.splice(q,1)};
  1355. BSX=function(d,q){for(var T=0;T<d.j.length;T++)d.j[T](q)};
  1356. ij=function(d,q){for(var T=0;T<d.S.length;T++)d.S[T](q)};
  1357. fi=function(d,q){for(var T=0;T<d.U.length;T++)d.U[T](q)};
  1358. tIN=function(){var d=Error.call(this);this.message=d.message;"stack"in d&&(this.stack=d.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
  1359. zA=function(d,q){q.stack&&(d.stack+="\n"+q.stack);return d};
  1360. g.S_=function(d){this.T=d.tFr||null;this.j=d.yr||!1;this.U=void 0};
  1361. lj=function(d,q){g.$1.call(this);this.yv=d;this.X=q;this.S=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.K=new Headers;this.U=null;this.UD="GET";this.lr="";this.G=!1;this.L=this.j=this.T=null;this.B=new AbortController};
  1362. ksH=function(d){d.j.read().then(d.SK.bind(d)).catch(d.IR.bind(d))};
  1363. o2=function(d){d.readyState=4;d.T=null;d.j=null;d.L=null;vJ(d)};
  1364. vJ=function(d){d.onreadystatechange&&d.onreadystatechange.call(d)};
  1365. P3X=function(d){if(d.N0&&typeof d.N0=="function")return d.N0();if(typeof Map!=="undefined"&&d instanceof Map||typeof Set!=="undefined"&&d instanceof Set)return Array.from(d.values());if(typeof d==="string")return d.split("");if(g.ej(d)){for(var q=[],T=d.length,Y=0;Y<T;Y++)q.push(d[Y]);return q}return eY(d)};
  1366. WtI=function(d){if(d.ll&&typeof d.ll=="function")return d.ll();if(!d.N0||typeof d.N0!="function"){if(typeof Map!=="undefined"&&d instanceof Map)return Array.from(d.keys());if(!(typeof Set!=="undefined"&&d instanceof Set)){if(g.ej(d)||typeof d==="string"){var q=[];d=d.length;for(var T=0;T<d;T++)q.push(T);return q}return g.UN(d)}}};
  1367. C3I=function(d,q,T){if(d.forEach&&typeof d.forEach=="function")d.forEach(q,T);else if(g.ej(d)||typeof d==="string")Array.prototype.forEach.call(d,q,T);else for(var Y=WtI(d),e=P3X(d),U=e.length,b=0;b<U;b++)q.call(T,e[b],Y&&Y[b],d)};
  1368. g.Vm=function(d){this.G=this.B=this.S="";this.j=null;this.X=this.U="";this.L=!1;var q;d instanceof g.Vm?(this.L=d.L,g.dW(this,d.S),this.B=d.B,g.qK(this,d.G),g.Th(this,d.j),this.U=d.U,YM(this,d.T.clone()),this.X=d.X):d&&(q=g.Jq(String(d)))?(this.L=!1,g.dW(this,q[1]||"",!0),this.B=eA(q[2]||""),g.qK(this,q[3]||"",!0),g.Th(this,q[4]),this.U=eA(q[5]||"",!0),YM(this,q[6]||"",!0),this.X=eA(q[7]||"")):(this.L=!1,this.T=new UC(null,this.L))};
  1369. g.dW=function(d,q,T){d.S=T?eA(q,!0):q;d.S&&(d.S=d.S.replace(/:$/,""))};
  1370. g.qK=function(d,q,T){d.G=T?eA(q,!0):q};
  1371. g.Th=function(d,q){if(q){q=Number(q);if(isNaN(q)||q<0)throw Error("Bad port number "+q);d.j=q}else d.j=null};
  1372. YM=function(d,q,T){q instanceof UC?(d.T=q,uz_(d.T,d.L)):(T||(q=bc(q,D5D)),d.T=new UC(q,d.L))};
  1373. g.XO=function(d,q,T){d.T.set(q,T)};
  1374. g.J_=function(d){return d instanceof g.Vm?d.clone():new g.Vm(d)};
  1375. eA=function(d,q){return d?q?decodeURI(d.replace(/%25/g,"%2525")):decodeURIComponent(d):""};
  1376. bc=function(d,q,T){return typeof d==="string"?(d=encodeURI(d).replace(q,w3H),T&&(d=d.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),d):null};
  1377. w3H=function(d){d=d.charCodeAt(0);return"%"+(d>>4&15).toString(16)+(d&15).toString(16)};
  1378. UC=function(d,q){this.U=this.G=null;this.j=d||null;this.T=!!q};
  1379. sC=function(d){d.G||(d.G=new Map,d.U=0,d.j&&Fm(d.j,function(q,T){d.add(OD(q),T)}))};
  1380. fU7=function(d,q){sC(d);q=$M(d,q);return d.G.has(q)};
  1381. g.z46=function(d,q,T){d.remove(q);T.length>0&&(d.j=null,d.G.set($M(d,q),g.rL(T)),d.U=d.U+T.length)};
  1382. $M=function(d,q){q=String(q);d.T&&(q=q.toLowerCase());return q};
  1383. uz_=function(d,q){q&&!d.T&&(sC(d),d.j=null,d.G.forEach(function(T,Y){var e=Y.toLowerCase();Y!=e&&(this.remove(Y),g.z46(this,e,T))},d));
  1384. d.T=q};
  1385. g.iJQ=function(d){var q="";g.os(d,function(T,Y){q+=Y;q+=":";q+=T;q+="\r\n"});
  1386. return q};
  1387. g.gW=function(d,q,T){if(g.FV(T))return d;T=g.iJQ(T);if(typeof d==="string")return hq(d,g.pn(q),T);g.XO(d,q,T);return d};
  1388. g.FO=function(d){g.W.call(this);this.U=d;this.G={}};
  1389. IU6=function(d,q,T,Y,e,U){if(Array.isArray(T))for(var b=0;b<T.length;b++)IU6(d,q,T[b],Y,e,U);else{q=vP(q,T,Y||d.handleEvent,e,U||d.U||d);if(!q)return d;d.G[q.key]=q}return d};
  1390. m5f=function(){this.j=!0;this.U=0;this.G=""};
  1391. Srj=function(d,q,T){d.j=!1;throw Error("The stream is broken @"+d.U+". Error: "+T+". With input:\n"+q);};
  1392. NK=function(){this.X=null;this.L=[];this.T=this.U=this.j=this.G=this.K=0;this.S=null;this.B=0};
  1393. R1=function(d,q,T,Y){d.G=3;d.X="The stream is broken @"+d.K+"/"+T+". Error: "+Y+". With input:\n"+q;throw Error(d.X);};
  1394. xM=function(){this.G=null;this.U=0;this.j=new m5f;this.T=new NK};
  1395. lUI=function(d,q,T){d.G="The stream is broken @"+d.U+". Error: "+T+". With input:\n"+q;throw Error(d.G);};
  1396. y5=function(d){return d=="\r"||d=="\n"||d==" "||d=="\t"};
  1397. h_=function(d){this.K=null;this.X=[];this.T="";this.UD=[];this.j=this.U=0;this.L=!1;this.B=0;this.yv=/[\\"]/g;this.G=this.S=0;this.lr=!(!d||!d.AG)};
  1398. Hh=function(d,q,T){d.S=3;d.K="The stream is broken @"+d.j+"/"+T+". With input:\n"+q;throw Error(d.K);};
  1399. Q5=function(){this.S=this.j=null;this.U=this.G=0;this.T=[];this.X=!1};
  1400. v3Y=function(d){var q=g.S4(d,"Content-Type");if(!q)return null;q=q.toLowerCase();return q.startsWith("application/json")?q.startsWith("application/json+protobuf")?new Q5:new h_:q.startsWith("application/x-protobuf")?(d=g.S4(d,"Content-Transfer-Encoding"))?d.toLowerCase()=="base64"?new xM:null:new NK:null};
  1401. MK=function(d){this.G=d;this.U=null;this.S=this.j=0;this.K=!1;this.T=this.L=this.X=null;this.B=new g.FO(this);this.B.listen(this.G,"readystatechange",this.lr)};
  1402. ch=function(d,q){d.S!=q&&(d.S=q,d.L&&d.L())};
  1403. EC=function(d){d.B.removeAll();if(d.G){var q=d.G;d.G=null;q.abort();q.dispose()}};
  1404. o37=function(d){d=this.j=d;var q=(0,g.sI)(this.Off,this);d.T=q;d=this.j;q=(0,g.sI)(this.fmr,this);d.L=q;this.U={};this.G={}};
  1405. VIf=function(d,q){for(var T={},Y=0;Y<d.length;T={aL:void 0},Y++)T.aL=d[Y],q.forEach(function(e){return function(U){try{U(e.aL)}catch(b){}}}(T))};
  1406. jA=function(d,q){var T=d.U[q];T&&T.forEach(function(Y){try{Y()}catch(e){}});
  1407. (T=d.G[q])&&T.forEach(function(Y){Y()});
  1408. d.G[q]=[]};
  1409. dSN=function(){var d={format:"jspb"};d=d===void 0?{}:d;this.tZ=d.tZ||g.qx("suppressCorsPreflight",d)||!1;this.withCredentials=d.withCredentials||g.qx("withCredentials",d)||!1;this.Qr=d.Qr||[];this.cP=d.cP||[];this.c_=d.c_;this.G=d.blv||!1};
  1410. flf=function(d,q,T,Y,e,U){U=U===void 0?{}:U;var b=q.substring(0,q.length-e.name.length),J,F=(J=U)==null?void 0:J.signal;return qE_(function(N){return new Promise(function(R,x){if(F==null?0:F.aborted){var y=new Pd(1,"Aborted");y.cause=F.reason;x(y)}else{var h={},H=Tqg(d,N,b);H.rJ("error",function(a){return void x(a)});
  1411. H.rJ("metadata",function(a){h=a});
  1412. H.rJ("data",function(a){var p=h;p=p===void 0?{}:p;R(new PJ(a,p))});
  1413. F&&F.addEventListener("abort",function(){H.cancel();var a=new Pd(1,"Aborted");a.cause=F.reason;x(a)})}})},d.cP).call(d,e.L(T,Y)).then(function(N){return N.YrO})};
  1414. Tqg=function(d,q,T){var Y=q.Ji,e=q.getMetadata(),U=YEf(d,!0);d=eKn(d,e,U,T+Y.getName());T=US1(U,Y.U,!1);GsD(T,e["X-Goog-Encode-Response-If-Executable"]==="base64");q=Y.G(q.Qy);U.send(d,"POST",q);return T};
  1415. YEf=function(d,q){q=d.G&&!q;return d.c_||q?new g.DZ(new g.S_({tFr:d.c_,yr:q})):new g.DZ};
  1416. eKn=function(d,q,T,Y){q["Content-Type"]="application/json+protobuf";q["X-User-Agent"]="grpc-web-javascript/0.1";var e=q.Authorization;if(e&&bbg.has(e.split(" ")[0])||d.withCredentials)T.L=!0;if(d.tZ)Y=g.gW(Y,"$httpHeaders",q);else for(d=g.E(Object.keys(q)),e=d.next();!e.done;e=d.next())e=e.value,T.headers.set(e,q[e]);return Y};
  1417. US1=function(d,q,T){if(T){d.isActive();T=new MK(d);var Y=new o37(T)}return new we({xhr:d,Iwr:Y},q)};
  1418. XPY=function(d,q){return q.reduce(function(T,Y){return function(e){return Y.intercept(e,T)}},d)};
  1419. qE_=function(d,q){return q.reduce(function(T,Y){return function(e){return Y.intercept(e,T)}},d)};
  1420. JSI=function(){this.G=new dSN;this.U="https://jnn-pa.googleapis.com".replace(/\/+$/,"")};
  1421. gm2=function(d){if(g.nh(g.rt(d)))return!1;if(d.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var q=new g.Vm(d)}catch(T){return g.QN(sB_,function(Y){return d.search(Y)>0})!=null}return q.X.match($SQ)?!0:g.QN(sB_,function(T){return d.match(T)!=null})!=null};
  1422. g.a1=function(d,q){return d.replace(F47,function(T,Y){try{var e=g.N$(q,Y);if(e==null||e.toString()==null)return T;e=e.toString();if(e==""||!g.nh(g.rt(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(U){}return T})};
  1423. A_=function(d,q){return Object.is(d,q)};
  1424. Z6=function(d){var q=p9;p9=d;return q};
  1425. NqQ=function(d){if(d.SV!==void 0){var q=OC;OC=!0;try{for(var T=g.E(d.SV),Y=T.next();!Y.done;Y=T.next()){var e=Y.value;e.eP||(d=void 0,e.eP=!0,NqQ(e),(d=e.Yi)==null||d.call(e,e))}}finally{OC=q}}};
  1426. RK6=function(){var d;return((d=p9)==null?void 0:d.r7)!==!1};
  1427. xSD=function(d){d&&(d.rF=0);return Z6(d)};
  1428. yS1=function(d,q){Z6(q);if(d&&d.s6!==void 0&&d.DX!==void 0&&d.ML!==void 0){if(n9(d))for(q=d.rF;q<d.s6.length;q++)rW(d.s6[q],d.DX[q]);for(;d.s6.length>d.rF;)d.s6.pop(),d.ML.pop(),d.DX.pop()}};
  1429. Hbj=function(d,q,T){hKI(d);if(d.SV.length===0&&d.s6!==void 0)for(var Y=0;Y<d.s6.length;Y++)d.DX[Y]=Hbj(d.s6[Y],d,Y);d.pZ.push(T);return d.SV.push(q)-1};
  1430. rW=function(d,q){hKI(d);if(d.SV.length===1&&d.s6!==void 0)for(var T=0;T<d.s6.length;T++)rW(d.s6[T],d.DX[T]);T=d.SV.length-1;d.SV[q]=d.SV[T];d.pZ[q]=d.pZ[T];d.SV.length--;d.pZ.length--;q<d.SV.length&&(T=d.pZ[q],d=d.SV[q],QBI(d),d.DX[T]=q)};
  1431. n9=function(d){var q,T;return d.Ij||((T=d==null?void 0:(q=d.SV)==null?void 0:q.length)!=null?T:0)>0};
  1432. QBI=function(d){d.s6!=null||(d.s6=[]);d.DX!=null||(d.DX=[]);d.ML!=null||(d.ML=[])};
  1433. hKI=function(d){d.SV!=null||(d.SV=[]);d.pZ!=null||(d.pZ=[])};
  1434. jBY=function(d){function q(){if(OC)throw Error("");if(p9!==null){var Y=p9.rF++;QBI(p9);Y<p9.s6.length&&p9.s6[Y]!==T&&n9(p9)&&rW(p9.s6[Y],p9.DX[Y]);p9.s6[Y]!==T&&(p9.s6[Y]=T,p9.DX[Y]=n9(p9)?Hbj(T,p9,Y):0);p9.ML[Y]=T.version}return T.value}
  1435. var T=Object.create(M$g);T.value=d;q[cS2]=T;return[q,function(Y){return Em_(T,Y)},
  1436. function(Y){if(!RK6())throw Error();Em_(T,Y(T.value))}]};
  1437. Em_=function(d,q){if(!RK6())throw Error();d.PS(d.value,q)||(d.value=q,d.version++,aQj++,NqQ(d))};
  1438. t_=function(d,q){q=q===void 0?"":q;d=jBY(d)[0][cS2];var T;q=(T=q)!=null?T:"[signal]";d.debugName=q};
  1439. K9=function(d){g.$1.call(this);var q=this;this.S=this.U=0;this.PO=d!=null?d:{DE:function(e,U){return setTimeout(e,U)},
  1440. Qt:function(e){clearTimeout(e)}};
  1441. var T,Y;this.G=(Y=(T=window.navigator)==null?void 0:T.onLine)!=null?Y:!0;this.j=function(){return g.G(function(e){return g.B(e,Bh(q),0)})};
  1442. window.addEventListener("offline",this.j);window.addEventListener("online",this.j);this.S||this.Yo()};
  1443. AS_=function(){var d=g.Gh;K9.instance||(K9.instance=new K9(d));return K9.instance};
  1444. Bh=function(d,q){return d.T?d.T:d.T=new Promise(function(T){var Y,e,U,b;return g.G(function(J){switch(J.U){case 1:return Y=window.AbortController?new window.AbortController:void 0,U=(e=Y)==null?void 0:e.signal,b=!1,g.jD(J,2,3),Y&&(d.U=d.PO.DE(function(){Y.abort()},q||2E4)),g.B(J,fetch("/generate_204",{method:"HEAD",
  1445. signal:U}),5);case 5:b=!0;case 3:g.KN(J);d.T=void 0;d.U&&(d.PO.Qt(d.U),d.U=0);b!==d.G&&(d.G=b,d.G?d.dispatchEvent("networkstatus-online"):d.dispatchEvent("networkstatus-offline"));T(b);g.LN(J,0);break;case 2:g.nN(J),b=!1,J.tF(3)}})})};
  1446. pPf=function(d){this.Kf=DY(d)};
  1447. L9=function(){this.data=[];this.G=-1};
  1448. Zb1=function(d){d.G===-1&&(d.G=d.data.reduce(function(q,T,Y){return q+(T?Math.pow(2,Y):0)},0));
  1449. return d.G};
  1450. kM=function(d){d.setAttribute("role","link")};
  1451. Wh=function(d,q){Array.isArray(q)&&(q=q.join(" "));q===""||q==void 0?(Ph||(q={},Ph=(q.atomic=!1,q.autocomplete="none",q.dropeffect="none",q.haspopup=!1,q.live="off",q.multiline=!1,q.multiselectable=!1,q.orientation="vertical",q.readonly=!1,q.relevant="additions text",q.required=!1,q.sort="none",q.busy=!1,q.disabled=!1,q.hidden=!1,q.invalid="false",q)),q=Ph,"label"in q?d.setAttribute("aria-label",q.label):d.removeAttribute("aria-label")):d.setAttribute("aria-label",q)};
  1452. C9=function(d){d=d.getAttribute("aria-label");return d==null||d==void 0?"":String(d)};
  1453. g.uc=function(d,q,T){g.W.call(this);this.G=null;this.T=!1;this.X=d;this.S=T;this.U=q||window;this.j=(0,g.sI)(this.QJ,this)};
  1454. ObX=function(d){d=d.U;return d.requestAnimationFrame||d.webkitRequestAnimationFrame||d.mozRequestAnimationFrame||d.oRequestAnimationFrame||d.msRequestAnimationFrame||null};
  1455. nm1=function(d){d=d.U;return d.cancelAnimationFrame||d.cancelRequestAnimationFrame||d.webkitCancelRequestAnimationFrame||d.mozCancelRequestAnimationFrame||d.oCancelRequestAnimationFrame||d.msCancelRequestAnimationFrame||null};
  1456. g.f9=function(d,q,T){g.W.call(this);this.G=d;this.VS=q||0;this.U=T;this.j=(0,g.sI)(this.T9,this)};
  1457. g.zh=function(d,q){d.isActive()||d.start(q)};
  1458. g.ic=function(d){d.stop();d.T9()};
  1459. g.I1=function(d){d.isActive()&&g.ic(d)};
  1460. g.mE=function(d,q,T){g.W.call(this);this.T=T!=null?d.bind(T):d;this.VS=q;this.j=null;this.G=!1;this.U=0;this.EF=null};
  1461. SA=function(d){d.EF=g.GB(function(){d.EF=null;d.G&&!d.U&&(d.G=!1,SA(d))},d.VS);
  1462. var q=d.j;d.j=null;d.T.apply(null,q)};
  1463. g.lc=function(d,q){this.G=d[g.oQ.Symbol.iterator]();this.U=q};
  1464. rS1=function(d){return typeof d.className=="string"?d.className:d.getAttribute&&d.getAttribute("class")||""};
  1465. vh=function(d){return d.classList?d.classList:rS1(d).match(/\S+/g)||[]};
  1466. g.o1=function(d,q){typeof d.className=="string"?d.className=q:d.setAttribute&&d.setAttribute("class",q)};
  1467. g.V5=function(d,q){return d.classList?d.classList.contains(q):g.cR(vh(d),q)};
  1468. g.d9=function(d,q){if(d.classList)d.classList.add(q);else if(!g.V5(d,q)){var T=rS1(d);g.o1(d,T+(T.length>0?" "+q:q))}};
  1469. g.qg=function(d,q){if(d.classList)Array.prototype.forEach.call(q,function(e){g.d9(d,e)});
  1470. else{var T={};Array.prototype.forEach.call(vh(d),function(e){T[e]=!0});
  1471. Array.prototype.forEach.call(q,function(e){T[e]=!0});
  1472. q="";for(var Y in T)q+=q.length>0?" "+Y:Y;g.o1(d,q)}};
  1473. g.TR=function(d,q){d.classList?d.classList.remove(q):g.V5(d,q)&&g.o1(d,Array.prototype.filter.call(vh(d),function(T){return T!=q}).join(" "))};
  1474. g.YG=function(d,q){d.classList?Array.prototype.forEach.call(q,function(T){g.TR(d,T)}):g.o1(d,Array.prototype.filter.call(vh(d),function(T){return!g.cR(q,T)}).join(" "))};
  1475. g.ep=function(d,q,T){T?g.d9(d,q):g.TR(d,q)};
  1476. t$7=function(d,q){var T=!g.V5(d,q);g.ep(d,q,T)};
  1477. g.UA=function(){g.$1.call(this);this.G=0;this.endTime=this.startTime=null};
  1478. BqI=function(d,q){Array.isArray(q)||(q=[q]);q=q.map(function(T){return typeof T==="string"?T:T.property+" "+T.duration+"s "+T.timing+" "+T.delay+"s"});
  1479. g.Dv(d,"transition",q.join(","))};
  1480. bM=function(d,q,T,Y,e){g.UA.call(this);this.U=d;this.S=q;this.X=T;this.T=Y;this.L=Array.isArray(e)?e:[e]};
  1481. K4Y=function(d,q,T,Y){return new bM(d,q,{opacity:T},{opacity:Y},{property:"opacity",duration:q,timing:"ease-in",delay:0})};
  1482. L4g=function(d){d=Kh(d);if(d=="")return null;var q=String(d.slice(0,4)).toLowerCase();if(("url("<q?-1:"url("==q?0:1)==0)return!d.endsWith(")")||(d?d.split("(").length-1:0)>1||d&&d.split(")"),null;if(d.indexOf("(")>0){if(/"|'/.test(d))return null;q=/([\-\w]+)\(/g;for(var T;T=q.exec(d);)if(!(T[1].toLowerCase()in GxN))return null}return d};
  1483. Xr=function(d,q){d=g.oQ[d];return d&&d.prototype?(q=Object.getOwnPropertyDescriptor(d.prototype,q))&&q.get||null:null};
  1484. kx1=function(d){var q=g.oQ.CSSStyleDeclaration;return q&&q.prototype&&q.prototype[d]||null};
  1485. PmD=function(d,q,T,Y){if(d)return d.apply(q,Y);if(g.Jx&&document.documentMode<10){if(!q[T].call)throw Error("IE Clobbering detected");}else if(typeof q[T]!="function")throw Error("Clobbering detected");return q[T].apply(q,Y)};
  1486. wPX=function(d){if(!d)return"";var q=document.createElement("div").style;W4D(d).forEach(function(T){var Y=g.J4&&T in CmH?T:T.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");ON(Y,"--")||ON(Y,"var")||(T=PmD(uPI,d,d.getPropertyValue?"getPropertyValue":"getAttribute",[T])||"",T=L4g(T),T!=null&&PmD(DSH,q,q.setProperty?"setProperty":"setAttribute",[Y,T]))});
  1487. return q.cssText||""};
  1488. W4D=function(d){g.ej(d)?d=g.rL(d):(d=g.UN(d),g.jj(d,"cssText"));return d};
  1489. g.$G=function(d){var q,T=q=0,Y=!1;d=d.split(fQ1);for(var e=0;e<d.length;e++){var U=d[e];g.sA.test(U)?(q++,T++):zK7.test(U)?Y=!0:ibD.test(U)?T++:IQX.test(U)&&(Y=!0)}q=T==0?Y?1:0:q/T>.4?-1:1;return(q==0?null:q)==-1?"rtl":"ltr"};
  1490. g.RM=function(d){if(d instanceof g9||d instanceof Fr||d instanceof Ng)return d;if(typeof d.next=="function")return new g9(function(){return d});
  1491. if(typeof d[Symbol.iterator]=="function")return new g9(function(){return d[Symbol.iterator]()});
  1492. if(typeof d.zp=="function")return new g9(function(){return d.zp()});
  1493. throw Error("Not an iterator or iterable.");};
  1494. g9=function(d){this.U=d};
  1495. Fr=function(d){this.U=d};
  1496. Ng=function(d){g9.call(this,function(){return d});
  1497. this.j=d};
  1498. xG=function(d,q,T,Y,e,U,b,J){this.G=d;this.L=q;this.j=T;this.S=Y;this.T=e;this.X=U;this.U=b;this.B=J};
  1499. yy=function(d,q){if(q==0)return d.G;if(q==1)return d.U;var T=DG(d.G,d.j,q),Y=DG(d.j,d.T,q);d=DG(d.T,d.U,q);T=DG(T,Y,q);Y=DG(Y,d,q);return DG(T,Y,q)};
  1500. mSH=function(d,q){var T=(q-d.G)/(d.U-d.G);if(T<=0)return 0;if(T>=1)return 1;for(var Y=0,e=1,U=0,b=0;b<8;b++){U=yy(d,T);var J=(yy(d,T+1E-6)-U)/1E-6;if(Math.abs(U-q)<1E-6)return T;if(Math.abs(J)<1E-6)break;else U<q?Y=T:e=T,T-=(U-q)/J}for(b=0;Math.abs(U-q)>1E-6&&b<8;b++)U<q?(Y=T,T=(T+e)/2):(e=T,T=(T+Y)/2),U=yy(d,T);return T};
  1501. hx=function(d,q){this.start=d<q?d:q;this.end=d<q?q:d};
  1502. H7=function(d){return(d=d.exec(g.k9()))?d[1]:""};
  1503. Qy=function(d){return g.Lh(SE6,d)>=0};
  1504. g.Mg=function(d){g.W.call(this);this.X=1;this.j=[];this.T=0;this.G=[];this.U={};this.L=!!d};
  1505. lQ1=function(d,q,T){g.ML(function(){d.apply(q,T)})};
  1506. g.c7=function(d){this.G=d};
  1507. EA=function(d){this.G=d};
  1508. vmY=function(d){this.data=d};
  1509. omn=function(d){return d===void 0||d instanceof vmY?d:new vmY(d)};
  1510. jp=function(d){this.G=d};
  1511. g.V$f=function(d){var q=d.creation;d=d.expiration;return!!d&&d<g.F_()||!!q&&q>g.F_()};
  1512. g.aM=function(d){this.G=d};
  1513. dLY=function(){};
  1514. Ax=function(){};
  1515. pv=function(d){this.G=d;this.U=null};
  1516. Zg=function(d){if(d.G==null)throw Error("Storage mechanism: Storage unavailable");d.isAvailable()||j0(Error("Storage mechanism: Storage unavailable"))};
  1517. OA=function(){var d=null;try{d=g.oQ.localStorage||null}catch(q){}pv.call(this,d)};
  1518. qfj=function(){var d=null;try{d=g.oQ.sessionStorage||null}catch(q){}pv.call(this,d)};
  1519. nv=function(d,q){this.U=d;this.G=q+"::"};
  1520. g.r9=function(d){var q=new OA;return q.isAvailable()?d?new nv(q,d):q:null};
  1521. tx=function(d,q){this.G=d;this.U=q};
  1522. B7=function(d){this.G=[];if(d)a:{if(d instanceof B7){var q=d.ll();d=d.N0();if(this.G.length<=0){for(var T=this.G,Y=0;Y<q.length;Y++)T.push(new tx(q[Y],d[Y]));break a}}else q=g.UN(d),d=eY(d);for(T=0;T<q.length;T++)this.LA(q[T],d[T])}};
  1523. Kv=function(){B7.apply(this,arguments)};
  1524. GR=function(){};
  1525. T1g=function(){var d=Error();d.name="SecurityError";throw d;};
  1526. YfY=function(){return{get opener(){return null},get closed(){return!0},get location(){T1g()},get document(){T1g()},postMessage:function(){},
  1527. close:function(){},
  1528. focus:function(){}}};
  1529. eFD=function(d){var q,T,Y=d.length,e=0;for(q=0;q<Y;q++){var U=d.charCodeAt(q);if((U&64512)===55296&&q+1<Y){var b=d.charCodeAt(q+1);(b&64512)===56320&&(U=65536+(U-55296<<10)+(b-56320),q++)}e+=U<128?1:U<2048?2:U<65536?3:4}var J=new Lv.gi(e);for(q=T=0;T<e;q++)U=d.charCodeAt(q),(U&64512)===55296&&q+1<Y&&(b=d.charCodeAt(q+1),(b&64512)===56320&&(U=65536+(U-55296<<10)+(b-56320),q++)),U<128?J[T++]=U:(U<2048?J[T++]=192|U>>>6:(U<65536?J[T++]=224|U>>>12:(J[T++]=240|U>>>18,J[T++]=128|U>>>12&63),J[T++]=128|U>>>
  1530. 6&63),J[T++]=128|U&63);return J};
  1531. kG=function(d){for(var q=d.length;--q>=0;)d[q]=0};
  1532. P7=function(d,q,T,Y,e){this.Ua=d;this.Hd=q;this.s0=T;this.Pd=Y;this.PrF=e;this.UR=d&&d.length};
  1533. W7=function(d,q){this.L6=d;this.DN=0;this.Ky=q};
  1534. Cv=function(d,q){d.Il[d.pending++]=q&255;d.Il[d.pending++]=q>>>8&255};
  1535. uM=function(d,q,T){d.qN>16-T?(d.sN|=q<<d.qN&65535,Cv(d,d.sN),d.sN=q>>16-d.qN,d.qN+=T-16):(d.sN|=q<<d.qN&65535,d.qN+=T)};
  1536. Dg=function(d,q,T){uM(d,T[q*2],T[q*2+1])};
  1537. UL2=function(d,q){var T=0;do T|=d&1,d>>>=1,T<<=1;while(--q>0);return T>>>1};
  1538. bKg=function(d,q,T){var Y=Array(16),e=0,U;for(U=1;U<=15;U++)Y[U]=e=e+T[U-1]<<1;for(T=0;T<=q;T++)e=d[T*2+1],e!==0&&(d[T*2]=UL2(Y[e]++,e))};
  1539. Xd2=function(d){var q;for(q=0;q<286;q++)d.rB[q*2]=0;for(q=0;q<30;q++)d.Hu[q*2]=0;for(q=0;q<19;q++)d.Bf[q*2]=0;d.rB[512]=1;d.HW=d.L5=0;d.WK=d.matches=0};
  1540. JKf=function(d){d.qN>8?Cv(d,d.sN):d.qN>0&&(d.Il[d.pending++]=d.sN);d.sN=0;d.qN=0};
  1541. s_2=function(d,q,T){JKf(d);Cv(d,T);Cv(d,~T);Lv.iZ(d.Il,d.window,q,T,d.pending);d.pending+=T};
  1542. $LQ=function(d,q,T,Y){var e=q*2,U=T*2;return d[e]<d[U]||d[e]===d[U]&&Y[q]<=Y[T]};
  1543. w9=function(d,q,T){for(var Y=d.d1[T],e=T<<1;e<=d.Vl;){e<d.Vl&&$LQ(q,d.d1[e+1],d.d1[e],d.depth)&&e++;if($LQ(q,Y,d.d1[e],d.depth))break;d.d1[T]=d.d1[e];T=e;e<<=1}d.d1[T]=Y};
  1544. g1X=function(d,q,T){var Y=0;if(d.WK!==0){do{var e=d.Il[d.xw+Y*2]<<8|d.Il[d.xw+Y*2+1];var U=d.Il[d.MA+Y];Y++;if(e===0)Dg(d,U,q);else{var b=fv[U];Dg(d,b+256+1,q);var J=zR[b];J!==0&&(U-=iM[b],uM(d,U,J));e--;b=e<256?IM[e]:IM[256+(e>>>7)];Dg(d,b,T);J=m$[b];J!==0&&(e-=Sp[b],uM(d,e,J))}}while(Y<d.WK)}Dg(d,256,q)};
  1545. lM=function(d,q){var T=q.L6,Y=q.Ky.Ua,e=q.Ky.UR,U=q.Ky.Pd,b,J=-1;d.Vl=0;d.Um=573;for(b=0;b<U;b++)T[b*2]!==0?(d.d1[++d.Vl]=J=b,d.depth[b]=0):T[b*2+1]=0;for(;d.Vl<2;){var F=d.d1[++d.Vl]=J<2?++J:0;T[F*2]=1;d.depth[F]=0;d.HW--;e&&(d.L5-=Y[F*2+1])}q.DN=J;for(b=d.Vl>>1;b>=1;b--)w9(d,T,b);F=U;do b=d.d1[1],d.d1[1]=d.d1[d.Vl--],w9(d,T,1),Y=d.d1[1],d.d1[--d.Um]=b,d.d1[--d.Um]=Y,T[F*2]=T[b*2]+T[Y*2],d.depth[F]=(d.depth[b]>=d.depth[Y]?d.depth[b]:d.depth[Y])+1,T[b*2+1]=T[Y*2+1]=F,d.d1[1]=F++,w9(d,T,1);while(d.Vl>=
  1546. 2);d.d1[--d.Um]=d.d1[1];b=q.L6;F=q.DN;Y=q.Ky.Ua;e=q.Ky.UR;U=q.Ky.Hd;var N=q.Ky.s0,R=q.Ky.PrF,x,y=0;for(x=0;x<=15;x++)d.SP[x]=0;b[d.d1[d.Um]*2+1]=0;for(q=d.Um+1;q<573;q++){var h=d.d1[q];x=b[b[h*2+1]*2+1]+1;x>R&&(x=R,y++);b[h*2+1]=x;if(!(h>F)){d.SP[x]++;var H=0;h>=N&&(H=U[h-N]);var a=b[h*2];d.HW+=a*(x+H);e&&(d.L5+=a*(Y[h*2+1]+H))}}if(y!==0){do{for(x=R-1;d.SP[x]===0;)x--;d.SP[x]--;d.SP[x+1]+=2;d.SP[R]--;y-=2}while(y>0);for(x=R;x!==0;x--)for(h=d.SP[x];h!==0;)Y=d.d1[--q],Y>F||(b[Y*2+1]!==x&&(d.HW+=(x-
  1547. b[Y*2+1])*b[Y*2],b[Y*2+1]=x),h--)}bKg(T,J,d.SP)};
  1548. FWg=function(d,q,T){var Y,e=-1,U=q[1],b=0,J=7,F=4;U===0&&(J=138,F=3);q[(T+1)*2+1]=65535;for(Y=0;Y<=T;Y++){var N=U;U=q[(Y+1)*2+1];++b<J&&N===U||(b<F?d.Bf[N*2]+=b:N!==0?(N!==e&&d.Bf[N*2]++,d.Bf[32]++):b<=10?d.Bf[34]++:d.Bf[36]++,b=0,e=N,U===0?(J=138,F=3):N===U?(J=6,F=3):(J=7,F=4))}};
  1549. N17=function(d,q,T){var Y,e=-1,U=q[1],b=0,J=7,F=4;U===0&&(J=138,F=3);for(Y=0;Y<=T;Y++){var N=U;U=q[(Y+1)*2+1];if(!(++b<J&&N===U)){if(b<F){do Dg(d,N,d.Bf);while(--b!==0)}else N!==0?(N!==e&&(Dg(d,N,d.Bf),b--),Dg(d,16,d.Bf),uM(d,b-3,2)):b<=10?(Dg(d,17,d.Bf),uM(d,b-3,3)):(Dg(d,18,d.Bf),uM(d,b-11,7));b=0;e=N;U===0?(J=138,F=3):N===U?(J=6,F=3):(J=7,F=4)}}};
  1550. RFn=function(d){var q=4093624447,T;for(T=0;T<=31;T++,q>>>=1)if(q&1&&d.rB[T*2]!==0)return 0;if(d.rB[18]!==0||d.rB[20]!==0||d.rB[26]!==0)return 1;for(T=32;T<256;T++)if(d.rB[T*2]!==0)return 1;return 0};
  1551. v7=function(d,q,T){d.Il[d.xw+d.WK*2]=q>>>8&255;d.Il[d.xw+d.WK*2+1]=q&255;d.Il[d.MA+d.WK]=T&255;d.WK++;q===0?d.rB[T*2]++:(d.matches++,q--,d.rB[(fv[T]+256+1)*2]++,d.Hu[(q<256?IM[q]:IM[256+(q>>>7)])*2]++);return d.WK===d.pm-1};
  1552. Vy=function(d,q){d.msg=oM[q];return q};
  1553. dw=function(d){for(var q=d.length;--q>=0;)d[q]=0};
  1554. qv=function(d){var q=d.state,T=q.pending;T>d.Wl&&(T=d.Wl);T!==0&&(Lv.iZ(d.output,q.Il,q.jq,T,d.ZN),d.ZN+=T,q.jq+=T,d.H_+=T,d.Wl-=T,q.pending-=T,q.pending===0&&(q.jq=0))};
  1555. eW=function(d,q){var T=d.s5>=0?d.s5:-1,Y=d.pn-d.s5,e=0;if(d.level>0){d.q3.VO===2&&(d.q3.VO=RFn(d));lM(d,d.Dl);lM(d,d.Tk);FWg(d,d.rB,d.Dl.DN);FWg(d,d.Hu,d.Tk.DN);lM(d,d.WN);for(e=18;e>=3&&d.Bf[xLN[e]*2+1]===0;e--);d.HW+=3*(e+1)+5+5+4;var U=d.HW+3+7>>>3;var b=d.L5+3+7>>>3;b<=U&&(U=b)}else U=b=Y+5;if(Y+4<=U&&T!==-1)uM(d,q?1:0,3),s_2(d,T,Y);else if(d.strategy===4||b===U)uM(d,2+(q?1:0),3),g1X(d,T2,Y5);else{uM(d,4+(q?1:0),3);T=d.Dl.DN+1;Y=d.Tk.DN+1;e+=1;uM(d,T-257,5);uM(d,Y-1,5);uM(d,e-4,4);for(U=0;U<e;U++)uM(d,
  1556. d.Bf[xLN[U]*2+1],3);N17(d,d.rB,T-1);N17(d,d.Hu,Y-1);g1X(d,d.rB,d.Hu)}Xd2(d);q&&JKf(d);d.s5=d.pn;qv(d.q3)};
  1557. Us=function(d,q){d.Il[d.pending++]=q};
  1558. bF=function(d,q){d.Il[d.pending++]=q>>>8&255;d.Il[d.pending++]=q&255};
  1559. yKQ=function(d,q){var T=d.zC,Y=d.pn,e=d.Wa,U=d.FX,b=d.pn>d.r4-262?d.pn-(d.r4-262):0,J=d.window,F=d.Mj,N=d.FQ,R=d.pn+258,x=J[Y+e-1],y=J[Y+e];d.Wa>=d.Ng&&(T>>=2);U>d.xB&&(U=d.xB);do{var h=q;if(J[h+e]===y&&J[h+e-1]===x&&J[h]===J[Y]&&J[++h]===J[Y+1]){Y+=2;for(h++;J[++Y]===J[++h]&&J[++Y]===J[++h]&&J[++Y]===J[++h]&&J[++Y]===J[++h]&&J[++Y]===J[++h]&&J[++Y]===J[++h]&&J[++Y]===J[++h]&&J[++Y]===J[++h]&&Y<R;);h=258-(R-Y);Y=R-258;if(h>e){d.LM=q;e=h;if(h>=U)break;x=J[Y+e-1];y=J[Y+e]}}}while((q=N[q&F])>b&&--T!==
  1560. 0);return e<=d.xB?e:d.xB};
  1561. $5=function(d){var q=d.r4,T;do{var Y=d.h$-d.xB-d.pn;if(d.pn>=q+(q-262)){Lv.iZ(d.window,d.window,q,q,0);d.LM-=q;d.pn-=q;d.s5-=q;var e=T=d.Yg;do{var U=d.head[--e];d.head[e]=U>=q?U-q:0}while(--T);e=T=q;do U=d.FQ[--e],d.FQ[e]=U>=q?U-q:0;while(--T);Y+=q}if(d.q3.b1===0)break;e=d.q3;T=d.window;U=d.pn+d.xB;var b=e.b1;b>Y&&(b=Y);b===0?T=0:(e.b1-=b,Lv.iZ(T,e.input,e.EO,b,U),e.state.wrap===1?e.Ic=XM(e.Ic,T,b,U):e.state.wrap===2&&(e.Ic=J1(e.Ic,T,b,U)),e.EO+=b,e.vV+=b,T=b);d.xB+=T;if(d.xB+d.LA>=3)for(Y=d.pn-d.LA,
  1562. d.N3=d.window[Y],d.N3=(d.N3<<d.kH^d.window[Y+1])&d.c9;d.LA&&!(d.N3=(d.N3<<d.kH^d.window[Y+3-1])&d.c9,d.FQ[Y&d.Mj]=d.head[d.N3],d.head[d.N3]=Y,Y++,d.LA--,d.xB+d.LA<3););}while(d.xB<262&&d.q3.b1!==0)};
  1563. gw=function(d,q){for(var T;;){if(d.xB<262){$5(d);if(d.xB<262&&q===0)return 1;if(d.xB===0)break}T=0;d.xB>=3&&(d.N3=(d.N3<<d.kH^d.window[d.pn+3-1])&d.c9,T=d.FQ[d.pn&d.Mj]=d.head[d.N3],d.head[d.N3]=d.pn);T!==0&&d.pn-T<=d.r4-262&&(d.Ur=yKQ(d,T));if(d.Ur>=3)if(T=v7(d,d.pn-d.LM,d.Ur-3),d.xB-=d.Ur,d.Ur<=d.Jb&&d.xB>=3){d.Ur--;do d.pn++,d.N3=(d.N3<<d.kH^d.window[d.pn+3-1])&d.c9,d.FQ[d.pn&d.Mj]=d.head[d.N3],d.head[d.N3]=d.pn;while(--d.Ur!==0);d.pn++}else d.pn+=d.Ur,d.Ur=0,d.N3=d.window[d.pn],d.N3=(d.N3<<d.kH^
  1564. d.window[d.pn+1])&d.c9;else T=v7(d,0,d.window[d.pn]),d.xB--,d.pn++;if(T&&(eW(d,!1),d.q3.Wl===0))return 1}d.LA=d.pn<2?d.pn:2;return q===4?(eW(d,!0),d.q3.Wl===0?3:4):d.WK&&(eW(d,!1),d.q3.Wl===0)?1:2};
  1565. FM=function(d,q){for(var T,Y;;){if(d.xB<262){$5(d);if(d.xB<262&&q===0)return 1;if(d.xB===0)break}T=0;d.xB>=3&&(d.N3=(d.N3<<d.kH^d.window[d.pn+3-1])&d.c9,T=d.FQ[d.pn&d.Mj]=d.head[d.N3],d.head[d.N3]=d.pn);d.Wa=d.Ur;d.C4=d.LM;d.Ur=2;T!==0&&d.Wa<d.Jb&&d.pn-T<=d.r4-262&&(d.Ur=yKQ(d,T),d.Ur<=5&&(d.strategy===1||d.Ur===3&&d.pn-d.LM>4096)&&(d.Ur=2));if(d.Wa>=3&&d.Ur<=d.Wa){Y=d.pn+d.xB-3;T=v7(d,d.pn-1-d.C4,d.Wa-3);d.xB-=d.Wa-1;d.Wa-=2;do++d.pn<=Y&&(d.N3=(d.N3<<d.kH^d.window[d.pn+3-1])&d.c9,d.FQ[d.pn&d.Mj]=
  1566. d.head[d.N3],d.head[d.N3]=d.pn);while(--d.Wa!==0);d.a4=0;d.Ur=2;d.pn++;if(T&&(eW(d,!1),d.q3.Wl===0))return 1}else if(d.a4){if((T=v7(d,0,d.window[d.pn-1]))&&eW(d,!1),d.pn++,d.xB--,d.q3.Wl===0)return 1}else d.a4=1,d.pn++,d.xB--}d.a4&&(v7(d,0,d.window[d.pn-1]),d.a4=0);d.LA=d.pn<2?d.pn:2;return q===4?(eW(d,!0),d.q3.Wl===0?3:4):d.WK&&(eW(d,!1),d.q3.Wl===0)?1:2};
  1567. hFf=function(d,q){for(var T,Y,e,U=d.window;;){if(d.xB<=258){$5(d);if(d.xB<=258&&q===0)return 1;if(d.xB===0)break}d.Ur=0;if(d.xB>=3&&d.pn>0&&(Y=d.pn-1,T=U[Y],T===U[++Y]&&T===U[++Y]&&T===U[++Y])){for(e=d.pn+258;T===U[++Y]&&T===U[++Y]&&T===U[++Y]&&T===U[++Y]&&T===U[++Y]&&T===U[++Y]&&T===U[++Y]&&T===U[++Y]&&Y<e;);d.Ur=258-(e-Y);d.Ur>d.xB&&(d.Ur=d.xB)}d.Ur>=3?(T=v7(d,1,d.Ur-3),d.xB-=d.Ur,d.pn+=d.Ur,d.Ur=0):(T=v7(d,0,d.window[d.pn]),d.xB--,d.pn++);if(T&&(eW(d,!1),d.q3.Wl===0))return 1}d.LA=0;return q===
  1568. 4?(eW(d,!0),d.q3.Wl===0?3:4):d.WK&&(eW(d,!1),d.q3.Wl===0)?1:2};
  1569. HKY=function(d,q){for(var T;;){if(d.xB===0&&($5(d),d.xB===0)){if(q===0)return 1;break}d.Ur=0;T=v7(d,0,d.window[d.pn]);d.xB--;d.pn++;if(T&&(eW(d,!1),d.q3.Wl===0))return 1}d.LA=0;return q===4?(eW(d,!0),d.q3.Wl===0?3:4):d.WK&&(eW(d,!1),d.q3.Wl===0)?1:2};
  1570. Nv=function(d,q,T,Y,e){this.JB=d;this.w6=q;this.rFf=T;this.KV=Y;this.func=e};
  1571. Q_X=function(){this.q3=null;this.status=0;this.Il=null;this.wrap=this.pending=this.jq=this.C3=0;this.TX=null;this.B1=0;this.method=8;this.qG=-1;this.Mj=this.Zu=this.r4=0;this.window=null;this.h$=0;this.head=this.FQ=null;this.FX=this.Ng=this.strategy=this.level=this.Jb=this.zC=this.Wa=this.xB=this.LM=this.pn=this.a4=this.C4=this.Ur=this.s5=this.kH=this.c9=this.Su=this.Yg=this.N3=0;this.rB=new Lv.b3(1146);this.Hu=new Lv.b3(122);this.Bf=new Lv.b3(78);dw(this.rB);dw(this.Hu);dw(this.Bf);this.WN=this.Tk=
  1572. this.Dl=null;this.SP=new Lv.b3(16);this.d1=new Lv.b3(573);dw(this.d1);this.Um=this.Vl=0;this.depth=new Lv.b3(573);dw(this.depth);this.qN=this.sN=this.LA=this.matches=this.L5=this.HW=this.xw=this.WK=this.pm=this.MA=0};
  1573. M4j=function(d,q){if(!d||!d.state||q>5||q<0)return d?Vy(d,-2):-2;var T=d.state;if(!d.output||!d.input&&d.b1!==0||T.status===666&&q!==4)return Vy(d,d.Wl===0?-5:-2);T.q3=d;var Y=T.qG;T.qG=q;if(T.status===42)if(T.wrap===2)d.Ic=0,Us(T,31),Us(T,139),Us(T,8),T.TX?(Us(T,(T.TX.text?1:0)+(T.TX.cZ?2:0)+(T.TX.extra?4:0)+(T.TX.name?8:0)+(T.TX.comment?16:0)),Us(T,T.TX.time&255),Us(T,T.TX.time>>8&255),Us(T,T.TX.time>>16&255),Us(T,T.TX.time>>24&255),Us(T,T.level===9?2:T.strategy>=2||T.level<2?4:0),Us(T,T.TX.os&
  1574. 255),T.TX.extra&&T.TX.extra.length&&(Us(T,T.TX.extra.length&255),Us(T,T.TX.extra.length>>8&255)),T.TX.cZ&&(d.Ic=J1(d.Ic,T.Il,T.pending,0)),T.B1=0,T.status=69):(Us(T,0),Us(T,0),Us(T,0),Us(T,0),Us(T,0),Us(T,T.level===9?2:T.strategy>=2||T.level<2?4:0),Us(T,3),T.status=113);else{var e=8+(T.Zu-8<<4)<<8;e|=(T.strategy>=2||T.level<2?0:T.level<6?1:T.level===6?2:3)<<6;T.pn!==0&&(e|=32);T.status=113;bF(T,e+(31-e%31));T.pn!==0&&(bF(T,d.Ic>>>16),bF(T,d.Ic&65535));d.Ic=1}if(T.status===69)if(T.TX.extra){for(e=
  1575. T.pending;T.B1<(T.TX.extra.length&65535)&&(T.pending!==T.C3||(T.TX.cZ&&T.pending>e&&(d.Ic=J1(d.Ic,T.Il,T.pending-e,e)),qv(d),e=T.pending,T.pending!==T.C3));)Us(T,T.TX.extra[T.B1]&255),T.B1++;T.TX.cZ&&T.pending>e&&(d.Ic=J1(d.Ic,T.Il,T.pending-e,e));T.B1===T.TX.extra.length&&(T.B1=0,T.status=73)}else T.status=73;if(T.status===73)if(T.TX.name){e=T.pending;do{if(T.pending===T.C3&&(T.TX.cZ&&T.pending>e&&(d.Ic=J1(d.Ic,T.Il,T.pending-e,e)),qv(d),e=T.pending,T.pending===T.C3)){var U=1;break}U=T.B1<T.TX.name.length?
  1576. T.TX.name.charCodeAt(T.B1++)&255:0;Us(T,U)}while(U!==0);T.TX.cZ&&T.pending>e&&(d.Ic=J1(d.Ic,T.Il,T.pending-e,e));U===0&&(T.B1=0,T.status=91)}else T.status=91;if(T.status===91)if(T.TX.comment){e=T.pending;do{if(T.pending===T.C3&&(T.TX.cZ&&T.pending>e&&(d.Ic=J1(d.Ic,T.Il,T.pending-e,e)),qv(d),e=T.pending,T.pending===T.C3)){U=1;break}U=T.B1<T.TX.comment.length?T.TX.comment.charCodeAt(T.B1++)&255:0;Us(T,U)}while(U!==0);T.TX.cZ&&T.pending>e&&(d.Ic=J1(d.Ic,T.Il,T.pending-e,e));U===0&&(T.status=103)}else T.status=
  1577. 103;T.status===103&&(T.TX.cZ?(T.pending+2>T.C3&&qv(d),T.pending+2<=T.C3&&(Us(T,d.Ic&255),Us(T,d.Ic>>8&255),d.Ic=0,T.status=113)):T.status=113);if(T.pending!==0){if(qv(d),d.Wl===0)return T.qG=-1,0}else if(d.b1===0&&(q<<1)-(q>4?9:0)<=(Y<<1)-(Y>4?9:0)&&q!==4)return Vy(d,-5);if(T.status===666&&d.b1!==0)return Vy(d,-5);if(d.b1!==0||T.xB!==0||q!==0&&T.status!==666){Y=T.strategy===2?HKY(T,q):T.strategy===3?hFf(T,q):RE[T.level].func(T,q);if(Y===3||Y===4)T.status=666;if(Y===1||Y===3)return d.Wl===0&&(T.qG=
  1578. -1),0;if(Y===2&&(q===1?(uM(T,2,3),Dg(T,256,T2),T.qN===16?(Cv(T,T.sN),T.sN=0,T.qN=0):T.qN>=8&&(T.Il[T.pending++]=T.sN&255,T.sN>>=8,T.qN-=8)):q!==5&&(uM(T,0,3),s_2(T,0,0),q===3&&(dw(T.head),T.xB===0&&(T.pn=0,T.s5=0,T.LA=0))),qv(d),d.Wl===0))return T.qG=-1,0}if(q!==4)return 0;if(T.wrap<=0)return 1;T.wrap===2?(Us(T,d.Ic&255),Us(T,d.Ic>>8&255),Us(T,d.Ic>>16&255),Us(T,d.Ic>>24&255),Us(T,d.vV&255),Us(T,d.vV>>8&255),Us(T,d.vV>>16&255),Us(T,d.vV>>24&255)):(bF(T,d.Ic>>>16),bF(T,d.Ic&65535));qv(d);T.wrap>0&&
  1579. (T.wrap=-T.wrap);return T.pending!==0?0:1};
  1580. x5=function(d){if(!(this instanceof x5))return new x5(d);d=this.options=Lv.assign({level:-1,method:8,chunkSize:16384,zT:15,oxw:8,strategy:0,to:""},d||{});d.raw&&d.zT>0?d.zT=-d.zT:d.Rp&&d.zT>0&&d.zT<16&&(d.zT+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.q3=new cKn;this.q3.Wl=0;var q=this.q3;var T=d.level,Y=d.method,e=d.zT,U=d.oxw,b=d.strategy;if(q){var J=1;T===-1&&(T=6);e<0?(J=0,e=-e):e>15&&(J=2,e-=16);if(U<1||U>9||Y!==8||e<8||e>15||T<0||T>9||b<0||b>4)q=Vy(q,-2);else{e===8&&(e=9);
  1581. var F=new Q_X;q.state=F;F.q3=q;F.wrap=J;F.TX=null;F.Zu=e;F.r4=1<<F.Zu;F.Mj=F.r4-1;F.Su=U+7;F.Yg=1<<F.Su;F.c9=F.Yg-1;F.kH=~~((F.Su+3-1)/3);F.window=new Lv.gi(F.r4*2);F.head=new Lv.b3(F.Yg);F.FQ=new Lv.b3(F.r4);F.pm=1<<U+6;F.C3=F.pm*4;F.Il=new Lv.gi(F.C3);F.xw=1*F.pm;F.MA=3*F.pm;F.level=T;F.strategy=b;F.method=Y;if(q&&q.state){q.vV=q.H_=0;q.VO=2;T=q.state;T.pending=0;T.jq=0;T.wrap<0&&(T.wrap=-T.wrap);T.status=T.wrap?42:113;q.Ic=T.wrap===2?0:1;T.qG=0;if(!E1f){Y=Array(16);for(U=b=0;U<28;U++)for(iM[U]=
  1582. b,e=0;e<1<<zR[U];e++)fv[b++]=U;fv[b-1]=U;for(U=b=0;U<16;U++)for(Sp[U]=b,e=0;e<1<<m$[U];e++)IM[b++]=U;for(b>>=7;U<30;U++)for(Sp[U]=b<<7,e=0;e<1<<m$[U]-7;e++)IM[256+b++]=U;for(e=0;e<=15;e++)Y[e]=0;for(e=0;e<=143;)T2[e*2+1]=8,e++,Y[8]++;for(;e<=255;)T2[e*2+1]=9,e++,Y[9]++;for(;e<=279;)T2[e*2+1]=7,e++,Y[7]++;for(;e<=287;)T2[e*2+1]=8,e++,Y[8]++;bKg(T2,287,Y);for(e=0;e<30;e++)Y5[e*2+1]=5,Y5[e*2]=UL2(e,5);j_D=new P7(T2,zR,257,286,15);aZ_=new P7(Y5,m$,0,30,15);AKI=new P7([],pd6,0,19,7);E1f=!0}T.Dl=new W7(T.rB,
  1583. j_D);T.Tk=new W7(T.Hu,aZ_);T.WN=new W7(T.Bf,AKI);T.sN=0;T.qN=0;Xd2(T);T=0}else T=Vy(q,-2);T===0&&(q=q.state,q.h$=2*q.r4,dw(q.head),q.Jb=RE[q.level].w6,q.Ng=RE[q.level].JB,q.FX=RE[q.level].rFf,q.zC=RE[q.level].KV,q.pn=0,q.s5=0,q.xB=0,q.LA=0,q.Ur=q.Wa=2,q.a4=0,q.N3=0);q=T}}else q=-2;if(q!==0)throw Error(oM[q]);d.header&&(q=this.q3)&&q.state&&q.state.wrap===2&&(q.state.TX=d.header);if(d.A5){var N;typeof d.A5==="string"?N=eFD(d.A5):ZKg.call(d.A5)==="[object ArrayBuffer]"?N=new Uint8Array(d.A5):N=d.A5;
  1584. d=this.q3;U=N;b=U.length;if(d&&d.state)if(N=d.state,q=N.wrap,q===2||q===1&&N.status!==42||N.xB)q=-2;else{q===1&&(d.Ic=XM(d.Ic,U,b,0));N.wrap=0;b>=N.r4&&(q===0&&(dw(N.head),N.pn=0,N.s5=0,N.LA=0),T=new Lv.gi(N.r4),Lv.iZ(T,U,b-N.r4,N.r4,0),U=T,b=N.r4);T=d.b1;Y=d.EO;e=d.input;d.b1=b;d.EO=0;d.input=U;for($5(N);N.xB>=3;){U=N.pn;b=N.xB-2;do N.N3=(N.N3<<N.kH^N.window[U+3-1])&N.c9,N.FQ[U&N.Mj]=N.head[N.N3],N.head[N.N3]=U,U++;while(--b);N.pn=U;N.xB=2;$5(N)}N.pn+=N.xB;N.s5=N.pn;N.LA=N.xB;N.xB=0;N.Ur=N.Wa=2;
  1585. N.a4=0;d.EO=Y;d.input=e;d.b1=T;N.wrap=q;q=0}else q=-2;if(q!==0)throw Error(oM[q]);this.vpv=!0}};
  1586. OKN=function(d,q){q=q||{};q.Rp=!0;q=new x5(q);q.push(d,!0);if(q.err)throw q.msg||oM[q.err];return q.result};
  1587. n1g=function(){var d=g.CN.apply(0,arguments);return d.length===0?function(q){return q}:d.length===1?d[0]:d.reduce(function(q,T){return function(){return q(T.apply(null,g.RQ(g.CN.apply(0,arguments))))}})};
  1588. rKI=function(){var d=g.CN.apply(0,arguments);return function(q){return function(T,Y){function e(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
  1589. T=q(T,Y);var U={getState:T.getState,dispatch:function(b){return e.apply(null,[b].concat(g.RQ(g.CN.apply(1,arguments))))}};
  1590. Y=d.map(function(b){return b(U)});
  1591. e=n1g.apply(null,g.RQ(Y))(T.dispatch);return Object.assign({},T,{dispatch:e})}}};
  1592. yH=function(){return Math.random().toString(36).substring(7).split("").join(".")};
  1593. t4n=function(d){Object.keys(d).forEach(function(q){var T=d[q];if(typeof T(void 0,{type:h1})==="undefined")throw Error('The slice reducer for key "'+q+"\" 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(typeof T(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+yH()})==="undefined")throw Error('The slice reducer for key "'+
  1594. q+"\" returned undefined when probed with a random type. Don't try to handle '"+(h1+'\' 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.'));})};
  1595. B12=function(d,q,T){function Y(){if(R)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 J}
  1596. function e(h){if(typeof h!=="function")throw Error("Expected the listener to be a function. Instead, received: '"+typeof h+"'");if(R)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 H=!0;N===F&&(N=F.slice());N.push(h);return function(){if(H){if(R)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.");
  1597. H=!1;N===F&&(N=F.slice());N.splice(N.indexOf(h),1);F=null}}}
  1598. function U(h){if(typeof h!=="object"||h===null)var H=!1;else{for(H=h;Object.getPrototypeOf(H)!==null;)H=Object.getPrototypeOf(H);H=Object.getPrototypeOf(h)===H}if(!H)throw Error("Actions must be plain objects. Instead, the actual type was: '"+typeof h+"'. 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.");
  1599. if(typeof h.type==="undefined")throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(R)throw Error("Reducers may not dispatch actions.");try{R=!0,J=b(J,h)}finally{R=!1}H=F=N;for(var a=0;a<H.length;a++)(0,H[a])();return h}
  1600. if(typeof q==="function"&&typeof T==="function"||typeof T==="function"&&typeof arguments[3]==="function")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.");typeof q==="function"&&typeof T==="undefined"&&(T=q,q=void 0);if(typeof T!=="undefined"){if(typeof T!=="function")throw Error("Expected the enhancer to be a function. Instead, received: '"+
  1601. typeof T+"'");return T(B12)(d,q)}if(typeof d!=="function")throw Error("Expected the root reducer to be a function. Instead, received: '"+typeof d+"'");var b=d,J=q,F=[],N=F,R=!1;U({type:h1});var x={},y=(x.dispatch=U,x.subscribe=e,x.getState=Y,x.replaceReducer=function(h){if(typeof h!=="function")throw Error("Expected the nextReducer to be a function. Instead, received: '"+typeof h);b=h;U({type:KWD});return y},x[GB7]=function(){var h={};
  1602. return h.subscribe=function(H){function a(){H.next&&H.next(Y())}
  1603. if(typeof H!=="object"||H===null)throw new TypeError("Expected the observer to be an object. Instead, received: '"+typeof H+"'");a();return{unsubscribe:e(a)}},h[GB7]=function(){return this},h},x);
  1604. return y};
  1605. LW2=function(d){return d?(d=d.privateDoNotAccessOrElseSafeScriptWrappedValue)?qI6(d):null:null};
  1606. Hq=function(d){return d?(d=d.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?dt(d):null:null};
  1607. PZ1=function(d){d=kB1(d);return Fk(d)};
  1608. g.QH=function(d){d=kB1(d);return dt(d)};
  1609. kB1=function(d){return d===null?"null":d===void 0?"undefined":d};
  1610. WWI=function(d){this.Kf=DY(d)};
  1611. u6j=function(d){var q=d[X[0]](X[14]),T=[function(){for(var Y=64,e=[];++Y-e[X[1]]-32;)switch(Y){case 58:Y=96;continue;case 91:Y=44;break;case 65:Y=47;continue;case 46:Y=153;case 123:Y-=58;default:e[X[33]](String[X[42]](Y))}return e},
  1612. function(Y,e){Y[X[1]]!=0&&(e=(e%Y[X[1]]+Y[X[1]])%Y[X[1]],Y[X[35]](0,1,Y[X[35]](e,1,Y[0])[0]))},
  1613. null,function(Y,e){if(e[X[1]]!=0){Y=(Y%e[X[1]]+e[X[1]])%e[X[1]];var U=e[0];e[0]=e[Y];e[Y]=U}},
  1614. function(Y,e,U,b,J,F,N,R,x,y){return e(J,F,N,R,x,y)},
  1615. -611682038,-465098853,-1949105846,function(Y,e){Y=(Y%e[X[1]]+e[X[1]])%e[X[1]];e[X[35]](Y,1)},
  1616. -481570823,-633047129,-628955419,X[90],function(){for(var Y=64,e=[];++Y-e[X[1]]-32;){switch(Y){case 58:Y-=14;case 91:case 92:case 93:continue;case 123:Y=47;case 94:case 95:case 96:continue;case 46:Y=95}e[X[33]](String[X[42]](Y))}return e},
  1617. function(){for(var Y=64,e=[];++Y-e[X[1]]-32;)switch(Y){case 46:Y=95;default:e[X[33]](String[X[42]](Y));case 94:case 95:case 96:break;case 123:Y-=76;case 92:case 93:continue;case 58:Y=44;case 91:}return e},
  1618. -948637263,-232156023,-407455266,function(Y,e){for(e=(e%Y[X[1]]+Y[X[1]])%Y[X[1]];e--;)Y[X[13]](Y[X[16]]())},
  1619. -447359333,-11234933,-746393724,-1221522907,-866647470,1294563432,-392033625,-1159733494,-517368241,2089067245,function(Y,e,U,b,J,F,N,R){return e(U,b,J,F,N,R)},
  1620. q,-1574335984,-528691829,1108330835,q,-342211868,q,function(Y){for(var e=Y[X[1]];e;)Y[X[33]](Y[X[35]](--e,1)[0])},
  1621. -1352923129,function(Y){Y[X[80]]()},
  1622. null,1134726863,517670772,X[22],1369532001,-790721138,function(Y,e,U){var b=Y[X[1]];U[X[57]](function(J,F,N){this[X[33]](N[F]=Y[(Y[X[44]](J)-Y[X[44]](this[F])+F+b--)%Y[X[1]]])},e[X[0]](X[14]))},
  1623. 1452634091,142934437,811011947,function(Y,e,U,b,J,F){return e(b,J,F)},
  1624. 1765302181,-381097149,1600440853,function(Y,e){Y=(Y%e[X[1]]+e[X[1]])%e[X[1]];e[X[35]](-Y)[X[80]]()[X[57]](function(U){e[X[13]](U)})},
  1625. 517860050,-410487839,1840594120,function(){for(var Y=64,e=[];++Y-e[X[1]]-32;){switch(Y){case 91:Y=44;continue;case 123:Y=65;break;case 65:Y-=18;continue;case 58:Y=96;continue;case 46:Y=95}e[X[33]](String[X[42]](Y))}return e},
  1626. null,function(Y,e,U,b,J){return e(U,b,J)},
  1627. 1607835006,1059413156,1086097630,1946874855,-1437700253,889458141,-1477385756,-1040850896,-737423101,-467412220,-1273648988,728216500,-1023730235,-1006522455,570880998,-2063629615,X[58],-1260015759,1132286560,function(Y,e,U,b,J,F,N,R,x){return U(N,R,x)},
  1628. -426557741,1610200657,-303247501,function(Y,e,U,b,J,F,N,R,x,y){return e(J,F,N,R,x,y)},
  1629. 299713192,-938606911,1000494658];T[2]=T;T[40]=T;T[59]=T;if(typeof CZ1===X[24])return d;try{try{T[7]!==10&&(T[47]>=-4||((0,T[18])(T[59],T[52]),0))&&(0,T[37])(T[30]),T[55]>=7&&(0,T[1])(T[30],T[55]),T[64]!==-3&&(0,T[18])(T[40],T[72]),T[8]<0&&(T[new Date(X[48])/1E3]!==-6||((((((0,T[52])(T[42],T[80]),T[2])((0,T[14])(),T[56],T[80]),(((0,T[52])(T[55],T[74]),T[52])(T[49],T[74]),T[6])((0,T[52])(T[35],T[74]),T[52],(0,T[52])(T[63],T[78]),T[5],T[74]),T[52])(T[64],T[78]),T[16])((0,T[52])(T[27],T[84]),T[2],(0,T[57])(),
  1630. T[56],T[78]),T[2])((0,T[44])(),T[56],T[74]),X[14]))&&(0,T[40])(((((0,T[47])(T[70],T[84]),T[10])(T[34],T[80]),T[52])(T[37],T[74]),T[10])(T[1],T[15]),T[62],(0,T[39])(T[38]),(((0,T[62])((0,T[20])(T[4],T[66]),T[84],T[40],T[83]),T[84])(T[76],T[23]),T[84])(T[80],T[83]),(0,T[84])(T[Math[X[87]](4,new Date(X[82])/1E3)+17280+-17209],T[27]),T[30],T[27])}catch(Y){(0,T[53])((0,T[47])(T[2],T[23]),T[new Date(X[38])/1E3],T[83]),((0,T[39])((0,T[6])(),T[5],T[27]),T[1])(T[67],T[23])}try{(T[18]<=-3||((0,T[39])((0,T[81])(),
  1631. T[new Date(X[17])/1E3],T[29]),0))&&(0,T[1])(T[15],T[23]),T[86]<=-2&&(T[21]>=-8&&(((((0,T[11])(T[29],T[49]),T[30])(T[23]),(0,T[84])(T[35],T[27]),(0,T[82])(T[29],T[56]),T[32])(T[52]),T[5])(T[60],T[56]),7)||(((((0,T[5])(T[64],T[9]),T[86])(T[27],T[58]),T[76])(T[4],T[46]),T[86])(T[71],T[64]),T[86])(T[12],T[64])^(0,T[5])(T[64],T[62])),T[26]!=9&&(((((0,T[76])(T[4],T[79]),T[43])((0,T[12])(T[34],T[67]),T[49],T[42],T[69]),T[57])((0,T[54])(),T[3],T[73]),T[12])(T[30],T[44]),X[69])||((0,T[14])(T[73],T[78]),(0,T[43])((0,T[43])((0,T[7])(T[87],
  1632. T[73]),T[12],T[68],T[67]),T[85],T[63],T[76]),T[7])(T[37],T[73]),T[56]!==-5?(0,T[23])((0,T[64])(T[69]),(0,T[43])((0,T[85])(T[63],T[59]),T[22],T[19]),T[29],(0,T[67])(T[30]),(0,T[30])((0,T[56])(T[35],T[57]),T[87],(0,T[51])(T[1],T[23]),T[5],T[28],T[57]),(0,T[52])(T[1]),T[47],T[64]):(((((0,T[56])((0,T[33])(T[30]),T[4],T[55],T[30]),T[42])((0,T[9])(),T[8],T[30]),T[35])(T[26])>>>(0,T[85])(T[36],T[61])<<(0,T[4])(T[72],T[26]),(0,T[14])(T[36],T[58]),T[42])((0,T[9])(),T[8],T[26]),(0,T[50])(T[53],T[30])),T[1]<=
  1633. new Date(X[85])/1E3&&(T[64]<-7||((0,T[42])((0,T[10])(),T[8],T[30]),0))&&(0,T[14])(T[36],T[29]),T[67]<-4&&(0,T[19])((0,T[65])(T[49],T[34]),T[19],T[6],T[55]),T[19]!=-10?(0,T[58])(T[57],T[44]):(0,T[11])(T[83],T[21])}catch(Y){(((0,T[new Date(X[55])/1E3])((0,T[7])(),T[5],T[29]),T[82])(T[83],T[63]),T[47])(T[14],T[29]),(0,T[1])(T[10],T[29]),((0,T[53])((0,T[32])(T[83]),T[39],(0,T[6])(),T[5],T[29]),T[82])(T[33],T[3])}}catch(Y){return X[89]+d}return q[X[34]](X[14])};
  1634. g.Mv=function(d){this.name=d};
  1635. DL7=function(d){this.Kf=DY(d)};
  1636. cq=function(d){this.Kf=DY(d)};
  1637. Es=function(d){this.Kf=DY(d)};
  1638. wdX=function(d){this.Kf=DY(d)};
  1639. jW=function(d){this.Kf=DY(d)};
  1640. aE=function(d){this.Kf=DY(d)};
  1641. A1=function(d){this.Kf=DY(d)};
  1642. ps=function(d){this.Kf=DY(d)};
  1643. ZA=function(d){this.Kf=DY(d)};
  1644. Os=function(d){this.Kf=DY(d)};
  1645. ns=function(d){this.Kf=DY(d)};
  1646. rw=function(d){this.Kf=DY(d)};
  1647. t1=function(d){this.Kf=DY(d)};
  1648. Bq=function(d){this.Kf=DY(d)};
  1649. Ks=function(d){this.Kf=DY(d)};
  1650. G2=function(d){this.Kf=DY(d,500)};
  1651. Ls=function(d){this.Kf=DY(d)};
  1652. k5=function(d){this.Kf=DY(d)};
  1653. fZ7=function(d){this.Kf=DY(d)};
  1654. zFY=function(){return g.qx("yt.ads.biscotti.lastId_")||""};
  1655. iKD=function(d){g.Vf("yt.ads.biscotti.lastId_",d)};
  1656. Wq=function(){var d=arguments,q=Pq;d.length>1?q[d[0]]=d[1]:d.length===1&&Object.assign(q,d[0])};
  1657. g.Cs=function(d,q){return d in Pq?Pq[d]:q};
  1658. ww=function(d){var q=Pq.EXPERIMENT_FLAGS;return q?q[d]:void 0};
  1659. IZ7=function(d){fs.forEach(function(q){return q(d)})};
  1660. g.iF=function(d){return d&&window.yterr?function(){try{return d.apply(this,arguments)}catch(q){g.z2(q)}}:d};
  1661. g.z2=function(d){var q=g.qx("yt.logging.errors.log");q?q(d,"ERROR",void 0,void 0,void 0,void 0,void 0):(q=g.Cs("ERRORS",[]),q.push([d,"ERROR",void 0,void 0,void 0,void 0,void 0]),Wq("ERRORS",q));IZ7(d)};
  1662. IE=function(d,q,T,Y,e){var U=g.qx("yt.logging.errors.log");U?U(d,"WARNING",q,T,Y,void 0,e):(U=g.Cs("ERRORS",[]),U.push([d,"WARNING",q,T,Y,void 0,e]),Wq("ERRORS",U))};
  1663. mR=function(d,q){q=d.split(q);for(var T={},Y=0,e=q.length;Y<e;Y++){var U=q[Y].split("=");if(U.length===1&&U[0]||U.length===2)try{var b=mL2(U[0]||""),J=mL2(U[1]||"");if(b in T){var F=T[b];Array.isArray(F)?g.tE(F,J):T[b]=[F,J]}else T[b]=J}catch(y){var N=y,R=U[0],x=String(mR);N.args=[{key:R,value:U[1],query:d,method:Sff===x?"unchanged":x}];lZY.hasOwnProperty(R)||IE(N)}}return T};
  1664. SW=function(d){var q=[];g.os(d,function(T,Y){var e=g.pn(Y);g.Sj(Array.isArray(T)?T:[T],function(U){U==""?q.push(e):q.push(e+"="+g.pn(U))})});
  1665. return q.join("&")};
  1666. lF=function(d){d.charAt(0)==="?"&&(d=d.substring(1));return mR(d,"&")};
  1667. vq=function(d){return d.split(",").map(function(q){return lF(q)})};
  1668. g.oE=function(d){return d.indexOf("?")!==-1?(d=(d||"").split("#")[0],d=d.split("?",2),lF(d.length>1?d[1]:d[0])):{}};
  1669. VH=function(d,q){return v1j(d,q||{},!0)};
  1670. d7=function(d,q){return v1j(d,q||{},!1)};
  1671. v1j=function(d,q,T){var Y=d.split("#",2);d=Y[0];Y=Y.length>1?"#"+Y[1]:"";var e=d.split("?",2);d=e[0];e=lF(e[1]||"");for(var U in q)if(T||!g.sN(e,U))e[U]=q[U];return g.y6(d,e)+Y};
  1672. q4=function(d){if(!q)var q=window.location.href;var T=g.Jq(d)[1]||null,Y=g.sb(d);T&&Y?(d=g.Jq(d),q=g.Jq(q),d=d[3]==q[3]&&d[1]==q[1]&&d[4]==q[4]):d=Y?g.sb(q)===Y&&(Number(g.Jq(q)[4]||null)||null)===(Number(g.Jq(d)[4]||null)||null):!0;return d};
  1673. Tt=function(d){d||(d=document.location.href);d=g.Jq(d)[1]||null;return d!==null&&d==="https"};
  1674. YA=function(d){d=o1f(d);return d===null?!1:d[0]==="com"&&d[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
  1675. V4H=function(d){d=o1f(d);return d===null?!1:d[1]==="google"?!0:d[2]==="google"?d[0]==="au"&&d[1]==="com"?!0:d[0]==="uk"&&d[1]==="co"?!0:!1:!1};
  1676. o1f=function(d){d=g.sb(d);return d!==null?d.split(".").reverse():null};
  1677. mL2=function(d){return d&&d.match(d07)?d:OD(d)};
  1678. bb=function(d){var q=ee;d=d===void 0?zFY():d;var T=Object,Y=T.assign,e=U3(q);var U=q.G;try{var b=U.screenX;var J=U.screenY}catch(t){}try{var F=U.outerWidth;var N=U.outerHeight}catch(t){}try{var R=U.innerWidth;var x=U.innerHeight}catch(t){}try{var y=U.screenLeft;var h=U.screenTop}catch(t){}try{R=U.innerWidth,x=U.innerHeight}catch(t){}try{var H=U.screen.availWidth;var a=U.screen.availTop}catch(t){}U=[y,h,b,J,H,a,F,N,R,x];b=bpn(!1,q.G.top);J={};var p=p===void 0?g.oQ:p;F=new L9;"SVGElement"in p&&"createElementNS"in
  1679. p.document&&F.set(0);N=eiN();N["allow-top-navigation-by-user-activation"]&&F.set(1);N["allow-popups-to-escape-sandbox"]&&F.set(2);p.crypto&&p.crypto.subtle&&F.set(3);"TextDecoder"in p&&"TextEncoder"in p&&F.set(4);p=Zb1(F);q=(J.bc=p,J.bih=b.height,J.biw=b.width,J.brdim=U.join(),J.vis=YQ(q.U),J.wgl=!!OM.WebGLRenderingContext,J);T=Y.call(T,e,q);T.ca_type="image";d&&(T.bid=d);return T};
  1680. U3=function(d){var q={};q.dt=qqg;q.flash="0";a:{try{var T=d.G.top.location.href}catch(N){d=2;break a}d=T?T===d.U.location.href?0:1:2}q=(q.frm=d,q);try{q.u_tz=-(new Date).getTimezoneOffset();try{var Y=OM.history.length}catch(N){Y=0}q.u_his=Y;var e;q.u_h=(e=OM.screen)==null?void 0:e.height;var U;q.u_w=(U=OM.screen)==null?void 0:U.width;var b;q.u_ah=(b=OM.screen)==null?void 0:b.availHeight;var J;q.u_aw=(J=OM.screen)==null?void 0:J.availWidth;var F;q.u_cd=(F=OM.screen)==null?void 0:F.colorDepth}catch(N){}return q};
  1681. Yqf=function(){if(!Te7)return null;var d=Te7();return"open"in d?d:null};
  1682. g.Jd=function(d){switch(Xq(d)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
  1683. Xq=function(d){return d&&"status"in d?d.status:-1};
  1684. g.s3=function(d,q){typeof d==="function"&&(d=g.iF(d));return window.setTimeout(d,q)};
  1685. g.$A=function(d,q){typeof d==="function"&&(d=g.iF(d));return window.setInterval(d,q)};
  1686. g.g7=function(d){window.clearTimeout(d)};
  1687. g.Fq=function(d){window.clearInterval(d)};
  1688. g.RD=function(d){d=N4(d);return typeof d==="string"&&d==="false"?!1:!!d};
  1689. g.xA=function(d,q){d=N4(d);return d===void 0&&q!==void 0?q:Number(d||0)};
  1690. yB=function(){return g.Cs("EXPERIMENTS_TOKEN","")};
  1691. N4=function(d){return g.Cs("EXPERIMENT_FLAGS",{})[d]};
  1692. hd=function(){for(var d=[],q=g.Cs("EXPERIMENTS_FORCED_FLAGS",{}),T=g.E(Object.keys(q)),Y=T.next();!Y.done;Y=T.next())Y=Y.value,d.push({key:Y,value:String(q[Y])});T=g.Cs("EXPERIMENT_FLAGS",{});Y=g.E(Object.keys(T));for(var e=Y.next();!e.done;e=Y.next())e=e.value,e.startsWith("force_")&&q[e]===void 0&&d.push({key:e,value:String(T[e])});return d};
  1693. HL=function(d,q,T,Y,e,U,b,J){function F(){(N&&"readyState"in N?N.readyState:0)===4&&q&&g.iF(q)(N)}
  1694. T=T===void 0?"GET":T;Y=Y===void 0?"":Y;J=J===void 0?!1:J;var N=Yqf();if(!N)return null;"onloadend"in N?N.addEventListener("loadend",F,!1):N.onreadystatechange=F;g.RD("debug_forward_web_query_parameters")&&(d=eJ1(d));N.open(T,d,!0);U&&(N.responseType=U);b&&(N.withCredentials=!0);T=T==="POST"&&(window.FormData===void 0||!(Y instanceof FormData));if(e=U0g(d,e))for(var R in e)N.setRequestHeader(R,e[R]),"content-type"===R.toLowerCase()&&(T=!1);T&&N.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
  1695. if(J&&"setAttributionReporting"in XMLHttpRequest.prototype){d={eventSourceEligible:!0,triggerEligible:!1};try{N.setAttributionReporting(d)}catch(x){IE(x)}}N.send(Y);return N};
  1696. U0g=function(d,q){q=q===void 0?{}:q;var T=q4(d),Y=g.Cs("INNERTUBE_CLIENT_NAME"),e=g.RD("web_ajax_ignore_global_headers_if_set"),U;for(U in biD){var b=g.Cs(biD[U]),J=U==="X-Goog-AuthUser"||U==="X-Goog-PageId";U!=="X-Goog-Visitor-Id"||b||(b=g.Cs("VISITOR_DATA"));var F;if(!(F=!b)){if(!(F=T||(g.sb(d)?!1:!0))){F=d;var N;if(N=g.RD("add_auth_headers_to_remarketing_google_dot_com_ping")&&U==="Authorization"&&(Y==="TVHTML5"||Y==="TVHTML5_UNPLUGGED"||Y==="TVHTML5_SIMPLY")&&V4H(F))F=$f(F)||"",F=F.split("/"),
  1697. F="/"+(F.length>1?F[1]:""),N=F==="/pagead";F=N?!0:!1}F=!F}F||e&&q[U]!==void 0||Y==="TVHTML5_UNPLUGGED"&&J||(q[U]=b)}"X-Goog-EOM-Visitor-Id"in q&&"X-Goog-Visitor-Id"in q&&delete q["X-Goog-Visitor-Id"];if(T||!g.sb(d))q["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(T||!g.sb(d)){try{var R=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(x){}R&&(q["X-YouTube-Time-Zone"]=R)}document.location.hostname.endsWith("youtubeeducation.com")||!T&&g.sb(d)||(q["X-YouTube-Ad-Signals"]=
  1698. SW(bb()));return q};
  1699. M4=function(d,q){q.method="POST";q.postParams||(q.postParams={});return g.QB(d,q)};
  1700. s26=function(d,q){if(window.fetch&&q.format!=="XML"){var T={method:q.method||"GET",credentials:"same-origin"};q.headers&&(T.headers=q.headers);q.priority&&(T.priority=q.priority);d=XJY(d,q);var Y=Jf7(d,q);Y&&(T.body=Y);q.withCredentials&&(T.credentials="include");var e=q.context||g.oQ,U=!1,b;fetch(d,T).then(function(J){if(!U){U=!0;b&&g.g7(b);var F=J.ok,N=function(R){R=R||{};F?q.onSuccess&&q.onSuccess.call(e,R,J):q.onError&&q.onError.call(e,R,J);q.onFinish&&q.onFinish.call(e,R,J)};
  1701. (q.format||"JSON")==="JSON"&&(F||J.status>=400&&J.status<500)?J.json().then(N,function(){N(null)}):N(null)}}).catch(function(){q.onError&&q.onError.call(e,{},{})});
  1702. d=q.timeout||0;q.onFetchTimeout&&d>0&&(b=g.s3(function(){U||(U=!0,g.g7(b),q.onFetchTimeout.call(q.context||g.oQ))},d))}else g.QB(d,q)};
  1703. g.QB=function(d,q){var T=q.format||"JSON";d=XJY(d,q);var Y=Jf7(d,q),e=!1,U=$07(d,function(F){if(!e){e=!0;J&&g.g7(J);var N=g.Jd(F),R=null,x=400<=F.status&&F.status<500,y=500<=F.status&&F.status<600;if(N||x||y)R=gHN(d,T,F,q.convertToSafeHtml);N&&(N=F61(T,F,R));R=R||{};x=q.context||g.oQ;N?q.onSuccess&&q.onSuccess.call(x,F,R):q.onError&&q.onError.call(x,F,R);q.onFinish&&q.onFinish.call(x,F,R)}},q.method,Y,q.headers,q.responseType,q.withCredentials);
  1704. Y=q.timeout||0;if(q.onTimeout&&Y>0){var b=q.onTimeout;var J=g.s3(function(){e||(e=!0,U.abort(),g.g7(J),b.call(q.context||g.oQ,U))},Y)}return U};
  1705. XJY=function(d,q){q.includeDomain&&(d=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+d);var T=g.Cs("XSRF_FIELD_NAME");if(q=q.urlParams)q[T]&&delete q[T],d=VH(d,q);return d};
  1706. Jf7=function(d,q){var T=g.Cs("XSRF_FIELD_NAME"),Y=g.Cs("XSRF_TOKEN"),e=q.postBody||"",U=q.postParams,b=g.Cs("XSRF_FIELD_NAME"),J;q.headers&&(J=q.headers["Content-Type"]);q.excludeXsrf||g.sb(d)&&!q.withCredentials&&g.sb(d)!==document.location.hostname||q.method!=="POST"||J&&J!=="application/x-www-form-urlencoded"||q.postParams&&q.postParams[b]||(U||(U={}),U[T]=Y);(g.RD("ajax_parse_query_data_only_when_filled")&&U&&Object.keys(U).length>0||U)&&typeof e==="string"&&(e=lF(e),g.hz(e,U),e=q.postBodyFormat&&
  1707. q.postBodyFormat==="JSON"?JSON.stringify(e):g.xf(e));U=e||U&&!g.FV(U);!Ne2&&U&&q.method!=="POST"&&(Ne2=!0,g.z2(Error("AJAX request with postData should use POST")));return e};
  1708. gHN=function(d,q,T,Y){var e=null;switch(q){case "JSON":try{var U=T.responseText}catch(b){throw Y=Error("Error reading responseText"),Y.params=d,IE(Y),b;}d=T.getResponseHeader("Content-Type")||"";U&&d.indexOf("json")>=0&&(U.substring(0,5)===")]}'\n"&&(U=U.substring(5)),e=JSON.parse(U));break;case "XML":if(d=(d=T.responseXML)?RJQ(d):null)e={},g.Sj(d.getElementsByTagName("*"),function(b){e[b.tagName]=x0Q(b)})}Y&&yfN(e);
  1709. return e};
  1710. yfN=function(d){if(g.UI(d))for(var q in d)q==="html_content"||DHN(q,"_html")?d[q]=Fk(d[q]):yfN(d[q])};
  1711. F61=function(d,q,T){if(q&&q.status===204)return!0;switch(d){case "JSON":return!!T;case "XML":return Number(T&&T.return_code)===0;case "RAW":return!0;default:return!!T}};
  1712. RJQ=function(d){return d?(d=("responseXML"in d?d.responseXML:d).getElementsByTagName("root"))&&d.length>0?d[0]:null:null};
  1713. x0Q=function(d){var q="";g.Sj(d.childNodes,function(T){q+=T.nodeValue});
  1714. return q};
  1715. eJ1=function(d){var q=window.location.search,T=g.sb(d);g.RD("debug_handle_relative_url_for_query_forward_killswitch")||!T&&q4(d)&&(T=document.location.hostname);var Y=$f(d);Y=(T=T&&(T.endsWith("youtube.com")||T.endsWith("youtube-nocookie.com")))&&Y&&Y.startsWith("/api/");if(!T||Y)return d;var e=lF(q),U={};g.Sj(hJN,function(b){e[b]&&(U[b]=e[b])});
  1716. return d7(d,U)};
  1717. E3=function(d,q){var T=g.x9(q),Y;return(new g.pK(function(e,U){T.onSuccess=function(b){g.Jd(b)?e(new Hi6(b)):U(new cL("Request failed, status="+Xq(b),"net.badstatus",b))};
  1718. T.onError=function(b){U(new cL("Unknown request error","net.unknown",b))};
  1719. T.onTimeout=function(b){U(new cL("Request timed out","net.timeout",b))};
  1720. Y=g.QB(d,T)})).C8(function(e){if(e instanceof Bd){var U;
  1721. (U=Y)==null||U.abort()}return nK(e)})};
  1722. g.je=function(d,q,T,Y,e,U){function b(F,N,R){return F.C8(function(x){if(N<=0||Xq(x.xhr)===403)return nK(new cL("Request retried too many times","net.retryexhausted",x.xhr,x));var y=Math.pow(2,T-N+1)*R,h=e>0?Math.min(e,y):y;return J(R).then(function(){U&&U(x,N-1);return b(E3(d,q),N-1,h)})})}
  1723. function J(F){return new g.pK(function(N){setTimeout(N,F)})}
  1724. e=e===void 0?-1:e;return b(E3(d,q),T-1,Y)};
  1725. cL=function(d,q,T){xc.call(this,d+", errorCode="+q);this.errorCode=q;this.xhr=T;this.name="PromiseAjaxError"};
  1726. Hi6=function(d){this.xhr=d};
  1727. aD=function(d){this.G=d===void 0?null:d;this.j=0;this.U=null};
  1728. Ad=function(d){var q=new aD;d=d===void 0?null:d;q.j=2;q.U=d===void 0?null:d;return q};
  1729. pZ=function(d){var q=new aD;d=d===void 0?null:d;q.j=1;q.U=d===void 0?null:d;return q};
  1730. g.nZ=function(d,q,T,Y,e){Zq||O3.set(""+d,q,{s2:T,path:"/",domain:Y===void 0?"youtube.com":Y,secure:e===void 0?!1:e})};
  1731. g.r7=function(d,q){if(!Zq)return O3.get(""+d,q)};
  1732. g.td=function(d,q,T){Zq||O3.remove(""+d,q===void 0?"/":q,T===void 0?"youtube.com":T)};
  1733. Q2Y=function(){if(g.RD("embeds_web_enable_cookie_detection_fix")){if(!g.oQ.navigator.cookieEnabled)return!1}else if(!O3.isEnabled())return!1;if(!O3.isEmpty())return!0;g.RD("embeds_web_enable_cookie_detection_fix")?O3.set("TESTCOOKIESENABLED","1",{s2:60,Jew:"none",secure:!0}):O3.set("TESTCOOKIESENABLED","1",{s2:60});if(O3.get("TESTCOOKIESENABLED")!=="1")return!1;O3.remove("TESTCOOKIESENABLED");return!0};
  1734. g.D=function(d,q){if(d)return d[q.name]};
  1735. BL=function(d){var q=g.Cs("INNERTUBE_HOST_OVERRIDE");q&&(d=String(q)+String(gQ(d)));return d};
  1736. M_6=function(d){var q={};g.RD("json_condensed_response")&&(q.prettyPrint="false");return d=d7(d,q)};
  1737. KZ=function(d,q){var T=T===void 0?{}:T;d={method:q===void 0?"POST":q,mode:q4(d)?"same-origin":"cors",credentials:q4(d)?"same-origin":"include"};q={};for(var Y=g.E(Object.keys(T)),e=Y.next();!e.done;e=Y.next())e=e.value,T[e]&&(q[e]=T[e]);Object.keys(q).length>0&&(d.headers=q);return d};
  1738. Gt=function(){var d=/Chrome\/(\d+)/.exec(g.k9());return d?parseFloat(d[1]):NaN};
  1739. LZ=function(){var d=/\sCobalt\/(\S+)\s/.exec(g.k9());if(!d)return NaN;var q=[];d=g.E(d[1].split("."));for(var T=d.next();!T.done;T=d.next())T=parseInt(T.value,10),T>=0&&q.push(T);return parseFloat(q.join("."))};
  1740. PL=function(){return g.kA("android")&&g.kA("chrome")&&!(g.kA("trident/")||g.kA("edge/"))&&!g.kA("cobalt")};
  1741. cfQ=function(){return g.kA("armv7")||g.kA("aarch64")||g.kA("android")};
  1742. g.WL=function(){return g.kA("cobalt")};
  1743. CZ=function(){return g.kA("cobalt")&&g.kA("appletv")};
  1744. ub=function(){return g.kA("(ps3; leanback shell)")||g.kA("ps3")&&g.WL()};
  1745. EH1=function(){return g.kA("(ps4; leanback shell)")||g.kA("ps4")&&g.WL()};
  1746. g.j2g=function(){return g.WL()&&(g.kA("ps4 vr")||g.kA("ps4 pro vr"))};
  1747. Dq=function(){var d=/WebKit\/([0-9]+)/.exec(g.k9());return!!(d&&parseInt(d[1],10)>=600)};
  1748. w7=function(){var d=/WebKit\/([0-9]+)/.exec(g.k9());return!!(d&&parseInt(d[1],10)>=602)};
  1749. a_f=function(){return g.kA("iemobile")||g.kA("windows phone")&&g.kA("edge")};
  1750. ib=function(){return(fZ||zt)&&g.kA("applewebkit")&&!g.kA("version")&&(!g.kA("safari")||g.kA("gsa/"))};
  1751. m9=function(){return g.ID&&g.kA("version/")};
  1752. Se=function(){return g.kA("smart-tv")&&g.kA("samsung")};
  1753. g.kA=function(d){var q=g.k9();return q?q.toLowerCase().indexOf(d)>=0:!1};
  1754. lb=function(){return XK2()||ib()||m9()?!0:g.Cs("EOM_VISITOR_DATA")?!1:!0};
  1755. vL=function(d,q){return q===void 0||q===null?d:q==="1"||q===!0||q===1||q==="True"?!0:!1};
  1756. oD=function(d,q,T){for(var Y in T)if(T[Y]==q)return T[Y];return d};
  1757. VB=function(d,q){return q===void 0||q===null?d:Number(q)};
  1758. d8=function(d,q){return q===void 0||q===null?d:q.toString()};
  1759. qs=function(d,q){if(q){if(d==="fullwidth")return Infinity;if(d==="fullheight")return 0}return d&&(q=d.match(Afj))&&(d=Number(q[2]),q=Number(q[1]),!isNaN(d)&&!isNaN(q)&&d>0)?q/d:NaN};
  1760. Ty=function(d){var q=d.docid||d.video_id||d.videoId||d.id;if(q)return q;q=d.raw_player_response;q||(d=d.player_response)&&(q=JSON.parse(d));return q&&q.videoDetails&&q.videoDetails.videoId||null};
  1761. pJ7=function(d){return YO(d,!1)==="EMBEDDED_PLAYER_MODE_PFL"};
  1762. g.eX=function(d){return d==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||d==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1};
  1763. YO=function(d,q){q=(q===void 0?0:q)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(q="EMBEDDED_PLAYER_MODE_PFL");var T=d.raw_embedded_player_response;if(!T&&(d=d.embedded_player_response))try{T=JSON.parse(d)}catch(Y){return q}return T?oD(q,T.embeddedPlayerMode,Zi_):q};
  1764. b5=function(d){xc.call(this,d.message||d.description||d.name);this.isMissing=d instanceof Ud;this.isTimeout=d instanceof cL&&d.errorCode=="net.timeout";this.isCanceled=d instanceof Bd};
  1765. Ud=function(){xc.call(this,"Biscotti ID is missing from server")};
  1766. Oi_=function(){if(g.RD("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!lb())return Error("User has not consented - not fetching biscotti id.");var d=g.Cs("PLAYER_VARS",{});if(g.N$(d,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(pJ7(d))return Error("Biscotti id fetching has been disabled for pfl.")};
  1767. Bej=function(){var d=Oi_();if(d!==void 0)return nK(d);XH||(XH=E3("//googleads.g.doubleclick.net/pagead/id",nH_).then(rf_).C8(function(q){return t_1(2,q)}));
  1768. return XH};
  1769. rf_=function(d){d=d.xhr.responseText;if(!ON(d,")]}'"))throw new Ud;d=JSON.parse(d.substr(4));if((d.type||1)>1)throw new Ud;d=d.id;iKD(d);XH=pZ(d);K61(18E5,2);return d};
  1770. t_1=function(d,q){q=new b5(q);iKD("");XH=Ad(q);d>0&&K61(12E4,d-1);throw q;};
  1771. K61=function(d,q){g.s3(function(){E3("//googleads.g.doubleclick.net/pagead/id",nH_).then(rf_,function(T){return t_1(q,T)}).C8(g.r_)},d)};
  1772. GAj=function(){try{var d=g.qx("yt.ads.biscotti.getId_");return d?d():Bej()}catch(q){return nK(q)}};
  1773. kAI=function(d){d&&(d.dataset?d.dataset[L6n()]="true":YIX(d))};
  1774. PjD=function(d){return d?d.dataset?d.dataset[L6n()]:d.getAttribute("data-loaded"):null};
  1775. L6n=function(){return W6N.loaded||(W6N.loaded="loaded".replace(/\-([a-z])/g,function(d,q){return q.toUpperCase()}))};
  1776. Cj2=function(){var d=document;if("visibilityState"in d)return d.visibilityState;var q=JB+"VisibilityState";if(q in d)return d[q]};
  1777. sd=function(d,q){var T;D7(d,function(Y){T=q[Y];return!!T});
  1778. return T};
  1779. $O=function(d){if(d.requestFullscreen)d=d.requestFullscreen(void 0);else if(d.webkitRequestFullscreen)d=d.webkitRequestFullscreen();else if(d.mozRequestFullScreen)d=d.mozRequestFullScreen();else if(d.msRequestFullscreen)d=d.msRequestFullscreen();else if(d.webkitEnterFullscreen)d=d.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return d instanceof Promise?d:Promise.resolve()};
  1780. Ns=function(d){var q;g.g8()?FH()==d&&(q=document):q=d;return q&&(d=sd(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],q))?(q=d.call(q),q instanceof Promise?q:Promise.resolve()):Promise.resolve()};
  1781. uTY=function(d){return g.QN(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(q){return"on"+q.toLowerCase()in d})};
  1782. D0I=function(){var d=document;return g.QN(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(q){return"on"+q.toLowerCase()in d})};
  1783. g.g8=function(){return!!sd(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
  1784. FH=function(d){d=d===void 0?!1:d;var q=sd(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(d)for(;q&&q.shadowRoot;)q=q.shadowRoot.fullscreenElement;return q?q:null};
  1785. RY=function(d){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(d=d||window.event){this.event=d;for(var q in d)q in wJ_||(this[q]=d[q]);this.scale=d.scale;this.rotation=d.rotation;var T=d.target||d.srcElement;T&&T.nodeType==3&&(T=T.parentNode);this.target=T;var Y=d.relatedTarget;
  1786. if(Y)try{Y=Y.nodeName?Y:null}catch(e){Y=null}else this.type=="mouseover"?Y=d.fromElement:this.type=="mouseout"&&(Y=d.toElement);this.relatedTarget=Y;this.clientX=d.clientX!=void 0?d.clientX:d.pageX;this.clientY=d.clientY!=void 0?d.clientY:d.pageY;this.keyCode=d.keyCode?d.keyCode:d.which;this.charCode=d.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=d.altKey;this.ctrlKey=d.ctrlKey;this.shiftKey=d.shiftKey;this.metaKey=d.metaKey;this.G=d.pageX;this.U=d.pageY}}catch(e){}};
  1787. f__=function(d){if(document.body&&document.documentElement){var q=document.body.scrollTop+document.documentElement.scrollTop;d.G=d.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);d.U=d.clientY+q}};
  1788. zJ7=function(d,q,T,Y){Y=Y===void 0?{}:Y;d.addEventListener&&(q!="mouseenter"||"onmouseenter"in document?q!="mouseleave"||"onmouseenter"in document?q=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(q="MozMousePixelScroll"):q="mouseout":q="mouseover");return gb(xO,function(e){var U=typeof e[4]==="boolean"&&e[4]==!!Y,b=g.UI(e[4])&&g.UI(Y)&&g.RT(e[4],Y);return!!e.length&&e[0]==d&&e[1]==q&&e[2]==T&&(U||b)})};
  1789. g.yi=function(d,q,T,Y){Y=Y===void 0?{}:Y;if(!d||!d.addEventListener&&!d.attachEvent)return"";var e=zJ7(d,q,T,Y);if(e)return e;e=++ii_.count+"";var U=!(q!="mouseenter"&&q!="mouseleave"||!d.addEventListener||"onmouseenter"in document);var b=U?function(J){J=new RY(J);if(!MQ(J.relatedTarget,function(F){return F==d},!0))return J.currentTarget=d,J.type=q,T.call(d,J)}:function(J){J=new RY(J);
  1790. J.currentTarget=d;return T.call(d,J)};
  1791. b=g.iF(b);d.addEventListener?(q=="mouseenter"&&U?q="mouseover":q=="mouseleave"&&U?q="mouseout":q=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(q="MozMousePixelScroll"),I_6()||typeof Y==="boolean"?d.addEventListener(q,b,Y):d.addEventListener(q,b,!!Y.capture)):d.attachEvent("on"+q,b);xO[e]=[d,q,T,b,Y];return e};
  1792. Sqn=function(d){return m0n(d,function(q){return g.V5(q,"ytp-ad-has-logging-urls")})};
  1793. m0n=function(d,q){var T=document.body||document;return g.yi(T,"click",function(Y){var e=MQ(Y.target,function(U){return U===T||q(U)},!0);
  1794. e&&e!==T&&!e.disabled&&(Y.currentTarget=e,d.call(e,Y))})};
  1795. g.hB=function(d){d&&(typeof d=="string"&&(d=[d]),g.Sj(d,function(q){if(q in xO){var T=xO[q],Y=T[0],e=T[1],U=T[3];T=T[4];Y.removeEventListener?I_6()||typeof T==="boolean"?Y.removeEventListener(e,U,T):Y.removeEventListener(e,U,!!T.capture):Y.detachEvent&&Y.detachEvent("on"+e,U);delete xO[q]}}))};
  1796. Hu=function(d){for(var q in xO)xO[q][0]==d&&g.hB(q)};
  1797. Qi=function(d){d=d||window.event;var q;d.composedPath&&typeof d.composedPath==="function"?q=d.composedPath():q=d.path;q&&q.length?d=q[0]:(d=d||window.event,d=d.target||d.srcElement,d.nodeType==3&&(d=d.parentNode));return d};
  1798. Ms=function(d){this.L=d;this.G=null;this.T=0;this.X=null;this.S=0;this.U=[];for(d=0;d<4;d++)this.U.push(0);this.j=0;this.UD=g.yi(window,"mousemove",(0,g.sI)(this.K,this));this.B=g.$A((0,g.sI)(this.lr,this),25)};
  1799. cu=function(d){g.W.call(this);this.L=[];this.Qp=d||this};
  1800. Ed=function(d,q,T,Y){for(var e=0;e<T.length;e++)d.W(q,T[e],Y)};
  1801. g.jX=function(d,q){for(;d.L.length;){var T=d.L.pop(),Y=void 0;q&&l_g()&&(Y={passive:!0});T.target.removeEventListener(T.name,T.callback,Y)}};
  1802. g.pW=function(d,q,T){var Y=T&&T>0?T:0;T=Y?Date.now()+Y*1E3:0;if((Y=Y?(0,g.aY)():AB())&&window.JSON){typeof q!=="string"&&(q=JSON.stringify(q,void 0));try{Y.set(d,q,T)}catch(e){Y.remove(d)}}};
  1803. g.Zs=function(d){var q=AB(),T=(0,g.aY)();if(!q&&!T||!window.JSON)return null;try{var Y=q.get(d)}catch(e){}if(typeof Y!=="string")try{Y=T.get(d)}catch(e){}if(typeof Y!=="string")return null;try{Y=JSON.parse(Y,void 0)}catch(e){}return Y};
  1804. vH7=function(){var d=(0,g.aY)();if(d&&(d=d.U("yt-player-quality")))return d.creation};
  1805. g.Od=function(d){try{var q=AB(),T=(0,g.aY)();q&&q.remove(d);T&&T.remove(d)}catch(Y){}};
  1806. g.nW=function(){return g.Zs("yt-remote-session-screen-id")};
  1807. oHg=function(d){var q=this;this.U=void 0;this.G=!1;d.addEventListener("beforeinstallprompt",function(T){T.preventDefault();q.U=T});
  1808. d.addEventListener("appinstalled",function(){q.G=!0},{once:!0})};
  1809. r8=function(){if(!g.oQ.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.oQ.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.oQ.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.oQ.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.oQ.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(d){return"WEB_DISPLAY_MODE_UNKNOWN"}};
  1810. tB=function(){this.zn=!0};
  1811. V_2=function(){tB.instance||(tB.instance=new tB);return tB.instance};
  1812. dK7=function(d){switch(d){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}};
  1813. qCI=function(){this.G=g.Cs("ALT_PREF_COOKIE_NAME","PREF");this.U=g.Cs("ALT_PREF_COOKIE_DOMAIN","youtube.com");var d=g.r7(this.G);d&&this.parse(d)};
  1814. g.KW=function(){Bu||(Bu=new qCI);return Bu};
  1815. g.Gy=function(d,q){return!!((TW2("f"+(Math.floor(q/31)+1))||0)&1<<q%31)};
  1816. kO=function(d,q){var T="f"+(Math.floor(d/31)+1);d=1<<d%31;var Y=TW2(T)||0;Y=q?Y|d:Y&~d;Y===0?delete LW[T]:(q=Y.toString(16),LW[T]=q.toString())};
  1817. Pu=function(d){if(/^f([1-9][0-9]*)$/.test(d))throw Error("ExpectedRegexMatch: "+d);};
  1818. Wu=function(d){if(!/^\w+$/.test(d))throw Error("ExpectedRegexMismatch: "+d);};
  1819. TW2=function(d){d=LW[d]!==void 0?LW[d].toString():null;return d!=null&&/^[A-Fa-f0-9]+$/.test(d)?parseInt(d,16):null};
  1820. YC6=function(){var d=g.oQ.navigator;return d?d.connection:void 0};
  1821. UK_=function(){var d=YC6();if(d){var q=eNN[d.type||"unknown"]||"CONN_UNKNOWN";d=eNN[d.effectiveType||"unknown"]||"CONN_UNKNOWN";q==="CONN_CELLULAR_UNKNOWN"&&d!=="CONN_UNKNOWN"&&(q=d);if(q!=="CONN_UNKNOWN")return q;if(d!=="CONN_UNKNOWN")return d}};
  1822. Xhj=function(){var d=YC6();if(d!=null&&d.effectiveType)return b92.hasOwnProperty(d.effectiveType)?b92[d.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
  1823. g.CW=function(d){var q=g.CN.apply(1,arguments);var T=Error.call(this,d);this.message=T.message;"stack"in T&&(this.stack=T.stack);this.args=[].concat(g.RQ(q));Object.setPrototypeOf(this,this.constructor.prototype)};
  1824. g.Ds=function(){try{return g.u5(),!0}catch(d){return!1}};
  1825. g.u5=function(d){if(g.Cs("DATASYNC_ID")!==void 0)return g.Cs("DATASYNC_ID");throw new g.CW("Datasync ID not set",d===void 0?"unknown":d);};
  1826. w8=function(){this.G=new WeakMap};
  1827. g.zy=function(d,q,T){return fW(q,0,T)};
  1828. J_2=function(d){var q=g.qx("yt.scheduler.instance.addImmediateJob");q?q(d):d()};
  1829. i5=function(){w8.apply(this,arguments)};
  1830. g.IY=function(){i5.instance||(i5.instance=new i5);return i5.instance};
  1831. g.m2=function(){return!!g.qx("yt.scheduler.instance")};
  1832. fW=function(d,q,T){T!==void 0&&Number.isNaN(Number(T))&&(T=void 0);var Y=g.qx("yt.scheduler.instance.addJob");return Y?Y(d,q,T):T===void 0?(d(),NaN):g.s3(d,T||0)};
  1833. SX=function(d){var q=g.qx("yt.scheduler.instance.setPriorityThreshold");q&&q(d)};
  1834. l5=function(d){this.G=(d=g.r9(d))?new jp(d):null;this.U=document.domain||window.location.hostname};
  1835. oY=function(){var d;return(d=vu())==null?void 0:d.get("LAST_RESULT_ENTRY_KEY",!0)};
  1836. s1I=function(){var d={};for(Vi=new dO(d.handleError===void 0?qw:d.handleError,d.logEvent===void 0?g.Ta:d.logEvent);Y7.length>0;)switch(d=Y7.shift(),d.type){case "ERROR":Vi.EP(d.payload);break;case "EVENT":Vi.logEvent(d.eventType,d.payload)}};
  1837. U2=function(d){eF||(Vi?Vi.EP(d):(Y7.push({type:"ERROR",payload:d}),Y7.length>10&&Y7.shift()))};
  1838. bR=function(d,q){eF||(Vi?Vi.logEvent(d,q):(Y7.push({type:"EVENT",eventType:d,payload:q}),Y7.length>10&&Y7.shift()))};
  1839. X8=function(d){if(d.indexOf(":")>=0)throw Error("Database name cannot contain ':'");};
  1840. Jr=function(d){return d.substr(0,d.indexOf(":"))||d};
  1841. g.s2=function(d,q,T,Y,e){q=q===void 0?{}:q;T=T===void 0?$K2[d]:T;Y=Y===void 0?gM_[d]:Y;e=e===void 0?FEg[d]:e;g.CW.call(this,T,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:d},q));this.type=d;this.message=T;this.level=Y;this.G=e;Object.setPrototypeOf(this,g.s2.prototype)};
  1842. $7=function(d,q){g.s2.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:q,foundObjectStores:d},$K2.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,$7.prototype)};
  1843. gO=function(d,q){var T=Error.call(this);this.message=T.message;"stack"in T&&(this.stack=T.stack);this.index=d;this.objectStore=q;Object.setPrototypeOf(this,gO.prototype)};
  1844. Nw=function(d,q,T,Y){q=Jr(q);var e=d instanceof Error?d:Error("Unexpected error: "+d);if(e instanceof g.s2)return e;d={objectStoreNames:T,dbName:q,dbVersion:Y};if(e.name==="QuotaExceededError")return new g.s2("QUOTA_EXCEEDED",d);if(g.F8&&e.name==="UnknownError")return new g.s2("QUOTA_MAYBE_EXCEEDED",d);if(e instanceof gO)return new g.s2("MISSING_INDEX",Object.assign({},d,{objectStore:e.objectStore,index:e.index}));if(e.name==="InvalidStateError"&&NW1.some(function(U){return e.message.includes(U)}))return new g.s2("EXECUTE_TRANSACTION_ON_CLOSED_DB",
  1845. d);
  1846. if(e.name==="AbortError")return new g.s2("UNKNOWN_ABORT",d,e.message);e.args=[Object.assign({},d,{name:"IdbError",V3:e.name})];e.level="WARNING";return e};
  1847. g.RJ=function(d,q,T){var Y=oY();return new g.s2("IDB_NOT_SUPPORTED",{context:{caller:d,publicName:q,version:T,hasSucceededOnce:Y==null?void 0:Y.hasSucceededOnce}})};
  1848. RN7=function(d){if(!d)throw Error();throw d;};
  1849. xKX=function(d){return d};
  1850. x7=function(d){this.G=d};
  1851. g.hr=function(d){function q(e){if(Y.state.status==="PENDING"){Y.state={status:"REJECTED",reason:e};e=g.E(Y.U);for(var U=e.next();!U.done;U=e.next())U=U.value,U()}}
  1852. function T(e){if(Y.state.status==="PENDING"){Y.state={status:"FULFILLED",value:e};e=g.E(Y.G);for(var U=e.next();!U.done;U=e.next())U=U.value,U()}}
  1853. var Y=this;this.state={status:"PENDING"};this.G=[];this.U=[];d=d.G;try{d(T,q)}catch(e){q(e)}};
  1854. y_I=function(d,q,T,Y,e){try{if(d.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var U=T(d.state.value);U instanceof g.hr?Hj(d,q,U,Y,e):Y(U)}catch(b){e(b)}};
  1855. hNN=function(d,q,T,Y,e){try{if(d.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var U=T(d.state.reason);U instanceof g.hr?Hj(d,q,U,Y,e):Y(U)}catch(b){e(b)}};
  1856. Hj=function(d,q,T,Y,e){q===T?e(new TypeError("Circular promise chain detected.")):T.then(function(U){U instanceof g.hr?Hj(d,q,U,Y,e):Y(U)},function(U){e(U)})};
  1857. H9Q=function(d,q,T){function Y(){T(d.error);U()}
  1858. function e(){q(d.result);U()}
  1859. function U(){try{d.removeEventListener("success",e),d.removeEventListener("error",Y)}catch(b){}}
  1860. d.addEventListener("success",e);d.addEventListener("error",Y)};
  1861. Q16=function(d){return new Promise(function(q,T){H9Q(d,q,T)})};
  1862. Qt=function(d){return new g.hr(new x7(function(q,T){H9Q(d,q,T)}))};
  1863. Mw=function(d,q){return new g.hr(new x7(function(T,Y){function e(){var U=d?q(d):null;U?U.then(function(b){d=b;e()},Y):T()}
  1864. e()}))};
  1865. MAn=function(d,q){this.request=d;this.cursor=q};
  1866. c_g=function(d){return Qt(d).then(function(q){return q?new MAn(d,q):null})};
  1867. g.EMn=function(d){d.cursor.continue(void 0);return c_g(d.request)};
  1868. j1Y=function(d,q){this.G=d;this.options=q;this.transactionCount=0;this.j=Math.round((0,g.cj)());this.U=!1};
  1869. g.jF=function(d,q,T){d=d.G.createObjectStore(q,T);return new E2(d)};
  1870. aJ=function(d,q){d.G.objectStoreNames.contains(q)&&d.G.deleteObjectStore(q)};
  1871. g.ZP=function(d,q,T){return g.Ar(d,[q],{mode:"readwrite",sM:!0},function(Y){return g.p7(Y.objectStore(q),T)})};
  1872. g.Ar=function(d,q,T,Y){var e,U,b,J,F,N,R,x,y,h,H,a;return g.G(function(p){switch(p.U){case 1:var t={mode:"readonly",sM:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof T==="string"?t.mode=T:Object.assign(t,T);e=t;d.transactionCount++;U=e.sM?3:1;b=0;case 2:if(J){p.tF(4);break}b++;F=Math.round((0,g.cj)());g.jD(p,5);N=d.G.transaction(q,e.mode);t=new O2(N);t=a66(t,Y);return g.B(p,t,7);case 7:return R=p.G,x=Math.round((0,g.cj)()),A_I(d,F,x,b,void 0,q.join(),e),p.return(R);case 5:y=g.nN(p);h=Math.round((0,g.cj)());
  1873. H=Nw(y,d.G.name,q.join(),d.G.version);if((a=H instanceof g.s2&&!H.G)||b>=U)A_I(d,F,h,b,H,q.join(),e),J=H;p.tF(2);break;case 4:return p.return(Promise.reject(J))}})};
  1874. A_I=function(d,q,T,Y,e,U,b){q=T-q;e?(e instanceof g.s2&&(e.type==="QUOTA_EXCEEDED"||e.type==="QUOTA_MAYBE_EXCEEDED")&&bR("QUOTA_EXCEEDED",{dbName:Jr(d.G.name),objectStoreNames:U,transactionCount:d.transactionCount,transactionMode:b.mode}),e instanceof g.s2&&e.type==="UNKNOWN_ABORT"&&(T-=d.j,T<0&&T>=2147483648&&(T=0),bR("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:U,transactionDuration:q,transactionCount:d.transactionCount,dbDuration:T}),d.U=!0),phN(d,!1,Y,U,q,b.tag),U2(e)):phN(d,!0,Y,U,q,
  1875. b.tag)};
  1876. phN=function(d,q,T,Y,e,U){bR("TRANSACTION_ENDED",{objectStoreNames:Y,connectionHasUnknownAbortedTransaction:d.U,duration:e,isSuccessful:q,tryCount:T,tag:U===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":U})};
  1877. E2=function(d){this.G=d};
  1878. g.n7=function(d,q,T){d.G.createIndex(q,T,{unique:!1})};
  1879. Z9j=function(d,q){return g.rO(d,{query:q},function(T){return T.delete().then(function(){return g.tr(T)})}).then(function(){})};
  1880. O9f=function(d,q,T){var Y=[];return g.rO(d,{query:q},function(e){if(!(T!==void 0&&Y.length>=T))return Y.push(e.getValue()),g.tr(e)}).then(function(){return Y})};
  1881. r_f=function(d){return"getAllKeys"in IDBObjectStore.prototype?Qt(d.G.getAllKeys(void 0,void 0)):nM6(d)};
  1882. nM6=function(d){var q=[];return g.tAQ(d,{query:void 0},function(T){q.push(T.cursor.primaryKey);return g.EMn(T)}).then(function(){return q})};
  1883. g.p7=function(d,q,T){return Qt(d.G.put(q,T))};
  1884. g.rO=function(d,q,T){d=d.G.openCursor(q.query,q.direction);return Bj(d).then(function(Y){return Mw(Y,T)})};
  1885. g.tAQ=function(d,q,T){var Y=q.query;q=q.direction;d="openKeyCursor"in IDBObjectStore.prototype?d.G.openKeyCursor(Y,q):d.G.openCursor(Y,q);return c_g(d).then(function(e){return Mw(e,T)})};
  1886. O2=function(d){var q=this;this.G=d;this.j=new Map;this.U=!1;this.done=new Promise(function(T,Y){q.G.addEventListener("complete",function(){T()});
  1887. q.G.addEventListener("error",function(e){e.currentTarget===e.target&&Y(q.G.error)});
  1888. q.G.addEventListener("abort",function(){var e=q.G.error;if(e)Y(e);else if(!q.U){e=g.s2;for(var U=q.G.objectStoreNames,b=[],J=0;J<U.length;J++){var F=U.item(J);if(F===null)throw Error("Invariant: item in DOMStringList is null");b.push(F)}e=new e("UNKNOWN_ABORT",{objectStoreNames:b.join(),dbName:q.G.db.name,mode:q.G.mode});Y(e)}})})};
  1889. a66=function(d,q){var T=new Promise(function(Y,e){try{q(d).then(function(U){Y(U)}).catch(e)}catch(U){e(U),d.abort()}});
  1890. return Promise.all([T,d.done]).then(function(Y){return g.E(Y).next().value})};
  1891. BWf=function(d){this.G=d};
  1892. KE1=function(d,q,T){var Y=[];return g.K7(d,{query:q},function(e){if(!(T!==void 0&&Y.length>=T))return Y.push(e.getValue()),g.tr(e)}).then(function(){return Y})};
  1893. g.K7=function(d,q,T){d=d.G.openCursor(q.query===void 0?null:q.query,q.direction===void 0?"next":q.direction);return Bj(d).then(function(Y){return Mw(Y,T)})};
  1894. Ga=function(d,q){this.request=d;this.cursor=q};
  1895. Bj=function(d){return Qt(d).then(function(q){return q?new Ga(d,q):null})};
  1896. g.tr=function(d){d.cursor.continue(void 0);return Bj(d.request)};
  1897. GhH=function(d,q,T){return new Promise(function(Y,e){function U(){y||(y=new j1Y(b.result,{closed:x}));return y}
  1898. var b=q!==void 0?self.indexedDB.open(d,q):self.indexedDB.open(d);var J=T.blocked,F=T.blocking,N=T.bjO,R=T.upgrade,x=T.closed,y;b.addEventListener("upgradeneeded",function(h){try{if(h.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(b.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");h.dataLoss&&h.dataLoss!=="none"&&bR("IDB_DATA_CORRUPTED",{reason:h.dataLossMessage||"unknown reason",dbName:Jr(d)});var H=U(),a=new O2(b.transaction);
  1899. R&&R(H,function(p){return h.oldVersion<p&&h.newVersion>=p},a);
  1900. a.done.catch(function(p){e(p)})}catch(p){e(p)}});
  1901. b.addEventListener("success",function(){var h=b.result;F&&h.addEventListener("versionchange",function(){F(U())});
  1902. h.addEventListener("close",function(){bR("IDB_UNEXPECTEDLY_CLOSED",{dbName:Jr(d),dbVersion:h.version});N&&N()});
  1903. Y(U())});
  1904. b.addEventListener("error",function(){e(b.error)});
  1905. J&&b.addEventListener("blocked",function(){J()})})};
  1906. LEI=function(d,q,T){T=T===void 0?{}:T;return GhH(d,q,T)};
  1907. L7=function(d,q){q=q===void 0?{}:q;var T,Y,e,U;return g.G(function(b){if(b.U==1)return g.jD(b,2),T=self.indexedDB.deleteDatabase(d),Y=q,(e=Y.blocked)&&T.addEventListener("blocked",function(){e()}),g.B(b,Q16(T),4);
  1908. if(b.U!=2)return g.ZX(b,0);U=g.nN(b);throw Nw(U,d,"",-1);})};
  1909. k7=function(d,q){this.name=d;this.options=q;this.j=!0;this.S=this.T=0};
  1910. khj=function(d,q){return new g.s2("INCOMPATIBLE_DB_VERSION",{dbName:d.name,oldVersion:d.options.version,newVersion:q})};
  1911. g.Pj=function(d,q){if(!q)throw g.RJ("openWithToken",Jr(d.name));return d.open()};
  1912. PcI=function(d,q){var T;return g.G(function(Y){if(Y.U==1)return g.B(Y,g.Pj(Wj,q),2);T=Y.G;return Y.return(g.Ar(T,["databases"],{sM:!0,mode:"readwrite"},function(e){var U=e.objectStore("databases");return U.get(d.actualName).then(function(b){if(b?d.actualName!==b.actualName||d.publicName!==b.publicName||d.userIdentifier!==b.userIdentifier:1)return g.p7(U,d).then(function(){})})}))})};
  1913. C7=function(d,q){var T;return g.G(function(Y){if(Y.U==1)return d?g.B(Y,g.Pj(Wj,q),2):Y.return();T=Y.G;return Y.return(T.delete("databases",d))})};
  1914. WEH=function(d,q){var T,Y;return g.G(function(e){return e.U==1?(T=[],g.B(e,g.Pj(Wj,q),2)):e.U!=3?(Y=e.G,g.B(e,g.Ar(Y,["databases"],{sM:!0,mode:"readonly"},function(U){T.length=0;return g.rO(U.objectStore("databases"),{},function(b){d(b.getValue())&&T.push(b.getValue());return g.tr(b)})}),3)):e.return(T)})};
  1915. Cc1=function(d,q){return WEH(function(T){return T.publicName===d&&T.userIdentifier!==void 0},q)};
  1916. uO2=function(){var d,q,T,Y;return g.G(function(e){switch(e.U){case 1:d=oY();if((q=d)==null?0:q.hasSucceededOnce)return e.return(!0);if(uR&&Dq()&&!w7()||g.DP)return e.return(!1);try{if(T=self,!(T.indexedDB&&T.IDBIndex&&T.IDBKeyRange&&T.IDBObjectStore))return e.return(!1)}catch(U){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1);g.jD(e,2);Y={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
  1917. return g.B(e,PcI(Y,wO),4);case 4:return g.B(e,C7("yt-idb-test-do-not-use",wO),5);case 5:return e.return(!0);case 2:return g.nN(e),e.return(!1)}})};
  1918. DKf=function(){if(f7!==void 0)return f7;eF=!0;return f7=uO2().then(function(d){eF=!1;var q;if((q=vu())!=null&&q.G){var T;q={hasSucceededOnce:((T=oY())==null?void 0:T.hasSucceededOnce)||d};var Y;(Y=vu())==null||Y.set("LAST_RESULT_ENTRY_KEY",q,2592E3,!0)}return d})};
  1919. za=function(){return g.qx("ytglobal.idbToken_")||void 0};
  1920. g.iR=function(){var d=za();return d?Promise.resolve(d):DKf().then(function(q){(q=q?wO:void 0)&&g.Vf("ytglobal.idbToken_",q);return q})};
  1921. whD=function(d){if(!g.Ds())throw d=new g.s2("AUTH_INVALID",{dbName:d}),U2(d),d;var q=g.u5();return{actualName:d+":"+q,publicName:d,userIdentifier:q}};
  1922. f61=function(d,q,T,Y){var e,U,b,J,F,N;return g.G(function(R){switch(R.U){case 1:return U=(e=Error().stack)!=null?e:"",g.B(R,g.iR(),2);case 2:b=R.G;if(!b)throw J=g.RJ("openDbImpl",d,q),g.RD("ytidb_async_stack_killswitch")||(J.stack=J.stack+"\n"+U.substring(U.indexOf("\n")+1)),U2(J),J;X8(d);F=T?{actualName:d,publicName:d,userIdentifier:void 0}:whD(d);g.jD(R,3);return g.B(R,PcI(F,b),5);case 5:return g.B(R,LEI(F.actualName,q,Y),6);case 6:return R.return(R.G);case 3:return N=g.nN(R),g.jD(R,7),g.B(R,C7(F.actualName,
  1923. b),9);case 9:g.ZX(R,8);break;case 7:g.nN(R);case 8:throw N;}})};
  1924. zN7=function(d,q,T){T=T===void 0?{}:T;return f61(d,q,!1,T)};
  1925. i9_=function(d,q,T){T=T===void 0?{}:T;return f61(d,q,!0,T)};
  1926. I6g=function(d,q){q=q===void 0?{}:q;var T,Y;return g.G(function(e){if(e.U==1)return g.B(e,g.iR(),2);if(e.U!=3){T=e.G;if(!T)return e.return();X8(d);Y=whD(d);return g.B(e,L7(Y.actualName,q),3)}return g.B(e,C7(Y.actualName,T),0)})};
  1927. mKn=function(d,q,T){d=d.map(function(Y){return g.G(function(e){return e.U==1?g.B(e,L7(Y.actualName,q),2):g.B(e,C7(Y.actualName,T),0)})});
  1928. return Promise.all(d).then(function(){})};
  1929. SCD=function(d){var q=q===void 0?{}:q;var T,Y;return g.G(function(e){if(e.U==1)return g.B(e,g.iR(),2);if(e.U!=3){T=e.G;if(!T)return e.return();X8(d);return g.B(e,Cc1(d,T),3)}Y=e.G;return g.B(e,mKn(Y,q,T),0)})};
  1930. l6Q=function(d,q){q=q===void 0?{}:q;var T;return g.G(function(Y){if(Y.U==1)return g.B(Y,g.iR(),2);if(Y.U!=3){T=Y.G;if(!T)return Y.return();X8(d);return g.B(Y,L7(d,q),3)}return g.B(Y,C7(d,T),0)})};
  1931. IJ=function(d,q){k7.call(this,d,q);this.options=q;X8(d)};
  1932. vMj=function(d,q){var T;return function(){T||(T=new IJ(d,q));return T}};
  1933. g.mY=function(d,q){return vMj(d,q)};
  1934. SF=function(d){return g.Pj(oM1(),d)};
  1935. VAj=function(d,q,T,Y){var e,U,b;return g.G(function(J){switch(J.U){case 1:return e={config:d,hashData:q,timestamp:Y!==void 0?Y:(0,g.cj)()},g.B(J,SF(T),2);case 2:return U=J.G,g.B(J,U.clear("hotConfigStore"),3);case 3:return g.B(J,g.ZP(U,"hotConfigStore",e),4);case 4:return b=J.G,J.return(b)}})};
  1936. dg6=function(d,q,T,Y,e){var U,b,J;return g.G(function(F){switch(F.U){case 1:return U={config:d,hashData:q,configData:T,timestamp:e!==void 0?e:(0,g.cj)()},g.B(F,SF(Y),2);case 2:return b=F.G,g.B(F,b.clear("coldConfigStore"),3);case 3:return g.B(F,g.ZP(b,"coldConfigStore",U),4);case 4:return J=F.G,F.return(J)}})};
  1937. qAN=function(d){var q,T;return g.G(function(Y){return Y.U==1?g.B(Y,SF(d),2):Y.U!=3?(q=Y.G,T=void 0,g.B(Y,g.Ar(q,["coldConfigStore"],{mode:"readwrite",sM:!0},function(e){return g.K7(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(U){T=U.getValue()})}),3)):Y.return(T)})};
  1938. T96=function(d){var q,T;return g.G(function(Y){return Y.U==1?g.B(Y,SF(d),2):Y.U!=3?(q=Y.G,T=void 0,g.B(Y,g.Ar(q,["hotConfigStore"],{mode:"readwrite",sM:!0},function(e){return g.K7(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(U){T=U.getValue()})}),3)):Y.return(T)})};
  1939. YAX=function(){return g.G(function(d){return g.B(d,SCD("ytGcfConfig"),0)})};
  1940. lR=function(){g.W.call(this);this.U=[];this.G=[];var d=g.qx("yt.gcf.config.hotUpdateCallbacks");d?(this.U=[].concat(g.RQ(d)),this.G=d):(this.G=[],g.Vf("yt.gcf.config.hotUpdateCallbacks",this.G))};
  1941. TN=function(){var d=this;this.S=!1;this.j=this.T=0;this.X=new lR;this.fC={D2v:function(){d.S=!0},
  1942. LLx:function(){return d.G},
  1943. KNf:function(q){vj(d,q)},
  1944. Lw:function(q){d.Lw(q)},
  1945. Zw2:function(q){oJ(d,q)},
  1946. Wd:function(){return d.coldHashData},
  1947. Ki:function(){return d.hotHashData},
  1948. w$2:function(){return d.U},
  1949. Bak:function(){return Vt()},
  1950. Otk:function(){return dM()},
  1951. Ztv:function(){return g.qx("yt.gcf.config.coldHashData")},
  1952. cWv:function(){return g.qx("yt.gcf.config.hotHashData")},
  1953. rvw:function(){e6H(d)},
  1954. LNU:function(){d.Lw(void 0);qz(d);delete TN.instance},
  1955. C82:function(q){d.j=q},
  1956. AWw:function(){return d.j}}};
  1957. Ug2=function(){if(!TN.instance){var d=new TN;TN.instance=d}return TN.instance};
  1958. Jx7=function(d){var q;g.G(function(T){if(T.U==1)return g.RD("start_client_gcf")||g.RD("delete_gcf_config_db")?g.RD("start_client_gcf")?g.B(T,g.iR(),3):T.tF(2):T.return();T.U!=2&&((q=T.G)&&g.Ds()&&!g.RD("delete_gcf_config_db")?(d.S=!0,e6H(d)):(bvf(d),X7j(d)));return g.RD("delete_gcf_config_db")?g.B(T,YAX(),0):T.tF(0)})};
  1959. YL=function(){var d;return(d=dM())!=null?d:g.Cs("RAW_HOT_CONFIG_GROUP")};
  1960. sM2=function(d){var q,T,Y,e,U,b;return g.G(function(J){switch(J.U){case 1:if(d.U)return J.return(dM());if(!d.S)return q=g.RJ("getHotConfig IDB not initialized"),IE(q),J.return(Promise.reject(q));T=za();Y=g.Cs("TIME_CREATED_MS");if(!T){e=g.RJ("getHotConfig token error");IE(e);J.tF(2);break}return g.B(J,T96(T),3);case 3:if((U=J.G)&&U.timestamp>Y)return vj(d,U.config),d.Lw(U.hashData),J.return(dM());case 2:X7j(d);if(!(T&&d.U&&d.hotHashData)){J.tF(4);break}return g.B(J,VAj(d.U,d.hotHashData,T,Y),4);case 4:return d.U?
  1961. J.return(dM()):(b=new g.CW("Config not available in ytConfig"),IE(b),J.return(Promise.reject(b)))}})};
  1962. gGI=function(d){var q,T,Y,e,U,b;return g.G(function(J){switch(J.U){case 1:if(d.G)return J.return(Vt());if(!d.S)return q=g.RJ("getColdConfig IDB not initialized"),IE(q),J.return(Promise.reject(q));T=za();Y=g.Cs("TIME_CREATED_MS");if(!T){e=g.RJ("getColdConfig");IE(e);J.tF(2);break}return g.B(J,qAN(T),3);case 3:if((U=J.G)&&U.timestamp>Y)return oJ(d,U.config),$gQ(d,U.configData),qz(d,U.hashData),J.return(Vt());case 2:bvf(d);if(!(T&&d.G&&d.coldHashData&&d.configData)){J.tF(4);break}return g.B(J,dg6(d.G,
  1963. d.coldHashData,d.configData,T,Y),4);case 4:return d.G?J.return(Vt()):(b=new g.CW("Config not available in ytConfig"),IE(b),J.return(Promise.reject(b)))}})};
  1964. e6H=function(d){if(!d.U||!d.G){if(!za()){var q=g.RJ("scheduleGetConfigs");IE(q)}d.T||(d.T=g.Gh.DE(function(){return g.G(function(T){switch(T.U){case 1:return g.jD(T,2),g.B(T,sM2(d),4);case 4:g.ZX(T,3);break;case 2:g.nN(T);case 3:return g.jD(T,5),g.B(T,gGI(d),7);case 7:g.ZX(T,6);break;case 5:g.nN(T);case 6:d.T&&(d.T=0),g.E6(T)}})},100))}};
  1965. F$_=function(d,q,T){var Y,e,U;return g.G(function(b){switch(b.U){case 1:if(!g.RD("start_client_gcf")){b.tF(0);break}T&&vj(d,T);d.Lw(q);Y=za();if(!Y){b.tF(3);break}if(T){b.tF(4);break}return g.B(b,T96(Y),5);case 5:e=b.G,T=(U=e)==null?void 0:U.config;case 4:return g.B(b,VAj(T,q,Y),3);case 3:if(T)for(var J=T,F=g.E(d.X.G),N=F.next();!N.done;N=F.next())N=N.value,N(J);g.E6(b)}})};
  1966. N9Q=function(d,q,T){var Y,e,U,b;return g.G(function(J){if(J.U==1){if(!g.RD("start_client_gcf"))return J.tF(0);qz(d,q);return(Y=za())?T?J.tF(4):g.B(J,qAN(Y),5):J.tF(0)}J.U!=4&&(e=J.G,T=(U=e)==null?void 0:U.config);if(!T)return J.tF(0);b=T.configData;return g.B(J,dg6(T,q,b,Y),0)})};
  1967. R6_=function(){var d=Ug2(),q=(0,g.cj)()-d.j;if(!(d.j!==0&&q<g.xA("send_config_hash_timer"))){q=g.qx("yt.gcf.config.coldConfigData");var T=g.qx("yt.gcf.config.hotHashData"),Y=g.qx("yt.gcf.config.coldHashData");q&&T&&Y&&(d.j=(0,g.cj)());return{coldConfigData:q,hotHashData:T,coldHashData:Y}}};
  1968. bvf=function(d){oJ(d,g.Cs("RAW_COLD_CONFIG_GROUP"));qz(d,g.Cs("SERIALIZED_COLD_HASH_DATA"));var q;$gQ(d,(q=d.G)==null?void 0:q.configData)};
  1969. X7j=function(d){vj(d,g.Cs("RAW_HOT_CONFIG_GROUP"));d.Lw(g.Cs("SERIALIZED_HOT_HASH_DATA"))};
  1970. vj=function(d,q){d.U=q;g.Vf("yt.gcf.config.hotConfigGroup",d.U||null)};
  1971. oJ=function(d,q){d.G=q;g.Vf("yt.gcf.config.coldConfigGroup",d.G||null)};
  1972. qz=function(d,q){d.coldHashData=q;g.Vf("yt.gcf.config.coldHashData",d.coldHashData||null)};
  1973. $gQ=function(d,q){d.configData=q;g.Vf("yt.gcf.config.coldConfigData",d.configData||null)};
  1974. dM=function(){return g.qx("yt.gcf.config.hotConfigGroup")};
  1975. Vt=function(){return g.qx("yt.gcf.config.coldConfigGroup")};
  1976. xgg=function(){return"INNERTUBE_API_KEY"in Pq&&"INNERTUBE_API_VERSION"in Pq};
  1977. g.Ug=function(){return{innertubeApiKey:g.Cs("INNERTUBE_API_KEY"),innertubeApiVersion:g.Cs("INNERTUBE_API_VERSION"),RR:g.Cs("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),Bt:g.Cs("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),Y$:g.Cs("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.Cs("INNERTUBE_CONTEXT_CLIENT_VERSION"),Os:g.Cs("INNERTUBE_CONTEXT_HL"),ZH:g.Cs("INNERTUBE_CONTEXT_GL"),hU:g.Cs("INNERTUBE_HOST_OVERRIDE")||"",bQ:!!g.Cs("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),Q$:!!g.Cs("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
  1978. !1),appInstallData:g.Cs("SERIALIZED_CLIENT_CONFIG_DATA")}};
  1979. g.bI=function(d){var q={client:{hl:d.Os,gl:d.ZH,clientName:d.Bt,clientVersion:d.innertubeContextClientVersion,configInfo:d.RR}};navigator.userAgent&&(q.client.userAgent=String(navigator.userAgent));var T=g.oQ.devicePixelRatio;T&&T!=1&&(q.client.screenDensityFloat=String(T));T=yB();T!==""&&(q.client.experimentsToken=T);T=hd();T.length>0&&(q.request={internalExperimentFlags:T});yx1(d,void 0,q);h6_(void 0,q);HvX(void 0,q);QMD(d,void 0,q);MpQ(void 0,q);g.RD("start_client_gcf")&&cxn(void 0,q);g.Cs("DELEGATED_SESSION_ID")&&
  1980. !g.RD("pageid_as_header_web")&&(q.user={onBehalfOfUser:g.Cs("DELEGATED_SESSION_ID")});!g.RD("fill_delegate_context_in_gel_killswitch")&&(d=g.Cs("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(q.user=Object.assign({},q.user,{serializedDelegationContext:d}));d=g.Cs("INNERTUBE_CONTEXT");var Y;if(g.RD("enable_persistent_device_token")&&(d==null?0:(Y=d.client)==null?0:Y.rolloutToken)){var e;q.client.rolloutToken=d==null?void 0:(e=d.client)==null?void 0:e.rolloutToken}Y=Object;e=Y.assign;d=q.client;
  1981. T={};for(var U=g.E(Object.entries(lF(g.Cs("DEVICE","")))),b=U.next();!b.done;b=U.next()){var J=g.E(b.value);b=J.next().value;J=J.next().value;b==="cbrand"?T.deviceMake=J:b==="cmodel"?T.deviceModel=J:b==="cbr"?T.browserName=J:b==="cbrver"?T.browserVersion=J:b==="cos"?T.osName=J:b==="cosver"?T.osVersion=J:b==="cplatform"&&(T.platform=J)}q.client=e.call(Y,d,T);return q};
  1982. yx1=function(d,q,T){d=d.Bt;if(d==="WEB"||d==="MWEB"||d===1||d===2)if(q){T=hI(q,Es,96)||new Es;var Y=r8();Y=Object.keys(EGQ).indexOf(Y);Y=Y===-1?null:Y;Y!==null&&L2(T,3,Y);Qw(q,Es,96,T)}else T&&(T.client.mainAppWebInfo=(Y=T.client.mainAppWebInfo)!=null?Y:{},T.client.mainAppWebInfo.webDisplayMode=r8())};
  1983. h6_=function(d,q){var T=g.qx("yt.embedded_player.embed_url");T&&(d?(q=hI(d,ZA,7)||new ZA,K2(q,4,T),Qw(d,ZA,7,q)):q&&(q.thirdParty={embedUrl:T}))};
  1984. HvX=function(d,q){var T;if(g.RD("web_log_memory_total_kbytes")&&((T=g.oQ.navigator)==null?0:T.deviceMemory)){var Y;T=(Y=g.oQ.navigator)==null?void 0:Y.deviceMemory;d?VX(d,95,cE(T*1E6)):q&&(q.client.memoryTotalKbytes=""+T*1E6)}};
  1985. QMD=function(d,q,T){if(d.appInstallData)if(q){var Y;T=(Y=hI(q,cq,62))!=null?Y:new cq;K2(T,6,d.appInstallData);Qw(q,cq,62,T)}else T&&(T.client.configInfo=T.client.configInfo||{},T.client.configInfo.appInstallData=d.appInstallData)};
  1986. MpQ=function(d,q){var T=UK_();T&&(d?L2(d,61,jM1[T]):q&&(q.client.connectionType=T));g.RD("web_log_effective_connection_type")&&(T=Xhj())&&(d?L2(d,94,ag2[T]):q&&(q.client.effectiveConnectionType=T))};
  1987. AxD=function(d,q,T){T=T===void 0?{}:T;var Y={};g.Cs("EOM_VISITOR_DATA")?Y={"X-Goog-EOM-Visitor-Id":g.Cs("EOM_VISITOR_DATA")}:Y={"X-Goog-Visitor-Id":T.visitorData||g.Cs("VISITOR_DATA","")};if(q&&q.includes("www.youtube-nocookie.com"))return Y;q=T.qy||g.Cs("AUTHORIZATION");q||(d?q="Bearer "+g.qx("gapi.auth.getToken")().access_token:(d=V_2().Tf(X7),g.RD("pageid_as_header_web")||delete d["X-Goog-PageId"],Y=Object.assign({},Y,d)));q&&(Y.Authorization=q);return Y};
  1988. cxn=function(d,q){var T=R6_();if(T){var Y=T.coldConfigData,e=T.coldHashData;T=T.hotHashData;if(d){var U;q=(U=hI(d,cq,62))!=null?U:new cq;Y=K2(q,1,Y);K2(Y,3,e).Lw(T);Qw(d,cq,62,q)}else q&&(q.client.configInfo=q.client.configInfo||{},Y&&(q.client.configInfo.coldConfigData=Y),e&&(q.client.configInfo.coldHashData=e),T&&(q.client.configInfo.hotHashData=T))}};
  1989. JL=function(d,q){this.version=d;this.args=q};
  1990. sg=function(d,q){this.topic=d;this.G=q};
  1991. gM=function(d,q){var T=$L();T&&T.publish.call(T,d.toString(),d,q)};
  1992. Ovf=function(d){var q=p72,T=$L();if(!T)return 0;var Y=T.subscribe(q.toString(),function(e,U){var b=g.qx("ytPubsub2Pubsub2SkipSubKey");b&&b==Y||(b=function(){if(F7[Y])try{if(U&&q instanceof sg&&q!=e)try{var J=q.G,F=U;if(!F.args||!F.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!J.QA){var N=new J;J.QA=N.version}var R=J.QA}catch(x){}if(!R||F.version!=R)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{U=Reflect.construct(J,
  1993. g.rL(F.args))}catch(x){throw x.message="yt.pubsub2.Data.deserialize(): "+x.message,x;}}catch(x){throw x.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+q.toString()+": "+x.message,x;}d.call(window,U)}catch(x){g.z2(x)}},Zv1[q.toString()]?g.m2()?g.Gh.DE(b):g.s3(b,0):b())});
  1994. F7[Y]=!0;Nz[q.toString()]||(Nz[q.toString()]=[]);Nz[q.toString()].push(Y);return Y};
  1995. tp7=function(){var d=nGj,q=Ovf(function(T){d.apply(void 0,arguments);rx2(q)});
  1996. return q};
  1997. rx2=function(d){var q=$L();q&&(typeof d==="number"&&(d=[d]),g.Sj(d,function(T){q.unsubscribeByKey(T);delete F7[T]}))};
  1998. $L=function(){return g.qx("ytPubsub2Pubsub2Instance")};
  1999. RR=function(d,q,T){T=T===void 0?{sampleRate:.1}:T;Math.random()<Math.min(.02,T.sampleRate/100)&&gM("meta_logging_csi_event",{timerName:d,zsw:q})};
  2000. B97=function(){xL||(xL=Hq(g.Cs("WORKER_SERIALIZATION_URL")));return xL||void 0};
  2001. hL=function(){var d=B97();yd||d===void 0||(yd=new Worker(qX(d),void 0));return yd};
  2002. K$f=function(){return typeof Worker==="function"&&B97()?!0:!1};
  2003. L$2=function(){if(K$f()&&!HW){var d=function(T){T=T.data;if(T.op==="gzippedGelBatch"){var Y=Qd.get(T.key);Y&&(GRQ(T.gzippedBatch,Y.latencyPayload,Y.url,Y.options,Y.sendFn),Qd.delete(T.key))}},q=hL();
  2004. q&&(q.addEventListener("message",d),q.onerror=function(){Qd.clear()},HW=!0)}};
  2005. Eg=function(d,q,T,Y,e){e=e===void 0?!1:e;var U={startTime:(0,g.cj)(),ticks:{},infos:{}};if(Mz)try{var b=kRj(q);if(b!=null&&(b>PMf||b<W$f))Y(d,T);else{if(g.RD("gzip_gel_with_worker")&&(g.RD("initial_gzip_use_main_thread")&&!CM_||!g.RD("initial_gzip_use_main_thread"))){HW||L$2();var J=hL();if(J&&!e){Qd.set(cW,{latencyPayload:U,url:d,options:T,sendFn:Y});J.postMessage({op:"gelBatchToGzip",serializedBatch:q,key:cW});cW++;return}}var F=OKN(urf(q));GRQ(F,U,d,T,Y)}}catch(N){IE(N),Y(d,T)}else Y(d,T)};
  2006. GRQ=function(d,q,T,Y,e){CM_=!1;var U=(0,g.cj)();q.ticks.gelc=U;jT++;g.RD("disable_compression_due_to_performance_degredation")&&U-q.startTime>=DgQ&&(aR++,g.RD("abandon_compression_after_N_slow_zips")?jT===g.xA("compression_disable_point")&&aR>w7I&&(Mz=!1):Mz=!1);fgg(q);Y.headers||(Y.headers={});Y.headers["Content-Encoding"]="gzip";Y.postBody=d;Y.postParams=void 0;e(T,Y)};
  2007. z66=function(d){var q=q===void 0?!1:q;var T=T===void 0?!1:T;var Y=(0,g.cj)(),e={startTime:Y,ticks:{},infos:{}},U=q?g.qx("yt.logging.gzipForFetch",!1):!0;if(Mz&&U){if(!d.body)return d;try{var b=T?d.body:typeof d.body==="string"?d.body:JSON.stringify(d.body);U=b;if(!T&&typeof b==="string"){var J=kRj(b);if(J!=null&&(J>PMf||J<W$f))return d;T=q?{level:1}:void 0;U=OKN(urf(b),T);var F=(0,g.cj)();e.ticks.gelc=F;if(q){jT++;if((g.RD("disable_compression_due_to_performance_degredation")||g.RD("disable_compression_due_to_performance_degradation_lr"))&&
  2008. F-Y>=DgQ)if(aR++,g.RD("abandon_compression_after_N_slow_zips")||g.RD("abandon_compression_after_N_slow_zips_lr")){q=aR/jT;var N=w7I/g.xA("compression_disable_point");jT>0&&jT%g.xA("compression_disable_point")===0&&q>=N&&(Mz=!1)}else Mz=!1;fgg(e)}}d.headers=Object.assign({},{"Content-Encoding":"gzip"},d.headers||{});d.body=U;return d}catch(R){return IE(R),d}}else return d};
  2009. kRj=function(d){try{return(new Blob(d.split(""))).size}catch(q){return IE(q),null}};
  2010. fgg=function(d){g.RD("gel_compression_csi_killswitch")||!g.RD("log_gel_compression_latency")&&!g.RD("log_gel_compression_latency_lr")||RR("gel_compression",d,{sampleRate:.1})};
  2011. p4=function(d){var q=this;this.DP=this.G=!1;this.potentialEsfErrorCounter=this.U=0;this.handleError=function(){};
  2012. this.fM=function(){};
  2013. this.now=Date.now;this.WC=!1;this.fC={cdr:function(R){q.gA=R},
  2014. ILk:function(){q.A4()},
  2015. yb:function(){q.pu()},
  2016. A9:function(R){return g.G(function(x){return g.B(x,q.A9(R),0)})},
  2017. eL:function(R,x){return q.eL(R,x)},
  2018. FA:function(){q.FA()}};
  2019. var T;this.hZ=(T=d.hZ)!=null?T:100;var Y;this.s8=(Y=d.s8)!=null?Y:1;var e;this.iM=(e=d.iM)!=null?e:2592E6;var U;this.Pw=(U=d.Pw)!=null?U:12E4;var b;this.aO=(b=d.aO)!=null?b:5E3;var J;this.gA=(J=d.gA)!=null?J:void 0;this.I8=!!d.I8;var F;this.kY=(F=d.kY)!=null?F:.1;var N;this.MZ=(N=d.MZ)!=null?N:10;d.handleError&&(this.handleError=d.handleError);d.fM&&(this.fM=d.fM);d.WC&&(this.WC=d.WC);d.DP&&(this.DP=d.DP);this.Wv=d.Wv;this.PO=d.PO;this.Fn=d.Fn;this.hk=d.hk;this.sendFn=d.sendFn;this.EL=d.EL;this.gC=
  2020. d.gC;AL(this)&&(!this.Wv||this.Wv("networkless_logging"))&&ivX(this)};
  2021. ivX=function(d){AL(d)&&!d.WC&&(d.G=!0,d.I8&&Math.random()<=d.kY&&d.Fn.pQ(d.gA),d.FA(),d.hk.YL()&&d.A4(),d.hk.listen(d.EL,d.A4.bind(d)),d.hk.listen(d.gC,d.pu.bind(d)))};
  2022. SAX=function(d,q){if(!AL(d))throw Error("IndexedDB is not supported: updateRequestHandlers");var T=q.options.onError?q.options.onError:function(){};
  2023. q.options.onError=function(e,U){var b,J,F,N;return g.G(function(R){switch(R.U){case 1:b=IgX(U);(J=mg1(U))&&d.Wv&&d.Wv("web_enable_error_204")&&d.handleError(Error("Request failed due to compression"),q.url,U);if(!(d.Wv&&d.Wv("nwl_consider_error_code")&&b||d.Wv&&!d.Wv("nwl_consider_error_code")&&d.potentialEsfErrorCounter<=d.MZ)){R.tF(2);break}if(!d.hk.Zd){R.tF(3);break}return g.B(R,d.hk.Zd(),3);case 3:if(d.hk.YL()){R.tF(2);break}T(e,U);if(!d.Wv||!d.Wv("nwl_consider_error_code")||((F=q)==null?void 0:
  2024. F.id)===void 0){R.tF(6);break}return g.B(R,d.Fn.p_(q.id,d.gA,!1),6);case 6:return R.return();case 2:if(d.Wv&&d.Wv("nwl_consider_error_code")&&!b&&d.potentialEsfErrorCounter>d.MZ)return R.return();d.potentialEsfErrorCounter++;if(((N=q)==null?void 0:N.id)===void 0){R.tF(8);break}return q.sendCount<d.s8?g.B(R,d.Fn.p_(q.id,d.gA,!0,J?!1:void 0),12):g.B(R,d.Fn.uZ(q.id,d.gA),8);case 12:d.PO.DE(function(){d.hk.YL()&&d.A4()},d.aO);
  2025. case 8:T(e,U),g.E6(R)}})};
  2026. var Y=q.options.onSuccess?q.options.onSuccess:function(){};
  2027. q.options.onSuccess=function(e,U){var b;return g.G(function(J){if(J.U==1)return((b=q)==null?void 0:b.id)===void 0?J.tF(2):g.B(J,d.Fn.uZ(q.id,d.gA),2);d.hk.m8&&d.Wv&&d.Wv("vss_network_hint")&&d.hk.m8(!0);Y(e,U);g.E6(J)})};
  2028. return q};
  2029. Zd=function(d,q){d.bD&&!d.hk.YL()?d.bD(q):d.handleError(q)};
  2030. AL=function(d){return!!d.gA||d.DP};
  2031. IgX=function(d){var q;return(d=d==null?void 0:(q=d.error)==null?void 0:q.code)&&d>=400&&d<=599?!1:!0};
  2032. mg1=function(d){var q;d=d==null?void 0:(q=d.error)==null?void 0:q.code;return!(d!==400&&d!==415)};
  2033. lg7=function(){if(Og)return Og();var d={};Og=g.mY("LogsDatabaseV2",{pw:(d.LogsRequestsStore={JC:2},d),shared:!1,upgrade:function(q,T,Y){T(2)&&g.jF(q,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});T(3);T(5)&&(Y=Y.objectStore("LogsRequestsStore"),Y.G.indexNames.contains("newRequest")&&Y.G.deleteIndex("newRequest"),g.n7(Y,"newRequestV2",["status","interface","timestamp"]));T(7)&&aJ(q,"sapisid");T(9)&&aJ(q,"SWHealthLog")},
  2034. version:9});return Og()};
  2035. n4=function(d){return g.Pj(lg7(),d)};
  2036. oG6=function(d,q){var T,Y,e,U;return g.G(function(b){if(b.U==1)return T={startTime:(0,g.cj)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.B(b,n4(q),2);if(b.U!=3)return Y=b.G,e=Object.assign({},d,{options:JSON.parse(JSON.stringify(d.options)),interface:g.Cs("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.B(b,g.ZP(Y,"LogsRequestsStore",e),3);U=b.G;T.ticks.tc=(0,g.cj)();vGD(T);return b.return(U)})};
  2037. VpQ=function(d,q){var T,Y,e,U,b,J,F,N;return g.G(function(R){if(R.U==1)return T={startTime:(0,g.cj)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.B(R,n4(q),2);if(R.U!=3)return Y=R.G,e=g.Cs("INNERTUBE_CONTEXT_CLIENT_NAME",0),U=[d,e,0],b=[d,e,(0,g.cj)()],J=IDBKeyRange.bound(U,b),F="prev",g.RD("use_fifo_for_networkless")&&(F="next"),N=void 0,g.B(R,g.Ar(Y,["LogsRequestsStore"],{mode:"readwrite",sM:!0},function(x){return g.K7(x.objectStore("LogsRequestsStore").index("newRequestV2"),
  2038. {query:J,direction:F},function(y){y.getValue()&&(N=y.getValue(),d==="NEW"&&(N.status="QUEUED",y.update(N)))})}),3);
  2039. T.ticks.tc=(0,g.cj)();vGD(T);return R.return(N)})};
  2040. dvH=function(d,q){var T;return g.G(function(Y){if(Y.U==1)return g.B(Y,n4(q),2);T=Y.G;return Y.return(g.Ar(T,["LogsRequestsStore"],{mode:"readwrite",sM:!0},function(e){var U=e.objectStore("LogsRequestsStore");return U.get(d).then(function(b){if(b)return b.status="QUEUED",g.p7(U,b).then(function(){return b})})}))})};
  2041. qsD=function(d,q,T,Y){T=T===void 0?!0:T;var e;return g.G(function(U){if(U.U==1)return g.B(U,n4(q),2);e=U.G;return U.return(g.Ar(e,["LogsRequestsStore"],{mode:"readwrite",sM:!0},function(b){var J=b.objectStore("LogsRequestsStore");return J.get(d).then(function(F){return F?(F.status="NEW",T&&(F.sendCount+=1),Y!==void 0&&(F.options.compress=Y),g.p7(J,F).then(function(){return F})):g.hr.resolve(void 0)})}))})};
  2042. TwH=function(d,q){var T;return g.G(function(Y){if(Y.U==1)return g.B(Y,n4(q),2);T=Y.G;return Y.return(T.delete("LogsRequestsStore",d))})};
  2043. Ysn=function(d){var q,T;return g.G(function(Y){if(Y.U==1)return g.B(Y,n4(d),2);q=Y.G;T=(0,g.cj)()-2592E6;return g.B(Y,g.Ar(q,["LogsRequestsStore"],{mode:"readwrite",sM:!0},function(e){return g.rO(e.objectStore("LogsRequestsStore"),{},function(U){if(U.getValue().timestamp<=T)return U.delete().then(function(){return g.tr(U)})})}),0)})};
  2044. eYH=function(){g.G(function(d){return g.B(d,SCD("LogsDatabaseV2"),0)})};
  2045. vGD=function(d){g.RD("nwl_csi_killswitch")||RR("networkless_performance",d,{sampleRate:1})};
  2046. bsN=function(d){return g.Pj(Uv2(),d)};
  2047. Xq2=function(d){var q,T;g.G(function(Y){if(Y.U==1)return g.B(Y,bsN(d),2);q=Y.G;T=(0,g.cj)()-2592E6;return g.B(Y,g.Ar(q,["SWHealthLog"],{mode:"readwrite",sM:!0},function(e){return g.rO(e.objectStore("SWHealthLog"),{},function(U){if(U.getValue().timestamp<=T)return U.delete().then(function(){return g.tr(U)})})}),0)})};
  2048. J1g=function(d){var q;return g.G(function(T){if(T.U==1)return g.B(T,bsN(d),2);q=T.G;return g.B(T,q.clear("SWHealthLog"),0)})};
  2049. g.rM=function(d,q,T,Y,e,U,b){e=e===void 0?"":e;U=U===void 0?!1:U;b=b===void 0?!1:b;if(d)if(T&&!g.WL())IE(new g.CW("Legacy referrer-scrubbed ping detected")),d&&sEg(d,void 0,{scrubReferrer:!0});else if(e)HL(d,q,"POST",e,Y);else if(g.Cs("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||Y||b)HL(d,q,"GET","",Y,void 0,U,b);else{b:{try{c:{var J=new Zgn({url:d});if(J.G.dsh==="1")var F=null;else{var N=J.G.ae;if(N==="1"){var R=J.G.adurl;if(R)try{F={version:3,B8:decodeURIComponent(R),wX:IL(J.U,"act=1","ri=1",Og2(J))};
  2050. break c}catch(h){}}F=N==="2"?{version:4,B8:IL(J.U,"dct=1","suid="+J.j,""),wX:IL(J.U,"act=1","ri=1","suid="+J.j)}:null}}if(F){var x=$f(d);var y=!(!x||!x.endsWith("/aclk")||cK(d,"ri")!=="1");break b}}catch(h){}y=!1}y?$vX(d)?(q&&q(),T=!0):T=!1:T=!1;T||sEg(d,q)}};
  2051. $vX=function(d,q){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(d,q===void 0?"":q))return!0}catch(T){}return!1};
  2052. sEg=function(d,q,T){T=T===void 0?{}:T;var Y=new Image,e=""+g51++;tL[e]=Y;Y.onload=Y.onerror=function(){q&&tL[e]&&q();delete tL[e]};
  2053. T.scrubReferrer&&(Y.referrerPolicy="no-referrer");Y.src=d};
  2054. FRH=function(d){var q;return((q=document.featurePolicy)==null?0:q.allowedFeatures().includes("attribution-reporting"))?d+"&nis=6":d+"&nis=5"};
  2055. K4=function(){BW||(BW=new l5("yt.offline"));return BW};
  2056. Nwf=function(d){if(g.RD("offline_error_handling")){var q=K4().get("errors",!0)||{};q[d.message]={name:d.name,stack:d.stack};d.level&&(q[d.message].level=d.level);K4().set("errors",q,2592E3,!0)}};
  2057. GN=function(){this.G=new Map;this.U=!1};
  2058. L4=function(){if(!GN.instance){var d=g.qx("yt.networkRequestMonitor.instance")||new GN;g.Vf("yt.networkRequestMonitor.instance",d);GN.instance=d}return GN.instance};
  2059. kL=function(){g.$1.call(this);var d=this;this.U=!1;this.G=AS_();this.G.listen("networkstatus-online",function(){if(d.U&&g.RD("offline_error_handling")){var q=K4().get("errors",!0);if(q){for(var T in q)if(q[T]){var Y=new g.CW(T,"sent via offline_errors");Y.name=q[T].name;Y.stack=q[T].stack;Y.level=q[T].level;g.z2(Y)}K4().set("errors",{},2592E3,!0)}}})};
  2060. RY6=function(){if(!kL.instance){var d=g.qx("yt.networkStatusManager.instance")||new kL;g.Vf("yt.networkStatusManager.instance",d);kL.instance=d}return kL.instance};
  2061. g.PW=function(d){d=d===void 0?{}:d;g.$1.call(this);var q=this;this.G=this.T=0;this.U=RY6();var T=g.qx("yt.networkStatusManager.instance.listen").bind(this.U);T&&(d.rateLimit?(this.rateLimit=d.rateLimit,T("networkstatus-online",function(){xvD(q,"publicytnetworkstatus-online")}),T("networkstatus-offline",function(){xvD(q,"publicytnetworkstatus-offline")})):(T("networkstatus-online",function(){q.dispatchEvent("publicytnetworkstatus-online")}),T("networkstatus-offline",function(){q.dispatchEvent("publicytnetworkstatus-offline")})))};
  2062. xvD=function(d,q){d.rateLimit?d.G?(g.Gh.Qt(d.T),d.T=g.Gh.DE(function(){d.j!==q&&(d.dispatchEvent(q),d.j=q,d.G=(0,g.cj)())},d.rateLimit-((0,g.cj)()-d.G))):(d.dispatchEvent(q),d.j=q,d.G=(0,g.cj)()):d.dispatchEvent(q)};
  2063. C4=function(){var d=p4.call;WW||(WW=new g.PW({UsZ:!0,U1k:!0}));d.call(p4,this,{Fn:{pQ:Ysn,uZ:TwH,hj:VpQ,Oz:dvH,p_:qsD,set:oG6},hk:WW,handleError:function(q,T,Y){var e,U=Y==null?void 0:(e=Y.error)==null?void 0:e.code;if(U===400||U===415){var b;q=new g.CW(q.message,T,Y==null?void 0:(b=Y.error)==null?void 0:b.code);IE(q,void 0,void 0,void 0,!0)}else g.z2(q)},
  2064. fM:IE,sendFn:y11,now:g.cj,bD:Nwf,PO:g.IY(),EL:"publicytnetworkstatus-online",gC:"publicytnetworkstatus-offline",I8:!0,kY:.1,MZ:g.xA("potential_esf_error_limit",10),Wv:g.RD,WC:!(g.Ds()&&g.sb(document.location.toString())!=="www.youtube-nocookie.com")});this.j=new g.sq;g.RD("networkless_immediately_drop_all_requests")&&eYH();l6Q("LogsDatabaseV2")};
  2065. uI=function(){var d=g.qx("yt.networklessRequestController.instance");d||(d=new C4,g.Vf("yt.networklessRequestController.instance",d),g.RD("networkless_logging")&&g.iR().then(function(q){d.gA=q;ivX(d);d.j.resolve();d.I8&&Math.random()<=d.kY&&d.gA&&Xq2(d.gA);g.RD("networkless_immediately_drop_sw_health_store")&&hYg(d)}));
  2066. return d};
  2067. hYg=function(d){var q;g.G(function(T){if(!d.gA)throw q=g.RJ("clearSWHealthLogsDb"),q;return T.return(J1g(d.gA).catch(function(Y){d.handleError(Y)}))})};
  2068. y11=function(d,q,T,Y){Y=Y===void 0?!1:Y;q=g.RD("web_fp_via_jspb")?Object.assign({},q):q;g.RD("use_cfr_monitor")&&Hs1(d,q);if(g.RD("use_request_time_ms_header"))q.headers&&q4(d)&&(q.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.cj)())));else{var e;if((e=q.postParams)==null?0:e.requestTimeMs)q.postParams.requestTimeMs=Math.round((0,g.cj)())}T&&Object.keys(q).length===0?g.rM(d):q.compress?q.postBody?(typeof q.postBody!=="string"&&(q.postBody=JSON.stringify(q.postBody)),Eg(d,q.postBody,
  2069. q,g.QB,Y)):Eg(d,JSON.stringify(q.postParams),q,M4,Y):g.QB(d,q)};
  2070. Dd=function(d,q){g.RD("use_event_time_ms_header")&&q4(d)&&(q.headers||(q.headers={}),q.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.cj)())));return q};
  2071. Hs1=function(d,q){var T=q.onError?q.onError:function(){};
  2072. q.onError=function(e,U){L4().requestComplete(d,!1);T(e,U)};
  2073. var Y=q.onSuccess?q.onSuccess:function(){};
  2074. q.onSuccess=function(e,U){L4().requestComplete(d,!0);Y(e,U)}};
  2075. g.wM=function(d){this.config_=null;d?this.config_=d:xgg()&&(this.config_=g.Ug())};
  2076. g.f4=function(d,q,T,Y){function e(N){try{if((N===void 0?0:N)&&Y.retry&&!Y.networklessOptions.bypassNetworkless)U.method="POST",Y.networklessOptions.writeThenSend?uI().writeThenSend(F,U):uI().sendAndWrite(F,U);else if(Y.compress){var R=!Y.networklessOptions.writeThenSend;if(U.postBody){var x=U.postBody;typeof x!=="string"&&(x=JSON.stringify(U.postBody));Eg(F,x,U,g.QB,R)}else Eg(F,JSON.stringify(U.postParams),U,M4,R)}else g.RD("web_all_payloads_via_jspb")?g.QB(F,U):M4(F,U)}catch(y){if(y.name==="InvalidAccessError")IE(Error("An extension is blocking network request."));
  2077. else throw y;}}
  2078. !g.Cs("VISITOR_DATA")&&q!=="visitor_id"&&Math.random()<.01&&IE(new g.CW("Missing VISITOR_DATA when sending innertube request.",q,T,Y));if(!d.isReady())throw d=new g.CW("innertube xhrclient not ready",q,T,Y),g.z2(d),d;var U={headers:Y.headers||{},method:"POST",postParams:T,postBody:Y.postBody,postBodyFormat:Y.postBodyFormat||"JSON",onTimeout:function(){Y.onTimeout()},
  2079. onFetchTimeout:Y.onTimeout,onSuccess:function(N,R){if(Y.onSuccess)Y.onSuccess(R)},
  2080. onFetchSuccess:function(N){if(Y.onSuccess)Y.onSuccess(N)},
  2081. onError:function(N,R){if(Y.onError)Y.onError(R)},
  2082. onFetchError:function(N){if(Y.onError)Y.onError(N)},
  2083. timeout:Y.timeout,withCredentials:!0,compress:Y.compress};U.headers["Content-Type"]||(U.headers["Content-Type"]="application/json");T="";var b=d.config_.hU;b&&(T=b);b=d.config_.bQ||!1;var J=AxD(b,T,Y);Object.assign(U.headers,J);U.headers.Authorization&&!T&&b&&(U.headers["x-origin"]=window.location.origin);var F=VH(""+T+("/youtubei/"+d.config_.innertubeApiVersion+"/"+q),{alt:"json"});g.qx("ytNetworklessLoggingInitializationOptions")&&QE6.isNwlInitialized?DKf().then(function(N){e(N)}):e(!1)};
  2084. g.ST=function(d,q,T){var Y=g.zN();if(Y&&q){var e=Y.subscribe(d,function(){function U(){iI[e]&&q.apply&&typeof q.apply=="function"&&q.apply(T||window,b)}
  2085. var b=arguments;try{g.IR[d]?U():g.s3(U,0)}catch(J){g.z2(J)}},T);
  2086. iI[e]=!0;mL[d]||(mL[d]=[]);mL[d].push(e);return e}return 0};
  2087. MW6=function(d){var q=g.ST("LOGGED_IN",function(T){d.apply(void 0,arguments);g.lI(q)})};
  2088. g.lI=function(d){var q=g.zN();q&&(typeof d==="number"?d=[d]:typeof d==="string"&&(d=[parseInt(d,10)]),g.Sj(d,function(T){q.unsubscribeByKey(T);delete iI[T]}))};
  2089. g.vW=function(d,q){var T=g.zN();return T?T.publish.apply(T,arguments):!1};
  2090. E5D=function(d){var q=g.zN();if(q)if(q.clear(d),d)c1Q(d);else for(var T in mL)c1Q(T)};
  2091. g.zN=function(){return g.oQ.ytPubsubPubsubInstance};
  2092. c1Q=function(d){mL[d]&&(d=mL[d],g.Sj(d,function(q){iI[q]&&delete iI[q]}),d.length=0)};
  2093. g.TT=function(d,q,T){jEN(d,q,T===void 0?null:T)};
  2094. jEN=function(d,q,T){T=T===void 0?null:T;var Y=aA6(d),e=document.getElementById(Y),U=e&&PjD(e),b=e&&!U;U?q&&q():(q&&(U=g.ST(Y,q),q=""+g.X_(q),A1X[q]=U),b||(e=pqN(d,Y,function(){PjD(e)||(kAI(e),g.vW(Y),g.s3(function(){E5D(Y)},0))},T)))};
  2095. pqN=function(d,q,T,Y){Y=Y===void 0?null:Y;var e=g.FE("SCRIPT");e.id=q;e.onload=function(){T&&setTimeout(T,0)};
  2096. e.onreadystatechange=function(){switch(e.readyState){case "loaded":case "complete":e.onload()}};
  2097. Y&&e.setAttribute("nonce",Y);g.QY(e,g.QH(d));d=document.getElementsByTagName("head")[0]||document.body;d.insertBefore(e,d.firstChild);return e};
  2098. aA6=function(d){var q=document.createElement("a");g.sD(q,d);d=q.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+tn(d)};
  2099. Yy=function(d,q){if(d===q)d=!0;else if(Array.isArray(d)&&Array.isArray(q))d=g.Is(d,q,Yy);else if(g.UI(d)&&g.UI(q))a:if(g.UN(d).length!=g.UN(q).length)d=!1;else{for(var T in d)if(!Yy(d[T],q[T])){d=!1;break a}d=!0}else d=!1;return d};
  2100. by=function(d){var q=g.CN.apply(1,arguments);if(!ea(d)||q.some(function(Y){return!ea(Y)}))throw Error("Only objects may be merged.");
  2101. q=g.E(q);for(var T=q.next();!T.done;T=q.next())Uu(d,T.value)};
  2102. Uu=function(d,q){for(var T in q)if(ea(q[T])){if(T in d&&!ea(d[T]))throw Error("Cannot merge an object into a non-object.");T in d||(d[T]={});Uu(d[T],q[T])}else if(XZ(q[T])){if(T in d&&!XZ(d[T]))throw Error("Cannot merge an array into a non-array.");T in d||(d[T]=[]);ZsI(d[T],q[T])}else d[T]=q[T];return d};
  2103. ZsI=function(d,q){q=g.E(q);for(var T=q.next();!T.done;T=q.next())T=T.value,ea(T)?d.push(Uu({},T)):XZ(T)?d.push(ZsI([],T)):d.push(T);return d};
  2104. ea=function(d){return typeof d==="object"&&!Array.isArray(d)};
  2105. XZ=function(d){return typeof d==="object"&&Array.isArray(d)};
  2106. J$=function(d){g.W.call(this);this.U=d};
  2107. $y=function(d){J$.call(this,!0);this.G=d};
  2108. g4=function(d,q){g.W.call(this);var T=this;this.j=[];this.L=!1;this.U=0;this.S=this.X=this.T=!1;this.lr=null;var Y=(0,g.sI)(d,q);this.G=new g.f9(function(){return Y(T.lr)},300);
  2109. g.C(this,this.G);this.K=this.B=Infinity};
  2110. OsY=function(d,q){if(!q)return!1;for(var T=0;T<q.length;T++){var Y=q.item(T);if(Y&&d.j.includes(Y.identifier))return!0}return!1};
  2111. N9=function(d){if(window.crypto&&window.crypto.getRandomValues)try{var q=Array(d),T=new Uint8Array(d);window.crypto.getRandomValues(T);for(var Y=0;Y<q.length;Y++)q[Y]=T[Y];return q}catch(U){}q=Array(d);for(T=0;T<d;T++){Y=Date.now();for(var e=0;e<Y%23;e++)q[T]=Math.random();q[T]=Math.floor(Math.random()*256)}if(FZ)for(T=1,Y=0;Y<FZ.length;Y++)q[T%d]^=q[(T-1)%d]/4^FZ.charCodeAt(Y),T++;return q};
  2112. g.RC=function(d){d=N9(d);for(var q=[],T=0;T<d.length;T++)q.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(d[T]&63));return q.join("")};
  2113. g.n5f=function(){return g.yC(N9(16),function(d){return(d&15).toString(16)}).join("")};
  2114. r1I=function(){var d={};var q=d.Amf===void 0?!1:d.Amf;d=d.U0===void 0?!0:d.U0;if(g.qx("_lact",window)==null){var T=parseInt(g.Cs("LACT"),10);T=isFinite(T)?Date.now()-Math.max(T,0):-1;g.Vf("_lact",T,window);g.Vf("_fact",T,window);T==-1&&yF();g.yi(document,"keydown",yF);g.yi(document,"keyup",yF);g.yi(document,"mousedown",yF);g.yi(document,"mouseup",yF);q?g.yi(window,"touchmove",function(){h$("touchmove",200)},{passive:!0}):(g.yi(window,"resize",function(){h$("resize",200)}),d&&g.yi(window,"scroll",
  2115. function(){h$("scroll",200)}));
  2116. new Ms(function(){h$("mouse",100)});
  2117. g.yi(document,"touchstart",yF,{passive:!0});g.yi(document,"touchend",yF,{passive:!0})}};
  2118. h$=function(d,q){Hi[d]||(Hi[d]=!0,g.Gh.DE(function(){yF();Hi[d]=!1},q))};
  2119. yF=function(){g.qx("_lact",window)==null&&(r1I(),g.qx("_lact",window));var d=Date.now();g.Vf("_lact",d,window);g.qx("_fact",window)==-1&&g.Vf("_fact",d,window);(d=g.qx("ytglobal.ytUtilActivityCallback_"))&&d()};
  2120. QF=function(){var d=g.qx("_lact",window);return d==null?-1:Math.max(Date.now()-d,0)};
  2121. M9=function(d){this.name=d};
  2122. ci=function(d){this.key=d};
  2123. Eu=function(d){return new ci(d)};
  2124. tW6=function(){var d=this;this.G=new Map;this.j=new Map;this.U=new Map;this.fC={GB2:function(){return new Map(d.G)}}};
  2125. aC=function(d,q){d.G.set(q.Mn,q);var T=d.j.get(q.Mn);if(T)try{T.MK(d.resolve(q.Mn))}catch(Y){T.oA(Y)}};
  2126. pC=function(d,q,T,Y){Y=Y===void 0?!1:Y;if(T.indexOf(q)>-1)throw Error("Deps cycle for: "+q);if(d.U.has(q))return d.U.get(q);if(!d.G.has(q)){if(Y)return;throw Error("No provider for: "+q);}Y=d.G.get(q);T.push(q);if(Y.xj!==void 0)var e=Y.xj;else if(Y.V$v)e=Y[A$]?BwQ(d,Y[A$],T):[],e=Y.V$v.apply(Y,g.RQ(e));else if(Y.Du){e=Y.Du;var U=e[A$]?BwQ(d,e[A$],T):[];e=new (Function.prototype.bind.apply(e,[null].concat(g.RQ(U))))}else throw Error("Could not resolve providers for: "+q);T.pop();Y.Q92||d.U.set(q,e);
  2127. return e};
  2128. BwQ=function(d,q,T){return q?q.map(function(Y){return Y instanceof ci?pC(d,Y.key,T,!0):pC(d,Y,T)}):[]};
  2129. Ou=function(){Z5||(Z5=new tW6);return Z5};
  2130. r4=function(){var d,q;return"h5vcc"in nC&&((d=nC.h5vcc.traceEvent)==null?0:d.traceBegin)&&((q=nC.h5vcc.traceEvent)==null?0:q.traceEnd)?1:"performance"in nC&&nC.performance.mark&&nC.performance.measure?2:0};
  2131. t$=function(d){var q=r4();switch(q){case 1:nC.h5vcc.traceEvent.traceBegin("YTLR",d);break;case 2:nC.performance.mark(d+"-start");break;case 0:break;default:$S(q,"unknown trace type")}};
  2132. KRQ=function(d){var q=r4();switch(q){case 1:nC.h5vcc.traceEvent.traceEnd("YTLR",d);break;case 2:q=d+"-start";var T=d+"-end";nC.performance.mark(T);nC.performance.measure(d,q,T);break;case 0:break;default:$S(q,"unknown trace type")}};
  2133. G2X=function(d){var q,T;(T=(q=window).onerror)==null||T.call(q,d.message,"",0,0,d)};
  2134. LR2=function(d){var q=this;var T=T===void 0?0:T;var Y=Y===void 0?g.IY():Y;this.j=T;this.scheduler=Y;this.U=new g.sq;this.G=d;for(d={gZ:0};d.gZ<this.G.length;d={Uh:void 0,gZ:d.gZ},d.gZ++)d.Uh=this.G[d.gZ],T=function(e){return function(){e.Uh.QB();q.G[e.gZ].ID=!0;q.G.every(function(U){return U.ID===!0})&&q.U.resolve()}}(d),Y=fW(T,Bi(this,d.Uh)),this.G[d.gZ]=Object.assign({},d.Uh,{QB:T,
  2135. jobId:Y})};
  2136. k26=function(d){var q=Array.from(d.G.keys()).sort(function(Y,e){return Bi(d,d.G[e])-Bi(d,d.G[Y])});
  2137. q=g.E(q);for(var T=q.next();!T.done;T=q.next())T=d.G[T.value],T.jobId===void 0||T.ID||(d.scheduler.Qt(T.jobId),fW(T.QB,10))};
  2138. Bi=function(d,q){var T;return(T=q.priority)!=null?T:d.j};
  2139. GT=function(d){this.state=d;this.plugins=[];this.j=void 0;this.T={};KC&&t$(this.state)};
  2140. PF1=function(d,q){var T=q.filter(function(e){return LC(d,e)===10}),Y=q.filter(function(e){return LC(d,e)!==10});
  2141. return d.T.oTv?function(){var e=g.CN.apply(0,arguments);return g.G(function(U){if(U.U==1)return g.B(U,d.s6x.apply(d,[T].concat(g.RQ(e))),2);d.F3.apply(d,[Y].concat(g.RQ(e)));g.E6(U)})}:function(){var e=g.CN.apply(0,arguments);
  2142. d.HzF.apply(d,[T].concat(g.RQ(e)));d.F3.apply(d,[Y].concat(g.RQ(e)))}};
  2143. LC=function(d,q){var T,Y;return(Y=(T=d.j)!=null?T:q.priority)!=null?Y:0};
  2144. ky=function(d){KC&&d&&t$(d)};
  2145. Pi=function(d){KC&&d&&KRQ(d)};
  2146. CFg=function(d,q,T){WR_&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+d.constructor.name+"] '"+d.state+"' to '"+q+"'"),console.log("with message: ",T),console.groupEnd())};
  2147. Wi=function(d){if(g.RD("web_lifecycle_error_handling_killswitch"))return d();try{return d()}catch(q){G2X(q)}};
  2148. CC=function(d){GT.call(this,d===void 0?"none":d);this.G=null;this.j=10;this.transitions=[{from:"none",to:"application_navigating",action:this.S},{from:"application_navigating",to:"none",action:this.X},{from:"application_navigating",to:"application_navigating",action:function(){}},
  2149. {from:"none",to:"none",action:function(){}}]};
  2150. uMg=function(){uy||(uy=new CC);return uy};
  2151. D5=function(){var d=this;this.store={};this.G=0;this.U={};this.fC={gyw:function(){return d.G}}};
  2152. zT=function(d,q){var T=w4(q);if(d.U[T])return d.U[T];var Y=Object.keys(d.store)||[];if(Y.length<=1&&w4(q)===Y[0])return Y;for(var e=[],U=0;U<Y.length;U++){var b=Y[U].split("/");if(fC(q.auth,b[0])){var J=q.isJspb;fC(J===void 0?"undefined":J?"true":"false",b[1])&&fC(q.cttAuthInfo,b[2])&&(J=q.tier,J=J===void 0?"undefined":JSON.stringify(J),fC(J,b[3])&&e.push(Y[U]))}}return d.U[T]=e};
  2153. fC=function(d,q){return d===void 0||d==="undefined"?!0:d===q};
  2154. w4=function(d){return[d.auth===void 0?"undefined":d.auth,d.isJspb===void 0?"undefined":d.isJspb,d.cttAuthInfo===void 0?"undefined":d.cttAuthInfo,d.tier===void 0?"undefined":d.tier].join("/")};
  2155. iy=function(){this.T=this.G=this.U=0;this.j=!1};
  2156. IC=function(){var d=g.qx("yt.logging.ims");d||(d=new D5,g.Vf("yt.logging.ims",d));return d};
  2157. fAN=function(){if(K$f()&&!DvY){var d=function(T){T=T.data;if(T.op==="serializedGelBatch"){var Y=mI.get(T.key);Y&&(wq_(T.serializedBatch,Y.client,Y.resolve,Y.networklessOptions,Y.isIsolated,Y.useVSSEndpoint,Y.dangerousLogToVisitorSession,Y.requestsOutstanding),mI.delete(T.key))}},q=hL();
  2158. q&&(q.addEventListener("message",d),q.onerror=function(){mI.clear()});
  2159. DvY=!0}};
  2160. lAN=function(d,q){if(d.endpoint==="log_event"){Sa(d);var T=ly(d),Y=zYY(d.payload)||"",e=isg(Y),U=200;if(e){if(e.enabled===!1&&!g.RD("web_payload_policy_disabled_killswitch"))return;U=IA1(e.tier);if(U===400){mvf(d,q);return}}vi[T]=!0;T={cttAuthInfo:T,isJspb:!1,tier:U};IC().storePayload(T,d.payload);Ssg(q,!1,T,oC(Y))}};
  2161. o56=function(d,q,T){if(q.endpoint==="log_event"){Sa(void 0,q);var Y=ly(q,!0),e=isg(d),U=200;if(e){if(e.enabled===!1&&!g.RD("web_payload_policy_disabled_killswitch"))return;U=IA1(e.tier);if(U===400){v5H(d,q,T);return}}vi[Y]=!0;Y={cttAuthInfo:Y,isJspb:!0,tier:U};IC().storePayload(Y,ul(q.payload));Ssg(T,!0,Y,oC(d))}};
  2162. Ssg=function(d,q,T,Y){function e(){VF({writeThenSend:!0},q,T.tier)}
  2163. q=q===void 0?!1:q;Y=Y===void 0?!1:Y;d&&(di=new d);d=g.xA("tvhtml5_logging_max_batch_ads_fork")||g.xA("tvhtml5_logging_max_batch")||g.xA("web_logging_max_batch")||100;var U=(0,g.cj)(),b=qh(q,T.tier),J=b.T;Y&&(b.j=!0);Y=0;T&&(Y=IC().getSequenceCount(T));Y>=1E3?e():Y>=d?Tp||(Tp=Yz(function(){e();Tp=void 0},0)):U-J>=10&&(VW_(q,T.tier),b.T=U)};
  2164. mvf=function(d,q){if(d.endpoint==="log_event"){g.RD("more_accurate_gel_parser")&&IC().storePayload({isJspb:!1},d.payload);Sa(d);var T=ly(d),Y=new Map;Y.set(T,[d.payload]);var e=zYY(d.payload)||"";q&&(di=new q);return new g.pK(function(U,b){di&&di.isReady()?d41(Y,di,U,b,{bypassNetworkless:!0},!0,oC(e)):U()})}};
  2165. v5H=function(d,q,T){if(q.endpoint==="log_event"){Sa(void 0,q);var Y=ly(q,!0),e=new Map;e.set(Y,[ul(q.payload)]);T&&(di=new T);return new g.pK(function(U){di&&di.isReady()?q3g(e,di,U,{bypassNetworkless:!0},!0,oC(d)):U()})}};
  2166. ly=function(d,q){var T="";if(d.dangerousLogToVisitorSession)T="visitorOnlyApprovedKey";else if(d.cttAuthInfo){if(q===void 0?0:q){q=d.cttAuthInfo.token;T=d.cttAuthInfo;var Y=new k5;T.videoId?Y.setVideoId(T.videoId):T.playlistId&&F2(Y,2,en,a4(T.playlistId));UL[q]=Y}else q=d.cttAuthInfo,T={},q.videoId?T.videoId=q.videoId:q.playlistId&&(T.playlistId=q.playlistId),bn[d.cttAuthInfo.token]=T;T=d.cttAuthInfo.token}return T};
  2167. VF=function(d,q,T){d=d===void 0?{}:d;q=q===void 0?!1:q;new g.pK(function(Y,e){var U=qh(q,T),b=U.j;U.j=!1;Xn(U.U);Xn(U.G);U.G=0;di&&di.isReady()?T===void 0&&g.RD("enable_web_tiered_gel")?T77(Y,e,d,q,300,b):T77(Y,e,d,q,T,b):(VW_(q,T),Y())})};
  2168. T77=function(d,q,T,Y,e,U){var b=di;T=T===void 0?{}:T;Y=Y===void 0?!1:Y;e=e===void 0?200:e;U=U===void 0?!1:U;var J=new Map,F=new Map,N={isJspb:Y,cttAuthInfo:void 0,tier:e},R={isJspb:Y,cttAuthInfo:void 0};if(Y){q=g.E(Object.keys(vi));for(e=q.next();!e.done;e=q.next())e=e.value,F=g.RD("enable_web_tiered_gel")?IC().smartExtractMatchingEntries({keys:[N,R],sizeLimit:1E3}):IC().extractMatchingEntries({isJspb:!0,cttAuthInfo:e}),F.length>0&&J.set(e,F),(g.RD("web_fp_via_jspb_and_json")&&T.writeThenSend||!g.RD("web_fp_via_jspb_and_json"))&&
  2169. delete vi[e];q3g(J,b,d,T,!1,U)}else{J=g.E(Object.keys(vi));for(N=J.next();!N.done;N=J.next())N=N.value,R=g.RD("enable_web_tiered_gel")?IC().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:N,tier:e},{isJspb:!1,cttAuthInfo:N}],sizeLimit:1E3}):IC().extractMatchingEntries({isJspb:!1,cttAuthInfo:N}),R.length>0&&F.set(N,R),(g.RD("web_fp_via_jspb_and_json")&&T.writeThenSend||!g.RD("web_fp_via_jspb_and_json"))&&delete vi[N];d41(F,b,d,q,T,!1,U)}};
  2170. VW_=function(d,q){function T(){VF({writeThenSend:!0},d,q)}
  2171. d=d===void 0?!1:d;q=q===void 0?200:q;var Y=qh(d,q),e=Y===Y3Q||Y===eBN?5E3:U4_;g.RD("web_gel_timeout_cap")&&!Y.G&&(e=Yz(function(){T()},e),Y.G=e);
  2172. Xn(Y.U);e=g.Cs("LOGGING_BATCH_TIMEOUT",g.xA("web_gel_debounce_ms",1E4));g.RD("shorten_initial_gel_batch_timeout")&&Jt&&(e=bZ6);e=Yz(function(){g.xA("gel_min_batch_size")>0?IC().getSequenceCount({cttAuthInfo:void 0,isJspb:d,tier:q})>=XLj&&T():T()},e);
  2173. Y.U=e};
  2174. d41=function(d,q,T,Y,e,U,b){e=e===void 0?{}:e;var J=Math.round((0,g.cj)()),F=d.size,N=Jd7(b);d=g.E(d);var R=d.next();for(b={};!R.done;b={xv:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,vg:void 0,Pg:void 0},R=d.next()){var x=g.E(R.value);R=x.next().value;x=x.next().value;b.batchRequest=g.yl({context:g.bI(q.config_||g.Ug())});if(!g.ej(x)&&!g.RD("throw_err_when_logevent_malformed_killswitch")){Y();break}b.batchRequest.events=x;(x=bn[R])&&sDY(b.batchRequest,R,x);delete bn[R];b.dangerousLogToVisitorSession=
  2175. R==="visitorOnlyApprovedKey";$4H(b.batchRequest,J,b.dangerousLogToVisitorSession);gAH(e);b.vg=function(y){g.RD("start_client_gcf")&&g.Gh.DE(function(){return g.G(function(h){return g.B(h,F9D(y),0)})});
  2176. F--;F||T()};
  2177. b.xv=0;b.Pg=function(y){return function(){y.xv++;if(e.bypassNetworkless&&y.xv===1)try{g.f4(q,N,y.batchRequest,sL({writeThenSend:!0},y.dangerousLogToVisitorSession,y.vg,y.Pg,U)),Jt=!1}catch(h){g.z2(h),Y()}F--;F||T()}}(b);
  2178. try{g.f4(q,N,b.batchRequest,sL(e,b.dangerousLogToVisitorSession,b.vg,b.Pg,U)),Jt=!1}catch(y){g.z2(y),Y()}}};
  2179. q3g=function(d,q,T,Y,e,U){Y=Y===void 0?{}:Y;var b=Math.round((0,g.cj)()),J={value:d.size},F=new Map([].concat(g.RQ(d)));F=g.E(F);for(var N=F.next();!N.done;N=F.next()){var R=g.E(N.value).next().value,x=d.get(R);N=new fZ7;var y=q.config_||g.Ug(),h=new rw,H=new jW;K2(H,1,y.Os);K2(H,2,y.ZH);L2(H,16,y.Y$);K2(H,17,y.innertubeContextClientVersion);if(y.RR){var a=y.RR,p=new cq;a.coldConfigData&&K2(p,1,a.coldConfigData);a.appInstallData&&K2(p,6,a.appInstallData);a.coldHashData&&K2(p,3,a.coldHashData);a.hotHashData&&
  2180. p.Lw(a.hotHashData);Qw(H,cq,62,p)}(a=g.oQ.devicePixelRatio)&&a!=1&&VX(H,65,Xe(a));a=yB();a!==""&&K2(H,54,a);a=hd();if(a.length>0){p=new ps;for(var t=0;t<a.length;t++){var n=new aE;K2(n,1,a[t].key);F2(n,2,N7j,a4(a[t].value));AI(p,15,aE,n)}Qw(h,ps,5,p)}yx1(y,H);h6_(h);HvX(H);QMD(y,H);MpQ(H);g.RD("start_client_gcf")&&cxn(H);g.Cs("DELEGATED_SESSION_ID")&&!g.RD("pageid_as_header_web")&&(y=new ns,K2(y,3,g.Cs("DELEGATED_SESSION_ID")));!g.RD("fill_delegate_context_in_gel_killswitch")&&(a=g.Cs("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&
  2181. (p=hI(h,ns,3)||new ns,y=h,a=K2(p,18,a),Qw(y,ns,3,a));y=H;a=g.E(Object.entries(lF(g.Cs("DEVICE",""))));for(p=a.next();!p.done;p=a.next())t=g.E(p.value),p=t.next().value,t=t.next().value,p==="cbrand"?K2(y,12,t):p==="cmodel"?K2(y,13,t):p==="cbr"?K2(y,87,t):p==="cbrver"?K2(y,88,t):p==="cos"?K2(y,18,t):p==="cosver"?K2(y,19,t):p==="cplatform"&&L2(y,42,dK7(t));h.Ol(H);Qw(N,rw,1,h);if(H=UL[R])a:{if(H.Sh())h=1;else if(H.getPlaylistId())h=2;else break a;Qw(N,k5,4,H);H=hI(N,rw,1)||new rw;y=hI(H,ns,3)||new ns;
  2182. a=new Os;a.setToken(R);L2(a,1,h);AI(y,12,Os,a);Qw(H,ns,3,y)}delete UL[R];R=R==="visitorOnlyApprovedKey";$z()||BV(N,2,b);!R&&(h=g.Cs("EVENT_ID"))&&(H=RB7(),y=new Ls,K2(y,1,h),BV(y,2,H),Qw(N,Ls,5,y));gAH(Y);if(g.RD("jspb_serialize_with_worker")&&(h=hL())&&Y.writeThenSend){mI.set(gi,{client:q,resolve:T,networklessOptions:Y,isIsolated:e,useVSSEndpoint:U,dangerousLogToVisitorSession:R,requestsOutstanding:J});h.postMessage({op:"gelBatchToSerialize",batchRequest:ul(N),clientEvents:x,key:gi});gi++;break}if(x){h=
  2183. [];for(H=0;H<x.length;H++)try{h.push(new G2(x[H]))}catch(K){g.z2(new g.CW("Transport failed to deserialize "+String(x[H])))}x=h}else x=[];x=g.E(x);for(h=x.next();!h.done;h=x.next())AI(N,3,G2,h.value);x={startTime:(0,g.cj)(),ticks:{},infos:{}};N=N.VH();x.ticks.geljspc=(0,g.cj)();g.RD("log_jspb_serialize_latency")&&RR("gel_jspb_serialize",x,{sampleRate:.1});wq_(N,q,T,Y,e,U,R,J)}};
  2184. wq_=function(d,q,T,Y,e,U,b,J){Y=Y===void 0?{}:Y;J=J===void 0?{value:0}:J;U=Jd7(U);Y=sL(Y,b,function(F){g.RD("start_client_gcf")&&g.Gh.DE(function(){return g.G(function(N){return g.B(N,F9D(F),0)})});
  2185. J.value--;J.value||T()},function(){J.value--;
  2186. J.value||T()},e);
  2187. Y.headers["Content-Type"]="application/json+protobuf";Y.postBodyFormat="JSPB";Y.postBody=d;g.f4(q,U,"",Y);Jt=!1};
  2188. gAH=function(d){g.RD("always_send_and_write")&&(d.writeThenSend=!1)};
  2189. sL=function(d,q,T,Y,e){d={retry:!0,onSuccess:T,onError:Y,networklessOptions:d,dangerousLogToVisitorSession:q,NoU:!!e,headers:{},postBodyFormat:"",postBody:"",compress:g.RD("compress_gel")||g.RD("compress_gel_lr")};$z()&&(d.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.cj)())));return d};
  2190. $4H=function(d,q,T){$z()||(d.requestTimeMs=String(q));g.RD("unsplit_gel_payloads_in_logs")&&(d.unsplitGelPayloadsInLogs=!0);!T&&(q=g.Cs("EVENT_ID"))&&(T=RB7(),d.serializedClientEventId={serializedEventId:q,clientCounter:String(T)})};
  2191. RB7=function(){var d=g.Cs("BATCH_CLIENT_COUNTER")||0;d||(d=Math.floor(Math.random()*65535/2));d++;d>65535&&(d=1);Wq("BATCH_CLIENT_COUNTER",d);return d};
  2192. sDY=function(d,q,T){if(T.videoId)var Y="VIDEO";else if(T.playlistId)Y="PLAYLIST";else return;d.credentialTransferTokenTargetId=T;d.context=d.context||{};d.context.user=d.context.user||{};d.context.user.credentialTransferTokens=[{token:q,scope:Y}]};
  2193. Sa=function(d,q){var T=g.qx("yt.logging.transport.enableScrapingForTest"),Y=N4("il_payload_scraping");Y=(Y!==void 0?String(Y):"")==="enable_il_payload_scraping";if(!T)if(Y)Fn=[],g.Vf("yt.logging.transport.enableScrapingForTest",!0),g.Vf("yt.logging.transport.scrapedPayloadsForTesting",Fn),g.Vf("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Vf("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
  2194. g.Vf("yt.logging.transport.scrapeClientEvent",!0);else return;T=g.qx("yt.logging.transport.scrapedPayloadsForTesting");Y=g.qx("yt.logging.transport.payloadToScrape");q&&(q=q.payload,(q=g.qx("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(q)())&&T.push(q));q=g.qx("yt.logging.transport.scrapeClientEvent");if(Y&&Y.length>=1)for(var e=0;e<Y.length;e++)if(d&&d.payload[Y[e]])if(q)T.push(d.payload);else{var U=void 0;T.push(((U=d)==null?void 0:U.payload)[Y[e]])}g.Vf("yt.logging.transport.scrapedPayloadsForTesting",
  2195. T)};
  2196. $z=function(){return g.RD("use_request_time_ms_header")||g.RD("lr_use_request_time_ms_header")};
  2197. Yz=function(d,q){return g.RD("transport_use_scheduler")===!1?g.s3(d,q):g.RD("logging_avoid_blocking_during_navigation")||g.RD("lr_logging_avoid_blocking_during_navigation")?g.zy(0,function(){if(uMg().currentState==="none")d();else{var T={};uMg().install((T.none={callback:d},T))}},q):fW(d,0,q)};
  2198. Xn=function(d){g.RD("transport_use_scheduler")?g.Gh.Qt(d):g.g7(d)};
  2199. F9D=function(d){var q,T,Y,e,U,b,J,F,N,R;return g.G(function(x){return x.U==1?(Y=(q=d)==null?void 0:(T=q.responseContext)==null?void 0:T.globalConfigGroup,e=g.D(Y,x4f),b=(U=Y)==null?void 0:U.hotHashData,J=g.D(Y,yd7),N=(F=Y)==null?void 0:F.coldHashData,(R=Ou().resolve(Eu(TN)))?b?e?g.B(x,F$_(R,b,e),2):g.B(x,F$_(R,b),2):x.tF(2):x.return()):N?J?g.B(x,N9Q(R,N,J),0):g.B(x,N9Q(R,N),0):x.tF(0)})};
  2200. qh=function(d,q){q=q===void 0?200:q;return d?q===300?Y3Q:hBj:q===300?eBN:HZ1};
  2201. isg=function(d){if(g.RD("enable_web_tiered_gel")){d=QDj[d||""];var q,T,Y,e=Ou().resolve(Eu(TN))==null?void 0:(q=YL())==null?void 0:(T=q.loggingHotConfig)==null?void 0:(Y=T.eventLoggingConfig)==null?void 0:Y.payloadPolicies;if(e)for(q=0;q<e.length;q++)if(e[q].payloadNumber===d)return e[q]}};
  2202. zYY=function(d){d=Object.keys(d);d=g.E(d);for(var q=d.next();!q.done;q=d.next())if(q=q.value,QDj[q])return q};
  2203. IA1=function(d){switch(d){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}};
  2204. oC=function(d){return d==="gelDebuggingEvent"};
  2205. Jd7=function(d){return(d===void 0?0:d)&&g.RD("vss_through_gel_video_stats")?"video_stats":"log_event"};
  2206. R$=function(d,q,T,Y){Y=Y===void 0?{}:Y;var e={},U=Math.round(Y.timestamp||(0,g.cj)());e.eventTimeMs=U<Number.MAX_SAFE_INTEGER?U:0;e[d]=q;d=QF();e.context={lastActivityMs:String(Y.timestamp||!isFinite(d)?-1:d)};Y.sequenceGroup&&!g.RD("web_gel_sequence_info_killswitch")&&(d=e.context,q=Y.sequenceGroup,q={index:MeD(q),groupKey:q},d.sequence=q,Y.endOfSequence&&delete Nh[Y.sequenceGroup]);g.RD("web_tag_automated_log_events")&&(e.context.automatedLogEventSource=Y.automatedLogEventSource);(Y.sendIsolatedPayload?
  2207. mvf:lAN)({endpoint:"log_event",payload:e,cttAuthInfo:Y.cttAuthInfo,dangerousLogToVisitorSession:Y.dangerousLogToVisitorSession},T)};
  2208. MeD=function(d){Nh[d]=d in Nh?Nh[d]+1:0;return Nh[d]};
  2209. g.Ta=function(d,q,T){T=T===void 0?{}:T;var Y=g.wM;g.Cs("ytLoggingEventsDefaultDisabled",!1)&&g.wM===g.wM&&(Y=null);R$(d,q,Y,T)};
  2210. xz=function(d){this.G=d};
  2211. g.y0=function(d){return new xz({trackingParams:d})};
  2212. EAQ=function(d,q,T,Y,e,U){var b=cd_++;return new xz({veType:d,veCounter:b,elementIndex:T,dataElement:q,youtubeData:Y,jspbYoutubeData:e,loggingDirectives:U})};
  2213. jD2=function(d){return g.Cs("client-screen-nonce-store",{})[d===void 0?0:d]};
  2214. aq2=function(d,q){q=q===void 0?0:q;var T=g.Cs("client-screen-nonce-store");T||(T={},Wq("client-screen-nonce-store",T));T[q]=d};
  2215. ht=function(d){d=d===void 0?0:d;return d===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+d};
  2216. AdD=function(d){return g.Cs(ht(d===void 0?0:d))};
  2217. g.Ha=function(d){return(d=AdD(d===void 0?0:d))?new xz({veType:d,youtubeData:void 0,jspbYoutubeData:void 0}):null};
  2218. pLf=function(){var d=g.Cs("csn-to-ctt-auth-info");d||(d={},Wq("csn-to-ctt-auth-info",d));return d};
  2219. ZZI=function(){return Object.values(g.Cs("client-screen-nonce-store",{})).filter(function(d){return d!==void 0})};
  2220. g.Q0=function(d){d=jD2(d===void 0?0:d);if(!d&&!g.Cs("USE_CSN_FALLBACK",!0))return null;d||(d="UNDEFINED_CSN");return d?d:null};
  2221. nA_=function(d){for(var q=g.E(Object.values(OZf)),T=q.next();!T.done;T=q.next())if(g.Q0(T.value)===d)return!0;return!1};
  2222. rdI=function(d,q,T){var Y=pLf();(T=g.Q0(T))&&delete Y[T];q&&(Y[d]=q)};
  2223. Mh=function(d){return pLf()[d]};
  2224. B77=function(d,q,T,Y){T=T===void 0?0:T;if(d!==jD2(T)||q!==g.Cs(ht(T)))if(rdI(d,Y,T),aq2(d,T),Wq(ht(T),q),q=function(){setTimeout(function(){d&&g.Ta("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:teg,clientScreenNonce:d})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(q)}catch(e){q()}else q()};
  2225. ca=function(d,q){var T=T===void 0?!0:T;var Y=g.Cs("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.sb(window.location.href);e&&Y.push(e);e=g.sb(d);if(g.cR(Y,e)||!e&&ON(d,"/"))if(Y=document.createElement("a"),g.sD(Y,d),d=Y.href)if(d=gQ(d),d=zu_(d))if(T&&!q.csn&&(q.itct||q.ved)&&(q=Object.assign({csn:g.Q0()},q)),U){var U=parseInt(U,10);isFinite(U)&&U>0&&K9I(d,q,U)}else K9I(d,q)};
  2226. K9I=function(d,q,T){d=GtH(d);q=q?g.xf(q):"";T=T||5;lb()&&g.nZ(d,q,T)};
  2227. GtH=function(d){for(var q=g.E(L9_),T=q.next();!T.done;T=q.next())d=Eb(d,T.value);return"ST-"+tn(d).toString(36)};
  2228. ktD=function(d){if(d.name==="JavaException")return!0;d=d.stack;return d.includes("chrome://")||d.includes("-extension://")||d.includes("webkit-masked-url://")};
  2229. PbD=function(d){if(!d.stack)return!0;var q=!d.stack.includes("\n");return q&&d.stack.includes("ErrorType: ")||q&&d.stack.includes("Anonymous function (Unknown script")||d.stack.toLowerCase()==="not available"||d.fileName==="user-script"||d.fileName.startsWith("user-script:")?!0:!1};
  2230. W9g=function(){this.EQ=[];this.td=[]};
  2231. jn=function(){if(!EL){var d=EL=new W9g;d.td.length=0;d.EQ.length=0;CbN(d,uqN)}return EL};
  2232. CbN=function(d,q){q.td&&d.td.push.apply(d.td,q.td);q.EQ&&d.EQ.push.apply(d.EQ,q.EQ)};
  2233. D4Y=function(d){function q(){return d.charCodeAt(Y++)}
  2234. var T=d.length,Y=0;do{var e=a$(q);if(e===Infinity)break;var U=e>>3;switch(e&7){case 0:e=a$(q);if(U===2)return e;break;case 1:if(U===2)return;Y+=8;break;case 2:e=a$(q);if(U===2)return d.substr(Y,e);Y+=e;break;case 5:if(U===2)return;Y+=4;break;default:return}}while(Y<T)};
  2235. a$=function(d){var q=d(),T=q&127;if(q<128)return T;q=d();T|=(q&127)<<7;if(q<128)return T;q=d();T|=(q&127)<<14;if(q<128)return T;q=d();return q<128?T|(q&127)<<21:Infinity};
  2236. wLD=function(d,q,T,Y){if(d)if(Array.isArray(d)){var e=Y;for(Y=0;Y<d.length&&!(d[Y]&&(e+=At(Y,d[Y],q,T),e>500));Y++);Y=e}else if(typeof d==="object")for(e in d){if(d[e]){var U=e;var b=d[e],J=q,F=T;U=typeof b!=="string"||U!=="clickTrackingParams"&&U!=="trackingParams"?0:(b=D4Y(atob(b.replace(/-/g,"+").replace(/_/g,"/"))))?At(U+".ve",b,J,F):0;Y+=U;Y+=At(e,d[e],q,T);if(Y>500)break}}else T[q]=p1(d),Y+=T[q].length;else T[q]=p1(d),Y+=T[q].length;return Y};
  2237. At=function(d,q,T,Y){T+="."+d;d=p1(q);Y[T]=d;return T.length+d.length};
  2238. p1=function(d){try{return(typeof d==="string"?d:String(JSON.stringify(d))).substr(0,500)}catch(q){return"unable to serialize "+typeof d+" ("+q.message+")"}};
  2239. qw=function(d){g.Zz(d)};
  2240. g.OL=function(d){g.Zz(d,"WARNING")};
  2241. g.Zz=function(d,q){var T=T===void 0?{}:T;T.name=g.Cs("INNERTUBE_CONTEXT_CLIENT_NAME",1);T.version=g.Cs("INNERTUBE_CONTEXT_CLIENT_VERSION");q=q===void 0?"ERROR":q;var Y=!1;q=q===void 0?"ERROR":q;Y=Y===void 0?!1:Y;if(d){d.hasOwnProperty("level")&&d.level&&(q=d.level);if(g.RD("console_log_js_exceptions")){var e=[];e.push("Name: "+d.name);e.push("Message: "+d.message);d.hasOwnProperty("params")&&e.push("Error Params: "+JSON.stringify(d.params));d.hasOwnProperty("args")&&e.push("Error args: "+JSON.stringify(d.args));
  2242. e.push("File name: "+d.fileName);e.push("Stacktrace: "+d.stack);window.console.log(e.join("\n"),d)}if(!(fq6>=5)){e=[];for(var U=g.E(zBN),b=U.next();!b.done;b=U.next()){b=b.value;try{b()&&e.push(b())}catch(a){}}e=[].concat(g.RQ(iZ_),g.RQ(e));var J=Uxf(d);U=J.message||"Unknown Error";b=J.name||"UnknownError";var F=J.stack||d.U||"Not available";if(F.startsWith(b+": "+U)){var N=F.split("\n");N.shift();F=N.join("\n")}N=J.lineNumber||"Not available";J=J.fileName||"Not available";var R=0;if(d.hasOwnProperty("args")&&
  2243. d.args&&d.args.length)for(var x=0;x<d.args.length&&!(R=wLD(d.args[x],"params."+x,T,R),R>=500);x++);else if(d.hasOwnProperty("params")&&d.params){var y=d.params;if(typeof d.params==="object")for(x in y){if(y[x]){var h="params."+x,H=p1(y[x]);T[h]=H;R+=h.length+H.length;if(R>500)break}}else T.params=p1(y)}if(e.length)for(x=0;x<e.length&&!(R=wLD(e[x],"params.context."+x,T,R),R>=500);x++);navigator.vendor&&!T.hasOwnProperty("vendor")&&(T["device.vendor"]=navigator.vendor);T={message:U,name:b,lineNumber:N,
  2244. fileName:J,stack:F,params:T,sampleWeight:1};x=Number(d.columnNumber);isNaN(x)||(T.lineNumber=T.lineNumber+":"+x);if(d.level==="IGNORED")d=0;else a:{d=jn();x=g.E(d.td);for(e=x.next();!e.done;e=x.next())if(e=e.value,T.message&&T.message.match(e.Ms)){d=e.weight;break a}d=g.E(d.EQ);for(x=d.next();!x.done;x=d.next())if(x=x.value,x.callback(T)){d=x.weight;break a}d=1}T.sampleWeight=d;d=g.E(Iqf);for(x=d.next();!x.done;x=d.next())if(x=x.value,x.lH[T.name])for(U=g.E(x.lH[T.name]),e=U.next();!e.done;e=U.next())if(b=
  2245. e.value,e=T.message.match(b.xq)){T.params["params.error.original"]=e[0];U=b.groups;b={};for(N=0;N<U.length;N++)b[U[N]]=e[N+1],T.params["params.error."+U[N]]=e[N+1];T.message=x.Sk(b);break}T.params||(T.params={});d=jn();T.params["params.errorServiceSignature"]="msg="+d.td.length+"&cb="+d.EQ.length;T.params["params.serviceWorker"]="false";g.oQ.document&&g.oQ.document.querySelectorAll&&(T.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new Sv(mn,"sample")).constructor!==
  2246. Sv&&(T.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(T);if(T.sampleWeight!==0&&!m4g.has(T.message)){if(Y&&g.RD("web_enable_error_204"))S3X(q===void 0?"ERROR":q,T);else{q=q===void 0?"ERROR":q;q==="ERROR"?(n1.publish("handleError",T),g.RD("record_app_crashed_web")&&lqN===0&&T.sampleWeight===1&&(lqN++,Y={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},g.RD("report_client_error_with_app_crash_ks")||(Y.systemHealth={crashData:{clientError:{logMessage:{message:T.message}}}}),
  2247. g.Ta("appCrashed",Y)),vAf++):q==="WARNING"&&n1.publish("handleWarning",T);if(g.RD("kevlar_gel_error_routing")){Y=q;d=void 0;d=d===void 0?{}:d;b:{x=g.E(oAN);for(e=x.next();!e.done;e=x.next())if(g.kA(e.value.toLowerCase())){x=!0;break b}x=!1}if(x)d=void 0;else{e={stackTrace:T.stack};T.fileName&&(e.filename=T.fileName);x=T.lineNumber&&T.lineNumber.split?T.lineNumber.split(":"):[];x.length!==0&&(x.length!==1||isNaN(Number(x[0]))?x.length!==2||isNaN(Number(x[0]))||isNaN(Number(x[1]))||(e.lineNumber=Number(x[0]),
  2248. e.columnNumber=Number(x[1])):e.lineNumber=Number(x[0]));x={level:"ERROR_LEVEL_UNKNOWN",message:T.message,errorClassName:T.name,sampleWeight:T.sampleWeight};Y==="ERROR"?x.level="ERROR_LEVEL_ERROR":Y==="WARNING"&&(x.level="ERROR_LEVEL_WARNNING");e={isObfuscated:!0,browserStackInfo:e};d.pageUrl=window.location.href;d.kvPairs=[];g.Cs("FEXP_EXPERIMENTS")&&(d.experimentIds=g.Cs("FEXP_EXPERIMENTS"));U=g.Cs("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!ww("web_disable_gel_stp_ecatcher_killswitch")&&U)for(b=
  2249. g.E(Object.keys(U)),N=b.next();!N.done;N=b.next())N=N.value,d.kvPairs.push({key:N,value:String(U[N])});if(U=T.params)for(b=g.E(Object.keys(U)),N=b.next();!N.done;N=b.next())N=N.value,d.kvPairs.push({key:"client."+N,value:String(U[N])});U=g.Cs("SERVER_NAME");b=g.Cs("SERVER_VERSION");U&&b&&(d.kvPairs.push({key:"server.name",value:U}),d.kvPairs.push({key:"server.version",value:b}));d={errorMetadata:d,stackTrace:e,logMessage:x}}if(d&&(g.Ta("clientError",d),Y==="ERROR"||g.RD("errors_flush_gel_always_killswitch")))a:{if(g.RD("web_fp_via_jspb")){Y=
  2250. !0;Y=Y===void 0?!1:Y;d=Ve6;Ve6=[];if(d)for(d=g.E(d),x=d.next();!x.done;x=d.next())x=x.value,Y?R$(x.payloadName,x.payload,g.wM,x.options):g.Ta(x.payloadName,x.payload,x.options);VF(void 0,!0);if(!g.RD("web_fp_via_jspb_and_json"))break a}VF(void 0,!1)}}g.RD("suppress_error_204_logging")||S3X(q,T)}try{m4g.add(T.message)}catch(a){}fq6++}}}};
  2251. S3X=function(d,q){var T=q.params||{};d={urlParams:{a:"logerror",t:"jserror",type:q.name,msg:q.message.substr(0,250),line:q.lineNumber,level:d,"client.name":T.name},postParams:{url:g.Cs("PAGE_NAME",window.location.href),file:q.fileName},method:"POST"};T.version&&(d["client.version"]=T.version);if(d.postParams){q.stack&&(d.postParams.stack=q.stack);q=g.E(Object.keys(T));for(var Y=q.next();!Y.done;Y=q.next())Y=Y.value,d.postParams["client."+Y]=T[Y];if(T=g.Cs("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(q=
  2252. g.E(Object.keys(T)),Y=q.next();!Y.done;Y=q.next())Y=Y.value,d.postParams[Y]=T[Y];(T=g.Cs("LAVA_VERSION"))&&(d.postParams["lava.version"]=T);T=g.Cs("SERVER_NAME");q=g.Cs("SERVER_VERSION");T&&q&&(d.postParams["server.name"]=T,d.postParams["server.version"]=q)}g.QB(g.Cs("ECATCHER_REPORT_HOST","")+"/error_204",d)};
  2253. dsf=function(d){var q=g.CN.apply(1,arguments);d.args||(d.args=[]);Array.isArray(d.args)&&d.args.push.apply(d.args,g.RQ(q))};
  2254. Ba=function(d){var q=g.D(d,ri);if(q)return q;if((q=g.D(d,qdQ))&&q.commands)return T81(q.commands);if((q=g.D(d,Yd6))&&q.commands)return T81(q.commands);if((d=g.D(d,eT1))&&d.identifier&&d.command&&(tt||(tt=[]),!tt.includes(d.identifier)))return tt.push(d.identifier),g.D(d.command,ri)};
  2255. T81=function(d){if(d.length!==0){var q=[];d=g.E(d);for(var T=d.next();!T.done;T=d.next())(T=Ba(T.value))&&q.push(T);return{commandExecutorCommand:{commands:q}}}};
  2256. g.K1=function(d,q,T){T===void 0?delete d[q.name]:d[q.name]=T};
  2257. Usj=function(d){for(var q=0,T=0;T<d.length;T++)q=q*31+d.charCodeAt(T),T<d.length-1&&(q%=0x800000000000);return q%1E5};
  2258. Gp=function(d){JL.call(this,1,arguments);this.csn=d};
  2259. Xuf=function(d,q,T,Y,e,U,b,J){var F=bWg(),N=new xz({veType:q,youtubeData:U,jspbYoutubeData:void 0});U=L1({},F);e&&(U.cttAuthInfo=e);e={csn:F,pageVe:N.getAsJson()};g.RD("expectation_logging")&&J&&J.screenCreatedLoggingExpectations&&(e.screenCreatedLoggingExpectations=J.screenCreatedLoggingExpectations);T&&T.visualElement?(e.implicitGesture={parentCsn:T.clientScreenNonce,gesturedVe:T.visualElement.getAsJson()},b&&(e.implicitGesture.gestureType=b)):T&&g.OL(new g.CW("newScreen() parent element does not have a VE - rootVe",
  2260. q));Y&&(e.cloneCsn=Y);d?R$("screenCreated",e,d,U):g.Ta("screenCreated",e,U);gM(p72,new Gp(F));kz.clear();Pa.clear();Wa.clear();return F};
  2261. g.un=function(d,q,T,Y,e,U){U=U===void 0?{}:U;g.C1(d,q,T,[Y],e===void 0?!1:e,U)};
  2262. g.C1=function(d,q,T,Y,e,U){e=e===void 0?!1:e;U=U===void 0?{}:U;Object.assign(U,L1({cttAuthInfo:Mh(q)||void 0},q));for(var b=g.E(Y),J=b.next();!J.done;J=b.next()){J=J.value;var F=J.getAsJson();(g.FV(F)||!F.trackingParams&&!F.veType)&&g.OL(Error("Child VE logged with no data"));if(g.RD("no_client_ve_attach_unless_shown")){var N=Dz(J,q);if(F.veType&&!Pa.has(N)&&!Wa.has(N)&&!e){if(!g.RD("il_attach_cache_limit")||kz.size<1E3){kz.set(N,[d,q,T,J]);return}g.RD("il_attach_cache_limit")&&kz.size>1E3&&g.OL(new g.CW("IL Attach cache exceeded limit"))}J=
  2263. Dz(T,q);kz.has(J)?wi(T,q):Wa.set(J,!0)}}Y=Y.filter(function(R){R.csn!==q?(R.csn=q,R=!0):R=!1;return R});
  2264. T={csn:q,parentVe:T.getAsJson(),childVes:g.yC(Y,function(R){return R.getAsJson()})};
  2265. q==="UNDEFINED_CSN"?f1("visualElementAttached",U,T):d?R$("visualElementAttached",T,d,U):g.Ta("visualElementAttached",T,U)};
  2266. JBN=function(d,q,T,Y,e){zp(T,q);Y=L1({cttAuthInfo:Mh(q)||void 0},q);T={csn:q,ve:T.getAsJson(),eventType:1};e&&(T.clientData=e);q==="UNDEFINED_CSN"?f1("visualElementShown",Y,T):d?R$("visualElementShown",T,d,Y):g.Ta("visualElementShown",T,Y)};
  2267. sYD=function(d,q,T,Y){var e=(Y=Y===void 0?!1:Y)?16:8;Y=L1({cttAuthInfo:Mh(q)||void 0,endOfSequence:Y},q);T={csn:q,ve:T.getAsJson(),eventType:e};q==="UNDEFINED_CSN"?f1("visualElementHidden",Y,T):d?R$("visualElementHidden",T,d,Y):g.Ta("visualElementHidden",T,Y)};
  2268. md=function(d,q,T,Y,e){I$(d,q,T,void 0,Y,e)};
  2269. I$=function(d,q,T,Y,e){zp(T,q);Y=Y||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var U=L1({cttAuthInfo:Mh(q)||void 0},q);T={csn:q,ve:T.getAsJson(),gestureType:Y};e&&(T.clientData=e);q==="UNDEFINED_CSN"?f1("visualElementGestured",U,T):d?R$("visualElementGestured",T,d,U):g.Ta("visualElementGestured",T,U)};
  2270. $sQ=function(){var d=N9(16);for(var q=[],T=0;T<d.length;T++)q.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(d[T]&63));return q.join("")};
  2271. f1=function(d,q,T){Sn.push({payloadName:d,payload:T,C3O:void 0,options:q});ln||(ln=tp7())};
  2272. nGj=function(d){if(Sn){for(var q=g.E(Sn),T=q.next();!T.done;T=q.next())T=T.value,T.payload&&(T.payload.csn=d.csn,g.Ta(T.payloadName,T.payload,T.options));Sn.length=0}ln=0};
  2273. Dz=function(d,q){return""+d.getAsJson().veType+d.getAsJson().veCounter+q};
  2274. zp=function(d,q){if(g.RD("no_client_ve_attach_unless_shown")){var T=Dz(d,q);Pa.set(T,!0);wi(d,q)}};
  2275. wi=function(d,q){d=Dz(d,q);kz.has(d)&&(q=kz.get(d)||[],g.un(q[0],q[1],q[2],q[3],!0),kz.delete(d))};
  2276. L1=function(d,q){g.RD("log_sequence_info_on_gel_web")&&(d.sequenceGroup=q);return d};
  2277. g.va=function(d,q,T,Y){g.iF(JBN)(void 0,d,q,T,Y,void 0)};
  2278. g.o$=function(d,q){g.iF(function(){g.Sj(q,function(T){zp(T,d);var Y=L1({cttAuthInfo:Mh(d)||void 0},d);T={csn:d,ve:T.getAsJson(),eventType:4};d==="UNDEFINED_CSN"?f1("visualElementShown",Y,T):g.Ta("visualElementShown",T,Y)})})()};
  2279. g.V0=function(d,q){g.iF(function(){g.Sj(q,function(T){sYD(void 0,d,T)})})()};
  2280. g.dx=function(d,q,T){g.iF(md)(void 0,d,q,T,void 0)};
  2281. TW=function(d,q,T,Y,e,U){T=T===void 0?{}:T;this.componentType=d;this.renderer=q===void 0?null:q;this.macros=T;this.layoutId=Y;this.interactionLoggingClientData=e;this.G=U;this.id=qP(d)};
  2282. qP=function(d){var q=":"+(GR.getInstance().G++).toString(36);return d+q};
  2283. g.YP=function(d){d=d===void 0?!1:d;g.W.call(this);this.Y1=new g.Mg(d);g.C(this,this.Y1)};
  2284. ex=function(){var d="ytp-id-"+gOQ.toString();gOQ++;return d};
  2285. g.Ux=function(d){g.W.call(this);this.q5={};this.XF={};this.element=this.createElement(d)};
  2286. bE=function(d,q,T,Y){if(Y.substring(0,2)==="{{")d.XF[Y]=[q,T];else return Y};
  2287. F2g=function(d,q){var T=[];if(!q)return T;q=g.E(q);for(var Y=q.next();!Y.done;Y=q.next())if(Y=Y.value,Y!=null){var e=Y.nodeType;e===1||e===3?T.push(Y):Y&&typeof Y.Y==="string"?T.push(d.createElement(Y)):Y.element?T.push(Y.element):typeof Y==="string"&&Y.indexOf("\n")!==-1?Y.split("\n").forEach(function(U,b){b>0&&T.push(g.FE("BR"));T.push(g.NQ(U))}):T.push(g.NQ(Y))}return T};
  2288. XA=function(d,q,T,Y){if(T==="child"){g.xE(q);var e;Y===void 0?e=void 0:e=!Array.isArray(Y)||Y&&typeof Y.Y==="string"?[Y]:Y;T=F2g(d,e);T=g.E(T);for(d=T.next();!d.done;d=T.next())q.appendChild(d.value)}else T==="style"?g.Dv(q,"cssText",Y?Y:""):Y===null||Y===void 0?q.removeAttribute(T):(d=Y.toString(),T==="href"&&(d=g.YS(g.b4(d))),q.setAttribute(T,d))};
  2289. g.f=function(d){g.Ux.call(this,d);this.PF=!0;this.S=!1;this.listeners=[]};
  2290. g.Ji=function(d){g.f.call(this,d);this.AF=new g.YP;g.C(this,this.AF)};
  2291. sx=function(d,q,T,Y,e,U,b){b=b===void 0?null:b;g.Ji.call(this,q);this.api=d;this.macros={};this.componentType=T;this.L=this.B=null;this.wO=b;this.layoutId=Y;this.interactionLoggingClientData=e;this.Nk=U;this.xx=null;this.bW=new $y(this.element);g.C(this,this.bW);this.kx=this.W(this.element,"click",this.onClick);this.rO=[];this.yv=new g4(this.onClick,this);g.C(this,this.yv);this.fn=!1;this.dO=this.lr=null};
  2292. $P=function(d,q){d=d===void 0?null:d;q=q===void 0?null:q;if(d==null)return g.OL(Error("Got null or undefined adText object")),"";var T=g.rt(d.text);if(!d.isTemplated)return T;if(q==null)return g.OL(Error("Missing required parameters for a templated message")),T;d=g.E(Object.entries(q));for(q=d.next();!q.done;q=d.next()){var Y=g.E(q.value);q=Y.next().value;Y=Y.next().value;T=T.replace("{"+q+"}",Y)}return T};
  2293. N8g=function(d){d=d===void 0?null:d;return d!=null&&(d=d.thumbnail,d!=null&&d.thumbnails!=null&&d.thumbnails.length!=0&&d.thumbnails[0].url!=null)?g.rt(d.thumbnails[0].url):""};
  2294. RT1=function(d){d=d===void 0?null:d;return d!=null&&(d=d.thumbnail,d!=null&&d.thumbnails!=null&&d.thumbnails.length!=0&&d.thumbnails[0].width!=null&&d.thumbnails[0].height!=null)?new g.zP(d.thumbnails[0].width||0,d.thumbnails[0].height||0):new g.zP(0,0)};
  2295. g.gx=function(d){if(d.simpleText)return d.simpleText;if(d.runs){var q=[];d=g.E(d.runs);for(var T=d.next();!T.done;T=d.next())T=T.value,T.text&&q.push(T.text);return q.join("")}return""};
  2296. g.FA=function(d){if(d.simpleText)return d=document.createTextNode(d.simpleText),d;var q=[];if(d.runs)for(var T=0;T<d.runs.length;T++){var Y=d.runs[T];if(Y.text){var e=q,U=e.push,b=null;var J=Y.text;Y.bold&&(b=g_("B",null,b||J));Y.italics&&(b=g_("I",null,b||J));Y.strikethrough&&(b=g_("STRIKE",null,b||J));Y.navigationEndpoint&&Y.navigationEndpoint.urlEndpoint&&(Y=Y.navigationEndpoint.urlEndpoint,b=g_("A",null,b||J),g.sD(b,Y.url),Y.target=="TARGET_NEW_WINDOW"&&(b.target="_blank"));J=b||g_("SPAN",null,
  2297. J);U.call(e,J)}}return q.length==1?q[0]:g_("SPAN",null,q)};
  2298. g.xs1=function(){return{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,Z:{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",
  2299. fill:"#fff"}}]}};
  2300. NP=function(){return{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Z:{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"}}]}};
  2301. g.Rh=function(){return{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},V:[{Y:"path",Z:{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"}}]}};
  2302. g.xP=function(){return{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},V:[{Y:"path",Z:{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"}}]}};
  2303. yBf=function(){return{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{Y:"path",Z:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{Y:"path",Z:{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"}}]}};
  2304. hTj=function(){return{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{Y:"path",Kn:!0,Z:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
  2305. HWN=function(){return{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{Y:"path",Kn:!0,Z:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
  2306. g.y9=function(){return{Y:"svg",Z:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{Y:"path",Z:{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"}}]}};
  2307. hi=function(){return{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM6.97 8.34C6.42 8.64 5.96 9.09 5.64 9.63L5.50 9.87C5.16 10.53 4.99 11.26 5 12L5.00 12.27C5.04 12.92 5.21 13.55 5.50 14.12L5.64 14.36C5.96 14.90 6.42 15.35 6.97 15.65L7.21 15.77C7.79 16.01 8.43 16.06 9.03 15.91L9.29 15.83C9.88 15.61 10.39 15.23 10.77 14.73C10.93 14.53 11.00 14.27 10.97 14.02C10.94 13.77 10.82 13.53 10.63 13.37C10.44 13.20 10.19 13.11 9.93 13.12C9.68 13.13 9.44 13.24 9.26 13.43L9.19 13.50C9.05 13.70 8.85 13.85 8.62 13.94L8.54 13.97C8.35 14.02 8.16 14.00 7.99 13.92L7.91 13.88C7.67 13.75 7.48 13.56 7.35 13.32L7.28 13.20C7.11 12.88 7.02 12.52 7.00 12.16L7 12C6.99 11.58 7.09 11.16 7.28 10.79L7.35 10.67C7.48 10.43 7.67 10.24 7.91 10.11C8.10 10.00 8.32 9.97 8.54 10.02L8.62 10.05C8.81 10.12 8.98 10.24 9.11 10.39L9.19 10.49L9.26 10.57C9.43 10.74 9.66 10.85 9.91 10.87C10.15 10.89 10.40 10.81 10.59 10.66C10.79 10.51 10.92 10.29 10.96 10.05C11.01 9.80 10.96 9.55 10.83 9.34L10.77 9.26L10.60 9.05C10.24 8.65 9.79 8.35 9.29 8.16L9.03 8.08C8.34 7.91 7.60 8.00 6.97 8.34ZM14.97 8.34C14.42 8.64 13.96 9.09 13.64 9.63L13.50 9.87C13.16 10.53 12.99 11.26 13 12L13.00 12.27C13.04 12.92 13.21 13.55 13.50 14.12L13.64 14.36C13.96 14.90 14.42 15.35 14.97 15.65L15.21 15.77C15.79 16.01 16.43 16.06 17.03 15.91L17.29 15.83C17.88 15.61 18.39 15.23 18.77 14.73C18.93 14.53 19.00 14.27 18.97 14.02C18.94 13.77 18.82 13.53 18.63 13.37C18.44 13.20 18.19 13.11 17.93 13.12C17.68 13.13 17.44 13.24 17.26 13.43L17.19 13.50C17.05 13.70 16.85 13.85 16.62 13.94L16.54 13.97C16.35 14.02 16.16 14.00 15.99 13.92L15.91 13.88C15.67 13.75 15.48 13.56 15.35 13.32L15.28 13.20C15.11 12.88 15.02 12.52 15.00 12.16L15 12C14.99 11.58 15.09 11.16 15.28 10.79L15.35 10.67C15.48 10.43 15.67 10.24 15.91 10.11C16.10 10.00 16.32 9.97 16.54 10.02L16.62 10.05C16.81 10.12 16.98 10.24 17.11 10.39L17.19 10.49L17.26 10.57C17.43 10.74 17.66 10.85 17.91 10.87C18.15 10.89 18.40 10.81 18.59 10.66C18.79 10.51 18.92 10.29 18.96 10.05C19.01 9.80 18.96 9.55 18.83 9.34L18.77 9.26L18.60 9.05C18.24 8.65 17.79 8.35 17.29 8.16L17.03 8.08C16.34 7.91 15.60 8.00 14.97 8.34Z",
  2308. fill:"white"}}]}};
  2309. QYn=function(){return{Y:"svg",Z:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Z:{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"}}]}};
  2310. MXj=function(){return{Y:"svg",Z:{viewBox:"0 0 24 24"},V:[{Y:"path",Z:{d:"M0 0h24v24H0z",fill:"none"}},{Y:"path",Z:{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"}}]}};
  2311. cBH=function(){return{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",Z:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]}};
  2312. EO1=function(){return{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{"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",
  2313. fill:"white","fill-rule":"evenodd"}}]}};
  2314. jYX=function(){return{Y:"svg",Z:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},V:[{Y:"path",Z:{d:"M0 0h48v48H0z",fill:"none"}},{Y:"path",Z:{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"}}]}};
  2315. asg=function(){return{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",Z:{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"}}]}};
  2316. AB7=function(){return{Y:"svg",Z:{viewBox:"0 0 24 24"},V:[{Y:"path",Z:{d:"M0 0h24v24H0z",fill:"none"}},{Y:"path",Z:{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"}}]}};
  2317. Hk=function(){return{Y:"svg",Z:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Z:{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"}}]}};
  2318. puf=function(){return{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{Y:"path",Kn:!0,Z:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
  2319. Q9=function(){return{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",Z:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
  2320. g.MP=function(){return{Y:"svg",Z:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{Y:"path",Z:{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"}}]}};
  2321. ck=function(){return{Y:"svg",Z:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},V:[{Y:"path",Z:{d:"M0 0h48v48H0z",fill:"none"}},{Y:"path",Z:{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"}}]}};
  2322. ZWj=function(){return{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",Z:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
  2323. OWN=function(){return{Y:"svg",Z:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},V:[{Y:"path",Z:{d:"M 12.75 4.5 L 9.75 4.5 C 9.15 4.5 8.58 4.73 8.15 5.15 C 7.73 5.58 7.5 6.15 7.5 6.75 L 7.5 29.25 C 7.5 29.84 7.73 30.41 8.15 30.84 C 8.58 31.26 9.15 31.5 9.75 31.5 L 12.75 31.5 C 13.34 31.5 13.91 31.26 14.34 30.84 C 14.76 30.41 15 29.84 15 29.25 L 15 6.75 C 15 6.15 14.76 5.58 14.34 5.15 C 13.91 4.73 13.34 4.5 12.75 4.5 Z M 26.25 4.5 L 23.25 4.5 C 22.65 4.5 22.08 4.73 21.65 5.15 C 21.23 5.58 21 6.15 21 6.75 V 29.25 C 21 29.84 21.23 30.41 21.65 30.84 C 22.08 31.26 22.65 31.5 23.25 31.5 L 26.25 31.5 C 26.84 31.5 27.41 31.26 27.84 30.84 C 28.26 30.41 28.5 29.84 28.5 29.25 V 6.75 L 28.5 6.75 C 28.5 6.15 28.26 5.58 27.84 5.15 C 27.41 4.73 26.84 4.5 26.25 4.5 Z",
  2324. fill:"white"}}]}};
  2325. nOn=function(){return{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",D:"ytp-svg-fill",Z:{"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"}}]}};
  2326. rBI=function(){return{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{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",
  2327. fill:"white"}}]}};
  2328. tXD=function(){return{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,Z:{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"}}]}};
  2329. Ex=function(){return{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",Z:{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"}}]}};
  2330. jx=function(){return{Y:"svg",Z:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},V:[{Y:"path",Z:{d:"M 17 8.6 L 10.89 4.99 C 9.39 4.11 7.5 5.19 7.5 6.93 C 7.5 6.93 7.5 6.93 7.5 6.93 L 7.5 29.06 C 7.5 30.8 9.39 31.88 10.89 31 C 10.89 31 10.89 31 10.89 31 L 17 27.4 C 17 27.4 17 27.4 17 27.4 C 17 27.4 17 27.4 17 27.4 L 17 8.6 C 17 8.6 17 8.6 17 8.6 C 17 8.6 17 8.6 17 8.6 Z M 17 8.6 L 17 8.6 C 17 8.6 17 8.6 17 8.6 C 17 8.6 17 8.6 17 8.6 V 27.4 C 17 27.4 17 27.4 17 27.4 C 17 27.4 17 27.4 17 27.4 L 33 18 C 33 18 33 18 33 18 C 33 18 33 18 33 18 V 18 L 17 8.6 C 17 8.6 17 8.6 17 8.6 C 17 8.6 17 8.6 17 8.6 Z",
  2331. fill:"white"}}]}};
  2332. B8H=function(){return{Y:"svg",Z:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},V:[{Y:"path",Z:{d:"M 0 1.43 C 0 .64 .64 0 1.43 0 L 18.56 0 C 19.35 0 20 .64 20 1.43 L 20 18.56 C 20 19.35 19.35 20 18.56 20 L 1.43 20 C .64 20 0 19.35 0 18.56 Z M 0 1.43 ",fill:"#c00"}},{Y:"path",Z:{d:"M 7.88 11.42 L 7.88 15.71 L 5.37 15.71 L 5.37 3.52 L 10.12 3.52 C 11.04 3.52 11.84 3.69 12.54 4.02 C 13.23 4.36 13.76 4.83 14.14 5.45 C 14.51 6.07 14.70 6.77 14.70 7.56 C 14.70 8.75 14.29 9.69 13.48 10.38 C 12.66 11.07 11.53 11.42 10.08 11.42 Z M 7.88 9.38 L 10.12 9.38 C 10.79 9.38 11.30 9.23 11.64 8.91 C 11.99 8.60 12.17 8.16 12.17 7.57 C 12.17 6.98 11.99 6.5 11.64 6.12 C 11.29 5.76 10.80 5.57 10.18 5.56 L 7.88 5.56 Z M 7.88 9.38 ",
  2333. fill:"#fff","fill-rule":"nonzero"}}]}};
  2334. K2D=function(){return{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"rect",Z:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{Y:"rect",Z:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{Y:"path",Z:{d:"M12.75 13.02H9.98V11.56H12.75C13.24 11.56 13.63 11.48 13.93 11.33C14.22 11.17 14.44 10.96 14.58 10.68C14.72 10.40 14.79 10.09 14.79 9.73C14.79 9.39 14.72 9.08 14.58 8.78C14.44 8.49 14.22 8.25 13.93 8.07C13.63 7.89 13.24 7.80 12.75 7.80H10.54V17H8.70V6.33H12.75C13.58 6.33 14.28 6.48 14.86 6.77C15.44 7.06 15.88 7.46 16.18 7.97C16.48 8.48 16.64 9.06 16.64 9.71C16.64 10.40 16.48 10.99 16.18 11.49C15.88 11.98 15.44 12.36 14.86 12.62C14.28 12.89 13.58 13.02 12.75 13.02Z",
  2335. fill:"white"}},{Y:"defs",V:[{Y:"linearGradient",Z:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},V:[{Y:"stop",Z:{offset:"0.3","stop-color":"#E1002D"}},{Y:"stop",Z:{offset:"0.9","stop-color":"#E01378"}}]}]}]}};
  2336. GyN=function(){return{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",Z:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
  2337. L2n=function(){return{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]}};
  2338. g.ah=function(){return{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",Z:{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"}}]}};
  2339. kyD=function(){return{Y:"svg",Z:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},V:[{Y:"path",Z:{d:"M11.29 2.92C14.85 1.33 18.87 1.06 22.61 2.15L22.96 2.26C26.56 3.40 29.67 5.74 31.75 8.89L31.95 9.19C33.90 12.28 34.77 15.93 34.42 19.56L34.38 19.93C34.04 22.79 32.96 25.51 31.25 27.83C29.53 30.14 27.23 31.97 24.59 33.12C21.95 34.27 19.05 34.71 16.18 34.40C13.32 34.08 10.59 33.02 8.26 31.32L7.97 31.10C4.87 28.73 2.71 25.33 1.88 21.52L3.34 21.20L4.81 20.88C5.49 24.00 7.25 26.77 9.79 28.72L10.27 29.07C12.19 30.40 14.41 31.22 16.74 31.44C19.06 31.65 21.40 31.27 23.53 30.31C25.66 29.35 27.50 27.86 28.88 25.98C30.26 24.10 31.13 21.89 31.40 19.58L31.46 18.98C31.68 16.00 30.90 13.03 29.25 10.54C27.60 8.05 25.17 6.18 22.34 5.22L21.77 5.04C19.02 4.23 16.08 4.33 13.38 5.31C10.68 6.29 8.37 8.11 6.77 10.5H10.5L10.65 10.50C11.03 10.54 11.38 10.73 11.63 11.02C11.88 11.31 12.01 11.69 11.99 12.07C11.97 12.46 11.81 12.82 11.53 13.08C11.25 13.35 10.88 13.49 10.5 13.5H1.5V4.5L1.50 4.34C1.54 3.97 1.71 3.63 1.99 3.38C2.27 3.13 2.62 3.00 3 3.00C3.37 3.00 3.72 3.13 4.00 3.38C4.28 3.63 4.45 3.97 4.49 4.34L4.5 4.5V8.51C6.21 6.07 8.56 4.13 11.29 2.92ZM24 18L15 12.75V23.25L24 18ZM3.02 19.73C2.63 19.82 2.29 20.05 2.08 20.39C1.86 20.72 1.79 21.13 1.88 21.52L4.81 20.88C4.77 20.69 4.69 20.50 4.57 20.34C4.46 20.18 4.32 20.04 4.15 19.94C3.99 19.83 3.80 19.76 3.61 19.72C3.41 19.69 3.21 19.69 3.02 19.73Z",
  2340. fill:"white"}}]}};
  2341. g.Ai=function(){return{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,Z:{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",
  2342. fill:"#fff"}}]}};
  2343. g.pM=function(){return{Y:"svg",Z:{height:"100%",viewBox:"0 0 16 16",width:"100%"},V:[{Y:"path",Z:{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"}}]}};
  2344. P5_=function(){return{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",Z:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
  2345. W26=function(){return{Y:"svg",Z:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},V:[{Y:"path",Z:{d:"M 18 6 L 9 6 C 8.20 6 7.44 6.31 6.87 6.87 C 6.31 7.44 6 8.20 6 9 L 6 27 C 6 27.79 6.31 28.55 6.87 29.12 C 7.44 29.68 8.20 30 9 30 L 18 30 C 18 30 18 30 18 30 C 18 30 18 30 18 30 L 18 6 C 18 30 18 30 18 30 C 18 30 18 30 18 30 Z M 27 6 L 18 6 C 18 6 18 6 18 6 C 18 6 18 6 18 6 V 30 C 18 30 18 30 18 30 C 18 30 18 30 18 30 L 27 30 C 27.79 30 28.55 29.68 29.12 29.12 C 29.68 28.55 30 27.79 30 27 V 9 L 30 9 C 30 8.20 29.68 7.44 29.12 6.87 C 28.55 6.31 27.79 6 27 6 Z",
  2346. fill:"white"}}]}};
  2347. C5I=function(){return{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z",
  2348. fill:"white"}}]}};
  2349. Zy=function(){return{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",Z:{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"}}]}};
  2350. Ox=function(d,q,T){q=q===void 0?!1:q;T=T===void 0?!1:T;if(!d)return null;switch(d.iconType){case "OPEN_IN_NEW":case "EXTERNAL_LINK":return T?{Y:"svg",Z:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{Y:"path",Z:{d:"M21 21H3V3h9v1H4v16h16v-8h1v9zM15 3v1h4.32l-8.03 8.03.71.71 8-8V9h1V3h-6z"}}]}:ck();case "CHECK_BOX":return{Y:"svg",Z:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{Y:"path",Z:{d:"M0 0h24v24H0z",fill:"none"}},{Y:"path",Z:{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",
  2351. fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{Y:"svg",Z:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{Y:"path",Z:{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"}},{Y:"path",Z:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.y9();case "INFO_OUTLINE":return q?{Y:"svg",Z:{fill:"#fff",height:"12px",style:"padding-top: 8px",viewBox:"0 -960 960 960",width:"12px"},V:[{Y:"path",Z:{d:"M430.09-270.8h101.34V-528H430.09v257.2Zm49.52-338.03q20.94 0 35.34-14.01 14.4-14.01 14.4-34.95 0-20.94-14.01-35.34-14.01-14.39-34.95-14.39-20.94 0-35.34 14.01-14.4 14.01-14.4 34.95 0 20.94 14.01 35.34 14.01 14.39 34.95 14.39Zm.67 548.18q-86.64 0-163.19-32.66-76.56-32.66-133.84-89.94t-89.94-133.8q-32.66-76.51-32.66-163.41 0-87.15 32.72-163.31t90.14-133.61q57.42-57.44 133.79-89.7 76.38-32.27 163.16-32.27 87.14 0 163.31 32.26 76.16 32.26 133.61 89.71 57.45 57.45 89.71 133.86 32.26 76.42 32.26 163.33 0 86.91-32.27 163.08-32.26 76.18-89.7 133.6-57.45 57.42-133.83 90.14-76.39 32.72-163.27 32.72Zm-.33-105.18q131.13 0 222.68-91.49 91.54-91.49 91.54-222.63 0-131.13-91.49-222.68-91.49-91.54-222.63-91.54-131.13 0-222.68 91.49-91.54 91.49-91.54 222.63 0 131.13 91.49 222.68 91.49 91.54 222.63 91.54ZM480-480Z"}}]}:
  2352. jYX();case "REMOVE_CIRCLE":return{Y:"svg",Z:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{Y:"path",Z:{d:"M0 0h24v24H0z",fill:"none"}},{Y:"path",Z:{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"}}]};case "SKIP_NEXT":return Q9();case "SKIP_NEXT_NEW":return{Y:"svg",Z:{height:"100%",viewBox:"-6 -6 36 36",width:"100%"},V:[{Y:"path",Z:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return AB7();
  2353. case "DISLIKE":return MXj();default:return g.OL(new g.CW("Unexpected icon:",d)),null}};
  2354. nM=function(d,q,T,Y,e,U,b,J,F){e=e===void 0?[]:e;b=b===void 0?!1:b;F=F===void 0?!1:F;e={Y:"button",hF:["ytp-ad-button"].concat(e)};J!=null&&(e.Z={tabindex:J});sx.call(this,d,e,U===void 0?"button":U,q,T,Y);this.G=this.U=this.j=null;this.X=b;this.T=F;this.hide()};
  2355. uHn=function(d){var q=null;d.G!=null&&(q=[d.G.serviceEndpoint,d.G.navigationEndpoint].filter(function(T){return T!=null}),d.G.command&&(q=q.concat(d.G.command)));
  2356. return q||[]};
  2357. rx=function(){g.W.call(this);var d=this;this.G=new Map;this.U=Sqn(function(q){if(q.target&&(q=d.G.get(q.target))&&q)for(var T=0;T<q.length;T++)g.rM(q[T])})};
  2358. Dsf=function(){ti==null&&(ti=new rx);return ti};
  2359. Bk=function(d,q){if(d.simpleText){a:{d=d.simpleText;if(q&&(q=wu_(d))){q=g_("SPAN",null,q);break a}q=g.NQ(d)}return q}var T=[];if(d.runs)for(var Y=0;Y<d.runs.length;Y++){var e=d.runs[Y];e.text&&T.push(fs6(e,q))}return T.length==1?T[0]:g_("SPAN",null,T)};
  2360. fs6=function(d,q){var T=null,Y=d.text;q&&(Y=wu_(Y)||Y);d.bold&&(T=g_("B",null,T||Y));d.italics&&(T=g_("I",null,T||Y));d.strikethrough&&(T=g_("STRIKE",null,T||Y));d.navigationEndpoint&&g.D(d.navigationEndpoint,g.KM)&&(q=g.D(d.navigationEndpoint,g.KM),T=g_("A",null,T||Y),g.sD(T,q.url),q.target=="TARGET_NEW_WINDOW"&&(T.target="_blank"),d=d.navigationEndpoint.loggingUrls)&&(d=d.map(function(e){return e.baseUrl}),Dsf().register(T,d),g.d9(T,"ytp-ad-has-logging-urls"));
  2361. return T||g_("SPAN",null,Y)};
  2362. wu_=function(d){d=d.split(/(?:\r\n|\r|\n)/g);if(d.length>1){for(var q=[d[0]],T=1;T<d.length;T++)q.push(g_("BR")),q.push(d[T]);return q}return null};
  2363. GW=function(d,q,T,Y,e,U,b,J,F){U=U===void 0?!1:U;b=b===void 0?[]:b;F=F===void 0?!1:F;sx.call(this,d,{Y:"span",hF:["ytp-ad-hover-text-button"].concat(b)},J===void 0?"ad-hover-text-button":J,q,T,Y);this.button=this.U=null;this.K=U;this.X=e;this.j=F;this.hide()};
  2364. LM=function(d){return d&&d.thumbnails&&(d.thumbnails||null).length!=0&&d.thumbnails[0].url?g.rt(d.thumbnails[0].url):""};
  2365. kP=function(d,q,T,Y,e,U){U=U===void 0?!1:U;sx.call(this,d,{Y:"img",D:"ytp-ad-image"},"ad-image",q,T,Y,e===void 0?null:e);this.G=U;this.hide()};
  2366. Pk=function(d,q,T,Y,e,U){e=e===void 0?[]:e;sx.call(this,d,{Y:"div",hF:["ytp-ad-confirm-dialog-background"],V:[{Y:"div",D:"ytp-ad-confirm-dialog-container",V:[{Y:"div",hF:["ytp-ad-confirm-dialog"].concat(e),Z:{role:"dialog",tabindex:"-1"},V:[{Y:"div",D:"ytp-ad-confirm-dialog-title",j5:"{{title}}"},{Y:"div",D:"ytp-ad-confirm-dialog-messages"},{Y:"div",D:"ytp-ad-confirm-dialog-confirm-container",V:[{Y:"button",D:"ytp-ad-confirm-dialog-cancel-button",j5:"{{cancelLabel}}"},{Y:"button",D:"ytp-ad-confirm-dialog-confirm-button",
  2367. j5:"{{confirmLabel}}"}]}]}]},{Y:"button",hF:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],V:[{Y:"span",D:"ytp-ad-button-icon",V:[g.y9()]}]}]},U===void 0?"confirm-dialog":U,q,T,Y);this.K=this.Qv("ytp-ad-confirm-dialog-close-overlay-button");this.T=this.Qv("ytp-ad-confirm-dialog-cancel-button");this.X=this.Qv("ytp-ad-confirm-dialog-confirm-button");this.UD=this.Qv("ytp-ad-confirm-dialog-messages");this.j=null;this.G=new cu;g.C(this,this.G);this.U=null;this.hide()};
  2368. zTf=function(d,q){if(q.title){var T=g.gx(q.title);d.updateValue("title",T)}if(q.dialogMessages){T=g.E(q.dialogMessages);for(var Y=T.next();!Y.done;Y=T.next())Y=Bk(Y.value),d.UD.appendChild(Y)}q.cancelLabel&&(T=g.gx(q.cancelLabel),d.updateValue("cancelLabel",T),d.G.W(d.T,"click",function(e){return d.Yu(e)}));
  2369. q.confirmLabel&&(q=g.gx(q.confirmLabel),d.updateValue("confirmLabel",q),d.G.W(d.X,"click",function(e){return d.CT(e)}));
  2370. d.G.W(d.K,"click",function(e){return d.c5(e)})};
  2371. Wk=function(d,q,T,Y,e,U){e=e===void 0?[]:e;U=U===void 0?"toggle-button":U;var b=qP("ytp-ad-toggle-button-input"),J={role:"button","aria-label":"{{tooltipText}}"};d.C().experiments.Wv("fix_h5_toggle_button_a11y")&&(J.tabindex="0");J.role="checkbox";sx.call(this,d,{Y:"div",hF:["ytp-ad-toggle-button"].concat(e),V:[{Y:"label",D:"ytp-ad-toggle-button-label",Z:{"for":b},V:[{Y:"span",D:"ytp-ad-toggle-button-icon",Z:J,V:[{Y:"span",D:"ytp-ad-toggle-button-untoggled-icon",j5:"{{untoggledIconTemplateSpec}}"},
  2372. {Y:"span",D:"ytp-ad-toggle-button-toggled-icon",j5:"{{toggledIconTemplateSpec}}"}]},{Y:"input",D:"ytp-ad-toggle-button-input",Z:{id:b,type:"checkbox"}},{Y:"span",D:"ytp-ad-toggle-button-text",j5:"{{buttonText}}"},{Y:"span",D:"ytp-ad-toggle-button-tooltip",j5:"{{tooltipText}}"}]}]},U,q,T,Y);this.T=this.Qv("ytp-ad-toggle-button");this.G=this.Qv("ytp-ad-toggle-button-input");this.U=this.Qv("ytp-ad-toggle-button-icon");this.K=this.Qv("ytp-ad-toggle-button-untoggled-icon");this.X=this.Qv("ytp-ad-toggle-button-toggled-icon");
  2373. this.z2=this.Qv("ytp-ad-toggle-button-text");this.j=null;this.UD=!1;this.hide()};
  2374. CM=function(d){d.UD&&(d.isToggled()?(g.dv(d.K,!1),g.dv(d.X,!0),d.U.setAttribute("aria-checked",!0)):(g.dv(d.K,!0),g.dv(d.X,!1),d.U.setAttribute("aria-checked",!1)))};
  2375. iWj=function(d,q){var T=null;d.j&&(T=(q?[d.j.defaultServiceEndpoint,d.j.defaultNavigationEndpoint]:[d.j.toggledServiceEndpoint]).filter(function(Y){return Y!=null}));
  2376. return T||[]};
  2377. IsI=function(d,q,T){this.actionType=q;this.id=T;this.content=d};
  2378. uE=function(d){cu.call(this);this.G=d;this.W(this.G,"onAdUxUpdate",this.S)};
  2379. Dy=function(d,q,T,Y){sx.call(this,d,{Y:"div",D:"ytp-ad-feedback-dialog-background",V:[{Y:"div",D:"ytp-ad-feedback-dialog-container",V:[{Y:"div",D:"ytp-ad-feedback-dialog-form",Z:{role:"dialog",tabindex:"-1"},V:[{Y:"div",D:"ytp-ad-feedback-dialog-title",V:[{Y:"span",j5:"{{title}}"}]},{Y:"span",D:"ytp-ad-info-dialog-feedback-options-title",j5:"{{reasonsTitle}}"},{Y:"div",D:"ytp-ad-info-dialog-feedback-options"},{Y:"div",D:"ytp-ad-feedback-dialog-confirm-container",V:[{Y:"button",D:"ytp-ad-feedback-dialog-cancel-button",
  2380. j5:"{{cancelLabel}}"},{Y:"button",D:"ytp-ad-feedback-dialog-confirm-button",j5:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",q,T,Y);this.T=[];this.G=null;this.X=this.Qv("ytp-ad-feedback-dialog-cancel-button");this.K=this.Qv("ytp-ad-feedback-dialog-confirm-button");this.UD=this.Qv("ytp-ad-info-dialog-feedback-options");this.z2=this.Qv("ytp-ad-feedback-dialog-title");this.j=this.U=null;this.hide()};
  2381. vO2=function(d,q){var T=q.cancelRenderer&&q.cancelRenderer.buttonRenderer||null;T&&(d.G=new nM(d.api,d.layoutId,d.interactionLoggingClientData,d.Nk,["ytp-ad-feedback-dialog-close-button"],"button"),g.C(d,d.G),d.G.init(qP("button"),T,d.macros),d.G.listen("click",d.On,d),d.G.IU(d.element));q.title&&(T=g.gx(q.title),d.updateValue("title",T));q.reasonsTitle&&(T=g.gx(q.reasonsTitle),d.updateValue("reasonsTitle",T));q.reasons&&msg(d,q.reasons);q.cancelLabel&&(T=g.gx(q.cancelLabel),d.updateValue("cancelLabel",
  2382. T),g.yi(d.X,"click",function(){return d.On()}));
  2383. q.confirmLabel&&(T=g.gx(q.confirmLabel),d.updateValue("confirmLabel",T),g.yi(d.K,"click",function(){return SdI(d)}));
  2384. q.undoRenderer&&lsN(d,q.undoRenderer)};
  2385. msg=function(d,q){q=g.E(q);for(var T=q.next();!T.done;T=q.next()){var Y=T.value;T=Y.reason;if(T==null)g.OL(Error("AdFeedbackReason.reason was not set."));else if(Y=Y.endpoint,Y==null)g.OL(Error("AdFeedbackReason.endpoint was not set."));else{T=new wx(T,Y);g.C(d,T);Y=d.UD;var e=T.tA();Y.appendChild(e);d.T.push(T)}}};
  2386. lsN=function(d,q){if(q=q&&q.buttonRenderer||null)q.serviceEndpoint?(d.U=new nM(d.api,d.layoutId,d.interactionLoggingClientData,d.Nk,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.C(d,d.U),d.U.init(qP("ad-feedback-undo-mute-button"),q,d.macros),d.U.listen("click",d.tTD,d),d.U.IU(d.z2)):g.OL(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
  2387. SdI=function(d){var q=d.T.filter(function(T){return T.isChecked()});
  2388. q.length!==0&&(q=q[0].getCommand(),d.layoutId?d.Nk.executeCommand(q,d.layoutId):g.Zz(Error("Missing layoutId for ad feedback dialog.")),d.api.onAdUxClicked("ad-feedback-dialog-confirm-button",d.layoutId),d.publish("a"),d.hide())};
  2389. wx=function(d,q){this.U=q;this.G=new g.Ji({Y:"label",D:"ytp-ad-feedback-dialog-reason-label",V:[{Y:"input",D:"ytp-ad-feedback-dialog-reason-input",Z:{type:"radio",name:"feedback-reason-group"}},{Y:"span",D:"ytp-ad-feedback-dialog-reason-text",j5:g.gx(d)}]});this.j=this.G.Qv("ytp-ad-feedback-dialog-reason-input")};
  2390. fM=function(d,q,T,Y){Pk.call(this,d,q,T,Y,[],"ad-mute-confirm-dialog")};
  2391. zW=function(d,q,T,Y,e){sx.call(this,d,{Y:"div",D:"ytp-ad-info-dialog-background",V:[{Y:"div",D:"ytp-ad-info-dialog-container",V:[{Y:"div",D:"ytp-ad-info-dialog-form",Z:{role:"dialog",tabindex:"-1"},V:[{Y:"div",D:"ytp-ad-info-dialog-title",j5:"{{title}}"},{Y:"ul",D:"ytp-ad-info-dialog-ad-reasons"},{Y:"div",D:"ytp-ad-info-dialog-message"},{Y:"div",D:"ytp-ad-info-dialog-mute-container"},{Y:"div",D:"ytp-ad-info-dialog-confirm-container",V:[{Y:"button",D:"ytp-ad-info-dialog-confirm-button",j5:"{{confirmLabel}}"}]}]}]}]},
  2392. "ad-info-dialog",q,T,Y);this.G=this.U=null;this.K=this.Qv("ytp-ad-info-dialog-confirm-button");this.Fw=this.Qv("ytp-ad-info-dialog-mute-container");this.qk=this.Qv("ytp-ad-info-dialog-message");this.aU=this.Qv("ytp-ad-info-dialog-ad-reasons");this.T=this.j=null;this.z2=e;this.X=null;this.RU=!1;this.UD=null;this.hide()};
  2393. oO_=function(d,q){if(q=q.content&&q.content.adFeedbackRenderer||null)d.U=new Dy(d.api,d.layoutId,d.interactionLoggingClientData,d.Nk),g.C(d,d.U),d.U.init(qP("ad-feedback-dialog"),q,d.macros),d.U.IU(d.z2),d.U.subscribe("a",function(){return d.publish("c")})};
  2394. VX2=function(d,q){if(q=q.content&&q.content.confirmDialogRenderer||null)d.T=new fM(d.api,d.layoutId,d.interactionLoggingClientData,d.Nk),g.C(d,d.T),d.T.init(qP("ad-mute-confirm-dialog"),q,d.macros),d.T.IU(d.z2),d.T.subscribe("b",function(){return d.publish("c")})};
  2395. dwN=function(d){d.G&&d.G.listen("click",d.QQ,d);g.yi(d.K,"click",function(){return d.QQ()})};
  2396. iE=function(d,q,T,Y,e,U,b){GW.call(this,d,q,T,Y,U===void 0?!0:U,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button",b===void 0?!1:b);this.G=null;this.T=e;this.hide()};
  2397. TO6=function(d,q,T){q=q.dialog&&g.D(q.dialog,q2Q)||null;q==null?g.Zz(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(d.G=new zW(d.api,d.layoutId,d.interactionLoggingClientData,d.Nk,d.T),g.C(d,d.G),d.G.init(qP("ad-info-dialog"),q,T),d.G.IU(d.T),d.G.subscribe("d",function(){return d.publish("f")}),d.G.subscribe("c",function(){return d.publish("e")}))};
  2398. Uw7=function(d,q,T){d.button==null?g.Zz(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(d.U&&g.d9(d.U.element,"ytp-ad-info-hover-text-short"),(q=q&&q.serviceEndpoint&&g.D(q.serviceEndpoint,Y2j)||null)?(TO6(d,q,T),d.button.listen("click",function(){d.G&&!d.G.PF&&(d.G.show(),eG_(d))})):d.button.listen("click",function(){return eG_(d)}))};
  2399. eG_=function(d){d.api.onAdUxClicked("ad-info-icon-button",d.layoutId)};
  2400. Ih=function(d,q,T,Y,e,U){sx.call(this,d,{Y:"div",D:"ytp-ad-text"},U===void 0?"ad-text":U,q,T,Y,e===void 0?null:e);this.G=null;this.hide()};
  2401. mr=function(d,q){q&&g.Qp(d.element,$P(d.G,q))};
  2402. Sx=function(d,q,T,Y,e,U,b){sx.call(this,d,q,T,Y,e,U);this.G=b;g.C(this,this.G);this.RU=this.K=-1};
  2403. lE=function(d){d.G&&d.K===-1&&(d.K=d.G.subscribe("h",d.Ba,d),d.RU=d.G.subscribe("g",d.K3,d),d.Ba())};
  2404. vk=function(d){d.G!=null&&d.K!==-1&&(d.G.Br(d.K),d.G.Br(d.RU),d.RU=-1,d.K=-1)};
  2405. g.oh=function(d,q,T,Y,e,U){g.W.call(this);this.element=d;this.state=null;T||d.hide();this.U=q;this.j=Y===void 0?q:Y;this.G=U;this.onHidden=e;this.delay=new g.f9(this.fR,0,this);g.C(this,this.delay)};
  2406. V9=function(d,q){d=d.element.element;q?d.setAttribute("aria-hidden","true"):d.removeAttribute("aria-hidden")};
  2407. ds=function(d,q,T,Y,e,U){Sx.call(this,d,{Y:"div",D:"ytp-ad-preview-slot"},"ad-preview",q,T,Y,e);var b=this;this.Fw=-1;this.T=this.api.C().experiments.Wv("enable_modern_skip_button_on_web");this.U=new g.Ji({Y:"span",D:"ytp-ad-preview-container"});this.T&&this.U.element.classList.add("ytp-ad-preview-container-detached");g.C(this,this.U);this.j=this.T?new Ih(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,"ytp-ad-preview-text-modern"):new Ih(this.api,this.layoutId,this.interactionLoggingClientData,
  2408. this.Nk,"ytp-ad-preview-text");g.C(this,this.j);this.j.IU(this.U.element);this.z2=this.T?new g.Ji({Y:"span",D:"ytp-ad-preview-image-modern"}):new g.Ji({Y:"span",D:"ytp-ad-preview-image"});g.C(this,this.z2);this.X=new kP(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk);g.C(this,this.X);this.X.IU(this.z2.element);this.z2.IU(this.U.element);this.U.IU(this.element);this.UD=new g.oh(this.U,400,!1,100,function(){return b.hide()});
  2409. g.C(this,this.UD);this.aU=0;this.qk=!1;this.Bv=U;this.hide()};
  2410. qY=function(d,q,T,Y,e,U){Sx.call(this,d,{Y:"div",hF:["ytp-flyout-cta","ytp-flyout-cta-inactive"],V:[{Y:"div",D:"ytp-flyout-cta-icon-container"},{Y:"div",D:"ytp-flyout-cta-body",V:[{Y:"div",D:"ytp-flyout-cta-text-container",V:[{Y:"div",D:"ytp-flyout-cta-headline-container"},{Y:"div",D:"ytp-flyout-cta-description-container"}]},{Y:"div",D:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",q,T,Y,e);this.j=new kP(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,"ytp-flyout-cta-icon");
  2411. g.C(this,this.j);this.j.IU(this.Qv("ytp-flyout-cta-icon-container"));this.j.element.classList.add("ytp-flyout-cta-icon-rounded");this.X=new Ih(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,"ytp-flyout-cta-headline");g.C(this,this.X);this.X.IU(this.Qv("ytp-flyout-cta-headline-container"));this.T=new Ih(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,"ytp-flyout-cta-description");g.C(this,this.T);this.T.IU(this.Qv("ytp-flyout-cta-description-container"));d=["ytp-flyout-cta-action-button"];
  2412. this.api.C().N("web_modern_buttons")&&d.push("ytp-flyout-cta-action-button-rounded");this.U=new nM(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,d);g.C(this,this.U);this.U.IU(this.Qv("ytp-flyout-cta-action-button-container"));this.U.element.setAttribute("tabIndex","-1");kM(this.U.element);this.UD=null;this.z2=0;this.aU=U;this.hide()};
  2413. Tc=function(d,q,T,Y,e){sx.call(this,d,{Y:"div",D:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",q,T,Y,e===void 0?null:e);var U=this;this.G=null;this.j=new Wk(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,["ytp-ad-instream-user-sentiment-like-button"]);g.C(this,this.j);this.j.IU(this.element);this.U=new Wk(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,["ytp-ad-instream-user-sentiment-dislike-button"]);g.C(this,this.U);this.U.IU(this.element);
  2414. this.T=new g.oh(this,400,!1,500,function(){return U.hide()});
  2415. g.C(this,this.T);this.hide()};
  2416. Yo=function(d,q,T,Y,e,U){e=e===void 0?0:e;U=U===void 0?!1:U;g.W.call(this);this.U=d;this.j=!1;this.K=Y;this.lr=U;this.X=!1;this.G=null;q>0&&(this.G=new g.f9(this.Sx,q,this),g.C(this,this.G));this.S=new g.f9(this.Sx,T,this);g.C(this,this.S);this.B=K4Y(this.U,e,1,Y);g.C(this,this.B);this.L=K4Y(this.U,0,Y,1);g.C(this,this.L);this.T=new cu;g.C(this,this.T)};
  2417. eC=function(d,q,T){this.U=d;this.isAsync=q;this.G=T};
  2418. b7H=function(d){switch(d){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:$S(d,"unknown result type")}};
  2419. Xj_=function(d,q){var T=1;d.isTrusted===!1&&(T=0);Wq("ISDSTAT",T);UP(T,"i.s_",{triggerContext:"sk",metadata:q});return T};
  2420. Jr6=function(d,q){var T=[];q?q.isTrusted===!0?T.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):q.isTrusted===!1?T.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):T.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):T.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");UP(0,"a.s_",{metadata:d,states:T});Wq("ASDSTAT",0)};
  2421. UP=function(d,q,T){q=sJ1[q];var Y,e,U={detected:d===0,source:""+q.U+((Y=T.triggerContext)!=null?Y:"")+((e=T.gX)!=null?e:""),detectionStates:T.states,durationMs:T.AR};T.metadata&&(U.contentCpn=T.metadata.contentCpn,U.adCpn=T.metadata.adCpn);g.Ta("biscottiBasedDetection",U);q.G!==void 0&&(T=Number(g.Cs("CATSTAT",0)),q.G!==void 0?(q=q.G,d=b7H(d),d=T&~(3<<q)|d<<q):d=T,Wq("CATSTAT",d))};
  2422. b2=function(d){return d?"layout: "+d.layoutType:""};
  2423. X$=function(d,q,T){return d?!0:(g.OL(new g.CW("Assertion: "+q,T)),!1)};
  2424. Jm=function(d,q,T,Y,e){Y=Y===void 0?{}:Y;if(!e||Math.random()<5E-4){q=q||null;T=T||null;d=d instanceof Error?d:new g.CW(d);if(d.args)for(var U=g.E(d.args),b=U.next();!b.done;b=U.next())b=b.value,b instanceof Object&&(Y=Object.assign({},b,Y));Y.category="H5 Ads Control Flow";q&&(Y.slot=q?"slot: "+q.slotType:"");T&&(Y.layout=b2(T),Y.layoutId=T.layoutId);e&&(Y.known_error_aggressively_sampled=!0);d.args=[Y];g.OL(d)}};
  2425. g.sP=function(d,q){this.state=d;this.oldState=q};
  2426. $o=function(d,q){return g.I(d.state,q)&&!g.I(d.oldState,q)?1:!g.I(d.state,q)&&g.I(d.oldState,q)?-1:0};
  2427. g.gs=function(d,q){return $o(d,q)>0};
  2428. F$=function(d,q,T,Y,e,U){Sx.call(this,d,{Y:"div",D:"ytp-ad-skip-button-slot"},"skip-button",q,T,Y,e);var b=this;this.UD=null;this.z2=!1;this.qk=U;this.X=this.api.C().experiments.Wv("enable_modern_skip_button_on_web");this.Fw=!1;this.T=new g.Ji({Y:"span",hF:["ytp-ad-skip-button-container"]});this.X&&this.T.element.classList.add("ytp-ad-skip-button-container-detached");g.C(this,this.T);this.T.IU(this.element);this.U=this.j=null;this.Bv=new g.oh(this.T,500,!1,100,function(){return b.hide()});
  2429. g.C(this,this.Bv);this.aU=new Yo(this.T.element,15E3,5E3,.5,.5,this.X);g.C(this,this.aU);this.hide()};
  2430. g7_=function(d){d=d.UD&&d.UD.adRendererCommands;return(d&&d.clickCommand&&g.D(d.clickCommand,g.NY)&&g.D(d.clickCommand,g.NY).commands||[]).some(function(q){return q.adLifecycleCommand?$wf(q.adLifecycleCommand):!1})};
  2431. $wf=function(d){return d.action==="END_LINEAR_AD"||d.action==="END_LINEAR_AD_PLACEMENT"};
  2432. Ru=function(d,q,T,Y,e,U){Sx.call(this,d,{Y:"div",D:"ytp-ad-skip-ad-slot"},"skip-ad",q,T,Y,e);this.UD=U;this.T=!1;this.X=0;this.j=this.U=null;this.hide()};
  2433. FYQ=function(d,q){d.T||(d.T=!0,d.U&&(q?d.U.UD.hide():d.U.hide()),q?(d=d.j,d.Bv.show(),d.show()):d.j.show())};
  2434. xo=function(d,q,T,Y){nM.call(this,d,q,T,Y,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
  2435. yZ=function(d,q,T,Y,e,U,b){U=U===void 0?!1:U;b=b===void 0?!1:b;sx.call(this,d,{Y:"span",D:"ytp-ad-simple-ad-badge"},"simple-ad-badge",q,T,Y);this.j=e;this.G=this.Qv("ytp-ad-simple-ad-badge");(this.U=U)&&this.G.classList.add("ytp-ad-simple-ad-badge--clean-player");b&&this.G.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()};
  2436. hm=function(d,q,T,Y,e){e=e===void 0?!1:e;TW.call(this,"player-overlay",d,{},q,Y);this.videoAdDurationSeconds=T;this.interactionLoggingClientData=Y;this.jO=e};
  2437. HG=function(d,q){g.YP.call(this);this.api=d;this.durationMs=q;this.G=null;this.CC=new cu(this);g.C(this,this.CC);this.U=NO2;this.CC.W(this.api,"presentingplayerstatechange",this.Ml);this.G=this.CC.W(this.api,"onAdPlaybackProgress",this.Yc)};
  2438. QZ=function(d){g.YP.call(this);this.G=!1;this.MQ=0;this.CC=new cu(this);g.C(this,this.CC);this.durationMs=d;this.timer=new g.KK(100);g.C(this,this.timer);this.CC.W(this.timer,"tick",this.Yc);this.U={seekableStart:0,seekableEnd:d/1E3,current:0};this.start()};
  2439. g.MY=function(d,q){var T=Math.abs(Math.floor(d)),Y=Math.floor(T/86400),e=Math.floor(T%86400/3600),U=Math.floor(T%3600/60);T=Math.floor(T%60);if(q){q="";Y>0&&(q+=" "+Y+" \u5929");if(Y>0||e>0)q+=" "+e+" \u5c0f\u65f6";q+=" "+U+" \u5206\u949f";q+=" "+T+" \u79d2";Y=q.trim()}else{q="";Y>0&&(q+=Y+":",e<10&&(q+="0"));if(Y>0||e>0)q+=e+":",U<10&&(q+="0");q+=U+":";T<10&&(q+="0");Y=q+T}return d>=0?Y:"-"+Y};
  2440. g.cG=function(d){return(!("button"in d)||typeof d.button!=="number"||d.button===0)&&!("shiftKey"in d&&d.shiftKey)&&!("altKey"in d&&d.altKey)&&!("metaKey"in d&&d.metaKey)&&!("ctrlKey"in d&&d.ctrlKey)};
  2441. EP=function(d,q,T,Y,e,U,b){Sx.call(this,d,{Y:"span",D:b?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",q,T,Y,e);this.videoAdDurationSeconds=U;this.U=null;b&&this.api.C().U&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),uR&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()};
  2442. jC=function(d,q,T,Y){Ih.call(this,d,q,T,Y,"ytp-video-ad-top-bar-title","ad-title")};
  2443. au=function(d){this.content=d.content;if(d.commandRuns){d=g.E(d.commandRuns);for(var q=d.next();!q.done;q=d.next())q=q.value,this.loggingDirectives=g.D(q,RGD),q.onTap&&(this.interaction={onTap:q.onTap})}};
  2444. Am=function(d,q,T,Y){sx.call(this,d,{Y:"div",D:"ad-simple-attributed-string"},"ad-simple-attributed-string",q,T,Y);this.hide()};
  2445. pG=function(d,q,T,Y,e){sx.call(this,d,{Y:"span",D:e?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",q,T,Y);this.U=e;this.adBadgeText=new Am(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk);this.adBadgeText.IU(this.element);g.C(this,this.adBadgeText);e?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),uR&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()};
  2446. Z0=function(d,q,T,Y){sx.call(this,d,{Y:"span",D:"ytp-ad-pod-index"},"ad-pod-index",q,T,Y);this.api.C().U&&(this.element.classList.add("ytp-ad-pod-index--mweb"),uR&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()};
  2447. OP=function(d,q,T,Y){sx.call(this,d,{Y:"div",D:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",q,T,Y);this.hide()};
  2448. nG=function(d,q){this.U=d;this.G=q};
  2449. xw2=function(d,q){return d.U+q*(d.G-d.U)};
  2450. rs=function(d,q,T){return d.G-d.U?g.Cn((q-d.U)/(d.G-d.U),0,1):T!=null?T:Infinity};
  2451. tm=function(d,q,T,Y){Y=Y===void 0?!1:Y;g.Ji.call(this,{Y:"div",D:"ytp-ad-persistent-progress-bar-container",V:[{Y:"div",D:"ytp-ad-persistent-progress-bar"}]});this.api=d;this.U=q;this.j=T;Y&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.C(this,this.U);this.progressBar=this.Qv("ytp-ad-persistent-progress-bar");this.G=-1;this.W(d,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
  2452. BG=function(d,q,T,Y,e,U){sx.call(this,d,{Y:"div",D:"ytp-ad-player-overlay",V:[{Y:"div",D:"ytp-ad-player-overlay-flyout-cta"},{Y:"div",D:"ytp-ad-player-overlay-instream-info"},{Y:"div",D:"ytp-ad-player-overlay-skip-or-preview"},{Y:"div",D:"ytp-ad-player-overlay-progress-bar"},{Y:"div",D:"ytp-ad-player-overlay-instream-user-sentiment"},{Y:"div",D:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",q,T,Y);this.K=U;this.X=this.Qv("ytp-ad-player-overlay-flyout-cta");this.X.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");
  2453. this.G=this.Qv("ytp-ad-player-overlay-instream-info");this.T=null;yr1(this)&&(d=g_("div"),g.d9(d,"ytp-ad-player-overlay-top-bar-gradients"),q=this.G,q.parentNode&&q.parentNode.insertBefore(d,q),(q=this.api.getVideoData(2))&&q.isListed&&q.title&&(T=new jC(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),T.IU(d),T.init(qP("ad-title"),{text:q.title},this.macros),g.C(this,T)),this.T=d);this.j=null;this.RU=this.Qv("ytp-ad-player-overlay-skip-or-preview");this.aU=this.Qv("ytp-ad-player-overlay-progress-bar");
  2454. this.z2=this.Qv("ytp-ad-player-overlay-instream-user-sentiment");this.UD=this.Qv("ytp-ad-player-overlay-ad-disclosure-banner");this.U=e;g.C(this,this.U);this.hide()};
  2455. yr1=function(d){d=d.api.C();return g.KG(d)&&d.U};
  2456. g.Gc=function(d){d&=16777215;var q=[(d&16711680)>>16,(d&65280)>>8,d&255];d=q[0];var T=q[1];q=q[2];d=Number(d);T=Number(T);q=Number(q);if(d!=(d&255)||T!=(T&255)||q!=(q&255))throw Error('"('+d+","+T+","+q+'") is not a valid RGB color');T=d<<16|T<<8|q;return d<16?"#"+(16777216|T).toString(16).slice(1):"#"+T.toString(16)};
  2457. g.LG=function(){};
  2458. H7f=function(d){var q=new XP;var T=new bm;T=K2(T,1,"botguard");d=K2(T,2,d);this.G=LnH(q,bm,1,hG6,d)};
  2459. ko=function(d){this.G=new jp(d)};
  2460. QJ6=function(){var d=!1;try{d=!!window.sessionStorage.getItem("session_logininfo")}catch(q){d=!0}return(g.Cs("INNERTUBE_CLIENT_NAME")==="WEB"||g.Cs("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&d};
  2461. PG=function(){var d=d===void 0?!0:d;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");Wq("LOGIN_INFO","");d&&window.sessionStorage.setItem("from_switch_account","1");d=!0;d=d===void 0?!1:d;var q,T=MF_;T||(T=document.querySelector("#persist_identity"));if(q=T){var Y=q.src?(new URL(q.src)).origin:"*";if(d){var e;(e=q.contentWindow)==null||e.postMessage({action:"clear"},Y)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
  2462. 2)){var U=window.sessionStorage.getItem("session_logininfo");if(U){var b;(b=q.contentWindow)==null||b.postMessage({loginInfo:U},Y)}}}}catch(J){}};
  2463. WG=function(d){d&&(d.startsWith("https://accounts.google.com/AddSession")?PG():d.startsWith("https://accounts.google.com/ServiceLogin")?PG():d.startsWith("https://myaccount.google.com")&&g.J_(d).U.endsWith("/youtubeoptions")&&PG());if(g.Cs("LOGGED_IN",!0)&&QJ6()){var q=g.Cs("VALID_SESSION_TEMPDATA_DOMAINS",[]);var T=g.sb(window.location.href);T&&q.push(T);T=g.sb(d);g.cR(q,T)||!T&&ON(d,"/")?(q=gQ(d),(q=zu_(q))?(q=GtH(q),q=(q=g.r7(q)||null)?lF(q):{}):q=null):q=null;q==null&&(q={});T=q;var Y=void 0;
  2464. QJ6()?(Y||(Y=g.Cs("LOGIN_INFO")),Y?(T.session_logininfo=Y,T=!0):T=!1):T=!1;T&&ca(d,q)}};
  2465. g.cr1=function(d){var q=q===void 0?{}:q;var T=T===void 0?"":T;var Y=Y===void 0?window:Y;d=g.y6(d,q);WG(d);T=g.b4(d+T);Y=Y.location;T=Jn(T);T!==void 0&&(Y.href=T)};
  2466. g.CG=function(d,q,T){q=q===void 0?{}:q;T=T===void 0?!1:T;var Y=g.Cs("EVENT_ID");Y&&(q.ei||(q.ei=Y));q&&ca(d,q);T||(WG(d),g.cr1(d))};
  2467. g.u2=function(d,q,T,Y,e){e=e===void 0?!1:e;T&&ca(d,T);T=g.b4(d);var U=g.YS(T);d!=U&&IE(Error("Unsafe window.open URL: "+d));d=U;q=q||tn(d).toString(36);try{if(e)return e=d,e=FRH(e),WG(e),g.Ry(window,e,q,"attributionsrc")}catch(b){g.z2(b)}WG(d);return g.Ry(window,T,q,Y)};
  2468. E7Q=function(d){D0=d};
  2469. jJg=function(d){ws=d};
  2470. aPY=function(d){fG=d};
  2471. pjg=function(){Ar7=fG=ws=D0=null};
  2472. O7X=function(){var d=d===void 0?window.location.href:d;if(g.RD("kevlar_disable_theme_param"))return null;var q=$f(d);if(g.RD("enable_dark_theme_only_on_shorts")&&q!=null&&q.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var T=g.oE(d).theme;return Z7D.get(T)||null}catch(Y){}return null};
  2473. zc=function(){this.G={};if(this.U=Q2Y()){var d=g.r7("CONSISTENCY");d&&n7j(this,{encryptedTokenJarContents:d})}};
  2474. n7j=function(d,q){if(q.encryptedTokenJarContents&&(d.G[q.encryptedTokenJarContents]=q,typeof q.expirationSeconds==="string")){var T=Number(q.expirationSeconds);setTimeout(function(){delete d.G[q.encryptedTokenJarContents]},T*1E3);
  2475. d.U&&g.nZ("CONSISTENCY",q.encryptedTokenJarContents,T,void 0,!0)}};
  2476. Iu=function(){this.U=-1;var d=g.Cs("LOCATION_PLAYABILITY_TOKEN");g.Cs("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=i2(this))&&(d=this.localStorage.get("yt-location-playability-token"));d&&(this.locationPlayabilityToken=d,this.G=void 0)};
  2477. i2=function(d){return d.localStorage===void 0?new l5("yt-client-location"):d.localStorage};
  2478. g.mV=function(d,q,T){q=q===void 0?!1:q;T=T===void 0?!1:T;var Y=g.Cs("INNERTUBE_CONTEXT");if(!Y)return g.Zz(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};Y=g.yl(Y);g.RD("web_no_tracking_params_in_shell_killswitch")||delete Y.clickTracking;Y.client||(Y.client={});var e=Y.client;e.clientName==="MWEB"&&e.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(e.clientFormFactor=g.Cs("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");e.screenWidthPoints=window.innerWidth;e.screenHeightPoints=
  2479. window.innerHeight;e.screenPixelDensity=Math.round(window.devicePixelRatio||1);e.screenDensityFloat=window.devicePixelRatio||1;e.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var U=U===void 0?!1:U;g.KW();var b="USER_INTERFACE_THEME_LIGHT";g.Gy(0,165)?b="USER_INTERFACE_THEME_DARK":g.Gy(0,174)?b="USER_INTERFACE_THEME_LIGHT":!g.RD("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&
  2480. (b="USER_INTERFACE_THEME_DARK");U=U?b:O7X()||b;e.userInterfaceTheme=U;if(!q){if(U=UK_())e.connectionType=U;g.RD("web_log_effective_connection_type")&&(U=Xhj())&&(Y.client.effectiveConnectionType=U)}var J;if(g.RD("web_log_memory_total_kbytes")&&((J=g.oQ.navigator)==null?0:J.deviceMemory)){var F;J=(F=g.oQ.navigator)==null?void 0:F.deviceMemory;Y.client.memoryTotalKbytes=""+J*1E6}g.RD("web_gcf_hashes_innertube")&&(U=R6_())&&(F=U.coldConfigData,J=U.coldHashData,U=U.hotHashData,Y.client.configInfo=Y.client.configInfo||
  2481. {},F&&(Y.client.configInfo.coldConfigData=F),J&&(Y.client.configInfo.coldHashData=J),U&&(Y.client.configInfo.hotHashData=U));F=g.oE(g.oQ.location.href);!g.RD("web_populate_internal_geo_killswitch")&&F.internalcountrycode&&(e.internalGeo=F.internalcountrycode);e.clientName==="MWEB"||e.clientName==="WEB"?(e.mainAppWebInfo||(e.mainAppWebInfo={}),e.mainAppWebInfo.graftUrl=g.oQ.location.href,g.RD("kevlar_woffle")&&oHg.instance&&(F=oHg.instance,e.mainAppWebInfo.pwaInstallabilityStatus=!F.G&&F.U?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":
  2482. "PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=r8(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):e.clientName==="TVHTML5"&&(!g.RD("web_lr_app_quality_killswitch")&&(F=g.Cs("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:F})),F=g.Cs("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:F}));if(!g.RD("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!==
  2483. "undefined")try{var N=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(P){}N=void 0}N&&(e.timeZone=N)}(N=yB())?e.experimentsToken=N:delete e.experimentsToken;N=hd();zc.instance||(zc.instance=new zc);Y.request=Object.assign({},Y.request,{internalExperimentFlags:N,consistencyTokenJars:eY(zc.instance.G)});!g.RD("web_prequest_context_killswitch")&&(N=g.Cs("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(Y.request.externalPrequestContext=N);e=g.KW();N=g.Gy(0,58);e=e.get("gsml","");Y.user=Object.assign({},
  2484. Y.user);N&&(Y.user.enableSafetyMode=N);e&&(Y.user.lockedSafetyMode=!0);g.RD("warm_op_csn_cleanup")?T&&(q=g.Q0())&&(Y.clientScreenNonce=q):!q&&(q=g.Q0())&&(Y.clientScreenNonce=q);d&&(Y.clickTracking={clickTrackingParams:d});if(d=g.qx("yt.mdx.remote.remoteClient_"))Y.remoteClient=d;Iu.getInstance().setLocationOnInnerTubeContext(Y);try{var R=bb(),x=R.bid;delete R.bid;Y.adSignalsInfo={params:[],bid:x};for(var y=g.E(Object.entries(R)),h=y.next();!h.done;h=y.next()){var H=g.E(h.value),a=H.next().value,
  2485. p=H.next().value;R=a;x=p;d=void 0;(d=Y.adSignalsInfo.params)==null||d.push({key:R,value:""+x})}var t,n;if(((t=Y.client)==null?void 0:t.clientName)==="TVHTML5"||((n=Y.client)==null?void 0:n.clientName)==="TVHTML5_UNPLUGGED"){var K=g.Cs("INNERTUBE_CONTEXT");K.adSignalsInfo&&(Y.adSignalsInfo.advertisingId=K.adSignalsInfo.advertisingId,Y.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",Y.adSignalsInfo.limitAdTracking=K.adSignalsInfo.limitAdTracking)}}catch(P){g.Zz(P)}return Y};
  2486. BOI=function(d,q){if(!d)return!1;var T,Y=(T=g.D(d,rrg))==null?void 0:T.signal;if(Y&&q.aP)return!!q.aP[Y];var e;if((T=(e=g.D(d,tF_))==null?void 0:e.request)&&q.F$)return!!q.F$[T];for(var U in d)if(q.SY[U])return!0;return!1};
  2487. KY_=function(d){var q={"Content-Type":"application/json"};g.Cs("EOM_VISITOR_DATA")?q["X-Goog-EOM-Visitor-Id"]=g.Cs("EOM_VISITOR_DATA"):g.Cs("VISITOR_DATA")&&(q["X-Goog-Visitor-Id"]=g.Cs("VISITOR_DATA"));q["X-Youtube-Bootstrap-Logged-In"]=g.Cs("LOGGED_IN",!1);g.Cs("DEBUG_SETTINGS_METADATA")&&(q["X-Debug-Settings-Metadata"]=g.Cs("DEBUG_SETTINGS_METADATA"));d!=="cors"&&((d=g.Cs("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(q["X-Youtube-Client-Name"]=d),(d=g.Cs("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(q["X-Youtube-Client-Version"]=
  2488. d),(d=g.Cs("CHROME_CONNECTED_HEADER"))&&(q["X-Youtube-Chrome-Connected"]=d),(d=g.Cs("DOMAIN_ADMIN_STATE"))&&(q["X-Youtube-Domain-Admin-State"]=d),g.Cs("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(d=g.Cs("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(q["X-YouTube-Lava-Device-Context"]=d));return q};
  2489. GaD=function(){this.G={}};
  2490. SC=function(){this.mappings=new GaD};
  2491. l2=function(d){return function(){return new d}};
  2492. kaY=function(d){var q=q===void 0?"UNKNOWN_INTERFACE":q;if(d.length===1)return d[0];var T=LY2[q];if(T){T=new RegExp(T);for(var Y=g.E(d),e=Y.next();!e.done;e=Y.next())if(e=e.value,T.exec(e))return e}var U=[];Object.entries(LY2).forEach(function(b){var J=g.E(b);b=J.next().value;J=J.next().value;q!==b&&U.push(J)});
  2493. T=new RegExp(U.join("|"));d.sort(function(b,J){return b.length-J.length});
  2494. Y=g.E(d);for(e=Y.next();!e.done;e=Y.next())if(e=e.value,!T.exec(e))return e;return d[0]};
  2495. g.vG=function(d){return"/youtubei/v1/"+kaY(d)};
  2496. ou=function(){};
  2497. VZ=function(){};
  2498. dc=function(){};
  2499. q3=function(d){return g.qx("ytcsi."+(d||"")+"data_")||PR7(d)};
  2500. WY1=function(){var d=q3();d.info||(d.info={});return d.info};
  2501. TY=function(d){d=q3(d);d.metadata||(d.metadata={});return d.metadata};
  2502. Yh=function(d){d=q3(d);d.tick||(d.tick={});return d.tick};
  2503. el=function(d){d=q3(d);if(d.gel){var q=d.gel;q.gelInfos||(q.gelInfos={});q.gelTicks||(q.gelTicks={})}else d.gel={gelTicks:{},gelInfos:{}};return d.gel};
  2504. CRY=function(d){d=el(d);d.gelInfos||(d.gelInfos={});return d.gelInfos};
  2505. UG=function(d){var q=q3(d).nonce;q||(q=g.RC(16),q3(d).nonce=q);return q};
  2506. PR7=function(d){var q={tick:{},info:{}};g.Vf("ytcsi."+(d||"")+"data_",q);return q};
  2507. b9=function(){var d=g.qx("ytcsi.debug");d||(d=[],g.Vf("ytcsi.debug",d),g.Vf("ytcsi.reference",{}));return d};
  2508. XK=function(d){d=d||"";var q=u87();if(q[d])return q[d];var T=b9(),Y={timerName:d,info:{},tick:{},span:{},jspbInfo:[]};T.push(Y);return q[d]=Y};
  2509. DwD=function(d){d=d||"";var q=u87();q[d]&&delete q[d];var T=b9(),Y={timerName:d,info:{},tick:{},span:{},jspbInfo:[]};T.push(Y);q[d]=Y};
  2510. u87=function(){var d=g.qx("ytcsi.reference");if(d)return d;b9();return g.qx("ytcsi.reference")};
  2511. JU=function(d){return wjn[d]||"LATENCY_ACTION_UNKNOWN"};
  2512. sG=function(d,q){JL.call(this,1,arguments);this.timer=q};
  2513. $h=function(){this.G=0};
  2514. FK=function(){$h.instance||($h.instance=new $h);return $h.instance};
  2515. Ra=function(d,q){N3[q]=N3[q]||{count:0};var T=N3[q];T.count++;T.time=(0,g.cj)();d.G||(d.G=g.zy(0,function(){var Y=(0,g.cj)(),e;for(e in N3)N3[e]&&Y-N3[e].time>6E4&&delete N3[e];d&&(d.G=0)},5E3));
  2516. return T.count>5?(T.count===6&&Math.random()*1E5<1&&(T=new g.CW("CSI data exceeded logging limit with key",q.split("_")),q.indexOf("plev")>=0||g.OL(T)),!0):!1};
  2517. fPn=function(){this.timing={};this.clearResourceTimings=function(){};
  2518. this.webkitClearResourceTimings=function(){};
  2519. this.mozClearResourceTimings=function(){};
  2520. this.msClearResourceTimings=function(){};
  2521. this.oClearResourceTimings=function(){}};
  2522. zGg=function(){var d;if(g.RD("csi_use_performance_navigation_timing")){var q,T,Y,e=xh==null?void 0:(d=xh.getEntriesByType)==null?void 0:(q=d.call(xh,"navigation"))==null?void 0:(T=q[0])==null?void 0:(Y=T.toJSON)==null?void 0:Y.call(T);e?(e.requestStart=ya(e.requestStart),e.responseEnd=ya(e.responseEnd),e.redirectStart=ya(e.redirectStart),e.redirectEnd=ya(e.redirectEnd),e.domainLookupEnd=ya(e.domainLookupEnd),e.connectStart=ya(e.connectStart),e.connectEnd=ya(e.connectEnd),e.responseStart=ya(e.responseStart),
  2523. e.secureConnectionStart=ya(e.secureConnectionStart),e.domainLookupStart=ya(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,d=e):d=xh.timing}else d=g.RD("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(xh.timing)):xh.timing;return d};
  2524. ya=function(d){return Math.round(hU()+d)};
  2525. hU=function(){return(g.RD("csi_use_time_origin")||g.RD("csi_use_time_origin_tvhtml5"))&&xh.timeOrigin?Math.floor(xh.timeOrigin):xh.timing.navigationStart};
  2526. Qa=function(d,q){Hm("_start",d,q)};
  2527. M3=function(d,q){if(!g.RD("web_csi_action_sampling_enabled")||!q3(q).actionDisabled){var T=XK(q||"");by(T.info,d);d.loadType&&(T=d.loadType,TY(q).loadType=T);by(CRY(q),d);T=UG(q);q=q3(q).cttAuthInfo;FK().info(d,T,q)}};
  2528. i7Q=function(){var d,q,T,Y;return((Y=Ou().resolve(Eu(TN))==null?void 0:(d=YL())==null?void 0:(q=d.loggingHotConfig)==null?void 0:(T=q.csiConfig)==null?void 0:T.debugTicks)!=null?Y:[]).map(function(e){return Object.values(e)[0]})};
  2529. Hm=function(d,q,T){if(!g.RD("web_csi_action_sampling_enabled")||!q3(T).actionDisabled){var Y=UG(T),e;if(e=g.RD("web_csi_debug_sample_enabled")&&Y){(Ou().resolve(Eu(TN))==null?0:YL())&&!IP2&&(IP2=!0,Hm("gcfl",(0,g.cj)(),T));var U,b,J;e=(Ou().resolve(Eu(TN))==null?void 0:(U=YL())==null?void 0:(b=U.loggingHotConfig)==null?void 0:(J=b.csiConfig)==null?void 0:J.debugSampleWeight)||0;if(U=e!==0)b:{U=i7Q();if(U.length>0)for(b=0;b<U.length;b++)if(d===U[b]){U=!0;break b}U=!1}U?(e=Usj(Y)%e!==0,q3(T).debugTicksExcludedLogged||
  2530. (U={},U.debugTicksExcluded=e,M3(U,T)),q3(T).debugTicksExcludedLogged=!0):e=!1}if(!e){if(d[0]!=="_"&&(e=d,U=q,xh.mark))if(e.startsWith("mark_")||(e="mark_"+e),T&&(e+=" ("+T+")"),U===void 0||g.RD("web_csi_disable_alt_time_performance_mark"))xh.mark(e);else{U=g.RD("csi_use_performance_navigation_timing")?U-xh.timeOrigin:U-(xh.timeOrigin||xh.timing.navigationStart);try{xh.mark(e,{startTime:U})}catch(F){}}e=XK(T||"");e.tick[d]=q||(0,g.cj)();if(e.callback&&e.callback[d])for(e=g.E(e.callback[d]),U=e.next();!U.done;U=
  2531. e.next())U=U.value,U();e=el(T);e.gelTicks&&(e.gelTicks[d]=!0);U=Yh(T);e=q||(0,g.cj)();g.RD("log_repeated_ytcsi_ticks")?d in U||(U[d]=e):U[d]=e;U=q3(T).cttAuthInfo;d==="_start"?(d=FK(),Ra(d,"baseline_"+Y)||g.Ta("latencyActionBaselined",{clientActionNonce:Y},{timestamp:q,cttAuthInfo:U})):FK().tick(d,Y,q,U);mwI(T);return e}}};
  2532. S27=function(){var d,q=(d=xh.getEntriesByType)==null?void 0:d.call(xh,"mark");q&&q.forEach(function(T){if(T.name.startsWith("mark_")){var Y;(Y=xh.clearMarks)==null||Y.call(xh,T.name)}})};
  2533. lPQ=function(){switch(Cj2()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
  2534. v7D=function(d){function q(U,b,J){b=b.match("_rid")?b.split("_rid")[0]:b;typeof J==="number"&&(J=JSON.stringify(J));U.requestIds?U.requestIds.push({endpoint:b,id:J}):U.requestIds=[{endpoint:b,id:J}]}
  2535. var T={};d=g.E(Object.entries(d));for(var Y=d.next();!Y.done;Y=d.next()){var e=g.E(Y.value);Y=e.next().value;e=e.next().value;switch(Y){case "GetBrowse_rid":q(T,Y,e);break;case "GetGuide_rid":q(T,Y,e);break;case "GetHome_rid":q(T,Y,e);break;case "GetPlayer_rid":q(T,Y,e);break;case "GetSearch_rid":q(T,Y,e);break;case "GetSettings_rid":q(T,Y,e);break;case "GetTrending_rid":q(T,Y,e);break;case "GetWatchNext_rid":q(T,Y,e);break;case "yt_red":T.isRedSubscriber=!!e;break;case "yt_ad":T.isMonetized=!!e}}return T};
  2536. o71=function(d,q){d=document.querySelector(d);if(!d)return!1;var T="",Y=d.nodeName;Y==="SCRIPT"?(T=d.src,T||(T=d.getAttribute("data-timing-href"))&&(T=window.location.protocol+T)):Y==="LINK"&&(T=d.href);xS(document)&&d.setAttribute("nonce",xS(document));return T?(d=xh.getEntriesByName(T))&&d[0]&&(d=d[0],T=hU(),Hm("rsf_"+q,T+Math.round(d.fetchStart)),Hm("rse_"+q,T+Math.round(d.responseEnd)),d.transferSize!==void 0&&d.transferSize===0)?!0:!1:!1};
  2537. VFj=function(){var d=window.location.protocol,q=xh.getEntriesByType("resource");q=g.Zl(q,function(T){return T.name.indexOf(d+"//fonts.gstatic.com/s/")===0});
  2538. (q=Hz(q,function(T,Y){return Y.duration>T.duration?Y:T},{duration:0}))&&q.startTime>0&&q.responseEnd>0&&(Hm("wffs",ya(q.startTime)),Hm("wffe",ya(q.responseEnd)))};
  2539. dzY=function(d,q,T){xh&&xh.measure&&(d.startsWith("measure_")||(d="measure_"+d),T?xh.measure(d,q,T):q?xh.measure(d,q):xh.measure(d))};
  2540. qg6=function(d){var q=cm("aft",d);if(q)return q;q=g.Cs((d||"")+"TIMING_AFT_KEYS",["ol"]);for(var T=q.length,Y=0;Y<T;Y++){var e=cm(q[Y],d);if(e)return e}return NaN};
  2541. EG=function(d,q){g.Vf("ytglobal.timing"+(q||"")+"ready_",d)};
  2542. cm=function(d,q){if(d=Yh(q)[d])return typeof d==="number"?d:d[d.length-1]};
  2543. mwI=function(d){var q=cm("_start",d),T=qg6(d),Y=!TMQ;q&&T&&Y&&(gM(Ygf,new sG(Math.round(T-q),d)),TMQ=!0)};
  2544. e2_=function(){if(xh.getEntriesByType){var d=xh.getEntriesByType("paint");if(d=g.QN(d,function(T){return T.name==="first-paint"}))return ya(d.startTime)}var q;
  2545. g.RD("csi_use_performance_navigation_timing")?q=xh.getEntriesByType("first-paint")[0].startTime:q=xh.timing.zo5;return q?Math.max(0,q):0};
  2546. jl=function(d){PR7(d);Uz_();S27();d||(g.Cs("TIMING_ACTION")&&Wq("PREVIOUS_ACTION",g.Cs("TIMING_ACTION")),Wq("TIMING_ACTION",""))};
  2547. b4N=function(){var d=["pbs","pbu"];g.iF(function(){XK("").info.actionType="watch";d&&Wq("TIMING_AFT_KEYS",d);Wq("TIMING_ACTION","watch");var q=v7D(g.Cs("TIMING_INFO",{}));Object.keys(q).length>0&&M3(q);q={isNavigation:!0,actionType:JU(g.Cs("TIMING_ACTION"))};var T=g.Cs("PREVIOUS_ACTION");T&&(q.previousAction=JU(T));if(T=g.Cs("CLIENT_PROTOCOL"))q.httpProtocol=T;if(T=g.Cs("CLIENT_TRANSPORT"))q.transportProtocol=T;(T=g.Q0())&&T!=="UNDEFINED_CSN"&&(q.clientScreenNonce=T);T=lPQ();if(T===1||T===-1)q.isVisible=
  2548. !0;T=TY().loadType==="cold";var Y=WY1();T||(T=Y.yt_lt==="cold");if(T){q.loadType="cold";T=WY1();Y=zGg();var e=hU(),U=g.Cs("CSI_START_TIMESTAMP_MILLIS",0);U>0&&!g.RD("embeds_web_enable_csi_start_override_killswitch")&&(e=U);e&&(Hm("srt",Y.responseStart),T.prerender!==1&&Qa(e));T=e2_();T>0&&Hm("fpt",T);T=zGg();T.isPerformanceNavigationTiming&&M3({performanceNavigationTiming:!0},void 0);Hm("nreqs",T.requestStart,void 0);Hm("nress",T.responseStart,void 0);Hm("nrese",T.responseEnd,void 0);T.redirectEnd-
  2549. T.redirectStart>0&&(Hm("nrs",T.redirectStart,void 0),Hm("nre",T.redirectEnd,void 0));T.domainLookupEnd-T.domainLookupStart>0&&(Hm("ndnss",T.domainLookupStart,void 0),Hm("ndnse",T.domainLookupEnd,void 0));T.connectEnd-T.connectStart>0&&(Hm("ntcps",T.connectStart,void 0),Hm("ntcpe",T.connectEnd,void 0));T.secureConnectionStart>=hU()&&T.connectEnd-T.secureConnectionStart>0&&(Hm("nstcps",T.secureConnectionStart,void 0),Hm("ntcpe",T.connectEnd,void 0));xh&&"getEntriesByType"in xh&&VFj();T=[];if(document.querySelector&&
  2550. xh&&xh.getEntriesByName)for(var b in aa)aa.hasOwnProperty(b)&&(Y=aa[b],o71(b,Y)&&T.push(Y));if(T.length>0)for(q.resourceInfo=[],b=g.E(T),T=b.next();!T.done;T=b.next())q.resourceInfo.push({resourceCache:T.value})}M3(q);q=el();q.preLoggedGelInfos||(q.preLoggedGelInfos=[]);b=q.preLoggedGelInfos;q=CRY();T=void 0;for(Y=0;Y<b.length;Y++)if(e=b[Y],e.loadType){T=e.loadType;break}if(TY().loadType==="cold"&&(q.loadType==="cold"||T==="cold")){T=Yh();Y=el();Y=Y.gelTicks?Y.gelTicks:Y.gelTicks={};for(var J in T)if(!(J in
  2551. Y))if(typeof T[J]==="number")Hm(J,cm(J));else if(g.RD("log_repeated_ytcsi_ticks"))for(e=g.E(T[J]),U=e.next();!U.done;U=e.next())Hm(J.slice(1),U.value);J={};T=!1;b=g.E(b);for(Y=b.next();!Y.done;Y=b.next())T=Y.value,by(q,T),by(J,T),T=!0;T&&M3(J)}EG(!0);J=g.Cs("TIMING_ACTION");g.qx("ytglobal.timingready_")&&J&&AU()&&qg6()&&mwI()})()};
  2552. XWf=function(){var d=d===void 0?{}:d;g.iF(function(){AU()&&pU("aa",void 0,void 0);DwD();jl();EG(!1);d.cttAuthInfo&&(q3().cttAuthInfo=d.cttAuthInfo);Wq("TIMING_AFT_KEYS",[]);d.B3r?g.ZO({loadType:"hot"}):g.ZO({loadType:"warm"});Wq("TIMING_ACTION","");delete g.Cs("TIMING_INFO",{}).yt_lt;g.iF(Qa)(d.startTime,void 0)})()};
  2553. OG=function(d,q){q=q===void 0?{}:q;g.iF(function(){JL6(d);var T=q.sampleRate;if(!g.RD("web_csi_action_sampling_enabled")||T===void 0||T<=1)T=!1;else{var Y=UG(d);T=Usj(Y)%T!==0}T&&(q3(d).actionDisabled=!0);XK(d||"").info.actionType=d;q.cttAuthInfo&&(q3(d).cttAuthInfo=q.cttAuthInfo);Wq(d+"TIMING_ACTION",d);g.iF(Qa)(q.startTime,d);T={actionType:JU(d)};q.oGD&&(T.previousAction=JU(g.Cs("TIMING_ACTION")));(Y=g.Q0())&&Y!=="UNDEFINED_CSN"&&(T.clientScreenNonce=Y);g.ZO(T,d);EG(!0,d)})()};
  2554. JL6=function(d){g.iF(function(){AU(d)&&pU("aa",void 0,d);DwD(d);jl(d)})()};
  2555. AU=function(d){return g.iF(function(){return nU("_start",d)})()};
  2556. g.ZO=function(d,q,T){g.iF(M3)(d,q,T===void 0?!1:T)};
  2557. pU=function(d,q,T){return g.iF(Hm)(d,q,T)};
  2558. sRD=function(d){g.iF(dzY)("action_finished",d,void 0)};
  2559. nU=function(d,q){return g.iF(function(){var T=Yh(q);return d in T})()};
  2560. gLg=function(d){if(!g.RD("universal_csi_network_ticks"))return"";d=$f(d)||"";for(var q=Object.keys($z2),T=0;T<q.length;T++){var Y=q[T];if(d.includes(Y))return Y}return""};
  2561. NMD=function(d){if(!g.RD("universal_csi_network_ticks"))return function(){};
  2562. var q=$z2[d];return q?(rc(q),function(){var T=g.RD("universal_csi_network_ticks")?(T=FLD[d])?rc(T):!1:!1;return T}):function(){}};
  2563. rc=function(d,q,T){return g.iF(function(){if(nU(d,T))return!1;pU(d,q,T);return!0})()};
  2564. tU=function(d,q,T){g.iF(function(){if(!AU(T)||nU(d,T))return!1;pU(d,q,T);return!0})()};
  2565. R26=function(){g.iF(function(){var d=UG();requestAnimationFrame(function(){setTimeout(function(){d===UG()&&pU("ftl",void 0,void 0)},0)})})()};
  2566. Bm=function(d,q,T,Y){this.Me=d;this.hk=q;this.G=T;this.T=Y;this.j=void 0;this.U=new Map;d.aP||(d.aP={});d.aP=Object.assign({},xzI,d.aP)};
  2567. yLX=function(d,q,T,Y){if(Bm.instance!==void 0){if(Y=Bm.instance,d=[d!==Y.Me,q!==Y.hk,T!==Y.G,!1,!1,!1,void 0!==Y.j],d.some(function(e){return e}))throw new g.CW("InnerTubeTransportService is already initialized",d);
  2568. }else Bm.instance=new Bm(d,q,T,Y)};
  2569. KU=function(d,q,T){var Y=Y===void 0?X7:Y;var e=h2j(d,q);return e?new g.pK(function(U,b){var J,F,N,R,x;return g.G(function(y){switch(y.U){case 1:return g.B(y,e,2);case 2:J=y.G;F=J.S(q,T,Y);if(!F){b(new g.CW("Error: Failed to build request for command.",q));y.tF(0);break}WG(F.input);R=((N=F.A3)==null?void 0:N.mode)==="cors"?"cors":void 0;if(d.G.zn){x=H4N(d,F.config,R);y.tF(4);break}return g.B(y,QRn(d,F.config,R),5);case 5:x=y.G;case 4:U(MT_(d,F,x)),g.E6(y)}})}):nK(new g.CW("Error: No request builder found for command.",
  2570. q))};
  2571. g.GY=function(d,q,T,Y,e){function U(){}
  2572. e=e===void 0?{VA:{identity:X7}}:e;var b=b===void 0?!0:b;U=NMD(gLg(T));q.context||(q.context=g.mV(Y,b));return new g.pK(function(J){var F,N,R,x,y;return g.G(function(h){if(h.U==1)return F=BL(T),N=q4(F)?"same-origin":"cors",d.G.zn?(R=H4N(d,e,N),h.tF(2)):g.B(h,QRn(d,e,N),3);h.U!=2&&(R=h.G);x=M_6(BL(T));y={input:x,A3:KZ(x),Yy:q,config:e};J(MT_(d,y,R,U));g.E6(h)})})};
  2573. EL1=function(d,q,T){var Y;if(q&&!(q==null?0:(Y=q.sequenceMetaData)==null?0:Y.skipProcessing)&&d.T){Y=g.E(cLH);for(var e=Y.next();!e.done;e=Y.next())e=e.value,d.T[e]&&d.T[e].handleResponse(q,T)}};
  2574. MT_=function(d,q,T,Y){Y=Y===void 0?function(){}:Y;
  2575. var e,U,b,J,F,N,R,x,y,h,H,a,p,t,n,K,P,w,l,m,b_,x2,JY,s6,qH,O6,SD,dL,hE,JE;return g.G(function(tY){switch(tY.U){case 1:tY.tF(2);break;case 3:if((e=tY.G)&&!e.isExpired())return tY.return(Promise.resolve(e.G()));case 2:if(!((U=q)==null?0:(b=U.Yy)==null?0:b.context)){tY.tF(4);break}J=q.Yy.context;tY.tF(5);break;case 5:F=g.E([]),N=F.next();case 8:if(N.done){tY.tF(4);break}R=N.value;return g.B(tY,R.nGZ(J),9);case 9:N=F.next();tY.tF(8);break;case 4:if((x=d.j)==null||!x.UIv(q.input,q.Yy)){tY.tF(12);break}return g.B(tY,
  2576. d.j.GO2(q.input,q.Yy),13);case 13:return y=tY.G,EL1(d,y,q),tY.return(y);case 12:return(a=(H=q.config)==null?void 0:H.El)&&d.U.has(a)?h=d.U.get(a):(p=JSON.stringify(q.Yy),K=(n=(t=q.A3)==null?void 0:t.headers)!=null?n:{},q.A3=Object.assign({},q.A3,{headers:Object.assign({},K,T)}),P=Object.assign({},q.A3),q.A3.method==="POST"&&(P=Object.assign({},P,{body:p})),((w=q.config)==null?0:w.pAf)&&pU(q.config.pAf),l=function(){return d.hk.fetch(q.input,P,q.config)},h=l(),a&&d.U.set(a,h)),g.B(tY,h,14);
  2577. case 14:(m=tY.G)&&g.RD("web_streaming_player")&&Array.isArray(m)&&(m=m[0].playerResponse);if(m&&"error"in m&&((b_=m)==null?0:(x2=b_.error)==null?0:x2.details))for(JY=m.error.details,s6=g.E(JY),qH=s6.next();!qH.done;qH=s6.next())O6=qH.value,(SD=O6["@type"])&&jRg.indexOf(SD)>-1&&(delete O6["@type"],m=O6);a&&d.U.has(a)&&d.U.delete(a);((dL=q.config)==null?0:dL.hzv)&&pU(q.config.hzv);if(m||(hE=d.j)==null||!hE.L12(q.input,q.Yy)){tY.tF(15);break}return g.B(tY,d.j.P8D(q.input,q.Yy),16);case 16:m=tY.G;case 15:return EL1(d,
  2578. m,q),((JE=q.config)==null?0:JE.VTU)&&pU(q.config.VTU),Y(),tY.return(m||void 0)}})};
  2579. h2j=function(d,q){a:{d=d.Me;var T,Y=(T=g.D(q,rrg))==null?void 0:T.signal;if(Y&&d.aP&&(T=d.aP[Y])){var e=T();break a}var U;if((T=(U=g.D(q,tF_))==null?void 0:U.request)&&d.F$&&(U=d.F$[T])){e=U();break a}for(e in q)if(d.SY[e]&&(q=d.SY[e])){e=q();break a}e=void 0}if(e!==void 0)return Promise.resolve(e)};
  2580. QRn=function(d,q,T){var Y,e,U,b,J,F,N;return g.G(function(R){if(R.U==1){U=((Y=q)==null?void 0:(e=Y.VA)==null?void 0:e.identity)||X7;F=(b=q)==null?void 0:(J=b.VA)==null?void 0:J.sessionIndex;var x=g.Of(d.G.Tf(U,{sessionIndex:F}));return g.B(R,x,2)}N=R.G;return R.return(Promise.resolve(Object.assign({},KY_(T),N)))})};
  2581. H4N=function(d,q,T){var Y,e=(q==null?void 0:(Y=q.VA)==null?void 0:Y.identity)||X7,U;q=q==null?void 0:(U=q.VA)==null?void 0:U.sessionIndex;d=d.G.Tf(e,{sessionIndex:q});return Object.assign({},KY_(T),d)};
  2582. LU=function(){};
  2583. kh=function(){};
  2584. Pm=function(d){this.X=d};
  2585. Wm=function(){};
  2586. CU=function(){};
  2587. u9=function(){};
  2588. DO=function(){};
  2589. g.wc=function(d,q){var T=g.CN.apply(2,arguments);d=d===void 0?0:d;g.CW.call(this,q,T);this.errorType=d;Object.setPrototypeOf(this,this.constructor.prototype)};
  2590. fU=function(d,q,T,Y){this.G=d;this.U=q;this.j=T;this.T=Y};
  2591. adX=function(d,q,T){if(d.G){var Y=$f(Eb(q,"key"))||"/UNKNOWN_PATH";d.G.start(Y)}Y=T;g.RD("wug_networking_gzip_request")&&(Y=z66(T));var e;return new ((e=d.T)!=null?e:window.Request)(q,Y)};
  2592. g.i9=function(d,q){if(!zY){var T=Ou();aC(T,{Mn:ALQ,Du:fU});var Y={SY:{feedbackEndpoint:l2(Wm),modifyChannelNotificationPreferenceEndpoint:l2(CU),playlistEditEndpoint:l2(u9),shareEntityEndpoint:l2(Pm),subscribeEndpoint:l2(LU),unsubscribeEndpoint:l2(kh),webPlayerShareEntityServiceEndpoint:l2(DO)}},e=Iu.getInstance(),U={};e&&(U.client_location=e);d===void 0&&(d=V_2());q===void 0&&(q=T.resolve(ALQ));yLX(Y,q,d,U);aC(T,{Mn:pWn,xj:Bm.instance});zY=T.resolve(pWn)}return zY};
  2593. Z4_=function(d){var q=new XT;if(d.interpreterJavascript){var T=LW2(d.interpreterJavascript);T=hn(T).toString();var Y=new Uq;K2(Y,6,T);Qw(q,Uq,1,Y,i$)}else d.interpreterUrl&&(T=Hq(d.interpreterUrl),T=qX(T).toString(),Y=new bj,K2(Y,4,T),Qw(q,bj,2,Y,i$));d.interpreterHash&&Gg(q,3,d.interpreterHash,i$);d.program&&Gg(q,4,d.program,i$);d.globalName&&Gg(q,5,d.globalName,i$);d.clientExperimentsStateBlob&&Gg(q,7,d.clientExperimentsStateBlob,i$);return q};
  2594. Ia=function(d){var q={};d=d.split("&");d=g.E(d);for(var T=d.next();!T.done;T=d.next())T=T.value.split("="),T.length===2&&(q[T[0]]=T[1]);return q};
  2595. K3D=function(){if(g.RD("bg_st_hr"))return"havuokmhhs-0";var d,q=((d=performance)==null?void 0:d.timeOrigin)||0;return"havuokmhhs-"+Math.floor(q)};
  2596. mM=function(d){this.G=d};
  2597. O4Q=function(){return new Promise(function(d){var q=window.top;q.ntpevasrs!==void 0?d(new mM(q.ntpevasrs)):(q.ntpqfbel===void 0&&(q.ntpqfbel=[]),q.ntpqfbel.push(function(T){d(new mM(T))}))})};
  2598. rL6=function(){if(lb()){var d=g.Cs("PLAYER_VARS",{});if(g.N$(d,"privembed",!1)!="1"&&!pJ7(d)){var q=function(){Sl=!0;"google_ad_status"in window?Wq("DCLKSTAT",1):Wq("DCLKSTAT",2)};
  2599. try{g.TT("//static.doubleclick.net/instream/ad_status.js",q)}catch(T){}nLY.push(g.Gh.DE(function(){if(!(Sl||"google_ad_status"in window)){try{if(q){var T=""+g.X_(q),Y=A1X[T];Y&&g.lI(Y)}}catch(e){}Sl=!0;Wq("DCLKSTAT",3)}},5E3))}}};
  2600. l9=function(){var d=Number(g.Cs("DCLKSTAT",0));return isNaN(d)?0:d};
  2601. d5=function(d,q,T){var Y=this;this.network=d;this.options=q;this.U=T;this.G=null;if(q.hsD){var e=new g.sq;this.G=e.promise;g.oQ.ytAtRC&&fW(function(){var U,b;return g.G(function(J){if(J.U==1){if(!g.oQ.ytAtRC)return J.return();U=vm(null);return g.B(J,oa(Y,U),2)}b=J.G;g.oQ.ytAtRC&&g.oQ.ytAtRC(JSON.stringify(b));g.E6(J)})},2);
  2602. O4Q().then(function(U){var b,J,F,N;return g.G(function(R){if(R.U==1)return U.bindInnertubeChallengeFetcher(function(x){return oa(Y,vm(x))}),g.B(R,v3(),2);
  2603. b=R.G;J=U.getLatestChallengeResponse();F=J.challenge;if(!F)throw Error("BGE_MACIL");N={challenge:F,Rb:Ia(F),CH:b,bgChallenge:new XT};e.resolve(N);U.registerChallengeFetchedCallback(function(x){x=x.challenge;if(!x)throw Error("BGE_MACR");x={challenge:x,Rb:Ia(x),CH:b,bgChallenge:new XT};Y.G=Promise.resolve(x)});
  2604. g.E6(R)})})}else q.preload&&tT6(this,new Promise(function(U){g.zy(0,function(){U(Va(Y))},0)}))};
  2605. vm=function(d){var q={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};d&&(q.interpreterHash=d);return q};
  2606. Va=function(d,q){q=q===void 0?0:q;var T,Y,e,U,b,J,F,N,R,x,y,h;return g.G(function(H){switch(H.U){case 1:T=vm(FT().G);if(g.RD("att_fet_ks"))return g.jD(H,7),g.B(H,oa(d,T),9);g.jD(H,4);return g.B(H,BMg(d,T),6);case 6:b=H.G;e=b.udv;U=b.d3v;Y=b;g.ZX(H,3);break;case 4:return g.nN(H),g.OL(Error("Failed to fetch attestation challenge after "+(q+" attempts; not retrying for 24h."))),qt(d,864E5),H.return({challenge:"",Rb:{},CH:void 0,bgChallenge:void 0});case 9:Y=H.G;if(!Y)throw Error("Fetching Attestation challenge returned falsy");
  2607. if(!Y.challenge)throw Error("Missing Attestation challenge");e=Y.challenge;U=Ia(e);if("c1a"in U&&(!Y.bgChallenge||!Y.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.ZX(H,3);break;case 7:J=g.nN(H);g.OL(J);q++;if(q>=5)return g.OL(Error("Failed to fetch attestation challenge after "+(q+" attempts; not retrying for 24h."))),qt(d,864E5),H.return({challenge:"",Rb:{},CH:void 0,bgChallenge:void 0});F=1E3*Math.pow(2,q-1)+Math.random()*1E3;return H.return(new Promise(function(a){g.zy(0,
  2608. function(){a(Va(d,q))},F)}));
  2609. case 3:N=Number(U.t)||7200;qt(d,N*1E3);R=void 0;if(!("c1a"in U&&Y.bgChallenge)){H.tF(10);break}x=Z4_(Y.bgChallenge);g.jD(H,11);return g.B(H,Kv_(FT(),x),13);case 13:g.ZX(H,12);break;case 11:return y=g.nN(H),g.OL(y),H.return({challenge:e,Rb:U,CH:R,bgChallenge:x});case 12:return g.jD(H,14),R=new $H({challenge:x,AO:{wH:"aGIf"}}),g.B(H,R.w0,16);case 16:g.ZX(H,10);break;case 14:h=g.nN(H),g.OL(h),R=void 0;case 10:return H.return({challenge:e,Rb:U,CH:R,bgChallenge:x})}})};
  2610. oa=function(d,q){var T;return g.G(function(Y){T=d.U;if(!T||T.YL())return Y.return(oa(d.network,q));tU("att_pna",void 0,"attestation_challenge_fetch");return Y.return(new Promise(function(e){T.zg("publicytnetworkstatus-online",function(){oa(d.network,q).then(e)})}))})};
  2611. KLg=function(d){if(!d)throw Error("Fetching Attestation challenge returned falsy");if(!d.challenge)throw Error("Missing Attestation challenge");var q=d.challenge,T=Ia(q);if("c1a"in T&&(!d.bgChallenge||!d.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},d,{udv:q,d3v:T})};
  2612. BMg=function(d,q){var T,Y,e,U,b;return g.G(function(J){switch(J.U){case 1:T=void 0,Y=0,e={};case 2:if(!(Y<5)){J.tF(4);break}if(!(Y>0)){J.tF(5);break}e.x3=1E3*Math.pow(2,Y-1)+Math.random()*1E3;return g.B(J,new Promise(function(F){return function(N){g.zy(0,function(){N(void 0)},F.x3)}}(e)),5);
  2613. case 5:return g.jD(J,7),g.B(J,oa(d,q),9);case 9:return U=J.G,J.return(KLg(U));case 7:T=b=g.nN(J),b instanceof Error&&g.OL(b);case 8:Y++;e={x3:void 0};J.tF(2);break;case 4:throw T;}})};
  2614. tT6=function(d,q){d.G=q};
  2615. GN1=function(d){var q,T,Y;return g.G(function(e){if(e.U==1)return g.B(e,Promise.race([d.G,null]),2);q=e.G;var U=Va(d);d.G=U;(T=q)==null||(Y=T.CH)==null||Y.dispose();g.E6(e)})};
  2616. qt=function(d,q){function T(){var e;return g.G(function(U){e=Y-Date.now();return e<1E3?g.B(U,GN1(d),0):(fW(T,0,Math.min(e,6E4)),U.tF(0))})}
  2617. var Y=Date.now()+q;T()};
  2618. LL2=function(d,q){return new Promise(function(T){g.zy(0,function(){T(q())},d)})};
  2619. g.kNf=function(d,q){var T;return g.G(function(Y){var e=g.qx("yt.aba.att");return(T=e?e:d5.instance!==void 0?d5.instance.j.bind(d5.instance):null)?Y.return(T("ENGAGEMENT_TYPE_PLAYBACK",d,q)):Y.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
  2620. g.PIQ=function(){var d;return(d=(d=g.qx("yt.aba.att2"))?d:d5.instance!==void 0?d5.instance.T.bind(d5.instance):null)?d():Promise.resolve(!1)};
  2621. CIg=function(d,q){var T=g.qx("ytDebugData.callbacks");T||(T={},g.Vf("ytDebugData.callbacks",T));if(g.RD("web_dd_iu")||WLI.includes(d))T[d]=q};
  2622. Tq=function(){var d=u7N;var q=q===void 0?[]:q;var T=T===void 0?[]:T;q=n1g.apply(null,[rKI.apply(null,g.RQ(q))].concat(g.RQ(T)));this.store=B12(d,void 0,q)};
  2623. g.YX=function(d,q,T){for(var Y=Object.assign({},d),e=g.E(Object.keys(q)),U=e.next();!U.done;U=e.next()){U=U.value;var b=d[U],J=q[U];if(J===void 0)delete Y[U];else if(b===void 0)Y[U]=J;else if(Array.isArray(J)&&Array.isArray(b))Y[U]=T?[].concat(g.RQ(b),g.RQ(J)):J;else if(!Array.isArray(J)&&g.UI(J)&&!Array.isArray(b)&&g.UI(b))Y[U]=g.YX(b,J,T);else if(typeof J===typeof b)Y[U]=J;else return q=new g.CW("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:U,Hw2:b,updateValue:J}),g.Zz(q),
  2624. d}return Y};
  2625. e2=function(d){var q=this;d=d===void 0?[]:d;this.G=[];this.j=this.U=0;this.T=void 0;this.totalLength=0;d.forEach(function(T){q.append(T)})};
  2626. DzX=function(d,q){return d.G.length===0?!1:(d=d.G[d.G.length-1])&&d.buffer===q.buffer&&d.byteOffset+d.length===q.byteOffset};
  2627. Uv=function(d,q){q=g.E(q.G);for(var T=q.next();!T.done;T=q.next())d.append(T.value)};
  2628. bz=function(d,q,T){return d.split(q).Kp.split(T).hS};
  2629. XJ=function(d){d.T=void 0;d.U=0;d.j=0};
  2630. JV=function(d,q,T){d.isFocused(q);return q-d.j+T<=d.G[d.U].length};
  2631. wWf=function(d){if(!d.T){var q=d.G[d.U];d.T=new DataView(q.buffer,q.byteOffset,q.length)}return d.T};
  2632. fd7=function(d,q,T){q=q===void 0?0:q;T=T===void 0?-1:T;if(!d.totalLength||!T)return new DataView(new ArrayBuffer(0));T<0&&(T=d.totalLength-q);d.focus(q);if(!JV(d,q,T)){var Y=d.U,e=d.j;d.focus(q+T-1);e=new Uint8Array(d.j+d.G[d.U].length-e);for(var U=0,b=Y;b<=d.U;b++)e.set(d.G[b],U),U+=d.G[b].length;d.G.splice(Y,d.U-Y+1,e);XJ(d);d.focus(q)}Y=d.G[d.U];return new DataView(Y.buffer,Y.byteOffset+q-d.j,T)};
  2633. $X=function(d,q,T){d=fd7(d,q===void 0?0:q,T===void 0?-1:T);return new Uint8Array(d.buffer,d.byteOffset,d.byteLength)};
  2634. g5=function(d,q,T){d=$X(d,q===void 0?0:q,T===void 0?-1:T);q=new Uint8Array(d.length);try{q.set(d)}catch(Y){for(T=0;T<d.length;T++)q[T]=d[T]}return q};
  2635. FJ=function(d,q){d.focus(q);return d.G[d.U][q-d.j]};
  2636. z2n=function(d,q){d.focus(q);return JV(d,q,4)?wWf(d).getUint32(q-d.j):256*(256*(256*FJ(d,q)+FJ(d,q+1))+FJ(d,q+2))+FJ(d,q+3)};
  2637. i4D=function(d){for(var q=new Uint8Array(d.length),T=0;T<d.length;T++)q[T]=d.charCodeAt(T);return q};
  2638. Re=function(d){return d.length?Nt?Nt.decode(d):String.fromCharCode.apply(null,d):""};
  2639. g.yA=function(d){if(!d.length)return"";try{if(Nt)return Nt.decode(d);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(d)}catch(b){}for(var q=0,T=[],Y=d.length;q<Y;){for(var e=0;e<1024&&q<Y;){var U=d[q++];if(U<128)xX[e++]=U;else{if(U<224)U=(U&31)<<6|d[q++]&63;else if(U<240)U=(U&15)<<12|(d[q++]&63)<<6|d[q++]&63;else{if(e+1===1024){--q;break}U=(U&7)<<18|(d[q++]&63)<<12|(d[q++]&63)<<6|d[q++]&63;U-=65536;xX[e++]=55296|U>>10;U=56320|U&1023}xX[e++]=U}}U=String.fromCharCode.apply(String,xX);
  2640. e<1024&&(U=U.substring(0,e));T.push(U)}return T.join("")};
  2641. H6=function(d,q){var T;if((T=hV)==null?0:T.encodeInto)return q=hV.encodeInto(d,q),q.read<d.length?d.length*4:q.written;for(var Y=T=0;Y<d.length;Y++){var e=d.charCodeAt(Y);e<128?q[T++]=e:(e<2048?q[T++]=e>>6|192:((e&64512)===55296&&Y+1<d.length&&(d.charCodeAt(Y+1)&64512)===56320?(e=65536+((e&1023)<<10)+(d.charCodeAt(++Y)&1023),q[T++]=e>>18|240,q[T++]=e>>12&63|128):q[T++]=e>>12|224,q[T++]=e>>6&63|128),q[T++]=e&63|128)}return T};
  2642. QA=function(d){if(hV)return hV.encode(d);var q=new Uint8Array(Math.ceil(d.length*1.2)),T=H6(d,q);q.length<T&&(q=new Uint8Array(T),T=H6(d,q));q.length>T&&(q=q.subarray(0,T));return q};
  2643. Mt=function(d){this.G=d;this.pos=0;this.U=-1};
  2644. c6=function(d){var q=FJ(d.G,d.pos);++d.pos;if(q<128)return q;for(var T=q&127,Y=1;q>=128;)q=FJ(d.G,d.pos),++d.pos,Y*=128,T+=(q&127)*Y;return T};
  2645. Ev=function(d,q){var T=d.U;for(d.U=-1;d.pos+1<=d.G.totalLength;){T<0&&(T=c6(d));var Y=T>>3,e=T&7;if(Y===q)return!0;if(Y>q){d.U=T;break}T=-1;switch(e){case 0:c6(d);break;case 1:d.pos+=8;break;case 2:Y=c6(d);d.pos+=Y;break;case 5:d.pos+=4}}return!1};
  2646. j2=function(d,q){if(Ev(d,q))return c6(d)};
  2647. Id2=function(d,q){if(Ev(d,q))return q=$X(d.G,d.pos,8),d.pos+=8,(new DataView(q.buffer,q.byteOffset,q.byteLength)).getFloat64(0,!0)};
  2648. ae=function(d,q){if(Ev(d,q))return!!c6(d)};
  2649. AV=function(d,q){if(Ev(d,q)){q=c6(d);var T=$X(d.G,d.pos,q);d.pos+=q;return T}};
  2650. po=function(d,q){if(d=AV(d,q))return g.yA(d)};
  2651. ZS=function(d,q,T){if(d=AV(d,q))return T(new Mt(new e2([d])))};
  2652. Ov=function(d,q){for(var T=[];Ev(d,q);)T.push(c6(d));return T.length?T:void 0};
  2653. no=function(d,q,T){for(var Y=[],e;e=AV(d,q);)Y.push(T(new Mt(new e2([e]))));return Y.length?Y:void 0};
  2654. r5=function(d,q){d=d instanceof Uint8Array?new e2([d]):d;return q(new Mt(d))};
  2655. mz7=function(d,q){d=new Uint8Array(d);q&&d.set(q);return d};
  2656. Sg2=function(d){this.pos=0;this.U=[];this.G=mz7(d===void 0?4096:d);this.view=new DataView(this.G.buffer,this.G.byteOffset,this.G.byteLength)};
  2657. tV=function(d,q){q=d.pos+q;if(!(d.G.length>=q)){for(var T=d.G.length*2;T<q;)T*=2;d.G=mz7(T,d.G.subarray(0,d.pos));d.view=new DataView(d.G.buffer,d.G.byteOffset,d.G.byteLength)}};
  2658. w5=function(d,q){if(q>268435455){tV(d,4);for(var T=q&1073741823,Y=0;Y<4;Y++)d.view.setUint8(d.pos,T&127|128),T>>=7,d.pos+=1;q=Math.floor(q/268435456)}for(tV(d,4);q>127;)d.view.setUint8(d.pos,q&127|128),q>>=7,d.pos+=1;d.view.setUint8(d.pos,q);d.pos+=1};
  2659. fo=function(d,q,T){T!==void 0&&(w5(d,q*8),w5(d,T))};
  2660. zq=function(d,q,T){T!==void 0&&fo(d,q,T?1:0)};
  2661. iz=function(d,q,T){T!==void 0&&(w5(d,q*8+2),q=T.length,w5(d,q),tV(d,q),d.G.set(T,d.pos),d.pos+=q)};
  2662. Ie=function(d,q,T){T!==void 0&&(ld7(d,q,Math.ceil(Math.log2(T.length*4+2)/7)),tV(d,T.length*1.2),q=H6(T,d.G.subarray(d.pos)),d.pos+q>d.G.length&&(tV(d,q),q=H6(T,d.G.subarray(d.pos))),d.pos+=q,vLj(d))};
  2663. ld7=function(d,q,T){T=T===void 0?2:T;w5(d,q*8+2);d.U.push(d.pos);d.U.push(T);d.pos+=T};
  2664. vLj=function(d){for(var q=d.U.pop(),T=d.U.pop(),Y=d.pos-T-q;q--;){var e=q?128:0;d.view.setUint8(T++,Y&127|e);Y>>=7}};
  2665. mP=function(d,q,T,Y,e){T&&(ld7(d,q,e===void 0?3:e),Y(d,T),vLj(d))};
  2666. g.S2=function(d,q){var T=new Sg2(4096);q(T,d);return new Uint8Array(T.G.buffer,T.G.byteOffset,T.pos)};
  2667. g.lz=function(d){var q=new Mt(new e2([ZV(decodeURIComponent(d))]));d=po(q,2);q=j2(q,4);var T=oLQ[q];if(typeof T==="undefined")throw d=new g.CW("Failed to recognize field number",{name:"EntityKeyHelperError",h2Z:q}),g.Zz(d),d;return{Qn:q,entityType:T,entityId:d}};
  2668. g.v6=function(d,q){var T=T===void 0?0:T;var Y=new Sg2;iz(Y,2,QA(d));d=VTQ[q];if(typeof d==="undefined")throw T=new g.CW("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:q}),g.Zz(T),T;fo(Y,4,d);fo(Y,5,1);q=new Uint8Array(Y.G.buffer,Y.G.byteOffset,Y.pos);return encodeURIComponent(g.A0(q,T))};
  2669. oe=function(d,q,T,Y){if(Y===void 0)return Y=Object.assign({},d[q]||{}),T=(delete Y[T],Y),Y={},Object.assign({},d,(Y[q]=T,Y));var e={},U={};return Object.assign({},d,(U[q]=Object.assign({},d[q],(e[T]=Y,e)),U))};
  2670. d9N=function(d,q,T,Y,e){var U=d[q];if(U==null||!U[T])return d;Y=g.YX(U[T],Y,e==="REPEATED_FIELDS_MERGE_OPTION_APPEND");e={};U={};return Object.assign({},d,(U[q]=Object.assign({},d[q],(e[T]=Y,e)),U))};
  2671. quf=function(d,q){d=d===void 0?{}:d;switch(q.type){case "ENTITY_LOADED":return q.payload.reduce(function(Y,e){var U,b=(U=e.options)==null?void 0:U.persistenceOption;if(b&&b!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&b!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return Y;if(!e.entityKey)return g.Zz(Error("Missing entity key")),Y;if(e.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!e.payload)return e=new g.CW("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey}),g.Zz(e),Y;var J=g.TX(e.payload);
  2672. return oe(Y,J,e.entityKey,e.payload[J])}if(e.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{e=e.entityKey;try{var F=g.lz(e).entityType;J=oe(Y,F,e);break a}catch(x){if(x instanceof Error){e=new g.CW("Failed to deserialize entity key",{entityKey:e,originalMessage:x.message});g.Zz(e);J=Y;break a}throw x;}J=void 0}return J}if(e.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!e.payload)return e=new g.CW("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey}),g.Zz(e),Y;J=g.TX(e.payload);var N,R;return d9N(Y,
  2673. J,e.entityKey,e.payload[J],(N=e.fieldMask)==null?void 0:(R=N.mergeOptions)==null?void 0:R.repeatedFieldsMergeOption)}return Y},d);
  2674. case "REPLACE_ENTITY":var T=q.payload;return oe(d,T.entityType,T.key,T.yn);case "REPLACE_ENTITIES":return Object.keys(q.payload).reduce(function(Y,e){var U=q.payload[e];return Object.keys(U).reduce(function(b,J){return oe(b,e,J,U[J])},Y)},d);
  2675. case "UPDATE_ENTITY":return T=q.payload,d9N(d,T.entityType,T.key,T.yn,T.TJ2);default:return d}};
  2676. VA=function(d,q,T){return d[q]?d[q][T]||null:null};
  2677. dE=function(d){return window.Int32Array?new Int32Array(d):Array(d)};
  2678. ba=function(d){g.W.call(this);this.counter=[0,0,0,0];this.U=new Uint8Array(16);this.G=16;if(!T42){var q,T=new Uint8Array(256),Y=new Uint8Array(256);var e=1;for(q=0;q<256;q++)T[e]=q,Y[q]=e,e^=e<<1^(e>>7&&283);q1=new Uint8Array(256);Tm=dE(256);YU=dE(256);eo=dE(256);Un=dE(256);for(var U=0;U<256;U++){e=U?Y[255^T[U]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;q1[U]=e;q=e<<1^(e>>7&&283);var b=q^e;Tm[U]=q<<24|e<<16|e<<8|b;YU[U]=b<<24|Tm[U]>>>8;eo[U]=e<<24|YU[U]>>>8;Un[U]=e<<24|eo[U]>>>8}T42=!0}e=dE(44);for(T=
  2679. 0;T<4;T++)e[T]=d[4*T]<<24|d[4*T+1]<<16|d[4*T+2]<<8|d[4*T+3];for(Y=1;T<44;T++)d=e[T-1],T%4||(d=(q1[d>>16&255]^Y)<<24|q1[d>>8&255]<<16|q1[d&255]<<8|q1[d>>>24],Y=Y<<1^(Y>>7&&283)),e[T]=e[T-4]^d;this.key=e};
  2680. Yu1=function(d){for(var q=d.key,T=d.counter[0]^q[0],Y=d.counter[1]^q[1],e=d.counter[2]^q[2],U=d.counter[3]^q[3],b=3;b>=0&&!(d.counter[b]=-~d.counter[b]);b--);for(var J,F,N=4;N<40;)b=Tm[T>>>24]^YU[Y>>16&255]^eo[e>>8&255]^Un[U&255]^q[N++],J=Tm[Y>>>24]^YU[e>>16&255]^eo[U>>8&255]^Un[T&255]^q[N++],F=Tm[e>>>24]^YU[U>>16&255]^eo[T>>8&255]^Un[Y&255]^q[N++],U=Tm[U>>>24]^YU[T>>16&255]^eo[Y>>8&255]^Un[e&255]^q[N++],T=b,Y=J,e=F;d=d.U;b=q[40];d[0]=q1[T>>>24]^b>>>24;d[1]=q1[Y>>16&255]^b>>16&255;d[2]=q1[e>>8&255]^
  2681. b>>8&255;d[3]=q1[U&255]^b&255;b=q[41];d[4]=q1[Y>>>24]^b>>>24;d[5]=q1[e>>16&255]^b>>16&255;d[6]=q1[U>>8&255]^b>>8&255;d[7]=q1[T&255]^b&255;b=q[42];d[8]=q1[e>>>24]^b>>>24;d[9]=q1[U>>16&255]^b>>16&255;d[10]=q1[T>>8&255]^b>>8&255;d[11]=q1[Y&255]^b&255;b=q[43];d[12]=q1[U>>>24]^b>>>24;d[13]=q1[T>>16&255]^b>>16&255;d[14]=q1[Y>>8&255]^b>>8&255;d[15]=q1[e&255]^b&255};
  2682. sn=function(){if(!XN&&!g.DP){if(Jb)return Jb;var d;Jb=(d=window.crypto)==null?void 0:d.subtle;var q,T,Y;if(((q=Jb)==null?0:q.importKey)&&((T=Jb)==null?0:T.sign)&&((Y=Jb)==null?0:Y.encrypt))return Jb;Jb=void 0}};
  2683. g.FN=function(d){var q=sn();q&&(this.G=new $U(d,q));this.U=new g.gE(d)};
  2684. $U=function(d,q){this.U=d;this.subtleCrypto=q};
  2685. eW6=function(d,q,T){var Y,e;return g.G(function(U){switch(U.U){case 1:if(d.G){U.tF(2);break}return g.B(U,d.subtleCrypto.importKey("raw",d.U,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:d.G=U.G;case 2:return Y={name:"AES-CTR",counter:T,length:128},g.B(U,d.subtleCrypto.encrypt(Y,d.G,q),4);case 4:return e=U.G,U.return(new Uint8Array(e))}})};
  2686. g.gE=function(d){this.U=d};
  2687. N1=function(d){this.S=new Uint8Array(64);this.j=new Uint8Array(64);this.T=0;this.X=new Uint8Array(64);this.U=0;this.S.set(d);this.j.set(d);for(d=0;d<64;d++)this.S[d]^=92,this.j[d]^=54;this.reset()};
  2688. U9j=function(d,q,T){for(var Y=d.L,e=d.G[0],U=d.G[1],b=d.G[2],J=d.G[3],F=d.G[4],N=d.G[5],R=d.G[6],x=d.G[7],y,h,H,a=0;a<64;)a<16?(Y[a]=H=q[T]<<24|q[T+1]<<16|q[T+2]<<8|q[T+3],T+=4):(y=Y[a-2],h=Y[a-15],H=Y[a-7]+Y[a-16]+((y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10)+((h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3),Y[a]=H),y=x+Rw[a]+H+((F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7))+(F&N^~F&R),h=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&U^e&b^U&b),x=y+h,J+=y,a++,a<16?(Y[a]=H=q[T]<<24|q[T+1]<<16|q[T+2]<<8|q[T+3],T+=4):(y=
  2689. Y[a-2],h=Y[a-15],H=Y[a-7]+Y[a-16]+((y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10)+((h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3),Y[a]=H),y=R+Rw[a]+H+((J>>>6|J<<26)^(J>>>11|J<<21)^(J>>>25|J<<7))+(J&F^~J&N),h=((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+(x&e^x&U^e&U),R=y+h,b+=y,a++,a<16?(Y[a]=H=q[T]<<24|q[T+1]<<16|q[T+2]<<8|q[T+3],T+=4):(y=Y[a-2],h=Y[a-15],H=Y[a-7]+Y[a-16]+((y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10)+((h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3),Y[a]=H),y=N+Rw[a]+H+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&J^
  2690. ~b&F),h=((R>>>2|R<<30)^(R>>>13|R<<19)^(R>>>22|R<<10))+(R&x^R&e^x&e),N=y+h,U+=y,a++,a<16?(Y[a]=H=q[T]<<24|q[T+1]<<16|q[T+2]<<8|q[T+3],T+=4):(y=Y[a-2],h=Y[a-15],H=Y[a-7]+Y[a-16]+((y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10)+((h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3),Y[a]=H),y=F+Rw[a]+H+((U>>>6|U<<26)^(U>>>11|U<<21)^(U>>>25|U<<7))+(U&b^~U&J),h=((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+(N&R^N&x^R&x),H=x,x=J,J=H,H=R,R=b,b=H,H=N,N=U,U=H,F=e+y,e=y+h,a++;d.G[0]=e+d.G[0]|0;d.G[1]=U+d.G[1]|0;d.G[2]=b+d.G[2]|0;d.G[3]=
  2691. J+d.G[3]|0;d.G[4]=F+d.G[4]|0;d.G[5]=N+d.G[5]|0;d.G[6]=R+d.G[6]|0;d.G[7]=x+d.G[7]|0};
  2692. XiY=function(d){var q=new Uint8Array(32),T=64-d.U;d.U>55&&(T+=64);var Y=new Uint8Array(T);Y[0]=128;for(var e=d.T*8,U=1;U<9;U++){var b=e%256;Y[T-U]=b;e=(e-b)/256}d.update(Y);for(T=0;T<8;T++)q[T*4]=d.G[T]>>>24,q[T*4+1]=d.G[T]>>>16&255,q[T*4+2]=d.G[T]>>>8&255,q[T*4+3]=d.G[T]&255;bCH(d);return q};
  2693. bCH=function(d){d.G=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];d.L=[];d.L.length=64;d.T=0;d.U=0};
  2694. J$D=function(d){this.G=d};
  2695. sC1=function(d,q,T){d=new N1(d.G);d.update(q);d.update(T);q=XiY(d);d.update(d.S);d.update(q);q=XiY(d);d.reset();return q};
  2696. $9f=function(d){this.U=d};
  2697. gyX=function(d,q,T,Y){var e,U,b;return g.G(function(J){switch(J.U){case 1:if(d.G){J.tF(2);break}return g.B(J,Y.importKey("raw",d.U,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:d.G=J.G;case 2:return e=new Uint8Array(q.length+T.length),e.set(q),e.set(T,q.length),U={name:"HMAC",hash:"SHA-256"},g.B(J,Y.sign(U,d.G,e),4);case 4:return b=J.G,J.return(new Uint8Array(b))}})};
  2698. FIX=function(d,q,T){d.j||(d.j=new J$D(d.U));return sC1(d.j,q,T)};
  2699. N41=function(d,q,T){var Y,e;return g.G(function(U){if(U.U==1){Y=sn();if(!Y)return U.return(FIX(d,q,T));g.jD(U,3);return g.B(U,gyX(d,q,T,Y),5)}if(U.U!=3)return U.return(U.G);e=g.nN(U);g.OL(e);XN=!0;return U.return(FIX(d,q,T))})};
  2700. x9f=function(d){for(var q="",T=0;T<d.length;T++){var Y=d[T];if(T===0)Y="M "+Y.x.toFixed(1)+","+Y.y.toFixed(1);else{var e=RWI(d[T-1],d[T-2],Y),U=RWI(Y,d[T-1],d[T+1],!0);Y=" C "+(e.x.toFixed(1)+","+e.y.toFixed(1)+" "+U.x.toFixed(1)+","+U.y.toFixed(1)+" "+Y.x.toFixed(1)+","+Y.y.toFixed(1))}q+=Y}return q};
  2701. RWI=function(d,q,T,Y){Y=Y===void 0?!1:Y;q=new y$f(q||d,T||d);return{x:d.x+((Y===void 0?0:Y)?q.G*-1:q.G)*.2,y:d.y+((Y===void 0?0:Y)?q.U*-1:q.U)*.2}};
  2702. y$f=function(d,q){this.U=this.G=0;this.G=q.x-d.x;this.U=q.y-d.y};
  2703. QCH=function(d,q){var T,Y,e;return g.G(function(U){if(U.U==1)return T={context:g.mV(),settingItemIds:q},Y=g.vG(hW7),g.B(U,g.GY(d,T,Y),2);e=U.G;return!e||e.errorMetadata?(HC2("GetSettingValuesRequest",e),U.return(void 0)):U.return(e.settingValues)})};
  2704. c$N=function(d,q,T){var Y,e,U;g.G(function(b){if(b.U==1)return Y={context:g.mV(),settingItemId:q,newValue:T},e=g.vG(Ma6),g.B(b,g.GY(d,Y,e),2);U=b.G;if(!U||U.errorMetadata)return HC2("SetSettingRequest",U),b.return(void 0);g.E6(b)})};
  2705. HC2=function(d,q){q?q.errorMetadata&&g.OL(new g.CW(d+" failed with status "+q.errorMetadata.status)):g.OL(new g.CW(d+" failed with empty response"))};
  2706. Ey2=function(d){return HK(d,0,"gclid",d.search(Q6))>=0||HK(d,0,"gad_source",d.search(Q6))>=0};
  2707. jC1=function(){this.G=new Map};
  2708. A$H=function(d,q){var T=Ou().resolve(a5I);if(Ey2(q)){var Y=cK(q,"gclid");q={handleEvent:function(J){d&&!d.closed&&typeof d.postMessage==="function"&&J&&J.origin&&J.source===d&&J.data&&J.data.action==="gcl_setup"&&d.postMessage(Object.assign({},{action:"gcl_transfer"},Y&&{gclid:Y},{gadSource:2}),J.origin)}};
  2709. for(var e=g.E(T.G),U=e.next();!U.done;U=e.next()){var b=g.E(U.value);U=b.next().value;b=b.next().value;if(U.closed)try{window.removeEventListener("message",b),T.G.delete(U)}catch(J){g.Zz(J)}}d&&T.G.size<15&&(T.G.set(d,q),window.addEventListener("message",q))}};
  2710. xU=function(d,q,T){if(!q)return d.length>=1?d[d.length-1]:null;for(var Y=g.E(d),e=Y.next();!e.done;e=Y.next())if(e=e.value,e.width&&e.height&&(T&&e.width>=q||!T&&e.height>=q))return e;for(q=d.length-1;q>=0;q--)if(T&&d[q].width||!T&&d[q].height)return d[q];return d[0]};
  2711. yK=function(){this.state=1;this.CH=null;this.XM=void 0};
  2712. ZC6=function(d,q,T,Y,e,U){var b=b===void 0?"trayride":b;T?(d.XC(2),g.TT(T,function(){if(window[b])pig(d,Y,b,e);else{d.XC(3);var J=aA6(T),F=document.getElementById(J);F&&(E5D(J),F.parentNode.removeChild(F));g.OL(new g.CW("BL:ULB",""+T))}},U)):q?(U=g.FE("SCRIPT"),q instanceof yY?(U.textContent=hn(q),HZ(U)):U.textContent=q,U.nonce=xS(document),document.head.appendChild(U),document.head.removeChild(U),window[b]?pig(d,Y,b,e):(d.XC(4),g.OL(new g.CW("BL:ULBJ")))):g.OL(new g.CW("BL:ULV"))};
  2713. pig=function(d,q,T,Y){d.XC(5);var e=!!d.XM&&OCn.includes(g.sb(d.XM)||"");try{var U=new $H({program:q,globalName:T,AO:{disable:!g.RD("att_web_record_metrics")||!g.RD("att_skip_metrics_for_cookieless_domains_ks")&&e,wH:"aGIf"}});U.w0.then(function(){d.XC(6);Y&&Y(q)});
  2714. d.xd(U)}catch(b){d.XC(7),b instanceof Error&&g.OL(b)}};
  2715. HD=function(){var d=g.qx("yt.abuse.playerAttLoader");return d&&["bgvma","bgvmb","bgvmc"].every(function(q){return q in d})?d:null};
  2716. QK=function(){yK.apply(this,arguments)};
  2717. M1=function(){};
  2718. ny6=function(d,q,T){for(var Y=!1,e=g.E(d.yK.entries()),U=e.next();!U.done;U=e.next())U=g.E(U.value).next().value,U.slotType==="SLOT_TYPE_PLAYER_BYTES"&&U.nf==="core"&&(Y=!0);if(Y){a:if(!T){d=g.E(d.yK.entries());for(T=d.next();!T.done;T=d.next())if(Y=g.E(T.value),T=Y.next().value,Y=Y.next().value,T.slotType==="SLOT_TYPE_IN_PLAYER"&&T.nf==="core"){T=Y.layoutId;break a}T=void 0}T?q.dj(T):Jm("No triggering layout ID available when attempting to mute.")}};
  2719. cD=function(d,q){this.NF=d;this.je=q};
  2720. En=function(){};
  2721. jo=function(){};
  2722. taQ=function(d){g.W.call(this);var q=this;this.FC=d;this.G=new Map;aw(this,"commandExecutorCommand",function(T,Y,e){r$_(q,T.commands,Y,e)});
  2723. aw(this,"clickTrackingParams",function(){})};
  2724. B4D=function(d,q){aw(d,q.xH(),function(T,Y,e){q.WZ(T,Y,e)})};
  2725. aw=function(d,q,T){d.JF();d.G.get(q)&&g.Zz(Error("Extension name "+q+" already registered"));d.G.set(q,T)};
  2726. r$_=function(d,q,T,Y){q=q===void 0?[]:q;d.JF();var e=[],U=[];q=g.E(q);for(var b=q.next();!b.done;b=q.next())b=b.value,g.D(b,KIX)||g.D(b,GTj)?e.push(b):U.push(b);e=g.E(e);for(q=e.next();!q.done;q=e.next())Ab(d,q.value,T,Y);U=g.E(U);for(e=U.next();!e.done;e=U.next())Ab(d,e.value,T,Y)};
  2727. Ab=function(d,q,T,Y){d.JF();q.loggingUrls&&LIQ(d,"loggingUrls",q.loggingUrls,T,Y);q=g.E(Object.entries(q));for(var e=q.next();!e.done;e=q.next()){var U=g.E(e.value);e=U.next().value;U=U.next().value;e==="openPopupAction"?d.FC.get().qd("innertubeCommand",{openPopupAction:U}):e==="confirmDialogEndpoint"?d.FC.get().qd("innertubeCommand",{confirmDialogEndpoint:U}):kT7.hasOwnProperty(e)||LIQ(d,e,U,T,Y)}};
  2728. LIQ=function(d,q,T,Y,e){if((d=d.G.get(q))&&typeof d==="function")try{d(T,Y,e)}catch(U){g.Zz(U)}else q=new g.CW("Unhandled field",q),g.OL(q)};
  2729. p3=function(d,q,T){this.kP=d;this.G=q;this.Hv=T;aC(Ou(),{Mn:a5I,Du:jC1})};
  2730. Zh=function(d){this.value=d};
  2731. On=function(d){this.value=d};
  2732. n3=function(d){this.value=d};
  2733. rE=function(d){this.value=d};
  2734. tb=function(d){this.value=d};
  2735. BD=function(d){this.value=d};
  2736. K3=function(d){this.value=d};
  2737. Gm=function(){Zh.apply(this,arguments)};
  2738. L3=function(d){this.value=d};
  2739. kU=function(d){this.value=d};
  2740. PD=function(d){this.value=d};
  2741. WD=function(d){this.value=d};
  2742. C3=function(d){this.value=d};
  2743. ua=function(d){this.value=d};
  2744. Dh=function(d){this.value=d};
  2745. wE=function(d){this.value=d};
  2746. f3=function(d){this.value=d};
  2747. zm=function(d){this.value=d};
  2748. ia=function(){Zh.apply(this,arguments)};
  2749. Iw=function(d){this.value=d};
  2750. m0=function(d){this.value=d};
  2751. So=function(d){this.value=d};
  2752. la=function(d){this.value=d};
  2753. vD=function(d){this.value=d};
  2754. ow=function(d){this.value=d};
  2755. VK=function(d){this.value=d};
  2756. dJ=function(d){this.value=d};
  2757. q_=function(d){this.value=d};
  2758. Te=function(d){this.value=d};
  2759. Yg=function(d){this.value=d};
  2760. et=function(d){this.value=d};
  2761. UH=function(d){this.value=d};
  2762. b7=function(d){this.value=d};
  2763. Xb=function(d){this.value=d};
  2764. Js=function(d){this.value=d};
  2765. sH=function(d){this.value=d};
  2766. $g=function(d){this.value=d};
  2767. gJ=function(d){this.value=d};
  2768. Fb=function(d){this.value=d};
  2769. N_=function(d){this.value=d};
  2770. RV=function(d){this.value=d};
  2771. xg=function(d){this.value=d};
  2772. yq=function(d){this.value=d};
  2773. hs=function(d){this.value=d};
  2774. H4=function(d){this.value=d};
  2775. Qq=function(d){this.value=d};
  2776. M_=function(d){this.value=d};
  2777. c4=function(d){this.value=d};
  2778. EH=function(d){this.value=d};
  2779. jt=function(d){this.value=d};
  2780. aV=function(d){this.value=d};
  2781. As=function(d){this.value=d};
  2782. pm=function(d){this.value=d};
  2783. Z3=function(d){this.value=d};
  2784. OH=function(d){this.value=d};
  2785. nm=function(d){this.value=d};
  2786. rJ=function(d){this.value=d};
  2787. ts=function(d){this.value=d};
  2788. B4=function(){Zh.apply(this,arguments)};
  2789. Km=function(d){this.value=d};
  2790. Ge=function(){Zh.apply(this,arguments)};
  2791. Lm=function(){Zh.apply(this,arguments)};
  2792. kg=function(){Zh.apply(this,arguments)};
  2793. P4=function(){Zh.apply(this,arguments)};
  2794. W4=function(){Zh.apply(this,arguments)};
  2795. Cm=function(d){this.value=d};
  2796. u7=function(d){this.value=d};
  2797. D3=function(d){this.value=d};
  2798. wJ=function(d){this.value=d};
  2799. fm=function(d){this.value=d};
  2800. i7=function(d,q,T){if(T&&!T.includes(d.layoutType))return!1;q=g.E(q);for(T=q.next();!T.done;T=q.next())if(!ze(d.clientMetadata,T.value))return!1;return!0};
  2801. IV=function(){return""};
  2802. PyQ=function(d,q){switch(d){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 q(d),8}};
  2803. m5=function(d,q,T,Y){Y=Y===void 0?!1:Y;xc.call(this,d);this.b9=T;this.kA=Y;this.args=[];q&&this.args.push(q)};
  2804. S=function(d,q,T,Y){Y=Y===void 0?!1:Y;xc.call(this,d);this.b9=T;this.kA=Y;this.args=[];q&&this.args.push(q)};
  2805. St=function(d){var q=new Map;d.forEach(function(T){q.set(T.G(),T)});
  2806. this.G=q};
  2807. ze=function(d,q){return d.G.has(q)};
  2808. l7=function(d,q){d=d.G.get(q);if(d!==void 0)return d.get()};
  2809. v4=function(d){return Array.from(d.G.keys())};
  2810. oV=function(d,q,T){if(T&&T!==d.slotType)return!1;q=g.E(q);for(T=q.next();!T.done;T=q.next())if(!ze(d.clientMetadata,T.value))return!1;return!0};
  2811. Cyg=function(d){var q;return((q=WIn.get(d))==null?void 0:q.uy)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
  2812. dp=function(d,q){var T={type:q.slotType,controlFlowManagerLayer:uZ7.get(q.nf)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};q.slotEntryTrigger&&(T.entryTriggerType=q.slotEntryTrigger.triggerType);q.slotPhysicalPosition!==1&&(T.slotPhysicalPosition=q.slotPhysicalPosition);if(d){T.debugData={slotId:q.slotId};if(d=q.slotEntryTrigger)T.debugData.slotEntryTriggerData=Vq(d);d=q.slotFulfillmentTriggers;T.debugData.fulfillmentTriggerData=[];d=g.E(d);for(var Y=d.next();!Y.done;Y=d.next())T.debugData.fulfillmentTriggerData.push(Vq(Y.value));
  2813. q=q.slotExpirationTriggers;T.debugData.expirationTriggerData=[];q=g.E(q);for(d=q.next();!d.done;d=q.next())T.debugData.expirationTriggerData.push(Vq(d.value))}return T};
  2814. D96=function(d,q){var T={type:q.layoutType,controlFlowManagerLayer:uZ7.get(q.nf)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};d&&(T.debugData={layoutId:q.layoutId});return T};
  2815. Vq=function(d,q){var T={type:d.triggerType};q!=null&&(T.category=q);d.triggeringSlotId!=null&&(T.triggerSourceData||(T.triggerSourceData={}),T.triggerSourceData.associatedSlotId=d.triggeringSlotId);d.triggeringLayoutId!=null&&(T.triggerSourceData||(T.triggerSourceData={}),T.triggerSourceData.associatedLayoutId=d.triggeringLayoutId);return T};
  2816. wi2=function(d,q,T,Y){q={opportunityType:q};d&&(Y||T)&&(Y=g.yC(Y||[],function(e){return dp(d,e)}),q.debugData=Object.assign({},T&&T.length>0?{associatedSlotId:T}:{},Y.length>0?{slots:Y}:{}));
  2817. return q};
  2818. Tn=function(d,q){return function(T){return f5_(qE(d),q.slotId,q.slotType,q.slotPhysicalPosition,q.nf,q.slotEntryTrigger,q.slotFulfillmentTriggers,q.slotExpirationTriggers,T.layoutId,T.layoutType,T.nf)}};
  2819. f5_=function(d,q,T,Y,e,U,b,J,F,N,R){return{adClientDataEntry:{slotData:dp(d,{slotId:q,slotType:T,slotPhysicalPosition:Y,nf:e,slotEntryTrigger:U,slotFulfillmentTriggers:b,slotExpirationTriggers:J,clientMetadata:new St([])}),layoutData:D96(d,{layoutId:F,layoutType:N,nf:R,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],GG:new Map,clientMetadata:new St([]),HF:{}})}}};
  2820. eh=function(d){this.T2=d;d=Math.random();var q=this.T2.get();q=g.Yv(q.J.C().experiments,"html5_debug_data_log_probability");q=Number.isFinite(q)&&q>=0&&q<=1?q:0;this.G=d<q};
  2821. qE=function(d){return d.G||d.T2.get().J.C().N("html5_force_debug_data_for_client_tmp_logs")};
  2822. U5=function(d,q,T,Y){g.W.call(this);this.U=q;this.JA=T;this.T2=Y;this.G=d(this,this,this,this,this);g.C(this,this.G);d=g.E(q);for(q=d.next();!q.done;q=d.next())g.C(this,q.value)};
  2823. bG=function(d,q){d.U.add(q)};
  2824. XX=function(d,q){d.U.delete(q)};
  2825. s5=function(d,q,T,Y){Jm(T,q,void 0,void 0,T.kA);T.b9?d.JA.ys(Y,T.b9,q):Jm("adsClientErrorMessage is missing.",q);Jo(d,q,!0)};
  2826. iCI=function(d,q,T){if($v(d.G,q))if(gp(d.G,q).T=T?"filled":"not_filled",T===null){d.JA.CA("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",q);T=g.E(d.U);for(var Y=T.next();!Y.done;Y=T.next())Y.value.Hr(q);Jo(d,q,!1)}else{d.JA.CA("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",q,T);d.JA.CA("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",q,T);var e,U=(e=T.iV)!=null?e:l7(T.clientMetadata,"metadata_type_sub_layouts");if(U)for(e=g.E(U),U=e.next();!U.done;U=e.next())d.JA.CA("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",
  2827. q,U.value);e=g.E(d.U);for(U=e.next();!U.done;U=e.next())U.value.uS(q);if($v(d.G,q))if(gp(d.G,q).S)Jo(d,q,!1);else{d.JA.CA("ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",q,T);try{Y=d.G;if(!gp(Y,q))throw new m5("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!Y.Rt.iI.get(q.slotType))throw new m5("No LayoutRenderingAdapterFactory registered for slot of type: "+q.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY");
  2828. if(T.layoutExitNormalTriggers.length==0&&T.layoutExitSkipTriggers.length==0&&T.layoutExitMuteTriggers.length==0&&T.layoutExitUserInputSubmittedTriggers.length==0&&T.J1.length==0)throw new m5("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");FX(Y,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",T.layoutExitNormalTriggers);FX(Y,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",T.layoutExitSkipTriggers);FX(Y,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",T.layoutExitMuteTriggers);
  2829. FX(Y,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",T.layoutExitUserInputSubmittedTriggers);FX(Y,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",T.J1)}catch(N){N instanceof m5?d.Cz(q,T,N,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):d.Cz(q,T,new m5("Unexpected error: "+N,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");Jo(d,q,!0);return}gp(d.G,q).X=!0;try{var b=d.G,J=gp(b,q),F=b.Rt.iI.get(q.slotType).get().build(b.T,b.U,q,T);F.init();J.layout=
  2830. T;if(J.j)throw new m5("Already had LayoutRenderingAdapter registered for slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");J.j=F;NE(b,J,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",T.layoutExitNormalTriggers);NE(b,J,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",T.layoutExitSkipTriggers);NE(b,J,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",T.layoutExitMuteTriggers);NE(b,J,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",T.layoutExitUserInputSubmittedTriggers);NE(b,J,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",
  2831. T.J1)}catch(N){Rj(d,q);N instanceof m5?d.Cz(q,T,N,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):d.Cz(q,T,new m5("Unexpected error: "+N,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");Jo(d,q,!0);return}d.JA.CA("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",q,T);Y=g.E(d.U);for(b=Y.next();!b.done;b=Y.next())b.value.Cj(q,T);Rj(d,q);zWX(d,q)}else d=d.T2.get(),g.xv(d.J.C())||yz(d.J.C())||g.ho(d.J.C())?d=!0:(Jm("Composite VOD on legacy path."),d=!1),d&&Jm("slot is unscheduled after been fulfilled.",
  2832. q,T)}};
  2833. I52=function(d,q,T){q.nf!=="core"&&d.JA.CA("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",q,T,void 0)};
  2834. m9_=function(d,q,T){d.JA.CA("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",q,T,void 0);d=g.E(d.U);for(var Y=d.next();!Y.done;Y=d.next())Y.value.Cj(q,T)};
  2835. Su_=function(d,q,T){d=g.E(d.U);for(var Y=d.next();!Y.done;Y=d.next())Y.value.Uc(q,T)};
  2836. HA=function(d,q,T){d.JA.CA("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",q,T,void 0);d=g.E(d.U);for(var Y=d.next();!Y.done;Y=d.next())Y.value.AA(q,T)};
  2837. Qz=function(d,q,T,Y){d.JA.CA(Cyg(Y),q,T,void 0);d=g.E(d.U);for(var e=d.next();!e.done;e=d.next())e.value.i$(q,T,Y)};
  2838. Rj=function(d,q){if($v(d.G,q)){gp(d.G,q).X=!1;var T=ME;q=gp(d.G,q);var Y=[].concat(g.RQ(q.B));jQ7(q.B);T(d,Y)}};
  2839. ME=function(d,q){q.sort(function(U,b){function J(F){Jm("TriggerCategoryOrder enum does not contain trigger category: "+F)}
  2840. return U.category===b.category?U.trigger.triggerId.localeCompare(b.trigger.triggerId):PyQ(U.category,J)-PyQ(b.category,J)});
  2841. var T=new Map;q=g.E(q);for(var Y=q.next();!Y.done;Y=q.next())if(Y=Y.value,$v(d.G,Y.slot))if(gp(d.G,Y.slot).X)gp(d.G,Y.slot).B.push(Y);else{d.JA.bd("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",Y.slot,Y,Y.layout);var e=T.get(Y.category);e||(e=[]);e.push(Y);T.set(Y.category,e)}q=g.E(l5D);for(Y=q.next();!Y.done;Y=q.next())e=g.E(Y.value),Y=e.next().value,e=e.next().value,(Y=T.get(Y))&&vyn(d,Y,e);(q=T.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&oy1(d,q);(q=T.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&Va_(d,
  2842. q);(T=T.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&dhg(d,T)};
  2843. vyn=function(d,q,T){q=g.E(q);for(var Y=q.next();!Y.done;Y=q.next())Y=Y.value,Y.layout&&cA(d.G,Y.slot)&&qL6(d,Y.slot,Y.layout,T)};
  2844. oy1=function(d,q){q=g.E(q);for(var T=q.next();!T.done;T=q.next())Jo(d,T.value.slot,!1)};
  2845. Va_=function(d,q){q=g.E(q);for(var T=q.next();!T.done;T=q.next()){T=T.value;a:switch(gp(d.G,T.slot).T){case "not_filled":var Y=!0;break a;default:Y=!1}Y&&(d.JA.fq("ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",T.slot),d.G.f1(T.slot))}};
  2846. dhg=function(d,q){q=g.E(q);for(var T=q.next();!T.done;T=q.next()){T=T.value;d.JA.fq("ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",T.slot);for(var Y=g.E(d.U),e=Y.next();!e.done;e=Y.next())e.value.s$(T.slot);try{var U=d.G,b=T.slot,J=gp(U,b);if(!J)throw new S("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!J.U)throw new S("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if(J.G!=="scheduled")throw new S("Tried to enter a slot from stage: "+
  2847. J.G,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(E5(J))throw new S("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var F=g.E(jh(U,b.slotType+"_"+b.slotPhysicalPosition).values()),N=F.next();!N.done;N=F.next()){var R=N.value;if(J!==R&&E5(R))throw new S("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:R.G},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");}}catch(x){x instanceof S&&x.b9?(d.JA.ys("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",
  2848. x.b9,T.slot),Jm(x,T.slot,aj(d.G,T.slot),void 0,x.kA)):(d.JA.ys("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",T.slot),Jm(x,T.slot));Jo(d,T.slot,!0);continue}T=gp(d.G,T.slot);T.G!=="scheduled"&&Ao(T.slot,T.G,"enterSlot");T.G="enter_requested";T.U.Ho()}};
  2849. zWX=function(d,q){if($v(d.G,q)&&E5(gp(d.G,q))&&aj(d.G,q)&&!cA(d.G,q)){var T;d.JA.CA("ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",q,(T=aj(d.G,q))!=null?T:void 0);d=gp(d.G,q);d.G!=="entered"&&Ao(d.slot,d.G,"enterLayoutForSlot");d.G="rendering";d.j.startRendering(d.layout)}};
  2850. qL6=function(d,q,T,Y){if($v(d.G,q)){var e=d.JA,U=e.CA,b;var J=((b=WIn.get(Y))==null?void 0:b.QD)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";U.call(e,J,q,T);d=gp(d.G,q);d.G!=="rendering"&&Ao(d.slot,d.G,"exitLayout");d.G="rendering_stop_requested";d.j.OF(T,Y)}};
  2851. Jo=function(d,q,T){if($v(d.G,q)){a:switch(gp(d.G,q).G){case "exit_requested":var Y=!0;break a;default:Y=!1}if(!Y)a:switch(gp(d.G,q).G){case "rendering_stop_requested":Y=!0;break a;default:Y=!1}if(Y&&(gp(d.G,q).S=!0,!T))return;if(E5(gp(d.G,q)))gp(d.G,q).S=!0,Ti2(d,q,T);else{a:switch(gp(d.G,q).T){case "fill_requested":T=!0;break a;default:T=!1}if(T)gp(d.G,q).S=!0,$v(d.G,q)&&(d.JA.fq("ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",q),q=gp(d.G,q),q.T="fill_cancel_requested",q.L.zF());else{T=
  2852. aj(d.G,q);(Y=d.T2.get().J.C().experiments.Wv("h5_enable_layout_unscheduling_events"))&&(T?d.Uc(q,T):Jm(Error("Layout is null for LayoutUnscheduled event."),q,T,void 0,!1));d.JA.fq("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",q);var e=gp(d.G,q),U=q.slotEntryTrigger,b=e.yv.get(U.triggerId);b&&(b.kZ(U),e.yv.delete(U.triggerId));U=g.E(q.slotFulfillmentTriggers);for(b=U.next();!b.done;b=U.next()){b=b.value;var J=e.lr.get(b.triggerId);J&&(J.kZ(b),e.lr.delete(b.triggerId))}U=g.E(q.slotExpirationTriggers);
  2853. for(b=U.next();!b.done;b=U.next())if(b=b.value,J=e.K.get(b.triggerId))J.kZ(b),e.K.delete(b.triggerId);e.layout!=null&&(U=e.layout,pu(e,U.layoutExitNormalTriggers),pu(e,U.layoutExitSkipTriggers),pu(e,U.layoutExitMuteTriggers),pu(e,U.layoutExitUserInputSubmittedTriggers),pu(e,U.J1));e.L=void 0;e.U!=null&&(e.U.release(),e.U=void 0);e.j!=null&&(e.j.release(),e.j=void 0);e=d.G;gp(e,q)&&(e=jh(e,q.slotType+"_"+q.slotPhysicalPosition))&&e.delete(q.slotId);d.JA.fq("ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",
  2854. q);d=g.E(d.U);for(e=d.next();!e.done;e=d.next())e=e.value,e.dU(q),T&&!Y&&e.Uc(q,T)}}}};
  2855. Ti2=function(d,q,T){if($v(d.G,q)&&E5(gp(d.G,q))){var Y=aj(d.G,q);if(Y&&cA(d.G,q))qL6(d,q,Y,T?"error":"abandoned");else{d.JA.fq("ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",q);try{var e=gp(d.G,q);if(!e)throw new S("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");e.G!=="enter_requested"&&e.G!=="entered"&&e.G!=="rendering"&&Ao(e.slot,e.G,"exitSlot");e.G="exit_requested";if(e.U===void 0)throw e.G="scheduled",new S("Cannot exit slot because adapter is not defined",
  2856. void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");e.U.Jz()}catch(U){U instanceof S&&U.b9?(d.JA.ys("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",U.b9,q),Jm(U,q,void 0,void 0,U.kA)):(d.JA.ys("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",q),Jm(U,q))}}}};
  2857. YLf=function(d){this.slot=d;this.yv=new Map;this.lr=new Map;this.K=new Map;this.UD=new Map;this.j=this.layout=this.U=this.L=void 0;this.X=this.S=!1;this.B=[];this.G="not_scheduled";this.T="not_filled"};
  2858. E5=function(d){return d.G==="enter_requested"||d.isActive()};
  2859. Zp=function(d,q,T,Y,e,U){g.W.call(this);this.Rt=d;this.j=q;this.S=T;this.T=Y;this.U=e;this.T2=U;this.G=new Map};
  2860. jh=function(d,q){return(d=d.G.get(q))?d:new Map};
  2861. gp=function(d,q){return jh(d,q.slotType+"_"+q.slotPhysicalPosition).get(q.slotId)};
  2862. emj=function(d){var q=[];d.G.forEach(function(T){T=g.E(T.values());for(var Y=T.next();!Y.done;Y=T.next())q.push(Y.value.slot)});
  2863. return q};
  2864. $v=function(d,q){return gp(d,q)!=null};
  2865. cA=function(d,q){d=gp(d,q);if(q=d.layout!=null)a:switch(d.G){case "rendering":case "rendering_stop_requested":q=!0;break a;default:q=!1}return q};
  2866. aj=function(d,q){(d=gp(d,q))?d.layout!=null&&!d.layout&&Jm("Unexpected empty layout",q):Jm("Unexpected undefined slotState",q);return(d==null?void 0:d.layout)||null};
  2867. O5=function(d,q,T){if(T.length==0)throw new S("No "+Uhf.get(q)+" triggers found for slot.",void 0,b17(q));T=g.E(T);for(var Y=T.next();!Y.done;Y=T.next())if(Y=Y.value,!d.Rt.QP.get(Y.triggerType))throw new S("No trigger adapter registered for "+q+" trigger of type: "+Y.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
  2868. b17=function(d){switch(d){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"}};
  2869. FX=function(d,q,T){T=g.E(T);for(var Y=T.next();!Y.done;Y=T.next())if(Y=Y.value,!d.Rt.QP.get(Y.triggerType))throw new m5("No trigger adapter registered for "+Uhf.get(q)+" trigger of type: "+Y.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
  2870. NE=function(d,q,T,Y){Y=g.E(Y);for(var e=Y.next();!e.done;e=Y.next()){e=e.value;var U=d.Rt.QP.get(e.triggerType);U.BR(T,e,q.slot,q.layout?q.layout:null);q.UD.set(e.triggerId,U)}};
  2871. pu=function(d,q){q=g.E(q);for(var T=q.next();!T.done;T=q.next()){T=T.value;var Y=d.UD.get(T.triggerId);Y&&(Y.kZ(T),d.UD.delete(T.triggerId))}};
  2872. Ao=function(d,q,T){Jm("Slot stage was "+q+" when calling method "+T,d)};
  2873. Xaj=function(d){return nu(d.GW).concat(nu(d.QP)).concat(nu(d.Xg)).concat(nu(d.kI)).concat(nu(d.iI))};
  2874. nu=function(d){var q=[];d=g.E(d.values());for(var T=d.next();!T.done;T=d.next())T=T.value,T.B4&&q.push(T);return q};
  2875. rp=function(d){g.W.call(this);var q=this;this.G=d;this.instance=null;this.addOnDisposeCallback(function(){g.T1(q.instance);q.instance=null})};
  2876. to=function(d){return new rp(d)};
  2877. BA=function(d){g.W.call(this);this.G=d;this.U=Jtf(this)};
  2878. Jtf=function(d){var q=new U5(function(T,Y,e,U){return new Zp(d.G.Rt,T,Y,e,U,d.G.T2)},new Set(Xaj(d.G.Rt).concat(d.G.listeners)),d.G.JA,d.G.T2);
  2879. g.C(d,q);return q};
  2880. Ku=function(d){this.G=d};
  2881. Gn=function(d,q,T){r$_(d.G(),q,T)};
  2882. Lu=function(d,q,T,Y){(d=d.G())||Jm("Could not initiate a command router instance.");Ab(d,q,T,Y)};
  2883. kv=function(){this.listeners=new Set};
  2884. PA=function(d){this.T2=d};
  2885. s$2=function(d,q){var T=q.bgp&&q.bgub,Y=!!q.upb;q.siub&&q.scs&&(T||Y)&&(Y&&WA(d.T2.get(),"html5_export_sodar_snapshot")?v3().then(function(e){e=e.snapshot.bind(e);g.Vf("yt.abuse.playerAttLoaderRun",e);t81(q.siub,q.scs,q.bgub,q.bgp,q.upb)}):t81(q.siub,q.scs,q.bgub,q.bgp,q.upb))};
  2886. $h1=function(d,q,T,Y,e){this.callback=d;this.slot=q;this.U=T;this.KH=Y;this.T2=e;this.G=null};
  2887. Fdg=function(d,q,T,Y){d.G&&Jm("Currently active request ongoing for slot. This should never happen",d.slot);d.G=q();d.G.then(function(e){d.G=null;Y&&Y(e);var U=e.xr?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",b=d.U.get(),J=d.slot.slotId,F=Tn(d.KH.get(),{slotId:d.slot.slotId,slotType:d.slot.slotType,slotPhysicalPosition:d.slot.slotPhysicalPosition,nf:d.slot.nf,slotEntryTrigger:d.slot.slotEntryTrigger,slotFulfillmentTriggers:d.slot.slotFulfillmentTriggers,slotExpirationTriggers:d.slot.slotExpirationTriggers}),
  2888. N=Cu(b.U.get(),U,J),R={layoutId:N,layoutType:U,nf:"core"};e={layoutId:N,layoutType:U,GG:new Map,layoutExitNormalTriggers:[new gzn(b.G,J)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"core",clientMetadata:new St([new OH(e)]),HF:F(R)};iCI(d.callback,d.slot,e)},function(e){d.G=null;
  2889. T&&T();e instanceof Bd||s5(d.callback,d.slot,new S(e,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})};
  2890. Nij=function(d){if(d.G==null)d.callback.We(d.slot);else try{d.G.cancel(),d.G=null,d.callback.We(d.slot)}catch(q){d.G=null,s5(d.callback,d.slot,new S(q,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}};
  2891. uG=function(d,q,T,Y){!d&&(T===void 0?0:T)&&g.OL(Error("Player URL validator detects invalid url. "+(Y===void 0?"":Y)+": "+q));return d};
  2892. Dp=function(d,q){return q&&q.test(d)?!0:!1};
  2893. xh7=function(d){return(d=Rmf&&Rmf.exec(d))?d[0]:""};
  2894. wp=function(d){var q=q===void 0?!1:q;return uG(Dp(d,yt1),d,q,"Trusted Stream URL")};
  2895. g.fu=function(d){var q=q===void 0?!1:q;return uG(Dp(d,hmj),d,q,"Trusted Image URL")};
  2896. Q$2=function(d){var q=q===void 0?!1:q;return uG(Dp(d,H1Q),d,q,"Trusted Promoted Video Domain URL")};
  2897. ctg=function(d){var q=q===void 0?!1:q;return uG(Dp(d,Mn1),d,q,"Drm Licensor URL")};
  2898. j$_=function(d,q){q=q===void 0?!1:q;return uG(Dp(d,EzY),d,q,"Captions URL")};
  2899. azQ=function(d){d=new g.Vm(d);g.dW(d,document.location.protocol);g.qK(d,document.location.hostname);document.location.port&&g.Th(d,document.location.port);return d.toString()};
  2900. zn=function(d){d=new g.Vm(d);g.dW(d,document.location.protocol);return d.toString()};
  2901. g.Ij=function(d,q,T){T=T===void 0?{}:T;this.start=d;this.end=q;this.active=!0;this.color="";this.U=Atn++;this.id=T.id||"";this.priority=T.priority||9;this.visible=T.visible||!1;this.style=T.style||iG.AD_MARKER;this.namespace=T.namespace||"";if(d=T.color)d=d.toString(16),this.color="#"+Array(7-d.length).join("0")+d;this.tooltip=T.tooltip;this.icons=T.icons?T.icons.filter(function(Y){return g.h0(Y.thumbnails,function(e){return g.fu(e.url)})}):null;
  2902. this.associatedClipId=T.associatedClipId;this.markerPositionMs=T.markerPositionMs;this.visible=this.visible;this.style=this.style;this.start=this.start};
  2903. pan=function(d){return d===-0x8000000000000?"BEFORE_MEDIA_START":d===0?"MEDIA_START":d===0x7ffffffffffff?"MEDIA_END":d===0x8000000000000?"AFTER_MEDIA_END":d.toString()};
  2904. Z1f=function(d,q){switch(d.style){case iG.CHAPTER_MARKER:return q?8:5;case iG.AD_MARKER:return 6;case iG.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
  2905. g.mX=function(d,q){return d.start-q.start||d.priority-q.priority||d.U-q.U};
  2906. g.Sh=function(d){return"crn_"+d};
  2907. g.lG=function(d){return"crx_"+d};
  2908. vA=function(d,q,T,Y,e,U,b,J,F){this.slot=q;this.U=T;this.Hv=b;this.Yx=J;this.Gq=F;this.G=new $h1(d,q,Y,e,U)};
  2909. O1Y=function(d){var q;(q=d.Gq)==null||q.get().uI(l7(d.slot.clientMetadata,"metadata_type_cue_point").identifier)};
  2910. oj=function(d,q,T,Y,e,U){this.slot=q;this.G=T;this.U=new $h1(d,q,Y,e,U)};
  2911. Vz=function(d,q){this.callback=d;this.slot=q};
  2912. dX=function(d,q){return oV(d,q.Pl,q.slotType)?!0:!1};
  2913. qo=function(){};
  2914. TS=function(d,q,T,Y,e,U,b){this.G=d;this.U=q;this.KH=T;this.T2=Y;this.Hv=e;this.Yx=U;this.Gq=b};
  2915. Yu=function(){};
  2916. nz7=function(d,q,T,Y,e,U){this.callback=d;this.slot=q;this.layout=T;this.j=Y;this.G=e;this.U=U};
  2917. tnI=function(d){if(l7(d.slot.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule")){var q=rtD(d,d.slot);eP(d.G.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",function(){return[q]})}};
  2918. BiI=function(d){if(l7(d.slot.clientMetadata,"metadata_type_prefetch_metadata")){var q=rtD(d,d.slot);eP(d.G.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return[q]})}};
  2919. rtD=function(d,q){var T=U0(d.U.get(),d.slot.slotType),Y=Object,e=Y.assign;d=d.slot;if(q.slotEntryTrigger){var U=q.slotId;var b=q.slotEntryTrigger;U=b.triggeringSlotId!=null&&b.triggeringSlotId===U?b.clone(T):b}else U=void 0;return e.call(Y,{},d,{slotId:T,slotEntryTrigger:U,slotFulfillmentTriggers:Kd2(q.slotId,T,q.slotFulfillmentTriggers),slotExpirationTriggers:Kd2(q.slotId,T,q.slotExpirationTriggers)})};
  2920. Kd2=function(d,q,T){var Y=[];T=g.E(T);for(var e=T.next();!e.done;e=T.next()){var U=Y,b=U.push;var J=d;var F=q;e=e.value;J=e.triggeringSlotId!=null&&e.triggeringSlotId===J?e.clone(F):e;b.call(U,J)}return Y};
  2921. g.bO=function(d,q){for(var T=g.E(Object.keys(q)),Y=T.next(),e={};!Y.done;e={placeholder:void 0},Y=T.next())Y=Y.value,e.placeholder=q[Y],d=d.replace(new RegExp("\\$"+Y,"gi"),function(U){return function(){return U.placeholder}}(e));
  2922. return d};
  2923. Gp7=function(d,q,T){this.G=d;this.slot=q;this.layout=T};
  2924. XI=function(d,q,T){q.layoutId!==d.layout.layoutId?d.G.Cz(d.slot,q,new m5("Unknown layout received. Required LayoutId: "+d.layout.layoutId+("and LayoutType: "+d.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):T()};
  2925. J8=function(d,q,T,Y){g.YP.call(this);this.callback=d;this.j=Y;this.G=[];this.U=new Gp7(d,q,T)};
  2926. $u=function(d,q,T,Y,e,U,b,J){Y=Y||l7(T.clientMetadata,U);d=s0(d);var F=BB(function(){e.AA(q,T)});
  2927. J.push(b(Y,d,T.layoutId,{adsClientData:T.HF},function(){F()}))};
  2928. FI=function(d,q,T,Y,e,U,b,J,F){if(q===d)if(F){if(F===J.layoutId){a:{d=g.E(T.keys());for(q=d.next();!q.done;q=d.next())if(q=q.value,q.slotType==="SLOT_TYPE_PLAYER_BYTES"&&U===T.get(q).layoutId){T=!0;break a}T=!1}T?gX(Y,1):e?e():Jm("Tried to call engagePingCallback but it is null",b,J)}}else Jm("Companion AdUxClick received without a layoutId",b,J)};
  2929. No=function(d){var q,T,Y,e,U;return!((q=d.get("active_view_viewable"))==null||!q.length)||!((T=d.get("active_view_measurable"))==null||!T.length)||!((Y=d.get("active_view_fully_viewable_audible_half_duration"))==null||!Y.length)||!((e=d.get("audio_audible"))==null||!e.length)||!((U=d.get("audio_measurable"))==null||!U.length)};
  2930. R5=function(d){var q,T;return(T=d==null?void 0:(q=d.activeViewTracking)==null?void 0:q.trafficType)!=null?T:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
  2931. Ld_=function(d){var q;return d==null?void 0:(q=d.activeViewTracking)==null?void 0:q.identifier};
  2932. xu=function(d){var q,T;return new Map([["impression",d.impressionPings||[]],["error",d.errorPings||[]],["mute",d.mutePings||[]],["unmute",d.unmutePings||[]],["pause",d.pausePings||[]],["rewind",d.rewindPings||[]],["resume",d.resumePings||[]],["skip",d.skipPings||[]],["swipe",d.swipePings||[]],["close",d.closePings||[]],["progress",d.progressPings||[]],["clickthrough",d.clickthroughPings||[]],["fullscreen",d.fullscreenPings||[]],["active_view_viewable",d.activeViewViewablePings||[]],["active_view_measurable",
  2933. d.activeViewMeasurablePings||[]],["active_view_fully_viewable_audible_half_duration",d.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",((q=d.activeViewTracking)==null?void 0:q.activeViewAudioAudiblePings)||[]],["audio_measurable",((T=d.activeViewTracking)==null?void 0:T.activeViewAudioMeasurablePings)||[]],["end_fullscreen",d.endFullscreenPings||[]],["channel_clickthrough",d.channelClickthroughPings||[]],["abandon",d.abandonPings||[]],["start",d.startPings||[]],["first_quartile",
  2934. d.firstQuartilePings||[]],["midpoint",d.secondQuartilePings||[]],["third_quartile",d.thirdQuartilePings||[]],["complete",d.completePings||[]],["unmuted_impression",d.unmutedImpressionPings||[]],["unmuted_error",d.unmutedErrorPings||[]],["unmuted_mute",d.unmutedMutePings||[]],["unmuted_unmute",d.unmutedUnmutePings||[]],["unmuted_pause",d.unmutedPausePings||[]],["unmuted_resume",d.unmutedResumePings||[]],["unmuted_close",d.unmutedClosePings||[]],["unmuted_progress",d.unmutedProgressPings||[]],["unmuted_clickthrough",
  2935. d.unmutedClickthroughPings||[]],["unmuted_fullscreen",d.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",d.unmutedEndFullscreenPings||[]],["unmuted_abandon",d.unmutedAbandonPings||[]],["unmuted_start",d.unmutedStartPings||[]],["unmuted_first_quartile",d.unmutedFirstQuartilePings||[]],["unmuted_midpoint",d.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",d.unmutedThirdQuartilePings||[]],["unmuted_complete",d.unmutedCompletePings||[]],["unmuted_skip",d.unmutedSkipPings||[]]])};
  2936. kpH=function(d){switch(d){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";
  2937. 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";
  2938. 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;
  2939. default:return null}};
  2940. yT=function(d,q,T,Y,e){e=e===void 0?null:e;this.j=d;this.Hv=q;this.layoutId=Y;this.T=0;this.X=null;this.S=void 0;this.G=new Set;this.U=Array.from(this.j.get("progress")||[]);this.U.sort(function(U,b){return(U.offsetMilliseconds||0)-(b.offsetMilliseconds||0)});
  2941. this.L={adPlacementConfig:T,Yf:e}};
  2942. h8=function(){return["metadata_type_ad_placement_config"]};
  2943. s0=function(d){var q=d.Hv.get();return Hp(q,d.L)};
  2944. Mo=function(d,q,T){T=T===void 0?!1:T;d.G.has(q)?QT(d,q,[]):d.EM(q,T)};
  2945. cp=function(d,q,T){for(T=T===void 0?!1:T;d.T<d.U.length;){var Y=d.U[d.T];if(Y.offsetMilliseconds<=q||T)QT(d,"progress",[Y]),d.T++;else break}};
  2946. E0=function(d,q){return d.G.has(q)};
  2947. jP=function(d){return d.U.every(function(q){return q.hasOwnProperty("offsetMilliseconds")})};
  2948. PnX=function(d,q,T){d.X=q;d.S=T};
  2949. QT=function(d,q,T){var Y;WdY(d.Hv.get(),d.layoutId,q,T,(Y=d.X)!=null?Y:void 0,d.S)};
  2950. CnH=function(d,q,T,Y,e){TW.call(this,"ads-engagement-panel-layout",d,q,T,Y,e)};
  2951. a5=function(d,q,T,Y,e,U,b,J){J8.call(this,d,q,T,Y);this.Hv=e;this.cF=U;this.X=J;this.B4=!0;this.T=null;this.S=l7(T.clientMetadata,"metadata_type_linked_player_bytes_layout_id");bG(this.cF(),this);d=l7(T.clientMetadata,"metadata_type_ad_placement_config");this.Dw=new yT(T.GG,this.Hv,d,T.layoutId)};
  2952. unD=function(){var d=["metadata_type_ads_engagement_panel_layout_view_model","metadata_type_linked_player_bytes_layout_id"];h8().forEach(function(q){d.push(q)});
  2953. return{Pl:d,Dm:["LAYOUT_TYPE_PANEL"]}};
  2954. Dh_=function(d,q,T,Y,e){TW.call(this,"banner-image",d,q,T,Y,e)};
  2955. A8=function(d,q,T,Y,e,U,b,J){J8.call(this,d,q,T,Y);this.Hv=e;this.cF=U;this.X=J;this.B4=!0;this.T=null;this.S=l7(T.clientMetadata,"metadata_type_linked_player_bytes_layout_id");bG(this.cF(),this);this.adPlacementConfig=l7(T.clientMetadata,"metadata_type_ad_placement_config");this.Dw=new yT(T.GG,this.Hv,this.adPlacementConfig,T.layoutId)};
  2956. waj=function(){var d=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];h8().forEach(function(q){d.push(q)});
  2957. return{Pl:d,Dm:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
  2958. pw=function(d,q,T,Y,e){TW.call(this,"action-companion",d,q,T,Y,e)};
  2959. Zb=function(d,q,T,Y,e,U,b,J){J8.call(this,d,q,T,Y);this.Hv=e;this.cF=U;this.X=J;this.B4=!0;this.T=null;this.S=l7(T.clientMetadata,"metadata_type_linked_player_bytes_layout_id");bG(this.cF(),this);d=l7(T.clientMetadata,"metadata_type_ad_placement_config");this.Dw=new yT(T.GG,this.Hv,d,T.layoutId)};
  2960. fzQ=function(){var d=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];h8().forEach(function(q){d.push(q)});
  2961. return{Pl:d,Dm:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
  2962. zmI=function(d,q,T,Y,e){TW.call(this,"image-companion",d,q,T,Y,e)};
  2963. O0=function(d,q,T,Y,e,U,b,J){J8.call(this,d,q,T,Y);this.Hv=e;this.cF=U;this.X=J;this.B4=!0;this.T=null;this.S=l7(T.clientMetadata,"metadata_type_linked_player_bytes_layout_id");bG(this.cF(),this);d=l7(T.clientMetadata,"metadata_type_ad_placement_config");this.Dw=new yT(T.GG,this.Hv,d,T.layoutId)};
  2964. i1Y=function(){var d=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];h8().forEach(function(q){d.push(q)});
  2965. return{Pl:d,Dm:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
  2966. Iz7=function(d,q,T,Y,e){TW.call(this,"shopping-companion",d,q,T,Y,e)};
  2967. nw=function(d,q,T,Y,e,U,b,J){J8.call(this,d,q,T,Y);this.Hv=e;this.cF=U;this.X=J;this.B4=!0;this.T=null;this.S=l7(T.clientMetadata,"metadata_type_linked_player_bytes_layout_id");bG(this.cF(),this);d=l7(T.clientMetadata,"metadata_type_ad_placement_config");this.Dw=new yT(T.GG,this.Hv,d,T.layoutId)};
  2968. mh6=function(){var d=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];h8().forEach(function(q){d.push(q)});
  2969. return{Pl:d,Dm:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
  2970. SLf=function(d){var q;if(((q=d.adVideoOffset)==null?void 0:q.kind)!=="AD_VIDEO_PROGRESS_KIND_PERCENT")return!1;var T;return((T=d.adVideoOffset)==null?void 0:T.percent)!=null};
  2971. lz7=function(d){var q;if(((q=d.adVideoOffset)==null?void 0:q.kind)!=="AD_VIDEO_PROGRESS_KIND_MILLISECONDS")return!1;var T;return((T=d.adVideoOffset)==null?void 0:T.milliseconds)!=null&&!isNaN(Number(d.adVideoOffset.milliseconds))};
  2972. vz_=function(d,q,T,Y){this.hA=d;this.layoutId=T;this.S=Y;this.U=[];this.G=[];this.j=this.T=0;d=g.E(q);for(q=d.next();!q.done;q=d.next())switch(q=q.value,T=void 0,(T=q.adVideoOffset)==null?void 0:T.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":SLf(q)?this.U.push(q):Jm("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":lz7(q)?this.G.push(q):Jm("Invalid AdVideoProgressMillisecondsCommand");break;default:Jm("Unknown or invalid AdVideoProgressOffSet kind")}this.U.sort(function(e,
  2973. U){return e.adVideoOffset.percent-U.adVideoOffset.percent});
  2974. this.G.sort(function(e,U){return Number(e.adVideoOffset.milliseconds)-Number(U.adVideoOffset.milliseconds)})};
  2975. rX=function(d,q,T){T=T===void 0?!1:T;var Y=d.S();if(Y){for(;d.T<d.U.length;){var e=d.U[d.T];if(e.adVideoOffset.percent*Y<=q||T)d.hA.get().executeCommand(e.command,d.layoutId),d.T++;else break}for(;d.j<d.G.length;)if(Y=d.G[d.j],Number(Y.adVideoOffset.milliseconds)<=q||T)d.hA.get().executeCommand(Y.command,d.layoutId),d.j++;else break}};
  2976. t8=function(d,q,T,Y,e,U){J8.call(this,d,q,T,Y);this.Hv=e;this.cF=U;this.B4=!0;bG(this.cF(),this);d=l7(T.clientMetadata,"metadata_type_ad_placement_config");this.Dw=new yT(T.GG,this.Hv,d,T.layoutId)};
  2977. ozn=function(){var d=["metadata_type_action_companion_ad_renderer"];h8().forEach(function(q){d.push(q)});
  2978. return{Pl:d,Dm:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
  2979. VnH=function(d,q,T,Y,e,U,b,J){this.callback=d;this.slot=q;this.layout=T;this.Yx=Y;this.Hv=e;this.T2=b;this.iF=J;this.G=!1;d=l7(T.clientMetadata,"metadata_type_ad_placement_config");this.Dw=new yT(T.GG,this.Hv,d,T.layoutId);var F;d=((F=l7(this.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"))==null?void 0:F.progressCommands)||[];var N=l7(T.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds");this.U=new vz_(U,d,T.layoutId,function(){return N*1E3})};
  2980. Bp=function(d,q,T,Y,e,U){J8.call(this,d,q,T,Y);this.Yx=e;this.S=U;this.T=!1};
  2981. Kw=function(d,q,T,Y,e){TW.call(this,"top-banner-image-text-icon-buttoned",d,q,T,Y,e)};
  2982. GS=function(d,q,T,Y,e,U){J8.call(this,d,q,T,Y);this.Hv=e;this.cF=U;this.B4=!0;bG(this.cF(),this);d=l7(T.clientMetadata,"metadata_type_ad_placement_config");this.Dw=new yT(T.GG,this.Hv,d,T.layoutId)};
  2983. dP_=function(){var d=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];h8().forEach(function(q){d.push(q)});
  2984. return{Pl:d,Dm:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
  2985. Lw=function(d,q,T){TW.call(this,"display-underlay-text-grid-cards",d,{},q,T);this.interactionLoggingClientData=T};
  2986. ku=function(d,q,T,Y,e,U){J8.call(this,d,q,T,Y);this.Hv=e;this.T=U;this.S=l7(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
  2987. Pp=function(d,q,T,Y,e,U){e=e===void 0?!1:e;U=U===void 0?!1:U;TW.call(this,"ad-action-interstitial",d,q,T,Y);this.interactionLoggingClientData=Y;this.C_=e;this.jO=U};
  2988. Wp=function(d,q,T,Y,e){J8.call(this,d,q,T,Y);d=l7(T.clientMetadata,"metadata_type_ad_placement_config");this.Dw=new yT(T.GG,e,d,T.layoutId)};
  2989. qx1=function(){var d=["metadata_type_ad_action_interstitial_renderer"];h8().forEach(function(q){d.push(q)});
  2990. return{Pl:d,Dm:["LAYOUT_TYPE_ENDCAP"]}};
  2991. Cw=function(d,q){return i7(d,q.Pl,q.Dm)?!0:!1};
  2992. uO=function(d,q,T){this.U=d;this.j=q;this.G=T};
  2993. TxN=function(d,q,T,Y,e){TW.call(this,"ads-engagement-panel",d,q,T,Y,e)};
  2994. Db=function(d,q,T,Y,e,U,b,J){J8.call(this,d,q,T,Y);this.Hv=e;this.cF=U;this.X=J;this.B4=!0;this.T=null;this.S=l7(T.clientMetadata,"metadata_type_linked_player_bytes_layout_id");bG(this.cF(),this);d=l7(T.clientMetadata,"metadata_type_ad_placement_config");this.Dw=new yT(T.GG,this.Hv,d,T.layoutId)};
  2995. YxI=function(){var d=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];h8().forEach(function(q){d.push(q)});
  2996. return{Pl:d,Dm:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
  2997. wX=function(d,q,T,Y,e,U,b,J){J8.call(this,d,q,T,Y);this.Hv=e;this.cF=U;this.X=J;this.B4=!0;this.T=null;this.S=l7(T.clientMetadata,"metadata_type_linked_player_bytes_layout_id");bG(this.cF(),this);this.adPlacementConfig=l7(T.clientMetadata,"metadata_type_ad_placement_config");this.Dw=new yT(T.GG,this.Hv,this.adPlacementConfig,T.layoutId)};
  2998. esf=function(){var d=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];h8().forEach(function(q){d.push(q)});
  2999. return{Pl:d,Dm:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
  3000. UPg=function(d,q,T,Y,e){this.kB=d;this.Hv=q;this.cF=T;this.G=Y;this.iF=e};
  3001. bMI=function(d,q,T){this.kB=d;this.Hv=q;this.G=T};
  3002. Xk7=function(d,q,T,Y,e){this.callback=d;this.slot=q;this.layout=T;this.Hv=Y;this.nx=e;d=l7(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Dw=new yT(T.GG,this.Hv,d,T.layoutId)};
  3003. Jig=function(){var d=["metadata_type_client_forecasting_ad_renderer"];h8().forEach(function(q){d.push(q)});
  3004. return{Pl:d,Dm:["LAYOUT_TYPE_FORECASTING"]}};
  3005. shg=function(d,q,T,Y,e){this.callback=d;this.slot=q;this.layout=T;this.Hv=Y;this.nx=e;d=l7(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Dw=new yT(T.GG,this.Hv,d,T.layoutId)};
  3006. fw=function(d,q,T,Y){this.T2=d;this.Hv=q;this.nx=T;this.iF=Y};
  3007. $PI=function(d,q){return ze(d.clientMetadata,"metadata_type_ad_info_ad_metadata")?l7(d.clientMetadata,"metadata_type_ad_info_ad_metadata"):q?{channelId:q.Gp,channelThumbnailUrl:q.profilePicture,channelTitle:q.author,videoTitle:q.title}:(Jm("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})};
  3008. gP_=function(d,q){return ze(d.clientMetadata,"metadata_ad_video_is_listed")?l7(d.clientMetadata,"metadata_ad_video_is_listed"):q?q.isListed:(Jm("No layout metadata nor AdPlayback specified for ad video isListed"),!1)};
  3009. Frn=function(d,q,T,Y){TW.call(this,"player-overlay-layout",d,{},T,Y);this.videoAdDurationSeconds=q;this.interactionLoggingClientData=Y};
  3010. zS=function(d,q,T,Y,e,U,b,J,F){J8.call(this,d,q,T,Y);this.Yx=e;this.Hv=U;this.X=b;this.S=J;this.T2=F;this.T=!1;this.L=l7(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
  3011. Nx_=function(d){if(d.layout.renderingContent){var q;return(q=l7(d.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:q.current}return l7(d.layout.clientMetadata,"metadata_type_player_bytes_callback")};
  3012. iO=function(d,q,T,Y,e,U,b,J,F){J8.call(this,d,q,T,Y);this.Yx=e;this.Hv=U;this.X=b;this.S=J;this.T2=F;this.T=!1;this.L=l7(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
  3013. Rs_=function(){return{Pl:["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"],Dm:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
  3014. I5=function(d){if(d.layout.renderingContent){var q;return(q=l7(d.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:q.current}return l7(d.layout.clientMetadata,"metadata_type_player_bytes_callback")};
  3015. xP2=function(d,q,T){TW.call(this,"ad-message",d,void 0,q,T)};
  3016. ma=function(d,q,T,Y,e,U){J8.call(this,T,d,q,Y);this.Yx=e;this.T2=U};
  3017. yiN=function(){return{Pl:["metadata_type_valid_ad_message_renderer"],Dm:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}};
  3018. hs6=function(d,q,T,Y){TW.call(this,"video-interstitial-buttoned-centered",d,q,T,Y);this.interactionLoggingClientData=Y};
  3019. SP=function(d,q,T,Y,e){J8.call(this,d,q,T,Y);d=l7(T.clientMetadata,"metadata_type_ad_placement_config");this.Dw=new yT(T.GG,e,d,T.layoutId)};
  3020. dP=function(d,q,T,Y,e,U,b,J,F){return Cw(T,Rs_())||T.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.D(T.renderingContent,lO)!==void 0?new iO(d,q,T,Y,e,U,b,J,F):Cw(T,{Pl:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],Dm:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||T.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.D(T.renderingContent,vp)!==void 0?
  3021. new zS(d,q,T,Y,e,U,b,J,F):Cw(T,qx1())||T.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.D(T.renderingContent,o5)!==void 0?new Wp(d,q,T,Y,U):Cw(T,yiN())?new ma(q,T,d,Y,e,F):Cw(T,{Pl:["metadata_type_instream_ad_player_overlay_renderer"],Dm:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new Bp(d,q,T,Y,e,J):T.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.D(T.renderingContent,VT)!==void 0?new SP(d,q,T,Y,U):null};
  3022. HMN=function(d,q,T,Y,e,U){this.kB=d;this.Yx=q;this.Hv=T;this.U=Y;this.G=e;this.T2=U};
  3023. qI=function(d){return!d.oldState.isPlaying()&&d.state.isPlaying()};
  3024. TL=function(d,q,T){return d<q?!1:T!=null?T<=q:d<=q+1};
  3025. YV=function(d,q,T,Y,e,U,b,J){this.callback=d;this.slot=q;this.layout=T;this.Yx=Y;this.Hv=e;this.T2=U;this.iF=b;this.Xw=J;this.G=!1;d=l7(T.clientMetadata,"metadata_type_ad_placement_config");this.Dw=new yT(T.GG,this.Hv,d,T.layoutId)};
  3026. e7=function(d,q){d.G||(d.Dw.EM(q),d.G=!0)};
  3027. Qh6=function(d,q,T,Y,e,U){this.Yx=d;this.Hv=q;this.hA=T;this.T2=Y;this.iF=e;this.Xw=U};
  3028. UJ=function(){this.currentState=1;this.G="unknown"};
  3029. bW=function(d,q){if(d.currentState>1){g.OL(new g.CW("Exit already started",{current:d.currentState}));var T=!1}else T=!0;if(!T)return!1;d.currentState=2;d.G=q;return!0};
  3030. Xg=function(d){if(d.currentState!==2)return!1;d.currentState=3;return!0};
  3031. Mxj=function(d,q){var T=new Map;d=g.E(d);for(var Y=d.next();!Y.done;Y=d.next()){Y=Y.value;if(Y.layoutType==="LAYOUT_TYPE_MEDIA")var e="v";else Y.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(e=l7(Y.clientMetadata,"metadata_type_linked_in_player_layout_type"),e=e==="LAYOUT_TYPE_ENDCAP"||e==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":e==="LAYOUT_TYPE_SURVEY"?"s":e==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):e="u";T.set(Y.layoutId,e);if(e==="u"){var U={};e=q;Y=(U.c=Y.layoutId,U);e.J.oU("uct",Y)}}d=
  3032. q.dc();JQ={contentCpn:d,mJ:T};Y={};T=(Y.ct=T.size,Y.c=d,Y);q.J.oU("acc",T)};
  3033. ciD=function(){JQ={contentCpn:"",mJ:new Map}};
  3034. sJ=function(d){var q;return(q=JQ.mJ.get(d))!=null?q:"u"};
  3035. $V=function(d,q,T){d.J.oU(q,T);EPQ(d)};
  3036. jhn=function(d){var q=d.layoutId,T=d.jc;if(d.KS){var Y={};$V(d.kP,"slso",(Y.ec=q,Y.is=T,Y.ctp=sJ(q),Y))}};
  3037. gP=function(d){var q=d.layoutId,T=d.jc;if(d.KS){var Y={};$V(d.kP,"slse",(Y.ec=q,Y.is=T,Y.ctp=sJ(q),Y))}};
  3038. ayg=function(d){var q=d.layoutId,T=d.jc,Y=d.kP;d.KS&&(d={},$V(Y,"sleo",(d.xc=q,d.is=T,d.ctp=sJ(q),d)),EPQ(Y))};
  3039. AiI=function(d){var q=d.cpn,T=d.kP;d=d.jc;var Y=T.dc(),e={};$V(T,"ce",(e.ec=q,e.ia=q!==Y,e.r=JQ.mJ.has(q),e.is=d,e.ctp=sJ(q),e))};
  3040. EPQ=function(d){if(d.dc()!==JQ.contentCpn){var q={};q=(q.c=JQ.contentCpn,q);d.J.oU("ccm",q)}};
  3041. pk1=function(d){var q=d.cpn,T=d.kP;d=d.jc;var Y=T.dc(),e={};$V(T,"cx",(e.xc=q,e.ia=q!==Y,e.r=JQ.mJ.has(q),e.is=d,e.ctp=sJ(q),e))};
  3042. ZMf=function(d){this.params=d;this.G=new Set};
  3043. OMf=function(d,q,T){if(!d.G.has(q)){d.G.add(q);var Y={};d.params.cf.oN(q,Object.assign({},T,(Y.p_ac=d.params.adCpn,Y.p_isv=d.params.uJ&&d.params.eh,Y)))}};
  3044. NI=function(d,q,T){if(Fg(d.params.cf.T2.get(),!0)){var Y=T.flush,e={};OMf(d,q,(e.cts=T.currentTimeSec,e.f=Y,e))}};
  3045. nPD=function(d,q){this.kP=d;this.T2=q};
  3046. RI=function(d){var q=[];if(d){d=g.E(Object.entries(d));for(var T=d.next();!T.done;T=d.next()){var Y=g.E(T.value);T=Y.next().value;Y=Y.next().value;Y!==void 0&&(Y=typeof Y==="boolean"?""+ +Y:(""+Y).replace(/[:,=]/g,"_"),q.push(T+"."+Y))}}return q.join(";")};
  3047. g.xV=function(d,q,T){q=q===void 0?{}:q;this.errorCode=d;this.details=q;this.severity=T===void 0?0:T};
  3048. yb=function(d){return d===1||d===2};
  3049. hQ=function(d,q){q=q===void 0?0:q;if(d instanceof g.xV)return d;d=d&&d instanceof Error?d:Error(""+d);yb(q)?g.Zz(d):g.OL(d);return new g.xV(q===1?"player.fatalexception":"player.exception",{name:""+d.name,message:""+d.message},q)};
  3050. ri7=function(d,q){function T(){var Y=g.CN.apply(0,arguments);d.removeEventListener("playing",T);q.apply(null,g.RQ(Y))}
  3051. d.addEventListener("playing",T)};
  3052. HH=function(){var d=g.qx("yt.player.utils.videoElement_");d||(d=g.FE("VIDEO"),g.Vf("yt.player.utils.videoElement_",d));return d};
  3053. Qb=function(d){var q=HH();return!!(q&&q.canPlayType&&q.canPlayType(d))};
  3054. cH=function(d){if(/opus/.test(d)&&g.MI&&!Qy("38")&&!g.WL())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(d);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(d);if(/webm/.test(d)&&!EH1())return!1;d==='audio/mp4; codecs="mp4a.40.2"'&&(d='video/mp4; codecs="avc1.4d401f"');return!!Qb(d)};
  3055. txf=function(d){try{var q=cH('video/mp4; codecs="avc1.42001E"')||cH('video/webm; codecs="vp9"');return(cH('audio/mp4; codecs="mp4a.40.2"')||cH('audio/webm; codecs="opus"'))&&(q||!d)||Qb('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(T){return"html5.missingapi"}};
  3056. EJ=function(){var d=HH();return!(!d.webkitSupportsPresentationMode||typeof d.webkitSetPresentationMode!=="function")};
  3057. j7=function(){var d=HH();try{var q=d.muted;d.muted=!q;return d.muted!==q}catch(T){}return!1};
  3058. BxD=function(){var d;return((d=navigator.connection)==null?void 0:d.type)||""};
  3059. g.aI=function(){cu.apply(this,arguments)};
  3060. AQ=function(d,q,T,Y,e,U,b,J){this.sampleRate=d===void 0?0:d;this.numChannels=q===void 0?0:q;this.spatialAudioType=T===void 0?"SPATIAL_AUDIO_TYPE_NONE":T;this.G=Y===void 0?!1:Y;this.j=e;this.T=U;this.audioQuality=b===void 0?"AUDIO_QUALITY_UNKNOWN":b;this.U=J===void 0?!1:J};
  3061. OJ=function(d,q,T,Y,e,U,b,J,F){this.width=d;this.height=q;this.quality=U||pe(d,q);this.qualityOrdinal=g.ZB[this.quality];this.fps=T||0;this.stereoLayout=!e||Y!=null&&Y!=="UNKNOWN"&&Y!=="RECTANGULAR"?0:e;this.projectionType=Y?Y==="EQUIRECTANGULAR"&&e===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":Y:"UNKNOWN";(d=b)||(d=g.ZB[this.quality],d===0?d="\u81ea\u52a8":(q=this.fps,T=this.projectionType,d=d.toString()+(T==="EQUIRECTANGULAR"||T==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||T==="MESH"?"s":"p")+(q>55?"60":q>
  3062. 49?"50":q>39?"48":"")));this.qualityLabel=d;this.G=J||"";this.primaries=F||""};
  3063. pe=function(d,q){var T=Math.max(d,q);d=Math.min(d,q);q=ne[0];for(var Y=0;Y<ne.length;Y++){var e=ne[Y],U=g.ZB[e];if(T>=Math.floor(U*16/9)*1.3||d>=U*1.3)return q;q=e}return"tiny"};
  3064. BH=function(d,q,T){T=T===void 0?{}:T;this.id=d;this.mimeType=q;T.Vv>0||(T.Vv=16E3);Object.assign(this,T);d=g.E(this.id.split(";"));this.itag=d.next().value;this.G=d.next().value;this.containerType=rP(q);this.Cf=tQ[this.itag]||""};
  3065. Ke=function(d){return d.Cf==="9"||d.Cf==="("||d.Cf==="9h"||d.Cf==="(h"};
  3066. Kr7=function(d){return d.Cf==="H"||d.Cf==="h"};
  3067. GL=function(d){return d.Cf==="9h"||d.Cf==="(h"};
  3068. GW7=function(d){return!!d.ac&&!!d.ac.fairplay&&(d.Cf==="("||d.Cf==="(h"||d.Cf==="A"||d.Cf==="MEAC3")||Le&&!!d.ac&&d.Cf==="1e"};
  3069. kV=function(d){return d.Cf==="1"||d.Cf==="1h"||Le&&d.Cf==="1e"};
  3070. PH=function(d){return d.Cf==="mac3"||d.Cf==="meac3"||d.Cf==="m"||d.Cf==="i"};
  3071. WH=function(d){return d.Cf==="MAC3"||d.Cf==="MEAC3"||d.Cf==="M"||d.Cf==="I"};
  3072. g.Ce=function(d){return d.containerType===1};
  3073. LrX=function(d){return d.Cf==="("||d.Cf==="(h"||d.Cf==="H"||Le&&d.Cf==="1e"};
  3074. uW=function(d){return d.mimeType==="application/x-mpegURL"};
  3075. g.DB=function(d,q){return{itag:+d.itag,lmt:q?0:d.lastModified,xtags:d.G||""}};
  3076. kWX=function(d){var q=navigator.mediaCapabilities;if(q==null||!q.decodingInfo||d.Cf==="f")return Promise.resolve();var T={type:d.audio&&d.video?"file":"media-source"};d.video&&(T.video={contentType:d.mimeType,width:d.video.width||640,height:d.video.height||360,bitrate:d.Vv*8||1E6,framerate:d.video.fps||30});d.audio&&(T.audio={contentType:d.mimeType,channels:""+(d.audio.numChannels||2),bitrate:d.Vv*8||128E3,samplerate:d.audio.sampleRate||44100});return q.decodingInfo(T).then(function(Y){d.U=Y})};
  3077. wP=function(d){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(d)};
  3078. zL=function(d){return/(vp9|vp09|vp8|avc1|av01)/.test(d)};
  3079. iW=function(d){return d.includes("vtt")||d.includes("text/mp4")};
  3080. rP=function(d){return d.indexOf("/mp4")>=0?1:d.indexOf("/webm")>=0?2:d.indexOf("/x-flv")>=0?3:d.indexOf("/vtt")>=0?4:0};
  3081. II=function(d,q,T,Y,e,U){var b=new AQ;q in g.ZB||(q="small");q==="light"&&(q="tiny");Y&&e?(e=Number(e),Y=Number(Y)):(e=g.ZB[q],Y=Math.round(e*16/9));U=new OJ(Y,e,0,null,void 0,q,U);d=unescape(d.replace(/&quot;/g,'"'));return new BH(T,d,{audio:b,video:U})};
  3082. m1=function(d){var q="id="+d.id;d.video&&(q+=", res="+d.video.qualityLabel);var T,Y;return q+", byterate=("+((T=d.wx)==null?void 0:T.toFixed(0))+", "+((Y=d.Vv)==null?void 0:Y.toFixed(0))+")"};
  3083. S7=function(d,q){return{start:function(T){return d[T]},
  3084. end:function(T){return q[T]},
  3085. length:d.length}};
  3086. PEN=function(d,q,T){for(var Y=[],e=[],U=0;U<d.length;U++)Y.push(d.start(U)),e.push(d.end(U));Y.push(q);e.push(T);Y.sort(function(b,J){return b-J});
  3087. e.sort(function(b,J){return b-J});
  3088. return S7(Y,e)};
  3089. lW=function(d,q,T){q=q===void 0?",":q;T=T===void 0?d?d.length:0:T;var Y=[];if(d)for(T=Math.max(d.length-T,0);T<d.length;T++)Y.push(d.start(T).toFixed(3)+"-"+d.end(T).toFixed(3));return Y.join(q)};
  3090. vH=function(d,q){if(!d)return-1;try{for(var T=0;T<d.length;T++)if(d.start(T)<=q&&d.end(T)>=q)return T}catch(Y){}return-1};
  3091. oI=function(d,q){return vH(d,q)>=0};
  3092. Wr1=function(d,q){if(!d)return NaN;q=vH(d,q);return q>=0?d.start(q):NaN};
  3093. Vb=function(d,q){if(!d)return NaN;q=vH(d,q);return q>=0?d.end(q):NaN};
  3094. dC=function(d){return d&&d.length?d.end(d.length-1):NaN};
  3095. qF=function(d){return dC(d)>0};
  3096. T5=function(d,q){d=Vb(d,q);return d>=0?d-q:0};
  3097. Yx=function(d,q,T){for(var Y=[],e=[],U=0;U<d.length;U++)d.end(U)<q||d.start(U)>T||(Y.push(Math.max(q,d.start(U))-q),e.push(Math.min(T,d.end(U))-q));return S7(Y,e)};
  3098. e1=function(d,q,T,Y){g.YP.call(this);var e=this;this.KC=d;this.start=q;this.end=T;this.isActive=Y;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.Zj={error:function(){!e.JF()&&e.isActive&&e.publish("error",e)},
  3099. updateend:function(){!e.JF()&&e.isActive&&e.publish("updateend",e)}};
  3100. this.KC.Ts(this.Zj);this.DZ=this.isActive};
  3101. bN=function(d,q,T,Y,e,U){g.YP.call(this);var b=this;this.RN=d;this.Jk=q;this.id=T;this.containerType=Y;this.Cf=e;this.eh=U;this.pT=this.U2=this.Or=null;this.KR=!1;this.appendWindowStart=this.timestampOffset=0;this.QO=S7([],[]);this.Rv=!1;this.fm=[];this.Yr=UX?[]:void 0;this.CC=function(F){return b.publish(F.type,b)};
  3102. var J;if((J=this.RN)==null?0:J.addEventListener)this.RN.addEventListener("updateend",this.CC),this.RN.addEventListener("error",this.CC)};
  3103. XD=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
  3104. Je=function(d,q){this.zG=d;this.G=q===void 0?!1:q;this.U=!1};
  3105. sX=function(d,q,T){T=T===void 0?!1:T;g.W.call(this);this.mediaElement=d;this.ED=q;this.isView=T;this.X=0;this.T=!1;this.S=!0;this.K=0;this.callback=null;this.B=!1;this.ED||(this.Jk=this.mediaElement.tA());this.events=new g.aI(this);g.C(this,this.events);this.j=new Je(this.ED?window.URL.createObjectURL(this.ED):this.Jk.webkitMediaSourceURL,!0);d=this.ED||this.Jk;Ed(this.events,d,["sourceopen","webkitsourceopen"],this.GX5);Ed(this.events,d,["sourceclose","webkitsourceclose"],this.PCx);this.L={updateend:this.tf}};
  3106. CEn=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
  3107. uAN=function(d,q){$x(d)?g.ML(function(){q(d)}):d.callback=q};
  3108. DPX=function(d,q,T){if(gC){var Y;FD(d.mediaElement,{l:"mswssb",sr:(Y=d.mediaElement.G2)==null?void 0:Y.Tz()},!1);q.Ts(d.L,d);T.Ts(d.L,d)}d.G=q;d.U=T;g.C(d,q);g.C(d,T)};
  3109. NF=function(d){return!!d.G||!!d.U};
  3110. $x=function(d){try{return Rp(d)==="open"}catch(q){return!1}};
  3111. Rp=function(d){if(d.ED)return d.ED.readyState;switch(d.Jk.webkitSourceState){case d.Jk.SOURCE_OPEN:return"open";case d.Jk.SOURCE_ENDED:return"ended";default:return"closed"}};
  3112. xx=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource};
  3113. wkN=function(d){$x(d)&&(d.ED?d.ED.endOfStream():d.Jk.webkitSourceEndOfStream(d.Jk.EOS_NO_ERROR))};
  3114. fyD=function(d,q,T,Y){if(!d.G||!d.U)return null;var e=d.G.isView()?d.G.KC:d.G,U=d.U.isView()?d.U.KC:d.U,b=new sX(d.mediaElement,d.ED,!0);b.j=d.j;DPX(b,new e1(e,q,T,Y),new e1(U,q,T,Y));$x(d)||d.G.Ii(d.G.mz());return b};
  3115. zsX=function(d){var q;(q=d.G)==null||q.zc();var T;(T=d.U)==null||T.zc();d.S=!1};
  3116. yQ=function(){var d=this;this.oA=this.MK=MDf;this.promise=new g.pK(function(q,T){d.MK=q;d.oA=T})};
  3117. he=function(){g.W.call(this);this.HH=!1;this.zG=null;this.L=this.X=!1;this.T=new g.$1;this.G2=null;g.C(this,this.T)};
  3118. Hl=function(d){d=d.kF();return d.length<1?NaN:d.end(d.length-1)};
  3119. iM_=function(d){!d.U&&CEn()&&(d.j?d.j.then(function(){return iM_(d)}):d.j0()||(d.U=d.Eg()))};
  3120. Iy6=function(d){d.U&&(d.U.dispose(),d.U=void 0)};
  3121. FD=function(d,q,T){var Y;((Y=d.G2)==null?0:Y.uF())&&d.G2.oU("rms",q,T===void 0?!1:T)};
  3122. mP2=function(d,q,T){d.isPaused()||d.getCurrentTime()>q||T>10||(d.play(),g.s3(function(){mP2(d,d.getCurrentTime(),T+1)},500))};
  3123. SxH=function(d,q){d.zG&&d.zG.equals(q)||(d.zG&&d.zG.dispose(),d.zG=q)};
  3124. QQ=function(d){return T5(d.g1(),d.getCurrentTime())};
  3125. ly2=function(d,q){if(d.Tr()===0||d.hasError())return!1;var T=d.getCurrentTime()>0;return q>=0&&(d=d.kF(),d.length||!T)?oI(d,q):T};
  3126. MF=function(d){d.j0()&&(d.G2&&d.G2.GT("rs_s"),uR&&d.getCurrentTime()>0&&d.seekTo(0),d.qZ(),d.load(),SxH(d,null));delete d.j};
  3127. cl=function(d){switch(d.nA()){case 2:return"progressive.net.retryexhausted";case 3:return d=d.P4(),(d==null?0:d.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||vPf&&(d==null?0:d.includes("audio_output_change"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}};
  3128. g.EX=function(d,q,T){this.eF=q===void 0?null:q;this.seekSource=T===void 0?null:T;this.state=d||64};
  3129. j1=function(d,q,T){T=T===void 0?!1:T;return oPf(d,q.getCurrentTime(),(0,g.cj)(),QQ(q),T)};
  3130. ap=function(d,q,T,Y){if(!(q===d.state&&T===d.eF&&Y===d.seekSource||q!==void 0&&(q&128&&!T||q&2&&q&16))){var e;if(e=q)e=q||d.state,e=!!(e&16||e&32);d=new g.EX(q,T,e?Y?Y:d.seekSource:null)}return d};
  3131. Ae=function(d,q,T){return ap(d,d.state|q,null,T===void 0?null:T)};
  3132. pk=function(d,q){return ap(d,d.state&~q,null,null)};
  3133. Z2=function(d,q,T,Y){return ap(d,(d.state|q)&~T,null,Y===void 0?null:Y)};
  3134. g.I=function(d,q){return!!(d.state&q)};
  3135. g.OX=function(d,q){return q.state===d.state&&q.eF===d.eF};
  3136. nk=function(d){return d.isPlaying()&&!g.I(d,16)&&!g.I(d,32)};
  3137. rC=function(d){return g.I(d,128)?-1:g.I(d,2)?0:g.I(d,2048)?3:g.I(d,64)?-1:g.I(d,1)&&!g.I(d,32)?3:g.I(d,8)?1:g.I(d,4)?2:-1};
  3138. Bl=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h,H,a,p){g.W.call(this);var t=this;this.ai=d;this.slot=q;this.layout=T;this.Hv=Y;this.iF=e;this.Xw=U;this.Yx=b;this.yU=J;this.hA=F;this.wr=N;this.position=x;this.X=y;this.T2=h;this.lI=H;this.Df=a;this.context=p;this.B4=!0;this.S=!1;this.WF="not_rendering";this.U=!1;this.j=new UJ;d=l7(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Dw=new yT(T.GG,this.Hv,d,T.layoutId);var n;d=((n=te(this))==null?void 0:n.progressCommands)||[];this.T=new vz_(F,
  3139. d,T.layoutId,function(){return t.Bs()});
  3140. this.G=new ZMf({adCpn:this.layout.layoutId,cf:p.cf,uJ:this.lI,eh:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})};
  3141. Kk=function(d){return{layoutId:d.Z6(),jc:d.lI,kP:d.Xw.get(),KS:d.pz()}};
  3142. G5=function(d,q){return q.layoutId!==d.layout.layoutId?(d.ai.Cz(d.slot,q,new m5("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+d.layout.layoutId+("and LayoutType: "+d.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0};
  3143. Lk=function(d){d.WF="rendering_start_requested";d.wr(-1)};
  3144. te=function(d){return l7(d.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
  3145. Vx7=function(d){Jm("Received layout exit signal when not in layout exit flow.",d.slot,d.layout)};
  3146. dYn=function(d){var q;return((q=kx(d.Xw.get(),2))==null?void 0:q.clientPlaybackNonce)||""};
  3147. Pl=function(d,q){switch(q){case "normal":d.EM("complete");break;case "skipped":d.EM("skip");break;case "abandoned":E0(d.Dw,"impression")&&d.EM("abandon")}};
  3148. Wl=function(d,q){d.S||(q=new g.sP(q.state,new g.EX),d.S=!0);return q};
  3149. Ck=function(d,q){qI(q)?d.wr(1):g.gs(q,4)&&!g.gs(q,2)&&d.DB();$o(q,4)<0&&!($o(q,2)<0)&&d.x0()};
  3150. qPH=function(d){d.position===0&&(d.yU.get(),d=l7(d.layout.clientMetadata,"metadata_type_ad_placement_config").kind,d={adBreakType:uN(d)},pU("ad_bl"),g.ZO(d))};
  3151. D2=function(d,q){Mo(d.Dw,q,!d.U)};
  3152. YPn=function(d){var q;return(((q=te(d))==null?void 0:q.progressCommands)||[]).findIndex(function(T){return!!g.D(T==null?void 0:T.command,TsN)})!==-1};
  3153. wC=function(d,q){var T=l7(d.clientMetadata,"metadata_type_eligible_for_ssap");return T===void 0?(Jm("Expected SSAP eligibility in PlayerBytes factory",d),!1):q.pz(T)};
  3154. fk=function(d,q){if(!WA(q.get(),"html5_ssap_pass_transition_reason"))return 3;switch(d){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return Jm("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return Jm("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:d}),3;default:$S(d,"unknown layoutExitReason")}};
  3155. evN=function(d){Jm("getExitReason: unexpected reason",void 0,void 0,{reason:d})};
  3156. z5=function(d,q){if(WA(q.get(),"html5_ssap_pass_transition_reason"))switch(d){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return evN(d),"abandoned";case 3:case 1:return evN(d),"error";default:$S(d,"unexpected transition reason")}else switch(d){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return Jm("getExitReason: unexpected reason",void 0,void 0,{reason:d}),"error";default:$S(d,"unexpected transition reason")}};
  3157. g.iN=function(d,q,T){nU(d,T)||tU(d,q,T);nU(d,"video_to_ad")||tU(d,q,"video_to_ad");nU(d,"ad_to_video")||tU(d,q,"ad_to_video");nU(d,"ad_to_ad")||tU(d,q,"ad_to_ad")};
  3158. Ip=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h,H,a,p,t){Bl.call(this,d,q,T,Y,e,U,b,J,N,R,x,y,h,H,a,p,t);var n=this;this.FC=F;this.Is=x;this.E9=!0;this.bj=this.MQ=0;this.Gk=BB(function(){jhn(Kk(n));n.ai.AA(n.slot,n.layout)});
  3159. this.e9=BB(function(){ayg(Kk(n));n.WF!=="rendering_stop_requested"&&n.Is(n);n.layoutExitReason?n.ai.i$(n.slot,n.layout,n.layoutExitReason):Vx7(n)});
  3160. this.timer=new g.KK(200);this.timer.listen("tick",function(){n.Yc()});
  3161. g.C(this,this.timer)};
  3162. S1=function(d){d.bj=Date.now();mi(d,d.MQ);d.timer.start()};
  3163. UY1=function(d){d.MQ=d.Bs();d.Xs(d.MQ/1E3,!0);mi(d,d.MQ)};
  3164. mi=function(d,q){q={current:q/1E3,duration:d.Bs()/1E3};d.FC.get().qd("onAdPlaybackProgress",q)};
  3165. lN=function(d){Ip.call(this,d.ai,d.slot,d.Y9,d.Hv,d.iF,d.Xw,d.Yx,d.yU,d.FC,d.hA,d.wr,d.Is,d.jU,d.Hy,d.T2,d.lI,d.Df,d.context)};
  3166. vl=function(d){Ip.call(this,d.ai,d.slot,d.Y9,d.Hv,d.iF,d.Xw,d.Yx,d.yU,d.FC,d.hA,d.wr,d.Is,d.jU,d.Hy,d.T2,d.lI,d.Df,d.context)};
  3167. op=function(){vl.apply(this,arguments)};
  3168. bGQ=function(d){return wC(d.slot,d.T2.get())?new op(d):new lN(d)};
  3169. qB=function(d){Bl.call(this,d.callback,d.slot,d.Y9,d.Hv,d.iF,d.Xw,d.Yx,d.yU,d.hA,d.wr,d.Is,d.jU,d.Hy,d.T2,d.lI,d.Df,d.context);var q=this;this.adCpn="";this.ER=this.aS=0;this.Gk=BB(function(){jhn(Kk(q));q.ai.AA(q.slot,q.layout)});
  3170. this.e9=BB(function(){ayg(Kk(q));q.WF!=="rendering_stop_requested"&&q.Is(q);q.layoutExitReason?q.ai.i$(q.slot,q.layout,q.layoutExitReason):Vx7(q)});
  3171. this.DY=d.DY;this.UF=d.UF;this.l$=d.l$;this.FC=d.FC;this.XW=d.XW;this.Is=d.Is;if(!this.pz()){WA(this.T2.get(),"html5_disable_media_load_timeout")||(this.UU=new g.f9(function(){q.He("load_timeout",new m5("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4));
  3172. d=VQ(this.T2.get());var T=dU(this.T2.get());d&&T&&(this.xM=new g.f9(function(){var Y=l7(q.layout.clientMetadata,"metadata_type_preload_player_vars");Y&&q.UF.get().J.preloadVideoByPlayerVars(Y,2,300)}))}};
  3173. Jm_=function(d,q){var T=l7(q.clientMetadata,"metadata_type_ad_video_id"),Y=l7(q.clientMetadata,"metadata_type_legacy_info_card_vast_extension");T&&Y&&d.XW.get().J.C().aU.add(T,{cQ:Y});(q=l7(q.clientMetadata,"metadata_type_sodar_extension_data"))&&s$2(d.DY.get(),q);XGD(d.Yx.get(),!1)};
  3174. suQ=function(d){XGD(d.Yx.get(),!0);var q;((q=d.shrunkenPlayerBytesConfig)==null?0:q.shouldRequestShrunkenPlayerBytes)&&d.Yx.get().Kt(!1)};
  3175. $Yf=function(d){return new Tu(d)};
  3176. YK=function(){qB.apply(this,arguments)};
  3177. Tu=function(){YK.apply(this,arguments)};
  3178. go1=function(d){return bGQ(Object.assign({},d,{ai:d.callback,wr:function(){}}))};
  3179. FVD=function(d){return new qB(Object.assign({},d,{wr:function(q){d.FC.get().qd("onAdIntroStateChange",q)}}))};
  3180. Ns7=function(d){function q(T){d.FC.get().r0(T)}
  3181. return wC(d.slot,d.T2.get())?$Yf(Object.assign({},d,{wr:q})):new qB(Object.assign({},d,{wr:q}))};
  3182. ed=function(d){for(var q=d.Y9,T=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],Y=g.E(h8()),e=Y.next();!e.done;e=Y.next())T.push(e.value);if(Cw(q,{Pl:T,Dm:["LAYOUT_TYPE_MEDIA_BREAK"]}))return go1(d);q=d.Y9;T=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];Y=g.E(h8());for(e=Y.next();!e.done;e=Y.next())T.push(e.value);if(Cw(q,{Pl:T,Dm:["LAYOUT_TYPE_MEDIA"]}))return ze(d.Y9.clientMetadata,"metadata_type_ad_intro")?FVD(d):Ns7(d)};
  3183. xY7=function(d){var q=l7(d.clientMetadata,"metadata_type_ad_placement_config").kind,T=l7(d.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:d.layoutId,adType:Rvg(T),adBreakType:uN(q)}};
  3184. uN=function(d){switch(d){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"}};
  3185. Rvg=function(d){switch(d){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}};
  3186. ymH=function(d){try{return new U_(d.Ov,d.slot,d.layout,d.bC,d.MU,d.Xw,d.Gq,d.UF,d.cF,d.Yx,d.t$2,d)}catch(q){}};
  3187. U_=function(d,q,T,Y,e,U,b,J,F,N,R,x){g.W.call(this);this.Ov=d;this.slot=q;this.layout=T;this.bC=Y;this.MU=e;this.Xw=U;this.Gq=b;this.UF=J;this.cF=F;this.Yx=N;this.params=x;this.B4=!0;d=ed(R);if(!d)throw Error("Invalid params for sublayout");this.NC=d};
  3188. hvI=function(){this.G=1;this.U=new UJ};
  3189. bu=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h){g.W.call(this);this.callback=d;this.Xw=q;this.Gq=T;this.UF=Y;this.Yx=e;this.ol=U;this.yU=b;this.bu=J;this.slot=F;this.layout=N;this.bC=R;this.nx=x;this.cF=y;this.T2=h;this.B4=!0;this.Oq=!1;this.gU=[];this.rS=-1;this.Vo=!1;this.I9=new hvI};
  3190. HGN=function(d){var q;return(q=d.layout.iV)!=null?q:l7(d.layout.clientMetadata,"metadata_type_sub_layouts")};
  3191. XF=function(d){return{kP:d.Xw.get(),jc:!1,KS:d.pz()}};
  3192. Quf=function(d,q,T){if(d.hp()===d.gU.length-1){var Y,e;Jm("Unexpected skip requested during the last sublayout",(Y=d.WA())==null?void 0:Y.Sv(),(e=d.WA())==null?void 0:e.e5(),{requestingSlot:q,requestingLayout:T})}};
  3193. MC7=function(d,q,T){return T.layoutId!==JP(d,q,T)?(Jm("onSkipRequested for a PlayerBytes layout that is not currently active",d.Sv(),d.e5()),!1):!0};
  3194. cm7=function(d){d.hp()===d.gU.length-1&&Jm("Unexpected skip with target requested during the last sublayout")};
  3195. EoH=function(d,q,T){return T.renderingContent===void 0&&T.layoutId!==JP(d,q,T)?(Jm("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",d.Sv(),d.e5(),{requestingSlot:q,requestingLayout:T}),!1):!0};
  3196. juj=function(d,q,T,Y){var e=l7(q.e5().clientMetadata,"metadata_type_ad_pod_skip_target");if(e&&e>0&&e<d.gU.length){a:{for(var U=e;U<d.gU.length;){if(e===l7(d.gU[U].e5().clientMetadata,"metadata_type_ad_pod_skip_index")){d=U;break a}U++}d=void 0}if(d===void 0)Jm("Skip-to-index was requested but target index was not found",q.Sv(),q.e5(),{requestingSlot:T,requestingLayout:Y});else return d}else Jm("Invalid ad pod skip target index",q.Sv(),q.e5(),{requestingSlot:T,requestingLayout:Y})};
  3197. JP=function(d,q,T){var Y=l7(d.e5().clientMetadata,"metadata_type_linked_in_player_layout_id");return Y?Y:(Jm("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",d.Sv(),d.e5(),{requestingSlot:q,requestingLayout:T}),null)};
  3198. AmN=function(d,q,T,Y){a06(d,q,T,"skipped",function(){s_(d,Y)})};
  3199. a06=function(d,q,T,Y,e){if(!d.Vo){var U=d.WA();if(U){U.e5().layoutId!==T.layoutId&&Jm("SubLayout mismatch in exitSubLayout",q,T,{exitingSubLayout:T.layoutId,activeSubLayout:U.e5().layoutId});d.Vo=!0;U.OF(U.e5(),Y);U=Object.assign({},XF(d),{layoutId:T.layoutId,layoutExitReason:Y});var b=U.layoutId,J=U.layoutExitReason;if(U.KS){var F={};$V(U.kP,"wrsx",(F.xc=b,F.ler=J,F.ctp=sJ(b),F))}d.nu(q,T,Y);d.Vo=!1;d.TV?(d.TV(),d.pz()||$K(d.yU.get())):e()}else Jm("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",
  3200. q,T)}};
  3201. s_=function(d,q){if(d.hp()===d.gU.length-1)d.rS++,gU(d.nx,d.layout,"normal"),d.pz()||$K(d.yU.get());else a:{if(d.hp()===-1&&(d.callback.AA(d.slot,d.layout),q>0)){Jm("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",d.slot,d.layout,{indexToPlay:q,layoutId:d.layout.layoutId});break a}d.rS=q;q=d.WA();if(d.hp()>0&&!d.pz()){var T=d.yU.get();T.U=!1;var Y={};T.G&&T.videoId&&(Y.cttAuthInfo={token:T.G,videoId:T.videoId});OG("ad_to_ad",Y)}T=g.D(q.e5().renderingContent,o5);if(T==null?0:
  3202. T.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var e;T=!((e=d.ol.get().Ns2.get(T.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&e)}else T=!1;T?s_(d,d.hp()+1):d.j2(q)}};
  3203. FF=function(d){bu.call(this,d.Ov,d.Xw,d.Gq,d.UF,d.Yx,d.ol,d.yU,d.bu,d.slot,d.layout,d.bC,d.nx,d.cF,d.T2)};
  3204. pGX=function(d){(d=d.WA())&&d.wD()};
  3205. NB=function(d){bu.call(this,d.Ov,d.Xw,d.Gq,d.UF,d.Yx,d.ol,d.yU,d.bu,d.slot,d.layout,d.bC,d.nx,d.cF,d.T2);this.I6=void 0};
  3206. ZGg=function(d,q){d.OI()&&!Xg(d.I9.U)||d.callback.i$(d.slot,d.layout,q)};
  3207. R0=function(d){return WA(d.T2.get(),"html5_ssap_pass_transition_reason")};
  3208. OG_=function(d,q,T){q.Ft().currentState<2&&(T=z5(T,d.T2),q.OF(q.e5(),T));T=q.Ft().G;d.nu(d.slot,q.e5(),T)};
  3209. noI=function(d,q){if(d.I9.U.currentState<2){var T=z5(q,d.T2);T==="error"?d.callback.Cz(d.slot,d.layout,new m5("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:q},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):gU(d.nx,d.layout,T)}};
  3210. xK=function(d,q,T){q.Ft().currentState>=2||(q.OF(q.e5(),T),Xg(q.Ft())&&(Qz(d.bu,d.slot,q.e5(),T),d.I6=void 0))};
  3211. rmn=function(d,q){d.I9.G===2&&q!==d.dc()&&Jm("onClipEntered: unknown cpn",d.slot,d.layout,{cpn:q})};
  3212. tC1=function(d,q){var T=d.WA();if(T){var Y=T.e5().layoutId,e=d.hp()+1;d.OI()?xK(d,T,q):T.OF(T.e5(),q);e>=0&&e<d.gU.length?(T=d.gU[e].e5().layoutId,R0(d)&&(["normal","skipped"].includes(q)||Jm("exitActiveLayoutAndPlayNext: unexpected exit reason",d.slot,d.layout,{exitReason:q})),d.Gq.get().finishSegmentByCpn(Y,T,fk(q,d.T2))):e===d.gU.length?gU(d.nx,d.layout,"normal"):Jm("unexpected index",d.slot,d.layout,{index:e})}else Jm("exitActiveLayoutAndPlayNext: no active adapter",d.slot,d.layout)};
  3213. BsN=function(d,q){Jm(q+": undefined adapter",d.slot,d.layout)};
  3214. KVf=function(d){return wC(d.slot,d.T2.get())?new NB(d):new FF(d)};
  3215. yj=function(d,q,T,Y,e,U,b){g.W.call(this);this.callback=d;this.UF=q;this.Yx=T;this.yU=Y;this.NC=e;this.cF=U;this.T2=b;this.B4=!0;this.Oq=!1};
  3216. GcQ=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h,H,a,p,t,n,K,P,w,l){function m(){var s6=ed(Object.assign({},JY,{callback:{AA:d.AA.bind(d),i$:d.i$.bind(d),rp:function(){},
  3217. Cz:d.Cz.bind(d)},slot:T,Y9:Y,Is:function(){gU(b,Y,"normal")},
  3218. jU:0,Hy:1,lI:!0}));return s6?new yj(d,R,y,a,s6,e,K):s6}
  3219. function b_(){var s6=Object.assign({},JY,{callback:{AA:function(){},
  3220. i$:function(){},
  3221. rp:function(){return void gU(b,Y,"normal")},
  3222. Cz:function(){}},
  3223. slot:T,Y9:Y,Is:function(){},
  3224. jU:0,Hy:1,lI:!0});return ymH({Ov:d,slot:T,layout:Y,bC:U,MU:b,Xw:x,Gq:P,UF:R,cF:e,Yx:y,t$2:s6,context:w})}
  3225. function x2(){var s6,qH=(s6=Y.iV)!=null?s6:l7(Y.clientMetadata,"metadata_type_sub_layouts");s6=KVf({Ov:d,Xw:x,Gq:P,UF:R,Yx:y,ol:h,yU:a,bu:q,slot:T,layout:Y,bC:U,nx:b,cF:e,T2:K});for(var O6=[],SD={Wu:0};SD.Wu<qH.length;SD={Wu:SD.Wu},SD.Wu++){var dL=ed(Object.assign({},JY,{callback:{AA:s6.bR.bind(s6),i$:s6.uR.bind(s6),rp:s6.rp.bind(s6),Cz:s6.Hn.bind(s6)},slot:T,Y9:qH[SD.Wu],Is:function(hE){return function(JE){JE.OF(qH[hE.Wu],"normal")}}(SD),
  3226. jU:SD.Wu,Hy:qH.length,lI:!1}));if(!dL)return;O6.push(dL)}s6.gU=O6;return s6}
  3227. var JY={Hv:J,iF:F,DY:N,UF:R,Xw:x,Yx:y,ol:h,l$:H,yU:a,FC:p,hA:t,XW:n,T2:K,context:w,Df:l};J=Cw(Y,{Pl:["metadata_type_sub_layouts"],Dm:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||Y.iV!==void 0&&Y.layoutType==="LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES";F=wC(T,K.get())&&Cw(Y,{Pl:[],Dm:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});N=Cw(Y,{Pl:[],Dm:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});if(J)return x2();if(F)return b_();if(N)return m()};
  3228. hP=function(d,q,T,Y,e,U,b,J,F,N){this.callback=d;this.slot=q;this.layout=T;this.Xw=Y;this.Gq=e;this.eT=U;this.Yx=b;this.Dw=J;this.Hv=F;this.S=N;this.driftRecoveryMs=l7(this.layout.clientMetadata,"metadata_type_drift_recovery_ms")||null;this.T=l7(this.layout.clientMetadata,"metadata_type_prefetch_metadata")!==void 0};
  3229. kc1=function(d){var q=l7(d.layout.clientMetadata,"metadata_type_layout_enter_ms"),T=l7(d.layout.clientMetadata,"metadata_type_layout_exit_ms");d=d.eT.get();q=LV1(d.j,q,T);return Math.min(T,q!==null?q:Infinity)};
  3230. Qj=function(d,q){var T;Hn(d.Hv.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:(T=d.Xw.get().h6)==null?void 0:T.clientPlaybackNonce,adClientData:d.layout.HF.adClientDataEntry},q)})};
  3231. MB=function(d,q,T,Y,e,U,b,J,F,N,R){hP.call(this,d,q,T,Y,e,U,b,J,F,N);this.j=R;this.U=this.G=null;d=g.E(this.j);for(q=d.next();!q.done;q=d.next())q=q.value,ze(q.e5().clientMetadata,"metadata_type_survey_overlay")&&(this.U=q.e5().layoutId)};
  3232. WVI=function(d,q){var T=P2N(d,q);T||Jm("Expected subLRA found by layout ID",d.slot,d.layout,{layoutId:q});d.G={rr:T};T?T.startRendering(T.e5()):q===d.U&&Jm("Failed to find rendering adapter for survey media layout",d.slot,d.layout,{surveyMediaLayoutId:q})};
  3233. P2N=function(d,q){return q==null?null:d.j.find(function(T){return T.e5().layoutId===q})||null};
  3234. C2X=function(d,q,T,Y,e,U,b,J,F,N){var R=e-Y,x,y=((x=d.fulfilledLayout||l7(d.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:l7(x.clientMetadata,"metadata_type_ssdai_ads_config"))||"",h,H;(x=(h=l7(d.clientMetadata,"metadata_type_triggering_cue_point"))==null?void 0:(H=h.current)==null?void 0:H.identifier)||Jm("Cue point identifier is undefined",d,q,F());if(!R)return b.gm(T,y,2,U,Y,e,d.slotId),cn(N,"ads_iraot","slid."+q.layoutId+";enterMs."+Y+";exitMs."+e+";vid."+T.video_id),null;R=b.Iv(T,
  3235. y,2,U,Y,e,d.slotId,x);cn(N,"ads_atct","slid."+q.layoutId+";enterMs."+Y+";exitMs."+e+";vid."+T.video_id+";pid."+R);if(!R)return Jm("Unexpected failure to add to playback timeline",d,q,F()),null;d=d.slotId;q=q.layoutId;R?(J.G.has(R)&&Jm("Unexpected remap of timeline playback"),J.G.set(R,{slotId:d,layoutId:q})):Jm("Invalid timeline playback ID");Y+U>e&&b.Jh(R,e-Y);return R};
  3236. u$I=function(d,q,T){var Y=l7(q.clientMetadata,"metadata_type_sodar_extension_data");if(Y)try{s$2(T,Y)}catch(e){Jm("Unexpected error when loading Sodar",d,q,{error:e})}};
  3237. DYI=function(d,q,T,Y,e,U,b){E_(d,q,new g.sP(T,new g.EX),Y,e,b,!1,U)};
  3238. E_=function(d,q,T,Y,e,U,b,J){b=b===void 0?!0:b;qI(T)&&TL(e,0,null)&&(!E0(d,"impression")&&J&&J(),d.EM("impression"));E0(d,"impression")&&(g.gs(T,4)&&!g.gs(T,2)&&d.Wr("pause"),$o(T,4)<0&&!($o(T,2)<0)&&d.Wr("resume"),g.gs(T,16)&&e>=.5&&d.Wr("seek"),b&&g.gs(T,2)&&jd(d,T.state,q,Y,e,U))};
  3239. jd=function(d,q,T,Y,e,U,b,J,F){E0(d,"impression")&&(U?(U=e-Y,U=U>=-1&&U<=2):U=Math.abs(Y-e)<=1,a0(d,q,U?Y:e,T,Y,b,J&&U),U&&!F&&d.EM("complete"))};
  3240. a0=function(d,q,T,Y,e,U,b){cp(d,T*1E3,b);e<=0||T<=0||(q==null?0:g.I(q,16))||(q==null?0:g.I(q,32))||(TL(T,e*.25,Y)&&(U&&!E0(d,"first_quartile")&&U("first"),d.EM("first_quartile")),TL(T,e*.5,Y)&&(U&&!E0(d,"midpoint")&&U("second"),d.EM("midpoint")),TL(T,e*.75,Y)&&(U&&!E0(d,"third_quartile")&&U("third"),d.EM("third_quartile")))};
  3241. wGX=function(d,q){E0(d,"impression")&&d.Wr(q?"fullscreen":"end_fullscreen")};
  3242. f0n=function(d){E0(d,"impression")&&d.Wr("clickthrough")};
  3243. zv2=function(d){d.Wr("active_view_measurable")};
  3244. iGf=function(d){E0(d,"impression")&&!E0(d,"seek")&&d.Wr("active_view_fully_viewable_audible_half_duration")};
  3245. I0D=function(d){E0(d,"impression")&&!E0(d,"seek")&&d.Wr("active_view_viewable")};
  3246. mY6=function(d){E0(d,"impression")&&!E0(d,"seek")&&d.Wr("audio_audible")};
  3247. SPn=function(d){E0(d,"impression")&&!E0(d,"seek")&&d.Wr("audio_measurable")};
  3248. l01=function(d,q,T,Y,e,U,b,J,F,N,R,x,y){this.callback=d;this.slot=q;this.layout=T;this.Gq=Y;this.Dw=e;this.Yx=U;this.UQ=b;this.iF=J;this.DY=F;this.T2=N;this.Hv=R;this.Xw=x;this.l$=y;this.E9=!0;this.HG=this.WF=null;this.adCpn=void 0;this.G=!1};
  3249. vof=function(d,q,T){var Y;cn(d.Hv.get(),"ads_qua","cpn."+l7(d.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((Y=kx(d.Xw.get(),2))==null?void 0:Y.clientPlaybackNonce)+";qt."+q+";clr."+T)};
  3250. oo_=function(d,q){var T,Y;cn(d.Hv.get(),"ads_imp","cpn."+l7(d.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((T=kx(d.Xw.get(),2))==null?void 0:T.clientPlaybackNonce)+";clr."+q+";skp."+!!g.D((Y=l7(d.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:Y.skipOrPreviewRenderer,AP))};
  3251. pd=function(d){return{enterMs:l7(d.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:l7(d.clientMetadata,"metadata_type_layout_exit_ms")}};
  3252. ZD=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h){hP.call(this,d,q,T,Y,e,b,J,F,N,x);this.UQ=U;this.DY=R;this.iF=y;this.T2=h;this.HG=this.WF=null};
  3253. VC2=function(d,q){var T;cn(d.Hv.get(),"ads_imp","acpn."+((T=kx(d.Xw.get(),2))==null?void 0:T.clientPlaybackNonce)+";clr."+q)};
  3254. d3f=function(d,q,T){var Y;cn(d.Hv.get(),"ads_qua","cpn."+l7(d.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((Y=kx(d.Xw.get(),2))==null?void 0:Y.clientPlaybackNonce)+";qt."+q+";clr."+T)};
  3255. O_=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h,H,a,p,t,n,K,P,w){this.cF=d;this.bC=q;this.nx=T;this.Xw=Y;this.Gq=e;this.Yx=U;this.ol=b;this.Hv=J;this.UQ=F;this.eT=N;this.iF=R;this.DY=x;this.UF=y;this.l$=h;this.yU=H;this.FC=a;this.hA=p;this.XW=t;this.T2=n;this.G=K;this.context=P;this.Df=w};
  3256. nd=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h,H,a,p,t,n){this.cF=d;this.bC=q;this.nx=T;this.Hv=Y;this.iF=e;this.DY=U;this.UF=b;this.Xw=J;this.Yx=F;this.ol=N;this.l$=R;this.yU=x;this.FC=y;this.hA=h;this.XW=H;this.T2=a;this.Gq=p;this.context=t;this.Df=n};
  3257. qGD=function(d,q,T,Y){TW.call(this,"survey-interstitial",d,q,T,Y)};
  3258. rU=function(d,q,T,Y,e){J8.call(this,T,d,q,Y);this.Hv=e;d=l7(q.clientMetadata,"metadata_type_ad_placement_config");this.Dw=new yT(q.GG,e,d,q.layoutId)};
  3259. tP=function(d){return Math.round(d.width)+"x"+Math.round(d.height)};
  3260. Kd=function(d,q,T){T=T===void 0?Bn:T;T.width<Bn.width&&(T=Bn);if(d.width<T.width||d.height<T.height)return{gY:3,Ej:501,errorMessage:"ad("+tP(T)+") larger than container("+tP(d)+")."};if(T.width*T.height>d.width*d.height*.2)return{gY:3,Ej:501,errorMessage:"ad("+tP(T)+") to container("+tP(d)+") ratio exceeds limit."};if(T.height>d.height/3-q)return{gY:3,Ej:501,errorMessage:"ad("+tP(T)+") covers container("+tP(d)+") center."}};
  3261. TcY=function(d,q){var T=l7(d.clientMetadata,"metadata_type_ad_placement_config");return new yT(d.GG,q,T,d.layoutId)};
  3262. Gu=function(d){return l7(d.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")};
  3263. Ld=function(d,q,T,Y){TW.call(this,"invideo-overlay",d,q,T,Y);this.interactionLoggingClientData=Y};
  3264. kK=function(d,q,T,Y,e,U,b,J,F,N,R,x){J8.call(this,U,d,q,e);this.Hv=T;this.T=b;this.Yx=J;this.hA=F;this.T2=N;this.X=R;this.S=x;this.Dw=TcY(q,T)};
  3265. YG2=function(){var d=["metadata_type_invideo_overlay_ad_renderer"];h8().forEach(function(q){d.push(q)});
  3266. return{Pl:d,Dm:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
  3267. Pn=function(d,q,T,Y,e,U,b,J,F,N,R,x,y){J8.call(this,U,d,q,e);this.Hv=T;this.T=b;this.B=J;this.Yx=F;this.hA=N;this.T2=R;this.X=x;this.S=y;this.Dw=TcY(q,T)};
  3268. eUD=function(){for(var d=["metadata_type_invideo_overlay_ad_renderer"],q=g.E(h8()),T=q.next();!T.done;T=q.next())d.push(T.value);return{Pl:d,Dm:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
  3269. Wn=function(d){this.Yx=d;this.G=!1};
  3270. U3N=function(d,q,T){TW.call(this,"survey",d,{},q,T)};
  3271. Cd=function(d,q,T,Y,e,U,b){J8.call(this,T,d,q,Y);this.T=e;this.Yx=U;this.T2=b};
  3272. bUD=function(d,q,T,Y,e,U,b,J,F,N){this.kB=d;this.Yx=q;this.Hv=T;this.T=Y;this.iF=e;this.U=U;this.j=b;this.hA=J;this.T2=F;this.G=N};
  3273. XmN=function(d,q,T,Y,e,U,b,J,F,N){this.kB=d;this.Yx=q;this.Hv=T;this.T=Y;this.iF=e;this.U=U;this.j=b;this.hA=J;this.T2=F;this.G=N};
  3274. uu=function(d,q,T,Y,e,U,b,J,F,N){iO.call(this,d,q,T,Y,e,U,b,F);this.uV=J;this.Xw=N};
  3275. JUn=function(){var d=Rs_();d.Pl.push("metadata_type_ad_info_ad_metadata");return d};
  3276. saY=function(d,q,T,Y,e,U,b){this.kB=d;this.Yx=q;this.Hv=T;this.U=Y;this.uV=e;this.G=U;this.Xw=b};
  3277. $3_=function(d,q,T,Y,e,U,b,J){this.kB=d;this.Yx=q;this.Hv=T;this.U=Y;this.uV=e;this.G=U;this.T2=b;this.Xw=J};
  3278. DD=function(d,q){this.slotId=q;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=d(this.triggerType)};
  3279. wU=function(d,q){this.adPodIndex=d;this.G=q.length;this.adBreakLengthSeconds=q.reduce(function(Y,e){return Y+e},0);
  3280. var T=0;for(d+=1;d<q.length;d++)T+=q[d];this.adBreakRemainingLengthSeconds=T};
  3281. fd=function(d,q,T){this.oK=q;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=T||d(this.triggerType)};
  3282. zu=function(d,q,T){this.G=q;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=T||d(this.triggerType)};
  3283. iu=function(d,q,T,Y){this.oK=q;this.visible=T;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=Y||d(this.triggerType)};
  3284. ghg=function(d){this.triggerType="TRIGGER_TYPE_CUE_BREAK_IDENTIFIED";this.triggerId=d(this.triggerType)};
  3285. FM6=function(d){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=d(this.triggerType)};
  3286. I0=function(d,q,T){this.triggeringLayoutId=q;this.slotId=T;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=d(this.triggerType)};
  3287. ml=function(d,q,T){this.triggeringLayoutId=q;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=T||d(this.triggerType)};
  3288. Sd=function(d,q,T,Y){this.triggeringLayoutId=q;this.G=T;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=Y||d(this.triggerType)};
  3289. Ncn=function(d){switch(d){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 S("Invalid layout exit reason: "+
  3290. d)}};
  3291. lu=function(d,q,T){this.triggeringLayoutId=q;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=T||d(this.triggerType)};
  3292. vn=function(d,q){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=q||d(this.triggerType)};
  3293. o0=function(d,q){this.breakDurationMs=d;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED";this.triggerId=q||""};
  3294. Vj=function(d,q){this.breakDurationMs=d;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED";this.triggerId=q||""};
  3295. dG=function(d,q){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=q||d(this.triggerType)};
  3296. RUY=function(d){this.triggerId=d;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"};
  3297. x37=function(d,q,T,Y,e){this.oK=q;this.G=T;this.visible=Y;this.layoutId=e;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=d(this.triggerType)};
  3298. qm=function(d,q,T,Y,e){this.oK=q;this.G=T;this.visible=Y;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=e||d(this.triggerType)};
  3299. T8=function(d,q){this.breakDurationMs=d;this.triggerType="TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION";this.triggerId=q||""};
  3300. yU7=function(d,q,T){this.oK=q;this.G=T;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=d(this.triggerType)};
  3301. Yb=function(d,q,T,Y,e){this.G=q;this.slotType=T;this.layoutType=Y;this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=e||d(this.triggerType)};
  3302. e5=function(d,q){this.G=q;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=d(this.triggerType)};
  3303. UO=function(d,q,T){this.layoutId=q;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=T||d(this.triggerType)};
  3304. bV=function(d,q,T){this.G=q;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=T||d(this.triggerType)};
  3305. gzn=function(d,q){this.opportunityType="OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED";this.associatedSlotId=q;this.triggerType="TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED";this.triggerId=d(this.triggerType)};
  3306. hUH=function(d,q){this.G=d;this.index=q};
  3307. HUY=function(d){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=d(this.triggerType)};
  3308. XY=function(d,q){this.triggerType="TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED";this.triggerId=q||d(this.triggerType)};
  3309. Qa_=function(d,q,T){this.layoutId=q;this.offsetMs=T;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=d(this.triggerType)};
  3310. Ml1=function(d,q){this.layoutId=q;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=d(this.triggerType)};
  3311. cU7=function(d,q,T){this.layoutId=q;this.offsetMs=T;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=d(this.triggerType)};
  3312. JR=function(d,q,T){this.triggeringLayoutId=q;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=T||d(this.triggerType)};
  3313. sO=function(d,q,T){this.triggeringSlotId=q;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=T||d(this.triggerType)};
  3314. $b=function(d,q,T){this.triggeringSlotId=q;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=T||d(this.triggerType)};
  3315. gG=function(d,q){this.triggeringSlotId=q;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=d(this.triggerType)};
  3316. FY=function(d,q){this.triggeringSlotId=q;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=d(this.triggerType)};
  3317. Nm=function(d,q,T){this.triggeringSlotId=q;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=T||d(this.triggerType)};
  3318. RF=function(d,q){this.triggeringSlotId=q;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=d(this.triggerType)};
  3319. EO=function(d,q,T){this.triggeringLayoutId=q;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=T||d(this.triggerType)};
  3320. j5=function(d,q,T,Y){this.durationMs=q;this.triggeringLayoutId=T;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=Y||d(this.triggerType)};
  3321. aF=function(d,q,T,Y){this.category=d;this.trigger=q;this.slot=T;this.layout=Y};
  3322. AR=function(d){return(d==null?void 0:d.layoutId)!=null&&(d==null?void 0:d.layoutType)!=null};
  3323. Ehn=function(d){if(!AR(d.adLayoutMetadata))return!1;d=d.renderingContent;return g.D(d,pS)||g.D(d,ZJ)||g.D(d,OO)||g.D(d,nS)||g.D(d,rG)||g.D(d,tR)?!0:!1};
  3324. jaX=function(d){return(d==null?void 0:d.durationMs)!=null&&(d==null?void 0:d.durationMs)>0};
  3325. BY=function(d){return!!(d.r6&&d.slot&&d.layout)};
  3326. KS=function(d){var q,T=(q=d.config)==null?void 0:q.adPlacementConfig;d=d.renderer;return!(!T||T.kind==null||!d)};
  3327. AU2=function(d){if(!AR(d.adLayoutMetadata))return!1;d=d.renderingContent;return g.D(d,o5)||g.D(d,VT)||g.D(d,aOX)||g.D(d,lO)||g.D(d,vp)?!0:!1};
  3328. G8=function(d){return d.playerVars!==void 0&&d.pings!==void 0&&d.externalVideoId!==void 0};
  3329. DJ=function(d){if(!AR(d.adLayoutMetadata))return!1;d=d.renderingContent;var q=g.D(d,LS);return q?kb(q):(q=g.D(d,PY))?G8(q):(q=g.D(d,WY))?q.playerVars!==void 0:(q=g.D(d,o5))?q.durationMilliseconds!==void 0:g.D(d,CS)||g.D(d,uV)?!0:!1};
  3330. kb=function(d){d=(d.sequentialLayouts||[]).map(function(q){return g.D(q,wG)});
  3331. return d.length>0&&d.every(DJ)};
  3332. z8=function(d){return AR(d.adLayoutMetadata)?(d=g.D(d.renderingContent,fS))&&d.pings?!0:!1:!1};
  3333. tlX=function(d){if(!AR(d.adLayoutMetadata))return!1;if(g.D(d.renderingContent,pm1)||g.D(d.renderingContent,ZUI))return!0;var q=g.D(d.renderingContent,iV);return g.D(d.renderingContent,IF)||g.D(q==null?void 0:q.sidePanel,OU1)||g.D(q==null?void 0:q.sidePanel,nhD)||g.D(q==null?void 0:q.sidePanel,rU_)?!0:!1};
  3334. kYf=function(d){var q;(q=!d)||(q=d.adSlotMetadata,q=!((q==null?void 0:q.slotId)!==void 0&&(q==null?void 0:q.slotType)!==void 0));if(q||!(BcX(d)||d.slotEntryTrigger&&d.slotFulfillmentTriggers&&d.slotExpirationTriggers))return!1;var T;d=(T=d.fulfillmentContent)==null?void 0:T.fulfilledLayout;return(T=g.D(d,wG))?DJ(T):(T=g.D(d,mu))?tlX(T):(T=g.D(d,KM6))?AU2(T):(T=g.D(d,GYX))?Ehn(T):(T=g.D(d,LM6))?AR(T.adLayoutMetadata)?g.D(T.renderingContent,pS)?!0:!1:!1:(d=g.D(d,S5))?z8(d):!1};
  3335. BcX=function(d){var q;d=g.D((q=d.fulfillmentContent)==null?void 0:q.fulfilledLayout,mu);var T;return d&&((T=d.adLayoutMetadata)==null?void 0:T.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&d.layoutExitNormalTriggers===void 0};
  3336. P9D=function(d){var q;return(d==null?void 0:(q=d.adSlotMetadata)==null?void 0:q.slotType)==="SLOT_TYPE_IN_PLAYER"};
  3337. C9_=function(d,q){var T;if((T=d.questions)==null||!T.length||!d.playbackCommands||(q===void 0||!q)&&d.questions.length!==1)return!1;d=g.E(d.questions);for(q=d.next();!q.done;q=d.next()){q=q.value;var Y=T=void 0,e=((T=g.D(q,lV))==null?void 0:T.surveyAdQuestionCommon)||((Y=g.D(q,vY))==null?void 0:Y.surveyAdQuestionCommon);if(!WMg(e))return!1}return!0};
  3338. uKY=function(d){d=((d==null?void 0:d.playerOverlay)||{}).instreamSurveyAdRenderer;var q;if(d)if(d.playbackCommands&&d.questions&&d.questions.length===1){var T,Y=((q=g.D(d.questions[0],lV))==null?void 0:q.surveyAdQuestionCommon)||((T=g.D(d.questions[0],vY))==null?void 0:T.surveyAdQuestionCommon);q=WMg(Y)}else q=!1;else q=!1;return q};
  3339. WMg=function(d){if(!d)return!1;d=g.D(d.instreamAdPlayerOverlay,oF);var q=g.D(d==null?void 0:d.skipOrPreviewRenderer,AP),T=g.D(d==null?void 0:d.adInfoRenderer,VP);return(g.D(d==null?void 0:d.skipOrPreviewRenderer,dN)||q)&&T?!0:!1};
  3340. D3X=function(d){return d.linearAds!=null&&AR(d.adLayoutMetadata)};
  3341. wmI=function(d){return d.linearAd!=null&&d.adVideoStart!=null};
  3342. fO2=function(d){if(isNaN(Number(d.timeoutSeconds))||!d.text||!d.ctaButton||!g.D(d.ctaButton,g.q6)||!d.brandImage)return!1;var q;return d.backgroundImage&&g.D(d.backgroundImage,Tb)&&((q=g.D(d.backgroundImage,Tb))==null?0:q.landscape)?!0:!1};
  3343. Yq=function(d,q,T,Y,e,U,b,J){g.W.call(this);this.T2=d;this.G=q;this.U=Y;this.Xw=e;this.T=U;this.j=b;this.UF=J};
  3344. IO6=function(d,q,T){var Y,e=((Y=T.adSlots)!=null?Y:[]).map(function(J){return g.D(J,ei)});
  3345. if(T.xr)if(l7(q.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))eP(d.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},q.slotId);
  3346. else{if(d.T2.get().J.C().N("h5_check_forecasting_renderer_for_throttled_midroll")){var U=T.CL.filter(function(J){var F;return((F=J.renderer)==null?void 0:F.clientForecastingAdRenderer)!=null});
  3347. U.length!==0?zU1(d.j,U,e,q.slotId,T.ssdaiAdsConfig):eP(d.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},q.slotId)}else eP(d.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},q.slotId);
  3348. iUN(d.T,q)}else{var b;Y={vW:Math.round(((U=l7(q.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:U.vW)||0),RW:(b=l7(q.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:b.RW};U=l7(q.clientMetadata,"metadata_type_cue_point");zU1(d.j,T.CL,e,q.slotId,T.ssdaiAdsConfig,Y,U)}};
  3349. lOn=function(d,q,T,Y,e,U,b,J){var F=kx(d.Xw.get(),1);if(m36(d.T2.get())){var N=U7(d.U.get(),T,Y,e,F.clientPlaybackNonce,F.O6,F.daiEnabled,F,U,b);SGX(d,N);eP(d.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return N},q)}else eP(d.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return U7(d.U.get(),T,Y,e,F.clientPlaybackNonce,F.O6,F.daiEnabled,F,U,b,J)},q)};
  3350. SGX=function(d,q){q=g.E(q);for(var T=q.next();!T.done;T=q.next()){var Y=T.value;if(Y.slotType==="SLOT_TYPE_PLAYER_BYTES"&&Y.fulfilledLayout)if(T=void 0,Y.fulfilledLayout.renderingContent)T=l7(Y.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(Y.fulfilledLayout.iV){Y=g.E(Y.fulfilledLayout.iV);for(var e=Y.next();!e.done&&(e=e.value,!e.renderingContent||!(T=l7(e.clientMetadata,"metadata_type_player_vars")));e=Y.next());}}else T=void 0;if(T){d.UF.get().J.preloadVideoByPlayerVars(T,
  3351. 2,300);break}}};
  3352. oh7=function(d,q,T,Y,e,U,b){q=vh7(q,U,Number(Y.prefetchMilliseconds)||0,b);d=q instanceof S?q:bv(d,Y,e,q,T);return d instanceof S?d:[d]};
  3353. VlD=function(d,q,T,Y,e){var U=U0(d.U.get(),"SLOT_TYPE_AD_BREAK_REQUEST");Y=[new Z3({getAdBreakUrl:Y.getAdBreakUrl,vW:0,RW:0}),new D3(!0)];d=q.pauseDurationMs?q.lactThresholdMs?{slotId:U,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new Nm(d.G,U),slotFulfillmentTriggers:[new FM6(d.G)],slotExpirationTriggers:[new bV(d.G,e),new $b(d.G,U)],nf:"core",clientMetadata:new St(Y),adSlotLoggingData:T}:new S("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new S("AdPlacementConfig for Pause Ads is missing pause_duration_ms");
  3354. return d instanceof S?d:[d]};
  3355. dtX=function(d){var q,T;return((q=d.renderer)==null?void 0:(T=q.adBreakServiceRenderer)==null?void 0:T.getAdBreakUrl)!==void 0};
  3356. XC=function(d,q,T){if(d.beforeContentVideoIdStartedTrigger)d=d.beforeContentVideoIdStartedTrigger?new fd(IV,q,d.id):new S("Not able to create BeforeContentVideoIdStartedTrigger");else{if(d.layoutIdExitedTrigger){var Y;q=(Y=d.layoutIdExitedTrigger)!=null&&Y.triggeringLayoutId?new lu(IV,d.layoutIdExitedTrigger.triggeringLayoutId,d.id):new S("Not able to create LayoutIdExitedTrigger")}else{if(d.layoutExitedForReasonTrigger){var e,U;((e=d.layoutExitedForReasonTrigger)==null?0:e.triggeringLayoutId)&&((U=
  3357. d.layoutExitedForReasonTrigger)==null?0:U.layoutExitReason)?(q=Ncn(d.layoutExitedForReasonTrigger.layoutExitReason),d=q instanceof S?q:new Sd(IV,d.layoutExitedForReasonTrigger.triggeringLayoutId,[q],d.id)):d=new S("Not able to create LayoutIdExitedForReasonTrigger")}else{if(d.onLayoutSelfExitRequestedTrigger){var b;q=(b=d.onLayoutSelfExitRequestedTrigger)!=null&&b.triggeringLayoutId?new UO(IV,d.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,d.id):new S("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(d.onNewPlaybackAfterContentVideoIdTrigger)d=
  3358. d.onNewPlaybackAfterContentVideoIdTrigger?new bV(IV,q,d.id):new S("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(d.skipRequestedTrigger){var J;q=(J=d.skipRequestedTrigger)!=null&&J.triggeringLayoutId?new JR(IV,d.skipRequestedTrigger.triggeringLayoutId,d.id):new S("Not able to create SkipRequestedTrigger")}else if(d.slotIdEnteredTrigger){var F;q=(F=d.slotIdEnteredTrigger)!=null&&F.triggeringSlotId?new sO(IV,d.slotIdEnteredTrigger.triggeringSlotId,d.id):new S("Not able to create SlotIdEnteredTrigger")}else if(d.slotIdExitedTrigger){var N;
  3359. q=(N=d.slotIdExitedTrigger)!=null&&N.triggeringSlotId?new $b(IV,d.slotIdExitedTrigger.triggeringSlotId,d.id):new S("Not able to create SkipRequestedTrigger")}else if(d.surveySubmittedTrigger){var R;q=(R=d.surveySubmittedTrigger)!=null&&R.triggeringLayoutId?new EO(IV,d.surveySubmittedTrigger.triggeringLayoutId,d.id):new S("Not able to create SurveySubmittedTrigger")}else{if(d.mediaResumedTrigger)d=d.mediaResumedTrigger&&d.id?new RUY(d.id):new S("Not able to create MediaResumedTrigger");else{if(d.closeRequestedTrigger){var x;
  3360. q=(x=d.closeRequestedTrigger)!=null&&x.triggeringLayoutId?new zu(IV,d.closeRequestedTrigger.triggeringLayoutId,d.id):new S("Not able to create CloseRequestedTrigger")}else if(d.slotIdScheduledTrigger){var y;q=(y=d.slotIdScheduledTrigger)!=null&&y.triggeringSlotId?new Nm(IV,d.slotIdScheduledTrigger.triggeringSlotId,d.id):new S("Not able to create SlotIdScheduledTrigger")}else{if(d.mediaTimeRangeTrigger){var h;Y=Number((h=d.mediaTimeRangeTrigger)==null?void 0:h.offsetStartMilliseconds);var H;b=Number((H=
  3361. d.mediaTimeRangeTrigger)==null?void 0:H.offsetEndMilliseconds);isFinite(Y)&&isFinite(b)?(H=b,H===-1&&(H=T),T=Y>H?new S("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:Y,offsetEndMs:H},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",H===T&&Y-500<=H):new hx(Y,H),d=T instanceof S?T:new qm(IV,q,T,!1,d.id)):d=new S("Not able to create MediaTimeRangeTrigger")}else if(d.contentVideoIdEndedTrigger)d=d.contentVideoIdEndedTrigger?new iu(IV,q,!1,d.id):new S("Not able to create ContentVideoIdEndedTrigger");
  3362. else{if(d.layoutIdEnteredTrigger){var a;q=(a=d.layoutIdEnteredTrigger)!=null&&a.triggeringLayoutId?new ml(IV,d.layoutIdEnteredTrigger.triggeringLayoutId,d.id):new S("Not able to create LayoutIdEnteredTrigger")}else if(d.timeRelativeToLayoutEnterTrigger){var p;q=(p=d.timeRelativeToLayoutEnterTrigger)!=null&&p.triggeringLayoutId?new j5(IV,Number(d.timeRelativeToLayoutEnterTrigger.durationMs),d.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,d.id):new S("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(d.onDifferentLayoutIdEnteredTrigger){var t;
  3363. q=(t=d.onDifferentLayoutIdEnteredTrigger)!=null&&t.triggeringLayoutId&&d.onDifferentLayoutIdEnteredTrigger.slotType&&d.onDifferentLayoutIdEnteredTrigger.layoutType?new Yb(IV,d.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,d.onDifferentLayoutIdEnteredTrigger.slotType,d.onDifferentLayoutIdEnteredTrigger.layoutType,d.id):new S("Not able to create CloseRequestedTrigger")}else{if(d.liveStreamBreakStartedTrigger)d=d.liveStreamBreakStartedTrigger&&d.id?new dG(IV,d.id):new S("Not able to create LiveStreamBreakStartedTrigger");
  3364. else if(d.liveStreamBreakEndedTrigger)d=d.liveStreamBreakEndedTrigger&&d.id?new vn(IV,d.id):new S("Not able to create LiveStreamBreakEndedTrigger");else{if(d.liveStreamBreakScheduledDurationMatchedTrigger){var n;q=(n=d.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&n.breakDurationMs?new o0(Number(d.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,d.id):new S("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(d.liveStreamBreakScheduledDurationNotMatchedTrigger){var K;
  3365. q=(K=d.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&K.breakDurationMs?new Vj(Number(d.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,d.id):new S("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(d.newSlotScheduledWithBreakDurationTrigger){var P;q=(P=d.newSlotScheduledWithBreakDurationTrigger)!=null&&P.breakDurationMs?new T8(Number(d.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,d.id):new S("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else q=
  3366. d.prefetchCacheExpiredTrigger?new XY(IV,d.id):new S("Not able to convert an AdsControlflowTrigger.");d=q}q=d}d=q}q=d}d=q}q=d}d=q}q=d}d=q}q=d}d=q}return d};
  3367. JC=function(d,q){q.G>=2&&(d.slot_pos=q.adPodIndex);d.autoplay="1"};
  3368. T5f=function(d,q,T,Y,e,U,b,J){return q===null?new S("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:q,ActionCompanionAdRenderer:Y}):[qvQ(d,q,b,U,function(F){var N=F.slotId;F=J(F);var R=Y.adLayoutLoggingData,x=new St([new On(Y),new ua(e)]);N=Cu(T.U.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",N);var y={layoutId:N,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",nf:"core"};return{layoutId:N,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",GG:new Map,
  3369. layoutExitNormalTriggers:[new bV(T.G,b)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"core",clientMetadata:x,HF:F(y),adLayoutLoggingData:R}})]};
  3370. YvN=function(d,q,T,Y,e,U,b,J){return q===null?new S("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:q,TopBannerImageTextIconButtonedLayoutViewModel:Y}):[qvQ(d,q,b,U,function(F){var N=F.slotId;F=J(F);var R=Y.adLayoutLoggingData,x=new St([new n3(Y),new ua(e)]);N=Cu(T.U.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",N);var y={layoutId:N,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",nf:"core"};return{layoutId:N,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
  3371. GG:new Map,layoutExitNormalTriggers:[new bV(T.G,b)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"core",clientMetadata:x,HF:F(y),adLayoutLoggingData:R}})]};
  3372. X6n=function(d,q,T,Y,e,U){if(!U)for(q=g.E(q),U=q.next();!U.done;U=q.next())U=U.value,s7(d,U.renderer,U.config.adPlacementConfig.kind);d=Array.from(d.values()).filter(function(R){return epg(R)});
  3373. q=[];U=g.E(d);for(var b=U.next(),J={};!b.done;J={iX:void 0},b=U.next()){J.iX=b.value;b=g.E(J.iX.BU);for(var F=b.next(),N={};!F.done;N={dK:void 0},F=b.next())N.dK=F.value,F=function(R,x){return function(y){return R.dK.Wz(y,x.iX.instreamVideoAdRenderer.elementId,R.dK.WU)}}(N,J),N.dK.isContentVideoCompanion?q.push(Utn(T,Y,e,J.iX.instreamVideoAdRenderer.elementId,N.dK.associatedCompositePlayerBytesLayoutId,N.dK.adSlotLoggingData,F)):d.length>1?q.push(bo1(T,Y,e,J.iX.instreamVideoAdRenderer.elementId,N.dK.adSlotLoggingData,
  3374. function(R,x){return function(y){return R.dK.Wz(y,x.iX.instreamVideoAdRenderer.elementId,R.dK.WU,R.dK.associatedCompositePlayerBytesLayoutId)}}(N,J))):q.push(bo1(T,Y,e,J.iX.instreamVideoAdRenderer.elementId,N.dK.adSlotLoggingData,F))}return q};
  3375. s7=function(d,q,T){if(q=JV6(q)){q=g.E(q);for(var Y=q.next();!Y.done;Y=q.next())if((Y=Y.value)&&Y.externalVideoId){var e=$q(d,Y.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=Y,e.BS=T)}else Jm("InstreamVideoAdRenderer without externalVideoId")}};
  3376. JV6=function(d){var q=[],T=d.sandwichedLinearAdRenderer&&d.sandwichedLinearAdRenderer.linearAd&&g.D(d.sandwichedLinearAdRenderer.linearAd,PY);if(T)return q.push(T),q;if(d.instreamVideoAdRenderer)return q.push(d.instreamVideoAdRenderer),q;if(d.linearAdSequenceRenderer&&d.linearAdSequenceRenderer.linearAds){d=g.E(d.linearAdSequenceRenderer.linearAds);for(T=d.next();!T.done;T=d.next())T=T.value,g.D(T,PY)&&q.push(g.D(T,PY));return q}return null};
  3377. epg=function(d){if(d.instreamVideoAdRenderer===void 0)return Jm("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var q=g.E(d.BU),T=q.next();!T.done;T=q.next()){T=T.value;if(T.Wz===void 0)return!1;if(T.WU===void 0)return Jm("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(d.BS===void 0||T.JY===void 0||d.BS!==T.JY&&T.JY!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(d.instreamVideoAdRenderer.elementId===void 0)return Jm("InstreamVideoAdRenderer has no elementId",
  3378. void 0,void 0,{kind:d.BS,"matching APSR kind":T.JY}),!1}return!0};
  3379. $q=function(d,q){d.has(q)||d.set(q,{instreamVideoAdRenderer:void 0,BS:void 0,adVideoId:q,BU:[]});return d.get(q)};
  3380. gN=function(d,q,T,Y,e,U,b,J,F){e?$q(d,e).BU.push({XO2:q,JY:T,isContentVideoCompanion:Y,WU:b,associatedCompositePlayerBytesLayoutId:U,adSlotLoggingData:J,Wz:F}):Jm("Companion AdPlacementSupportedRenderer without adVideoId")};
  3381. FC=function(d){var q=0;d=g.E(d.questions);for(var T=d.next();!T.done;T=d.next())if(T=T.value,T=g.D(T,lV)||g.D(T,vY)){var Y=void 0;q+=((Y=T.surveyAdQuestionCommon)==null?void 0:Y.durationMilliseconds)||0}return q};
  3382. N6=function(d){var q,T,Y,e,U=((T=g.D((q=d.questions)==null?void 0:q[0],lV))==null?void 0:T.surveyAdQuestionCommon)||((e=g.D((Y=d.questions)==null?void 0:Y[0],vY))==null?void 0:e.surveyAdQuestionCommon),b;q=[].concat(g.RQ(((b=d.playbackCommands)==null?void 0:b.instreamAdCompleteCommands)||[]),g.RQ((U==null?void 0:U.timeoutCommands)||[]));var J,F,N,R,x,y,h,H,a,p,t,n,K,P,w,l,m,b_,x2,JY;return{impressionCommands:(J=d.playbackCommands)==null?void 0:J.impressionCommands,errorCommands:(F=d.playbackCommands)==
  3383. null?void 0:F.errorCommands,muteCommands:(N=d.playbackCommands)==null?void 0:N.muteCommands,unmuteCommands:(R=d.playbackCommands)==null?void 0:R.unmuteCommands,pauseCommands:(x=d.playbackCommands)==null?void 0:x.pauseCommands,rewindCommands:(y=d.playbackCommands)==null?void 0:y.rewindCommands,resumeCommands:(h=d.playbackCommands)==null?void 0:h.resumeCommands,skipCommands:(H=d.playbackCommands)==null?void 0:H.skipCommands,progressCommands:(a=d.playbackCommands)==null?void 0:a.progressCommands,A85:(p=
  3384. d.playbackCommands)==null?void 0:p.clickthroughCommands,fullscreenCommands:(t=d.playbackCommands)==null?void 0:t.fullscreenCommands,activeViewViewableCommands:(n=d.playbackCommands)==null?void 0:n.activeViewViewableCommands,activeViewMeasurableCommands:(K=d.playbackCommands)==null?void 0:K.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(P=d.playbackCommands)==null?void 0:P.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(w=d.playbackCommands)==
  3385. null?void 0:(l=w.activeViewTracking)==null?void 0:l.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(m=d.playbackCommands)==null?void 0:(b_=m.activeViewTracking)==null?void 0:b_.activeViewAudioMeasurableCommands,endFullscreenCommands:(x2=d.playbackCommands)==null?void 0:x2.endFullscreenCommands,abandonCommands:(JY=d.playbackCommands)==null?void 0:JY.abandonCommands,completeCommands:q}};
  3386. $tn=function(d,q,T,Y,e,U,b){return function(J,F){return seX(d,F.slotId,J,U,function(N,R){var x=F.layoutId;N=b(N);return Rx(q,x,R,e,N,"LAYOUT_TYPE_SURVEY",[new Yg(T),Y],T.adLayoutLoggingData)})}};
  3387. N5Q=function(d,q,T,Y,e,U,b){if(!gXD(d))return new S("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:d});var J=d.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[FPg(U,q,T,Y,function(F){var N=F.slotId;F=b(F);N=Cu(e.U.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",N);var R={layoutId:N,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",nf:"core"},x=new lu(e.G,Y);return{layoutId:N,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",GG:new Map,layoutExitNormalTriggers:[x],
  3388. layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"core",clientMetadata:new St([new et(J)]),HF:F(R)}})]};
  3389. gXD=function(d){d=g.D(d==null?void 0:d.additionalPlayerOverlay,RpD);if(!d)return!1;var q=d.slidingMessages;return d.title&&q&&q.length!==0?!0:!1};
  3390. yVN=function(d,q,T,Y,e){var U;if((U=d.playerOverlay)==null||!U.instreamSurveyAdRenderer)return function(){return[]};
  3391. if(!uKY(d))return function(){return new S("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:d})};
  3392. var b=d.playerOverlay.instreamSurveyAdRenderer,J=FC(b);return J<=0?function(){return new S("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:b})}:function(F,N){var R=xtn(F,T,Y,function(x){var y=x.slotId;
  3393. x=N(x);var h=N6(b);y=Cu(e.U.get(),"LAYOUT_TYPE_SURVEY",y);var H={layoutId:y,layoutType:"LAYOUT_TYPE_SURVEY",nf:"core"},a=new lu(e.G,Y),p=new JR(e.G,y),t=new EO(e.G,y),n=new HUY(e.G);return{layoutId:y,layoutType:"LAYOUT_TYPE_SURVEY",GG:new Map,layoutExitNormalTriggers:[a,n],layoutExitSkipTriggers:[p],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[t],J1:[],nf:"core",clientMetadata:new St([new Te(b),new ua(q),new rJ(J/1E3),new Ge(h)]),HF:x(H),adLayoutLoggingData:b.adLayoutLoggingData}});
  3394. F=N5Q(d,T,R.slotId,Y,e,F,N);return F instanceof S?F:[R].concat(g.RQ(F))}};
  3395. je_=function(d,q,T,Y,e,U,b){b=b===void 0?!1:b;var J=[];try{var F=[];if(T.renderer.linearAdSequenceRenderer)var N=function(a){a=hpj(a.slotId,T,q,e(a),Y,U,b);F=a.IhZ;return a.Dr};
  3396. else if(T.renderer.instreamVideoAdRenderer)N=function(a){var p=a.slotId;a=e(a);var t=b,n=T.config.adPlacementConfig,K=Hoj(n),P=K.A7,w=K.Z4;K=T.renderer.instreamVideoAdRenderer;var l;if(K==null?0:(l=K.playerOverlay)==null?0:l.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var m=xq(K,t);l=Math.min(P+m.videoLengthSeconds*1E3,w);t=new wU(0,[m.videoLengthSeconds]);w=m.videoLengthSeconds;var b_=m.playerVars,x2=m.instreamAdPlayerOverlayRenderer,JY=m.playerOverlayLayoutRenderer,
  3397. s6=m.adVideoId,qH=QeH(T),O6=m.GG;m=m.jE;var SD=K==null?void 0:K.adLayoutLoggingData;K=K==null?void 0:K.sodarExtensionData;p=Cu(q.U.get(),"LAYOUT_TYPE_MEDIA",p);var dL={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",nf:"core"};return{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",GG:O6,layoutExitNormalTriggers:[new vn(q.G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"core",clientMetadata:new St([new Iw(Y),new xg(w),new yq(b_),new Qq(P),new M_(l),x2&&
  3398. new m0(x2),JY&&new So(JY),new ua(n),new ia(s6),new Dh(t),new As(qH),K&&new H4(K),new $g({current:null}),new EH({}),new P4(m)].filter(M2j)),HF:a(dL),adLayoutLoggingData:SD}};
  3399. else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var R=cVI(d,Y,T.adSlotLoggingData,N);J.push(R);for(var x=g.E(F),y=x.next();!y.done;y=x.next()){var h=y.value,H=h(d,e);if(H instanceof S)return H;J.push.apply(J,g.RQ(H))}}catch(a){return new S(a,{errorMessage:a.message,AdPlacementRenderer:T,numberOfSurveyRenderers:EX1(T)})}return J};
  3400. EX1=function(d){d=(d.renderer.linearAdSequenceRenderer||{}).linearAds;return d!=null&&d.length?d.filter(function(q){var T,Y;return((T=g.D(q,PY))==null?void 0:(Y=T.playerOverlay)==null?void 0:Y.instreamSurveyAdRenderer)!=null}).length:0};
  3401. hpj=function(d,q,T,Y,e,U,b){var J=q.config.adPlacementConfig,F=Hoj(J),N=F.A7,R=F.Z4;F=(q.renderer.linearAdSequenceRenderer||{}).linearAds;if(F==null||!F.length)throw new TypeError("Expected linear ads");var x=[],y={QT:N,jU:0,zfF:x};F=F.map(function(H){return aSn(d,H,y,T,Y,J,e,R,b)}).map(function(H,a){a=new wU(a,x);
  3402. return H(a)});
  3403. var h=F.map(function(H){return H.xb});
  3404. return{Dr:AV7(T,d,N,h,J,QeH(q),Y,R,U),IhZ:F.map(function(H){return H.rEZ})}};
  3405. aSn=function(d,q,T,Y,e,U,b,J,F){var N=xq(g.D(q,PY),F),R=T.QT,x=T.jU,y=Math.min(R+N.videoLengthSeconds*1E3,J);T.QT=y;T.jU++;T.zfF.push(N.videoLengthSeconds);var h,H,a=(h=g.D(q,PY))==null?void 0:(H=h.playerOverlay)==null?void 0:H.instreamSurveyAdRenderer;if(N.adVideoId==="nPpU29QrbiU"&&a==null)throw new TypeError("Survey slate media has no survey overlay");return function(p){JC(N.playerVars,p);var t,n,K=N.videoLengthSeconds,P=N.playerVars,w=N.GG,l=N.jE,m=N.instreamAdPlayerOverlayRenderer,b_=N.playerOverlayLayoutRenderer,
  3406. x2=N.adVideoId,JY=(t=g.D(q,PY))==null?void 0:t.adLayoutLoggingData;t=(n=g.D(q,PY))==null?void 0:n.sodarExtensionData;n=Cu(Y.U.get(),"LAYOUT_TYPE_MEDIA",d);var s6={layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA",nf:"adapter"};p={layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA",GG:w,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"adapter",clientMetadata:new St([new Iw(b),new xg(K),new yq(P),new Qq(R),new M_(y),new c4(x),new $g({current:null}),
  3407. m&&new m0(m),b_&&new So(b_),new ua(U),new ia(x2),new Dh(p),t&&new H4(t),a&&new kg(a),new EH({}),new P4(l)].filter(M2j)),HF:e(s6),adLayoutLoggingData:JY};K=yVN(g.D(q,PY),U,b,p.layoutId,Y);return{xb:p,rEZ:K}}};
  3408. xq=function(d,q){if(!d)throw new TypeError("Expected instream video ad renderer");if(!d.playerVars)throw new TypeError("Expected player vars in url encoded string");var T=lF(d.playerVars),Y=Number(T.length_seconds);if(isNaN(Y))throw new TypeError("Expected valid length seconds in player vars");var e=Number(d.trimmedMaxNonSkippableAdDurationMs);Y=isNaN(e)?Y:Math.min(Y,e/1E3);e=d.playerOverlay||{};e=e.instreamAdPlayerOverlayRenderer===void 0?null:e.instreamAdPlayerOverlayRenderer;var U=d.playerOverlay||
  3409. {};U=U.playerOverlayLayoutRenderer===void 0?null:U.playerOverlayLayoutRenderer;var b=T.video_id;b||(b=(b=d.externalVideoId)?b:void 0);if(!b)throw new TypeError("Expected valid video id in IVAR");if(q&&Y===0){var J;q=(J=p6n[b])!=null?J:Y}else q=Y;return{playerVars:T,videoLengthSeconds:q,instreamAdPlayerOverlayRenderer:e,playerOverlayLayoutRenderer:U,adVideoId:b,GG:d.pings?xu(d.pings):new Map,jE:R5(d.pings)}};
  3410. QeH=function(d){d=Number(d.driftRecoveryMs);return isNaN(d)||d<=0?null:d};
  3411. Hoj=function(d){var q=d.adTimeOffset||{};d=q.offsetEndMilliseconds;q=Number(q.offsetStartMilliseconds);if(isNaN(q))throw new TypeError("Expected valid start offset");d=Number(d);if(isNaN(d))throw new TypeError("Expected valid end offset");return{A7:q,Z4:d}};
  3412. Zo1=function(d){var q,T=(q=l7(d.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:q.current;if(!T)return null;q=l7(d.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var Y=d.layoutId,e=l7(d.clientMetadata,"metadata_type_content_cpn"),U=l7(d.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),b=l7(d.clientMetadata,"metadata_type_player_underlay_renderer"),J=l7(d.clientMetadata,"metadata_type_ad_placement_config"),F=l7(d.clientMetadata,"metadata_type_video_length_seconds");
  3413. var N=ze(d.clientMetadata,"metadata_type_layout_enter_ms")&&ze(d.clientMetadata,"metadata_type_layout_exit_ms")?(l7(d.clientMetadata,"metadata_type_layout_exit_ms")-l7(d.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{jP:Y,contentCpn:e,Z2:T,Z3:q,instreamAdPlayerOverlayRenderer:U,instreamAdPlayerUnderlayRenderer:b,adPlacementConfig:J,videoLengthSeconds:F,lc:N,inPlayerLayoutId:l7(d.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:l7(d.clientMetadata,"metadata_type_linked_in_player_slot_id")}};
  3414. rV6=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h,H){Y=U0(Y,"SLOT_TYPE_PLAYER_BYTES");d=OoQ(e,d,b,T,Y,F,N);if(d instanceof S)return d;var a;N=(a=l7(d.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:a.layoutId;if(!N)return new S("Invalid adNotify layout");q=nXQ(N,e,U,T,J,q,F,R,x,y,h,H,b);return q instanceof S?q:[d].concat(g.RQ(q))};
  3415. nXQ=function(d,q,T,Y,e,U,b,J,F,N,R,x,y){T=t21(q,T,Y,U,b,J,F,N,R,x,y);if(T instanceof S)return T;d=B5j(q,d,b,e,T);return d instanceof S?d:[].concat(g.RQ(d.HA),[d.kX])};
  3416. Gqn=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h){q=t21(d,q,T,e,U,J,F,N,R,x,y,h);if(q instanceof S)return q;d=KP6(d,T,U,b,Y,J.aN,q);return d instanceof S?d:d.HA.concat(d.kX)};
  3417. t21=function(d,q,T,Y,e,U,b,J,F,N,R,x){var y=yE(Y,T,N);return y instanceof m5?new S(y):N.J.C().experiments.Wv("html5_refactor_in_player_slot_generation")?function(h){var H=new wU(0,[y.FU]);h=LPg(q,y.layoutId,y.Ri,T,hC(y.playerVars,y.t4,U,F,H),y.FU,e,H,b(h),J.get(y.Ri.externalVideoId),x);H=[];if(y.Ri.playerOverlay.instreamAdPlayerOverlayRenderer){var a=Zo1(h);if(!a)return Jm("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,h),{layout:h,HA:[]};
  3418. H=[kqn(d,a.contentCpn,a.jP,function(t){return H_(q,t.slotId,"core",a,Tn(R,t))},a.inPlayerSlotId)].concat(g.RQ(H));
  3419. if(a.instreamAdPlayerUnderlayRenderer&&QE(N)){var p=a.instreamAdPlayerUnderlayRenderer;H=[Pzj(d,a.contentCpn,a.jP,function(t){return WPQ(q,t.slotId,p,a.adPlacementConfig,a.jP,Tn(R,t))})].concat(g.RQ(H))}}return{layout:h,
  3420. HA:H}}:function(h){var H=new wU(0,[y.FU]);
  3421. return{layout:LPg(q,y.layoutId,y.Ri,T,hC(y.playerVars,y.t4,U,F,H),y.FU,e,H,b(h),J.get(y.Ri.externalVideoId),x),HA:[]}}};
  3422. yE=function(d,q,T){if(!d.playerVars)return new m5("No playerVars available in InstreamVideoAdRenderer.");var Y,e;if(d.elementId==null||d.playerVars==null||d.playerOverlay==null||((Y=d.playerOverlay)==null?void 0:Y.instreamAdPlayerOverlayRenderer)==null&&((e=d.playerOverlay)==null?void 0:e.playerOverlayLayoutRenderer)==null||d.pings==null||d.externalVideoId==null)return new m5("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:d});Y=lF(d.playerVars);e=Number(Y.length_seconds);
  3423. isNaN(e)&&(e=0,Jm("Expected valid length seconds in player vars but got NaN"));if(T.pz(q.kind==="AD_PLACEMENT_KIND_START")){if(d.layoutId===void 0)return new m5("Expected server generated layout ID in instreamVideoAdRenderer");q=d.layoutId}else q=d.elementId;return{layoutId:q,Ri:d,playerVars:Y,t4:d.playerVars,FU:e}};
  3424. hC=function(d,q,T,Y,e){d.iv_load_policy=Y;q=lF(q);if(q.cta_conversion_urls)try{d.cta_conversion_urls=JSON.parse(q.cta_conversion_urls)}catch(U){Jm(U)}T.jj&&(d.ctrl=T.jj);T.OP&&(d.ytr=T.OP);T.Eu&&(d.ytrcc=T.Eu);T.isMdxPlayback&&(d.mdx="1");d.vvt&&(d.vss_credentials_token=d.vvt,T.M4&&(d.vss_credentials_token_type=T.M4),T.mdxEnvironment&&(d.mdx_environment=T.mdxEnvironment));JC(d,e);return d};
  3425. Czg=function(d){var q=new Map;d=g.E(d);for(var T=d.next();!T.done;T=d.next())(T=T.value.renderer.remoteSlotsRenderer)&&T.hostElementId&&q.set(T.hostElementId,T);return q};
  3426. M6=function(d){return d.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"};
  3427. uJI=function(d){return d!=null};
  3428. mt_=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h,H){for(var a=[],p=g.E(d),t=p.next();!t.done;t=p.next())if(t=t.value,!BcX(t)&&!P9D(t)){var n=M6(t)&&!!t.slotEntryTrigger.beforeContentVideoIdStartedTrigger,K=F.pz(n),P=DtQ(t,N,Y,T.O6,K);if(P instanceof S)return P;var w=void 0,l={slotId:t.adSlotMetadata.slotId,slotType:t.adSlotMetadata.slotType,slotPhysicalPosition:(w=t.adSlotMetadata.slotPhysicalPosition)!=null?w:1,nf:"core",slotEntryTrigger:P.slotEntryTrigger,slotFulfillmentTriggers:P.slotFulfillmentTriggers,
  3429. slotExpirationTriggers:P.slotExpirationTriggers},m=g.D(t.fulfillmentContent.fulfilledLayout,wG);if(m){if(!DJ(m))return new S("Invalid PlayerBytesAdLayoutRenderer");w=x&&!(M6(t)&&t.slotEntryTrigger.beforeContentVideoIdStartedTrigger);P=P.slotFulfillmentTriggers.some(function(b_){return b_ instanceof o0});
  3430. K=w?w6N(l,t.adSlotMetadata.triggerEvent,m,T,Y,U,N,d,K,y,P,h):fSX(l,t.adSlotMetadata.triggerEvent,m,q,T,Y,e,U,b,J,F,N,d,R,K,t.adSlotMetadata.triggeringSourceLayoutId);if(K instanceof S)return K;P=[];H?P.push(new RV({current:H})):P.push(new RV({current:null}));M6(t)&&P.push(new wJ({Px:M6(t)&&!!t.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));w&&P.push(new EH({}));T.aN&&P.push(new Lm({}));P.push(new u7(n));t=Object.assign({},l,{clientMetadata:new St(P),fulfilledLayout:K.layout,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});
  3431. a.push.apply(a,g.RQ(K.HA));a.push(t)}else if(n=g.D(t.fulfillmentContent.fulfilledLayout,mu)){if(!tlX(n))return new S("Invalid PlayerUnderlayAdLayoutRenderer");n=zpY(n,Y,T.O6,U,l,t.adSlotMetadata.triggerEvent,t.adSlotMetadata.triggeringSourceLayoutId);if(n instanceof S)return n;t=Object.assign({},l,{clientMetadata:new St([]),fulfilledLayout:n,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});a.push(t)}else if(n=g.D(t.fulfillmentContent.fulfilledLayout,GYX)){if(!Ehn(n))return new S("Invalid AboveFeedAdLayoutRenderer");
  3432. n=ion(n,Y,T.O6,U,l,t.adSlotMetadata.triggerEvent,t.adSlotMetadata.triggeringSourceLayoutId);if(n instanceof S)return n;t=Object.assign({},l,{clientMetadata:new St([]),fulfilledLayout:n,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});a.push(t)}else if(n=g.D(t.fulfillmentContent.fulfilledLayout,LM6)){if(!AR(n.adLayoutMetadata)||!g.D(n.renderingContent,pS))return new S("Invalid BelowPlayerAdLayoutRenderer");n=ion(n,Y,T.O6,U,l,t.adSlotMetadata.triggerEvent,t.adSlotMetadata.triggeringSourceLayoutId);
  3433. if(n instanceof S)return n;t=Object.assign({},l,{clientMetadata:new St([]),fulfilledLayout:n,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});a.push(t)}else if(n=g.D(t.fulfillmentContent.fulfilledLayout,S5)){if(!z8(n))return new S("Invalid PlayerBytesSequenceItemAdLayoutRenderer");n=IS2(n,Y,T.O6,U,l,t.adSlotMetadata.triggerEvent);if(n instanceof S)return n;t=Object.assign({},l,{clientMetadata:new St([]),fulfilledLayout:n,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});a.push(t)}else return new S("Unable to retrieve a client slot ["+
  3434. l.slotType+"] from a given AdSlotRenderer")}return a};
  3435. IS2=function(d,q,T,Y,e,U){var b={layoutId:d.adLayoutMetadata.layoutId,layoutType:d.adLayoutMetadata.layoutType,nf:"core"};q=c_(d,q,T);return q instanceof S?q:(T=g.D(d.renderingContent,fS))&&T.pings?Object.assign({},b,{renderingContent:d.renderingContent,GG:xu(T.pings)},q,{HF:Tn(Y,e)(b),clientMetadata:new St([new ua(E7(U))]),adLayoutLoggingData:d.adLayoutMetadata.adLayoutLoggingData}):new S("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")};
  3436. ion=function(d,q,T,Y,e,U,b){var J={layoutId:d.adLayoutMetadata.layoutId,layoutType:d.adLayoutMetadata.layoutType,nf:"core"};q=c_(d,q,T);if(q instanceof S)return q;T=[];T.push(new ua(E7(U)));U==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&b!==void 0&&T.push(new UH(b));return Object.assign({},J,{renderingContent:d.renderingContent,GG:new Map([["impression",Svg(d)]])},q,{HF:Tn(Y,e)(J),clientMetadata:new St(T),adLayoutLoggingData:d.adLayoutMetadata.adLayoutLoggingData})};
  3437. zpY=function(d,q,T,Y,e,U,b){if(d.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(b=g.D(d.renderingContent,iV))if(b=g.D(b.sidePanel,nhD)){var J={layoutId:d.adLayoutMetadata.layoutId,layoutType:d.adLayoutMetadata.layoutType,nf:"core"};q=c_(d,q,T);d=q instanceof S?q:Object.assign({},J,{renderingContent:d.renderingContent,GG:new Map([["impression",b.impressionPings||[]],["resume",b.resumePings||[]]])},q,{HF:Tn(Y,e)(J),clientMetadata:new St([new ua(E7(U))]),adLayoutLoggingData:d.adLayoutMetadata.adLayoutLoggingData})}else d=
  3438. new S("DismissablePanelTextPortraitImageRenderer is missing");else d=new S("SqueezebackPlayerSidePanelRenderer is missing");else d.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.D(d.renderingContent,pm1)?(b={layoutId:d.adLayoutMetadata.layoutId,layoutType:d.adLayoutMetadata.layoutType,nf:"core"},q=c_(d,q,T),d=q instanceof S?q:Object.assign({},b,{renderingContent:d.renderingContent,GG:new Map},q,{HF:Tn(Y,e)(b),clientMetadata:new St([new ua(E7(U))]),adLayoutLoggingData:d.adLayoutMetadata.adLayoutLoggingData})):
  3439. d=new S("CounterfactualRenderer is missing"):d.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?d=new S("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):d.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?d=new S("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):d.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.D(d.renderingContent,IF)?(U={layoutId:d.adLayoutMetadata.layoutId,layoutType:d.adLayoutMetadata.layoutType,
  3440. nf:"core"},q=c_(d,q,T),d=q instanceof S?q:b?Object.assign({},U,{renderingContent:d.renderingContent,GG:new Map},q,{HF:Tn(Y,e)(U),clientMetadata:new St([new UH(b)]),adLayoutLoggingData:d.adLayoutMetadata.adLayoutLoggingData}):new S("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):d=new S("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):d.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.D(d.renderingContent,ZUI)?
  3441. (U={layoutId:d.adLayoutMetadata.layoutId,layoutType:d.adLayoutMetadata.layoutType,nf:"core"},q=c_(d,q,T),d=q instanceof S?q:Object.assign({},U,{renderingContent:d.renderingContent,GG:new Map([])},q,{HF:Tn(Y,e)(U),adLayoutLoggingData:d.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new St([])})):d=new S("AdsEngagementPanelSectionListViewModel is missing"):d=new S("LayoutType ["+d.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return d};
  3442. w6N=function(d,q,T,Y,e,U,b,J,F,N,R,x){if((x==null?void 0:x.vW)===void 0||(x==null?void 0:x.RW)===void 0)return new S("Cached ad break range from cue point is missing");var y=c_(T,e,Y.O6);if(y instanceof S)return y;y={layoutExitMuteTriggers:[],layoutExitNormalTriggers:y.layoutExitNormalTriggers,layoutExitSkipTriggers:[],J1:[],layoutExitUserInputSubmittedTriggers:[]};if(g.D(T.renderingContent,PY))return d=lSY(d,q,T,y,e,U,J,F,Y.O6,b,x.vW,x.RW),d instanceof S?d:d.Xd===void 0?new S("Expecting associatedInPlayerSlot for single DAI media layout"):
  3443. {layout:d.layout,HA:[d.Xd]};var h=g.D(T.renderingContent,LS);if(h){if(!AR(T.adLayoutMetadata))return new S("Invalid ad layout metadata");if(!kb(h))return new S("Invalid sequential layout");h=h.sequentialLayouts.map(function(H){return H.playerBytesAdLayoutRenderer});
  3444. d=vXf(d,q,T,y,h,e,Y,U,b,F,J,N,x.vW,x.RW,R);return d instanceof S?d:{layout:d.E7,HA:d.HA}}return new S("Not able to convert a sequential layout")};
  3445. vXf=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h,H){var a=oX1(e,y,h);if(a instanceof S)return a;var p=[],t=[];a=g.E(a);for(var n=a.next();!n.done;n=a.next()){var K=n.value;n=d;var P=e[K.jU],w=K,l=q;K=U;var m=b,b_=J,x2=F,JY=N,s6=R,qH=ji(P);if(qH instanceof S)n=qH;else{var O6={layoutId:P.adLayoutMetadata.layoutId,layoutType:P.adLayoutMetadata.layoutType,nf:"adapter"};w=V2_(l,P,w,K);w instanceof S?n=w:(n=Object.assign({},O6,ax,{GG:qH,renderingContent:P.renderingContent,clientMetadata:new St(w),HF:Tn(b_,n)(O6),
  3446. adLayoutLoggingData:P.adLayoutMetadata.adLayoutLoggingData}),n=(P=AC(s6,n,K,m.O6,b_,x2,JY,void 0,!0))?P instanceof S?P:{layout:n,Xd:P}:new S("Expecting associatedInPlayerSlot"))}if(n instanceof S)return n;p.push(n.layout);t.push(n.Xd)}e={layoutId:T.adLayoutMetadata.layoutId,layoutType:T.adLayoutMetadata.layoutType,nf:"core"};q=[new As(Number(T.driftRecoveryMs)),new Qq(y),new M_(h),new ua(E7(q)),new Cm(x),new EH({})];H&&q.push(new fm({}));return{E7:Object.assign({},e,Y,{iV:p,GG:new Map,clientMetadata:new St(q),
  3447. HF:Tn(J,d)(e)}),HA:t}};
  3448. lSY=function(d,q,T,Y,e,U,b,J,F,N,R,x){if(!DJ(T))return new S("Invalid PlayerBytesAdLayoutRenderer");var y=ji(T);if(y instanceof S)return y;var h={layoutId:T.adLayoutMetadata.layoutId,layoutType:T.adLayoutMetadata.layoutType,nf:"core"},H=g.D(T.renderingContent,PY);if(!H)return new S("Invalid rendering content for DAI media layout");H=xq(H,!1);R={ya:H,jU:0,QT:R,MB:Math.min(R+H.videoLengthSeconds*1E3,x),Lo:new wU(0,[H.videoLengthSeconds])};var a;x=(a=Number(T.driftRecoveryMs))!=null?a:void 0;q=V2_(q,
  3449. T,R,e,x);if(q instanceof S)return q;d=Object.assign({},h,Y,{GG:y,renderingContent:T.renderingContent,clientMetadata:new St(q),HF:Tn(U,d)(h),adLayoutLoggingData:T.adLayoutMetadata.adLayoutLoggingData});return(e=AC(b,d,e,F,U,N,J,void 0,!0))?e instanceof S?e:{layout:d,Xd:e}:new S("Expecting associatedInPlayerSlot")};
  3450. fSX=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h,H,a){var p=c_(T,U,e.O6);if(p instanceof S)return p;if(g.D(T.renderingContent,PY)){F=d12([T],e,F);if(F instanceof S)return F;if(F.length!==1)return new S("Only expected one media layout.");d=qnY(d,q,T,p,F[0],void 0,"core",Y,U,b,J,N,y,h,H,e.O6,x,void 0,a);return d instanceof S?d:{layout:d.layout,HA:d.Xd?[d.Xd]:[]}}var t=g.D(T.renderingContent,LS);if(t){if(!AR(T.adLayoutMetadata))return new S("Invalid ad layout metadata");if(!kb(t))return new S("Invalid sequential layout");
  3451. t=t.sequentialLayouts.map(function(n){return n.playerBytesAdLayoutRenderer});
  3452. d=TE2(d,q,T.adLayoutMetadata,p,t,Y,U,e,F,b,J,N,R,x,H,y,h,a);return d instanceof S?d:{layout:d.E7,HA:d.HA}}return new S("Not able to convert a sequential layout")};
  3453. TE2=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h,H,a,p,t){var n=new zm({current:null}),K=d12(e,J,F);if(K instanceof S)return K;F=[];for(var P=[],w=void 0,l=0;l<e.length;l++){var m=e[l];if(g.D(m.renderingContent,PY)){w=VQ(y)&&dU(y)?K[l+1]:void 0;w=qnY(d,q,m,ax,K[l],w,"adapter",U,b,N,R,x,a,p,H,J.O6,h,n,t);if(w instanceof S)return w;F.push(w.layout);w.Xd&&P.push(w.Xd);w=K[l]}else if(g.D(m.renderingContent,WY)){var b_=d,x2=R;if(DJ(m)){var JY=g.D(m.renderingContent,WY);if(JY&&JY.playerVars!==void 0){var s6={layoutId:m.adLayoutMetadata.layoutId,
  3454. layoutType:m.adLayoutMetadata.layoutType,nf:"adapter"};JY=lF(JY.playerVars);JY.autoplay="1";m=Object.assign({},s6,ax,{renderingContent:m.renderingContent,clientMetadata:new St([new jt({}),new ua({kind:"AD_PLACEMENT_KIND_START"}),new $g({current:null}),new yq(JY)]),GG:new Map,HF:Tn(x2,b_)(s6),adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData})}else m=new S("Invalid ad intro renderer")}else m=new S("Invalid PlayerBytesAdLayoutRenderer");if(m instanceof S)return m;F.push(m)}else if(g.D(m.renderingContent,
  3455. o5))if(p){m=Ynn(d,m,R,E7(q),w);if(m instanceof S)return m;F.push(m);m=AC(a,m,b,J.O6,R,h,H,n,!1);if(m instanceof S)return m;if(m)P.push(m);else return new S("Not able to retrieve InPlayer slot for endcap")}else{a:{b_=m.adLayoutMetadata.layoutId;x2=g.E(U);for(s6=x2.next();!s6.done;s6=x2.next()){s6=s6.value;var qH=JY=void 0,O6=((JY=s6.renderer)==null?void 0:(qH=JY.linearAdSequenceRenderer)==null?void 0:qH.linearAds)||[];JY=g.E(O6);for(qH=JY.next();!qH.done;qH=JY.next())if((qH=g.D(qH.value,o5))&&qH.inPlayerSlotId!==
  3456. void 0&&qH.inPlayerLayoutId!==void 0&&qH.associatedPlayerBytesLayoutId!==void 0&&qH.associatedPlayerBytesLayoutId===b_){b_={a8:qH,adPlacementConfig:s6.config.adPlacementConfig};break a}}b_=new S("Not able to find associated InPlayer slot for endcap")}if(b_ instanceof S)return b_;m=Ynn(d,m,R,b_.adPlacementConfig,w);if(m instanceof S)return m;F.push(m);m=erX(m.layoutId,h,b,b_,n,R);if(m instanceof S)return m;P.push(m)}}q={layoutId:T.layoutId,layoutType:T.layoutType,nf:"core"};return{E7:Object.assign({},
  3457. q,Y,{iV:F,GG:new Map,clientMetadata:new St([n]),HF:Tn(R,d)(q)}),HA:P}};
  3458. qnY=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h,H,a,p,t,n){if(!DJ(T))return new S("Invalid PlayerBytesAdLayoutRenderer");var K=ji(T);if(K instanceof S)return K;b={layoutId:T.adLayoutMetadata.layoutId,layoutType:T.adLayoutMetadata.layoutType,nf:b};a:{var P=T.adLayoutMetadata.layoutId,w=g.D(T.renderingContent,PY);if(w&&G8(w)){var l=[];if(h)l.push(new ua(E7(q)));else{b:{J=g.E(J);for(q=J.next();!q.done;q=J.next()){q=q.value;var m=JV6(q.renderer)||[],b_=g.E(m);for(m=b_.next();!m.done;m=b_.next())if(m=m.value,
  3459. m.associatedPlayerBytesLayoutId===P){m.associatedPlayerBytesLayoutId?(J=m.playerOverlay,b_=J!==void 0&&J.playerOverlayLayoutRenderer!==void 0&&J.playerOverlayLayoutRenderer.inPlayerSlotId!==void 0&&J.playerOverlayLayoutRenderer.inPlayerLayoutId!==void 0,J=J!==void 0&&J.instreamAdPlayerOverlayRenderer!==void 0&&J.instreamAdPlayerOverlayRenderer.inPlayerSlotId!==void 0&&J.instreamAdPlayerOverlayRenderer.inPlayerLayoutId!==void 0||b_):J=!1;q=J?{instreamVideoAdRenderer:m,adPlacementConfig:q.config.adPlacementConfig}:
  3460. new S("Invalid InPlayer shim");break b}}q=new S("Not able to find associated InPlayer slot")}if(q instanceof S){U=q;break a}J=q.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;m=q.instreamVideoAdRenderer.playerOverlay.playerOverlayLayoutRenderer;var x2;b_=(x2=J==null?void 0:J.inPlayerSlotId)!=null?x2:m==null?void 0:m.inPlayerSlotId;var JY;x2=(JY=J==null?void 0:J.inPlayerLayoutId)!=null?JY:m==null?void 0:m.inPlayerLayoutId;if(b_===void 0){U=new S("InPlayer shim slot id is undefined");
  3461. break a}if(x2===void 0){U=new S("InPlayer shim layout id is undefined");break a}l.push(new b7(x2),new Js(b_),new c4(e.Lo.adPodIndex),new ua(q.adPlacementConfig));J&&l.push(new m0(J));m&&l.push(new So(m))}l.push(new Dh(e.Lo),new ia(w.externalVideoId),new Iw(F),new Ge({impressionCommands:w.impressionCommands,abandonCommands:w.onAbandonCommands,completeCommands:w.completeCommands,progressCommands:w.adVideoProgressCommands}),new yq(e.bL),new $g({current:null}),new xg(e.LMD.FU),new P4(R5(w.pings)),new wE(e.Lo.adPodIndex));
  3462. n&&l.push(new UH(n));(e=U1H(P,y))&&l.push(new vD(e));U&&l.push(new hs(U.bL));w.adNextParams&&l.push(new BD(w.adNextParams));w.clickthroughEndpoint&&l.push(new K3(w.clickthroughEndpoint));w.legacyInfoCardVastExtension&&l.push(new B4(w.legacyInfoCardVastExtension));w.sodarExtensionData&&l.push(new H4(w.sodarExtensionData));t&&w.adPodSkipTarget&&w.adPodSkipTarget>0&&(l.push(t),l.push(new f3(w.adPodSkipTarget)));(U=N.get(w.externalVideoId))&&l.push(new nm(U));U=l}else U=new S("Invalid vod media renderer")}if(U instanceof
  3463. S)return U;d=Object.assign({},b,Y,{GG:K,renderingContent:T.renderingContent,clientMetadata:new St(U),HF:Tn(R,d)(b),adLayoutLoggingData:T.adLayoutMetadata.adLayoutLoggingData});T=g.D(T.renderingContent,PY);if(!T||!G8(T))return new S("Invalid meida renderer");x=$q(x,T.externalVideoId);x.instreamVideoAdRenderer=T;x.BS="AD_PLACEMENT_KIND_START";return h?(F=AC(y,d,F,a,R,p,H,t,!1),F instanceof S?F:U1H(d.layoutId,y)&&F?{layout:Object.assign({},d,{clientMetadata:new St(U.concat(new ow(F)))})}:{layout:d,Xd:F}):
  3464. {layout:d}};
  3465. Ynn=function(d,q,T,Y,e){if(!DJ(q))return new S("Invalid PlayerBytesAdLayoutRenderer");var U=g.D(q.renderingContent,o5);if(!U||U.durationMilliseconds===void 0)return new S("Invalid endcap renderer");var b={layoutId:q.adLayoutMetadata.layoutId,layoutType:q.adLayoutMetadata.layoutType,nf:"adapter"};Y=[new ts(U.durationMilliseconds),new Ge({impressionCommands:void 0,abandonCommands:U.abandonCommands?[{commandExecutorCommand:U.abandonCommands}]:void 0,completeCommands:U.completionCommands}),new ua(Y),
  3466. new Xb("LAYOUT_TYPE_ENDCAP")];if(e){Y.push(new wE(e.Lo.adPodIndex-1));Y.push(new c4(e.Lo.adPodIndex));var J;Y.push(new f3((J=e.adPodSkipTarget)!=null?J:-1))}return Object.assign({},b,ax,{renderingContent:q.renderingContent,clientMetadata:new St(Y),GG:U.skipPings?new Map([["skip",U.skipPings]]):new Map,HF:Tn(T,d)(b),adLayoutLoggingData:q.adLayoutMetadata.adLayoutLoggingData})};
  3467. AC=function(d,q,T,Y,e,U,b,J,F){d=d.filter(function(x){return x.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&x.adSlotMetadata.triggeringSourceLayoutId===q.layoutId});
  3468. if(d.length!==0){if(d.length!==1)return new S("Invalid InPlayer slot association for the given PlayerBytes layout");d=d[0];b=DtQ(d,U,T,Y,b);if(b instanceof S)return b;var N;U={slotId:d.adSlotMetadata.slotId,slotType:d.adSlotMetadata.slotType,slotPhysicalPosition:(N=d.adSlotMetadata.slotPhysicalPosition)!=null?N:1,nf:"core",slotEntryTrigger:b.slotEntryTrigger,slotFulfillmentTriggers:b.slotFulfillmentTriggers,slotExpirationTriggers:b.slotExpirationTriggers};N=g.D(d.fulfillmentContent.fulfilledLayout,
  3469. KM6);if(!N||!AU2(N))return new S("Invalid InPlayerAdLayoutRenderer");b={layoutId:N.adLayoutMetadata.layoutId,layoutType:N.adLayoutMetadata.layoutType,nf:"core"};T=c_(N,T,Y);if(T instanceof S)return T;Y=[];var R=N.adLayoutMetadata.layoutType;F&&Y.push(new EH({}));if(R==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")Y.push.apply(Y,g.RQ(b3n(d.adSlotMetadata.triggerEvent,q)));else if(R==="LAYOUT_TYPE_ENDCAP"||R==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){Y.push(new ua(E7(d.adSlotMetadata.triggerEvent)));
  3470. if(R==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new S("Cannot parse endcap layout since AdUxReadyApi is not provided");J&&Y.push(J)}else return new S("Not able to parse an SDF InPlayer layout");e=Object.assign({},b,T,{renderingContent:N.renderingContent,GG:new Map,HF:Tn(e,U)(b),clientMetadata:new St(Y),adLayoutLoggingData:N.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},U,{fulfilledLayout:e,clientMetadata:new St([])})}};
  3471. b3n=function(d,q){var T=[];T.push(new ua(E7(d)));T.push(new UH(q.layoutId));(d=l7(q.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&T.push(new $g(d));(d=l7(q.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&T.push(new zm(d));(d=l7(q.clientMetadata,"metadata_type_remote_slots_data"))&&T.push(new nm(d));(d=l7(q.clientMetadata,"metadata_type_ad_next_params"))&&T.push(new BD(d));(d=l7(q.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&T.push(new K3(d));(d=
  3472. l7(q.clientMetadata,"metadata_type_ad_pod_info"))&&T.push(new Dh(d));(q=l7(q.clientMetadata,"metadata_type_ad_video_id"))&&T.push(new ia(q));return T};
  3473. erX=function(d,q,T,Y,e,U){function b(N){return p6(q,N)}
  3474. var J=Y.a8.inPlayerSlotId,F={layoutId:Y.a8.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",nf:"core"};T={slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,nf:"core",slotEntryTrigger:new ml(b,d),slotFulfillmentTriggers:[new sO(b,J)],slotExpirationTriggers:[new $b(b,J),new bV(b,T)]};d=Object.assign({},F,{layoutExitNormalTriggers:[new lu(b,d)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],GG:new Map,clientMetadata:new St([new dJ(Y.a8),
  3475. new ua(Y.adPlacementConfig),e]),HF:Tn(U,T)(F),adLayoutLoggingData:Y.a8.adLayoutLoggingData});return Object.assign({},T,{clientMetadata:new St([new pm(d)])})};
  3476. U1H=function(d,q){q=g.E(q);for(var T=q.next();!T.done;T=q.next())if(T=T.value,T.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var Y=g.D(T.fulfillmentContent.fulfilledLayout,mu);if(Y&&(Y=g.D(Y.renderingContent,iV))&&Y.associatedPlayerBytesLayoutId===d)return T}};
  3477. DtQ=function(d,q,T,Y,e){var U=XDH(XC(d.slotEntryTrigger,T,Y),e,d,q);if(U instanceof S)return U;for(var b=[],J=g.E(d.slotFulfillmentTriggers),F=J.next();!F.done;F=J.next()){F=XC(F.value,T,Y);if(F instanceof S)return F;b.push(F)}b=Jb_(b,e,d,q);q=[];d=g.E(d.slotExpirationTriggers);for(e=d.next();!e.done;e=d.next()){e=XC(e.value,T,Y);if(e instanceof S)return e;q.push(e)}return{slotEntryTrigger:U,slotFulfillmentTriggers:b,slotExpirationTriggers:q}};
  3478. XDH=function(d,q,T,Y){return q&&T.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&d instanceof fd?new DD(function(e){return p6(Y,e)},T.adSlotMetadata.slotId):d};
  3479. Jb_=function(d,q,T,Y){return q&&T.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?d.map(function(e){return e instanceof sO?new Nm(function(U){return p6(Y,U)},T.adSlotMetadata.slotId):e}):d};
  3480. c_=function(d,q,T){for(var Y=[],e=g.E(d.layoutExitNormalTriggers||[]),U=e.next();!U.done;U=e.next()){U=XC(U.value,q,T);if(U instanceof S)return U;Y.push(U)}e=[];U=g.E(d.layoutExitSkipTriggers||[]);for(var b=U.next();!b.done;b=U.next()){b=XC(b.value,q,T);if(b instanceof S)return b;e.push(b)}U=[];b=g.E(d.layoutExitMuteTriggers||[]);for(var J=b.next();!J.done;J=b.next()){J=XC(J.value,q,T);if(J instanceof S)return J;U.push(J)}b=[];d=g.E(d.layoutExitUserInputSubmittedTriggers||[]);for(J=d.next();!J.done;J=
  3481. d.next()){J=XC(J.value,q,T);if(J instanceof S)return J;b.push(J)}return{layoutExitNormalTriggers:Y,layoutExitSkipTriggers:e,layoutExitMuteTriggers:U,layoutExitUserInputSubmittedTriggers:b,J1:[]}};
  3482. ji=function(d){var q=g.D(d.renderingContent,PY);if(q==null?0:q.pings)return xu(q.pings);d=g.D(d.renderingContent,o5);return(d==null?0:d.skipPings)?new Map([["skip",d.skipPings]]):new Map};
  3483. V2_=function(d,q,T,Y,e){q=g.D(q.renderingContent,PY);if(!q)return new S("Invalid rendering content for DAI media layout");d=[new Iw(Y),new xg(T.ya.videoLengthSeconds),new yq(T.ya.playerVars),new Qq(T.QT),new M_(T.MB),new c4(T.jU),new ua(E7(d)),new ia(T.ya.adVideoId),new Dh(T.Lo),q.sodarExtensionData&&new H4(q.sodarExtensionData),new $g({current:null}),new EH({}),new P4(R5(q.pings))].filter(uJI);e!==void 0&&d.push(new As(e));return d};
  3484. oX1=function(d,q,T){d=d.map(function(F){return xq(g.D(F.renderingContent,PY),!1)});
  3485. var Y=d.map(function(F){return F.videoLengthSeconds}),e=Y.map(function(F,N){return new wU(N,Y)}),U=q,b=T,J=[];
  3486. d.forEach(function(F,N){b=Math.min(U+F.videoLengthSeconds*1E3,T);JC(F.playerVars,e[N]);J.push({ya:F,QT:U,MB:b,jU:N,Lo:e[N]});U=b});
  3487. return J};
  3488. d12=function(d,q,T){for(var Y=[],e=g.E(d),U=e.next();!U.done;U=e.next())if(U=g.D(U.value.renderingContent,PY)){if(!G8(U))return new S("Invalid vod media renderer");Y.push(swH(U))}e=Y.map(function(x){return x.FU});
  3489. U=[];for(var b=0,J=0;J<d.length;J++){var F=g.D(d[J].renderingContent,PY);if(F){var N=new wU(b,e),R=hC(Y[b].playerVars,Y[b].t4,q,T,N);U[J]={Lo:N,adPodSkipTarget:F.adPodSkipTarget,LMD:Y[b],bL:R};b++}}return U};
  3490. swH=function(d){var q=lF(d.playerVars),T=Number(q.length_seconds);isNaN(T)&&(T=0,Jm("Expected valid length seconds in player vars but got NaN"));return{playerVars:q,t4:d.playerVars,FU:T}};
  3491. E7=function(d){switch(d){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"}}};
  3492. Svg=function(d){if(g.D(d.renderingContent,OO)){var q;return((q=g.D(d.renderingContent,OO))==null?void 0:q.impressionPings)||[]}if(g.D(d.renderingContent,pS)){var T;return((T=g.D(d.renderingContent,pS))==null?void 0:T.impressionPings)||[]}if(g.D(d.renderingContent,ZJ)){var Y;return((Y=g.D(d.renderingContent,ZJ))==null?void 0:Y.impressionPings)||[]}return[]};
  3493. gUI=function(d,q,T,Y,e,U,b,J,F){var N=T.pings;return N?[$1Q(d,U,J,e,function(R){var x=R.slotId;R=F(R);var y=T.adLayoutLoggingData,h=T.progressCommands;x=Cu(q.U.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",x);var H={layoutId:x,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",nf:"core"};return{layoutId:x,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",GG:xu(N),layoutExitNormalTriggers:[new bV(q.G,U)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],
  3494. J1:[],nf:"core",clientMetadata:new St([new ua(Y),new P4(R5(N)),new W4(Ld_(N)),new xg(b/1E3),new Ge({progressCommands:h}),new rJ(b/1E3)]),HF:R(H),adLayoutLoggingData:y}})]:new S("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:T})};
  3495. NEI=function(d,q,T,Y,e,U,b,J){d=F0n(d,T,U,b,Y,function(F){var N=F.slotId;F=J(F);N=Cu(q.U.get(),"LAYOUT_TYPE_FORECASTING",N);var R={layoutId:N,layoutType:"LAYOUT_TYPE_FORECASTING",nf:"core"},x=new Map,y=e.impressionUrls;y&&x.set("impression",y);return{layoutId:N,layoutType:"LAYOUT_TYPE_FORECASTING",GG:x,layoutExitNormalTriggers:[new UO(q.G,N)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"core",clientMetadata:new St([new aV(e),new ua(T)]),HF:F(R)}});
  3496. return d instanceof S?d:[d]};
  3497. x1D=function(d,q,T,Y,e,U,b){return[RrY(d,U,Y,function(J){var F=J.slotId;J=b(J);F=Cu(q.U.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",F);var N={layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",nf:"core"};return{layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",GG:new Map,layoutExitNormalTriggers:[new bV(q.G,U)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"core",clientMetadata:new St([new m0(e),new ua(T)]),HF:J(N),
  3498. adLayoutLoggingData:e.adLayoutLoggingData}})]};
  3499. hr2=function(d,q,T,Y,e,U,b,J){d=yb6(d,T,U,b,Y,function(F,N){var R=F.slotId;F=J(F);var x=e.contentSupportedRenderer;x?x.textOverlayAdContentRenderer?(x=Cu(q.U.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",R),N=Zw(q,x,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,T,F,O7(q,N,R))):x.enhancedTextOverlayAdContentRenderer?(x=Cu(q.U.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",R),N=Zw(q,x,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,T,F,O7(q,N,R))):x.imageOverlayAdContentRenderer?(x=Cu(q.U.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
  3500. R),N=O7(q,N,R),N.push(new j5(q.G,45E3,x)),N=Zw(q,x,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,T,F,N)):N=new m5("InvideoOverlayAdRenderer without appropriate sub renderer"):N=new m5("InvideoOverlayAdRenderer without contentSupportedRenderer");return N});
  3501. return d instanceof S?d:[d]};
  3502. Mon=function(d,q,T,Y,e,U,b,J,F){var N=Number(Y.durationMilliseconds);return isNaN(N)?new S("Expected valid duration for AdActionInterstitialRenderer."):function(R){return H3Q(q,R.slotId,T,Y,N,{impressionCommands:void 0,abandonCommands:Y.abandonCommands?[{commandExecutorCommand:Y.abandonCommands}]:void 0,completeCommands:Y.completionCommands},Y.skipPings?new Map([["skip",Y.skipPings]]):new Map,b(R),function(x){return QwH(d,x,e,function(y,h){var H=y.slotId;y=b(y);H=Cu(q.U.get(),"LAYOUT_TYPE_ENDCAP",
  3503. H);return Rx(q,H,h,T,y,"LAYOUT_TYPE_ENDCAP",[new dJ(Y),J],Y.adLayoutLoggingData)})},F,U-1,Y.adLayoutLoggingData,U)}};
  3504. cbg=function(d,q,T,Y){if(!T.playerVars)return new S("No playerVars available in AdIntroRenderer.");var e=lF(T.playerVars);e.autoplay="1";return function(U){var b=U.slotId;U=Y(U);b=Cu(d.U.get(),"LAYOUT_TYPE_MEDIA",b);var J={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",nf:"adapter"};return{Y9:{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",GG:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"adapter",clientMetadata:new St([new jt({}),
  3505. new ua(q),new $g({current:null}),new yq(e)]),HF:U(J)},Xu:[new Sd(d.G,b,["error"])],MO:[],hI:[],YF:[]}}};
  3506. jwf=function(d,q,T,Y,e,U,b,J,F,N){N=N===void 0?!1:N;var R=FC(e);if(!C9_(e,N))return new S("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(R<=0)return new S("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var x=$tn(d,q,e,U,T,Y,b);return x instanceof S?x:function(y){return EUj(q,y.slotId,T,R,e,N6(e),b(y),x,J,F)}};
  3507. ah2=function(d,q,T,Y,e,U,b,J){function F(x){return QwH(d,x,Y,N)}
  3508. function N(x,y){var h=x.slotId;x=b(x);h=Cu(q.U.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",h);return Rx(q,h,y,T,x,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new q_(e),U],e.adLayoutLoggingData)}
  3509. if(!fO2(e))return new S("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var R=e.timeoutSeconds*1E3;return function(x){var y=x.slotId,h={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands};x=b(x);y=n6(q,y,T,R,h,new Map,x,F,void 0,rN(q,T,e.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));h=new b7(y.KJ);x=new wE(J);return{Y9:{layoutId:y.layoutId,layoutType:y.layoutType,GG:y.GG,layoutExitNormalTriggers:[],
  3510. layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:y.nf,clientMetadata:new St([].concat(g.RQ(y.rD),[h,x])),HF:y.HF,adLayoutLoggingData:y.adLayoutLoggingData},Xu:[],MO:y.layoutExitMuteTriggers,hI:y.layoutExitUserInputSubmittedTriggers,YF:y.J1,Xd:y.Xd}}};
  3511. pDf=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h,H,a){d=U0(d,"SLOT_TYPE_PLAYER_BYTES");Y=OoQ(q,b,Y,e,d,N,R);if(Y instanceof S)return Y;var p;b=(p=l7(Y.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:p.layoutId;if(!b)return new S("Invalid adNotify layout");q=Abj(b,q,T,e,U,F,J,N,x,y,h,H,a);return q instanceof S?q:[Y].concat(g.RQ(q))};
  3512. Abj=function(d,q,T,Y,e,U,b,J,F,N,R,x,y){T=Z3Y(q,T,Y,U,b,J,F,N,R,x,y);O3n(U)?(Y=nU6(q,d),d=U0(q.U.get(),"SLOT_TYPE_IN_PLAYER"),U=Cu(q.U.get(),"LAYOUT_TYPE_SURVEY",d),J=tC(q,Y,J),q=[].concat(g.RQ(J.slotExpirationTriggers),[new zu(q.G,U)]),d=T({slotId:J.slotId,slotType:J.slotType,slotPhysicalPosition:J.slotPhysicalPosition,slotEntryTrigger:J.slotEntryTrigger,slotFulfillmentTriggers:J.slotFulfillmentTriggers,slotExpirationTriggers:q,nf:J.nf},{slotId:d,layoutId:U}),e=d instanceof S?d:{kX:Object.assign({},
  3513. J,{slotExpirationTriggers:q,clientMetadata:new St([new pm(d.layout)]),adSlotLoggingData:e}),HA:d.HA}):e=B5j(q,d,J,e,T);return e instanceof S?e:[].concat(g.RQ(e.HA),[e.kX])};
  3514. tog=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h){q=Z3Y(d,q,T,e,U,b,F,N,R,x,y,h);O3n(e)?(e=rbH(d,T,b,J),e instanceof S?d=e:(J=U0(d.U.get(),"SLOT_TYPE_IN_PLAYER"),F=Cu(d.U.get(),"LAYOUT_TYPE_SURVEY",J),b=[].concat(g.RQ(e.slotExpirationTriggers),[new zu(d.G,F)]),J=q({slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,nf:e.nf,slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:b},{slotId:J,layoutId:F}),d=J instanceof S?J:{kX:{slotId:e.slotId,
  3515. slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,slotEntryTrigger:B_(d,T,e.slotId,e.slotEntryTrigger),slotFulfillmentTriggers:K6(d,T,e.slotId,e.slotFulfillmentTriggers),slotExpirationTriggers:b,nf:e.nf,clientMetadata:new St([new u7(Gb(T)),new pm(J.layout),new wJ({Px:d.Px(T)})]),adSlotLoggingData:Y},HA:J.HA})):d=KP6(d,T,b,J,Y,F.aN,q);return d instanceof S?d:d.HA.concat(d.kX)};
  3516. O3n=function(d){d=g.E(d);for(var q=d.next();!q.done;q=d.next())if(g.D(q.value,CS))return!0;return!1};
  3517. Z3Y=function(d,q,T,Y,e,U,b,J,F,N,R,x){return function(y,h){if(VQ(R)&&dU(R))a:{var H=BE7(Y,T,R);if(H instanceof S)h=H;else{for(var a=0,p=[],t=[],n=[],K=[],P=[],w=[],l=new gJ({current:null}),m=new zm({current:null}),b_=!1,x2=[],JY=0,s6=[],qH=0;qH<Y.length;qH++){var O6=Y[qH],SD=g.D(O6,PY);if(SD){SD=yE(SD,T,R);if(SD instanceof m5){h=new S(SD);break a}var dL=new wU(JY,H),hE=hC(SD.playerVars,SD.t4,b,N,dL);JY++;s6[qH]={renderer:O6,data:SD,Lo:dL,bL:hE}}}JY=-1;for(H=0;H<Y.length;H++)if(qH=Y[H],O6=g.D(qH,WY)){qH=
  3518. cbg(q,T,O6,J);if(qH instanceof S){h=qH;break a}qH=qH(y);p.push(qH.Y9);t=[].concat(g.RQ(qH.Xu),g.RQ(t));n=[].concat(g.RQ(qH.MO),g.RQ(n));qH.Xd&&(x2=[qH.Xd].concat(g.RQ(x2)))}else if(g.D(qH,PY))O6=s6[H],JY=O6.data,qH=O6.Lo,O6=O6.bL,SD=s6[H+1],dL=void 0,SD&&(dL=SD.bL),qH=K0I(q,JY.layoutId,JY.Ri,T,O6,JY.FU,U,qH,J(y),m,F.get(JY.Ri.externalVideoId),dL,x),a++,p.push(qH.Y9),t=[].concat(g.RQ(qH.Xu),g.RQ(t)),n=[].concat(g.RQ(qH.MO),g.RQ(n)),b_||(w.push(m),b_=!0),JY=(JY=JY.Ri.adPodSkipTarget)&&JY>0?JY:-1;else if(O6=
  3519. g.D(qH,o5)){qH=Mon(d,q,T,O6,U,a,J,m,JY);if(qH instanceof S){h=qH;break a}qH=qH(y);p.push(qH.Y9);t=[].concat(g.RQ(qH.Xu),g.RQ(t));n=[].concat(g.RQ(qH.MO),g.RQ(n));qH.Xd&&(x2=[qH.Xd].concat(g.RQ(x2)))}else if(O6=g.D(qH,CS)){if(h===void 0){h=new S("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:O6});break a}qH=jwf(d,q,T,U,O6,l,J,h,a,WA(R,"supports_multi_step_on_desktop"));if(qH instanceof S){h=qH;break a}qH=qH(y);p.push(qH.Y9);qH.Xd&&x2.push(qH.Xd);
  3520. t=[].concat(g.RQ(qH.Xu),g.RQ(t));n=[].concat(g.RQ(qH.MO),g.RQ(n));K=[].concat(g.RQ(qH.hI),g.RQ(K));P=[].concat(g.RQ(qH.YF),g.RQ(P));w=[l].concat(g.RQ(w))}else if(qH=g.D(qH,uV)){qH=ah2(d,q,T,U,qH,l,J,a);if(qH instanceof S){h=qH;break a}qH=qH(y);p.push(qH.Y9);qH.Xd&&x2.push(qH.Xd);n=[].concat(g.RQ(qH.MO),g.RQ(n))}else{h=new S("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}h={iV:p,layoutExitSkipTriggers:t,layoutExitUserInputSubmittedTriggers:K,J1:P,layoutExitMuteTriggers:n,rD:w,HA:x2}}}else a:if(a=
  3521. BE7(Y,T,R),a instanceof S)h=a;else{p=0;t=[];n=[];K=[];P=[];w=[];l=[];m=new gJ({current:null});b_=new zm({current:null});x2=!1;s6=[];JY=-1;H=g.E(Y);for(qH=H.next();!qH.done;qH=H.next())if(qH=qH.value,g.D(qH,WY)){qH=cbg(q,T,g.D(qH,WY),J);if(qH instanceof S){h=qH;break a}qH=qH(y);t.push(qH.Y9);n=[].concat(g.RQ(qH.Xu),g.RQ(n));K=[].concat(g.RQ(qH.MO),g.RQ(K));qH.Xd&&(s6=[qH.Xd].concat(g.RQ(s6)))}else if(g.D(qH,PY)){JY=yE(g.D(qH,PY),T,R);if(JY instanceof m5){h=new S(JY);break a}qH=new wU(p,a);qH=K0I(q,
  3522. JY.layoutId,JY.Ri,T,hC(JY.playerVars,JY.t4,b,N,qH),JY.FU,U,qH,J(y),b_,F.get(JY.Ri.externalVideoId),void 0,x);p++;t.push(qH.Y9);n=[].concat(g.RQ(qH.Xu),g.RQ(n));K=[].concat(g.RQ(qH.MO),g.RQ(K));x2||(l.push(b_),x2=!0);JY=(JY=JY.Ri.adPodSkipTarget)&&JY>0?JY:-1}else if(g.D(qH,o5)){qH=Mon(d,q,T,g.D(qH,o5),U,p,J,b_,JY);if(qH instanceof S){h=qH;break a}qH=qH(y);t.push(qH.Y9);n=[].concat(g.RQ(qH.Xu),g.RQ(n));K=[].concat(g.RQ(qH.MO),g.RQ(K));qH.Xd&&(s6=[qH.Xd].concat(g.RQ(s6)))}else if(g.D(qH,CS)){if(h===
  3523. void 0){h=new S("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.D(qH,CS)});break a}qH=jwf(d,q,T,U,g.D(qH,CS),m,J,h,p,WA(R,"supports_multi_step_on_desktop"));if(qH instanceof S){h=qH;break a}qH=qH(y);t.push(qH.Y9);qH.Xd&&s6.push(qH.Xd);n=[].concat(g.RQ(qH.Xu),g.RQ(n));K=[].concat(g.RQ(qH.MO),g.RQ(K));P=[].concat(g.RQ(qH.hI),g.RQ(P));w=[].concat(g.RQ(qH.YF),g.RQ(w));l=[m].concat(g.RQ(l))}else if(g.D(qH,uV)){qH=ah2(d,q,T,U,g.D(qH,uV),m,J,p);if(qH instanceof
  3524. S){h=qH;break a}qH=qH(y);t.push(qH.Y9);qH.Xd&&s6.push(qH.Xd);K=[].concat(g.RQ(qH.MO),g.RQ(K))}else{h=new S("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}h={iV:t,layoutExitSkipTriggers:n,layoutExitUserInputSubmittedTriggers:P,J1:w,layoutExitMuteTriggers:K,rD:l,HA:s6}}h instanceof S?y=h:(w=y.slotId,a=h.iV,p=h.layoutExitSkipTriggers,t=h.layoutExitMuteTriggers,n=h.layoutExitUserInputSubmittedTriggers,K=h.rD,y=J(y),P=e?e.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",w=e?e.layoutId:
  3525. Cu(q.U.get(),P,w),l={layoutId:w,layoutType:P,nf:"core"},y={layout:{layoutId:w,layoutType:P,GG:new Map,layoutExitNormalTriggers:[new UO(q.G,w)],layoutExitSkipTriggers:p,layoutExitMuteTriggers:t,layoutExitUserInputSubmittedTriggers:n,J1:[],nf:"core",clientMetadata:new St([new Fb(a)].concat(g.RQ(K))),HF:y(l)},HA:h.HA});return y}};
  3526. BE7=function(d,q,T){var Y=[];d=g.E(d);for(var e=d.next();!e.done;e=d.next())if(e=e.value,g.D(e,PY)){e=yE(g.D(e,PY),q,T);if(e instanceof m5)return new S(e);Y.push(e.FU)}return Y};
  3527. L0Y=function(d,q,T,Y,e,U,b,J){if(!C9_(T,J===void 0?!1:J))return new S("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:T});var F=FC(T);if(F<=0)return new S("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:T});var N=new gJ({current:null}),R=$tn(d,q,T,N,Y,U,b);return Gmf(d,Y,U,F,e,function(x,y){var h=x.slotId,H=N6(T);x=b(x);var a,p=(a=rN(q,Y,T.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?a:
  3528. Cu(q.U.get(),"LAYOUT_TYPE_MEDIA_BREAK",h);h={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",nf:"core"};a=R(p,y);var t=l7(a.clientMetadata,"metadata_type_fulfilled_layout");t||Jm("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");H=[new ua(Y),new ts(F),new Ge(H),N];t&&H.push(new Xb(t.layoutType));return{lwv:{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",GG:new Map,layoutExitNormalTriggers:[new UO(q.G,p)],layoutExitSkipTriggers:[new JR(q.G,
  3529. y.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new EO(q.G,y.layoutId)],J1:[],nf:"core",clientMetadata:new St(H),HF:x(h)},TL:a}})};
  3530. kmf=function(d){if(!wmI(d))return!1;var q=g.D(d.adVideoStart,L6);return q?g.D(d.linearAd,PY)&&BY(q)?!0:(Jm("Invalid Sandwich with notify"),!1):!1};
  3531. Pa_=function(d){if(d.linearAds==null)return!1;d=g.D(d.adStart,L6);return d?BY(d)?!0:(Jm("Invalid LASR with notify"),!1):!1};
  3532. W0X=function(d){if(!D3X(d))return!1;d=g.D(d.adStart,L6);return d?BY(d)?!0:(Jm("Invalid LASR with notify"),!1):!1};
  3533. kq=function(d,q,T,Y,e,U,b,J,F,N){this.T=d;this.U=q;this.G=T;this.T2=Y;this.KH=e;this.j=U;this.Yx=b;this.qM=J;this.NU=F;this.loadPolicy=N===void 0?1:N};
  3534. U7=function(d,q,T,Y,e,U,b,J,F,N,R){var x=[];if(q.length===0&&Y.length===0&&T.length===0)return x;q=q.filter(KS);var y=T.filter(kYf),h=Y.filter(KS),H=new Map,a=Czg(q),p=T.some(function(dL){var hE;return(dL==null?void 0:(hE=dL.adSlotMetadata)==null?void 0:hE.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),t=T.some(function(dL){var hE;
  3535. return(dL==null?void 0:(hE=dL.adSlotMetadata)==null?void 0:hE.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),n=T.some(function(dL){var hE;
  3536. return(dL==null?void 0:(hE=dL.adSlotMetadata)==null?void 0:hE.slotType)==="SLOT_TYPE_IN_PLAYER"}),K=T.some(function(dL){var hE,JE;
  3537. return(dL==null?void 0:(hE=dL.adSlotMetadata)==null?void 0:hE.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(dL==null?void 0:(JE=dL.adSlotMetadata)==null?void 0:JE.slotType)==="SLOT_TYPE_ABOVE_FEED"});
  3538. T=T.some(function(dL){var hE;return(dL==null?void 0:(hE=dL.adSlotMetadata)==null?void 0:hE.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"});
  3539. if(p||t||n||K||T)N=mt_(y,q,J,e,a,d.KH.get(),d.loadPolicy,H,d.T2.get(),d.T.get(),n,b,F,N,R),N instanceof S?Jm(N,void 0,void 0,{contentCpn:e}):x.push.apply(x,g.RQ(N));N=g.E(q);for(R=N.next();!R.done;R=N.next())R=R.value,T=CaD(d,H,R,e,U,b,p,J,a,F,y),T instanceof S?Jm(T,void 0,void 0,{renderer:R.renderer,config:R.config.adPlacementConfig,kind:R.config.adPlacementConfig.kind,contentCpn:e,daiEnabled:b}):x.push.apply(x,g.RQ(T));uN7(d.T2.get())||(U=D1N(d,h,e,J,a,H),x.push.apply(x,g.RQ(U)));if(d.j===null||
  3540. b&&!J.qR){var P,w,l;d=J.aN&&q.length===1&&((P=q[0].config)==null?void 0:(w=P.adPlacementConfig)==null?void 0:w.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((l=q[0].renderer)==null?void 0:l.adBreakServiceRenderer);if(!x.length&&!d){var m,b_,x2,JY;Jm("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":q.length,contentCpn:e,"first APR kind":(m=q[0])==null?void 0:(b_=m.config)==null?void 0:(x2=b_.adPlacementConfig)==null?void 0:x2.kind,renderer:(JY=
  3541. q[0])==null?void 0:JY.renderer})}return x}P=Y.filter(KS);x.push.apply(x,g.RQ(X6n(H,P,d.U.get(),d.j,e,p)));if(!x.length){var s6,qH,O6,SD;Jm("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":q.length,contentCpn:e,daiEnabled:b.toString(),"first APR kind":(s6=q[0])==null?void 0:(qH=s6.config)==null?void 0:(O6=qH.adPlacementConfig)==null?void 0:O6.kind,renderer:(SD=q[0])==null?void 0:SD.renderer})}return x};
  3542. D1N=function(d,q,T,Y,e,U){function b(y){return Tn(d.KH.get(),y)}
  3543. var J=[];q=g.E(q);for(var F=q.next();!F.done;F=q.next()){F=F.value;var N=F.renderer,R=N.sandwichedLinearAdRenderer,x=N.linearAdSequenceRenderer;R&&kmf(R)?(Jm("Found AdNotify with SandwichedLinearAdRenderer"),x=g.D(R.adVideoStart,L6),R=g.D(R.linearAd,PY),s7(U,N,F.config.adPlacementConfig.kind),N=void 0,x=nXQ((N=x)==null?void 0:N.layout.layoutId,d.U.get(),d.G.get(),F.config.adPlacementConfig,F.adSlotLoggingData,R,T,Y,b,e,d.loadPolicy,d.T2.get(),d.KH.get()),x instanceof S?Jm(x):J.push.apply(J,g.RQ(x))):
  3544. x&&(!x.adLayoutMetadata&&Pa_(x)||x.adLayoutMetadata&&W0X(x))&&(Jm("Found AdNotify with LinearAdSequenceRenderer"),s7(U,N,F.config.adPlacementConfig.kind),N=void 0,R=Abj((N=g.D(x.adStart,L6))==null?void 0:N.layout.layoutId,d.U.get(),d.G.get(),F.config.adPlacementConfig,F.adSlotLoggingData,x.linearAds,AR(x.adLayoutMetadata)?x.adLayoutMetadata:void 0,T,Y,b,e,d.loadPolicy,d.T2.get()),R instanceof S?Jm(R):J.push.apply(J,g.RQ(R)))}return J};
  3545. CaD=function(d,q,T,Y,e,U,b,J,F,N,R){function x(t){return Tn(d.KH.get(),t)}
  3546. var y=T.renderer,h=T.config.adPlacementConfig,H=h.kind,a=T.adSlotLoggingData,p=J.qR&&H==="AD_PLACEMENT_KIND_START";p=U&&!p;if(y.adsEngagementPanelRenderer!=null)return gN(q,T.elementId,H,y.adsEngagementPanelRenderer.isContentVideoEngagementPanel,y.adsEngagementPanelRenderer.adVideoId,y.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,h,a,function(t,n,K,P){var w=d.G.get(),l=t.slotId,m=y.adsEngagementPanelRenderer;t=Tn(d.KH.get(),t);return P_(w,l,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",
  3547. new rE(m),n,K,m.impressionPings,t,y.adsEngagementPanelRenderer.adLayoutLoggingData,P)}),[];
  3548. if(y.adsEngagementPanelLayoutViewModel)return gN(q,T.elementId,H,y.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,y.adsEngagementPanelLayoutViewModel.adVideoId,y.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,h,a,function(t,n,K,P){var w=d.G.get(),l=t.slotId,m=y.adsEngagementPanelLayoutViewModel;t=Tn(d.KH.get(),t);return W_(w,l,"LAYOUT_TYPE_PANEL",new tb(m),n,K,t,y.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,P)}),[];
  3549. if(y.actionCompanionAdRenderer!=null){if(y.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return T5f(d.U.get(),d.j,d.G.get(),y.actionCompanionAdRenderer,h,a,Y,x);gN(q,T.elementId,H,y.actionCompanionAdRenderer.isContentVideoCompanion,y.actionCompanionAdRenderer.adVideoId,y.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,h,a,function(t,n,K,P){var w=d.G.get(),l=t.slotId,m=y.actionCompanionAdRenderer;t=Tn(d.KH.get(),t);return P_(w,l,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
  3550. new On(m),n,K,m.impressionPings,t,y.actionCompanionAdRenderer.adLayoutLoggingData,P)})}else if(y.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(y.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return YvN(d.U.get(),d.j,d.G.get(),y.topBannerImageTextIconButtonedLayoutViewModel,h,a,Y,x);
  3551. gN(q,T.elementId,H,y.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,y.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,y.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,h,a,function(t,n,K,P){var w=d.G.get(),l=t.slotId,m=y.topBannerImageTextIconButtonedLayoutViewModel;t=Tn(d.KH.get(),t);return W_(w,l,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new n3(m),n,K,t,y.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,P)})}else if(y.imageCompanionAdRenderer)gN(q,
  3552. T.elementId,H,y.imageCompanionAdRenderer.isContentVideoCompanion,y.imageCompanionAdRenderer.adVideoId,y.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,h,a,function(t,n,K,P){var w=d.G.get(),l=t.slotId,m=y.imageCompanionAdRenderer;
  3553. t=Tn(d.KH.get(),t);return P_(w,l,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new L3(m),n,K,m.impressionPings,t,y.imageCompanionAdRenderer.adLayoutLoggingData,P)});
  3554. else if(y.bannerImageLayoutViewModel)gN(q,T.elementId,H,y.bannerImageLayoutViewModel.isContentVideoCompanion,y.bannerImageLayoutViewModel.adVideoId,y.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,h,a,function(t,n,K,P){var w=d.G.get(),l=t.slotId,m=y.bannerImageLayoutViewModel;t=Tn(d.KH.get(),t);return W_(w,l,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new kU(m),n,K,t,y.bannerImageLayoutViewModel.adLayoutLoggingData,P)});
  3555. else if(y.shoppingCompanionCarouselRenderer)gN(q,T.elementId,H,y.shoppingCompanionCarouselRenderer.isContentVideoCompanion,y.shoppingCompanionCarouselRenderer.adVideoId,y.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,h,a,function(t,n,K,P){var w=d.G.get(),l=t.slotId,m=y.shoppingCompanionCarouselRenderer;t=Tn(d.KH.get(),t);return P_(w,l,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new PD(m),n,K,m.impressionPings,t,y.shoppingCompanionCarouselRenderer.adLayoutLoggingData,P)});
  3556. else if(y.adBreakServiceRenderer){if(!dtX(T))return[];if(H==="AD_PLACEMENT_KIND_PAUSE")return VlD(d.U.get(),h,a,T.renderer.adBreakServiceRenderer,Y);if(H!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&H!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return oh7(d.U.get(),h,a,T.renderer.adBreakServiceRenderer,Y,e,U);J.aN||Jm("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:H,adPlacementConfig:h,daiEnabledForContentVideo:String(U),isServedFromLiveInfra:String(J.aN),clientPlaybackNonce:J.clientPlaybackNonce});
  3557. if(H==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!d.Yx)return new S("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!d.NU)return new S("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");d.NU.fg({adPlacementRenderer:T,contentCpn:Y,O6:e});e=d.Yx.get().getCurrentTimeSec(1,!1);return wDH(d.U.get(),T.renderer.adBreakServiceRenderer,h,e,Y,a,U)}if(!d.qM)return new S("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");
  3558. d.qM.fg({adPlacementRenderer:T,contentCpn:Y,O6:e})}else{if(y.clientForecastingAdRenderer)return NEI(d.U.get(),d.G.get(),h,a,y.clientForecastingAdRenderer,Y,e,x);if(y.invideoOverlayAdRenderer)return hr2(d.U.get(),d.G.get(),h,a,y.invideoOverlayAdRenderer,Y,e,x);if(y.instreamAdPlayerOverlayRenderer)return x1D(d.U.get(),d.G.get(),h,a,y.instreamAdPlayerOverlayRenderer,Y,x);if((y.linearAdSequenceRenderer||y.instreamVideoAdRenderer)&&p)return je_(d.U.get(),d.G.get(),T,Y,x,N,!d.T2.get().J.C().N("html5_override_ad_video_length_killswitch"));
  3559. if(y.linearAdSequenceRenderer&&!p){if(b)return[];s7(q,y,H);if(y.linearAdSequenceRenderer.adLayoutMetadata){if(!D3X(y.linearAdSequenceRenderer))return new S("Received invalid LinearAdSequenceRenderer.")}else if(y.linearAdSequenceRenderer.linearAds==null)return new S("Received invalid LinearAdSequenceRenderer.");if(g.D(y.linearAdSequenceRenderer.adStart,L6)){Jm("Found AdNotify in LinearAdSequenceRenderer");T=g.D(y.linearAdSequenceRenderer.adStart,L6);if(!jaX(T))return new S("Invalid AdMessageRenderer.");
  3560. U=y.linearAdSequenceRenderer.linearAds;return pDf(d.T.get(),d.U.get(),d.G.get(),d.KH.get(),h,a,T,AR(y.linearAdSequenceRenderer.adLayoutMetadata)?y.linearAdSequenceRenderer.adLayoutMetadata:void 0,U,Y,e,J,x,F,d.loadPolicy,d.T2.get())}return tog(d.U.get(),d.G.get(),h,a,y.linearAdSequenceRenderer.linearAds,AR(y.linearAdSequenceRenderer.adLayoutMetadata)?y.linearAdSequenceRenderer.adLayoutMetadata:void 0,Y,e,J,x,F,d.loadPolicy,d.T2.get(),R)}if(!y.remoteSlotsRenderer||U){if(y.instreamVideoAdRenderer&&
  3561. !p){if(b)return[];s7(q,y,H);return Gqn(d.U.get(),d.G.get(),h,a,y.instreamVideoAdRenderer,Y,e,J,x,F,d.loadPolicy,d.T2.get(),d.KH.get(),R)}if(y.instreamSurveyAdRenderer)return L0Y(d.U.get(),d.G.get(),y.instreamSurveyAdRenderer,h,a,Y,x,WA(d.T2.get(),"supports_multi_step_on_desktop"));if(y.sandwichedLinearAdRenderer!=null)return wmI(y.sandwichedLinearAdRenderer)?g.D(y.sandwichedLinearAdRenderer.adVideoStart,L6)?(Jm("Found AdNotify in SandwichedLinearAdRenderer"),T=g.D(y.sandwichedLinearAdRenderer.adVideoStart,
  3562. L6),jaX(T)?(U=g.D(y.sandwichedLinearAdRenderer.linearAd,PY))?rV6(T,U,h,d.T.get(),d.U.get(),d.G.get(),d.KH.get(),a,Y,e,J,x,F,d.loadPolicy,d.T2.get()):new S("Missing IVAR from Sandwich"):new S("Invalid AdMessageRenderer.")):tog(d.U.get(),d.G.get(),h,a,[y.sandwichedLinearAdRenderer.adVideoStart,y.sandwichedLinearAdRenderer.linearAd],void 0,Y,e,J,x,F,d.loadPolicy,d.T2.get()):new S("Received invalid SandwichedLinearAdRenderer.");if(y.videoAdTrackingRenderer!=null)return gUI(d.U.get(),d.G.get(),y.videoAdTrackingRenderer,
  3563. h,a,Y,e,J.mT,x)}}return[]};
  3564. C6=function(d,q,T,Y,e,U,b,J){g.W.call(this);var F=this;this.U=d;this.j=q;this.eT=Y;this.Yx=e;this.T2=U;this.Hv=b;this.Gq=J;this.G=null;T.get().addListener(this);this.addOnDisposeCallback(function(){T.JF()||T.get().removeListener(F)});
  3565. Y.get().addListener(this);this.addOnDisposeCallback(function(){Y.JF()||Y.get().removeListener(F)})};
  3566. wN=function(d,q,T){var Y=d.Yx.get().getCurrentTimeSec(1,!1);d.T2.get().J.C().uF()&&cn(d.Hv.get(),"sdai","onopp.1;evt."+T.event+";start."+T.startSecs.toFixed(3)+";d."+T.sS.toFixed(3));eP(d.U.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=d.j.get(),U=q.adPlacementRenderer.renderer.adBreakServiceRenderer,b=q.contentCpn,J=q.adPlacementRenderer.adSlotLoggingData;uv(d.T2.get());var F=d.Hv;var N=e.T2.get();N=g.Yv(N.J.C().experiments,"max_prefetch_window_sec_for_livestream_optimization");
  3567. var R=e.T2.get();var x=g.Yv(R.J.C().experiments,"min_prefetch_offset_sec_for_livestream_optimization");R=T.startSecs*1E3;R={t8:new hx(R,R+T.sS*1E3),b0:!1,cueProcessedMs:Y*1E3};var y=T.startSecs+T.sS;if(Y===0)R.kp=new hx(0,y*1E3);else{x=T.startSecs-x;var h=x-Y;R.kp=h<=0?new hx(x*1E3,y*1E3):new hx(Math.floor(Y+Math.random()*Math.min(h,N))*1E3,y*1E3)}U=bv(e,U,b,R,J,[new N_(T)]);Dw(e.T2.get())&&cn(F.get(),"abrsm","cpi."+T.identifier+";cps."+T.startSecs+";cpd."+T.sS+";cts."+Y+";rbf."+R.kp.start);F.get().J.Nd(T.startSecs-
  3568. Y,R.kp.start/1E3-Y);return[U]})};
  3569. f6=function(d){var q,T=(q=l7(d.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:q.current;if(!T)return null;q=l7(d.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var Y=d.layoutId,e=l7(d.clientMetadata,"metadata_type_content_cpn"),U=l7(d.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),b=l7(d.clientMetadata,"metadata_type_player_overlay_layout_renderer"),J=l7(d.clientMetadata,"metadata_type_player_underlay_renderer"),F=l7(d.clientMetadata,
  3570. "metadata_type_ad_placement_config"),N=l7(d.clientMetadata,"metadata_type_video_length_seconds");var R=ze(d.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?l7(d.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):ze(d.clientMetadata,"metadata_type_layout_enter_ms")&&ze(d.clientMetadata,"metadata_type_layout_exit_ms")?(l7(d.clientMetadata,"metadata_type_layout_exit_ms")-l7(d.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{jP:Y,contentCpn:e,Z2:T,Z3:q,instreamAdPlayerOverlayRenderer:U,
  3571. playerOverlayLayoutRenderer:b,instreamAdPlayerUnderlayRenderer:J,adPlacementConfig:F,videoLengthSeconds:N,lc:R,inPlayerLayoutId:l7(d.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:l7(d.clientMetadata,"metadata_type_linked_in_player_slot_id")}};
  3572. zr1=function(d,q){return fhg(d,q)};
  3573. i3g=function(d,q){q=fhg(d,q);if(!q)return null;var T;q.lc=(T=l7(d.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:T.adBreakRemainingLengthSeconds;return q};
  3574. fhg=function(d,q){var T,Y=(T=l7(d.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:T.current;if(!Y)return null;T=gP_(d,q);return{x7:$PI(d,q),adPlacementConfig:l7(d.clientMetadata,"metadata_type_ad_placement_config"),Wb:T,contentCpn:l7(d.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:l7(d.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:l7(d.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:l7(d.clientMetadata,
  3575. "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,lc:void 0,Z2:Y,jP:d.layoutId,videoLengthSeconds:l7(d.clientMetadata,"metadata_type_video_length_seconds")}};
  3576. zb=function(d,q,T,Y,e,U,b,J,F){g.W.call(this);this.T=d;this.X=q;this.S=T;this.j=Y;this.G=e;this.U=U;this.KH=b;this.T2=J;this.Xw=F;this.B4=!0};
  3577. Ihj=function(d,q,T){return Pzj(d.G.get(),q.contentCpn,q.jP,function(Y){return WPQ(d.U.get(),Y.slotId,T,q.adPlacementConfig,q.jP,Tn(d.KH.get(),Y))})};
  3578. iv=function(d,q,T,Y,e,U,b,J){g.W.call(this);this.U=d;this.G=q;this.j=T;this.T2=Y;this.T=e;this.Xw=U;this.Yx=b;this.yU=J};
  3579. Ix=function(d){g.W.call(this);this.G=d};
  3580. eP=function(d,q,T,Y){d.G().qp(q,Y);T=T();d=d.G();d.JA.o1("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",q,Y,T);q=g.E(T);for(T=q.next();!T.done;T=q.next())a:{Y=d;T=T.value;Y.JA.fq("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",T);Y.JA.fq("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",T);try{var e=Y.G;if(g.nh(T.slotId))throw new S("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(gp(e,T))throw new S("Duplicate registration for slot.",{slotId:T.slotId,slotEntryTriggerType:T.slotEntryTrigger.triggerType},
  3581. "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!e.Rt.Xg.has(T.slotType))throw new S("No fulfillment adapter factory registered for slot of type: "+T.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!e.Rt.kI.has(T.slotType))throw new S("No SlotAdapterFactory registered for slot of type: "+T.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");O5(e,"TRIGGER_CATEGORY_SLOT_ENTRY",T.slotEntryTrigger?[T.slotEntryTrigger]:[]);O5(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",
  3582. T.slotFulfillmentTriggers);O5(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",T.slotExpirationTriggers);var U=Y.G,b=T.slotType+"_"+T.slotPhysicalPosition,J=jh(U,b);if(gp(U,T))throw new S("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");J.set(T.slotId,new YLf(T));U.G.set(b,J)}catch(b_){b_ instanceof S&&b_.b9?(Y.JA.ys("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",b_.b9,T),Jm(b_,T,void 0,void 0,b_.kA)):(Y.JA.ys("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",
  3583. T),Jm(b_,T));break a}gp(Y.G,T).X=!0;try{var F=Y.G,N=gp(F,T),R=T.slotEntryTrigger,x=F.Rt.QP.get(R.triggerType);x&&(x.BR("TRIGGER_CATEGORY_SLOT_ENTRY",R,T,null),N.yv.set(R.triggerId,x));for(var y=g.E(T.slotFulfillmentTriggers),h=y.next();!h.done;h=y.next()){var H=h.value,a=F.Rt.QP.get(H.triggerType);a&&(a.BR("TRIGGER_CATEGORY_SLOT_FULFILLMENT",H,T,null),N.lr.set(H.triggerId,a))}for(var p=g.E(T.slotExpirationTriggers),t=p.next();!t.done;t=p.next()){var n=t.value,K=F.Rt.QP.get(n.triggerType);K&&(K.BR("TRIGGER_CATEGORY_SLOT_EXPIRATION",
  3584. n,T,null),N.K.set(n.triggerId,K))}var P=F.Rt.Xg.get(T.slotType).get().build(F.j,T);N.L=P;var w=F.Rt.kI.get(T.slotType).get().build(F.S,T);w.init();N.U=w}catch(b_){b_ instanceof S&&b_.b9?(Y.JA.ys("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",b_.b9,T),Jm(b_,T,void 0,void 0,b_.kA)):(Y.JA.ys("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",T),Jm(b_,T));Jo(Y,T,!0);break a}Y.JA.fq("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",T);Y.G.Ec(T);for(var l=g.E(Y.U),m=l.next();!m.done;m=
  3585. l.next())m.value.Ec(T);Rj(Y,T)}};
  3586. mo=function(d,q,T,Y,e){g.W.call(this);var U=this;this.U=d;this.j=q;this.l$=T;this.context=e;this.G=new Map;Y.get().addListener(this);this.addOnDisposeCallback(function(){Y.JF()||Y.get().removeListener(U)})};
  3587. iUN=function(d,q){var T=0x8000000000000,Y=0,e=0x8000000000000;var U=g.E(q.slotFulfillmentTriggers);for(var b=U.next();!b.done;b=U.next())if(b=b.value,b instanceof qm){var J=b.G.start;T=Math.min(T,J);Y=Math.max(Y,b.G.end);b.visible&&(e=Math.min(e,J))}else Jm("Found unexpected fulfillment trigger for throttled slot.",q,null,{fulfillmentTrigger:b});U=T;e=e<0x8000000000000&&T<e?e:void 0;T="throttledadcuerange:"+q.slotId;d.G.set(T,q);q=WA(d.context.T2.get(),"use_cue_range_marker_position")?e:void 0;d.l$.get().addCueRange(T,
  3588. U,Y,!1,d,void 0,void 0,void 0,q);Fg(d.context.T2.get())&&(q={},d.context.cf.oN("tcrr",(q.cid=T,q.sm=U,q.em=Y,q)))};
  3589. Si=function(){g.W.apply(this,arguments);this.B4=!0;this.yK=new Map;this.G=new Map};
  3590. lv=function(d,q){d=g.E(d.yK.values());for(var T=d.next();!T.done;T=d.next())if(T.value.layoutId===q)return!0;return!1};
  3591. v_=function(d,q){d=g.E(d.G.values());for(var T=d.next();!T.done;T=d.next()){T=g.E(T.value);for(var Y=T.next();!Y.done;Y=T.next())if(Y=Y.value,Y.layoutId===q)return Y}Jm("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.nh(q)),layoutId:q})};
  3592. m1D=function(){this.G=new Map};
  3593. Snf=function(d,q){this.callback=d;this.slot=q};
  3594. ox=function(){};
  3595. lhI=function(d,q,T){this.callback=d;this.slot=q;this.Yx=T};
  3596. vUX=function(d,q,T){this.callback=d;this.slot=q;this.Yx=T;this.U=!1;this.G=0};
  3597. oUf=function(d,q,T){this.callback=d;this.slot=q;this.Yx=T};
  3598. VE=function(d){this.Yx=d};
  3599. dg=function(d){g.W.call(this);this.hN=d;this.YB=new Map};
  3600. q7=function(d,q){for(var T=[],Y=g.E(d.YB.values()),e=Y.next();!e.done;e=Y.next()){e=e.value;var U=e.trigger;U instanceof EO&&U.triggeringLayoutId===q&&T.push(e)}T.length?ME(d.hN(),T):Jm("Survey is submitted but no registered triggers can be activated.")};
  3601. TD=function(d,q,T){dg.call(this,d);var Y=this;this.T2=T;q.get().addListener(this);this.addOnDisposeCallback(function(){q.JF()||q.get().removeListener(Y)})};
  3602. YC=function(d){g.W.call(this);this.G=d;this.B4=!0;this.YB=new Map;this.S=new Set;this.j=new Set;this.T=new Set;this.X=new Set;this.U=new Set};
  3603. eN=function(d){g.W.call(this);this.G=d;this.YB=new Map};
  3604. UT=function(d,q){for(var T=[],Y=g.E(d.YB.values()),e=Y.next();!e.done;e=Y.next())e=e.value,e.trigger.G===q.layoutId&&T.push(e);T.length&&ME(d.G(),T)};
  3605. bq=function(d,q,T){g.W.call(this);var Y=this;this.G=d;this.context=T;this.YB=new Map;q.get().addListener(this);this.addOnDisposeCallback(function(){q.JF()||q.get().removeListener(Y)})};
  3606. X4=function(d,q,T,Y,e){g.W.call(this);var U=this;this.U=d;this.l$=q;this.Yx=T;this.Xw=Y;this.context=e;this.B4=!0;this.YB=new Map;this.G=new Set;T.get().addListener(this);this.addOnDisposeCallback(function(){T.JF()||T.get().removeListener(U)})};
  3607. Voj=function(d,q,T,Y,e,U,b,J,F,N){if(kx(d.Xw.get(),1).clientPlaybackNonce!==F)throw new S("Cannot register CueRange-based trigger for different content CPN",{trigger:T});d.YB.set(T.triggerId,{dS:new aF(q,T,Y,e),cueRangeId:U});d.l$.get().addCueRange(U,b,J,N,d);Fg(d.context.T2.get())&&(F={},d.context.cf.oN("crr",(F.ca=q,F.tt=T.triggerType,F.st=Y.slotType,F.lt=e==null?void 0:e.layoutType,F.cid=U,F.sm=b,F.em=J,F)))};
  3608. d_n=function(d,q){d=g.E(d.YB.entries());for(var T=d.next();!T.done;T=d.next()){var Y=g.E(T.value);T=Y.next().value;Y=Y.next().value;if(q===Y.cueRangeId)return T}return""};
  3609. JH=function(d,q){g.W.call(this);var T=this;this.T=d;this.U=new Map;this.j=new Map;this.G=null;q.get().addListener(this);this.addOnDisposeCallback(function(){q.JF()||q.get().removeListener(T)});
  3610. var Y;this.G=((Y=q.get().h6)==null?void 0:Y.slotId)||null};
  3611. qHX=function(d,q){var T=[];d=g.E(d.values());for(var Y=d.next();!Y.done;Y=d.next())Y=Y.value,Y.slot.slotId===q&&T.push(Y);return T};
  3612. sT=function(d){g.W.call(this);this.G=d;this.B4=!0;this.YB=new Map};
  3613. gU=function(d,q,T){q=q.layoutId;for(var Y=[],e=g.E(d.YB.values()),U=e.next();!U.done;U=e.next())if(U=U.value,U.trigger instanceof UO){var b;if(b=U.trigger.layoutId===q){b=T;var J=l5D.get(U.category);b=J?J===b:!1}b&&Y.push(U)}Y.length&&ME(d.G(),Y)};
  3614. $C=function(d){g.W.call(this);this.G=d;this.B4=!0;this.YB=new Map};
  3615. gg=function(d,q,T,Y,e,U){g.W.call(this);var b=this;this.X=d;this.eT=q;this.Yx=T;this.Hv=Y;this.qM=U;this.G=null;this.T=!1;this.B4=!0;this.YB=new Map;q.get().addListener(this);this.addOnDisposeCallback(function(){q.JF()||q.get().removeListener(b)});
  3616. e.get().addListener(this);this.addOnDisposeCallback(function(){e.JF()||e.get().removeListener(b)})};
  3617. eoX=function(d){d.G&&(d.T=!0,d.U&&(d.U.stop(),d.U.start()),TJ7(d,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"),cn(d.Hv.get(),"ads_ce","bdc."+YHH(d).length))};
  3618. TJ7=function(d,q){for(var T=[],Y=g.E(d.YB.values()),e=Y.next();!e.done;e=Y.next())e=e.value,e.trigger.triggerType===q&&T.push(e);T.length>0&&ME(d.X(),T)};
  3619. F4=function(d,q,T,Y,e){for(var U=[],b=g.E(d.YB.values()),J=b.next();!J.done;J=b.next()){var F=J=J.value,N=F.trigger;F=F.slot;if(N.triggerType===q){if(N instanceof o0||N instanceof Vj||N instanceof T8){if(e&&N.breakDurationMs!==T)continue;if(!e&&N.breakDurationMs===T)continue;if(Y.has(F.slotId))continue}U.push(J)}}U.length>0&&ME(d.X(),U)};
  3620. U__=function(d,q){q=(q.sS+1)*1E3;var T=void 0;d=g.E(d.YB.values());for(var Y=d.next();!Y.done;Y=d.next()){var e=Y.value;Y=e.trigger;e=e.slot;Y instanceof o0&&Y.breakDurationMs<=q&&(!T||Y.breakDurationMs>T.trigger.breakDurationMs)&&(T={slot:e,trigger:Y})}return T};
  3621. bm1=function(d){d=d.adPlacementRenderer.config.adPlacementConfig;if(!d.prefetchModeConfig||!d.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;d=Number(d.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(d)||d<=0?0:Math.floor(Math.random()*d)};
  3622. X4g=function(d){d=d.adPlacementRenderer.config.adPlacementConfig;if(d.prefetchModeConfig&&d.prefetchModeConfig.cacheFetchRefreshDurationMs&&(d=Number(d.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(d)||d<=0)))return d};
  3623. N7=function(d){d.G=null;d.YB.clear();d.U&&d.U.stop();d.S&&d.S.stop();var q;(q=d.j)==null||q.stop();delete d.j};
  3624. YHH=function(d){var q=[];d=g.E(d.YB.values());for(var T=d.next();!T.done;T=d.next())T=T.value.trigger,T instanceof o0&&q.push(T.breakDurationMs);return q};
  3625. Rm=function(d){g.W.call(this);this.j=d;this.B4=!0;this.YB=new Map;this.G=new Map;this.U=new Map};
  3626. Jsf=function(d,q){var T=[];if(q=d.G.get(q.layoutId)){q=g.E(q);for(var Y=q.next();!Y.done;Y=q.next())(Y=d.U.get(Y.value.triggerId))&&T.push(Y)}return T};
  3627. xC=function(d){g.W.call(this);this.G=d;this.YB=new Map};
  3628. sVg=function(d,q){for(var T=[],Y=g.E(d.YB.values()),e=Y.next();!e.done;e=Y.next())e=e.value,e.trigger instanceof DD&&e.trigger.slotId===q&&T.push(e);T.length>=1&&ME(d.G(),T)};
  3629. $_n=function(d,q){var T={slotId:U0(q,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],nf:"surface",clientMetadata:new St([])},Y=Object,e=Y.assign;q=Cu(q,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",T.slotId);q={layoutId:q,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",GG:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"surface",
  3630. clientMetadata:new St([]),HF:f5_(!1,T.slotId,T.slotType,T.slotPhysicalPosition,T.nf,T.slotEntryTrigger,T.slotFulfillmentTriggers,T.slotExpirationTriggers,q,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(Y,{},d,{r6:!0,slot:T,layout:q})};
  3631. vh7=function(d,q,T,Y){var e=d.kind;Y=Y?!1:!d.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return Y={t8:new hx(-0x8000000000000,-0x8000000000000),b0:Y},T!=null&&(Y.kp=new hx(-0x8000000000000,-0x8000000000000)),Y;case "AD_PLACEMENT_KIND_END":return Y={t8:new hx(0x7ffffffffffff,0x8000000000000),b0:Y},T!=null&&(Y.kp=new hx(Math.max(0,q-T),0x8000000000000)),Y;case "AD_PLACEMENT_KIND_MILLISECONDS":e=d.adTimeOffset;e.offsetStartMilliseconds||Jm("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
  3632. e.offsetEndMilliseconds||Jm("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");d=Number(e.offsetStartMilliseconds);e=Number(e.offsetEndMilliseconds);e===-1&&(e=q);if(Number.isNaN(d)||Number.isNaN(e)||d>e)return new S("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:d,offsetEndMs:e},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",e===q&&d-500<=e);Y={t8:new hx(d,e),b0:Y};if(T!=null){d=Math.max(0,d-T);if(d===e)return Y;Y.kp=new hx(d,e)}return Y;
  3633. default:return new S("AdPlacementKind not supported in convertToRange.",{kind:e,adPlacementConfig:d})}};
  3634. ggX=function(d){if(!d||!d.adPlacements&&!d.adSlots)return!1;for(var q=g.E(d.adPlacements||[]),T=q.next();!T.done;T=q.next())if(T=T.value)if(T=T.adPlacementRenderer,T!=null&&(T.config&&T.config.adPlacementConfig&&T.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;d=g.E(d.adSlots||[]);for(q=d.next();!q.done;q=d.next()){var Y=T=void 0;if(((T=g.D(q.value,ei))==null?void 0:(Y=T.adSlotMetadata)==null?void 0:Y.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1};
  3635. yI=function(d){this.T2=d;this.U=new Map;this.G=new Map;this.j=new Map};
  3636. U0=function(d,q){if(hH(d.T2.get())){var T=d.U.get(q)||0;T++;d.U.set(q,T);return q+"_"+T}return g.RC(16)};
  3637. Cu=function(d,q,T){if(hH(d.T2.get())){var Y=d.G.get(q)||0;Y++;d.G.set(q,Y);return T+"_"+q+"_"+Y}return g.RC(16)};
  3638. p6=function(d,q){if(hH(d.T2.get())){var T=d.j.get(q)||0;T++;d.j.set(q,T);return q+"_"+T}return g.RC(16)};
  3639. F5Y=function(d){var q=[new UH(d.jP),new sH(d.Z2),new ua(d.adPlacementConfig),new xg(d.videoLengthSeconds),new rJ(d.lc)];d.instreamAdPlayerOverlayRenderer&&q.push(new m0(d.instreamAdPlayerOverlayRenderer));d.playerOverlayLayoutRenderer&&q.push(new So(d.playerOverlayLayoutRenderer));d.Z3&&q.push(new zm(d.Z3));return q};
  3640. NJY=function(d,q,T,Y,e,U){d=T.inPlayerLayoutId?T.inPlayerLayoutId:Cu(U,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",d);var b,J,F=T.instreamAdPlayerOverlayRenderer?(b=T.instreamAdPlayerOverlayRenderer)==null?void 0:b.adLayoutLoggingData:(J=T.playerOverlayLayoutRenderer)==null?void 0:J.adLayoutLoggingData;b={layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",nf:q};return{layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",GG:new Map,layoutExitNormalTriggers:[new lu(function(N){return p6(U,
  3641. N)},T.jP)],
  3642. layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:q,clientMetadata:Y,HF:e(b),adLayoutLoggingData:F}};
  3643. HN=function(d,q){var T=this;this.U=d;this.T2=q;this.G=function(Y){return p6(T.U.get(),Y)}};
  3644. WPQ=function(d,q,T,Y,e,U){T=new St([new la(T),new ua(Y)]);q=Cu(d.U.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",q);Y={layoutId:q,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",nf:"core"};return{layoutId:q,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",GG:new Map,layoutExitNormalTriggers:[new lu(function(b){return p6(d.U.get(),b)},e)],
  3645. layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"core",clientMetadata:T,HF:U(Y),adLayoutLoggingData:void 0}};
  3646. H_=function(d,q,T,Y,e){var U=F5Y(Y);return NJY(q,T,Y,new St(U),e,d.U.get())};
  3647. Roj=function(d,q,T,Y,e){var U=F5Y(Y);U.push(new WD(Y.x7));U.push(new C3(Y.Wb));return NJY(q,T,Y,new St(U),e,d.U.get())};
  3648. P_=function(d,q,T,Y,e,U,b,J,F,N){q=Cu(d.U.get(),T,q);var R={layoutId:q,layoutType:T,nf:"core"},x=new Map;b&&x.set("impression",b);b=[new Yb(d.G,e,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];N&&b.push(new Sd(d.G,N,["normal"]));return{layoutId:q,layoutType:T,GG:x,layoutExitNormalTriggers:b,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"core",clientMetadata:new St([Y,new ua(U),new UH(e)]),HF:J(R),adLayoutLoggingData:F}};
  3649. W_=function(d,q,T,Y,e,U,b,J,F){q=Cu(d.U.get(),T,q);var N={layoutId:q,layoutType:T,nf:"core"},R=[new Yb(d.G,e,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];F&&R.push(new Sd(d.G,F,["normal"]));return{layoutId:q,layoutType:T,GG:new Map,layoutExitNormalTriggers:R,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"core",clientMetadata:new St([Y,new ua(U),new UH(e)]),HF:b(N),adLayoutLoggingData:J}};
  3650. O7=function(d,q,T){var Y=[];Y.push(new e5(d.G,T));q&&Y.push(q);return Y};
  3651. Zw=function(d,q,T,Y,e,U,b){var J={layoutId:q,layoutType:T,nf:"core"};return{layoutId:q,layoutType:T,GG:new Map,layoutExitNormalTriggers:b,layoutExitSkipTriggers:[new zu(d.G,q)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"core",clientMetadata:new St([new Gm(Y),new ua(e)]),HF:U(J),adLayoutLoggingData:Y.adLayoutLoggingData}};
  3652. Rx=function(d,q,T,Y,e,U,b,J){var F={layoutId:q,layoutType:U,nf:"core"};return{layoutId:q,layoutType:U,GG:new Map,layoutExitNormalTriggers:[new lu(d.G,T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"core",clientMetadata:new St([new ua(Y)].concat(g.RQ(b))),HF:e(F),adLayoutLoggingData:J}};
  3653. rN=function(d,q,T,Y){if(d.T2.get().pz(q.kind==="AD_PLACEMENT_KIND_START"))if(T===void 0)Jm("Expected SSAP layout ID in renderer",void 0,void 0,{caller:Y});else return T};
  3654. H3Q=function(d,q,T,Y,e,U,b,J,F,N,R,x,y){d=n6(d,q,T,e,U,b,J,F,x,rN(d,T,Y.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),y);q=d.rD;T=new b7(d.KJ);Y=d.layoutExitSkipTriggers;N>0&&(q.push(T),q.push(new f3(N)),Y=[]);q.push(new wE(R));return{Y9:{layoutId:d.layoutId,layoutType:d.layoutType,GG:d.GG,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:d.nf,clientMetadata:new St(q),HF:d.HF,adLayoutLoggingData:d.adLayoutLoggingData},
  3655. Xu:Y,MO:d.layoutExitMuteTriggers,hI:d.layoutExitUserInputSubmittedTriggers,YF:d.J1,Xd:d.Xd}};
  3656. EUj=function(d,q,T,Y,e,U,b,J,F,N){q=n6(d,q,T,Y,U,new Map,b,function(R){return J(R,F)},void 0,rN(d,T,e.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey"));
  3657. d=new EO(d.G,q.KJ);T=new b7(q.KJ);N=new wE(N);return{Y9:{layoutId:q.layoutId,layoutType:q.layoutType,GG:q.GG,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:q.nf,clientMetadata:new St([].concat(g.RQ(q.rD),[T,N])),HF:q.HF,adLayoutLoggingData:q.adLayoutLoggingData},Xu:q.layoutExitSkipTriggers,MO:q.layoutExitMuteTriggers,hI:[].concat(g.RQ(q.layoutExitUserInputSubmittedTriggers),[d]),YF:q.J1,Xd:q.Xd}};
  3658. n6=function(d,q,T,Y,e,U,b,J,F,N,R){q=N!=null?N:Cu(d.U.get(),"LAYOUT_TYPE_MEDIA_BREAK",q);N={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",nf:"adapter"};J=J(q);var x=l7(J.clientMetadata,"metadata_type_fulfilled_layout");x||Jm("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var y=x?x.layoutId:"";T=[new ua(T),new ts(Y),new Ge(e)];x&&T.push(new Xb(x.layoutType));R&&T.push(new c4(R));return{layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",
  3659. GG:U,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new JR(d.G,y)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"adapter",rD:T,HF:b(N),adLayoutLoggingData:F,Xd:J,KJ:y}};
  3660. LPg=function(d,q,T,Y,e,U,b,J,F,N,R){d=x_Q(d,q,"core",T,Y,e,U,b,J,F,N,void 0,R);return{layoutId:d.layoutId,layoutType:d.layoutType,GG:d.GG,layoutExitNormalTriggers:d.layoutExitNormalTriggers,layoutExitSkipTriggers:d.layoutExitSkipTriggers,layoutExitMuteTriggers:d.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:d.layoutExitUserInputSubmittedTriggers,J1:d.J1,nf:d.nf,clientMetadata:new St(d.TJ),HF:d.HF,adLayoutLoggingData:d.adLayoutLoggingData}};
  3661. K0I=function(d,q,T,Y,e,U,b,J,F,N,R,x,y){q=x_Q(d,q,"adapter",T,Y,e,U,b,J,F,R,x,y);Y=q.layoutExitSkipTriggers;e=q.TJ;T.adPodSkipTarget&&T.adPodSkipTarget>0&&(e.push(N),e.push(new f3(T.adPodSkipTarget)),Y=[]);e.push(new wE(J.adPodIndex));T.isCritical&&(Y=[new Sd(d.G,q.layoutId,["error"])].concat(g.RQ(Y)));return{Y9:{layoutId:q.layoutId,layoutType:q.layoutType,GG:q.GG,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:q.nf,
  3662. clientMetadata:new St(e),HF:q.HF,adLayoutLoggingData:q.adLayoutLoggingData},Xu:Y,MO:q.layoutExitMuteTriggers,hI:q.layoutExitUserInputSubmittedTriggers,YF:q.J1}};
  3663. x_Q=function(d,q,T,Y,e,U,b,J,F,N,R,x,y){var h={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA",nf:T};e=[new ua(e),new Dh(F),new ia(Y.externalVideoId),new Iw(J),new Ge({impressionCommands:Y.impressionCommands,abandonCommands:Y.onAbandonCommands,completeCommands:Y.completeCommands,progressCommands:Y.adVideoProgressCommands}),new yq(U),new $g({current:null}),new xg(b)];(U=Y.playerOverlay.instreamAdPlayerOverlayRenderer)&&e.push(new m0(U));(b=Y.playerOverlay.playerOverlayLayoutRenderer)&&e.push(new So(b));
  3664. x&&e.push(new hs(x));(x=Y.playerUnderlay)&&e.push(new la(x));J=U0(d.U.get(),"SLOT_TYPE_IN_PLAYER");x=(x=U?U.elementId:b==null?void 0:b.layoutId)?x:Cu(d.U.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",J);e.push(new b7(x));e.push(new Js(J));e.push(new c4(F.adPodIndex));Y.adNextParams&&e.push(new BD(Y.adNextParams));Y.shrunkenPlayerBytesConfig&&e.push(new VK(Y.shrunkenPlayerBytesConfig));Y.clickthroughEndpoint&&e.push(new K3(Y.clickthroughEndpoint));Y.legacyInfoCardVastExtension&&e.push(new B4(Y.legacyInfoCardVastExtension));
  3665. Y.sodarExtensionData&&e.push(new H4(Y.sodarExtensionData));R&&e.push(new nm(R));e.push(new P4(R5(Y.pings)));F=xu(Y.pings);if(y){a:{y=g.E(y);for(R=y.next();!R.done;R=y.next())if(R=R.value,R.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(U=g.D(R.fulfillmentContent.fulfilledLayout,mu))&&(U=g.D(U.renderingContent,iV))&&U.associatedPlayerBytesLayoutId===q){y=R;break a}y=void 0}y&&e.push(new vD(y))}return{layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA",GG:F,layoutExitNormalTriggers:[new UO(d.G,q)],layoutExitSkipTriggers:Y.skipOffsetMilliseconds?
  3666. [new JR(d.G,x)]:[],layoutExitMuteTriggers:[new JR(d.G,x)],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:T,TJ:e,HF:N(h),adLayoutLoggingData:Y.adLayoutLoggingData}};
  3667. AV7=function(d,q,T,Y,e,U,b,J,F){Y.every(function(R){return i7(R,[],["LAYOUT_TYPE_MEDIA"])})||Jm("Unexpect subLayout type for DAI composite layout");
  3668. q=Cu(d.U.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",q);var N={layoutId:q,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",nf:"core"};return{layoutId:q,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",GG:new Map,layoutExitNormalTriggers:[new vn(d.G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J1:[],nf:"core",clientMetadata:new St([new Qq(T),new M_(J),new Fb(Y),new ua(e),new As(U),new EH({}),new Cm(F)]),HF:b(N)}};
  3669. M2j=function(d){return d!=null};
  3670. QI=function(d,q,T){var Y=this;this.U=d;this.j=q;this.T2=T;this.G=function(e){return p6(Y.U.get(),e)}};
  3671. wDH=function(d,q,T,Y,e,U,b){if(!T.prefetchModeConfig)return new S("AdPlacementConfig for Live Prefetch is missing prefetch_config");T=T.prefetchModeConfig;Y*=1E3;var J=[];if(!T.breakLengthMs)return new S("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var F=g.E(T.breakLengthMs),N=F.next();!N.done;N=F.next())if(N=N.value,Number(N)>0){var R=Y+Number(T.startTimeOffsetMs),x=R+Number(T.cacheFetchSmearingDurationMs);N={t8:new hx(x,x+Number(N)),b0:!1,kp:new hx(Math.floor(R+Math.random()*
  3672. Number(T.cacheFetchSmearingDurationMs)),x),cueProcessedMs:Y?Y:R};R=[];R.push(new fm({}));x=[];x.push(new XY(d.G));x.push(new ghg(d.G));b&&R.push(new EH({}));J.push(bv(d,q,e,N,U,R,x))}return J};
  3673. bv=function(d,q,T,Y,e,U,b){U=U===void 0?[]:U;var J=U0(d.U.get(),"SLOT_TYPE_AD_BREAK_REQUEST");b||(b=[],Y.kp&&Y.kp.start!==Y.t8.start&&b.push(new qm(d.G,T,new hx(Y.kp.start,Y.t8.start),!1)),b.push(new qm(d.G,T,new hx(Y.t8.start,Y.t8.end),Y.b0)));Y={getAdBreakUrl:q.getAdBreakUrl,vW:Y.t8.start,RW:Y.t8.end,cueProcessedMs:Y.cueProcessedMs};q=new FY(d.G,J);U=[new Z3(Y)].concat(g.RQ(U));return{slotId:J,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:q,slotFulfillmentTriggers:b,
  3674. slotExpirationTriggers:[new bV(d.G,T),new $b(d.G,J),new gG(d.G,J)],nf:"core",clientMetadata:new St(U),adSlotLoggingData:e}};
  3675. ho7=function(d,q,T){var Y=[];T=g.E(T);for(var e=T.next();!e.done;e=T.next())Y.push(ys_(d,q,e.value));return Y};
  3676. ys_=function(d,q,T){return T.triggeringSlotId!=null&&T.triggeringSlotId===d?T.clone(q):T};
  3677. seX=function(d,q,T,Y,e){return Hmj(d,q,T,Y,e)};
  3678. QwH=function(d,q,T,Y){var e=U0(d.U.get(),"SLOT_TYPE_IN_PLAYER");return Hmj(d,e,q,T,Y)};
  3679. Hmj=function(d,q,T,Y,e){var U=new ml(d.G,T),b=[new sO(d.G,q)];d=[new $b(d.G,q),new bV(d.G,Y)];return{slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:U,slotFulfillmentTriggers:b,slotExpirationTriggers:d,nf:"core",clientMetadata:new St([new pm(e({slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,nf:"core",slotEntryTrigger:U,slotFulfillmentTriggers:b,slotExpirationTriggers:d},T))]),adSlotLoggingData:void 0}};
  3680. Gmf=function(d,q,T,Y,e,U){var b=U0(d.U.get(),"SLOT_TYPE_PLAYER_BYTES"),J=U0(d.U.get(),"SLOT_TYPE_IN_PLAYER"),F=Cu(d.U.get(),"LAYOUT_TYPE_SURVEY",J);Y=M7(d,q,T,Y);var N=[new sO(d.G,b)];T=[new $b(d.G,b),new bV(d.G,T),new zu(d.G,F)];if(Y instanceof S)return Y;J=U({slotId:b,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,nf:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:N,slotExpirationTriggers:T},{slotId:J,layoutId:F});U=J.lwv;J=J.TL;return[{slotId:b,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,
  3681. slotEntryTrigger:B_(d,q,b,Y),slotFulfillmentTriggers:K6(d,q,b,N),slotExpirationTriggers:T,nf:"core",clientMetadata:new St([new pm(U),new u7(Gb(q)),new wJ({Px:d.Px(q)})]),adSlotLoggingData:e},J]};
  3682. Gb=function(d){return d.kind==="AD_PLACEMENT_KIND_START"};
  3683. kqn=function(d,q,T,Y,e){e=e?e:U0(d.U.get(),"SLOT_TYPE_IN_PLAYER");T=new ml(d.G,T);var U=[new sO(d.G,e)];d=[new bV(d.G,q),new $b(d.G,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:T,slotFulfillmentTriggers:U,slotExpirationTriggers:d,nf:"core",clientMetadata:new St([new pm(Y({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,nf:"core",slotEntryTrigger:T,slotFulfillmentTriggers:U,slotExpirationTriggers:d}))])}};
  3684. Pzj=function(d,q,T,Y){var e=U0(d.U.get(),"SLOT_TYPE_PLAYER_UNDERLAY");T=new ml(d.G,T);var U=[new sO(d.G,e)];d=[new bV(d.G,q),new $b(d.G,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:T,slotFulfillmentTriggers:U,slotExpirationTriggers:d,nf:"core",clientMetadata:new St([new pm(Y({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,nf:"core",slotEntryTrigger:T,slotFulfillmentTriggers:U,slotExpirationTriggers:d}))])}};
  3685. OoQ=function(d,q,T,Y,e,U,b){var J=U0(d.U.get(),"SLOT_TYPE_IN_PLAYER"),F=Cu(d.U.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",J);Y=QV1(d,Y,U,b,F);if(Y instanceof S)return Y;b=[new sO(d.G,J)];e=[new bV(d.G,U),new sO(d.G,e),new RF(d.G,e)];T=Tn(T,{slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,nf:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:b,slotExpirationTriggers:e});d=d.j.get();U={layoutId:F,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",nf:"core"};q={layoutId:F,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",
  3686. GG:new Map,layoutExitNormalTriggers:[new Qa_(d.G,F,q.durationMs)],layoutExitSkipTriggers:[new cU7(d.G,F,q.durationMs)],J1:[new Ml1(d.G,F)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],nf:"core",clientMetadata:new St([new Km(q)]),HF:T(U)};return{slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,nf:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:b,slotExpirationTriggers:e,clientMetadata:new St([new pm(q)])}};
  3687. yb6=function(d,q,T,Y,e,U){q=M7(d,q,T,Y);if(q instanceof S)return q;var b=q instanceof qm?new yU7(d.G,T,q.G):null;Y=U0(d.U.get(),"SLOT_TYPE_IN_PLAYER");var J=[new sO(d.G,Y)];d=[new bV(d.G,T),new $b(d.G,Y)];U=U({slotId:Y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,nf:"core",slotEntryTrigger:q,slotFulfillmentTriggers:J,slotExpirationTriggers:d},b);return U instanceof m5?new S(U):{slotId:Y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:q,slotFulfillmentTriggers:J,slotExpirationTriggers:d,
  3688. nf:"core",clientMetadata:new St([new pm(U)]),adSlotLoggingData:e}};
  3689. RrY=function(d,q,T,Y){var e=U0(d.U.get(),"SLOT_TYPE_IN_PLAYER"),U=new fd(d.G,q),b=[new Nm(d.G,e)];d=[new bV(d.G,q),new $b(d.G,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:U,slotFulfillmentTriggers:b,slotExpirationTriggers:d,nf:"core",clientMetadata:new St([new pm(Y({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,nf:"core",slotEntryTrigger:U,slotFulfillmentTriggers:b,slotExpirationTriggers:d}))]),adSlotLoggingData:T}};
  3690. xtn=function(d,q,T,Y){var e=U0(d.U.get(),"SLOT_TYPE_IN_PLAYER");T=new ml(d.G,T);var U=[new sO(d.G,e)],b=[new $b(d.G,e),new bV(d.G,q)];U={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,nf:"core",slotEntryTrigger:T,slotFulfillmentTriggers:U,slotExpirationTriggers:b};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:T,slotFulfillmentTriggers:[new sO(d.G,e)],slotExpirationTriggers:[new bV(d.G,q),new $b(d.G,e)],nf:"core",clientMetadata:new St([new pm(Y(U))])}};
  3691. FPg=function(d,q,T,Y,e){var U=U0(d.U.get(),"SLOT_TYPE_IN_PLAYER");T=new I0(d.G,Y,T);Y=[new sO(d.G,U)];d=[new bV(d.G,q)];return{slotId:U,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:T,slotFulfillmentTriggers:Y,slotExpirationTriggers:d,nf:"core",clientMetadata:new St([new pm(e({slotId:U,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,nf:"core",slotEntryTrigger:T,slotFulfillmentTriggers:Y,slotExpirationTriggers:d}))])}};
  3692. bo1=function(d,q,T,Y,e,U){var b=U0(d.U.get(),q);return cN(d,b,q,new ml(d.G,Y),[new bV(d.G,T),new $b(d.G,b),new Sd(d.G,Y,["error"])],e,U)};
  3693. Utn=function(d,q,T,Y,e,U,b){var J=U0(d.U.get(),q);return cN(d,J,q,new Sd(d.G,e,["normal"]),[new bV(d.G,T),new $b(d.G,J),new Sd(d.G,Y,["error"])],U,b)};
  3694. qvQ=function(d,q,T,Y,e){var U=U0(d.U.get(),q);return cN(d,U,q,new fd(d.G,T),[new bV(d.G,T),new $b(d.G,U)],Y,e)};
  3695. $1Q=function(d,q,T,Y,e){T=T?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var U=U0(d.U.get(),T);q=new fd(d.G,q);var b=[new sO(d.G,U)];d=[new $b(d.G,U)];return{slotId:U,slotType:T,slotPhysicalPosition:1,slotEntryTrigger:q,slotFulfillmentTriggers:b,slotExpirationTriggers:d,nf:"core",clientMetadata:new St([new pm(e({slotId:U,slotType:T,slotPhysicalPosition:1,nf:"core",slotEntryTrigger:q,slotFulfillmentTriggers:b,slotExpirationTriggers:d}))]),adSlotLoggingData:Y}};
  3696. cVI=function(d,q,T,Y){var e=U0(d.U.get(),"SLOT_TYPE_PLAYER_BYTES"),U=new dG(d.G),b=[new Nm(d.G,e)];d=[new bV(d.G,q)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:U,slotFulfillmentTriggers:b,slotExpirationTriggers:d,nf:"core",clientMetadata:new St([new pm(Y({slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,nf:"core",slotEntryTrigger:U,slotFulfillmentTriggers:b,slotExpirationTriggers:d})),new EH({})]),adSlotLoggingData:T}};
  3697. nU6=function(d,q){return uN7(d.T2.get())?new Sd(d.G,q,["normal","error","skipped"]):new Sd(d.G,q,["normal"])};
  3698. B5j=function(d,q,T,Y,e){q=nU6(d,q);d=tC(d,q,T);e=e({slotId:d.slotId,slotType:d.slotType,slotPhysicalPosition:d.slotPhysicalPosition,slotEntryTrigger:d.slotEntryTrigger,slotFulfillmentTriggers:d.slotFulfillmentTriggers,slotExpirationTriggers:d.slotExpirationTriggers,nf:d.nf});return e instanceof S?e:{kX:Object.assign({},d,{clientMetadata:new St([new pm(e.layout)]),adSlotLoggingData:Y}),HA:e.HA}};
  3699. KP6=function(d,q,T,Y,e,U,b){T=rbH(d,q,T,Y);if(T instanceof S)return T;b=b({slotId:T.slotId,slotType:T.slotType,slotPhysicalPosition:T.slotPhysicalPosition,slotEntryTrigger:T.slotEntryTrigger,slotFulfillmentTriggers:T.slotFulfillmentTriggers,slotExpirationTriggers:T.slotExpirationTriggers,nf:T.nf});if(b instanceof S)return b;Y=[new u7(Gb(q)),new pm(b.layout),new wJ({Px:d.Px(q)})];U&&Y.push(new Lm({}));return{kX:{slotId:T.slotId,slotType:T.slotType,slotPhysicalPosition:T.slotPhysicalPosition,slotEntryTrigger:B_(d,
  3700. q,T.slotId,T.slotEntryTrigger),slotFulfillmentTriggers:K6(d,q,T.slotId,T.slotFulfillmentTriggers),slotExpirationTriggers:T.slotExpirationTriggers,nf:T.nf,clientMetadata:new St(Y),adSlotLoggingData:e},HA:b.HA}};
  3701. B_=function(d,q,T,Y){return d.T2.get().pz(Gb(q))?new DD(d.G,T):Y};
  3702. K6=function(d,q,T,Y){return d.T2.get().pz(Gb(q))?[new Nm(d.G,T)]:Y};
  3703. tC=function(d,q,T){var Y=U0(d.U.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new sO(d.G,Y)];d=[new $b(d.G,Y),new bV(d.G,T)];return{slotId:Y,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:q,slotFulfillmentTriggers:e,slotExpirationTriggers:d,nf:"core"}};
  3704. rbH=function(d,q,T,Y){q=M7(d,q,T,Y);return q instanceof S?q:tC(d,q,T)};
  3705. F0n=function(d,q,T,Y,e,U){var b=U0(d.U.get(),"SLOT_TYPE_FORECASTING");q=M7(d,q,T,Y);if(q instanceof S)return q;Y=[new sO(d.G,b)];d=[new $b(d.G,b),new bV(d.G,T)];return{slotId:b,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:q,slotFulfillmentTriggers:Y,slotExpirationTriggers:d,nf:"core",clientMetadata:new St([new pm(U({slotId:b,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,nf:"core",slotEntryTrigger:q,slotFulfillmentTriggers:Y,slotExpirationTriggers:d}))]),adSlotLoggingData:e}};
  3706. MtX=function(d,q,T,Y,e){var U=!q.hideCueRangeMarker;switch(q.kind){case "AD_PLACEMENT_KIND_START":return new fd(d.G,T);case "AD_PLACEMENT_KIND_MILLISECONDS":return d=vh7(q,Y),d instanceof S?d:e(d.t8,U);case "AD_PLACEMENT_KIND_END":return new iu(d.G,T,U);default:return new S("Cannot construct entry trigger",{kind:q.kind})}};
  3707. QV1=function(d,q,T,Y,e){return MtX(d,q,T,Y,function(U,b){return new x37(d.G,T,U,b,e)})};
  3708. M7=function(d,q,T,Y){return MtX(d,q,T,Y,function(e,U){return new qm(d.G,T,e,U)})};
  3709. cN=function(d,q,T,Y,e,U,b){d=[new Nm(d.G,q)];return{slotId:q,slotType:T,slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:d,slotExpirationTriggers:e,nf:"core",clientMetadata:new St([new pm(b({slotId:q,slotType:T,slotPhysicalPosition:1,nf:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:d,slotExpirationTriggers:e}))]),adSlotLoggingData:U}};
  3710. ET=function(d,q){g.W.call(this);this.T2=d;this.G=q;this.eventCount=0};
  3711. jN=function(d,q,T,Y){ET.call(this,d,q);this.T2=d;this.Xw=T;this.context=Y};
  3712. am=function(){this.G=new Map};
  3713. AH=function(d){this.G="pending";this.U=[];this.j=[];try{d(this.T.bind(this),this.reject.bind(this))}catch(q){this.reject(q)}};
  3714. csI=function(){var d,q;return{EH:new AH(function(T,Y){d=T;q=Y}),
  3715. resolve:d,reject:q}};
  3716. OT=function(d){return p0(d)?d:Z4(d)?new AH(function(q,T){d.then(q,T)}):new AH(function(q){q(d)})};
  3717. n0=function(d){return new AH(function(q,T){T(d)})};
  3718. rg=function(d){try{return OT(d())}catch(q){return n0(q)}};
  3719. BN=function(d,q,T){var Y=csI(),e=Y.EH,U=Y.resolve,b=Y.reject;d.U.push(function(J){if(q)try{var F=q(J);U(F)}catch(N){b(N)}else U(J)});
  3720. d.j.push(function(J){if(T)try{var F=T(J);U(F)}catch(N){b(N)}else b(J)});
  3721. tH(d);return e};
  3722. K0=function(d,q){return BN(d,void 0,q)};
  3723. Eg7=function(d,q){BN(d,function(T){return BN(OT(q()),function(){return T})},function(T){return BN(OT(q()),function(){return n0(T)})})};
  3724. tH=function(d){if(d.G==="fulfilled"){var q=d.U;d.U=[];d.j=[];q=g.E(q);for(var T=q.next();!T.done;T=q.next())T=T.value,T(d.result)}else if(d.G==="rejected")for(q=d.j,d.U=[],d.j=[],q=g.E(q),T=q.next();!T.done;T=q.next())T=T.value,T(d.error)};
  3725. GD=function(d,q){return jVX(q.call(d))};
  3726. L0=function(d){return function T(){return Wg(T,function(Y){if(Y.U==1)return g.aQ(Y,2),g.B(Y,{EH:OT(d)},4);if(Y.U!=2)return Y.return(Y.G);g.KN(Y);return g.LN(Y,0)})}()};
  3727. jVX=function(d){return rg(function(){return kC(d,d.next())})};
  3728. kC=function(d,q){return q.done?OT(q.value):K0(BN(q.value.EH,function(T){return kC(d,d.next(T))}),function(T){return kC(d,d.throw(T))})};
  3729. PN=function(d,q){if(d.length===0)return OT(NaN);var T=csI(),Y=T.EH,e=T.resolve,U=d.length;d=g.E(d.entries());var b=d.next();for(T={};!b.done;T={xa:void 0},b=d.next()){var J=g.E(b.value);b=J.next().value;J=J.next().value;T.xa=b;Eg7(J,function(F){return function(){Y.G==="pending"&&(a36(q)&&q(F.xa)&&Y.G==="pending"?e(F.xa):(--U,U===0&&e(NaN)))}}(T))}return Y};
  3730. WN=function(d){return d.map(function(q){return OT(q)})};
  3731. uq=function(d){var q=d.hours||0;var T=d.minutes||0,Y=d.seconds||0;q=Y+T*60+q*3600+(d.days||0)*86400+(d.weeks||0)*604800+(d.months||0)*2629800+(d.years||0)*31557600;q<=0?q={hours:0,minutes:0,seconds:0}:(d=q,q=Math.floor(d/3600),d%=3600,T=Math.floor(d/60),Y=Math.floor(d%60),q={hours:q,minutes:T,seconds:Y});var e=q.hours===void 0?0:q.hours;T=q.minutes===void 0?0:q.minutes;d=q.seconds===void 0?0:q.seconds;Y=e>0;q=[];if(Y){e=(new Intl.NumberFormat("en-u-nu-latn")).format(e);var U=["fr"],b="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(" ");
  3732. 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(C0)?e.replace(",","\u00a0"):U.includes(C0)?e.replace(",","\u202f"):b.includes(C0)?e.replace(",","."):e;q.push(e)}Y=Y===void 0?!1:Y;T=(["af","be","lt"].includes(C0)||Y)&&T<10?AsD().format(T):(new Intl.NumberFormat("en-u-nu-latn")).format(T);q.push(T);T=AsD().format(d);q.push(T);T=":";"da fi id si sr sr-Latn".split(" ").includes(C0)&&(T=".");return q.join(T)};
  3733. AsD=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
  3734. p4Y=function(d,q){var T,Y;d=((T=d.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(Y=T.videoAuthorizationToken)==null?void 0:Y.credentialTransferTokens)||[];for(T=0;T<d.length;++T)if(d[T].scope===q)return d[T].token||void 0};
  3735. D4=function(d){if(d&&d.simpleText)return d.simpleText;var q="";if(d&&d.runs)for(var T=0;T<d.runs.length;T++)d.runs[T].text&&(q+=d.runs[T].text);return q};
  3736. wg=function(d){return d?function(){try{return d.apply(this,arguments)}catch(q){g.Zz(q)}}:d};
  3737. f0=function(){this.j=new Set;this.U=new Set;this.T=new Map;this.client=void 0;this.csn=null};
  3738. zD=function(){f0.instance||(f0.instance=new f0);return f0.instance};
  3739. iq=function(){};
  3740. Im=function(){this.L=[];this.B=[];this.G=[];this.UD=[];this.S=[];this.K=[];this.j=new Map;this.X=new Map;this.U=new Set;this.yv=new Map};
  3741. mx=function(){Im.instance||(Im.instance=new Im);return Im.instance};
  3742. SN=function(d,q,T,Y){Y=Y===void 0?{}:Y;g.iF(function(){Zm1.includes(q)||(g.OL(new g.CW("createClientScreen() called with a non-page VE",q)),q=83769);Y.isHistoryNavigation||(d.UD=[],d.G.push({rootVe:q,key:Y.key||""}));d.L=[];d.B=[];Y.m2?Om2(d,q,T,Y):ng1(d,q,T,Y)})()};
  3743. rs6=function(d,q,T){T=T===void 0?0:T;g.iF(function(){q.then(function(Y){d.U.has(T)&&d.T&&d.T();var e=g.Q0(T),U=g.Ha(T);if(e&&U){var b={automatedLogEventSource:3},J;(Y==null?0:(J=Y.response)==null?0:J.trackingParams)&&g.un(d.client,e,U,g.y0(Y.response.trackingParams),!1,b);var F;(Y==null?0:(F=Y.playerResponse)==null?0:F.trackingParams)&&g.un(d.client,e,U,g.y0(Y.playerResponse.trackingParams),!1,b)}})})()};
  3744. vN=function(d){var q=mx();g.iF(function(){var T=g.y0(d);lq(q,T);return T})()};
  3745. tt6=function(d){var q={veType:253246};return g.iF(function(){if(!q.veType)return qw(new g.CW("Error: Trying to graft a client VE without a veType.")),null;if(q.visibilityTypes){var T=q.visibilityTypes.reduce(function(Y,e){return Y|e});
  3746. T={visibility:{types:String(T)}}}T=EAQ(q.veType,q.visualElement,q.elementIndex,q.clientYouTubeData,void 0,T);return lq(d,T)?T:null})()};
  3747. lq=function(d,q,T,Y){Y=Y===void 0?0:Y;return g.iF(function(){if(d.U.has(Y))return d.L.push([q,T]),!0;var e=g.Q0(Y),U=T||g.Ha(Y);if(e&&U){if(g.RD("combine_ve_grafts")){var b=d.j.get(U.toString());b?b.push(q):(d.X.set(U.toString(),U),d.j.set(U.toString(),[q]));d.lr||(d.lr=g.zy(0,function(){om(d,e)},1200))}else g.un(d.client,e,U,q);
  3748. return!0}return!1})()};
  3749. BJN=function(d,q,T,Y){Y=Y===void 0?0:Y;var e=g.Q0(Y);q=q||g.Ha(Y);e&&q&&(d=d.client,Y=L1({cttAuthInfo:Mh(e)||void 0},e),T={csn:e,ve:q.getAsJson(),clientData:T},e==="UNDEFINED_CSN"?f1("visualElementStateChanged",Y,T):d?R$("visualElementStateChanged",T,d,Y):g.Ta("visualElementStateChanged",T,Y))};
  3750. Om2=function(d,q,T,Y){Y=Y===void 0?{}:Y;d.U.add(Y.layer||0);d.T=function(){ng1(d,q,T,Y);var b=g.Ha(Y.layer);if(b){for(var J=g.E(d.L),F=J.next();!F.done;F=J.next())F=F.value,lq(d,F[0],F[1]||b,Y.layer);b=g.E(d.B);for(J=b.next();!J.done;J=b.next())J=J.value,BJN(d,J[0],J[1])}};
  3751. T||g.Q0(Y.layer)||d.T();if(Y.m2)for(var e=g.E(Y.m2),U=e.next();!U.done;U=e.next())rs6(d,U.value,Y.layer);else g.Zz(Error("Delayed screen needs a data promise."))};
  3752. ng1=function(d,q,T,Y){Y=Y===void 0?{}:Y;var e=void 0;Y.layer||(Y.layer=0);e=Y.parentLayer!==void 0?Y.parentLayer:Y.layer;var U=g.Q0(e);e=g.Ha(e);var b=T||e,J;b&&(Y.parentCsn!==void 0?J={clientScreenNonce:Y.parentCsn,visualElement:b}:U&&U!=="UNDEFINED_CSN"&&(J={clientScreenNonce:U,visualElement:b}));var F,N=g.Cs("EVENT_ID");U==="UNDEFINED_CSN"&&N&&(F={servletData:{serializedServletEventId:N}});g.RD("combine_ve_grafts")&&U&&om(d,U);g.RD("no_client_ve_attach_unless_shown")&&b&&U&&wi(b,U);try{var R=Xuf(d.client,
  3753. q,J,Y.J7,Y.cttAuthInfo,F,Y.implicitGestureType,Y.loggingExpectations)}catch(h){dsf(h,{Dk:q,rootVe:e,Jd2:T,OoU:U,dsv:J,J7:Y.J7});g.Zz(h);return}B77(R,q,Y.layer,Y.cttAuthInfo);U&&U!=="UNDEFINED_CSN"&&e&&!nA_(U)&&sYD(d.client,U,e,!0);d.G[d.G.length-1]&&!d.G[d.G.length-1].csn&&(d.G[d.G.length-1].csn=R||"");g.ZO({clientScreenNonce:R});iq.instance||(iq.instance=new iq);g.iF(zD().G).bind(zD())();var x=g.Ha(Y.layer);U&&U!=="UNDEFINED_CSN"&&x&&(g.RD("web_mark_root_visible")||g.RD("music_web_mark_root_visible"))&&
  3754. g.va(R,x);d.U.delete(Y.layer||0);d.T=void 0;var y;(y=d.yv.get(Y.layer))==null||y.forEach(function(h,H){h?lq(d,H,h,Y.layer):x&&lq(d,H,x,Y.layer)});
  3755. K5D(d)};
  3756. K5D=function(d){for(var q=0;q<d.S.length;q++){var T=d.S[q];try{T()}catch(Y){g.Zz(Y)}}for(q=d.S.length=0;q<d.K.length;q++){T=d.K[q];try{T()}catch(Y){g.Zz(Y)}}};
  3757. om=function(d,q){if(q===void 0)for(var T=ZZI(),Y=0;Y<T.length;Y++)T[Y]!==void 0&&om(d,T[Y]);else d.j.forEach(function(e,U){(U=d.X.get(U))&&g.C1(d.client,q,U,e)}),d.j.clear(),d.X.clear(),d.lr=void 0};
  3758. VI=function(){};
  3759. Ge2=function(){VI.instance||(VI.instance=new VI);return VI.instance};
  3760. L5j=function(d,q,T){var Y=new XMLHttpRequest;if(T==null?0:T.VZ)Y.onreadystatechange=function(U){T.VZ(Y,U)};
  3761. var e;Y.open((e=q.method)!=null?e:"GET",d,!0);Y.responseType="text";Y.withCredentials=!0;if(q.headers)for(d=g.E(Object.entries(q.headers)),q=d.next();!q.done;q=d.next())e=g.E(q.value),q=e.next().value,e=e.next().value,Y.setRequestHeader(q,e);return Y};
  3762. dj=function(){};
  3763. ke_=function(){var d=navigator;return new Promise(function(q,T){var Y;(Y=d.webkitTemporaryStorage)!=null&&Y.queryUsageAndQuota?d.webkitTemporaryStorage.queryUsageAndQuota(function(e,U){q({usage:e,quota:U})},function(e){T(e)}):T(Error("webkitTemporaryStorage is not supported."))})};
  3764. dO=function(d,q){var T=this;this.handleError=d;this.G=q;this.U=!1;self.document===void 0||self.addEventListener("beforeunload",function(){T.U=!0});
  3765. this.j=Math.random()<=.2};
  3766. W5X=function(d,q){dj.getInstance().estimate().then(function(T){T=Object.assign({},q,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:P76(T==null?void 0:T.usage),deviceStorageQuotaMbytes:P76(T==null?void 0:T.quota)});d.G("idbQuotaExceeded",T)})};
  3767. P76=function(d){return typeof d==="undefined"?"-1":String(Math.ceil(d/1048576))};
  3768. ubY=function(){g.KW();return g.Gy(0,192)?g.Gy(0,190):!(g.RD("web_watch_cinematics_disabled_by_default")||g.RD("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&C7n())};
  3769. w4I=function(d,q){D_6(d.program,q.UU2)&&(tU("bg_i",void 0,"player_att"),g.qe.initialize(d,function(){tU("bg_l",void 0,"player_att");TG=(0,g.cj)()},q.cspNonce,q.XM))};
  3770. f36=function(d){d=d===void 0?{}:d;return g.qe.invoke(d)};
  3771. D_6=function(d,q){if(d){var T;g.qe.isLoading()?T=!1:T=!TG||(0,g.cj)()-TG>q;d=T}else d=!1;return d};
  3772. g.Ye=function(d,q){return d.XM+"timedtext_video?ref=player&v="+q.videoId};
  3773. g.zoD=function(d){var q=this;this.videoData=d;d={};this.G=(d.c1a=function(){var T=[];if(g.qe.isInitialized()){var Y="";q.videoData&&q.videoData.q2&&(Y=q.videoData.q2+("&r1b="+q.videoData.clientPlaybackNonce));var e={};Y=(e.atr_challenge=Y,e);tU("bg_v",void 0,"player_att");(Y=f36(Y))?(tU("bg_s",void 0,"player_att"),T.push("r1a="+Y)):(tU("bg_e",void 0,"player_att"),T.push("r1c=2"))}else tU("bg_e",void 0,"player_att"),window.trayride||window.botguard?T.push("r1c=1"):T.push("r1c=4");T.push("r1d="+g.qe.getState());
  3774. return T.join("&")},d.c6a=function(T){return"r6a="+(Number(T.c)^l9())},d.c6b=function(T){return"r6b="+(Number(T.c)^Number(g.Cs("CATSTAT",0)))},d);
  3775. this.videoData&&this.videoData.q2?this.Rb=lF(this.videoData.q2):this.Rb={}};
  3776. g.imI=function(d){if(d.videoData&&d.videoData.q2){for(var q=[d.videoData.q2],T=g.E(Object.keys(d.G)),Y=T.next();!Y.done;Y=T.next())Y=Y.value,d.Rb[Y]&&d.G[Y]&&(Y=d.G[Y](d.Rb))&&q.push(Y);return q.join("&")}return null};
  3777. g.eK=function(d,q){w4I(d,{UU2:g.Yv(q.experiments,"bg_vm_reinit_threshold"),cspNonce:q.cspNonce,XM:q.XM||""})};
  3778. I3I=function(){var d=XMLHttpRequest.prototype.fetch;return!!d&&d.length===3};
  3779. m_Y=function(d){d=d[X[0]](X[14]);Uo[X[6]](d,62);Uo[X[60]](d,1);Uo[X[46]](d,60);return d[X[34]](X[14])};
  3780. vg6=function(d,q){mP(d,2,q.zd,bt,3);mP(d,3,q.innertubeRequest,SHH,3);iz(d,4,q.onesieUstreamerConfig);iz(d,9,q.vO);mP(d,10,q.Ti,XL,3);mP(d,15,q.reloadPlaybackParams,l32,3)};
  3781. VtH=function(d,q){mP(d,1,q.formatId,JF,3);fo(d,2,q.startTimeMs);fo(d,3,q.durationMs);fo(d,4,q.QK);fo(d,5,q.wA);mP(d,9,q.Siw,og2,3);mP(d,11,q.RoZ,so,1);mP(d,12,q.FV,so,1)};
  3782. dE2=function(d,q){Ie(d,1,q.videoId);fo(d,2,q.lmt)};
  3783. og2=function(d,q){if(q.hJ)for(var T=0;T<q.hJ.length;T++)mP(d,1,q.hJ[T],dE2,3)};
  3784. JF=function(d,q){fo(d,1,q.itag);fo(d,2,q.lmt);Ie(d,3,q.xtags)};
  3785. $e=function(d){return{itag:j2(d,1),lmt:j2(d,2),xtags:po(d,3)}};
  3786. so=function(d,q){fo(d,1,q.startTicks);fo(d,2,q.Ou);fo(d,3,q.timescale)};
  3787. q5X=function(d){return{startTicks:j2(d,1),Ou:j2(d,2),timescale:j2(d,3)}};
  3788. Tp7=function(d,q){fo(d,1,q.defaultPolicy);fo(d,2,q.smooth);fo(d,3,q.visibility);fo(d,4,q.T7);fo(d,5,q.performance);fo(d,6,q.speed)};
  3789. eOI=function(d,q){if(q.authorizedFormats)for(var T=0;T<q.authorizedFormats.length;T++)mP(d,1,q.authorizedFormats[T],Y5g,1);iz(d,2,q.sabrLicenseConstraint)};
  3790. Y5g=function(d,q){fo(d,1,q.trackType);zq(d,2,q.isHdr)};
  3791. bt=function(d,q){fo(d,13,q.timeSinceLastManualFormatSelectionMs);var T=q.lastManualDirection;T!==void 0&&(w5(d,112),w5(d,T<<1^T>>31));fo(d,16,q.qP);fo(d,17,q.detailedNetworkType);fo(d,18,q.t7);fo(d,19,q.MR);fo(d,21,q.ijU);fo(d,23,q.Gy);fo(d,28,q.cg);fo(d,29,q.dpv);fo(d,34,q.visibility);T=q.playbackRate;if(T!==void 0){var Y=new ArrayBuffer(4);(new Float32Array(Y))[0]=T;T=(new Uint32Array(Y))[0];if(T!==void 0)for(w5(d,285),tV(d,4),Y=0;Y<4;)d.view.setUint8(d.pos,T&255),T>>=8,d.pos+=1,Y+=1}fo(d,36,q.wq);
  3792. mP(d,38,q.mediaCapabilities,UE6,3);fo(d,39,q.uWO);fo(d,40,q.Kk);fo(d,44,q.playerState);zq(d,46,q.c8);fo(d,48,q.ph);fo(d,50,q.lX);fo(d,51,q.Ju);fo(d,54,q.OZ);if(q.m_)for(T=0;T<q.m_.length;T++)fo(d,55,q.m_[T]);zq(d,56,q.yFv);fo(d,57,q.H8);zq(d,58,q.Mf);fo(d,59,q.hq);fo(d,60,q.SI);zq(d,61,q.isPrefetch);fo(d,62,q.yF);iz(d,63,q.sabrLicenseConstraint);fo(d,64,q.Ez);fo(d,66,q.Sl);fo(d,67,q.QWg);fo(d,68,q.CV);Ie(d,69,q.audioTrackId);zq(d,71,q.jd);mP(d,72,q.Pvg,Tp7,1);fo(d,73,q.mw);fo(d,74,q.Hh);fo(d,75,q.un);
  3793. fo(d,76,q.oLU);mP(d,79,q.k$,eOI,3)};
  3794. UE6=function(d,q){if(q.videoFormatCapabilities)for(var T=0;T<q.videoFormatCapabilities.length;T++)mP(d,1,q.videoFormatCapabilities[T],buf,1);if(q.audioFormatCapabilities)for(T=0;T<q.audioFormatCapabilities.length;T++)mP(d,2,q.audioFormatCapabilities[T],XAn,1);mP(d,4,q.perPlaybackAttributes,JoX,3);fo(d,5,q.hdrModeBitmask)};
  3795. buf=function(d,q){fo(d,1,q.videoCodec);fo(d,3,q.maxHeight);fo(d,4,q.maxWidth);fo(d,11,q.maxFramerate);fo(d,12,q.maxBitrateBps);zq(d,15,q.is10BitSupported)};
  3796. XAn=function(d,q){fo(d,1,q.audioCodec);fo(d,2,q.numChannels);fo(d,3,q.maxBitrateBps);fo(d,6,q.spatialCapabilityBitmask)};
  3797. JoX=function(d,q){if(q.itagDenylist)for(var T=0;T<q.itagDenylist.length;T++)fo(d,1,q.itagDenylist[T])};
  3798. XL=function(d,q){mP(d,1,q.clientInfo,sjj,3);iz(d,2,q.pD);iz(d,3,q.playbackCookie);iz(d,4,q.vO);if(q.zD)for(var T=0;T<q.zD.length;T++)mP(d,5,q.zD[T],$EN,3);if(q.B6)for(T=0;T<q.B6.length;T++)fo(d,6,q.B6[T]);Ie(d,7,q.wAk);mP(d,8,q.UJ,gv6,3)};
  3799. FX2=function(d,q){fo(d,1,q.VP5);fo(d,2,q.McU)};
  3800. Npf=function(d,q){var T=q.code;T!==void 0&&(w5(d,8),w5(d,T<<1^T>>31));Ie(d,2,q.message)};
  3801. ROX=function(d,q){fo(d,1,q.clientState);mP(d,2,q.tcF,FX2,1)};
  3802. gv6=function(d,q){iz(d,1,q.SSw);mP(d,2,q.m3D,Npf,3);mP(d,3,q.coldStartInfo,ROX,3)};
  3803. $EN=function(d,q){fo(d,1,q.type);iz(d,2,q.value)};
  3804. sjj=function(d,q){Ie(d,1,q.hl);Ie(d,12,q.deviceMake);Ie(d,13,q.deviceModel);fo(d,16,q.clientName);Ie(d,17,q.clientVersion);Ie(d,18,q.osName);Ie(d,19,q.osVersion)};
  3805. xE6=function(d,q){Ie(d,1,q.name);Ie(d,2,q.value)};
  3806. gj=function(d,q){Ie(d,1,q.url);if(q.FY)for(var T=0;T<q.FY.length;T++)mP(d,2,q.FY[T],xE6,3);iz(d,3,q.postBody);zq(d,4,q.KMD);zq(d,6,q.sC)};
  3807. SHH=function(d,q){iz(d,2,q.jr);iz(d,5,q.encryptedClientKey);iz(d,6,q.iv);iz(d,7,q.D_);zq(d,10,q.nP5);zq(d,13,q.G7);zq(d,14,q.Fl);iz(d,16,q.Dp2);zq(d,17,q.Kfg)};
  3808. yoN=function(d){return{XI:j2(d,1),httpStatus:j2(d,2),body:AV(d,4)}};
  3809. l32=function(d,q){Ie(d,1,q.token)};
  3810. hON=function(d){return{token:po(d,1)}};
  3811. Hu7=function(d){return{fW:j2(d,1),oPv:j2(d,2)}};
  3812. cog=function(d,q){mP(d,1,q.zd,bt,3);if(q.rb)for(var T=0;T<q.rb.length;T++)mP(d,2,q.rb[T],JF,3);if(q.wz)for(T=0;T<q.wz.length;T++)mP(d,3,q.wz[T],VtH,3);iz(d,5,q.videoPlaybackUstreamerConfig);if(q.At)for(T=0;T<q.At.length;T++)mP(d,6,q.At[T],Qjg,3);if(q.g0)for(T=0;T<q.g0.length;T++)mP(d,16,q.g0[T],JF,3);if(q.Bj)for(T=0;T<q.Bj.length;T++)mP(d,17,q.Bj[T],JF,3);if(q.Wj)for(T=0;T<q.Wj.length;T++)mP(d,18,q.Wj[T],JF,3);mP(d,19,q.Ti,XL,3);mP(d,21,q.Gs,FL,3);fo(d,22,q.m4);fo(d,23,q.Xv);if(q.SJ)for(T=0;T<q.SJ.length;T++)mP(d,
  3813. 24,q.SJ[T],FL,3);if(q.wy)for(T=0;T<q.wy.length;T++)mP(d,1E3,q.wy[T],MhQ,3)};
  3814. Qjg=function(d,q){mP(d,1,q.formatId,JF,3);fo(d,2,q.g4);fo(d,3,q.sequenceNumber);mP(d,4,q.Ss,so,1);fo(d,5,q.OR);fo(d,6,q.Wk)};
  3815. FL=function(d,q){if(q.cJ)for(var T=0;T<q.cJ.length;T++)Ie(d,1,q.cJ[T]);iz(d,2,q.KU);Ie(d,3,q.aI);fo(d,4,q.zo);fo(d,5,q.Ac);Ie(d,6,q.gM);Ie(d,7,q.cuepointId);fo(d,8,q.D3)};
  3816. MhQ=function(d,q){if(q.rb)for(var T=0;T<q.rb.length;T++)mP(d,1,q.rb[T],JF,3);if(q.wz)for(T=0;T<q.wz.length;T++)mP(d,2,q.wz[T],VtH,3);Ie(d,3,q.clipId)};
  3817. g.Ne=function(d,q){mP(d,1,q.zd,bt,3);iz(d,3,q.videoPlaybackUstreamerConfig);mP(d,5,q.Ti,XL,3);mP(d,6,q.Gs,FL,3)};
  3818. ap_=function(d,q){Ie(d,1,q.cpn);fo(d,2,q.sequenceNumber);Ie(d,3,q.serializedWatchEndpointLoggingContext);if(q.decoderInfo)for(var T=0;T<q.decoderInfo.length;T++)mP(d,6,q.decoderInfo[T],EvQ,3);Ie(d,9,q.playerResponseCpn);fo(d,10,q.transitionStitchType);fo(d,12,q.timestampOffsetMsecs);fo(d,15,q.remoteControlMode);if(q.remoteConnectedDevices)for(T=0;T<q.remoteConnectedDevices.length;T++)mP(d,16,q.remoteConnectedDevices[T],jj_,3);iz(d,17,q.serializedHouseBrandPlayerServiceLoggingContext)};
  3819. EvQ=function(d,q){fo(d,1,q.elapsedTimeMs);Ie(d,3,q.videoDecoderName)};
  3820. jj_=function(d,q){fo(d,1,q.deviceInterface);Ie(d,2,q.deviceVersion);zq(d,3,q.isSleeping)};
  3821. pAN=function(d){return{iC:ZS(d,1,AoN),trackType:j2(d,2),P1:j2(d,3)}};
  3822. AoN=function(d){return{type:j2(d,1),event:j2(d,2),RfU:Id2(d,3),AK:Id2(d,4),FP:po(d,5),identifier:po(d,6),QK:j2(d,9)}};
  3823. ZuN=function(d){return{first:j2(d,1),SZ:j2(d,2)}};
  3824. OuI=function(d){return{bitrate:j2(d,6),width:j2(d,7),height:j2(d,8),fps:j2(d,25),averageBitrate:j2(d,31),audioSampleRate:j2(d,45),audioChannels:j2(d,46)}};
  3825. Rg=function(d){return{itagDenylist:Ov(d,1)}};
  3826. thn=function(d){return{Jmr:j2(d,1),itag:po(d,3),xV:ZS(d,4,nv2),lmt:j2(d,5),rWZ:j2(d,7),xtags:po(d,15),UkO:ZS(d,23,roI),Sg:ZS(d,34,Rg)}};
  3827. nv2=function(d){return{iv:AV(d,5),hQ:ae(d,7)}};
  3828. BpN=function(d){return{P8:Ov(d,2),videoId:po(d,3),W_:j2(d,4)}};
  3829. roI=function(d){return{videoId:po(d,2)}};
  3830. KXg=function(d){return{F5:j2(d,3),lB:j2(d,4),Ok:j2(d,5),x32:ae(d,8),nHr:j2(d,10),vY:j2(d,12),XX:j2(d,13),QC:j2(d,14),Mw:j2(d,15),BH:j2(d,16)}};
  3831. Gn6=function(d){return{targetAudioReadaheadMs:j2(d,1),targetVideoReadaheadMs:j2(d,2),backoffTimeMs:j2(d,4),playbackCookie:AV(d,7),videoId:po(d,8)}};
  3832. LXI=function(d){return{minBandwidthBytesPerSec:j2(d,1),minReadaheadMs:j2(d,2)}};
  3833. knI=function(d){return{startMinReadaheadPolicy:no(d,1,LXI),resumeMinReadaheadPolicy:no(d,2,LXI)}};
  3834. PG_=function(d){return{label:po(d,1),text:po(d,2)}};
  3835. WX1=function(d){return{videoId:po(d,1),formatId:ZS(d,2,$e),debugInfo:no(d,3,PG_)}};
  3836. CG7=function(d){return{PL:no(d,1,WX1)}};
  3837. uX7=function(d){return{nT:j2(d,1),y3:j2(d,2),minReadaheadMs:j2(d,3)}};
  3838. DE_=function(d){return{Bn:j2(d,1),items:no(d,2,uX7),XQ:j2(d,3)}};
  3839. wAH=function(d){return{token:po(d,1),videoId:po(d,2)}};
  3840. fpY=function(d){return{d9:j2(d,1)}};
  3841. zO6=function(d){return{Ym:po(d,1),action:j2(d,2),Hw:ZS(d,3,fpY)}};
  3842. xe=function(d){return{HT:j2(d,1),uW:j2(d,2),seekSource:j2(d,3)}};
  3843. IpQ=function(d){return{tEr:no(d,1,iu7),yvZ:po(d,2)}};
  3844. mE6=function(d){return{vTv:po(d,1),XWv:j2(d,2),f8U:j2(d,3),w9v:j2(d,4),l8f:j2(d,5),qvU:j2(d,6)}};
  3845. S52=function(d){return{iwZ:j2(d,1)}};
  3846. iu7=function(d){return{clipId:po(d,1),s9U:ZS(d,2,mE6),Yvf:ZS(d,3,S52)}};
  3847. lp2=function(d){return{type:j2(d,1),scope:j2(d,2),value:AV(d,3),sendByDefault:ae(d,4),writePolicy:j2(d,5)}};
  3848. ovN=function(d){vvY=2592E3*(d||1)};
  3849. yR=function(d){d=d===void 0?vvY:d;if(d>0&&!(vH7()>(0,g.cj)()-d*1E3))return 0;d=g.Zs("yt-player-quality");if(typeof d==="string"){if(d=g.ZB[d],d>0)return d}else if(d instanceof Object)return d.quality;return 0};
  3850. hF=function(){var d=g.Zs("yt-player-proxima-pref");return d==null?null:d};
  3851. VhD=function(){var d=g.Zs("yt-player-quality");if(d instanceof Object&&d.quality&&d.previousQuality){if(d.quality>d.previousQuality)return 1;if(d.quality<d.previousQuality)return-1}return 0};
  3852. do7=function(){var d={values:{},OQ:{}};try{var q=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);d.values=q.values;d.halfLives=q.halfLives}catch(T){}return d};
  3853. HI=function(){return g.Zs("yt-player-performance-cap")||{}};
  3854. QR=function(){var d;return(d=g.Zs("yt-player-performance-cap-active-set"))!=null?d:[]};
  3855. q07=function(d){(d===void 0?0:d)?(d=QR().filter(function(q){return q.startsWith("1")}),g.pW("yt-player-performance-cap-active-set",d,2592E3)):g.pW("yt-player-performance-cap-active-set",[],2592E3)};
  3856. TXn=function(d){g.pW("yt-player-watch-later-pending",d)};
  3857. Y0D=function(){return!!g.Zs("yt-player-headers-readable")};
  3858. elf=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(d){return 0}};
  3859. g.Me=function(){var d=g.Zs("yt-player-caption-language-preferences");return d?d:[]};
  3860. cI=function(){var d=g.Zs("yt-player-user-settings"),q=new Map;if(d){d=g.E(Object.entries(d));for(var T=d.next();!T.done;T=d.next()){var Y=g.E(T.value);T=Y.next().value;Y=Y.next().value;q.set(T,Y)}}return q};
  3861. UoH=function(){var d;return(d=g.Zs("yt-player-voice-boost"))!=null?d:void 0};
  3862. bwQ=function(){var d;return(d=g.Zs("yt-player-audio-quality-setting"))!=null?d:2};
  3863. jK=function(){try{var d=window.navigator;if(d.getAutoplayPolicy&&typeof d.getAutoplayPolicy==="function"){var q=document.getElementsByClassName(g.Eo.ytw);var T=q.length>0&&q[0]?d.getAutoplayPolicy(q[0]):d.getAutoplayPolicy("mediaelement");if(Xp1[T])return Xp1[T]}}catch(Y){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"};
  3864. ag=function(d){return d.yH||d.k9||d.mutedAutoplay};
  3865. J8f=function(d,q){return ag(d)?q!==1&&q!==2&&q!==0?"AUTOPLAY_STATUS_UNAVAILABLE":d.I1?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"};
  3866. s5D=function(d,q,T){var Y=q.C();d.thirdParty||(d.thirdParty={});Y.ancestorOrigins&&(d.thirdParty.embeddedPlayerContext=Object.assign({},d.thirdParty.embeddedPlayerContext,{ancestorOrigins:Y.ancestorOrigins}));Y.N("embeds_enable_autoplay_and_visibility_signals")&&(Y.U5!=null&&(d.thirdParty.embeddedPlayerContext=Object.assign({},d.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(Y.U5)})),Y.j8&&(d.thirdParty.embeddedPlayerContext=Object.assign({},d.thirdParty.embeddedPlayerContext,{visibilityFractionSource:Y.j8})),
  3867. d.thirdParty.embeddedPlayerContext=Object.assign({},d.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:jK(),autoplayIntended:ag(q),autoplayStatus:J8f(q,T)}))};
  3868. $oN=function(d){var q=[];d=g.E(d.split(","));for(var T=d.next();!T.done;T=d.next()){var Y=T.value;Y&&((T=Y.startsWith("!"))&&(Y=Y.substring(1)),Y=Y.split("-"),Y.length<3||q.push({kE:Y[0],platform:Y[1],deviceVersion:Y[2],ye:T}))}return q};
  3869. NX1=function(d){return $oN(d).map(function(q){return{deviceInterface:guQ[Fan[q.kE]]||0,deviceVersion:q.deviceVersion||"",isSleeping:q.ye}})};
  3870. g.AF=function(d,q){this.id=d;this.DQ=q;this.captionTracks=[];this.j=this.T=null;this.xtags="";this.S=!1;this.G=null;this.U="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";d=this.DQ.id.split(".");d.length>1&&(this.S=d[1]==="2")};
  3871. pY=function(d,q,T,Y,e){this.U=d;this.G=q;this.j=T;this.reason=Y;this.Vv=e===void 0?0:e};
  3872. g.ZW=function(d,q,T,Y){return new pY(g.ZB[d]||0,g.ZB[q]||0,T,Y)};
  3873. nY=function(d){if(Oo&&d.Vv)return!1;var q=g.ZB.auto;return d.U===q&&d.G===q};
  3874. tF=function(d){return rj[d.G||d.U]||"auto"};
  3875. RlY=function(d,q){q=g.ZB[q];return d.U<=q&&(!d.G||d.G>=q)};
  3876. BI=function(d){return"["+d.U+"-"+d.G+", override: "+(d.j+", reason: "+d.reason+"]")};
  3877. KY=function(d,q,T){this.videoInfos=d;this.G=q;this.audioTracks=[];if(this.G){d=new Set;T==null||T({ainfolen:this.G.length});q=g.E(this.G);for(var Y=q.next();!Y.done;Y=q.next())if(Y=Y.value,!Y.DQ||d.has(Y.DQ.id)){var e=void 0,U=void 0,b=void 0;(b=T)==null||b({atkerr:!!Y.DQ,itag:Y.itag,xtag:Y.G,lang:((e=Y.DQ)==null?void 0:e.name)||"",langid:((U=Y.DQ)==null?void 0:U.id)||""})}else e=new g.AF(Y.id,Y.DQ),d.add(Y.DQ.id),this.audioTracks.push(e);T==null||T({atklen:this.audioTracks.length})}};
  3878. GG=function(){g.W.apply(this,arguments);this.G=null};
  3879. Hw7=function(d,q,T,Y,e,U,b){if(d.G)return d.G;var J={},F=new Set,N={};if(LY(Y)){for(var R in Y.G)Y.G.hasOwnProperty(R)&&(d=Y.G[R],N[d.info.Cf]=[d.info]);return N}R=xoj(q,Y,J);U&&e({aftsrt:ke(R)});for(var x={},y=g.E(Object.keys(R)),h=y.next();!h.done;h=y.next()){h=h.value;for(var H=g.E(R[h]),a=H.next();!a.done;a=H.next()){a=a.value;var p=a.itag,t=void 0,n=h+"_"+(((t=a.video)==null?void 0:t.fps)||0);x.hasOwnProperty(n)?x[n]===!0?N[h].push(a):J[p]=x[n]:(t=PI(q,a,T,Y.isLive,F),t!==!0?(b.add(h),J[p]=t,
  3880. t==="disablevp9hfr"&&(x[n]="disablevp9hfr")):(N[h]=N[h]||[],N[h].push(a),x[n]=!0))}}U&&e({bfflt:ke(N)});for(var K in N)N.hasOwnProperty(K)&&(Y=K,N[Y]&&N[Y][0].eh()&&(N[Y]=N[Y],N[Y]=y86(q,N[Y],J),N[Y]=hlY(N[Y],J)));U&&Object.keys(J).length>0&&e({rjr:RI(J)});q=g.E(F.values());for(Y=q.next();!Y.done;Y=q.next())(Y=T.T.get(Y.value))&&--Y.bM;U&&e({aftflt:ke(N)});d.G=g.VN(N,function(P){return!!P.length});
  3881. return d.G};
  3882. MP6=function(d,q,T,Y,e,U,b,J){J=J===void 0?!1:J;if(q.LC&&b&&b.length>1&&!(q.hq>0||q.B)){for(var F=q.U||!!e,N=F&&q.vF?U:void 0,R=xoj(q,Y),x=[],y=[],h={},H=0;H<b.length;H++){var a=b[H],p=Y.j.get(a);if(p&&p.info){var t=p.info;p=t.Cf;if(PI(q,t,T,Y.isLive)){a=t.eh()?x:y;t=g.E(R[p]);for(var n=t.next();!n.done;n=t.next()){n=n.value;var K=void 0,P=p+"_"+(((K=n.video)==null?void 0:K.fps)||0);h.hasOwnProperty(P)?h[P]===!0&&a.push(n):PI(q,n,T,Y.isLive)&&(a.push(n),h[P]=!0)}}else F&&U({opfu:a})}}if(x.length&&
  3883. y.length)return F&&U({opfm:x[0].itag+","+y[0].itag}),pZ(new KY(x,y,N))}return Q5I(d,q,T,Y,e,U,J)};
  3884. Q5I=function(d,q,T,Y,e,U,b){function J(P){return!!x[P]}
  3885. var F=q.U||!!e,N=F&&q.vF?U:void 0,R=new Set,x=Hw7(d,q,T,Y,U,F,R);WI(Y)&&(x=c8j(T,x,e,F,U,q),F&&U({enflt:ke(x)}));q.Bv=EuN(x,q);if(LY(Y))return U=g.QN(Object.values(x),function(P){return!!P.length&&!!P[0].audio}),F=g.QN(Object.values(x),function(P){return!!P.length&&!!P[0].video}),U&&F||Ad(),pZ(new KY(F,U,N));
  3886. e=j5H(q);d=x.a;var y=!1;q.xx&&e[0]!=="a"&&abj(d)&&(e.unshift("a"),y=!0);F&&(U({audioPrefOrder:e.join("_")}),U({preferHighQualityAudio:q.xx}),U({forcedAacForHqa:y}));d=[];if(q.Ln){e=g.Zl(e,J);y=new Set;for(var h=g.E(e),H=h.next();!H.done;H=h.next()){var a=new Set;H=g.E(x[H.value]);for(var p=H.next();!p.done;p=H.next()){p=p.value;var t=void 0,n=(t=p.DQ)==null?void 0:t.id;n&&(y.has(n)?a.has(n)&&d.push(p):(a.add(n),y.add(n),d.push(p)))}}if(d.length===0){if(e.length===0)return F&&U({noaudio:1}),Ad();d=
  3887. x[e[0]]}}else{d=g.QN(e,J);if(!d)return F&&U({noaudio:1}),Ad();d=x[d]}x["9"]&&x.h&&Y.aN&&!q.aU&&(F&&U({dltvp9:1}),delete x["9"]);if(b){F&&U({bfsflt:ke(x),bfsflta:CY(T)});A8D(T,R);F&&U({bfsfltb:CY(T)});for(var K in x)if(x.hasOwnProperty(K)&&(b=K,!(b==="f"||q.rO===0&&ppj.has(b))))for(R=g.E(x[b]),e=R.next();!e.done;e=R.next())e=e.value,q.gk?Zw7(T,b,e):OwI(T,b,e);F&&U({aftsflt:CY(T)})}b=x["1h"]?"1h":"1";T=x["9h"]?"9h":"9";e=x[b];y=x[T];e&&e.length&&(q.G.highestAv1Resolution=e[e.length-1].video.qualityOrdinal);
  3888. y&&y.length&&(q.G.highestVp9Resolution=y[y.length-1].video.qualityOrdinal);K=[];R=[];if(q.V5&&e)K=e,R=[b],U({forceAv1:b});else if(q.B&&!q.Mf)for(R=nuX(Y)?x["1h"]||x["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],F&&U({newhybpref:R.join(".")}),e=g.E(R),y=e.next();!y.done;y=e.next())K=K.concat(x[y.value]).filter(function(P){return P});
  3889. else q.hq>0&&y&&e&&(R=[b,T],K=e.concat(y).filter(function(P){return P}));
  3890. if(K.length&&!q.Mf){ut(K,R);if(F){F=[];q=g.E(K);for(Y=q.next();!Y.done;Y=q.next())F.push(Y.value.itag);U({hbdfmt:F.join(".")})}return pZ(new KY(K,d,N))}K=r8N(q);K=g.QN(K,J);if(!K){if(x[b])return U=x[b],ut(U),pZ(new KY(U,d,N));F&&U({novideo:1});return Ad()}q.pC&&(K==="1"||K==="1h")&&x[T]&&(b=DW(x[K]),R=DW(x[T]),R>b?K=T:R===b&&tPD(x[T])&&(K=T));K==="9"&&x.h&&DW(x.h)>DW(x["9"])&&(K="h");q.wO&&Y.isLive&&K==="("&&x.H&&DW(x["("])<1440&&(K="H");F&&U({vfmly:wj(K)});q=x[K];if(!q.length)return F&&U({novfmly:wj(K)}),
  3891. Ad();ut(q);return pZ(new KY(q,d,N))};
  3892. EuN=function(d,q){var T=!(!d.m&&!d.M),Y=!(!d.mac3&&!d.MAC3),e=!(!d.meac3&&!d.MEAC3);d=!(!d.i&&!d.I);q.wk=d;return T||Y||e||d};
  3893. tPD=function(d){d=g.E(d);for(var q=d.next();!q.done;q=d.next())if(q=q.value,q.itag&&BXN.has(q.itag))return!0;return!1};
  3894. abj=function(d){d=g.E(d);for(var q=d.next();!q.done;q=d.next())if(q.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1};
  3895. wj=function(d){switch(d){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return d}};
  3896. ke=function(d){var q=[],T;for(T in d)if(d.hasOwnProperty(T)){var Y=T;q.push(wj(Y));Y=g.E(d[Y]);for(var e=Y.next();!e.done;e=Y.next())q.push(e.value.itag)}return q.join(".")};
  3897. c8j=function(d,q,T,Y,e,U){var b={},J={};g.os(q,function(F,N){F=F.filter(function(R){var x=R.itag;if(!R.ac)return J[x]="noenc",!1;if(U.Qp&&R.Cf==="(h"&&U.kx)return J[x]="lichdr",!1;if(!d.S&&R.Cf==="1e")return J[x]="noav1enc",!1;if(R.Cf==="("||R.Cf==="(h"){if(d.j&&T&&T.flavor==="widevine"){var y=R.mimeType+"; experimental=allowed";(y=!!R.ac[T.flavor]&&!!T.G[y])||(J[x]=R.ac[T.flavor]?"unspt":"noflv");return y}if(!fY(d,zG.CRYPTOBLOCKFORMAT)&&!d.z2||d.yv)return J[x]=d.yv?"disvp":"vpsub",!1}return T&&R.ac[T.flavor]&&
  3898. T.G[R.mimeType]?!0:(J[x]=T?R.ac[T.flavor]?"unspt":"noflv":"nosys",!1)});
  3899. F.length&&(b[N]=F)});
  3900. Y&&Object.entries(J).length&&e({rjr:RI(J)});return b};
  3901. hlY=function(d,q){var T=Hz(d,function(Y,e){return e.video.fps>32?Math.min(Y,e.video.width):Y},Infinity);
  3902. T<Infinity&&(d=d.filter(function(Y){if(Y.video.fps>32||Y.video.width<T)return!0;q[Y.itag]="hfrfirst";return!1}));
  3903. ub()&&(d=d.filter(function(Y){if(Y.itag!=="299")return!0;q[Y.itag]="ps3hfr1080";return!1}));
  3904. return d};
  3905. y86=function(d,q,T){return q=q.filter(function(Y){if(Y.video.qualityOrdinal<=d.ev)return!0;T[Y.itag]="maxquality";return!1})};
  3906. xoj=function(d,q,T){var Y={},e;for(e in q.G)if(q.G.hasOwnProperty(e)){var U=q.G[e].info;if(d.L&&U.video&&U.video.qualityOrdinal<d.L)T&&(T[U.itag]="min"+d.L);else{var b=U.Cf;Y[b]=Y[b]||[];Y[b].push(U)}}d=g.E(Object.keys(Y));for(q=d.next();!q.done;q=d.next())ut(Y[q.value]);return Y};
  3907. DW=function(d){return Hz(d,function(q,T){return Math.max(q,T.video.qualityOrdinal)},0)};
  3908. PI=function(d,q,T,Y,e){e=e===void 0?new Set:e;if(q.Cf==="")return"unkn";if((q.itag==="304"||q.itag==="266")&&d.UD)return"blk2khfr";if(d.X&&q.video&&q.video.qualityOrdinal>d.X)return"max"+d.X;if(d.Fw&&q.Cf==="h"&&q.video&&q.video.qualityOrdinal>1080)return"blkhigh264";if(q.Cf==="(h"&&!T.L)return"enchdr";if((Y===void 0?0:Y)&&WH(q)&&!d.dO)return"blk51live";if((q.Cf==="MAC3"||q.Cf==="mac3")&&!d.T)return"blkac3";if((q.Cf==="MEAC3"||q.Cf==="meac3")&&!d.S)return"blkeac3";if(q.Cf==="M"||q.Cf==="m")return"blkaac51";
  3909. if((q.Cf==="so"||q.Cf==="sa")&&!d.lr)return"blkamb";if(!d.Qp&&GW7(q)&&(!T.S||q.Cf!=="1e"))return"cbc";if(!T.S&&GW7(q)&&q.Cf==="1e")return"cbcav1";if((q.Cf==="i"||q.Cf==="I")&&!d.q5)return"blkiamf";var U;if(d.lF&&((U=q.audio)==null?void 0:U.U)===!0)return"blkvbcabr";var b,J;if(d.qk&&(q.Cf==="1"||q.Cf==="1h"||T.S&&q.Cf==="1e")&&((b=q.video)==null?0:b.qualityOrdinal)&&((J=q.video)==null?void 0:J.qualityOrdinal)>d.qk)return"av1cap";Y=T.T.get(q.Cf);if(!d.fn&&Y&&Y.bM>0)return e.add(q.Cf),"byerr";var F;
  3910. if((F=q.video)==null?0:F.fps>32){if(!T.rO&&!fY(T,zG.FRAMERATE))return"capHfr";if(d.AF&&q.video.qualityOrdinal>=4320)return"blk8khfr";if(Ke(q)&&d.ST&&q.ac&&q.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(d.Vv&&q.Vv>d.Vv)return"ratecap";d=Ka2(T,q);return d!==!0?d:!0};
  3911. ut=function(d,q){q=q===void 0?[]:q;g.iQ(d,function(T,Y){var e=Y.Vv-T.Vv;if(!T.eh()||!Y.eh())return e;var U=Y.video.height*Y.video.width-T.video.height*T.video.width;!U&&q&&q.length>0&&(T=q.indexOf(T.Cf)+1,Y=q.indexOf(Y.Cf)+1,U=T===0||Y===0?Y||-1:T-Y);U||(U=e);return U})};
  3912. g.Ig=function(d,q){this[X[3]]=d;this[X[41]]=q===void 0?!1:q;this[X[23]]=this[X[18]]=this[X[32]]=X[14];this[X[2]]={};this[X[29]]=X[14]};
  3913. SK=function(d){mp(d);return d[X[23]]};
  3914. lt=function(d){return d[X[3]]?d[X[3]][X[4]](X[72]):d[X[32]]===X[72]};
  3915. GS6=function(d){mp(d);return g.q$(d[X[2]],function(q){return q!==null})};
  3916. vI=function(d){mp(d);var q=decodeURIComponent(d[X[11]](X[25])||X[14])[X[0]](X[47]);return d[X[18]]===X[7]&&q[X[1]]>1&&!!q[1]};
  3917. og=function(d,q){q=q===void 0?!1:q;mp(d);if(d[X[18]]!==X[7]){var T=d[X[43]]();T[X[5]](X[84],X[19]);return T}var Y=d[X[9]]();T=new g.Vm(Y);var e=d[X[11]](X[74]),U=decodeURIComponent(d[X[11]](X[25])||X[14])[X[0]](X[47]);if(e&&U&&U[X[1]]>1&&U[1])return Y=T.G,d=Y[X[66]](/^[^.]*/,X[14]),g.qK(T,(Y[X[44]](X[36])===0?X[36]:X[8])+e+X[78]+U[1]+d),T=new g.Ig(T[X[76]]()),T[X[5]](X[65],X[19]),T;if(q)return T=d[X[43]](),T[X[5]](X[65],X[19]),T;e=T.G[X[64]](X[61]);T.G[X[64]](X[63])?(g.qK(T,X[30]),Y=T[X[76]]()):T.G[X[64]](X[83])?
  3918. (g.qK(T,X[88]),Y=T[X[76]]()):(T=azQ(Y),wp(T)&&(Y=T));T=new g.Ig(Y);T[X[5]](X[56],X[19]);e&&T[X[5]](X[70],X[31]);return T};
  3919. mp=function(d){if(d[X[3]]){if(!(wp(d[X[3]])||d[X[3]][X[4]](X[72])||d[X[3]][X[4]](X[68])||d[X[3]][X[4]](X[21])))throw new g.CW(X[77],d[X[3]]);var q=g.J_(d[X[3]]);d[X[32]]=q.S;d[X[23]]=q.G+(q.j!=null?X[53]+q.j:X[14]);var T=q.U;if(T[X[4]](X[7]))d[X[18]]=X[7],T=T[X[26]](14);else if(T[X[4]](X[52]))d[X[18]]=X[52],T=T[X[26]](13);else if(T[X[4]](X[37])){var Y=T[X[44]](X[28],12),e=T[X[44]](X[28],Y+1);Y>0&&e>0?(d[X[18]]=T[X[26]](0,e),T=T[X[26]](e+1)):(d[X[18]]=T,T=X[14])}else d[X[18]]=T,T=X[14];Y=d[X[2]];d[X[2]]=
  3920. La_(T);Object[X[45]](d[X[2]],kSf(q.T.toString()));Object[X[45]](d[X[2]],Y);d[X[2]][X[79]]===X[50]&&(delete d[X[2]][X[79]],d[X[18]]+=X[62]);d[X[3]]=X[14];d[X[29]]=X[14];d[X[41]]&&(mp(d),q=d[X[2]][X[15]]||null)&&(q=PON[0](q),d[X[5]](X[15],q))}};
  3921. Wa6=function(d){mp(d);var q=d[X[32]]+(d[X[32]]?X[59]:X[73])+d[X[23]]+d[X[18]];if(GS6(d)){var T=[];g.os(d[X[2]],function(Y,e){Y!==null&&T[X[33]](e+X[51]+Y)});
  3922. q+=X[81]+T[X[34]](X[49])}return q};
  3923. La_=function(d){d=d[X[0]](X[28]);var q=0;d[0]||q++;for(var T={};q<d[X[1]];q+=2)d[q]&&COf(T,d[q],d[q+1]);return T};
  3924. kSf=function(d){d=d[X[0]](X[49]);for(var q={},T=0;T<d[X[1]];T++){var Y=d[T],e=Y[X[44]](X[51]);e>0?COf(q,Y[X[26]](0,e),Y[X[26]](e+1)):Y&&(q[Y]=X[14])}return q};
  3925. COf=function(d,q,T){if(q===X[27]){var Y;(Y=T[X[44]](X[51]))>=0?(q=X[54]+T[X[26]](0,Y),T=T[X[26]](Y+1)):(Y=T[X[44]](X[67]))>=0&&(q=X[54]+T[X[26]](0,Y),T=T[X[26]](Y+3))}d[q]=T};
  3926. VR=function(d){var q=g.D(d,uI1)||d[X[10]];d={cL:!1,XR:X[14],oG:X[14],s:X[14]};if(!q)return d;q=lF(q);d[X[75]]=!0;d[X[86]]=q[X[29]];d[X[39]]=q[X[71]];d[X[20]]=q[X[20]];return d};
  3927. d0=function(d,q,T,Y,e,U,b,J,F){this.sD=d;this.startTime=q;this.duration=T;this.ingestionTime=Y;this.sourceURL=e;this.iC=F;this.endTime=q+T;this.G=b||0;this.range=U||null;this.pending=J||!1;this.iC=F||null};
  3928. g.qn=function(){this.segments=[];this.G=null;this.U=!0;this.j=""};
  3929. Do2=function(d,q){if(q>d.nC())d.segments=[];else{var T=HR(d.segments,function(Y){return Y.sD>=q},d);
  3930. T>0&&d.segments.splice(0,T)}};
  3931. Tz=function(d,q,T,Y,e){e=e===void 0?!1:e;this.data=d;this.offset=q;this.size=T;this.type=Y;this.G=(this.U=e)?0:8;this.dataOffset=this.offset+this.G};
  3932. Yk=function(d){var q=d.data.getUint8(d.offset+d.G);d.G+=1;return q};
  3933. eL=function(d){var q=d.data.getUint16(d.offset+d.G);d.G+=2;return q};
  3934. UK=function(d){var q=d.data.getInt32(d.offset+d.G);d.G+=4;return q};
  3935. b8=function(d){var q=d.data.getUint32(d.offset+d.G);d.G+=4;return q};
  3936. X0=function(d){var q=d.data;var T=d.offset+d.G;q=q.getUint32(T)*4294967296+q.getUint32(T+4);d.G+=8;return q};
  3937. Ju=function(d,q){q=q===void 0?NaN:q;if(isNaN(q))var T=d.size;else for(T=d.G;T<d.size&&d.data.getUint8(d.offset+T)!==q;)++T;q=new Uint8Array(d.data.buffer,d.offset+d.G+d.data.byteOffset,T-d.G);d.G=Math.min(T+1,d.size);return Re(q)};
  3938. wpX=function(d){return new Uint8Array(d.data.buffer,d.offset+d.data.byteOffset,d.size)};
  3939. fb6=function(d){this.offset=0;this.data=new DataView(new ArrayBuffer(d))};
  3940. sK=function(d,q,T,Y){(new Uint8Array(d.data.buffer,d.offset,Y)).set(new Uint8Array(q.buffer,T+q.byteOffset,Y));d.offset+=Y};
  3941. $k=function(d,q,T,Y,e,U){this.startSecs=d;this.sS=q;this.context=T;this.identifier=Y;this.event=e;this.G=U};
  3942. F0=function(d,q){this.data=d;this.uri=q||"http://youtube.com/streaming/metadata/segment/102015";this.O5=g0(this,"Sequence-Number");this.T=g0(this,"Segment-Count");this.S=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=g0(this,"Ingestion-Walltime-Us")/1E6;this.G=(g0(this,"First-Frame-Time-Us")+g0(this,"First-Frame-Uncertainty-Us"))/1E6;this.W3=g0(this,"Target-Duration-Us")/1E6;this.qQ=this.data["Stream-Finished"]==="T";this.j=this.data.Streamable==="T";this.cryptoPeriodIndex=g0(this,"Crypto-Period-Index");
  3943. this.U=g0(this,"Crypto-Period-Seconds")};
  3944. iwj=function(d){return d.data["Cuepoint-Type"]?new $k(-(Number(d.data["Cuepoint-Playhead-Time-Sec"])||0),Number(d.data["Cuepoint-Total-Duration-Sec"])||0,d.data["Cuepoint-Context"],d.data["Cuepoint-Identifier"]||"",zlI[d.data["Cuepoint-Event"]||""]||"unknown",(Number(d.data["Cuepoint-Playhead-Time-Sec"])||0)*1E3):null};
  3945. IbN=function(d){return Number(d.data["Start-Media-Time-Us"])/1E6||0};
  3946. g0=function(d,q){return Number(d.data[q])||0};
  3947. moQ=function(d){return d.data["Stitched-Video-Cpn"]?d.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]};
  3948. g.S06=function(d){return d.data["Serialized-State"]?d.data["Serialized-State"]:""};
  3949. g.lbj=function(d){switch(d.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}};
  3950. vun=function(d,q){this.G=d;this.duration=q};
  3951. ou2=function(d,q,T,Y,e){this.U=e;this.G=d||0;this.pitch=q||0;this.yaw=T||0;this.roll=Y||0;this.crc=e.getUint32(4)};
  3952. Nn=function(d){var q={};d=d.split("\r\n");for(var T=0;T<d.length;T++){if(d[T].length===0)return q;var Y=d[T].match(/([^:]+):\s+([\S\s]+)/);Y!=null&&(q[Y[1]]=Y[2])}return null};
  3953. VPD=function(d,q){var T=g.R8(d,0,1952868452);d=g.R8(d,0,1953658222);if(T&&d){T.skip(1);var Y=Yk(T)<<16|eL(T);T.skip(4);Y&1&&T.skip(8);Y&2&&T.skip(4);if(Y&8){Y=T.G;var e=b8(T);T.data.setUint32(T.offset+Y,q>1?Math.ceil(e*q):Math.floor(e*q))}d.skip(1);T=Yk(d)<<16|eL(d);if(T&256){Y=T&1;e=T&4;var U=T&512,b=T&1024,J=T&2048;T=b8(d);Y&&d.skip(4);e&&d.skip(4);Y=(U?4:0)+(b?4:0)+(J?4:0);for(e=0;e<T;e++)U=d.G,b=b8(d),d.data.setUint32(d.offset+U,q>1?Math.ceil(b*q):Math.floor(b*q)),d.skip(Y)}}};
  3954. yL=function(d){d=new DataView(d.buffer,d.byteOffset,d.byteLength);return(d=g.R8(d,0,1836476516))?g.xk(d):NaN};
  3955. dI_=function(d){var q=g.R8(d,0,1937011556);if(!q)return null;q=hu(d,q.dataOffset+8,1635148593)||hu(d,q.dataOffset+8,1635135537);if(!q)return null;var T=hu(d,q.dataOffset+78,1936995172),Y=hu(d,q.dataOffset+78,1937126244);if(!Y)return null;q=null;if(T)switch(T.skip(4),Yk(T)){default:q=0;break;case 1:q=2;break;case 2:q=1;break;case 3:q=255}var e=T=null,U=null;if(Y=hu(d,Y.dataOffset,1886547818)){var b=hu(d,Y.dataOffset,1886546020),J=hu(d,Y.dataOffset,2037673328);if(!J&&(J=hu(d,Y.dataOffset,1836279920),
  3956. !J))return null;b&&(b.skip(4),T=UK(b)/65536,U=UK(b)/65536,e=UK(b)/65536);d=wpX(J);d=new DataView(d.buffer,d.byteOffset+8,d.byteLength-8);return new ou2(q,T,U,e,d)}return null};
  3957. hu=function(d,q,T){for(;Ht(d,q);){var Y=QL(d,q);if(Y.type===T)return Y;q+=Y.size}return null};
  3958. g.R8=function(d,q,T){for(;Ht(d,q);){var Y=QL(d,q);if(Y.type===T)return Y;q=Mn(Y.type)?q+8:q+Y.size}return null};
  3959. g.ct=function(d){if(d.data.getUint8(d.dataOffset)){var q=d.data;d=d.dataOffset+4;q=q.getUint32(d)*4294967296+q.getUint32(d+4)}else q=d.data.getUint32(d.dataOffset+4);return q};
  3960. QL=function(d,q){var T=d.getUint32(q),Y=d.getUint32(q+4);return new Tz(d,q,T,Y)};
  3961. g.xk=function(d){var q=d.data.getUint8(d.dataOffset)?20:12;return d.data.getUint32(d.dataOffset+q)};
  3962. qJ2=function(d){d=new Tz(d.data,d.offset,d.size,d.type,d.U);var q=Yk(d);d.skip(7);var T=b8(d);if(q===0){q=b8(d);var Y=b8(d)}else q=X0(d),Y=X0(d);d.skip(2);for(var e=eL(d),U=[],b=[],J=0;J<e;J++){var F=b8(d);U.push(F);b.push(b8(d));d.skip(4)}return{timescale:T,Vb:q,mI:Y,GAZ:U,yL:b}};
  3963. Ht=function(d,q){if(d.byteLength-q<8)return!1;var T=d.getUint32(q);if(T<8||d.byteLength-q<T)return!1;for(T=4;T<8;T++){var Y=d.getInt8(q+T);if(Y<48||Y>122)return!1}return!0};
  3964. Mn=function(d){return d===1701082227||d===1836019558||d===1836019574||d===1835297121||d===1835626086||d===1937007212||d===1953653094||d===1953653099||d===1836475768};
  3965. TPD=function(d){d.skip(4);return{RzD:Ju(d,0),value:Ju(d,0),timescale:b8(d),eow:b8(d),eventDuration:b8(d),id:b8(d),uh:Ju(d),offset:d.offset}};
  3966. g.YJ7=function(d){var q=hu(d,0,1701671783);if(!q)return null;var T=TPD(q),Y=T.RzD;T=Nn(T.uh);if(d=hu(d,q.offset+q.size,1701671783))if(d=TPD(d),d=Nn(d.uh),T&&d){q=g.E(Object.keys(d));for(var e=q.next();!e.done;e=q.next())e=e.value,T[e]=d[e]}return T?new F0(T,Y):null};
  3967. EK=function(d,q){for(var T=hu(d,0,q);T;){var Y=T;Y.type=1936419184;Y.data.setUint32(Y.offset+4,1936419184);T=hu(d,T.offset+T.size,q)}};
  3968. g.jL=function(d,q){for(var T=0,Y=[];Ht(d,T);){var e=QL(d,T);e.type===q&&Y.push(e);T=Mn(e.type)?T+8:T+e.size}return Y};
  3969. eIN=function(d,q){var T=g.R8(d,0,1937011556),Y=g.R8(d,0,1953654136);if(!T||!Y||d.getUint32(T.offset+12)>=2)return null;var e=new DataView(q.buffer,q.byteOffset,q.length),U=g.R8(e,0,1937011556);if(!U)return null;q=e.getUint32(U.dataOffset+8);Y=e.getUint32(U.dataOffset+12);if(Y!==1701733217&&Y!==1701733238)return null;Y=new fb6(d.byteLength+q);sK(Y,d,0,T.offset+12);Y.data.setInt32(Y.offset,2);Y.offset+=4;sK(Y,d,T.offset+16,T.size-16);sK(Y,e,e.byteOffset+U.dataOffset+8,q);sK(Y,d,T.offset+T.size,d.byteLength-
  3970. (T.offset+T.size));T=g.E([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=T.next();!e.done;e=T.next())e=g.R8(d,0,e.value),Y.data.setUint32(e.offset,e.size+q);d=g.R8(Y.data,0,1953654136);Y.data.setUint32(d.offset+16,2);return Y.data};
  3971. UIg=function(d){var q=g.R8(d,0,1937011556);if(!q)return null;var T=d.getUint32(q.dataOffset+12);if(T!==1701733217&&T!==1701733238)return null;q=hu(d,q.offset+24+(T===1701733217?28:78),1936289382);if(!q)return null;T=hu(d,q.offset+8,1935894637);if(!T||d.getUint32(T.offset+12)!==1667392371)return null;q=hu(d,q.offset+8,1935894633);if(!q)return null;q=hu(d,q.offset+8,1952804451);if(!q)return null;T=new Uint8Array(16);for(var Y=0;Y<16;Y++)T[Y]=d.getInt8(q.offset+16+Y);return T};
  3972. a8=function(d,q){this.G=d;this.pos=0;this.start=q||0};
  3973. Au=function(d){return d.pos>=d.G.byteLength};
  3974. r0=function(d,q,T){var Y=new a8(T);if(!pj(Y,d))return!1;Y=ZT(Y);if(!OK(Y,q))return!1;for(d=0;q;)q>>>=8,d++;q=Y.start+Y.pos;var e=nj(Y,!0);Y=d+(Y.start+Y.pos-q)+e;Y=Y>9?beI(Y-9,8):beI(Y-2,1);d=q-d;T.setUint8(d++,236);for(q=0;q<Y.length;q++)T.setUint8(d++,Y[q]);return!0};
  3975. XH6=function(d){var q=new a8(d);q.VP();if(pj(q,[408125543,374648427,174,224]))q=ZT(q);else return null;for(var T=d=null;!Au(q);){var Y=nj(q,!1);if(Y===21432)switch(tu(q)){default:d=0;break;case 1:d=1;break;case 3:d=2;break;case 15:d=255}else Y===30320?T=ZT(q):Bt(q)}if(!T)return null;for(var e,U=Y=q=null;!Au(T);)switch(nj(T,!1)){case 30321:if(tu(T)!==3)return null;break;case 30324:q=Kj(T);break;case 30323:U=Kj(T);break;case 30325:Y=Kj(T);break;case 30322:e=nj(T,!0);e=Gz(T,e);e=new DataView(e.buffer,
  3976. e.byteOffset,e.byteLength);break;default:Bt(T)}return e?new ou2(d,q,U,Y,e):null};
  3977. ZT=function(d){var q=nj(d,!0),T=d.G.byteOffset+d.pos;T=new DataView(d.G.buffer,T,Math.min(q,d.G.buffer.byteLength-T));T=new a8(T,d.start+d.pos);d.pos+=q;return T};
  3978. tu=function(d){for(var q=nj(d,!0),T=Lj(d),Y=1;Y<q;Y++)T=T*256+Lj(d);return T};
  3979. Kj=function(d){var q=nj(d,!0),T=0;q===4?T=d.G.getFloat32(d.pos):q===8&&(T=d.G.getFloat64(d.pos));d.pos+=q;return T};
  3980. JQX=function(d){var q=nj(d,!0);return Re(Gz(d,q))};
  3981. Lj=function(d){return d.G.getUint8(d.pos++)};
  3982. nj=function(d,q){var T=Lj(d);if(T===1){for(q=T=0;q<7;q++)T=T*256+Lj(d);return T}for(var Y=128,e=0;e<6&&Y>T;e++)T=T*256+Lj(d),Y*=128;return q?T-Y:T};
  3983. Bt=function(d){var q=nj(d,!0);d.pos+=q};
  3984. sIn=function(d){if(!OK(d,440786851,!0))return null;var q=d.pos;nj(d,!1);var T=nj(d,!0)+d.pos-q;d.pos=q+T;if(!OK(d,408125543,!1))return null;nj(d,!0);if(!OK(d,357149030,!0))return null;var Y=d.pos;nj(d,!1);var e=nj(d,!0)+d.pos-Y;d.pos=Y+e;if(!OK(d,374648427,!0))return null;var U=d.pos;nj(d,!1);var b=nj(d,!0)+d.pos-U,J=new Uint8Array(T+12+e+b),F=new DataView(J.buffer);J.set(new Uint8Array(d.G.buffer,d.G.byteOffset+q,T));F.setUint32(T,408125543);F.setUint32(T+4,33554431);F.setUint32(T+8,4294967295);
  3985. J.set(new Uint8Array(d.G.buffer,d.G.byteOffset+Y,e),T+12);J.set(new Uint8Array(d.G.buffer,d.G.byteOffset+U,b),T+12+e);return J};
  3986. kk=function(d){var q=d.pos;d.pos=0;var T=1E6;pj(d,[408125543,357149030,2807729])&&(T=tu(d));d.pos=q;return T};
  3987. $In=function(d,q){var T=d.pos;d.pos=0;if(d.G.getUint8(d.pos)!==160&&!Pt(d)||!OK(d,160))return d.pos=T,NaN;nj(d,!0);var Y=d.pos;if(!OK(d,161))return d.pos=T,NaN;nj(d,!0);Lj(d);var e=Lj(d)<<8|Lj(d);d.pos=Y;if(!OK(d,155))return d.pos=T,NaN;Y=tu(d);d.pos=T;return(e+Y)*q/1E9};
  3988. Pt=function(d){if(!gV1(d)||!OK(d,524531317))return!1;nj(d,!0);return!0};
  3989. gV1=function(d){if(d.VP()){if(!OK(d,408125543))return!1;nj(d,!0)}return!0};
  3990. pj=function(d,q){for(var T=0;T<q.length;T++){if(!OK(d,q[T]))return!1;T!==q.length-1&&nj(d,!0)}return!0};
  3991. OK=function(d,q,T){T=T===void 0?!1:T;if(Au(d))return!1;for(var Y=d.pos;nj(d,!1)!==q;)if(Bt(d),Y=d.pos,Au(d))return!1;T&&(d.pos=Y);return!0};
  3992. beI=function(d,q){q||(q=Math.ceil(Math.log(d+2)/Math.log(2)/7));for(var T=1<<8-q,Y=[];Y.length<q-1;)Y.unshift(d%256),d=Math.floor(d/256);Y.unshift(d|T);return Y};
  3993. Gz=function(d,q){var T=new Uint8Array(d.G.buffer,d.G.byteOffset+d.pos,q);d.pos+=q;return T};
  3994. Wt=function(d){this.Wf=d;this.G={};this.url=""};
  3995. F16=function(d,q){var T=q.indexOf("?");if(T>0){var Y=kSf(q.substring(T+1));g.os(Y,function(e,U){this.set(U,e)},d);
  3996. q=q.substring(0,T)}q=La_(q);g.os(q,function(e,U){this.set(U,e)},d)};
  3997. NP2=function(d){var q=d.Wf.Hl(),T=[];g.os(d.G,function(e,U){T.push(U+"="+e)});
  3998. if(!T.length)return q;var Y=T.join("&");d=GS6(d.Wf)?"&":"?";return q+d+Y};
  3999. Cj=function(d,q){var T=new g.Ig(q);(q=T.get("req_id"))&&d.set("req_id",q);g.os(d.G,function(Y,e){T["set"](e,null)});
  4000. return T};
  4001. RIn=function(){this.T=this.j=this.G=this.timedOut=this.started=this.S=this.U=0};
  4002. u8=function(d){d.S=(0,g.cj)();d.started=0;d.timedOut=0;d.G=0};
  4003. DT=function(d,q){var T=d.started+d.G*4;q&&(T+=d.j);T=Math.max(0,T-3);return Math.pow(1.6,T)};
  4004. w0=function(d,q){d[q]||(d[q]=new RIn);return d[q]};
  4005. fj=function(d){this.K=this.L=this.S=this.j=0;this.B=this.X=!1;this.G=d;this.U=d.clone()};
  4006. xIg=function(d,q,T){if(lt(d.G))return!1;var Y=w0(T,SK(d.G));if(Y.timedOut<1&&Y.G<1)return!1;Y=Y.timedOut+Y.G;d=zz(d,q);T=w0(T,SK(d));return T.timedOut+T.G+0<Y};
  4007. i8=function(d,q,T){d=q?zz(d,T):d.G;return new Wt(d)};
  4008. zz=function(d,q){q=q?q.aF:!1;d.T||(d.T=og(d.U,q));return d.T};
  4009. I8=function(d,q,T){return SK(q?zz(d,T):d.G)};
  4010. mU=function(d,q,T,Y){(Y===void 0?0:Y)>1?q=q.Q_:(T=w0(T,I8(d,d.VK(q,T),q)),q=Math.max(d.S,T.timedOut)+q.hY*(d.j-d.S)+.25*d.L,q=q>3?1E3*Math.pow(1.6,q-3):0);return q===0?!0:d.K+q<(0,g.cj)()};
  4011. yQX=function(d,q,T){d.G.set(q,T);d.U.set(q,T);d.T&&d.T.set(q,T)};
  4012. hI_=function(d,q,T,Y,e){++d.j;q&&++d.S;SK(T.Wf).startsWith("redirector.")&&(d.G=d.U.clone(),delete d.T,Y.YY&&delete e[SK(d.G)])};
  4013. SL=function(d){return d?(d.itag||"")+";"+(d.lmt||0)+";"+(d.xtags||""):""};
  4014. l8=function(d,q,T,Y){this.initRange=T;this.indexRange=Y;this.G=null;this.j=!1;this.X=0;this.T=this.ZC=this.U=null;this.info=q;this.zG=new fj(d)};
  4015. vt=function(d,q){this.start=d;this.end=q;this.length=q-d+1};
  4016. o8=function(d){d=d.split("-");var q=Number(d[0]),T=Number(d[1]);if(!isNaN(q)&&!isNaN(T)&&d.length===2&&(d=new vt(q,T),!isNaN(d.start)&&!isNaN(d.end)&&!isNaN(d.length)&&d.length>0))return d};
  4017. VL=function(d,q){return new vt(d,d+q-1)};
  4018. HeD=function(d){return d.end==null?{start:String(d.start)}:{start:String(d.start),end:String(d.end)}};
  4019. dT=function(d){if(!d)return new vt(0,0);var q=Number(d.start);d=Number(d.end);if(!isNaN(q)&&!isNaN(d)&&(q=new vt(q,d),q.length>0))return q};
  4020. qG=function(d,q,T,Y,e,U,b,J,F,N,R,x){Y=Y===void 0?"":Y;this.type=d;this.G=q;this.range=T;this.source=Y;this.g4=R;this.clipId=x===void 0?"":x;this.K=[];this.L="";this.sD=-1;this.lr=this.UD=0;this.L=Y;this.sD=e>=0?e:-1;this.startTime=U||0;this.duration=b||0;this.U=J||0;this.j=F>=0?F:this.range?this.range.length:NaN;this.S=this.range?this.U+this.j===this.range.length:N===void 0?!!this.j:N;this.range?(this.T=this.startTime+this.duration*this.U/this.range.length,this.B=this.duration*this.j/this.range.length,
  4021. this.X=this.T+this.B):QIj(this)};
  4022. QIj=function(d){d.T=d.startTime;d.B=d.duration;d.X=d.T+d.B};
  4023. M7N=function(d,q,T){var Y=!(!q||q.G!==d.G||q.type!==d.type||q.sD!==d.sD);return T?Y&&!!q&&(d.range&&q.range?q.range.end===d.range.end:q.range===d.range)&&q.U+q.j===d.U+d.j:Y};
  4024. TE=function(d){return d.type===1||d.type===2};
  4025. Yw=function(d){return d.type===3||d.type===6};
  4026. eu=function(d,q){return d.G===q.G?d.range&&q.range?d.range.start+d.U+d.j===q.range.start+q.U:d.sD===q.sD?d.U+d.j===q.U:d.sD+1===q.sD&&q.U===0&&d.S:!1};
  4027. EV7=function(d,q){return d.sD!==q.sD&&q.sD!==d.sD+1||d.type!==q.type?!1:eu(d,q)?!0:Math.abs(d.T-q.T)<=1E-6&&d.sD===q.sD?!1:cQ1(d,q)};
  4028. cQ1=function(d,q){return eu(d,q)||Math.abs(d.X-q.T)<=1E-6||d.sD+1===q.sD&&q.U===0&&d.S?!0:!1};
  4029. U$=function(d){return d.sD+(d.S?1:0)};
  4030. jIf=function(d){d.length===1||g.h0(d,function(T){return!!T.range});
  4031. for(var q=1;q<d.length;q++);q=d[d.length-1];return new vt(d[0].range.start+d[0].U,q.range.start+q.U+q.j-1)};
  4032. aBj=function(d){for(var q=1;q<d.length;q++)if(!eu(d[q-1],d[q]))return!1;return!0};
  4033. AQY=function(d){var q=0;d=g.E(d);for(var T=d.next();!T.done;T=d.next())q+=T.value.range.length;return q};
  4034. bP=function(d){var q={};q.itag=d.G.info.itag;q.type=""+d.type;q.src=""+d.source;q.segsrc=d.L;q.seg=String(d.sD);d.range&&(q.range=d.range.start+d.U+"-"+(d.range.start+d.U+d.j-1));q.time=d.T.toFixed(1)+"-"+(d.T+d.B).toFixed(1);q.off=String(d.U);q.len=String(d.j);d.S&&(q.end="1");d.qQ()&&(q.eos="1");d.clipId&&(q.cid=d.clipId);return q};
  4035. pHI=function(d){return new qG(d.type,d.G,d.range,"getEmptyStubBefore"+d.L,d.sD,d.startTime,0,d.U,0)};
  4036. Ze6=function(d){return new qG(d.type,d.G,d.range,"getEmptyStubAfter"+d.L,d.sD,d.startTime+d.duration,0,d.U+d.j,0)};
  4037. OeH=function(d,q,T,Y){return new qG(d.type,d.G,d.range,"reslice"+d.L,d.sD,d.startTime,d.duration,q,T,Y,d.g4,d.clipId)};
  4038. nVI=function(d,q){return d.G!==q.G?!1:d.range&&q.range?d.range.start+d.U>=q.range.start+q.U&&d.range.start+d.U+d.j<=q.range.start+q.U+q.j:d.sD===q.sD&&d.U>=q.U&&(d.U+d.j<=q.U+q.j||q.S)};
  4039. rQD=function(d,q){return d.G!==q.G?!1:d.type===4&&q.type===3&&d.G.pj()?(d=d.G.IV(d),D7(d,function(T){return rQD(T,q)})):d.sD===q.sD&&!!q.j&&q.U+q.j>d.U&&q.U+q.j<=d.U+d.j};
  4040. Xo=function(d,q){var T=q.sD;d.L="updateWithSegmentInfo";d.sD=T;if(d.startTime!==q.startTime||d.duration!==q.duration)d.startTime=q.startTime+d.UD,d.duration=q.duration,QIj(d)};
  4041. Jl=function(d,q){var T=this;this.Zw=d;this.T=this.G=null;this.S=this.MM=NaN;this.VK=this.requestId=null;this.fC={rsD:function(){return T.range}};
  4042. this.zG=d[0].G.zG;this.U=q||"";this.Zw[0].range&&this.Zw[0].j>0&&(aBj(d)?(this.range=jIf(d),this.j=this.range.length):(this.range=this.Zw[this.Zw.length-1].range,this.j=AQY(d)))};
  4043. s$=function(d){return!TE(d.Zw[d.Zw.length-1])};
  4044. $w=function(d){return d.Zw[d.Zw.length-1].type===4};
  4045. g.gT=function(d,q,T){T=d.VK===null?d.zG.VK(q,T,d.Zw[0].type):d.VK;if(d.G){q=T?og(d.G,q.aF):d.G;var Y=new Wt(q);Y.get("alr")||Y.set("alr","yes");d.U&&F16(Y,d.U)}else/http[s]?:\/\//.test(d.U)?Y=new Wt(new g.Ig(d.U)):(Y=i8(d.zG,T,q),d.U&&F16(Y,d.U));(q=d.range)?Y.set("range",q.toString()):d.Zw[0].G.Gb()&&d.Zw.length===1&&d.Zw[0].U&&Y.set("range",d.Zw[0].U+"-");d.requestId&&Y.set("req_id",d.requestId);isNaN(d.MM)||Y.set("headm",d.MM.toString());isNaN(d.S)||Y.set("mffa",d.S+"ms");d.urlParams&&g.os(d.urlParams,
  4046. function(e,U){Y.set(U,e)});
  4047. return Y};
  4048. t7j=function(d){if(d.range)return d.j;d=d.Zw[0];return Math.round(d.B*d.G.info.Vv)};
  4049. BPj=function(d,q){return Math.max(0,d.Zw[0].T-q)};
  4050. Fo=function(d,q,T,Y,e,U){U=U===void 0?0:U;l8.call(this,d,q,Y,void 0);this.S=T;this.W3=U;this.index=e||new g.qn};
  4051. K1D=function(d,q,T,Y,e){this.sD=d;this.startSecs=q;this.sS=T;this.G=Y||NaN;this.U=e||NaN};
  4052. NG=function(d,q,T){for(;d;d=d.parentNode)if(d.attributes&&(!T||d.nodeName===T)){var Y=d.getAttribute(q);if(Y)return Y}return""};
  4053. Rd=function(d,q){for(;d;d=d.parentNode){var T=d.getElementsByTagName(q);if(T.length>0)return T[0]}return null};
  4054. GLN=function(d){if(!d)return 0;var q=d.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return q?(Number(q[2])|0)*3600+(Number(q[4])|0)*60+(Number(q[6])|0):Number(d)|0};
  4055. L17=function(d){return d.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?d+"Z":d};
  4056. xw=function(){this.G=[];this.U=null;this.X=0;this.j=[];this.S=!1;this.L="";this.T=-1};
  4057. kLQ=function(d){var q=d.j;d.j=[];return q};
  4058. PWX=function(){this.T=[];this.G=null;this.U={};this.j={}};
  4059. DIX=function(d,q){var T=[];q=Array.from(q.getElementsByTagName("SegmentTimeline"));q=g.E(q);for(var Y=q.next();!Y.done;Y=q.next()){Y=Y.value;var e=Y.parentNode.parentNode,U=null;e.nodeName==="Period"?U=W1Y(d):e.nodeName==="AdaptationSet"?(e=e.getAttribute("id")||e.getAttribute("mimetype")||"",U=CWY(d,e)):e.nodeName==="Representation"&&(e=e.getAttribute("id")||"",U=ugn(d,e));if(U==null)return;U.update(Y);g.tE(T,kLQ(U))}g.tE(d.T,T);ZND(d.T,function(b){return b.startSecs*1E3+b.G})};
  4060. wHQ=function(d){d.G&&(d.G.G=[]);g.os(d.U,function(q){q.G=[]});
  4061. g.os(d.j,function(q){q.G=[]})};
  4062. W1Y=function(d){d.G||(d.G=new xw);return d.G};
  4063. CWY=function(d,q){d.U[q]||(d.U[q]=new xw);return d.U[q]};
  4064. ugn=function(d,q){d.j[q]||(d.j[q]=new xw);return d.j[q]};
  4065. hl=function(d){var q=d===void 0?{}:d;d=q.W3===void 0?0:q.W3;var T=q.RF===void 0?!1:q.RF;var Y=q.nW===void 0?0:q.nW;var e=q.QX===void 0?0:q.QX;var U=q.rH===void 0?Infinity:q.rH;var b=q.Fp===void 0?0:q.Fp;var J=q.uC===void 0?!1:q.uC;q=q.qx===void 0?!1:q.qx;g.qn.call(this);this.Dt=this.z3=-1;this.bO=d;this.nW=Y;this.RF=T;this.QX=e;this.rH=U;this.Fp=b;((this.uC=J)||isFinite(U)&&this.rH>0)&&T&&y8&&(this.U=!1,this.j="postLive");this.qx=q};
  4066. Hb=function(d,q){return wL(d.segments,function(T){return q-T.sD})};
  4067. Q8=function(d,q,T){T=T===void 0?{}:T;Fo.call(this,d,q,"",void 0,void 0,T.W3||0);this.index=new hl(T)};
  4068. MG=function(d,q,T){l8.call(this,d,q);this.S=T;d=this.index=new g.qn;d.U=!1;d.j="d"};
  4069. fBD=function(d,q,T){var Y=d.index.fO(q),e=d.index.getStartTime(q),U=d.index.getDuration(q);T?U=T=0:T=d.info.Vv*U;return new Jl([new qG(3,d,void 0,"otfCreateRequestInfoForSegment",q,e,U,0,T)],Y)};
  4070. zIH=function(d,q){if(!d.index.isLoaded()){var T=[],Y=q.T;q=q.S.split(",").filter(function(R){return R.length>0});
  4071. for(var e=0,U=0,b=0,J=/^(\d+)/,F=/r=(\d+)/,N=0;N<Y;N++){if(b<=0)if(b=q.shift(),U=(U=J.exec(b))?+U[1]/1E3:0)b=(b=F.exec(b))?+b[1]:0,b+=1;else return;T.push(new d0(N,e,U,NaN,"sq/"+(N+1)));e+=U;b--}d.index.append(T)}};
  4072. g.cb=function(d){this.tag=d};
  4073. ieH=function(d,q){E$.apply(null,[6,d,q].concat(g.RQ(g.CN.apply(2,arguments))))};
  4074. IBH=function(d,q){E$.apply(null,[5,d,q].concat(g.RQ(g.CN.apply(2,arguments))))};
  4075. E$=function(d,q,T){var Y=g.CN.apply(3,arguments),e=d===6?"ERROR":"WARNING",U="b"+T;g.Zz(new (Function.prototype.bind.apply(g.CW,[null,U].concat(g.RQ(Y)))),e);Y.unshift(U);Y=Y.join(", ");e=mI7.get(q);if(!e){e="ytplog."+q;U=5;try{window.localStorage&&!isNaN(+window.localStorage[e])&&(U=+window.localStorage[e]),window.sessionStorage&&!isNaN(+window.sessionStorage[e])&&(U=+window.sessionStorage[e])}catch(F){}mI7.set(q,U);e=U}if(!(d<e)){e=SJg;U=e.G.get(q);U||(U=new lBI,e.G.set(q,U));e=U;U=Date.now();var b=
  4076. Math.floor((U-e.U)*.01);b>0&&(e.G=Math.min(e.G+b,10),e.U=U);e.G>0?(e.G--,e=!0):e=!1;if(e)typeof Y==="function"&&(Y=Y()),console.log("plyr."+q,Y);else{var J;Y=((J=vV2.get(q))!=null?J:0)+1;vV2.set(q,Y);Y%100===1&&console.warn("plyr","plyr."+q+" is chatty, dropping logs.")}}};
  4077. lBI=function(){this.G=10;this.U=Date.now()};
  4078. ju=function(d,q){this.info=d;this.U=q;this.G=null;this.T=this.j=-1;this.timestampOffset=0;this.isLocked=this.X=!1;this.S=this.info.G.Rw()&&!this.info.U};
  4079. g.ad=function(d){return fd7(d.U)};
  4080. oV2=function(d,q){q=Math.min(q,d.info.j);var T=d.U.split(q),Y=T.Kp;T=new ju(new qG(d.info.type,d.info.G,d.info.range,d.info.L,d.info.sD,d.info.startTime,d.info.duration,d.info.U,q,!1,d.info.g4,d.info.clipId),T.hS);T.T=d.T;T.j=d.j;q=new ju(new qG(d.info.type,d.info.G,d.info.range,d.info.L,d.info.sD,d.info.startTime,d.info.duration,d.info.U+q,d.info.j-q,d.info.S,d.info.g4,d.info.clipId),Y);q.T=d.T;q.j=d.j;return[T,q]};
  4081. g.Al=function(d,q,T,Y){T=T===void 0?!1:T;Y=Y===void 0?0:Y;if(d.isLocked||q.isLocked||!eu(d.info,q.info)||d.info.S)return null;if(Y){if(d.U.totalLength+q.U.totalLength>Y)return null}else if(T&&(T=d.U,Y=q.U,T=!(Y.G.length?DzX(T,Y.G[0]):1)),T)return null;T=new qG(d.info.type,d.info.G,d.info.range,d.info.L,d.info.sD,d.info.startTime,d.info.duration,d.info.U,d.info.j,d.info.S,d.info.g4,d.info.clipId);Y=q.info;T.j+=Y.j;T.range&&(T.B+=Y.B);T.X=Y.X;T.S=Y.S;Y=new e2;Uv(Y,d.U);Uv(Y,q.U);T=new ju(T,Y);T.G!=
  4082. null&&q.G!=null&&(new g.cb("dash")).G(414627957,"merged slice emsg overridden; prev: "+T.G.OX()+" next: "+q.G.OX());T.G=q.G||d.G;T.j=d.j!==-1?d.j:q.j;T.T=d.T!==-1?d.T:q.T;return T};
  4083. g.py=function(d){g.Ce(d.info.G.info)||d.info.G.info.fz();if(d.j!==-1)return d.j;if(d.G&&IbN(d.G))return d.j=IbN(d.G),d.j;if(g.Ce(d.info.G.info)){var q=g.ad(d);for(var T=d.info.G.G,Y=NaN,e=NaN,U=0;Ht(q,U);){var b=QL(q,U);b.type===1936286840?e=b.data.getUint32(b.dataOffset+8):b.type===1836476516?e=g.xk(b):b.type===1952867444&&isNaN(Y)&&(Y=g.ct(b));U=Mn(b.type)?U+8:U+b.size}!e&&T&&(e=yL(T));q=Y/e}else q=new a8(g.ad(d)),T=d.S?q:new a8(new DataView(d.info.G.G.buffer)),Y=kk(T),T=q.pos,q.pos=0,Pt(q)?OK(q,
  4084. 231)?(Y=tu(q)*Y/1E9,q.pos=T,q=Y):(q.pos=T,q=NaN):(q.pos=T,q=NaN);d.j=q||d.info.T;return d.j};
  4085. dFf=function(d,q){d.timestampOffset>0&&(q-=d.timestampOffset);var T=g.py(d)+q;V7j(d,T);d.timestampOffset=q};
  4086. V7j=function(d,q){g.Ce(d.info.G.info)||d.info.G.info.fz();d.j=q;if(g.Ce(d.info.G.info)){var T=g.ad(d);d=d.info.G.G;for(var Y=NaN,e=NaN,U=0;Ht(T,U);){var b=QL(T,U);isNaN(Y)&&(b.type===1936286840?Y=b.data.getUint32(b.dataOffset+8):b.type===1836476516&&(Y=g.xk(b)));if(b.type===1952867444){!Y&&d&&(Y=yL(d));var J=g.ct(b);isNaN(e)&&(e=Math.round(q*Y)-J);var F=b;J+=e;if(F.data.getUint8(F.dataOffset)){var N=F.data;F=F.dataOffset+4;N.setUint32(F,Math.floor(J/4294967296));N.setUint32(F+4,J&4294967295)}else F.data.setUint32(F.dataOffset+
  4087. 4,J)}U=Mn(b.type)?U+8:U+b.size}return!0}T=new a8(g.ad(d));d=d.S?T:new a8(new DataView(d.info.G.G.buffer));Y=kk(d);d=T.pos;T.pos=0;if(Pt(T)&&OK(T,231))if(e=nj(T,!0),q=Math.floor(q*1E9/Y),Math.ceil(Math.log(q)/Math.log(2)/8)>e)q=!1;else{for(Y=e-1;Y>=0;Y--)T.G.setUint8(T.pos+Y,q&255),q>>>=8;T.pos=d;q=!0}else q=!1;return q};
  4088. O$=function(d,q){q=q===void 0?!1:q;var T=Ze(d);d=q?0:d.info.B;return T||d};
  4089. Ze=function(d){g.Ce(d.info.G.info)||d.info.G.info.fz();if(d.G&&d.info.type===6)return d.G.W3;if(g.Ce(d.info.G.info)){var q=g.ad(d);var T=0;q=g.jL(q,1936286840);q=g.E(q);for(var Y=q.next();!Y.done;Y=q.next())Y=qJ2(Y.value),T+=Y.yL[0]/Y.timescale;T=T||NaN;if(!(T>=0))a:{T=g.ad(d);q=d.info.G.G;for(var e=Y=0,U=0;Ht(T,Y);){var b=QL(T,Y);if(b.type===1836476516)e=g.xk(b);else if(b.type===1836019558){!e&&q&&(e=yL(q));if(!e){T=NaN;break a}var J=hu(b.data,b.dataOffset,1953653094),F=J;J=e;var N=hu(F.data,F.dataOffset,
  4090. 1952868452);F=hu(F.data,F.dataOffset,1953658222);var R=UK(N);UK(N);R&2&&UK(N);N=R&8?UK(N):0;var x=UK(F),y=x&1;R=x&4;var h=x&256,H=x&512,a=x&1024;x&=2048;var p=b8(F);y&&UK(F);R&&UK(F);for(var t=y=0;t<p;t++){var n=h?UK(F):N;H&&UK(F);R&&t===0||!a||UK(F);x&&UK(F);y+=n}U+=y/J}Y=Mn(b.type)?Y+8:Y+b.size}T=U||NaN}T||g.OL(new g.CW("Missing duration while parsing bmff",d.info.jt()))}else T=new a8(g.ad(d)),d=d.S?T:new a8(new DataView(d.info.G.G.buffer)),T=$In(T,kk(d));return T};
  4091. g.qXj=function(d){if(d.info.G.gr())return d.info.duration;d.T===-1&&(d.T=Ze(d));return d.T||d.info.duration};
  4092. TCI=function(d){var q=g.ad(d);var T=(T=g.R8(q,0,1936286840))?T.data.getUint32(T.dataOffset+8):NaN;isNaN(T)&&(d=d.info.G.G,T=(q=g.R8(q,0,1836476516))?g.xk(q):d?yL(d):NaN);return T};
  4093. YXn=function(d){return d.info.G.info.fz()&&FJ(d.U,0)===160};
  4094. e0Q=function(d){if(!d.G){g.Ce(d.info.G.info)||d.info.G.info.fz();if(g.Ce(d.info.G.info))var q=g.YJ7(g.ad(d));else{q=new a8(g.ad(d));var T=q.pos;q.pos=0;var Y=null,e=null;if(pj(q,[408125543,307544935]))for(var U=q.pos+nj(q,!0);q.pos<U;)if(nj(q,!1)!==29555)Bt(q);else for(var b=q.pos+nj(q,!0);q.pos<b;)if(nj(q,!1)!==26568)Bt(q);else for(var J=q.pos+nj(q,!0);q.pos<J;){var F=nj(q,!1);if(F===17543){if(F=JQX(q),F=Nn(F))if(e)for(var N=g.E(Object.keys(F)),R=N.next();!R.done;R=N.next())R=R.value,e[R]=F[R];else e=
  4095. F}else F===17827?(F=JQX(q),Y||(Y=F)):Bt(q)}q.pos=T;q=e?new F0(e,Y):null}d.G=q}};
  4096. UF1=function(d){if(g.Ce(d.info.G.info))EK(g.ad(d),1836019574),EK(g.ad(d),1718909296);else{var q=new a8(g.ad(d));gV1(q);OK(q,524531317,!0);d.U=d.U.split(q.start+q.pos).Kp}d.S=!1};
  4097. ny=function(d){if(!d.X){if(g.Ce(d.info.G.info)){var q=g.ad(d);var T=hu(q,0,1836019574);if(T){T=T.offset+T.size;var Y=new Uint8Array(T);Y.set(new Uint8Array(q.buffer,q.byteOffset,T));q=Y}else q=null}else q=sIn(new a8(g.ad(d)));q&&(d.info.G.G=q,d.X=!0)}};
  4098. g.rT=function(){this.count=0;this.G=1;this.U=!1;this.offsets=new Float64Array(128);this.startTicks=new Float64Array(128)};
  4099. bkY=function(d,q){return q+1<d.count||d.U?d.offsets[q+1]-d.offsets[q]:-1};
  4100. tl=function(d){d.offsets.length<d.count+1&&d.resize(d.offsets.length*2)};
  4101. Bb=function(d,q,T,Y){l8.call(this,d,q,T,Y);var e=this;this.S=null;this.fC={R7:function(U,b,J,F){return e.R7(U,b,J,F)}};
  4102. this.index=new g.rT};
  4103. Xl6=function(d,q,T,Y,e,U){this.displayName=d;this.vssId=q;this.languageCode=T;this.kind=Y===void 0?"":Y;this.xtags=e===void 0?"":e;this.id=U===void 0?"":U};
  4104. spD=function(d){if(d=d.colorInfo)if(d=d.transferCharacteristics)return JeX[d];return null};
  4105. g.Ky=function(d,q,T){this.name=d;this.id=q;this.isDefault=T};
  4106. $F2=function(d){return GE(function(q,T){return g.je(q,T,4,1E3)},d,{format:"RAW",
  4107. method:"GET",withCredentials:!0})};
  4108. g.gxN=function(d){var q;d.responseType&&d.responseType!=="text"?d.responseType==="arraybuffer"&&(q=Re(new Uint8Array(d.response))):q=d.responseText;return!q||q.length>2048?"":q.indexOf("https://")===0?q:""};
  4109. GE=function(d,q,T){q.match(Fif);return d(q,T).then(function(Y){var e=g.gxN(Y.xhr);return e?GE(d,e,T):Y.xhr})};
  4110. Wb=function(d,q,T){d=d===void 0?"":d;q=q===void 0?null:q;T=T===void 0?!1:T;g.YP.call(this);var Y=this;this.sourceUrl=d;this.isLivePlayback=T;this.qk=this.duration=0;this.isPremiere=this.uC=this.T=this.isLiveHeadPlayable=this.isLive=this.U=!1;this.rH=this.QX=0;this.isOtf=this.aN=!1;this.aU=(0,g.cj)();this.lr=Infinity;this.G={};this.j=new Map;this.state=this.v4=0;this.timeline=null;this.isManifestless=!1;this.yv=[];this.X=null;this.z2=0;this.S="";this.dO=NaN;this.rO=this.Qp=this.timestampOffset=this.L=
  4111. 0;this.Gr=this.m1=NaN;this.vF=0;this.RU=this.K=!1;this.xx=[];this.AF={};this.UD=NaN;this.fC={qir:function(J){Ly(Y,J)}};
  4112. var e;this.Fw=(e=q)==null?void 0:e.Wv("html5_use_network_error_code_enums");NCN=!!q&&q.Wv("html5_modern_vp9_mime_type");var U;kw=!((U=q)==null||!U.Wv("html5_enable_flush_during_seek"))&&g.WL();var b;Pb=!((b=q)==null||!b.Wv("html5_enable_reset_audio_decoder"))&&g.WL()};
  4113. R0H=function(d){return g.q$(d.G,function(q){return!!q.info.video&&q.info.video.qualityOrdinal>=2160})};
  4114. nuX=function(d){return g.q$(d.G,function(q){return!!q.info.video&&q.info.video.isHdr()})};
  4115. WI=function(d){return g.q$(d.G,function(q){return!!q.info.ac})};
  4116. g.xF_=function(d){return g.q$(d.G,function(q){return iW(q.info.mimeType)})};
  4117. yeY=function(d){return g.q$(d.G,function(q){return q.info.video?q.info.video.projectionType==="EQUIRECTANGULAR":!1})};
  4118. h0g=function(d){return g.q$(d.G,function(q){return q.info.video?q.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})};
  4119. HkQ=function(d){return g.q$(d.G,function(q){return q.info.video?q.info.video.projectionType==="MESH":!1})};
  4120. QpD=function(d){return g.q$(d.G,function(q){return q.info.video?q.info.video.stereoLayout===1:!1})};
  4121. M17=function(d){return BIf(d.G,function(q){return q.info.video?q.gV():!0})};
  4122. LY=function(d){return g.q$(d.G,function(q){return lt(q.zG.G)})};
  4123. Ly=function(d,q){d.G[q.info.id]=q;d.j.set(SL(g.DB(q.info,d.aN)),q)};
  4124. De=function(d,q,T){T=T===void 0?0:T;var Y=d.mimeType||"",e=d.itag;var U=d.xtags;e=e?e.toString():"";U&&(e+=";"+U);U=e;if(zL(Y)){var b=d.width||640;e=d.height||360;var J=d.fps,F=d.qualityLabel,N=d.colorInfo,R=d.projectionType,x;d.stereoLayout&&(x=ce7[d.stereoLayout]);var y=spD(d)||void 0;if(N==null?0:N.primaries)var h=ExY[N.primaries]||void 0;b=new OJ(b,e,J,R,x,void 0,F,y,h);Y=Cy(Y,b,tQ[d.itag||""]);kw&&(Y+="; enableflushduringseek=true");Pb&&(Y+="; enableresetaudiodecoder=true")}var H;if(wP(Y)){var a=
  4125. d.audioSampleRate;x=d.audioTrack;a=new AQ(a?+a:void 0,d.audioChannels,d.spatialAudioType,d.isDrc,d.loudnessDb,d.trackAbsoluteLoudnessLkfs,d.audioQuality||"AUDIO_QUALITY_UNKNOWN",d.isVb);x&&(h=x.displayName,e=x.id,x=x.audioIsDefault,h&&(H=new g.Ky(h,e||"",!!x)))}var p;d.captionTrack&&(F=d.captionTrack,x=F.displayName,h=F.vssId,e=F.languageCode,J=F.kind,F=F.id,x&&h&&e&&(p=new Xl6(x,h,e,J,d.xtags,F)));x=Number(d.bitrate)/8;h=Number(d.contentLength);e=Number(d.lastModified);F=d.drmFamilies;J=d.type;T=
  4126. T&&h?h/T:0;d=Number(d.approxDurationMs);if(q&&F){var t={};F=g.E(F);for(N=F.next();!N.done;N=F.next())(N=uP[N.value])&&(t[N]=q[N])}return new BH(U,Y,{audio:a,video:b,DQ:H,ac:t,Vv:x,wx:T,contentLength:h,lastModified:e,captionTrack:p,streamType:J,approxDurationMs:d})};
  4127. wT=function(d,q,T){T=T===void 0?0:T;var Y=d.type;var e=d.itag;var U=d.xtags;U&&(e=d.itag+";"+U);if(zL(Y)){var b=(d.size||"640x360").split("x");b=new OJ(+b[0],+b[1],+d.fps,d.projection_type,+d.stereo_layout,void 0,d.quality_label,d.eotf,d.primaries);Y=Cy(Y,b,tQ[d.itag]);kw&&(Y+="; enableflushduringseek=true");Pb&&(Y+="; enableresetaudiodecoder=true")}var J;if(wP(Y)){var F=new AQ(+d.audio_sample_rate||void 0,+d.audio_channels||0,d.spatial_audio_type,!!d.drc);d.name&&(J=new g.Ky(d.name,d.audio_track_id,
  4128. d.isDefault==="1"))}var N;d.caption_display_name&&d.caption_vss_id&&d.caption_language_code&&(N=new Xl6(d.caption_display_name,d.caption_vss_id,d.caption_language_code,d.caption_kind,d.xtags,d.caption_id));U=Number(d.bitrate)/8;var R=Number(d.clen),x=Number(d.lmt);T=T&&R?R/T:0;if(q&&d.drm_families){var y={};for(var h=g.E(d.drm_families.split(",")),H=h.next();!H.done;H=h.next())H=H.value,y[H]=q[H]}return new BH(e,Y,{audio:F,video:b,DQ:J,ac:y,Vv:U,wx:T,contentLength:R,lastModified:x,captionTrack:N,
  4129. streamType:d.stream_type,approxDurationMs:Number(d.approx_duration_ms)})};
  4130. jpY=function(d){return D7(d,function(q){return"FORMAT_STREAM_TYPE_OTF"===q.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
  4131. a22=function(d){return D7(d,function(q){return"FORMAT_STREAM_TYPE_OTF"===q.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
  4132. AeN=function(d,q){return d.timeline?LB(d.timeline.T,q):d.yv.length?LB(d.yv,q):[]};
  4133. fy=function(d,q,T){q=q===void 0?"":q;T=T===void 0?"":T;d=new g.Ig(d,!0);d.set("alr","yes");T&&(T=m_Y(decodeURIComponent(T)),d[X[5]](q,encodeURIComponent(T)));return d};
  4134. nxH=function(d,q){var T=NG(q,"id");T=T.replace(":",";");var Y=NG(q,"mimeType"),e=NG(q,"codecs");Y=e?Y+'; codecs="'+e+'"':Y;e=Number(NG(q,"bandwidth"))/8;var U=Number(Rd(q,"BaseURL").getAttribute(d.S+":contentLength")),b=d.duration&&U?U/d.duration:0;if(zL(Y)){var J=Number(NG(q,"width"));var F=Number(NG(q,"height")),N=Number(NG(q,"frameRate")),R=plH(NG(q,d.S+":projectionType"));a:switch(NG(q,d.S+":stereoLayout")){case "layout_left_right":var x=1;break a;case "layout_top_bottom":x=2;break a;default:x=
  4135. 0}J=new OJ(J,F,N,R,x)}if(wP(Y)){var y=Number(NG(q,"audioSamplingRate"));var h=Number(NG(q.getElementsByTagName("AudioChannelConfiguration")[0],"value"));F=Zk7(NG(q,d.S+":spatialAudioType"));y=new AQ(y,h,F);a:{h=NG(q,"lang")||"und";if(F=Rd(q,"Role"))if(R=NG(F,"value")||"",g.sN(OkD,R)){F=h+"."+OkD[R];N=R==="main";d=NG(q,d.S+":langName")||h+" - "+R;h=new g.Ky(d,F,N);break a}h=void 0}}if(q=Rd(q,"ContentProtection"))if(q.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var H={};for(q=
  4136. q.firstChild;q!=null;q=q.nextSibling)q instanceof Element&&/SystemURL/.test(q.nodeName)&&(d=q.getAttribute("type"),F=q.textContent,d&&F&&(H[d]=F.trim()))}else H=void 0;return new BH(T,Y,{audio:y,video:J,DQ:h,ac:H,Vv:e,wx:b,contentLength:U})};
  4137. plH=function(d){switch(d){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"}};
  4138. Zk7=function(d){switch(d){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"}};
  4139. t1D=function(d,q){q=q===void 0?"":q;d.state=1;d.aU=(0,g.cj)();return $F2(q||d.sourceUrl).then(function(T){if(!d.JF()){d.v4=T.status;T=T.responseText;var Y=new DOMParser;T=An(Y,PZ1(T),"text/xml").getElementsByTagName("MPD")[0];d.lr=GLN(NG(T,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(T.attributes){Y=g.E(T.attributes);for(var e=Y.next();!e.done;e=Y.next())if(e=e.value,e.value==="http://youtube.com/yt/2012/10/10"){Y=e.name.split(":")[1];break b}}Y=""}d.S=Y;d.isLive=d.lr<Infinity&&d.isLivePlayback;d.qk=
  4140. Number(NG(T,d.S+":earliestMediaSequence"))||0;if(Y=Date.parse(L17(NG(T,d.S+":mpdResponseTime"))))d.z2=((0,g.cj)()-Y)/1E3;d.isLive&&T.getElementsByTagName("SegmentTimeline").length<=0||g.h0(T.getElementsByTagName("Period"),d.HH2,d);d.state=2;d.publish("loaded");rej(d)}return d}).C8(function(T){if(T instanceof cL){var Y=T.xhr;
  4141. d.v4=Y.status}d.state=3;d.publish("loaderror");return nK(Y)})};
  4142. BCX=function(d,q,T){return t1D(new Wb(d,q,T),d)};
  4143. zE=function(d){return d.isLive&&(0,g.cj)()-d.aU>=d.lr};
  4144. Kif=function(d){d.X&&d.X.stop()};
  4145. rej=function(d){var q=d.lr;isFinite(q)&&(zE(d)?d.refresh():(q=Math.max(0,d.aU+q-(0,g.cj)()),d.X||(d.X=new g.f9(d.refresh,q,d),g.C(d,d.X)),d.X.start(q)))};
  4146. G51=function(d){d=d.G;for(var q in d){var T=d[q].index;if(T.isLoaded())return T.nC()+1}return 0};
  4147. iP=function(d){return d.Qp?d.Qp-(d.L||d.timestampOffset):0};
  4148. Id=function(d){return d.rO?d.rO-(d.L||d.timestampOffset):0};
  4149. mF=function(d){if(!isNaN(d.dO))return d.dO;var q=d.G,T;for(T in q){var Y=q[T].index;if(Y.isLoaded()&&!iW(q[T].info.mimeType)){q=0;for(T=Y.Db();T<=Y.nC();T++)q+=Y.getDuration(T);q/=Y.Od();q=Math.round(q/.5)*.5;Y.Od()>10&&(d.dO=q);return q}if(d.isLive&&(Y=q[T],Y.W3))return Y.W3}return NaN};
  4150. LiD=function(d,q){d=G7D(d.G,function(Y){return Y.index.isLoaded()});
  4151. if(!d)return NaN;d=d.index;var T=d.yg(q);return d.getStartTime(T)===q?q:T<d.nC()?d.getStartTime(T+1):NaN};
  4152. k5g=function(d,q){if(!d.G["0"]){var T=new BH("0","fakesb",{video:new OJ(0,0,0,void 0,void 0,"auto")});d.G["0"]=q?new Fo(new g.Ig("http://www.youtube.com/videoplayback"),T,"fake"):new Bb(new g.Ig("http://www.youtube.com/videoplayback"),T,new vt(0,0),new vt(0,0))}};
  4153. Su=function(d){if(d.isManifestless)for(var q in d.G)d.G[q].index.segments=[]};
  4154. lP=function(d,q,T){for(var Y in d.G){var e=iW(d.G[Y].info.mimeType)||d.G[Y].info.eh();if(T===e&&(e=d.G[Y].index)!=null){var U=Hb(e,q);U>=0&&e.segments.splice(U,1)}}};
  4155. PND=function(d){for(var q in d.G)iW(d.G[q].info.mimeType)||Do2(d.G[q].index,Infinity)};
  4156. vb=function(d,q,T){for(var Y in d.G){var e=d.G[Y].index,U=q,b=T;e.RF&&(U&&(e.z3=Math.max(e.z3,U)),b&&(e.Dt=Math.max(e.Dt||0,b)))}T&&(d.UD=T/1E3)};
  4157. Wig=function(d){d.rO=0;d.Qp=0;d.vF=0};
  4158. od=function(d){return d.RU&&d.isManifestless?d.isLiveHeadPlayable:d.isLive};
  4159. Cy=function(d,q,T){V8===null&&(V8=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(NCN&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return V8||T!=="9"&&T!=="("?V8||T!=="9h"&&T!=="(h"||(d='video/webm; codecs="vp9.2"'):d='video/webm; codecs="vp9"',d;if(!V8&&!d6||d!=='video/webm; codecs="vp9"'&&d!=='video/webm; codecs="vp9.2"')return d;
  4160. T="00";var Y="08",e="01",U="01",b="01";d==='video/webm; codecs="vp9.2"'&&(T="02",Y="10",q.primaries==="bt2020"&&(b=e="09"),q.G==="smpte2084"&&(U="16"),q.G==="arib-std-b67"&&(U="18"));return'video/webm; codecs="'+["vp09",T,"51",Y,"01",e,U,b,"00"].join(".")+'"'};
  4161. TH=function(d,q,T){d=""+d+(q>49?"p60":q>32?"p48":"");q=HI()[d];if(q!=null&&q>0)return q;q=qd.get(d);if(q!=null&&q>0)return q;T=T==null?void 0:T.get(d);return T!=null&&T>0?T:8192};
  4162. CN_=function(d){this.Mk=d;this.zq=this.Mf=this.z2=this.S=this.T=this.xx=this.RU=this.lr=!1;this.L=this.X=0;this.Fw=!1;this.UD=!0;this.AF=!1;this.hq=0;this.qr=this.yv=!1;this.pC=!0;this.aU=this.dO=!1;this.G={};this.fn=this.lF=this.Ln=this.disableAv1=this.kx=this.wk=this.Bv=this.wO=this.U=this.B=!1;this.zX=this.Mk.N("html5_disable_aac_preference");this.ev=Infinity;this.rO=0;this.vF=this.Mk.uF();this.Qp=this.Mk.experiments.Wv("html5_enable_vp9_fairplay");this.V5=this.Mk.N("html5_force_av1_for_testing");
  4163. this.qk=g.Yv(this.Mk.experiments,"html5_av1_ordinal_cap");this.ST=this.Mk.N("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.LC=this.Mk.N("html5_account_onesie_format_selection_during_format_filter");this.Vv=g.Yv(this.Mk.experiments,"html5_max_byterate");this.q5=this.Mk.N("html5_enable_iamf_audio");this.gk=this.Mk.experiments.Wv("html5_allow_capability_merge");this.qC=this.Mk.N("html5_enable_encrypted_av1")};
  4164. r8N=function(d){if(d.RU)return["f"];if(g.kA("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var q=["9h","9","h","8"];d.qC&&q.push("1e");q=q.concat(["(h","(","H","*"]);d.yv&&(q.unshift("1"),q.unshift("1h"));d.Mf&&q.unshift("h");d.K&&(q=(uD_[d.K]||[d.K]).concat(q));return q};
  4165. j5H=function(d){var q=["o","a","A"];d.rO===1&&(d.T&&(q=["mac3","MAC3"].concat(q)),d.S&&(q=["meac3","MEAC3"].concat(q)),d.q5&&(q=["i","I"].concat(q)));d.lr&&(q=["so","sa"].concat(q));!d.zq||d.z2||d.j||d.zX||q.unshift("a");d.j&&(q=(uD_[d.j]||[d.j]).concat(q));return q};
  4166. Y8=function(d,q,T,Y){q=q===void 0?{}:q;if(Y===void 0?0:Y)return q.disabled=1,0;if(fY(d.S,zG.AV1_CODECS)&&fY(d.S,zG.HEIGHT)&&fY(d.S,zG.BITRATE))return q.isCapabilityUsable=1,8192;try{var e=elf();if(e&&!d.N("disable_av1_setting"))return q.localPref=e}catch(J){}Y=1080;e=navigator.hardwareConcurrency;e<=2&&(Y=480);q.coreCount=e;if(e=g.Yv(d.experiments,"html5_default_av1_threshold"))Y=q["default"]=e;!d.N("html5_disable_av1_arm_check")&&cfQ()&&(q.isArm=1,Y=240);if(d=d.S.UD)q.mcap=d,Y=Math.max(Y,d);if(T){var U,
  4167. b;if(d=(U=T.videoInfos.find(function(J){return kV(J)}))==null?void 0:(b=U.U)==null?void 0:b.powerEfficient)Y=8192,q.isEfficient=1;
  4168. T=T.videoInfos[0].video;U=Math.min(TH("1",T.fps),TH("1",30));q.perfCap=U;Y=Math.min(Y,U);T.isHdr()&&!d&&(q.hdr=1,Y*=.75)}else T=TH("1",30),q.perfCap30=T,Y=Math.min(Y,T),T=TH("1",60),q.perfCap60=T,Y=Math.min(Y,T);return q.av1Threshold=Y};
  4169. eJ=function(d,q,T,Y){this.flavor=d;this.keySystem=q;this.U=T;this.experiments=Y;this.G={};this.qk=this.keySystemAccess=null;this.LL=this.Fc=-1;this.zr=null;this.j=!!Y&&Y.Wv("edge_nonprefixed_eme");Y&&Y.Wv("html5_enable_vp9_fairplay")};
  4170. be=function(d){return d.j?!1:!d.keySystemAccess&&!!U4()&&d.keySystem==="com.microsoft.playready"};
  4171. Xv=function(d){return d.keySystem==="com.microsoft.playready"};
  4172. Jj=function(d){return!d.keySystemAccess&&!!U4()&&d.keySystem==="com.apple.fps.1_0"};
  4173. s4=function(d){return d.keySystem==="com.youtube.fairplay"};
  4174. $8=function(d){return d.keySystem==="com.youtube.fairplay.sbdl"};
  4175. g.g6=function(d){return d.flavor==="fairplay"};
  4176. U4=function(){var d=window,q=d.MSMediaKeys;Dq()&&!q&&(q=d.WebKitMediaKeys);return q&&q.isTypeSupported?q:null};
  4177. Nd=function(d){return navigator.requestMediaKeySystemAccess?g.MI&&!g.WL()?Qy("45"):g.DP||g.Jx?d.Wv("edge_nonprefixed_eme"):g.Fv?Qy("47"):g.F8&&d.Wv("html5_enable_safari_fairplay")?!1:!0:!1};
  4178. DF_=function(d,q,T,Y){var e=CZ(),U=(T=e||T&&Dq())?["com.youtube.fairplay"]:["com.widevine.alpha"];q&&U.unshift("com.youtube.widevine.l3");e&&Y&&U.unshift("com.youtube.fairplay.sbdl");return T?U:d?[].concat(g.RQ(U),g.RQ(R9.playready)):[].concat(g.RQ(R9.playready),g.RQ(U))};
  4179. x8=function(d,q,T,Y,e){Y=Y===void 0?!1:Y;g.W.call(this);this.Mk=q;this.useCobaltWidevine=Y;this.oU=e;this.U=[];this.j={};this.G={};this.callback=null;this.S=!1;this.T=[];this.initialize(d,!T)};
  4180. f2f=function(d,q){d.callback=q;d.T=[];Nd(d.Mk.experiments)?yU(d):wln(d)};
  4181. yU=function(d){if(!d.JF())if(d.U.length===0)d.callback(d.T);else{var q=d.U[0],T=d.j[q],Y=z0H(d,T);if(hj&&hj.keySystem===q&&hj.reZ===JSON.stringify(Y))d.oU("remksa",{re:!0}),ikg(d,T,hj.keySystemAccess);else{var e,U;d.oU("remksa",{re:!1,ok:(U=(e=hj)==null?void 0:e.keySystem)!=null?U:""});hj=void 0;navigator.requestMediaKeySystemAccess(q,Y).then(wg(function(b){ikg(d,T,b,Y)}),wg(function(){d.S=!d.S&&d.j[d.U[0]].flavor==="widevine";
  4182. d.S||d.U.shift();yU(d)}))}}};
  4183. ikg=function(d,q,T,Y){if(!d.JF()){Y&&(hj={keySystem:q.keySystem,keySystemAccess:T,reZ:JSON.stringify(Y)});q.keySystemAccess=T;if(Xv(q)){T=HH();Y=g.E(Object.keys(d.G[q.flavor]));for(var e=Y.next();!e.done;e=Y.next())e=e.value,q.G[e]=!!T.canPlayType(e)}else{T=q.keySystemAccess.getConfiguration();if(T.audioCapabilities)for(Y=g.E(T.audioCapabilities),e=Y.next();!e.done;e=Y.next())q.G[e.value.contentType]=!0;if(T.videoCapabilities)for(T=g.E(T.videoCapabilities),Y=T.next();!Y.done;Y=T.next())q.G[Y.value.contentType]=
  4184. !0}d.T.push(q);d.useCobaltWidevine||d.N("html5_enable_vp9_fairplay")&&$8(q)?(d.U.shift(),yU(d)):d.callback(d.T)}};
  4185. z0H=function(d,q){var T={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(d.N("html5_enable_vp9_fairplay")&&s4(q))return T.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),T.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[T];Xv(q)&&(T.initDataTypes=["keyids","cenc"]);for(var Y=g.E(Object.keys(d.G[q.flavor])),e=Y.next();!e.done;e=Y.next()){e=e.value;var U=e.indexOf("audio/")===0,b=U?T.audioCapabilities:T.videoCapabilities;q.flavor!==
  4186. "widevine"||d.S?b.push({contentType:e}):U?b.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.MI&&g.kA("windows nt")&&!d.N("html5_drm_enable_moho")||b.push({contentType:e,robustness:"HW_SECURE_ALL"}),U=e,d.Mk.S.j&&e.includes("vp09")&&(U=e+"; experimental=allowed"),b.push({contentType:U,robustness:"SW_SECURE_DECODE"}),Hx(d.Mk)==="MWEB"&&(m9()||PL())&&(d.oU("swcrypto",{}),b.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[T]};
  4187. wln=function(d){if(U4()&&(g.F8||fZ))d.T.push(new eJ("fairplay","com.apple.fps.1_0","",d.Mk.experiments));else{var q=I2g(),T=g.QN(d.U,function(Y){var e=d.j[Y],U=!1,b=!1,J;for(J in d.G[e.flavor])q(J,Y)&&(e.G[J]=!0,U=U||J.indexOf("audio/")===0,b=b||J.indexOf("video/")===0);return U&&b});
  4188. T&&d.T.push(d.j[T]);d.U=[]}d.callback(d.T)};
  4189. I2g=function(){var d=U4();if(d){var q=d.isTypeSupported;return function(Y,e){return q(e,Y)}}var T=HH();
  4190. return T&&(T.addKey||T.webkitAddKey)?function(Y,e){return!!T.canPlayType(Y,e)}:function(){return!1}};
  4191. mFI=function(d){this.experiments=d;this.G=2048;this.T=0;this.lr=(this.L=this.N("html5_streaming_resilience"))?.5:.25;var q=q===void 0?0:q;this.j=g.Yv(this.experiments,"html5_media_time_weight_prop")||q;this.K=(this.S=this.experiments.Wv("html5_consider_end_stall"))&&QU;this.U=this.experiments.Wv("html5_measure_max_progress_handling");this.B=this.N("html5_treat_requests_pre_elbow_as_metadata");this.X=this.N("html5_media_time_weight")||!!this.j;this.N("html5_sabr_live_audio_early_return_fix")&&QU&&
  4192. (this.G=65536)};
  4193. SX6=function(d,q){this.G=void 0;this.experimentIds=d?d.split(","):[];this.flags=mR(q||"","&");d={};q=g.E(this.experimentIds);for(var T=q.next();!T.done;T=q.next())d[T.value]=!0;this.experiments=d};
  4194. g.Yv=function(d,q){d=d.flags[q];JSON.stringify(d);return Number(d)||0};
  4195. Md=function(d,q){return(d=d.flags[q])?d.toString():""};
  4196. l2f=function(d){if(d=d.flags.html5_web_po_experiment_ids)if(d=d.replace(/\[ *(.*?) *\]/,"$1"))return d.split(",").map(Number);return[]};
  4197. vx_=function(d){if(d.G)return d.G;if(d.experimentIds.length<=1)return d.G=d.experimentIds,d.G;var q=[].concat(g.RQ(d.experimentIds)).map(function(Y){return Number(Y)});
  4198. q.sort();for(var T=q.length-1;T>0;--T)q[T]-=q[T-1];d.G=q.map(function(Y){return Y.toString()});
  4199. d.G.unshift("v1");return d.G};
  4200. V1D=function(d){return ox1.then(d)};
  4201. cx=function(d,q,T){this.experiments=d;this.rO=q;this.z2=T===void 0?!1:T;this.K=!!g.qx("cast.receiver.platform.canDisplayType");this.B={};this.lr=!1;this.T=new Map;this.L=!0;this.U=this.j=!1;this.G=new Map;this.UD=0;this.yv=this.experiments.Wv("html5_disable_vp9_encrypted");this.S=this.experiments.Wv("html5_enable_encrypted_av1");d=g.qx("cast.receiver.platform.getValue");this.X=!this.K&&d&&d("max-video-resolution-vpx")||null;dB1(this);this.j=!!(CZ()&&LZ()>=21)};
  4202. Ka2=function(d,q,T){T=T===void 0?1:T;var Y=q.itag;if(Y==="0")return!0;var e=q.mimeType;if(q.Cf==="1e"&&!d.S)return"dav1enc";if(kV(q)&&d.lr)return"dav1";if(q.video&&(q.video.isHdr()||q.video.primaries==="bt2020")&&!(fY(d,zG.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||window.screen.pixelDepth>24&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if(Y==="338"&&!(g.MI?Qy(53):g.Fv&&Qy(64)))return"dopus";var U=T;U=U===void 0?1:
  4203. U;T={};q.video&&(q.video.width&&(T[zG.WIDTH.name]=q.video.width),q.video.height&&(T[zG.HEIGHT.name]=q.video.height),q.video.fps&&(T[zG.FRAMERATE.name]=q.video.fps*U),q.video.G&&(T[zG.EOTF.name]=q.video.G),q.Vv&&(T[zG.BITRATE.name]=q.Vv*8*U),q.Cf==="("&&(T[zG.CRYPTOBLOCKFORMAT.name]="subsample"),q.video.projectionType==="EQUIRECTANGULAR"||q.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||q.video.projectionType==="MESH")&&(T[zG.DECODETOTEXTURE.name]="true");q.audio&&q.audio.numChannels&&
  4204. (T[zG.CHANNELS.name]=q.audio.numChannels);d.j&&Ke(q)&&(T[zG.EXPERIMENTAL.name]="allowed");U=g.E(Object.keys(zG));for(var b=U.next();!b.done;b=U.next()){b=zG[b.value];var J;if(J=T[b.name])if(J=!(b===zG.EOTF&&q.mimeType.indexOf("vp09.02")>0)){J=b;var F=q;J=!(d.experiments.Wv("html5_ignore_h264_framerate_cap")&&J===zG.FRAMERATE&&Kr7(F))}if(J)if(fY(d,b))if(d.X){if(d.X[b.name]<T[b.name])return b.name}else e=e+"; "+b.name+"="+T[b.name];else if(GL(q)&&b===zG.EOTF)return"dvp92"}d.K&&q.video&&q.video.qualityOrdinal>
  4205. 1080&&q.ac&&(e+="; hdcp=2.2");return Y==="227"?"hqcenc":Y!=="585"&&Y!=="588"&&Y!=="583"&&Y!=="586"&&Y!=="584"&&Y!=="587"&&Y!=="591"&&Y!=="592"||d.experiments.Wv("html5_enable_new_hvc_enc")?CZ()&&LZ()>=21&&g.kA("appletv5")&&(Y==="410"||Y==="845")?!0:d.isTypeSupported(e)?!0:"tpus":"newhvc"};
  4206. E4=function(){var d=PL()&&!Qy(29),q=g.kA("google tv")&&g.kA("chrome")&&!Qy(30);return d||q?!1:CEn()};
  4207. q_2=function(d,q,T){var Y=480;q=g.E(q);for(var e=q.next();!e.done;e=q.next()){e=e.value;var U=e.video.qualityOrdinal;U<=1080&&U>Y&&Ka2(d,e,T)===!0&&(Y=U)}return Y};
  4208. g.jJ=function(d,q){q=q===void 0?!1:q;return E4()&&d.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!q&&d.canPlayType(HH(),"application/x-mpegURL")?!0:!1};
  4209. Y_I=function(d){TUD(function(){for(var q=g.E(Object.keys(zG)),T=q.next();!T.done;T=q.next())fY(d,zG[T.value])})};
  4210. fY=function(d,q){q.name in d.B||(d.B[q.name]=ecf(d,q));return d.B[q.name]};
  4211. ecf=function(d,q){if(d.X)return!!d.X[q.name];if(q===zG.BITRATE&&d.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!d.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(q===zG.AV1_CODECS)return d.isTypeSupported("video/mp4; codecs="+q.valid)&&!d.isTypeSupported("video/mp4; codecs="+q.xl);if(q.video){var T='video/webm; codecs="vp9"';d.isTypeSupported(T)||(T='video/mp4; codecs="avc1.4d401e"')}else T='audio/webm; codecs="opus"',
  4212. d.isTypeSupported(T)||(T='audio/mp4; codecs="mp4a.40.2"');return d.isTypeSupported(T+"; "+q.name+"="+q.valid)&&!d.isTypeSupported(T+"; "+q.name+"="+q.xl)};
  4213. UB7=function(d,q){var T=0;d.T.has(q)&&(T=d.T.get(q).uU);d.T.set(q,{uU:T+1,bM:Math.pow(2,T+1)});d.U=!0};
  4214. CY=function(d){for(var q=[],T=g.E(d.G.keys()),Y=T.next();!Y.done;Y=T.next()){Y=Y.value;var e=d.G.get(Y);q.push(Y+"_"+e.maxWidth+"_"+e.maxHeight)}return q.join(".")};
  4215. A8D=function(d,q){for(var T=new Map,Y=g.E(d.G.keys()),e=Y.next();!e.done;e=Y.next()){e=e.value;var U=e.split("_")[0];q.has(U)||T.set(e,d.G.get(e))}d.G=T};
  4216. Zw7=function(d,q,T){var Y,e=((Y=T.video)==null?void 0:Y.fps)||0;Y=q+"_"+e;var U=!!T.audio,b={itag:T.itag,Cf:q,JE:U};if(U)b.numChannels=T.audio.numChannels;else{var J=T.video;b.maxWidth=J==null?void 0:J.width;b.maxHeight=J==null?void 0:J.height;b.maxFramerate=e;fY(d,zG.BITRATE)&&(b.maxBitrateBps=T.Vv*8);b.OE=J==null?void 0:J.isHdr()}J=d.G.get(Y);J?U||(T=Math.max(J.maxWidth||0,J.maxHeight||0)>Math.max(b.maxWidth||0,b.maxHeight||0)?J:b,q={itag:T.itag,Cf:q,JE:U,maxWidth:Math.max(J.maxWidth||0,b.maxWidth||
  4217. 0),maxHeight:Math.max(J.maxHeight||0,b.maxHeight||0),maxFramerate:e,OE:T.OE},fY(d,zG.BITRATE)&&(q.maxBitrateBps=T.maxBitrateBps),d.G.set(Y,q)):d.G.set(Y,b)};
  4218. OwI=function(d,q,T){var Y,e=((Y=T.video)==null?void 0:Y.fps)||0;Y=q+"_"+e;var U=!!T.audio,b=d.G.get(Y);a:{var J=d.G.get(Y),F=!!T.audio;if(J){if(F){var N=!1;break a}var R;if(!F&&((N=T.video)==null?0:N.height)&&J.maxHeight&&J.maxHeight>=((R=T.video)==null?void 0:R.height)){N=!1;break a}}N=!0}N&&(N=T.itag,q=b?b:{itag:N,Cf:q,JE:U},U?q.numChannels=T.audio.numChannels:(U=T.video,q.maxWidth=U==null?void 0:U.width,q.maxHeight=U==null?void 0:U.height,q.maxFramerate=e,fY(d,zG.BITRATE)&&(q.maxBitrateBps=T.Vv*
  4219. 8),q.OE=U==null?void 0:U.isHdr()),d.G.set(Y,q))};
  4220. dB1=function(d){var q;(q=navigator.mediaCapabilities)!=null&&q.decodingInfo&&navigator.mediaCapabilities.decodingInfo({type:"media-source",video:{contentType:'video/mp4; codecs="av01.0.12M.08"',width:3840,height:2160,bitrate:32E6,framerate:60}}).then(function(T){T.smooth&&T.powerEfficient&&(d.UD=2160)})};
  4221. a9=function(){g.YP.call(this);this.items={}};
  4222. Aj=function(d,q){this.G=d;this.cipher=this.G.exports.AES128CTRCipher_create(q.byteOffset)};
  4223. ZN=function(){this.U=this.oI=0;this.G=Array.from({length:pO.length}).fill(0)};
  4224. bdf=function(){};
  4225. XnQ=function(){this.startTimeMs=(0,g.cj)();this.G=!1};
  4226. JPn=function(){this.G=new bdf};
  4227. s0I=function(d,q,T,Y){Y=Y===void 0?1:Y;T>=0&&(q in d.G||(d.G[q]=new ZN),d.G[q].Z5(T,Y))};
  4228. $BY=function(d,q,T,Y,e){var U=(0,g.cj)(),b=e?e(q):void 0,J;e=(J=b==null?void 0:b.oI)!=null?J:1;if(e!==0){var F;J=(F=b==null?void 0:b.profile)!=null?F:T;s0I(d,J,U-Y,e)}return q};
  4229. gKN=function(d,q,T,Y,e){if(q&&typeof q==="object"){var U=function(b){return $BY(d,b,T,Y,e)};
  4230. if(Z4(q))return q.then(U);if(p0(q))return BN(q,U)}return $BY(d,q,T,Y,e)};
  4231. Fl_=function(){};
  4232. xB1=function(d,q){return GD(NUD,function(){var T=this;return function e(){var U,b,J;return Wg(e,function(F){switch(F.U){case 1:g.aQ(F,2);if(!T.T)throw"wasm.ps.ns";U=d;b=u_;return cg(F,L0(RcY(T,q)),4);case 4:J=b(F.G);if(!J)throw"wasm.ps.um";try{return F.return(new WebAssembly.Instance(J,U))}catch(N){}return cg(F,L0(WebAssembly.instantiate(J,U)),5);case 5:return F.return(F.G);case 2:g.KN(F),g.LN(F,0)}})}()})};
  4233. yPf=function(d,q){d.G||(d.G=BN(rg(function(){return fetch(q)}),function(T){return T.arrayBuffer()}),K0(d.G,function(T){d.G=void 0;
  4234. throw"wasm.ps.f: "+T;}))};
  4235. RcY=function(d,q){if(d.U)return d.U;d.U=hc7(d,q);K0(d.U,function(T){d.U=void 0;throw"wasm.ps.c: "+T;});
  4236. return d.U};
  4237. hc7=function(d,q){return GD(d,function(){var T=this;return function e(){var U,b,J,F,N,R,x,y,h,H,a,p,t,n;return Wg(e,function(K){switch(K.U){case 1:g.aQ(K,2);U=[];b=window.ywc;if(!b){K.tF(4);break}J=b[q];if(!J){K.tF(4);break}if(J.mod)return K.return(J.mod);if(!J.modP){K.tF(6);break}g.jD(K,7);F=u_;return cg(K,L0(J.modP),9);case 9:return K.return(F(K.G));case 7:g.nN(K),U.unshift("pcm");case 6:if(J.bin){T.G=OT(J.bin);K.tF(4);break}if(!J.binP){K.tF(4);break}g.jD(K,12);N=AH;R=OT;x=u_;return cg(K,L0(J.binP),
  4238. 14);case 14:T.G=R.call(N,x(K.G));g.ZX(K,4);break;case 12:g.nN(K),T.G=void 0,U.unshift("pfb");case 4:if(!T.G){K.tF(15);break}g.jD(K,16);y=u_;return cg(K,L0(T.G),18);case 18:h=y(K.G);if(T.j)try{return K.return(new WebAssembly.Module(h))}catch(P){T.j=!1,U.unshift("f0cs")}H=u_;return cg(K,L0(WebAssembly.compile(h)),19);case 19:return K.return(H(K.G));case 16:g.nN(K),T.G=void 0,U.unshift("f0ca");case 15:return g.jD(K,20),yPf(T,q),a=u_,cg(K,L0(T.G),22);case 22:p=a(K.G);if(T.j)try{return K.return(new WebAssembly.Module(p))}catch(P){T.j=
  4239. !1,U.unshift("f1cs")}t=u_;return cg(K,L0(WebAssembly.compile(p)),23);case 23:return K.return(t(K.G));case 20:n=g.nN(K),T.G=void 0,T.T=!1,U.unshift("f1ca: "+n);case 21:throw"["+U.map(function(P){return'"'+P+'"'}).join(", ")+"]";
  4240. case 2:g.KN(K),g.LN(K,0)}})}()})};
  4241. Hd_=function(){};
  4242. Q0j=function(){var d=this;this.proc_exit=function(){};
  4243. this.fd_write=function(q,T,Y){if(!d.exports)return 1;q=new Uint32Array(d.exports.memory.buffer,T,Y*2);T=[];for(var e=0;e<Y;++e){var U=new Uint8Array(d.exports.memory.buffer,q[e*2],q[e*2+1]);U=g.yA(U);T.push(U)}return T.reduce(function(b,J){return b+J.length},0)}};
  4244. Mdf=function(){this.env=new Hd_;this.wasi_snapshot_preview1=new Q0j};
  4245. O4=function(d,q,T){this.instance=d;this.G=T;this.exports=this.instance.exports;q.wasi_snapshot_preview1.exports=this.exports;d=Math.floor(Math.random()*256);q=Math.floor(Math.random()*256);T=0;try{T=this.exports.malloc(16);(new Uint8Array(this.exports.memory.buffer,T,16)).fill(d);if(this.exports.sentinel(T,16,q)!==q*16%256)throw"wasm.wm.vi";for(var Y=new Uint8Array(this.exports.memory.buffer,T,16),e=0;e<16;e++)if(Y[e]!==(d+q)%256)throw"wasm.wm.vi"+e;}finally{T!==0&&this.exports.free(T)}};
  4246. cP7=function(d,q,T){var Y=Y===void 0?!0:Y;return GD(void 0,function(){return function U(){var b,J,F,N,R,x,y,h,H,a,p,t,n,K,P,w,l,m;return Wg(U,function(b_){switch(b_.U){case 1:g.aQ(b_,2);b=nO.ji();if(!(d&&r6||q))return F={},(J=T)==null||J("wasmns",(F.p=d?"1":"0",F.a=q?"1":"0",F.s=r6?"1":"0",F)),b_.return(n0(Error("wasm.wm.ns")));N=new Mdf;if(!d){b_.tF(4);break}g.jD(b_,5);R=u_;return cg(b_,L0(xB1(N,d)),7);case 7:return x=R(b_.G),y=new O4(x,N,!1,Y),nO.Ed("winit",b),(h=T)==null||h("wasmsw",{}),b_.return(y);
  4247. case 5:if(H=g.nN(b_),p={},(a=T)==null||a("wasmerrw",(p.e=""+H,p)),!q)throw Error("wasm.wm.iw: "+H);case 4:if(!q)throw Error("wasm.wm.xx");g.jD(b_,8);t=u_;return cg(b_,L0(q(N)),10);case 10:return n=t(b_.G),K=new O4({exports:n},N,!0,Y),nO.Ed("winitjs",b),(P=T)==null||P("wasmsa",{}),b_.return(K);case 8:throw w=g.nN(b_),m={},(l=T)==null||l("wasmerra",(m.e=""+w,m)),Error("wasm.wm.ia: "+w);case 2:g.KN(b_),g.LN(b_,0)}})}()})};
  4248. tj=function(d,q,T){this.G=d;this.j=!1;q=this.G.rZ(q);this.U=new Aj(d,q);this.G.free(q.byteOffset);this.T=this.G.rZ(T)};
  4249. EKQ=function(d,q,T){T=d.G.rZ(T);var Y=d.U;Y.G.exports.AES128CTRCipher_setCounter(Y.cipher,T.byteOffset);d.G.free(T.byteOffset);q=d.G.rZ(q);d.U.encrypt(q);return q};
  4250. j0_=function(d,q,T){g.W.call(this);this.encryptedClientKey=q;this.X=T;this.U=new Uint8Array(d.buffer,0,16);this.j=new Uint8Array(d.buffer,16)};
  4251. aDD=function(d){d.T||(d.T=new g.FN(d.U));return d.T};
  4252. Bx=function(d){try{return ZV(d)}catch(q){return null}};
  4253. AP2=function(d,q){g.W.call(this);if(!q&&d)try{q=JSON.parse(d)}catch(e){}if(q){d=q.clientKey?Bx(q.clientKey):null;var T=q.encryptedClientKey?Bx(q.encryptedClientKey):null,Y=q.keyExpiresInSeconds?Number(q.keyExpiresInSeconds)*1E3+(0,g.cj)():null;d&&T&&Y&&(this.G=new j0_(d,T,Y),g.C(this,this.G));q.onesieUstreamerConfig&&(this.onesieUstreamerConfig=Bx(q.onesieUstreamerConfig)||void 0);this.baseUrl=q.baseUrl}};
  4254. GH=function(){this.data=new Uint8Array(2048);this.pos=0;KO||(KO=QA("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))};
  4255. LO=function(d,q){d.add(q==null||isNaN(q)?0:q+1)};
  4256. k8=function(d){this.G=this.U=0;this.alpha=Math.exp(Math.log(.5)/d)};
  4257. Px=function(d){this.U=d===void 0?15:d;this.values=new Float64Array(176);this.G=new Float64Array(11);this.j=new Float64Array(16)};
  4258. Wx=function(d,q,T,Y){T=T===void 0?.5:T;Y=Y===void 0?0:Y;this.resolution=q;this.U=0;this.j=!1;this.eP=!0;this.G=Math.round(d*this.resolution);this.values=Array(this.G);for(d=0;d<this.G;d++)this.values[d]=Infinity;this.S=pn_(this);this.T=T;this.X=Y};
  4259. pn_=function(d){for(var q=Array(d.G),T=0;T<d.G;T++)q[T]=T;return q};
  4260. CO=function(d,q,T){g.W.call(this);this.policy=d;this.U=q;this.h1=T;this.yv=this.qk=0;this.UD=-1;this.rO=this.S=0;this.lr=!1;this.interruptions=[];this.T=[{stamp:0,net:0,max:0}];this.aU=this.X=(0,g.cj)();this.B=new Wx(4,1,.6,.4);this.z2=new Wx(4,1,.6,.4);this.L=new Wx(20,1,.5,.4);d.UD?this.j=new Px(d.G):d.U?this.j=new k8(d.G):this.j=new Wx(d.G,20,.5,.4);this.dO=new Wx(5,1,.25);this.K=new Wx(30,1,.5);d=g.Zs("yt-player-bandwidth")||{};q=this.policy.j;if(d.byterate>0)q=d.byterate,this.lr=!0;else{var Y;
  4261. T=(((Y=navigator.connection)==null?void 0:Y.downlink)||0)*64*1024;T>0&&(q=T,this.lr=!0)}this.j.gH(this.policy.X,q);d.delay>0&&this.B.gH(1,Math.min(d.delay,2));d.stall>0&&this.L.gH(1,d.stall);d.init>0&&(this.aU=Math.min(d.init,this.aU));d.interruptions&&(this.T=this.T.concat(d.interruptions),this.T.length>16&&this.T.pop());this.UD=(0,g.cj)();this.policy.L>0&&(this.RU=new g.f9(this.xx,this.policy.L,this),g.C(this,this.RU),this.RU.start())};
  4262. ue=function(d,q,T,Y){d.j.gH(Y===void 0?q:Y,T/q);d.X=(0,g.cj)()};
  4263. ZdI=function(d){d.S||(d.S=(0,g.cj)());d.policy.K&&(d.X=(0,g.cj)())};
  4264. OdX=function(d,q){if(d.S){var T=q-d.S;if(T<6E4){if(T>1E3){var Y=d.interruptions;Y.push(Math.ceil(T));Y.sort(function(e,U){return U-e});
  4265. Y.length>16&&Y.pop()}d.rO+=T}}d.S=q};
  4266. DN=function(d,q,T,Y,e,U){U=U===void 0?!1:U;d.dO.gH(q,T/q);d.X=(0,g.cj)();e||d.K.gH(1,q-Y);U||(d.S=0);d.UD>-1&&(0,g.cj)()-d.UD>3E4&&nKH(d)};
  4267. w6=function(d,q,T){q=Math.max(q,d.U.G);d.L.gH(1,T/q)};
  4268. fO=function(d){d=d.B.W4()+d.z2.W4()||0;d=isNaN(d)?.5:d;return d=Math.min(d,5)};
  4269. zH=function(d,q,T){isNaN(T)||(d.yv+=T);isNaN(q)||(d.qk+=q)};
  4270. ie=function(d){d=d.j.W4();return d>0?d:1};
  4271. I9=function(d,q,T){q=q===void 0?!1:q;T=T===void 0?1048576:T;var Y=ie(d);Y=1/((d.L.W4()||0)*d.policy.lr+1/Y);var e=d.dO.W4();e=e>0?e:1;var U=Math.max(Y,e);d.policy.S>0&&e<Y&&(U=Math.min(d.policy.S,1),U=(1-U)*Y+U*e);if(!q)return U;q=1E-9+fO(d);T=U*Math.min(1,T/(U*q));d.policy.T||(d=((d.K.percentile(.98)||0)-1)/2,d=Math.max(0,Math.min(1,d)),T*=1-.5*d);return T};
  4272. rP1=function(d){var q={delay:fO(d),stall:d.L.W4()||0,byterate:ie(d),init:d.aU},T=d.T[0];T.stamp=Math.round(d.X/36E5)*36E5;T.net=Math.ceil(d.rO);T.max=d.interruptions[0]||0;q.interruptions=d.T;return q};
  4273. nKH=function(d){var q=rP1(d);g.pW("yt-player-bandwidth",q,2592E3);d.UD=(0,g.cj)();d.lr=!0};
  4274. mz=function(d){return(0,g.cj)()-d.X>=4E3};
  4275. tdf=function(d){this.experiments=d;this.G=17;this.j=13E4;this.X=.5;this.T=this.U=!1;this.UD=this.N("html5_use_histogram_for_bandwidth");this.S=g.Yv(this.experiments,"html5_auxiliary_estimate_weight");this.lr=g.Yv(this.experiments,"html5_stall_factor")||1;this.L=g.Yv(this.experiments,"html5_check_for_idle_network_interval_ms");this.B=this.experiments.Wv("html5_trigger_loader_when_idle_network");this.K=this.experiments.Wv("html5_sabr_fetch_on_idle_network_preloaded_players")};
  4276. KlY=function(d,q){d=d===void 0?{}:d;q=q===void 0?{}:q;g.W.call(this);var T=this;this.values=d;this.OQ=q;this.U={};this.j=this.G=0;this.T=new g.f9(function(){BUI(T)},1E4);
  4277. g.C(this,this.T)};
  4278. SJ=function(d,q){Gug(d,q);return d.values[q]&&d.OQ[q]?d.values[q]/Math.pow(2,d.G/d.OQ[q]):0};
  4279. Gug=function(d,q){d.values[q]||(q=do7(),d.values=q.values||{},d.OQ=q.halfLives||{},d.U=q.values?Object.assign({},q.values):{})};
  4280. BUI=function(d){var q=do7();if(q.values){q=q.values;for(var T={},Y=g.E(Object.keys(d.values)),e=Y.next();!e.done;e=Y.next())e=e.value,q[e]&&d.U[e]&&(d.values[e]+=q[e]-d.U[e]),T[e]=SJ(d,e);d.U=T}q=d.OQ;T={};T.values=d.U;T.halfLives=q;g.pW("yt-player-memory",T,2592E3)};
  4281. Rn=function(d,q,T,Y,e){g.W.call(this);this.webPlayerContextConfig=q;this.If=Y;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Y1=this.fn=this.ST=this.wU=this.userDisplayName=this.userDisplayImage=this.E$="";this.G={};this.Qp={};this.controlsType="0";this.zq=NaN;this.Bv=!1;this.vA=(0,g.cj)();this.lF=0;this.Yz=this.m1=!1;this.PR=!0;this.preferGapless=this.zr=this.R6=this.j=this.Je=!1;this.gB=[];this.XF=!1;this.H1=0;d=d?g.x9(d):{};q&&q.csiPageType&&(this.csiPageType=q.csiPageType);q&&q.csiServiceName&&
  4282. (this.csiServiceName=q.csiServiceName);q&&q.preferGapless&&(this.preferGapless=q.preferGapless);this.experiments=new SX6(q?q.serializedExperimentIds:d.fexp,q?q.serializedExperimentFlags:d.fflags);this.forcedExperiments=q?q.serializedForcedExperimentIds:d8("",d.forced_experiments)||void 0;this.cspNonce=(q==null?0:q.cspNonce)?q.cspNonce:d8("",d.csp_nonce);this.N("web_player_deprecated_uvr_killswitch");try{var U=document.location.toString()}catch(b_){U=""}this.rA=U;this.ancestorOrigins=(Y=window.location.ancestorOrigins)?
  4283. Array.from(Y):[];this.T=vL(!1,q?q.isEmbed:d.is_embed);if(q&&q.device){if(Y=q.device,Y.androidOsExperience&&(this.G.caoe=""+Y.androidOsExperience),Y.androidPlayServicesVersion&&(this.G.capsv=""+Y.androidPlayServicesVersion),Y.brand&&(this.G.cbrand=Y.brand),Y.browser&&(this.G.cbr=Y.browser),Y.browserVersion&&(this.G.cbrver=Y.browserVersion),Y.cobaltReleaseVehicle&&(this.G.ccrv=""+Y.cobaltReleaseVehicle),this.G.c=Y.interfaceName||"WEB",this.G.cver=Y.interfaceVersion||"html5",Y.interfaceTheme&&(this.G.ctheme=
  4284. Y.interfaceTheme),this.G.cplayer=Y.interfacePlayerType||"UNIPLAYER",Y.model&&(this.G.cmodel=Y.model),Y.network&&(this.G.cnetwork=Y.network),Y.os&&(this.G.cos=Y.os),Y.osVersion&&(this.G.cosver=Y.osVersion),Y.platform&&(this.G.cplatform=Y.platform),U=Md(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),U==="all"||U==="once")Y.chipset&&(this.Qp.cchip=Y.chipset),Y.cobaltAppVersion&&(this.Qp.ccappver=Y.cobaltAppVersion),Y.firmwareVersion&&(this.Qp.cfrmver=Y.firmwareVersion),Y.deviceYear&&(this.Qp.crqyear=
  4285. Y.deviceYear)}else this.G.c=d.c||"web",this.G.cver=d.cver||"html5",this.G.cplayer="UNIPLAYER";this.loaderUrl=q?this.T||Ll2(this)&&q.loaderUrl?q.loaderUrl||"":this.rA:this.T||Ll2(this)&&d.loaderUrl?d8("",d.loaderUrl):this.rA;this.T&&g.Vf("yt.embedded_player.embed_url",this.loaderUrl);this.B=Dp(this.loaderUrl,ku_);Y=this.loaderUrl;var b=b===void 0?!1:b;this.W$=uG(Dp(Y,PuQ),Y,b,"Trusted Ad Domain URL");this.ev=vL(!1,d.privembed);this.protocol=this.rA.indexOf("http:")===0?"http":"https";this.XM=xh7((q?
  4286. q.customBaseYoutubeUrl:d.BASE_YT_URL)||"")||xh7(this.rA)||this.protocol+"://www.youtube.com/";b=q?q.eventLabel:d.el;Y="detailpage";b==="adunit"?Y=this.T?"embedded":"detailpage":b==="embedded"||this.B?Y=oD(Y,b,WlN):b&&(Y="embedded");this.z2=Y;r1I();b=null;Y=q?q.playerStyle:d.ps;U=g.cR(Cu6,Y);!Y||U&&!this.B||(b=Y);this.playerStyle=b;this.X=g.cR(Cu6,this.playerStyle);this.houseBrandUserStatus=q==null?void 0:q.houseBrandUserStatus;this.UD=this.X&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard";
  4287. this.JW=!this.UD;this.RU=vL(!1,d.disableplaybackui);this.disablePaidContentOverlay=vL(!1,q==null?void 0:q.disablePaidContentOverlay);this.disableSeek=vL(!1,q==null?void 0:q.disableSeek);this.enableSpeedOptions=(q==null?void 0:q.enableSpeedOptions)||(HH().defaultPlaybackRate?le||g.ID||vx?g.Fv&&Qy("20")||g.MI&&Qy("4")||g.o9&&Qy("11")||w7():!(g.o9&&!g.kA("chrome")||le||g.kA("android")||g.kA("silk")):!1);this.Nf=vL(!1,d.enable_faster_speeds);var J;this.supportsVarispeedExtendedFeatures=(J=q==null?void 0:
  4288. q.supportsVarispeedExtendedFeatures)!=null?J:!1;this.U=vL(this.playerStyle==="blazer",d.is_html5_mobile_device||q&&q.isMobileDevice);this.qk=ib()||m9();this.H$=this.N("mweb_allow_background_playback")?!1:this.U&&!this.X;this.dO=j7();this.hs=g.VU;var F;this.Qs=!!(q==null?0:(F=q.embedsHostFlags)==null?0:F.optOutApiDeprecation);var N;q?q.hideInfo!==void 0&&(N=!q.hideInfo):N=d.showinfo;this.Y6=g.dn(this)&&!this.Qs||vL(!qi(this)&&!TF(this)&&!this.X,N);this.rK=q?!!q.mobileIphoneSupportsInlinePlayback:vL(!1,
  4289. d.playsinline);J=this.U&&Yl&&eZ!=null&&eZ>0&&eZ<=2.3;F=q?q.useNativeControls:d.use_native_controls;this.L=g.dn(this)&&this.U;N=this.U&&!this.L;F=g.Um(this)||!J&&vL(N,F)?"3":"1";this.disableOrganicUi=!(q==null||!q.disableOrganicUi);N=q?q.controlsType:d.controls;this.controlsType=this.disableOrganicUi||N==="0"||N===0?"0":F;this.Gv=this.U;this.color=oD("red",q?q.progressBarColor:d.color,uF2);this.r3=this.controlsType==="3";this.vF=!this.T;this.hC=(F=!this.vF&&!TF(this)&&!this.UD&&!this.X&&!qi(this))&&
  4290. !this.r3&&this.controlsType==="1";this.gk=g.bS(this)&&F&&this.controlsType==="0"&&!this.hC&&!(q==null?0:q.embedsEnableEmc3ds);this.u3=this.YH=J;this.qC=(this.controlsType==="3"||this.U||vL(!1,d.use_media_volume))&&!this.L;this.bV=fZ&&!g.WZ(601)?!1:!0;this.sZ=this.T||!1;this.Ln=TF(this)?"":(this.loaderUrl||d.post_message_origin||"").substring(0,128);this.widgetReferrer=d8("",q?q.widgetReferrer:d.widget_referrer);var R;q?q.disableCastApi&&(R=!1):R=d.enablecastapi;R=!this.B||vL(!0,R);J=!0;q&&q.disableMdxCast&&
  4291. (J=!1);this.Aq=this.N("enable_cast_for_web_unplugged")&&g.XW(this)&&J||g.KG(this)&&J||R&&J&&this.controlsType==="1"&&!this.U&&(TF(this)||g.bS(this)||g.JJ(this));this.H9=!!window.document.pictureInPictureEnabled||EJ();R=q?!!q.supportsAutoplayOverride:vL(!1,d.autoplayoverride);this.yH=!(this.U&&!g.dn(this))&&!g.kA("nintendo wiiu")||R;this.lS=(q?!!q.enableMutedAutoplay:vL(!1,d.mutedautoplay))&&!1;R=(TF(this)||qi(this))&&this.playerStyle==="blazer";this.B3=q?!!q.disableFullscreen:!vL(!0,d.fs);J=g.eX(g.sm(this))&&
  4292. g.dn(this);this.wO=!this.B3&&(R||g.g8())&&!J;this.Kw=this.N("html5_picture_in_picture_logging_onresize");var x;this.wJ=(x=g.Yv(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?x:.33;this.M0=this.N("html5_picture_in_picture_blocking_onresize");this.zs=this.N("html5_picture_in_picture_blocking_ontimeupdate");this.VY=this.N("html5_picture_in_picture_blocking_document_fullscreen");this.pS=this.N("html5_picture_in_picture_blocking_standard_api");x=PL()&&Qy(58)&&!m9();R=uR||typeof MediaSource===
  4293. "undefined";this.fp=this.N("uniplayer_block_pip")&&(x||R)||this.M0||this.zs||this.pS;x=g.dn(this)&&!this.Qs;var y;q?q.disableRelatedVideos!==void 0&&(y=!q.disableRelatedVideos):y=d.rel;this.LC=x||vL(!this.X,y);this.sQ=vL(!1,q?q.enableContentOwnerRelatedVideos:d.co_rel);this.K=m9()&&eZ>0&&eZ<=4.4?"_top":"_blank";this.Kz=g.JJ(this);this.w4=vL(this.playerStyle==="blazer",q?q.enableCsiLogging:d.enablecsi);switch(this.playerStyle){case "blogger":y="bl";break;case "gmail":y="gm";break;case "gac":y="ga";
  4294. break;case "ads-preview":y="ap";break;case "books":y="gb";break;case "docs":case "flix":y="gd";break;case "duo":y="gu";break;case "google-live":y="gl";break;case "google-one":y="go";break;case "play":case "play-ads":y="gp";break;case "chat":y="hc";break;case "hangouts-meet":y="hm";break;case "photos-edu":case "picasaweb":y="pw";break;default:y="yt"}this.lr=y;this.yv=d8("",q?q.authorizedUserIndex:d.authuser);this.q5=g.dn(this)&&(this.ev||!Q2Y()||this.qk);var h;q?q.disableWatchLater!==void 0&&(h=!q.disableWatchLater):
  4295. h=d.showwatchlater;this.FW=((y=!this.q5)||!!this.yv&&y)&&vL(!this.UD,this.B?h:void 0);this.V5=q?q.isMobileDevice||!!q.disableKeyboardControls:vL(!1,d.disablekb);this.loop=vL(!1,d.loop);this.pageId=d8("",q?q.initialDelegatedSessionId:d.pageid);this.aZ=vL(!0,d.canplaylive);h=g.Yv(this.experiments,"html5_default_audio_quality_setting_lr");var H;this.mw=(H=DBH[DBH[h]])!=null?H:0;this.kx=vL(!1,d.livemonitor);this.disableSharing=vL(this.X,q?q.disableSharing:d.ss);(H=q&&this.N("fill_video_container_size_override_from_wpcc")?
  4296. q.videoContainerOverride:d.video_container_override)?(h=H.split("x"),h.length!==2?H=null:(H=Number(h[0]),h=Number(h[1]),H=isNaN(H)||isNaN(h)||H*h<=0?null:new g.zP(H,h))):H=null;this.aF=H;this.mute=q?!!q.startMuted:vL(!1,d.mute);this.storeUserVolume=!this.mute&&vL(this.controlsType!=="0",q?q.storeUserVolume:d.store_user_volume);H=q?q.annotationsLoadPolicy:d.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:oD(void 0,H,$l);this.captionsLanguagePreference=q?q.captionsLanguagePreference||
  4297. "":d8("",d.cc_lang_pref);H=oD(2,q?q.captionsLanguageLoadPolicy:d.cc_load_policy,$l);this.controlsType==="3"&&H===2&&(H=3);this.Gr=H;this.wk=q?q.hl||"en_US":d8("en_US",d.hl);this.region=q?q.contentRegion||"US":d8("US",d.cr);this.hostLanguage=q?q.hostLanguage||"en":d8("en",d.host_language);this.Se=!this.ev&&Math.random()<g.Yv(this.experiments,"web_player_api_logging_fraction");this.xx=!this.ev;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(q==null||!q.deviceIsAudioOnly);this.zq=VB(this.zq,
  4298. d.ismb);this.JW?(H=d.vss_host||"s.youtube.com",H==="s.youtube.com"&&(H=gn(this.XM)||"www.youtube.com")):H="video.google.com";this.sx=H;FW(this,d,!0);this.aU=new a9;g.C(this,this.aU);h=q?q.innertubeApiKey:d8("",d.innertube_api_key);y=q?q.innertubeApiVersion:d8("",d.innertube_api_version);H=q?q.innertubeContextClientVersion:d8("",d.innertube_context_client_version);h=g.Cs("INNERTUBE_API_KEY")||h;y=g.Cs("INNERTUBE_API_VERSION")||y;x=g.Cs("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");R=Hx(this);J=typeof this.G.c===
  4299. "number"?Number(this.G.c):Object.keys(wn2).indexOf(this.G.c);this.Kq={innertubeApiKey:h,innertubeApiVersion:y,RR:x,Bt:R,Y$:J,innertubeContextClientVersion:g.Cs("INNERTUBE_CONTEXT_CLIENT_VERSION")||H,Os:this.hostLanguage,ZH:this.region,hU:g.Cs("INNERTUBE_HOST_OVERRIDE")||"",bQ:!!g.Cs("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),Q$:!!g.Cs("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.IF=window.WebKitPlaybackTargetAvailabilityEvent!=null;this.S=new cx(this.experiments,this.N("html5_force_hfr_support")?
  4300. !0:yz(this)||ub()||EH1()||fD6(this),g.MI&&g.WZ(56)||g.Fv&&g.WZ(54)||this.N("html5_force_vp9_subsample_encryption_support")||fD6(this));H=g.ho(this);h=this.zq;y=this.experiments;x=new tdf(y);H&&(x.U=!0,x.X=.1);y.Wv("html5_media_time_weight")&&(x.U=!1);h&&(x.j=h/8);x.T=yR()>=480;this.schedule=new CO(x,new mFI(this.experiments),e);g.C(this,this.schedule);var a;this.enableSafetyMode=(a=q==null?void 0:q.initialEnableSafetyMode)!=null?a:vL(!1,d.enable_safety_mode);e=this.RU?!1:TF(this)&&this.playerStyle!==
  4301. "blazer";var p;q?q.disableAutonav!=null&&(p=!q.disableAutonav):p=d.allow_autonav;this.zX=vL(e,!this.UD&&p);this.sendVisitorIdHeader=q?!!q.sendVisitorIdHeader:vL(!1,d.send_visitor_id_header);var t;this.playerStyle==="docs"&&(q?t=q.disableNativeContextMenu:t=d.disable_native_context_menu);this.disableNativeContextMenu=vL(!1,t);this.tW=yz(this)&&this.N("enable_skip_intro_button");this.embedConfig=d8("",q?q.serializedEmbedConfig:d.embed_config);this.rO=YO(d,g.dn(this));this.j=this.rO==="EMBEDDED_PLAYER_MODE_PFL";
  4302. this.embedsErrorLinks=!(q==null||!q.embedsErrorLinks);this.Vt=vL(!1,d.full_window);var n;this.AF=!((n=this.webPlayerContextConfig)==null?0:n.chromeless);var K;this.livingRoomAppMode=oD("LIVING_ROOM_APP_MODE_UNSPECIFIED",d.living_room_app_mode||(q==null?void 0:(K=q.device)==null?void 0:K.livingRoomAppMode),zcn);var P;p=VB(NaN,q==null?void 0:(P=q.device)==null?void 0:P.deviceYear);isNaN(p)||(this.deviceYear=p);this.transparentBackground=q?!!q.transparentBackground:vL(!1,d.transparent_background);this.showMiniplayerButton=
  4303. q?!!q.showMiniplayerButton:vL(!1,d.show_miniplayer_button);var w;g.dn(this)&&!(q==null?0:(w=q.embedsHostFlags)==null?0:w.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=q?!!q.externalFullscreen:vL(!1,d.external_fullscreen);this.showMiniplayerUiWhenMinimized=q?!!q.showMiniplayerUiWhenMinimized:vL(!1,d.use_miniplayer_ui);var l;this.PR=(l=d.show_loop_video_toggle)!=null?l:!0;this.yl=Math.random()<1E-4;if(d.onesie_hot_config||(q==null?0:q.onesieHotConfig))this.pC=new AP2(d.onesie_hot_config,
  4304. q==null?void 0:q.onesieHotConfig),g.C(this,this.pC);this.isTectonic=q?!!q.isTectonic:!!d.isTectonic;this.playerCanaryState=T;this.playerCanaryStage=q==null?void 0:q.canaryStage;this.dA=new KlY;g.C(this,this.dA);this.datasyncId=(q==null?void 0:q.datasyncId)||g.Cs("DATASYNC_ID");this.wB=g.Cs("LOGGED_IN",!1);this.t0=(q==null?void 0:q.allowWoffleManagement)||!1;this.Pa=Infinity;this.K8=NaN;this.livingRoomPoTokenId=q==null?void 0:q.livingRoomPoTokenId;this.N("html5_high_res_logging_always")?this.R6=!0:
  4305. this.R6=Math.random()*100<g.Yv(this.experiments,"html5_high_res_logging_percent");var m;this.zr=!!(q==null?0:(m=q.embedsHostFlags)==null?0:m.allowRcat);this.Oi=!g.XW(this)&&!Ni(this);d=d.embedded_player_response?JSON.parse(d.embedded_player_response).trackingParams:void 0;d&&(this.l9=d)};
  4306. g.sm=function(d){var q,T;if(!((q=d.webPlayerContextConfig)==null?0:(T=q.embedsHostFlags)==null?0:T.enableLiteUx)||d.ev||d.X||d.j||d.rO==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";d=g.Yv(d.experiments,"embeds_web_lite_mode");return d===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":d>=0&&d<idN.length?idN[d]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"};
  4307. FW=function(d,q,T){T=T===void 0?!1:T;d.fn=d8(d.fn,q.video_id);d.ST=d8(d.ST,q.eventid);d.ST&&(FZ=d.ST);for(var Y=[],e=g.E(Object.keys(ID1)),U=e.next();!U.done;U=e.next()){U=ID1[U.value];var b=q[U];b!=null&&(b!==d.G[U]&&Y.push(U),d.G[U]=b)}!T&&Y.length>0&&d.yl&&(Y.sort(),g.OL(new g.CW("Player client parameters changed after startup",Y)));d.userAge=VB(d.userAge,q.user_age);d.E$=d8(d.E$,q.user_display_email);d.userDisplayImage=d8(d.userDisplayImage,q.user_display_image);g.fu(d.userDisplayImage)||(d.userDisplayImage=
  4308. "");d.userDisplayName=d8(d.userDisplayName,q.user_display_name);d.wU=d8(d.wU,q.user_gender);d.csiPageType=d8(d.csiPageType,q.csi_page_type);d.csiServiceName=d8(d.csiServiceName,q.csi_service_name);d.w4=vL(d.w4,q.enablecsi);d.pageId=d8(d.pageId,q.pageid);if(T=q.enabled_engage_types)d.enabledEngageTypes=new Set(T.split(","));q.living_room_session_po_token&&(d.qU=q.living_room_session_po_token.toString())};
  4309. xl=function(d,q){return!d.X&&PL()&&Qy(55)&&d.controlsType==="3"&&!q};
  4310. g.yv=function(d){d=gn(d.XM);return d==="www.youtube-nocookie.com"?"www.youtube.com":d};
  4311. hJ=function(d,q,T){return d.protocol+"://i1.ytimg.com/vi/"+q+"/"+(T||"hqdefault.jpg")};
  4312. HT=function(d){return TF(d)&&!g.XW(d)};
  4313. g.Um=function(d){return d.N("html5_local_playsinline")?fZ&&!g.WZ(602)&&!("playsInline"in HH()):fZ&&!d.rK||g.kA("nintendo wiiu")?!0:!1};
  4314. Hx=function(d){return d.G.c};
  4315. g.ho=function(d){return/^TVHTML5/.test(Hx(d))};
  4316. g.Qv=function(d){return Hx(d)==="TVHTML5"};
  4317. Ll2=function(d){return Hx(d)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"};
  4318. fD6=function(d){return d.G.cmodel==="CHROMECAST ULTRA/STEAK"||d.G.cmodel==="CHROMECAST/STEAK"};
  4319. g.Mi=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1};
  4320. yz=function(d){return/web/i.test(Hx(d))};
  4321. g.cT=function(d){return Hx(d).toUpperCase()==="WEB"};
  4322. Ni=function(d){return Hx(d)==="WEB_KIDS"};
  4323. g.XW=function(d){return Hx(d)==="WEB_UNPLUGGED"};
  4324. Em=function(d){return Hx(d)==="TVHTML5_UNPLUGGED"};
  4325. g.xv=function(d){return g.XW(d)||Hx(d)==="TV_UNPLUGGED_CAST"||Em(d)};
  4326. g.KG=function(d){return Hx(d)==="WEB_REMIX"};
  4327. g.jZ=function(d){return Hx(d)==="WEB_MUSIC_INTEGRATIONS"};
  4328. g.an=function(d){return Hx(d)==="WEB_EMBEDDED_PLAYER"};
  4329. g.pI=function(d){return(d.deviceIsAudioOnly||!g.MI||uR||d.controlsType==="3"?!1:g.ID?d.T&&g.WZ(51):!0)||(d.deviceIsAudioOnly||!g.Fv||uR||d.controlsType==="3"?!1:g.ID?d.T&&g.WZ(48):g.WZ(38))||(d.deviceIsAudioOnly||!g.o9||uR||d.controlsType==="3"?!1:g.ID?d.T&&g.WZ(37):g.WZ(27))||!d.deviceIsAudioOnly&&g.AJ&&!a_f()&&g.WZ(11)||!d.deviceIsAudioOnly&&g.F8&&g.WZ("604.4")};
  4330. mB7=function(d){if(g.bS(d)&&Yl)return!1;if(g.Fv){if(!g.WZ(47)||!g.WZ(52)&&g.WZ(51))return!1}else if(g.F8)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
  4331. lD_=function(d,q){return d.enabledEngageTypes.has(q.toString())||S_g.includes(q)};
  4332. TF=function(d){return d.z2==="detailpage"};
  4333. g.bS=function(d){return d.z2==="embedded"};
  4334. Zi=function(d){return d.z2==="leanback"};
  4335. qi=function(d){return d.z2==="adunit"||d.playerStyle==="gvn"};
  4336. g.JJ=function(d){return d.z2==="profilepage"};
  4337. g.dn=function(d){return d.T&&g.bS(d)&&!qi(d)&&!d.X};
  4338. Om=function(d){if(!d.userDisplayImage)return"";var q=d.userDisplayImage.split("/");if(q.length===5)return d=q[q.length-1].split("="),d[1]="s20-c",q[q.length-1]=d.join("="),q.join("/");if(q.length===8)return q.splice(7,0,"s20-c"),q.join("/");if(q.length===9)return q[7]+="-s20-c",q.join("/");g.OL(new g.CW("Profile image not a FIFE URL.",d.userDisplayImage));return d.userDisplayImage};
  4339. g.nI=function(d){var q=g.yv(d);vK7.includes(q)&&(q="www.youtube.com");return d.protocol+"://"+q};
  4340. g.rn=function(d,q){q=q===void 0?"":q;if(d.If){var T=new yQ,Y,e=d.If();e.signedOut?Y="":e.token?Y=e.token:e.pendingResult.then(function(U){e.signedOut?T.resolve(""):T.resolve(U.token)},function(U){g.OL(new g.CW("b189348328_oauth_callback_failed",{error:U}));
  4341. T.resolve(q)});
  4342. return Y!==void 0?pZ(Y):new aD(T)}return pZ(q)};
  4343. tJ=function(d,q){q=q===void 0?"":q;return d.wB?OT(!0):K0(BN(OT(g.rn(d,q)),function(T){return OT(!!T)}),function(){return OT(!1)})};
  4344. oKH=function(d,q){q==null||BN(q,function(T){d.Pf=T;var Y,e;(Y=d.pC)!=null&&(e=Y.G)!=null&&(e.G=new tj(T,e.U,e.j),g.C(e,e.G))})};
  4345. gn=function(d){var q=g.sb(d);return(d=Number(g.Jq(d)[4]||null)||null)?q+":"+d:q};
  4346. BT=function(d,q){q=q===void 0?!1:q;var T=tQ[d],Y=VdN[T],e=dm1[d];if(!e||!Y)return null;q=new OJ(q?e.height:e.width,q?e.width:e.height,e.fps);Y=Cy(Y,q,T);return new BH(d,Y,{video:q,Vv:e.bitrate/8})};
  4347. TG1=function(d){var q=VdN[tQ[d]],T=qOH[d];return T&&q?new BH(d,q,{audio:new AQ(T.audioSampleRate,T.numChannels)}):null};
  4348. KI=function(d){this.G=d};
  4349. GF=function(d,q,T,Y){if(T)return Ad();T={};var e=HH();q=g.E(q);for(var U=q.next();!U.done;U=q.next())if(U=U.value,d.canPlayType(e,U.getInfo().mimeType)||Y){var b=U.G.video.quality;if(!T[b]||T[b].getInfo().fz())T[b]=U}d=[];T.auto&&d.push(T.auto);Y=g.E(ne);for(e=Y.next();!e.done;e=Y.next())(e=T[e.value])&&d.push(e);return d.length?pZ(d):Ad()};
  4350. YO_=function(d){this.itag=d.itag;this.url=d.url;this.codecs=d.codecs;this.width=d.width;this.height=d.height;this.fps=d.fps;this.bitrate=d.bitrate;var q;this.U=((q=d.audioItag)==null?void 0:q.split(","))||[];this.C5=d.C5;this.ac=d.ac||"";this.DQ=d.DQ;this.audioChannels=d.audioChannels;this.G=""};
  4351. eEH=function(d,q,T,Y){q=q===void 0?!1:q;T=T===void 0?!0:T;Y=Y===void 0?{}:Y;var e={};d=g.E(d);for(var U=d.next();!U.done;U=d.next()){U=U.value;if(q&&MediaSource&&MediaSource.isTypeSupported){var b=U.type;U.audio_channels&&(b=b+"; channels="+U.audio_channels);if(!MediaSource.isTypeSupported(b)){Y[U.itag]="tpus";continue}}if(T||!U.drm_families||U.eotf!=="smpte2084"&&U.eotf!=="arib-std-b67"){b=void 0;var J={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},F=U.type.match(/codecs="([^"]*)"/);
  4352. F=F?F[1]:"";U.audio_track_id&&(b=new g.Ky(U.name,U.audio_track_id,!!U.is_default));var N=U.eotf;U=new YO_({itag:U.itag,url:U.url,codecs:F,width:Number(U.width),height:Number(U.height),fps:Number(U.fps),bitrate:Number(U.bitrate),audioItag:U.audio_itag,C5:N?J[N]:void 0,ac:U.drm_families,DQ:b,audioChannels:Number(U.audio_channels)});e[U.itag]=e[U.itag]||[];e[U.itag].push(U)}else Y[U.itag]="enchdr"}return e};
  4353. Um_=function(d,q,T,Y,e){this.j=d;this.U=q;this.S=T;this.cpn=Y;this.X=e;this.T=0;this.G=""};
  4354. bSj=function(d,q){d.j.some(function(T){var Y;return((Y=T.DQ)==null?void 0:Y.getId())===q});
  4355. d.G=q};
  4356. LI=function(d,q,T){d.cpn&&(q=g.y6(q,{cpn:d.cpn}));T&&(q=g.y6(q,{paired:T}));return q};
  4357. XY1=function(d,q){d=d.itag.toString();q!==null&&(d+=q.itag.toString());return d};
  4358. JRX=function(d){for(var q=[],T=[],Y=g.E(d.U),e=Y.next();!e.done;e=Y.next())e=e.value,e.bitrate<=d.T?q.push(e):T.push(e);q.sort(function(U,b){return b.bitrate-U.bitrate});
  4359. T.sort(function(U,b){return U.bitrate-b.bitrate});
  4360. d.U=q.concat(T)};
  4361. kl=function(d,q,T){this.G=d;this.U=q;this.expiration=T;this.zG=null};
  4362. sFn=function(d,q){if(!(uR||Dq()||CZ()))return null;d=eEH(q,d.N("html5_filter_fmp4_in_hls"));if(!d)return null;q=[];for(var T={},Y=g.E(Object.keys(d)),e=Y.next();!e.done;e=Y.next()){e=g.E(d[e.value]);for(var U=e.next();!U.done;U=e.next()){var b=U.value;b.DQ&&(U=b.DQ.getId(),T[U]||(b=new g.AF(U,b.DQ),T[U]=b,q.push(b)))}}return q.length>0?q:null};
  4363. REY=function(d,q,T,Y,e,U,b){if(!(uR||Dq()||CZ()))return Ad();var J={},F=$mX(T),N=eEH(T,d.N("html5_filter_fmp4_in_hls"),d.S.L,J);if(!N)return b({noplst:1}),Ad();gbD(N);T={};var R=(T.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",T),x;T=[];var y=[],h=[],H=null,a="";Y=Y&&Y.match(/hls_timedtext_playlist/)?new YO_({itag:"0",url:Y,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,DQ:new g.Ky("English","en",!1)}):null;for(var p=g.E(Object.keys(N)),t=p.next();!t.done;t=p.next())if(t=t.value,!d.N("html5_disable_drm_hfr_1080")||
  4364. t!=="383"&&t!=="373"){t=g.E(N[t]);for(var n=t.next();!n.done;n=t.next())if(n=n.value,n.width){for(var K=g.E(n.U),P=K.next();!P.done;P=K.next())if(P=P.value,N[P]){n.G=P;break}n.G||(n.G=Fun(N,n));if(K=N[n.G])if(T.push(n),n.ac==="fairplay"&&(x=R),P="",n.C5==="PQ"?P="smpte2084":n.C5==="HLG"&&(P="arib-std-b67"),P&&(a=P),h.push(NG6(K,[n],Y,U,n.itag,n.width,n.height,n.fps,F,void 0,void 0,x,P)),!H||n.width*n.height*n.fps>H.width*H.height*H.fps)H=n}else y.push(n)}else J[t]="disdrmhfr";h.reduce(function(w,
  4365. l){return l.getInfo().isEncrypted()&&w},!0)&&(x=R);
  4366. e=Math.max(e,0);R=H||{};N=R.fps===void 0?0:R.fps;H=R.width===void 0?0:R.width;R=R.height===void 0?0:R.height;p=d.N("html5_native_audio_track_switching");h.push(NG6(y,T,Y,U,"93",H,R,N,F,"auto",e,x,a,p));Object.entries(J).length&&b(J);return GF(d.S,h,xl(d,q),!1)};
  4367. NG6=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h){for(var H=0,a="",p=g.E(d),t=p.next();!t.done;t=p.next())t=t.value,a||(a=t.itag),t.audioChannels&&t.audioChannels>H&&(H=t.audioChannels,a=t.itag);e=new BH(e,"application/x-mpegURL",{audio:new AQ(0,H),video:new OJ(U,b,J,null,void 0,N,void 0,y),ac:x,pJ:a});d=new Um_(d,q,T?[T]:[],Y,!!h);d.T=R?R:1369843;return new kl(e,d,F)};
  4368. $mX=function(d){d=g.E(d);for(var q=d.next();!q.done;q=d.next())if(q=q.value,q.url&&(q=q.url.split("expire/"),!(q.length<=1)))return+q[1].split("/")[0];return NaN};
  4369. Fun=function(d,q){for(var T=g.E(Object.keys(d)),Y=T.next();!Y.done;Y=T.next()){Y=Y.value;var e=d[Y][0];if(!e.width&&e.ac===q.ac&&!e.audioChannels)return Y}return""};
  4370. gbD=function(d){for(var q=new Set,T=g.E(Object.values(d)),Y=T.next();!Y.done;Y=T.next())Y=Y.value,Y.length&&(Y=Y[0],Y.height&&Y.codecs.startsWith("vp09")&&q.add(Y.height));T=[];if(q.size){Y=g.E(Object.keys(d));for(var e=Y.next();!e.done;e=Y.next())if(e=e.value,d[e].length){var U=d[e][0];U.height&&q.has(U.height)&&!U.codecs.startsWith("vp09")&&T.push(e)}}q=g.E(T);for(T=q.next();!T.done;T=q.next())delete d[T.value]};
  4371. PT=function(d,q){this.G=d;this.U=q};
  4372. xm2=function(d,q,T,Y){var e=[];T=g.E(T);for(var U=T.next();!U.done;U=T.next()){var b=U.value;if(b.url){U=new g.Ig(b.url,!0);if(b.s){var J=U,F=b.sp,N=m_Y(decodeURIComponent(b.s));J[X[5]](F,encodeURIComponent(N))}J=g.E(Object.keys(Y));for(F=J.next();!F.done;F=J.next())F=F.value,U.set(F,Y[F]);b=II(b.type,b.quality,b.itag,b.width,b.height);e.push(new PT(b,U))}}return GF(d.S,e,xl(d,q),!1)};
  4373. WT=function(d,q){this.G=d;this.U=q};
  4374. yRX=function(d,q,T){var Y=[];T=g.E(T);for(var e=T.next();!e.done;e=T.next())if((e=e.value)&&e.url){var U=II(e.type,"medium","0");Y.push(new WT(U,e.url))}return GF(d.S,Y,xl(d,q),!1)};
  4375. hEj=function(d,q){var T=[],Y=II(q.type,"auto",q.itag);T.push(new WT(Y,q.url));return GF(d.S,T,!1,!0)};
  4376. QF6=function(d){return d&&HSQ[d]?HSQ[d]:null};
  4377. M5H=function(d){switch(d){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.malformed_config":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return d;default:return"sabr.config"}};
  4378. cR7=function(d){if(d=d.commonConfig)this.url=d.url,this.urlQueryOverride=d.urlQueryOverride,d.ustreamerConfig&&(this.vO=Bx(d.ustreamerConfig)||void 0)};
  4379. Eb2=function(d,q){var T;if(q=q==null?void 0:(T=q.watchEndpointSupportedOnesieConfig)==null?void 0:T.html5PlaybackOnesieConfig)d.kt=new cR7(q)};
  4380. g.CI=function(d){d=d===void 0?{}:d;this.languageCode=d.languageCode||"";this.languageName=d.languageName||null;this.kind=d.kind||"";this.name=d.name===void 0?null:d.name;this.displayName=d.displayName||null;this.id=d.id||null;this.G=d.is_servable||!1;this.isTranslateable=d.is_translateable||!1;this.url=d.url||null;this.vssId=d.vss_id||"";this.isDefault=d.is_default||!1;this.translationLanguage=d.translationLanguage||null;this.xtags=d.xtags||"";this.captionId=d.captionId||""};
  4381. g.Di=function(d){var q={languageCode:d.languageCode,languageName:d.languageName,displayName:g.uS(d),kind:d.kind,name:d.name,id:d.id,is_servable:d.G,is_default:d.isDefault,is_translateable:d.isTranslateable,vss_id:d.vssId};d.xtags&&(q.xtags=d.xtags);d.captionId&&(q.captionId=d.captionId);d.translationLanguage&&(q.translationLanguage=d.translationLanguage);return q};
  4382. g.wn=function(d){return d.translationLanguage?d.translationLanguage.languageCode:d.languageCode};
  4383. g.jFn=function(d){var q=d.vssId;d.translationLanguage&&q&&(q="t"+q+"."+g.wn(d));return q};
  4384. g.uS=function(d){var q=[];if(d.displayName)q.push(d.displayName);else{var T=d.languageName||"";q.push(T);d.kind==="asr"&&T.indexOf("(")===-1&&q.push(" (\u81ea\u52a8\u751f\u6210\u7684\u5b57\u5e55)");d.name&&q.push(" - "+d.name)}d.translationLanguage&&q.push(" >> "+d.translationLanguage.languageName);return q.join("")};
  4385. ZS7=function(d,q,T,Y){d||(d=q&&aJ6.hasOwnProperty(q)&&ARn.hasOwnProperty(q)?ARn[q]+"_"+aJ6[q]:void 0);q=d;if(!q)return null;d=q.match(pYg);if(!d||d.length!==5)return null;if(d=q.match(pYg)){var e=Number(d[3]),U=[7,8,10,5,6];d=!(Number(d[1])===1&&e===8)&&U.indexOf(e)>=0}else d=!1;return T||Y||d?q:null};
  4386. fI=function(d,q){for(var T={},Y=g.E(Object.keys(OS6)),e=Y.next();!e.done;e=Y.next()){e=e.value;var U=q?q+e:e;U=d[U+"_webp"]||d[U];g.fu(U)&&(T[OS6[e]]=U)}return T};
  4387. zF=function(d){var q={};if(!d||!d.thumbnails)return q;d=d.thumbnails.filter(function(J){return!!J.url});
  4388. d.sort(function(J,F){return J.width-F.width||J.height-F.height});
  4389. for(var T=g.E(Object.keys(nb_)),Y=T.next();!Y.done;Y=T.next()){var e=Number(Y.value);Y=nb_[e];for(var U=g.E(d),b=U.next();!b.done;b=U.next())if(b=b.value,b.width>=e){e=rRY(b.url);g.fu(e)&&(q[Y]=e);break}}(d=d.pop())&&d.width>=1280&&(d=rRY(d.url),g.fu(d)&&(q["maxresdefault.jpg"]=d));return q};
  4390. rRY=function(d){return d.startsWith("//")?"https:"+d:d};
  4391. iS=function(d){return d&&d.baseUrl||""};
  4392. In=function(d){d=g.oE(d);for(var q=g.E(Object.keys(d)),T=q.next();!T.done;T=q.next()){T=T.value;var Y=d[T];d[T]=Array.isArray(Y)?Y[0]:Y}return d};
  4393. t5H=function(d,q){d.botguardData=q.playerAttestationRenderer.botguardData;q=q.playerAttestationRenderer.challenge;q!=null&&(d.q2=q)};
  4394. G81=function(d,q){q=g.E(q);for(var T=q.next();!T.done;T=q.next()){T=T.value;var Y=T.interstitials.map(function(b){var J=g.D(b,BGn);if(J)return{is_yto_interstitial:!0,raw_player_response:J};if(b=g.D(b,Kuf))return Object.assign({is_yto_interstitial:!0},lF(b))});
  4395. Y=g.E(Y);for(var e=Y.next();!e.done;e=Y.next())switch(e=e.value,T.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":d.interstitials=d.interstitials.concat({time:0,playerVars:e,f3:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":d.interstitials=d.interstitials.concat({time:0x7ffffffffffff,playerVars:e,f3:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var U=Number(T.podConfig.timeToInsertAtMillis);d.interstitials=d.interstitials.concat({time:U,playerVars:e,
  4396. f3:U===0?5:7})}}};
  4397. LuX=function(d,q){if(q=q.find(function(T){return!(!T||!T.tooltipRenderer)}))d.tooltipRenderer=q.tooltipRenderer};
  4398. k8H=function(d,q){q.subscribeCommand&&(d.subscribeCommand=q.subscribeCommand);q.unsubscribeCommand&&(d.unsubscribeCommand=q.unsubscribeCommand);q.addToWatchLaterCommand&&(d.addToWatchLaterCommand=q.addToWatchLaterCommand);q.removeFromWatchLaterCommand&&(d.removeFromWatchLaterCommand=q.removeFromWatchLaterCommand);q.getSharePanelCommand&&(d.getSharePanelCommand=q.getSharePanelCommand)};
  4399. PV6=function(d,q){q!=null?(d.Co=q,d.kc=!0):(d.Co="",d.kc=!1)};
  4400. m8=function(d,q){this.type=d||"";this.id=q||""};
  4401. SZ=function(d){return new m8(d.substring(0,2),d.substring(2))};
  4402. lS=function(d,q){this.Mk=d;this.author="";this.wS=null;this.playlistLength=0;this.G=this.sessionData=null;this.B={};this.title="";if(q){this.author=q.author||q.playlist_author||"";this.title=q.playlist_title||"";if(d=q.session_data)this.sessionData=mR(d,"&");var T;this.G=((T=q.thumbnail_ids)==null?void 0:T.split(",")[0])||null;this.B=fI(q,"playlist_");this.videoId=q.video_id||void 0;if(T=q.list)switch(q.listType){case "user_uploads":this.playlistId=(new m8("UU","PLAYER_"+T)).toString();break;default:if(d=
  4403. q.playlist_length)this.playlistLength=Number(d)||0;this.playlistId=SZ(T).toString();if(q=q.video)this.videoId=(q[0]||null).video_id||void 0}else q.playlist&&(this.playlistLength=q.playlist.toString().split(",").length)}};
  4404. vT=function(d,q){this.Mk=d;this.yh=this.author="";this.wS=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.MD=this.lengthText="";this.sessionData=null;this.B={};this.title="";if(q){this.ariaLabel=q.aria_label||void 0;this.author=q.author||"";this.yh=q.yh||"";if(d=q.endscreen_autoplay_session_data)this.wS=mR(d,"&");this.qq=q.qq;this.isLivePlayback=q.live_playback==="1";this.isUpcoming=!!q.isUpcoming;if(d=q.length_seconds)this.lengthSeconds=typeof d==="string"?Number(d):d;this.lengthText=
  4405. q.lengthText||"";this.MD=q.MD||"";this.publishedTimeText=q.publishedTimeText||void 0;if(d=q.session_data)this.sessionData=mR(d,"&");this.shortViewCount=q.short_view_count_text||void 0;this.B=fI(q);this.title=q.title||"";this.videoId=q.docid||q.video_id||q.videoId||q.id||void 0;this.watchUrl=q.watchUrl||void 0}};
  4406. Wug=function(d){var q,T,Y=(q=d.getWatchNextResponse())==null?void 0:(T=q.contents)==null?void 0:T.twoColumnWatchNextResults,e,U,b,J,F;d=(e=d.getWatchNextResponse())==null?void 0:(U=e.playerOverlays)==null?void 0:(b=U.playerOverlayRenderer)==null?void 0:(J=b.endScreen)==null?void 0:(F=J.watchNextEndScreenRenderer)==null?void 0:F.results;if(!d){var N,R;d=Y==null?void 0:(N=Y.endScreen)==null?void 0:(R=N.endScreen)==null?void 0:R.results}return d};
  4407. g.Vv=function(d){var q,T,Y;d=g.D((q=d.getWatchNextResponse())==null?void 0:(T=q.playerOverlays)==null?void 0:(Y=T.playerOverlayRenderer)==null?void 0:Y.decoratedPlayerBarRenderer,on);return g.D(d==null?void 0:d.playerBar,CVg)};
  4408. uY_=function(d){this.G=d.playback_progress_0s_url;this.j=d.playback_progress_2s_url;this.U=d.playback_progress_10s_url};
  4409. DmQ=function(){if(dd===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(q){}a:{try{var d=!!self.localStorage}catch(q){d=!1}if(d&&(d=g.r9(g.u5()+"::yt-player"))){dd=new ko(d);break a}dd=void 0}}return dd};
  4410. g.qR=function(){var d=DmQ();if(!d)return{};try{var q=d.get("yt-player-lv");return JSON.parse(q||"{}")}catch(T){return{}}};
  4411. g.wYg=function(d){var q=DmQ();q&&(d=JSON.stringify(d),q.set("yt-player-lv",d))};
  4412. g.TC=function(d){return g.qR()[d]||0};
  4413. g.Yp=function(d,q){var T=g.qR();q!==T[d]&&(q!==0?T[d]=q:delete T[d],g.wYg(T))};
  4414. g.eH=function(d){return g.G(function(q){return q.return(g.Pj(fJD(),d))})};
  4415. bx=function(d,q,T,Y,e,U,b,J){var F,N,R,x,y,h;return g.G(function(H){switch(H.U){case 1:return F=g.TC(d),F===4?H.return(4):g.B(H,g.iR(),2);case 2:N=H.G;if(!N)throw g.RJ("wiac");if(!J||b===void 0){H.tF(3);break}return g.B(H,zE7(J,b),4);case 4:b=H.G;case 3:return R=T.lastModified||"0",g.B(H,g.eH(N),5);case 5:return x=H.G,g.jD(H,6),UB++,g.B(H,g.Ar(x,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",sM:!0},function(a){if(U!==void 0&&b!==void 0){var p=""+d+"|"+q.id+"|"+R+"|"+String(U).padStart(10,
  4416. "0");p=g.p7(a.objectStore("media"),b,p)}else p=g.hr.resolve(void 0);var t=iSY(d,q.eh()),n=iSY(d,!q.eh()),K={fmts:IJD(Y),format:T||{}};t=g.p7(a.objectStore("index"),K,t);var P=Y.downloadedEndTime===-1;K=P?a.objectStore("index").get(n):g.hr.resolve(void 0);var w={fmts:"music",format:{}};a=P&&e&&!q.eh()?g.p7(a.objectStore("index"),w,n):g.hr.resolve(void 0);return g.hr.all([a,K,p,t]).then(function(l){l=g.E(l);l.next();l=l.next().value;UB--;var m=g.TC(d);if(m!==4&&P&&e||l!==void 0&&g.mmD(l.fmts))m=1,g.Yp(d,
  4417. m);return m})}),8);
  4418. case 8:return H.return(H.G);case 6:y=g.nN(H);UB--;h=g.TC(d);if(h===4)return H.return(h);g.Yp(d,4);throw y;}})};
  4419. g.SO2=function(d){var q,T;return g.G(function(Y){if(Y.U==1)return g.B(Y,g.iR(),2);if(Y.U!=3){q=Y.G;if(!q)throw g.RJ("ri");return g.B(Y,g.eH(q),3)}T=Y.G;return Y.return(g.Ar(T,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var U=IDBKeyRange.bound(d+"|",d+"~");return e.objectStore("index").getAll(U).then(function(b){return b.map(function(J){return J?J.format:{}})})}))})};
  4420. vbY=function(d,q,T,Y,e){var U,b,J;return g.G(function(F){if(F.U==1)return g.B(F,g.iR(),2);if(F.U!=3){U=F.G;if(!U)throw g.RJ("rc");return g.B(F,g.eH(U),3)}b=F.G;J=g.Ar(b,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(N){var R=""+d+"|"+q+"|"+T+"|"+String(Y).padStart(10,"0");return N.objectStore("media").get(R)});
  4421. return e?F.return(J.then(function(N){if(N===void 0)throw Error("No data from indexDb");return lJ2(e,N)}).catch(function(N){throw new g.CW("Error while reading chunk: "+N.name+", "+N.message);
  4422. })):F.return(J)})};
  4423. g.mmD=function(d){return d?d==="music"?!0:d.includes("dlt=-1")||!d.includes("dlt="):!1};
  4424. iSY=function(d,q){return""+d+"|"+(q?"v":"a")};
  4425. IJD=function(d){var q={};return SW((q.dlt=d.downloadedEndTime.toString(),q.mket=d.maxKnownEndTime.toString(),q.avbr=d.averageByteRate.toString(),q))};
  4426. V51=function(d){var q={},T={};d=g.E(d);for(var Y=d.next();!Y.done;Y=d.next()){var e=Y.value,U=e.split("|");e.match(g.ob_)?(Y=Number(U.pop()),isNaN(Y)?T[e]="?":(U=U.join("|"),(e=q[U])?(U=e[e.length-1],Y===U.end+1?U.end=Y:e.push({start:Y,end:Y})):q[U]=[{start:Y,end:Y}])):T[e]="?"}d=g.E(Object.keys(q));for(Y=d.next();!Y.done;Y=d.next())Y=Y.value,T[Y]=q[Y].map(function(b){return b.start+"-"+b.end}).join(",");
  4427. return T};
  4428. Xx=function(d){g.YP.call(this);this.G=null;this.j=new Kv;this.G=null;this.X=new Set;this.crossOrigin=d||""};
  4429. d6I=function(d,q,T){for(T=Jw(d,T);T>=0;){var Y=d.levels[T];if(Y.isLoaded(sB(Y,q))&&(Y=g.$p(Y,q)))return Y;T--}return g.$p(d.levels[0],q)};
  4430. TNQ=function(d,q,T){T=Jw(d,T);for(var Y,e;T>=0;T--)if(Y=d.levels[T],e=sB(Y,q),!Y.isLoaded(e)){Y=d;var U=T,b=U+"-"+e;Y.X.has(b)||(Y.X.add(b),Y.j.enqueue(U,{Cs:U,S3:e}))}q77(d)};
  4431. q77=function(d){if(!d.G&&!d.j.isEmpty()){var q=d.j.remove();d.G=Y7H(d,q)}};
  4432. Y7H=function(d,q){var T=document.createElement("img");d.crossOrigin&&(T.crossOrigin=d.crossOrigin);T.src=d.levels[q.Cs].Hl(q.S3);T.onload=function(){var Y=q.Cs,e=q.S3;d.G!==null&&(d.G.onload=null,d.G=null);Y=d.levels[Y];Y.loaded.add(e);q77(d);var U=Y.columns*Y.rows;e*=U;Y=Math.min(e+U-1,Y.Az()-1);e=[e,Y];d.publish("l",e[0],e[1])};
  4433. return T};
  4434. g.gd=function(d,q,T,Y){this.level=d;this.T=q;this.loaded=new Set;this.level=d;this.T=q;d=T.split("#");this.width=Math.floor(Number(d[0]));this.height=Math.floor(Number(d[1]));this.frameCount=Math.floor(Number(d[2]));this.columns=Math.floor(Number(d[3]));this.rows=Math.floor(Number(d[4]));this.G=Math.floor(Number(d[5]));this.j=d[6];this.signature=d[7];this.videoLength=Y};
  4435. sB=function(d,q){return Math.floor(q/(d.columns*d.rows))};
  4436. g.$p=function(d,q){q>=d.HU()&&d.wi();var T=sB(d,q),Y=d.columns*d.rows,e=q%Y;q=e%d.columns;e=Math.floor(e/d.columns);var U=d.wi()+1-Y*T;if(U<d.columns){var b=U;Y=1}else b=d.columns,Y=U<Y?Math.ceil(U/d.columns):d.rows;return{url:d.Hl(T),column:q,columns:b,row:e,rows:Y,XE:d.width*b,Xf:d.height*Y}};
  4437. Fx=function(d,q,T,Y,e){Y=Y===void 0?!1:Y;e=e===void 0?!1:e;Xx.call(this,T);this.isLive=Y;this.L=!!e;this.levels=this.U(d,q);this.T=new Map;this.levels.length>1&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
  4438. eyf=function(d,q,T){return(d=d.levels[q])?d.i_(T):-1};
  4439. Jw=function(d,q){var T=d.T.get(q);if(T)return T;T=d.levels.length;for(var Y=0;Y<T;Y++)if(d.levels[Y].width>=q)return d.T.set(q,Y),Y;d.T.set(q,T-1);return T-1};
  4440. NR=function(d,q,T,Y){T=T.split("#");T=[T[1],T[2],0,T[3],T[4],-1,T[0],""].join("#");g.gd.call(this,d,q,T,0);this.U=null;this.S=Y?2:0};
  4441. Rf=function(d,q,T,Y){Fx.call(this,d,0,void 0,q,!(Y===void 0||!Y));for(d=0;d<this.levels.length;d++)this.levels[d].Y2(T)};
  4442. U6Q=function(d,q,T){q={cpn:q};d.indexOf("/ibw/")===-1&&(q.ibw=T?String(T):"1369843");return{url:g.y6(d,q),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
  4443. g.yM=function(d,q){g.YP.call(this);var T=this;this.Mk=d;this.adaptiveFormats="";this.sQ=this.adQueryId=this.aZ=null;this.yq={start:NaN,end:NaN};this.cueRanges=this.ac=null;this.fd=new Map;this.compositeLiveStatusToken=this.compositeLiveIngestionOffsetToken=this.VY=void 0;this.drmProduct=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.RU="";this.H9=!1;this.uD=null;this.Kz=this.B3=!1;this.T=null;this.rR=this.wB=!1;this.LC=NaN;
  4444. this.applyStatefulNormalization=this.preserveStatefulLoudnessTarget=!1;this.maxStatefulTimeThresholdSec=0;this.N9=NaN;this.loudnessTargetLkfs=Infinity;this.minimumLoudnessTargetLkfs=-Infinity;this.IF=0;this.Gv=!1;this.cycToken=null;this.author="";this.I1=!1;this.ST=0;this.M0=!1;this.xU=null;this.Cd=[];this.Uq=this.kh=!1;this.clientScreenNonce=this.playerResponseCpn=this.clientPlaybackNonce=this.videoCountText=this.wO=this.V5="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=this.endSeconds=
  4445. this.fn=0;this.zr=this.qk=this.U=null;this.Uu="";this.loading=!1;this.zq=this.Au=0;this.tY=this.pipable=this.Ct=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.mutedAutoplay=this.k9=!1;this.mutedAutoplayDurationMode=0;this.isLiveHeadPlayable=this.isLivePlayback=this.kx=this.isPrivate=this.isListed=this.qU=!1;this.wm="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.M7=this.yv=this.uC=!1;this.latencyClass="UNKNOWN";this.F7=this.ZB=this.y8=this.pR=
  4446. this.PC=this.nL=this.Y0=this.Qz=this.enableServerStitchedDai=this.ZY=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.q5=0;this.reloadReason="";this.Hi=this.yH=!1;this.keywords={};this.pC="";this.t5=0;this.ZD=!1;this.unpluggedFilterModeType=0;this.liveChunkReadahead=NaN;this.Ar=null;this.WV=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.WH=this.paygated=!1;this.BK=[];this.Qs=!1;this.K=[];this.Rg=null;
  4447. this.jx=this.racyCheckOk=!1;this.iP={};this.isProximaLatencyEligible=!1;this.Dk=0;this.j=null;this.autonavState=1;this.Ny=null;this.shortDescription="";this.UD=this.yz=!1;this.wk=this.lF=this.startSeconds=0;this.Ja=this.b_=this.GD=xp;this.u3=this.suggestions=null;this.wJ=this.YH=void 0;this.isExternallyHostedPodcast=!1;this.j8=null;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.qj=void 0;this.Fw=[];this.lS=[];this.hlsFormats=this.vA="";this.gx=this.iA=this.Kq=this.qC=this.AF=
  4448. this.Se=this.K8=null;this.M4="vvt";this.Vt=!1;this.Vq=null;this.Pk="";this.yl=NaN;this.r3=this.Lh=this.JW=this.NK=this.qK=this.If=this.H$=this.DT=this.W$=this.Fs="";this.Yz=null;this.U4=!1;this.clipStart=0;this.clipEnd=Infinity;this.oy=!1;this.heartbeatToken="";this.Yt=this.xA=NaN;this.t0=this.rK=this.E$=this.UT=this.h2=!1;this.fp=!0;this.B={};this.captionTracks=[];this.Yh=[];this.s1=0;this.gQ=[];this.YA=[];this.IK=!1;this.Xc={};this.Pa=new g.AF("und",new g.Ky("Default","und",!0));this.j1=0;this.S=
  4449. null;this.bV=[];this.lL=!1;this.fh=this.R6="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.dO=this.Ph=this.ov=this.playerResponse=this.MW=this.Zs=this.zs=this.mV=null;this.G_=!1;this.zX=null;this.isInlinePlaybackNoAd=this.wU=this.Kd=this.useCobaltWidevine=this.TP=this.bB=!1;this.Q_=!0;this.Je=this.Pf=NaN;this.defraggedFromSubfragments=this.L1=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.Bv=new Set;this.sabrContextUpdates=new Map;this.gatewayExperimentGroup=
  4450. this.TE="";this.lq=this.xx=this.XF=!1;this.interstitials=[];this.kc=this.Q8=!1;this.Co="";this.allowImaMonetization=!1;this.CN="";this.Qq=!1;this.gB="";this.aF=[];this.yI=[];this.HG="";this.WD=this.L=this.Dd=!1;this.sZ="";this.hC=this.N$=this.pS=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.Oi=!1;this.U5=this.FW=!0;this.errorDetail=this.userGenderAge="";this.In=this.hg=this.getSharePanelCommand=this.removeFromWatchLaterCommand=
  4451. this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.eU=this.errorReason=this.errorCode=null;this.EW=!1;this.Kw=[];this.vF=this.rO=this.Qp=this.rH=this.QX=0;this.fetchType=null;this.T$=!0;this.transitionEndpointAtEndOfStream=void 0;this.rQ=this.YY=-1;this.l9=this.gk=!1;this.rA=null;this.lr="";this.watchUrl=null;this.WJ=[];this.visibleOnLoadKeys=[];this.Mr=[];this.inlineMetricEnabled=this.PR=!1;this.eC=this.embedsRctn=this.embedsRct="";this.j9=NaN;this.authorizedFormats=
  4452. [];this.PM=(0,g.cj)();this.di=this.tW=0;this.vO=null;this.QM=this.Aq=!1;this.UK=0;this.Y6={};this.ev=this.Mk.experiments.Wv("html5_use_triple_equals");this.oS=g.Yv(this.Mk.experiments,"html5_gapless_loop_seek_offset_in_milli");this.fC={setData:function(Y){T.setData(Y)},
  4453. kM:function(){T.kM()},
  4454. Vc:function(Y){T.Vc(Y)}};
  4455. this.gk=this.N("web_new_autonav_countdown");this.l9=this.N("web_new_big_thumbnail_endscreen");this.Mk.l9&&(this.aU=this.Mk.l9);this.setData(q);this.SC=new GG;g.C(this,this.SC)};
  4456. g.QM=function(d,q,T){q&&q.cpn&&g.OL(new g.CW("CPN provided in VideoData update",{rdO:q.cpn,KA:d.clientPlaybackNonce,EHw:T}));T?(Ty(q),d.setData(q),hw(d)&&d.kM()):(q=q||{},b6g(d,q),Hr(d,q),X_j(d,q),d.publish("dataupdated"))};
  4457. X_j=function(d,q){d.fflags=d8(d.fflags,q.fflags);var T=q.iv_invideo_url;T&&(d.RU=zn(T));d.H9=vL(d.H9,q.iv_ads_only);if(T=q.cta_conversion_urls)d.d2=T;d.isPharma=vL(d.isPharma,q.is_pharma);d.author=d8(d.author,q.author);d.V5=JC1(q.ttsurl)||d.V5;d.M0=vL(d.M0,q.cc_asr);d.wO=d8(d.wO,q.channel_path);if(T=q.profile_picture)d.profilePicture=d8(d.profilePicture,T);d.videoCountText=d8(d.videoCountText,q.video_count_text);d.autonavState=oD(d.autonavState,q.autonav_state,sxI);d.clientPlaybackNonce=d8(d.clientPlaybackNonce,
  4458. q.cpn);d.subscribed=vL(d.subscribed,q.subscribed);d.rawViewCount=VB(d.rawViewCount,q.view_count);d.shortViewCount=d8(d.shortViewCount,q.short_view_count_text);d.publishedTimeText=d8(d.publishedTimeText||"",q.publishedTimeText);d.lengthText=d8(d.lengthText||"",q.lengthText);d.MD=d8(d.MD||"",q.MD);d.yh=d8(d.yh||"",q.yh);d.title=d8(d.title,q.title);d.subtitle=d8(d.subtitle,q.subtitle);d.expandedTitle=d8(d.expandedTitle,q.expanded_title);d.expandedSubtitle=d8(d.expandedSubtitle,q.expanded_subtitle);d.ypcPreview=
  4459. d8(d.ypcPreview,q.ypc_preview);d.wQ=d8(d.wQ,q.ypc_origin);d.Vt=vL(d.Vt,q.ypc_is_premiere_trailer);d.sZ=d8(d.sZ,q.ypc_clickwrap_message);d.paygated=vL(d.paygated,q.paygated);d.U4=vL(d.U4,q.requires_purchase);d.showShareButton=!vL(!d.showShareButton,q.ss);d.FW=vL(d.FW,q.showwatchlater);d.U5=vL(d.U5,q.shownotifybutton);d.Oi=vL(d.Oi,q.copy_share);if(T=q.el)d.eventLabel=T;if(T=q.keywords)d.keywords=$61(T.split(","));if(T=q.rvs)d.suggestions=vq(T).map(function(Y){return Y.playlist||Y.list||Y.api?new lS(d.Mk,
  4460. Y):new vT(d.Mk,Y)});
  4461. d.contentCheckOk=vL(d.contentCheckOk,q.cco);d.racyCheckOk=vL(d.racyCheckOk,q.rco);d.isLivingRoomDeeplink=vL(d.isLivingRoomDeeplink,q.is_living_room_deeplink);d.oauthToken=d8(d.oauthToken,q.oauth_token);d.pC=d8(d.pC,q.kpt);d.visitorData=d8(d.visitorData,q.visitor_data);if(T=q.session_data)d.sessionData=mR(T,"&");d.b4=d8(d.b4,q.endscreen_ad_tracking_data);d.us=vL(d.us,q.wait_for_vast_info_cards_xml);d.zE=vL(d.zE,q.suppress_creator_endscreen);d.YJ=vL(d.YJ,q.is_trueview_action);d.My=d8(d.My,q.tracking_list);
  4462. gqg(d,q)};
  4463. Hr=function(d,q){var T=q.raw_watch_next_response;if(!T){var Y=q.watch_next_response;Y&&(T=JSON.parse(Y))}if(T){d.dO=T;var e=d.dO.playerCueRangeSet;e&&g.MR(d,e);var U=d.dO.playerOverlays;if(U){var b=U.playerOverlayRenderer;if(b){var J=b.autonavToggle;J&&(d.autoplaySwitchButtonRenderer=g.D(J,Fo_),d.N("web_player_autonav_use_server_provided_state")&&cr(d)&&(d.autonavState=d.autoplaySwitchButtonRenderer.enabled?2:1));var F=b.videoDetails;if(F){var N=F.embeddedPlayerOverlayVideoDetailsRenderer;var R=F.playerOverlayVideoDetailsRenderer;
  4464. R&&(R.title&&(q.title=g.gx(R.title)),R.subtitle&&(q.subtitle=g.gx(R.subtitle)))}g.bS(d.Mk)&&(d.FW=!!b.addToMenu);NN6(d,b.shareButton);b.startPosition&&b.endPosition&&(d.progressBarStartPosition=b.startPosition,d.progressBarEndPosition=b.endPosition);var x=b.gatedActionsOverlayRenderer;x&&(d.KQ=g.D(x,RyY));var y,h,H,a=g.D((y=d.getWatchNextResponse())==null?void 0:(h=y.playerOverlays)==null?void 0:(H=h.playerOverlayRenderer)==null?void 0:H.infoPanel,x66);if(a){d.j9=Number(a==null?void 0:a.durationMs)||
  4465. NaN;if(a==null?0:a.infoPanelOverviewViewModel)d.dA=a==null?void 0:a.infoPanelOverviewViewModel;if(a==null?0:a.infoPanelDetailsViewModel)d.w4=a==null?void 0:a.infoPanelDetailsViewModel}d.showSeekingControls=!!b.showSeekingControls}}var p,t,n=(p=d.getWatchNextResponse())==null?void 0:(t=p.contents)==null?void 0:t.twoColumnWatchNextResults;if(n){var K=n.desktopOverlay&&g.D(n.desktopOverlay,yC1);K&&(K.suppressShareButton&&(d.showShareButton=!1),K.suppressWatchLaterButton&&(d.FW=!1))}N&&hyY(d,q,N);var P=
  4466. VB(0,q.autoplay_count),w=d.getWatchNextResponse(),l,m=(l=w.contents)==null?void 0:l.twoColumnWatchNextResults,b_,x2,JY,s6=(b_=w.playerOverlays)==null?void 0:(x2=b_.playerOverlayRenderer)==null?void 0:(JY=x2.autoplay)==null?void 0:JY.playerOverlayAutoplayRenderer,qH=Wug(d),O6,SD=(O6=w.contents)==null?void 0:O6.singleColumnWatchNextResults;if(SD){var dL;if(((dL=SD.autoplay)==null?0:dL.autoplay)&&!SD.playlist){var hE=SD.autoplay.autoplay.sets,JE={},tY=new vT(d.C()),bw=null,kc;if(hE){for(var fB=g.E(hE),
  4467. XV=fB.next();!XV.done;XV=fB.next()){var r=XV.value.autoplayVideoRenderer;if(r&&r.compactVideoRenderer){bw=r.compactVideoRenderer;break}}if(kc=hE[0].autoplayVideo){var Ch=kc.clickTrackingParams;Ch&&(JE.itct=Ch);JE.autonav="1";JE.playnext=String(P)}}else JE.feature="related-auto";var BR=g.D(kc,g.EB);if(bw){tY.videoId=bw.videoId;var Y2=bw.shortBylineText;Y2&&(tY.author=g.gx(Y2));var AE=bw.title;AE&&(tY.title=g.gx(AE))}else BR!=null&&BR.videoId&&(tY.videoId=BR.videoId);tY.wS=JE;d.suggestions=[];d.u3=
  4468. tY}}if(qH){for(var A=[],T7=g.E(qH),tz=T7.next();!tz.done;tz=T7.next()){var Xk=tz.value,uQ=void 0,IQ=null;if(Xk.endScreenVideoRenderer){var Tl=Xk.endScreenVideoRenderer,Vl=Tl.title;IQ=new vT(d.C());IQ.videoId=Tl.videoId;IQ.lengthSeconds=Tl.lengthInSeconds||0;var uw=Tl.publishedTimeText;uw&&(IQ.publishedTimeText=g.gx(uw));var Z=Tl.shortBylineText;Z&&(IQ.author=g.gx(Z));var c=Tl.shortViewCountText;c&&(IQ.shortViewCount=g.gx(c));if(Vl){IQ.title=g.gx(Vl);var O=Vl.accessibility;if(O){var L=O.accessibilityData;
  4469. L&&L.label&&(IQ.ariaLabel=L.label)}}var u=Tl.navigationEndpoint;if(u){uQ=u.clickTrackingParams;var F1=g.D(u,g.EB),z=g.D(u,g.KM);F1?IQ.qq=F1:z!=null&&(IQ.watchUrl=z.url)}var V=Tl.thumbnailOverlays;if(V)for(var k=g.E(V),G7=k.next();!G7.done;G7=k.next()){var wI=G7.value.thumbnailOverlayTimeStatusRenderer;if(wI)if(wI.style==="LIVE"){IQ.isLivePlayback=!0;break}else if(wI.style==="UPCOMING"){IQ.isUpcoming=!0;break}}IQ.B=zF(Tl.thumbnail)}else if(Xk.endScreenPlaylistRenderer){var X1=Xk.endScreenPlaylistRenderer,
  4470. gL=X1.navigationEndpoint;if(!gL)continue;var Bg=g.D(gL,g.EB);if(!Bg)continue;var AY=Bg.videoId;IQ=new lS(d.C());IQ.playlistId=X1.playlistId;IQ.playlistLength=Number(X1.videoCount)||0;IQ.G=AY||null;IQ.videoId=AY;var d_=X1.title;d_&&(IQ.title=g.gx(d_));var as=X1.shortBylineText;as&&(IQ.author=g.gx(as));uQ=gL.clickTrackingParams;IQ.B=zF(X1.thumbnail)}IQ&&(uQ&&(IQ.sessionData={itct:uQ}),A.push(IQ))}d.suggestions=A}if(s6){d.T$=!!s6.preferImmediateRedirect;d.gk=d.gk||!!s6.webShowNewAutonavCountdown;d.l9=
  4471. d.l9||!!s6.webShowBigThumbnailEndscreen;if(d.gk||d.l9){var PR=m||null,pN=new vT(d.C());pN.videoId=s6.videoId;var EM=s6.videoTitle;if(EM){pN.title=g.gx(EM);var rI=EM.accessibility;if(rI){var KB=rI.accessibilityData;KB&&KB.label&&(pN.ariaLabel=KB.label)}}var pB=s6.byline;pB&&(pN.author=g.gx(pB));var Jz=s6.publishedTimeText;Jz&&(pN.publishedTimeText=g.gx(Jz));var Zn=s6.shortViewCountText;Zn&&(pN.shortViewCount=g.gx(Zn));var Vw=s6.thumbnailOverlays;if(Vw)for(var Y9=g.E(Vw),zl=Y9.next();!zl.done;zl=Y9.next()){var Gl=
  4472. zl.value.thumbnailOverlayTimeStatusRenderer;if(Gl)if(Gl.style==="LIVE"){pN.isLivePlayback=!0;break}else if(Gl.style==="UPCOMING"){pN.isUpcoming=!0;break}else if(Gl.style==="DEFAULT"&&Gl.text){pN.lengthText=g.gx(Gl.text);var ZG=Gl.text.accessibility;if(ZG){var S0=ZG.accessibilityData;S0&&S0.label&&(pN.MD=S0.label||"")}break}}pN.B=zF(s6.background);var hA=s6.nextButton;if(hA){var PE=hA.buttonRenderer;if(PE){var dz=PE.navigationEndpoint;if(dz){var qV=g.D(dz,g.EB);qV&&(pN.qq=qV)}}}if(s6.topBadges){var Uw=
  4473. s6.topBadges[0];if(Uw){var jV=g.D(Uw,H6N);jV&&jV.style==="BADGE_STYLE_TYPE_PREMIUM"&&(pN.Vh5=!0)}}var GU=s6.alternativeTitle;GU&&(pN.yh=g.gx(GU));var l$={autonav:"1",playnext:String(P)};pN.playlistId&&(l$.autoplay="1");if(PR){var Lg,qQ,HE,WE,MA=(Lg=PR.autoplay)==null?void 0:(qQ=Lg.autoplay)==null?void 0:(HE=qQ.sets)==null?void 0:(WE=HE[0])==null?void 0:WE.autoplayVideo;if(MA){var TU=MA.clickTrackingParams;TU&&(l$.itct=TU);var cV=g.D(MA,g.EB);cV&&(pN.Ny=cV)}}else if(s6){var YY,e8,Ut,bL=(YY=s6.nextButton)==
  4474. null?void 0:(e8=YY.buttonRenderer)==null?void 0:(Ut=e8.navigationEndpoint)==null?void 0:Ut.clickTrackingParams;bL&&(l$.itct=bL)}l$.itct||(l$.feature="related-auto");pN.wS=l$;d.suggestions||(d.suggestions=[]);d.u3=pN}s6.countDownSecs!=null&&(d.YY=s6.countDownSecs*1E3);s6.countDownSecsForFullscreen!=null&&(d.rQ=s6.countDownSecsForFullscreen>=0?s6.countDownSecsForFullscreen*1E3:-1);d.N("web_autonav_color_transition")&&s6.watchToWatchTransitionRenderer&&(d.watchToWatchTransitionRenderer=g.D(s6.watchToWatchTransitionRenderer,
  4475. Qxn))}var Ey=Wug(d);if(Ey){var b$,Xj,yg,hy=Ey==null?void 0:(b$=Ey[0])==null?void 0:(Xj=b$.endScreenVideoRenderer)==null?void 0:(yg=Xj.navigationEndpoint)==null?void 0:yg.clickTrackingParams,B3=g.jH(d);hy&&B3&&(B3.sessionData={itct:hy})}d.dO.currentVideoThumbnail&&(d.B=zF(d.dO.currentVideoThumbnail));var P0,W0,Cg,e4,KJ,Mj=(P0=d.dO)==null?void 0:(W0=P0.contents)==null?void 0:(Cg=W0.twoColumnWatchNextResults)==null?void 0:(e4=Cg.results)==null?void 0:(KJ=e4.results)==null?void 0:KJ.contents;if(Mj&&Mj[1]){var Gs,
  4476. Uf,uL,ar,js=(Gs=Mj[1].videoSecondaryInfoRenderer)==null?void 0:(Uf=Gs.owner)==null?void 0:(uL=Uf.videoOwnerRenderer)==null?void 0:(ar=uL.thumbnail)==null?void 0:ar.thumbnails;js&&js.length&&(d.profilePicture=js[js.length-1].url)}var uF=Ty(q),bZ,H5=(bZ=d.getWatchNextResponse())==null?void 0:bZ.onResponseReceivedEndpoints;if(H5)for(var X6=g.E(H5),LJ=X6.next();!LJ.done;LJ=X6.next()){var Qg=LJ.value;g.D(Qg,af)&&(d.J$=g.D(Qg,af));var eT=g.D(Qg,MiH),fe=void 0;if((fe=eT)==null?0:fe.entityKeys)d.WJ=eT.entityKeys||
  4477. [],eT.visibleOnLoadKeys&&(d.visibleOnLoadKeys=eT.visibleOnLoadKeys)}if(d.N("web_key_moments_markers")){var ef=g.Aw.getState().entities,sf=g.v6("visibility_override","markersVisibilityOverrideEntity");var DA=VA(ef,"markersVisibilityOverrideEntity",sf);d.Fw=(DA==null?void 0:DA.videoId)===(d.videoId||uF)&&(DA==null?0:DA.visibilityOverrideMarkersKey)?DA.visibilityOverrideMarkersKey:d.visibleOnLoadKeys;d.visibleOnLoadKeys=[].concat(g.RQ(d.Fw))}}};
  4478. cr=function(d){var q;return((q=d.autoplaySwitchButtonRenderer)==null?void 0:q.enabled)!==void 0};
  4479. pt=function(d){return!!(d.j&&d.j.videoInfos&&d.j.videoInfos.length)};
  4480. g.Br=function(d){var q=d.L;d.N("html5_gapless_unlimit_format_selection")&&Zu(d)&&(q=!1);var T=!!d.G&&d.G.aN,Y=d.Mk,e=d.P5(),U=OB(d),b=d.xx,J=q,F=d.isOtf();q=d.qr();var N=d.kx,R=d.getUserAudio51Preference(),x=nt(d),y=rd(d),h=new CN_(Y);if(Y.uF()||Y.N("html5_logging_format_selection"))h.U=!0;h.RU=U;h.xx=b&&Y.B;h.rO=R;g.kA("windows nt 5.1")&&!g.Fv&&(h.Mf=!0);if(U=e)U=g.pI(Y)?mB7(Y):!1;U&&(h.lr=!0);J&&(h.Mf=!0,h.zq=!0);F&&!Y.N("html5_otf_prefer_vp9")&&(h.Mf=!0);Y.playerStyle==="picasaweb"&&(F&&(h.Mf=
  4481. !1),h.UD=!1);N&&(h.Mf=!0);fY(Y.S,zG.CHANNELS)&&(Y.N("html5_enable_ac3")&&(h.T=!0),Y.N("html5_enable_eac3")&&(h.S=!0),Y.N("html5_enable_ac3_gapless")&&(h.z2=!0));Y.N("html5_block_8k_hfr")&&(h.AF=!0);h.X=g.Yv(Y.experiments,"html5_max_selectable_quality_ordinal");h.L=g.Yv(Y.experiments,"html5_min_selectable_quality_ordinal");vx&&(h.ev=480);if(T||e)h.UD=!1;h.Fw=!1;h.disableAv1=x;T=Y8(Y,h.G,void 0,h.disableAv1);T>0&&T<2160&&(XD()||Y.N("html5_format_hybridization"))&&(h.G.supportsChangeType=+XD(),h.hq=
  4482. T);T>=2160&&(h.yv=!0);elf()&&!Y.N("disable_av1_setting")&&(h.G.serveVp9OverAv1IfHigherRes=0,h.pC=!1);h.qr=q;h.aU=g.DP||Se()&&!q?!1:!0;h.B=Y.N("html5_format_hybridization");h.wO=Y.N("html5_disable_encrypted_vp9_live_non_2k_4k");h.fn=y;tw(d)&&(h.Ln=d.N("html5_prefer_language_over_codec"));CZ()&&d.playerResponse&&d.playerResponse.playerConfig&&d.playerResponse.playerConfig.webPlayerConfig&&d.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(h.T=!0,h.S=!0);d.L&&d.isAd()&&(d.YH&&
  4483. (h.K=d.YH),d.wJ&&(h.j=d.wJ));h.dO=d.isLivePlayback&&d.It()&&d.Mk.N("html5_drm_live_audio_51");h.kx=d.Kd;h.lF=!tw(d);return d.rA=h};
  4484. nt=function(d){return d.Mk.N("html5_disable_av1")||d.N("html5_gapless_shorts_disable_av1")&&Zu(d)?!0:!1};
  4485. cCj=function(d){pU("drm_pb_s",void 0,d.lr);d.qk||d.G&&WI(d.G);var q={};d.G&&(q=Hw7(d.SC,g.Br(d),d.Mk.S,d.G,function(T){return d.publish("ctmp","fmtflt",T)},!0,new Set));
  4486. q=new x8(q,d.Mk,d.TP,d.useCobaltWidevine?CZ()?Kt(d):!1:!1,function(T,Y){d.oU(T,Y)});
  4487. g.C(d,q);d.rK=!1;d.loading=!0;f2f(q,function(T){pU("drm_pb_f",void 0,d.lr);for(var Y=g.E(T),e=Y.next();!e.done;e=Y.next())switch(e=e.value,e.flavor){case "fairplay":e.qk=d.qk;e.Fc=d.Fc;e.LL=d.LL;break;case "widevine":e.zr=d.zr}d.bV=T;if(d.bV.length>0&&(d.S=d.bV[0],d.Mk.uF())){T={};Y=g.E(Object.entries(d.S.G));for(e=Y.next();!e.done;e=Y.next()){var U=g.E(e.value);e=U.next().value;U=U.next().value;var b="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(b=e[2]);T[b]=U}d.oU("drmProbe",T)}d.kM()})};
  4488. Eq1=function(d,q){if(q.length===0||GC(d))return null;d.Mk.S.j&&(d6=!0);var T=d.ac;var Y=d.lengthSeconds,e=d.isLivePlayback,U=d.uC,b=d.Mk,J=a22(q);if(e||U){b=b.experiments;Y=new Wb("",b,!0);Y.U=!U;Y.aN=!0;Y.isManifestless=!0;Y.isLive=!U;Y.uC=U;q=g.E(q);for(e=q.next();!e.done;e=q.next()){var F=e.value;e=De(F,T);J=VR(F);J=fy(J.XR||F.url||"",J.oG,J.s);var N=J.get("id");N&&N.includes("%7E")&&(Y.K=!0);var R=void 0;N=(R=b)==null?void 0:R.Wv("html5_max_known_end_time_rebase");R=Number(F.targetDurationSec||
  4489. 5);F=Number(F.maxDvrDurationSec||14400);var x=Number(J.get("mindsq")||J.get("min_sq")||"0"),y=Number(J.get("maxdsq")||J.get("max_sq")||"0")||Infinity;Y.QX=Y.QX||x;Y.rH=Y.rH||y;var h=!iW(e.mimeType);J&&Ly(Y,new Q8(J,e,{W3:R,RF:h,nW:F,QX:x,rH:y,Fp:300,uC:U,qx:N}))}T=Y}else if(J==="FORMAT_STREAM_TYPE_OTF"){Y=Y===void 0?0:Y;U=new Wb("",b.experiments,!1);U.duration=Y||0;b=g.E(q);for(Y=b.next();!Y.done;Y=b.next())Y=Y.value,q=De(Y,T,U.duration),e=VR(Y),(e=fy(e.XR||Y.url||"",e.oG,e.s))&&(q.streamType==="FORMAT_STREAM_TYPE_OTF"?
  4490. Ly(U,new MG(e,q,"sq/0")):Ly(U,new Bb(e,q,dT(Y.initRange),dT(Y.indexRange))));U.isOtf=!0;T=U}else{Y=Y===void 0?0:Y;U=new Wb("",b.experiments,!1);U.duration=Y||0;b=g.E(q);for(Y=b.next();!Y.done;Y=b.next())J=Y.value,Y=De(J,T,U.duration),q=dT(J.initRange),e=dT(J.indexRange),N=VR(J),(J=fy(N.XR||J.url||"",N.oG,N.s))&&Ly(U,new Bb(J,Y,q,e));T=U}U=d.isLivePlayback&&!d.uC&&!d.yv&&!d.isPremiere;d.N("html5_live_head_playable")&&(!Lt(d)&&U&&d.oU("missingLiveHeadPlayable",{}),d.Mk.lr==="yt"&&(T.RU=!0));return T};
  4491. GC=function(d){return CZ()?!Kt(d):Dq()?!(!d.qk||!d.N("html5_enable_safari_fairplay")&&E4()):!1};
  4492. Kt=function(d){return d.N("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')};
  4493. g.MR=function(d,q){q=g.E(q);for(var T=q.next();!T.done;T=q.next())if(T=T.value,T.cueRangeSetIdentifier){var Y=void 0;d.fd.set(T.cueRangeSetIdentifier,(Y=T.playerCueRanges)!=null?Y:[])}};
  4494. kp=function(d){return!(!d.G||!d.G.isManifestless)};
  4495. Pr=function(d){return d.ev?d.isLowLatencyLiveStream&&d.G!=null&&mF(d.G)>=5:d.isLowLatencyLiveStream&&d.G!=void 0&&mF(d.G)>=5};
  4496. jxj=function(d){return CZ()&&Kt(d)?!1:GC(d)&&(g.xv(d.Mk)?!d.isLivePlayback:d.hlsvp)||!E4()||d.kh?!0:!1};
  4497. p_I=function(d){d.loading=!0;d.E$=!1;if(awj(d))g.SO2(d.videoId).then(function(Y){ACD(d,Y)}).then(function(){d.kM()});
  4498. else{wp(d.Ln)||g.OL(new g.CW("DASH MPD Origin invalid: ",d.Ln));var q=d.Ln,T=g.Yv(d.Mk.experiments,"dash_manifest_version")||4;q=g.y6(q,{mpd_version:T});d.isLowLatencyLiveStream&&d.latencyClass!=="NORMAL"||(q=g.y6(q,{pacing:0}));BCX(q,d.Mk.experiments,d.isLivePlayback).then(function(Y){d.JF()||(Wr(d,Y,!0),pU("mrc",void 0,d.lr),d.kM())},function(Y){d.JF()||(d.loading=!1,d.publish("dataloaderror",new g.xV("manifest.net.retryexhausted",{backend:"manifest",
  4499. rc:Y.status},1)))});
  4500. pU("mrs",void 0,d.lr)}};
  4501. ACD=function(d,q){var T=q.map(function(F){return F.itag}),Y;
  4502. if((Y=d.playerResponse)!=null&&Y.streamingData){Y=[];if(d.N("html5_offline_always_use_local_formats")){T=0;for(var e=g.E(q),U=e.next();!U.done;U=e.next()){U=U.value;var b=Object.assign({},U);b.signatureCipher="";Y.push(b);b=g.E(d.playerResponse.streamingData.adaptiveFormats);for(var J=b.next();!J.done;J=b.next())if(J=J.value,U.itag===J.itag&&U.xtags===J.xtags){T+=1;break}}T<q.length&&d.oU("offnpf",{prlen:T,lflen:q.length})}else for(e=g.E(d.playerResponse.streamingData.adaptiveFormats),b=e.next(),
  4503. U={};!b.done;U={Cx:void 0},b=e.next())if(U.Cx=b.value,d.N("html5_fix_multi_audio_offline_playback"))for(b=g.E(q),J=b.next();!J.done;J=b.next())J=J.value,J.itag===U.Cx.itag&&J.xtags===U.Cx.xtags&&(U.Cx=Object.assign({},U.Cx),U.Cx.url=q.find(function(F){return function(N){return N.itag===F.Cx.itag}}(U)).url,U.Cx.signatureCipher="",Y.push(U.Cx));
  4504. else T.includes(U.Cx.itag)&&(U.Cx=Object.assign({},U.Cx),U.Cx.url=q.find(function(F){return function(N){return N.itag===F.Cx.itag}}(U)).url,U.Cx.signatureCipher="",Y.push(U.Cx));
  4505. Y.length<2&&d.oU("offmlf",{len:Y.length});q=Eq1(d,Y);OB(d)&&k5g(q,!1);Wr(d,q);d.oU("dlr",{})}else d.oU("offsdm",{cotn:d.Ph?d.Ph.cotn:"0",cpn:d.clientPlaybackNonce})};
  4506. Z6f=function(d){var q;return!((q=d.Mk.getWebPlayerContextConfig())==null||!q.enableProximaLowLatency)};
  4507. Ct=function(d){if(!d.isProximaLatencyEligible)return 0;var q=hF();return Z6f(d)?2:q===1?1:d.N("html5_enable_proxima")?2:0};
  4508. Wr=function(d,q,T){T=T===void 0?!1:T;d.pL=void 0;d.G=q;g.C(d,q);q.QX=d.QX;q.rH=d.rH;q.rO=d.rO;q.Qp=d.Qp;q.vF=d.vF;d.Dc&&(q.B=new fj(d.Dc));(d.P5()||g.ux(d))&&d.K.push("webgl");d.G.isLive||(d.isLivePlayback=!1);var Y=q.sourceUrl.split("/");if(d.ev?Y.indexOf("manifest_duration")!==-1:Y.indexOf("manifest_duration")!=-1)d.Ar=Number(Y[Y.indexOf("manifest_duration")+1]);if(q.U||q.isManifestless)q.subscribe("clienttemp",d.oU,d),T?q.subscribe("refresh",d.kf,d):q.subscribe("cuepointsadded",d.GJ,d);WI(q)?d.rK=
  4509. !0:hj=void 0;d.yv&&(q.T=d.yv,q.isLive=!0,d.isLivePlayback=!0);q.isPremiere=d.isPremiere;q.isLiveHeadPlayable=d.isLiveHeadPlayable};
  4510. O6_=function(d,q){var T=q||jxj(d)||d.isExternallyHostedPodcast;if(!d.G||T)return d.oU("skipDash",{dm:!!d.G,air:q,dd:d.kh,mss:E4(),"3pp":d.isExternallyHostedPodcast}),Ad();OB(d)&&k5g(d.G,d.isLivePlayback);return pZ().then(function(){return MP6(d.SC,g.Br(d),d.Mk.S,d.G,d.S,function(Y){return d.publish("ctmp","fmtflt",Y)},d.yI,tw(d)&&d.N("html5_enable_server_format_filter")).then(function(Y){d.Vc(Y);
  4511. d.SC.G=null;/^av/.test(d.clientPlaybackNonce)&&d.rA&&d.oU("av1",d.rA.G)})})};
  4512. rCj=function(d,q){if(q&&d.hlsvp)return Ad();if(d.hlsFormats){q=Du(d.hlsFormats);var T;if(((T=d.rA)==null?0:T.U)&&q){T=[];for(var Y=g.E(q),e=Y.next();!e.done;e=Y.next())T.push(e.value.itag);d.oU("hlsfmt",{itags:T.join(".")})}d.K8=sFn(d.Mk,q);d.K8&&nqn(d,d.K8);T=d.clientPlaybackNonce;var U,b,J,F;return REY(d.Mk,d.isAd(),q,(F=(U=d.playerResponse)==null?void 0:(b=U.captions)==null?void 0:(J=b.playerCaptionsRenderer)==null?void 0:J.baseUrl)!=null?F:null,d.zq,T,function(N){return d.publish("ctmp","hlsflt",
  4513. N)}).then(function(N){for(var R=0,x=[],y=g.E(N),h=y.next();!h.done;h=y.next()){h=h.value;
  4514. var H=void 0;x.push((H=h.getInfo())==null?void 0:H.itag);var a=H=void 0;((H=h.getInfo())==null?void 0:(a=H.audio)==null?void 0:a.numChannels)>R&&(R=h.getInfo().audio.numChannels)}R>2&&d.oU("hlschl",{mn:R});var p;((p=d.rA)==null?0:p.U)&&d.oU("hlsfmtaf",{itags:x.join(".")});var t;if(d.N("html5_enable_vp9_fairplay")&&((t=d.S)==null?0:$8(t)))for(d.oU("drm",{sbdlfbk:1}),R=g.E(d.bV),x=R.next();!x.done;x=R.next())if(x=x.value,s4(x)){d.S=x;break}wd(d,N)})}return Ad()};
  4515. tij=function(d){if(d.isExternallyHostedPodcast&&d.vA){var q=Du(d.vA);if(!q[0])return Ad();d.zqD=q[0];return hEj(d.Mk,q[0]).then(function(T){wd(d,T)})}return d.j8&&d.Hi?yRX(d.Mk,d.isAd(),d.j8).then(function(T){wd(d,T)}):Ad()};
  4516. KoD=function(d){if(d.isExternallyHostedPodcast)return Ad();var q=Du(d.vA,d.Uu);if(d.hlsvp){var T=U6Q(d.hlsvp,d.clientPlaybackNonce,d.zq);q.push(T)}return xm2(d.Mk,d.isAd(),q,BN7(d)).then(function(Y){wd(d,Y)})};
  4517. wd=function(d,q){d.qC=q;d.Vc(new KY(g.yC(d.qC,function(T){return T.getInfo()})))};
  4518. BN7=function(d){var q={cpn:d.clientPlaybackNonce,c:d.Mk.G.c,cver:d.Mk.G.cver};d.BJ&&(q.ptk=d.BJ,q.oid=d.KN,q.ptchn=d.VL,q.pltype=d.wM,d.Nj&&(q.m=d.Nj));return q};
  4519. g.ft=function(d){return GC(d)&&d.qk?(d={},d.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",d):d.U&&d.U.ac||null};
  4520. GbY=function(d){var q=zC(d);return q&&q.text?g.gx(q.text):d.paidContentOverlayText};
  4521. Loj=function(d){var q=zC(d);return q&&q.durationMs?BZ(q.durationMs):d.paidContentOverlayDurationMs};
  4522. zC=function(d){var q,T,Y;return d.playerResponse&&d.playerResponse.paidContentOverlay&&d.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.D((q=d.dO)==null?void 0:(T=q.playerOverlays)==null?void 0:(Y=T.playerOverlayRenderer)==null?void 0:Y.playerDisclosure,kbN)||null};
  4523. ix=function(d){var q="";if(d.wm)return d.wm;d.isLivePlayback&&(q=d.allowLiveDvr?"dvr":d.isPremiere?"lp":d.yv?"window":"live");d.uC&&(q="post");return q};
  4524. g.If=function(d,q){return typeof d.keywords[q]!=="string"?null:d.keywords[q]};
  4525. Pvn=function(d){return!!d.dZ||!!d.uK||!!d.OW||!!d.Gw||d.WH};
  4526. g.mJ=function(d){return!!(d.Ln||d.vA||d.j8||d.hlsvp||d.xk())};
  4527. hw=function(d){if(d.N("html5_onesie")&&d.errorCode)return!1;var q=g.cR(d.K,"ypc");d.ypcPreview&&(q=!1);return d.LH()&&!d.loading&&(g.mJ(d)||g.cR(d.K,"heartbeat")||q)};
  4528. Du=function(d,q){d=vq(d);var T={};if(q){q=g.E(q.split(","));for(var Y=q.next();!Y.done;Y=q.next())(Y=Y.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(T[Y[1]]={width:Y[2],height:Y[3]})}q=g.E(d);for(Y=q.next();!Y.done;Y=q.next()){Y=Y.value;var e=T[Y.itag];e&&(Y.width=e.width,Y.height=e.height)}return d};
  4529. NN6=function(d,q){d.showShareButton=!!q;var T,Y,e=((T=g.D(q,g.q6))==null?void 0:T.navigationEndpoint)||((Y=g.D(q,g.q6))==null?void 0:Y.command);e&&(d.Oi=!!g.D(e,Wo1))};
  4530. b6g=function(d,q){var T=q.raw_embedded_player_response;if(!T){var Y=q.embedded_player_response;Y&&(T=JSON.parse(Y))}T&&(d.mV=T);if(d.mV){d.embeddedPlayerConfig=d.mV.embeddedPlayerConfig||null;if(T=d.mV.videoFlags)T.playableInEmbed&&(d.allowEmbed=!0),T.isPrivate&&(d.isPrivate=!0),T.userDisplayName&&(q.user_display_name=T.userDisplayName),T.userDisplayImage&&(q.user_display_image=T.userDisplayImage);if(T=d.mV.embedPreview){T=T.thumbnailPreviewRenderer;PV6(d,T.controlBgHtml);if(Y=T.defaultThumbnail)d.B=
  4531. zF(Y);d.N("embeds_web_enable_search_button")&&T.searchButton&&(Y=g.D(T.searchButton,g.q6))&&(d.ff5=g.D(Y.navigationEndpoint,g.SH));(Y=g.D(T==null?void 0:T.videoDetails,Cv_))&&hyY(d,q,Y);Y=g.D(T==null?void 0:T.videoDetails,uCj);d.FW=!!T.addToWatchLaterButton;NN6(d,T.shareButton);if(Y==null?0:Y.musicVideoType)d.musicVideoType=Y.musicVideoType;var e,U,b,J,F;if(Y=g.D((e=d.getEmbeddedPlayerResponse())==null?void 0:(U=e.embedPreview)==null?void 0:(b=U.thumbnailPreviewRenderer)==null?void 0:(J=b.playButton)==
  4532. null?void 0:(F=J.buttonRenderer)==null?void 0:F.navigationEndpoint,g.EB))Eb2(d,Y),d.videoId=Y.videoId||d.videoId;T.videoDurationSeconds&&(d.lengthSeconds=BZ(T.videoDurationSeconds));T.webPlayerActionsPorting&&k8H(d,T.webPlayerActionsPorting);if(e=g.D(T==null?void 0:T.playlist,D6_)){d.Qs=!0;U=[];b=Number(e.currentIndex);if(e.contents)for(J=0,F=e.contents.length;J<F;J++)if(T=e.contents[J].playlistPanelVideoRenderer){Y=T.shortBylineText?g.gx(T.shortBylineText):"";var N=T.title?g.gx(T.title):"";U.push({author:Y,
  4533. encrypted_id:T.videoId,title:N,channel_path:J===b?q.channel_path:"",profile_picture:J===b?q.profile_picture:"",is_private:J===b?d.isPrivate:!0,is_dni:J===b?d.kc:!1,dni_color:J===b?d.Co:""})}q={index:e.currentIndex,list:e.playlistId,playlist_length:e.totalVideos,video:U};e.titleText&&(q.title=g.gx(e.titleText));e.shortBylineText&&(q.author=g.gx(e.shortBylineText));d.MW=q}var R,x,y;if(q=g.D((R=d.getEmbeddedPlayerResponse())==null?void 0:(x=R.embedPreview)==null?void 0:(y=x.thumbnailPreviewRenderer)==
  4534. null?void 0:y.infoPanel,x66)){d.j9=Number(q==null?void 0:q.durationMs)||NaN;if(q==null?0:q.infoPanelOverviewViewModel)d.dA=q==null?void 0:q.infoPanelOverviewViewModel;if(q==null?0:q.infoPanelDetailsViewModel)d.w4=q==null?void 0:q.infoPanelDetailsViewModel}}if(d.mV.previewPlayabilityStatus){if(d.Zs=d.mV.previewPlayabilityStatus,R=d.Zs,!["OK","LIVE_STREAM_OFFLINE"].includes(R.status)){d.errorCode=QF6(R.errorCode);x=R.errorScreen;if(y=x==null?void 0:x.playerErrorMessageRenderer){d.fk=y;if(q=y.reason)d.errorReason=
  4535. g.gx(q);if(y=y.subreason)d.eU=g.gx(y)}else d.errorReason=R.reason||null;switch(R.status){case "LOGIN_REQUIRED":d.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":d.errorDetail="2";break;case "AGE_CHECK_REQUIRED":var h;(x==null?0:(h=x.playerKavRenderer)==null?0:h.kavUrl)?d.errorDetail="4":d.errorDetail="3";break;default:d.errorDetail=R.isBlockedInRestrictedMode?"5":"0"}}}else d.mV.playabilityStatus&&(d.zs=d.mV.playabilityStatus,w_n(d)&&(d.errorDetail="0",d.zs&&((h=d.zs.embeddedPlayerErrorMessageRenderer)?
  4536. d.fk=g.D(h,fwf):d.errorReason=d.zs.reason||null)));(h=d.mV.attestation)&&t5H(d,h);(h=d.mV.permissions)&&h.allowImaMonetization&&(d.allowImaMonetization=!0)}};
  4537. hyY=function(d,q,T){var Y=T.channelThumbnail;Y&&(Y=Y.thumbnails)&&(Y=Y[0])&&(q.profile_picture=Y.url);var e;if(Y=g.D((e=g.D(T==null?void 0:T.channelThumbnailEndpoint,zyX))==null?void 0:e.urlEndpoint,g.KM))q.channel_path=Y.url;if(e=T.collapsedRenderer)if(e=g.D(e,i61)){if(Y=e.title)q.title=g.gx(Y);if(e=e.subtitle)q.subtitle=g.gx(e)}if(T=T.expandedRenderer)if(T=g.D(T,Iw_)){if(e=T.title)q.expanded_title=g.gx(e);if(e=T.subtitle)q.expanded_subtitle=g.gx(e);if(T=T.subscribeButton)d.subscribeButtonRenderer=
  4538. g.D(T,g.lx),d.subscribeButtonRenderer&&(q.ucid=d.subscribeButtonRenderer.channelId,q.subscribed=d.subscribeButtonRenderer.subscribed,d.U5=!!d.subscribeButtonRenderer.notificationPreferenceToggleButton,d.subscribeButtonRenderer.notificationPreferenceToggleButton&&d.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(q=d.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,q.isToggled?(d.hg=q.toggledServiceEndpoint||null,d.In=q.defaultServiceEndpoint||
  4539. null):(d.hg=q.defaultServiceEndpoint||null,d.In=q.toggledServiceEndpoint||null)))}};
  4540. g.vr=function(d){return Lt(d)&&!d.allowLiveDvr};
  4541. of=function(d){return Lt(d)&&d.allowLiveDvr};
  4542. Lt=function(d){return d.N("html5_live_head_playable")&&kp(d)&&d.Mk.lr==="yt"?d.isLiveHeadPlayable:d.isLivePlayback};
  4543. nqn=function(d,q){q.sort(function(T,Y){return T.toString().localeCompare(Y.toString(),d.Mk.hostLanguage)})};
  4544. g.VM=function(d){return!!d.G&&yeY(d.G)};
  4545. g.dm=function(d){return!!d.G&&h0g(d.G)};
  4546. g.qC=function(d){return!!d.G&&HkQ(d.G)};
  4547. g.ux=function(d){return!!d.G&&QpD(d.G)};
  4548. g.m66=function(d){if(d.zE)return null;var q=d.uD;q||(q=d.playerResponse&&d.playerResponse.endscreen&&d.playerResponse.endscreen.endscreenUrlRenderer&&d.playerResponse.endscreen.endscreenUrlRenderer.url);return q||null};
  4549. g.S7f=function(d){return d.zE?null:d.playerResponse&&d.playerResponse.endscreen&&d.playerResponse.endscreen.endscreenRenderer||null};
  4550. g.TJ=function(d){return d.N("enable_wn_infocards")};
  4551. g.Y4=function(d){var q,T,Y,e;return(g.TJ(d)?(q=d.dO)==null?void 0:(T=q.cards)==null?void 0:T.cardCollectionRenderer:(Y=d.playerResponse)==null?void 0:(e=Y.cards)==null?void 0:e.cardCollectionRenderer)||null};
  4552. g.UF=function(d){if(!d.playerResponse||!d.playerResponse.annotations)return null;d=g.E(d.playerResponse.annotations);for(var q=d.next();!q.done;q=d.next())if(q=q.value,q.playerAnnotationsExpandedRenderer&&q.playerAnnotationsExpandedRenderer.featuredChannel)return q.playerAnnotationsExpandedRenderer;return null};
  4553. bH=function(d){return d.adFormat&&(d.ev?d.adFormat!=="1_5":d.adFormat!="1_5")?"adunit":d.eventLabel||d.Mk.z2};
  4554. g.XG=function(d){return bH(d)==="shortspage"};
  4555. Zu=function(d){return d.mT()&&d.C().supportsGaplessShorts()};
  4556. J7=function(d){if(d.isAd()&&(d.ev?d.videoId!==d.Mk.fn:d.videoId!=d.Mk.fn))return d.Mk.fn};
  4557. sF=function(d){return d.k9||bH(d)==="detailpage"||bH(d)==="shortspage"||d.mutedAutoplay};
  4558. lwg=function(d){var q=bH(d)==="adunit"?d.Ct:sF(d)?bH(d)==="detailpage"||bH(d)==="shortspage"?d.isAutonav||d.q5>0:d.qU?!1:d.Mk.yH||d.Mk.lS||!g.dn(d.Mk)?!0:!1:(d.qU?0:d.yH)&&g.dn(d.Mk)?!0:!1;d.N("html5_log_detailpage_autoplay")&&bH(d)==="detailpage"&&d.oU("autoplay_info",{autoplay:d.k9,autonav:d.isAutonav,wasDompaused:d.qU,result:q});return q};
  4559. g.$4=function(d){return d.oauthToken||d.Mk.Y1};
  4560. oqX=function(d){if(d.N("html5_stateful_audio_normalization")){var q=1,T=g.Yv(d.Mk.experiments,"html5_default_ad_gain");T&&d.isAd()&&(q=T);var Y,e;T=(e=(Y=d.T)==null?void 0:Y.audio.T)!=null?e:d.N9;if(T==null||isNaN(T))d=vqN(d);else{Y=(0,g.cj)();d.IF=2;e=Y-d.Mk.K8<=d.maxStatefulTimeThresholdSec*1E3;d.applyStatefulNormalization&&e?d.IF=4:e||(d.Mk.Pa=Infinity,d.Mk.K8=NaN);e=(d.IF===4?g.Cn(d.Mk.Pa,d.minimumLoudnessTargetLkfs,d.loudnessTargetLkfs):d.loudnessTargetLkfs)-T;if(d.IF!==4){var U,b,J,F,N=((U=
  4561. d.playerResponse)==null?void 0:(b=U.playerConfig)==null?void 0:(J=b.audioConfig)==null?void 0:(F=J.loudnessNormalizationConfig)==null?void 0:F.statelessLoudnessAdjustmentGain)||0;e+=N}e=Math.min(e,0);d.preserveStatefulLoudnessTarget&&(d.Mk.Pa=T+e,d.Mk.K8=Y);d=Math.min(1,Math.pow(10,e/20))||q}}else d=vqN(d);return d};
  4562. vqN=function(d){var q=1,T=g.Yv(d.Mk.experiments,"html5_default_ad_gain");T&&d.isAd()&&(q=T);if(d.Mk.experiments.Wv("html5_audio_gain_null_coalescing")){var Y,e;T=(e=(Y=d.T)==null?void 0:Y.audio.j)!=null?e:d.LC;T==0&&d.oU("db0fix",{rldb:d.LC},!0)}else{var U;T=((U=d.T)==null?void 0:U.audio.j)||d.LC}isNaN(T)||(d.IF=1);return Math.min(1,Math.pow(10,-T/20))||q};
  4563. OB=function(d){var q=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],T=Hx(d.Mk)==="TVHTML5_SIMPLY"&&d.Mk.G.ctheme==="MUSIC";!d.XF&&(g.KG(d.Mk)||g.jZ(d.Mk)||T)&&(q.includes(d.musicVideoType)||d.isExternallyHostedPodcast)&&(d.XF=!0);if(q=g.WL())q=/Starboard\/([0-9]+)/.exec(g.k9()),q=(q?parseInt(q[1],10):NaN)<10;T=d.Mk;T=(Hx(T)==="TVHTML5_CAST"||Hx(T)==="TVHTML5"&&(T.G.cver.startsWith("6.20130725")||T.G.cver.startsWith("6.20130726")))&&d.Mk.G.ctheme==="MUSIC";var Y;if(Y=!d.XF)T||(T=
  4564. d.Mk,T=Hx(T)==="TVHTML5"&&T.G.cver.startsWith("7")),Y=T;Y&&!q&&(q=d.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",T=(d.N("cast_prefer_audio_only_for_atv_and_uploads")||d.N("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&d.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",q||T||d.isExternallyHostedPodcast)&&(d.XF=!0);return d.Mk.deviceIsAudioOnly||d.XF&&d.Mk.B};
  4565. rd=function(d){var q,T,Y;return((q=d.playerResponse)==null?void 0:(T=q.playerConfig)==null?void 0:(Y=T.compositeVideoConfig)==null?void 0:Y.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"};
  4566. Vi7=function(d){var q,T,Y,e=(q=d.playerResponse)==null?void 0:(T=q.playerConfig)==null?void 0:(Y=T.compositeVideoConfig)==null?void 0:Y.sourceConfigs,U,b,J;d=(U=d.playerResponse)==null?void 0:(b=U.playerConfig)==null?void 0:(J=b.compositeVideoConfig)==null?void 0:J.defaultActiveSourceVideoId;if(!e||!d)return"";e=g.E(e);for(U=e.next();!U.done;U=e.next())if(U=U.value,U.videoId===d&&U.audioTracks)for(U=g.E(U.audioTracks),b=U.next();!b.done;b=U.next())if(b=b.value,b.isDefaultForSource)return b.id||"";
  4567. return""};
  4568. g.d7_=function(d){return d.N("html5_enable_sabr_live_captions")&&d.aN()&&tw(d)||rd(d)};
  4569. gm=function(d){var q,T,Y;return!!((q=d.playerResponse)==null?0:(T=q.playerConfig)==null?0:(Y=T.mediaCommonConfig)==null?0:Y.splitScreenEligible)};
  4570. FG=function(d){var q;return!((q=d.playerResponse)==null||!q.compositePlayabilityStatus)};
  4571. qTj=function(d){return isNaN(d)?0:Math.max((Date.now()-d)/1E3-30,0)};
  4572. NC=function(d){return!(!d.EW||!d.Mk.B)&&d.xk()};
  4573. R6=function(d){return d.nL&&d.enableServerStitchedDai};
  4574. TgY=function(d){return d.Aq&&!d.Dc};
  4575. tw=function(d){var q=d.N("html5_enable_sabr_on_drive")&&d.Mk.lr==="gd";if(d.F7)return d.Aq&&d.oU("fds",{fds:!0},!0),!1;if(d.Mk.lr!=="yt"&&!q)return d.Aq&&d.oU("dsvn",{ns:d.Mk.lr},!0),!1;if(d.cotn||!d.G||d.G.isOtf&&!d.N("html5_enable_sabr_otf_in_client")||d.j&&!d.j.G||d.Y0&&!d.N("html5_enable_sabr_csdai"))return!1;if(d.N("html5_use_sabr_requests_for_debugging"))return!0;d.Aq&&d.oU("esfw",{usbc:d.Aq,hsu:!!d.Dc},!0);if(d.Aq&&d.Dc)return!0;if(d.N("html5_remove_client_sabr_determination"))return!1;var T=
  4576. !d.G.aN&&!d.It();q=T&&QU&&d.N("html5_enable_sabr_vod_streaming_xhr");T=T&&!QU&&d.N("html5_enable_sabr_vod_non_streaming_xhr");var Y=x4(d),e=d.N("html5_enable_sabr_drm_vod_streaming_xhr")&&QU&&d.It()&&!d.G.aN&&(d.drmProduct==="1"?!1:!0);(q=q||T||Y||e)&&!d.Dc&&d.oU("sabr",{loc:"m"},!0);return q&&!!d.Dc};
  4577. x4=function(d){var q;if(!(q=QU&&d.aN()&&d.It()&&(d.drmProduct==="1"?!1:!0)&&d.N("html5_sabr_live_drm_streaming_xhr"))){q=d.aN()&&!d.It()&&QU;var T=d.aN()&&d.latencyClass!=="ULTRALOW"&&!d.isLowLatencyLiveStream&&d.N("html5_sabr_live_normal_latency_streaming_xhr"),Y=d.isLowLatencyLiveStream&&d.N("html5_sabr_live_low_latency_streaming_xhr"),e=d.latencyClass==="ULTRALOW"&&d.N("html5_sabr_live_ultra_low_latency_streaming_xhr");q=q&&(T||Y||e)}T=q;q=d.enableServerStitchedDai&&T&&d.N("html5_enable_sabr_ssdai_streaming_xhr");
  4578. T=!d.enableServerStitchedDai&&T;Y=d.aN()&&!QU&&d.N("html5_enable_sabr_live_non_streaming_xhr");d=QU&&(d.y5()||gm(d)&&d.N("html5_enable_sabr_for_lifa_eligible_streams"));return q||T||Y||d};
  4579. awj=function(d){var q;if(q=!!d.cotn)q=d.videoId,q=!!q&&g.TC(q)===1;return q&&!d.EW};
  4580. g.y2=function(d){if(!d.G||!d.U||!d.T)return!1;var q=d.G.G,T=!!q[d.U.id]&&lt(q[d.U.id].zG.G);q=!!q[d.T.id]&&lt(q[d.T.id].zG.G);return(d.U.itag==="0"||T)&&q};
  4581. h7=function(d){return d.Zs?["OK","LIVE_STREAM_OFFLINE"].includes(d.Zs.status):!0};
  4582. w_n=function(d){return(d=d.zs)&&d.showError?d.showError:!1};
  4583. HU=function(d,q){return d.N(q)?!0:(d.fflags||"").includes(q+"=true")};
  4584. gqg=function(d,q){q.inlineMetricEnabled&&(d.inlineMetricEnabled=!0);q.playback_progress_0s_url&&(d.Gw=new uY_(q));if(q=q.video_masthead_ad_quartile_urls)d.uK=q.quartile_0_url,d.Qk=q.quartile_25_url,d.Ni=q.quartile_50_url,d.DS=q.quartile_75_url,d.yk=q.quartile_100_url,d.OW=q.quartile_0_urls,d.Ah=q.quartile_25_urls,d.g5=q.quartile_50_urls,d.PD=q.quartile_75_urls,d.xN=q.quartile_100_urls};
  4585. $61=function(d){var q={};d=g.E(d);for(var T=d.next();!T.done;T=d.next()){T=T.value;var Y=T.split("=");Y.length===2?q[Y[0]]=Y[1]:q[T]=!0}return q};
  4586. JC1=function(d){if(d){if(j$_(d))return d;d=azQ(d);if(j$_(d,!0))return d}return""};
  4587. g.YTD=function(d){return d.captionsLanguagePreference||d.Mk.captionsLanguagePreference||g.If(d,"yt:cc_default_lang")||d.Mk.wk};
  4588. Q2=function(d){return!(!d.isLivePlayback||!d.hasProgressBarBoundaries())};
  4589. g.jH=function(d){var q;return d.u3||((q=d.suggestions)==null?void 0:q[0])||null};
  4590. g.MC=function(d){var q,T;return!!((q=d.embeddedPlayerConfig)==null?0:(T=q.embeddedPlayerFlags)==null?0:T.enableMusicUx)};
  4591. efY=function(d){return d.L||d.N("web_player_media_session_infinity")&&d.isLivePlayback};
  4592. cU=function(d){return d.Mk.T&&d.isPrivate};
  4593. g.jf=function(d){var q=d.C(),T=g.EF(q),Y=q.Ln;(q.N("embeds_web_enable_iframe_api_send_full_embed_url")||q.N("embeds_web_enable_rcat_validation_in_havs")||q.N("embeds_enable_autoplay_and_visibility_signals"))&&g.bS(q)&&(Y&&(T.thirdParty=Object.assign({},T.thirdParty,{embedUrl:Y})),s5D(T,d));if(Y=d.aU)T.clickTracking={clickTrackingParams:Y};else if(g.bS(d.C())&&g.Cs("EVENT_ID"))T.clickTracking={clickTrackingParams:g.Cs("EVENT_ID")};else if(q.N("html5_log_missing_itct")){var e;Y=new g.CW("Missing ITCT in InnerTubeContext",
  4594. {isAd:d.isAd(),Zow:(e=q.getWebPlayerContextConfig())==null?void 0:e.contextId});g.Zz(Y)}e=T.client||{};Y="EMBED";var U=bH(d);U==="leanback"?Y="WATCH":q.N("gvi_channel_client_screen")&&U==="profilepage"?Y="CHANNEL":d.kx?Y="LIVE_MONITOR":U==="detailpage"?Y="WATCH_FULL_SCREEN":U==="adunit"?Y="ADUNIT":U==="sponsorshipsoffer"&&(Y="UNKNOWN");e.clientScreen=Y;if(q=d.kidsAppInfo)e.kidsAppInfo=JSON.parse(q);(Y=d.t5)&&!q&&(e.kidsAppInfo={contentSettings:{ageUpMode:U7j[Y]}});if(q=d.ZD)e.unpluggedAppInfo={enableFilterMode:!0};
  4595. (Y=d.unpluggedFilterModeType)&&!q&&(e.unpluggedAppInfo={filterModeType:b0_[Y]});if(q=d.zX)e.unpluggedLocationInfo=q;T.client=e;e=T.request||{};d.t0&&(e.isPrefetch=!0);if(q=d.mdxEnvironment)e.mdxEnvironment=q;if(q=d.mdxControlMode)e.mdxControlMode=XNY[q];T.request=e;e=T.user||{};if(q=d.z2)e.credentialTransferTokens=[{token:q,scope:"VIDEO"}];if(q=d.pC)e.delegatePurchases={oauthToken:q},e.kidsParent={oauthToken:q};T.user=e;if(e=d.contextParams)T.activePlayers=[{playerContextParams:e}];if(d=d.clientScreenNonce)T.clientScreenNonce=
  4596. d;return T};
  4597. g.EF=function(d){var q=g.mV(),T=q.client||{};if(d.forcedExperiments){var Y=d.forcedExperiments.split(","),e=[];Y=g.E(Y);for(var U=Y.next();!U.done;U=Y.next())e.push(Number(U.value));T.experimentIds=e}if(e=d.homeGroupInfo)T.homeGroupInfo=JSON.parse(e);if(e=d.getPlayerType())T.playerType=e;if(e=d.G.ctheme)T.theme=e;if(e=d.livingRoomAppMode)T.tvAppInfo=Object.assign({},T.tvAppInfo,{livingRoomAppMode:e});e=d.deviceYear;d.N("html5_propagate_device_year")&&e&&(T.tvAppInfo=Object.assign({},T.tvAppInfo,{deviceYear:e}));
  4598. if(e=d.livingRoomPoTokenId)T.tvAppInfo=Object.assign({},T.tvAppInfo,{livingRoomPoTokenId:e});q.client=T;T=q.user||{};d.enableSafetyMode&&(T=Object.assign({},T,{enableSafetyMode:!0}));d.pageId&&(T=Object.assign({},T,{onBehalfOfUser:d.pageId}));q.user=T;T=d.Ln;d.N("embeds_web_enable_iframe_api_send_full_embed_url")||d.N("embeds_web_enable_rcat_validation_in_havs")||d.N("embeds_enable_autoplay_and_visibility_signals")||!T||(q.thirdParty={embedUrl:T});return q};
  4599. Ng6=function(d,q,T){var Y=d.videoId,e=g.jf(d),U=d.C(),b={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(QF()),referer:document.location.toString(),signatureTimestamp:20291};g.KW();d.isAutonav&&(b.autonav=!0);g.Gy(0,141)&&(b.autonavState=g.Gy(0,140)?"STATE_OFF":"STATE_ON");b.autoCaptionsDefaultOn=g.Gy(0,66);lwg(d)&&(b.autoplay=!0);U.B&&d.cycToken&&(b.cycToken=d.cycToken);U.enablePrivacyFilter&&(b.enablePrivacyFilter=!0);d.isFling&&(b.fling=!0);var J=d.forceAdsUrl;if(J){var F={},N=[];J=
  4600. J.split(",");J=g.E(J);for(var R=J.next();!R.done;R=J.next()){R=R.value;var x=R.split("|");x.length!==3||R.includes("=")||(x[0]="breaktype="+x[0],x[1]="offset="+x[1],x[2]="url="+x[2]);R={adtype:"video_ad"};x=g.E(x);for(var y=x.next();!y.done;y=x.next()){var h=g.E(y.value.split("="));y=h.next().value;h=UHn(h);R[y]=h.join("=")}x=R.url;y=R.presetad;h=R.viralresponseurl;var H=Number(R.campaignid);if(R.adtype==="in_display_ad")x&&(F.url=x),y&&(F.presetAd=y),h&&(F.viralAdResponseUrl=h),H&&(F.viralCampaignId=
  4601. String(H));else if(R.adtype==="video_ad"){var a={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(R.offset)||0)}};if(R=JHI[R.breaktype])a.breakType=R;x&&(a.url=x);y&&(a.presetAd=y);h&&(a.viralAdResponseUrl=h);H&&(a.viralCampaignId=String(H));N.push(a)}}b.forceAdParameters={videoAds:N,inDisplayAd:F}}d.isInlinePlaybackNoAd&&(b.isInlinePlaybackNoAd=!0);d.isLivingRoomDeeplink&&(b.isLivingRoomDeeplink=!0);F=d.d6;if(F!=null){F={startWalltime:String(F)};if(N=d.Ar)F.manifestDuration=String(N||14400);
  4602. b.liveContext=F}if(d.mutedAutoplay){b.mutedAutoplay=!0;F=U.getWebPlayerContextConfig();var p,t;(F==null?0:(p=F.embedsHostFlags)==null?0:p.allowMutedAutoplayDurationMode)&&(F==null?0:(t=F.embedsHostFlags)==null?0:t.allowMutedAutoplayDurationMode.includes(sm_[d.mutedAutoplayDurationMode]))&&(b.mutedAutoplayDurationMode=sm_[d.mutedAutoplayDurationMode])}if(d.qU?0:d.yH)b.splay=!0;p=d.vnd;p===5&&(b.vnd=p);p={};if(t=d.isMdxPlayback)p.triggeredByMdx=t;if(t=d.Eu)p.skippableAdsSupported=t.split(",").includes("ska");
  4603. if(N=d.OP){t=d.GE;F=[];N=g.E($oN(N));for(J=N.next();!J.done;J=N.next()){J=J.value;R=J.platform;J={applicationState:J.ye?"INACTIVE":"ACTIVE",clientFormFactor:$7H[R]||"UNKNOWN_FORM_FACTOR",clientName:Fan[J.kE]||"UNKNOWN_INTERFACE",clientVersion:J.deviceVersion||"",platform:gCY[R]||"UNKNOWN_PLATFORM"};R={};if(t){x=void 0;try{x=JSON.parse(t)}catch(K){g.OL(K)}x&&(R={params:[{key:"ms",value:x.ms}]},x.advertising_id&&(R.advertisingId=x.advertising_id),x.limit_ad_tracking!==void 0&&x.limit_ad_tracking!==
  4604. null&&(R.limitAdTracking=x.limit_ad_tracking),J.osName=x.os_name,J.userAgent=x.user_agent,J.windowHeightPoints=x.window_height_points,J.windowWidthPoints=x.window_width_points)}F.push({adSignalsInfo:R,remoteClient:J})}p.remoteContexts=F}t=d.sourceContainerPlaylistId;F=d.serializedMdxMetadata;if(t||F)N={},t&&(N.mdxPlaybackContainerInfo={sourceContainerPlaylistId:t}),F&&(N.serializedMdxMetadata=F),p.mdxPlaybackSourceContext=N;b.mdxContext=p;p=q.width;p>0&&(b.playerWidthPixels=Math.round(p));if(q=q.height)b.playerHeightPixels=
  4605. Math.round(q);T!==0&&(b.vis=T);if(T=U.widgetReferrer)b.widgetReferrer=T.substring(0,128);g.dn(U)&&b&&(b.ancestorOrigins=U.ancestorOrigins);d.defaultActiveSourceVideoId&&(b.compositeVideoContext={defaultActiveSourceVideoId:d.defaultActiveSourceVideoId});if(U=U.getWebPlayerContextConfig())b.encryptedHostFlags=U.encryptedHostFlags;Y={videoId:Y,context:e,playbackContext:{contentPlaybackContext:b}};if(d.H1){var n;Y.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(n=d.H1)==null?void 0:n.reloadPlaybackParams}}d.contentCheckOk&&
  4606. (Y.contentCheckOk=!0);if(n=d.clientPlaybackNonce)Y.cpn=n;if(n=d.playerParams)Y.params=n;if(n=d.playlistId)Y.playlistId=n;d.racyCheckOk&&(Y.racyCheckOk=!0);n=d.C();e=n.embedConfig;d.eC&&n.N("embeds_enable_per_video_embed_config")?Y.serializedThirdPartyEmbedConfig=d.eC:e&&(Y.serializedThirdPartyEmbedConfig=e);Y.captionParams={};e=g.Gy(g.KW(),65);d.deviceCaptionsOn!=null?Y.captionParams.deviceCaptionsOn=d.deviceCaptionsOn:g.cT(n)&&(Y.captionParams.deviceCaptionsOn=e!=null?!e:!1);d.CR&&(Y.captionParams.deviceCaptionsLangPref=
  4607. d.CR);d.Cd.length?Y.captionParams.viewerSelectedCaptionLangs=d.Cd:g.cT(n)&&(e=g.Me(),e==null?0:e.length)&&(Y.captionParams.viewerSelectedCaptionLangs=e);e=d.fetchType==="onesie"&&d.N("html5_onesie_attach_po_token");b=d.fetchType!=="onesie"&&d.N("html5_non_onesie_attach_po_token");if(e||b)e=d.C(),e.qU&&(Y.serviceIntegrityDimensions={},Y.serviceIntegrityDimensions.poToken=e.qU);n.N("fetch_att_independently")&&(Y.attestationRequest={omitBotguardData:!0});Y.playbackContext||(Y.playbackContext={});Y.playbackContext.devicePlaybackCapabilities=
  4608. FxX(d);Y.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&d.oU("noVp9",{});return Y};
  4609. FxX=function(d){var q=!(d==null?0:d.qr())&&(d==null?void 0:d.aN())&&Se(),T;if(!(T=d==null)){T=g.Br(d);d=d.C().S;var Y=BT("243");T=!(Y&&PI(T,Y,d,!0)===!0)}return{supportsVp9Encoding:!(T||q),supportXhr:QU}};
  4610. x7N=function(d,q){var T,Y,e;return g.G(function(U){if(U.U==1)return T={context:g.EF(d.C()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:d.videoId,cpn:d.clientPlaybackNonce}}]},Y=g.vG(RfQ),g.B(U,g.GY(q,T,Y),2);e=U.G;return U.return(e)})};
  4611. yHI=function(d,q,T){var Y=g.Yv(q.experiments,"bg_vm_reinit_threshold");(!TG||(0,g.cj)()-TG>Y)&&x7N(d,T).then(function(e){e&&(e=e.botguardData)&&g.eK(e,q)},function(e){d.JF()||(e=hQ(e),d.oU("attf",e.details))})};
  4612. a6=function(d,q){g.W.call(this);this.app=d;this.state=q};
  4613. pV=function(d,q,T){d.state.G.hasOwnProperty(q)||A7(d,q,T);d.state.L[q]=function(){return T.apply(d,g.CN.apply(0,arguments))};
  4614. d.state.X.add(q)};
  4615. Z$=function(d,q,T){d.state.G.hasOwnProperty(q)||A7(d,q,T);d.app.C().B&&(d.state.B[q]=function(){return T.apply(d,g.CN.apply(0,arguments))},d.state.X.add(q))};
  4616. A7=function(d,q,T){d.state.G[q]=function(){return T.apply(d,g.CN.apply(0,arguments))}};
  4617. g.OF=function(d,q,T){return d.state.G[q].apply(d.state.G,g.RQ(T))};
  4618. nV=function(){g.Mg.call(this);this.S=new Map};
  4619. rm=function(){g.W.apply(this,arguments);this.element=null;this.X=new Set;this.L={};this.B={};this.G={};this.K=new Set;this.j=new nV;this.U=new nV;this.T=new nV;this.S=new nV};
  4620. hfQ=function(d,q,T){typeof d==="string"&&(d={mediaContentUrl:d,startSeconds:q,suggestedQuality:T});a:{if((q=d.mediaContentUrl)&&(q=/\/([ve]|embed)\/([^#?]+)/.exec(q))&&q[2]){q=q[2];break a}q=null}d.videoId=q;return t7(d)};
  4621. t7=function(d,q,T){if(typeof d==="string")return{videoId:d,startSeconds:q,suggestedQuality:T};q={};T=g.E(H0Y);for(var Y=T.next();!Y.done;Y=T.next())Y=Y.value,d[Y]&&(q[Y]=d[Y]);if(d=d.embedConfig||d.embed_config)if(typeof d==="string")q.embed_config=d;else if(g.UI(d))try{var e=JSON.stringify(d);q.embed_config=e}catch(U){console.error("Invalid embedConfig JSON",U)}return q};
  4622. Qmn=function(d,q,T,Y){if(g.UI(d)&&!Array.isArray(d)){q="playlist list listType index startSeconds suggestedQuality".split(" ");T={};for(Y=0;Y<q.length;Y++){var e=q[Y];d[e]&&(T[e]=d[e])}return T}q={index:q,startSeconds:T,suggestedQuality:Y};typeof d==="string"&&d.length===16?q.list="PL"+d:q.playlist=d;return q};
  4623. BU=function(){a6.apply(this,arguments)};
  4624. cHf=function(d){pV(d,"cueVideoById",d.e6);pV(d,"loadVideoById",d.Fv);pV(d,"cueVideoByUrl",d.LQ);pV(d,"loadVideoByUrl",d.AQ);pV(d,"playVideo",d.eU5);pV(d,"pauseVideo",d.pauseVideo);pV(d,"stopVideo",d.QlD);pV(d,"clearVideo",d.clearVideo);pV(d,"getVideoBytesLoaded",d.tB);pV(d,"getVideoBytesTotal",d.zl);pV(d,"getVideoLoadedFraction",d.So);pV(d,"getVideoStartBytes",d.YW);pV(d,"cuePlaylist",d.cuePlaylist);pV(d,"loadPlaylist",d.NP);pV(d,"nextVideo",d.pvk);pV(d,"previousVideo",d.OHD);pV(d,"playVideoAt",d.Eok);
  4625. pV(d,"setShuffle",d.setShuffle);pV(d,"setLoop",d.setLoop);pV(d,"getPlaylist",d.y7);pV(d,"getPlaylistIndex",d.getPlaylistIndex);pV(d,"getPlaylistId",d.getPlaylistId);pV(d,"loadModule",d.wv);pV(d,"unloadModule",d.Vr);pV(d,"setOption",d.Na);pV(d,"getOption",d.fI);pV(d,"getOptions",d.GI);pV(d,"mute",d.zgx);pV(d,"unMute",d.N12);pV(d,"isMuted",d.isMuted);pV(d,"setVolume",d.Cvr);pV(d,"getVolume",d.getVolume);pV(d,"seekTo",d.mUD);pV(d,"getPlayerMode",d.getPlayerMode);pV(d,"getPlayerState",d.ix);pV(d,"getAvailablePlaybackRates",
  4626. d.getAvailablePlaybackRates);pV(d,"getPlaybackQuality",function(){return d.getPlaybackQuality(1)});
  4627. pV(d,"setPlaybackQuality",d.gPr);pV(d,"getAvailableQualityLevels",d.AM);pV(d,"getCurrentTime",d.Zx);pV(d,"getDuration",d.k5);pV(d,"addEventListener",d.CK);pV(d,"removeEventListener",d.TAw);pV(d,"getDebugText",d.Ci);pV(d,"getVideoData",function(){return MNH(d)});
  4628. pV(d,"addCueRange",d.ZU);pV(d,"removeCueRange",d.removeCueRange);pV(d,"setSize",d.setSize);pV(d,"getApiInterface",d.getApiInterface);pV(d,"destroy",d.destroy);pV(d,"mutedAutoplay",d.mutedAutoplay);var q=d.app.C();q.X||(pV(d,"getVideoEmbedCode",d.getVideoEmbedCode),pV(d,"getVideoUrl",d.bx));pV(d,"getMediaReferenceTime",d.Gl);pV(d,"getSize",d.getSize);pV(d,"setFauxFullscreen",d.Fjv);q.N("embeds_enable_move_set_center_crop_to_public")&&pV(d,"setCenterCrop",d.setCenterCrop);q.X||pV(d,"logImaAdEvent",
  4629. d.logImaAdEvent);pV(d,"preloadVideoById",d.gow);pV(d,"wakeUpControls",d.wakeUpControls)};
  4630. g.KV=function(d){return(d=EC_(d.app.M5()))?d.u1():null};
  4631. LV=function(d){var q=g.sm(d.app.C()),T,Y=(T=d.app.getVideoData())==null?void 0:T.Qs;d=GJ(d.app);return g.eX(q)&&!Y||d?!1:!0};
  4632. MNH=function(d,q){var T={};if(q=d.app.YP(q===void 0?1:q)){q=q.getVideoData();if(cU(q))return{};T.video_id=q.videoId;T.author=q.author;T.title=q.title;T.isPlayable=h7(q);T.errorCode=q.errorCode;if(q.U&&q.U.video){T.video_quality=q.U.video.quality;q=q.U.video;var Y=[];q.fps>32&&Y.push("hfr");q.isHdr()&&Y.push("hdr");q.primaries==="bt2020"&&Y.push("wcg");T.video_quality_features=Y}}if(d=d.getPlaylistId())T.list=d;return T};
  4633. k4=function(){BU.apply(this,arguments)};
  4634. PU=function(d,q){var T={};if(d.app.C().UD){d=g.E(jm1);for(var Y=d.next();!Y.done;Y=d.next())Y=Y.value,q.hasOwnProperty(Y)&&(T[Y]=q[Y]);if(q=T.qoe_cat)d="",typeof q==="string"&&q.length>0&&(d=q.split(",").filter(function(e){return a4f.includes(e)}).join(",")),T.qoe_cat=d;
  4635. AHj(T)}else for(d=g.E(pNN),Y=d.next();!Y.done;Y=d.next())Y=Y.value,q.hasOwnProperty(Y)&&(T[Y]=q[Y]);return T};
  4636. AHj=function(d){var q=d.raw_player_response;if(!q){var T=d.player_response;T&&(q=JSON.parse(T))}delete d.player_response;delete d.raw_player_response;if(q){d.raw_player_response={streamingData:q.streamingData,playerConfig:q.playerConfig};var Y;if((Y=q.playbackTracking)==null?0:Y.qoeUrl)d.raw_player_response=Object.assign({},d.raw_player_response,{playbackTracking:{qoeUrl:q.playbackTracking.qoeUrl}});q.videoDetails&&(q.videoDetails.videoId||q.videoDetails.lengthSeconds)&&(T={},q.videoDetails.videoId&&
  4637. (T.videoId=q.videoDetails.videoId),q.videoDetails.lengthSeconds&&(T.lengthSeconds=q.videoDetails.lengthSeconds),d.raw_player_response=Object.assign({},d.raw_player_response,{videoDetails:T}))}};
  4638. WU=function(d,q,T){var Y=d.app.fH(T);if(!Y)return 0;d=Y-d.app.getCurrentTime(T);return q-d};
  4639. O0Y=function(d){var q=q===void 0?5:q;return d?Z06[d]||q:q};
  4640. g.CV=function(){k4.apply(this,arguments)};
  4641. nC6=function(d){A7(d,"getInternalApiInterface",d.getInternalApiInterface);A7(d,"addEventListener",d.Of);A7(d,"removeEventListener",d.izZ);A7(d,"cueVideoByPlayerVars",d.nQ);A7(d,"loadVideoByPlayerVars",d.Do);A7(d,"preloadVideoByPlayerVars",d.WMv);A7(d,"getAdState",d.getAdState);A7(d,"sendAbandonmentPing",d.sendAbandonmentPing);A7(d,"setLoopRange",d.setLoopRange);A7(d,"getLoopRange",d.getLoopRange);A7(d,"setAutonavState",d.setAutonavState);A7(d,"seekTo",d.qrD);A7(d,"seekBy",d.vPv);A7(d,"seekToLiveHead",
  4642. d.seekToLiveHead);A7(d,"requestSeekToWallTimeSeconds",d.requestSeekToWallTimeSeconds);A7(d,"seekToStreamTime",d.seekToStreamTime);A7(d,"prefetchKeyPlay",d.prefetchKeyPlay);A7(d,"startSeekCsiAction",d.startSeekCsiAction);A7(d,"getStreamTimeOffset",d.getStreamTimeOffset);A7(d,"getVideoData",d.pI);A7(d,"setInlinePreview",d.setInlinePreview);A7(d,"getAppState",d.getAppState);A7(d,"updateLastActiveTime",d.updateLastActiveTime);A7(d,"setBlackout",d.setBlackout);A7(d,"setUserEngagement",d.setUserEngagement);
  4643. A7(d,"updateSubtitlesUserSettings",d.updateSubtitlesUserSettings);A7(d,"getPresentingPlayerType",d.Jj);A7(d,"canPlayType",d.canPlayType);A7(d,"updatePlaylist",d.updatePlaylist);A7(d,"updateVideoData",d.updateVideoData);A7(d,"updateEnvironmentData",d.updateEnvironmentData);A7(d,"sendVideoStatsEngageEvent",d.ezD);A7(d,"productsInVideoVisibilityUpdated",d.productsInVideoVisibilityUpdated);A7(d,"setSafetyMode",d.setSafetyMode);A7(d,"isAtLiveHead",function(q){return d.isAtLiveHead(void 0,q)});
  4644. A7(d,"getVideoAspectRatio",d.getVideoAspectRatio);A7(d,"getPreferredQuality",d.getPreferredQuality);A7(d,"getPlaybackQualityLabel",d.getPlaybackQualityLabel);A7(d,"setPlaybackQualityRange",d.Wjv);A7(d,"onAdUxClicked",d.onAdUxClicked);A7(d,"getFeedbackProductData",d.getFeedbackProductData);A7(d,"getStoryboardFrame",d.getStoryboardFrame);A7(d,"getStoryboardFrameIndex",d.getStoryboardFrameIndex);A7(d,"getStoryboardLevel",d.getStoryboardLevel);A7(d,"getNumberOfStoryboardLevels",d.getNumberOfStoryboardLevels);
  4645. A7(d,"getCaptionWindowContainerId",d.getCaptionWindowContainerId);A7(d,"getAvailableQualityLabels",d.getAvailableQualityLabels);A7(d,"addCueRange",d.addCueRange);A7(d,"addUtcCueRange",d.addUtcCueRange);A7(d,"showAirplayPicker",d.showAirplayPicker);A7(d,"dispatchReduxAction",d.dispatchReduxAction);A7(d,"getPlayerResponse",d.U3);A7(d,"getWatchNextResponse",d.s3);A7(d,"getHeartbeatResponse",d.Vn);A7(d,"getCurrentTime",d.Bd);A7(d,"getDuration",d.iN);A7(d,"getPlayerState",d.getPlayerState);A7(d,"getPlayerStateObject",
  4646. d.jK);A7(d,"getVideoLoadedFraction",d.getVideoLoadedFraction);A7(d,"getProgressState",d.getProgressState);A7(d,"getVolume",d.getVolume);A7(d,"setVolume",d.fP);A7(d,"isMuted",d.isMuted);A7(d,"mute",d.zR);A7(d,"unMute",d.md);A7(d,"loadModule",d.loadModule);A7(d,"unloadModule",d.unloadModule);A7(d,"getOption",d.sY);A7(d,"getOptions",d.getOptions);A7(d,"setOption",d.setOption);A7(d,"loadVideoById",d.GC);A7(d,"loadVideoByUrl",d.Un);A7(d,"playVideo",d.Wg);A7(d,"loadPlaylist",d.loadPlaylist);A7(d,"nextVideo",
  4647. d.nextVideo);A7(d,"previousVideo",d.previousVideo);A7(d,"playVideoAt",d.playVideoAt);A7(d,"getDebugText",d.getDebugText);A7(d,"getWebPlayerContextConfig",d.getWebPlayerContextConfig);A7(d,"notifyShortsAdSwipeEvent",d.notifyShortsAdSwipeEvent);A7(d,"getVideoContentRect",d.getVideoContentRect);A7(d,"setSqueezeback",d.setSqueezeback);A7(d,"toggleSubtitlesOn",d.toggleSubtitlesOn);A7(d,"isSubtitlesOn",d.isSubtitlesOn);A7(d,"reportPlaybackIssue",d.reportPlaybackIssue);A7(d,"setAutonav",d.setAutonav);A7(d,
  4648. "isNotServable",d.isNotServable);A7(d,"channelSubscribed",d.channelSubscribed);A7(d,"channelUnsubscribed",d.channelUnsubscribed);A7(d,"togglePictureInPicture",d.togglePictureInPicture);A7(d,"supportsGaplessAudio",d.supportsGaplessAudio);A7(d,"supportsGaplessShorts",d.supportsGaplessShorts);A7(d,"enqueueVideoByPlayerVars",function(q){return void d.enqueueVideoByPlayerVars(q)});
  4649. A7(d,"clearQueue",d.clearQueue);A7(d,"getAudioTrack",d.Li);A7(d,"setAudioTrack",d.NAx);A7(d,"getAvailableAudioTracks",d.x5);A7(d,"getMaxPlaybackQuality",d.getMaxPlaybackQuality);A7(d,"getUserPlaybackQualityPreference",d.getUserPlaybackQualityPreference);A7(d,"getSubtitlesUserSettings",d.getSubtitlesUserSettings);A7(d,"resetSubtitlesUserSettings",d.resetSubtitlesUserSettings);A7(d,"setMinimized",d.setMinimized);A7(d,"setOverlayVisibility",d.setOverlayVisibility);A7(d,"confirmYpcRental",d.confirmYpcRental);
  4650. A7(d,"queueNextVideo",d.queueNextVideo);A7(d,"handleExternalCall",d.handleExternalCall);A7(d,"logApiCall",d.logApiCall);A7(d,"isExternalMethodAvailable",d.isExternalMethodAvailable);A7(d,"setScreenLayer",d.setScreenLayer);A7(d,"getCurrentPlaylistSequence",d.getCurrentPlaylistSequence);A7(d,"getPlaylistSequenceForTime",d.getPlaylistSequenceForTime);A7(d,"shouldSendVisibilityState",d.shouldSendVisibilityState);A7(d,"syncVolume",d.syncVolume);A7(d,"highlightSettingsMenuItem",d.highlightSettingsMenuItem);
  4651. A7(d,"openSettingsMenuItem",d.openSettingsMenuItem);A7(d,"getEmbeddedPlayerResponse",d.getEmbeddedPlayerResponse);A7(d,"getVisibilityState",d.getVisibilityState);A7(d,"isMutedByMutedAutoplay",d.isMutedByMutedAutoplay);A7(d,"isMutedByEmbedsMutedAutoplay",d.isMutedByEmbedsMutedAutoplay);A7(d,"setGlobalCrop",d.setGlobalCrop);A7(d,"setInternalSize",d.setInternalSize);A7(d,"setFauxFullscreen",d.setFauxFullscreen);A7(d,"setAppFullscreen",d.setAppFullscreen)};
  4652. D$=function(d,q,T){d=g.uH(d.nH(),q);return T?(T.addOnDisposeCallback(d),null):d};
  4653. g.wm=function(d,q,T){return d.app.C().V5?q:g.bO("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:q,SHORTCUT:T})};
  4654. rHY=function(d){d.nH().element.setAttribute("aria-live","polite")};
  4655. g.fV=function(d,q){g.CV.call(this,d,q);nC6(this);Z$(this,"addEventListener",this.k7);Z$(this,"removeEventListener",this.yeF);Z$(this,"cueVideoByPlayerVars",this.Nv);Z$(this,"loadVideoByPlayerVars",this.xs);Z$(this,"preloadVideoByPlayerVars",this.Bsf);Z$(this,"loadVideoById",this.GC);Z$(this,"loadVideoByUrl",this.Un);Z$(this,"playVideo",this.Wg);Z$(this,"loadPlaylist",this.loadPlaylist);Z$(this,"nextVideo",this.nextVideo);Z$(this,"previousVideo",this.previousVideo);Z$(this,"playVideoAt",this.playVideoAt);
  4656. Z$(this,"getVideoData",this.mY);Z$(this,"seekBy",this.XAg);Z$(this,"seekTo",this.SrZ);Z$(this,"showControls",this.showControls);Z$(this,"hideControls",this.hideControls);Z$(this,"cancelPlayback",this.cancelPlayback);Z$(this,"getProgressState",this.getProgressState);Z$(this,"isInline",this.isInline);Z$(this,"setInline",this.setInline);Z$(this,"setLoopVideo",this.setLoopVideo);Z$(this,"getLoopVideo",this.getLoopVideo);Z$(this,"getVideoContentRect",this.getVideoContentRect);Z$(this,"getVideoStats",this.hB);
  4657. Z$(this,"getCurrentTime",this.O0);Z$(this,"getDuration",this.iN);Z$(this,"getPlayerState",this.Tl);Z$(this,"getVideoLoadedFraction",this.Ip);Z$(this,"mute",this.zR);Z$(this,"unMute",this.md);Z$(this,"setVolume",this.fP);Z$(this,"loadModule",this.loadModule);Z$(this,"unloadModule",this.unloadModule);Z$(this,"getOption",this.sY);Z$(this,"getOptions",this.getOptions);Z$(this,"setOption",this.setOption);Z$(this,"addCueRange",this.addCueRange);Z$(this,"getDebugText",this.getDebugText);Z$(this,"getStoryboardFormat",
  4658. this.getStoryboardFormat);Z$(this,"toggleFullscreen",this.toggleFullscreen);Z$(this,"isFullscreen",this.isFullscreen);Z$(this,"getPlayerSize",this.getPlayerSize);Z$(this,"toggleSubtitles",this.toggleSubtitles);Z$(this,"setCenterCrop",this.setCenterCrop);Z$(this,"setFauxFullscreen",this.setFauxFullscreen);Z$(this,"setSizeStyle",this.setSizeStyle);Z$(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);Z$(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);cHf(this)};
  4659. g.zJ=function(d){d=d.M5();var q=d.OS.get("endscreen");return q&&q.GB()?!0:d.Gi()};
  4660. g.iH=function(d,q){d.getPresentingPlayerType()===3?d.publish("mdxautoplaycancel"):d.gO("onAutonavCancelled",q)};
  4661. g.m7=function(d){var q=I6(d.M5());return d.app.H3&&!d.isFullscreen()||d.getPresentingPlayerType()===3&&q&&q.mB()&&q.M1()||!!d.getPlaylist()};
  4662. g.Sf=function(d,q){g.OF(d,"addEmbedsConversionTrackingParams",[q])};
  4663. g.vU=function(d){return(d=g.lH(d.M5()))?d.l4():{}};
  4664. g.tNf=function(d){d=(d=d.getVideoData())&&d.U;return!!d&&!(!d.audio||!d.video)&&d.mimeType!=="application/x-mpegURL"};
  4665. g.o6=function(d,q,T){d=d.OD().element;var Y=wL(d.children,function(e){e=Number(e.getAttribute("data-layer"));return T-e||1});
  4666. Y<0&&(Y=-(Y+1));yp(d,q,Y);q.setAttribute("data-layer",String(T))};
  4667. g.V2=function(d){var q=d.C();if(!q.zX)return!1;var T=d.getVideoData();if(!T||d.getPresentingPlayerType()===3)return!1;var Y=(!T.isLiveDefaultBroadcast||q.N("allow_poltergust_autoplay"))&&!Q2(T);Y=T.isLivePlayback&&(!q.N("allow_live_autoplay")||!Y);var e=T.isLivePlayback&&q.N("allow_live_autoplay_on_mweb");d=d.getPlaylist();d=!!d&&d.mB();var U=T.dO&&T.dO.playerOverlays||null;U=!!(U&&U.playerOverlayRenderer&&U.playerOverlayRenderer.autoplay);U=T.kc&&U;return!T.ypcPreview&&(!Y||e)&&!g.cR(T.K,"ypc")&&
  4668. !d&&(!g.dn(q)||U)};
  4669. KxD=function(d,q){d=BgI(d.app.v3().S);d=g.E(d);for(var T=d.next();!T.done;T=d.next()){T=T.value;var Y=T.getAvailableAudioTracks(),e=null;Y=g.E(Y);for(var U=Y.next();!U.done;U=Y.next())if(U=U.value,U.getLanguageInfo().getId()===q){e=U;break}e&&T.mG(e,!0)}};
  4670. dR=function(){tB.apply(this,arguments);this.requestHeaders={}};
  4671. Tk=function(){qf||(qf=new dR);return qf};
  4672. eq=function(d,q){q?d.requestHeaders.Authorization="Bearer "+q:delete d.requestHeaders.Authorization};
  4673. g.Uc=function(d){g.W.call(this);var q=this;this.G2=d;this.fC={I_:function(){return q.G2}}};
  4674. g.bi=function(d,q,T,Y){Y=Y===void 0?!1:Y;g.Ji.call(this,q);var e=this;this.J=d;this.yv=Y;this.B=new g.aI(this);this.fade=new g.oh(this,T,!0,void 0,void 0,function(){e.w7()});
  4675. g.C(this,this.B);g.C(this,this.fade)};
  4676. Xp=function(d){var q=d.J.getRootNode();return d.J.N("web_watch_pip")||d.J.N("web_shorts_pip")?oy(q):document};
  4677. GD7=function(d){d.U&&(document.activeElement&&g.HB(d.element,document.activeElement)&&d.U.focus(),d.U.setAttribute("aria-expanded","false"),d.U=void 0);g.jX(d.B);d.K=void 0};
  4678. JM=function(d,q,T){d.vR()?d.bF():d.St(q,T)};
  4679. sc=function(d,q,T,Y){Y=new g.f({Y:"div",hF:["ytp-linked-account-popup-button"],j5:Y,Z:{role:"button",tabindex:"0"}});q=new g.f({Y:"div",D:"ytp-linked-account-popup",Z:{role:"dialog","aria-modal":"true",tabindex:"-1"},V:[{Y:"div",D:"ytp-linked-account-popup-title",j5:q},{Y:"div",D:"ytp-linked-account-popup-description",j5:T},{Y:"div",D:"ytp-linked-account-popup-buttons",V:[Y]}]});g.bi.call(this,d,{Y:"div",D:"ytp-linked-account-popup-container",V:[q]},100);var e=this;this.dialog=q;g.C(this,this.dialog);
  4680. Y.listen("click",function(){e.bF()});
  4681. g.C(this,Y);g.o6(this.J,this.element,4);this.hide()};
  4682. g.gR=function(d,q,T,Y){g.Ji.call(this,d);this.priority=q;T&&g.$T(this,T);Y&&this.A1(Y)};
  4683. g.Fp=function(d,q,T,Y){d=d===void 0?{}:d;q=q===void 0?[]:q;T=T===void 0?!1:T;Y=Y===void 0?!1:Y;q.push("ytp-menuitem");var e=d;"role"in e||(e.role="menuitem");T||(e=d,"tabindex"in e||(e.tabindex="0"));d={Y:T?"a":"div",hF:q,Z:d,V:[{Y:"div",D:"ytp-menuitem-icon",j5:"{{icon}}"},{Y:"div",D:"ytp-menuitem-label",j5:"{{label}}"},{Y:"div",D:"ytp-menuitem-content",j5:"{{content}}"}]};Y&&d.V.push({Y:"div",D:"ytp-menuitem-secondary-icon",j5:"{{secondaryIcon}}"});return d};
  4684. g.$T=function(d,q){d.updateValue("label",q)};
  4685. Nf=function(d){g.gR.call(this,g.Fp({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var q=this;this.J=d;this.U=this.G=!1;this.TG=d.dB();d.createServerVe(this.element,this,!0);this.W(this.J,"settingsMenuVisibilityChanged",function(T){q.N5(T)});
  4686. this.W(this.J,"videodatachange",this.T);this.listen("click",this.onClick);this.T()};
  4687. Rz=function(d){return d?g.gx(d):""};
  4688. xT=function(d){g.W.call(this);this.api=d};
  4689. yD=function(d){xT.call(this,d);var q=this;A7(d,"setAccountLinkState",function(T){q.setAccountLinkState(T)});
  4690. A7(d,"updateAccountLinkingConfig",function(T){q.updateAccountLinkingConfig(T)});
  4691. d.addEventListener("videodatachange",function(T,Y){q.onVideoDataChange(Y)});
  4692. d.addEventListener("settingsMenuInitialized",function(){q.menuItem=new Nf(q.api);g.C(q,q.menuItem)})};
  4693. LxH=function(d){this.api=d;this.G={}};
  4694. hM=function(d,q,T,Y){q in d.G||(T=new g.Ij(T,Y,{id:q,priority:2,namespace:"appad"}),d.api.ES([T],1),d.G[q]=T)};
  4695. Hs=function(d){xT.call(this,d);var q=this;this.events=new g.aI(this);g.C(this,this.events);this.G=new LxH(this.api);this.events.W(this.api,"legacyadtrackingpingreset",function(){q.G.G={}});
  4696. this.events.W(this.api,"legacyadtrackingpingchange",function(T){var Y=q.G;hM(Y,"part2viewed",1,0x8000000000000);hM(Y,"engagedview",Math.max(1,T.fn*1E3),0x8000000000000);if(!T.isLivePlayback){var e=T.lengthSeconds*1E3;Zu(T)&&Y.api.N("html5_shorts_gapless_ads_duration_fix")&&(e=Y.api.getProgressState().seekableEnd*1E3-T.oS);hM(Y,"videoplaytime25",e*.25,e);hM(Y,"videoplaytime50",e*.5,e);hM(Y,"videoplaytime75",e*.75,e);hM(Y,"videoplaytime100",e,0x8000000000000);hM(Y,"conversionview",e,0x8000000000000);
  4697. hM(Y,"videoplaybackstart",1,e);hM(Y,"videoplayback2s",2E3,e);hM(Y,"videoplayback10s",1E4,e)}});
  4698. this.events.W(this.api,g.Sh("appad"),this.U);this.events.W(this.api,g.lG("appad"),this.U)};
  4699. Cq1=function(d,q,T){if(!(T in q))return!1;q=q[T];Array.isArray(q)||(q=[q]);q=g.E(q);for(T=q.next();!T.done;T=q.next()){T=T.value;var Y={CPN:d.api.getVideoData().clientPlaybackNonce};T=g.a1(T,Y);Y=void 0;Y=Y===void 0?!1:Y;(Y=uG(Dp(T,kDH),T,Y,"Active View 3rd Party Integration URL"))||(Y=void 0,Y=Y===void 0?!1:Y,Y=uG(Dp(T,Pq1),T,Y,"Google/YouTube Brand Lift URL"));Y||(Y=void 0,Y=Y===void 0?!1:Y,Y=uG(Dp(T,Wx1),T,Y,"Nielsen OCR URL"));g.rM(T,void 0,Y)}return!0};
  4700. QD=function(d,q){u47(d,q).then(function(T){g.rM(q,void 0,void 0,T)})};
  4701. Mf=function(d,q){q.forEach(function(T){QD(d,T)})};
  4702. u47=function(d,q){return g.ho(d.api.C())&&YA(q)&&Tt(q)?g.rn(d.api.C(),g.$4(d.api.getVideoData())).then(function(T){var Y;T&&(Y={Authorization:"Bearer "+T});return Y},void 0):pZ()};
  4703. D7H=function(d){xT.call(this,d);this.events=new g.aI(d);g.C(this,this.events);this.events.W(d,"videoready",function(q){if(d.getPresentingPlayerType()===1){var T,Y,e={playerDebugData:{pmlSignal:!!((T=q.getPlayerResponse())==null?0:(Y=T.adPlacements)==null?0:Y.some(function(U){var b;return U==null?void 0:(b=U.adPlacementRenderer)==null?void 0:b.renderer})),
  4704. contentCpn:q.clientPlaybackNonce}};g.Ta("adsClientStateChange",e)}})};
  4705. cs=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);A7(this.api,"getUserAudioQualitySetting",function(){return q.getUserAudioQualitySetting()});
  4706. A7(this.api,"setUserAudioQualitySetting",function(T){q.setUserAudioQualitySetting(T)});
  4707. A7(this.api,"hasHqaAudioTrack",function(){return q.hasHqaAudioTrack()});
  4708. this.mw=bwQ();this.updateEnvironmentData()};
  4709. Ec=function(d){g.f.call(this,{Y:"button",hF:["ytp-button","ytp-autonav-toggle"],Z:{title:d.N("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},V:[{Y:"div",D:"ytp-autonav-toggle-button-container",V:[{Y:"div",D:"ytp-autonav-toggle-button",Z:{"aria-checked":"true"}}]}]});this.J=d;this.U=[];this.G=!1;this.isChecked=!0;d.createClientVe(this.element,this,
  4710. 113681);this.W(d,"presentingplayerstatechange",this.FB);this.listen("click",this.onClick);this.J.C().N("web_player_autonav_toggle_always_listen")&&wN2(this);D$(d,this.element,this);this.FB()};
  4711. wN2=function(d){d.U.push(d.W(d.J,"videodatachange",d.FB));d.U.push(d.W(d.J,"videoplayerreset",d.FB));d.U.push(d.W(d.J,"onPlaylistUpdate",d.FB));d.U.push(d.W(d.J,"autonavchange",d.b7))};
  4712. f42=function(d){d.isChecked=d.isChecked;d.Qv("ytp-autonav-toggle-button").setAttribute("aria-checked",String(d.isChecked));var q=d.isChecked?"\u81ea\u52a8\u64ad\u653e\u6a21\u5f0f\u5df2\u5f00\u542f":"\u81ea\u52a8\u64ad\u653e\u6a21\u5f0f\u5df2\u5173\u95ed";d.J.C().N("player_tooltip_data_title_killswitch")?d.update({title:q,label:q}):d.update({"data-tooltip-title":q,label:q});d.J.U$()};
  4713. zfY=function(d){return d.J.C().N("web_player_autonav_use_server_provided_state")&&cr(d.GX())};
  4714. i07=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);this.events.W(d,"standardControlsInitialized",function(){var T=new Ec(d);g.C(q,T);d.j_(T,"RIGHT_CONTROLS_LEFT")})};
  4715. jq=function(d,q){g.gR.call(this,g.Fp({role:"menuitemcheckbox","aria-checked":"false"}),q,d,{Y:"div",D:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)};
  4716. az=function(d,q){d.checked=q;d.element.setAttribute("aria-checked",String(d.checked))};
  4717. I4j=function(d){var q=!d.C().B3&&d.getPresentingPlayerType()!==3;return d.isFullscreen()||q};
  4718. g.AM=function(d,q,T,Y){var e=d.currentTarget;if((T===void 0||!T)&&g.cG(d))return d.preventDefault(),!0;q.pauseVideo();d=e.getAttribute("href");g.CG(d,Y,!0);return!1};
  4719. g.pR=function(d,q,T){if(HT(q.C())&&q.getPresentingPlayerType()!==2){if(g.cG(T))return q.isFullscreen()&&!q.C().externalFullscreen&&q.toggleFullscreen(),T.preventDefault(),!0}else{var Y=g.cG(T);Y&&q.pauseVideo();g.CG(d,void 0,!0);Y&&(g.u2(d),T.preventDefault())}return!1};
  4720. m7Q=function(d){d=Zx.includes("zh-CN")?d.N("delhi_modern_web_player_icons")?hi():{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,Z:{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",
  4721. fill:"#fff"}}]}:d.N("delhi_modern_web_player_icons")?C5I():{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,Z:{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"}}]};d.D="ytp-subtitles-button-icon";
  4722. return d};
  4723. STI=function(d){return Zx.includes("zh-CN")?d?hi():{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{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",fill:"white"}}]}:d?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",
  4724. width:"24"},V:[{Y:"path",Z:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z",
  4725. fill:"white"}}]}:{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}};
  4726. Oc=function(){return{Y:"div",D:"ytp-spinner-container",V:[{Y:"div",D:"ytp-spinner-rotator",V:[{Y:"div",D:"ytp-spinner-left",V:[{Y:"div",D:"ytp-spinner-circle"}]},{Y:"div",D:"ytp-spinner-right",V:[{Y:"div",D:"ytp-spinner-circle"}]}]}]}};
  4727. nR=function(d){if(document.createRange){var q=document.createRange();q&&(q.selectNodeContents(d),d=window.getSelection())&&(d.removeAllRanges(),d.addRange(q))}};
  4728. Bs=function(d){var q=d.N("web_player_use_cinematic_label_2")?"\u6c1b\u56f4\u6a21\u5f0f":"\u5f71\u9662\u706f\u6548";jq.call(this,q,g.rR.xJ);var T=this;this.J=d;this.G=!1;this.U=new g.f9(function(){g.TR(T.element,"ytp-menuitem-highlighted")},0);
  4729. this.TG=d.dB();d=d.N("delhi_modern_web_player_icons")?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M12 .5C11.73 .5 11.48 .60 11.29 .79C11.10 .98 11 1.23 11 1.5V3.5C11 3.76 11.10 4.01 11.29 4.20C11.48 4.39 11.73 4.5 12 4.5C12.26 4.5 12.51 4.39 12.70 4.20C12.89 4.01 13 3.76 13 3.5V1.5C13 1.23 12.89 .98 12.70 .79C12.51 .60 12.26 .5 12 .5ZM3.79 1.29C3.61 1.46 3.51 1.70 3.50 1.94C3.48 2.19 3.56 2.43 3.72 2.63L3.79 2.70L5.29 4.20L5.37 4.27C5.56 4.42 5.80 4.50 6.04 4.49C6.29 4.47 6.52 4.37 6.70 4.20C6.87 4.02 6.97 3.79 6.99 3.54C7.00 3.30 6.92 3.06 6.77 2.86L6.70 2.79L5.20 1.29L5.13 1.22C4.93 1.06 4.69 .98 4.44 1.00C4.20 1.01 3.96 1.11 3.79 1.29ZM18.86 1.22L18.79 1.29L17.29 2.79L17.22 2.86C17.07 3.06 16.99 3.30 17.00 3.54C17.01 3.79 17.12 4.02 17.29 4.20C17.47 4.37 17.70 4.48 17.95 4.49C18.19 4.50 18.43 4.42 18.63 4.27L18.70 4.20L20.20 2.70L20.27 2.63C20.42 2.43 20.50 2.19 20.49 1.95C20.48 1.70 20.37 1.47 20.20 1.29C20.02 1.12 19.79 1.01 19.54 1.00C19.30 .99 19.06 1.07 18.86 1.22ZM19.20 6.01L19 6H5L4.79 6.01C4.30 6.06 3.84 6.29 3.51 6.65C3.18 7.02 2.99 7.50 3 8V16L3.01 16.20C3.05 16.66 3.26 17.08 3.58 17.41C3.91 17.73 4.33 17.94 4.79 17.99L5 18H19L19.20 17.98C19.66 17.94 20.08 17.73 20.41 17.41C20.73 17.08 20.94 16.66 20.99 16.20L21 16V8C20.99 7.50 20.81 7.02 20.48 6.66C20.15 6.29 19.69 6.06 19.20 6.01ZM5 16V8H19V16H5ZM17.29 19.79C17.11 19.96 17.01 20.20 17.00 20.44C16.98 20.69 17.06 20.93 17.22 21.13L17.29 21.20L18.79 22.70L18.86 22.77C19.06 22.92 19.30 23.00 19.54 22.99C19.79 22.98 20.02 22.87 20.20 22.70C20.37 22.52 20.48 22.29 20.49 22.04C20.50 21.80 20.42 21.56 20.27 21.36L20.20 21.29L18.70 19.79L18.63 19.72C18.43 19.56 18.19 19.48 17.94 19.50C17.70 19.51 17.46 19.61 17.29 19.79ZM5.37 19.72L5.29 19.79L3.79 21.29L3.72 21.36C3.57 21.56 3.49 21.80 3.50 22.04C3.51 22.29 3.62 22.52 3.79 22.70C3.97 22.87 4.20 22.98 4.45 22.99C4.69 23.00 4.93 22.92 5.13 22.77L5.20 22.70L6.70 21.20L6.77 21.13C6.92 20.93 7.00 20.69 6.99 20.45C6.97 20.20 6.87 19.97 6.70 19.79C6.52 19.62 6.29 19.52 6.04 19.50C5.80 19.49 5.56 19.57 5.37 19.72ZM12 19.5C11.73 19.5 11.48 19.60 11.29 19.79C11.10 19.98 11 20.23 11 20.5V22.5C11 22.76 11.10 23.01 11.29 23.20C11.48 23.39 11.73 23.5 12 23.5C12.26 23.5 12.51 23.39 12.70 23.20C12.89 23.01 13 22.76 13 22.5V20.5C13 20.23 12.89 19.98 12.70 19.79C12.51 19.60 12.26 19.5 12 19.5Z",
  4730. fill:"white"}}]}:{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{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.setIcon(d);this.subscribe("select",this.j,this);this.listen(tM,this.T);g.C(this,this.U)};
  4731. KR=function(d){xT.call(this,d);var q=this;this.G=!1;d.addEventListener("settingsMenuInitialized",function(){l4f(q)});
  4732. d.addEventListener("highlightSettingsMenu",function(T){l4f(q);var Y=q.menuItem;T==="menu_item_cinematic_lighting"&&(g.d9(Y.element,"ytp-menuitem-highlighted"),g.d9(Y.element,"ytp-menuitem-highlight-transition-enabled"),Y.U.start())});
  4733. A7(d,"updateCinematicSettings",function(T){q.updateCinematicSettings(T)})};
  4734. l4f=function(d){d.menuItem||(d.menuItem=new Bs(d.api),g.C(d,d.menuItem),d.menuItem.S5(d.G))};
  4735. vCj=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);this.events.W(d,"applicationvideodatachange",function(T,Y){Y=Y.clipConfig;T==="dataloaded"&&Y&&Y.startTimeMs!=null&&Y.endTimeMs!=null&&q.api.setLoopRange({startTimeMs:Math.floor(Number(Y.startTimeMs)),endTimeMs:Math.floor(Number(Y.endTimeMs)),postId:Y.postId,type:"clips"})})};
  4736. Gk=function(d){xT.call(this,d);this.events=new g.aI(d);g.C(this,this.events);A7(d,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));A7(d,"setCreatorEndscreenHideButton",this.G.bind(this))};
  4737. LR=function(d,q,T,Y){jq.call(this,"\u7a33\u5b9a\u97f3\u91cf",g.rR.dX);g.d9(this.element,"ytp-drc-menu-item");this.TG=d.dB();this.j=q;this.G=T;this.hasDrcAudioTrack=Y;d.addEventListener("videodatachange",this.U.bind(this));d.N("mta_drc_mutual_exclusion_removal")&&this.W(d,"onPlaybackAudioChange",this.U);q=this.G()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());d=d.N("delhi_modern_web_player_icons")?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",
  4738. Z:{d:"M12 .99C5.92 .99 1 5.92 1 11.99C1 18.07 5.92 22.99 12 22.99C18.07 22.99 23 18.07 23 11.99C23 5.92 18.07 .99 12 .99ZM12 2.99C14.38 2.99 16.67 3.94 18.36 5.63C20.05 7.32 21 9.61 21 11.99C21 14.38 20.05 16.67 18.36 18.36C16.67 20.05 14.38 20.99 12 20.99C9.61 20.99 7.32 20.05 5.63 18.36C3.94 16.67 3 14.38 3 11.99C3 9.61 3.94 7.32 5.63 5.63C7.32 3.94 9.61 2.99 12 2.99ZM14 6.00C13.73 6.00 13.48 6.10 13.29 6.29C13.10 6.48 13 6.73 13 7.00V17.00C13 17.26 13.10 17.52 13.29 17.70C13.48 17.89 13.73 18.00 14 18.00C14.26 18.00 14.51 17.89 14.70 17.70C14.89 17.52 15 17.26 15 17.00V7.00C15 6.73 14.89 6.48 14.70 6.29C14.51 6.10 14.26 6.00 14 6.00ZM10 8.00C9.73 8.00 9.48 8.10 9.29 8.29C9.10 8.48 9 8.73 9 9.00V15.00C9 15.26 9.10 15.52 9.29 15.70C9.48 15.89 9.73 16.00 10 16.00C10.26 16.00 10.51 15.89 10.70 15.70C10.89 15.52 11 15.26 11 15.00V9.00C11 8.73 10.89 8.48 10.70 8.29C10.51 8.10 10.26 8.00 10 8.00ZM18 9.00C17.73 9.00 17.48 9.10 17.29 9.29C17.10 9.48 17 9.73 17 10.00V14.00C17 14.26 17.10 14.52 17.29 14.70C17.48 14.89 17.73 15.00 18 15.00C18.26 15.00 18.51 14.89 18.70 14.70C18.89 14.52 19 14.26 19 14.00V10.00C19 9.73 18.89 9.48 18.70 9.29C18.51 9.10 18.26 9.00 18 9.00ZM6 10.00C5.73 10.00 5.48 10.10 5.29 10.29C5.10 10.48 5 10.73 5 11.00V13.00C5 13.26 5.10 13.52 5.29 13.70C5.48 13.89 5.73 14.00 6 14.00C6.26 14.00 6.51 13.89 6.70 13.70C6.89 13.52 7 13.26 7 13.00V11.00C7 10.73 6.89 10.48 6.70 10.29C6.51 10.10 6.26 10.00 6 10.00Z",
  4739. fill:"white"}}]}:{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{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",fill:"white"}}]};this.setIcon(d);this.subscribe("select",this.T,this);az(this,q);this.TG.rk(this)};
  4740. kT=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);d.N("html5_show_drc_toggle")&&d.addEventListener("settingsMenuInitialized",function(){q.menuItem||(q.menuItem=new LR(q.api,q.setDrcUserPreference.bind(q),q.getDrcUserPreference.bind(q),q.U.bind(q)),g.C(q,q.menuItem))});
  4741. A7(this.api,"setDrcUserPreference",function(Y){q.setDrcUserPreference(Y)});
  4742. A7(this.api,"getDrcUserPreference",function(){return q.getDrcUserPreference()});
  4743. A7(this.api,"hasDrcAudioTrack",function(){return q.U()});
  4744. var T;this.G=(T=g.Zs("yt-player-drc-pref"))!=null?T:1;this.updateEnvironmentData()};
  4745. Ps=function(d){xT.call(this,d);var q=this;this.G={};this.events=new g.aI(d);g.C(this,this.events);this.events.W(d,"videodatachange",function(){q.onVideoDataChange()});
  4746. this.events.W(d,g.Sh("embargo"),function(T){q.api.WR(!0);var Y,e=(Y=q.G[T.id])!=null?Y:[];Y=g.E(e);for(e=Y.next();!e.done;e=Y.next()){var U=e.value;q.api.hideControls();q.api.o6("auth",2,"This video isn't available in your current playback area",RI({embargoed:1,id:T.id,idx:T.U,start:T.start}));e=void 0;(U=(e=U.embargo)==null?void 0:e.onTrigger)&&q.api.gO("innertubeCommand",U)}})};
  4747. oC2=function(d,q){var T;return(T=q.onEnter)==null?void 0:T.some(d.U)};
  4748. VNg=function(d,q){q=g.E(q);for(var T=q.next();!T.done;T=q.next()){T=T.value;var Y=void 0,e=Number((Y=T.playbackPosition)==null?void 0:Y.utcTimeMillis)/1E3,U=void 0;Y=e+Number((U=T.duration)==null?void 0:U.seconds);U="embargo_"+e;d.api.addUtcCueRange(U,e,Y,"embargo",!1);T.onEnter&&(d.G[U]=T.onEnter.filter(d.U))}};
  4749. Ws=function(d){xT.call(this,d);var q=this;this.G=[];this.events=new g.aI(d);g.C(this,this.events);A7(d,"addEmbedsConversionTrackingParams",function(T){q.addEmbedsConversionTrackingParams(T)});
  4750. this.events.W(d,"veClickLogged",function(T){q.api.hasVe(T)&&(T=T.visualElement.getAsJspb(),T=p2(T,2),q.G.push(T))})};
  4751. de_=function(d){xT.call(this,d);A7(d,"isEmbedsShortsMode",function(){return d.isEmbedsShortsMode()})};
  4752. qo2=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);this.events.W(d,"initialvideodatacreated",function(T){SN(mx(),16623);q.G=g.Q0();var Y=d.C().yH&&!T.qU;if(sF(T)&&Y){SN(mx(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(T.getWatchNextResponse()){var e,U=(e=T.getWatchNextResponse())==null?void 0:e.trackingParams;U&&vN(U)}if(T.getPlayerResponse()){var b;(T=(b=T.getPlayerResponse())==null?void 0:b.trackingParams)&&vN(T)}}else SN(mx(),
  4753. 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),T.getEmbeddedPlayerResponse()&&(b=(U=T.getEmbeddedPlayerResponse())==null?void 0:U.trackingParams)&&vN(b)});
  4754. this.events.W(d,"loadvideo",function(){SN(mx(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:q.G})});
  4755. this.events.W(d,"cuevideo",function(){SN(mx(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:q.G})});
  4756. this.events.W(d,"largeplaybuttonclicked",function(T){SN(mx(),27240,T.visualElement)});
  4757. this.events.W(d,"playlistnextbuttonclicked",function(T){SN(mx(),27240,T.visualElement)});
  4758. this.events.W(d,"playlistprevbuttonclicked",function(T){SN(mx(),27240,T.visualElement)});
  4759. this.events.W(d,"playlistautonextvideo",function(){SN(mx(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})};
  4760. CR=function(d,q){g.W.call(this);var T=this;this.G=null;this.j=q;q=[];for(var Y=0;Y<=100;Y++)q.push(Y/100);q={threshold:q,trackVisibility:!0,delay:1E3};(this.U=window.IntersectionObserver?new IntersectionObserver(function(e){e=e[e.length-1];var U=null;typeof e.isVisible==="undefined"?document.visibilityState==="visible"&&e.isIntersecting&&e.intersectionRatio>0?U=e.intersectionRatio:document.visibilityState==="hidden"?U=0:U=null:U=e.isVisible?e.intersectionRatio:0;U!=null&&(U=Math.max(U,0),U=Math.min(U,
  4761. 1));T.G=U;typeof T.j==="function"&&T.j(T.G)},q):null)&&this.U.observe(d)};
  4762. YoQ=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);this.events.W(d,"applicationInitialized",function(){TjQ(q)})};
  4763. TjQ=function(d){var q=d.api.getRootNode(),T,Y=d.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((T=q.parentElement)==null?void 0:T.parentElement)||q:q;d.G=new CR(Y,function(e){e!=null&&(d.api.C().U5=e,d.api.C().j8="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")});
  4764. g.C(d,d.G);d.events.W(d.api,"videoStatsPingCreated",function(e){var U=d.G;U=U.G==null?null:Math.round(U.G*100)/100;e.inview=U!=null?U:void 0;U=d.api.getPlayerSize();if(U.height>0&&U.width>0){U=[Math.round(U.width),Math.round(U.height)];var b=g.Mi();b>1&&U.push(b);U=U.join(":")}else U=void 0;e.size=U})};
  4765. eH1=function(d){var q;return((q=((d==null?void 0:d.messageRenderers)||[]).find(function(T){return!!T.timeCounterRenderer}))==null?void 0:q.timeCounterRenderer)||null};
  4766. ui=function(d){g.f.call(this,{Y:"div",hF:["ytp-player-content","ytp-iv-player-content"],V:[{Y:"div",D:"ytp-free-preview-countdown-timer",V:[{Y:"span",j5:"{{label}}"},{Y:"span",D:"ytp-free-preview-countdown-timer-separator",j5:"\u2022"},{Y:"span",j5:"{{duration}}"}]}]});this.api=d;this.G=null;this.j=this.U=0;this.W(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)};
  4767. bYI=function(d,q){d.G||(d.U=q,d.j=(0,g.cj)(),d.G=new g.uc(function(){Uef(d)},null),Uef(d))};
  4768. Uef=function(d){var q=Math,T=q.round,Y=Math.min((0,g.cj)()-d.j,d.U);q=T.call(q,(d.U-Y)/1E3);d.updateValue("duration",uq({seconds:q}));q<=0&&d.G?d.stopTimer():d.G&&d.G.start()};
  4769. XIg=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);this.events.W(d,"basechromeinitialized",function(){q.G=new ui(d);g.C(q,q.G);g.o6(d,q.G.element,4);q.G.hide()})};
  4770. Dx=function(d){g.f.call(this,{Y:"button",hF:["ytp-fullerscreen-edu-button","ytp-button"],V:[{Y:"div",hF:["ytp-fullerscreen-edu-text"],j5:"\u6eda\u52a8\u6d4f\u89c8\u8be6\u60c5"},{Y:"div",hF:["ytp-fullerscreen-edu-chevron"],V:[{Y:"svg",Z:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{Y:"path",Z:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],Z:{"data-priority":"2"}});this.mZ=d;this.fade=new g.oh(this,250,void 0,100);this.U=this.G=!1;d.createClientVe(this.element,
  4771. this,61214);g.C(this,this.fade);this.W(d,"fullscreentoggled",this.S5);this.W(d,"presentingplayerstatechange",this.S5);this.listen("click",this.onClick);this.S5()};
  4772. wR=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);A7(this.api,"updateFullerscreenEduButtonSubtleModeState",function(Y){q.updateFullerscreenEduButtonSubtleModeState(Y)});
  4773. A7(this.api,"updateFullerscreenEduButtonVisibility",function(Y){q.updateFullerscreenEduButtonVisibility(Y)});
  4774. var T=d.C();d.N("external_fullscreen_with_edu")&&T.externalFullscreen&&HT(T)&&T.controlsType==="1"&&this.events.W(d,"standardControlsInitialized",function(){q.G=new Dx(d);g.C(q,q.G);d.j_(q.G)})};
  4775. JFg=function(d){g.f.call(this,{Y:"div",D:"ytp-gated-actions-overlay",V:[{Y:"div",D:"ytp-gated-actions-overlay-background",V:[{Y:"div",D:"ytp-gated-actions-overlay-background-overlay"}]},{Y:"button",hF:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],Z:{"aria-label":"\u5173\u95ed"},V:[g.y9()]},{Y:"div",D:"ytp-gated-actions-overlay-bar",V:[{Y:"div",D:"ytp-gated-actions-overlay-text-container",V:[{Y:"div",D:"ytp-gated-actions-overlay-title",j5:"{{title}}"},{Y:"div",D:"ytp-gated-actions-overlay-subtitle",
  4776. j5:"{{subtitle}}"}]},{Y:"div",D:"ytp-gated-actions-overlay-button-container"}]}]});var q=this;this.api=d;this.background=this.Qv("ytp-gated-actions-overlay-background");this.U=this.Qv("ytp-gated-actions-overlay-button-container");this.G=[];this.W(this.Qv("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){q.api.gO("onCloseMiniplayer")});
  4777. this.hide()};
  4778. $eD=function(d,q){var T=0;T=0;for(var Y={};T<q.length;Y={Fj:void 0},T++){var e=d.G[T],U=void 0,b=(U=e)==null?void 0:U.element;b||(b=new g.f({Y:"button",D:"ytp-gated-actions-overlay-button",Z:{tabindex:"0"},V:[{Y:"div",D:"ytp-gated-actions-overlay-button-title",j5:"{{buttonText}}"}]}),g.C(d,b),b.IU(d.U),e={element:b});Y.Fj=g.D(q[T],sg6);var J=U=void 0,F=void 0,N=((U=Y.Fj)==null?void 0:U.title)||((J=Y.Fj)==null?void 0:(F=J.titleFormatted)==null?void 0:F.content)||"";b.update({buttonText:N});e.listener&&
  4779. b.t1(e.listener);e.listener=b.listen("click",function(R){return function(){var x,y=g.D((x=R.Fj)==null?void 0:x.onTap,ri);y&&d.api.gO("innertubeCommand",y)}}(Y));
  4780. d.G[T]=e}for(;T<d.G.length;)d.G.pop().element.dispose()};
  4781. ge1=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);this.G=new JFg(this.api);g.C(this,this.G);this.events.W(d,"videodatachange",function(){var T,Y=(T=q.api.getVideoData())==null?void 0:T.KQ;T=q.G;if(Y){var e,U,b=((e=Y.title)==null?void 0:e.content)||"";e=((U=Y.subtitle)==null?void 0:U.content)||"";T.update({title:b,subtitle:e});b=Y.thumbnail;U="none";if(b==null?0:b.sources){e=0;b=g.E(b.sources);for(var J=b.next();!J.done;J=b.next())J=J.value,J.width&&J.url&&J.width>
  4782. e&&(e=J.width,U="url("+J.url+")")}T.background.style.backgroundImage=U;$eD(T,Y.actionButtons||[]);T.show()}else T.hide()});
  4783. g.o6(this.api,this.G.element,4)};
  4784. fR=function(d){xT.call(this,d);var q=this;Z$(this.api,"getSphericalProperties",function(){return q.getSphericalProperties()});
  4785. Z$(this.api,"setSphericalProperties",function(){q.setSphericalProperties.apply(q,g.RQ(g.CN.apply(0,arguments)))});
  4786. pV(this.api,"getSphericalProperties",function(){return q.api.getPresentingPlayerType()===2?{}:q.getSphericalProperties()});
  4787. pV(this.api,"setSphericalProperties",function(){var T=g.CN.apply(0,arguments);q.api.getPresentingPlayerType()!==2&&q.setSphericalProperties.apply(q,g.RQ(T))})};
  4788. zk=function(d){xT.call(this,d);A7(d,"createClientVe",this.createClientVe.bind(this));A7(d,"createServerVe",this.createServerVe.bind(this));A7(d,"destroyVe",this.destroyVe.bind(this));A7(d,"hasVe",this.hasVe.bind(this));A7(d,"logClick",this.logClick.bind(this));A7(d,"logVisibility",this.logVisibility.bind(this));A7(d,"setTrackingParams",this.setTrackingParams.bind(this))};
  4789. ii=function(d,q,T,Y){function e(b){var J=!(b.status!==204&&b.status!==200&&!b.response),F;b={succ:""+ +J,rc:b.status,lb:((F=b.response)==null?void 0:F.byteLength)||0,rt:((0,g.cj)()-U).toFixed(),shost:g.sb(d),trigger:q};Fp1(b,d);T&&T(b);Y&&!J&&Y(new g.xV("pathprobe.net",b))}
  4790. var U=(0,g.cj)();g.QB(d,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})};
  4791. Fp1=function(d,q){var T;((T=window.performance)==null?0:T.getEntriesByName)&&(q=performance.getEntriesByName(q))&&q.length&&(q=q[0],d.pedns=(q.domainLookupEnd-q.startTime).toFixed(),d.pecon=(q.connectEnd-q.domainLookupEnd).toFixed(),d.perqs=(q.requestStart-q.connectEnd).toFixed(),NjN&&(d.perqsa=q.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))};
  4792. RHY=function(d){NjN=d};
  4793. Iz=function(d,q){this.Tq=d;this.policy=q;this.playbackRate=1};
  4794. xeI=function(d,q){var T=Math.min(2.5,fO(d.Tq));d=mH(d);return q-T*d};
  4795. Sq=function(d,q,T,Y,e){e=e===void 0?!1:e;if(d.policy.wJ)return Math.ceil(d.policy.wJ*q);d.policy.pS&&(Y=Math.abs(Y));Y/=d.playbackRate;var U=1/I9(d.Tq);T=Math.max(.9*(Y-3),fO(d.Tq)+d.Tq.U.G*U)/U*.8/(q+T);T=Math.min(T,Y);d.policy.Kq>0&&e&&(T=Math.max(T,d.policy.Kq));return yFg(d,T,q)};
  4796. yFg=function(d,q,T){return Math.ceil(Math.max(Math.max(d.policy.Gr,d.policy.dZ*T),Math.min(Math.min(d.policy.RU,31*T),Math.ceil(q*T))))||d.policy.Gr};
  4797. hHj=function(d,q,T){T=Sq(d,q.G.info.Vv,T.G.info.Vv,0);var Y=fO(d.Tq)+T/I9(d.Tq);return Math.max(Y,Y+d.policy.zE-T/q.G.info.Vv)};
  4798. mH=function(d){return I9(d.Tq,!d.policy.wB,d.policy.Gw)};
  4799. li=function(d){return mH(d)/d.playbackRate};
  4800. vs=function(d,q,T){var Y=d.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],e=d.policy.playbackStartPolicy.startMinReadaheadPolicy||[];d=Infinity;q=g.E(q&&Y.length>0?Y:e);for(Y=q.next();!Y.done;Y=q.next())Y=Y.value,e=Y.minReadaheadMs||0,T<(Y.minBandwidthBytesPerSec||0)||d>e&&(d=e);return d<Infinity?d/1E3:d};
  4801. oz=function(d,q,T,Y){var e=this;this.L=d;this.vv=q;this.policy=T;this.logger=Y;this.cK=[];this.wz=[];this.G=-1;this.RN=null;this.X=this.timestampOffset=0;this.U=10;this.S=new Set;this.fC={sE:function(U){return e.sE(U)}};
  4802. this.T=q.aN?0:1;T.EW>0&&(this.U=T.EW)};
  4803. MKf=function(d,q,T,Y,e){if(!Y.info.S){if(T.length===0)T.push(Y);else{var U;(d=(U=T.pop())==null?void 0:g.Al(U,Y))?T.push(d):T.push(Y)}return e}var b;(T=(b=T.pop())==null?void 0:g.Al(b,Y))||(T=Y);if(T.info.U)return d.logger&&d.logger({incompleteSegment:T.info.jt()}),e;Y=d.sE(T);e=Y.sD;Y={clipId:Y.clipId,formatId:Y.formatId,startTimeMs:Y.startTimeMs,durationMs:Y.CQ,QK:e,wA:e};e=HY_(q,Y.startTimeMs);if(U=T=e>=0?q[e]:null){U=Y;var J=e;b=T.startTimeMs+T.durationMs;var F=U.startTimeMs+U.durationMs;if(U.startTimeMs-
  4804. b>d.U)U=!1;else if(QgH(d,T.formatId,U.formatId))T.durationMs=Math.max(b,F)-T.startTimeMs,T.wA=Math.max(T.wA,U.wA),U=!0;else if(Math.abs(T.startTimeMs-U.startTimeMs)<=d.U)if(T.durationMs>U.durationMs+d.U){var N=T.formatId,R=T.QK;J=T.wA;T.formatId=U.formatId;T.durationMs=U.durationMs;T.QK=U.QK;T.wA=U.wA;U.formatId=N;U.startTimeMs=F;U.durationMs=b-F;U.QK=R;U.wA=J;U=!1}else T.formatId=U.formatId,U=!0;else b>U.startTimeMs&&(b>F&&(q.splice(J+1,0,{formatId:T.formatId,startTimeMs:F,durationMs:b-F,QK:U.wA+
  4805. 1,wA:T.wA}),d.logger&&d.logger({splitOldStart:(N=T.startTimeMs)==null?void 0:N.toFixed(3),splitOldEnd:b==null?void 0:b.toFixed(3),splitNewStart:(R=U.startTimeMs)==null?void 0:R.toFixed(3),splitNewEnd:F==null?void 0:F.toFixed(3)})),T.durationMs=U.startTimeMs-T.startTimeMs,T.wA=U.QK-1),U=!1}U?Y=T:(e+=1,q.splice(e,0,Y));N=0;for(R=e+1;R<q.length;R++){T=d;U=q[R];b=Y;F=U.startTimeMs+U.durationMs;J=b.startTimeMs+b.durationMs;J>=F+T.U?T=!0:J+T.U<U.startTimeMs?T=!1:QgH(T,U.formatId,b.formatId)?(b.durationMs=
  4806. F-b.startTimeMs,b.wA=U.wA,T=!0):(U.startTimeMs=J,U.QK=b.wA+1,T=!1);if(!T)break;N++}N&&q.splice(e+1,N);return e};
  4807. EeY=function(d,q,T){T!=null&&T.UI||(d.cK=[]);d.policy.Qs?(q=g.Dn(d.wz,{startTimeMs:q*1E3},function(Y,e){return Y.startTimeMs-e.startTimeMs}),d.G!==q&&(d.G=-1,d.j=void 0)):(cFg(d,!0),d.G=HY_(d.wz,q*1E3))};
  4808. HY_=function(d,q){d=g.Dn(d,{startTimeMs:q},function(T,Y){return T.startTimeMs-Y.startTimeMs});
  4809. return d>=0?d:-d-2};
  4810. cFg=function(d,q){if(d.RN){var T=d.RN.Zm();if(T.length!==0){if(d.j&&q){var Y=d.j,e=Y.info.T;!oI(T,e)&&Y.info.B>0&&(0,g.cj)()-d.X<5E3&&(d.logger&&d.logger({dend:Y.info.jt()}),T=PEN(T,e,e+.01))}d.policy.Qs&&d.logger&&d.logger({cbri:""+d.G});Y=[];for(var U=e=0;e<T.length&&U<d.wz.length;){var b=T.start(e),J=T.end(e),F=d.wz[U].startTimeMs/1E3,N=(d.wz[U].startTimeMs+d.wz[U].durationMs)/1E3;if(F<=J&&N>=b){var R=Object.assign({},d.wz[U]),x=d.vv.j.get(SL(d.wz[U].formatId)),y=Math.max(F,b);b=x.index.yg(y+d.U/
  4811. 1E3);F=x.index.getStartTime(b);var h=b+ +(Math.abs(F-y)>d.U/1E3);y=h+d.T;h=x.index.getStartTime(h)*1E3;U!==d.G||q?(R.QK=y,R.startTimeMs=h):(d.logger&&d.logger({pEvict:"1",og:R.startTimeMs,adj:F*1E3}),R.QK=b+d.T,R.startTimeMs=F*1E3);b=void 0;F=((b=d.j)==null?void 0:b.info.duration)||11;U===d.G&&J<N&&N-J<=F*1.01&&(J=N);b=Math.min(N,J);F=x.index.yg(b-d.U/1E3);y=x.index.Zq(F);F-=+(Math.abs(y-b)>d.U/1E3);b=F+d.T;x=x.index.Zq(F)*1E3;R.wA=b;R.durationMs=x-R.startTimeMs;R.QK<=R.wA&&Y.push(R)}N<J?U+=1:e+=
  4812. 1}d.wz=Y}}};
  4813. jg1=function(d){var q=[],T=[].concat(g.RQ(d.cK));d.wz.forEach(function(b){q.push(Object.assign({},b))});
  4814. for(var Y=d.G,e=g.E(d.L.uN()),U=e.next();!U.done;U=e.next())Y=MKf(d,q,T,U.value,Y);q.forEach(function(b){b.startTimeMs&&(b.startTimeMs+=d.timestampOffset*1E3)});
  4815. return{wz:q,cK:T}};
  4816. QgH=function(d,q,T){return q.itag!==T.itag||q.xtags!==T.xtags?!1:d.vv.aN||q.lmt===T.lmt};
  4817. aWI=function(d,q,T){if(d.logger){for(var Y=[],e=0;e<q.length;e++){var U=q[e],b=void 0;if((b=U.FV)==null?0:b.startTicks){var J=b=void 0,F=void 0;Y.push("i."+((b=U.formatId)==null?void 0:b.itag)+"_st."+(U.startTimeMs+"_psst.")+(((J=U.FV)==null?void 0:J.startTicks)+"_psd.")+((F=U.FV)==null?void 0:F.Ou))}b=void 0;Y.push("i."+((b=U.formatId)==null?void 0:b.itag)+"_st."+(U.startTimeMs+"_e."+(U.startTimeMs+U.durationMs)+"_d."+U.durationMs)+("_sn."+U.QK)+("_en."+U.wA))}d.logger({p:""+T,br:Y.join(";")})}};
  4818. AFg=function(d){d.wz=[];d.cK=[];d.S.clear();d.G=-1;d.j=void 0};
  4819. VD=function(d,q,T,Y,e){this.loader=d;this.vv=q;this.videoTrack=T;this.audioTrack=Y;this.policy=e;this.seekCount=this.targetTime=0;this.T=!1;this.j=null;this.U=0;this.G=this.vv.isManifestless&&!this.vv.uC};
  4820. pI2=function(d,q,T){if(!d.policy.S){d=q.G.index;var Y=q.U.sD;d.Zb(Y)||T&&T.sD===Y?(q.S=!d.Zb(Y),q.yv=!d.Zb(Y)):(q.S=!0,q.yv=!0)}};
  4821. OYf=function(d){var q=Math.max(d.videoTrack.T.j||0,d.audioTrack.T.j||0);ZYQ(d.videoTrack);ZYQ(d.audioTrack);d.policy.S||PND(d.vv);d.vv.isManifestless&&!d.policy.S&&(d.G=!0,d.U=0);var T=d.loader;if(!T.policy.z2||T.policy.q5)T.currentTime=q;d.T=!0;d.j=new yQ;return d.j};
  4822. tKn=function(d,q,T,Y,e){if(!q.G.pj()){if(!(e=T===0||!!q.j.length&&q.j[0]instanceof dK))a:{if(q.j.length&&(e=q.j[0],e instanceof qO&&e.vr&&e.Rg)){e=!0;break a}e=!1}e||d.policy.G||TM(q);return T}var U=YI(q,T);if(!isNaN(U))return U;if(d.loader.fT(T*1E3))return T;e.UI?d.policy.WJ&&(d=e6(d.loader,q),nej(q.T,T+d,!0)):(q.ZE(),d.loader.Sc(!1,"sta_"+ +q.G.info.JE()));return Y&&(d=Vb(Y.Zm(),T),!isNaN(d))?(Uj(q,d+rFN,e),T):Uj(q,T,e)};
  4823. KpY=function(d,q,T,Y){if(d.policy.S)!Y||!d.G&&d.policy.fn||g.ML(function(){bk(d)});
  4824. else{if(d.isSeeking()&&d.targetTime){var e=BjD(d,q,T);if(e!==-1){d.videoTrack.S=!1;d.audioTrack.S=!1;d.G=!0;d.U=0;g.ML(function(){d.loader.oU("seekreason",{reason:"behindMinSq",tgt:e});Xs(d,e)});
  4825. return}}T?d.videoTrack.yv=!1:d.audioTrack.yv=!1;var U=!d.G;YI(d.videoTrack,d.targetTime)>=0&&YI(d.audioTrack,d.targetTime)>=0&&U?((d.videoTrack.S||d.audioTrack.S)&&d.loader.oU("iterativeSeeking",{status:"done",count:d.seekCount}),d.videoTrack.S=!1,d.audioTrack.S=!1):Y&&g.ML(function(){if(d.G||!d.policy.fn)bk(d);else{var b=q.startTime,J=q.duration;if(!d.policy.S){var F=T?d.videoTrack.S:d.audioTrack.S,N=d.videoTrack.X!==-1&&d.audioTrack.X!==-1,R=d.targetTime>=b&&d.targetTime<b+J+.1,x=!d.videoTrack.yv&&
  4826. !d.audioTrack.yv,y=d.policy.rQ&&YI(d.videoTrack,b)&&YI(d.audioTrack,b);F&&N&&x&&(R||y?((T?d.videoTrack:d.audioTrack).S=!1,d.videoTrack.S||d.audioTrack.S||(d.loader.oU("iterativeSeeking",{status:"done",target:b,originalTime:b+d.loader.mz(),count:d.seekCount}),d.seekCount=0)):d.seekCount<8?(d.seekCount++,d.loader.oU("iterativeSeeking",{status:"inprogress",count:d.seekCount,target:d.targetTime,actual:b,duration:J,isVideo:T}),d.seek(d.targetTime,{})):(d.loader.oU("iterativeSeeking",{status:"incomplete",
  4827. count:d.seekCount,target:d.targetTime,actual:b}),d.seekCount=0,d.videoTrack.S=!1,d.audioTrack.S=!1,Jk(d.loader,b+.1,{Zn:!0,b$:"chunkSelectorSynchronizeMedia",Xt:!0})))}}})}};
  4828. BjD=function(d,q,T){if(!d.isSeeking())return-1;T=(T?d.videoTrack:d.audioTrack).G.index;var Y=T.yg(d.targetTime);return(T.Zb(d.vv.QX)||q.sD===d.vv.QX)&&Y<d.vv.QX?d.vv.BG():-1};
  4829. Xs=function(d,q,T){d.G&&d.videoTrack.X!==-1&&d.audioTrack.X!==-1&&(d.G=!1,d.targetTime=q,Jk(d.loader,q+.1,{Zn:!0,b$:"chunkSelectorSynchronize",Xt:!0,seekSource:T}))};
  4830. bk=function(d){var q=d.videoTrack.X!==-1,T=d.audioTrack.X!==-1;if(!q||!T)if(q=!q&&sj(d.videoTrack),T=!T&&sj(d.audioTrack),q||T){T=q?d.videoTrack:d.audioTrack;q=q?d.audioTrack:d.videoTrack;T.X=sj(T).info.sD;if(d.policy.S){var Y;q.X=((Y=sj(q))==null?void 0:Y.info.sD)||q.X}if(q.X!==-1){var e=Math.max(q.G.index.getStartTime(q.X),T.G.index.getStartTime(T.X));Id(d.vv)&&Math.abs(e-Id(d.vv))>432E3&&Wig(d.vv);d.U&&(e=d.U,d.U=0);g.ML(function(){d.policy.S||Xs(d,e,102)});
  4831. d.loader.oU("initManifestlessSync",{st:e,ost:e+d.loader.mz(),a:d.audioTrack.X,v:d.videoTrack.X});d.j&&(d.j.resolve(e+.1),d.j=null);d.policy.S&&Xs(d,e,102)}}};
  4832. $I=function(d,q){var T=this;this.yp=d;this.requestNumber=++GG_;this.G=this.now();this.B=this.K=NaN;this.L=this.G;this.j=this.vF=this.S=0;this.X=this.G;this.Bv=this.UD=this.dO=this.zq=this.Ln=this.rO=this.U=this.T=0;this.lr=this.isActive=!1;this.Qp=this.kx=0;this.fC={csO:function(){return T.q4}};
  4833. this.Tq=q.Tq;this.snapshot=rP1(this.Tq);this.policy=this.Tq.U;this.cO=!!q.cO;this.D1=q.D1;this.D5=q.D5||0;this.bO=q.bO||0;q.Y4&&(this.z2=new GH);var Y;this.q4=(Y=q.q4)!=null?Y:!1;this.cO||ZdI(this.Tq)};
  4834. Lpf=function(d){d.dO=Math.max(d.dO,d.S-d.Ln);d.UD=Math.max(d.UD,d.L-d.zq);d.rO=0};
  4835. gK=function(d,q,T){OdX(d.Tq,q);d.z2&&(d.z2.add(Math.ceil(q)-Math.ceil(d.L)),d.z2.add(Math.max(0,Math.ceil(T/1024)-Math.ceil(d.S/1024))));var Y=q-d.L,e=T-d.S;d.vF=e;d.Bv=Math.max(d.Bv,e/(Y+.01)*1E3);d.L=q;d.S=T;d.rO&&T>d.rO&&Lpf(d)};
  4836. Fs=function(d,q){d.url=q;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
  4837. NO=function(d,q){$I.call(this,d,q);this.fn=this.q5=!1;this.aU=this.yv=Infinity;this.RU=NaN;this.lF=!1;this.Fw=NaN;this.ev=this.qk=this.xx=0;this.mO=q.mO||1;this.e4=q.e4||this.mO;this.Fb=q.Fb;this.sD=q.sD;this.MM=q.MM;kG1(this);this.iW(this.G);this.wO=(this.Fw-this.G)/1E3};
  4838. Ptj=function(d){var q=d.qk||d.xx;return q?d.snapshot.delay+Math.min(d.bO,(d.B-d.K)/1E3)+q:d.wO};
  4839. R3=function(d,q,T){if(!d.cO){q=Math.max(q,.01);var Y=d.D5?Math.max(q,T/d.D5):q,e=d.Tq.U.j;e&&(Y=q,d.D5&&(Y=Math.max(q,T/d.D5*e)));ue(d.Tq,q,T,Y)}};
  4840. Wp_=function(d){return(d.X-d.G)/1E3};
  4841. kG1=function(d){d.RU=d.G+d.snapshot.delay*1E3;d.lF=!1};
  4842. xI=function(d,q){if(d.Fb&&d.sD!==void 0&&d.MM!==void 0){var T=Math,Y=T.min,e=d.yv;var U=d.Fb;var b=d.G;if(Ctf(U,d.sD))U=q;else{var J=0;U.zz&&(J=.2);U=b+(U.bO+J)*1E3}d.yv=Y.call(T,e,U);T=Math;Y=T.min;e=d.aU;U=d.Fb;b=d.G;J=uL2(U,d.sD,d.MM);J!==2&&(q=J?q:b+U.bO*1E3,U.zz&&(q+=U.bO*1E3));d.aU=Y.call(T,e,q);d.yv<=d.G?kG1(d):(d.RU=d.yv,d.lF=!0)}};
  4843. De7=function(d,q){if(q+1<=d.totalLength){var T=FJ(d,q);T=T<128?1:T<192?2:T<224?3:T<240?4:5}else T=0;if(T<1||!(q+T<=d.totalLength))return[-1,q];if(T===1)d=FJ(d,q++);else if(T===2)T=FJ(d,q++),d=FJ(d,q++),d=(T&63)+64*d;else if(T===3){T=FJ(d,q++);var Y=FJ(d,q++);d=FJ(d,q++);d=(T&31)+32*(Y+256*d)}else if(T===4){T=FJ(d,q++);Y=FJ(d,q++);var e=FJ(d,q++);d=FJ(d,q++);d=(T&15)+16*(Y+256*(e+256*d))}else T=q+1,d.focus(T),JV(d,T,4)?d=wWf(d).getUint32(T-d.j,!0):(Y=FJ(d,T+2)+256*FJ(d,T+3),d=FJ(d,T)+256*(FJ(d,T+1)+
  4844. 256*Y)),q+=5;return[d,q]};
  4845. yh=function(d){this.yp=d;this.G=new e2};
  4846. hk=function(d,q){this.info=d;this.callback=q;this.state=1;this.f5=this.mR=!1;this.j$=null};
  4847. wIX=function(d){return g.h0(d.info.Zw,function(q){return q.type===3})};
  4848. HX=function(d,q,T,Y){var e=this;Y=Y===void 0?{}:Y;this.policy=q;this.yp=T;this.status=0;this.G=new e2;this.U=0;this.JF=this.T=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(Y.method||"GET",d);if(Y.headers)for(d=Y.headers,q=g.E(Object.keys(d)),T=q.next();!T.done;T=q.next())T=T.value,this.xhr.setRequestHeader(T,d[T]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return e.VZ()};
  4849. this.xhr.onload=function(){return e.onDone()};
  4850. this.xhr.onerror=function(){return e.onError()};
  4851. this.xhr.fetch(function(U){e.G.append(U);e.U+=U.length;U=(0,g.cj)();e.yp.aW(U,e.U)},function(){},Y.body||null)};
  4852. fWn=function(d,q){this.U=(new TextEncoder).encode(d);this.G=(new TextEncoder).encode(q)};
  4853. zE7=function(d,q){var T;return g.G(function(Y){if(!q)return Y.return(q);T=new g.FN(d.U);return Y.return(T.encrypt(q,d.G))})};
  4854. lJ2=function(d,q){var T;return g.G(function(Y){if(Y.U==1){if(!q)return Y.return(q);T=new g.FN(d.U);return g.B(Y,T.decrypt(q,d.G),2)}return Y.return(Y.G)})};
  4855. iYg=function(d,q){var T=this;this.G=d;this.yp=q;this.loaded=this.status=0;this.error="";d=o8(this.G.get("range")||"");if(!d)throw Error("bad range");this.range=d;this.U=new e2;zHY(this).then(function(){T.yp.Q2()},function(Y){T.error=""+Y||"unknown_err";
  4856. T.yp.Q2()})};
  4857. zHY=function(d){var q,T,Y,e,U,b,J,F,N,R,x,y,h,H,a;return g.G(function(p){if(p.U==1){d.status=200;q=d.G.get("docid");T=OD(d.G.get("fmtid")||"");Y=d.G.get("lmt")||"0";e=+(d.G.get("csz")||0);if(!q||!T||!e)throw Error("Invalid local URL");d.G.get("ck")&&d.G.get("civ")&&(U=new fWn(d.G.get("ck"),d.G.get("civ")));b=d.range;J=Math.floor(b.start/e);F=Math.floor(b.end/e);N=J}if(p.U!=5)return N<=F?g.B(p,vbY(q,T,Y,N,U),5):p.tF(0);R=p.G;if(R===void 0)throw Error("invariant: data is undefined");x=N*e;y=(N+1)*e;
  4858. h=Math.max(0,b.start-x);H=Math.min(b.end+1,y)-(h+x);a=new Uint8Array(R.buffer,h,H);d.U.append(a);d.loaded+=H;d.loaded<b.length&&d.yp.aW((0,g.cj)(),d.loaded);N++;return p.tF(2)})};
  4859. meD=function(d,q,T,Y){var e=this;Y=Y===void 0?{}:Y;this.policy=q;this.yp=T;this.L=Y;this.status=0;this.response=void 0;this.U=0;this.S=this.X=!1;this.errorMessage="";this.K=function(U){if(U)if(e.status=U.status,U.ok&&U.body&&e.status!==204)e.status=e.status||242,e.j=U.body.getReader(),e.JF()?e.j.cancel().catch(function(){}):(e.responseHeaders=U.headers,e.yp.vx(),IWX(e));
  4860. else e.onDone();else e.onError(Error("null_response"))};
  4861. this.B=function(U){var b=(0,g.cj)();e.JF()||(U.done?(e.j=void 0,e.onDone()):(U=U.value,e.U+=U.length,e.G.append(U),IWX(e),e.yp.aW(b,e.U)))};
  4862. this.onError=function(U){e.errorMessage=String(U);e.X=!0;e.onDone()};
  4863. this.G=new e2;this.T=window.AbortController?new AbortController:void 0;this.start(d)};
  4864. IWX=function(d){d.j.read().then(d.B,d.onError).then(void 0,qw)};
  4865. Soj=function(d,q,T){var Y=this;T=T===void 0?{}:T;this.yp=q;this.U=this.status=0;this.JF=this.G=!1;this.xhr=new XMLHttpRequest;this.xhr.open(T.method||"GET",d);if(T.headers){d=T.headers;q=g.E(Object.keys(d));for(var e=q.next();!e.done;e=q.next())e=e.value,this.xhr.setRequestHeader(e,d[e])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(U){Y.VZ(U)};
  4866. d=wg(function(U){Y.onDone(U)});
  4867. this.xhr.addEventListener("load",d,!1);this.xhr.addEventListener("error",d,!1);T.body?this.xhr.send(T.body):this.xhr.send();this.xhr.addEventListener("progress",wg(function(U){Y.S$(U)}),!1)};
  4868. Qh=function(d,q,T,Y,e){if(lt(d.Wf))return new iYg(d,T);d=d.Hl();return Y?I3I()?new HX(d,q,T,e):new meD(d,q,T,e):new Soj(d,T,e)};
  4869. MO=function(d,q){g.W.call(this);var T=this;this.policy=d;this.Zw=q;this.U=0;this.G=null;this.FF=[];this.j=null;this.fC={jN:function(){return T.Zw}};
  4870. this.Zw.length===1||g.h0(this.Zw,function(Y){return!!Y.range})};
  4871. cX=function(d,q,T){d.G&&(Uv(d.G,q),q=d.G,d.G=null);for(var Y=0,e=0,U=g.E(d.Zw),b=U.next();!b.done;b=U.next())if(b=b.value,b.range&&Y+b.j<=d.U)Y+=b.j;else{if(TE(b)&&!T&&d.U+q.totalLength-e<Y+b.j){d.G=q.split(e).Kp;break}a:{var J=d;var F=b,N=d.U-Y,R=q.totalLength-e;F.range&&(R=Math.min(F.j-N,R));F=OeH(F,F.U+N,R,F.range?F.U+N+R===F.range.length:!!T);N=bz(q,e,R);F=new ju(F,N);if(J.policy.useUmp&&J.FF.length&&(N=g.Al(J.FF[J.FF.length-1],F))){J.FF[J.FF.length-1]=N;J=R;break a}J.FF.push(F);J=R}d.U+=J;e+=
  4872. J;Y+=b.j;if(e===q.totalLength)break}};
  4873. Ej=function(d,q,T,Y,e,U,b,J,F){F=F===void 0?!1:F;g.W.call(this);this.yp=d;this.policy=q;this.M3=T;this.zG=Y;this.timing=e;this.logger=U;this.j=b;this.cq=J;this.S=F;this.lastError=null;this.G=0;this.T=!1;this.U=new g.f9(this.zzF,this.policy.XF,this)};
  4874. lWN=function(d){d.zG.K=(0,g.cj)();d=j6(d);d.U=(0,g.cj)();d.started+=1};
  4875. VKI=function(d,q,T,Y){d.timing.Ab((0,g.cj)(),q,T);q=d.zG;q.j=0;q.S=0;q.L=0;u8(j6(d));Y&&(Y=j6(d),Y.j+=1);if((Y=d.cq)!=null&&(d=d.M3.Wf,!((0,g.cj)()<Y.X+3E5||lt(d))&&(q=SK(d))&&veH(q)&&Y.U===a3(q))){var e;vI(d)&&(e=SK(og(d)));g.pW("yt-player-bandaid-host",{primary:q,secondary:e},864E3);Y.X=(0,g.cj)();oeN(Y,{primary:q,secondary:e})}};
  4876. Ak=function(d){if(d.lastError==="ump.spsrejectfailure")d.timing.lr||hI_(d.zG,!1,d.M3,d.policy,d.j);else{if(d.lastError==="net.timeout")d.timing.uc((0,g.cj)());else{var q=d.timing;gK(q,(0,g.cj)(),q.S)}if(d.lastError==="net.nocontent")++d.zG.L;else{if((q=d.lastError==="net.timeout"||d.lastError==="net.connect"||d.lastError==="net.closed")&&!lt(d.M3.Wf)){var T=j6(d);T.timedOut+=1}else T=j6(d),T.G+=1;d.timing.lr||hI_(d.zG,q,d.M3,d.policy,d.j)}}d.yp.XC(5)};
  4877. pz=function(d,q,T,Y,e){return q>=400?(d.lastError="net.badstatus",!0):(e===void 0?0:e)?(d.lastError="ump.spsrejectfailure",!0):T||Y!==void 0&&Y?!1:(d.lastError=q===204?"net.nocontent":"net.connect",!0)};
  4878. Za=function(d,q){if(d.policy.cD)return!1;var T=q.getResponseHeader("content-type"),Y=q.QN();d=!Y||Y<=d.policy.IK;return(!q.wf()||!T||T.indexOf("text/plain")!==-1)&&d};
  4879. qK6=function(d,q){var T="";q=q.oD();q.totalLength<=d.policy.IK&&(T=dnj(d,$X(q)));return T};
  4880. dnj=function(d,q){var T=Re(q);return wp(T)?(d.logger.debug(function(){return"Redirecting to "+T}),T):""};
  4881. j6=function(d){return w0(d.j,SK(d.M3.Wf))};
  4882. T0D=function(d){var q=d.timing.Xq();q.shost=SK(d.M3.Wf);return q};
  4883. YKf=function(d,q){return(d==null?void 0:d.maxWidth)>(q==null?void 0:q.maxWidth)||(d==null?void 0:d.maxHeight)>(q==null?void 0:q.maxHeight)};
  4884. ej6=function(d,q){for(var T=g.E(q.keys()),Y=T.next();!Y.done;Y=T.next())if(Y=q.get(Y.value),Y.length!==0){g.iQ(Y,function(J,F){return F.maxFramerate-J.maxFramerate});
  4885. for(var e=[Y[0]],U=0,b=1;b<Y.length;b++)YKf(Y[b],e[U])&&(e.push(Y[b]),U++);d=d.concat(e)}return d};
  4886. bjI=function(d,q){var T=[];q=g.E(q);for(var Y=q.next();!Y.done;Y=q.next()){Y=Y.value;var e=Un1[Y]||0;d.G&&e>d.G||T.push(Y)}return T};
  4887. Oj=function(d,q,T){var Y=XtD[d]||[];T.N("html5_shorts_onesie_mismatched_fix")&&(Y=Ju_[d]||[]);q.push.apply(q,g.RQ(Y));T.N("html5_early_media_for_drm")&&q.push.apply(q,g.RQ(s8I[d]||[]))};
  4888. xnf=function(d,q){var T=g.Br(d),Y=d.C(),e=Y.S;Y=Y.N("html5_shorts_onesie_mismatched_fix");var U=d.mT();if(Y){if(!e.U){if(U&&nz)return nz;if(rK)return rK}}else if(rK&&!e.U)return rK;var b=[],J=[],F={},N=tk.concat($n7);Y&&(N=tk.concat(gkn));d.N("html5_early_media_for_drm")&&(N=N.concat(FUf),d.N("allow_vp9_1080p_mq_enc")&&N.push(N0j));var R=[].concat(g.RQ(RjD));d.N("html5_iamf_audio_onesie_fmt")&&R.push(["773"]);N=g.E(N);for(var x=N.next();!x.done;x=N.next()){var y=!1;x=g.E(x.value);for(var h=x.next();!h.done;h=
  4889. x.next()){h=h.value;var H=BT(h,U&&Y);if(H&&H.video&&!(kV(H)&&!T.yv&&H.video.qualityOrdinal>T.hq)){var a=g.Yv(d.C().experiments,"html5_drm_byterate_soft_cap");a>0&&LrX(H)&&H.Vv>a||(y?(b.push(h),Oj(h,b,d)):(H=PI(T,H,e),H===!0?(y=!0,b.push(h),Oj(h,b,d)):F[h]=H))}}}R=g.E(R);for(N=R.next();!N.done;N=R.next())for(N=g.E(N.value),y=N.next();!y.done;y=N.next())if(y=y.value,(x=TG1(y))&&x.audio&&(d.N("html5_onesie_51_audio")||!PH(x)&&!WH(x)))if(x=PI(T,x,e),x===!0){J.push(y);Oj(y,J,d);break}else F[y]=x;if(!d.N("html5_enable_audio_quality_setting"))for(d=
  4890. g.E(["141","774"]),R=d.next();!R.done;R=d.next())R=R.value,J.includes(R)&&(g.jj(J,R),F[R]="blkhqa");T.U&&q("orfmts",F);if(Y)return e.U&&(e.U=!1,nz=rK=void 0),U?nz={video:b,audio:J}:rK={video:b,audio:J};rK={video:b,audio:J};e.U=!1;return rK};
  4891. g.HjY=function(d,q,T){var Y=T.S,e=[],U=[],b=T.N("html5_shorts_onesie_mismatched_fix");d=d.mT();var J=tk.concat($n7);b&&(J=tk.concat(gkn));T.N("html5_early_media_for_drm")&&(J=J.concat(FUf),T.N("allow_vp9_1080p_mq_enc")&&J.push(N0j));var F=[].concat(g.RQ(RjD));T.N("html5_iamf_audio_onesie_fmt")&&F.push(["773"]);J=g.E(J);for(var N=J.next();!N.done;N=J.next()){N=g.E(N.value);for(var R=N.next();!R.done;R=N.next()){R=R.value;var x=BT(R,d&&b);if(x&&x.video){var y=g.Yv(T.experiments,"html5_drm_byterate_soft_cap");
  4892. if(!(y>0&&LrX(x)&&x.Vv>y)&&PI(q,x,Y)===!0){e.push({videoCodec:yuY[tQ[R]],maxWidth:x.video.width,maxHeight:x.video.height,maxFramerate:x.video.fps});break}}}}b=g.E(F);for(d=b.next();!d.done;d=b.next())for(d=g.E(d.value),F=d.next();!F.done;F=d.next())if(F=F.value,(J=TG1(F))&&J.audio&&(T.N("html5_onesie_51_audio")||!PH(J)&&!WH(J))&&PI(q,J,Y)===!0){U.push({audioCodec:hjN[tQ[F]],numChannels:J.audio.numChannels});break}return{videoFormatCapabilities:e,audioFormatCapabilities:U}};
  4893. cu_=function(d){var q,T={},Y=d.G2,e=d.Mk,U=Y.getVideoData(),b=yR(0),J=Y.getVisibilityState(),F;if((F=d.xo)==null?0:F.gB)T.mw=e.mw;b&&(T.qP=b,T.lastManualDirection=VhD(),b=vH7()||0,b>0&&(b=(e.N("html5_use_date_now_for_local_storage")?Date.now():(0,g.cj)())-b,e.N("html5_use_date_now_for_local_storage")?b>0&&(T.timeSinceLastManualFormatSelectionMs=b):T.timeSinceLastManualFormatSelectionMs=b));b=e.N("html5_use_streamer_bandwidth_for_low_latency_live")&&U.isLowLatencyLiveStream;if(e.schedule.lr&&!b){var N;
  4894. b=e.N("html5_disable_bandwidth_cofactors_for_sabr_live")?!((N=d.xo)==null||!N.wB):!1;T.Gy=I9(e.schedule,!b)}b=g.ZB.medium;F=Math.floor(b*16/9);(N=U.mT())||(U.G&&U.j&&U.j.videoInfos.length!==0?(N=U.j.videoInfos[0],N=!!N.video&&N.video.width<N.video.height):N=!1);var R=N;N=R?b:F;F=R?F:b;R=Y.LB();b=R.width;R=R.height;T.t7=Math.max(b,N);T.MR=Math.max(R,F);e.N("html5_enable_client_viewport_size_logging")&&e.uF()&&(N=Y.e1(),Y.oU("cvw",{w:b,h:R,cvw:T.t7,cvh:T.MR,cvu:N.G}));T.visibility=J;T.uWO=QF();T.wq=
  4895. Y.Rf()*1E3;J=d.G2.n7();var x,y,h,H,a;T.Pvg={defaultPolicy:(J==null?void 0:(q=J.Sw)==null?void 0:q.G)||0,smooth:(J==null?void 0:(x=J.cw)==null?void 0:x.G)||0,visibility:(J==null?void 0:(y=J.zt)==null?void 0:y.G)||0,T7:(J==null?void 0:(h=J.xi)==null?void 0:h.G)||0,performance:(J==null?void 0:(H=J.Nz)==null?void 0:H.G)||0,speed:(J==null?void 0:(a=J.Vy)==null?void 0:a.G)||0};var p;T.ijU=(J==null?void 0:(p=J.o2)==null?void 0:p.G)||0;q=U.fetchType==="onesie"||U.wU?[{trackType:1,isHdr:!1},{trackType:2,isHdr:!1},
  4896. {trackType:2,isHdr:!0},{trackType:3,isHdr:!1},{trackType:3,isHdr:!0},{trackType:4,isHdr:!1},{trackType:4,isHdr:!0},{trackType:5,isHdr:!1},{trackType:5,isHdr:!0}]:[{trackType:1,isHdr:!1},{trackType:2,isHdr:!1},{trackType:2,isHdr:!0}];T.k$=d.authorizedFormats&&d.authorizedFormats.length>0?{authorizedFormats:d.authorizedFormats}:{authorizedFormats:q};d.sabrLicenseConstraint&&(T.k$.sabrLicenseConstraint=d.sabrLicenseConstraint);if(e.N("html5_onesie_media_capabilities")||e.N("html5_enable_server_format_filter"))T.Kk=
  4897. 3;e.N("html5_onesie_audio_only_playback")&&OB(U)&&(T.Kk=1);var t;((t=d.xo)==null?0:t.wk)&&d.Ys&&(T.Kk=T.Kk===void 0?7:T.Kk|4);t=U.rA?U.rA:g.Br(U);e.N("html5_onesie_media_capabilities")&&(T.mediaCapabilities=g.HjY(U,t,e));var n;if((n=d.xo)==null?0:BX(n)){x=e.S;n=[];q=[];y=new Map;h=Array.from(x.G.values());h=g.E(h);for(H=h.next();!H.done;H=h.next())a=H.value,a.JE?q.push({audioCodec:hjN[a.Cf],numChannels:a.numChannels,spatialCapabilityBitmask:Q8_[a.Cf]}):(p=yuY[a.Cf],H={videoCodec:p,maxWidth:a.maxWidth||
  4898. 0,maxHeight:a.maxHeight||0,maxFramerate:a.maxFramerate||0,is10BitSupported:a.OE||!1},a.maxBitrateBps&&(H.maxBitrateBps=a.maxBitrateBps,J=BT(a.itag),N=void 0,((N=J)==null?0:N.video)&&PI(t,J,x)===!0&&(J=J.Vv*8,J>H.maxBitrateBps&&(H.maxBitrateBps=J))),a=p+"_"+a.OE,p=y.get(a)||[],p.push(H),y.set(a,p));n=ej6(n,y);x={};e.N("html5_ssff_denylist_opus_low")&&(x={itagDenylist:[249,350]});T.mediaCapabilities={videoFormatCapabilities:n,audioFormatCapabilities:q,hdrModeBitmask:3,perPlaybackAttributes:x}}var K;
  4899. if((K=d.xo)==null?0:K.G){T.Mf=t.Mf;var P;T.hq=(P=d.xo)==null?void 0:P.hq}e.XF&&(T.c8=e.XF);T.cg=d.o8;T.Hh=d.Hh;T.un=d.un;T.ph=d.ph;d.gE&&(T.dpv=(0,g.cj)()-d.gE);d.isPrefetch&&e.N("html5_report_prefetch_requests")&&(T.isPrefetch=!0);QU||(T.yFv=!0);K=fO(e.schedule)*1E3;K>0&&(T.H8=K);var w;((w=d.xo)==null?0:w.OW)&&d.SI&&d.SI<Infinity&&(T.SI=d.SI);Y=Y.getPlaybackRate();Y!==1&&(T.playbackRate=Y);var l;((l=d.xo)==null?0:l.pC)&&d.OZ&&(T.lX=d.lX,T.Ju=d.Ju,T.OZ=d.OZ);hF()===1&&(T.Ez=1);e.N("html5_sabr_force_proxima")&&
  4900. (T.Sl=1);l=g.Yv(e.experiments,"html5_sabr_force_max_network_interruption_duration_ms");T.CV=l>0?l:e.schedule.interruptions[0]||0;var m;if((m=d.xo)==null?0:m.Qp)T.jd=d.jd;e.Fw&&(T.audioTrackId=e.Fw);FG(U)&&!T.audioTrackId&&(e.N("html5_fill_default_mosaic_audio_track_id")||(d=Vi7(U),T.audioTrackId=d),U==null||U.oU("misstrkchg",{"default":T.audioTrackId}));if(U=BxD())T.detailedNetworkType=ML7[U]||ML7.other;e.N("html5_enable_voice_boost")&&(T.oLU=e.H1);return T};
  4901. Kz=function(d,q,T,Y,e,U,b){var J={};q&&(J.UJ=q);if(!d)return J;J.playbackCookie=T==null?void 0:T.playbackCookie;e&&(J.pD=e);J.B6=[];J.zD=[];if(b==null?0:b.size)for(q=g.E(b.values()),T=q.next();!T.done;T=q.next())J.zD.push(T.value);if(d.sabrContextUpdates.size>0)for(q=g.E(d.sabrContextUpdates.values()),T=q.next();!T.done;T=q.next())EkN(J,T.value,Y);tw(d)&&U&&EkN(J,U,Y);d.TE&&(J.wAk=d.TE);Y=d.C().G;J.clientInfo={clientName:j82[Y.c.toUpperCase()]||0};Y.cbrand&&(J.clientInfo.deviceMake=Y.cbrand);Y.cmodel&&
  4902. (J.clientInfo.deviceModel=Y.cmodel);Y.cver&&(J.clientInfo.clientVersion=Y.cver);Y.cos&&(J.clientInfo.osName=Y.cos);Y.cosver&&(J.clientInfo.osVersion=Y.cosver);Y=d.C();Y.N("html5_sabr_enable_server_xtag_selection")&&Y.wk&&(J.clientInfo.hl=Y.wk);d.vO&&(J.vO=d.vO);return J};
  4903. EkN=function(d,q,T){var Y=q.type||0;(T==null?0:T.has(Y))?d.zD.push(q):d.B6.push(Y)};
  4904. qO=function(d,q,T,Y,e,U){var b=U===void 0?{}:U;var J=b.Te===void 0?[]:b.Te;var F=b.yT===void 0?!1:b.yT;var N=b.fb===void 0?0:b.fb;var R=b.poToken===void 0?"":b.poToken;var x=b.cq===void 0?void 0:b.cq;var y=b.hP===void 0?"":b.hP;var h=b.vr===void 0?0:b.vr;var H=b.Rg===void 0?new Uint8Array(0):b.Rg;var a=b.Ie===void 0?!1:b.Ie;U=b.XQ===void 0?0:b.XQ;b=b.UJ===void 0?void 0:b.UJ;hk.call(this,q,e);var p=this;this.policy=d;this.logger=new g.cb("dash/request");this.Iu=this.v4=0;this.m5=!1;this.Dt=this.z3=
  4905. null;this.P2=!1;this.Rg=this.vr=null;this.qS=this.Oa=!1;this.AY=null;this.XQ=this.d9=0;this.UO=!1;this.fC={XC:function(n){p.XC(n)},
  4906. h1r:function(){return p.j$},
  4907. Gdv:function(n){p.j$=n},
  4908. PGr:function(n){p.v4=n},
  4909. wWv:function(n){p.Id.lastError=n},
  4910. Ya:function(){return p.xhr}};
  4911. this.timing=new NO(this,T);this.yT=F;this.vr=h;this.Rg=H;this.M3=g.gT(this.info,this.policy,Y);this.M3.set("rn",this.HR().toString());this.M3.set("rbuf",(N*1E3).toFixed().toString());this.yT&&this.M3.set("smb","1");this.policy.IF&&R&&this.M3.set("pot",R);y&&this.M3.set("bbs",y);this.policy.useUmp&&!lt(this.M3.Wf)&&(this.PK=new yh(this),this.M3.set("ump","1"),this.M3.set("srfvp","1"));if(d=this.policy.pW?this.policy.b_&&!isNaN(this.info.MM)&&this.info.MM>this.policy.GE?!1:!0:!1)q=null,this.policy.N$&&
  4912. this.policy.zv?q=[1]:a&&(q=[]),q!=null&&(this.policy.pR&&q.push(2),this.M3.set("defsel",q.join(",")));this.Id=new Ej(this,this.policy,this.M3,this.info.zG,this.timing,this.logger,Y,x);this.Te=J||null;this.f5=aT2(this);lWN(this.Id);Y=void 0;if(this.policy.Dd||this.PK||this.policy.dO)Y={method:"POST"},J=(0,g.GM)([120,0]),x={},this.policy.Uu&&b&&(b=Kz(void 0,b),x.Ti=b),this.policy.Ja&&this.Rg&&(x.videoPlaybackUstreamerConfig=this.Rg),this.policy.dO&&(b=this.info.T)&&Object.assign(x,b),Object.keys(x).length>
  4913. 0?Y.body=g.S2(x,g.Ne):Y.body=J;if(this.vr&&this.Rg){this.M3.set("iwts","1");Y={method:"POST"};b={ph:this.vr*1E3};var t;J=(t=this.info.T)==null?void 0:t.Gs;t=g.S2({zd:b,Gs:J||void 0,videoPlaybackUstreamerConfig:this.Rg},g.Ne);Y.body=t}try{this.xhr=Qh(this.M3,this.policy.L,this.timing,d,Y),this.Id.U.start(),U&&(this.IC=new g.f9(this.IL,U,this),this.IC.start(U+(this.timing.Tq.B.W4()||0)*1E3)),this.policy.Ar&&Fs(this.timing,this.Hl()),this.logger.debug(function(){return"Sent, itag="+p.M3.get("itag")+
  4914. " seg="+p.info.Zw[0].sD+" range="+p.M3.get("range")+" time="+Math.round(p.info.Zw[0].T)+"-"+Math.round(g.yN(p.info.Zw).X)+" rtp="+(p.timing.Ga()-Date.now()).toFixed(0)}),g.ML(function(){})}catch(n){Auj(this,n,!0)}};
  4915. aT2=function(d){if(!($w(d.info)&&d.info.q4()&&d.policy.vA&&d.Te)||d.info.zG.j>=2||yR()>0||!Y0D())return!1;var q=d.M3.get("aitags");if(!q)return!1;q=OD(q).split(",");for(var T=[],Y=g.E(d.Te),e=Y.next();!e.done;e=Y.next())e=e.value,g.cR(q,e)&&T.push(e);if(!T.length)return!1;d.M3.set("altitags",g.pn(T.join(",")));return!0};
  4916. Auj=function(d,q,T){T=T===void 0?!1:T;g.Zz(q);d.Id.lastError="player.exception";d.errorMessage=q.name+"_"+q.message;T?g.ML(function(){Ak(d.Id)}):Ak(d.Id)};
  4917. pt2=function(d,q){d.timing.lr=!0;d.xhr.wf()&&d.timing.ez();if(d.policy.LC){var T;(T=d.IC)==null||T.stop()}cX(d.j$,q,!1)};
  4918. Zj1=function(d,q){d.info=q;if(d.j$){var T=d.j$;q=q.Zw;(q.length!==T.Zw.length||q.length<T.FF.length)&&IBH("dash/request",260511119,""+q.length,""+T.Zw.length,""+T.FF.length);T.Zw=q;for(var Y=q[0].range,e=new e2,U=0;U<T.FF.length;U++)Uv(e,T.FF[U].U);for(U=0;U<T.FF.length;U++){T.FF[U].info=q[U];var b=q[U].range;T.FF[U].U=bz(e,b.start-Y.start,b.length)}}d.f5=!1};
  4919. OjY=function(d){d.d9&&(d.xhr.status=d.d9,d.v4=d.d9)};
  4920. Lz=function(d,q){$I.call(this,d,q);this.aU=!0;this.yv=!1;this.qk=this.RU=0;this.xx=NaN};
  4921. nkI=function(d,q,T){var Y=d.D5?Math.max(q,T/d.D5):q,e=d.Tq.U.j;e&&(Y=q,d.D5&&(Y=Math.max(q,T/d.D5*e)));ue(d.Tq,q,T,Y)};
  4922. kI=function(d){this.U={};this.logger=new g.cb(d)};
  4923. PX=function(d){kI.call(this,"sabr");this.yp=d};
  4924. WX=function(d){g.W.call(this);this.T=d;this.logger=new g.cb("onesie");this.vG=new Map;this.U=this.G=!1;this.xo=this.vv=null;this.j=!1};
  4925. ruH=function(d,q,T){d.vG.get(q).S$=T};
  4926. Da=function(d,q){d.vG.has(q)&&(Cz?d.vG.get(q).Sj.clear():d.vG.get(q).FF=new e2,uk(d,q),d.U=!0)};
  4927. tL_=function(d){for(var q=g.E(d.vG),T=q.next();!T.done;T=q.next()){var Y=g.E(T.value);T=Y.next().value;Y=Y.next().value;Y.pk||Da(d,T)}};
  4928. B0f=function(d,q){q=d.vG.get(q);if(!q)return 0;d=0;if(q.Zw.length>0){q=g.E(q.Zw);for(var T=q.next();!T.done;T=q.next()){var Y=void 0;d+=((Y=T.value.range)==null?void 0:Y.length)||0}return d}if(q.dl.length>0)for(T=g.E(q.dl),Y=T.next();!Y.done;Y=T.next())d+=Y.value.Ns||0;return d+q.tU};
  4929. wK=function(d,q){if(Cz){var T=0;d=d.vG.get(q);if(d==null||!d.Sj)return 0;d=g.E(d.Sj.values());for(q=d.next();!q.done;q=d.next())T+=q.value.data.totalLength;return T}return((T=d.vG.get(q))==null?void 0:T.FF.totalLength)||0};
  4930. fz=function(d,q){d=d.vG.get(q);if(Cz){if(d==null||!d.pk)return!1;q=d.Sj.size>0;return d.R4.length>0||q}return!(d==null||!d.pk)&&!(d==null||!d.FF.totalLength)};
  4931. KUQ=function(d,q){var T=d.vG.get(q),Y=B0f(d,q),e=!Y&&!!T.bytesReceived;if(Cz){var U;if((U=d.vv)==null?0:U.aN){d=g.E(T.Sj.values());for(q=d.next();!q.done;q=d.next())if(!q.value.Pq)return!1;return e}}else if(U=d.Cb(q),e&&d.G&&U!==void 0)return U;return(e||T.bytesReceived===Y)&&T.Mq+wK(d,q)===T.bytesReceived};
  4932. Gz1=function(d,q,T){d.vG.set(q,{FF:new e2,Mq:0,bytesReceived:0,tU:0,Kg:!1,Zh:!1,Cb:!1,JE:T,JX:[],Zw:[],dl:[],pk:!1,Sj:new Map,Uj:new Map,R4:[]});d.logger.debug(function(){return"[initStream] formatId: "+q})};
  4933. LUI=function(d,q,T,Y){T.Zw.push.apply(T.Zw,g.RQ(Y));if(Cz){T.Uj.has(q)||T.Uj.set(q,[]);var e;(e=T.Uj.get(q)).push.apply(e,g.RQ(Y))}else if(T.j$)for(d=g.E(Y),q=d.next();!q.done;q=d.next())T.j$.Zw.push(q.value);else{T.j$=new MO(d.xo,[].concat(g.RQ(T.Zw)));var U;((U=d.xo)==null?0:U.l9)&&g.C(d,T.j$)}};
  4934. kzY=function(d,q,T){var Y,e=(Y=d.vv)==null?void 0:Y.j.get(q);if(!e)return[];if(T.VP){var U;return((U=e.Sd(0,T.clipId))==null?void 0:U.Zw)||[]}if(e.gr()){var b=T.startMs,J=T.durationMs;Y=1E3;var F;if(((F=d.xo)==null?0:F.G)&&T.timeRange){var N;b=(N=T.timeRange.startTicks)!=null?N:-1;var R;J=(R=T.timeRange.Ou)!=null?R:-1;var x;Y=(x=T.timeRange.timescale)!=null?x:-1}if(T.aV<0||T.P1<0||J<0||b<0||T.Ns<0||Y<0)return Da(d,q),[];d=VL(T.aV,T.Ns);q=T.dF||0;return[new qG(3,e,d,"makeSliceInfosMediaBytes",T.P1-
  4935. 1,b/Y,J/Y,q,d.length-q,void 0,T.g4,T.clipId)]}if(T.P1<0)return Da(d,q),[];var y;return((y=d.vv)==null?0:y.aN)?(q=e.W3,F=q*e.info.Vv,N=T.dF,((J=d.xo)==null?0:J.xU)&&T.timeRange&&!N&&(b=T.timeRange.startTicks/T.timeRange.timescale),[new qG(3,e,void 0,"makeSliceInfosMediaBytes",T.P1,b,q,N,F,!0,T.g4,T.clipId)]):[]};
  4936. P86=function(d,q,T){d.vv=q;d.xo=T;q=g.E(d.vG);for(T=q.next();!T.done;T=q.next()){var Y=g.E(T.value);T=Y.next().value;Y=Y.next().value;for(var e=g.E(Y.JX),U=e.next();!U.done;U=e.next()){U=U.value;var b=kzY(d,T,U);LUI(d,U.ra,Y,b)}}};
  4937. zM=function(d,q,T,Y){d.logger.debug(function(){return"[addStreamData] formatId: "+T+",headerId: "+q+" bytes: "+Y.totalLength});
  4938. (d=d.vG.get(T))&&!d.Zh&&(Cz?(d.Sj.has(q)||d.Sj.set(q,{data:new e2,xY:0,Pq:!1}),Uv(d.Sj.get(q).data,Y)):Uv(d.FF,Y),d.bytesReceived+=Y.totalLength,d.Kg=!0)};
  4939. uk=function(d,q){d.logger.debug(function(){return"[closeStream] formatId: "+q});
  4940. var T=d.vG.get(q);T&&!T.Zh&&(T.Zh=!0,T.S$&&T.S$(),WUg(d)&&d.T.xf())};
  4941. WUg=function(d){d=g.E(d.vG.values());for(var q=d.next();!q.done;q=d.next())if(!q.value.Zh)return!1;return!0};
  4942. C87=function(d){Cz=d};
  4943. ik=function(d,q,T,Y,e,U,b){g.W.call(this);this.policy=d;this.info=q;this.vv=T;this.yp=e;this.logger=new g.cb("sabr");this.PK=new yh(this);this.Jn=new PX(this);this.cA=new WX(this);this.state=1;this.uM=!1;this.yf=0;this.clipId="";this.O5=-1;this.Tm=0;this.kR=-1;this.UO=this.JJ=!1;this.wP=0;this.D4=!1;this.policy.j9?this.VU=new Lz(this,U):this.VU=new NO(this,U);this.M3=this.policy.Qp?q.W0:u0N(q,this.policy,Y);this.M3.set("rn",""+this.HR());this.M3.set("alr","yes");P86(this.cA,T,d);this.Id=new Ej(this,
  4944. this.policy,this.M3,q.zG,this.VU,this.logger,Y,b,this.policy.enableServerDrivenRequestCancellation);lWN(this.Id);var J;if((J=this.policy)==null?0:J.l9)g.C(this,this.cA),g.C(this,this.Id);d=q.U;q={method:"POST",body:d};d&&(this.Tm=d.length);try{this.xhr=Qh(this.M3,this.policy.L,this.VU,QU,q),this.policy.Ar&&Fs(this.VU,this.Hl()),this.Id.U.start()}catch(F){g.OL(F)}};
  4945. Dnn=function(d){d.policy.Tb&&d.xK&&!d.D4?d.D4=!0:d.VU.ez()};
  4946. wt7=function(d,q){var T=-1,Y=-1,e=-1,U;if((U=d.TZ)==null?0:U.items)for(d=g.E(d.TZ.items),U=d.next();!U.done;U=d.next())U=U.value,q<U.nT||U.nT<T||(T=U.nT,Y=U.y3,e=U.minReadaheadMs);return{vc:T,y3:Y,NA:e}};
  4947. fTN=function(d){this.G=d;this.K=this.RU=this.L=this.dO=this.T=this.S=this.lr=this.X=this.z2=this.B=this.aU=this.yv=this.rO=this.UD=0;this.ticks={}};
  4948. I3=function(d){d.UD||(d.UD=(0,g.cj)(),g.iN("mb_s",d.UD,d.G))};
  4949. zjX=function(d){d.rO||(d.rO=(0,g.cj)(),g.iN("ovfs_rp",d.rO,d.G))};
  4950. ijQ=function(d){d.yv||(d.yv=(0,g.cj)(),g.iN("oafs_rp",d.yv,d.G))};
  4951. ITN=function(d){d.S||(d.S=(0,g.cj)(),g.iN("vda",d.S,d.G),d.T&&(g.IY(),SX(4)))};
  4952. mn1=function(d){d.T||(d.T=(0,g.cj)(),g.iN("ada",d.T,d.G),d.S&&(g.IY(),SX(4)))};
  4953. SKQ=function(d){d.dO||(d.dO=(0,g.cj)(),g.iN("vis_a",d.dO,d.G))};
  4954. lTf=function(d){d.L||(d.L=(0,g.cj)(),g.iN("ais_a",d.L,d.G))};
  4955. vk6=function(d){d.RU||(d.RU=(0,g.cj)(),g.iN("vrb_f",d.RU,d.G))};
  4956. ok2=function(d){d.K||(d.K=(0,g.cj)(),g.iN("arb_f",d.K,d.G))};
  4957. VLn=function(d,q,T){var Y=q instanceof ik&&!d.j&&!d.U,e=!d.j&&(T==null?void 0:T.info.video);T=!d.U&&(T==null?void 0:T.info.audio);q.state===3?((e||Y)&&d.tick("vrr"),(T||Y)&&d.tick("arr")):q.state===4?e?(d.j=q.Hl(),g.IY(),SX(4)):T&&(d.U=q.Hl()):q instanceof qO&&q.fZ()&&e&&(g.IY(),SX(4))};
  4958. dGN=function(d){return!!d.U&&!!d.j};
  4959. mD=function(d,q,T,Y,e,U){g.YP.call(this);var b=this;this.loader=d;this.vv=q;this.policy=T;this.videoTrack=Y;this.audioTrack=e;this.lr=this.G=null;this.X=this.L=NaN;this.B=0;this.K=NaN;this.j=null;this.rO=this.yv=NaN;this.z2=new Map;this.UD=this.S=this.T=NaN;this.fC={HWf:function(){return b.U}};
  4960. this.U=U?1:0};
  4961. TTI=function(d,q,T,Y){Y=Y===void 0?!0:Y;if(T&&!d.z2.has(q.sD)){for(var e=q.startTime,U=[],b=0;b<T.G.length;b++){var J=T.G[b],F=e;e=F+T.U[b];U.push({startTime:F,endTime:e,adCpn:J})}d.z2.set(q.sD,U)}if(d.policy.lS)if(e=d.lr&&q.sD===d.lr.sD+1,d.lr=q,U=d.G&&q.sD===d.G.sD+1,U=d.G&&e&&U&&d.G.iC.event!=="stop"&&d.G.iC.event!=="predictStart",b=q.iC||null,J=d.videoTrack.G.index.nC(),J=q.sD>=J,F=d.vv.isManifestless&&d.policy.xA,b){var N;if(((N=d.G)==null?void 0:N.iC.event)==="predictStart"&&d.G.sD<q.sD&&b.event===
  4962. "stop"){var R;d.loader.handleError("ssdai.missingstartcueevent",{lastpredict:((R=d.G)==null?void 0:R.sD)||0,csq:q.sD},0)}d.G={iC:b,sD:q.sD,OX:!!T,eh:Y};J?S6(d,b,q.sD):F&&(e?U?S6(d,b,q.sD):b.event==="continue"||b.event==="stop"?q$2(d,q):S6(d,b,q.sD):S6(d,b,q.sD))}else U&&q$2(d,q),d.U===4&&lk(d,5,"qend")};
  4963. S6=function(d,q,T){q.startSecs+=isNaN(d.B)?0:d.B;d=d.vv;d.yv.push(q);d.publish("cuepointsadded",T)};
  4964. e86=function(d,q,T){if(d.U!==0&&T&&q.Zw[0].eh()){var Y=q.Zw[0].sD,e=q.Zw[0].T;q=q.isDecorated();Y$Q(d,Y,e,q,T)}};
  4965. Y$Q=function(d,q,T,Y,e){var U;q!==((U=d.G)==null?void 0:U.sD)||d.U===1||Y||d.G.iC.event==="predictStart"||d.oU("sdai",{undecevt:1,sq:q,mt:T,evt:d.G.iC.event},!0);q>d.X&&(d.X=NaN,d.L=NaN);d.G&&d.G.sD===q?UGQ(d,q,T,d.G,e):d.U===1&&lk(d,5,"noad")};
  4966. byg=function(d,q,T,Y,e){Y.OX?lk(d,4,"cue"):(d.X=q,d.L=T,d.oU("sdai",{joinad:d.U,sg:d.X,st:d.L.toFixed(3)}),d.K=Date.now(),lk(d,2,d.U===3?"staftpred":"join"),e.M9(Y.iC))};
  4967. UGQ=function(d,q,T,Y,e){if(e&&Y){var U=Y.iC,b=e.sI(U);U.event==="predictStart"&&(d.UD=q);d.oU("sdai",{onqevt:U.event,sq:q,mt:T,gab:b,cst:U.startSecs,cueid:d.policy.BD&&(b||U.event==="start")?U.identifier:void 0},!0);if(b)U.event!=="predictStart"?(U.event==="start"&&d.UD===q-1&&d.oU("sdai",{gabonstart:q}),byg(d,q,T,Y,e)):d.policy.Kz?lk(d,3,"predict"):(q+=Math.max(Math.ceil(-U.G/5E3),1),U=Math.floor(T-U.G/1E3),d.policy.U?d.S=U:d.T=q,d.oU("sdai",{onpred:T,estsq:q,estmt:U.toFixed(3)}),vX(d.loader,U,U,
  4968. q),d.K=Date.now(),lk(d,3,"predict"),e.M9(Y.iC));else if(d.U===1){var J;((J=d.j)==null?0:J.jX(T))?(vX(d.loader,T,T,q),lk(d,4,"sk2head")):lk(d,5,"nogab")}else U.event==="predictStart"?d.policy.U&&d.S>0?(T=Math.floor(T-U.G/1E3),d.S!==T&&d.oU("sdai",{updateSt:T,old:d.S}),d.S=T):d.T>0&&(T=q+Math.max(Math.ceil(-U.G/5E3),1),d.T!==T&&(d.oU("sdai",{updateSt:T,old:d.T}),d.T=T)):d.policy.Kz&&d.U===3&&byg(d,q,T,Y,e)}else d.oU("sdai",{nulldec:1,sq:q,mt:T.toFixed(3),evt:(Y==null?void 0:(U=Y.iC)==null?void 0:U.event)||
  4969. "none"})};
  4970. JlQ=function(d,q,T){if(d.policy.H$&&d.policy.U)return!(d.U===1||d.U===2||!d.policy.Kz&&d.U===3&&T>=d.T);if(d.U===1||d.U===2)return!1;if(d.U!==0&&q===d.audioTrack){if(d.policy.U)return Xb1(d.videoTrack,T)||Xb1(d.videoTrack,T+1);d=o3(d.videoTrack);if(T>(d?d.sD:-1))return!1}return!0};
  4971. Vh=function(d,q,T){return(T<0||T===d.X)&&!isNaN(d.L)?d.L:q};
  4972. q$2=function(d,q){if(d.G){var T=d.G.iC.sS-(q.startTime+d.B-d.G.iC.startSecs);T<=0||(T=new $k(d.G.iC.startSecs-(isNaN(d.B)?0:d.B),T,d.G.iC.context,d.G.iC.identifier,"stop",d.G.iC.G+q.duration*1E3),d.oU("cuepointdiscontinuity",{segNum:q.sD}),S6(d,T,q.sD))}};
  4973. lk=function(d,q,T){d.U!==q&&(d.oU("sdai",{setsst:q,old:d.U,r:T}),d.U=q)};
  4974. df=function(d,q,T,Y){(Y===void 0?0:Y)?lk(d,1,"seek"):q>0&&Math.abs(q-T)>=5&&d.U===4&&lk(d,5,"sk2t")};
  4975. sdY=function(d){this.oU=d;this.G="";this.U=new Map};
  4976. $GX=function(d,q,T){if(d.U.has(q.identifier)){var Y=d.U.get(q.identifier);var e=qM(Y.event||"unknown");qM(q.event)>e&&(Y.startTimeSecs=q.startSecs,Y.sS=q.sS,Y.event=q.event,e===qM("predictStart")&&(Y.aq=Date.now()))}else Y={event:q.event,startTimeSecs:q.startSecs,sS:q.sS,vQ:[]},d.U.set(q.identifier,Y);d.j&&T>-1&&T<d.j||(d.G=q.event==="stop"?"":q.identifier)};
  4977. qM=function(d){switch(d){case "predictStart":return 1;case "start":return 2;case "continue":return 3;case "stop":return 4;default:return 0}};
  4978. gwD=function(d){switch(d){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";default:return"unknown"}};
  4979. T0=function(d,q,T){this.audio=d;this.video=q;this.reason=T};
  4980. Y_=function(d,q,T){this.G=d;this.reason=q;this.token=T;this.videoId=void 0};
  4981. eM=function(d,q,T){g.W.call(this);this.policy=d;this.T=q;this.oU=T;this.j=new Map;this.S=0;this.X=!1;this.G="";this.U=!1};
  4982. Uz=function(d,q,T){if(T===void 0?0:T)d.X=!0;++d.S;T=6E4*Math.pow(2,d.S);T=(0,g.cj)()+T;d.j.set(q.info.id,T)};
  4983. bs=function(d){for(var q=g.E(d.j.entries()),T=q.next();!T.done;T=q.next()){var Y=g.E(T.value);T=Y.next().value;Y=Y.next().value;Y<(0,g.cj)()&&d.j.delete(T)}return d.j};
  4984. FFH=function(d){return d.X&&bs(d).size>0};
  4985. Xt=function(d,q){d.G!==q&&(d.G=q,d.U=!0)};
  4986. NTN=function(d,q){var T;q&&(T=g.QN(d.T.G,function(e){return e.id===q}));
  4987. if(!T&&(T=g.QN(d.T.G,function(e){var U;return!((U=e.DQ)==null||!U.isDefault)}),q)){var Y;
  4988. d.oU("iaf",{id:q,sid:(Y=T)==null?void 0:Y.id})}return T};
  4989. sz=function(d,q,T,Y,e,U){var b=this;U=U===void 0?[]:U;this.loader=d;this.yv=q;this.policy=T;this.vv=Y;this.X=e;this.Bv=U;this.logger=new g.cb("dash/abr");this.G=xp;this.j=this.L=null;this.K=-1;this.aU=!1;this.nextVideo=this.U=null;this.T=[];this.qk=new Set;this.dO={};this.Fw=new k8(1);this.B=0;this.xx=this.UD=this.lr=!1;this.rO=0;this.AF=!1;this.z2=new Set;this.RU=!1;this.fC={X3:function(){J5(b)}};
  4990. this.S=new eM(this.policy,e,function(J,F){b.loader.oU(J,F)})};
  4991. HyD=function(d,q,T){$_(d,q);q=NTN(d.S,T);T||q||(q=R8Q(d));q=q||d.X.G[0];d.U=d.vv.G[q.id];J5(d);d.L=d.U;xGf(d);ylY(d);d.j=d.nextVideo;d.L=d.U;return h8n(d)};
  4992. clf=function(d,q){if(Qdj(d,q))return null;if(q.reason==="m"&&q.isLocked())return d.logger.debug(function(){return"User sets constraint to: "+BI(q)}),$_(d,q),d.B=d.T.length-1,J5(d),gf(d),d.UD=d.UD||d.j!==d.nextVideo,d.j=d.nextVideo,new T0(d.U,d.j,q.reason);
  4993. q.reason==="r"&&(d.K=-1);$_(d,q);gf(d);if(q.reason==="r"&&d.nextVideo===d.j)return new T0(d.U,d.nextVideo,q.reason);MuQ(d);return null};
  4994. Ew7=function(d,q,T){d.U=d.vv.G[q];d.L=d.U;return new T0(d.L,d.j,T?"t":"m")};
  4995. jd_=function(d,q){if(q.info.video){if(d.j!==q)return d.j=q,h8n(d)}else d.xx=d.L!==q,d.L=q;return null};
  4996. ae1=function(d,q){if(q.G.info.video&&q.S){var T=(q.U+q.j)/q.duration,Y=q.G.info.Vv;T&&Y&&(d.Fw.gH(1,T/Y),d.policy.j&&T/Y>1.5&&d.loader.oU("overshoot",{sq:q.sD,br:T,max:Y}))}};
  4997. Ft=function(d,q,T){Uz(d.S,q,T===void 0?!1:T);d.K=-1;$_(d,d.G)};
  4998. Alg=function(d,q){return new T0(d.L,d.j,q||d.G.reason)};
  4999. MuQ=function(d){if(d.j&&d.nextVideo&&NM(d,d.j.info)<NM(d,d.nextVideo.info)){var q=d.G.reason;d.lr=d.lr||q==="r"||q==="u"||q==="v"}};
  5000. h8n=function(d){d.aU?d.aU=!1:d.K=(0,g.cj)();d.lr=!1;d.RU=!1;return new T0(d.L,d.j,d.G.reason)};
  5001. pbn=function(d,q){var T={};q=g.E(q);for(var Y=q.next();!Y.done;Y=q.next())if((Y=Y.value)&&Y.video){var e=Y.video.qualityOrdinal,U=T[e],b=U&&kV(U)&&U.video.qualityOrdinal>d.policy.hq,J=e<=d.policy.hq?kV(Y):Ke(Y);if(!U||b||J)T[e]=Y}return T};
  5002. $_=function(d,q){d.G=q;var T=d.X.videoInfos;if(!d.G.isLocked()){var Y=(0,g.cj)();T=g.Zl(T,function(J){if(J.Vv>this.policy.Vv)return!1;var F=this.vv.G[J.id];return bs(this.S).get(J.id)>Y?!1:F.zG.j>4||F.X>4?(this.logger.debug(function(){return"Remove "+m1(J)+"; 4 load failures"}),!1):this.z2.has(+J.itag)?!1:!0},d);
  5003. FFH(d.S)&&(T=g.Zl(T,function(J){return J.video.width<=854&&J.video.height<=480}))}T.length||(T=d.X.videoInfos);
  5004. var e=T;d.policy.YH&&(e=Zyj(d,e,q));e=g.Zl(e,q.T,q);if(d.G.isLocked()&&d.S.G){var U=g.QN(T,function(J){return J.id===d.S.G});
  5005. U?e=[U]:Xt(d.S,"")}d.policy.YH||(e=Zyj(d,e,q));e.length||(e=[T[0]]);e.sort(function(J,F){return NM(d,J)-NM(d,F)});
  5006. q={};for(T=1;T<e.length;q={jY:void 0,N_:void 0},T++)q.N_=e[T-1],q.jY=e[T],q.N_.video.width>q.jY.video.width?(g.EI(e,T),T--):NM(d,q.N_)*d.policy.B>NM(d,q.jY)&&(g.EI(e,T-1),T--);var b=e[e.length-1];d.AF=!!d.j&&!!d.j.info&&d.j.info.Cf!==b.Cf;d.logger.debug(function(){return"Constraint: "+BI(d.G)+", "+e.length+" fmts selectable, max selectable fmt: "+m1(b)});
  5007. d.T=e;d.qk.clear();q=!1;for(T=0;T<e.length;T++)q?d.qk.add(e[T].itag):e[T].video.qualityOrdinal>=1080&&(q=!0);Oyg(d.policy,b,d.vv.aN)};
  5008. Zyj=function(d,q,T){var Y=T.reason==="m"||T.reason==="s";d.policy.Q8&&Ro&&g.F8&&(!Y||T.G<1080)&&(q=q.filter(function(N){return N.video&&(!N.U||N.U.powerEfficient)}));
  5009. if(q.length>0)if(XD()){var e=pbn(d,q);q=q.filter(function(N){return!!N&&!!N.video&&N.Cf===e[N.video.qualityOrdinal].Cf})}else{var U,b,J=(U=q[0])==null?void 0:(b=U.video)==null?void 0:b.qualityOrdinal;
  5010. if(J){T=q.filter(function(N){return!!N&&!!N.video&&N.video.qualityOrdinal===J});
  5011. var F=pbn(d,T)[J].Cf;q=q.filter(function(N){return!!N&&!!N.video&&N.Cf===F})}}return q};
  5012. nwI=function(d,q){for(var T=0;T+1<d.T.length&&d.T[T].video.quality==="tiny";)T++;var Y=li(d.yv)/d.policy.B;return NM(d,q.info)+NM(d,d.T[T])>Y};
  5013. J5=function(d){if(!d.U||!d.policy.T&&!d.U.info.DQ){var q=d.X.G;d.U&&(q=q.filter(function(Y){return Y.audio.G===d.U.info.audio.G}),q.length||(q=d.X.G));
  5014. d.U=d.vv.G[q[0].id];if(q.length>1&&!d.policy.xx){if(!d.policy.gB){var T=g.QN(q,function(Y){return Y.audio.audioQuality!=="AUDIO_QUALITY_HIGH"});
  5015. T&&(d.U=d.vv.G[T.id])}T=!1;if(T=d.policy.gk?!0:d.G.isLocked()?d.G.G<240:nwI(d,d.U))d.U=d.vv.G[g.yN(q).id]}}};
  5016. gf=function(d){if(!d.nextVideo||!d.policy.T)if(d.G.isLocked())d.nextVideo=d.G.G<=360?d.vv.G[d.T[0].id]:d.vv.G[g.yN(d.T).id],d.logger.debug(function(){return"Select max fmt: "+m1(d.nextVideo.info)});
  5017. else{for(var q=Math.min(d.B,d.T.length-1),T=li(d.yv),Y=NM(d,d.U.info),e=T/d.policy.lr-Y;q>0&&!(NM(d,d.T[q])<=e);q--);for(var U=T/d.policy.B-Y;q<d.T.length-1&&!(NM(d,d.T[q+1])>=U);q++);d.nextVideo=d.vv.G[d.T[q].id];d.B!==q&&d.logger.info(function(){return"Adapt to: "+m1(d.nextVideo.info)+", bandwidth: "+T.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+U.toFixed(0)+", constraint: "+BI(d.G)});
  5018. d.B=q}};
  5019. xGf=function(d){var q=d.policy.lr,T=li(d.yv),Y=T/q-NM(d,d.U.info);q=g.Mx(d.T,function(e){return NM(this,e)<Y},d);
  5020. q<0&&(q=0);d.B=q;d.nextVideo=d.vv.G[d.T[q].id];d.logger.info(function(){return"Initial selected fmt: "+m1(d.nextVideo.info)+", bandwidth: "+T.toFixed(0)+", max video byterate: "+Y.toFixed(0)})};
  5021. ylY=function(d){if(d.Bv.length){var q=d.Bv,T=function(Y,e){if(Y.info.Cf==="f"||q.includes(SL(g.DB(Y.info,d.vv.aN))))return Y;for(var U={},b=0;b<e.length;U={SX:void 0,rM:void 0},b++){var J=d.vv.G[e[b].id];if(q.includes(SL(g.DB(J.info,d.vv.aN)))){var F=Y.info.Cf,N=J.info.Cf;if(F===N||XD()){if(Y.info.G!==J.info.G)return d.loader.oU("ombifa",{mismatch:"xtag",f:Y.info.id,t:J.info.id}),Y;U.SX=Y.info.itag;U.rM=J.info.itag;d.loader.oU("ombifa",{f:U.SX,t:U.rM});d.logger.info(function(R){return function(){return"Initial format selection changed from "+
  5022. R.SX+" to "+R.rM+" based on prefetched media."}}(U));
  5023. d.aU=!0;return J}d.loader.oU("ombifa",{mismatch:"efficient",fc:F,tc:N})}}d.loader.oU("ombifa",{mismatch:"unselectable",fmts:q.join(".")});return Y};
  5024. d.nextVideo=T(d.nextVideo,d.X.videoInfos);d.U=T(d.U,d.X.G)}};
  5025. NM=function(d,q){if(!d.dO[q.id]){var T=d.vv.G[q.id].index.rN(d.rO,15);T=q.wx&&d.j&&d.j.index.isLoaded()?T||q.wx:T||q.Vv;d.dO[q.id]=T}T=d.dO[q.id];d.qk.has(q.itag)&&(T*=1.5);return T*=Math.max(1,d.Fw.W4()||0)};
  5026. rl2=function(d,q){d=G7D(d.vv.G,function(T){return T.info.itag===q});
  5027. if(!d)throw Error("Itag "+q+" from server not known.");return d};
  5028. tuX=function(d){var q=[];if(d.G.reason==="m"||d.G.reason==="s")return q;if(M17(d.vv)){for(var T=Math.max(0,d.B-2);T<d.B&&T<d.T.length;T++)q.push(d.T[T].itag);q.reverse()}return q};
  5029. Qdj=function(d,q){var T;return d.G.equals(q)&&(!d.S.G||!d.G.isLocked()||((T=d.nextVideo)==null?void 0:T.info.id)===d.S.G)};
  5030. R8Q=function(d){var q=g.QN(d.X.G,function(Y){return Y.audio.G}),T=g.QN(d.X.G,function(Y){return!Y.audio.G});
  5031. return q?d.policy.yM?q:T:null};
  5032. BTN=function(d){var q=d===void 0?{}:d;d=q.zz===void 0?!1:q.zz;var T=q.zv===void 0?!1:q.zv;q=q.pW===void 0?!1:q.pW;return d?q?3:2:T?-1:1};
  5033. x_=function(d){this.track=d;this.buffered=[];this.j=this.T=0;this.X={};this.S=0;this.G=new GH};
  5034. KFI=function(d,q,T){d.flush();d.U=T;yx(d,3,q)};
  5035. yx=function(d,q,T){var Y=[],e=d.track.RN;if(e){e=e.Zm();for(var U=0;U<e.length;U++)Y.push(Math.round(e.start(U)*1E3)),Y.push(Math.round(e.end(U)*1E3))}e=1;U=Y.length;if(U===d.buffered.length){for(var b=0;b<=U&&Y[b]===d.buffered[b];b++);b>U?e=0:Y[b]>d.buffered[b]&&(b===U-1?e=2:b===U-2&&Y[b+1]>d.buffered[b+1]&&(e=3))}d.G.add(q<<3|(T&&4)|e);q=Math.ceil(d.track.Rf()*1E3);d.G.add(q-d.S);d.S=q;if(e===1)for(d.G.add(U),b=q=0;b<U;b++)d.G.add(Y[b]-q),q=Y[b];e===3&&d.G.add(Y[U-2]-d.buffered[U-2]);e>=2&&d.G.add(Y[U-
  5036. 1]-d.buffered[U-1]);T&&d.G.add(T);d.buffered=Y};
  5037. h5=function(d,q,T){var Y=this;this.policy=d;this.G=q;this.rO=T;this.T=this.U=0;this.Or=null;this.lr=new Set;this.K=[];this.indexRange=this.initRange=null;this.B=new yQ;this.UD=this.yv=!1;this.fC={tP5:function(){return Y.j},
  5038. Na2:function(){return Y.chunkSize},
  5039. X$x:function(){return Y.L},
  5040. vyg:function(){return Y.X}};
  5041. (q=GE2(this))?(this.chunkSize=q.csz,this.j=Math.floor(q.clen/q.csz),this.L=q.ck,this.X=q.civ):(this.chunkSize=d.G_,this.j=0,this.L=g.RC(16),this.X=g.RC(16));this.S=new Uint8Array(this.chunkSize);this.L&&this.X&&(this.crypto=new fWn(this.L,this.X))};
  5042. GE2=function(d){if(d.policy.E$&&d.policy.fk)for(var q=g.E(d.policy.E$),T=q.next(),Y={};!T.done;Y={qX:void 0,O7:void 0},T=q.next())if(T=g.oE(T.value),Y.qX=+T.clen,Y.O7=+T.csz,Y.qX>0&&Y.O7>0&&d.policy.T===T.docid&&d.G.info.id===T.fmtid&&d.G.info.lastModified===+T.lmt)return d={},d.clen=Y.qX,d.csz=Y.O7,d.ck=T.ck,d.civ=T.civ,d};
  5043. Ho=function(d){return!!d.Or&&d.Or.qQ()};
  5044. PPX=function(d,q){if(!Ho(d)&&!d.JF()){if(!(d.yv||(d.yv=!0,d.j>0))){var T=Qx(d);T=bx(d.policy.T,d.G.info,MM(d),T,d.policy.Fw);co(d,T)}if(q.info.type===1){if(d.Or){Ez(d,Error("Woffle: Expect INIT slices to always start us off"));return}d.initRange=VL(0,q.U.totalLength)}else if(q.info.type===2)d.Or&&d.Or.type===1||Ez(d,Error("Woffle: Index before init")),d.indexRange=VL(d.initRange.end+1,q.U.totalLength);else if(q.info.type===3){if(!d.Or){Ez(d,Error("Woffle: Expect MEDIA slices to always have lastSlice"));
  5045. return}if(d.Or.type===3&&!eu(d.Or,q.info)&&(d.K=[],q.info.sD!==U$(d.Or)||q.info.U!==0))return;if(q.info.S){T=g.E(d.K);for(var Y=T.next();!Y.done;Y=T.next())LFH(d,Y.value);d.K=[]}else{d.K.push(q);d.Or=q.info;return}}else{Ez(d,Error("Woffle: Unexpected slice type"));return}d.Or=q.info;LFH(d,q);kEY(d)}};
  5046. LFH=function(d,q){var T=0,Y=$X(q.U);if(d.T<d.j){T=d.j*d.chunkSize;var e,U=(((e=q.info.range)==null?void 0:e.start)||0)+q.info.U;T-=U;if(T>=Y.length)return;if(T<0)throw Error("Missing data");d.T=d.j;d.U=0}for(e={};T<Y.length;e={Aw:void 0})if(e.Aw=Math.min(Y.length-T,d.S.byteLength-d.U),U=new Uint8Array(Y.buffer,Y.byteOffset+T,e.Aw),d.S.set(U,d.U),d.U+=e.Aw,T+=e.Aw,d.U===d.S.length){if(q.info===d.Or&&Ho(d)&&T===Y.length)break;e=Qx(d);e=bx(d.policy.T,d.G.info,MM(d),e,d.policy.Fw,d.T,d.S,d.crypto);d.lr.add(e);
  5047. co(d,e);d.JF()||(e=Qx(d),d.rO(MM(d),e!==void 0?(e.downloadedEndTime||0)*e.averageByteRate:e.maxKnownEndTime*e.averageByteRate,e.maxKnownEndTime*e.averageByteRate));d.S=new Uint8Array(d.chunkSize);d.U=0;d.T+=1}};
  5048. kEY=function(d){if(Ho(d))if(d.Or&&d.indexRange)if(d.U){var q=new Uint8Array(d.S.buffer,0,d.U),T=WFj(d),Y=d.policy.T;Promise.all(d.lr).then(function(){var e=bx(Y,d.Or.G.info,MM(d,!0),T,d.policy.Fw,d.T,q,d.crypto);co(d,e,!0)})}else Ez(d,new jM("Woffle: Expect always re-mark currentChunkOffset at EOS"));
  5049. else Ez(d,new jM("Woffle: Expect at EOS to always have lastSlice or indexRange"))};
  5050. Qx=function(d){return{downloadedEndTime:Math.round(d.Or?d.Or.X:0),maxKnownEndTime:Math.round(d.G.index.As()),averageByteRate:Math.round(d.G.info.wx)}};
  5051. WFj=function(d){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(d.G.index.As()),averageByteRate:Math.round(d.G.info.wx)}};
  5052. MM=function(d,q){q===void 0||!q||d.indexRange&&d.initRange&&d.Or||Ez(d,new jM("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));q={lmt:d.G.info.lastModified,docid:d.policy.T,fmtid:d.G.info.id,type:d.G.info.mimeType.split(";")[0],csz:d.chunkSize,clen:d.T*d.chunkSize+d.U};d.crypto&&(q.ck=d.L,q.civ=d.X);var T="local://localhost/videoplayback?"+SW(q),Y,e;q={itag:+d.G.info.itag,mimeType:d.G.info.mimeType,bitrate:d.G.info.Vv*8,lastModified:String(d.G.info.lastModified),initRange:(Y=
  5053. d.initRange)==null?void 0:HeD(Y),indexRange:(e=d.indexRange)==null?void 0:HeD(e),url:T};if(Y=d.G.info.G)q.xtags=Y;if(Y=d.G.info.video)if(q.quality=Y.quality,q.qualityLabel=Y.qualityLabel,q.width=Y.width,q.height=Y.height,Y=Y.fps)q.fps=Y;if(d=d.G.info.audio){if(Y=d.sampleRate)q.audioSampleRate=String(Y);if(d=d.numChannels)q.audioChannels=d}return q};
  5054. co=function(d,q,T){T=T===void 0?!1:T;q.then(function(Y){d.lr.delete(q);(T||Y===4)&&d.B.resolve(Y)},function(Y){d.B.reject(Y)})};
  5055. Ez=function(d,q){g.TC(d.policy.T)!==4&&(g.Yp(d.policy.T,4),g.OL(q),d.B.reject(new jM(q.message)))};
  5056. jM=function(d,q){d=Error.call(this,d);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.G=q===void 0?!1:q};
  5057. CP6=function(d){d=g.jL(d,1886614376);for(var q=g.E(d),T=q.next();!T.done;T=q.next());return g.yC(d,function(Y){return wpX(Y)})};
  5058. uog=function(d){var q=Hz(d,function(e,U){return e+U.length},0);
  5059. q=new Uint8Array(q);var T=0;d=g.E(d);for(var Y=d.next();!Y.done;Y=d.next())Y=Y.value,q.set(Y,T),T+=Y.length;return q};
  5060. DGj=function(d,q,T,Y,e,U){this.ids=d;this.G=q;this.U=T;this.T=Y;this.j=e;this.lZ=U};
  5061. ao=function(d,q,T){this.initData=d;this.contentType=q;this.isPrefetch=T;this.G=this.cryptoPeriodIndex=NaN;this.j=[];this.fz=!1;this.U=null;if((q==null?void 0:q.toLowerCase())==="webm"||d.length===16)this.fz=!0};
  5062. fe7=function(d){a:{var q=d.initData;try{for(var T=0,Y=new DataView(q.buffer);T<Y.byteLength-8;){var e=Y.getUint32(T);if(e<=1)break;if(Y.getUint32(T+4)===1886614376){var U=32;if(Y.getUint8(T+8)>0){var b=Y.getUint32(T+28);U+=b*16+4}var J=Y.getUint32(T+U-4);try{var F=wbj(q.subarray(T+U,T+U+J));if(F!==null){var N=F;break a}}catch(R){}}T+=e}N=null;break a}catch(R){N=null;break a}N=void 0}if(N!=null)for(q=R4(vE(N,7,void 0,r2)),q==null||d.fz||(d.cryptoPeriodIndex=q),q=R4(vE(N,10,void 0,r2)),q!=null&&q>0&&
  5063. !d.fz&&(d.G=q),N=es(N,2,nSI,void 0===KnN?2:4),N=g.E(N),Y=N.next();!Y.done;Y=N.next())q=d.j,T=q.push,Y=Kp(Y.value),Y=g.A0(Y,4),T.call(q,Y)};
  5064. z82=function(d){return isNaN(d.cryptoPeriodIndex)?g.A0(d.initData):""+d.cryptoPeriodIndex};
  5065. A5=function(d,q,T){var Y=T===void 0?{}:T;T=Y.videoDuration===void 0?0:Y.videoDuration;var e=Y.tP===void 0?void 0:Y.tP;Y=Y.s9===void 0?!1:Y.s9;this.videoId=d;this.status=q;this.videoDuration=T;this.tP=e;this.s9=Y};
  5066. iyH=function(d,q,T,Y,e){this.videoId=d;this.qe=q;this.U=T;this.bytesDownloaded=Y;this.G=e};
  5067. pP=function(d){this.G=d;this.offset=0};
  5068. Z9=function(d){if(d.offset>=d.G.totalLength)throw Error();return FJ(d.G,d.offset++)};
  5069. Ie6=function(d,q){q=q===void 0?!1:q;var T=Z9(d);if(T===1){q=-1;for(T=0;T<7;T++){var Y=Z9(d);q===-1&&Y!==255&&(q=0);q>-1&&(q=q*256+Y)}return q}Y=128;for(var e=0;e<6&&Y>T;e++)T=T*256+Z9(d),Y*=128;return q?T:T-Y};
  5070. mGg=function(d){try{var q=Ie6(d,!0),T=Ie6(d,!1);return{id:q,size:T}}catch(Y){return{id:-1,size:-1}}};
  5071. S$1=function(d){for(var q=new pP(d),T=-1,Y=0,e=0;!Y||!e;){var U=mGg(q),b=U.id;U=U.size;if(b<0)return;if(b===176){if(U!==2)return;Y=q.n3()}else if(b===186){if(U!==2)return;e=q.n3()}b===374648427?T=q.n3()+U:b!==408125543&&b!==174&&b!==224&&q.skip(U)}q=g5(d,0,T);T=new DataView(q.buffer);T.setUint16(Y,3840);T.setUint16(e,2160);Y=new e2([q]);Uv(Y,d);return Y};
  5072. lej=function(d,q,T){var Y=this;this.loader=d;this.policy=q;this.S=T;this.logger=new g.cb("dash");this.U=[];this.G=null;this.yv=-1;this.K=0;this.z2=NaN;this.lr=0;this.j=NaN;this.B=this.aU=0;this.AF=-1;this.dO=this.T=this.X=this.rO=null;this.Fw=this.xx=NaN;this.L=this.UD=this.qk=this.Bv=null;this.kx=!1;this.RU=this.timestampOffset=0;this.fC={uN:function(){return Y.U}};
  5073. if(this.policy.T){var e=this.S,U=this.policy.T;this.policy.Fw&&d.oU("atv",{ap:this.policy.Fw});this.L=new h5(this.policy,e,function(b,J,F){Oz(d,new A5(Y.policy.T,2,{tP:new iyH(U,b,e.info,J,F)}))});
  5074. this.L.B.promise.then(function(b){Y.L=null;b===1?Oz(d,new A5(Y.policy.T,b)):Y.loader.oU("offlineerr",{status:b.toString()})},function(b){var J=(b.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
  5075. b instanceof jM&&!b.G?(Y.logger.info(function(){return"Assertion failed: "+J}),Y.loader.oU("offlinenwerr",{em:J}),nP(Y),Oz(d,new A5(Y.policy.T,4))):(Y.logger.info(function(){return"Failed to write to disk: "+J}),Y.loader.oU("dldbwerr",{em:J}),nP(Y),Oz(d,new A5(Y.policy.T,4,{s9:!0})))})}};
  5076. vwn=function(d){return d.U.length?d.U[0]:null};
  5077. owf=function(d,q){return d.U.some(function(T){return T.info.sD===q})};
  5078. Y4Q=function(d,q,T,Y){Y=Y===void 0?0:Y;if(d.T){var e=d.T.U+d.T.j;if(T.info.U>0)if(T.info.sD===d.T.sD&&T.info.U<e){if(T.info.U+T.info.j<=e)return;T=oV2(T,e-T.info.U)[1]}else if(T.info.sD>=0&&d.T.sD>=0&&!eu(d.T,T.info))throw new g.CW("improper_continuation",d.T.jt(),T.info.jt());EV7(d.T,T.info)||rf(d,"d")}else if(T.info.U>0)throw new g.CW("continuation_of_null",T.info.jt());d.T=T.info;d.S=T.info.G;if(T.info.U===0){if(d.G)if(!d.loader.isOffline()||d.policy.PR)d.loader.oU("slice_not_fully_processed",
  5079. {buffered:d.G.info.jt(),push:T.info.jt()});else throw new g.CW("slice_not_fully_processed",d.G.info.jt(),T.info.jt());t5(d);d.aU=Y}else{if(d.aU&&Y&&d.aU!==Y)throw d=new g.CW("lmt_mismatch",T.info.sD,d.aU,Y),d.level="WARNING",d;!T.info.G.gr()&&d.X&&(Y=T.info,e=d.X.O5,Y.L="updateWithEmsg",Y.sD=e)}if(d.G){Y=g.Al(d.G,T);if(!Y)throw new g.CW("failed_to_merge",d.G.info.jt(),T.info.jt());d.G=Y}else d.G=T;a:{T=g.Ce(d.G.info.G.info);if(d.G.info.type!==3){if(!d.G.info.S)break a;d.G.info.type===6?Vu7(d,q,d.G):
  5080. ddj(d,d.G);d.G=null}for(;d.G;){Y=d.G.U.totalLength;if(d.yv<=0&&d.K===0){var U=d.G.U,b=-1;e=-1;if(T){for(var J=0;J+8<U.totalLength;){var F=z2n(U,J),N=z2n(U,J+4);J+=F||1;if(N===1836019558)b=J;else if(N===1835295092){e=J;break}}e<0&&(b=-1)}else{U=new pP(U);for(F=J=!1;;){N=U.n3();var R=mGg(U),x=R.id;R=R.size;if(!(x>0))break;if(x!==408125543)if(x===524531317)J=!0,R>=0&&(e=U.n3()+R,F=!0);else{if(J&&(x===160||x===163)&&(b<0&&(b=N),F))break;x===163&&(b=Math.max(0,b),e=U.n3()+R);if(x===160){b<0&&(e=b=U.n3()+
  5081. R);break}U.skip(R)}}b<0&&(e=-1)}if(b<0)break;d.yv=b;d.K=e-b}if(d.yv>Y)break;d.yv?(Y=q4I(d,d.yv),Y.S&&T6X(d,Y),Vu7(d,q,Y),Bo(d,Y),d.yv=0):d.K&&(Y=q4I(d,d.K<0?Infinity:d.K),d.K-=Y.U.totalLength,Bo(d,Y))}}d.G&&d.G.info.S&&(Bo(d,d.G),d.G=null)};
  5082. ddj=function(d,q){!q.info.G.gr()&&q.info.U===0&&(g.Ce(q.info.G.info)||q.info.G.info.fz())&&e0Q(q);if(q.info.type===1)try{T6X(d,q),ehH(d,q)}catch(e){g.Zz(e);var T=bP(q.info);T.hms="1";d.loader.handleError("fmt.unparseable",T||{},1)}T=q.info.G;T.u5(q);d.L&&PPX(d.L,q);if(T.pj()&&d.policy.G)a:{d=d.loader.vv;q=q.info.clipId;T=g.DB(T.info,d.aN);if(q){var Y=SL({itag:T.itag,lmt:d.aN?0:T.lmt||0,xtags:T.xtags});if(d.AF[Y])break a;d.AF[Y]=q}d.xx.push(T)}};
  5083. nej=function(d,q,T){if(d.U.length!==0&&(T||d.U.some(function(U){return U.info.T<q}))){T=0;
  5084. for(var Y=g.E(d.U),e=Y.next();!e.done;e=Y.next()){e=e.value;if(e.info.T<q)break;d.loader.oU("cmat",{max:q,s:e.info.jt()});T+=1}d.U.splice(0,T)}};
  5085. nP=function(d){var q;(q=d.L)==null||q.dispose();d.L=null};
  5086. UdQ=function(d){var q=d.U.reduce(function(T,Y){return T+Y.U.totalLength},0);
  5087. d.G&&(q+=d.G.U.totalLength);return q};
  5088. bOQ=function(d){if(d.UD&&!d.policy.qj){var q=d.loader;q.vv.isManifestless&&lP(q.vv,d.UD.sD,!!d.S.info.video)}d.UD=null;d.X=null;d.T=d.Bv;d.j=d.T?d.j-d.lr:NaN;t5(d)};
  5089. q4I=function(d,q){var T=d.G;q=Math.min(q,T.U.totalLength);if(q===T.U.totalLength)return d.G=null,T;T=oV2(T,q);d.G=T[1];return T[0]};
  5090. T6X=function(d,q){var T=g.ad(q);if(GL(q.info.G.info)&&q.info.G.info.video.primaries==="bt2020"){var Y=new a8(T);pj(Y,[408125543,374648427,174,224,21936,21937])&&(Y=Y.start+Y.pos,T.getUint8(Y)===129&&T.getUint8(Y+1)===1&&T.setUint8(Y+1,9))}Y=q.info.G.info;Ke(Y)&&!GL(Y)&&(Y=g.ad(q),(new a8(Y)).VP(),r0([408125543,374648427,174,224],21936,Y));q.info.G.info.eh()&&(Y=q.info.G,Y.info&&Y.info.video&&Y.info.video.projectionType==="MESH"&&!Y.U&&(g.Ce(Y.info)?Y.U=dI_(T):Y.info.fz()&&(Y.U=XH6(T))));q.info.G.info.fz()&&
  5091. q.info.eh()&&(T=g.ad(q),(new a8(T)).VP(),r0([408125543,374648427,174,224],30320,T)&&r0([408125543,374648427,174,224],21432,T));if(d.policy.s1&&q.info.G.info.fz()){T=g.ad(q);var e=new a8(T);if(pj(e,[408125543,374648427,174,29637])){Y=nj(e,!0);e=e.start+e.pos;for(var U=0;U<Y-1;U++)T.setUint8(e+U,0);T.setUint8(e+Y-1,1)}}if(d.JE()&&g.Ce(q.info.G.info)){Y=g.ad(q);T=g.R8(Y,0,1701606260);U=g.R8(Y,0,1836476516);if(T&&U){T.skip(2);var b=eL(T),J=b8(T);Y=[];e=[];var F=[],N=[];if(b)for(b=0;b<J;++b)Y.push(X0(T)),
  5092. e.push(X0(T)),F.push(eL(T)),N.push(eL(T));else for(b=0;b<J;++b)Y.push(UK(T)),e.push(UK(T)),F.push(eL(T)),N.push(eL(T));T=g.xk(U);T=new vun(e[0]/T,Y[0]/T)}else T=null;if(T){if(g.Ce(q.info.G.info))for(Y=g.ad(q),e=g.R8(Y,0,1701082227);e;)U=e,U.type=1936419184,U.data.setUint32(U.offset+4,1936419184),e=g.R8(Y,e.offset+e.size,1701082227);d.kx=!0;q.info.G.T=T}}q.info.G.gr()||q.info.G.G||q.info.G.indexRange||ny(q)};
  5093. Vu7=function(d,q,T){if(T.info.G.gr()){if(d.kx&&XxN(T)&&(q=g.ad(T),q=g.R8(q,0,1953658222))){q.skip(1);var Y=Yk(q)<<16|eL(q),e=Y&1,U=Y&4;if(Y&256){var b=Y&512,J=Y&1024;Y&=2048;var F=b8(q);F<2||(e&&q.skip(4),U&&q.skip(4),e=b8(q),q.skip((F-1)*(4+(b?4:0)+(J?4:0)+(Y?4:0))-4),q.data.setUint32(q.offset+q.G,e))}}if(q=d.rO&&!!d.rO.S.T)if(q=T.info.eh())q=TCI(T),b=d.rO,KP?(J=1/q,q=G0(d,q)>=G0(b)+J):q=d.getDuration()>=b.getDuration(),q=!q;q&&XxN(T)&&(q=d.rO,KP?(J=TCI(T),b=1/J,J=G0(d,J),q=G0(q)+b-J):q=q.getDuration()-
  5094. d.getDuration(),q=1+q/T.info.duration,VPD(g.ad(T),q))}else{b=!1;d.X||(e0Q(T),T.G&&(d.X=T.G,b=!0,e=T.info,U=T.G.O5,e.L="updateWithEmsg",e.sD=U,e=T.G,e.qQ&&(U=d.S.index,U.U=!e.qQ,U.j="emsg"),e=T.info.G.info,U=g.ad(T),g.Ce(e)?EK(U,1701671783):e.fz()&&r0([408125543],307544935,U)));a:if((e=O$(T,d.policy.ev))&&YXn(T))J=Jj2(d,T),d.B+=J,e-=J,d.lr+=e,d.j=d.policy.fp?d.j+e:NaN;else{if(d.policy.fh){if(U=F=d.loader.Xt(g.py(T),1),d.j>=0&&T.info.type!==6){if(d.policy.fp&&isNaN(d.xx)){g.OL(new g.CW("Missing duration while processing previous chunk",
  5095. T.info.jt()));d.loader.isOffline()&&!d.policy.PR||s9Q(d,T,U);rf(d,"m");break a}Y=F-d.j;var N=Y-d.B,R=T.info.sD,x=d.dO?d.dO.sD:-1,y=d.Fw,h=d.xx,H=d.policy.u3&&Y>d.policy.u3,a=Math.abs(N)>10,p=Math.abs(d.j-U)<1E-7;if(Math.abs(N)>1E-4){d.RU+=1;var t=(J=d.X)==null?void 0:moQ(J);J={audio:""+ +d.JE(),sq:R.toFixed(),sliceStart:F,lastSq:x.toFixed(),lastSliceStart:y,lastSliceDuration:h,totalDrift:(Y*1E3).toFixed(),segDrift:(N*1E3).toFixed(),skipRewrite:""+ +(H||a)};if(t==null?0:t.length)J.adCpn=t[0];d.loader.handleError("qoe.avsync",
  5096. J);d.AF=R}H||a||p||(U=d.j);J=Jj2(d,T,F);e-=J;d.B=Y+J}}else U=isNaN(d.j)?T.info.startTime:d.j;s9Q(d,T,U)&&(d.lr+=e,d.j=U+e,d.policy.H9&&d.RU>=d.policy.H9&&(d.RU=0,d.loader.zH({resetForRewrites:"count"})))}d.dO=T.info;d.xx=Ze(T);T.j>=0&&(d.Fw=T.j);if(b&&d.X){b=$d2(d,!0);Xo(T.info,b);d.G&&Xo(d.G.info,b);q=g.E(q);for(J=q.next();!J.done;J=q.next())J=J.value,e=void 0,d.policy.S&&J.sD!==((e=d.X)==null?void 0:e.O5)||Xo(J,b);(T.info.S||d.G&&d.G.info.S)&&T.info.type!==6||(d.UD=b,d.policy.U?(q=g8D(d.X),d.loader.DI(d.S,
  5097. b,q)):(q=d.loader,q.vv.isManifestless&&FzI(q,b,null,!!d.S.info.video)),d.policy.lS||N66(d))}}ehH(d,T);d.timestampOffset&&dFf(T,d.timestampOffset)};
  5098. Bo=function(d,q){if(q.info.S){d.Bv=q.info;if(d.X){var T=d.X,Y=$d2(d,!1);T=g8D(T);d.loader.DI(d.S,Y,T);d.UD||d.policy.lS||N66(d);d.UD=null}t5(d)}d.L&&PPX(d.L,q);if(Y=d.N1())if(Y=g.Al(Y,q,d.policy.yq,d.policy.FW)){d.U.pop();d.U.push(Y);return}d.U.push(q)};
  5099. g8D=function(d){if(d.OX()){var q=d.data["Stitched-Video-Id"]?d.data["Stitched-Video-Id"].split(",").slice(0,-1):[],T=moQ(d),Y=[];if(d.data["Stitched-Video-Duration-Us"])for(var e=g.E(d.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),U=e.next();!U.done;U=e.next())Y.push((Number(U.value)||0)/1E6);e=[];if(d.data["Stitched-Video-Start-Frame-Index"]){U=g.E(d.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var b=U.next();!b.done;b=U.next())e.push(Number(b.value)||0)}e=[];
  5100. if(d.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(U=g.E(d.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),b=U.next();!b.done;b=U.next())e.push((Number(b.value)||0)/1E6);d=new DGj(q,T,Y,e,g.S06(d),g.lbj(d))}else d=null;return d};
  5101. t5=function(d){d.G=null;d.yv=-1;d.K=0;d.X=null;d.z2=NaN;d.lr=0;d.UD=null};
  5102. rf=function(d,q){q={rst4disc:q,cd:d.B.toFixed(3),sq:d.dO?d.dO.sD:-1};d.j=NaN;d.B=0;d.AF=-1;d.dO=null;d.Fw=NaN;d.xx=NaN;d.qk=null;d.loader.oU("mdstm",q)};
  5103. ehH=function(d,q){if(d.isDrm()){if(q.info.G.info.fz()){var T=new a8(g.ad(q));if(pj(T,[408125543,374648427,174,28032,25152,20533,18402])){var Y=nj(T,!0);T=Y!==16?null:Gz(T,Y)}else T=null;Y="webm"}else q.info.K=CP6(g.ad(q)),T=uog(q.info.K),Y="cenc";T&&T.length&&(T=new ao(T,Y),d.policy.ZD&&g.Ce(q.info.G.info)&&(Y=UIg(g.ad(q)))&&(T.U=Y),T.fz=q.info.G.info.fz(),q.G&&q.G.cryptoPeriodIndex&&(T.cryptoPeriodIndex=q.G.cryptoPeriodIndex),q.G&&q.G.U&&(T.G=q.G.U),d.loader.Wq(T))}};
  5104. N66=function(d){var q=d.X,T=iwj(q);T&&(T.startSecs+=d.z2,d.loader.rV(d.S,T,q.O5,q.OX()))};
  5105. $d2=function(d,q){var T,Y=d.X;if(T=iwj(Y))T.startSecs+=d.z2;return new d0(Y.O5,d.z2,q?Y.W3:d.lr,Y.ingestionTime,"sq/"+Y.O5,void 0,void 0,q,T)};
  5106. s9Q=function(d,q,T){if(!V7j(q,T))return q=bP(q.info),q.smst="1",d.loader.handleError("fmt.unparseable",q||{},1),!1;isNaN(d.z2)&&(d.z2=T);return!0};
  5107. Jj2=function(d,q,T){var Y=0;if(q.info.G.info.fz()&&!YXn(q))return 0;if(d.rO&&!d.JE()){var e=0;T&&g.Ce(q.info.G.info)?e=T-d.j:q.info.G.info.fz()&&(e=d.B);var U=q.info.sD;T=O$(q,d.policy.ev);var b=d.rO;var J=b.AF;b=b.B;var F=Math.abs(b-e)>.02;if((U===J||U>J&&U>d.AF)&&F){Y=Math.max(.95,Math.min(1.05,(T-(b-e))/T));if(g.Ce(q.info.G.info))VPD(g.ad(q),Y);else if(q.info.G.info.fz()&&(U=e-b,!g.Ce(q.info.G.info)&&(q.info.G.info.fz(),Y=new a8(g.ad(q)),J=q.S?Y:new a8(new DataView(q.info.G.G.buffer)),O$(q,!0)))){var N=
  5108. U*1E3,R=kk(J);J=Y.pos;Y.pos=0;if(Y.G.getUint8(Y.pos)===160||Pt(Y))if(OK(Y,160))if(nj(Y,!0),OK(Y,155)){if(U=Y.pos,F=nj(Y,!0),Y.pos=U,N=N*1E9/R,R=tu(Y),N=R+Math.max(-R*.7,Math.min(R,N)),N=Math.sign(N)*Math.floor(Math.abs(N)),!(Math.ceil(Math.log(N)/Math.log(2)/8)>F)){Y.pos=U+1;for(U=F-1;U>=0;U--)Y.G.setUint8(Y.pos+U,N&255),N>>>=8;Y.pos=J}}else Y.pos=J;else Y.pos=J;else Y.pos=J}Y=O$(q,d.policy.ev);Y=T-Y}Y&&q.info.G.info.fz()&&d.loader.oU("webmDurationAdjustment",{durationAdjustment:Y,videoDrift:e+Y,
  5109. audioDrift:b})}return Y};
  5110. XxN=function(d){return d.info.G.gr()&&d.info.sD===d.info.G.index.nC()};
  5111. G0=function(d,q){q=(q=q===void 0?0:q)?Math.round(d.timestampOffset*q)/q:d.timestampOffset;d.S.T&&q&&(q+=d.S.T.G);return q+d.getDuration()};
  5112. Rhn=function(d,q){q<0||(d.U.forEach(function(T){dFf(T,q)}),d.timestampOffset=q)};
  5113. dK=function(d,q,T,Y,e){hk.call(this,T,e);var U=this;this.policy=d;this.formatId=q;this.cA=Y;this.lastError=null;this.S$=function(){U.JF()||(U.cA.vG.has(U.formatId)?(U.isComplete()||U.G.start(),fz(U.cA,U.formatId)&&U.Om(2),U.cA.Zh(U.formatId)&&(KUQ(U.cA,U.formatId)?U.XC(4):(U.lastError="net.closed",U.XC(5)))):(U.lastError="player.exception",U.XC(5)))};
  5114. this.G=new g.f9(function(){U.isComplete()||(U.lastError="net.timeout",U.XC(5))},1E3);
  5115. this.G.start();ruH(this.cA,this.formatId,this.S$);g.ML(this.S$)};
  5116. LP=function(d,q,T,Y){g.W.call(this);var e=this;this.loader=d;this.policy=q;this.G=T;this.timing=Y;this.logger=new g.cb("dash");this.j=[];this.rO=[];this.U=this.RN=null;this.qk=!1;this.aU=this.RU=0;this.X=-1;this.yv=!1;this.z2=-1;this.dO=null;this.UD=NaN;this.lr=[];this.fC={K7:function(){return e.T},
  5117. QZw:function(){return e.j},
  5118. Eyx:function(){return e.B}};
  5119. this.T=new lej(d,q,T);this.policy.G&&(this.B=new oz(this.T,this.loader.getManifest(),this.policy,function(U){e.policy.aZ&&e.oU("buftl",U)}));
  5120. this.policy.vF&&(this.K=new x_(this));this.Vv=T.info.Vv;this.L=this.policy.UD?!1:T.hO();this.isManifestless=T.hO();this.S=this.L;g.C(this,this.dO)};
  5121. k_=function(d,q,T){T=T===void 0?!1:T;q&&KP&&Rhn(d.T,q.zI());if(!T){var Y;(Y=d.B)==null||AFg(Y)}d.RN=q;(q=d.B)!=null&&(q.RN=d.RN)};
  5122. Po=function(d){var q=d.RN&&d.RN.ZG();if(d.policy.M0){if((d=d.B)==null)d=void 0;else{var T;d=(T=d.j)==null?void 0:T.info}return d||null}return q};
  5123. xd1=function(d){for(var q={},T=0;T<d.rO.length;T++)q["r"+T]=d.rO[T];return q};
  5124. Wo=function(d,q){isNaN(d.UD)||d.oU("aswr",{sq:q.info.Zw[0].sD,id:q.info.Zw[0].G.info.itag,xtag:q.info.Zw[0].G.info.G,ep:Date.now()-d.UD});d.j.push(q);d.U=g.yN(q.info.Zw);d.rO.push(q.jt());d.rO.length>4&&d.rO.shift()};
  5125. yjf=function(d,q){if(q.Vs()){var T=q.kz();T=g.E(T);for(var Y=T.next();!Y.done;Y=T.next())Y=Y.value,d.policy.j&&q instanceof dK&&d.oU("omblss",{s:Y.info.jt()}),CP(d,q.info.Zw,Y,q.TI())}};
  5126. CP=function(d,q,T,Y){Y=Y===void 0?0:Y;isNaN(d.UD)||(d.oU("aswm",{sq:q[0].sD,id:q[0].G.info.itag,xtag:q[0].G.info.G,ep:Date.now()-d.UD}),d.UD=NaN);switch(T.info.type){case 1:case 2:hh7(d,T);break;case 4:var e=T.info.G,U=e.IM(T),b;((b=d.U)==null?0:b.type===4)&&nVI(T.info,d.U)&&(d.U=e.IV(d.U).pop());T=g.E(U);for(e=T.next();!e.done;e=T.next())CP(d,q,e.value,Y);break;case 3:T.info.G.info.video?(e=d.timing,e.z2||(e.z2=(0,g.cj)(),g.iN("fvb_r",e.z2,e.G))):(e=d.timing,e.X||(e.X=(0,g.cj)(),g.iN("fab_r",e.X,
  5127. e.G)));Y4Q(d.T,q,T,Y);d.policy.G&&HOI(d);break;case 6:Y4Q(d.T,q,T,Y),d.U=T.info}};
  5128. hh7=function(d,q){if(q.info.type===1)if(q.info.G.info.video){var T=d.timing;T.aU||(T.aU=(0,g.cj)(),g.iN("vis_r",T.aU,T.G))}else T=d.timing,T.B||(T.B=(0,g.cj)(),g.iN("ais_r",T.B,T.G));ddj(d.T,q);d=d.loader;d.videoTrack.G.pj()&&d.audioTrack.G.pj()&&d.policy.G&&!d.vv.aN&&(q=d.audioTrack.getDuration(),T=d.videoTrack.getDuration(),Math.abs(q-T)>1&&d.oU("trBug",{af:""+g.DB(d.audioTrack.G.info,!1),vf:""+g.DB(d.videoTrack.G.info,!1),a:""+q,v:""+T}))};
  5129. sj=function(d){return vwn(d.T)};
  5130. HOI=function(d){d.j.length?d.U=g.yN(g.yN(d.j).info.Zw):d.T.U.length?d.U=d.T.N1().info:d.U=Po(d)};
  5131. us=function(d,q){var T={wz:[],At:[]},Y;if((d=d.B)==null)d=void 0;else{aWI(d,d.wz,"og");cFg(d,q);aWI(d,d.wz,"trim");var e=jg1(d);q=e.wz;e=e.cK;for(var U=[],b=0;b<e.length;b++){var J=e[b],F=d.policy.AF&&J.j!==-1?J.j:J.info.startTime,N={startTicks:(F+d.timestampOffset)*1E3,Ou:(d.policy.AF&&J.T!==-1?J.T:J.info.duration)*1E3,timescale:1E3},R=void 0,x=(R=d.RN)==null?void 0:R.Zm();R=void 0;if(d.policy.Zs&&x&&x.length>0){var y=vH(x,F);y>=0&&(R=(x.end(y)-F+.1)*1E3)}U.push({formatId:g.DB(J.info.G.info,d.vv.aN),
  5132. g4:J.info.g4,sequenceNumber:J.info.sD+d.T,Ss:N,OR:J.info.j,Wk:R})}d={wz:q,At:U}}return(Y=d)!=null?Y:T};
  5133. YI=function(d,q,T){T=T===void 0?!1:T;if(d.RN){var Y=d.RN.Zm(),e=Vb(Y,q),U=NaN,b=Po(d);b&&(U=Vb(Y,b.G.index.getStartTime(b.sD)));if(e===U&&d.U&&d.U.j&&Q97(D9(d),0))return q}d=MJH(d,q,T);return d>=0?d:NaN};
  5134. Uj=function(d,q,T){d.G.pj();var Y=MJH(d,q);if(Y>=0)return Y;var e;(e=d.B)==null||EeY(e,q,T);Y=Math;e=Y.min;var U=d.T;if(U.L)if(U=U.L,U.Or&&U.Or.type===3)U=U.Or.startTime;else if(U.j>0){var b=U.G.index;b=g.Dn(b.offsets.subarray(0,b.count),U.j*U.chunkSize);U=U.G.index.getStartTime(b>=0?b:Math.max(0,-b-2))}else U=0;else U=Infinity;q=e.call(Y,q,U);d.U=d.policy.UD?null:d.G.Fg(q).Zw[0];wf(d)&&(d.policy.di&&(T==null?void 0:T.seekSource)===60||d.RN&&d.RN.abort(),d.policy.iA&&(T=d.B)!=null&&(T.j=void 0));
  5135. d.aU=0;return d.U?d.U.startTime:q};
  5136. ZYQ=function(d){d.L=!0;d.S=!0;d.X=-1;Uj(d,Infinity)};
  5137. fP=function(d){for(var q=0,T=g.E(d.j),Y=T.next();!Y.done;Y=T.next())q+=t7j(Y.value.info);return q+=UdQ(d.T)};
  5138. is=function(d,q){q=q===void 0?!1:q;var T=d.loader.getCurrentTime(),Y=d.T.N1(),e=(Y==null?void 0:Y.info.X)||0;if((Y==null?0:Y.info.G.hO())&&!Y.info.S)if(d.policy.Pa)e=Y.info.T;else if(d.policy.VY){var U=Y.info;e=U.range?U.X:Math.min(U.startTime+Math.min(U.duration*U.U/U.G.info.Vv,U.duration)+(U.range?U.B:Math.min(U.duration,U.duration*U.j/U.G.info.Vv)),U.startTime+U.duration)}if(!d.RN)return d.policy.G&&q&&!isNaN(T)&&Y?e-T:0;if((U=Po(d))&&z0(U))return U.X;var b=d.RN.Zm(!0);if(q&&Y)return U=0,d.policy.G&&
  5139. (U=T5(b,e+.02)),U+e-T;q=T5(b,T);d.policy.gQ&&U&&(Y=vH(b,T),b=vH(b,U.T-.02),Y===b&&(T=U.X-T,d.policy.j&&T>q+.02&&d.oU("abh",{bh:q,bhtls:T}),q=Math.max(q,T)));return q};
  5140. cj_=function(d){var q=Po(d);return q?q.X-d.loader.getCurrentTime():0};
  5141. E87=function(d,q){if(d.j.length){if(d.j[0].info.Zw[0].startTime<=q)return;TM(d)}for(var T=d.T,Y=T.U.length-1;Y>=0;Y--)T.U[Y].info.startTime>q&&T.U.pop();HOI(d);d.U&&q<d.U.startTime&&(d.aU=0,d.G.pj()?d.U=d.G.Fg(q,!0).Zw[0]:d.U=null)};
  5142. Io=function(d,q,T,Y){if(!d.G.index.Zb(q,!0))return!1;try{TM(d);for(var e=d.T,U=null,b=e.U.length-1;b>=0;b--){var J=e.U[b];J.info.sD>=q&&(e.U.pop(),e.j-=O$(J,e.policy.ev),U=J.info)}U&&(e.T=e.U.length>0?e.U[e.U.length-1].info:e.qk,e.U.length!==0||e.T||rf(e,"r"));e.loader.oU("mdstm",{rollbk:1,itag:U?U.G.info.itag:"",popped:U?U.sD:-1,sq:q,lastslc:e.T?e.T.sD:-1,lastfraget:e.j.toFixed(3)});if(d.policy.G)return d.U=null,!0;Y>T?Uj(d,Y):d.U=d.G.UX(q-1,!1).Zw[0]}catch(F){return q=hQ(F),q.details.reason="rollbkerr",
  5143. d.loader.handleError(q.errorCode,q.details,q.severity),!1}return!0};
  5144. SM=function(d,q){var T;for(T=0;T<d.j.length&&q!==d.j[T];T++);if(T===d.j.length)mh(d,q);else{for(;T<d.j.length;)mh(d,d.j.pop());var Y=o3(d);Y&&Y.G.Gb()&&D7(q.info.Zw,function(e){return rQD(e,Y)})?(d.U=Y,d.policy.j&&d.oU("cer",{lsr:"lsp",
  5145. lsp:Y.jt()})):(Yw(q.info.Zw[0])?(d.U=q.j$&&q.j$.j?Ze6(q.j$.j):pHI(q.info.Zw[0]),d.policy.j&&d.oU("cer",{lsr:d.U.jt(),lsp:Y==null?void 0:Y.jt()})):(d.U=null,d.policy.j&&d.oU("cer",{lsr:"null",lsp:Y==null?void 0:Y.jt()})),d.loader.isOffline()&&!d.policy.PR||mh(d,q,!0))}};
  5146. z0=function(d){return d?d.qQ():!1};
  5147. wf=function(d){var q;!(q=d.G.info.Cf==="f")&&(q=d.policy.T)&&(q=d.T,q=!!q.L&&Ho(q.L));if(q)return!0;q=Po(d);if(!q)return!1;var T=z0(q)&&q.S;return d.isManifestless&&d.z2>0?T||q.sD>=d.z2:T};
  5148. ls=function(d){var q;return wf(d)||z0((q=d.T.N1())==null?void 0:q.info)};
  5149. D9=function(d){var q=[],T=Po(d);T&&q.push(T);q=g.nB(q,d.T.jN());T=g.E(d.j);for(var Y=T.next();!Y.done;Y=T.next()){Y=Y.value;for(var e=g.E(Y.info.Zw),U=e.next(),b={};!U.done;b={eq:void 0},U=e.next())b.eq=U.value,Y.mR&&(q=g.Zl(q,function(J){return function(F){return!nVI(F,J.eq)}}(b))),(Yw(b.eq)||b.eq.type===4)&&q.push(b.eq)}d.U&&!M7N(d.U,g.yN(q),d.U.G.gr())&&q.push(d.U);
  5150. return q};
  5151. Q97=function(d,q){if(!d.length)return!1;for(q+=1;q<d.length;q++)if(!cQ1(d[q-1],d[q]))return!1;return!0};
  5152. MJH=function(d,q,T){T=T===void 0?!1:T;if(!d.U||!d.U.j)return NaN;d=D9(d);a:{q+=.02;var Y=T;Y=Y===void 0?!1:Y;for(var e=-1,U=0;U<d.length;++U){var b=d[U];if(b.T<=q)if(Y)e=U;else if(b.startTime+b.duration>=q){q=U;break a}}q=e}return q<0?NaN:Q97(d,T?q:0)?d[q].startTime:NaN};
  5153. vo=function(d){return!(!d.U||d.U.G===d.G)};
  5154. j9Q=function(d){return vo(d)&&d.G.pj()&&d.U.G.info.Vv<d.G.info.Vv};
  5155. aNg=function(d,q,T){return d.policy.G?is(d,!0)<T:(d=o3(d))&&!z0(d)?d.X>q&&d.X<q+T:!1};
  5156. o3=function(d){var q=d.T.N1();return q?q.info:Po(d)};
  5157. Xb1=function(d,q){var T;return!((T=d.B)==null||!T.S.has(q))||owf(d.T,q)};
  5158. TM=function(d){for(var q=g.E(d.j),T=q.next();!T.done;T=q.next())mh(d,T.value);d.j=[];d.U=null};
  5159. oo=function(d){var q;(q=d.B)==null||AFg(q);d.lr=[]};
  5160. Ajn=function(d,q,T){q.mR&&((T===void 0?0:T)||!q.info.Zw[0].G.Gb())&&(d.logger.debug(function(){return"Rolling back request with segNum "+q.info.Zw[0].sD}),bOQ(d.T))};
  5161. mh=function(d,q,T){Ajn(d,q,T===void 0?!1:T);q.dispose()};
  5162. pxH=function(d){return!!d.U&&d.U.sD!==-1&&d.U.sD<d.G.index.Db()};
  5163. ZOX=function(d){var q=d.U;q&&q.sD===-1&&(d=d.T.N1())&&Yw(d.info)&&(d=d.info.sD,q.L="updateLastSliceRequested",q.sD=d)};
  5164. OON=function(d){return D7(d.j,function(q){return q.f5})};
  5165. n82=function(d,q){d.U&&(d.U.G=q)};
  5166. Vx=function(d,q){return d.RN?oI(d.RN.Zm(),q):!0};
  5167. dZ=function(d){var q;return!((q=sj(d))==null||!q.isLocked)};
  5168. rjf=function(d,q){var T=sj(d);return T&&T.info.type!==6?!JlQ(q,d,T.info.sD):!1};
  5169. tJj=function(d){if((d=d.B)==null)d=void 0;else if(d.wz.length===0||d.policy.Qs&&d.G<0)d=null;else{var q=d.wz[d.G]?d.wz[d.G].formatId:null;d=q?(d=d.vv.j.get(SL(q)))?d.info:null:null}return d||null};
  5170. B61=function(d,q){d=g.E(d.lr);for(var T=d.next();!T.done;T=d.next())if(T=T.value,T.O5===q)return T.T1v?2:1;return 0};
  5171. KzQ=function(){this.zz=!1};
  5172. GHN=function(d){var q=d===void 0?{}:d;d=q.hasSubfragmentedFmp4===void 0?!1:q.hasSubfragmentedFmp4;q=q.L1===void 0?!1:q.L1;var T=new KzQ;T.zz=d||q;return T};
  5173. g.LzH=function(d){this.Mk=d;this.L=new KzQ;this.Nj=this.nL=!1;this.pL=2;this.aU=20971520;this.Bv=8388608;this.yv=120;this.dZ=this.Y6=this.WV=2;this.zr=this.sx=!1;this.hs=1E3;this.lF=15;this.Y1=1;this.B=1.15;this.lr=1.05;this.hC=1;this.wB=this.V5=!1;this.K8=6;this.j=!1;this.DT=100;this.TB=10;this.In=6;this.Aq=!1;this.sQ=1;this.zv=this.vA=!1;this.Gv=2;this.fh=this.Pf=!1;this.fn=!0;this.zX=this.gB=this.xx=this.gk=!1;this.sZ=!0;this.A6=!1;this.T="";this.E$=[];this.bV=this.xA=this.vF=!1;this.hq=0;this.B3=
  5174. "";this.H1=this.Lh=this.aZ=this.OW=this.wU=this.S=this.Se=this.Dc=this.JW=this.G=this.Fw=this.rO=this.iA=this.M0=this.K=this.lS=this.di=!1;this.Je=!0;this.Fc=this.VY=this.Pa=this.Nf=this.eC=this.U=this.AF=!1;this.qk=!0;this.R6=this.r3=this.BJ=this.WJ=this.dA=this.zq=this.xU=this.gx=this.Zs=this.Au=this.wk=this.GD=this.UD=this.Ox=this.q5=this.z2=!1;this.kx=2;this.rA=this.W$=!1;this.rR=this.Mk.N("html5_report_eos");this.Xc=g.Yv(this.Mk.experiments,"html5_min_readbehind_secs");this.TE=g.Yv(this.Mk.experiments,
  5175. "html5_min_readbehind_cap_secs");this.PR=this.Mk.N("html5_offline_reset_media_stream_on_unresumable_slices");this.Vv=NaN;this.Gr=qy(this,"html5_request_size_min_kb",64)*1024;this.RU=2097152;this.MJ=qy(this,"html5_bypass_contention_secs");this.Gw=1048576;this.XF=qy(this,"html5_repredict_interval_ms",1800);this.PD=qy(this,"html5_head_miss_secs",5);this.zE=qy(this,"html5_min_upgrade_health_secs",10);this.Qq=qy(this,"html5_min_seconds_between_format_selections",8);this.g5=qy(this,"html5_max_buffer_health_for_downgrade_secs",
  5176. 15);this.pW=QU;this.w4=g.Yv(this.Mk.experiments,"html5_min_startup_buffered_media_duration_secs");this.LL=g.Yv(this.Mk.experiments,"html5_post_interrupt_readahead");this.cD=this.Mk.N("html5_disable_classic_alr");this.Ds=g.Yv(this.Mk.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.NK=qy(this,"html5_ssdai_failure_retry_limit",3);this.aF=this.Mk.experiments.Wv("html5_clone_original_for_fallback_location");this.qC=g.Yv(this.Mk.experiments,"html5_subsegment_readahead_target_buffer_health_secs");
  5177. this.Yz=g.Yv(this.Mk.experiments,"html5_subsegment_readahead_timeout_secs");this.F7=g.Yv(this.Mk.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.If=g.Yv(this.Mk.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.WH=g.Yv(this.Mk.experiments,"html5_subsegment_readahead_min_load_speed");this.Fs=g.Yv(this.Mk.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.oy=g.Yv(this.Mk.experiments,"html5_subsegment_readahead_seek_latency_fudge");
  5178. this.Kq=qy(this,"html5_hopeless_secs",15);this.b_=this.Mk.N("html5_restrict_streaming_xhr_on_sqless_requests");this.GE=g.Yv(this.Mk.experiments,"html5_max_headm_for_streaming_xhr");this.Cd=this.Mk.N("html5_pipeline_manifestless_allow_nonstreaming");this.QM=this.Mk.N("html5_prefer_server_bwe3");this.yI=this.Mk.N("html5_last_slice_transition");this.b4=this.Mk.N("html5_store_xhr_headers_readable");this.u3=g.Yv(this.Mk.experiments,"html5_max_drift_per_track_secs");this.qj=this.Mk.N("html5_no_placeholder_rollbacks");
  5179. this.N9=this.Mk.N("html5_subsegment_readahead_enable_mffa");this.ST=this.Mk.N("html5_allow_video_keyframe_without_audio");this.ZD=this.Mk.N("html5_enable_vp9_fairplay");this.G_=1048576;this.fk=this.Mk.N("html5_woffle_resume");this.pS=this.Mk.N("html5_abs_buffer_health");this.wm=this.Mk.N("html5_interruption_resets_seeked_time");this.fd=g.Yv(this.Mk.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.uK=this.Mk.N("html5_report_captions_ctmp_qoe");this.Kw=this.Mk.N("html5_explicitly_dispose_xhr");
  5180. this.yq=!this.Mk.N("html5_encourage_array_coalescing");this.Mk.N("html5_limit_media_merge_size")?QU?LZ()<21?this.FW=786432:this.FW=8388608:this.FW=262144:this.FW=0;this.Q8=this.Mk.N("html5_filter_non_efficient_formats_for_safari");this.Mk.N("html5_format_hybridization");this.lq=this.Mk.N("html5_abort_before_separate_init");this.s1=w7();this.nR=this.Mk.N("html5_serialize_server_stitched_ad_request");this.IF=this.Mk.N("html5_attach_po_token_to_bandaid");this.IK=g.Yv(this.Mk.experiments,"html5_max_redirect_response_length")||
  5181. 8192;this.fp=this.Mk.N("html5_rewrite_timestamps_for_webm");this.ev=this.Mk.N("html5_only_media_duration_for_discontinuities");this.hY=g.Yv(this.Mk.experiments,"html5_resource_bad_status_delay_scaling")||1;this.j8=g.Yv(this.Mk.experiments,"html5_sabr_malformed_config_retry_limit");this.Mk.N("html5_onesie_live");this.Yt=this.Mk.N("html5_onesie_premieres");this.hg=g.Yv(this.Mk.experiments,"html5_onesie_live_ttl_secs")||8;this.SC=g.Yv(this.Mk.experiments,"html5_attach_num_random_bytes_to_bandaid");this.h2=
  5182. this.Mk.N("html5_update_container_type_on_codec_family_change");this.Mk.N("html5_apply_ssap_slice_info_adjustment");this.Qp=this.Mk.N("html5_enable_sabr_host_fallback");this.M7=this.Mk.N("html5_gapless_fallback_on_append_error");this.CR=this.Mk.N("html5_shorts_stop_request_when_buffer_to_end");this.UT=this.Mk.N("html5_vod_stop_request_when_buffer_to_end");this.dO=this.Mk.N("html5_ssdai_use_post_for_media")&&this.Mk.N("gab_return_sabr_ssdai_config");this.Dd=this.Mk.N("html5_use_post_for_media");this.LC=
  5183. this.Mk.N("html5_use_live_ump_heartbeat");this.useUmp=this.Mk.N("html5_use_ump");this.yM=this.Mk.XF;this.YY=this.Mk.N("html5_reset_primary_stats_on_redirector_failure");this.Mr=this.Mk.N("html5_remap_to_original_host_when_redirected");this.ov=this.Mk.N("html5_sabr_support_quality_constraints");this.tY=this.Mk.N("html5_sabr_remove_all_quality_constraints");this.rQ=this.Mk.N("html5_iterative_seeking_buffered_time");this.zs=this.Mk.N("html5_use_network_error_code_enums");this.kh=this.Mk.N("html5_disable_overlapping_requests");
  5184. this.enableServerDrivenRequestCancellation=this.Mk.N("html5_enable_server_driven_request_cancellation");this.j9=this.Mk.N("html5_enable_sabr_request_timing");this.yl=this.Mk.N("html5_enable_server_format_filter");this.lL=this.Mk.N("html5_enable_lawnmower");this.t0=this.Mk.uF()?g.Yv(this.Mk.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.Ph=g.Yv(this.Mk.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.I$=this.Mk.N("html5_live_defrag_only_h264_playbacks");this.N$=this.Mk.N("html5_live_defrag_only_h264_formats");
  5185. this.Ar=this.Mk.N("html5_record_now");this.Oi=g.Yv(this.Mk.experiments,"html5_drm_byterate_soft_cap");this.tW=g.Yv(this.Mk.experiments,"html5_drm_live_byterate_soft_cap");this.X=this.Mk.N("html5_sabr_log_request_creation");this.yH=this.Mk.N("html5_use_buffer_timeline_for_sabr_request_creation");this.pC=this.Mk.N("html5_sabr_report_request_cancellation_info");this.qK=this.Mk.N("html5_spoof_4k");this.YA=qy(this,"html5_min_media_duration_for_cabr_slice");this.UK=qy(this,"html5_sabr_min_media_bytes_factor_to_append_for_stream")||
  5186. .01;this.pR=this.Mk.N("html5_remove_defrag_without_frame_level_streaming");this.Yh=this.Mk.N("html5_consume_all_buffered_bytes_one_poll");this.PC=this.Mk.N("html5_disable_urgent_adaptation");this.iq=this.Mk.N("html5_apply_constraints_in_client_for_sabr");this.Ja=this.Mk.N("html5_send_video_playback_ustreamer_config");this.H9=qy(this,"html5_max_discontinuity_rewrite_count");this.wJ=qy(this,"html5_fixed_media_duration_for_request");this.rK=this.Mk.N("html5_apply_fix_for_missing_seg_info_without_logger");
  5187. this.gB=this.Mk.N("html5_enable_audio_quality_setting");this.Mk.N("html5_enable_audio_quality_setting_feature");this.qU=qy(this,"html5_sabr_request_limit_per_period");this.l9=this.Mk.N("html5_sabr_dispose_media_objects");this.Vt=this.Mk.N("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.Uu=this.Mk.N("html5_enable_d6de4");this.Mk.N("html5_high_res_seek_logging");this.m1=this.Mk.N("html5_disable_chunk_synchronization_sabr_seek");this.Mk.N("html5_enable_ssap_multi_audio_format_filtering");this.EW=
  5188. g.Yv(this.Mk.experiments,"html5_override_micro_discontinuities_threshold_ms");this.YH=this.Mk.N("html5_byterate_constraints");this.t5=this.Mk.N("html5_refactor_sabr_audio_format_selection_logging");this.T_=this.Mk.N("enable_sabr_snackbar_message");this.Mk.N("html5_reinit_source_buffer_by_new_element");this.j1=this.Mk.N("html5_refactor_sabr_video_format_selection_logging");this.Ah=this.Mk.N("html5_log_slice_info_in_sbu");this.Ln=qy(this,"html5_paced_poll_ms");this.WD=qy(this,"html5_paced_poll_min_health_ms");
  5189. this.Kd=this.Mk.N("html5_disable_sabr_fallback");this.Qs=this.Mk.N("html5_track_current_buffered_range_at_sync");this.Q_=g.ho(this.Mk)?500:2E3;this.U5=this.Mk.N("html5_sabr_live_timing");this.gQ=this.Mk.N("html5_count_updating_slice_for_buffer_health");this.I1=this.Mk.N("html5_report_max_buffer_bytes_limit_to_sabr");this.Tb=this.Mk.N("html5_sabr_live_audio_early_return_fix");this.Vq=g.Yv(this.Mk.experiments,"html5_platform_max_buffer_health_oversend_duration_secs");this.BD=this.Mk.N("html5_cuepoint_identifier_logging");
  5190. this.H$=this.Mk.N("html5_new_sabr_ssdai_cuepoint_logic");this.xN=this.Mk.N("html5_sabr_log_server_xtag_selection_onesie_mismatch");this.MW=this.Mk.N("html5_skip_client_drm_license_constraint");this.Kz=this.Mk.N("html5_ssdai_not_block_on_predict_start");this.di=this.Mk.N("html5_pseudogapless_shorts_skip_abort_on_transition");this.W$=this.Mk.N("html5_sabr_log_invalid_sabr_current_time");this.wO=this.Mk.N("html5_ssdai_new_decoration_logic");this.y8=this.Mk.N("html5_enable_smooth_audio_offset")};
  5191. Oyg=function(d,q,T){T=T===void 0?!1:T;q.video.qualityOrdinal>1080&&!d.nL&&(d.aU=36700160,d.Bv=5242880,d.RU=Math.max(4194304,d.RU),d.nL=!0);q.video.qualityOrdinal>2160&&!d.Nj&&(d.aU=104857600,d.Vv=13107200,d.Nj=!0);g.Yv(d.Mk.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?q.isEncrypted()&&g.WL()&&g.kA("samsung")&&(g.kA("kant")||g.kA("muse"))&&(d.Vv=g.Yv(d.Mk.experiments,"html5_samsung_kant_limit_max_bitrate")):q.isEncrypted()&&g.WL()&&g.kA("kant")&&(d.Vv=1310720);d.Oi!==0&&q.isEncrypted()&&
  5192. (d.Vv=d.Oi);d.tW!==0&&q.isEncrypted()&&T&&(d.Vv=d.tW);q.Vv&&(d.Gw=Math.max(d.Gr,Math.min(d.RU,5*q.Vv)))};
  5193. BX=function(d){return d.G&&d.yl};
  5194. T$=function(d){return d.G&&d.Dc&&d.playbackStartPolicy};
  5195. YW=function(d,q,T,Y){d.Dc&&(d.playbackStartPolicy=q,d.Th=T,d.wQ=Y)};
  5196. qy=function(d,q,T){T=T===void 0?0:T;return g.Yv(d.Mk.experiments,q)||T};
  5197. kHI=function(d){var q=d===void 0?{}:d;d=q.zv;var T=q.zz;var Y=q.bO;var e=q.nC;q=q.XZ;this.zv=d;this.zz=T;this.bO=Y;this.nC=e;this.XZ=q};
  5198. Ctf=function(d,q){if(q<0)return!0;var T=d.nC();return q<T||q===T&&!d.zv||q===T&&(d=d.XZ())&&q===d.sD?!0:!1};
  5199. uL2=function(d,q,T){if(!Ctf(d,q))return 0;if(!d.zz||!isNaN(T)&&T>0)return 2;if(q<0)return 1;T=d.nC();return q<T||q===T&&(d=d.XZ())&&q===d.sD&&!d.pending?2:1};
  5200. eB=function(d,q,T){g.W.call(this);this.loader=d;this.policy=q;this.Tq=T;this.U=0;this.G=!1;this.delay=new g.f9(this.j,this.policy.t0,this);g.C(this,this.delay)};
  5201. Pen=function(d,q){lt(q.G)||(d.zG=q,d.U=0,g.zh(d.delay))};
  5202. Wz7=function(d,q,T,Y,e){var U=this;this.loader=d;this.policy=q;this.Tq=T;this.zG=Y;this.VK=e;this.done=!1;this.onTimeout=function(){U.done||(U.done=!0,U.onError("net.timeout"))};
  5203. this.size=Math.ceil(Math.min(1E5,.1*I9(this.Tq)));this.timing=new NO(this,{Tq:this.Tq,mO:this.size,cO:!0,D1:function(){},
  5204. Y4:this.policy.j});d=i8(this.zG,this.VK,this.policy).Wf.clone();mp(d);d[X[18]]!=="/videogoodput"&&(d[X[18]]="/videogoodput",d[X[29]]=X[14]);this.location=new Wt(d);this.location.set("rn",""+this.timing.requestNumber);this.location.set("range","0-"+(this.size-1));this.xhr=Qh(this.location,this.policy.L,this.timing,this.policy.pW,{});setTimeout(this.onTimeout,1E4)};
  5205. CeD=function(d,q,T){var Y=d.W9();if(d.isComplete()||!Y||d.info.zG.VK(q,T))return 0;var e=q.Gv;if(!e||Y<e)return 0;d=w0(T,I8(d.info.zG,!0,q));return d.G||d.timedOut||d.started?0:2};
  5206. uvn=function(d,q,T){if(!(q.Ds&&d.isComplete()&&d.canRetry()&&d.info.zG.VK(q,T))||d.info.zG.B)return 0;d=w0(T,I8(d.info.zG,!1,q));return d.U+q.Ds*DT(d,!0)>(0,g.cj)()?0:1};
  5207. UY=function(d,q,T,Y,e,U,b,J,F,N,R,x,y,h){h=h===void 0?null:h;g.W.call(this);var H=this;this.loader=d;this.policy=q;this.videoTrack=T;this.audioTrack=Y;this.T=e;this.G=U;this.timing=b;this.S=J;this.schedule=F;this.vv=N;this.j=R;this.lr=x;this.Ie=y;this.Rg=h;this.UD=!1;this.hP="";this.Fb=null;this.MM=NaN;this.yv=!1;this.U=null;this.vr=this.K=NaN;this.XQ=this.X=0;this.logger=new g.cb("dash");this.fC={Ub:function(a,p){return H.Ub(a,p)}};
  5208. this.policy.SC>0&&(this.hP=g.RC(this.policy.SC));this.policy.t0&&(this.B=new eB(this.loader,this.policy,this.schedule),g.C(this,this.B))};
  5209. Ddj=function(d,q,T){var Y=q.U?q.U.G.zG:q.G.zG;var e=d.T,U;(U=!d.policy.Mr)||(U=SK(Y.G)===SK(Y.U));U?Y=!1:(e=w0(e,SK(Y.U)),U=6E4*Math.pow(e.T,1.6),(0,g.cj)()<e.U+U?Y=!1:(e.U=(0,g.cj)(),e.T+=1,Y.G=Y.U.clone(),Y=!0));Y&&d.loader.oU("hostch",{},!0);if(bo(d,q,T)){T=d.L(q,T);if(d.U){var b=T.Zw[0].G.info.id;Y=d.G;e=T.Zw[0].sD;Y=e<0&&!isNaN(Y.X)?Y.X:e;e=Vh(d.G,T.Zw[0].T,Y);var J=q===d.audioTrack?1:2,F=T.Zw[0].G.info.Cf;U=b.split(";")[0];a:{var N=d.G;if(N.G){var R=N.G.iC.event;if(N.G.sD===Y){N=R==="predictStart"?
  5210. void 0:N.G.iC.event;break a}if(N.G.sD===Y-1){N=R==="start"||R==="continue"?R:void 0;break a}}N=void 0}if(d.policy.dO&&d.G.U!==0){var x=d.U.Ta(e,Y,b,J,F,N);Y<0&&J===2&&df(d.G,0,0,!0);if(x){var y;b=((y=x.Gs)==null?void 0:y.aI)||"";var h;y=((h=x.Gs)==null?void 0:h.zo)||-1;d.loader.oU("sdai",{ssdaiinfo:"1",ds:b,skipsq:y,itag:U,f:F,sg:Y,st:e.toFixed(3)});T.T=x}}else if(h=d.U.xF(e,Y,b,J,F,N),Y<0&&J===2&&df(d.G,0,0,!0),h){y={dec_sq:Y,itag:U,st:e.toFixed(3)};if(d.policy.nR&&q.isRequestPending(Y-1)){d.loader.oU("sdai",
  5211. {wt_daistate_on_sg:Y-1});return}d.loader.oU("sdai",y);h&&(T.G=new g.Ig(h));d.policy.j&&(h=T.zG.w_("id")||"",y=((x=T.G)==null?void 0:x.get("id"))||"",h!==y&&d.loader.oU("stmidmismatch",{cid:h,aid:y}))}else d.G.U!==5&&d.loader.oU("sdai",{nodec_sq:Y,itag:U,st:e.toFixed(3)})}d.policy.bV&&T.Zw[0].sD!==-1&&T.Zw[0].sD<d.vv.QX&&(T=q.G.UX(d.vv.QX,!1));Wo(q,Xw(d,T));I3(d.timing);var H;(H=d.B)==null||Pen(H,T.zG)}};
  5212. bo=function(d,q,T){if(d.policy.wU)return!1;var Y;var e=d.G,U=((Y=q.U)==null?void 0:Y.sD)||-1;!e.policy.Kz&&e.U===3&&U+1>=e.T?(e.oU("sdai",{haltrq:U+1,est:e.T}),Y=!1):Y=e.U!==2;if(!Y||!mU(q.U?q.U.G.zG:q.G.zG,d.policy,d.T,d.loader.DL())||d.loader.isSuspended&&(!mz(d.schedule)||d.loader.zk))return!1;if(d.policy.T&&UB>=5)return g.zh(d.loader.nM),!1;if(d.vv.isManifestless){if(q.j.length>0&&q.U&&q.U.sD===-1||q.j.length>=d.policy.sQ||!d.policy.Cd&&q.j.length>0&&!d.policy.L.zz)return!1;if(q.L)return!d.vv.isLive||
  5213. !isNaN(d.MM)}if(OON(q))return d.logger.debug("Pending request with server-selectable format found"),!1;if(!q.U){if(!q.G.pj())return!1;Uj(q,d.loader.getCurrentTime())}if(sj(q)&&(q.N1()!==sj(q)||d.loader.isSuspended))return!1;e=(Y=d.policy.MJ)&&!q.j.length&&is(q,!0)<Math.min(Y,is(T));Y=q.j.length+T.j.length;U=!d.policy.kh&&((q.j.length?q.j[0].fZ():!1)||(T.j.length?T.j[0].fZ():!1)||d.vv.isLive);(e||U)&&--Y;if(Y+1>=d.policy.pL)return!1;Y=q.U;if(!Y)return!0;Y.type===4&&Y.G.pj()&&(q.U=g.yN(Y.G.IV(Y)),Y=
  5214. q.U);if(!Y.qQ()&&!Y.G.lG(Y))return!1;U=d.vv.uC||d.vv.T;if(d.vv.isManifestless&&U){U=q.G.index.nC();var b=T.G.index.nC();U=Math.min(U,b);if(q.G.index.YD()>0&&U>0&&Y.sD>=U)return q.z2=U,T.z2=U,!1}if(Y.G.info.audio&&Y.type===4||Y.qQ())return!1;U=!q.S&&!T.S;if(e=!e)e=Y.X,e=!!(T.U&&!z0(T.U)&&T.U.X<e);b=q===d.videoTrack&&d.policy.rO;return e&&(!d.vv.isManifestless||T.U&&T.U.X&&Y.X)&&U&&!b||d.policy.fn&&!q.S&&T.S?!1:Yw(Y)&&Y.X>wxg(d,q)?(wxg(d,q),!1):(d=q.RN)&&d.isLocked()?!1:!0};
  5215. wxg=function(d,q){var T=d.G;T=T.G?T.G.iC:null;if(d.policy.rO&&T)return T.startSecs+T.sS+15;q=e6(d.loader,q);d.policy.lF>0&&(T=((0,g.cj)()-d.loader.IT)/1E3,q=Math.min(q,d.policy.lF+d.policy.Y1*T));q=d.loader.getCurrentTime()+q;return d.policy.LL&&(T=fN2(d.loader)+d.policy.LL,T<q)?(d.loader.oU("mrl",{ori:q,mod:T},!0),d.policy.wm&&JW(d.loader),T):q};
  5216. zhY=function(d,q,T){if(T!==0){a:if(q=q.info,T=T===2,q.G)q=null;else{var Y=q.Zw[0];if(q.range)var e=VL(q.range.start,Math.min(4096,q.j));else{if(q.U&&q.U.indexOf("/range/")>=0||q.zG.w_("defrag")==="1"||q.zG.w_("otf")==="1"){q=null;break a}e=VL(0,4096)}e=new Jl([new qG(5,Y.G,e,"createProbeRequestInfo"+Y.L,Y.sD)],q.U);e.VK=T;e.G=q.G;q=e}q&&Xw(d,q)}};
  5217. Xw=function(d,q){d.loader.FO(q);var T=t7j(q),Y=d.loader.PH();T={Tq:d.schedule,mO:T,e4:xeI(d.S,T),q4:TE(q.Zw[0]),cO:lt(q.zG.G),Y4:d.policy.j,D1:function(b,J){d.loader.d0(b,J)}};
  5218. if(d.schedule.U.X){var e,U;T.D5=(((e=d.videoTrack.G)==null?void 0:e.info.Vv)||0)+(((U=d.audioTrack.G)==null?void 0:U.info.Vv)||0)}d.Fb&&(T.sD=q.Zw[0].sD,T.MM=q.MM,T.Fb=d.Fb);Y={fb:BPj(q,d.loader.getCurrentTime()),Te:d.policy.vA&&$w(q)&&q.Zw[0].G.info.video?tuX(d.j):void 0,yT:d.policy.rO,poToken:d.loader.gK(),cq:d.loader.C9(),hP:d.hP,vr:isNaN(d.vr)?null:d.vr,Rg:d.Rg,Ie:d.Ie,XQ:d.XQ,UJ:Y};return new qO(d.policy,q,T,d.T,function(b,J){try{a:{var F=b.info.Zw[0].G,N=F.info.video?d.videoTrack:d.audioTrack;
  5219. if(!(b.state>=2)||b.isComplete()||b.W9()||!(!d.loader.ED||d.loader.isSuspended||is(N)>3)){var R=CeD(b,d.policy,d.T);R===1&&(d.yv=!0);zhY(d,b,R);if(b.isComplete()||b.JF()&&J<3){if(d.policy.j){var x=b.timing.Xq();x.rst=b.state;x.strm=b.xhr.wf();x.cncl=b.xhr&&b.Id.T?1:0;d.loader.oU("rqs",x)}b.m5&&d.loader.oU("sbwe3",{},!0)}if(!d.JF()&&b.state>=2){VLn(d.timing,b,F);var y=d.loader;d.vr&&b.AY&&y&&(d.vr=NaN,d.loader.DK(b.AY),d.loader.q7(),d.loader.oU("cabrUtcSeek",{mediaTimeSeconds:b.AY}));b.bY&&d.vr&&b.bY&&
  5220. !b.bY.action&&(d.loader.Md(d.vr),d.vr=NaN,d.loader.oU("cabrUtcSeekFallback",{targetUtcTimeSeconds:d.vr}));b.fW&&d.loader.J3(b.fW);d.policy.LC&&(d.XQ=b.XQ);if(b.state===3){SM(N,b);$w(b.info)&&sY(d,N,F,!0);if(d.U){var h=b.info.xF();h&&d.U.RQ(b.info.Zw[0].sD,F.info.id,h)}d.loader.Yo()}else if(b.isComplete()&&b.info.Zw[0].type===5){if(b.state!==4)b.E5()&&d.loader.handleError(b.nA(),b.P$());else{var H=(b.info.Zw[0].G.info.video?d.videoTrack:d.audioTrack).j[0]||null;H&&H instanceof qO&&H.W9()&&H.UW()}b.dispose()}else{b.E5()||
  5221. iOX(d,b);var a;((a=b.Sg)==null?0:a.itagDenylist)&&d.loader.NH(b.Sg.itagDenylist);if(b.state===4)$W(d,b),d.G&&e86(d.G,b.info,d.U);else if(d.policy.pW&&b.Vs()&&!b.isComplete()&&!$W(d,b)&&!b.E5())break a;b.E5()&&(INj(d,b),isNaN(d.vr)||(d.loader.Md(d.vr),d.vr=NaN));d.policy.Ln&&!b.isComplete()?gZ(d.loader):d.loader.Yo();var p=uvn(b,d.policy,d.T);zhY(d,b,p)}}}}}catch(t){J=d.UD?1:0,d.UD=!0,b=yb(J),J=hQ(t,J),d.loader.handleError(J.errorCode,J.details,J.severity),b||d.loader.ZE()}},Y)};
  5222. iOX=function(d,q){if(q.f5&&q.state>=2&&q.state!==3){var T=q.xhr.getResponseHeader("X-Response-Itag");if(T){d.logger.debug(function(){return"Applying streamer-selected format "+T});
  5223. var Y=rl2(d.j,T),e=q.info.j;e&&(e-=Y.wG(),Y.j=!0,q.info.Zw[0].G.j=!1,Zj1(q,Y.Sd(e)),Fw(d.loader,d.videoTrack,Y),n82(d.videoTrack,Y),d.loader.q6(Y.info.video.quality),(e=q.TI())&&Y.info.lastModified&&Y.info.lastModified!==+e&&SM(d.videoTrack,q))}else q.f5=!1}};
  5224. INj=function(d,q){var T=q.info.Zw[0].G,Y=q.nA();if(lt(T.zG.G)){var e=g.pp(q.P4(),3);d.loader.oU("dldbrerr",{em:e||"none"})}e=q.info.Zw[0].sD;var U=Vh(d.G,q.info.Zw[0].T,e);Y==="net.badstatus"&&(d.X+=1);if(q.canRetry()&&Ny(d.loader)){if(!(q.info.zG.j>=d.policy.NK&&d.U&&q.info.isDecorated()&&Y==="net.badstatus"&&d.U.JI(U,e))){e=(T.info.video&&T.zG.j>1||q.v4===410||q.v4===500||q.v4===503)&&!(bs(d.j.S).size>0)&&!lt(T.zG.G);U=q.P$();var b=T.info.video?d.videoTrack:d.audioTrack;e&&(U.stun="1");d.loader.handleError(Y,
  5225. U);d.JF()||(e&&(d.logger.debug(function(){return"Stunning format "+T.info.id}),Ft(d.j,T)),SM(b,q),d.loader.Yo())}}else b=1,d.U&&q.info.isDecorated()&&Y==="net.badstatus"&&d.U.JI(U,e)&&(b=0),d.vv.isLive&&q.nA()==="net.badstatus"&&d.X<=d.policy.TB*2?(PND(d.vv),d.vv.uC||d.vv.isPremiere?Jk(d.loader,0,{b$:"badStatusWorkaround"}):d.vv.T?Jk(d.loader,d.vv.rO,{b$:"badStatusWorkaround",
  5226. Xt:!0}):R7(d.loader)):d.loader.handleError(Y,q.P$(),b)};
  5227. $W=function(d,q){if(d.policy.useUmp&&q.JF())return!1;try{var T=q.info.Zw[0].G,Y=T.info.video?d.videoTrack:d.audioTrack;if(d.vv.isManifestless&&Y){d.X=0;Y.L&&(q.JF(),q.isComplete()||q.Vs(),Y.L=!1);q.Dq()&&d.loader.S9.gH(1,q.Dq());var e=q.YD(),U=q.Mg();vb(d.vv,e,U)}if(q.info.q4()&&!s$(q.info))for(var b=g.E(q.kz()),J=b.next();!J.done;J=b.next())hh7(Y,J.value);for(d.loader.getCurrentTime();Y.j.length&&Y.j[0].state===4;){var F=Y.j.shift();yjf(Y,F);Y.RU=F.oh()}Y.j.length&&yjf(Y,Y.j[0]);var N=!!sj(Y);N&&
  5228. q instanceof dK&&(T.info.JE()?ijQ(d.timing):zjX(d.timing));return N}catch(R){q=q.P$();q.origin="hrhs";a:{d=d.loader;T=R;if(T instanceof Error){q.msg||(q.msg=""+T.message);q.name||(q.name=""+T.name);if(T instanceof g.CW&&T.args)for(Y=g.E(Object.entries(T.args)),e=Y.next();!e.done;e=Y.next())U=g.E(e.value),e=U.next().value,U=U.next().value,q["arg"+e]=""+U;g.OL(T);if(T.level==="WARNING"){d.G2.zH(q);break a}}d.handleError("fmt.unplayable",q,1)}return!1}};
  5229. md6=function(d){var q=d.videoTrack.G.index;d.Fb=new kHI({zv:d.policy.zv,zz:d.policy.L.zz,bO:q.qc(),nC:function(){return q.nC()},
  5230. XZ:function(){return q.XZ()}})};
  5231. sY=function(d,q,T,Y){if(!(T.pj()||T.Rw()||T.j||!mU(T.zG,d.policy,d.T,d.loader.DL())||T.info.Cf==="f"||d.policy.G)){if(Y){Y=d.S;var e=T.info;Y=yFg(Y,e.video?Y.policy.WV:Y.policy.Y6,e.Vv)}else Y=0;Y=T.Sd(Y);d=Xw(d,Y);s$(Y)&&Wo(q,d);T.j=!0}};
  5232. BM=function(d,q,T,Y,e,U,b,J){g.W.call(this);var F=this;this.loader=d;this.xo=q;this.videoTrack=T;this.audioTrack=Y;this.vv=e;this.K=U;this.isAudioOnly=b;this.B=J;this.U=xp;this.yv=!1;this.logger=new g.cb("sabr");this.L=this.UD=this.lr=!1;this.videoInfos=this.X=this.K.videoInfos;this.j=this.rO=this.K.G;this.G=new eM(q,U,function(N,R){F.loader.oU(N,R)});
  5233. this.isAudioOnly&&S4Q(this,this.vv.G["0"])};
  5234. lN_=function(d,q){var T=[];q=g.E(q);for(var Y=q.next();!Y.done;Y=q.next())T.push(g.DB(Y.value,d.vv.aN));return T};
  5235. S4Q=function(d,q,T){q!==d.T&&(d.T&&(d.yv=!0),d.T=q,d.nJ(q,d.videoTrack,T))};
  5236. VJH=function(d,q){d.logger.debug("setConstraint: "+BI(q));BX(d.xo)&&(d.UD=q.reason==="m"||q.reason==="l"?!0:!1);q.reason==="m"?q.isLocked()&&v8g(d,q.G):o8_(d,q)?KH(d,q.U,q.G):d.videoInfos=d.X;d.U=q};
  5237. o8_=function(d,q){return d.xo.ov&&q.reason==="b"||d.xo.MW&&q.reason==="l"||d.xo.tY?!1:d.xo.iq?!0:q.reason==="l"||q.reason==="b"||q.reason==="o"};
  5238. diD=function(d,q){return q.isLocked()&&d.G.U||d.U===void 0?!1:q.equals(d.U)};
  5239. qmf=function(d,q){var T,Y=(T=d.T)==null?void 0:T.info.video.qualityOrdinal;return d.yv?!0:d.T?q!==Y?!0:!d.G.U||d.xo.Vt&&d.G.G===d.T.info.itag?!1:!0:!1};
  5240. v8g=function(d,q){var T=d.G.G;if(T){d.videoInfos=d.X;var Y=g.QN(d.videoInfos,function(e){return e.id===T});
  5241. Y&&Y.video.qualityOrdinal===q?d.videoInfos=[Y]:(Y=d.videoInfos.map(function(e){return e.id}),d.loader.oU("sabrpf",{pfid:""+T,
  5242. vfids:""+Y.join(".")}),KH(d,q,q),Xt(d.G,""))}else KH(d,q,q)};
  5243. KH=function(d,q,T){d.videoInfos=d.X;d.videoInfos=g.Zl(d.videoInfos,function(Y){return Y.video.qualityOrdinal>=q&&Y.video.qualityOrdinal<=T})};
  5244. TnH=function(d,q,T){if(d.B){var Y=g.Zl(d.j,function(e){return e.id===d.B});
  5245. return G$(Y,T).includes(q)}Y=g.Zl(d.j,function(e){var U;return!((U=e.DQ)==null||!U.isDefault)});
  5246. return Y.length>0?G$(Y,T).includes(q):G$(d.j,T).includes(q)};
  5247. G$=function(d,q){return d.map(function(T){return SL(g.DB(T,q))})};
  5248. YmQ=function(d){var q;if((q=d.U)==null?0:q.isLocked())return d.videoInfos;var T=bs(d.G);q=g.Zl(d.videoInfos,function(Y){return Y.Vv>d.xo.Vv?!1:!T.has(Y.id)});
  5249. FFH(d.G)&&(q=g.Zl(q,function(Y){return Y.video.width<=854&&Y.video.height<=480}));
  5250. return q};
  5251. Ui6=function(d,q,T){var Y=d.vv,e=d.G2.getVideoData(),U=d.Wj,b=cu_({Mk:e.C(),G2:d.G2,o8:d.o8,xo:d.xo,gE:d.gE,SI:d.SI,lX:d.lX,Ju:d.Ju,OZ:d.OZ,isPrefetch:d.isPrefetch,yF:d.yF,sabrLicenseConstraint:e.sabrLicenseConstraint,ph:d.ph,jd:d.jd,Hh:d.Hh,un:d.un,Ys:!!U,authorizedFormats:e.authorizedFormats}),J=Kz(e,d.UJ,d.nextRequestPolicy,d.AD,d.pD,d.Qf,d.XP);T&&q&&(T=J.zD?J.zD.map(function(x){return x.type}):[],q("sabr",{stmctxt:T.join("_"),
  5252. unsntctxt:J.B6?J.B6.join("_"):""}));q=d.g0;T=d.Bj;if(T===void 0&&q===void 0){var F;T=eqX(Y.aN,(F=d.j6)==null?void 0:F.video);var N;q=eqX(Y.aN,(N=d.j6)==null?void 0:N.audio)}if(e.Rg)var R=e.Rg;e={zd:b,At:d.At,g0:q,Bj:T,Wj:U,videoPlaybackUstreamerConfig:R,Ti:J};d.Gs&&(e.Gs=d.Gs);e.wz=d.wz;e.rb=Y.xx;return e};
  5253. eqX=function(d,q){return q?[g.DB(q.info,d)]:[]};
  5254. LH=function(d,q,T){var Y=this;this.requestType=d;this.zG=q;this.yp=T;this.U=null;this.fC={OWf:function(){var e;return(e=Y.data)==null?void 0:e.isPrefetch},
  5255. pD:function(){var e;return(e=Y.data)==null?void 0:e.pD}}};
  5256. u0N=function(d,q,T){q=i8(d.zG,bID(d,q,T),q);d.l8()&&q.set("probe","1");return q};
  5257. bID=function(d,q,T){d.VK===void 0&&(d.VK=d.zG.VK(q,T));return d.VK};
  5258. XT2=function(d){var q,T;return((q=d.G)==null?void 0:(T=q.zd)==null?void 0:T.cg)||0};
  5259. JJX=function(d){var q,T;return!!((q=d.G)==null?0:(T=q.zd)==null?0:T.ph)};
  5260. snQ=function(d){var q={},T=[],Y=[];if(!d.data)return q;for(var e=0;e<d.data.wz.length;e++){var U=d.data.wz[e],b=void 0;T.push("i."+((b=U.formatId)==null?void 0:b.itag)+"_st."+(U.startTimeMs+"_e."+(U.startTimeMs+U.durationMs)+"_d."+U.durationMs)+("_sn."+U.QK)+("_en."+U.wA))}for(e=0;e<d.data.At.length;e++){U=d.data.At[e];var J=b=void 0,F=void 0,N=void 0;Y.push("i."+((b=U.formatId)==null?void 0:b.itag)+"_sn."+U.sequenceNumber+"_sl."+(U.g4||NaN)+"_lb."+U.OR+"_tr.s_"+((J=U.Ss)==null?void 0:J.startTicks)+
  5261. "_d_"+((F=U.Ss)==null?void 0:F.Ou)+"_t_"+((N=U.Ss)==null?void 0:N.timescale)+"_ed_"+U.Wk)}q.ptime=XT2(d);q.rtype=d.requestType;q.brl=T.join(";");q.ps=Y.join(";");return q};
  5262. $i_=function(d){this.G=d;this.iv=(0,g.GM)(N9(16))};
  5263. F8D=function(d,q){var T;return g.G(function(Y){(0,g.cj)();if(d.G.G)return Y.return(gl1(d,q,d.iv));T=aDD(d.G);return Y.return(T.encrypt(q,d.iv))})};
  5264. NnY=function(d,q){(0,g.cj)();var T;if((T=d.G.G)==null)var Y=void 0;else a:{d=d.iv;try{var e=EKQ(T,q,d),U=T.G.rZ(d),b=T.G,J=T.T,F=new Uint8Array(b.exports.memory.buffer,b.malloc(32),32);b.exports.Sha256Hmac(J.byteOffset,J.byteLength,U.byteOffset,U.byteLength,e.byteOffset,e.byteLength,F.byteOffset);T.G.free(U.byteOffset);Y={jw:T.G.q$(e),signature:T.G.q$(F)};break a}catch(N){g.OL(Error("ocwceas: wasm encryptAndSign failed: "+N))}Y=void 0}return Y};
  5265. Rq2=function(d,q){var T;return g.G(function(Y){(0,g.cj)();var e=d.G;e.S||(e.S=new $9f(e.j));T=e.S;return Y.return(N41(T,q,d.iv))})};
  5266. xin=function(d,q,T){var Y;return g.G(function(e){(0,g.cj)();if(d.G.G)return e.return(gl1(d,q,T));Y=aDD(d.G);return e.return(Y.decrypt(q,T))})};
  5267. yJj=function(d,q,T){var Y,e=(Y=d.G.G)==null?void 0:Y.encrypt(q,T);return e?e:(new g.gE(d.G.U)).encrypt(q,T)};
  5268. gl1=function(d,q,T){var Y;return g.G(function(e){switch(e.U){case 1:var U=d.G;var b=sn();U=b?new $U(U.U,b):void 0;Y=U;if(!Y){e.tF(2);break}g.jD(e,3);return g.B(e,Y.encrypt(q,T),5);case 5:return e.return(e.G);case 3:g.nN(e);case 2:return e.return(yJj(d,q,T))}})};
  5269. kW=function(d){g.W.call(this);var q=this;this.Pv=d;this.G=new Map;this.T=[];this.U=!sn();this.K=g.Yv(this.Pv.experiments,"html5_onesie_prewarm_interval_ms");this.B=new g.f9(this.L,this.K,this);this.X=-1;this.fC={VNv:function(){return q.G},
  5270. l0w:function(){return q.S},
  5271. KLv:function(){return hq1}};
  5272. g.C(this,this.B);oeN(this,g.Zs("yt-player-bandaid-host"));this.S=this.load();this.K&&this.S.then(function(){q.L()})};
  5273. oeN=function(d,q){var T=q==null?void 0:q.primary;d.j(0,T);T=T?HIj(T):void 0;d.j(2,T);d.j(1,q==null?void 0:q.secondary)};
  5274. PM=function(d,q){return new g.Ig("https://"+q+d.Pv.pC.baseUrl)};
  5275. Qn1=function(d,q){d="https://"+SK(q.location)+"/initplayback?c="+Hx(d.Pv)+"&owc=1";ii(d,"pw",function(T){T.ht=q.G})};
  5276. WM=function(d,q,T,Y){ii("https://"+q+"/videoplayback?probe=1",T,function(e){!Y.N("html5_onesie_host_racing")||Y.videoData.isLivePlayback||Y.N("html5_onesie_probe_ec_hosts")||Y.SA||Y.vt();d.T.push(e)},function(e){d.T.push(e.details)})};
  5277. HIj=function(d){return d.replace(/(\d+)---/g,function(q,T){q=Number(T);return(q===1?2:q-1)+"---"})};
  5278. MZX=function(d,q){var T,Y,e,U,b,J,F,N;return g.G(function(R){if(R.U==1){T=PM(d,"redirector.googlevideo.com");T.set("alr","yes");T.set("id",""+Math.round(Math.random()*1E5));if(q===1||q===2)T.set("cmo=sensitive_content","yes"),T.set("sc","yes");q===2&&T.set("cmo=td","c.youtube.com");Y={format:"RAW",timeout:5E3};return g.B(R,E3(T.Hl(),Y),2)}e=R.G;if(e.xhr.status!==200||!e.xhr.responseText)return R.return(Promise.reject(new g.CW("b204258371_no_host",T.Hl(),e.xhr.status)));U=new g.Ig(e.xhr.responseText);
  5279. b=SK(U);J=U.get("ms");F=PM(d,b);N=U.get("mm");F.set("ms",J);F.set("mm",N);return b&&veH(b)?q!==2||a3(b)?R.return(F):R.return(Promise.reject(new g.CW("b204258371_untrusted",b,J))):R.return(Promise.reject(new g.CW("b204258371_invalid",b,J)))})};
  5280. cJg=function(d){var q=d.T;d.T=[];return q};
  5281. veH=function(d){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(d)};
  5282. a3=function(d){var q=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(d)&&!q.test(d)};
  5283. ElY=function(d,q){this.location=d;this.G=q};
  5284. jnI=function(d){this.Og=d;this.U=!1;this.G=[]};
  5285. uo=function(d){for(;d.G.length&&!d.G[0].isEncrypted;){var q=d.G.shift(),T=q.videoId,Y=q.ra,e=q.formatId,U=q.buffer;q=q.NV;if(U)q=void 0,(q=CH(d.Og.u$,T))==null||zM(q,Y,e,U);else if(q)d.Og.u$.SN(T,Y,e);else if(Y=d.Og,Y.G[e].Cc=!0,T=CH(Y.u$,T),T==null?0:T.vG.has(e))T==null||uk(T,e)}};
  5286. g.pT1=function(d){this.data=d;this.G=0;this.T=!1;this.j=0;this.error=!1;this.register=this.U=0;if(DM.length===0){DM.length=288;DM.fill(8);for(d=144;d<280;d++)DM[d]=d<=255?9:7;ain.length=32;ain.fill(5);wZ.length=286;wZ.fill(0);for(d=261;d<285;d++)wZ[d]=Math.floor((d-261)/4);fH[257]=3;for(d=258;d<285;d++){var q=fH[d-1];q+=1<<wZ[d-1];fH[d]=q}fH[285]=258;for(d=0;d<30;d++)AJY[d]=d<=3?0:Math.floor((d-2)/2);for(d=z$[0]=1;d<30;d++)q=z$[d-1],q+=1<<AJY[d-1],z$[d]=q}d=100+7*this.data.length;this.data[0]===31&&
  5287. this.data[1]===139&&(d=(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(d)};
  5288. g.Bn2=function(d){for(;!d.T&&!d.error;){var q=d;q.T=!!io(q,1);switch(io(q,2)){case 2:var T=[],Y=[];Y.length=19;Y.fill(0);var e=io(q,5)+257;var U=io(q,5)+1;for(var b=io(q,4)+4,J=0;J<b;J++)Y[ZIg[J]]=io(q,3);Y=OIf(Y);for(b=e+U;T.length<b;){J=nlX(q,Y);switch(J){case 16:J=T[T.length-1];var F=io(q,2)+3;break;case 17:J=0;F=io(q,3)+3;break;case 18:J=0;F=io(q,7)+11;break;default:F=1}for(;F>0;F--)T.push(J)}T.length!==b?q.error=!0:(U=T.slice(-U),T.length=e,rJ7(q,T,U));break;case 1:rJ7(q,DM,ain);break;case 0:tZn(q,
  5289. q.G&7);T=io(q,16);e=io(q,16);(T^e)!==65535&&(q.error=!0);q.output.set(q.data.subarray(q.U,q.U+T),q.j);q.U+=T;q.j+=T;break;default:q.error=!0}d.j>d.output.length&&(d.output=new Uint8Array(d.j*2),d.j=0,d.U=0,d.T=!1,d.G=0,d.register=0)}d.output.length!==d.j&&(d.output=d.output.subarray(0,d.j));return d.error?new Uint8Array(0):d.output};
  5290. rJ7=function(d,q,T){q=OIf(q);T=OIf(T);for(var Y=d.data,e=d.output,U=d.j,b=d.register,J=d.G,F=d.U;;){if(J<15){if(F>Y.length){d.error=!0;break}b|=(Y[F+1]<<8)+Y[F]<<J;F+=2;J+=16}var N=q[b&127];if(N<0)for(b>>=7;N<0;)N=q[(b&1)-N],b>>=1;else b>>=N&15;J-=N&15;N>>=4;if(N<256)e[U++]=N;else if(d.register=b,d.G=J,d.U=F,N>256){b=fH[N];b+=io(d,wZ[N]);F=nlX(d,T);J=z$[F];J+=io(d,AJY[F]);if(K86&&b<J)J=U-J,e.copyWithin(U,J,J+b);else for(F=U+b,N=U;N<F;N+=4)e[N]=e[N-J],e[N+1]=e[N-J+1],e[N+2]=e[N-J+2],e[N+3]=e[N-J+3];
  5291. U+=b;b=d.register;J=d.G;F=d.U}else break}d.j=U};
  5292. nlX=function(d,q){if(d.G<7){var T=d.data,Y=d.U;Y>T.length&&(d.error=!0);d.register|=(T[Y+1]<<8)+T[Y]<<d.G;d.U+=2;d.G+=16}T=q[d.register&127];if(T>=0)return tZn(d,T&15),T>>4;for(tZn(d,7);T<0;)T=q[io(d,1)-T];return T>>4};
  5293. io=function(d,q){for(;d.G<q;){if(d.U>=d.data.length)return d.error=!0,0;d.register|=d.data[d.U++]<<d.G;d.G+=8}var T=d.register&(1<<q)-1;d.register>>=q;d.G-=q;return T};
  5294. tZn=function(d,q){d.G-=q;d.register>>=q};
  5295. OIf=function(d){for(var q=[],T=g.E(d),Y=T.next();!Y.done;Y=T.next())Y=Y.value,q[Y]||(q[Y]=0),q[Y]++;var e=q[0]=0;T=[];var U=0;Y=0;for(var b=1;b<q.length;b++)q[b]?Y=b:q[b]=0,e=e+q[b-1]<<1,T[b]=e,b>7&&(U+=q[b]);for(e=1;e<U;)e<<=1;q=128;Y=new Int16Array(128+(e+Y)*2);for(U=0;U<d.length;U++)if(b=d[U]){for(var J=T[b]++,F=e=0;F<b;F++)e=e<<1|J>>F&1;J=U<<4|b;if(b<=7)for(F=1<<7-b;F--;)Y[F<<b|e]=J;else{F=e&127;b-=7;for(e>>=7;b--;){Y[F]||(Y[F]=-q,q+=2);var N=e&1;e>>=1;F=N-Y[F]}Y[F]=J}}return Y};
  5296. L82=function(d){var q,T,Y,e,U,b,J,F,N;return g.G(function(R){switch(R.U){case 1:if(!GFQ)throw Error("DecompressionStream is not supported");q=nO.ji();T=new DecompressionStream("gzip");Y=T.writable.getWriter();Y.write(d);Y.close();e=T.readable.getReader();U=new e2([]);case 2:return g.B(R,e.read(),5);case 5:b=R.G;J=b.value;if(F=b.done){R.tF(4);break}U.append(J);R.tF(2);break;case 4:return N=$X(U),nO.Ed("gznb",q,Math.ceil(N.byteLength/16)),R.return(N)}})};
  5297. kF6=function(d){kI.call(this,"onesie");this.u$=d;this.G={};this.T=!0;this.j=null;this.queue=new jnI(this);this.S={}};
  5298. PS2=function(d){var q=d.queue;q.G.length&&q.G[0].isEncrypted&&!q.U&&(q.G.length=0);q=g.E(Object.keys(d.G));for(var T=q.next();!T.done;T=q.next()){T=T.value;var Y=d.G[T];if(!Y.Cc){var e=d.queue;e.G.push({videoId:Y.videoId,formatId:T,isEncrypted:!1});e.U||uo(e)}}};
  5299. W8I=function(d,q){var T=q.totalLength,Y=!1;switch(d.j){case 0:d.aX(q,d.T).then(function(e){var U=d.u$;U.D$("oprr");U.playerResponse=e;U.Xo||(U.NL=!1);I7(U)},function(e){d.u$.fail(e)});
  5300. break;case 2:d.D$("ormk");q=$X(q);d.queue.decrypt(q);break;default:Y=!0}d.u$.Fu&&d.u$.oU("ombup","id.11;pt."+d.j+";len."+T+(Y?";ignored.1":""));d.j=null};
  5301. CSf=function(d,q){var T,Y,e,U,b;return g.G(function(J){switch(J.U){case 1:d.u$.D$("oprgz_s");if(!GFQ){J.tF(2);break}g.jD(J,3);return g.B(J,L82(q),5);case 5:return T=J.G,d.u$.D$("oprgz_n"),J.return(T);case 3:Y=g.nN(J),d.u$.oU("gzerr",{impl:"native",err:""+Y});case 2:if(e=d.u$.C().Pf)try{var F=nO.ji(),N=e.rZ(q),R=e,x=N!=null?N:q,y=x.byteOffset,h=x.byteLength,H=R.exports.getInflatedSize(y,h);if(H===0)throw Error("wasm_gz: bad input");var a=R.malloc(H),p=R.exports.inflateGzip(y,h,a);if(p)throw R.free(a),
  5302. Error("wasm_gz: fail"+p);var t=new Uint8Array(R.exports.memory.buffer,a,H);N&&e.free(N.byteOffset);var n=e.q$(t);nO.Ed("gzwb",F,Math.ceil(n.byteLength/16));U=n;d.u$.D$("oprgz_w");return J.return(U)}catch(K){d.u$.oU("gzerr",{impl:"wasm",err:""+K})}F=nO.ji();N=g.Bn2(new g.pT1(q));nO.Ed("gzjb",F,Math.ceil(N.byteLength/16));b=N;d.u$.D$("oprgz_p");return J.return(b)}})};
  5303. uWI=function(d){return new Promise(function(q){setTimeout(q,d)})};
  5304. Di_=function(d,q){var T=d.C();T=d.t0&&T.N("html5_onesie_preload_use_content_owner");var Y=d.kt,e=Md(q.Pv.experiments,"debug_bandaid_hostname");if(e)q=PM(q,e);else if((T===void 0?0:T)&&(Y==null?0:Y.url)&&!q.U){var U=SK(new g.Ig(Y.url));q=PM(q,U)}else q=(U=q.G.get(0))==null?void 0:U.location.clone();if(q&&d.videoId){U=Bx(d.videoId);d=[];if(U)for(U=g.E(U),T=U.next();!T.done;T=U.next())d.push(T.value.toString(16).padStart(2,"0"));q.set("id",d.join(""));return q}};
  5305. wT_=function(d,q,T){T=T===void 0?0:T;var Y,e;return g.G(function(U){if(U.U==1)return Y=[],Y.push(q.load()),T>0&&Y.push(uWI(T)),g.B(U,Promise.race(Y),2);e=Di_(d,q);return U.return(e)})};
  5306. fi_=function(d,q,T,Y){Y=Y===void 0?!1:Y;d.set("cpn",q.clientPlaybackNonce);d.set("opr","1");var e=q.C();d.set("por","1");sn()||d.set("onem","1");q.startSeconds>0&&d.set("osts",""+q.startSeconds);Y||(e.N("html5_onesie_disable_partial_segments")&&d.set("oses","1"),q=e.N("html5_gapless_onesie_no_media_bytes")&&Zu(q)&&q.t0,T&&!q?(q=T.audio,d.set("pvi",T.video.join(",")),e.N("html5_onesie_disable_audio_bytes")||d.set("pai",q.join(",")),QU||d.set("osh","1")):(d.set("oad","0"),d.set("ovd","0"),d.set("oaad",
  5307. "0"),d.set("oavd","0")))};
  5308. zq6=function(d,q,T,Y,e){e=e===void 0?!1:e;var U="https://youtubei.googleapis.com/youtubei/"+q.Kq.innertubeApiVersion+"/player",b=[{name:"Content-Type",value:"application/json"}];Y&&b.push({name:"Authorization",value:"Bearer "+Y});b.push({name:"User-Agent",value:g.k9()});g.Cs("EOM_VISITOR_DATA")?b.push({name:"X-Goog-EOM-Visitor-Id",value:g.Cs("EOM_VISITOR_DATA")}):(T=T.visitorData||g.Cs("VISITOR_DATA"))&&b.push({name:"X-Goog-Visitor-Id",value:T});(T=g.Cs("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&b.push({name:"X-YouTube-Lava-Device-Context",
  5309. value:T});(q=Md(q.experiments,"debug_sherlog_username"))&&b.push({name:"X-Youtube-Sherlog-Username",value:q});d=QA(JSON.stringify(d));return{url:U,FY:b,postBody:d,KMD:e,sC:e}};
  5310. iIN=function(d,q,T,Y,e,U,b){var J=d.QE,F=d.D_;d=d.xpD;var N=J!==void 0&&F!==void 0,R=Y.getVideoData(),x,y=q.G.encryptedClientKey;q=N?q.iv:void 0;N=I9(T.schedule,!0);e=e||!!sn()&&N>1572864;return{innertubeRequest:{Dp2:d,jr:J,D_:F,encryptedClientKey:y,iv:q,nP5:!0,G7:!0,Fl:"DecompressionStream"in window||!e,Kfg:T.experiments.Wv("html5_use_jsonformatter_to_parse_player_response")},zd:cu_({Mk:T,G2:Y,o8:R.startSeconds*1E3}),onesieUstreamerConfig:U,vO:b,Ti:Kz(R),reloadPlaybackParams:(x=R.H1)==null?void 0:
  5311. x.reloadPlaybackParams}};
  5312. Ii7=function(d,q,T,Y,e,U){var b=g.S2(d,gj),J;if(!d.sC)if(J=NnY(q,b)){var F=J.jw;J=J.signature}else J=F=q.encrypt(b),(0,g.cj)(),J=sC1(new J$D(q.G.j),J,q.iv);return iIN(F&&J?{QE:F,D_:J}:{xpD:b},q,T,Y,!!d.sC,e,U)};
  5313. miX=function(d,q,T,Y,e,U){var b,J,F;return g.G(function(N){if(N.U==1)return b=g.S2(d,gj),g.B(N,F8D(q,b),2);if(N.U!=3)return J=N.G,g.B(N,Rq2(q,J),3);F=N.G;return N.return(iIN({QE:J,D_:F},q,T,Y,!!d.sC,e,U))})};
  5314. Smn=function(d,q,T,Y,e,U){var b=g.S2(d,gj);if(b=NnY(q,b))return iIN({QE:b.jw,D_:b.signature},q,T,Y,!!d.sC,e,U)};
  5315. SB=function(d,q){g.W.call(this);var T=this;this.G2=d;this.playerRequest=q;this.logger=new g.cb("onesie");this.xhr=null;this.state=1;this.l3=new yQ;this.wN=!1;this.playerResponse="";this.PK=new yh(this);this.Og=new kF6(this);this.Xz="";this.SA=this.sR=!1;this.S4="";this.enableCompression=this.Xo=this.Iw=!1;this.Mx=[];this.O5=-1;this.MY=0;this.Pv=this.G2.C();this.videoData=this.G2.getVideoData();this.Fu=this.Pv.uF();this.UH=this.Pv.pC;this.Ge=new $i_(this.UH.G);this.Xa=this.Pv.N("html5_onesie_check_timeout");
  5316. this.aJ=new g.f9(this.zy,500,this);this.fD=new g.f9(this.vt,1E4,this);this.CJ=new g.f9(function(){if(!T.isComplete()){var Y=mc(T);T.fail(new g.xV("net.timeout",Y))}},1E3);
  5317. this.vn=new g.f9(this.G2w,2E3,this);this.ow=this.G2.C9();this.NL=this.N("html5_onesie_wait_for_media_availability");g.C(this.videoData,this);g.C(this,this.aJ);g.C(this,this.fD);g.C(this,this.vn);d=E4();QU&&d&&(this.lO=new Map);this.Gx=new Map;this.Nw=new Map;this.yy=new Map;this.Xe=new Map};
  5318. CH=function(d,q){var T;return(T=d.lO)==null?void 0:T.get(q)};
  5319. vlI=function(d,q,T){var Y;return g.G(function(e){if(e.U==1)return d.D$("oprd_s"),lig(d)?g.B(e,xin(d.Ge,q,T),3):(Y=d.Ge.decrypt(q,T),e.tF(2));e.U!=2&&(Y=e.G);d.D$("oprd_c");return e.return(Y)})};
  5320. ol6=function(d){return d.N("html5_onesie_host_probing")||d.Fu?QU:!1};
  5321. I7=function(d){if(!d.playerResponse)return!1;if(d.Iw)return!0;var q=d.videoData.N("html5_onesie_audio_only_playback")&&OB(d.videoData);if(d.lO&&d.NL){if(!d.lO.has(d.Xz))return!1;var T=d.lO.get(d.Xz),Y;if(Y=T){Y=!1;for(var e=g.E(T.vG.keys()),U=e.next();!U.done;U=e.next())if(U=T.vG.get(U.value))for(var b=g.E(U.dl),J=b.next();!J.done;J=b.next())J.value.Ns>0&&(U.JE?Y=!0:q=!0);Y=!(q&&Y)}if(Y)return!1}d.D$("ofr");d.l3.resolve(d.playerResponse);if(!d.Xa){var F;(F=d.CJ)==null||F.start();d.fD.start()}return d.Iw=
  5322. !0};
  5323. dRf=function(d){if(d.lO&&!d.N("html5_onesie_media_capabilities")){d.D$("ogsf_s");var q=xnf(d.G2.getVideoData(),function(Y,e){d.oU(Y,e)}),T=VZY(d.G2);
  5324. q.video=bjI(T,q.video);d.D$("ogsf_c");if(q.video.length)return q;d.oU("ombspf","l."+T.U+";u."+T.G+";o."+T.j+";r."+T.reason)}};
  5325. lig=function(d,q){return d.N("html5_onesie_sync_request_encryption")||(q==null?0:q.sC)||g.an(d.Pv)&&d.N("html5_embed_onesie_use_sync_encryption")?!1:!!sn()};
  5326. mc=function(d){if(!d.VU)return{};var q=d.VU.Xq(),T;q.d=(T=d.VU.z2)==null?void 0:T.VH();q.shost=d.W0;q.ty="o";return q};
  5327. qBY=function(d,q){var T,Y;(Y=(d=(T=d.lO)==null?void 0:T.get(q))==null)||(q=d.j?!1:d.j=!0,Y=!q);return!Y};
  5328. Tdf=function(d,q,T,Y,e,U,b,J,F,N,R){g.W.call(this);var x=this;this.G2=d;this.loader=q;this.policy=T;this.audioTrack=Y;this.videoTrack=e;this.vv=U;this.Tq=b;this.Fw=J;this.j=F;this.timing=N;this.K=R;this.G=[];this.S={};this.qk=this.AF=!1;this.T=this.RU=this.lr=this.xx=this.OZ=0;this.B=null;this.yv={wz:[],At:[]};this.rO={wz:[],At:[]};this.L=null;this.X=[];this.fC={YQv:function(){return x.G},
  5329. D1f:function(){return x.S},
  5330. xfZ:function(){x.G.length=0},
  5331. P3w:function(){return x.videoData.Bv},
  5332. k3O:function(){return x.lr},
  5333. Vcw:function(y){x.lr=y},
  5334. fLg:function(y){x.T=y},
  5335. Dv:function(y){x.L=y},
  5336. mD:function(y){x.X=y}};
  5337. this.videoData=this.G2.getVideoData();this.policy.t0&&(this.dO=new eB(this.loader,this.policy,this.Tq),g.C(this,this.dO))};
  5338. URg=function(d,q){q=q===void 0?!1:q;if(YBH(d)){d.policy.X&&d.loader.oU("sabrcrq",{create:1});var T=new LH(0,d.vv.B,d);d.policy.qU>0&&d.T++;q=eVD(d,T,q);d.G.push(q);var Y;(Y=d.dO)==null||Pen(Y,d.vv.B)}};
  5339. JwH=function(d,q){var T=btj(d);if(d.policy.yH){var Y=d.yv;var e=d.rO}else Y=lo(d,d.audioTrack),e=lo(d,d.videoTrack);var U=[].concat(g.RQ(Y.wz),g.RQ(e.wz));vM(d)&&U.push.apply(U,g.RQ(d.X));var b=[].concat(g.RQ(Y.At),g.RQ(e.At)),J=d.loader.PH();if(d.policy.W$&&!d.videoData.isLivePlayback){var F=d.videoData.lengthSeconds*1E3;T>=F&&d.loader.oU("invalidSabrCmt",{cmt:T,vd:F})}var N,R;F=d.G2;var x=d.vv,y=d.U,h=d.videoData.Bv,H=d.policy,a=d.loader.IT,p=fN2(d.loader)*1E3,t=(N=d.z2)==null?void 0:N.lX;N=(R=
  5340. d.z2)==null?void 0:R.Ju;var n;R=Number((n=d.j.T)==null?void 0:n.info.itag)||0;var K;n=Number((K=d.j.S)==null?void 0:K.info.itag)||0;q={G2:F,vv:x,wz:U,At:b,o8:T,nextRequestPolicy:y,AD:h,xo:H,gE:a,SI:p,lX:t,Ju:N,OZ:d.OZ,isPrefetch:q||d.loader.isSuspended,m4:R,Xv:n,UJ:J,XP:d.G2.x8()};T=d.loader.gK();U=Bx(T);T&&(q.pD=U);if(T=d.G2.Eq())q.ph=T*1E3;var P;T=d.j;U=T.lr;if(((P=T.xo)==null?0:BX(P))&&!U)for(P=g.E(T.j),b=P.next();!b.done;b=P.next())if(b.value.DQ){U=!0;break}P=BX(T.xo)&&!U?[]:lN_(T,T.j);q.g0=P;
  5341. P=d.j;BX(P.xo)&&!P.UD?P=[]:(T=YmQ(P),T.length===0&&(T=P.X),P=lN_(P,T));q.Bj=P;q.Wj=vM(d)?[d.L]:void 0;d.policy.I1&&(q.Hh=XrQ(d.loader,d.audioTrack),q.un=XrQ(d.loader,d.videoTrack));if(d.policy.U){P=d.loader.getCurrentTime();Y=o7(d,Y.wz,P);e=o7(d,e.wz,P);e=Math.min(Y,e);vM(d)&&(Y=o7(d,d.X,P),d.G2.uF()&&Y<e&&d.loader.oU("sabrcfb",{met:e,cet:Y,cbrl:d.X.length}),e=Math.min(e,Y));var w;if(d.policy.wO){var l=((w=d.videoData.U)==null?void 0:w.containerType)||0;w=d.loader.Qo(d.videoData.Xc[l])}else w=(l=
  5342. d.B)==null?void 0:l.Mh(e);w&&(q.Gs=w)}d.policy.K&&d.G.length>0&&d.G[0].tV()&&(q.Qf=d.G[0].ju());return q};
  5343. btj=function(d){var q,T=d.policy.S&&((q=d.loader)==null?void 0:q.VN());q=d.loader.getCurrentTime()||0;q=sf2(d,q);var Y=d.loader.mz()||0;q+=Y;Y=of(d.videoData)||g.vr(d.videoData);var e=0;T?(Y&&(e=Number.MAX_SAFE_INTEGER),d.videoData.yv&&(e=Math.ceil(d.videoData.rO*1E3))):e=Math.ceil(q*1E3);return Math.min(Number.MAX_SAFE_INTEGER,e)};
  5344. vM=function(d){return d.policy.wk&&!!d.L};
  5345. sf2=function(d,q){if(d.loader.isSeeking())return q;var T=d.G2.WG();if(!T)return q;T=T.g1();if(T.length===0||oI(T,q))return q;if(!Vx(d.videoTrack,q)&&!Vx(d.audioTrack,q))return d.loader.oU("sundrn",{b:0,lt:q}),q;for(var Y=q,e=Infinity,U=0;U<T.length;U++)if(!(T.start(U)>q)){var b=q-T.end(U);b<e&&(e=b,Y=T.end(U))}return Y!==q&&(d.loader.oU("sundrn",{bre:Y,lt:q}),e>=20)?(d.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),q):Y};
  5346. o7=function(d,q,T){d=d.loader.mz()||0;return Ve(q,(T+d)*1E3)/1E3+T};
  5347. YBH=function(d){if(d.policy.qU>0){var q=Math.floor((0,g.cj)()/1E4);if(q===d.RU){if(d.T>=d.policy.qU){if(d.T===d.policy.qU){var T={reason:"toomanyrequests"};T.limit=d.T;d.loader.handleError("player.exception",T);d.T+=1}return!1}}else d.RU=q,d.T=0}if(d.loader.isSuspended&&d.loader.zk)return!1;if(d.UD&&(0,g.cj)()<d.UD)return g.zh(d.loader.nM),!1;if(d.G.length>0&&(!d.policy.K||d.G.length!==1||!d.G[0].tV()))return!1;var Y;if(!(q=(Y=d.vv.B)==null||!mU(Y,d.policy,d.S,d.loader.DL())||ls(d.audioTrack)&&ls(d.videoTrack))){if(Y=
  5348. d.policy.U){Y=!1;if(d.K.U===2)Y=!0;else if(d.K.U===3){btj(d);d.loader.mz();var e=us(d.audioTrack,d.loader.isSeeking()).wz;q=us(d.videoTrack,d.loader.isSeeking()).wz;var U=d.loader.getCurrentTime()||0;e=o7(d,e,U);q=o7(d,q,U);q=Math.min(e,q);U=d.K;q>=U.S?(U.oU("sdai",{haltrq:q,est:U.S}),q=!0):q=!1;q&&(Y=!0)}Y&&d.policy.X&&d.loader.oU("sabrcrq",{waitad:1})}q=Y}if(q)return!1;d.policy.yH&&(d.yv=lo(d,d.audioTrack),d.rO=lo(d,d.videoTrack));if(!d.U)return d.policy.X&&d.loader.oU("sabrcrq",{nopolicy:1}),!0;
  5349. if(d.G2.Eq())return d.policy.X&&d.loader.oU("sabrcrq",{utc:1}),!0;if(d.j.L)return d.policy.X&&d.loader.oU("sabrcrq",{audio:1}),!0;if(!d.U.targetAudioReadaheadMs||!d.U.targetVideoReadaheadMs)return d.policy.X&&d.loader.oU("sabrcrq",{noreadahead:1}),!0;if(d.policy.S&&d.loader.VN())return d.policy.X&&d.loader.oU("sabrcrq",{seekToHead:1}),!0;Y=Math.min(e6(d.loader,d.audioTrack)*1E3,d.U.targetAudioReadaheadMs);q=Math.min(e6(d.loader,d.videoTrack)*1E3,d.U.targetVideoReadaheadMs);var b=Math.min(Y,q);U=is(d.audioTrack,
  5350. !0)*1E3;e=is(d.videoTrack,!0)*1E3;var J=d.G2.getCurrentTime()*1E3;if(d.policy.yH){var F=Ve(d.yv.wz,J);var N=Ve(d.rO.wz,J)}else F=U,N=e;var R=F<b;var x=N<b;if(vM(d)){J=Ve(d.X,J);var y=J<b;d.G2.uF()&&y&&!R&&!x&&d.loader.oU("sabrcrnm",{cra:J,mpra:b,cbrl:d.X.length})}if(!(R||x||vM(d)&&y))return d.policy.yH&&d.G2.uF()&&(U<b||e<b)&&d.loader.oU("sabrncrq",{car:F,vac:N,abh:U,vbh:e,mar:Y,mvr:q}),!1;if(d.policy.CR&&$RY(d.loader)&&d.videoData.mT()||d.policy.UT&&$RY(d.loader))return!1;d.policy.X&&(y=d.loader.BF(),
  5351. y.car=F,y.vac=N,y.mar=Y,y.mvr=q,y.tar=d.U.targetAudioReadaheadMs,y.tvr=d.U.targetVideoReadaheadMs,y.vbu=lW(((T=d.G2.WG())==null?void 0:T.g1())||null),y.abh=U,y.vbh=e,d.loader.oU("sabrcrq",y));return!0};
  5352. lo=function(d,q){btj(d);d.loader.mz();return us(q,d.loader.isSeeking())};
  5353. Ve=function(d,q){var T=0,Y=-1;d=g.E(d);for(var e=d.next();!e.done;e=d.next())if(e=e.value,!(e.startTimeMs+e.durationMs<q)){if(Y<0&&e.startTimeMs>q||Y>=0&&e.QK>Y+1)break;T=Math.max(T,e.startTimeMs+e.durationMs);Y=Math.max(Y,e.wA)}return Math.max(0,T-q)};
  5354. eVD=function(d,q,T){var Y={Tq:d.Tq,D1:function(F,N){d.G2.d0(F,N)},
  5355. q4:d.policy.Nf,Y4:d.policy.j};d.Tq.U.X&&(Y.D5=(d.videoTrack.G.info.Vv||0)+(d.audioTrack.G.info.Vv||0));d.policy.U5&&(Y.bO=d.audioTrack.G.index.qc(),Y.q4=!1);var e=bID(q,d.policy,d.S)?2:1;e!==d.lr&&(d.lr=e,gp6(d));T=JwH(d,T);if(d.policy.K&&d.policy.j&&T.AD){for(var U=e="",b=g.E(T.AD),J=b.next();!J.done;J=b.next())J=J.value,d.videoData.sabrContextUpdates.has(J)||d.policy.K&&T.Qf&&T.Qf.type===J?e+="_"+J:U+="_"+J;d.loader.oU("sabrbldrqs",{ctxts:e,misctxts:U})}!q.setData(T,d.policy,d.S)&&d.policy.K&&d.loader.handleError("player.exception",
  5356. {reason:"buildsabrrequestdatafailed"},1);Y=new ik(d.policy,q,d.vv,d.S,d,Y,d.loader.C9());I3(d.timing);d.policy.X&&d.loader.oU("sabrcrq",{rn:Y.HR(),probe:q.l8()});return Y};
  5357. qZ=function(d,q){if(q.JF()||d.JF())d.policy.m1||(d.policy.S?dk(d.loader):d.loader.Yo());else{if(d.policy.j&&q.isComplete()&&q instanceof ik){var T=d.loader,Y=T.oU,e,U,b=Object.assign(q.VU.Xq(),{rst:q.state,strm:q.xhr.wf(),d:(e=q.VU.z2)==null?void 0:e.VH(),cncl:q.xhr&&q.Id.T?1:0,rqb:q.Tm,cwt:q.wP,swt:(U=q.xK)==null?void 0:U.Ok});e=Object.assign(snQ(q.info),b);Y.call(T,"rqs",e)}if(q.isComplete()&&q.l8()&&q instanceof ik)d.policy.zq?q.mq()?(q.dispose(),d.G.length===0?d.loader.Yo():(d=d.G[0],d instanceof
  5358. ik&&d.W9()&&d.UW())):q.E5()&&d.loader.handleError(q.nA(),q.P$()):(q.dispose(),d.loader.Yo());else{if(q.v2())q instanceof ik&&VLn(d.timing,q),gp6(d),FJ6(d);else if(q.E5())T=d.G2.Eq(),q instanceof ik&&JJX(q.info)&&T&&d.loader.Md(T),q instanceof SB?d.G.pop():(T=1,q.canRetry()&&Ny(d.loader)&&(Ndj(d,q),T=0),d.loader.handleError(q.nA(),q.P$(),T));else{if(d.loader.isSuspended&&!q.isComplete())return;FJ6(d)}q.JF()||q instanceof SB||(q.isComplete()?T=uvn(q,d.policy,d.S):(T=CeD(q,d.policy,d.S),T===1&&(d.AF=
  5359. !0)),T!==0&&(Y=new LH(1,q.info.zG),Y.VK=T===2,eVD(d,Y)));d.policy.Ln&&!q.isComplete()?gZ(d.loader):d.loader.Yo()}}};
  5360. FJ6=function(d){for(;d.G.length&&d.G[0].lQ(d.Sh());){var q=d.G.shift();RVj(d,q)}d.G.length&&RVj(d,d.G[0])};
  5361. RVj=function(d,q){q instanceof ik&&(d.aU=q);var T=new Set(q.mF(d.Sh()));T=g.E(T);for(var Y=T.next();!Y.done;Y=T.next()){var e=Y.value;if(!(Y=!(q instanceof SB))){Y=d.j;var U=Y.vv.aN,b=G$(Y.videoInfos,U);U=TnH(Y,e,U);var J=b.includes(e);!Y.xo.xN||U||J||Y.loader.oU("sabrcpf",{fid:""+e,vfids:""+b.join("."),said:Y.B||""});Y=U||b.includes(e)}if(Y&&(Y=q.jN(e,d.Sh()),b=d.policy.wk&&iW(Y[0].G.info.mimeType),q.Vs(e,d.Sh())))for(e=q.kz(e,d.Sh()),e=g.E(e),U=e.next();!U.done;U=e.next())if(U=U.value,d.policy.j&&
  5362. q instanceof SB&&d.loader.oU("omblss",{s:U.info.jt()}),b)J=d.timing,J.lr||(J.lr=(0,g.cj)(),g.iN("fcb_r",J.lr,J.G)),J=d,J.videoData.aN()&&J.L&&SL(J.L)===SL(g.DB(U.info.G.info,J.vv.aN))&&J.G2.publish("sabrCaptionsDataLoaded",U,J.mD.bind(J));else{J=U.info.G.info.JE();var F=U.info.G;if(J){var N=void 0;var R=d.j,x=(N=q.Us(d.Sh()))==null?void 0:N.token;R.L&&F!==R.S?N=!0:(R.L=!1,F!==R.S&&(R.S=F,R.nJ(F,R.audioTrack,x)),N=!1);if(N)continue}else N=void 0,S4Q(d.j,F,(N=q.Us(d.Sh()))==null?void 0:N.token);N=J?
  5363. d.audioTrack:d.videoTrack;q instanceof SB&&(N.L=!1,q instanceof SB&&(J?ijQ(d.timing):zjX(d.timing)));try{CP(N,Y,U)}catch(y){U=hQ(y),d.loader.handleError(U.errorCode,U.details,U.severity),N.ZE(),d.Sc(!1,"pushSlice"),dk(d.loader)}}}};
  5364. Ndj=function(d,q){d.policy.K?d.G.splice(d.G.indexOf(q)).forEach(function(T){T.dispose()}):(d.G.pop(),q==null||q.dispose())};
  5365. xRj=function(d,q,T){for(var Y=[],e=0;e<d.G.length;e++)q&&d.G[e]instanceof SB?Y.push(d.G[e]):(d.policy.X&&d.loader.oU("sabrcrq",{d:d.G[e].HR(),src:T}),d.G[e].dispose());d.G=Y};
  5366. gp6=function(d){d.videoData.Bv.clear();if(d.videoData.sabrContextUpdates.size>0)for(var q=g.E(d.videoData.sabrContextUpdates.keys()),T=q.next();!T.done;T=q.next()){T=T.value;var Y=void 0;((Y=d.videoData.sabrContextUpdates.get(T))==null?0:Y.sendByDefault)&&d.videoData.Bv.add(T)}if(d.policy.K&&d.G.length)for(q=g.E(d.G),T=q.next();!T.done;T=q.next())(T=T.value.ju())&&T.type&&T.sendByDefault&&d.videoData.Bv.add(T.type)};
  5367. ywj=function(d){d.policy.pC&&(d.z2=void 0,d.OZ=0)};
  5368. hVQ=function(d,q){if(q.E5()||q.JF()){var T=d.loader,Y=T.oU,e=q.state;d=d.Sh();var U,b;if((q=(U=q.lO)==null?void 0:U.get(d))==null)q=void 0;else{U=0;d=q.mF();for(var J=0;J<d.length;J++){var F=void 0;U+=((F=q.vG.get(d[J]))==null?void 0:F.bytesReceived)||0}q=U}q=(b=q)!=null?b:-1;Y.call(T,"sabromb",{s:e,tbytes:q})}else d.G.push(q),q.Mx.push(d),I3(d.timing),d.policy.Ox&&q.qz&&d.eN(q.qz,q.HR())};
  5369. HtD=function(d){var q,T;return{requestNumber:((q=d.aU)==null?void 0:q.HR())||-1,isDecorated:(T=d.aU)==null?void 0:T.info.isDecorated()}};
  5370. QfX=function(d){this.G2=d;this.G=new Map};
  5371. MHg=function(d){var q,T;return(T=(q=d.G2.WG())==null?void 0:q.getCurrentTime())!=null?T:d.G2.getCurrentTime()};
  5372. Epn=function(d,q,T){var Y;(Y=d.G.get(T))==null||Y.delay.dispose();d.G.delete(T);return new Promise(function(e){e={id:T,mediaTime:q,delay:new g.f9(function(){}),
  5373. resolve:e};d.G.set(T,e);cwg(d,e)})};
  5374. jf6=function(d){d.G.forEach(function(q){q.delay.dispose()});
  5375. d.G.clear()};
  5376. cwg=function(d,q){var T=MHg(d);T>=q.mediaTime&&g.I(d.G2.getPlayerState(),8)?(q.resolve([q.mediaTime,q.id]),d.G.delete(q.id)):(q.delay.dispose(),q.delay=new g.f9(function(){cwg(d,q)},(q.mediaTime-T)*1E3/d.G2.getPlaybackRate()),q.delay.start())};
  5377. AwD=function(d,q,T,Y){var e=this;this.j=d;this.cpn=q;this.G2=T;this.G=Y;this.U=new Map;this.S=new Map;this.L=this.B=NaN;this.X=!1;this.KA="";this.isSeeking=!1;this.K=0;this.T=new QfX(T);this.Mp=T.Mp;this.G2.subscribe("SEEK_TO",function(){e.VI()});
  5378. this.G2.subscribe("SEEK_COMPLETE",function(){auD(e)})};
  5379. Ztg=function(d,q){if(!d.isSeeking&&d.K!==q&&!isNaN(d.B)){d.K=q;var T=d.X?d.L:d.j.yg(q);(T!==d.L||d.X)&&prD(d,T,q)}};
  5380. prD=function(d,q,T){var Y=d.U.get(q),e=d.j.getStartTime(q),U=d.j.getDuration(q);d.X=!1;d.L=q;var b=e,J;((J=Y==null?void 0:Y.G)!=null?J:[d.cpn]).forEach(function(F,N){var R;N=(R=Y==null?void 0:Y.U[N])!=null?R:U;T>=b&&T<b+N?OtH(d,F,b,T):T<b&&(d.X=!0);b+=N})};
  5381. tH1=function(d,q,T,Y){Y=Y===void 0?0:Y;var e;if(q!==d.B||((e=d.U.get(q))==null?void 0:e.j)!==(T==null?void 0:T.j))if(T?d.U.set(q,T):d.U.delete(q),!d.isSeeking){var U=d.j.getStartTime(q);d.B=q;np2(d,q);var b,J;e=(J=(b=d.U.get(q-1))==null?void 0:b.G)!=null?J:[d.cpn];var F=e[e.length-1];if(T){var N=U;T.G.forEach(function(R,x){N<U+Y||(R!==F&&rwQ(d,q,R,N),N+=T.U[x],F=R)})}else F!==d.cpn&&rwQ(d,q,d.cpn,U)}};
  5382. np2=function(d,q){var T;((T=d.S.get(q))!=null?T:[]).forEach(function(Y){d.G===0&&d.Mp.XA("transitiondetector",Y);if(d.G===1){var e=d.T,U;(U=e.G.get(Y))==null||U.delay.dispose();e.G.delete(Y)}});
  5383. d.S.delete(q)};
  5384. auD=function(d){var q,T,Y=(T=(q=d.G2.WG())==null?void 0:q.getCurrentTime())!=null?T:d.G2.getCurrentTime(),e=d.j.yg(Y);prD(d,e,Y);d.isSeeking=!1;Array.from(d.U.keys()).sort(function(U,b){return U-b}).forEach(function(U){U>e?tH1(d,U,d.U.get(U)):U===e&&tH1(d,U,d.U.get(U),Y-d.j.getStartTime(U))})};
  5385. OtH=function(d,q,T,Y){q!==d.KA&&(d.G2.oU("ssevt",{tag:d.G===0?"sstd-cr":d.G===1?"sstd-tm":d.G===2?"sstd-poll":d.G===3?"sstd-poll100":"sstd-unknown",ad:d.cpn!==q,cpn:q,st:T.toFixed(3),late:Math.round(d.isSeeking?0:(Y-T)*1E3)}),d.KA=q)};
  5386. BdN=function(d){var q=g.E(d.split("."));d=q.next().value;q=q.next().value;return[Number(d),q]};
  5387. rwQ=function(d,q,T,Y){T=q+"."+T;d.S.has(q)?d.S.get(q).push(T):d.S.set(q,[T]);d.G===1&&Epn(d.T,Y,T).then(function(e){var U=g.E(e);e=U.next().value;U=U.next().value;U=g.E(BdN(U));U.next();U=U.next().value;OtH(d,U,e,MHg(d.T))});
  5388. d.G===0&&(d.Mp.XA("transitiondetector",T),q=(Y+d.G2.mz())*1E3,d.Mp.ES([new g.Ij(q,q+5E3,{id:T,namespace:"transitiondetector",priority:9})]))};
  5389. KJ_=function(d,q,T,Y,e){this.loader=d;this.policy=q;this.schedule=T;this.Iu=Y;this.K=e;this.lr=NaN;this.U=this.L=this.T=null;this.G=this.S=this.X=this.startTimeSecs=NaN;this.j=!1;this.B=NaN};
  5390. GC2=function(d,q,T,Y,e,U){return q.Aq&&q.ST&&T===3?new KJ_(d,q,Y,e,U):null};
  5391. LJn=function(d,q){if(d.policy.N9){var T=q.info.Vv,Y=I9(d.schedule);q=q.index.qc();T=Math.max(1,Y/T);d.B=Math.round(Math.max(((T-1)*q+d.policy.qC)/T,q-d.policy.Yz)*1E3)}};
  5392. WJj=function(d,q){var T=Date.now()/1E3,Y=T-d.startTimeSecs,e=T-d.X,U=e>=d.policy.Fs,b=!1;if(U){var J=0;!isNaN(q)&&q>d.S&&(J=q-d.S,d.S=q);J/e<d.policy.WH&&(b=!0);d.X=T}T=Y>=d.policy.Yz&&!d.j;if(!U&&!T&&kC_(d,q))return NaN;T&&(d.j=!0);a:{Y=b;T=(0,g.cj)()/1E3-(d.Iu.W4()||0)-d.L.G-d.policy.qC;U=d.U.startTime;T=U+T;if(Y){if(isNaN(q)){T6(d,NaN,"n",q);U=NaN;break a}Y=q-d.policy.If;Y<T&&(T=Y)}else d.j&&(Y=T+d.policy.qC-d.lr+d.policy.oy,isNaN(q)||(Y=Math.max(Y,Math.min(T,q-d.policy.If))),T=Y);U=T=Math.max(T,
  5393. U)}d.G=U;if(isNaN(d.G))return d.clear(),NaN;if(!b&&kC_(d,q))return Pxj(d,q),NaN;if(d.G<=d.U.startTime)return T6(d,NaN,"y",q),d.clear(),NaN;if(!d.K(d.G,!1))return!Pxj(d,q)&&b&&(T6(d,NaN,"t",q),d.clear()),NaN;b=d.G;T6(d,b,"s",q);d.clear();return b};
  5394. Pxj=function(d,q){return d.K(d.G,!0)?!1:(T6(d,NaN,"ns",q),d.clear(),!0)};
  5395. kC_=function(d,q){return isNaN(q)?!0:isNaN(d.G)?!1:q<d.G+(d.j?d.policy.If:d.policy.F7)};
  5396. T6=function(d,q,T,Y){var e=d.T.P$();e.ssr_sk=(q*1E3).toFixed(0);e.ssr_t=(d.G*1E3).toFixed(0);e.ssr_r=T;e.ssr_st=(d.startTimeSecs*1E3).toFixed(0);e.ssr_n=(0,g.cj)().toFixed(0);e.ssr_f=(d.L.G*1E3).toFixed(0);e.ssr_fa=d.j?"1":"0";e.ssr_o=(d.Iu.W4()*1E3||0).toFixed(0);e.ssr_v=(Y*1E3).toFixed(0);q=d.U.G.index;q.Zb(d.U.sD,!0)&&(e.ssr_ist=(q.getStartTime(d.U.sD)*1E3).toFixed(0),e.ssr_id=(q.getDuration(d.U.sD)*1E3).toFixed(0));d.loader.oU("ssr",e)};
  5397. Cxn=function(){var d={},q=window.performance;if(q){var T=q.memory;if(T){d.jsTotal=T.totalJSHeapSize;d.jsUsed=T.usedJSHeapSize;d.jsLimit=T.jsHeapSizeLimit;var Y,e;d.msTotal=(e=(Y=T.getMediaSourceTotalAllocatedMemory)==null?void 0:Y.call(T))!=null?e:T.totalMediaSourceSize;var U,b;d.msLimit=(b=(U=T.getMediaSourceMaximumMemoryCapacity)==null?void 0:U.call(T))!=null?b:T.mediaSourceSizeLimit;var J,F;d.msUsed=(F=(J=T.getMediaSourceCurrentMemoryCapacity)==null?void 0:J.call(T))!=null?F:T.usedMediaSourceMemorySize}q.measureAvailableCpuMemory&&
  5398. (d.cbFree=q.measureAvailableCpuMemory());q.measureUsedCpuMemory&&(d.cbUsed=q.measureUsedCpuMemory())}var N;if((N=window.h5vcc)==null?0:N.cVal)d.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),d.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used"),d.cbJs=window.h5vcc.cVal.getValue("Memory.JS");return d};
  5399. uxQ=function(d){return window.PressureObserver&&new window.PressureObserver(d)};
  5400. DRg=function(d){d=d===void 0?uxQ:d;g.W.call(this);var q=this;try{this.j=d(function(Y){q.U=Y.at(-1)});
  5401. var T;this.T=(T=this.j)==null?void 0:T.observe("cpu",{sampleInterval:2E3}).catch(function(Y){Y instanceof DOMException&&(q.G=Y)})}catch(Y){Y instanceof DOMException&&(this.G=Y)}};
  5402. wrj=function(d){var q={},T=window.h5vcc;q.hwConcurrency=navigator.hardwareConcurrency;d.G&&(q.cpe=d.G.message);d.U&&(q.cpt=d.U.time,q.cps=d.U.state);if(T==null?0:T.cVal)q.cb2s=T.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),q.cb5s=T.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),q.cb30s=T.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return q};
  5403. fu2=function(d){var q;g.G(function(T){switch(T.U){case 1:return g.jD(T,2),g.B(T,d.T,4);case 4:g.ZX(T,3);break;case 2:g.nN(T);case 3:(q=d.j)==null||q.disconnect(),g.E6(T)}})};
  5404. it_=function(d,q){q?zVH.test(d):(d=g.oE(d),Object.keys(d).includes("cpn"))};
  5405. mRI=function(d,q,T,Y,e,U,b){var J={format:"RAW"},F={};if(q4(d)&&Tt()){if(b){var N;((N=IuQ.uaChPolyfill)==null?void 0:N.state.type)!==2?b=null:(b=IuQ.uaChPolyfill.state.data.values,b={"Synth-Sec-CH-UA-Arch":b.architecture,"Synth-Sec-CH-UA-Model":b.model,"Synth-Sec-CH-UA-Platform":b.platform,"Synth-Sec-CH-UA-Platform-Version":b.platformVersion,"Synth-Sec-CH-UA-Full-Version":b.uaFullVersion});F=Object.assign(F,b);J.withCredentials=!0}(b=g.Cs("EOM_VISITOR_DATA"))?F["X-Goog-EOM-Visitor-Id"]=b:Y?F["X-Goog-Visitor-Id"]=
  5406. Y:g.Cs("VISITOR_DATA")&&(F["X-Goog-Visitor-Id"]=g.Cs("VISITOR_DATA"));T&&(F["X-Goog-PageId"]=T);(Y=q.yv)&&!Em(q)&&(F["X-Goog-AuthUser"]=Y);e&&(F.Authorization="Bearer "+e);q.N("enable_datasync_id_header_in_web_vss_pings")&&q.wB&&q.datasyncId&&(F["X-YouTube-DataSync-Id"]=q.datasyncId);b||F["X-Goog-Visitor-Id"]||e||T||Y?J.withCredentials=!0:q.N("html5_send_cpn_with_options")&&zVH.test(d)&&(J.withCredentials=!0)}Object.keys(F).length>0&&(J.headers=F);U&&(J.onFinish=U);return Object.keys(J).length>1?
  5407. J:null};
  5408. SB2=function(d,q,T,Y,e,U,b,J){Tt()&&T.token&&(d=VH(d,{ctt:T.token,cttype:T.Yj,mdx_environment:T.mdxEnvironment}));Y.N("net_pings_low_priority")&&(q||(q={}),q.priority="low");U||J&&Y.N("nwl_skip_retry")?(q==null?q={}:it_(d,Y.N("html5_assert_cpn_with_regex")),b?uI().sendAndWrite(d,q):uI().sendThenWrite(d,q,J)):q?(it_(d,Y.N("html5_assert_cpn_with_regex")),s26(d,q)):g.rM(d,e)};
  5409. luX=function(d){for(var q=[],T=0;T<d;T++){for(var Y={},e=Math.floor(Math.random()*9*1E8)+1E8,U="",b=0;b<9;b++)U+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(Math.random()*52)];Y.videoDecoderName=U;Y.elapsedTimeMs=e;q.push(Y)}return q};
  5410. vpf=function(d){return window.Profiler&&new window.Profiler(d)};
  5411. opD=function(d){/[^a-zA-Z0-9;.!_-]/.test(d)&&(d=d.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return d};
  5412. YN=function(d,q,T){T=T===void 0?vpf:T;g.W.call(this);this.sampleInterval=d;this.maxBufferSize=q;this.S=T;this.encoder=new GH;this.G=[];this.j=0;VH_(this)};
  5413. VH_=function(d){var q=d.sampleInterval,T=d.maxBufferSize;if(q>0&&T>0&&!d.U&&d.j<1E7)try{d.T=d.S({sampleInterval:q,maxBufferSize:T});var Y;(Y=d.T)==null||Y.addEventListener("samplebufferfull",function(){return g.G(function(e){if(e.U==1)return g.B(e,d.stop(),2);VH_(d);g.E6(e)})})}catch(e){d.U=opD(e.message)}};
  5414. dCQ=function(d,q){var T,Y;return!!((T=window.h5vcc)==null?0:(Y=T.settings)==null?0:Y.set(d,q))};
  5415. TmI=function(){var d,q,T,Y=(d=window.h5vcc)==null?void 0:(q=d.settings)==null?void 0:(T=q.getPersistentSettingAsString)==null?void 0:T.call(q,"cpu_usage_tracker_intervals");if(Y!=null){var e;d=(e=JSON.parse(Y))!=null?e:[];e=d.filter(function(N){return N.type==="total"}).map(function(N){return N.seconds});
  5416. q=g.E(qFH);for(T=q.next();!T.done;T=q.next())T=T.value,e.indexOf(T)===-1&&d.push({type:"total",seconds:T});var U,b;(U=window.h5vcc)==null||(b=U.settings)==null||b.set("cpu_usage_tracker_intervals_enabled",1);var J,F;(J=window.h5vcc)==null||(F=J.settings)==null||F.set("cpu_usage_tracker_intervals",JSON.stringify(d))}};
  5417. YFD=function(){var d=window.H5vccPlatformService,q="";if(d&&d.has("dev.cobalt.coat.clientloginfo")&&(d=d.open("dev.cobalt.coat.clientloginfo",function(){}))){var T=d.send(new ArrayBuffer(0));
  5418. T&&(q=String.fromCharCode.apply(String,g.RQ(new Uint8Array(T))));d.close()}return q};
  5419. g.bC=function(d){g.W.call(this);var q=this;this.provider=d;this.logger=new g.cb("qoe");this.G=new Map;this.sequenceNumber=1;this.UD=NaN;this.Fd="N";this.B=this.yu=this.TW=this.lr=this.U=0;this.ev=this.aU=this.X=this.qk="";this.zq=this.RU=NaN;this.Ln=0;this.qC=-1;this.pC=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.fn=this.isEmbargoed=this.z2=this.isOffline=this.isBuffering=!1;this.gk=[];this.K=null;this.wO=this.T=this.kx=this.L=!1;this.j=-1;this.AF=!1;this.LC=new g.f9(this.xW,750,this);this.Ud=
  5420. this.adCpn=this.rO=this.contentCpn="";this.adFormat=void 0;this.ST=0;this.Bv=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.zX=new Set(["gd","pw","gp"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.lF=!1;this.vF=NaN;this.dO=0;this.Qp=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.q5=!1;this.wk=new Set;this.fC={Hj:function(Y){q.Hj(Y)},
  5421. f0g:function(){return q.S},
  5422. dc:function(){return q.contentCpn},
  5423. FL5:function(){return q.rO},
  5424. reportStats:function(){q.reportStats()},
  5425. e2r:function(){return q.G.get("cat")||[]},
  5426. w_:function(Y){return q.G.get(Y)||[]},
  5427. vH2:function(){return q.G},
  5428. SQg:function(){return 0},
  5429. uQw:function(){return{adCpn:q.adCpn,Ud:q.Ud,adFormat:q.adFormat}}};
  5430. this.yv=this.provider.Pv.N("html5_qoe_relaxed_reporting");var T=g.Yv(this.provider.Pv.experiments,"html5_qoe_proto_mock_length");T&&!eO.length&&(eO=luX(T));g.C(this,this.LC);try{navigator.getBattery().then(function(Y){q.K=Y})}catch(Y){}g.UV(this,0,"vps",["N"]);
  5431. d.Pv.uF()&&(this.dO=(0,g.cj)(),this.vF=g.$A(function(){var Y=(0,g.cj)(),e=Y-q.dO;e>500&&q.oU("vmlock",{diff:e.toFixed()});q.dO=Y},250));
  5432. this.provider.videoData.jj&&(this.remoteControlMode=eXg[this.provider.videoData.jj]||0);this.provider.videoData.OP&&(T=NX1(this.provider.videoData.OP),T==null?0:T.length)&&(this.remoteConnectedDevices=T);d.Pv.uF()&&(this.Fw=new DRg,g.C(this,this.Fw));T=g.Yv(d.Pv.experiments,"html5_js_self_profiler_sample_interval_ms");d=g.Yv(d.Pv.experiments,"html5_js_self_profiler_max_samples");T>0&&d>0&&(this.xx=new YN(T,d),g.C(this,this.xx))};
  5433. Xf=function(d,q,T){var Y=d.G.get(q);Y?Y.push(T):d.G.set(q,[T])};
  5434. g.UV=function(d,q,T,Y){Xf(d,T,q.toFixed(3)+":"+Y.join(":"))};
  5435. UCN=function(d,q){var T=d.adCpn||d.provider.videoData.clientPlaybackNonce,Y=d.provider.getCurrentTime(T);g.UV(d,q,"cmt",[Y.toFixed(3)]);T=Y=d.provider.tE(T);if((!d.S||d.provider.Pv.N("html5_shorts_gapless_no_gllat")&&Zu(d.provider.videoData)?0:T*1E3>d.S.Le+100)&&d.S){var e=d.S;T=e.isAd;Y=Y*1E3-e.Le;d.Xp=q*1E3-e.uFx-Y-e.j6r;e=(0,g.cj)()-Y;q=d.Xp;Y=d.provider.videoData;var U=Y.isAd();if(T||U){U=(T?"ad":"video")+"_to_"+(U?"ad":"video");var b={};Y.X&&(b.cttAuthInfo={token:Y.X,videoId:Y.videoId});b.startTime=
  5436. e-q;OG(U,b);g.ZO({targetVideoId:Y.videoId,targetCpn:Y.clientPlaybackNonce},U);pU("pbs",e,U)}else e=d.provider.G2.GN(),e.X!==Y.clientPlaybackNonce?(e.S=Y.clientPlaybackNonce,e.U=q):Y.mT()||g.OL(new g.CW("CSI timing logged before gllat",{cpn:Y.clientPlaybackNonce}));d.oU("gllat",{l:d.Xp.toFixed(),prev_ad:+T});delete d.S}};
  5437. sV=function(d,q){q=q===void 0?NaN:q;q=q>=0?q:g.Jp(d.provider);var T=d.provider.G2.vS(),Y=T.Cw-(d.RU||0);Y>0&&g.UV(d,q,"bwm",[Y,(T.fL-(d.zq||0)).toFixed(3)]);isNaN(d.RU)&&T.Cw&&d.isOffline&&d.Hj(!1);d.RU=T.Cw;d.zq=T.fL;isNaN(T.bandwidthEstimate)||g.UV(d,q,"bwe",[T.bandwidthEstimate.toFixed(0)]);d.provider.Pv.uF()&&Object.keys(T.G).length!==0&&d.oU("bwinfo",T.G);if(d.provider.Pv.uF()||d.provider.Pv.N("html5_log_meminfo"))Y=Cxn(),Object.values(Y).some(function(U){return U!==void 0})&&d.oU("meminfo",
  5438. Y);
  5439. if(d.provider.Pv.uF()){var e;(Y=(e=d.Fw)==null?void 0:wrj(e))&&Object.values(Y).some(function(U){return U!=null})&&d.oU("cpuinfo",Y)}d.xx&&d.oU("jsprof",d.xx.flush());
  5440. d.K&&g.UV(d,q,"bat",[d.K.level,d.K.charging?"1":"0"]);e=d.provider.G2.getVisibilityState();d.qC!==e&&(g.UV(d,q,"vis",[e]),d.qC=e);UCN(d,q);(e=bVH(d.provider))&&e!==d.Ln&&(g.UV(d,q,"conn",[e]),d.Ln=e);XUj(d,q,T)};
  5441. XUj=function(d,q,T){if(!isNaN(T.fb)){var Y=T.fb;T.U<Y&&(Y=T.U);g.UV(d,q,"bh",[Y.toFixed(3)])}};
  5442. J7H=function(d,q,T){g.rn(d.provider.Pv,g.$4(d.provider.videoData)).then(function(Y){var e=!1;q.includes("&dt=")||q.includes("&cotn=")?e=!0:d.provider.Pv.N("qoe_with_networkless")&&(e=!0);var U=d.provider.Pv.N("qoe_send_and_write"),b=d.provider.Pv;Y=mRI(q,b,d.provider.Pv.pageId,d.provider.Pv.sendVisitorIdHeader?d.provider.videoData.visitorData:void 0,Y);b.N("html5_simplify_pings")&&(Y=Y||{});Y?(Y.method="POST",Y.postBody=T,SB2(q,Y,{token:d.provider.videoData.X,Yj:d.provider.videoData.M4,mdxEnvironment:d.provider.videoData.mdxEnvironment},
  5443. b,void 0,e,U&&d.z2)):e?(e=d.provider.Pv.N("networkless_ajax"),b={method:"POST",postBody:T},U&&d.z2?uI().sendAndWrite(q,b):e?g.QB(q,{method:"POST",postBody:T}):uI().sendThenWrite(q,b)):(U=T,U=U===void 0?"":U,$vX(q,U)||g.rM(q,void 0,void 0,void 0,U))})};
  5444. s62=function(d){if(!d.provider.Pv.N("html5_qoe_no_len_check")){for(var q=0,T=g.E(d.G.entries()),Y=T.next();!Y.done;Y=T.next()){var e=g.E(Y.value);Y=e.next().value;e=e.next().value;q+=Y.length+Number(Hz(e,function(U,b){return U+b.length},0))}q>96E3&&(new g.f9(d.reportStats,0,d)).start()}};
  5445. $CY=function(d){d.provider.videoData.t0&&$N(d,"prefetch");d.provider.videoData.q5&&d.oU("reload",{r:d.provider.videoData.reloadReason,ct:d.provider.videoData.q5});d.provider.videoData.kx&&$N(d,"monitor");d.provider.videoData.isLivePlayback&&$N(d,"live");QU&&$N(d,"streaming");d.provider.videoData.jj&&d.oU("ctrl",{mode:d.provider.videoData.jj},!0);if(d.provider.videoData.OP){var q=d.provider.videoData.OP.replace(/,/g,"_");d.oU("ytp",{type:q},!0)}d.provider.videoData.wL&&(q=d.provider.videoData.wL.replace(/,/g,
  5446. "."),d.oU("ytrexp",{ids:q},!0));q=d.provider.videoData;var T=d.provider.Pv.N("enable_white_noise")||d.provider.Pv.N("enable_webgl_noop"),Y=g.ux(q)||g.VM(q)||g.dm(q)||g.qC(q);(T||Y)&&(T=(0,g.gk)())&&d.G.set("gpu",[T]);NC(d.provider.videoData)&&g.UV(d,g.Jp(d.provider),"dt",["1"]);d.provider.N("html5_record_is_offline_on_playback_attempt_start")&&q.cotn&&!NC(q)&&d.Hj(!0);d.provider.Pv.uF()&&(q=(0,g.cj)()-d.provider.Pv.vA,d.oU("playerage",{secs:Math.pow(1.6,Math.round(Math.log(q/1E3)/Math.log(1.6))).toFixed()}));
  5447. d.T=!0;d.UD=g.$A(function(){d.reportStats()},1E4)};
  5448. F7H=function(d,q,T){var Y=g.Jp(d.provider);g4f(d,Y,q,0,T);sV(d,Y);s62(d)};
  5449. g4f=function(d,q,T,Y,e){var U=d.provider.Pv.G.cbrver;d.provider.Pv.G.cbr==="Chrome"&&/^96[.]/.test(U)&&T==="net.badstatus"&&/rc\.500/.test(e)&&NmN(d,3);d.provider.Pv.N("html5_use_ump")&&/b248180278/.test(e)&&NmN(d,4);U=d.provider.getCurrentTime(d.adCpn||d.provider.videoData.clientPlaybackNonce);Y=Y===1?"fatal":"";T=[T,Y,U.toFixed(3)];Y&&(e+=";a6s."+l9());e&&T.push(RXI(e));g.UV(d,q,"error",T);d.T=!0};
  5450. xC_=function(d,q){var T=g.Jp(d.provider);if(!d.provider.Pv.experiments.Wv("html5_refactor_sabr_video_format_selection_logging")||q.G.id!==d.qk){var Y=[q.G.id,q.U,d.qk,q.reason];q.token&&Y.push(q.token);g.UV(d,T,"vfs",Y);d.qk=q.G.id;Y=d.provider.G2.getPlayerSize();if(Y.width>0&&Y.height>0){Y=[Math.round(Y.width),Math.round(Y.height)];var e=g.Mi();e>1&&Y.push(e);g.UV(d,T,"view",Y)}d.kx||(d.provider.Pv.uF()&&$N(d,"rqs2"),d.provider.videoData.G&&LY(d.provider.videoData.G)&&d.G.set("preload",["1"]));d.kx=
  5451. !0;d.T=!0}q.reason==="m"&&++d.ST===100&&NmN(d,2);g.UV(d,T,"vps",[d.Fd]);d.yv||d.reportStats(T)};
  5452. y7Y=function(d){d.j>=0||(d.provider.Pv.Je||d.provider.G2.getVisibilityState()!==3?d.j=g.Jp(d.provider):d.AF=!0)};
  5453. hX6=function(d,q,T){if(d.provider.Pv.experiments.Wv("html5_refactor_sabr_audio_format_selection_logging")){q=T.G;var Y=[q.audio&&q.video?q.pJ?q.pJ:"":q.id];q.DQ&&q.DQ.id&&Y.push(q.DQ.id);q=Y.join(";");q!==d.X&&(Y=[q,d.X,T.reason],T.token&&Y.push(T.token),g.UV(d,g.Jp(d.provider),"afs",Y),d.X=q)}else T.G.id!==d.X&&(Y=[T.G.id,d.X,T.reason],T.token&&Y.push(T.token),g.UV(d,q,"afs",Y),d.X=T.G.id)};
  5454. $N=function(d,q){Xf(d,"cat",q)};
  5455. HV_=function(d,q,T,Y,e){var U=g.Jp(d.provider);q!==1&&q!==3&&q!==5||g.UV(d,U,"vps",[d.Fd]);Xf(d,"xvt","t."+U.toFixed(3)+";m."+e.toFixed(3)+";g.2;tt."+q+";np.0;c."+T+";d."+Y)};
  5456. NmN=function(d,q){d.wO||(Xf(d,"fcnz",""+q),d.wO=!0)};
  5457. RXI=function(d){/[^a-zA-Z0-9;.!_-]/.test(d)&&(d=d.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return d};
  5458. g.NZ=function(d,q,T,Y,e,U,b,J,F,N){J=J===void 0?!1:J;g.W.call(this);var R=this;this.G2=d;this.schedule=q;this.policy=T;this.vv=Y;this.yv=F;this.wk=N;this.ED=null;this.RU=this.qk=this.aU=this.UD=0;this.Uv=this.zk=this.isSuspended=!1;this.Bv="";this.zX={};this.Qp=NaN;this.lF=0;this.lr=null;this.vF=this.xx=!1;this.IT=0;this.kx=!1;this.dO=this.wO=0;this.zq=null;this.Rf=function(){return R.G2.Rf()};
  5459. this.timing=new fTN(this.wk);this.B=new Iz(this.schedule,this.policy);this.Ln=new g.f9(this.Yo,0,this);this.ev=new g.f9(this.Yo,this.policy.Ln,this);this.nM=new g.f9(this.Yo,1E3,this);this.gk=new g.f9(this.Yo,void 0,this);this.Fw=new g.f9(function(){R.isSuspended||R.Yo()},1E4,this);
  5460. this.qC=new g.f9(this.D3w,250,this);this.X=this.currentTime=NaN;this.S9=new k8(5);this.z2=this.timestampOffset=NaN;this.logger=new g.cb("dash");this.LC=Infinity;this.fC={getAudioTrack:function(){return R.audioTrack},
  5461. qQv:function(){return R.videoTrack},
  5462. getManifest:function(){return R.vv},
  5463. sZr:function(){return R.U},
  5464. Yo:function(){R.Yo()},
  5465. jb:function(){R.UD=0;R.jb()},
  5466. EGU:function(y){return Ff(R,R.videoTrack,R.ED.U,y)}};
  5467. d=F&&F.mF();F&&(P86(F,this.vv,this.policy),this.z2=Date.now());this.G=new sz(this,this.B,T,this.vv,e,d);T=HyD(this.G,U,b&&b.id);this.audioTrack=new LP(this,this.policy,T.audio,this.timing);this.videoTrack=new LP(this,this.policy,T.video,this.timing);this.videoTrack.T.rO=this.audioTrack.K7();this.AF={updateend:this.rT,error:this.Rg5};g.C(this,this.Ln);g.C(this,this.ev);g.C(this,this.nM);g.C(this,this.gk);g.C(this,this.Fw);T=this.policy.I$&&this.policy.zv?!Kr7(this.videoTrack.G.info):!1;this.pC=BTN({zz:this.policy.L.zz||
  5468. T,zv:this.policy.zv&&!T,pW:this.policy.pW});this.L=GC2(this,this.policy,this.pC,this.schedule,this.S9,function(y,h){return Q6j(R,y,h)});
  5469. this.j=new mD(this,this.vv,this.policy,this.videoTrack,this.audioTrack,J);this.policy.wO&&this.policy.U&&(this.rO=new sdY(function(y,h){R.oU(y,h)}));
  5470. this.AE=new VD(this,this.vv,this.videoTrack,this.audioTrack,this.policy);J=this.policy.Ja?this.G2.getVideoData().Rg:null;this.S=new UY(this,this.policy,this.videoTrack,this.audioTrack,this.zX,this.j,this.timing,this.B,this.schedule,this.vv,this.G,this.L,T,J);g.C(this,this.S);this.T=new BM(this,this.policy,this.videoTrack,this.audioTrack,this.vv,e,OB(this.G2.getVideoData()),b==null?void 0:b.id);g.C(this,this.T);VJH(this.T,U);this.U=new Tdf(this.G2,this,this.policy,this.audioTrack,this.videoTrack,this.vv,
  5471. this.schedule,this.G,this.T,this.timing,this.j);g.C(this,this.U);this.K=this.G2.h1.z0.J6;this.policy.S||MfH(this);if(this.policy.R6){var x;this.fn=new AwD(this.videoTrack.G.index,(x=this.G2.getVideoData().clientPlaybackNonce)!=null?x:"",this.G2,this.policy.kx);this.policy.kx===3&&(this.q5=new g.f9(this.Mv,200,this),this.q5.start(),g.C(this,this.q5))}this.logger.debug("Created")};
  5472. MfH=function(d){var q,T;if((q=d.K)==null?0:(T=q.Sg)==null?0:T.itagDenylist){var Y;d.NH((Y=d.K)==null?void 0:Y.Sg.itagDenylist)}var e;if((e=d.K)==null?0:e.playbackStartPolicy){var U,b;YW(d.policy,(U=d.K)==null?void 0:U.playbackStartPolicy,3,(b=d.K)==null?void 0:b.HR())}if(d.policy.H1){q=d.Sh();var J;(T=q?(J=d.K)==null?void 0:J.Nw.get(q):void 0)&&d.U.EZ(T)}if(!d.vv.K){var F;J=(F=d.K)==null?void 0:F.Ks;(J==null?0:J.F5)&&(J==null?0:J.lB)&&d.vv.aN&&vb(d.vv,J.F5,J.lB)}var N;((N=d.K)==null?0:N.Xe)&&(F=d.K.Xe.get(d.Sh()||
  5473. ""))&&d.vv&&F.formatId&&(d=d.vv.j.get(SL(F.formatId)))&&(d.info.debugInfo=F.debugInfo)};
  5474. c7I=function(d,q){var T=SL(g.DB(q.G.info,d.vv.aN)),Y,e=((Y=d.yv)==null?void 0:Y.jN(T))||[];if(e.length===0)return d.oU("ombmsi",{}),!1;e=new Jl(e);if(Y=!d.policy.UD||isFinite(d.getCurrentTime())||d.G2.Eq()){a:{Y=d.getCurrentTime();e=g.E(e.Zw);for(var U=e.next();!U.done;U=e.next())if(U=U.value,U.type===3&&Y>=U.T&&Y<=U.X){Y=!0;break a}Y=!1}Y=!Y}if(Y)return d.oU("ostmf",{ct:d.getCurrentTime(),a:q.G.info.JE()}),!1;(d=d.yv)!=null&&(d.vG.get(T).pk=!0);return!0};
  5475. E47=function(d){if(!d.vv.aN)return!0;var q=d.G2.getVideoData();if(d.G2.k6())return d.oU("ombpa",{}),!1;var T,Y;if(!!((T=d.K)==null?0:(Y=T.Ks)==null?0:Y.x32)!==d.vv.uC)return d.oU("ombplmm",{}),!1;T=q.lF||q.liveUtcStartSeconds||q.wk;if(d.vv.uC&&T)return d.oU("ombplst",{}),!1;if(d.vv.K)return d.oU("ombab",{}),!1;T=Date.now();return od(d.vv)&&!isNaN(d.z2)&&T-d.z2>d.policy.hg*1E3?(d.oU("ombttl",{}),!1):d.vv.QX&&d.vv.T||!d.policy.Yt&&d.vv.isPremiere||Ct(q)!==0&&!d.policy.G||q.N("html5_disable_onesie_media_for_mosaic")&&
  5476. FG(q)||q.y5()&&!q.N("html5_enable_onesie_media_for_lifa")&&q.isDaiEnabled()&&q.enableServerStitchedDai||q.N("html5_disable_onesie_media_for_lifa_eligible")&&gm(q)?!1:!0};
  5477. j6_=function(d,q){var T=q.G,Y=d.vv.aN;if(E47(d))if(d.yv&&d.yv.vG.has(SL(g.DB(T.info,Y)))){if(Y=SL(g.DB(T.info,Y)),c7I(d,q)){var e=new Jl(d.yv.jN(Y)),U=function(b){try{if(b.E5())d.handleError(b.nA(),b.P$()),SM(q,b),$w(b.info)&&sY(d.S,q,T,!0),d.Yo();else if($W(d.S,b)){var J;(J=d.j)==null||e86(J,b.info,d.lr);d.Yo()}}catch(F){b=hQ(F),d.handleError(b.errorCode,b.details,b.severity),d.ZE()}};
  5478. T.j=!0;s$(e)&&(Wo(q,new dK(d.policy,Y,e,d.yv,U)),I3(d.timing))}}else d.oU("ombfmt",{})};
  5479. a$H=function(d,q){q=q||d.videoTrack&&d.videoTrack.U&&d.videoTrack.U.startTime||d.getCurrentTime();var T=Fw,Y=d.videoTrack,e=d.G;q=e.nextVideo&&e.nextVideo.index.yg(q)||0;e.rO!==q&&(e.dO={},e.rO=q,$_(e,e.G));q=!e.G.isLocked()&&e.K>-1&&(0,g.cj)()-e.K<e.policy.Qq*1E3;var U=e.nextVideo&&NM(e,e.nextVideo.info)*3<li(e.yv);if(!q||U)J5(e),gf(e),e.UD=e.UD||e.nextVideo!==e.j;e.nextVideo&&!e.nextVideo.index.isLoaded()&&(e.rO=-1);T(d,Y,e.nextVideo);Fw(d,d.audioTrack,d.G.U)};
  5480. A7_=function(d,q){d.zk=q;d.policy.rO||(d.logger.debug("Suspended."),d.isSuspended=!0,d.policy.Lh&&(d.nM.stop(),d.ev.stop(),d.Ln.stop()),d.Fw.stop())};
  5481. vX=function(d,q,T,Y){d.policy.U&&d.Sc(!1,"rollback");if(d.vv.isManifestless){var e=Io(d.audioTrack,Y,T,q),U=Io(d.videoTrack,Y,T,q);d.policy.dA||(U&&lP(d.vv,Y,!0),e&&lP(d.vv,Y,!1));U&&(d.videoTrack.lr=[]);e&&(d.audioTrack.lr=[]);d.oU("sdai",{rollbk2_seg:Y,rbt:T.toFixed(3),lt:q.toFixed(3),a:e,v:U});(e||U)&&d.policy.U&&dk(d)}};
  5482. pUf=function(d,q){if(!isNaN(d.Qp)){var T=Date.now()-d.Qp;T<1E4&&d.oU("bfaswtch",{ep:T,sk:q!==void 0?"1":"0",sr:q||""})}};
  5483. ZVY=function(d){d.logger.debug("Rebuffering.");d.Uv=!0;if(d.policy.vF&&d.ED){var q,T,Y,e;d.oU("lr_rb",{c:d.getCurrentTime(),s:d.isSeeking(),ab:lW(d.ED.G.Zm()),ala:(q=Po(d.audioTrack))==null?void 0:q.jt(),alr:(T=d.audioTrack.U)==null?void 0:T.jt(),vb:lW(d.ED.U.Zm()),vla:(Y=Po(d.videoTrack))==null?void 0:Y.jt(),vlr:(e=d.videoTrack.U)==null?void 0:e.jt()})}d.G2.DL()!==0&&d.oU("sps_rebuffer",{c:d.getCurrentTime()})};
  5484. OV_=function(d){d.policy.zX=!1;try{d.jb()}catch(q){g.Zz(q)}};
  5485. r71=function(d,q,T,Y){T=T===void 0?!1:T;Y=Y===void 0?!1:Y;d.policy.rO&&(d.logger.debug("disable updateMetadataWithoutMediaSource"),d.policy.dO&&d.oU("loader",{setsmb:0}),d.ZE(),d.policy.rO=!1);d.logger.debug("attaching media source");n4N(d,Y);if(!NF(q)){var e=sj(d.videoTrack),U=sj(d.audioTrack);e=(e?e.info.G:d.videoTrack.G).info;var b=(U?U.info.G:d.audioTrack.G).info;U=d.policy.B3;U=e.mimeType+(U===void 0?"":U);var J=b.mimeType;e=e.Cf;b=b.Cf;var F;q.lr=(F=q.ED)==null?void 0:F.addSourceBuffer(J);var N;
  5486. q.UD=U.split(";")[0]==="fakesb"?void 0:(N=q.ED)==null?void 0:N.addSourceBuffer(U);q.Jk&&(q.Jk.webkitSourceAddId("0",J),q.Jk.webkitSourceAddId("1",U));F=new bN(q.lr,q.Jk,"0",rP(J),b,!1);N=new bN(q.UD,q.Jk,"1",rP(U),e,!0);DPX(q,F,N)}T=T===void 0?!1:T;Y=Y===void 0?!1:Y;k_(d.videoTrack,q.U||null,Y);k_(d.audioTrack,q.G||null,Y);d.ED=q;d.ED.T=!0;T||d.resume();q.G.Ts(d.AF,d);q.U.Ts(d.AF,d);try{d.Yo()}catch(R){g.Zz(R)}};
  5487. n4N=function(d,q){q=q===void 0?!1:q;d.ED&&d.ED.G&&d.ED.U&&(d.ED.G.jC(d.AF,d),d.ED.U.jC(d.AF,d));k_(d.audioTrack,null,q);k_(d.videoTrack,null,q);d.ED&&(d.ED.T=!1);d.ED=null};
  5488. tfH=function(d){d.ED&&d.ED.Zh()&&d.dD()};
  5489. K7H=function(d,q){if(!d.JF())if(d.policy.G){if(!diD(d.T,q)){var T=d.T.U;VJH(d.T,q);var Y=!1;Y=q.isLocked()&&q.reason==="m"&&qmf(d.T,q.G);var e=d.policy.Pf&&q.reason==="l";T=T.G>q.G&&q.reason==="b";Y||e||T?(d.G2.zH({reattachOnConstraint:Y?"u":e?"drm":"perf",lo:q.U,up:q.G}),d.policy.Vt||(d.T.G.U=!1)):(d.policy.Vt&&(d.T.G.U=!1),dk(d))}}else if(!Qdj(d.G,q)&&d.videoTrack){d.logger.debug(function(){return"Setting constraint: r="+q.reason+" u="+q.G});
  5490. T=d.G.G;Bmf(d,clf(d.G,q));a$H(d);Y=q.isLocked()&&q.reason==="m"&&d.G.UD;e=d.policy.Pf&&q.reason==="l"&&vo(d.videoTrack);T=T.G>q.G&&q.reason==="b";var U=d.G.AF&&!XD();Y||e||T||U?d.G2.zH({reattachOnConstraint:Y?"u":e?"drm":U?"codec":"perf"}):dk(d)}};
  5491. GJH=function(d,q,T){if((!d.ED||$x(d.ED)&&!d.policy.sx)&&!d.AE.isSeeking()&&(d.policy.G||vo(q)&&q.G.pj()&&d.G.lr)){var Y=d.getCurrentTime()+hHj(d.B,q,T);d.logger.debug(function(){return"Clearing back to "+Y.toFixed(3)});
  5492. E87(q,Y)}};
  5493. Bmf=function(d,q){q&&(d.logger.debug(function(){return"Logging new format: "+m1(q.video.info)}),L7Y(d.G2,new Y_(q.video,q.reason)));
  5494. if(d.G.xx){var T=Alg(d.G,"a");d.G2.Aa(new Y_(T.audio,T.reason))}};
  5495. dk=function(d){g.zh(d.Ln)};
  5496. gZ=function(d){d.policy.Ln&&d.policy.pW&&Math.min(cj_(d.videoTrack),cj_(d.audioTrack))*1E3>d.policy.WD?g.zh(d.ev):d.Yo()};
  5497. kJH=function(d,q){var T=(0,g.cj)()-q,Y=is(d.audioTrack,!0)*1E3,e=is(d.videoTrack,!0)*1E3;d.logger.debug(function(){return"Appends paused for "+T});
  5498. if(d.policy.j&&(d.oU("apdpe",{dur:T.toFixed(),abuf:Y.toFixed(),vbuf:e.toFixed()}),T$(d.policy))){var U=li(d.B);d.oU("sdps",{ct:q,ah:Y.toFixed(),vh:e.toFixed(),mr:vs(d.B,d.Uv,U),bw:U.toFixed(),js:d.isSeeking(),re:+d.Uv,ps:(d.policy.Th||"").toString(),rn:(d.policy.wQ||"").toString()})}};
  5499. PHf=function(d){if(OON(d.videoTrack))return d.logger.debug("Pausing appends for server-selectable format"),"ssf";if(d.policy.qk&&dZ(d.videoTrack)&&dZ(d.audioTrack))return"updateEnd";if(ls(d.audioTrack)||ls(d.videoTrack)&&d.videoTrack.G.info.Cf!=="f")return"";if(d.AE.isSeeking()){var q=d.B;var T=d.videoTrack;var Y=d.audioTrack;if(q.policy.G){var e=q.policy.w4;T$(q.policy)&&(e=vs(q,!1,li(q)));q=e;T=is(Y,!0)>=q&&is(T,!0)>=q}else T.j.length||Y.j.length?(e=T.G.info.Vv+Y.G.info.Vv,e=10*(1-li(q)/e),q=Math.max(e,
  5500. q.policy.w4),T=is(Y,!0)>=q&&is(T,!0)>=q):T=!0;if(!T)return"abr";T=d.videoTrack;if(T.j.length>0&&T.T.U.length===1&&vwn(T.T).info.B<T.RU)return"seek"}if(d.policy.U&&rjf(d.videoTrack,d.j)&&rjf(d.audioTrack,d.j))return"ssdai";T=!d.policy.K8||d.getCurrentTime()<10;d.policy.G||(T=T||d.videoTrack.G.info.video.qualityOrdinal>360);Y=T$(d.policy)&&d.policy.Se;if(!d.Uv||!Y&&T)return"";T=d.policy.K8;T$(d.policy)&&(T=vs(d.B,d.Uv,li(d.B)));T=aNg(d.videoTrack,d.getCurrentTime(),T)||aNg(d.audioTrack,d.getCurrentTime(),
  5501. T);return T$(d.policy)?T?"mbnm":"":(d.videoTrack.j.length>0||d.audioTrack.j.length>0||bo(d.S,d.videoTrack,d.audioTrack)||bo(d.S,d.audioTrack,d.videoTrack))&&T?"nord":""};
  5502. W7D=function(d){if(d.L){var q=d.L.Yo(d.audioTrack,dC(d.ED.U.Zm()));q&&d.G2.seekTo(q,{Zn:!0,b$:"pollSubsegmentReadahead",Xt:!0})}};
  5503. iV2=function(d,q,T){if(d.policy.qk&&dZ(q))return!1;if(T.Ka())return!0;if(!T.ZP())return!1;var Y=sj(q);if(!Y||Y.info.type===6)return!1;var e;if(d.policy.gx||((e=d.j)==null?0:JlQ(e,q,Y.info.sD)))d.RU=0;else return d.AE.isSeeking()&&dk(d),d.RU=d.RU||(0,g.cj)(),!1;if(!Ff(d,q,T,Y.info))return!1;if(d.vv.U&&Y.info.U===0){if(e=CH1(q,T,Y)){var U=Po(q);d.oU("initchg",{it:Y.info.G.info.id,sr:!!U&&U.G===Y.info.G,ty:Y.info.type,seg:Y.info.sD})}U=g.Ce(Y.info.G.info);d.policy.V5&&U&&!e&&UF1(Y)}U=d.L&&!!d.L.T&&q.G.info.audio;
  5504. e=d.vv.isManifestless||Y.S;if(!(d.vv.U&&Y.info.U!==0||e&&!U)&&uG7(d,q,T,Y))return!0;if(U)return!1;U=e6(d,q);U=d.getCurrentTime()+U;if(Y.info.T>U)return d.policy.G&&DC1(d,q),d.policy.BJ&&nej(q.T,U,!1),!1;wUn(d,q);var b;d.policy.Je&&T===((b=d.ED)==null?void 0:b.G)&&d.kx&&(T.y_()===0?(d.kx=!1,d.policy.Je=!1):d.wO=T.y_());if(!f$I(d,T,Y,q))return!1;d.policy.qk&&Y.info.qQ()?(d.G2.C().uF()&&d.oU("eosl",{ls:Y.info.jt()}),Y.isLocked=!0):(q.Ad(Y),ae1(d.G,Y.info),d.logger.debug(function(){return"Appended "+
  5505. Y.info.jt()+", buffered: "+lW(T.Zm())}));
  5506. e&&zX1(d,Y.info.G.ZC);return!0};
  5507. DC1=function(d,q){q===d.videoTrack?d.qk=d.qk||(0,g.cj)():d.aU=d.aU||(0,g.cj)()};
  5508. wUn=function(d,q){q===d.videoTrack?d.qk=0:d.aU=0};
  5509. f$I=function(d,q,T,Y){var e=d.policy.vF?(0,g.cj)():0,U=T.S&&T.info.G.G||void 0,b=T.U;T.S&&(b=I$6(d,T,b)||b);var J=$X(b);b=d.policy.vF?(0,g.cj)():0;q=mCH(d,q,J,T.info,U);(Y=Y.K)!=null&&(U=T.info,e=b-e,b=(0,g.cj)()-b,!Y.U||EV7(Y.U,U)&&Y.U.sD===U.sD||Y.flush(),Y.T+=e,Y.j+=b,e=1,!Y.U&&U.U&&(e=2),yx(Y,e,q),b=Math.ceil(U.U/1024),e===2&&Y.G.add(b),Y.G.add(Math.ceil((U.U+U.j)/1024)-b),Y.U=U);d.dO=0;if(q===0)return d.xx&&(d.logger.debug("Retry succeed, back to normal append logic."),d.xx=!1,d.vF=!1),d.lF=
  5510. 0,!0;if(q===2||q===5)return SFX(d,"checked",q,T.info),!1;if(q===1){if(!d.xx)return d.logger.debug("QuotaExceeded, retrying."),d.xx=!0,!1;if(!d.vF)return d.vF=!0,d.G2.seekTo(d.getCurrentTime(),{b$:"quotaExceeded",Xt:!0}),!1;T.info.eh()?(e=d.policy,e.aU=Math.floor(e.aU*.8),e.yv=Math.floor(e.yv*.8)):(e=d.policy,e.Bv=Math.floor(e.Bv*.8),e.yv=Math.floor(e.yv*.8));d.policy.G?Uz(d.T.G,T.info.G,!1):Ft(d.G,T.info.G)}d.G2.zH({reattachOnAppend:q});return!1};
  5511. I$6=function(d,q,T){var Y;if(Y=d.policy.qK&&d.ED&&!d.ED.B&&!d.G2.bk())q=q.info.G.info,Y=q.fz()&&Ke(q)&&q.video&&q.video.width<3840&&q.video.width>q.video.height;if(Y&&(d.ED.B=!0,cH('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return T=S$1(T),d.policy.j&&d.oU("sp4k",{s:!!T}),T};
  5512. SFX=function(d,q,T,Y){var e="fmt.unplayable",U=1;T===5||T===3?(e="fmt.unparseable",d.policy.G?!Y.G.info.video||bs(d.T.G).size>0||Uz(d.T.G,Y.G,!1):!Y.G.info.video||bs(d.G.S).size>0||Ft(d.G,Y.G)):T===2&&(d.lF<15?(d.lF++,e="html5.invalidstate",U=0):e="fmt.unplayable");Y=bP(Y);var b;Y.mrs=(b=d.ED)==null?void 0:Rp(b);Y.origin=q;Y.reason=T;Y.trg="appenderr";d.handleError(e,Y,U)};
  5513. FzI=function(d,q,T,Y,e){var U=d.vv;var b=d.policy.G,J=!1,F=-1,N;for(N in U.G){var R=iW(U.G[N].info.mimeType)||U.G[N].info.eh();if(Y===R)if(R=U.G[N].index,R.Zb(q.sD)){J=R;var x=q,y=J.nS(x.sD);y&&y.startTime!==x.startTime?(J.segments=[],J.jS(x),J=!0):J=!1;J?F=q.sD:!q.pending&&b&&(x=R.getDuration(q.sD),x!==q.duration&&(U.publish("clienttemp","mfldurUpdate",{itag:U.G[N].info.itag,seg:q.sD,od:x,nd:q.duration},!1),R.jS(q),J=!0))}else R.jS(q),J=!0}F>=0&&(b={},U.publish("clienttemp","resetMflIndex",(b[Y?
  5514. "v":"a"]=F,b),!1));U=J;KpY(d.AE,q,Y,U);if(d.policy.wO&&d.policy.U&&(F=q.iC||null)){var h;b=(h=d.U)==null?void 0:HtD(h).requestNumber;var H;(H=d.rO)==null||$GX(H,F,b)}d.j.DI(q,T,Y,e);q.sD===d.vv.QX&&U&&Id(d.vv)&&q.startTime>Id(d.vv)&&(d.vv.rO=q.startTime+(isNaN(d.timestampOffset)?0:d.timestampOffset),d.AE.isSeeking()&&d.AE.targetTime<d.vv.BG()&&d.AE.seek(d.vv.BG(),{}))};
  5515. Ff=function(d,q,T,Y){var e=Po(q);!e||e.S||eu(e,Y)||(T.abort(),d.policy.M0&&(e=q.B)!=null&&(e.j=void 0),(q=q.K)!=null&&(yx(q,4),q.flush()));if(!T.h9()||XD())try{d.policy.h2?T.nD(Y.G.info.containerType,Y.G.info.Cf)&&T.S2(Y.G.info.containerType,Y.G.info.Cf,Y.G.info.mimeType):T.m6(Y.G.info.containerType,Y.G.info.mimeType)}catch(U){return T=U,g.OL(T),d.oU("ctexp",{name:T.name,msg:T.message}),!1}else Y.G.info.containerType!==T.h9()&&d.oU("ctu",{ct:XD(),prev_c:T.h9(),curr_c:Y.G.info.containerType});q=Y.G.T;
  5516. d.policy.sZ&&q&&(Y=0+q.duration,q=-q.G,0===T.iE()&&Y===T.nB()||T.qa(0,Y),q!==T.mz()&&(T.Ii(q),KP&&Rhn(d.audioTrack.K7(),T.zI())));return!0};
  5517. uG7=function(d,q,T,Y){Y.info.G.pj();var e=Y.info.G.G;if(!e||!T.ZP()||T.vu()===e)return!1;var U=e,b=T.Wo();if(d.policy.A6&&b&&T.isView()&&g.Ce(Y.info.G.info)){var J=new DataView(e.buffer,e.byteOffset,e.byteLength);(b=eIN(J,b))?U=new Uint8Array(b.buffer,b.byteOffset,b.byteLength):d.oU("fenc",{})}d.policy.qK&&(b=I$6(d,Y,new e2([U])))&&(U=$X(b));var F;(b=Y.info.G.Sd(0,Y.info.clipId))&&(F=b.Zw[0]);if(Y===d.zq){if(d.dO+=1,d.G2.getVideoData().N("html5_shorts_gapless_restart_on_init_seg_retries")&&d.dO>5)return d.dO=
  5518. 0,d.G2.zH({initSegStuck:1,as:Y.info.jt()}),!0}else d.dO=0,d.zq=Y;d.policy.lq&&(T.abort(),(b=q.K)!=null&&(yx(b,4),b.flush()));e=mCH(d,T,U,F,e);var N;(N=q.K)==null||KFI(N,e,F);if(e!==0)return l$D(d,e,Y),!0;Y.info.eh()?SKQ(d.timing):lTf(d.timing);d.logger.debug(function(){return"Appended init for "+Y.info.G.info.id});
  5519. zX1(d,Y.info.G.ZC);return T.e8()};
  5520. CH1=function(d,q,T){if(q.vu()==null){d=Po(d);if(!(q=!d||d.G!==T.info.G)){a:if(d=d.K,T=T.info.K,d.length!==T.length)T=!1;else{for(q=0;q<d.length;q++)if(!g.Is(d[q],T[q])){T=!1;break a}T=!0}q=!T}return q}d=q.vu();T.info.G.Rw()&&ny(T);T=T.info.G.G;return d!==T&&!g.Is(d,T)};
  5521. mCH=function(d,q,T,Y,e){try{var U,b=q===((U=d.ED)==null?void 0:U.G)?d.audioTrack:d.videoTrack;if(d.policy.qk&&(Y==null?0:Y.qQ())){if((Y==null?void 0:Y.lr)>1)return 6;b.dO=new g.f9(function(){var J=sj(b);d.JF()||J==null||!J.isLocked?d.G2.C().uF()&&d.oU("eosl",{delayA:J==null?void 0:J.info.jt()}):v4_(b)?(d.G2.C().uF()&&d.oU("eosl",{dunlock:J==null?void 0:J.info.jt()}),o4j(d,b===d.audioTrack)):(d.oU("nue",{ls:J.info.jt()}),J.info.lr+=1,d.ED&&d.jb())},1E4,d);
  5522. d.G2.C().uF()&&d.oU("eosl",{delayS:Y.jt()});b.dO.start()}d.policy.Au&&(Y==null?void 0:Y.G)instanceof Fo&&Y.qQ()&&d.oU("poseos",{itag:Y.G.info.itag,seg:Y.sD,lseg:Y.G.index.nC(),es:Y.G.index.j});q.appendBuffer(T,Y,e)}catch(J){if(J instanceof DOMException){if(J.code===11)return 2;if(J.code===12)return 5;if(J.code===22||J.message.indexOf("Not enough storage")===0)return q=Object.assign({name:"QuotaExceededError",buffered:lW(q.Zm()).replace(/,/g,"_"),vheap:fP(d.videoTrack),aheap:fP(d.audioTrack),message:g.pp(J.message,
  5523. 3),track:d.ED?q===d.ED.U?"v":"a":"u"},Cxn()),d.handleError("player.exception",q),1;g.Zz(J)}return 4}return d.ED.Zh()?3:0};
  5524. Jk=function(d,q,T){pUf(d,T.b$||"unknown");d.G2.seekTo(q,T)};
  5525. zX1=function(d,q){q&&d.G2.Wq(new ao(q.key,q.type))};
  5526. Oz=function(d,q){d.G2.FH(q)};
  5527. e6=function(d,q){if(d.xx&&!d.Uv)return 3;if(d.isSuspended)return 1;var T;if((T=d.ED)==null?0:T.ED&&T.ED.streaming===!1)return 4;T=(q.G.info.audio?d.policy.Bv:d.policy.aU)/(q.Vv*d.policy.hC);if(d.policy.Xc>0&&d.ED&&$x(d.ED)&&(q=q.G.info.video?d.ED.U:d.ED.G)&&!q.e8()){q=q.Zm();var Y=vH(q,d.getCurrentTime());Y>=0&&(q=d.getCurrentTime()-q.start(Y),T+=Math.max(0,Math.min(q-d.policy.Xc,d.policy.TE)))}d.policy.yv>0&&(T=Math.min(T,d.policy.yv));return T};
  5528. XrQ=function(d,q){return(e6(d,q)+d.policy.Vq)*q.Vv};
  5529. df2=function(d){d.Bv&&!d.isSuspended&&mz(d.schedule)&&(VfY(d,d.Bv),d.Bv="")};
  5530. VfY=function(d,q){ii(q,"cms",function(T){d.policy.j&&d.oU("pathprobe",T)},function(T){d.G2.handleError(T)})};
  5531. qcD=function(d,q){if(d.ED&&d.ED.T&&!d.ED.Zh()&&(q.fb=is(d.videoTrack),q.U=is(d.audioTrack),d.policy.j)){var T=fP(d.videoTrack),Y=fP(d.audioTrack),e=lW(d.ED.U.Zm(),"_",5),U=lW(d.ED.G.Zm(),"_",5);Object.assign(q.G,{lvq:T,laq:Y,lvb:e,lab:U})}q.bandwidthEstimate=mH(d.B);var b;(b=d.audioTrack.K)==null||b.flush();var J;(J=d.videoTrack.K)==null||J.flush();d.logger.debug(function(){return RI(q.G)})};
  5532. TRN=function(d,q){d.lr=q;d.j&&(d.j.j=q);d.lr.AX(d.videoTrack.G.info.fz());d.S.U=d.lr;d.policy.U&&(d.U.B=d.lr)};
  5533. e9N=function(d,q){if(d.ED&&d.ED.U){if(d.policy.t5){var T=tJj(d.audioTrack);if(T&&T.JE()){var Y=d.G2;if(Y.eS&&(Y.eS.G=T,T=Y.X9,T.qoe)){T=T.qoe;Y=Y.eS;var e=g.Jp(T.provider);hX6(T,e,Y)}}}d.policy.j1&&(T=tJj(d.videoTrack))&&T.eh()&&(Y=d.G2,Y.DR&&(Y.DR.G=T,T=Y.X9,T.qoe&&xC_(T.qoe,Y.DR)));q-=isNaN(d.timestampOffset)?0:d.timestampOffset;d.getCurrentTime()!==q&&d.resume();d.AE.isSeeking()&&d.ED&&!d.ED.Zh()&&(Y=d.getCurrentTime()<=q&&q<d.getCurrentTime()+10,T=oI(d.ED.U.Zm(),d.getCurrentTime()+YcX),Y&&T&&
  5534. (d.AE.T=!1));d.AE.isSeeking()||d.policy.z2&&!d.policy.q5||(d.currentTime=q);if(d.policy.R6&&d.policy.kx===2&&g.I(d.G2.getPlayerState(),8)){var U;(U=d.fn)==null||Ztg(U,q)}g.zh(d.nM)}};
  5535. Ufg=function(d,q){var T=D9(d.videoTrack).find(function(Y){return Y.startTime>=q&&Q6j(d,Y.startTime,!1)});
  5536. return T&&T.startTime<q+T.duration*1.5?T.startTime+.1:0};
  5537. Q6j=function(d,q,T){if(!(d.videoTrack.G.pj()&&d.audioTrack.G.pj()&&d.ED&&d.ED.U&&d.ED.G))return!1;if(T&&d.vv.isManifestless&&(d.videoTrack.X===-1||d.audioTrack.X===-1))return!0;var Y=YI(d.videoTrack,q,T);if(isNaN(Y))return!1;d=YI(d.audioTrack,d.policy.ST?q:Y,T);return isNaN(d)?!1:!0};
  5538. R7=function(d){d.ZE();d.AE.isSeeking()&&d.logger.debug("seeking cancelled by seek-to-head");d.L&&LJn(d.L,d.videoTrack.G);dk(d);return OYf(d.AE)};
  5539. Fw=function(d,q,T,Y){(Y===void 0?0:Y)&&!q.qk&&(XD()||(Y=q.RN)&&!Y.o4(T.info)&&d.G2.U6(),q.qk=!0);q.G!==T&&(d.logger.debug(function(){return"Setting target itag: "+T.info.id+" (was "+q.G.info.id+")"}),q.G=T)};
  5540. v4_=function(d){var q,T=(q=sj(d))==null?void 0:q.info;return!T||Vx(d,Math.min(T.T+YcX,T.X))};
  5541. bR6=function(d,q){var T;if((T=sj(q))!=null&&T.isLocked&&v4_(q)){if(d.G2.C().uF()){var Y;d.oU("eosl",{munlock:(Y=sj(q))==null?void 0:Y.info.jt()})}o4j(d,q===d.audioTrack)}};
  5542. o4j=function(d,q){if(d.policy.qk&&d.ED){var T,Y,e=q?(T=d.ED)==null?void 0:T.G:(Y=d.ED)==null?void 0:Y.U;T=q?d.audioTrack:d.videoTrack;q=sj(T);if(q==null?0:q.isLocked){d.G2.C().uF()&&d.oU("eosl",{unlock:q.info.jt()});var U;(U=T.dO)==null||U.stop();q.isLocked=!1;T.Ad(q);ae1(d.G,q.info);e=e==null?void 0:e.ZG();(e==null?void 0:e.jt())!==q.info.jt()&&d.oU("oue",{bls:e==null?void 0:e.jt(),tls:q.info.jt()})}}};
  5543. s7I=function(d,q){d.timestampOffset!==q&&(d.timestampOffset=q,d.policy.dA&&Su(d.vv),d.logger.debug(function(){return"Timestamps will be made relative to "+d.timestampOffset}),d.j.B=d.timestampOffset,d.G2.XV(d.timestampOffset),d.vv.isManifestless&&(d.vv.timestampOffset=d.timestampOffset),d.videoTrack.Ii(d.timestampOffset),d.audioTrack.Ii(d.timestampOffset))};
  5544. JW=function(d){var q=(0,g.cj)();d.IT=q};
  5545. $yj=function(d){d.audioTrack.lr=[];d.videoTrack.lr=[]};
  5546. fN2=function(d){var q=d.lw().filter(function(Y){return Y.namespace==="ad"});
  5547. q=g.E(q);for(var T=q.next();!T.done;T=q.next())if(T=T.value,T.start/1E3>d.getCurrentTime())return T.start/1E3;return Infinity};
  5548. $RY=function(d){if(d.G2.getVideoData().isLivePlayback)return!1;var q=d.G2.WG();if(!q)return!1;q=q.getDuration();if(d.ED&&d.ED.G&&d.ED.U){var T=d.getCurrentTime(),Y=d.ED.G.Zm();d=d.ED.U.Zm();Y=Y?Vb(Y,T):T;T=d?Vb(d,T):T;T=Math.min(Y,T);q=isNaN(T)?!1:T>=q-.01}else q=!1;return q};
  5549. l$D=function(d,q,T){d.policy.M7&&Zu(d.G2.getVideoData())?(d.G2.lj()||SFX(d,"sepInit",q,T.info),gWN(d.G2,"sie")):SFX(d,"sepInit",q,T.info)};
  5550. Ny=function(d){return d.G2.DL()<d.LC};
  5551. g.Ri=function(d){this.Rd=d};
  5552. xN=function(){g.YP.apply(this,arguments)};
  5553. yo=function(d,q,T,Y){xN.call(this);var e=this;this.j=-1;this.G={};this.T=new g.f9(this.S,0,this);g.C(this,this.T);this.U=new g.f9(function(){e.JF()||(e.T.start(Math.random()*T),e.U.start(q))},d,this);
  5554. g.C(this,this.U);Y.subscribe("fairplay_next_need_key_info",this.X,this)};
  5555. Fc7=function(d){if(!(d.length<=28))for(var q=(0,g.GM)([60,0,75,0,73,0,68,0,62,0]),T=28;T<d.length;){a:if(d.length-T<q.length)var Y=!1;else{for(Y=0;Y<q.length;++Y)if(d[T+Y]!==q[Y]){Y=!1;break a}Y=!0}if(Y){T+=q.length;if(d.length<=T+48)break;q=new Uint8Array(24);for(Y=0;Y<24;++Y)q[Y]=d[T+Y*2];d=Re(q);d=ZV(d);if(!d)break;T=d[0];d[0]=d[3];d[3]=T;T=d[1];d[1]=d[2];d[2]=T;T=d[4];d[4]=d[5];d[5]=T;T=d[6];d[6]=d[7];d[7]=T;return d}T++}};
  5556. hp=function(d,q){xN.call(this);var T=this;this.j=d;this.G=[];this.U=new g.f9(function(){T.publish("log_qoe",{wvagt:"timer",reqlen:T.G?T.G.length:-1});if(T.G){if(T.G.length>0){var Y=T.G.shift();NZY(T,Y.info)}T.G.length>0&&(Y=T.G[0].time-(0,g.cj)(),T.U.start(Math.max(0,Y)))}},0);
  5557. g.C(this,this.U);q.subscribe("widevine_set_need_key_info",this.T,this)};
  5558. NZY=function(d,q){a:{var T=q.cryptoPeriodIndex;if(isNaN(T)&&d.j.size>0)T=!0;else{for(var Y=g.E(d.j.values()),e=Y.next();!e.done;e=Y.next())if(e.value.cryptoPeriodIndex===T){T=!0;break a}T=!1}}d.publish("log_qoe",{wvagt:"reqnews",canskip:T});T||d.publish("rotated_need_key_info_ready",q)};
  5559. RQD=function(){var d={};var q=d.url;var T=d.interval;d=d.retries;this.url=q;this.interval=T;this.retries=d};
  5560. xyQ=function(d,q){this.statusCode=d;this.message=q;this.U=this.heartbeatParams=this.errorMessage=null;this.G={};this.nextFairplayKeyId=null};
  5561. yWn=function(d,q,T){T=T===void 0?"":T;g.W.call(this);this.message=d;this.requestNumber=q;this.timer=T;this.onError=this.onSuccess=null;this.G=new g.tS(5E3,2E4,.2)};
  5562. hQ_=function(d,q,T){d.onSuccess=q;d.onError=T};
  5563. Q72=function(d,q,T,Y){var e={timeout:3E4,onSuccess:function(U){if(!d.JF()){pU("drm_net_r",void 0,d.timer);var b=U.status==="LICENSE_STATUS_OK"?0:9999,J=null;if(U.license)try{J=ZV(U.license)}catch(H){g.Zz(H)}if(b!==0||J){J=new xyQ(b,J);b!==0&&U.reason&&(J.errorMessage=U.reason);if(U.authorizedFormats){b={};for(var F=[],N={},R=g.E(U.authorizedFormats),x=R.next();!x.done;x=R.next())if(x=x.value,x.trackType&&x.keyId){var y=HH7[x.trackType];if(y){y==="HD"&&U.isHd720&&(y="HD720");x.isHdr&&(y+="HDR");b[y]||
  5564. (F.push(y),b[y]=!0);var h=null;try{h=ZV(x.keyId)}catch(H){g.Zz(H)}h&&(N[g.A0(h,4)]=y)}}J.U=F;J.G=N}U.nextFairplayKeyId&&(J.nextFairplayKeyId=U.nextFairplayKeyId);U.sabrLicenseConstraint&&(J.sabrLicenseConstraint=ZV(U.sabrLicenseConstraint));U=J}else U=null;if(U)d.onSuccess(U,d.requestNumber);else d.onError(d,"drm.net","t.p;p.i")}},
  5565. onError:function(U){if(!d.JF())if(U&&U.error)U=U.error,d.onError(d,"drm.net.badstatus","t.r;p.i;c."+U.code+";s."+U.status,U.code);else d.onError(d,"drm.net.badstatus","t.r;p.i;c.n")},
  5566. onTimeout:function(){d.onError(d,"drm.net","rt.req."+d.requestNumber)}};
  5567. Y&&(e.qy="Bearer "+Y);g.f4(T,"player/get_drm_license",q,e)};
  5568. MB6=function(d,q,T,Y){g.YP.call(this);this.videoData=d;this.Pv=q;this.B=T;this.sessionId=Y;this.S={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.lr=this.UD=!1;this.j=null;this.yv=[];this.T=[];this.authorizedFormats=[];this.L=!1;this.G={};this.status="";this.X=NaN;this.U=d.S;this.cryptoPeriodIndex=T.cryptoPeriodIndex;d={};Object.assign(d,this.Pv.G);d.cpn=this.videoData.clientPlaybackNonce;this.videoData.z2&&(d.vvt=this.videoData.z2,this.videoData.mdxEnvironment&&(d.mdx_environment=
  5569. this.videoData.mdxEnvironment));this.Pv.yv&&(d.authuser=this.Pv.yv);this.Pv.pageId&&(d.pageid=this.Pv.pageId);isNaN(this.cryptoPeriodIndex)||(d.cpi=this.cryptoPeriodIndex.toString());var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.k9()))?e[1]:"";e==="ATV"&&(d.cdt=e);this.S=d;this.S.session_id=Y;this.K=!0;this.U.flavor==="widevine"&&(this.S.hdr="1");this.U.flavor==="playready"&&(q=Number(Md(q.experiments,"playready_first_play_expiration")),!isNaN(q)&&q>=0&&(this.S.mfpe=""+q),this.K=!1);q="";g.g6(this.U)?
  5570. $8(this.U)?(Y=T.U)&&(q="https://www.youtube.com/api/drm/fps?ek="+amI(Y)):(q=T.initData.subarray(4),q=new Uint16Array(q.buffer,q.byteOffset,q.byteLength/2),q=String.fromCharCode.apply(null,q).replace("skd://","https://")):q=this.U.U;this.baseUrl=q;this.fairplayKeyId=cK(this.baseUrl,"ek")||"";if(q=cK(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(q);this.yv=T.fz?[g.A0(T.initData,4)]:T.j;H8(this,{sessioninit:T.cryptoPeriodIndex});this.status="in"};
  5571. aMD=function(d,q){H8(d,{createkeysession:1});d.status="gr";pU("drm_gk_s",void 0,d.videoData.lr);d.url=cWf(d);try{d.j=q.createSession(d.B,function(T){H8(d,{m:T})})}catch(T){q="t.g";
  5572. T instanceof DOMException&&(q+=";c."+T.code);d.publish("licenseerror","drm.unavailable",1,q,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}d.j&&(EWg(d.j,function(T,Y){j7f(d,T,Y)},function(T,Y,e){if(!d.JF()){Y=void 0;
  5573. var U=1;g.g6(d.U)&&g.XW(d.Pv)&&d.Pv.N("html5_enable_safari_fairplay")&&e===1212433232&&(Y="ERROR_HDCP",U=d.Pv.N("html5_safari_fairplay_ignore_hdcp")?0:U);d.error("drm.keyerror",U,T,Y)}},function(){d.JF()||(H8(d,{onkyadd:1}),d.lr||(d.publish("sessionready"),d.lr=!0))},function(T){d.mL(T)}),g.C(d,d.j))};
  5574. cWf=function(d){var q=d.baseUrl;ctg(q)||d.error("drm.net",2,"t.x");if(!cK(q,"fexp")){var T=["23898307","23914062","23916106","23883098"].filter(function(e){return d.Pv.experiments.experiments[e]});
  5575. T.length>0&&(d.S.fexp=T.join())}T=g.E(Object.keys(d.S));for(var Y=T.next();!Y.done;Y=T.next())Y=Y.value,q=SMj(q,Y,d.S[Y]);return q};
  5576. j7f=function(d,q,T){if(!d.JF())if(q){H8(d,{onkmtyp:T});d.status="km";switch(T){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":AW1(d,q);return;default:d.publish("ctmp","message_type",{t:T,l:q.byteLength})}d.UD||(pU("drm_gk_f",void 0,d.videoData.lr),d.UD=!0,d.publish("newsession",d));if(Xv(d.U)&&(q=pM_(q),!q))return;q=new yWn(q,++d.requestNumber,d.videoData.lr);hQ_(q,function(Y){ZH7(d,Y)},function(Y,e,U){if(!d.JF()){var b=0;
  5577. Y.G.U>=3&&(b=1,e="drm.net.retryexhausted");H8(d,{onlcsrqerr:e,info:U});d.error(e,b,U);d.shouldRetry(yb(b),Y)&&OH6(d,Y)}});
  5578. g.C(d,q);nW2(d,q)}else d.error("drm.unavailable",1,"km.empty")};
  5579. AW1=function(d,q){H8(d,{sdpvrq:1});d.X=Date.now();if(d.U.flavor!=="widevine")d.error("drm.provision",1,"e.flavor;f."+d.U.flavor+";l."+q.byteLength);else{var T={cpn:d.videoData.clientPlaybackNonce};Object.assign(T,d.Pv.G);T=g.y6("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",T);q={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null,
  5580. q)}),responseType:"arraybuffer"};g.je(T,q,3,500).then(wg(function(Y){Y=Y.xhr;if(!d.JF()){Y=new Uint8Array(Y.response);var e=String.fromCharCode.apply(null,Y);try{var U=JSON.parse(e)}catch(b){}U&&U.signedResponse?(d.publish("ctmp","drminfo",{provisioning:1}),U=(Date.now()-d.X)/1E3,d.X=NaN,d.publish("ctmp","provs",{et:U.toFixed(3)}),d.j&&d.j.update(Y)):(U=U&&U.error&&U.error.message,Y="e.parse",U&&(Y+=";m."+U),d.error("drm.provision",1,Y))}}),wg(function(Y){d.JF()||d.error("drm.provision",1,"e."+Y.errorCode+
  5581. ";c."+(Y.xhr&&Y.xhr.status))}))}};
  5582. Qo=function(d){var q;if(q=d.K&&d.j!=null)d=d.j,q=!(!d.G||!d.G.keyStatuses);return q};
  5583. nW2=function(d,q){d.status="km";pU("drm_net_s",void 0,d.videoData.lr);var T=new g.wM(d.Pv.Kq),Y={context:g.bI(T.config_||g.Ug())};Y.drmSystem=rWj[d.U.flavor];Y.videoId=d.videoData.videoId;Y.cpn=d.videoData.clientPlaybackNonce;Y.sessionId=d.sessionId;Y.licenseRequest=g.A0(q.message);Y.drmParams=d.videoData.drmParams;isNaN(d.cryptoPeriodIndex)||(Y.isKeyRotated=!0,Y.cryptoPeriodIndex=d.cryptoPeriodIndex);var e,U,b=!!((e=d.videoData.U)==null?0:(U=e.video)==null?0:U.isHdr());Y.drmVideoFeature=b?"DRM_VIDEO_FEATURE_PREFER_HDR":
  5584. "DRM_VIDEO_FEATURE_SDR";if(Y.context&&Y.context.client){if(e=d.Pv.G)Y.context.client.deviceMake=e.cbrand,Y.context.client.deviceModel=e.cmodel,Y.context.client.browserName=e.cbr,Y.context.client.browserVersion=e.cbrver,Y.context.client.osName=e.cos,Y.context.client.osVersion=e.cosver;Y.context.user=Y.context.user||{};Y.context.request=Y.context.request||{};d.videoData.z2&&(Y.context.user.credentialTransferTokens=[{token:d.videoData.z2,scope:"VIDEO"}]);Y.context.request.mdxEnvironment=d.videoData.mdxEnvironment||
  5585. Y.context.request.mdxEnvironment;d.videoData.pC&&(Y.context.user.kidsParent={oauthToken:d.videoData.pC});g.g6(d.U)&&(Y.fairplayKeyId=g.A0(Azj(d.fairplayKeyId)));g.rn(d.Pv,g.$4(d.videoData)).then(function(J){Q72(q,Y,T,J);d.status="rs"})}else d.error("drm.net",2,"t.r;ic.0")};
  5586. ZH7=function(d,q){if(!d.JF())if(H8(d,{onlcsrsp:1}),d.status="rr",q.statusCode!==0)d.error("drm.auth",1,"t.f;c."+q.statusCode,q.errorMessage||void 0);else{pU("drm_kr_s",void 0,d.videoData.lr);if(q.heartbeatParams&&q.heartbeatParams.url&&d.videoData.N("outertube_streaming_data_always_use_staging_license_service")){var T=d.U.U.match(/(.*)youtube.com/g);T&&(q.heartbeatParams.url=T[0]+q.heartbeatParams.url)}q.heartbeatParams&&d.publish("newlicense",q.heartbeatParams);q.U&&(d.T=q.U,d.videoData.lL||d.publish("newlicense",
  5587. new RQD),d.videoData.lL=!0,d.L=D7(d.T,function(Y){return Y.includes("HDR")}));
  5588. q.G&&(d.Pv.N("html5_enable_vp9_fairplay")&&$8(d.U)?(T=g.A0(Azj(d.fairplayKeyId),4),d.G[T]={type:q.G[T],status:"unknown"}):d.G=db(q.G,function(Y){return{type:Y,status:"unknown"}}));
  5589. s4(d.U)&&(q.message=i4D(g.A0(q.message)));d.j&&(H8(d,{updtks:1}),d.status="ku",d.j.update(q.message).then(function(){pU("drm_kr_f",void 0,d.videoData.lr);Qo(d)||(H8(d,{ksApiUnsup:1}),d.publish("keystatuseschange",d))},function(Y){Y="msuf.req."+d.requestNumber+";msg."+g.pp(Y.message,3);
  5590. d.error("drm.keyerror",1,Y)}));
  5591. g.g6(d.U)&&d.publish("fairplay_next_need_key_info",d.baseUrl,q.nextFairplayKeyId);d.Pv.N("html5_enable_vp9_fairplay")&&$8(d.U)&&d.publish("qualitychange",tBI(d.T));q.sabrLicenseConstraint&&d.publish("sabrlicenseconstraint",q.sabrLicenseConstraint)}};
  5592. OH6=function(d,q){var T=q.G.getValue();T=new g.f9(function(){nW2(d,q)},T);
  5593. g.C(d,T);T.start();g.BP(q.G);H8(d,{rtyrq:1})};
  5594. BZ1=function(d,q){for(var T=[],Y=g.E(Object.keys(d.G)),e=Y.next();!e.done;e=Y.next())e=e.value,T.push(e+"_"+d.G[e].type+"_"+d.G[e].status);return T.join(q)};
  5595. Kc1=function(d){var q={};q[d.status]=Qo(d)?BZ1(d,"."):d.T.join(".");return q};
  5596. G$f=function(d,q,T){var Y={};Y.isHdr=q.includes("HDR");switch(q.replace("HDR","").replace("720","")){case "AUDIO":Y.trackType=1;break;case "SD":Y.trackType=2;break;case "HD":Y.trackType=3;break;case "UHD1":Y.trackType=4;break;case "UHD2":Y.trackType=5;break;default:Y.trackType=0}!Y.trackType||T[q]||Qo(d)&&!MZ(d,q)||(d.authorizedFormats.push(Y),T[q]=!0)};
  5597. MZ=function(d,q){for(var T in d.G)if(d.G[T].status==="usable"&&d.G[T].type===q)return!0;return!1};
  5598. LcN=function(d,q){for(var T in d.G)if(d.G[T].type===q)return d.G[T].status};
  5599. H8=function(d,q){var T=T===void 0?!1:T;RI(q);(T||d.Pv.uF())&&d.publish("ctmp","drmlog",q)};
  5600. k$7=function(d){var q=d[0];d[0]=d[3];d[3]=q;q=d[1];d[1]=d[2];d[2]=q;q=d[4];d[4]=d[5];d[5]=q;q=d[6];d[6]=d[7];d[7]=q};
  5601. tBI=function(d){return g.cR(d,"UHD2")||g.cR(d,"UHD2HDR")?"highres":g.cR(d,"UHD1")||g.cR(d,"UHD1HDR")?"hd2160":g.cR(d,"HD")||g.cR(d,"HDHDR")?"hd1080":g.cR(d,"HD720")||g.cR(d,"HD720HDR")?"hd720":"large"};
  5602. pM_=function(d){for(var q="",T=0;T<d.length;T+=2)q+=String.fromCharCode(d[T]);d=An(new DOMParser,Fk(q),"text/xml");if(!d)return null;(q=d.querySelector("Challenge"))&&q.childNodes&&q.childNodes.length!==0?(d=Uint8Array,q=rz6(q.childNodes[0].nodeValue),q=(0,g.GM)(q).buffer,d=new d(q)):d=null;return d};
  5603. c8=function(d,q,T,Y,e,U){U=U===void 0?!1:U;g.W.call(this);this.element=d;this.B=q;this.initData=T;this.G=Y;this.U=e;this.K=U;this.sessionId="";this.L=this.X=this.j=this.S=null;this.T=new g.aI(this);g.C(this,this.T);Po1(this)};
  5604. Po1=function(d){d.G?(d.T.W(d.G,"message",d.Ia),d.T.W(d.G,"keystatuseschange",d.mL),d.G.closed&&d.G.closed.then(wg(function(){d.onClosed()}),null)):d.U&&(Ed(d.T,d.U,["mskeymessage",
  5605. "webkitkeymessage"],d.jf),Ed(d.T,d.U,["mskeyerror","webkitkeyerror"],d.ox),Ed(d.T,d.U,["mskeyadded","webkitkeyadded"],d.Up))};
  5606. EWg=function(d,q,T,Y,e){d.S=q;d.j=T;d.X=Y;d.L=e};
  5607. WcI=function(d,q,T){g.Zz(T);d.j&&(T instanceof DOMException&&(q+=";n."+T.name+";m."+T.message),d.j(q))};
  5608. EV=function(d,q,T){T=T===void 0?!1:T;g.W.call(this);this.element=d;this.G=q;this.L=T;this.X={};this.T=null;this.S=new g.aI(this);this.j=this.U=null;g.C(this,this.S)};
  5609. uwn=function(d){if(d.G.keySystemAccess)return d.G.keySystemAccess.createMediaKeys().then(function(T){if(!d.JF()){d.U=T;var Y;(Y=d.element)==null||Y.setMediaKeys(T)}});
  5610. if(be(d.G))d.j=new (U4())(d.G.keySystem);else if(Jj(d.G)){d.j=new (U4())(d.G.keySystem);var q;(q=d.element)==null||q.webkitSetMediaKeys(d.j)}else CoY(d);return null};
  5611. CoY=function(d){Ed(d.S,d.element,["keymessage","webkitkeymessage"],d.bz);Ed(d.S,d.element,["keyerror","webkitkeyerror"],d.hf);Ed(d.S,d.element,["keyadded","webkitkeyadded"],d.YO)};
  5612. wMj=function(d,q){q=DyY(q,d.G.qk);q=d.j.createSession("video/mp4",q);return new c8(null,null,null,null,q,d.L)};
  5613. fMX=function(d,q){for(var T=new Uint8Array(270),Y=0;Y<135;Y++)T[Y*2]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(Y);d=d.j.createSession("video/mp4",q,T);return new c8(null,null,null,null,d)};
  5614. zQj=function(d,q){var T=d.X[q.sessionId];!T&&d.T&&(T=d.T,d.T=null,T.sessionId=q.sessionId,d.X[q.sessionId]=T);return T};
  5615. DyY=function(d,q){var T=d.subarray(4);T=new Uint16Array(T.buffer,T.byteOffset,T.byteLength/2);T=String.fromCharCode.apply(null,T).match(/ek=([0-9a-f]+)/)[1];for(var Y="",e=0;e<T.length;e+=2)Y+=String.fromCharCode(parseInt(T.substring(e,e+2),16));T=Y;Y=new ArrayBuffer(T.length*2);e=new Uint16Array(Y);for(var U=0;U<T.length;U++)e[U]=T.charCodeAt(U);T=new Uint8Array(Y);Y=0;U=new ArrayBuffer(d.byteLength+4+T.byteLength+4+q.byteLength);e=new Uint8Array(U);U=new DataView(U);e.set(d);Y+=d.byteLength;U.setUint32(Y,
  5616. T.length,!0);Y+=4;e.set(T,Y);Y+=T.length;U.setUint32(Y,q.byteLength,!0);e.set(q,Y+4);return e};
  5617. jO=function(){this.keys=[];this.values=[]};
  5618. myn=function(d,q,T){g.YP.call(this);this.element=d;this.videoData=q;this.Pv=T;this.j=[];this.aU=2;this.RU=this.z2=!1;this.heartbeatParams=null;this.rO=this.K=!1;this.S=null;this.dO=!1;this.G=this.videoData.S;this.drmSessionId=this.videoData.drmSessionId||g.n5f();this.U=new Map;this.X=new jO;this.L=new jO;this.UD=new g.aI(this);this.yv=this.Pv.N("html5_eme_ignore_teardown_errors");(d=this.element)&&(d.addKey||d.webkitAddKey)||U4()||Nd(T.experiments);this.Pv.N("html5_enable_vp9_fairplay")&&$8(this.G)?
  5619. T=iHY:(T=this.videoData.wU,T=this.G.flavor==="fairplay"||T?xp:iHY);this.B=T;this.T=new EV(this.element,this.G,this.yv);g.C(this,this.T);be(this.G)&&(this.lr=new EV(this.element,this.G,this.yv),g.C(this,this.lr));g.C(this,this.UD);T=this.element;this.G.keySystemAccess?this.UD.W(T,"encrypted",this.GGr):Ed(this.UD,T,be(this.G)?["msneedkey"]:["needkey","webkitneedkey"],this.d5D);IM2(this);a:switch(T=this.G,d=this.Pv.experiments,q=this.U,T.flavor){case "fairplay":LZ()>19.2999?(d=T.Fc,T=T.LL,T>=d&&(T=d*
  5620. .75),q=(d-T)*.5,T=new yo(q,d,d-q-T,this)):T=null;break a;case "widevine":T=new hp(q,this,d);break a;default:T=null}if(this.S=T)g.C(this,this.S),this.S.subscribe("rotated_need_key_info_ready",this.HN,this),this.S.subscribe("log_qoe",this.Yq,this);Nd(this.Pv.experiments);this.Yq({cks:this.G.getInfo()})};
  5621. IM2=function(d){var q=uwn(d.T);q?q.then(wg(function(){SY6(d)}),wg(function(T){if(!d.JF()){g.Zz(T);
  5622. var Y="t.a";T instanceof DOMException&&(Y+=";n."+T.name+";m."+T.message);d.publish("licenseerror","drm.unavailable",1,Y,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(d.Yq({mdkrdy:1}),d.K=!0);
  5623. d.lr&&(q=uwn(d.lr))};
  5624. vWX=function(d,q,T){d.RU=!0;T=new ao(q,T);d.Pv.N("html5_eme_loader_sync")&&(d.X.get(q)||d.X.set(q,T));lMD(d,T)};
  5625. lMD=function(d,q){if(!d.JF()){d.Yq({onInitData:1});if(d.Pv.N("html5_eme_loader_sync")&&d.videoData.j&&d.videoData.j.G){var T=d.L.get(q.initData);q=d.X.get(q.initData);if(!T||!q)return;q=T;T=q.initData;d.X.remove(T);d.L.remove(T)}d.Yq({initd:q.initData.length,ct:q.contentType});if(d.G.flavor==="widevine")if(d.z2&&!d.videoData.isLivePlayback)ai(d);else{if(!(d.Pv.N("vp9_drm_live")&&d.videoData.isLivePlayback&&q.fz)){d.z2=!0;T=q.cryptoPeriodIndex;var Y=q.G;fe7(q);q.fz||(Y&&q.G!==Y?d.publish("ctmp","cpsmm",
  5626. {emsg:Y,pssh:q.G}):T&&q.cryptoPeriodIndex!==T&&d.publish("ctmp","cpimm",{emsg:T,pssh:q.cryptoPeriodIndex}));d.publish("widevine_set_need_key_info",q)}}else d.HN(q)}};
  5627. SY6=function(d){if(!d.JF())if(d.Pv.N("html5_drm_set_server_cert")||$8(d.G)){var q=d.T.setServerCertificate();q?q.then(wg(function(T){d.Pv.uF()&&d.publish("ctmp","ssc",{success:T})}),wg(function(T){d.publish("ctmp","ssce",{n:T.name,
  5628. m:T.message})})).then(wg(function(){oW2(d)})):oW2(d)}else oW2(d)};
  5629. oW2=function(d){d.JF()||(d.K=!0,d.Yq({onmdkrdy:1}),ai(d))};
  5630. VBf=function(d){return d.G.flavor==="widevine"&&d.videoData.N("html5_drm_cpi_license_key")};
  5631. ai=function(d){if(d.RU&&d.K&&!d.rO){for(;d.j.length;){var q=d.j[0],T=VBf(d)?z82(q):g.A0(q.initData);if($8(d.G)&&!q.U)d.j.shift();else{if(d.U.get(T))if(d.G.flavor!=="fairplay"||$8(d.G)){d.j.shift();continue}else d.U.delete(T);fe7(q);break}}d.j.length&&d.createSession(d.j[0])}};
  5632. dZX=function(d){var q;if(q=g.WL()){var T;q=!((T=d.T.U)==null||!T.getMetrics)}q&&(q=d.T.getMetrics())&&(q=g.yA(q),d.publish("ctmp","drm",{metrics:q}))};
  5633. qVg=function(){var d=Cj2();return!(!d||d==="visible")};
  5634. YVj=function(d){var q=Tk6();q&&document.addEventListener(q,d,!1)};
  5635. e5Q=function(d){var q=Tk6();q&&document.removeEventListener(q,d,!1)};
  5636. Tk6=function(){if(document.visibilityState)var d="visibilitychange";else{if(!document[JB+"VisibilityState"])return"";d=JB+"visibilitychange"}return d};
  5637. UZQ=function(d){g.W.call(this);var q=this;this.G2=d;this.jR=0;this.X=this.U=this.S=!1;this.T=0;this.Mk=this.G2.C();this.videoData=this.G2.getVideoData();this.j=g.Yv(this.Mk.experiments,"html5_delayed_retry_count");this.G=new g.f9(function(){q.G2.U6()},g.Yv(this.Mk.experiments,"html5_delayed_retry_delay_ms"));
  5638. g.C(this,this.G)};
  5639. $Zn=function(d,q,T){var Y=d.videoData.U,e=d.videoData.T,U=d.Mk.N("html5_disable_codec_fallback_for_drm")&&d.videoData.It();Zu(d.G2.getVideoData())&&d.Mk.N("html5_gapless_fallback_on_qoe_restart")&&gWN(d.G2,"pe");if((q==="progressive.net.retryexhausted"||q==="fmt.unplayable"||q==="fmt.decode")&&!d.G2.f8.S&&Y&&Y.itag==="22")return d.G2.f8.S=!0,d.jT("qoe.restart",{reason:"fmt.unplayable.22"}),d.G2.Ql(),!0;var b=!1;if(d.videoData.isExternallyHostedPodcast){if(b=d.videoData.zqD)T.mimeType=b.type,d.oU("3pp",
  5640. {url:b.url});T.ns="3pp";d.G2.o6(q,1,"VIDEO_UNAVAILABLE",RI((new g.xV(q,T,1)).details));return!0}var J=d.jR+3E4<(0,g.cj)()||d.G.isActive();if(d.Mk.N("html5_empty_src")&&d.videoData.isAd()&&q==="fmt.unplayable"&&/Empty src/.test(""+T.msg))return T.origin="emptysrc",d.jT("auth",T),!0;J||bEX(d.G2.Jp())||(T.nonfg="paused",J=!0,d.G2.pauseVideo());(q==="fmt.decode"||q==="fmt.unplayable")&&(e==null?0:PH(e)||WH(e))&&(UB7(d.Mk.S,e.Cf),T.acfallexp=e.Cf,b=J=!0);!J&&d.j>0&&(d.G.start(),J=!0,T.delayed="1",--d.j);
  5641. e=d.G2.loader;J||!((Y==null?0:kV(Y))||(Y==null?0:Ke(Y)))||U||(UB7(d.Mk.S,Y.Cf),b=J=!0,T.cfallexp=Y.Cf);if(!J)return X82(d,T);U=!1;d.S?d.jR=(0,g.cj)():U=d.S=!0;J=d.videoData;if(J.AF){J=J.AF.Tx();var F=Date.now()/1E3+1800;J=J<F}else J=!1;T.e=q;T.bkg=qVg();J&&(T.staleprog="1");d.jT("qoe.restart",T);if(J&&JpD(d))return siI(d),!0;if(!(!g.kA("philips")||q==="fmt.unplayable"&&e&&e.z2||d.Mk.G.cplatform==="GAME_CONSOLE"))try{window.close()}catch(N){}Y&&kV(Y)&&!d.Mk.N("html5_allow_av1_retry_in_session")?(b=
  5642. d.Mk.S,b.lr=!0,b=b.U=!0):e?U||(q=(q=Po(e.videoTrack)||e.videoTrack.U)?q.G:e.videoTrack.G,q.X+=1,e.policy.G?Uz(e.T.G,q,!0):Ft(e.G,q,!0)):d.videoData.AF&&d.videoData.AF.vT();d.G.isActive()||d.G2.U6(b);return!0};
  5643. X82=function(d,q){if(d.videoData.UD)return!1;d.Mk.lF+=1;if(d.Mk.lF<=10)return!1;q.exiled=""+d.Mk.lF;d.jT("qoe.start15s",q);d.G2.publish("playbackstalledatstart");return!0};
  5644. JpD=function(d){return d.U?!0:d.Mk.lr==="yt"?d.videoData.UD?d.videoData.q5<25:!d.videoData.q5:!1};
  5645. siI=function(d){if(!d.U){d.U=!0;var q=d.G2.getPlayerState();q=q.isPaused()||q.isSuspended();d.G2.Zp();q&&!NC(d.videoData)||d.G2.publish("signatureexpired")}};
  5646. gNI=function(d,q){if((d=d.G2.WG())&&(q.errorCode==="fmt.unplayable"||q.errorCode==="html5.invalidstate")){var T=d.nA();q.details.merr=T?T.toString():"0";q.details.mmsg=d.P4()}};
  5647. F_D=function(d){return d.errorCode==="net.badstatus"&&(d.severity===1||!!d.details.fmt_unav)};
  5648. Nkj=function(d,q){return d.Mk.N("html5_use_network_error_code_enums")&&q.details.rc===403||q.details.rc==="403"?(d=q.errorCode,d==="net.badstatus"||d==="manifest.net.retryexhausted"):!1};
  5649. xZf=function(d,q){if(!Nkj(d,q)&&!d.U)return!1;q.details.sts="20291";if(JpD(d))return yb(q.severity)&&(q=Object.assign({e:q.errorCode},q.details),q=new g.xV("qoe.restart",q)),d.jT(q.errorCode,q.details),siI(d),!0;(0,g.cj)()-d.Mk.vA>6048E5&&R5f(d,"signature");return!1};
  5650. R5f=function(d,q){try{q={detail:"pr."+q},g.Qv(d.Mk)&&d.Mk.N("html5_reload_by_kabuki_app")?d.G2.o6("qoe.restart",1,void 0,RI(q),"7"):(d.jT("qoe.restart",q),window.location.reload())}catch(T){}};
  5651. yp7=function(d,q){var T=d.Mk.S;T.L=!1;T.U=!0;d.jT("qoe.restart",{e:q===void 0?"fmt.noneavailable":q,detail:"hdr"});d.G2.U6(!0)};
  5652. h5f=function(d,q,T,Y,e,U){this.videoData=d;this.G=q;this.reason=T;this.U=Y;this.token=e;this.videoId=U};
  5653. Ap=function(d,q,T){this.Pv=d;this.eb=q;this.G2=T;this.B=this.X=this.G=this.T=this.L=this.U=0;this.S=!1;this.K=g.Yv(this.Pv.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.j=new Map};
  5654. HEf=function(d,q,T){!d.Pv.N("html5_tv_ignore_capable_constraint")&&g.ho(d.Pv)&&(T=T.compose(d.e1(q)));return T};
  5655. Qi2=function(d){if(d.G2.Jp().isInline())return xp;var q;d.N("html5_exponential_memory_for_sticky")?q=SJ(d.Pv.dA,"sticky-lifetime")<.5?"auto":rj[yR()]:q=rj[yR()];return g.ZW("auto",q,!1,"s")};
  5656. cpN=function(d,q){var T,Y=MOH(d,(T=q.G)==null?void 0:T.videoInfos);T=d.G2.getPlaybackRate();return T>1&&Y?(d=q_2(d.Pv.S,q.G.videoInfos,T),new pY(0,d,!0,"o")):new pY(0,0,!1,"o")};
  5657. MOH=function(d,q){return q&&g.ho(d.Pv)?q.some(function(T){return T.video.fps>32}):!1};
  5658. EN_=function(d,q){if(d.N("html5_disable_ustreamer_constraint_for_sabr")&&tw(q.videoData))return xp;var T=d.G2.x4();d.N("html5_use_video_quality_cap_for_ustreamer_constraint")&&T&&T.W_>0&&nY(q.videoData.GD)&&(d=T.W_,q.videoData.GD=new pY(0,d,!1,"u"));return q.videoData.GD};
  5659. jiD=function(d,q){var T;a:if((T=q.G)&&T.videoInfos.length){for(var Y=g.E(T.videoInfos),e=Y.next();!e.done;e=Y.next()){e=e.value;var U=void 0;if((U=e.U)==null?0:U.smooth){T=e.video.qualityOrdinal;break a}}T=T.videoInfos[0].video.qualityOrdinal}else T=0;cfQ()&&!g.ho(d.Pv)&&Ke(q.G.videoInfos[0])&&(T=Math.min(T,g.ZB.large));Y=g.Yv(d.Pv.experiments,"html5_chipset_soft_cap");Y>0&&(T=Math.min(T,Y));if(Y=g.Yv(d.Pv.experiments,"html5_max_vertical_resolution")){e=4320;for(U=0;U<q.G.videoInfos.length;U++){var b=
  5660. q.G.videoInfos[U];b.video.height>Y&&(e=Math.min(e,b.video.qualityOrdinal))}if(e<4320){for(b=U=0;b<q.G.videoInfos.length;b++){var J=q.G.videoInfos[b].video.qualityOrdinal;J<e&&(U=Math.max(U,J))}U&&(T=Math.min(U,T))}d.G2.oU("mvr",{h:Y,cp:T})}return new pY(0,T,!1,"o")};
  5661. Apf=function(d,q){var T=4320;!d.Pv.U||g.bS(d.Pv)||d.Pv.N("hls_for_vod")||d.Pv.N("mweb_remove_360p_cap")||(T=g.ZB.medium);var Y=g.Yv(d.Pv.experiments,"html5_default_quality_cap");Y&&q.G.G&&(d.Pv.N("html5_always_apply_default_quality_cap")||!q.videoData.jj&&!q.videoData.ac)&&(T=Math.min(T,Y));Y=g.Yv(d.Pv.experiments,"html5_random_playback_cap");var e=/[a-h]$/;Y&&e.test(q.videoData.clientPlaybackNonce)&&(T=Math.min(T,Y));if(e=Y=g.Yv(d.Pv.experiments,"html5_hfr_quality_cap"))a:{e=q.G;if(e.G){e=g.E(e.videoInfos);
  5662. for(var U=e.next();!U.done;U=e.next())if(U.value.video.fps>32){e=!0;break a}}e=!1}e&&(T=Math.min(T,Y));(Y=g.Yv(d.Pv.experiments,"html5_live_quality_cap"))&&q.videoData.isLivePlayback&&(T=Math.min(T,Y));T=aKD(d,q,T);d=g.Yv(d.Pv.experiments,"html5_byterate_soft_cap");return new pY(0,T===4320?0:T,!1,"d",d)};
  5663. p86=function(d){var q,T,Y,e;return g.G(function(U){switch(U.U){case 1:return d.G.G&&typeof((q=navigator.mediaCapabilities)==null?void 0:q.decodingInfo)==="function"?g.B(U,Promise.resolve(),2):U.return(Promise.resolve());case 2:T=g.E(d.G.videoInfos),Y=T.next();case 3:if(Y.done){U.tF(0);break}e=Y.value;return g.B(U,kWX(e),4);case 4:Y=T.next(),U.tF(3)}})};
  5664. OEI=function(d,q){if(!q.videoData.U||d.N("html5_disable_performance_downgrade"))return!1;Date.now()-d.L>6E4&&(d.U=0);d.U++;d.L=Date.now();if(d.U!==4)return!1;ZEX(d,q.videoData.U);return!0};
  5665. rpN=function(d,q,T,Y){if(!q||!T||!q.videoData.U)return!1;var e=g.Yv(d.Pv.experiments,"html5_df_downgrade_thresh"),U=d.N("html5_log_media_perf_info");if(!((0,g.cj)()-d.T<5E3?0:U||e>0))return!1;var b=((0,g.cj)()-d.T)/1E3;d.T=(0,g.cj)();T=T.getVideoPlaybackQuality();if(!T)return!1;var J=T.droppedVideoFrames-d.X,F=T.totalVideoFrames-d.B;d.X=T.droppedVideoFrames;d.B=T.totalVideoFrames;var N=T.displayCompositedVideoFrames===0?0:T.displayCompositedVideoFrames||-1;U&&d.Pv.uF()&&d.G2.oU("ddf",{dr:T.droppedVideoFrames,
  5666. de:T.totalVideoFrames,comp:N});if(Y)return d.G=0,!1;if((F-J)/b>d.K||!e||g.ho(d.Pv))return!1;d.G=(F>60?J/F:0)>e?d.G+1:0;if(d.G!==3)return!1;ZEX(d,q.videoData.U);d.G2.oU("dfd",Object.assign({dr:T.droppedVideoFrames,de:T.totalVideoFrames},nN2()));return!0};
  5667. ZEX=function(d,q){var T=q.Cf,Y=q.video.fps,e=q.video.qualityOrdinal-1,U=d.j;q=""+T+(Y>49?"p60":Y>32?"p48":"");T=TH(T,Y,U);e>0&&(T=Math.min(T,e));if(!pE.has(q)&&QR().includes(q)){var b=T;T=HI();+T[q]>0&&(b=Math.min(+T[q],b));T[q]!==b&&(T[q]=b,g.pW("yt-player-performance-cap",T,2592E3))}else if(pE.has(q)||U==null){a:{b=b===void 0?!0:b;Y=QR().slice();if(b){if(Y.includes(q))break a;Y.push(q)}else{if(!Y.includes(q))break a;Y.splice(Y.indexOf(q),1)}g.pW("yt-player-performance-cap-active-set",Y,2592E3)}qd.set(q,
  5668. T)}else pE.add(q),U==null||U.set(q,T);d.G2.J8()};
  5669. tOg=function(d,q){if(!q.G.G)return d.S?new pY(0,360,!1,"b"):xp;for(var T=!1,Y=!1,e=g.E(q.G.videoInfos),U=e.next();!U.done;U=e.next())kV(U.value)?T=!0:Y=!0;T=T&&Y;Y=0;e=g.Yv(d.Pv.experiments,"html5_performance_cap_floor");e=d.Pv.U?240:e;q=g.E(q.G.videoInfos);for(U=q.next();!U.done;U=q.next()){var b=U.value;if(!T||!kV(b))if(U=TH(b.Cf,b.video.fps,d.j),b=b.video.qualityOrdinal,Math.max(U,e)>=b){Y=b;break}}return new pY(0,Y,!1,"b")};
  5670. Bk6=function(d,q){var T=d.G2.Jp();return T.isInline()&&!q.WD?new pY(0,480,!1,"v"):tw(q)?xp:T.isBackground()&&QF()/1E3>60&&!g.ho(d.Pv)?new pY(0,360,!1,"v"):xp};
  5671. K_2=function(d,q,T){if(d.Pv.experiments.Wv("html5_disable_client_autonav_cap_for_onesie")&&q.fetchType==="onesie"||g.ho(d.Pv)&&(yR(-1)>=1080||q.osid))return xp;var Y=g.Yv(d.Pv.experiments,"html5_autonav_quality_cap"),e=g.Yv(d.Pv.experiments,"html5_autonav_cap_idle_secs");return Y&&q.isAutonav&&QF()/1E3>e?(T&&(Y=aKD(d,T,Y)),new pY(0,Y,!1,"e")):xp};
  5672. aKD=function(d,q,T){if(d.N("html5_optimality_defaults_chooses_next_higher")&&T)for(d=q.G.videoInfos,q=1;q<d.length;q++)if(d[q].video.qualityOrdinal<T)return d[q-1].video.qualityOrdinal;return T};
  5673. G62=function(d,q){d.N("html5_log_media_perf_info")&&(d.G2.oU("perfdb",nN2()),d.G2.oU("sessionperfdb",Object.fromEntries(qd.entries())),d.G2.oU("playbackperfdb",Object.fromEntries(d.j.entries())),d.G2.oU("hwc",{nch:navigator.hardwareConcurrency},!0),q&&d.G2.oU("mcdb",{itags:q.G.videoInfos.filter(function(T){var Y;return((Y=T.U)==null?void 0:Y.smooth)===!1}).map(function(T){return T.itag}).join("-")}))};
  5674. nN2=function(){return db(HI(),function(d){return""+d})};
  5675. ZK=function(d){g.W.call(this);var q=this;this.provider=d;this.G=-1;this.S=!1;this.U=-1;this.playerState=new g.EX;this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.T=0;this.encounteredSabrFallback=!1;this.seekCount=this.nonNetworkErrorCount=0;this.delay=new g.f9(this.send,6E4,this);this.j=!1;this.jsErrorCount=0;this.fC={CM:function(){q.CM()}};
  5676. this.CM=function(){q.jsErrorCount++};
  5677. g.C(this,this.delay);window.addEventListener("error",this.CM);window.addEventListener("unhandledrejection",this.CM)};
  5678. L_H=function(d){d.G>=0||(d.provider.G2.getVisibilityState()===3?d.S=!0:(d.G=g.Jp(d.provider),d.delay.start()))};
  5679. k66=function(d){if(!(d.U<0)){var q=g.Jp(d.provider),T=q-d.T;d.T=q;d.playerState.state===8?d.playTimeSecs+=T:d.playerState.isBuffering()&&!g.I(d.playerState,16)&&(d.rebufferTimeSecs+=T)}};
  5680. PC2=function(d){var q;switch((q=d.Pv.playerCanaryStage)==null?void 0:q.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"}};
  5681. W_Q=function(d){this.provider=d;this.L=!1;this.G=0;this.T=-1;this.ul=NaN;this.j=0;this.segments=[];this.X=this.S=0;this.previouslyEnded=!1;this.K=this.provider.G2.getVolume();this.B=this.provider.G2.isMuted()?1:0;this.U=OV(this.provider)};
  5682. nE=function(d){d.U.startTime=d.j;d.U.endTime=d.G;var q=!1;d.segments.length&&g.yN(d.segments).isEmpty()?(d.segments[d.segments.length-1].previouslyEnded&&(d.U.previouslyEnded=!0),d.segments[d.segments.length-1]=d.U,q=!0):d.segments.length&&d.U.isEmpty()||(d.segments.push(d.U),q=!0);q?d.U.endTime===0&&(d.previouslyEnded=!1):d.U.previouslyEnded&&(d.previouslyEnded=!0);d.S+=d.G-d.j;d.U=OV(d.provider);d.U.previouslyEnded=d.previouslyEnded;d.previouslyEnded=!1;d.j=d.G};
  5683. ufn=function(d){CCn(d);d.X=g.$A(function(){d.update()},100);
  5684. d.ul=g.Jp(d.provider);d.U=OV(d.provider)};
  5685. CCn=function(d){g.Fq(d.X);d.X=NaN};
  5686. DZQ=function(d,q,T){T-=d.ul;return q===d.G&&T>.5};
  5687. w8Q=function(d,q,T,Y){this.Pv=q;this.ev=T;this.segments=[];this.experimentIds=[];this.AF=this.vF=this.isFinal=this.delayThresholdMet=this.Qp=this.qC=this.autoplay=this.autonav=!1;this.Ln="yt";this.X=[];this.L=this.K=null;this.sendVisitorIdHeader=this.Fw=!1;this.B=this.pageId="";this.S=T==="watchtime";this.j=T==="playback";this.rO=T==="atr";this.FW=T==="engage";this.sendVisitorIdHeader=!1;this.uri=this.rO?"/api/stats/"+T:"//"+q.sx+"/api/stats/"+T;Y&&(this.vF=Y.fs,Y.rtn&&(this.L=Y.rtn),this.S?(this.playerState=
  5688. Y.state,Y.rti>0&&(this.K=Y.rti)):(this.vA=Y.mos,this.yH=Y.volume,Y.at&&(this.adType=Y.at)),Y.autonav&&(this.autonav=Y.autonav),Y.inview!=null&&(this.pC=Y.inview),Y.size&&(this.zq=Y.size),Y.playerwidth&&(this.dA=Y.playerwidth),Y.playerheight&&(this.rA=Y.playerheight));this.zX=g.x9(q.G);this.B=Md(q.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.B==="all"||this.B==="once")this.q5=g.x9(q.Qp);this.R6=q.Ln;this.experimentIds=vx_(q.experiments);this.xx=q.wk;this.Ln=q.lr;this.region=q.region;
  5689. this.userAge=q.userAge;this.kx=q.wU;this.gk=QF();this.sendVisitorIdHeader=q.sendVisitorIdHeader;this.z2=q.N("vss_pings_using_networkless")||q.N("kevlar_woffle");this.XF=q.N("vss_final_ping_send_and_write");this.dO=q.N("vss_use_send_and_write");this.pageId=q.pageId;this.qU=q.N("vss_playback_use_send_and_write");q.livingRoomAppMode&&(this.livingRoomAppMode=q.livingRoomAppMode);this.Je=q.T&&q.N("embeds_append_synth_ch_headers");g.dn(q)&&(this.RU=q.rO);g.eX(g.sm(q))&&this.X.push(1);this.accessToken=g.$4(d);
  5690. d.Y6[this.ev]?this.T=d.Y6[this.ev]:d.Y6.playback&&(this.T=d.Y6.playback);this.adFormat=d.adFormat;this.adQueryId=d.adQueryId;this.autoplay=lwg(d);this.j&&(this.qC=d.Ct&&bH(d)==="adunit"?!0:!1);this.autonav=d.isAutonav||this.autonav;this.contentVideoId=J7(d);this.clientPlaybackNonce=d.clientPlaybackNonce;this.Qp=d.kc;d.X&&(this.UD=d.X,this.lF=d.M4);d.mdxEnvironment&&(this.mdxEnvironment=d.mdxEnvironment);this.G=d.ST;this.fn=d.fn;d.U&&(this.wk=d.U.itag,d.T&&d.T.itag!==this.wk&&(this.wO=d.T.itag));d.G&&
  5691. LY(d.G)&&(this.offlineDownloadUserChoice="1");this.eventLabel=bH(d);this.AF=d.qU?!1:d.yH;this.ST=d.Au;if(q=ix(d))this.Kz=q;this.V5=d.WV;this.partnerId=d.partnerId;this.eventId=d.eventId;this.playlistId=d.My||d.playlistId;this.A6=d.A6;this.jj=d.jj;this.OP=d.OP;this.Nf=d.Nf;this.subscribed=d.subscribed;this.videoId=d.videoId;this.videoMetadata=d.videoMetadata;this.visitorData=d.visitorData;this.osid=d.osid;this.I$=d.I$;this.referrer=d.referrer;this.sx=d.KE||d.sx;this.Bv=d.iq;this.Tb=d.Tb;this.userGenderAge=
  5692. d.userGenderAge;this.hs=d.hs;this.embedsRct=d.embedsRct;this.embedsRctn=d.embedsRctn;g.dn(this.Pv)&&d.mutedAutoplay&&(d.mutedAutoplayDurationMode===2&&d.limitedPlaybackDurationInSeconds===0&&d.endSeconds===0?this.X.push(7):this.X.push(2));d.isEmbedsShortsMode(new g.zP(this.dA,this.rA),!!this.playlistId)&&this.X.push(3);g.MC(d)&&this.X.push(4);this.qk=d.yM;d.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=d.compositeLiveIngestionOffsetToken)};
  5693. fKH=function(d,q){var T=d.sendVisitorIdHeader?d.visitorData:void 0;return g.rn(d.Pv,d.accessToken).then(function(Y){return mRI(d.uri,d.Pv,d.pageId,T,Y,q,d.Je)})};
  5694. IK2=function(d,q){return function(){d.Pv.N("html5_simplify_pings")?(d.G=d.aU,d.LC=q(),d.gk=0,d.send()):fKH(d).then(function(T){var Y=z52(d);Y.cmt=Y.len;Y.lact="0";var e=q().toFixed(3);Y.rt=Number(e).toString();Y=g.y6(d.uri,Y);d.Pv.N("vss_through_gel_double")&&iEQ(Y);d.z2?(T==null&&(T={}),d.dO?uI().sendAndWrite(Y,T):uI().sendThenWrite(Y,T)):T?g.QB(Y,T):g.rM(Y)})}};
  5695. z52=function(d){var q={ns:d.Ln,el:d.eventLabel,cpn:d.clientPlaybackNonce,ver:2,cmt:d.U(d.G),fmt:d.wk,fs:d.vF?"1":"0",rt:d.U(d.LC),adformat:d.adFormat,content_v:d.contentVideoId,euri:d.R6,lact:d.gk,live:d.Kz,cl:(785662079).toString(),mos:d.vA,state:d.playerState,volume:d.yH};d.subscribed&&(q.subscribed="1");Object.assign(q,d.zX);d.B==="all"?Object.assign(q,d.q5):d.B==="once"&&d.j&&Object.assign(q,d.q5);d.autoplay&&(q.autoplay="1");d.qC&&(q.sautoplay="1");d.Qp&&(q.dni="1");!d.S&&d.RU&&(q.epm=mZ7[d.RU]);
  5696. d.isFinal&&(q["final"]="1");d.AF&&(q.splay="1");d.fn&&(q.delay=d.fn);d.xx&&(q.hl=d.xx);d.region&&(q.cr=d.region);d.userGenderAge&&(q.uga=d.userGenderAge);d.userAge!==void 0&&d.kx&&(q.uga=d.kx+d.userAge);d.aU!==void 0&&(q.len=d.U(d.aU));!d.S&&d.experimentIds.length>0&&(q.fexp=d.experimentIds.toString());d.L!==null&&(q.rtn=d.U(d.L));d.sx&&(q.feature=d.sx);d.jj&&(q.ctrl=d.jj);d.OP&&(q.ytr=d.OP);d.wO&&(q.afmt=d.wO);d.offlineDownloadUserChoice&&(q.ODUC=d.offlineDownloadUserChoice);d.lr&&(q.lio=d.U(d.lr));
  5697. d.S?(q.idpj=d.ST,q.ldpj=d.V5,d.delayThresholdMet&&(q.dtm="1"),d.K!=null&&(q.rti=d.U(d.K)),d.hs&&(q.ald=d.hs),d.compositeLiveIngestionOffsetToken&&(q.clio=d.compositeLiveIngestionOffsetToken)):d.adType!==void 0&&(q.at=d.adType);d.zq&&(d.j||d.S)&&(q.size=d.zq);d.j&&d.X.length&&(q.pbstyle=d.X.join(","));d.pC!=null&&(d.j||d.S)&&(q.inview=d.U(d.pC));d.S&&(q.volume=rk(d,g.yC(d.segments,function(Y){return Y.volume})),q.st=rk(d,g.yC(d.segments,function(Y){return Y.startTime})),q.et=rk(d,g.yC(d.segments,function(Y){return Y.endTime})),
  5698. D7(d.segments,function(Y){return Y.playbackRate!==1})&&(q.rate=rk(d,g.yC(d.segments,function(Y){return Y.playbackRate}))),D7(d.segments,function(Y){return Y.G!=="-"})&&(q.als=g.yC(d.segments,function(Y){return Y.G}).join(",")),D7(d.segments,function(Y){return Y.previouslyEnded})&&(q.pe=g.yC(d.segments,function(Y){return""+ +Y.previouslyEnded}).join(",")));
  5699. q.muted=rk(d,g.yC(d.segments,function(Y){return Y.muted?1:0}));
  5700. D7(d.segments,function(Y){return Y.visibilityState!==0})&&(q.vis=rk(d,g.yC(d.segments,function(Y){return Y.visibilityState})));
  5701. D7(d.segments,function(Y){return Y.connectionType!==0})&&(q.conn=rk(d,g.yC(d.segments,function(Y){return Y.connectionType})));
  5702. D7(d.segments,function(Y){return Y.U!==0})&&(q.blo=rk(d,g.yC(d.segments,function(Y){return Y.U})));
  5703. D7(d.segments,function(Y){return!!Y.j})&&(q.blo=g.yC(d.segments,function(Y){return Y.j}).join(","));
  5704. D7(d.segments,function(Y){return!!Y.compositeLiveStatusToken})&&(q.cbs=g.yC(d.segments,function(Y){return Y.compositeLiveStatusToken}).join(","));
  5705. D7(d.segments,function(Y){return Y.T!=="-"})&&(q.cc=g.yC(d.segments,function(Y){return Y.T}).join(","));
  5706. D7(d.segments,function(Y){return Y.clipId!=="-"})&&(q.clipid=g.yC(d.segments,function(Y){return Y.clipId}).join(","));
  5707. if(D7(d.segments,function(Y){return!!Y.audioId})){var T="au";
  5708. d.j&&(T="au_d");q[T]=g.yC(d.segments,function(Y){return Y.audioId}).join(",")}Tt()&&d.UD&&(q.ctt=d.UD,q.cttype=d.lF,q.mdx_environment=d.mdxEnvironment);
  5709. d.FW&&(q.etype=d.yv!==void 0?d.yv:0);d.Bv&&(q.uoo=d.Bv);d.livingRoomAppMode&&d.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(q.clram=SVX[d.livingRoomAppMode]||d.livingRoomAppMode);d.T?lKI(d,q):(q.docid=d.videoId,q.referrer=d.referrer,q.ei=d.eventId,q.of=d.I$,q.osid=d.osid,q.vm=d.videoMetadata,d.adQueryId&&(q.aqi=d.adQueryId),d.autonav&&(q.autonav="1"),d.playlistId&&(q.list=d.playlistId),d.Nf&&(q.ssrt="1"),d.Tb&&(q.upt=d.Tb));d.j&&(d.embedsRct&&(q.rct=d.embedsRct),d.embedsRctn&&(q.rctn=
  5710. d.embedsRctn),d.compositeLiveIngestionOffsetToken&&(q.clio=d.compositeLiveIngestionOffsetToken));d.qk&&(q.host_cpn=d.qk);return q};
  5711. lKI=function(d,q){if(q&&d.T){var T=new Set(["q","feature","mos"]),Y=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),e=new Set(["aqi","autonav","list","ssrt","upt"]);d.T.ns==="3pp"&&(q.ns="3pp");for(var U=g.E(Object.keys(d.T)),b=U.next();!b.done;b=U.next())b=b.value,Y.has(b)||T.has(b)||e.has(b)&&!d.T[b]||(q[b]=d.T[b])}};
  5712. rk=function(d,q){return g.yC(q,d.U).join(",")};
  5713. iEQ=function(d){d.indexOf("watchtime")!==-1&&g.Ta("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:d}})};
  5714. vNN=function(d,q){d.attestationResponse&&fKH(d).then(function(T){T=T||{};T.method="POST";T.postParams={atr:d.attestationResponse};d.z2?d.dO?uI().sendAndWrite(q,T):uI().sendThenWrite(q,T):g.QB(q,T)})};
  5715. tp=function(d){g.W.call(this);this.provider=d;this.X="paused";this.S=NaN;this.L=[10,10,10,40];this.K=this.B=0;this.UD=this.rO=this.yv=this.lr=this.j=!1;this.U=this.T=NaN;this.logger=new g.cb("vss");this.G=new W_Q(d)};
  5716. TFI=function(d){if(!d.j){d.provider.videoData.Dk===16623&&g.OL(Error("Playback for EmbedPage"));var q=B8(d,"playback");d.L=oNH(d);ufn(d.G);q.L=KE(d);d.U>0&&(q.G-=d.U);q.send();if(d.provider.videoData.BJ){q=d.provider.Pv;var T=d.provider.videoData,Y={html5:"1",video_id:T.videoId,cpn:T.clientPlaybackNonce,ei:T.eventId,ptk:T.BJ,oid:T.KN,ptchn:T.VL,pltype:T.wM,content_v:J7(T)};T.Nj&&Object.assign(Y,{m:T.Nj});q=g.y6(q.XM+"ptracking",Y);VOI(d,q)}d.provider.videoData.fn||(daN(d),q8Q(d));d.j=!0;d=d.G;d.G=
  5717. d.tE();d.ul=g.Jp(d.provider);!(d.j===0&&d.G<5)&&d.G-d.j>2&&(d.j=d.G);d.L=!0}};
  5718. oNH=function(d){var q=d.provider.videoData.Au,T=d.provider.videoData.WV,Y=[10+q,10,10,40+T-q,40],e,U=(e=d.provider.videoData.getPlayerResponse())==null?void 0:e.playbackTracking,b=U==null?void 0:U.videostatsScheduledFlushWalltimeSeconds;e=U==null?void 0:U.videostatsDefaultFlushIntervalSeconds;if(!(b&&b.length>0&&e))return d.logger.info("Missing valid scheduled pings config "+b+" "+e),Y;q=[b[0]+q].concat(g.RQ(b.slice(1).map(function(J,F){return J-b[F]})),[e+T-q,
  5719. e]);return q.some(function(J){return J<0})?(d.logger.G(347111855,"Neg vss scheduled pings "+b+" "+e),Y):q};
  5720. KE=function(d,q){q=q===void 0?NaN:q;var T=g.Jp(d.provider);q=isNaN(q)?T:q;q=Math.ceil(q);var Y=d.L[d.B];d.B+1<d.L.length&&d.B++;var e=q+Y;d.S=g.s3(function(){if(!d.JF()){d.S=NaN;var U=Y82(d),b=eaD(d,U);b.K=e;var J=d.K>1E3;!(U.length>1)&&U[0].isEmpty()||J||(b.L=KE(d,e));b.send();d.K++}},(e-T)*1E3);
  5721. return d.T=e};
  5722. G6=function(d){g.g7(d.S);d.S=NaN};
  5723. Y82=function(d){d.G.update();d=d.G;d.segments.length&&d.G===d.j||nE(d);var q=d.segments;d.segments=[];return q};
  5724. B8=function(d,q){var T=Ua1(d.provider);Object.assign(T,{state:d.X});q=new w8Q(d.provider.videoData,d.provider.Pv,q,T);q.G=d.provider.G2.tE();T=d.provider.videoData.clientPlaybackNonce;q.G=d.provider.G2.gG(T);d.provider.videoData.isLivePlayback||(q.aU=d.provider.G2.getDuration(T));d.provider.videoData.G&&(T=d.provider.videoData.G.fH(q.G))&&(q.lr=T-q.G,d.provider.Pv.N("html5_disable_live_dvr_shrink_for_cdm_vss")&&rd(d.provider.videoData)&&(q.G+=d.provider.G2.mz(),q.lr-=d.provider.G2.mz()));q.LC=g.Jp(d.provider);
  5725. q.segments=[OV(d.provider)];return q};
  5726. eaD=function(d,q){var T=B8(d,"watchtime");bcj(d)&&(T.delayThresholdMet=!0,d.yv=!0);if(d.U>0){for(var Y=g.E(q),e=Y.next();!e.done;e=Y.next())e=e.value,e.startTime-=d.U,e.endTime-=d.U;T.G-=d.U}else T.G=d.G.G;T.segments=q;return T};
  5727. LE=function(d,q){var T=X$2(d,!isNaN(d.T));q&&(d.T=NaN);return T};
  5728. X$2=function(d,q){var T=eaD(d,Y82(d));!isNaN(d.T)&&q&&(T.K=d.T);return T};
  5729. bcj=function(d){var q;if(q=d.provider.videoData.isLoaded()&&d.provider.videoData.fn&&d.j&&!d.yv)q=d.G,q=q.S+q.tE()-q.j>=d.provider.videoData.fn;return!!q};
  5730. daN=function(d){d.provider.videoData.youtubeRemarketingUrl&&!d.rO&&(VOI(d,d.provider.videoData.youtubeRemarketingUrl),d.rO=!0)};
  5731. q8Q=function(d){d.provider.videoData.googleRemarketingUrl&&!d.UD&&(VOI(d,d.provider.videoData.googleRemarketingUrl),d.UD=!0)};
  5732. JG_=function(d){if(!d.JF()&&d.j){d.X="paused";var q=LE(d);q.isFinal=!0;q.send();d.dispose()}};
  5733. sZ_=function(d,q){if(!d.JF())if(g.I(q.state,2)||g.I(q.state,512)){if(d.X="paused",g.gs(q,2)||g.gs(q,512))g.gs(q,2)&&(d.G.previouslyEnded=!0),d.j&&(G6(d),LE(d).send(),d.T=NaN)}else if(g.I(q.state,8)){d.X="playing";var T=d.j&&isNaN(d.S)?KE(d):NaN;if(!isNaN(T)&&($o(q,64)<0||$o(q,512)<0)){var Y=X$2(d,!1);Y.L=T;Y.send()}g.gs(q,16)&&q.state.seekSource===58&&(d.G.previouslyEnded=!0)}else d.X="paused"};
  5734. $aI=function(d,q,T){if(!d.lr){T||(T=B8(d,"atr"));T.attestationResponse=q;try{T.send()}catch(Y){if(Y.message!=="Unknown Error")throw Y;}d.lr=!0}};
  5735. VOI=function(d,q){var T=d.provider.Pv;g.rn(d.provider.Pv,g.$4(d.provider.videoData)).then(function(Y){var e=d.provider.Pv.pageId,U=d.provider.Pv.sendVisitorIdHeader?d.provider.videoData.visitorData:void 0,b=d.provider.Pv.N("vss_pings_using_networkless")||d.provider.Pv.N("kevlar_woffle"),J=d.provider.Pv.N("allow_skip_networkless");Y=mRI(q,T,e,U,Y);SB2(q,Y,{token:d.provider.videoData.X,Yj:d.provider.videoData.M4,mdxEnvironment:d.provider.videoData.mdxEnvironment},T,void 0,b&&!J,!1,!0)})};
  5736. gsj=function(){this.endTime=this.startTime=-1;this.T="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.U=0;this.compositeLiveStatusToken=this.j=void 0;this.volume=this.connectionType=0;this.muted=!1;this.G=this.clipId="-";this.previouslyEnded=!1};
  5737. kN=function(d,q,T){this.videoData=d;this.Pv=q;this.G2=T;this.G=void 0};
  5738. g.Jp=function(d){return FBD(d)()};
  5739. FBD=function(d){if(!d.G){var q=g.$c(function(Y){var e=(0,g.cj)();Y&&e<=631152E6&&(d.G2.oU("ytnerror",{issue:28799967,value:""+e}),e=(new Date).getTime()+2);return e},d.Pv.N("html5_validate_yt_now")),T=q();
  5740. d.G=function(){return Math.round(q()-T)/1E3};
  5741. d.G2.u6()}return d.G};
  5742. Ua1=function(d){var q=d.G2.B9()||{};q.fs=d.G2.hW();q.volume=d.G2.getVolume();q.muted=d.G2.isMuted()?1:0;q.mos=q.muted;q.clipid=d.G2.L9();var T;q.playerheight=((T=d.G2.getPlayerSize())==null?void 0:T.height)||0;var Y;q.playerwidth=((Y=d.G2.getPlayerSize())==null?void 0:Y.width)||0;d=d.videoData;T={};d.U&&(T.fmt=d.U.itag,d.T&&(d.ev?d.T.itag!==d.U.itag:d.T.itag!=d.U.itag)&&(T.afmt=d.T.itag));T.ei=d.eventId;T.list=d.playlistId;T.cpn=d.clientPlaybackNonce;d.videoId&&(T.v=d.videoId);d.wB&&(T.infringe=1);
  5743. (d.qU?0:d.yH)&&(T.splay=1);(Y=ix(d))&&(T.live=Y);d.Ct&&(T.sautoplay=1);d.k9&&(T.autoplay=1);d.A6&&(T.sdetail=d.A6);d.partnerId&&(T.partnerid=d.partnerId);d.osid&&(T.osid=d.osid);d.cD&&(T.cc=g.jFn(d.cD));return Object.assign(q,T)};
  5744. bVH=function(d){var q=BxD();if(q)return NFD[q]||NFD.other;if(g.ho(d.Pv)){d=navigator.userAgent;if(/[Ww]ireless[)]/.test(d))return 3;if(/[Ww]ired[)]/.test(d))return 30}return 0};
  5745. OV=function(d){var q=new gsj,T;q.T=((T=Ua1(d).cc)==null?void 0:T.toString())||"-";q.playbackRate=d.G2.getPlaybackRate();T=d.G2.getVisibilityState();T!==0&&(q.visibilityState=T);d.Pv.Bv&&(q.U=1);q.j=d.videoData.VY;q.compositeLiveStatusToken=d.videoData.compositeLiveStatusToken;T=d.G2.getAudioTrack();T.DQ&&T.DQ.id&&T.DQ.id!=="und"&&(q.audioId=T.DQ.id);q.connectionType=bVH(d);q.volume=d.G2.getVolume();q.muted=d.G2.isMuted();q.clipId=d.G2.L9()||"-";q.G=d.videoData.Th||"-";return q};
  5746. g.P8=function(d,q){g.W.call(this);var T=this;this.provider=d;this.j=new Map;this.Fd=new g.EX;this.fC={z1f:function(){return T.qoe},
  5747. m2k:function(){return T.G},
  5748. Clw:function(){return T.U}};
  5749. this.provider.videoData.LH()&&!this.provider.videoData.j8&&(this.G=new tp(this.provider),this.G.U=0,g.C(this,this.G),this.qoe=new g.bC(this.provider,q),g.C(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.KA=this.provider.videoData.clientPlaybackNonce)&&this.j.set(this.KA,this.G));if(d.Pv.playerCanaryState==="canary"||d.Pv.playerCanaryState==="holdback")this.U=new ZK(this.provider),g.C(this,this.U)};
  5750. Raj=function(d){d.U&&L_H(d.U);d.qoe&&y7Y(d.qoe)};
  5751. xaY=function(d){if(d.qoe){d=d.qoe;for(var q=d.provider.videoData,T=d.provider.Pv,Y=g.E(T.gB),e=Y.next();!e.done;e=Y.next())$N(d,e.value);if(d.provider.N("html5_enable_qoe_cat_list"))for(Y=g.E(q.aF),e=Y.next();!e.done;e=Y.next())$N(d,e.value);else q.gB&&$N(d,d.provider.videoData.gB);q.aN()&&(Y=q.G,kp(q)&&$N(d,"manifestless"),Y&&mF(Y)&&$N(d,"live-segment-"+mF(Y).toFixed(1)));tw(q)?$N(d,"sabr"):d.oP(Ct(q));if(gm(q)||q.y5())q.y5()&&$N(d,"ssa"),$N(d,"lifa");rd(q)&&$N(d,"cdm");q.gatewayExperimentGroup&&
  5752. (Y=q.gatewayExperimentGroup,Y==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?Y="spkadtrt":Y==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(Y="spkadctrl"),$N(d,Y));T.lr!=="yt"&&d.G.set("len",[q.lengthSeconds.toFixed(2)]);q.cotn&&!NC(q)&&d.Hj(!0);T.uF()&&(q=YFD())&&d.oU("cblt",{m:q});if(T.N("html5_log_screen_diagonal")){T=d.oU;var U;q=((U=window.H5vccScreen)==null?0:U.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;T.call(d,"cbltdiag",{v:q})}}};
  5753. yGQ=function(d,q){d.G&&(d=d.G,q===58?d.G.update():d.j&&(G6(d),LE(d).send(),d.T=NaN))};
  5754. ha6=function(d,q){if(g.gs(q,1024)||g.gs(q,512)||g.gs(q,4)){if(d.U){var T=d.U;T.U>=0||(T.G=-1,T.delay.stop())}d.qoe&&(T=d.qoe,T.L||(T.j=-1))}if(d.provider.videoData.enableServerStitchedDai&&d.KA){var Y;(Y=d.j.get(d.KA))==null||sZ_(Y,q)}else d.G&&sZ_(d.G,q);if(d.qoe){Y=d.qoe;T=q.state;var e=g.Jp(Y.provider),U=Y.getPlayerState(T),b=T.seekSource||void 0;if(U!==Y.Fd){Y.yv||e<Y.U||(Y.Fd==="PL"?Y.playTimeSecs+=e-Y.U:Y.Fd==="B"&&Y.isBuffering&&(Y.isBuffering=!1,Y.rebufferTimeSecs+=e-Y.lr,!Y.fn&&Y.rebufferTimeSecs>=
  5755. 10&&Y.playTimeSecs<=180&&(Y.G.set("qoealert",["1"]),Y.fn=!0)),U!=="B"||Y.Fd!=="PL"&&Y.Fd!=="PB"||(Y.isBuffering=!0),Y.U=e);Y.Fd==="PL"&&(U==="B"||U==="S")||Y.provider.Pv.uF()?sV(Y,e):(Y.lF||U!=="PL"||(Y.lF=!0,XUj(Y,e,Y.provider.G2.vS())),UCN(Y,e));U==="PL"&&g.zh(Y.LC);var J=[U];U==="S"&&b&&J.push("ss."+b);g.UV(Y,e,"vps",J);Y.Fd=U;Y.lr=e;Y.U=e;Y.T=!0}U=T.eF;g.I(T,128)&&U&&(U.bH=U.bH||"",g4f(Y,e,U.errorCode,U.d_,U.bH));(g.I(T,2)||g.I(T,128))&&Y.reportStats(e);T.isPlaying()&&!Y.L&&(Y.j>=0&&Y.G.set("user_intent",
  5756. [Y.j.toString()]),Y.L=!0);s62(Y)}d.U&&(d=d.U,k66(d),d.playerState=q.state,d.U>=0&&g.gs(q,16)&&d.seekCount++,q.state.isError()&&d.send())};
  5757. HcN=function(d){d.U&&d.U.send();if(d.qoe){var q=d.qoe;if(q.T){q.Fd==="PL"&&(q.Fd="N");var T=g.Jp(q.provider);g.UV(q,T,"vps",[q.Fd]);q.L||(q.j>=0&&q.G.set("user_intent",[q.j.toString()]),q.L=!0);q.provider.Pv.uF()&&q.oU("finalized",{});q.z2=!0;q.reportStats(T)}}if(d.provider.videoData.enableServerStitchedDai)for(q=g.E(d.j.values()),T=q.next();!T.done;T=q.next())JG_(T.value);else d.G&&JG_(d.G);d.dispose()};
  5758. QZ1=function(d,q){d.G&&$aI(d.G,q)};
  5759. MRN=function(d){if(!d.G)return null;var q=B8(d.G,"atr");return function(T){d.G&&$aI(d.G,T,q)}};
  5760. cGn=function(d,q,T,Y){T.adFormat=T.R6;var e=q.G2;q=new tp(new kN(T,q.Pv,{getDuration:function(){return T.lengthSeconds},
  5761. getCurrentTime:function(){return e.getCurrentTime()},
  5762. tE:function(){return e.tE()},
  5763. gG:function(){return e.gG()},
  5764. vS:function(){return e.vS()},
  5765. getPlayerSize:function(){return e.getPlayerSize()},
  5766. getAudioTrack:function(){return T.getAudioTrack()},
  5767. getPlaybackRate:function(){return e.getPlaybackRate()},
  5768. EE:function(){return e.EE()},
  5769. getVisibilityState:function(){return e.getVisibilityState()},
  5770. GN:function(){return e.GN()},
  5771. B9:function(){return e.B9()},
  5772. getVolume:function(){return e.getVolume()},
  5773. isMuted:function(){return e.isMuted()},
  5774. hW:function(){return e.hW()},
  5775. L9:function(){return e.L9()},
  5776. getProximaLatencyPreference:function(){return e.getProximaLatencyPreference()},
  5777. u6:function(){e.u6()},
  5778. oU:function(U,b){e.oU(U,b)},
  5779. Ne:function(){return e.Ne()},
  5780. mz:function(){return e.mz()}}));
  5781. q.U=Y;g.C(d,q);return q};
  5782. Esg=function(){this.fb=0;this.j=this.fL=this.Cw=this.U=NaN;this.G={};this.bandwidthEstimate=NaN};
  5783. jZf=function(){this.G=g.mX;this.array=[]};
  5784. AG1=function(d,q,T){var Y=[];for(q=atN(d,q);q<d.array.length;++q){var e=d.array[q];(e.end<=T||e.contains(T))&&Y.push(e);if(e.start>T)break}return Y};
  5785. p$D=function(d,q){var T=[];d=g.E(d.array);for(var Y=d.next();!Y.done&&!(Y=Y.value,Y.contains(q)&&T.push(Y),Y.start>q);Y=d.next());return T};
  5786. ZcI=function(d){return d.array.slice(atN(d,0x7ffffffffffff),d.array.length)};
  5787. atN=function(d,q){d=wL(d.array,function(T){return q-T.start||1});
  5788. return d<0?-(d+1):d};
  5789. Oc7=function(d,q){var T=NaN;d=g.E(d.array);for(var Y=d.next();!Y.done;Y=d.next())if(Y=Y.value,Y.contains(q)&&(isNaN(T)||Y.end<T)&&(T=Y.end),Y.start>q&&(isNaN(T)||Y.start<T)){T=Y.start;break}return T};
  5790. ns7=function(d,q){d.array=d.array.filter(function(T){return!q.has(T)})};
  5791. g.W8=function(d,q){g.W.call(this);this.G2=d;this.L=q;this.j=NaN;this.S=this.X=this.started=!1;this.U=[];this.B=new g.f9(this.sync,250,this);g.C(this,this.B);this.T=new g.f9(this.sync,0,this);g.C(this,this.T);this.G=new jZf};
  5792. rG2=function(d){d.started=!0;d.sync()};
  5793. tR7=function(d,q){d.started&&(d.sync(),g.I(q.oldState,16)&&(q=Oc7(d.G,Math.max(d.j-2E3,0)),!isNaN(q)&&q<0x7ffffffffffff&&d.T.start()))};
  5794. BFN=function(d,q){var T=[];if(!q.length)return T;for(var Y=0;Y<q.length;Y++){var e=q[Y];e.active&&d.U.indexOf(e)===-1&&(d.U.push(e),T.push([1,e]))}return T};
  5795. KBn=function(d,q){var T=[];if(!q.length)return T;q.sort(g.mX);q=g.E(q);for(var Y=q.next();!Y.done;Y=q.next())Y=Y.value,d.U.splice(d.U.indexOf(Y),1),T.push([2,Y]);return T};
  5796. kQ6=function(d){if(d.started&&!d.JF()){d.T.stop();var q=d.G2.getPlayerState();g.I(q,32)&&d.B.start();for(var T=GQ7(d),Y=d.isEnded(q,T),e=[],U=[],b=g.E(d.U),J=b.next();!J.done;J=b.next())J=J.value,J.active&&(Y?J.end<0x8000000000000:!J.contains(T))&&U.push(J);e=e.concat(KBn(d,U));b=U=null;Y?(q=p$D(d.G,0x7ffffffffffff),U=q.filter(function(F){return F.end<0x8000000000000}),b=ZcI(d.G)):q=d.j<=T&&nk(q)?AG1(d.G,d.j,T):p$D(d.G,T);
  5797. e=e.concat(BFN(d,q));U&&(e=e.concat(KBn(d,U)));b&&(e=e.concat(BFN(d,b)));d.j=T;LBD(d,e)}};
  5798. LBD=function(d,q){q=g.E(q);for(var T=q.next();!T.done;T=q.next()){T=T.value;var Y=T[1];T[0]===1?d.L(g.Sh(Y.namespace),Y):d.L(g.lG(Y.namespace),Y)}};
  5799. GQ7=function(d){return g.I(d.G2.getPlayerState(),2)?0x8000000000000:d.G2.getCurrentTime()*1E3};
  5800. Pf2=function(d){this.Pv=d;this.j=this.U=this.mediaTime=NaN;this.T=this.G=!1;this.S=.001;g.ho(d)&&(this.S=.01)};
  5801. CE=function(d,q){return q>d.mediaTime+d.S&&q<d.mediaTime+5};
  5802. oPf=function(d,q,T,Y,e){if(Y=Y>1)d.T=!0;if((e===void 0?0:e)||isNaN(d.U))d.U=q;if(d.G)q!==d.mediaTime&&(d.G=!1);else if(q>0&&d.mediaTime===q){e=1500;if(d.Pv.N("html5_buffer_underrun_transition_fix")){e=g.Yv(d.Pv.experiments,"html5_min_playback_advance_for_steady_state_secs");var U=g.Yv(d.Pv.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");e=e>0&&U>0&&Math.abs(q-d.U)<e?U:1500}return T-d.j>(Y||!d.T?e:400)}d.mediaTime=q;d.j=T;return!1};
  5803. WBf=function(d,q){this.videoData=d;this.G=q};
  5804. CfX=function(d,q,T){return q.LR(T).then(function(){return pZ(new WBf(q,q.j))},function(Y){Y instanceof Error&&g.OL(Y);
  5805. var e=Qb('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),U=cH('audio/mp4; codecs="mp4a.40.2"'),b=e||U,J=q.isLivePlayback&&!g.jJ(d.S,!0);Y="fmt.noneavailable";J?Y="html5.unsupportedlive":b||(Y="html5.missingapi");b=J||!b?2:1;e={buildRej:"1",a:q.xk(),d:!!q.Ln,drm:q.It(),f18:q.vA.indexOf("itag=18")>=0,c18:e};q.G&&(q.It()?(e.f142=!!q.G.G["142"],e.f149=!!q.G.G["149"],e.f279=!!q.G.G["279"]):(e.f133=!!q.G.G["133"],e.f140=!!q.G.G["140"],e.f242=!!q.G.G["242"]),e.cAAC=U,e.cAVC=cH('video/mp4; codecs="avc1.42001E"'),
  5806. e.cVP9=cH('video/webm; codecs="vp9"'));q.S&&(e.drmsys=q.S.keySystem,U=0,q.S.G&&(U=Object.keys(q.S.G).length),e.drmst=U);return new g.xV(Y,e,b)})};
  5807. uC=function(d){this.data=window.Float32Array?new Float32Array(d):Array(d);this.U=this.G=d-1};
  5808. uaD=function(d){return d.data[d.G]||0};
  5809. DaI=function(d){this.S=d;this.j=this.U=0;this.T=new uC(50)};
  5810. wk=function(d,q,T){g.YP.call(this);this.videoData=d;this.experiments=q;this.S=T;this.U=[];this.y9=0;this.j=!0;this.T=!1;this.X=0;T=new w$7;d.latencyClass==="ULTRALOW"&&(T.X=!1);d.kx?T.j=3:g.vr(d)&&(T.j=2);d.latencyClass==="NORMAL"&&(T.S=!0);T.lr=tw(d)&&q.Wv("html5_refactor_decouple_liveness");g.Yv(q,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.Yv(q,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||d.latencyClass!=="LOW"&&d.latencyClass!=="ULTRALOW"||(T.S=!0);var Y=
  5811. g.Yv(q,"html5_liveness_drift_proxima_override");if(Ct(d)!==0&&Y){T.G=Y;var e;((e=d.G)==null?0:R0H(e))&&T.G--}tw(d)&&q.Wv("html5_sabr_parse_live_metadata_playback_boundaries")&&(T.UD=!0);if(g.kA("trident/")||g.kA("edge/"))e=g.Yv(q,"html5_platform_minimum_readahead_seconds")||3,T.T=Math.max(T.T,e);g.Yv(q,"html5_minimum_readahead_seconds")&&(T.T=g.Yv(q,"html5_minimum_readahead_seconds"));g.Yv(q,"html5_maximum_readahead_seconds")&&(T.K=g.Yv(q,"html5_maximum_readahead_seconds"));q.Wv("html5_force_adaptive_readahead")&&
  5812. (T.X=!0);if(e=g.Yv(q,"html5_liveness_drift_chunk_override"))T.G=e;Pr(d)&&(T.G=(T.G+1)/5,d.latencyClass==="LOW"&&(T.G*=2));!tw(d)||d.latencyClass!=="ULTRALOW"&&d.latencyClass!=="LOW"||(T.B=g.Yv(q,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,T.L=g.Yv(q,"html5_low_latency_max_allowable_liveness_drift_chunks")||10);this.policy=T;this.L=this.policy.j!==1;this.G=DK(this,ftg(this,isNaN(d.liveChunkReadahead)?3:d.liveChunkReadahead,d))};
  5813. zaY=function(d,q){if(q)return q=d.videoData,q=ftg(d,isNaN(q.liveChunkReadahead)?3:q.liveChunkReadahead,q),DK(d,q);if(d.U.length){if(Math.min.apply(null,d.U)>1)return DK(d,d.G-1);if(d.policy.X)return DK(d,d.G+1)}return d.G};
  5814. icI=function(d,q){if(!d.U.length)return!1;var T=d.G;d.G=zaY(d,q===void 0?!1:q);if(q=T!==d.G)d.U=[],d.y9=0;return q};
  5815. fE=function(d,q){return q>=d.d4()-ItH(d)};
  5816. maD=function(d,q,T){q=fE(d,q);T||q?q&&(d.j=!0):d.j=!1;d.L=d.policy.j===2||d.policy.j===3&&d.j};
  5817. S8H=function(d,q){q=fE(d,q);d.T!==q&&d.publish("livestatusshift",q);d.T=q};
  5818. ItH=function(d){var q=d.policy.G;d.T||(q=Math.max(q-1,0));return q*z6(d)};
  5819. ftg=function(d,q,T){T.kx&&q--;Pr(T)&&(q=1);if(Ct(T)!==0&&(d=g.Yv(d.experiments,"html5_live_chunk_readahead_proxima_override"))){q=d;var Y;((Y=T.G)==null?0:R0H(Y))&&q++}return q};
  5820. z6=function(d){return d.videoData.G?mF(d.videoData.G)||5:5};
  5821. DK=function(d,q){q=Math.max(Math.max(1,Math.ceil(d.policy.T/z6(d))),q);return Math.min(Math.min(8,Math.floor(d.policy.K/z6(d))),q)};
  5822. w$7=function(){this.T=0;this.K=Infinity;this.X=!0;this.U=this.G=2;this.j=1;this.S=!1;this.L=10;this.UD=!1;this.B=1;this.lr=!1};
  5823. m_=function(d){g.W.call(this);this.G2=d;this.G=0;this.U=null;this.X=this.T=0;this.j={};this.Pv=this.G2.C();this.S=new g.f9(this.Yo,1E3,this);this.AF=iC(this,"html5_seek_timeout_delay_ms");this.yv=iC(this,"html5_long_rebuffer_threshold_ms");this.Fw=iC(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.dO=iC(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.RU=iC(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.Qp=iC(this,"html5_unreported_seek_reseek_delay_ms",
  5824. "html5_unreported_seek_reseek_cfl");this.lr=iC(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.UD=new Ii(2E4);this.aU=iC(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.xx=iC(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.qk=iC(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.z2=iC(this,"html5_reseek_after_time_jump_delay_ms",
  5825. "html5_reseek_after_time_jump_cfl");this.B=iC(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.K=iC(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.Bv=iC(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.kx=iC(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.L=iC(this,"html5_ads_preroll_lock_timeout_delay_ms",
  5826. "html5_ads_preroll_lock_timeout_cfl");this.wO=new Ii(g.Yv(this.Pv.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.Pv.N("html5_report_slow_ads_as_error"));this.fn=new Ii(g.Yv(this.Pv.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.Pv.N("html5_skip_slow_buffering_ad"));this.lF=iC(this,"html5_slow_start_timeout_delay_ms");this.rO=iC(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.C(this,this.S)};
  5827. iC=function(d,q,T){T=T===void 0?null:T;var Y=Y===void 0?0:Y;return new Ii(g.Yv(d.Pv.experiments,q)||Y,T?d.Pv.N(T):!1)};
  5828. lt7=function(d,q){d.G=q};
  5829. SO=function(d,q,T,Y,e,U,b,J){q?q.test(T)?(d.jT(e,q,b),q.X||U()):(!q.U||q.T?T=!1:(T=(0,g.cj)(),Y?q.G||(q.G=T):q.G=0,U=!Y&&T-q.U>3E4,T=q.G&&T-q.G>1E3||U?q.T=!0:!1),T&&(J=Object.assign({},d.BF(q),J),J.wn=b,J.we=e,J.wsuc=Y,d.G2.oU("workaroundReport",J),Y&&(q.reset(),d.j[e]=!1))):d.G2.o6("auth",2,"BROWSER_OR_EXTENSION_ERROR",RI({source:"watchdog",name:b}))};
  5830. Ii=function(d,q){this.X=q===void 0?!1:q;this.G=this.U=this.j=this.startTimestamp=0;this.T=!1;this.S=Math.ceil(d/1E3)};
  5831. dcN=function(d){g.W.call(this);var q=this;this.G2=d;this.B=this.G=this.loader=this.mediaElement=this.playbackData=null;this.j=0;this.S=this.yv=this.T=null;this.z2=!1;this.lF=0;this.UD=!1;this.timestampOffset=0;this.K=!0;this.xx=0;this.Fw=this.q5=!1;this.L=0;this.kx=!1;this.rO=0;this.Pv=this.G2.C();this.videoData=this.G2.getVideoData();this.policy=new vsf;this.lr=new m_(this.G2);this.wO=this.qk=this.RU=this.X=this.U=NaN;this.aU=new g.f9(function(){osY(q,!1)},2E3);
  5832. this.Qp=new g.f9(function(){lC(q)});
  5833. this.AF=new g.f9(function(){VRf(q,{})});
  5834. this.fn=NaN;this.dO=new g.f9(function(){var T=q.Pv.dA;T.G+=1E4/36E5;T.G-T.j>1/6&&(BUI(T),T.j=T.G);q.dO.start()},1E4);
  5835. g.C(this,this.lr);g.C(this,this.aU);g.C(this,this.AF);g.C(this,this.Qp);g.C(this,this.dO)};
  5836. Yif=function(d,q){d.playbackData=q;d.videoData.isLivePlayback&&(d.B=new DaI(function(){a:{if(d.playbackData&&d.playbackData.G.G){if(kp(d.videoData)&&d.loader){var Y=d.loader.S9.W4()||0;break a}if(d.videoData.G){Y=d.videoData.G.z2;break a}}Y=0}return Y}),d.G=new wk(d.videoData,d.Pv.experiments,function(){return d.cG(!0)}));
  5837. if(v8(d.G2)){var T;(T=d.videoData.H1)!=null&&T.yx||(q=qi_(d),q.NS?(tw(d.videoData)&&d.mN(q.NS,q.startSeconds),d.j=q.startSeconds):q.startSeconds>0&&d.seekTo(q.startSeconds,{b$:"seektimeline_startPlayback",seekSource:15}));d.K=!1}else TV1(d)||(d.j=d.j||d.videoData.startSeconds||0,d.videoData.isLivePlayback||(q=d.G2.videoData.cG(),d.j>q&&(d.N("html5_sabr_log_invalid_sabr_current_time")&&d.G2.oU("invalidSabrCmtStart",{rt:d.j,mst:q}),d.N("html5_sabr_vod_invalid_start_time_fallback")&&(d.j=0))))};
  5838. UcY=function(d,q){(d.loader=q)?eAg(d,!0):oi(d)};
  5839. baj=function(d,q){g.zh(d.lr.S);d.N("html5_exponential_memory_for_sticky")&&(q.state.isPlaying()?g.zh(d.dO):d.dO.stop());if(d.mediaElement)if(q.oldState.state===8&&nk(q.state)&&q.state.isBuffering()){q=d.mediaElement.getCurrentTime();var T=d.mediaElement.g1();var Y=d.N("manifestless_post_live_ufph")||d.N("manifestless_post_live")?vH(T,Math.max(q-3.5,0)):vH(T,q-3.5);Y>=0&&q>T.end(Y)-1.1&&Y+1<T.length&&T.start(Y+1)-T.end(Y)<11&&(Y=T.start(Y+1)+.2+d.mz(),Math.abs(d.fn-Y)<.2||(d.G2.oU("seekover",{b:lW(T,
  5840. "_"),cmt:q}),d.fn=Y,d.seekTo(Y,{Zn:!0,b$:"seektimeline_postLiveDisc"})))}else((T=q.state)==null?0:T.state===8)&&!d.Fw&&(d.videoData.limitedPlaybackDurationInSeconds>0?(Vo(d.G2,d.getCurrentTime()+d.videoData.limitedPlaybackDurationInSeconds),d.Fw=!0):d.videoData.isLivePlayback&&d.videoData.endSeconds>0&&(Vo(d.G2,d.getCurrentTime()+d.videoData.endSeconds),d.Fw=!0))};
  5841. Jc7=function(d,q){var T=d.getCurrentTime(),Y=d.isAtLiveHead(T);if(d.B&&Y){var e=d.B;if(e.G&&!(T>=e.U&&T<e.j)){var U=e.G.yg(T);U!==-1&&(e.U=e.G.getStartTime(U),e.j=e.U+e.G.getDuration(U),U=(0,g.cj)()/1E3-e.G.fH(U),U-=e.S(),e.T.add(U))}}d.G&&(Y&&(e=d.G,U=Xcn(d),e.y9++,e.y9<3||Date.now()-e.X<3E3||(e.X=Date.now(),e.U.push(U),e.U.length>50&&e.U.shift())),e=d.G,maD(e,T,q===void 0?!0:q),S8H(e,T),q&&osY(d,!0));Y!==d.q5&&(q=d.getCurrentTime()-d.wO<=500,T=d.lF>=1E3,q||T||(q=d.G2.X9,q.qoe&&(q=q.qoe,T=g.Jp(q.provider),
  5842. g.UV(q,T,"lh",[Y?"1":"0"])),d.q5=Y,d.lF++,d.wO=d.getCurrentTime()))};
  5843. osY=function(d,q){if(d.G){var T=d.G;var Y=d.getCurrentTime(),e=T.d4();var U=T.policy.U;T.T||(U=Math.max(U-1,0));U*=z6(T);Y>=e-U||!T.bl()?T=Y<T.videoData.BG()?Math.min(T.videoData.BG()+10,T.d4()):NaN:(T.policy.S&&(T.policy.lr?(T.policy.U=Math.min(T.policy.U+T.policy.B,T.policy.L),T.policy.G=Math.min(T.policy.G+1,10)):(T.policy.U=Math.max(T.policy.U+1,T.policy.L),T.policy.G=Math.max(T.policy.G+1,10))),T=Infinity);if(!isNaN(T)){if(d.loader&&q&&(q=d.aU.isActive(),Y=d.G.d4(),(Y=Ufg(d.loader,Y-d.mz()))&&
  5844. !q)){d.aU.start();d.G2.oU("inBufferPtl",{cmt:d.getCurrentTime(),seekTo:Y+d.mz()});d.N("html5_report_peg_to_live_seek_source")?d.seekTo(Y+d.mz(),{b$:"seektimeline_inBufferSeek",seekSource:34}):d.seekTo(Y+d.mz(),{b$:"seektimeline_inBufferSeek"});return}d.N("html5_report_peg_to_live_seek_source")?d.seekTo(T,{b$:"seektimeline_pegToLive",seekSource:34}):d.seekTo(T,{b$:"seektimeline_pegToLive"})}}};
  5845. eAg=function(d,q){if(d.G&&d.loader){var T=!1;q?T=!0:d.videoData.isLowLatencyLiveStream||d.videoData.latencyClass==="LOW"||d.videoData.latencyClass==="ULTRALOW"?T=icI(d.G):d.kx&&(d.kx=!1,T=icI(d.G,!0));T&&(q=d.G2.X9,T=d.G,T=z6(T)*T.G,q.qoe&&(q=q.qoe,g.UV(q,g.Jp(q.provider),"lra",[T]),q.oU("live-readahead-seconds",{v:T})));q=d.loader;T=d.G.G;d=d.G;d=(d.G-1+d.policy.G)*z6(d);var Y=NaN,e=q.pC;e===2||e===-1?Pr(q.G2.getVideoData())&&(Y=q.policy.Ph):--T;T=Math.max(T,0);e=q.S;e.MM=T;e.K=Y;q.L&&(q.L.lr=d)}};
  5846. sNg=function(d,q){d.j=q};
  5847. VRf=function(d,q){d.z2=!0;d.N("html5_use_centralized_player_time")&&(d.U=d.X,d.j=d.U,d.X=NaN);$c_(d,q)};
  5848. $c_=function(d,q){grQ(d,q).then(void 0,function(){oi(d)});
  5849. FS2(d,q).then(function(T){NVX(d,T)},function(){oi(d)});
  5850. d.G2.VI(q);if(d.Pv.uF()||RAj(d))q=d.BF(),q["native"]=""+ +d.UD,q.tgt=""+d.U,q.otgt=""+(d.U+d.timestampOffset),q.maxst=""+d.cG(),d.G&&d.N("html5_high_res_seek_logging")&&(q.tht=""+d.G.S(),q.ht=""+d.G.d4(),q.adft=""+ItH(d.G)),d.N("html5_sabr_parse_live_metadata_playback_boundaries")&&d.videoData.G&&tw(d.videoData)&&(q.minst=""+d.videoData.G.m1,q.cminst=""+(d.videoData.G.BG()+d.timestampOffset),q.maxst=""+d.videoData.G.Gr,q.hts=""+d.videoData.G.UD,q.cmaxst=""+(d.videoData.G.cG()+d.timestampOffset)),
  5851. d.G2.oU("startSeek",q)};
  5852. grQ=function(d,q){d.yv||(d.loader?isFinite(d.U)?d.yv=d.loader.seek(d.U-d.timestampOffset,q):(Lt(d.videoData),d.yv=R7(d.loader),x4(d.videoData)||(d.U=d.loader.getCurrentTime()+d.timestampOffset)):d.yv=g.Of(d.U-d.timestampOffset));return d.yv};
  5853. FS2=function(d,q){var T=d.T;T||(d.T=new yQ,T=d.T,lC(d,q));return T};
  5854. dF=function(d,q,T){if(isNaN(q))return NaN;var Y=d.BG();T=d.cG(T);return d.N("html5_clamp_invalid_seek_to_min_seekable_time")&&!d.videoData.isLivePlayback&&q>T+1&&q<Infinity?(d.Pv.uF()&&d.G2.oU("clampInvalidSeek",{tgt:""+q,maxst:""+T}),Y):g.Cn(q,Y,T)};
  5855. lC=function(d,q){if(d.T)if(d.videoData.isLivePlayback&&d.videoData.j&&!d.videoData.j.G&&d.mediaElement&&d.mediaElement.Tr()>0&&Hl(d.mediaElement)>0&&(d.U=dF(d,d.U,!1)),q=d.N("html5_pseudogapless_shorts_seek_to_next_start")&&(q==null?void 0:q.seekSource)===60,!d.mediaElement||!xc7(d,q))d.Qp.start(750);else if(!isNaN(d.U)&&isFinite(d.U)&&(q=d.qk-(d.U-d.timestampOffset),!(q===0||Math.abs(q)<.005)))if(q=d.mediaElement.getCurrentTime()-d.U,Math.abs(q)<=d.xx||Math.abs(q)<.005)yc2(d);else{if(d.videoData.PC)d.videoData.PC=
  5856. !1;else if(!Lt(d.videoData)&&d.U>=d.cG()-.1){d.U=d.cG();d.T.resolve(d.cG());d.Pv.uF()&&d.G2.oU("setEndedInSeek",{tgt:""+d.U,maxst:""+d.cG()});d.G2.Wx();return}try{var T=d.U-d.timestampOffset;d.mediaElement.seekTo(T);d.lr.G=T;d.qk=T;d.j=d.U;d.UD=!1}catch(Y){}}};
  5857. xc7=function(d,q){q=q===void 0?!1:q;if(!d.mediaElement||d.mediaElement.Tr()===0||d.mediaElement.hasError())return!1;var T=d.mediaElement.getCurrentTime()>0;return d.videoData.j&&d.videoData.j.G||d.videoData.isLivePlayback||!d.videoData.It()?d.U>=0&&!q&&(q=d.mediaElement.kF(),q.length||!T)?oI(q,d.U-d.timestampOffset):T:T};
  5858. yc2=function(d){d.T&&(d.T.resolve(d.mediaElement.getCurrentTime()),d.lr.U=null)};
  5859. NVX=function(d,q){d.S&&(d.S.resolve(q),d.G2.JT(),d.Pv.uF()||RAj(d))&&(q=d.BF(),q["native"]=""+ +d.UD,q.otgt=""+(d.U+d.timestampOffset),d.G2.oU("seekEnd",q));oi(d)};
  5860. oi=function(d){d.U=NaN;d.X=NaN;d.qk=NaN;d.T=null;d.yv=null;d.S=null;d.z2=!1;d.UD=!1;d.xx=0;d.aU.stop();d.AF.stop()};
  5861. Ha_=function(d,q){var T=d.mediaElement,Y=q.type;switch(Y){case "seeking":var e=T.getCurrentTime()+d.timestampOffset;if(!d.T||d.UD&&e!==d.U){d.T=new yQ;d.T.then(function(b){NVX(d,b)},function(){oi(d)});
  5862. if(d.videoData.isAd()){var U;Jr6({adCpn:d.videoData.clientPlaybackNonce,contentCpn:(U=d.videoData.yM)!=null?U:""},q.G)}d.qk=e;lt7(d.lr,T.getCurrentTime());d.seekTo(e,{seekSource:104,b$:"seektimeline_mediaElementEvent"});d.UD=!0}break;case "seeked":yc2(d);break;case "loadedmetadata":v8(d.G2)||hAH(d);lC(d);break;case "progress":lC(d);break;case "pause":d.L=d.getCurrentTime()}d.L&&((Y==="play"||Y==="playing"||Y==="timeupdate"||Y==="progress")&&d.getCurrentTime()-d.L>10&&(d.N("html5_sky_skip_pause_jump")?
  5863. d.G2.oU("skipPauseJump",{evt:Y,cmt:d.getCurrentTime(),lpt:d.L}):d.seekTo(d.L,{b$:"pauseJump"})),Y!=="pause"&&Y!=="play"&&Y!=="playing"&&Y!=="progress"&&(d.L=0))};
  5864. QNQ=function(d){return(of(d.videoData)||!!d.videoData.liveUtcStartSeconds)&&(!!d.videoData.liveUtcStartSeconds||TV1(d))&&!!d.videoData.G};
  5865. TV1=function(d){return!!d.videoData.startSeconds&&isFinite(d.videoData.startSeconds)&&d.videoData.startSeconds>1E9};
  5866. qi_=function(d){var q=0,T=NaN,Y="";if(!d.K)return{startSeconds:q,NS:T,source:Y};d.videoData.yv?q=d.videoData.rO:Lt(d.videoData)&&(q=Infinity);if(g.vr(d.videoData))return{startSeconds:q,NS:T,source:Y};d.videoData.startSeconds?(Y="ss",q=d.videoData.startSeconds):d.videoData.wk&&(Y="stss",q=d.videoData.wk);d.videoData.liveUtcStartSeconds&&(T=d.videoData.liveUtcStartSeconds);if(isFinite(q)&&(q>d.cG()||q<d.BG())){var e={};e.minSeekableTime=d.BG();e.maxSeekableTime=d.cG();e.cmt=d.getCurrentTime();e.ss=
  5867. q;e.utc=T;e.src=Y;d.G2.oU("startSecondsOutOfBounds",e);d.videoData.aN()&&(q=dF(d,q,!1))}return{startSeconds:q,NS:T,source:Y}};
  5868. hAH=function(d){if(d.K){var q;if((q=d.videoData.H1)==null?0:q.yx)d.K=!1;else if(g.vr(d.videoData))d.K=!1;else{q="ss";var T=0,Y;((Y=d.videoData.G)==null?0:Y.isManifestless)&&d.videoData.lF&&!TV1(d)&&(q="mss",T=d.videoData.lF);(d.videoData.yv?d.N("html5_prioritize_windowed_st_start_seconds"):d.N("html5_prioritize_st_start_seconds"))&&!T&&d.videoData.wk&&(q="stss",T=d.videoData.wk);!T&&QNQ(d)&&(T=d.videoData.liveUtcStartSeconds||d.videoData.lF,q="utc",T=d.cG()-d.fH(d.cG())+T);!T&&d.videoData.aN()&&d.videoData.wk&&
  5869. (q="stss",T=d.videoData.wk);Y={};if(T){if(T>d.cG()||T<d.BG())Y.minSeekableTime=d.BG(),Y.maxSeekableTime=d.cG(),Y.cmt=d.getCurrentTime(),Y.it=d.fH(d.getCurrentTime()),Y.ss=T,Y.utc=QNQ(d)?d.videoData.liveUtcStartSeconds||d.videoData.lF:0,d.G2.oU("startSecondsOutOfBounds",Y),d.videoData.aN()&&(T=dF(d,T,!1));d.seekTo(T,{b$:"seektimeline_startSeconds"});Y[q]=T;d.G2.oU("startSeconds",Y);d.K=!1}else d.videoData.lF&&(Y[q]=d.videoData.lF+d.mz(),d.G2.oU("startSeconds",Y))}}};
  5870. MzY=function(d,q){d.G2.oU("sdai",{adj4t:q.toFixed(3)});d.RU=q;q+=1;d.U=q;d.j=q;FS2(d).then(function(T){NVX(d,T)},function(){oi(d)})};
  5871. Xcn=function(d){return d.mediaElement?QQ(d.mediaElement):0};
  5872. RAj=function(d){return d.videoData.mT()&&d.N("html5_enable_shorts_seek_details_logging")};
  5873. vsf=function(){};
  5874. qa=function(d){g.W.call(this);this.j=d;this.G=new Map;this.U=new g.f9(this.sample,250,this);g.C(this,this.U);this.start()};
  5875. TQ=function(d,q){if((d=d.G.get(q))==null)d=void 0;else{d=d.buffer;for(q=[];d.U!==d.G;)d.U=(d.U+1)%d.data.length,q.push(d.data[d.U]);d=q}return d||[]};
  5876. Ys=function(d,q){var T;return((T=d.G.get(q))==null?void 0:uaD(T.buffer))||0};
  5877. ccg=function(d){this.U=d;this.G=NaN;this.buffer=new uC(100)};
  5878. eR=function(){this.finished=this.started=!1};
  5879. ZaI=function(d){function q(e){return T.lr!=="yt"&&(Y.partnerId===38&&T.playerStyle==="books"||Y.partnerId===30&&T.playerStyle==="docs"||Y.partnerId===33&&T.playerStyle==="google-live")?ErY(d,Y,e):jNf(d,Y).then(function(){U8(d,Y)},function(U){U8(d,Y,!0);
  5880. throw U;})}
  5881. var T=d.C(),Y=d.getVideoData();Y.JF();Y.loading=!0;return afN(d)?Acg(d,Y).then(function(){U8(d,Y)},function(e){e=hQ(e);
  5882. if(yb(e.severity))return U8(d,Y,!0),Promise.reject(e);e.errorCode==="onesie.response.badproxystatus"&&""+e.details.st==="3"&&(pcI=!0);d.handleError(e);return q("onesie")}):q("gvi")};
  5883. afN=function(d){var q=d.C();if(q.N("html5_disable_onesie")||!q.N("html5_onesie")||!q.N("html5_onesie_inline")&&d.getVisibilityState()===5||q.lr!=="yt")return!1;var T=q.pC;if(!T||!T.G)return d.handleError(new g.xV("onesie.unavailable.hotconfig",{key:"0"})),!1;if(T.G.X<(0,g.cj)()&&(d.oU("okexp","1"),(T=d.C9())&&q.N("html5_prefer_trusted_host_on_key_expiration"))){T.U=!0;var Y;(q=(Y=T.G.get(0))==null?void 0:SK(Y.location))&&!a3(q)&&T.G.delete(0)}if(pcI)return d.oU("ost3","1"),!1;Y={};return Object.keys(Y).length>
  5884. 0?(Y.onesie="0",d.handleError(new g.xV("html5.missingapi",Y)),!1):!0};
  5885. OaN=function(d){var q=Tk();eq(q,d);return g.i9(q,Ge2())};
  5886. Acg=function(d,q){var T,Y,e,U,b,J,F,N,R,x,y,h,H,a,p,t,n,K,P,w,l,m,b_,x2,JY,s6;return g.G(function(qH){if(qH.U==1)return q.fetchType="onesie",T=Ng6(q,d.getPlayerSize(),d.getVisibilityState()),Y=new SB(d,T),g.B(qH,Y.fetch(),2);e=qH.G;U={player_response:e};q.loading=!1;b=d.h1.z0;if(Y.lO){J=g.E(Y.lO.entries());for(F=J.next();!F.done;F=J.next())N=F.value,R=g.E(N),x=R.next().value,y=R.next().value,h=x,H=y,b.G.set(h,H,180),h===q.videoId&&(a=H.mF(),q.yI=a);b.J6=Y}p=g.E(Y.Gx.entries());for(t=p.next();!t.done;t=
  5887. p.next())n=t.value,K=g.E(n),P=K.next().value,w=K.next().value,l=P,m=w,b.U.set(l,m,180);g.QM(q,U,!0);if(q.loading||hw(q))return qH.return(Promise.resolve());b.G.removeAll();b.U.removeAll();q.yI=[];b_={};x2="onesie.response";JY=0;q.errorCode?(x2="auth",b_.ec=q.errorCode,b_.ed=q.errorDetail,b_.es=q.eU||"",JY=2):(b_.successButUnplayable="1",b_.disposed=""+ +q.JF(),b_.afmts=""+ +/adaptiveFormats/.test(e),b_.cpn=q.clientPlaybackNonce);s6=new g.xV(x2,b_,JY);return qH.return(Promise.reject(s6))})};
  5888. jNf=function(d,q){var T,Y,e,U,b,J,F,N,R,x,y;return g.G(function(h){switch(h.U){case 1:T=q.isAd(),Y=!T,e=T?1:3,U=0;case 2:if(!(U<e)){h.tF(4);break}if(!(U>0)){h.tF(5);break}return g.B(h,LK(5E3),6);case 6:b=new g.CW("Retrying OnePlatform request",{attempt:U}),g.OL(b);case 5:return g.jD(h,7),g.B(h,nrQ(d,q),9);case 9:return h.return();case 7:J=g.nN(h);F=hQ(J);N=F.errorCode;R=d.C();x=R.N("html5_use_network_error_code_enums")?401:"401";Y&&N==="manifest.net.badstatus"&&F.details.rc===x&&(Y=!1,U===e-1&&(e+=
  5889. 1));if(U===e-1)return y=rc2(T,F.details),y.details.backend="op",y.details.originec=N,h.return(Promise.reject(y));if(N==="auth"||N==="manifest.net.retryexhausted")return h.return(Promise.reject(F));d.handleError(F);if(yb(F.severity)){h.tF(4);break}case 3:U++;h.tF(2);break;case 4:return h.return(Promise.reject(rc2(T,{backend:"op"})))}})};
  5890. nrQ=function(d,q){function T(x2){x2.readyState===2&&d.D$("ps_c")}
  5891. var Y,e,U,b,J,F,N,R,x,y,h,H,a,p,t,n,K,P,w,l,m,b_;return g.G(function(x2){switch(x2.U){case 1:q.fetchType="gp";Y=d.C();e=g.rn(Y,g.$4(q));if(!e.G){U=e.getValue();x2.tF(2);break}return g.B(x2,e.G,3);case 3:U=x2.G;case 2:return b=U,J=OaN(b),F=Ng6(q,d.getPlayerSize(),d.getVisibilityState()),N=g.vG(tzN),R=g.$4(q),x=(0,g.cj)(),y=!1,h="empty",H=0,d.D$("psns"),a={VZ:T},g.B(x2,g.GY(J,F,N,void 0,a),4);case 4:p=x2.G;d.D$("psnr");if(q.JF())return x2.return();p?"error"in p&&p.error?(y=!0,h="esf:"+p.error.message,
  5892. H=p.error.code):p.errorMetadata&&(y=!0,h="its",H=p.errorMetadata.status):y=!0;if(y)return t=0,n=((0,g.cj)()-x).toFixed(),K={},K=Y.N("html5_use_network_error_code_enums")?{backend:"op",rc:H,rt:n,reason:h,has_kpt:q.pC?"1":"0",has_mdx_env:q.mdxEnvironment?"1":"0",has_omit_key_flag:g.Cs("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:Y.pageId?"1":"0",has_token:R?"1":"0",has_vvt:q.z2?"1":"0",is_mdx:q.isMdxPlayback?"1":"0",mdx_ctrl:q.jj||"",token_eq:R===g.$4(q)?"1":"0"}:{backend:"op",
  5893. rc:""+H,rt:n,reason:h,has_kpt:q.pC?"1":"0",has_mdx_env:q.mdxEnvironment?"1":"0",has_omit_key_flag:g.Cs("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:Y.pageId?"1":"0",has_token:R?"1":"0",has_vvt:q.z2?"1":"0",is_mdx:q.isMdxPlayback?"1":"0",mdx_ctrl:q.jj||"",token_eq:R===g.$4(q)?"1":"0"},P="manifest.net.connect",H===429?(P="auth",t=2):H>200&&(P="manifest.net.badstatus",H===400&&(t=2)),x2.return(Promise.reject(new g.xV(P,K,t)));q.loading=!1;g.QM(q,{raw_player_response:p},!0);
  5894. w=p;g.bS(q.C())&&w&&w.trackingParams&&vN(w.trackingParams);if(q.errorCode)return l={ec:q.errorCode,ed:q.errorDetail,es:q.eU||""},x2.return(Promise.reject(new g.xV("auth",l,2)));if(!q.loading&&!hw(q))return m=q.isAd()?"auth":"manifest.net.retryexhausted",b_=q.isAd()?2:1,x2.return(Promise.reject(new g.xV(m,{successButUnplayable:"1",hasMedia:g.mJ(q)?"1":"0"},b_)));g.E6(x2)}})};
  5895. ErY=function(d,q,T){function Y(H){H=hQ(H);if(yb(H.severity))return Promise.reject(H);d.handleError(H);return!1}
  5896. function e(){return!0}
  5897. var U,b,J,F,N,R,x,y,h;return g.G(function(H){switch(H.U){case 1:var a=d.C();d.getPlayerSize();d.getVisibilityState();d.isFullscreen();if(q.partnerId===38&&a.playerStyle==="books")a=q.videoId.indexOf(":"),a=g.y6("//play.google.com/books/volumes/"+q.videoId.slice(0,a)+"/content/media",{aid:q.videoId.slice(a+1),sig:q.qSD});else if(q.partnerId===30&&a.playerStyle==="docs")a=g.y6("https://docs.google.com/get_video_info",{docid:q.videoId,authuser:q.gq,authkey:q.lJ,eurl:a.Ln});else if(q.partnerId===33&&
  5898. a.playerStyle==="google-live")a=g.y6("//google-liveplayer.appspot.com/get_video_info",{key:q.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+a.lr);U=a;J=(b=q.isAd())?1:3;F=0;case 2:if(!(F<J)){H.tF(4);break}N=U;if(!(F>0)){H.tF(5);break}return g.B(H,LK(5E3),6);case 6:R={playerretry:F,playerretrysrc:T},b||(R.recover="embedded"),N=d7(U,R);case 5:return g.B(H,BVD(q,N).then(e,Y),7);case 7:if(x=H.G)return H.return();F++;H.tF(2);break;case 4:y=b?"auth":"manifest.net.retryexhausted";h=
  5899. b?2:1;if(!b&&Math.random()<1E-4)try{g.OL(new g.CW("b/152131571",btoa(U)))}catch(p){}return H.return(Promise.reject(new g.xV(y,{backend:"gvi"},h)))}})};
  5900. BVD=function(d,q){function T(p){return Y(p.xhr)}
  5901. function Y(p){if(!d.JF()){p=p?p.status:-1;var t=0,n=((0,g.cj)()-R).toFixed();n=e.N("html5_use_network_error_code_enums")?{backend:"gvi",rc:p,rt:n}:{backend:"gvi",rc:""+p,rt:n};var K="manifest.net.connect";p===429?(K="auth",t=2):p>200&&(K="manifest.net.badstatus",p===400&&(t=2));return Promise.reject(new g.xV(K,n,t))}}
  5902. var e,U,b,J,F,N,R,x,y,h,H,a;return g.G(function(p){if(p.U==1){d.fetchType="gvi";e=d.C();var t={};d.GE&&(t.ytrext=d.GE);(J=g.FV(t)?void 0:t)?(U={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:J},b=d7(q,{action_display_post:1})):(U={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},b=q);F={};e.sendVisitorIdHeader&&d.visitorData&&(F["X-Goog-Visitor-Id"]=d.visitorData);(N=Md(e.experiments,"debug_sherlog_username"))&&(F["X-Youtube-Sherlog-Username"]=N);Object.keys(F).length>
  5903. 0&&(U.headers=F);R=(0,g.cj)();return g.B(p,GE(E3,b,U).then(void 0,T),2)}x=p.G;if(!x||!x.responseText)return p.return(Y(x));d.loading=!1;y=lF(x.responseText);g.QM(d,y,!0);if(d.errorCode)return h={ec:d.errorCode,ed:d.errorDetail,es:d.eU||""},p.return(Promise.reject(new g.xV("auth",h,2)));if(!d.loading&&!hw(d))return H=d.isAd()?"auth":"manifest.net.retryexhausted",a=d.isAd()?2:1,p.return(Promise.reject(new g.xV(H,{successButUnplayable:"1"},a)));g.E6(p)})};
  5904. rc2=function(d,q){return new g.xV(d?"auth":"manifest.net.retryexhausted",q,d?2:1)};
  5905. U8=function(d,q,T){T=T===void 0?!1:T;var Y,e,U,b;g.G(function(J){if(J.U==1){Y=d.C();if(T&&(!g.an(Y)||bH(q)!=="embedded")||q.G_||bH(q)!=="adunit"&&(g.ho(Y)||Ni(Y)||g.KG(Y)||g.jZ(Y)||g.XW(Y)||Hx(Y)==="WEB_CREATOR"))return J.return();e=g.rn(Y,g.$4(q));return e.G?g.B(J,e.G,3):(U=e.getValue(),J.tF(2))}J.U!=2&&(U=J.G);b=U;return J.return(KSX(d,q,b))})};
  5906. KSX=function(d,q,T){var Y,e,U,b,J;return g.G(function(F){if(F.U==1){g.jD(F,2);Y=OaN(T);var N=q.C();g.KW();var R={context:g.jf(q),videoId:q.videoId,racyCheckOk:q.racyCheckOk,contentCheckOk:q.contentCheckOk,autonavState:"STATE_NONE"};bH(q)==="adunit"&&(R.isAdPlayback=!0);N.embedConfig&&(R.serializedThirdPartyEmbedConfig=N.embedConfig);N.sQ&&(R.showContentOwnerOnly=!0);q.jx&&(R.showShortsOnly=!0);g.Gy(0,141)&&(R.autonavState=g.Gy(0,140)?"STATE_OFF":"STATE_ON");if(g.cT(N)){var x=g.Gy(0,65);x=x!=null?
  5907. !x:!1;var y=!!g.Zs("yt-player-sticky-caption");R.captionsRequested=x&&y}var h;if(N=(h=N.getWebPlayerContextConfig())==null?void 0:h.encryptedHostFlags)R.playbackContext={encryptedHostFlags:N};e=R;U=g.vG(GVH);d.D$("wn_s");return g.B(F,g.GY(Y,e,U),4)}if(F.U!=2)return b=F.G,d.D$("wn_r"),!b||"error"in b&&b.error||(J=b,g.bS(q.C())&&J.trackingParams&&vN(J.trackingParams),g.QM(q,{raw_watch_next_response:b},!1)),g.ZX(F,0);g.nN(F);g.E6(F)})};
  5908. LSX=function(d){d.D$("vir");d.D$("ps_s");tU("vir",void 0,"video_to_ad");var q=ZaI(d);q.then(function(){d.D$("virc");tU("virc",void 0,"video_to_ad");d.D$("ps_r");tU("ps_r",void 0,"video_to_ad")},function(){d.D$("virc");
  5909. tU("virc",void 0,"video_to_ad")});
  5910. return q};
  5911. g.JG=function(d,q,T,Y,e,U,b,J,F,N){F=F===void 0?new g.yM(d):F;N=N===void 0?!0:N;g.YP.call(this);var R=this;this.Pv=d;this.playerType=q;this.rz=T;this.eb=Y;this.getVisibilityState=U;this.visibility=b;this.h1=J;this.videoData=F;this.Ty=N;this.logger=new g.cb("VideoPlayer");this.Bl=null;this.lY=new jO;this.N2=null;this.OY=!0;this.ED=this.loader=null;this.Lt=[];this.dJ=new eR;this.zA=this.Ul=null;this.Jd=new eR;this.jL=null;this.GV=this.w9=!1;this.iH=NaN;this.FI=!1;this.playerState=new g.EX;this.yc=[];
  5912. this.nY=new g.aI;this.Ha=new UZQ(this);this.mediaElement=null;this.I4=new g.f9(this.zYF,15E3,this);this.dg=this.hL=!1;this.PV=NaN;this.E1=!1;this.GF=0;this.X7=!1;this.xg=NaN;this.im=new qa(new Map([["bufferhealth",function(){return Xcn(R.sF)}],
  5913. ["bandwidth",function(){return R.L7()}],
  5914. ["networkactivity",function(){return R.Pv.schedule.yv}],
  5915. ["livelatency",function(){return R.isAtLiveHead()&&R.isPlaying()?kV1(R):NaN}],
  5916. ["rawlivelatency",function(){return kV1(R)}]]));
  5917. this.jR=0;this.loop=!1;this.playbackRate=1;this.eZ=0;this.sF=new dcN(this);this.Lv=!1;this.T8=[];this.zY=this.DW=0;this.Yd=this.lD=!1;this.fL=this.Cw=0;this.xu=new g.f9(this.vI,0,this);this.le=!1;this.Rd=null;this.YDv=[this.nY,this.xu,this.I4,this.im];this.DR=this.eS=null;this.nz=function(){var x=R.X9;x.provider.Pv.Je||x.provider.G2.getVisibilityState()===3||(x.provider.Pv.Je=!0);x.bX();if(x.U){var y=x.U;y.S&&y.G<0&&y.provider.G2.getVisibilityState()!==3&&L_H(y)}x.qoe&&(x=x.qoe,x.AF&&x.j<0&&x.provider.Pv.Je&&
  5918. y7Y(x),x.T&&sV(x));R.loader&&bf(R);R.Pv.H$&&!R.videoData.backgroundable&&R.mediaElement&&!R.pA()&&(R.isBackground()&&R.mediaElement.l_()?(R.oU("bgmobile",{suspend:1}),R.Zp(!0,!0)):R.isBackground()||Xa(R)&&R.oU("bgmobile",{resume:1}))};
  5919. this.fC={mL:function(x){R.mL(x)},
  5920. kOk:function(x){R.Bl=x},
  5921. U2k:function(){return R.X9},
  5922. Eg:function(){return R.ED},
  5923. qZf:function(){return R.fu},
  5924. m15:function(){return R.U7},
  5925. ho2:function(){},
  5926. C:function(){return R.Pv},
  5927. WG:function(){return R.mediaElement},
  5928. bwU:function(x){R.Rx(x)},
  5929. d2w:function(){return R.eb}};
  5930. this.logger.debug(function(){return"creating, type "+q});
  5931. this.uL=new Pf2(this.Pv);this.f8=new Ap(this.Pv,this.eb,this);this.Mp=new g.W8(this,function(x,y){x!==g.Sh("endcr")||g.I(R.playerState,32)||R.Wx();e(x,y,R.playerType);if(x===g.Sh("transitiondetector")&&(x=R.loader)!=null&&(x=x.fn)!=null){var h=g.E(BdN(y.id));h.next();h=h.next().value;OtH(x,h,y.start/1E3-x.G2.mz(),MHg(x.T))}});
  5932. g.C(this,this.Mp);g.C(this,this.sF);P0N(this,F);this.videoData.subscribe("dataupdated",this.plk,this);this.videoData.subscribe("dataloaded",this.s7,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.oU,this);this.videoData.subscribe("ctmpstr",this.f_,this);!this.X9||this.X9.JF();this.X9=new g.P8(new kN(this.videoData,this.Pv,this));YVj(this.nz);this.visibility.subscribe("visibilitystatechange",this.nz);this.fu=new g.f9(this.B0,g.Yv(this.Pv.experiments,
  5933. "html5_player_att_initial_delay_ms")||4500,this);this.U7=new g.f9(this.B0,g.Yv(this.Pv.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.QR=new g.mE(this.YF5,350,this);g.C(this,this.QR)};
  5934. P0N=function(d,q){if(d.playerType===2||d.Pv.W$)q.Hi=!0;var T=ZS7(q.R6,q.fh,d.Pv.T,d.Pv.B);T&&(q.adFormat=T);d.playerType===2&&(q.k9=!0);if(d.isFullscreen()||d.Pv.T)T=g.Zs("yt-player-autonavstate"),q.autonavState=T||(d.Pv.T?2:d.videoData.autonavState);q.endSeconds&&q.endSeconds>q.startSeconds&&Vo(d,q.endSeconds)};
  5935. WSQ=function(d){var q=d.videoData;LSX(d).then(void 0,function(T){d.videoData!==q||q.JF()||(T=hQ(T),T.errorCode==="auth"&&d.videoData.errorDetail?d.o6(T.errorCode,2,unescape(d.videoData.errorReason),RI(T.details),d.videoData.errorDetail,d.videoData.eU||void 0):d.handleError(T))})};
  5936. DcX=function(d){if(!g.I(d.playerState,128))if(d.videoData.isLoaded(),d.logger.debug("finished loading playback data"),d.Lt=g.rL(d.videoData.K),g.mJ(d.videoData)){d.rz.tick("bpd_s");s8(d).then(function(){d.rz.tick("bpd_c");if(!d.JF()){d.w9&&(d.Vp(Ae(Ae(d.playerState,512),1)),Xa(d));var Y=d.videoData;Y.endSeconds&&Y.endSeconds>Y.startSeconds&&Vo(d,Y.endSeconds);d.dJ.finished=!0;$s(d,"dataloaded");d.Jd.G0()&&C0_(d);G62(d.f8,d.zA)}});
  5937. d.N("html5_log_media_perf_info")&&d.oU("loudness",{v:d.videoData.LC.toFixed(3)},!0);var q,T=(q=d.mediaElement)==null?void 0:q.tA();if(T&&"disablePictureInPicture"in T&&d.Pv.pS)try{T.disablePictureInPicture=d.Pv.fp&&!d.videoData.backgroundable}catch(Y){g.OL(Y)}uif(d)}else $s(d,"dataloaded")};
  5938. s8=function(d){gF(d);d.zA=null;var q=CfX(d.Pv,d.videoData,d.pA());d.Ul=q;d.Ul.then(function(T){wcQ(d,T)},function(T){d.JF()||(T=hQ(T),d.visibility.isBackground()?(Fa(d,"vp_none_avail"),d.Ul=null,d.dJ.reset()):(d.dJ.finished=!0,d.o6(T.errorCode,T.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",RI(T.details))))});
  5939. return q};
  5940. wcQ=function(d,q){if(!d.JF()&&!q.videoData.JF()){d.logger.debug("finished building playback data");d.zA=q;Yif(d.sF,d.zA);if(d.videoData.isLivePlayback){var T=ffD(d.h1.z0,d.videoData.videoId)||d.loader&&!isNaN(d.loader.z2);T=d.N("html5_onesie_live")&&T;v8(d)||d.videoData.lF>0&&!kp(d.videoData)||T||d.seekTo(d.cG(),{b$:"videoplayer_playbackData",seekSource:18})}if(d.videoData.j.G){if(TgY(d.videoData)){d.o6("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",RI({missabrurl:1}));return}d.loader?g.OL(Error("Duplicated Loader")):
  5941. (T=g.Yv(d.Pv.experiments,"html5_onesie_defer_content_loader_ms"))&&d.k6()&&ffD(d.h1.z0,d.videoData.wlg)?g.s3(function(){d.JF()||d.loader||zA2(d)},T):zA2(d)}else!d.videoData.j.G&&NC(d.videoData)&&d.FH(new A5(d.videoData.videoId||"",4));
  5942. d.M2();p86(q).then(function(){var Y={};d.J8(Y);d.Pv.uF()&&d.N("html5_log_media_perf_info")&&d.oU("av1Info",Y);bf(d)})}};
  5943. C0_=function(d){d.JF();d.logger.debug("try finish readying playback");if(d.Jd.finished)d.logger.debug("already finished readying");else if(d.dJ.finished)if(g.I(d.playerState,128))d.logger.debug("cannot finish readying because of error");else if(d.Lt.length)d.logger.debug(function(){return"cannot finish readying because of pending preroll: "+d.Lt});
  5944. else if(d.Mp.started||rG2(d.Mp),d.S8())d.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{d.loader&&(d.GV=dGN(d.loader.timing));d.Jd.finished||(d.Jd.finished=!0);var q=d.N("html5_onesie_live")&&d.loader&&!isNaN(d.loader.z2);!d.videoData.isLivePlayback||d.videoData.lF>0&&!kp(d.videoData)||q||v8(d)||(d.logger.debug("seek to head for live"),d.seekTo(Infinity,{b$:"videoplayer_readying",seekSource:18}),d.isBackground()&&(d.dg=!0));xaY(d.X9);d.logger.debug("finished readying playback");
  5945. d.publish("playbackready");nU("pl_c",d.rz.timerName)||(d.rz.tick("pl_c"),tU("pl_c",void 0,"video_to_ad"));nU("pbr",d.rz.timerName)||(d.rz.tick("pbr"),tU("pbr",void 0,"video_to_ad"))}else d.logger.debug("playback data not loaded")};
  5946. Vo=function(d,q){d.N2&&iaI(d);d.N2=new g.Ij(q*1E3,0x7ffffffffffff);d.N2.namespace="endcr";d.addCueRange(d.N2)};
  5947. iaI=function(d){d.removeCueRange(d.N2);d.N2=null};
  5948. IfD=function(d,q,T,Y,e){var U=d.X9,b=d.videoData;b.U=T;var J=g.Na(d);T=new h5f(b,T,q,J?J.itag:"",Y);d.Pv.experiments.Wv("html5_refactor_sabr_video_format_selection_logging")?(T.videoId=e,d.DR=T):U.qoe&&xC_(U.qoe,T);e=d.f8;e.U=0;e.G=0;d.publish("internalvideoformatchange",b,q==="m")};
  5949. g.Na=function(d){var q=RZ(d);return nY(q)||!d.zA?null:g.QN(d.zA.G.videoInfos,function(T){return q.T(T)})};
  5950. RZ=function(d){if(d.zA){var q=d.f8;var T=d.zA;d=d.qT();var Y=Qi2(q);if(nY(Y)){if(Y=q.e1(T).compose(jiD(q,T)).compose(Apf(q,T)).compose(Bk6(q,T.videoData)).compose(K_2(q,T.videoData,T)).compose(tOg(q,T)).compose(cpN(q,T)),nY(d)||q.N("html5_apply_pbr_cap_for_drm"))Y=Y.compose(EN_(q,T))}else q.N("html5_perf_cap_override_sticky")&&(Y=Y.compose(tOg(q,T))),q.N("html5_ustreamer_cap_override_sticky")&&(Y=Y.compose(EN_(q,T)));Y=Y.compose(cpN(q,T));q=T.videoData.Ja.compose(Y).compose(T.videoData.b_).compose(d)}else q=
  5951. xp;return q};
  5952. VZY=function(d){var q=d.f8;d=d.videoData;var T=Bk6(q,d);q.N("html5_disable_client_autonav_cap_for_onesie")||T.compose(K_2(q,d));return T};
  5953. bf=function(d){if(d.videoData.j&&d.videoData.j.G){var q=RZ(d);d.loader&&K7H(d.loader,q)}};
  5954. mcI=function(d){var q;return!!(d.N("html5_native_audio_track_switching")&&g.F8&&((q=d.videoData.U)==null?0:uW(q)))};
  5955. Si1=function(d){if(!mcI(d))return!1;var q;d=(q=d.mediaElement)==null?void 0:q.audioTracks();return!!(d&&d.length>1)};
  5956. vrj=function(d){var q=lf2(d);if(q)return d.videoData.getAvailableAudioTracks().find(function(T){return T.DQ.getName()===q})};
  5957. lf2=function(d){var q;if(d=(q=d.mediaElement)==null?void 0:q.audioTracks())for(q=0;q<d.length;++q){var T=d[q];if(T.enabled)return T.label}};
  5958. orI=function(d){var q,T=d.videoData.getAvailableAudioTracks(),Y=d.Pv.Fw;Y&&(q=T.find(function(U){return U.getLanguageInfo().id===Y}));
  5959. if(d.Pv.experiments.Wv("enable_audio_description_setting")&&g.Gy(g.KW(),198)){T=g.E(T);for(var e=T.next();!e.done;e=T.next())if(e=e.value,e.S){q=e;break}}q||(d=d.getAudioTrack(),q=d.DQ.isDefault?void 0:d);return q};
  5960. zA2=function(d){for(var q=d.videoData.G,T=g.E(Object.entries({cpn:d.videoData.clientPlaybackNonce,c:d.Pv.G.c,cver:d.Pv.G.cver})),Y=T.next();!Y.done;Y=T.next()){var e=g.E(Y.value);Y=e.next().value;e=e.next().value;for(var U=g.E(Object.values(q.G)),b=U.next();!b.done;b=U.next())yQX(b.value.zG,Y,e);U=void 0;(U=q.B)==null||yQX(U,Y,e)}Y=d.Pv;T=d.videoData;q=new g.LzH(Y);e=GHN({hasSubfragmentedFmp4:T.hasSubfragmentedFmp4,L1:T.L1});q.L=e;q.yv=T.maxReadAheadMediaTimeMs/1E3||q.yv;e=Y.schedule;e.j.W4()===e.policy.j?
  5961. q.lF=10:q.lF=T.minReadAheadMediaTimeMs/1E3||q.lF;q.Y1=T.readAheadGrowthRateMs/1E3||q.Y1;T.Qz&&(q.rA=!0);q.sx=!xx();g.ho(Y)||!xx()?(q.aU=8388608,q.Bv=524288,q.Y6=5,q.RU=1048576,q.dZ=1.5,q.Vv=4587520,ub()&&(q.Vv=786432),q.B*=1.1,q.lr*=1.1,q.V5=!0):Y.U&&(q.B*=1.3,q.lr*=1.3);g.MI&&g.kA("crkey")&&(e=Y.G.cmodel==="CHROMECAST/ANCHOVY",q.aU=20971520,q.Bv=1572864,e&&(q.Vv=812500,q.XF=1E3,q.WV=5,q.RU=2097152));g.Fv&&(q.V5=!0);Y.supportsGaplessAudio()||(q.sZ=!1);vx&&(q.gk=!0);q.vA=Y.N("html5_peak_shave");T.fetchType===
  5962. "onesie"&&Y.N("html5_disable_peak_shave_for_onesie")&&(q.vA=!1);var J;e=(J=T.G)==null?void 0:WI(J);if(kp(T)){q.lS=!0;q.U5||(q.wB=!0);q.ev=!0;q.fp=!0;q.fh=!0;if(T.latencyClass==="ULTRALOW"||T.latencyClass==="LOW"&&!Y.N("html5_disable_low_pipeline"))q.sQ=2,q.pL=4;q.zv=T.defraggedFromSubfragments;if(T.ZY||Y.N("html5_publish_all_cuepoints"))q.xA=!0;g.vr(T)&&(q.fn=!1);q.bV=g.xv(Y)}T.isAd()&&(q.K8=0,q.Kq=0);q.Aq=Y.N("html5_enable_subsegment_readahead_v3")||Y.N("html5_ultra_low_latency_subsegment_readahead")&&
  5963. T.latencyClass==="ULTRALOW";q.j=Y.uF();Se()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(Y.G.cmodel)&&!Y.N("html5_disable_move_pssh_to_moov")&&e&&(q.V5=!1);U=0;Y.N("html5_live_use_alternate_bandwidth_window_sizes")&&(U=Y.schedule.policy.G,T.isLivePlayback&&(U=g.Yv(Y.experiments,T.latencyClass==="ULTRALOW"?"html5_live_ultra_low_latency_bandwidth_window":T.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||U));J=Y.schedule;J.U.T=kp(T)?.5:0;if(!J.policy.U&&
  5964. U&&(J=J.j,U=Math.round(U*J.resolution),U!==J.G)){b=Array(U);var F=Math.min(U,J.j?J.G:J.U),N=J.U-F;N<0&&(N+=J.G);for(var R=0;R<F;++R)b[R]=J.values[(N+R)%J.G];for(;R<U;++R)b[R]=Infinity;J.G=U;J.values=b;J.U=F%U;J.j=F===U;J.eP=!0;J.S=pn_(J)}T.isLivePlayback&&(q.w4=g.Yv(Y.experiments,"html5_min_startup_buffered_media_duration_for_live_secs")||.25,q.qk=!1);T.It()&&(q.qk=!1);Pr(T)&&(q.Aq=!0,T.latencyClass==="LOW"?q.qC=g.Yv(Y.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):T.latencyClass===
  5965. "ULTRALOW"&&(q.qC=g.Yv(Y.experiments,"html5_jumbo_ull_subsegment_readahead_target")),q.qj=!0);T.aN()&&(q.hC=1.3);q.gk=q.gk||T.lq;q.xx=(q.xx||T.xx)&&Y.B;q.zX=T.L;Y.uF()&&(q.vF=!0);T.L&&!e&&(q.A6=!0);T.L&&T.isAd()&&(q.B*=1.6,q.lr*=1.6);NC(T)&&(q.T=T.videoId,q.pS=!0,q.DT=100,T.Kw&&T.Kw.length>0&&(q.E$=T.Kw));q.Pf=T.wU;q.hq=Y8(Y,{},T.j||void 0,nt(T));q.Fw=OB(T)&&(g.KG(Y)||g.jZ(Y));tw(T)&&(q.S=!0,q.VY=Y.N("html5_estimate_live_partial_slice_duration"),q.ST=!0,Y.N("html5_sabr_report_partial_segment_estimated_duration")&&
  5966. (q.Zs=!0),q.G=!0,q.JW=Y.N("html5_sabr_enable_live_clock_offset"),q.Se=Y.N("html5_disable_client_resume_policy_for_sabr"),q.Lh=Y.N("html5_trigger_loader_when_idle_network"),q.eC=Y.N("html5_sabr_parse_live_metadata_playback_boundaries"),q.H1=Y.N("html5_consume_onesie_next_request_policy_for_sabr"),q.OW=Y.N("html5_sabr_report_next_ad_break_time"),q.aZ=Y.N("html5_log_high_res_buffer_timeline")&&Y.uF(),q.BJ=Y.N("html5_remove_stuck_slices_beyond_max_buffer_limits"),q.M0=Y.N("html5_gapless_sabr_btl_last_slice")&&
  5967. Zu(T),q.iA=Y.N("html5_reset_last_appended_slice_on_seek")&&Zu(T),kp(T)?(q.WJ=!0,q.Nf=Y.N("html5_disable_variability_tracker_for_live"),q.AF=!0,Y.N("html5_simplified_backup_timeout_sabr_live")&&(q.zr=!0,q.XF=q.hs)):q.zq=Y.N("html5_probe_request_on_sabr_request_progress"),q.Fc=Y.N("html5_serve_start_seconds_seek_for_post_live_sabr"),q.dA=Y.N("html5_flush_index_on_updated_timestamp_offset"),q.K=tw(T),q.Pa=Y.N("html5_ignore_partial_segment_from_live_readahead"),Y.N("html5_include_partial_segment_for_jumbo_ll")&&
  5968. Pr(T)&&(q.Pa=!1),q.Au=Y.N("html5_use_non_active_broadcast_for_post_live"),q.z2=Y.N("html5_use_centralized_player_time"),q.q5=Y.N("html5_log_centralized_player_time"),q.Ox=Y.N("html5_consume_onesie_sabr_seek"),q.UD=Y.N("html5_enable_sabr_seek_loader_refactor"),q.xU=Y.N("html5_update_segment_start_time_from_media_header"),T.enableServerStitchedDai&&(q.U=!0,q.GD=Y.N("html5_reset_server_stitch_state_for_non_sabr_seek"),q.gx=Y.N("html5_remove_ssdai_append_pause")&&!T.y5(),q.R6=Y.N("html5_ssdai_log_ssevt_in_loader")||
  5969. Y.N("html5_ssdai_log_ssevt_in_loader_200ms")||Y.N("html5_ssdai_log_ssevt_in_loader_timers")||Y.N("html5_ssdai_log_ssevt_in_loader_cuerange"),Y.N("html5_ssdai_log_ssevt_in_loader_timers")?q.kx=1:Y.N("html5_ssdai_log_ssevt_in_loader_200ms")?q.kx=3:Y.N("html5_ssdai_log_ssevt_in_loader_cuerange")&&(q.kx=0)),q.r3=Y.uF()||T.y5());q.wk=g.d7_(T);fY(Y.S,zG.BITRATE)&&(q.Vv=NaN);if(J=g.Yv(Y.experiments,"html5_request_size_max_kb"))q.RU=J*1024;Y.S.j?q.B3="; "+zG.EXPERIMENTAL.name+"=allowed":Y.N("html5_enable_cobalt_tunnel_mode")&&
  5970. g.WL()&&(J=zG.TUNNELMODE,q.B3="; "+J.name+"="+J.valid);T=T.serverPlaybackStartConfig;(T==null?0:T.enable)&&(T==null?0:T.playbackStartPolicy)&&(q.Dc=!0,YW(q,T.playbackStartPolicy,2));T=orI(d);d.lY.removeAll();a:{J=d.h1.z0;if(Y=d.videoData.videoId)if(e=J.G.get(Y)){J.G.remove(Y);J=e;break a}J=void 0}d.loader=new g.NZ(d,d.Pv.schedule,q,d.videoData.G,d.videoData.j,RZ(d),T,d.videoData.enableServerStitchedDai,J,d.videoData.lr);q=d.videoData.N("html5_disable_preload_for_ssdai_with_preroll")&&d.videoData.isLivePlayback&&
  5971. d.k6()?!0:d.w9&&g.ho(d.Pv)&&d.videoData.isLivePlayback;d.loader.initialize(d.getCurrentTime(),RZ(d),q);d.videoData.probeUrl&&(d.loader.Bv=d.videoData.probeUrl);if(d.Lt.length||d.w9)d.videoData.cotn||xs(d,!1);UcY(d.sF,d.loader);d.Rd&&(TRN(d.loader,new g.Ri(d.Rd)),d.oU("sdai",{sdl:1}));g.y2(d.videoData)&&(d=d.loader,d.policy.TB=d.policy.In)};
  5972. gF=function(d){d.loader&&(d.loader.dispose(),d.loader=null,UcY(d.sF,null));d.Tz()?Vzj(d):d.B$()};
  5973. Vzj=function(d){if(d.ED)if(d.logger.debug("release media source"),d.dD(),d.ED.S)try{d.Pv.uF()&&d.oU("rms",{l:"vprms",sr:d.Tz(),rs:Rp(d.ED)});d.ED.clear();var q;(q=d.mediaElement)!=null&&(q.U=d.ED);d.ED=null}catch(T){q=new g.CW("Error while clearing Media Source in VideoPlayer: "+T.name+", "+T.message),q=hQ(q),d.handleError(q),d.B$()}else d.B$()};
  5974. dlg=function(d,q){q=q===void 0?!1:q;if(d.ED)return d.ED.j;d.logger.debug("update media source");a:{q=q===void 0?!1:q;try{g.WL()&&d.videoData.P5()&&Iy6(d.mediaElement);var T=d.mediaElement.Eg(d.Ko(),d.A_())}catch(e){if($Zn(d.Ha,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",e);d.o6("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}d.uY(T,!1,!1,q)}var Y;return((Y=d.Eg())==null?void 0:Y.j)||null};
  5975. qaD=function(d,q){q=q===void 0?!1:q;if(d.loader){d.videoData.enableServerStitchedDai&&$yj(d.loader);var T=d.getCurrentTime()-d.mz();d.loader.seek(T,{UI:q}).C8(function(){})}else zA2(d)};
  5976. YaD=function(d,q,T,Y){T=T===void 0?!1:T;Y=Y===void 0?!1:Y;if(d.ED&&(!q||d.ED===q)){d.logger.debug("media source opened");var e=d.getDuration();!e&&kp(d.videoData)&&(e=25200);if(d.ED.isView){var U=e;d.logger.debug(function(){return"Set media source duration to "+U+", video duration "+e});
  5977. U>d.ED.getDuration()&&Tr6(d,U)}else Tr6(d,e);r71(d.loader,d.ED,T,Y);d.publish("mediasourceattached")}};
  5978. Tr6=function(d,q){if(d.ED){d.ED.lV(q);var T;(T=d.loader)!=null&&T.policy.z2&&(T.X=q)}};
  5979. L7Y=function(d,q){IfD(d,q.reason,q.G.info,q.token,q.videoId)};
  5980. $s=function(d,q){d.publish("internalvideodatachange",q===void 0?"dataupdated":q,d.videoData)};
  5981. e$_=function(d){for(var q=g.E("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),T=q.next();!T.done;T=q.next())d.nY.W(d.mediaElement,T.value,d.Rx,d);d.Pv.IF&&d.mediaElement.RK()&&(d.nY.W(d.mediaElement,"webkitplaybacktargetavailabilitychanged",d.Hfr,d),d.nY.W(d.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",d.uwg,d))};
  5982. bqD=function(d){g.Fq(d.iH);UlQ(d)||(d.iH=g.$A(function(){return UlQ(d)},100))};
  5983. UlQ=function(d){var q=d.mediaElement;q&&d.hL&&!d.videoData.UD&&!nU("vfp",d.rz.timerName)&&q.Tr()>=2&&!q.isEnded()&&qF(q.g1())&&d.rz.tick("vfp");return(q=d.mediaElement)&&!d.videoData.UD&&q.getDuration()>0&&(q.isPaused()&&q.Tr()>=2&&qF(q.g1())&&(nU("pbp",d.rz.timerName)||d.rz.tick("pbp"),!d.videoData.PR||d.FI||q.isSeeking()||(d.FI=!0,d.publish("onPlaybackPauseAtStart"))),q=q.getCurrentTime(),CE(d.uL,q))?(d.eR(),!0):!1};
  5984. Jg6=function(d){d.X9.S$();if(Lt(d.videoData)&&Date.now()>d.eZ+6283){if(!(!d.isAtLiveHead()||d.videoData.G&&zE(d.videoData.G))){var q=d.X9;if(q.qoe){q=q.qoe;var T=q.provider.G2.vS(),Y=g.Jp(q.provider);XUj(q,Y,T);T=T.j;isNaN(T)||g.UV(q,Y,"e2el",[T.toFixed(3)])}}d.N("html5_alc_live_log_rawlat")?(q=d.videoData,q=g.xv(q.C())?!0:g.Qv(q.C())?q.drmProduct==="6":!1):q=g.xv(d.Pv);Y=d.N("html5_always_log_rawlat");(q||Y)&&d.oU("rawlat",{l:Ys(d.im,"rawlivelatency").toFixed(3)});d.eZ=Date.now()}d.videoData.U&&
  5985. uW(d.videoData.U)&&(q=d.Av())&&q.videoHeight!==d.zY&&(d.zY=q.videoHeight,IfD(d,"a",X9D(d,d.videoData.AF)))};
  5986. X9D=function(d,q){if(q.G.video.quality==="auto"&&uW(q.getInfo())&&d.videoData.qC)for(var T=g.E(d.videoData.qC),Y=T.next();!Y.done;Y=T.next())if(Y=Y.value,Y.getHeight()===d.zY&&Y.G.video.quality!=="auto")return Y.getInfo();return q.getInfo()};
  5987. kV1=function(d){if(!Lt(d.videoData))return NaN;var q=0;d.loader&&d.videoData.G&&(q=kp(d.videoData)?d.loader.S9.W4()||0:d.videoData.G.z2);return(0,g.cj)()/1E3-d.fH()-q};
  5988. $lf=function(d){d.mediaElement&&d.mediaElement.pA()&&(d.xg=(0,g.cj)());d.Pv.hs?g.s3(function(){sW7(d)},0):sW7(d)};
  5989. sW7=function(d){var q;if((q=d.ED)==null||!q.Ao()){if(d.mediaElement)try{d.jL=d.mediaElement.playVideo()}catch(Y){Fa(d,"err."+Y)}if(d.jL){var T=d.jL;T.then(void 0,function(Y){d.logger.debug(function(){return"playMediaElement failed: "+Y});
  5990. if(!g.I(d.playerState,4)&&!g.I(d.playerState,256)&&d.jL===T)if(Y&&Y.name==="AbortError"&&Y.message&&Y.message.includes("load"))d.logger.debug(function(){return"ignore play media element failure: "+Y.message});
  5991. else{var e="promise";Y&&Y.name&&(e+=";m."+Y.name);Fa(d,e);d.Lv=!0;d.videoData.qU=!0}})}}};
  5992. Fa=function(d,q){g.I(d.playerState,128)||(d.Vp(Z2(d.playerState,1028,9)),d.oU("dompaused",{r:q}),d.publish("onAutoplayBlocked"))};
  5993. Xa=function(d,q){q=q===void 0?!1:q;if(!d.mediaElement||!d.videoData.j)return!1;var T=q;T=T===void 0?!1:T;var Y=null;var e;if((e=d.videoData.j)==null?0:e.G){Y=dlg(d,T);var U;(U=d.loader)==null||U.resume()}else gF(d),d.videoData.AF&&(Y=d.videoData.AF.Ld());e=d.mediaElement.l_();T=!1;e&&e.equals(Y)||(gBI(d,Y),T=!0);g.I(d.playerState,2)||(Y=d.sF,q=q===void 0?!1:q,Y.S||!(Y.j>0)||Y.mediaElement&&Y.mediaElement.getCurrentTime()>0||(q={b$:"seektimeline_resumeTime",UI:q},Y.videoData.UD||(q.seekSource=15),
  5994. Y.seekTo(Y.j,q)));a:{q=T;if(tw(d.videoData)){if(!d.videoData.It())break a}else if(!g.ft(d.videoData))break a;if(d.mediaElement)if((Y=d.videoData.S)&&d.mediaElement.RK()){e=d.mediaElement.tA();if(d.Bl)if(e!==d.Bl.element)yk(d);else if(q&&Y.flavor==="fairplay"&&!CZ())yk(d);else break a;if(d.N("html5_report_error_for_unsupported_tvos_widevine")&&CZ()&&Y.flavor==="widevine")d.o6("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{d.Bl=new myn(e,d.videoData,d.Pv);d.Bl.subscribe("licenseerror",
  5995. d.LJ,d);d.Bl.subscribe("qualitychange",d.tvF,d);d.Bl.subscribe("heartbeatparams",d.i6,d);d.Bl.subscribe("keystatuseschange",d.mL,d);d.Bl.subscribe("ctmp",d.oU,d);q=g.E(d.lY.keys);for(Y=q.next();!Y.done;Y=q.next())Y=d.lY.get(Y.value),d.Bl.Wq(Y);d.N("html5_eme_loader_sync")||d.lY.removeAll()}}else d.o6("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return T};
  5996. gBI=function(d,q){d.rz.tick("vta");tU("vta",void 0,"video_to_ad");d.getCurrentTime()>0&&sNg(d.sF,d.getCurrentTime());d.mediaElement.activate(q);d.ED&&SX(4);!d.videoData.UD&&d.playerState.isOrWillBePlaying()&&d.I4.start();if(mcI(d)){var T;if(q=(T=d.mediaElement)==null?void 0:T.audioTracks())q.onchange=function(){d.publish("internalaudioformatchange",d.videoData,!0)}}};
  5997. yk=function(d){d.Bl&&(d.Bl.dispose(),d.Bl=null)};
  5998. FG_=function(d){var q=q===void 0?!1:q;d.logger.debug("reattachVideoSource");d.mediaElement&&(d.ED?(yk(d),d.B$(),dlg(d,q)):(d.videoData.AF&&d.videoData.AF.vT(),d.mediaElement.stopVideo()),d.playVideo())};
  5999. Nr1=function(d,q){d.Pv.N("html5_log_rebuffer_reason")&&(q={r:q,lact:QF()},d.mediaElement&&(q.bh=QQ(d.mediaElement)),d.oU("bufreason",q))};
  6000. R$Q=function(d,q){if(d.Pv.uF()&&d.mediaElement){var T=d.mediaElement.BF();T.omt=(d.mediaElement.getCurrentTime()+d.mz()).toFixed(3);T.ps=d.playerState.state.toString(16);T.rt=(g.Jp(d.X9.provider)*1E3).toFixed();T.e=q;d.T8[d.DW++%5]=T}try{if(q==="timeupdate"||q==="progress")return}catch(Y){}d.logger.debug(function(){return"video element event "+q})};
  6001. xln=function(d){if(d.Pv.uF()){d.T8.sort(function(Y,e){return+Y.rt-+e.rt});
  6002. for(var q=g.E(d.T8),T=q.next();!T.done;T=q.next())T=T.value,d.oU("vpe",Object.assign({t:T.rt},T));d.T8=[];d.DW=0}};
  6003. yg6=function(d){if(g.kA("cobalt")&&g.kA("nintendo switch")){var q=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;d.oU("nxdock",{d:q})}};
  6004. xs=function(d,q){var T;(T=d.loader)==null||A7_(T,q)};
  6005. uif=function(d){HU(d.videoData,"html5_set_debugging_opt_in")&&(d=g.KW(),g.Gy(0,183)||(kO(183,!0),d.save()))};
  6006. gWN=function(d,q){d.h1.MN()||(d.oU("sgap",{f:q}),d.h1.clearQueue(!1,q==="pe"))};
  6007. v8=function(d){return d.N("html5_disable_video_player_initiated_seeks")&&tw(d.videoData)};
  6008. h$j=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);A7(this.api,"isLifaAdPlaying",function(){return q.api.isLifaAdPlaying()});
  6009. this.events.W(d,"serverstitchedvideochange",function(){var T;(T=q.api.getVideoData())!=null&&T.y5()&&(q.api.isLifaAdPlaying()?(q.playbackRate=q.api.getPlaybackRate(),q.api.setPlaybackRate(1)):q.api.setPlaybackRate(q.playbackRate))});
  6010. this.playbackRate=1};
  6011. hG=function(d){jq.call(this,"\u5faa\u73af\u64ad\u653e",g.rR.yd);this.J=d;var q=d.N("delhi_modern_web_player_icons")?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M17.29 1.29C17.11 1.46 17.01 1.70 17.00 1.94C16.98 2.19 17.06 2.43 17.22 2.63L17.29 2.70L18.58 4H7C5.67 4 4.40 4.52 3.46 5.46C2.52 6.40 2 7.67 2 9V13C2 13.26 2.10 13.51 2.29 13.70C2.48 13.89 2.73 14 3 14C3.26 14 3.51 13.89 3.70 13.70C3.89 13.51 4 13.26 4 13V9C4 8.20 4.31 7.44 4.87 6.87C5.44 6.31 6.20 6 7 6H18.58L17.29 7.29C17.11 7.48 17.01 7.73 17.01 7.99C17.01 8.25 17.11 8.50 17.30 8.69C17.49 8.88 17.74 8.98 18.00 8.98C18.26 8.98 18.51 8.88 18.70 8.70L22.41 5L18.70 1.29L18.63 1.22C18.43 1.06 18.19 .98 17.94 1.00C17.70 1.01 17.46 1.11 17.29 1.29ZM21 10C20.73 10 20.48 10.10 20.29 10.29C20.10 10.48 20 10.73 20 11V15C20 15.79 19.68 16.55 19.12 17.12C18.55 17.68 17.79 18 17 18H5.41L6.70 16.70C6.80 16.61 6.87 16.50 6.93 16.38C6.98 16.26 7.01 16.12 7.01 15.99C7.01 15.86 6.98 15.73 6.93 15.60C6.88 15.48 6.81 15.37 6.71 15.28C6.62 15.18 6.51 15.11 6.39 15.06C6.26 15.01 6.13 14.98 6.00 14.98C5.87 14.98 5.73 15.01 5.61 15.06C5.49 15.12 5.38 15.19 5.29 15.29L1.58 19L5.29 22.70L5.36 22.77C5.56 22.92 5.80 23.00 6.04 22.99C6.29 22.98 6.52 22.87 6.70 22.70C6.87 22.52 6.98 22.29 6.99 22.04C7.00 21.80 6.92 21.56 6.77 21.36L6.70 21.29L5.41 20H17C18.32 20 19.59 19.47 20.53 18.53C21.47 17.59 22 16.32 22 15V11C22 10.73 21.89 10.48 21.70 10.29C21.51 10.10 21.26 10 21 10Z",
  6012. fill:"white"}}]}:L2n();this.setIcon(q);this.subscribe("select",this.U,this);d.createClientVe(this.element,this,28661);this.W(d,"settingsMenuVisibilityChanged",this.G);this.listen("click",this.logClick);this.W(d,"onLoopChange",this.onLoopChange);az(this,d.getLoopVideo());d.dB().rk(this)};
  6013. Hq1=function(d){xT.call(this,d);var q=this;d.addEventListener("settingsMenuInitialized",function(){q.menuItem||(q.menuItem=new hG(q.api),g.C(q,q.menuItem))});
  6014. d.addEventListener("videodatachange",function(T,Y){T=q.api.getPresentingPlayerType()===2;var e;(e=q.menuItem)==null||e.OM(!Y.isLivePlayback&&!T)})};
  6015. QWn=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);A7(this.api,"seekToChapterWithAnimation",function(T){q.seekToChapterWithAnimation(T)});
  6016. A7(this.api,"seekToTimeWithAnimation",function(T,Y){q.seekToTimeWithAnimation(T,Y)});
  6017. A7(this.api,"renderChapterSeekingAnimation",function(T,Y,e){q.api.renderChapterSeekingAnimation(T,Y,e)});
  6018. A7(this.api,"setMacroMarkers",function(T){q.setMacroMarkers(d,T)});
  6019. A7(this.api,"changeMarkerVisibility",function(T,Y,e){q.changeMarkerVisibility(T,Y,e)});
  6020. A7(this.api,"isSameMarkerTypeVisible",function(T){return q.isSameMarkerTypeVisible(T)})};
  6021. Mgn=function(d,q,T){var Y=d.api.getCurrentTime()*1E3<q?1:-1;d.api.renderChapterSeekingAnimation(Y,T);d.api.seekTo(q/1E3,void 0,void 0,void 0,3)};
  6022. cg1=function(d,q){var T,Y;return(T=VA(d,"macroMarkersListEntity",q))==null?void 0:(Y=T.markersList)==null?void 0:Y.markerType};
  6023. EBQ=function(d,q){var T=g.Aw.getState().entities;d=cg1(T,d);q=g.E(q.Fw);for(var Y=q.next();!Y.done;Y=q.next())if(d===cg1(T,Y.value))return!0;return!1};
  6024. jWj=function(d){xT.call(this,d);var q=this;this.G=null;this.events=new g.aI(d);g.C(this,this.events);this.events.W(d,"applicationvideodatachange",function(){q.ZA()})};
  6025. H$=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);this.events.W(d,"videodatachange",function(){q.updateMetadata()});
  6026. this.events.W(d,"presentingplayerstatechange",function(){aIg(q)});
  6027. this.events.W(d,"SEEK_COMPLETE",function(){AgQ(q)})};
  6028. Qk=function(d,q){try{navigator.mediaSession.setActionHandler(d,q)}catch(T){}};
  6029. p9_=function(d){Qk("play",function(){d.api.playVideo()});
  6030. Qk("pause",function(){d.api.pauseVideo()});
  6031. Qk("seekbackward",function(){d.api.seekBy(-5*d.api.getPlaybackRate())});
  6032. Qk("seekforward",function(){d.api.seekBy(5*d.api.getPlaybackRate())});
  6033. Qk("seekto",function(q){q=q.seekTime;q!=null&&d.api.seekTo(q)})};
  6034. Zqj=function(d){var q,T,Y,e;return(q=d.api.getVideoData().getWatchNextResponse())==null?void 0:(T=q.playerOverlays)==null?void 0:(Y=T.playerOverlayRenderer)==null?void 0:(e=Y.browserMediaSession)==null?void 0:e.browserMediaSessionRenderer};
  6035. Oq_=function(d){var q=[];if(!d||!d.thumbnails)return q;d=g.E(d.thumbnails);for(var T=d.next();!T.done;T=d.next())T=T.value,T.url&&(!T.width||T.width<=0||!T.height||T.height<=0||g.fu(T.url)&&q.push({src:T.url||"",sizes:T.width+"x"+T.height,type:"image/jpeg"}));return q};
  6036. aIg=function(d){d=d.api.getPlayerStateObject();d=d.isCued()||d.isError()?"none":d.isOrWillBePlaying()?"playing":"paused";navigator.mediaSession.playbackState=d};
  6037. AgQ=function(d){if(navigator.mediaSession.setPositionState)if(d.api.N("web_player_media_session_infinity")&&d.api.getVideoData().isLivePlayback)try{navigator.mediaSession.setPositionState({duration:Infinity})}catch(Y){}else{var q=d.api.getProgressState().seekableEnd,T=Math.min(d.api.getCurrentTime(),q);q&&Number.isFinite(T)&&navigator.mediaSession.setPositionState({duration:q,playbackRate:d.api.getPlaybackRate(),position:T})}};
  6038. Ma=function(d){xT.call(this,d);var q=this;this.U=new Map;this.T=this.G=void 0;this.compositeVideoState=null;this.j=void 0;this.events=new g.aI(d);g.C(this,this.events);this.events.W(d,"modulecreated",function(T){var Y;a:{var e,U,b,J=(e=q.api.getVideoData())==null?void 0:(U=e.getPlayerResponse())==null?void 0:(b=U.overlay)==null?void 0:b.playerControlsOverlayRenderer;if(J&&(e=g.D(J.compositeVideoOverlay,nBQ),e==null?0:(Y=e.sources)==null?0:Y.length))for(Y=g.E(e==null?void 0:e.sources),e=Y.next();!e.done;e=
  6039. Y.next())if(e=e.value,e.isActive){Y=e;break a}Y=void 0}T==="captions"&&(Y==null?void 0:Y.topLeftCornerX)!==void 0&&(Y==null?void 0:Y.topLeftCornerY)!==void 0&&(Y==null?void 0:Y.width)!==void 0&&(Y==null?void 0:Y.height)!==void 0&&q.api.SO({top:Y.topLeftCornerY,right:1-Y.topLeftCornerX-Y.width,bottom:1-Y.topLeftCornerY-Y.height,left:Y.topLeftCornerX})});
  6040. this.events.W(d,"videodatachange",function(T){var Y=q.api.getVideoData();q.G=void 0;q.U.clear();q.api.hm("compositeembargo",1);var e=Y==null?void 0:Y.fd.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(e==null?0:e.length)?rgD(q,e.filter(function(U){return tg1(q,U)})):(Y==null?0:Y.cueRanges)&&rgD(q,Y.cueRanges.filter(function(U){return tg1(q,U)}));
  6041. T==="dataupdated"&&(Y==null?void 0:Y.compositeLiveStatusToken)!==q.T&&(q.T=Y==null?void 0:Y.compositeLiveStatusToken,q.api.kG())});
  6042. this.events.W(d,g.Sh("compositeembargo"),function(T){var Y;if(((Y=q.G)==null?void 0:Y.id)!==T.id&&(q.api.WR(!0),q.U.has(T.id))){var e=q.U.get(T.id);Y=q.api.getVideoData();e=g.E(e);for(var U=e.next();!U.done;U=e.next()){var b=void 0;U=(b=U.value.compositeEmbargo)==null?void 0:b.embargoStatusToken;Y.VY!==U&&(Y.VY=U,q.api.kG());Br1(q,T)}}});
  6043. this.events.W(d,g.lG("compositeembargo"),function(T){var Y;if(((Y=q.G)==null?void 0:Y.id)===T.id&&(q.api.WR(!1),q.U.has(T.id))){if(T=q.api.getVideoData())T.VY=void 0;q.api.kG();Br1(q)}});
  6044. this.events.W(d,"heartbeatRequest",function(T){q.compositeVideoState!==null&&(T.playbackState||(T.playbackState={}),T.playbackState.compositeVideoState=q.compositeVideoState)});
  6045. this.events.W(d,"internalaudioformatchange",function(T,Y){var e=q.api.getVideoData(void 0,!0);e==null||e.oU("atrkchg",{id:T,m:Y});if(e&&FG(e))for(Y=q.api.getAvailableAudioTracks(),Y=g.E(Y),e=Y.next();!e.done;e=Y.next())if(e.value.getLanguageInfo().getId()===T){q.api.C().Fw=T;break}});
  6046. this.events.W(d,"onPlaybackAudioChange",function(){q.api.kG()});
  6047. A7(d,"setCompositeParam",function(T){q.compositeVideoState=T});
  6048. this.api.N("web_watch_enable_multiview_manager")&&A7(d,"setCompositeVideoOverlayRendererComponent",function(T){q.setCompositeVideoOverlayRendererComponent(T)})};
  6049. Br1=function(d,q){var T;((T=d.G)==null?void 0:T.id)!==(q==null?void 0:q.id)&&(d.G&&(d.U.delete(d.G.id),d.api.cR([d.G],1)),d.G=q)};
  6050. rgD=function(d,q){q=g.E(q);for(var T=q.next();!T.done;T=q.next()){var Y=T.value,e=void 0;T=Number((e=Y.playbackRelativePosition)==null?void 0:e.utcTimeMs)/1E3;var U=void 0;e=T+Number((U=Y.duration)==null?void 0:U.seconds);U="composite_embargo_"+T;Y.onEnter&&(Y=Y.onEnter.filter(d.S),Y.length&&(d.U.set(U,Y),d.api.addUtcCueRange(U,T,e,"compositeembargo",!1)))}};
  6051. tg1=function(d,q){var T;return(T=q.onEnter)==null?void 0:T.some(d.S)};
  6052. KGN=function(d){xT.call(this,d);A7(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));A7(this.api,"updateDownloadState",this.updateDownloadState.bind(this));A7(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));A7(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));A7(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));A7(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));A7(this.api,"setUpPositionSyncInterval",
  6053. this.setUpPositionSyncInterval.bind(this))};
  6054. c$=function(d){xT.call(this,d);var q=this;A7(d,"getAvailableQualityData",function(){return q.getAvailableQualityData()});
  6055. A7(d,"getAvailableQualityDataAndMessaging",function(){return q.getAvailableQualityDataAndMessaging()})};
  6056. GZ_=function(d,q,T){var Y=[],e=q?156595:151874;d=g.E(d);for(var U=d.next();!U.done;U=d.next()){var b=U.value;U=b.video;b={formatId:b.id,qualityLabel:U.qualityLabel,quality:U.quality,isPlayable:q};if(U=T.get(U.qualityLabel))b.paygatedQualityDetails={paygatedIndicatorText:U.paygatedIndicatorText,endpoint:U.endpoint,veType:e,trackingParams:U.trackingParams};Y.push(b)}return Y};
  6057. LGX=function(d){for(var q=0,T=0;T<d.length;T++)if(d[T].paygatedQualityDetails){var Y=d[T];d.splice(T,1);d.splice(q,0,Y);q++}};
  6058. kZf=function(d){var q=new Set,T=new Map,Y={};d=g.E(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var U=e.quality,b=e.isPlayable,J=e.qualityLabel;J&&U&&(b&&T.has(U)&&T.get(U)!==J?q.add(U):b&&T.set(U,J),Y[J]||(Y[J]=e))}T=[];Y=g.E(Object.values(Y));for(d=Y.next();!d.done;d=Y.next())e=d.value,(d=e.quality)&&!q.has(d)&&(e.formatId=void 0),T.push(e);return T};
  6059. E8=function(d){xT.call(this,d);var q=this;this.j=1;this.rz=null;this.fC={MPD:function(){return q.j}};
  6060. this.events=new g.aI(d);g.C(this,this.events);this.events.W(d,"d6de4videobindingchange",function(T){q.d5(T)});
  6061. this.events.W(d,"csiinitialized",function(){Pg_(q)})};
  6062. Pg_=function(d){if(WGY()){d.rz=d.api.GN();d.G=new yQ;d.j=2;var q=g.Yv(d.api.C().experiments,"html5_d6de4_defer_timeout_ms");d.rz.w1("pt_pish");q?g.s3(function(){CgN(d)},q):d.api.N("html5_enable_d6de4_idle_priority_job")&&window.requestIdleCallback?window.requestIdleCallback(function(){CgN(d)}):CgN(d)}};
  6063. CgN=function(d){if(WGY()){d.rz=d.api.GN();var q=g.Yv(d.api.C().experiments,"html5_d6de4_cloud_project_number");d.rz.w1("pt_pis");try{window.android.webview.getExperimentalMediaIntegrityTokenProvider({cloudProjectNumber:q}).then(function(Y){d.U=Y;var e;(e=d.G)==null||e.resolve();d.rz.w1("pt_pif")}).catch(function(Y){jR(Y,"player_start");
  6064. d.rz.w1("pt_pie");var e;(e=d.G)==null||e.reject(Y)})}catch(Y){jR(Y,"player_start_catch");
  6065. d.api.oU("pfes",{});var T;(T=d.G)==null||T.reject(Y)}}};
  6066. uyH=function(d,q){if(d.U&&!d.N("html5_disable_d6de4_mint_debug")){var T=q.videoId;d.j=3;d.rz.w1("pt_ms");try{d.U.requestToken(T).then(function(Y){d.rz.w1("pt_mf");if(Y=Bx(Y))q.BD={SSw:Y}}).catch(function(Y){d.rz.w1("pt_me");
  6067. jR(Y,"player_generate");d.handleError(Y,q)})}catch(Y){jR(Y,"player_generate_catch"),d.handleError(Y,q)}}};
  6068. DlD=function(d,q){d.api.N("html5_enable_d6de4_cold_start_and_error")&&(q.BD={coldStartInfo:{clientState:d.j}})};
  6069. jR=function(d,q){d.message&&g.OL(Error(q+"_"+d.message))};
  6070. WGY=function(){return window.android&&window.android.webview&&window.android.webview.getExperimentalMediaIntegrityTokenProvider};
  6071. aZ=function(d){g.f.call(this,{Y:"button",hF:["ytp-pip-button","ytp-button"],Z:{title:d.N("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","data-priority":"8","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},V:[tXD()]});var q=this;this.api=d;this.listen("click",this.onClick);var T=this.api.Jp(),Y=T.subscribe("visibilitystatechange",function(){q.S5(T.Kx())});
  6072. this.addOnDisposeCallback(function(){T.Br(Y)});
  6073. D$(d,this.element,this);this.S5(T.Kx())};
  6074. AG=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);this.events.W(d,"standardControlsInitialized",function(){q.createButton()});
  6075. g.cT(this.api.C())&&(this.N("web_watch_pip")||this.N("web_shorts_pip"))&&A7(this.api,"setDocumentPictureInPicture",function(T){q.setDocumentPictureInPicture(T)})};
  6076. w9f=function(d){var q=d.api.getVideoData();d.button.OM(q.yz)};
  6077. fIN=function(d){xT.call(this,d);var q=this;this.loaded=!1;this.B=0;this.G=!1;this.L={};this.U=[];this.T=0;this.X=!1;this.events=new g.aI(d);g.C(this,this.events);this.j=new g.aI(d);g.C(this,this.j);this.events.W(d,"modulesCreated",function(){q.GB()&&q.load()});
  6078. this.events.W(d,"modulesDestroyed",function(T){var Y=q.api.getPresentingPlayerType();switch(T){case 2:case 3:T=Y!==1&&!(Y===5||Y===6||Y===7);break;case 4:T=!q.G;break;default:T=!0}T&&q.unload()})};
  6079. z$j=function(d,q){g.Qv(d.api.C())&&(q?d.S.show():d.S.hide())};
  6080. iqN=function(d){var q=d.api.getVideoData().interstitials,T=[];q=g.E(q);for(var Y=q.next();!Y.done;Y=q.next()){Y=Y.value;var e=T,U=e.push,b=d,J=Y.playerVars,F=Y.f3,N=Y.time,R="yto-"+b.B++;N=new g.Ij(N,N,{id:R,priority:7,namespace:"yto"});b.L[R]={playerVars:J,playerType:F};U.call(e,N);e=d.api.getVideoData(1);e=Object.assign({oauth_token:e.oauthToken},Y.playerVars);d.api.preloadVideoByPlayerVars(e,Y.f3)}d.api.ES(T,1)};
  6081. II7=function(d){var q=d.U[d.T];if(q){var T=d.L[q];q=T.playerVars;T=T.playerType;d.G=!0;d.T++;var Y=d.api.getVideoData(1);q=Object.assign({oauth_token:Y.oauthToken},q);d.api.loadVideoByPlayerVars(q,!0,T,!0);d.G=!1}};
  6082. mlH=function(d){d.T<d.U.length?II7(d):(g.I(d.api.getPlayerStateObject(1),2)&&(d.X=!0),d.G=!0,d.T=0,d.U.length=0,d.api.xI(),d.G=!1)};
  6083. San=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);A7(this.api,"musicDisableUi",function(){g.d9(q.api.getRootNode(),"ytp-player-in-bar-disable-ui")});
  6084. A7(this.api,"musicEnableUi",function(){g.TR(q.api.getRootNode(),"ytp-player-in-bar-disable-ui")})};
  6085. O8=function(d,q,T){q=q===void 0?!0:q;T=T===void 0?!1:T;g.f.call(this,{Y:"div",D:"ytp-suggested-action"});var Y=this;this.J=d;this.lF=this.UD=this.yv=this.lr=this.T=this.B=this.expanded=this.enabled=this.AF=!1;this.kx=new g.f9(function(){Y.badge.element.style.width=""},200,this);
  6086. this.RU=new g.f9(function(){pc(Y);Zt(Y)},200,this);
  6087. this.qk=this.J.N("delhi_modern_web_player")?40:34;this.dismissButton=new g.f({Y:"button",hF:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.C(this,this.dismissButton);this.j=new g.f({Y:"div",D:"ytp-suggested-action-badge-expanded-content-container",V:[{Y:"label",D:"ytp-suggested-action-badge-title",j5:"{{badgeLabel}}"},this.dismissButton]});g.C(this,this.j);this.dO=new g.f({Y:"div",D:"ytp-suggested-action-badge-icon-container",V:[q?{Y:"div",D:"ytp-suggested-action-badge-icon"}:
  6088. ""]});g.C(this,this.dO);this.badge=new g.f({Y:T?"div":"button",hF:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],V:[this.dO,this.j]});g.C(this,this.badge);this.badge.IU(this.element);this.K=new g.oh(this.badge,250,!1,100,function(){Y.J.N("web_player_overlay_positioned_layout")&&Y.hide()});
  6089. g.C(this,this.K);d.N("web_player_overlay_positioned_layout")&&this.hide();this.Bv=new g.oh(this.j,250,!1,100);g.C(this,this.Bv);this.wO=new g.uc(this.o9v,null,this);g.C(this,this.wO);this.Fw=new g.uc(this.iU,null,this);g.C(this,this.Fw);g.C(this,this.kx);g.C(this,this.RU);this.J.createServerVe(this.badge.element,this.badge,!0);this.J.createServerVe(this.dismissButton.element,this.dismissButton,!0);this.W(this.J,"onHideControls",function(){Y.qH(!1)});
  6090. this.W(this.J,"onShowControls",function(){Y.qH(!0)});
  6091. this.W(this.badge.element,"click",this.Lm);this.W(this.dismissButton.element,"click",this.aC);this.W(this.J,"pageTransition",this.aM);this.W(this.J,"appresize",this.kq);this.W(this.J,"fullscreentoggled",this.oBO);this.W(this.J,"cardstatechange",this.NOx);this.W(this.J,"annotationvisibility",this.WfZ,this);this.W(this.J,"offlineslatestatechange",this.B1x,this)};
  6092. pc=function(d){g.ep(d.badge.element,"ytp-suggested-action-badge-with-controls",d.yv||!d.B)};
  6093. Zt=function(d,q){var T=d.To();d.expanded!==T&&(d.expanded=T,q===void 0||q?(d.wO.stop(),d.Fw.stop(),d.kx.stop(),d.wO.start()):(d.j.OM(d.expanded),g.ep(d.badge.element,"ytp-suggested-action-badge-expanded",d.expanded)),d.GR())};
  6094. lI7=function(d){var q=d.text||"",T=g.bY("ytp-suggested-action-badge-title",d.element);T&&g.Qp(T,q);d.badge.element.setAttribute("aria-label",q);d.dismissButton.element.setAttribute("aria-label",d.xx?d.xx:"")};
  6095. nc=function(d,q,T,Y,e,U){var b={Y:"div",D:"ytp-panel"};if(T){var J="ytp-panel-back-button";var F="ytp-panel-title";var N={Y:"div",D:"ytp-panel-header",V:[{Y:"div",hF:["ytp-panel-back-button-container"],V:[{Z:{"aria-label":"\u8fd4\u56de\u4e0a\u4e00\u4e2a\u83dc\u5355"},Y:"button",hF:["ytp-button",J]}]},{Y:"span",hF:[F],Z:d.N("web_enable_a11y_header_role_in_panel")?{role:"heading","aria-level":"2"}:void 0,V:[T]}]};if(e){var R="ytp-panel-options";N.V.push({Y:"button",hF:["ytp-button",R],V:[Y]})}b.V=[N]}Y=
  6096. !1;U&&(U={Y:"div",D:"ytp-panel-footer",V:[U]},Y=!0,b.V?b.V.push(U):b.V=[U]);g.Ji.call(this,b);this.content=q;Y&&b.V?q.IU(this.element,b.V.length-1):q.IU(this.element);this.Kc=!1;this.V0=Y;T&&(T=this.Qv(F),this.W(this.Qv(J),"click",this.gP),this.W(T,"click",this.gP),this.Kc=!0,e&&this.W(this.Qv(R),"click",e));q.subscribe("size-change",this.cY,this);this.W(d,"fullscreentoggled",this.cY);this.J=d};
  6097. g.rF=function(d,q,T,Y,e,U){q=q===void 0?null:q;var b={role:"menu"};q&&(b.id=q);q=new g.Ji({Y:"div",D:"ytp-panel-menu",Z:b});nc.call(this,d,q,T,Y,e,U);this.menuItems=q;this.items=[];g.C(this,this.menuItems)};
  6098. g.tG=function(d){for(var q=g.E(d.items),T=q.next();!T.done;T=q.next())T.value.unsubscribe("size-change",d.IX,d);d.items=[];try{g.xE(d.menuItems.element)}catch(U){var Y,e;g.OL(new g.CW("Failed to remove menu items from panel menu.",{error:U.message,originalStack:U.stack,childToBeRemoved:(e=(Y=d.menuItems.element.firstChild)==null?void 0:Y.textContent)!=null?e:"child element not found"}))}d.menuItems.publish("size-change")};
  6099. vB2=function(d,q){return q.priority-d.priority};
  6100. g.B$=function(d,q){g.bi.call(this,d,{Y:"div",hF:["ytp-popup",q||""]},100,!0);this.G=[];this.L=this.X=null;this.maxHeight=this.maxWidth=0;this.size=new g.zP(0,0);this.listen("keydown",this.sG)};
  6101. oBI=function(d){var q=d.G[d.G.length-1];if(q){g.or(d.element,d.maxWidth||"100%",d.maxHeight||"100%");g.Dv(q.element,"width","");g.Dv(q.element,"height","");g.Dv(q.element,"maxWidth","100%");g.Dv(q.element,"maxHeight","100%");g.Dv(q.content.element,"height","");var T=g.Vp(q.element);T.width+=1;T.height+=1;g.Dv(q.element,"width",T.width+"px");g.Dv(q.element,"height",T.height+"px");g.Dv(q.element,"maxWidth","");g.Dv(q.element,"maxHeight","");var Y=0;q.Kc&&(Y=g.Vp(q.Qv("ytp-panel-header")).height);var e=
  6102. 0;q.V0&&(e=q.Qv("ytp-panel-footer"),g.Dv(e,"width",T.width+"px"),e=g.Vp(e).height);g.Dv(q.content.element,"height",T.height-Y-e+"px");q.element instanceof HTMLElement&&(Y=q.element,e=Y.scrollWidth-Y.clientWidth,Y.offsetWidth-Y.clientWidth>0&&e>0&&(T.width+=e,g.Dv(q.element,"width",T.width+"px")));d.size=T}};
  6103. g.Kc=function(d,q){var T=d.G[d.G.length-1];T!==q&&(d.G.push(q),VgH(d,T,q))};
  6104. g.GQ=function(d){if(!(d.G.length<=1)){var q=d.G.pop(),T=d.G[0];d.G=[T];VgH(d,q,T,!0)}};
  6105. VgH=function(d,q,T,Y){dN1(d);q&&(q.unsubscribe("size-change",d.OJ,d),q.unsubscribe("back",d.l1,d));T.subscribe("size-change",d.OJ,d);T.subscribe("back",d.l1,d);if(d.PF){g.d9(T.element,Y?"ytp-panel-animate-back":"ytp-panel-animate-forward");T.IU(d.element);T.focus();d.element.scrollLeft=0;d.element.scrollTop=0;var e=d.size;oBI(d);g.or(d.element,e);d.X=new g.f9(function(){qkI(d,q,T,Y)},20,d);
  6106. d.X.start()}else T.IU(d.element),q&&q.detach()};
  6107. qkI=function(d,q,T,Y){d.X.dispose();d.X=null;g.d9(d.element,"ytp-popup-animating");Y?(g.d9(q.element,"ytp-panel-animate-forward"),g.TR(T.element,"ytp-panel-animate-back")):(g.d9(q.element,"ytp-panel-animate-back"),g.TR(T.element,"ytp-panel-animate-forward"));g.or(d.element,d.size);d.L=new g.f9(function(){g.TR(d.element,"ytp-popup-animating");q.detach();g.YG(q.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);d.L.dispose();d.L=null},250,d);
  6108. d.L.start()};
  6109. dN1=function(d){d.X&&g.ic(d.X);d.L&&g.ic(d.L)};
  6110. Lc=function(d){g.B$.call(this,d,"ytp-shopping-product-menu");this.ws=new g.rF(this.J);g.C(this,this.ws);this.hide();g.Kc(this,this.ws);g.o6(this.J,this.element,4)};
  6111. Ykj=function(d,q,T){var Y,e=q==null?void 0:(Y=q.text)==null?void 0:Y.simpleText;e&&(T=TlY(d,T,e,q==null?void 0:q.icon,q==null?void 0:q.secondaryIcon),q.navigationEndpoint&&T.listen("click",function(){d.J.gO("innertubeCommand",q.navigationEndpoint);d.hide()},d))};
  6112. et2=function(d,q,T){var Y,e=q==null?void 0:(Y=q.text)==null?void 0:Y.simpleText;e&&TlY(d,T,e,q==null?void 0:q.icon).listen("click",function(){var U;(q==null?void 0:(U=q.icon)==null?void 0:U.iconType)==="HIDE"?d.J.publish("featuredproductdismissed"):q.serviceEndpoint&&d.J.gO("innertubeCommand",q.serviceEndpoint);d.hide()},d)};
  6113. TlY=function(d,q,T,Y,e){q=new g.gR(g.Fp({},[],!1,!!e),q,T);e&&q.updateValue("secondaryIcon",UN1(e));q.setIcon(UN1(Y));g.C(d,q);d.ws.rk(q,!0);return q};
  6114. UN1=function(d){if(!d)return null;switch(d.iconType){case "ACCOUNT_CIRCLE":return{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{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",
  6115. fill:"#fff"}}]};case "FLAG":return{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{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 EO1();case "HIDE":return{Y:"svg",Z:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"g",V:[{Y:"path",Z:{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"}}]}]};
  6116. case "OPEN_IN_NEW":return ck()}};
  6117. ks=function(d){O8.call(this,d,!1,!0);this.isCounterfactual=this.U=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.B=!0;this.overflowButton=new g.f({Y:"button",hF:["ytp-featured-product-overflow-icon","ytp-button"],Z:{"aria-haspopup":"true"}});this.overflowButton.hide();g.C(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.f({Y:"img",D:"ytp-suggested-action-badge-img",Z:{src:"{{url}}"}});
  6118. this.thumbnailImage.hide();g.C(this,this.thumbnailImage);this.thumbnailIcon=new g.f({Y:"div",D:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.C(this,this.thumbnailIcon);this.banner=new g.f({Y:"a",D:"ytp-suggested-action-container",V:[this.thumbnailImage,this.thumbnailIcon,{Y:"div",D:"ytp-suggested-action-details",V:[{Y:"text",D:"ytp-suggested-action-title",j5:"{{title}}"},{Y:"text",D:"ytp-suggested-action-subtitle",j5:"{{subtitle}}"},{Y:"text",D:"ytp-suggested-action-metadata-text",
  6119. j5:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.C(this,this.banner);this.banner.IU(this.j.element);this.W(this.J,"videodatachange",this.onVideoDataChange);this.W(this.J,g.Sh("suggested_action_view_model"),this.fQw);this.W(this.J,g.lG("suggested_action_view_model"),this.U5v);this.W(this.overflowButton.element,"click",this.HB);this.W(d,"featuredproductdismissed",this.aC);this.J.createServerVe(this.banner.element,this.banner,!0)};
  6120. bAQ=function(d){d.isInitialized&&(d.enabled=d.isVisible,d.UD=d.isVisible,Zt(d),d.kq(),d.thumbnailImage.OM(d.isVisible),d.shouldHideDismissButton||d.dismissButton.OM(d.isVisible),d.shouldShowOverflowButton&&d.overflowButton.OM(d.isVisible))};
  6121. P$=function(){ks.apply(this,arguments)};
  6122. XFN=function(d){xT.call(this,d);this.G=new P$(this.api);g.C(this,this.G);g.o6(this.api,this.G.element,4)};
  6123. W$=function(d){xT.call(this,d);var q=this;this.G=!0;var T=new g.aI(d);g.C(this,T);T.W(d,"internalaudioformatchange",function(Y,e){JZI(q,Y,e)});
  6124. T.W(d,"videoplayerreset",function(){sk6(q)});
  6125. T.W(d,"videodatachange",function(Y,e){q.onVideoDataChange(Y,e)})};
  6126. JZI=function(d,q,T){if(T){var Y="";$Nf(d,q)&&(Y=q,d.api.C().Fw=q);if(Y&&gng(d,Y)){KxD(d.api,Y);var e;BN(tJ(d.api.C(),(e=d.api.getVideoData())==null?void 0:g.$4(e)),function(U){FN_(d,Y,U)})}}};
  6127. sk6=function(d){var q;if((q=cI())==null?0:q.size){var T;BN(tJ(d.api.C(),(T=d.api.getVideoData())==null?void 0:g.$4(T)),function(Y){(Y=Nl1(Y))&&gng(d,Y)&&(d.api.C().Fw=Y)})}};
  6128. FN_=function(d,q,T){Nl1(T)!==q&&(Rt1([{settingItemId:Cc(T),settingOptionValue:{stringValue:q}}]),BN(d.S0(),function(Y){c$N(Y,Cc(T),{stringValue:q})}))};
  6129. xNN=function(d,q){K0(BN(BN(d.S0(),function(T){return QCH(T,[Cc(q)])}),function(T){if(T){T=g.E(T);
  6130. for(var Y=T.next();!Y.done;Y=T.next()){var e=Y.value;Y=e.key;e=e.value;Y&&e&&(Rt1([{settingItemId:Y,settingOptionValue:e}]),sk6(d))}}}),function(){d.G=!0})};
  6131. $Nf=function(d,q){d=d.api.getAvailableAudioTracks();d=g.E(d);for(var T=d.next();!T.done;T=d.next())if(T=T.value,T.getLanguageInfo().getId()===q)return T;return null};
  6132. Nl1=function(d){d=Cc(d);var q=cI();d=q?q.get(d):void 0;return d&&d.stringValue?d.stringValue:""};
  6133. Cc=function(d){var q=(484).toString();d&&(q=(483).toString());return q};
  6134. gng=function(d,q){var T;return q.split(".")[0]!==""&&((T=d.api.getVideoData())==null?void 0:!FG(T))};
  6135. Rt1=function(d){var q=cI();q||(q=new Map);d=g.E(d);for(var T=d.next();!T.done;T=d.next())T=T.value,q.set(T.settingItemId,T.settingOptionValue);q=JSON.stringify(Object.fromEntries(q));g.pW("yt-player-user-settings",q,2592E3)};
  6136. g.uf=function(d,q,T,Y,e,U,b){g.gR.call(this,g.Fp({"aria-haspopup":"true"}),q,d);this.TG=Y;this.B=!1;this.j=null;this.options={};this.U=new g.rF(T,void 0,d,e,U,b);g.C(this,this.U);this.listen("keydown",this.dT);this.listen("click",this.open)};
  6137. yZ1=function(d){if(d.j){var q=d.options[d.j];q.element.getAttribute("aria-checked");q.element.setAttribute("aria-checked","false");d.j=null}};
  6138. htY=function(d,q){g.uf.call(this,"\u4f11\u7720\u5b9a\u65f6\u5668",g.rR.SLEEP_TIMER,d,q);this.J=d;this.K={};this.X=this.Ws("Off");this.L=this.G="";d.N("web_settings_menu_icons")&&(q=d.N("delhi_modern_web_player_icons")?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M12.33 1.00C12.22 1.00 12.11 1.00 12 1C5.92 1 1 5.92 1 12C1 18.07 5.92 23 12 23C13.90 23.00 15.78 22.50 17.44 21.55C19.10 20.61 20.48 19.25 21.46 17.61L21.64 17.29C22.06 16.52 21.21 15.73 20.35 15.88C18.76 16.15 17.12 15.94 15.66 15.27C14.19 14.59 12.97 13.49 12.14 12.11C11.31 10.73 10.91 9.13 11.01 7.52C11.11 5.91 11.69 4.37 12.67 3.09L12.89 2.83C13.45 2.16 13.20 1.03 12.33 1.00ZM15.56 2.60C15.45 2.84 15.43 3.11 15.51 3.36C15.59 3.61 15.77 3.82 16.01 3.94C16.91 4.39 17.73 4.99 18.44 5.71L18.73 6.03L18.80 6.10C18.99 6.27 19.22 6.36 19.47 6.37C19.72 6.37 19.96 6.28 20.15 6.12C20.33 5.95 20.45 5.72 20.48 5.48C20.51 5.23 20.44 4.98 20.29 4.78L20.23 4.70L19.87 4.31C19.01 3.43 18.01 2.70 16.90 2.15C16.67 2.03 16.39 2.01 16.14 2.10C15.89 2.18 15.68 2.36 15.56 2.60M10.24 3.17C9.42 4.64 8.99 6.31 9 8C9 13.42 13.32 17.84 18.71 17.99C17.86 18.93 16.83 19.69 15.67 20.21C14.52 20.73 13.26 21.00 12 21C9.76 21.00 7.60 20.17 5.95 18.67C4.29 17.17 3.25 15.10 3.03 12.88C2.81 10.65 3.43 8.43 4.76 6.63C6.09 4.84 8.05 3.60 10.24 3.17M21.16 7.88C20.93 7.96 20.73 8.12 20.61 8.34C20.49 8.55 20.45 8.81 20.50 9.05L20.53 9.15L20.66 9.56C20.93 10.53 21.04 11.54 20.98 12.55C20.97 12.81 21.06 13.06 21.23 13.26C21.41 13.45 21.65 13.57 21.92 13.59C22.18 13.60 22.44 13.52 22.63 13.34C22.83 13.17 22.95 12.93 22.97 12.67C23.05 11.44 22.92 10.20 22.58 9.02L22.43 8.51L22.39 8.42C22.29 8.19 22.11 8.01 21.88 7.91C21.65 7.81 21.40 7.80 21.16 7.88Z",
  6139. fill:"white"}}]}:{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{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",fill:"#fff"}}]},this.setIcon(q));
  6140. this.T=new g.f({Y:"div",hF:["ytp-menuitem-label-wrapper"],V:[{Y:"div",j5:"\u89c6\u9891\u7ed3\u5c3e"},{Y:"div",hF:["ytp-menuitem-sublabel"],j5:"{{content}}"}]});g.C(this,this.T);this.listen("click",this.onClick);this.W(d,"videodatachange",this.onVideoDataChange);this.W(d,"presentingplayerstatechange",this.S5);this.W(d,"settingsMenuVisibilityChanged",this.Jf);d.createClientVe(this.element,this,218889);this.S5();this.J.gO("onSleepTimerFeatureAvailable")};
  6141. HAN=function(d){var q="Off 10 15 20 30 45 60".split(" "),T;((T=d.J.getVideoData())==null?0:T.isLivePlayback)||q.push("End of video");T=d.J.getPlaylist();var Y;T&&((Y=T.listId)==null?void 0:Y.type)!=="RD"&&q.push("End of playlist");d.MF(g.yC(q,d.Ws));d.K=g.lQ(q,d.Ws,d);q=d.Ws("End of video");d.options[q]&&g.$T(d.options[q],d.T)};
  6142. Qk7=function(d,q){var T=d.K[q],Y=T==="End of video"||T==="End of playlist";T==="Off"&&(d.G="");d.J.getPlayerState()!==0&&d.J.getPlayerState()!==5||!Y?(d.X=q,g.uf.prototype.GS.call(d,q),d.kL(q),d.J.gO("onSleepTimerSettingsChanged",T)):d.J.gO("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"\u89c6\u9891\u5df2\u7ed3\u675f"}}}}})};
  6143. Dt=function(d){xT.call(this,d);var q=this;d.addEventListener("settingsMenuInitialized",function(){q.menuItem||(q.menuItem=new htY(q.api,q.api.dB()),g.C(q,q.menuItem))});
  6144. d.addEventListener("openSettingsMenuItem",function(T){if(T==="menu_item_sleep_timer"){if(!q.menuItem){var Y;(Y=q.api.dB())==null||Y.St()}q.menuItem.open()}});
  6145. A7(d,"resetSleepTimerMenuSettings",function(){q.resetSleepTimerMenuSettings()});
  6146. A7(d,"setSleepTimerTimeLeft",function(T){q.setSleepTimerTimeLeft(T)});
  6147. A7(d,"setVideoTimeLeft",function(T){q.setVideoTimeLeft(T)})};
  6148. Mw1=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);this.events.W(d,"onSnackbarMessage",function(T){switch(T){case 1:T=q.api.getPlayerStateObject(),T.isBuffering()&&(q.api.N("html5_disable_snackbar_message_checking_on_seeking_to_play")||g.I(T,8)&&g.I(T,16))&&q.api.gO("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"\u6709\u4e2d\u65ad\u95ee\u9898\uff1f"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
  6149. text:{runs:[{text:"\u627e\u51fa\u539f\u56e0"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}},
  6150. durationHintMs:5E3,popupType:"TOAST"}})}})};
  6151. g.fc=function(d,q,T,Y,e){q=q===void 0?!1:q;Y=Y===void 0?!1:Y;e=e===void 0?!1:e;g.YP.call(this);this.K=e;this.L=!1;this.T=new cu(this);this.S=this.X=null;this.j=this.U=!1;g.C(this,this.T);this.target=d;this.G=q;this.B=T||d;this.L=Y;q&&(g.J4&&this.target.setAttribute("draggable","true"),e||(this.target.style.touchAction="none"));wF(this)};
  6152. zQ=function(d){g.jX(d.T,!d.G)};
  6153. wF=function(d){d.S=null;d.X=null;d.W(IZ("over"),d.qD);d.W("touchstart",d.JN);d.G&&d.W(IZ("down"),d.M5k)};
  6154. cZj=function(d,q){for(var T=0;T<q.changedTouches.length;T++){var Y=q.changedTouches[T];if(Y.identifier===d.X)return Y}return null};
  6155. IZ=function(d){return window.navigator.msPointerEnabled?"MSPointer"+d.charAt(0).toUpperCase()+d.substring(1):"mouse"+d};
  6156. mB=function(d){return d&&En2?oy(d)||document:document};
  6157. jk1=function(d){En2=d};
  6158. akI=function(d,q){g.f.call(this,{Y:"div",hF:["ytp-overlay","ytp-speedmaster-overlay"],V:[{Y:"div",D:"ytp-speedmaster-user-edu",V:[{Y:"div",D:"ytp-speedmaster-label",j5:q},{Y:"div",D:"ytp-speedmaster-icon",j5:"{{icon}}"}]}]});this.J=d;this.G=this.Qv("ytp-speedmaster-user-edu");this.updateValue("icon",cBH());g.d9(this.G,"ytp-speedmaster-has-icon");this.J.createClientVe(this.G,this,173040,!0);this.QS()};
  6159. lf=function(d){xT.call(this,d);var q=this;this.T=this.j=!1;this.U=new g.aI(d);g.C(this,this.U);this.K="2x";this.speedmasterUserEdu=new akI(d,this.K);g.C(this,this.speedmasterUserEdu);g.o6(this.api,this.speedmasterUserEdu.element,4);this.G=new g.fc(this.api.OD().t6,!0,null,!1,!0);g.C(this,this.G);this.delay=new g.f9(this.rO,500,this);g.C(this,this.delay);this.U.W(d,"videodatachange",function(){SR(q)},this);
  6160. this.U.W(d,"presentingplayerstatechange",function(){SR(q)},this);
  6161. this.U.W(d,"autonavvisibility",function(){SR(q)},this);
  6162. this.api.Jp().subscribe("visibilitystatechange",function(){SR(q)});
  6163. this.U.W(d,"rootnodemousedown",function(T){q.L=T});
  6164. this.N("web_speedmaster_spacebar_control")&&(this.U.W(d,"keyboardserviceglobalkeydown",function(T,Y){q.lr=Y;AZg(q,T,Y.LO,!0)},this),this.U.W(d,"keyboardserviceglobalkeyup",function(T){AZg(q,T,!1,!1)},this))};
  6165. v$=function(d){d.delay.stop();d.G.unsubscribe("dragmove",d.X,d);d.G.unsubscribe("dragend",d.S,d);d.j&&(d.j=!1,d.speedmasterUserEdu.QS(),d.api.setPlaybackRate(d.yv),d.api.showControls(),d.z2&&d.api.pauseVideo(),d.N("enable_smart_skip_speedmaster_on_web")&&d.api.publish("speedmasterchanged",!1))};
  6166. AZg=function(d,q,T,Y){T||(Y?q.keyCode!==32||q.repeat||d.j||!d.T||g.zh(d.delay):v$(d))};
  6167. SR=function(d){var q,T;var Y=!!d.K&&!((q=d.api.getVideoData())==null?0:q.isLivePlayback)&&!d.api.yX()&&d.api.getPresentingPlayerType()!==2&&!g.I(d.api.getPlayerStateObject(),2)&&!((T=g.KV(d.api))==null?0:T.Rl())&&!d.api.isEmbedsShortsMode()&&bEX(d.api.Jp());d.T!==Y&&(d.T=Y,d.T?d.G.subscribe("dragstart",d.UD,d):(d.G.unsubscribe("dragstart",d.UD,d),d.G.unsubscribe("dragmove",d.X,d),d.G.unsubscribe("dragend",d.S,d),v$(d)))};
  6168. pFY=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);A7(this.api,"addPlayerResponseForAssociation",function(T){q.api.addPlayerResponseForAssociation(T)});
  6169. A7(this.api,"finishSegmentByCpn",function(T,Y,e){return q.api.finishSegmentByCpn(T,Y,e)});
  6170. this.events.W(d,"modulecreated",function(T){if(T==="ad"&&(T=q.api.getVideoData(1))&&(T=T.getPlayerResponse())){var Y;T=(Y=T.adPlacements)!=null?Y:[];Y=g.E(T);for(var e=Y.next();!e.done;e=Y.next()){var U=T=void 0,b=void 0;if(e=(T=e.value.adPlacementRenderer)==null?void 0:(U=T.renderer)==null?void 0:(b=U.instreamVideoAdRenderer)==null?void 0:b.playerVars)T=lF(e),q.api.addPlayerResponseForAssociation({playerVars:T})}}});
  6171. this.events.W(d,"videodatachange",function(T,Y){q.onVideoDataChange(T,Y)})};
  6172. oZ=function(d,q,T){g.fb.call(this,q,d);this.G=T};
  6173. g.Vk=function(d){he.call(this);var q=this;this.G=d;this.S={};this.listener=function(T){q.dispatchEvent(new oZ(q,T.type,T))}};
  6174. OAf=function(d){var q=d.getVideoData(),T=d.WG(),Y=T.tA(),e=d.C(),U=d.K9(),b=U.x$*8/1024,J=U.Zz/1024,F=U.AU,N=U.ZC,R=U.playerState.state.toString(16),x=T.getCurrentTime().toFixed(2),y=lW(T.g1(),",",3),h="";if(q.isDaiEnabled()){q.enableServerStitchedDai&&(h+=q.y8?"DS":"SS");h=q.y5()?h+"LIFA, ":h+"DAI, ";var H=U.R2;H&&(h+=H)}gm(q)&&!q.y5()&&(h+="LIFAE, ");tw(q)&&(h+="SABR, ");if(q.fetchType){switch(q.fetchType){case "onesie":H="o";break;case "gp":H="gp";break;default:H="gvi"}h+="vd:"+H+", "}(e=e.Pf)&&
  6175. (h=e.G?h+"wa, ":h+"w, ");h+="s:"+R+" t:"+x+" b:"+y+" ";T.isSeeking()&&(h+="S");T.isPaused()&&(h+="P");T.isEnded()&&(h+="E");d.isOrchestrationLeader()&&(h+=" L");(T=U.Xp)&&(h+=" l:"+T.toFixed());T=U.currentTime;R=q.yq;T&&T>R.start&&T<R.end&&(h+=" as");T=h;h=g.iF(cm)("_start",void 0);R=[];x=g.E(["pl_i","vir","or_p","orfb","pbs"]);for(y=x.next();!y.done;y=x.next())y=y.value,(e=g.iF(cm)(y,void 0))&&h&&(e-=h,R.push(y+":"+Math.round(e)));h=R.join(" ");R=g.Mi();x=g.vU(d).y$;y=q.j&&!q.j.G?"display:none":
  6176. "";if((e=q.clientPlaybackNonce)&&e.length==16){e+="AAAA";H=0;for(var a="",p=0;p<20;p++)if(H=(H<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(e.charAt(p)),p%5==4){for(var t="",n=0;n<6;n++)t="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(H&31)+t,H>>=5;a+=t}e=a.substr(0,4)+" "+a.substr(4,4)+" "+a.substr(8,4)+" "+(a.substr(12,4)+" "+a.substr(16,4))}else e="";b={video_id_and_cpn:String(q.videoId)+" / "+e,codecs:"",dims_and_frames:"",bandwidth_kbps:b.toFixed(0)+" Kbps",buffer_health_seconds:F.toFixed(2)+
  6177. " s",date:""+(new Date).toString(),drm_style:N?"":"display:none",drm:N,debug_info:T,extra_debug_info:"",bandwidth_style:y,network_activity_style:y,network_activity_bytes:J.toFixed(0)+" KB",shader_info:x,shader_info_style:x?"":"display:none",playback_categories:""};J=Y.clientWidth+"x"+Y.clientHeight+(R>1?"*"+R.toFixed(2):"");F="-";U.totalVideoFrames&&(F=(U.droppedVideoFrames||0)+" dropped of "+U.totalVideoFrames);b.dims_and_frames=J+" / "+F;d=d.getVolume();J=oqX(q);var K;if((K=q.T)==null?0:K.audio.U)K=
  6178. "VB";else{var P;K=((P=q.T)==null?0:P.audio.G)?"DRC":Math.round(d*J)+"%"}P=Math.round(d)+"% / "+K;K=q.LC.toFixed(1);isFinite(Number(K))&&(P+=" (content loudness "+K+"dB)");b.volume=P;b.resolution=Y.videoWidth+"x"+Y.videoHeight;if(Y=q.U){if(P=Y.video)K=P.fps,K>1&&(b.resolution+="@"+K),(K=U.Sf)&&K.video&&(b.resolution+=" / "+K.video.width+"x"+K.video.height,K.video.fps>1&&(b.resolution+="@"+K.video.fps)),b.codecs=ZA1(Y),!q.T||Y.audio&&Y.video?Y.pJ&&(b.codecs+=" / "+Y.pJ+"A"):b.codecs+=" / "+ZA1(q.T),
  6179. P.G||P.primaries?(K=P.G||"unknown",K==="smpte2084"?K+=" (PQ)":K==="arib-std-b67"&&(K+=" (HLG)"),b.color=K+" / "+(P.primaries||"unknown"),b.color_style=""):b.color_style="display:none";if(Y.debugInfo)for(b.fmt_debug_info="",Y=g.E(Y.debugInfo),P=Y.next();!P.done;P=Y.next())P=P.value,b.fmt_debug_info+=P.label+":"+P.text+" ";b.fmt_debug_info_style=b.fmt_debug_info&&b.fmt_debug_info.length>0?"":"display:none"}Y=q.isLivePlayback;P=q.uC;b.live_mode_style=Y||P?"":"display:none";b.live_latency_style=Y?"":
  6180. "display:none";if(P)b.live_mode="Post-Live"+(kp(q)?" Manifestless":"");else if(Y){P=U.B2;b.live_latency_secs=P.toFixed(2)+"s";Y=kp(q)?"Manifestless, ":"";q.yv&&(Y+="Windowed, ");K="Uncertain";if(P>=0&&P<120)if(q.latencyClass&&q.latencyClass!=="UNKNOWN")switch(q.latencyClass){case "NORMAL":K="Optimized for Normal Latency";break;case "LOW":K="Optimized for Low Latency";break;case "ULTRALOW":K="Optimized for Ultra Low Latency";break;default:K="Unknown Latency Setting"}else K=q.isLowLatencyLiveStream?
  6181. "Optimized for Low Latency":"Optimized for Smooth Streaming";Y+=K;(P=U.gI)&&(Y+=", seq "+P.sequence);b.live_mode=Y}!U.isGapless||Zu(q)&&U.MN||(b.playback_categories+="Gapless ");b.playback_categories_style=b.playback_categories?"":"display:none";b.bandwidth_samples=U.AJ;b.network_activity_samples=U.En;b.live_latency_samples=U.Ve;b.buffer_health_samples=U.y9;U=g.y2(q);if(q.cotn||U)b.cotn_and_local_media=(q.cotn?q.cotn:"null")+" / "+U;b.cotn_and_local_media_style=b.cotn_and_local_media?"":"display:none";
  6182. HU(q,"web_player_release_debug")?(b.release_name=X[40],b.release_style=""):b.release_style="display:none";b.debug_info&&h.length>0&&b.debug_info.length+h.length<=60?b.debug_info+=" "+h:b.extra_debug_info=h;b.extra_debug_info_style=b.extra_debug_info&&b.extra_debug_info.length>0?"":"display:none";return b};
  6183. ZA1=function(d){var q=/codecs="([^"]*)"/.exec(d.mimeType);return q&&q[1]?q[1]+" ("+d.itag+")":d.itag};
  6184. dV=function(d,q,T,Y,e){g.f.call(this,{Y:"div",D:"ytp-horizonchart"});this.L=q;this.sampleCount=T;this.T=Y;this.X=e;this.index=0;this.heightPx=-1;this.j=this.U=null;this.G=Math.round(d/T);this.element.style.width=this.G*this.sampleCount+"px";this.element.style.height=this.L+"em"};
  6185. qc=function(d,q){if(d.heightPx===-1){var T=null;try{T=g.FE("CANVAS"),d.U=T.getContext("2d")}catch(J){}if(d.U){var Y=d.G*d.sampleCount;d.j=T;d.j.width=Y;d.j.style.width=Y+"px";d.element.appendChild(d.j)}else for(d.sampleCount=Math.floor(d.sampleCount/4),d.G*=4,T=0;T<d.sampleCount;T++)Y=g.FE("SPAN"),Y.style.width=d.G+"px",Y.style.left=d.G*T+"px",d.element.appendChild(Y)}T=d.element.clientHeight||24;T!==d.heightPx&&(d.heightPx=T,d.U&&(T=(window.devicePixelRatio||1)>1?2:1,d.j.height=d.heightPx*T,d.j.style.height=
  6186. d.heightPx+"px",d.U.scale(1,T)));q=g.E(q);for(Y=q.next();!Y.done;Y=q.next()){T=d;var e=d.index,U=Y.value;for(Y=0;Y+2<T.T.length&&T.T[Y+1]<U;)Y++;U=Math.min(1,(U-T.T[Y])/(T.T[Y+1]-T.T[Y]));if(T.U)T.U.fillStyle=T.X[Y],T.U.fillRect(e*T.G,0,T.G,T.heightPx),T.U.fillStyle=T.X[Y+1],T.U.fillRect(e*T.G,T.heightPx*(1-U),T.G,T.heightPx);else{e=T.element.children[e];var b=window.devicePixelRatio||1;U=Math.min(T.heightPx,Math.round(T.heightPx*U*b)/b)||0;e.style.height=U+"px";e.style.backgroundColor=T.X[Y+1];e.style.borderTop=
  6187. "solid "+(T.heightPx-U)+"px "+T.X[Y]}d.index=(d.index+1)%d.sampleCount}q=d.index;d.U?d.U.clearRect(q*d.G,0,d.G,d.heightPx):(d=d.element.children[q],d.style.height="0px",d.style.borderTop="")};
  6188. TV=function(d){var q=null;q={Y:"button",hF:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],Z:{title:"close"},j5:"[X]"};g.f.call(this,{Y:"div",hF:["html5-video-info-panel","ytp-sfn"],V:[q,{Y:"div",hF:["html5-video-info-panel-content","ytp-sfn-content"],V:[{Y:"div",V:[{Y:"div",j5:"Video ID / sCPN"},{Y:"span",j5:"{{video_id_and_cpn}}",D:"ytp-sfn-cpn"}]},{Y:"div",V:[{Y:"div",j5:"Viewport / Frames"},{Y:"span",j5:"{{dims_and_frames}}"}]},{Y:"div",V:[{Y:"div",j5:"Current / Optimal Res"},{Y:"span",
  6189. j5:"{{resolution}}"}]},{Y:"div",V:[{Y:"div",j5:"Volume / Normalized"},{Y:"span",j5:"{{volume}}"}]},{Y:"div",V:[{Y:"div",j5:"Codecs"},{Y:"span",j5:"{{codecs}}"}]},{Y:"div",Z:{style:"{{shader_info_style}}"},V:[{Y:"div",j5:"Shader Info"},{Y:"span",j5:"{{shader_info}}"}]},{Y:"div",Z:{style:"{{color_style}}"},V:[{Y:"div",j5:"Color"},{Y:"span",j5:"{{color}}"}]},{Y:"div",Z:{style:"{{drm_style}}"},V:[{Y:"div",j5:"Protected"},{Y:"span",j5:"{{drm}}"}]},{Y:"div",Z:{style:"{{bandwidth_style}}"},V:[{Y:"div",j5:"Connection Speed"},
  6190. {Y:"span",V:[{Y:"span",j5:"{{bandwidth_chart}}"},{Y:"span",j5:"{{bandwidth_kbps}}"}]}]},{Y:"div",Z:{style:"{{network_activity_style}}"},V:[{Y:"div",j5:"Network Activity"},{Y:"span",V:[{Y:"span",j5:"{{network_activity_chart}}"},{Y:"span",j5:"{{network_activity_bytes}}"}]}]},{Y:"div",V:[{Y:"div",j5:"Buffer Health"},{Y:"span",V:[{Y:"span",j5:"{{buffer_health_chart}}"},{Y:"span",j5:"{{buffer_health_seconds}}"}]}]},{Y:"div",Z:{style:"{{live_latency_style}}"},V:[{Y:"div",j5:"Live Latency"},{Y:"span",V:[{Y:"span",
  6191. j5:"{{live_latency_chart}}"},{Y:"span",j5:"{{live_latency_secs}}"}]}]},{Y:"div",Z:{style:"{{live_mode_style}}"},V:[{Y:"div",j5:"Live Mode"},{Y:"span",j5:"{{live_mode}}"}]},{Y:"div",Z:{style:"{{playback_categories_style}}"},V:[{Y:"div",j5:"Playback Categories"},{Y:"span",j5:"{{playback_categories}}"}]},{Y:"div",Z:{style:"{{fmt_debug_info_style}}"},V:[{Y:"div",j5:"Format Debug Info"},{Y:"span",j5:"{{fmt_debug_info}}"}]},{Y:"div",V:[{Y:"div",j5:"Mystery Text"},{Y:"span",j5:"{{debug_info}}"}]},{Y:"div",
  6192. Z:{style:"{{extra_debug_info_style}}"},V:[{Y:"div",j5:""},{Y:"span",V:[{Y:"span",j5:"{{extra_debug_info}}"}]}]},{Y:"div",V:[{Y:"div",j5:"Date"},{Y:"span",j5:"{{date}}"}]},{Y:"div",Z:{style:"{{cotn_and_local_media_style}}"},V:[{Y:"div",j5:"COTN / Local Media"},{Y:"span",j5:"{{cotn_and_local_media}}"}]},{Y:"div",Z:{style:"{{release_style}}"},V:[{Y:"div",j5:"Player Release"},{Y:"span",j5:"{{release_name}}"}]}]}]});this.mZ=d;this.position=0;this.X=!0;q?this.W(this.Qv("ytp-sfn-close"),"click",this.hide):
  6193. this.W(this.element,"click",this.hide);d=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];q="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" ");var T=d.map(function(Y){return Y/4});
  6194. this.K={};this.G=new dV(300,1,150,d,q);g.C(this,this.G);this.updateValue("bandwidth_chart",this.G);this.j=new dV(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.C(this,this.j);this.updateValue("live_latency_chart",this.j);this.U=new dV(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.C(this,this.U);this.updateValue("buffer_health_chart",this.U);this.L=new dV(300,1,150,T,q);g.C(this,this.L);this.updateValue("network_activity_chart",
  6195. this.L);this.delay=new g.f9(this.S5,500,this);g.C(this,this.delay);this.T=new g.f9(this.B,2E4,this);g.C(this,this.T)};
  6196. twn=function(d){xT.call(this,d);var q=this;A7(d,"getStatsForNerds",function(){return OAf(q.api)});
  6197. pV(d,"showVideoInfo",function(){nnX(q,!0)});
  6198. pV(d,"hideVideoInfo",function(){nnX(q,!1)});
  6199. pV(d,"isVideoInfoVisible",function(){return rZ1(q)})};
  6200. nnX=function(d,q){var T=rZ1(d);d.G||(d.G=new TV(d.api),g.C(d,d.G),g.o6(d.api,d.G.element,4));d.G.OM(q);var Y=I6(d.api.M5());Y&&Y.loaded&&T!==q&&Y.IB();q&&d.api.oU("sfn",{},!0)};
  6201. rZ1=function(d){var q;return!((q=d.G)==null||!q.PF)};
  6202. Yr=function(){g.W.call(this);this.U=null;this.startTime=this.duration=0;this.delay=new g.uc(this.G,null,this);g.C(this,this.delay)};
  6203. BlX=function(d,q){if(q.Y==="path")return q.Z.d;if(q.V)for(var T=0;T<q.V.length;T++){var Y=q.V[T];if(Y&&typeof Y!=="string"&&(Y=BlX(d,Y)))return Y}};
  6204. kjn=function(d,q,T){T=BlX(d,T);var Y=q.getElementsByTagName("path")[0],e=Y.getAttribute("d");if(Y.getAttribute("id")){var U=ex();q=q.getElementsByTagName("use");for(var b=0;b<q.length;b++)q[b].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+U);Y.setAttribute("id",U)}var J=KNN(e),F=KNN(T);GjX(d,function(N){Y.setAttribute("d",LNQ(J,F,N))},200)};
  6205. GjX=function(d,q,T){d.U=q;d.startTime=(0,g.cj)();d.duration=T;d.G()};
  6206. KNN=function(d){var q=[];d=d.match(PrY);for(var T=0;T<d.length;T++){var Y=d[T]===" "?NaN:Number(d[T]);q.push(isNaN(Y)?d[T]:Y)}return q};
  6207. LNQ=function(d,q,T){for(var Y="",e=0;e<d.length;e++){var U=d[e];Y=typeof U==="number"?Y+(U+(q[e]-U)*T):Y+U}return Y};
  6208. ez=function(d){g.f.call(this,{Y:"button",hF:["ytp-size-button","ytp-button"],Z:{title:d.N("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"t","data-priority":"9","data-title-no-tooltip":"{{data-title-no-tooltip}}"},j5:"{{icon}}"});this.api=d;this.E6=null;this.transition=new Yr;g.C(this,this.transition);this.W(d,"sizestylechange",this.S5);this.W(d,"fullscreentoggled",this.S5);this.W(d,"presentingplayerstatechange",this.S5);d.createClientVe(this.element,
  6209. this,139116);this.S5();this.listen("click",this.onClick);D$(d,this.element,this)};
  6210. WND=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);this.events.W(d,"standardControlsInitialized",function(){q.button=new ez(d);g.C(q,q.button);d.j_(q.button,"RIGHT_CONTROLS_RIGHT")})};
  6211. wFg=function(d){xT.call(this,d);var q=this,T={};this.rO=(T.TIMELY_ACTION_TRIGGER_TYPE_UNSPECIFIED=function(){return!1},T.TIMELY_ACTION_TRIGGER_TYPE_KEYBOARD_SEEK=function(Y){return Cr7(q,Y)},T.TIMELY_ACTION_TRIGGER_TYPE_PROGRESS_BAR_SEEK=function(Y){return Cr7(q,Y)},T.TIMELY_ACTION_TRIGGER_TYPE_PLAYER_CONTROLS_SHOWN=function(){return q.api.C().experiments.Wv("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")?q.S&&q.B:q.S&&q.L},T.TIMELY_ACTION_TRIGGER_TYPE_SPEEDMASTER=
  6212. function(){return q.yv},T);
  6213. this.yv=this.B=this.L=this.S=!1;this.T={};this.events=new g.aI(d);g.C(this,this.events);this.X=new g.fc(this.api.OD().t6);g.C(this,this.X);this.api.N("enable_smart_skip_web_player_bar_hover_length_threshold")&&g.Yv(this.api.C().experiments,"smart_skip_web_player_bar_min_hover_length_milliseconds")&&(T=g.Yv(this.api.C().experiments,"smart_skip_web_player_bar_min_hover_length_milliseconds"),this.lr=new g.f9(this.Hq,T,this),g.C(this,this.lr));this.events.W(d,"videodatachange",function(Y,e){if(Y!=="dataupdated"||
  6214. e.videoId!==q.videoId||!Yy(q.timelyActions,u3_(e)))q.onVideoDataChange(e)});
  6215. this.events.W(d,"presentingplayerstatechange",function(Y){q.h0(Y)});
  6216. d.N("enable_smart_skip_player_controls_shown_on_web")&&(this.events.W(d,"onShowControls",function(){q.S=!0;q.Hq()}),this.events.W(d,"onHideControls",function(){q.S=!1}),this.X.subscribe("hoverstart",function(){q.L=!0;
  6217. q.Hq()},this),this.X.subscribe("hoverend",function(){q.L=!1},this),d.N("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&(this.events.W(d,"progressBarHoverStart",function(){q.B=!0;
  6218. if(q.api.N("enable_smart_skip_web_player_bar_hover_length_threshold")){var Y;(Y=q.lr)==null||g.zh(Y)}else q.Hq()}),this.events.W(d,"progressBarHoverEnd",function(){q.B=!1;
  6219. if(q.api.N("enable_smart_skip_web_player_bar_hover_length_threshold")){var Y;(Y=q.lr)==null||Y.stop()}})));
  6220. d.N("enable_smart_skip_speedmaster_on_web")&&this.events.W(d,"speedmasterchanged",function(Y){(q.yv=Y)&&q.Hq()});
  6221. this.events.W(d,g.Sh("timelyAction"),function(Y){q.onCueRangeEnter(Y.getId())});
  6222. this.events.W(d,g.lG("timelyAction"),function(Y){q.onCueRangeExit(Y.getId())});
  6223. d.N("web_enable_keyboard_shortcut_for_timely_actions")&&this.events.W(d,"keyboardserviceglobalkeydown",function(Y,e){if((Ro?Y.altKey:Y.ctrlKey)&&Y.keyCode===39&&q.K&&q.G){var U;Y=g.D((U=Ui(q,q.G))==null?void 0:U.rendererContext,DNX);if(U=Ba(Y==null?void 0:Y.onTap))q.api.gO("innertubeCommand",U),e&&(e.xD=!0),e=mx(),(U=tt6(e))&&(Y=g.Q0(0))&&md(e.client,Y,U,void 0)}},this);
  6224. this.U=new g.f({Y:"div",hF:["ytp-player-content","ytp-timely-actions-content"]});this.U.hide();A7(d,"insertTimelyActionUi",function(Y){q.U.element.children.length>0&&g.xE(q.U.element);Y.classList.add("ytp-timely-actions-overlay");q.U.element.appendChild(Y)});
  6225. g.C(this,this.U);this.N("web_player_overlay_positioned_layout")?this.events.W(d,"basechromeinitialized",function(){q.api.A0(q.U.element,4,!0);q.U.element.setAttribute("data-overlay-order","10")}):g.o6(this.api,this.U.element,4)};
  6226. fk6=function(d){d.timelyActions&&(d.T=d.timelyActions.reduce(function(q,T){if(T.cueRangeId===void 0)return q;q[T.cueRangeId]=0;return q},{}))};
  6227. Ui=function(d,q){if(d.timelyActions){d=g.E(d.timelyActions);for(var T=d.next();!T.done;T=d.next())if(T=T.value,T.cueRangeId===q)return T}};
  6228. zt_=function(d,q){if((d=Ui(d,q))&&d.onCueRangeExit)return Ba(d.onCueRangeExit)};
  6229. Cr7=function(d,q){return d.j===void 0?!1:q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(q.seekLengthMilliseconds)===5E3?d.j===72:q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(q.seekLengthMilliseconds)===1E4?d.j===74:q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(q.seekLengthMilliseconds)===5E3?d.j===71:q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(q.seekLengthMilliseconds)===1E4?d.j===73:!1};
  6230. iA6=function(d,q){var T=Number(q==null?void 0:q.maxVisibleDurationMilliseconds);T&&(b0(d),d.UD=setTimeout(function(){if(d.G!==void 0&&(q==null?void 0:q.cueRangeId)===d.G){d.K=!1;var Y=zt_(d,d.G);Y&&d.api.gO("innertubeCommand",Y)}},T))};
  6231. b0=function(d){d.UD&&clearTimeout(d.UD);d.UD=void 0;d.K=!1};
  6232. u3_=function(d){if(d=d.getWatchNextResponse()){var q,T;d=(q=d.playerOverlays)==null?void 0:(T=q.playerOverlayRenderer)==null?void 0:T.timelyActionsOverlayViewModel;q=g.D(d,Ik2);if(q!=null&&q.timelyActions)return q==null?void 0:q.timelyActions.map(function(Y){return g.D(Y,mNI)}).filter(function(Y){return!!Y})}};
  6233. SkN=function(d){xT.call(this,d);var q=this;pV(this.api,"getPlaybackRate",function(){return q.api.getPlaybackRate()});
  6234. pV(this.api,"setPlaybackRate",function(T){typeof T==="number"&&q.api.setPlaybackRate(T)})};
  6235. Xi=function(d,q,T,Y){jq.call(this,"VOICE_BOOST",g.rR.eW);this.G=!1;this.J=d;this.TG=d.dB();this.T=q;this.j=T;this.hasVoiceBoostAudioTrack=Y;this.W(d,"videodatachange",this.U);this.setIcon(rBI());this.subscribe("select",this.X,this);this.U()};
  6236. Jc=function(d){xT.call(this,d);var q=this;this.events=new g.aI(d);g.C(this,this.events);this.events.W(d,"settingsMenuInitialized",function(){lk2(q)});
  6237. A7(this.api,"getVoiceBoostUserPreference",function(){return q.getVoiceBoostUserPreference()});
  6238. A7(this.api,"setVoiceBoostUserPreference",function(Y){q.setVoiceBoostUserPreference(Y)});
  6239. A7(this.api,"hasVoiceBoostAudioTrack",function(){return q.hasVoiceBoostAudioTrack()});
  6240. var T;this.G=(T=UoH())!=null?T:0;this.updateEnvironmentData()};
  6241. lk2=function(d){d.menuItem||(d.menuItem=new Xi(d.api,function(q){d.setVoiceBoostUserPreference(q)},function(){return d.getVoiceBoostUserPreference()},function(){return d.hasVoiceBoostAudioTrack()}),g.C(d,d.menuItem))};
  6242. vnn=function(d){d=d.Hl();if(!d)return!1;d=g.oE(d).exp||"";return d.includes("xpv")||d.includes("xpe")};
  6243. onI=function(d){d=g.E(g.si(d,!0));for(var q=d.next();!q.done;q=d.next())if(vnn(q.value))return!0;return!1};
  6244. Vwn=function(d,q){d=g.E(g.si(d,!0));for(var T=d.next();!T.done;T=d.next())if(T=T.value,vnn(T)){var Y={potc:"1",pot:q};T.url&&(T.url=VH(T.url,Y))}};
  6245. dUI=function(d){return g.G(function(q){if(q.U==1)return g.jD(q,2),g.B(q,d,4);if(q.U!=2)return g.ZX(q,0);g.nN(q);g.E6(q)})};
  6246. gV=function(d){xT.call(this,d);var q=this;this.useLivingRoomPoToken=!1;this.S=new g.sq;this.G=!1;this.rz=null;this.B=!1;this.T=null;this.X=!1;var T=d.C().getWebPlayerContextConfig();this.events=new g.aI(d);g.C(this,this.events);this.events.W(d,"spsumpreject",function(Y,e,U){q.X=e;Y&&q.B&&!q.T&&(q.N("html5_generate_content_po_token")&&U?q.Sp(U):q.N("html5_generate_session_po_token")&&qeH(q));q.T||q.api.oU("stp",{s:+q.B,b:+q.X})});
  6247. this.events.W(d,"poTokenVideoBindingChange",function(Y){q.Sp(Y)});
  6248. this.useLivingRoomPoToken=!(T==null||!T.useLivingRoomPoToken);d.addEventListener("csiinitialized",function(){q.rz=d.GN();var Y=(q.N("html5_generate_session_po_token")||q.N("html5_generate_content_po_token"))&&!q.useLivingRoomPoToken;try{if(q.N("html5_use_shared_owl_instance"))Ta_(q);else if(Y){q.rz.w1("pot_isc");var e=g.Yv(q.api.C().experiments,"html5_webpo_kaios_defer_timeout_ms");e?(q.j=Li(),g.s3(function(){$r(q)},e)):q.N("html5_webpo_idle_priority_job")?(q.j=Li(),g.zy(g.IY(),function(){$r(q)})):
  6249. $r(q)}}catch(U){U instanceof Error&&g.OL(U)}});
  6250. d.addEventListener("trackListLoaded",this.NN.bind(this));d.L_(this)};
  6251. YeY=function(d){var q=Md(d.experiments,"html5_web_po_request_key");return q?q:g.ho(d)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"};
  6252. ebI=function(d){var q=new JSI,T={},Y=(T["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",T);return new xH(q,d,function(){return Y})};
  6253. UU7=function(d){return new ym(d)};
  6254. Fi=function(d,q){d.N("html5_webpo_bge_ctmp")&&d.api.oU(q,{hwpo:!!d.U,hwpor:d.G})};
  6255. Ta_=function(d){var q,T;g.G(function(Y){if(Y.U==1)return Fi(d,"swpo_i"),d.j=Li(),Nc(d),g.B(Y,v3(),2);if(Y.U!=3)return q=Y.G,Fi(d,"swpo_co"),g.B(Y,kUY(q),3);T=Y.G;d.N("html5_web_po_token_disable_caching")||T.gt(150);d.U=T;Fi(d,"swpo_cc");dUI(T.J_()).then(function(){d.G=!0;d.S.resolve();Fi(d,"swpo_re")});
  6256. g.s3(function(){$r(d);Fi(d,"swpo_si")},0);
  6257. g.E6(Y)})};
  6258. JaY=function(d){var q=d.api.C(),T=ebI(YeY(q)),Y=T.ut.bind(T);T.ut=function(J){var F;return g.G(function(N){if(N.U==1)return g.B(N,Y(J),2);F=N.G;d.api.oU("itr",{});return N.return(F)})};
  6259. try{var e=UU7({J6:T,aG:{maxAttempts:5},AO:{wH:"CLEn",disable:q.experiments.Wv("html5_web_po_disable_remote_logging")||blg.includes(g.sb(q.XM)||""),a5:l2f(q.experiments),FG:q.experiments.Wv("wpo_gel_strz")?function(J){var F=X1H.get(J);F||(F=new H7f(J),F=new g.k1(F),X1H.set(J,F));return F}:void 0,
  6260. TOD:d.N("wpo_dis_lfdms")?0:1E3},lQw:g.OL});var U=new Ki({CH:e,J6:T,onError:g.OL});dUI(U.J_()).then(function(){d.G=!0;d.S.resolve()});
  6261. d.N("html5_web_po_token_disable_caching")||U.gt(150);g.C(d,e);g.C(d,U);d.U=U}catch(J){g.OL(J);var b;(b=e)==null||b.dispose()}};
  6262. $r=function(d){var q=d.api.C();d.rz.w1("pot_ist");d.U||JaY(d);d.N("html5_bandaid_attach_content_po_token")||(d.N("html5_generate_session_po_token")&&(Nc(d),qeH(d)),q=g.Yv(q.experiments,"html5_session_po_token_interval_time_ms")||0,q>0&&(d.L=g.$A(function(){Nc(d)},q)),d.B=!0)};
  6263. Nc=function(d){var q,T,Y,e;g.G(function(U){if(!d.N("html5_generate_session_po_token")||d.useLivingRoomPoToken)return U.return();q=d.api.C();T=g.Cs("EOM_VISITOR_DATA")||g.Cs("VISITOR_DATA");Y=q.wB?q.datasyncId:T;e=Md(q.experiments,"html5_mock_content_binding_for_session_token")||q.livingRoomPoTokenId||Y;q.qU=RN(d,e);g.E6(U)})};
  6264. RN=function(d,q){if(!d.U){if(d.j)try{return d.j(q)}catch(U){g.OL(U)}return""}try{d.rz.w1(d.G?"pot_cms":"pot_csms");var T={qw:!0,m9:!0,BO:q};d.N("html5_web_po_token_disable_caching")||(T.MI={yO:q,vN:!0,Tn:!0});var Y=d.U.RE(T);d.rz.w1(d.G?"pot_cmf":"pot_csmf");if(d.G){var e;(e=d.T)==null||e.resolve();d.T=null;d.X&&(d.X=!1,d.api.app.Lf().sO(!1))}return Y}catch(U){return g.OL(U),""}};
  6265. qeH=function(d){d.U&&(d.T=new yQ,d.S.promise.then(function(){d.rz.w1("pot_if");Nc(d)}))};
  6266. g.xr=function(d,q,T){g.ep(d.element,"ytp-suggestion-set",!!q.videoId);var Y=q.playlistId;T=q.Qg(T?T:"mqdefault.jpg");var e=null,U=null;q instanceof vT&&(q.lengthText?(e=q.lengthText||null,U=q.MD||null):q.lengthSeconds&&(e=g.MY(q.lengthSeconds),U=g.MY(q.lengthSeconds,!0)));var b=!!Y;Y=b&&SZ(Y).type==="RD";var J=q instanceof vT?q.isLivePlayback:null,F=q instanceof vT?q.isUpcoming:null,N=q.author,R=q.shortViewCount,x=q.publishedTimeText,y=[],h=[];N&&y.push(N);R&&(y.push(R),h.push(R));x&&h.push(x);T=
  6267. {title:q.title,author:N,author_and_views:y.join(" \u2022 "),aria_label:q.ariaLabel||g.bO("\u89c2\u770b\u300a$TITLE\u300b",{TITLE:q.title}),duration:e,timestamp:U,url:q.Xk(),is_live:J,is_upcoming:F,is_list:b,is_mix:Y,background:T?"background-image: url("+T+")":"",views_and_publish_time:h.join(" \u2022 "),autoplayAlternativeHeader:q.yh};q instanceof lS&&(T.playlist_length=q.playlistLength);d.update(T)};
  6268. g.yV=function(d){var q=d.C(),T=g.MI||g.o9?{style:"will-change: opacity"}:void 0,Y=q.T,e=["ytp-modern-videowall-still"];q.U&&e.push("ytp-videowall-show-text");g.f.call(this,{Y:"a",hF:e,Z:{href:"{{url}}",target:Y?q.K:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},V:[{Y:"div",D:"ytp-modern-videowall-still-image",Z:{style:"{{background}}"},V:[{Y:"span",D:"ytp-modern-videowall-still-info-duration",j5:"{{duration}}"}]},{Y:"span",D:"ytp-modern-videowall-still-info",
  6269. Z:{"aria-hidden":"true"},V:[{Y:"span",D:"ytp-modern-videowall-still-info-bg",V:[{Y:"span",D:"ytp-modern-videowall-still-info-content",Z:T,V:[{Y:"span",D:"ytp-modern-videowall-still-info-title",j5:"{{title}}"},{Y:"span",D:"ytp-modern-videowall-still-info-author",j5:"{{author_and_views}}"},{Y:"span",D:"ytp-modern-videowall-still-info-live",j5:"\u76f4\u64ad"}]}]}]},{Y:"span",hF:["ytp-modern-videowall-still-listlabel-regular","ytp-modern-videowall-still-listlabel"],Z:{"aria-hidden":"true"},V:[{Y:"span",
  6270. D:"ytp-modern-videowall-still-listlabel-icon"},"\u64ad\u653e\u5217\u8868",{Y:"span",D:"ytp-modern-videowall-still-listlabel-length",V:[" (",{Y:"span",j5:"{{playlist_length}}"},")"]}]},{Y:"span",hF:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],Z:{"aria-hidden":"true"},V:[{Y:"span",D:"ytp-modern-videowall-still-listlabel-mix-icon"},"\u89c6\u9891\u5408\u8f91",{Y:"span",D:"ytp-modern-videowall-still-listlabel-length",j5:" (50+)"}]}]});this.suggestion=null;this.U=
  6271. Y;this.api=d;this.G=new g.aI(this);g.C(this,this.G);this.listen("click",this.onClick);this.listen("keypress",this.onKeyPress);this.G.W(d,"videodatachange",this.onVideoDataChange);d.createServerVe(this.element,this);this.onVideoDataChange()};
  6272. g.sUj=function(d,q){if(d.suggestion!==q){d.suggestion=q;var T=d.api.C();g.xr(d,q,"hqdefault.jpg");if(g.dn(T)&&!d.api.N("web_player_log_click_before_generating_ve_conversion_params")){T=q.Xk();var Y={};g.OF(d.api,"addEmbedsConversionTrackingParams",[Y]);T=g.y6(T,Y);d.updateValue("url",T)}(q=(q=q.sessionData)&&q.itct)&&d.api.setTrackingParams(d.element,q)}};
  6273. giN=function(d,q){g.f.call(this,{Y:"div",hF:["ytp-fullscreen-grid"],V:[{Y:"div",D:"ytp-fullscreen-grid-hover-overlay",Z:{title:"{{title}}","aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid","data-tooltip-offset-y":"-20"},V:[{Y:"div",D:"ytp-fullscreen-grid-hover-overlay-chevron",V:[{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"g",Z:{filter:"url(#filter0_d_3104_799356)"},V:[{Y:"path",Z:{d:"M5.29 15.20C4.92 14.84 4.90 14.26 5.22 13.86L5.29 13.79L11.99 7.08L18.70 13.79C19.09 14.18 19.09 14.81 18.70 15.20C18.31 15.59 17.68 15.59 17.29 15.20L11.99 9.91L6.70 15.20L6.63 15.27C6.23 15.59 5.65 15.57 5.29 15.20Z",
  6274. fill:"white"}}]},{Y:"defs",V:[{Y:"filter",Z:{"color-interpolation-filters":"sRGB",filterUnits:"userSpaceOnUse",height:"26",width:"26",x:"-1",y:"-1"},V:[{Y:"feFlood",Z:{"flood-opacity":"0",result:"BackgroundImageFix"}},{Y:"feColorMatrix",Z:{"in":"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}},{Y:"feOffset"},{Y:"feGaussianBlur",Z:{stdDeviation:"0.5"}},{Y:"feComposite",Z:{in2:"hardAlpha",operator:"out"}},{Y:"feColorMatrix",Z:{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0"}},
  6275. {Y:"feBlend",Z:{in2:"BackgroundImageFix",mode:"normal",result:"effect1_dropShadow_3104_799356"}},{Y:"feBlend",Z:{"in":"SourceGraphic",in2:"effect1_dropShadow_3104_799356",mode:"normal",result:"shape"}}]}]}]}]}]},{Y:"div",D:"ytp-fullscreen-grid-main-content",V:[{Y:"div",D:"ytp-fullscreen-grid-header",V:[{Y:"div",D:"ytp-fullscreen-grid-header-buttons",V:[{Y:"button",hF:["ytp-grid-replay-button","ytp-button"],Z:{title:"\u91cd\u653e","aria-keyshortcuts":"r","aria-label":"\u91cd\u653e","data-title-no-tooltip":"\u91cd\u653e"},
  6276. V:[kyD()]},{Y:"button",D:"ytp-fullscreen-grid-header-button",Z:{"aria-label":"{{ariaLabel}}"}}]},{Y:"button",hF:["ytp-grid-menu-close","ytp-button"],Z:{"aria-label":"\u5173\u95ed"},V:[g.y9()]}]},{Y:"div",D:"ytp-fullscreen-grid-stills-container"}]}]});var T=this;this.player=d;this.stills=[];this.videoData=null;this.currentState=0;this.L=this.Qv("ytp-fullscreen-grid-main-content");this.X=this.Qv("ytp-fullscreen-grid-header");d=this.Qv("ytp-fullscreen-grid-header-buttons");this.j=this.Qv("ytp-grid-menu-close");
  6277. this.U=this.Qv("ytp-grid-replay-button");this.G=this.Qv("ytp-fullscreen-grid-header-button");this.K=this.Qv("ytp-fullscreen-grid-stills-container");this.T=new g.aI(this);g.C(this,this.T);this.B=q;if(this.X&&this.L&&d&&this.K&&this.G&&this.j){if(q=this.Qv("ytp-fullscreen-grid-hover-overlay"))this.W(q,"click",this.PE),D$(this.player,q,this);this.U&&(this.W(this.U,"click",function(Y){T.oO(Y)}),D$(this.player,this.U,this));
  6278. this.G&&this.W(this.G,"click",this.PE);this.j&&this.W(this.j,"click",this.PE);if(q=this.player.getVideoData(1))this.videoData=q,$Un(this);this.player.createClientVe(this.X,this,223051);this.T.W(this.player,"videodatachange",this.onVideoDataChange);this.T.W(this.player,"presentingplayerstatechange",this.h0)}};
  6279. $Un=function(d){var q=d.player.getPlayerStateObject();g.ep(d.player.getRootNode(),"ytp-grid-ended-state",g.I(q,2))};
  6280. QV=function(d){xT.call(this,d);var q=this;this.L=this.G=this.U=0;this.X=null;this.T=0;this.isEnded=!1;this.B=null;var T=new g.aI(d);g.C(this,T);this.UD=this.api.N("web_player_imax_theater_mode");this.j=this.api.N("web_player_enable_fullscreen_grid_components");T.W(d,"fullscreentoggled",function(){hc(q)});
  6281. T.W(d,"autohideupdate",function(Y){Y&&q.U===2&&Hc(q,1)});
  6282. T.W(d,"videodatachange",function(){if(q.j){var Y=q.api.getVideoData(1);q.videoData!==Y&&q.U===2&&Hc(q,1);q.videoData=Y}},this);
  6283. T.W(d,"sizestylechange",function(){q.j&&hc(q)});
  6284. A7(this.api,"setFullscreenQuickActions",function(Y){q.setFullscreenQuickActions(Y)});
  6285. A7(this.api,"setPlayerOverlayVideoDetailsRenderer",function(Y){q.setPlayerOverlayVideoDetailsRenderer(Y)});
  6286. this.j&&FKQ(this,T,d)};
  6287. FKQ=function(d,q,T){q.W(T,"keyboardserviceglobalkeydown",function(Y,e){d.j&&Y.keyCode===86&&!Y.repeat&&d.U!==0&&(e&&(e.aB=!0),Na7(d))});
  6288. q.W(d.api.getRootNode(),"wheel",function(Y){if(!d.B){var e;if(d.j&&(e=d.S)!=null&&e.element&&d.U!==0&&Mc(d))if(g.d9(d.api.getRootNode(),"ytp-grid-scrolling"),d.T===0&&(d.T=window.innerHeight),d.U===1)d.T!==0&&(d.G+=Y.deltaY/d.T,d.G=Math.min(Math.max(d.G,0),.85),cc(d),Rb_(d,Math.abs(d.G)>=.85));else if(d.U===2){e=Y.deltaY<0;var U,b=((U=d.S)==null?void 0:U.element.scrollTop)===0;e&&b?d.T!==0&&(d.G+=Y.deltaY/d.T,cc(d),Rb_(d,Math.abs(d.G)>=.85)):d.G!==0&&(d.G=0,cc(d))}}},{passive:!0});
  6289. q.W(T,"standardControlsInitialized",function(){if(!d.S){d.S=new giN(d.api,d.lr.bind(d));g.C(d,d.S);var Y=d.api.getRootNode().querySelector(".ytp-chrome-bottom");Y&&Y.parentNode&&Y.parentNode.insertBefore(d.S.element,Y.nextSibling)}});
  6290. q.W(T,"presentingplayerstatechange",function(){Ei(d)});
  6291. q.W(T,"autonavvisibility",function(){Ei(d)});
  6292. d.api.Jp().subscribe("visibilitystatechange",function(){Ei(d)});
  6293. xUf(d,d.U)};
  6294. Rb_=function(d,q){d.X&&clearTimeout(d.X);q?yaf(d):d.X=window.setTimeout(function(){yaf(d)},150)};
  6295. yaf=function(d){d.X&&(clearTimeout(d.X),d.X=null);d.T=0;d.j&&d.U!==0&&(Math.abs(d.G)>=.15&&Na7(d,!0),d.G=0,cc(d),g.TR(d.api.getRootNode(),"ytp-grid-scrolling"))};
  6296. Na7=function(d,q){d.j&&(q!==void 0&&q||(d.B&&clearTimeout(d.B),d.B=window.setTimeout(function(){d.B=null},1E3)),d.U===1?Hc(d,2):Hc(d,1))};
  6297. Mc=function(d){return d.api.isFullscreen()||d.UD&&d.api.E6()};
  6298. hc=function(d){var q=Mc(d);g.ep(d.api.getRootNode(),"ytp-full-bleed-player",q);d.K&&g.dv(d.K,q);d.playerOverlayVideoDetailsRenderer&&g.dv(d.playerOverlayVideoDetailsRenderer,q);d.j&&Ei(d)};
  6299. Ei=function(d){if(d.j){var q;if(d.api.getPresentingPlayerType()===2||d.api.yX()||((q=g.KV(d.api))==null?0:q.Rl())||d.api.isMinimized())Hc(d,0);else{if(q=g.I(d.api.getPlayerStateObject(),2))Hc(d,2);else if(d.isEnded&&!q){var T=Mc(d)?1:0;d.isEnded=q;Hc(d,T)}else Mc(d)?d.U!==2&&Hc(d,1):Hc(d,0);d.isEnded=q}}};
  6300. Hc=function(d,q){d.U=q;var T;(T=d.S)==null||T.XC(q);d.G=0;cc(d);xUf(d,q)};
  6301. xUf=function(d,q){d=d.api.getRootNode();g.ep(d,"ytp-fullscreen-grid-peaking",q===1);g.ep(d,"ytp-fullscreen-grid-active",q===2)};
  6302. cc=function(d){requestAnimationFrame(function(){var q=d.G-d.L,T=q;d.G!==0&&(T=Math.max(-.01,Math.min(q,.01)));d.L+=T;d.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+d.L.toString());d.L!==d.G&&cc(d)})};
  6303. hbf=function(d){xT.call(this,d);var q=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.aI(d);g.C(this,this.events);this.events.W(d,"heartbeatRequest",function(T){if(q.freePreviewUsageDetails.length||q.freePreviewWatchedDuration!==null)T.heartbeatRequestParams||(T.heartbeatRequestParams={}),T.heartbeatRequestParams.unpluggedParams||(T.heartbeatRequestParams.unpluggedParams={}),q.freePreviewUsageDetails.length>0?T.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails=
  6304. q.freePreviewUsageDetails:T.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+q.freePreviewWatchedDuration}});
  6305. A7(d,"setFreePreviewWatchedDuration",function(T){q.freePreviewWatchedDuration=T});
  6306. A7(d,"setFreePreviewUsageDetails",function(T){q.freePreviewUsageDetails=T})};
  6307. jz=function(d){g.W.call(this);this.features=[];var q=this.G,T=new zk(d),Y=new yD(d),e=new c$(d),U=new gV(d);var b=g.xv(d.C())?void 0:new Ps(d);var J=new Ma(d),F=new twn(d),N=new SkN(d),R=new fR(d);var x=g.xv(d.C())?new hbf(d):void 0;var y=d.N("html5_enable_ssap")?new pFY(d):void 0;var h;var H=(h=d.C().getWebPlayerContextConfig())!=null&&h.cinematicSettingsAvailable?new KR(d):void 0;h=new wR(d);var a=d.N("enable_courses_player_overlay_purchase")?new ge1(d):void 0;var p=g.cT(d.C())?new XIg(d):void 0;
  6308. var t=new Ws(d);var n=d.C().T?new qo2(d):void 0;var K=g.dn(d.C())?new de_(d):void 0;var P=d.N("web_player_move_autonav_toggle")&&d.C().zX?new i07(d):void 0;var w=g.cT(d.C())?new QWn(d):void 0;var l=d.N("web_enable_speedmaster")&&g.cT(d.C())?new lf(d):void 0;var m=d.C().Vt?void 0:new WND(d);var b_=d.N("report_pml_debug_signal")?new D7H(d):void 0;var x2=new KGN(d),JY=new AG(d);var s6=g.KG(d.C())?new San(d):void 0;var qH=navigator.mediaSession&&window.MediaMetadata&&d.C().Oi?new H$(d):void 0;var O6=
  6309. d.N("html5_enable_drc")&&!d.C().X?new kT(d):void 0;var SD=new Hs(d);var dL=g.cT(d.C())?new XFN(d):void 0;var hE=d.N("html5_enable_d6de4")?new E8(d):void 0;var JE=g.cT(d.C())&&d.N("web_sleep_timer")?new Dt(d):void 0;var tY=g.dn(d.C())?new YoQ(d):void 0;var bw=new W$(d),kc=new vCj(d),fB=new h$j(d);var XV=d.N("enable_sabr_snackbar_message")?new Mw1(d):void 0;var r=d.N("web_enable_timely_actions")?new wFg(d):void 0;var Ch=new Gk(d);var BR=g.cT(d.C())?new QV(d):void 0;var Y2=d.N("html5_enable_voice_boost")?
  6310. new Jc(d):void 0;var AE=d.N("web_player_loop_settings_menu")&&d.C().PR?new Hq1(d):void 0;var A=d.N("html5_masthead_default_playback_rate")&&!g.xv(d.C())?new jWj(d):void 0;var T7=d.N("web_player_playable_sequences_refactor")?new fIN(d):void 0;d=d.N("html5_enable_audio_quality_setting")&&d.N("html5_enable_audio_quality_setting_feature")?new cs(d):void 0;q.call(this,T,Y,e,U,b,J,F,N,R,x,y,H,h,a,p,t,n,K,P,w,l,m,b_,x2,JY,s6,void 0,qH,O6,SD,void 0,dL,hE,JE,tY,void 0,bw,kc,fB,void 0,XV,r,Ch,BR,Y2,void 0,
  6311. AE,void 0,A,T7,d)};
  6312. HlQ=function(){this.U=this.G=NaN};
  6313. QUg=function(d,q){this.Pv=d;this.timerName="";this.j=!1;this.U=NaN;this.T=new HlQ;this.G=q||null;this.j=!1};
  6314. Mkn=function(d,q,T){var Y=g.bS(q.Mk)&&!q.Mk.X;if(q.Mk.w4&&(TF(q.Mk)||q.Mk.z2==="shortspage"||Zi(q.Mk)||Y)&&!d.j){d.j=!0;d.X=q.clientPlaybackNonce;g.Cs("TIMING_ACTION")||Wq("TIMING_ACTION",d.Pv.csiPageType);d.Pv.csiServiceName&&Wq("CSI_SERVICE_NAME",d.Pv.csiServiceName);if(d.G){Y=d.G.GN();for(var e=g.E(Object.keys(Y)),U=e.next();!U.done;U=e.next())U=U.value,pU(U,Y[U],d.timerName);Y=g.iF(v7D)(d.G.lk);g.ZO(Y,d.timerName);Y=d.G;Y.G={};Y.lk={}}g.ZO({playerInfo:{visibilityState:g.iF(lPQ)()},playerType:"LATENCY_PLAYER_HTML5"},
  6315. d.timerName);d.S!==q.clientPlaybackNonce||Number.isNaN(d.U)||(nU("_start",d.timerName)?T=g.iF(cm)("_start",d.timerName)+d.U:g.OL(new g.CW("attempted to log gapless pbs before CSI timeline started",{cpn:q.clientPlaybackNonce})));T&&!nU("pbs",d.timerName)&&aN(d,T)}};
  6316. aN=function(d,q,T){pU("pbs",q!=null?q:(0,g.cj)(),T!=null?T:d.timerName)};
  6317. Ac=function(d){XWf();b4N();d.timerName=""};
  6318. caN=function(d){if(d.G){var q=d.G;q.G={};q.lk={}}d.j=!1;d.S=void 0;d.U=NaN};
  6319. Eig=function(d,q){g.YP.call(this);this.Mk=d;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.G=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.B={};this.U=0;if(d=q.session_data)this.sessionData=mR(d,"&");this.index=Math.max(0,Number(q.index)||0);this.loop=!!q.loop;this.startSeconds=Number(q.startSeconds)||0;this.title=q.playlist_title||"";this.description=q.playlist_description||"";this.author=
  6320. q.author||q.playlist_author||"";q.video_id&&(this.items[this.index]=q);if(d=q.api)typeof d==="string"&&d.length===16?q.list="PL"+d:q.playlist=d;if(d=q.list)switch(q.listType){case "user_uploads":this.listId=new m8("UU","PLAYER_"+d);break;default:var T=q.playlist_length;T&&(this.length=Number(T)||0);this.listId=SZ(d);if(d=q.video)this.items=d.slice(0),this.loaded=!0}else if(q.playlist){d=q.playlist.toString().split(",");this.index>0&&(this.items=[]);d=g.E(d);for(T=d.next();!T.done;T=d.next())(T=T.value)&&
  6321. this.items.push({video_id:T});this.length=this.items.length;if(d=q.video)this.items=d.slice(0),this.loaded=!0}this.setShuffle(!!q.shuffle);if(d=q.suggestedQuality)this.quality=d;this.B=fI(q,"playlist_");this.j=(q=q.thumbnail_ids)?q.split(","):[]};
  6322. jUD=function(d){return!!(d.playlist||d.list||d.api)};
  6323. ajn=function(d){var q=d.index+1;return q>=d.length?0:q};
  6324. Aa2=function(d){var q=d.index-1;return q<0?d.length-1:q};
  6325. g.pa=function(d,q,T,Y){q=q!==void 0?q:d.index;q=d.items&&q in d.items?d.items[d.order[q]]:null;var e=null;q&&(T&&(q.autoplay="1"),Y&&(q.autonav="1"),e=new g.yM(d.Mk,q),g.C(d,e),e.Qs=!0,e.startSeconds=d.startSeconds||e.clipStart||0,d.listId&&(e.playlistId=d.listId.toString()));return e};
  6326. p1H=function(d,q){d.index=g.Cn(q,0,d.length-1);d.startSeconds=0};
  6327. ZlY=function(d,q){if(q.video&&q.video.length){d.title=q.title||"";d.description=q.description;d.views=q.views;d.likes=q.likes;d.dislikes=q.dislikes;d.author=q.author||"";var T=q.loop;T&&(d.loop=T);T=g.pa(d);d.items=[];for(var Y=g.E(q.video),e=Y.next();!e.done;e=Y.next())if(e=e.value)e.video_id=e.encrypted_id,d.items.push(e);d.length=d.items.length;(q=q.index)?d.index=q:d.findIndex(T);d.setShuffle(!1);d.loaded=!0;d.U++;d.G&&d.G()}};
  6328. raD=function(d,q){var T,Y,e,U,b,J,F;return g.G(function(N){if(N.U==1){T=g.i9();var R=d.C(),x={context:g.jf(d),playbackContext:{contentPlaybackContext:{ancestorOrigins:R.ancestorOrigins}}},y=R.getWebPlayerContextConfig();if(y==null?0:y.encryptedHostFlags)x.playbackContext.contentPlaybackContext.encryptedHostFlags=y.encryptedHostFlags;if(y==null?0:y.hideInfo)x.playerParams={showinfo:!1};y=R.embedConfig;var h=d.eC;var H=q.docid||q.video_id||q.videoId||q.id;if(!H){H=q.raw_embedded_player_response;if(!H){var a=
  6329. q.embedded_player_response;a&&(H=JSON.parse(a))}if(H){var p,t,n,K,P,w;H=((w=g.D((p=H)==null?void 0:(t=p.embedPreview)==null?void 0:(n=t.thumbnailPreviewRenderer)==null?void 0:(K=n.playButton)==null?void 0:(P=K.buttonRenderer)==null?void 0:P.navigationEndpoint,g.EB))==null?void 0:w.videoId)||null}else H=null}p=(p=H)?p:void 0;t=d.playlistId?d.playlistId:q.list;n=q.listType;if(t){var l;n==="user_uploads"?l={username:t}:l={playlistId:t};Oln(y,h,p,q,l,R.experiments);x.playlistRequest=l}else q.playlist?
  6330. (l={templistVideoIds:q.playlist.toString().split(",")},Oln(y,h,p,q,l,R.experiments),x.playlistRequest=l):p&&(l={videoId:p},h&&R.N("embeds_enable_per_video_embed_config")?l.serializedThirdPartyEmbedConfig=h:y&&(l.serializedThirdPartyEmbedConfig=y),x.singleVideoRequest=l);Y=x;e=g.vG(niN);g.jD(N,2);return g.B(N,g.GY(T,Y,e),4)}if(N.U!=2)return U=N.G,b=d.C(),q.raw_embedded_player_response=U,b.rO=YO(q,g.dn(b)),b.j=b.rO==="EMBEDDED_PLAYER_MODE_PFL",U&&(J=U,J.trackingParams&&vN(J.trackingParams)),N.return(new g.yM(b,
  6331. q));F=g.nN(N);F instanceof Error||(F=Error("b259802748"));g.Zz(F);return N.return(d)})};
  6332. Oln=function(d,q,T,Y,e,U){Y.index&&(e.playlistIndex=String(Number(Y.index)+1));e.videoId=T?T:"";q&&U.Wv("embeds_enable_per_video_embed_config")?e.serializedThirdPartyEmbedConfig=q:d&&(e.serializedThirdPartyEmbedConfig=d)};
  6333. g.Oi=function(d,q){Zf.get(d);Zf.set(d,q)};
  6334. g.na=function(d){g.YP.call(this);this.loaded=!1;this.player=d};
  6335. tkX=function(){this.U=[];this.G=[]};
  6336. g.si=function(d,q){return q?d.G.concat(d.U):d.G};
  6337. g.rV=function(d,q){switch(q.kind){case "asr":BaH(q,d.U);break;default:BaH(q,d.G)}};
  6338. BaH=function(d,q){g.QN(q,function(T){return d.equals(T)})||q.push(d)};
  6339. g.tc=function(d){g.W.call(this);this.mZ=d;this.U=new tkX;this.T=null;this.S=[];this.B=[]};
  6340. g.Bc=function(d,q,T){g.tc.call(this,d);this.videoData=q;this.audioTrack=T;this.G=null;this.j=!1;this.S=q.YA;this.B=q.gQ;this.j=g.XG(q)};
  6341. g.KKN=function(d,q){var T;return d.C().N("safari_live_drm_captions_fix")&&((T=d.getVideoData())==null?0:T.It())?!1:g.xv(d.C())&&!q.isManifestless};
  6342. g.Ka=function(d,q){return iW(d.info.mimeType)?q?d.info.itag===q:!0:!1};
  6343. g.GrX=function(d,q){if(d.G!=null&&g.KKN(q,d.G)&&d.G.G.rawcc!=null)return!0;if(!d.aN())return!1;q=!!d.G&&d.G.isManifestless&&Object.values(d.G.G).some(function(T){return g.Ka(T,"386")});
  6344. d=!!d.G&&!d.G.isManifestless&&g.xF_(d.G);return q||d};
  6345. g.GV=function(d,q,T,Y,e,U){g.tc.call(this,d);this.videoId=T;this.Qe=e;this.eventId=U;this.X={};this.G=null;d=Y||g.oE(q).hl||"";d=d.split("_").join("-");this.j=VH(q,{hl:d})};
  6346. LKD=function(d,q){g.W.call(this);var T=this;this.J=d;this.T=q;this.lk={};this.G={};this.U=null;this.j=new Set;this.S=new g.aI(this);this.fC={a0D:function(){return T.T}};
  6347. this.X=this.J.N("web_player_defer_modules");this.OS=new Map;g.C(this,this.S);this.S.W(d,"videodatachange",this.onVideoDataChange)};
  6348. krg=function(d,q){d.U=q};
  6349. g.La=function(d){return d.OS.get("captions")};
  6350. fj1=function(d,q){switch(q){case "ad":return P6j(d);case "annotations_module":return d.J.isEmbedsShortsMode()?d=!1:(q=d.J,d=q.C(),q=q.getVideoData(),d=d.j||q.YJ||d.controlsType==="3"?!1:d.aU.isEmpty()&&d.playerStyle!=="annotation-editor"&&d.playerStyle!=="live-dashboard"?!!q.RU||!!g.Y4(q)||!!g.UF(q):!0),d;case "asmjs":return WK6(d);case "creatorendscreen":return C6D(d);case "embed":return g.dn(d.J.C());case "endscreen":return g.uh1(d);case "heartbeat":return d.ZK();case "kids":return Ni(d.J.C());
  6351. case "remote":return d.J.C().Aq;case "miniplayer":return d.J.C().showMiniplayerUiWhenMinimized;case "offline":return d.J.C().t0;case "captions":return DUY(d);case "unplugged":return g.XW(d.J.C());case "ux":return d.J.C().AF;case "webgl":return w1j(d);case "ypc":return d.Gi();case "ypc_clickwrap":return d=d.J.getVideoData(),d.Kz&&!d.Q8;case "yto":return d.J.N("web_player_playable_sequences_refactor")?!1:!!d.J.getVideoData().K.includes("yto");default:return g.Zz(Error("Module descriptor "+q+" does not match")),
  6352. !1}};
  6353. kr=function(d,q,T,Y,e){var U;T=T===void 0?!1:T;Y=Y===void 0?!1:Y;var b=d.OS.get(q);if(!b||Y)if(e||(e=function(){kr(d,q,T,Y)}),U||(U=function(){d.J.Lz(q)}),b=b||zbI(d,q,fj1(d,q),e,U))d.OS.set(q,b),b.create(),d.J.publish("modulecreated",q),T&&d.J.uv("onApiChange")};
  6354. IjY=function(d){var q=q===void 0?!1:q;var T,Y,e,U,b;return g.G(function(J){if(J.U==1)return(T=d.OS.get("asmjs"))&&!q?J.return(T):(Y=Zf.get("asmjs"))!=null?(e=Y,J.tF(2)):g.B(J,new Promise(function(F,N){ilY(d,"asmjs",function(){var R=Zf.get("asmjs");R?F(R):N("cannot load module asmjs")},N)}),3);
  6355. J.U!=2&&(e=J.G);U=e;if(!U)return J.return(Promise.reject("cannot load module asmjs"));b=new U(d.J);d.OS.set("asmjs",b);b.create();return J.return(b)})};
  6356. lj1=function(d){mU6(d)&&d.AV();SeX(d)&&(kr(d,"captions",!0),kr(d,"endscreen"),d.fB(),kr(d,"creatorendscreen",!0))};
  6357. SeX=function(d){var q=d.J.getVideoData(),T=d.X&&!q.isInlinePlaybackNoAd;d.J.N("html5_defer_modules_on_ads_only")&&!q.isAd()&&(T=!1);return T};
  6358. mU6=function(d){d=d.J.getVideoData();var q;if(q=d.N("web_player_defer_ad")){if(g.cR(d.K,"ad")||Pvn(d)||d.enableServerStitchedDai)d=!1;else{q=d.playerResponse;d=d.startSeconds;var T=q==null?void 0:q.adPlacements;if(q=T){q=Number.MAX_VALUE;T=g.E(T);for(var Y=T.next();!Y.done;Y=T.next())if(Y=Y.value.adPlacementRenderer){var e=void 0,U=(e=Y.config)==null?void 0:e.adPlacementConfig;e=void 0;if(((e=U)==null?void 0:e.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var b=e=void 0;U=Number((e=U)==null?void 0:(b=
  6359. e.adTimeOffset)==null?void 0:b.offsetStartMilliseconds)||0;b=e=void 0;Y=Number(((e=Y.renderer)==null?void 0:(b=e.adBreakServiceRenderer)==null?void 0:b.prefetchMilliseconds)||0);Y=U-Y;Y<q&&(q=Y)}}q=q-5E3<=d*1E3}d=q?!1:!0}q=d}return q};
  6360. DUY=function(d){var q=d.J.getVideoData();return!!q.V5||!!q.captionTracks.length||g.GrX(q,d.J)};
  6361. g.uh1=function(d){var q=d.J.C();if(q.j||Zi(q)||q.X||!q.LC&&!q.Kz)return!1;var T=d.J.getPresentingPlayerType();if(T===2||T===3)return!1;d=d.J.getVideoData();if(!d)return!1;T=!d.isLiveDefaultBroadcast||q.N("allow_poltergust_autoplay");T=d.isLivePlayback&&(!q.N("allow_live_autoplay")||!T);q=d.isLivePlayback&&q.N("allow_live_autoplay_on_mweb");return!T||q};
  6362. g.lH=function(d){return d.OS.get("webgl")};
  6363. w1j=function(d){var q=d.J.getVideoData();d=d.J.C();var T=g.j2g(),Y=d.N("enable_spherical_kabuki"),e=g.pI(d);if(g.qC(q))return T||Y||e;if(g.VM(q))return e||T||Y;if(g.dm(q))return e||T||!1;if(g.ux(q))return e||!1;T=q.U&&q.U.video&&q.U.video.isHdr();return e&&!g.ft(q)&&!T&&d.N("enable_webgl_noop")};
  6364. P6j=function(d){if(d.J.C().j)return!1;if(d=d.J.getVideoData(1).getPlayerResponse()){var q=d.adPlacements;if(q)for(var T=0;T<q.length;T++)if(q[T].adPlacementRenderer)return!0;if(d.adSlots)return!0}return!1};
  6365. C6D=function(d){if(d.J.isEmbedsShortsMode())return!1;d=d.J;var q=d.C();if(q.j)return!1;var T;if(((T=q.getWebPlayerContextConfig())==null?0:T.embedsEnableEmc3ds)||q.controlsType==="3")return!1;if(q.playerStyle==="creator-endscreen-editor")return!0;T=d.getVideoData();return!!T&&(!!g.m66(T)||!!g.S7f(T))};
  6366. zbI=function(d,q,T,Y,e){try{if(T){var U=Zf.get(q);if(U)return new U(d.J);ilY(d,q,Y,e)}else d.J.Lz(q)}catch(b){d.J.Lz(q),g.Zz(b)}return null};
  6367. Pc=function(d,q,T){if(d.J.C().N("html5_dispose_modules_in_order"))for(var Y=g.E(viI),e=Y.next();!e.done;e=Y.next()){e=e.value;var U=d.OS.get(e);U&&(T||U.Ux(q))&&(g.T1(U),d.OS.delete(e))}else for(Y=g.E(d.OS),e=Y.next();!e.done;e=Y.next())U=g.E(e.value),e=U.next().value,(U=U.next().value)&&(T||U.Ux(q))&&(g.T1(U),d.OS.delete(e));d.J.publish("modulesDestroyed",q)};
  6368. Wc=function(d){return d.OS.get("ad")};
  6369. oi_=function(d){if(Ni(d.J.C()))return d.OS.get("kids")};
  6370. I6=function(d){if(d.J.C().Aq)return d.OS.get("remote")};
  6371. g.Ca=function(d){if(g.XW(d.J.C()))return d.OS.get("unplugged")};
  6372. EC_=function(d){if(d.J.C().AF)return d.OS.get("ux")};
  6373. Vk6=function(d){if(d.J.C().showMiniplayerUiWhenMinimized)return d.OS.get("miniplayer")};
  6374. u0=function(d){if(d.J.C().t0)return d.OS.get("offline")};
  6375. g.Df=function(d){return d.OS.get("annotations_module")};
  6376. wV=function(d){return d.OS.get("creatorendscreen")};
  6377. dkN=function(d){var q,T;return g.G(function(Y){if(Y.U==1)return g.B(Y,IjY(d),2);T=q=Y.G;return Y.return(T)})};
  6378. qWD=function(d){return rg(function(){var q;return(q=d.OS.get("asmjs"))!=null?q:dkN(d)})};
  6379. WK6=function(d){return d.J.C().N("html5_allow_asmjs")};
  6380. ilY=function(d,q,T,Y){if(d.T){var e=TB_[q];YWQ(d,d.T+e,function(){d.j.add(e);T.call(d)},Y)}};
  6381. YWQ=function(d,q,T,Y){function e(){d.JF()||Y.call(d)}
  6382. function U(){d.JF()||T.call(d)}
  6383. for(var b=g.YE("SCRIPT"),J=!1,F,N=0;N<b.length;N++){var R=b[N];if(R.src===q||R.getAttribute("data-original-src")===q)F=R}F||(F=g.FE("SCRIPT"),F.setAttribute("data-original-src",q),J=!0);var x=F.onload;F.onload=function(a){x1(U);x&&x.apply(window,[a])};
  6384. var y=F.onerror;F.onerror=function(a){if(Math.random()<.01){var p=new g.CW("Unable to load player module",q,document.location&&document.location.origin);g.Zz(p)}x1(e);y&&y(a)};
  6385. var h=F,H=h.onreadystatechange;h.onreadystatechange=function(a){switch(h.readyState){case "loaded":case "complete":x1(U)}H&&H(a)};
  6386. J&&((b=d.J.C().cspNonce)&&F.setAttribute("nonce",b),g.QY(F,g.QH(q)),b=g.YE("HEAD")[0]||document.body,b.insertBefore(F,b.firstChild),d.addOnDisposeCallback(function(){F.parentNode&&F.parentNode.removeChild(F)}))};
  6387. ez6=function(d,q,T,Y,e,U){g.YP.call(this);var b=this;this.target=d;this.api=q;this.O1=T;this.U=0;this.X=!1;this.T=new g.wt(NaN,NaN);this.G=new g.aI(this);this.rO=this.j=this.L=null;g.C(this,this.G);q=e||U?4E3:3E3;this.K=new g.f9(function(){fa(b,1,!1)},q,this);
  6388. g.C(this,this.K);this.lr=new g.f9(function(){fa(b,2,!1)},q,this);
  6389. g.C(this,this.lr);this.UD=new g.f9(function(){fa(b,2048,!1)},q,this);
  6390. g.C(this,this.UD);this.yv=new g.f9(function(){fa(b,512,!1)},q,this);
  6391. g.C(this,this.yv);this.z2=3E3;e||(this.j=this.G.W(d,"mouseover",this.qD),this.G.W(d,"mousemove",this.Xr),this.G.W(d,"mouseleave",this.t5k));this.api.N("delhi_modern_web_player")&&this.G.W(d,"wheel",this.Qt2);w_?this.G.W(d,"keypress",this.RH):this.G.W(d,"focusin",this.Sr);this.S=this.G.W(d,"mousedown",this.dL);this.B=this.G.W(d,"touchstart",this.Jl,void 0,!0);fa(this,640,!0)};
  6392. UkI=function(d){fa(d,4,!1);d.L&&(d.G.t1(d.L),d.L=null,d.j=d.G.W(d.target,"mouseover",d.qD));d.j&&(d.G.t1(d.j),d.j=d.G.W(d.target,"mouseover",d.qD))};
  6393. fa=function(d,q,T){d.JF();var Y=!d.U;T?(d.U|=q,q&1&&d.K.start(),q&2&&d.lr.start(),q&2048&&d.UD.start()):(d.U&=~q,q&1&&d.K.stop(),q&2&&d.lr.stop(),q&2048&&d.UD.stop(),q&512&&d.yv.stop());d.U&512&&!(d.U&128)&&g.zh(d.yv,d.z2);q=!d.U;Y!==q&&d.publish("autohideupdate",q)};
  6394. g.i0=function(d){g.f.call(this,{Y:"button",hF:["ytp-large-play-button","ytp-button"],Z:{"aria-label":"\u64ad\u653e",title:"\u64ad\u653e"},V:["{{largePlayButtonChildren}}"]});this.api=d;this.W(d,"videodatachange",this.S5);this.W(d,"basechromeinitialized",this.g9F);d=this.api.C();d.L&&zV&&(this.listen("click",this.XS,this),this.listen("touchstart",this.ZH2,this));g.bS(d)&&g.d9(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,this,28572);this.S5()};
  6395. g.IN=function(d){var q=["ytp-cued-thumbnail-overlay"];d.C().X&&q.push("ytp-exp-contain-thumbnail");g.f.call(this,{Y:"div",hF:q,V:[{Y:"div",D:"ytp-cued-thumbnail-overlay-image"}]});q=this.Qv("ytp-cued-thumbnail-overlay");var T=new g.i0(d);g.C(this,T);T.IU(q);this.U=new g.aI(this);g.C(this,this.U);this.api=d;this.T=this.Qv("ytp-cued-thumbnail-overlay-image");this.j=T;this.fade=new g.oh(this,250);g.C(this,this.fade);this.G=new g.f9(this.S5,0,this);g.C(this,this.G);this.S5();this.W(d,"appresize",this.gz);
  6396. this.W(d,"presentingplayerstatechange",this.onStateChange);this.W(d,"ypcStateChanged",this.amO);TF(d.C())&&this.W(d,"videoplayerreset",this.onReset)};
  6397. g.mS=function(d){g.f.call(this,{Y:"div",hF:["ytp-error"],Z:{role:"alert"},V:[{Y:"div",D:"ytp-error-content",V:[{Y:"div",D:"ytp-error-icon-container",V:[{Y:"svg",Z:{fill:"#fff",viewBox:"0 0 48 48"},V:[{Y:"path",Z:{d:"M0 0h48v48H0V0z",fill:"none"}},{Y:"path",Z:{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"}}]}]},{Y:"div",D:"ytp-error-content-wrap",
  6398. V:[{Y:"div",D:"ytp-error-content-wrap-reason",j5:"{{content}}"},{Y:"div",D:"ytp-error-content-wrap-subreason",j5:"{{subreason}}"}]}]}]});this.api=d;this.keys=[];this.j=!1;d.createClientVe(this.element,this,216103);this.api.logVisibility(this.element,this.PF)};
  6399. g.Sz=function(d){d=d.split(brn);for(var q=[],T=0;T<d.length;T+=3){var Y=d[T++].split("\n");q.push(Y[0]);for(var e=1;e<Y.length;e++)q.push({Y:"br"}),q.push(Y[e]);T<d.length&&q.push({Y:"a",Z:{href:d[T],target:d[T+1]},j5:d[T+2]})}return{Y:"span",V:q}};
  6400. vc=function(d,q,T,Y,e,U,b){Y=Y===void 0?!1:Y;e=e===void 0?!1:e;b=b===void 0?!0:b;e||(e=d.api.C().T);var J=d.api.getVideoData();q=g.bO(g.l0[q]||"",Y?{CPN:J.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);Y=[];U&&Y.push({Y:"h2",j5:U});Y.push(q[0]);b&&Y.push({Y:"br"});Y.push({Y:"a",Z:{href:T,target:e?"_blank":null},D:"ytp-error-link",j5:q[2]});d.j=!0;Y.push(q[4]);return{Y:"span",V:Y}};
  6401. Xef=function(d,q){for(var T=d.element.getElementsByTagName("a"),Y=0;Y<T.length;Y++){var e=d.W(T[Y],"click",q);d.keys.push(e)}};
  6402. JT_=function(d){for(var q=0;q<d.keys.length;q++)d.t1(d.keys[q]);d.keys=[]};
  6403. sP2=function(d){g.f.call(this,{Y:"div",hF:["ytp-overlays-container"],V:[{Y:"div",D:"ytp-overlay-top-left"},{Y:"div",D:"ytp-overlay-top-right"},{Y:"div",D:"ytp-overlay-bottom-left"},{Y:"div",D:"ytp-overlay-bottom-right"}]});this.j=this.Qv("ytp-overlay-top-left");this.T=this.Qv("ytp-overlay-top-right");this.G=this.Qv("ytp-overlay-bottom-left");this.U=this.Qv("ytp-overlay-bottom-right");g.o6(d,this.element,4)};
  6404. oN=function(d,q,T,Y){for(var e=Number(q.getAttribute("data-overlay-order"))||0,U=0,b=null,J=g.E(T.children),F=J.next();!F.done;F=J.next()){F=F.value;if(Y&&F.classList.contains("ytp-overlay-inline-container")){b=F;break}if(e<(Number(F.getAttribute("data-overlay-order"))||0))break;U++}b?oN(d,q,b,!1):Y?(d=document.createElement("div"),d.classList.add("ytp-overlay-inline-container"),d.setAttribute("data-overlay-order",""+e),b=d,b.appendChild(q),yp(T,b,U)):yp(T,q,U)};
  6405. $k7=function(d){var q={};g.f.call(this,{Y:"div",D:"ytp-paid-content-overlay",Z:(q["aria-live"]="assertive",q["aria-atomic"]="true",q["data-overlay-order"]="5",q)});this.J=d;this.videoId=null;this.j=!1;this.innertubeCommand=this.Fd=this.G=null;q=d.C();d.N("enable_new_paid_product_placement")&&!g.an(q)?(this.U=new g.f({Y:"a",D:"ytp-paid-content-overlay-link",Z:{href:"{{href}}",target:"_blank"},V:[{Y:"div",D:"ytp-paid-content-overlay-indicator"},{Y:"div",D:"ytp-paid-content-overlay-icon",j5:"{{icon}}"},
  6406. {Y:"div",D:"ytp-paid-content-overlay-text",j5:"{{text}}"},{Y:"div",D:"ytp-paid-content-overlay-chevron",j5:"{{chevron}}"}]}),this.W(this.U.element,"click",this.onClick)):this.U=new g.f({Y:"div",hF:["ytp-button","ytp-paid-content-overlay-text"],j5:"{{text}}"});this.fade=new g.oh(this.U,250,!1,100);g.C(this,this.U);this.U.IU(this.element);g.C(this,this.fade);this.J.createServerVe(this.element,this);this.W(d,"videodatachange",this.onVideoDataChange);this.W(d,"presentingplayerstatechange",this.EG)};
  6407. FON=function(d,q){var T=GbY(q),Y=Loj(q);if(!q.Kz||!d.J.S8())if(d.G||d.J.N("enable_paid_content_overlay_bugfix")){if(q.videoId&&q.videoId!==d.videoId){var e;(e=d.G)==null||g.I1(e);!d.J.N("enable_paid_content_overlay_bugfix")||T&&Y?(d.videoId=q.videoId,d.j=!!Y,d.j&&T&&g$j(d,Y,T,q)):d.j=!1}}else T&&Y&&!d.J.N("enable_paid_content_overlay_bugfix")&&g$j(d,Y,T,q)};
  6408. g$j=function(d,q,T,Y){d.G&&d.G.dispose();d.G=new g.f9(d.bF,q,d);g.C(d,d.G);Y=zC(Y);q=Y==null?void 0:Y.navigationEndpoint;var e;Y=Y==null?void 0:(e=Y.icon)==null?void 0:e.iconType;var U;e=(U=g.D(q,g.KM))==null?void 0:U.url;d.J.setTrackingParams(d.element,(q==null?void 0:q.clickTrackingParams)||null);q&&!e?(d.innertubeCommand=q,e="#!"):d.innertubeCommand=null;var b;d.U.update({href:(b=e)!=null?b:"#",text:T,icon:Y==="MONEY_HAND"?{Y:"svg",Z:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"},
  6409. V:[{Y:"path",Z:{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",
  6410. fill:"white"}}]}:null,chevron:e||d.innertubeCommand?g.xP():null})};
  6411. NB1=function(d,q){d.G&&(g.I(q,8)&&d.j?(d.j=!1,d.St(),d.G.start()):(g.I(q,2)||g.I(q,64))&&d.videoId&&(d.videoId=null))};
  6412. VV=function(d){g.f.call(this,{Y:"div",D:"ytp-spinner",V:[Oc(),{Y:"div",D:"ytp-spinner-message",j5:"\u5982\u679c\u7a0d\u540e\u6ca1\u6709\u5f00\u59cb\u64ad\u653e\uff0c\u8bf7\u5c1d\u8bd5\u91cd\u65b0\u542f\u52a8\u8bbe\u5907\u3002"}]});this.api=d;this.message=this.Qv("ytp-spinner-message");this.G=new g.f9(this.show,500,this);g.C(this,this.G);this.W(d,"presentingplayerstatechange",this.onStateChange);this.W(d,"playbackstalledatstart",this.U);this.XC(d.getPlayerStateObject())};
  6413. dr=function(d){var q=[{Y:"div",hF:["ytp-unmute-icon"],V:[{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",Z:{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"}}]}]},
  6414. {Y:"div",hF:["ytp-unmute-text"],j5:"\u70b9\u6309\u53d6\u6d88\u9759\u97f3"}];q.push({Y:"div",hF:["ytp-unmute-box"],V:[]});g.bi.call(this,d,{Y:"button",hF:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],V:[{Y:"div",D:"ytp-unmute-inner",V:q}]},100);this.G=this.clicked=!1;this.api=d;this.api.createClientVe(this.element,this,51663);this.W(d,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.W(d,"presentingplayerstatechange",this.h0);this.listen("click",this.onClick,
  6415. this);d=d.isMutedByMutedAutoplay()&&!g.dn(this.api.C());this.OM(d);d&&Rz6(this);this.j=d};
  6416. Rz6=function(d){d.G||(d.G=!0,d.api.logVisibility(d.element,!0))};
  6417. g.ql=function(d){g.aI.call(this);var q=this;this.api=d;this.qA=!1;this.CS=null;this.DF=!1;this.uO=null;this.xR=this.Jw=!1;this.Jc=this.RB=null;this.Ls=NaN;this.dM=this.BC=!1;this.nm=0;this.F6=[];this.N6=!1;this.dE={height:0,width:0};this.O8=480;this.MFr=["ytp-player-content","html5-endscreen","ytp-overlay"];this.MH={MG:!1};this.Fk=null;var T=d.C(),Y=d.OD();this.dE=d.getPlayerSize();this.E4=new g.f9(this.Ob,0,this);g.C(this,this.E4);T.disableOrganicUi||(this.SU=new g.IN(d),g.C(this,this.SU),g.o6(d,
  6418. this.SU.element,4));this.api.N("web_player_overlay_positioned_layout")&&(this.Fk=new sP2(this.api),g.C(this,this.Fk));if(xkN(this)){var e=new VV(d);g.C(this,e);e=e.element;g.o6(d,e,4)}var U=d.getVideoData();this.QH=new ez6(Y,d,function(J){return q.O1(J)},U,T.Gv,!1);
  6419. g.C(this,this.QH);this.QH.subscribe("autohideupdate",this.cE,this);if(!T.disablePaidContentOverlay){var b=new $k7(d);g.C(this,b);this.Fk?this.Fk.A0(b.element,g.an(T)?3:1):g.o6(d,b.element,4)}this.q8=new dr(d);g.C(this,this.q8);g.o6(this.api,this.q8.element,2);this.Es=this.api.isMutedByMutedAutoplay();this.W(d,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.sT=new g.f9(this.cW,200,this);g.C(this,this.sT);this.oE=U.videoId;this.pX=new g.f9(function(){q.nm=0},350);
  6420. g.C(this,this.pX);this.r_=new g.f9(function(){q.dM||yT2(q)},350,this);
  6421. g.C(this,this.r_);U=d.getRootNode();U.setAttribute("aria-label","YouTube \u89c6\u9891\u64ad\u653e\u5668");switch(T.color){case "white":g.d9(U,"ytp-color-white")}this.W(d,"appresize",this.gz);this.W(d,"presentingplayerstatechange",this.h0);this.W(d,"videodatachange",this.onVideoDataChange);this.W(d,"videoplayerreset",this.SMZ);this.W(d,"autonavvisibility",function(){q.zB()});
  6422. this.W(d,"sizestylechange",function(){q.zB()});
  6423. this.W(Y,"click",this.Ecg,this);this.W(Y,"dblclick",this.elv,this);this.W(Y,"mousedown",this.Lcf,this);T.wO&&(this.W(Y,"gesturechange",this.ncv,this),this.W(Y,"gestureend",this.NkZ,this));this.E2=[Y.t6];this.SU&&this.E2.push(this.SU.element);e&&this.E2.push(e);this.api.N("web_player_fullscreen_double_click_ve")&&(this.api.createClientVe(Y.element,this,247482),this.api.logVisibility(Y.element,!0))};
  6424. hzf=function(d,q){if(!q)return!1;var T=d.api.WG();if(T.RK()&&(T=T.tA())&&g.HB(T,q))return T.controls;for(T=0;T<d.E2.length;T++)if(g.HB(d.E2[T],q))return!1;T=g.E(d.MFr);for(var Y=T.next();!Y.done;Y=T.next())if(g.V5(q,Y.value))return!1;return q===d.api.getRootNode()?!1:!0};
  6425. Hrf=function(d){var q=d.api.getPresentingPlayerType()===2&&(d.api.OD().aR||d.api.C().disableOrganicUi)&&d.api.C().U&&zV&&TZ>=11;d=d.api.C().L&&zV;return!(!q&&!d)};
  6426. YB=function(d,q){return!d.api.isInline()&&!hzf(d,Qi(q))&&g.cG(q)};
  6427. yT2=function(d){d.QH.oZ();if(d.Jw&&d.xR)d.xR=!1;else if(!d.api.C().RU&&!d.LW()){var q=d.api.getPlayerStateObject();g.I(q,2)&&g.zJ(d.api)||d.fY(q);!d.api.C().wO||q.isCued()||g.I(q,1024)?d.cW():d.sT.isActive()?(d.Nh(),d.sT.stop()):d.sT.start()}};
  6428. QPj=function(d,q){var T;if((T=d.api.getVideoData())==null?0:T.mutedAutoplay){var Y,e;if((Y=q.target)==null?0:(e=Y.className)==null?0:e.includes("ytp-info-panel"))return!1}return g.cG(q)&&d.api.isMutedByMutedAutoplay()?(d.api.unMute(),d.api.getPresentingPlayerType()===2&&d.api.playVideo(),q=d.api.getPlayerStateObject(),!g.I(q,4)||g.I(q,8)||g.I(q,2)||d.cW(),!0):!1};
  6429. My_=function(d,q,T){d.api.isFullscreen()?T<1-q&&d.api.toggleFullscreen():T>1+q&&d.api.toggleFullscreen()};
  6430. xkN=function(d){var q=PL()&&Gt()>=67&&!d.api.C().L;d=d.api.C().disableOrganicUi;return!g.kA("tizen")&&!vx&&!q&&!d};
  6431. g.eg=function(d){g.f.call(this,{Y:"div",V:[{Y:"div",D:"ytp-bezel-text-wrapper",V:[{Y:"div",D:"ytp-bezel-text",j5:"{{title}}"}]},{Y:"div",D:"ytp-bezel",Z:{role:"status","aria-label":"{{label}}"},V:[{Y:"div",D:"ytp-bezel-icon",j5:"{{icon}}"}]}]});this.J=d;this.U=new g.f9(this.show,10,this);d=this.J.N("delhi_modern_web_player")?1E3:500;this.G=new g.f9(this.hide,d,this);g.C(this,this.U);g.C(this,this.G);this.hide()};
  6432. bg=function(d,q,T){if(q<=0){T=Zy();q="\u5df2\u9759\u97f3";var Y=0}else T=T?{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,Z:{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"}}]}:{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,Z:{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",
  6433. fill:"#fff"}}]},Y=Math.floor(q),q=Y+"\u97f3\u91cf";Ua(d,T,q,Y+"%")};
  6434. cT2=function(d,q){q=q?{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",Z:{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"}}]}:cBH();var T=d.J.getPlaybackRate(),Y=g.bO("\u64ad\u653e\u901f\u5ea6\u4e3a $RATE",{RATE:String(T)});Ua(d,q,Y,T+"x")};
  6435. E$n=function(d,q){q=q?"\u5df2\u6253\u5f00\u5b57\u5e55":"\u5df2\u5173\u95ed\u5b57\u5e55";Ua(d,m7Q(d.J),q)};
  6436. Ua=function(d,q,T,Y){Y=Y===void 0?"":Y;d.updateValue("label",T===void 0?"":T);d.updateValue("icon",q);g.I1(d.G);d.U.start();d.updateValue("title",Y);g.ep(d.element,"ytp-bezel-text-hide",!Y)};
  6437. jPQ=function(d,q){g.f.call(this,{Y:"button",hF:["ytp-button","ytp-cards-button"],Z:{"aria-label":"\u663e\u793a\u4fe1\u606f\u5361","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.dn(d.C()))},V:[{Y:"span",D:"ytp-cards-button-icon-default",V:[{Y:"div",D:"ytp-cards-button-icon",V:[d.C().N("player_new_info_card_format")?asg():{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",Z:{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"}}]}]},
  6438. {Y:"div",D:"ytp-cards-button-title",j5:"\u4fe1\u606f"}]},{Y:"span",D:"ytp-cards-button-icon-shopping",V:[{Y:"div",D:"ytp-cards-button-icon",V:[{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",D:"ytp-svg-shadow",Z:{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"}},{Y:"path",D:"ytp-svg-fill",Z:{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",
  6439. "fill-opacity":"1"}},{Y:"path",D:"ytp-svg-shadow-fill",Z:{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"}}]}]},{Y:"div",
  6440. D:"ytp-cards-button-title",j5:"\u8d2d\u7269"}]}]});this.J=d;this.U=q;this.G=null;this.fade=new g.oh(this,250,!0,100);g.C(this,this.fade);g.ep(this.U,"ytp-show-cards-title",g.dn(d.C()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.VV(!0)};
  6441. ar_=function(d,q){g.f.call(this,{Y:"div",D:"ytp-cards-teaser",V:[{Y:"div",D:"ytp-cards-teaser-box"},{Y:"div",D:"ytp-cards-teaser-text",V:d.C().N("player_new_info_card_format")?[{Y:"button",D:"ytp-cards-teaser-info-icon",Z:{"aria-label":"\u663e\u793a\u4fe1\u606f\u5361","aria-haspopup":"true"},V:[asg()]},{Y:"img",D:"ytp-cards-teaser-channel-avatar",Z:{alt:"","aria-hidden":"true"}},{Y:"span",D:"ytp-cards-teaser-label",j5:"{{text}}"},{Y:"button",D:"ytp-cards-teaser-close-button",Z:{"aria-label":"\u5173\u95ed"},
  6442. V:[g.y9()]}]:[{Y:"span",D:"ytp-cards-teaser-label",j5:"{{text}}"}]}]});var T=this;this.J=d;this.x9=q;this.fade=new g.oh(this,250,!1,250);this.G=null;this.L=new g.f9(this.HnO,300,this);this.X=new g.f9(this.sNv,2E3,this);this.T=[];this.U=null;this.B=new g.f9(function(){T.element.style.margin="0"},250);
  6443. this.onClickCommand=this.j=null;g.C(this,this.fade);g.C(this,this.L);g.C(this,this.X);g.C(this,this.B);d.C().N("player_new_info_card_format")?(g.d9(d.getRootNode(),"ytp-cards-teaser-dismissible"),this.W(this.Qv("ytp-cards-teaser-close-button"),"click",this.e7),this.W(this.Qv("ytp-cards-teaser-info-icon"),"click",this.M8),this.W(this.Qv("ytp-cards-teaser-label"),"click",this.M8)):this.listen("click",this.M8);this.W(q.element,"mouseover",this.v7);this.W(q.element,"mouseout",this.RM);this.W(d,"cardsteasershow",
  6444. this.U3f);this.W(d,"cardsteaserhide",this.bF);this.W(d,"cardstatechange",this.Pi);this.W(d,"presentingplayerstatechange",this.Pi);this.W(d,"appresize",this.R0);this.W(d,"onShowControls",this.R0);this.W(d,"onHideControls",this.Iq);this.listen("mouseenter",this.n2)};
  6445. ATg=function(d){g.f.call(this,{Y:"button",hF:[Xy.BUTTON,Xy.TITLE_NOTIFICATIONS],Z:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},V:[{Y:"div",D:Xy.TITLE_NOTIFICATIONS_ON,Z:{title:"\u505c\u6b62\u5728\u6bcf\u4e2a\u65b0\u89c6\u9891\u4e0a\u4f20\u65f6\u6536\u5230\u901a\u77e5","aria-label":"\u53d1\u9001\u8ba2\u9605\u5185\u5bb9\u901a\u77e5"},V:[g.MP()]},{Y:"div",D:Xy.TITLE_NOTIFICATIONS_OFF,Z:{title:"\u5728\u6bcf\u4e2a\u65b0\u89c6\u9891\u4e0a\u4f20\u65f6\u6536\u5230\u901a\u77e5","aria-label":"\u53d1\u9001\u8ba2\u9605\u5185\u5bb9\u901a\u77e5"},
  6446. V:[{Y:"svg",Z:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{Y:"path",Z:{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"}}]}]}]});this.api=d;this.G=!1;d.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","\u5728\u6bcf\u4e2a\u65b0\u89c6\u9891\u4e0a\u4f20\u65f6\u6536\u5230\u901a\u77e5")};
  6447. peD=function(d,q){d.G=q;d.element.classList.toggle(Xy.NOTIFICATIONS_ENABLED,d.G);var T=d.api.getVideoData();T?(q=q?T.hg:T.In)?(d=d.api.S0())?KU(d,q):g.Zz(Error("No innertube service available when updating notification preferences.")):g.Zz(Error("No update preferences command available.")):g.Zz(Error("No video data when updating notification preferences."))};
  6448. Or_=function(d,q,T){var Y=Y===void 0?800:Y;var e=e===void 0?600:e;var U=document.location.protocol;d=Iv1(U+"//"+d+"/signin?context=popup","feature",q,"next",U+"//"+location.hostname+"/post_login");Zrj(d,T,Y,e)};
  6449. Zrj=function(d,q,T,Y){T=T===void 0?800:T;Y=Y===void 0?600:Y;if(d=g.Ry(window,d,"loginPopup","width="+T+",height="+Y+",resizable=yes,scrollbars=yes"))MW6(function(){q()}),d.moveTo((screen.width-T)/2,(screen.height-Y)/2)};
  6450. g.Jg=function(d,q,T,Y,e,U,b,J,F,N,R,x){d=d.charAt(0)+d.substring(1).toLowerCase();T=T.charAt(0)+T.substring(1).toLowerCase();if(q==="0"||q==="-1")q=null;if(Y==="0"||Y==="-1")Y=null;var y=R.C(),h=y.userDisplayName&&g.bS(y);g.f.call(this,{Y:"div",hF:["ytp-button","ytp-sb"],V:[{Y:"div",D:"ytp-sb-subscribe",Z:h?{title:R.C().N("player_tooltip_data_title_killswitch")?g.bO("\u4ee5$USER_NAME\u7684\u8eab\u4efd\u8ba2\u9605",{USER_NAME:y.userDisplayName}):"","data-tooltip-title":g.bO("\u4ee5$USER_NAME\u7684\u8eab\u4efd\u8ba2\u9605",
  6451. {USER_NAME:y.userDisplayName}),"aria-label":"\u8ba2\u9605\u9891\u9053","data-tooltip-image":Om(y),"data-tooltip-opaque":String(g.dn(y)),tabindex:"0",role:"button"}:{"aria-label":"\u8ba2\u9605\u9891\u9053"},V:[{Y:"div",D:"ytp-sb-text",V:[{Y:"div",D:"ytp-sb-icon"},d]},q?{Y:"div",D:"ytp-sb-count",j5:q}:""]},{Y:"div",D:"ytp-sb-unsubscribe",Z:h?{title:R.N("player_tooltip_data_title_killswitch")?g.bO("\u4ee5\u201c$USER_NAME\u201d\u7684\u8eab\u4efd\u8ba2\u9605",{USER_NAME:y.userDisplayName}):"","data-tooltip-title":g.bO("\u4ee5\u201c$USER_NAME\u201d\u7684\u8eab\u4efd\u8ba2\u9605",
  6452. {USER_NAME:y.userDisplayName}),"aria-label":"\u9000\u8ba2\u9891\u9053","data-tooltip-image":Om(y),"data-tooltip-opaque":String(g.dn(y)),tabindex:"0",role:"button"}:{"aria-label":"\u9000\u8ba2\u9891\u9053"},V:[{Y:"div",D:"ytp-sb-text",V:[{Y:"div",D:"ytp-sb-icon"},T]},Y?{Y:"div",D:"ytp-sb-count",j5:Y}:""]}],Z:{"aria-live":"polite"}});var H=this;this.channelId=b;this.J=R;this.j=x;var a=this.Qv("ytp-sb-subscribe"),p=this.Qv("ytp-sb-unsubscribe");U&&g.d9(this.element,"ytp-sb-classic");if(e){J?this.G():
  6453. this.U();var t=function(){if(y.yv){var K=H.channelId;if(F||N){var P={c:K};var w;g.qe.isInitialized()&&(w=f36(P));P=w||"";if(w=R.getVideoData())if(w=w.subscribeCommand){var l=R.S0();l?(KU(l,w,{botguardResponse:P,feature:F}),R.gO("SUBSCRIBE",K)):g.Zz(Error("No innertube service available when updating subscriptions."))}else g.Zz(Error("No subscribe command in videoData."));else g.Zz(Error("No video data available when updating subscription."))}p.focus();p.removeAttribute("aria-hidden");a.setAttribute("aria-hidden",
  6454. "true")}else Or_(g.yv(H.J.C()),"sb_button",H.T)},n=function(){var K=H.channelId;
  6455. if(F||N){var P=R.getVideoData();KU(R.S0(),P.unsubscribeCommand,{feature:F});R.gO("UNSUBSCRIBE",K)}a.focus();a.removeAttribute("aria-hidden");p.setAttribute("aria-hidden","true")};
  6456. this.W(a,"click",t);this.W(p,"click",n);this.W(a,"keypress",function(K){K.keyCode===13&&t(K)});
  6457. this.W(p,"keypress",function(K){K.keyCode===13&&n(K)});
  6458. this.W(R,"SUBSCRIBE",this.G);this.W(R,"UNSUBSCRIBE",this.U);this.j&&h&&(rHY(R),D$(R,a,this),D$(R,p,this))}else g.d9(a,"ytp-sb-disabled"),g.d9(p,"ytp-sb-disabled")};
  6459. ty2=function(d){g.f.call(this,{Y:"div",D:"ytp-title-channel",V:[{Y:"div",D:"ytp-title-beacon"},{Y:"a",D:"ytp-title-channel-logo",Z:{href:"{{channelLink}}",target:d.C().K,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{Y:"div",D:"ytp-title-expanded-overlay",Z:{"aria-hidden":"{{flyoutUnfocusable}}"},V:[{Y:"div",D:"ytp-title-expanded-heading",V:[{Y:"div",D:"ytp-title-expanded-title",V:[{Y:"a",j5:"{{expandedTitle}}",Z:{href:"{{channelTitleLink}}",target:d.C().K,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}",
  6460. tabIndex:"{{channelTitleFocusable}}"}}]},{Y:"div",D:"ytp-title-expanded-subtitle",j5:"{{expandedSubtitle}}",Z:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var q=this;this.api=d;this.channel=this.Qv("ytp-title-channel");this.U=this.Qv("ytp-title-channel-logo");this.channelName=this.Qv("ytp-title-expanded-title");this.X=this.Qv("ytp-title-expanded-overlay");this.j=this.G=this.subscribeButton=null;this.T=!1;d.createClientVe(this.U,this,36925);d.createClientVe(this.channelName,this,
  6461. 37220);g.dn(this.api.C())&&n$n(this);this.W(d,"videodatachange",this.S5);this.W(d,"videoplayerreset",this.S5);this.W(this.channelName,"click",function(T){q.api.logClick(q.channelName);g.Ry(window,rTf(q));T.preventDefault()});
  6462. this.W(this.U,"click",this.Dkv);this.S5()};
  6463. BBN=function(d){if(!d.api.C().q5){var q=d.api.getVideoData(),T=new g.Jg("\u8ba2\u9605",null,"\u5df2\u8ba2\u9605",null,!0,!1,q.Gp,q.subscribed,"channel_avatar",null,d.api,!0);d.api.createServerVe(T.element,d);var Y;d.api.setTrackingParams(T.element,((Y=q.subscribeButtonRenderer)==null?void 0:Y.trackingParams)||null);d.W(T.element,"click",function(){d.api.logClick(T.element)});
  6464. d.subscribeButton=T;g.C(d,d.subscribeButton);d.subscribeButton.IU(d.X);d.subscribeButton.hide();var e=new ATg(d.api);d.G=e;g.C(d,e);e.IU(d.X);e.hide();d.W(d.api,"SUBSCRIBE",function(){q.U5&&(e.show(),d.api.logVisibility(e.element,!0))});
  6465. d.W(d.api,"UNSUBSCRIBE",function(){q.U5&&(e.hide(),d.api.logVisibility(e.element,!1),peD(e,!1))})}};
  6466. n$n=function(d){var q=d.api.C();BBN(d);d.updateValue("flyoutUnfocusable","true");d.updateValue("channelTitleFocusable","-1");d.updateValue("shouldHideExpandedTitleForA11y","true");d.updateValue("shouldHideExpandedSubtitleForA11y","true");q.U||q.qk||(d.W(d.channel,"mouseenter",d.h_),d.W(d.channel,"mouseleave",d.mx),d.W(d.channel,"focusin",d.h_),d.W(d.channel,"focusout",function(T){d.channel.contains(T.relatedTarget)||d.mx()}));
  6467. d.j=new g.f9(function(){d.isExpanded()&&(d.api.logVisibility(d.channelName,!1),d.subscribeButton&&(d.subscribeButton.hide(),d.api.logVisibility(d.subscribeButton.element,!1)),d.G&&(d.G.hide(),d.api.logVisibility(d.G.element,!1)),d.channel.classList.remove("ytp-title-expanded"),d.channel.classList.add("ytp-title-show-collapsed"))},500);
  6468. g.C(d,d.j);d.W(d.channel,KOg,function(){G_I(d)});
  6469. d.W(d.api,"onHideControls",d.zZ);d.W(d.api,"appresize",d.zZ);d.W(d.api,"fullscreentoggled",d.zZ)};
  6470. G_I=function(d){d.channel.classList.remove("ytp-title-show-collapsed");d.channel.classList.remove("ytp-title-show-expanded")};
  6471. LOD=function(d){var q=d.api.getPlayerSize();return g.dn(d.api.C())&&q.width>=524};
  6472. rTf=function(d){var q=d.api.C(),T=d.api.getVideoData(),Y=g.nI(q)+T.wO;g.MC(T)&&(Y="https://music.youtube.com"+T.wO);if(!g.dn(q))return Y;q={};g.OF(d.api,"addEmbedsConversionTrackingParams",[q]);return g.y6(Y,q)};
  6473. sa=function(d){var q=g.Fp({"aria-haspopup":"true"});g.gR.call(this,q,d);this.listen("keydown",this.G)};
  6474. $B=function(d,q){d.element.setAttribute("aria-haspopup",String(q))};
  6475. k_Y=function(d,q){g.f.call(this,{Y:"div",D:"ytp-user-info-panel",Z:{"aria-label":"\u7528\u6237\u4fe1\u606f"},V:d.C().yv&&!d.N("embeds_web_always_enable_signed_out_state")?[{Y:"div",D:"ytp-user-info-panel-icon",j5:"{{icon}}"},{Y:"div",D:"ytp-user-info-panel-content",V:[{Y:"div",D:"ytp-user-info-panel-info",Z:{tabIndex:"{{userInfoFocusable}}",role:"text"},j5:"{{watchingAsUsername}}"},{Y:"div",D:"ytp-user-info-panel-info",Z:{tabIndex:"{{userInfoFocusable2}}",role:"text"},j5:"{{watchingAsEmail}}"}]}]:
  6476. [{Y:"div",D:"ytp-user-info-panel-icon",j5:"{{icon}}"},{Y:"div",D:"ytp-user-info-panel-content",V:[{Y:"div",V:[{Y:"text",Z:{tabIndex:"{{userInfoFocusable}}"},j5:"\u672a\u767b\u5f55"}]},{Y:"div",D:"ytp-user-info-panel-login",V:[{Y:"a",Z:{tabIndex:"{{userInfoFocusable2}}",role:"button"},j5:d.C().q5?"":"\u767b\u5f55 YouTube"}]}]}]});this.mZ=d;this.G=q;d.C().yv||d.C().q5||this.W(this.Qv("ytp-user-info-panel-login"),"click",this.L2);this.closeButton=new g.f({Y:"button",hF:["ytp-collapse","ytp-button"],
  6477. Z:{title:"\u5173\u95ed"},V:[g.pM()]});this.closeButton.IU(this.element);g.C(this,this.closeButton);this.W(window,"blur",this.hide);this.W(document,"click",this.Nl);this.S5()};
  6478. CU2=function(d,q,T){g.rF.call(this,d);this.TG=q;this.Jm=T;this.getVideoUrl=new sa(6);this.W1=new sa(5);this.LS=new sa(4);this.BF=new sa(3);this.m3=new g.gR(g.Fp({href:"{{href}}",target:this.J.C().K},void 0,!0),2,"\u6392\u67e5\u64ad\u653e\u95ee\u9898");this.showVideoInfo=new g.gR(g.Fp(),1,"\u8be6\u7ec6\u7edf\u8ba1\u4fe1\u606f");this.au=new g.Ji({Y:"div",hF:["ytp-copytext","ytp-no-contextmenu"],Z:{draggable:"false",tabindex:"1"},j5:"{{text}}"});this.aj=new nc(this.J,this.au);this.Si=this.Cl=null;g.dn(this.J.C())&&
  6479. (this.closeButton=new g.f({Y:"button",hF:["ytp-collapse","ytp-button"],Z:{title:"\u5173\u95ed"},V:[g.pM()]}),g.C(this,this.closeButton),this.closeButton.IU(this.element),this.closeButton.listen("click",this.Yb,this));g.dn(this.J.C())&&(this.Vi=new g.gR(g.Fp(),8,"\u8d26\u53f7"),g.C(this,this.Vi),this.rk(this.Vi,!0),this.Vi.listen("click",this.kqg,this),d.createClientVe(this.Vi.element,this.Vi,137682));this.J.C().PR&&(this.Lp=new jq("\u5faa\u73af\u64ad\u653e",7),g.C(this,this.Lp),this.rk(this.Lp,!0),
  6480. this.Lp.listen("click",this.rA2,this),d.createClientVe(this.Lp.element,this.Lp,28661));g.C(this,this.getVideoUrl);this.rk(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.TzO,this);d.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.C(this,this.W1);this.rk(this.W1,!0);this.W1.listen("click",this.yAw,this);d.createClientVe(this.W1.element,this.W1,28660);g.C(this,this.LS);this.rk(this.LS,!0);this.LS.listen("click",this.inD,this);d.createClientVe(this.LS.element,this.LS,28658);
  6481. g.C(this,this.BF);this.rk(this.BF,!0);this.BF.listen("click",this.jNv,this);g.C(this,this.m3);this.rk(this.m3,!0);this.m3.listen("click",this.XG5,this);g.C(this,this.showVideoInfo);this.rk(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.Vtk,this);g.C(this,this.au);this.au.listen("click",this.BOO,this);g.C(this,this.aj);q=document.queryCommandSupported&&document.queryCommandSupported("copy");mHX("Chromium")>=43&&(q=!0);mHX("Firefox")<=40&&(q=!1);q&&(this.Cl=new g.f({Y:"textarea",D:"ytp-html5-clipboard",
  6482. Z:{readonly:"",tabindex:"-1"}}),g.C(this,this.Cl),this.Cl.IU(this.element));var Y;(Y=this.Vi)==null||Y.setIcon(nOn());var e;(e=this.Lp)==null||e.setIcon(L2n());this.BF.setIcon({Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{"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",
  6483. fill:"white","fill-rule":"evenodd"}}]});this.m3.setIcon(EO1());this.showVideoInfo.setIcon(jYX());this.W(d,"onLoopChange",this.onLoopChange);this.W(d,"videodatachange",this.onVideoDataChange);PUY(this);WOn(this,this.J.getVideoData())};
  6484. gr=function(d,q){var T=!1;if(d.Cl){var Y=d.Cl.element;Y.value=q;Y.select();try{T=document.execCommand("copy")}catch(e){}}T?d.TG.bF():(d.au.A1(q,"text"),g.Kc(d.TG,d.aj),nR(d.au.element),d.Cl&&(d.Cl=null,PUY(d)));return T};
  6485. WOn=function(d,q){var T=d.J.C(),Y=d.J.getPresentingPlayerType()===2,e=!Y||q.isListed;e=!T.UD&&!!q.videoId&&e;T.playerStyle!=="play"?T="https://support.google.com/youtube/?p=report_playback":(T={contact_type:"playbackissue",html5:1,ei:q.eventId,v:q.videoId,p:"movies_playback"},q.U&&(T.fmt=q.U.itag),q.clientPlaybackNonce&&(T.cpn=q.clientPlaybackNonce),q.partnerId&&(T.partnerid=q.partnerId),T=g.y6("//support.google.com/googleplay/",T));d.LS.OM(e&&q.allowEmbed);d.getVideoUrl.OM(e);d.W1.OM(e&&!q.isLivePlayback);
  6486. d.m3.A1(T,"href");var U;(U=d.Lp)==null||U.OM(!q.isLivePlayback&&!Y);var b;(b=d.Vi)==null||b.OM(!Y)};
  6487. PUY=function(d){var q=!!d.Cl;g.$T(d.BF,q?"\u590d\u5236\u8c03\u8bd5\u4fe1\u606f":"\u83b7\u53d6\u8c03\u8bd5\u4fe1\u606f");$B(d.BF,!q);g.$T(d.LS,q?"\u590d\u5236\u5d4c\u5165\u4ee3\u7801":"\u83b7\u53d6\u5d4c\u5165\u4ee3\u7801");$B(d.LS,!q);g.$T(d.getVideoUrl,q?"\u590d\u5236\u89c6\u9891\u7f51\u5740":"\u83b7\u53d6\u89c6\u9891\u7f51\u5740");$B(d.getVideoUrl,!q);g.$T(d.W1,q?"\u590d\u5236\u5f53\u524d\u65f6\u95f4\u7684\u89c6\u9891\u7f51\u5740":"\u83b7\u53d6\u5728\u64ad\u89c6\u9891\u7684\u7f51\u5740");$B(d.W1,
  6488. !q);d.LS.setIcon(q?QYn():null);d.getVideoUrl.setIcon(q?Hk():null);d.W1.setIcon(q?Hk():null)};
  6489. uUH=function(d){return g.dn(d.J.C())?d.Vi:d.Lp};
  6490. weD=function(d,q){g.B$.call(this,d);this.Jm=q;this.T=new g.aI(this);this.lr=new g.f9(this.Qc2,1E3,this);this.UD=this.j=null;g.C(this,this.T);g.C(this,this.lr);q=this.J.C();d.createClientVe(this.element,this,28656);g.d9(this.element,"ytp-contextmenu");this.J.C().experiments.Wv("delhi_modern_web_player")&&g.cT(q)&&g.d9(this.element,"ytp-delhi-modern-contextmenu");Dkg(this);this.hide()};
  6491. Dkg=function(d){g.jX(d.T);var q=d.J.C();q.playerStyle==="gvn"||q.U||q.qk||(q=d.J.OD(),d.T.W(q,"contextmenu",d.gxf),d.T.W(q,"touchstart",d.onTouchStart,null,!0),d.T.W(q,"touchmove",d.dI,null,!0),d.T.W(q,"touchend",d.dI,null,!0))};
  6492. frQ=function(d){d.J.isFullscreen()?g.o6(d.J,d.element,10):d.IU(Xp(d).body)};
  6493. Fy=function(d,q,T){T=T===void 0?240:T;g.f.call(this,{Y:"button",hF:["ytp-button","ytp-copylink-button"],Z:{title:d.N("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.dn(d.C()))},V:[{Y:"div",D:"ytp-copylink-icon",j5:"{{icon}}"},{Y:"div",D:"ytp-copylink-title",j5:"\u590d\u5236\u94fe\u63a5",Z:{"aria-hidden":"true"}}]});this.api=d;this.G=q;this.U=T;this.visible=!1;this.tooltip=this.G.nH();q=d.C();this.tooltip.element.setAttribute("aria-live",
  6494. "polite");g.ep(this.element,"ytp-show-copylink-title",g.dn(q));d.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.W(d,"videodatachange",this.S5);this.W(d,"videoplayerreset",this.S5);this.W(d,"appresize",this.S5);this.S5();this.addOnDisposeCallback(g.uH(this.tooltip,this.element))};
  6495. zzY=function(d){var q=d.api.C(),T=d.api.getVideoData(),Y=d.api.OD().getPlayerSize().width;q=q.j;return!!T.videoId&&Y>=d.U&&T.Oi&&!T.kc&&!d.api.isEmbedsShortsMode()&&!q};
  6496. irD=function(d){d.updateValue("icon",NP());if(d.api.C().U)d.tooltip.lK(d.element,"\u94fe\u63a5\u5df2\u590d\u5236\u5230\u526a\u8d34\u677f");else{d.updateValue("title-attr","\u94fe\u63a5\u5df2\u590d\u5236\u5230\u526a\u8d34\u677f");d.updateValue("tooltip-title","\u94fe\u63a5\u5df2\u590d\u5236\u5230\u526a\u8d34\u677f");d.tooltip.U$();d.tooltip.lK(d.element);var q=d.listen("mouseleave",function(){d.t1(q);d.S5();d.tooltip.Jo()})}};
  6497. Ir7=function(d,q){return g.G(function(T){if(T.U==1)return g.jD(T,2),g.B(T,navigator.clipboard.writeText(q),4);if(T.U!=2)return T.return(!0);g.nN(T);var Y=T.return,e=!1,U=g.FE("TEXTAREA");U.value=q;U.setAttribute("readonly","");var b=d.api.getRootNode();b.appendChild(U);if(uR){var J=window.getSelection();J.removeAllRanges();var F=document.createRange();F.selectNodeContents(U);J.addRange(F);U.setSelectionRange(0,q.length)}else U.select();try{e=document.execCommand("copy")}catch(N){}b.removeChild(U);
  6498. return Y.call(T,e)})};
  6499. mk1=function(d){g.f.call(this,{Y:"div",D:"ytp-doubletap-ui-legacy",V:[{Y:"div",D:"ytp-doubletap-fast-forward-ve"},{Y:"div",D:"ytp-doubletap-rewind-ve"},{Y:"div",D:"ytp-doubletap-static-circle",V:[{Y:"div",D:"ytp-doubletap-ripple"}]},{Y:"div",D:"ytp-doubletap-overlay-a11y"},{Y:"div",D:"ytp-doubletap-seek-info-container",V:[{Y:"div",D:"ytp-doubletap-arrows-container",V:[{Y:"span",D:"ytp-doubletap-base-arrow"},{Y:"span",D:"ytp-doubletap-base-arrow"},{Y:"span",D:"ytp-doubletap-base-arrow"}]},{Y:"div",
  6500. D:"ytp-doubletap-tooltip",V:[{Y:"div",D:"ytp-seek-icon-text-container",V:[{Y:"div",D:"ytp-seek-icon",j5:"{{seekIcon}}"},{Y:"div",D:"ytp-chapter-seek-text-legacy",j5:"{{seekText}}"}]},{Y:"div",D:"ytp-doubletap-tooltip-label",j5:"{{seekTime}}"}]}]}]});this.J=d;this.T=new g.f9(this.show,10,this);this.U=new g.f9(this.hide,700,this);this.L=this.j=0;this.lr=this.X=!1;this.G=this.Qv("ytp-doubletap-static-circle");g.C(this,this.T);g.C(this,this.U);this.hide();this.B=this.Qv("ytp-doubletap-fast-forward-ve");
  6501. this.K=this.Qv("ytp-doubletap-rewind-ve");this.J.createClientVe(this.B,this,28240);this.J.createClientVe(this.K,this,28239);this.J.logVisibility(this.B,!0);this.J.logVisibility(this.K,!0);this.X=d.N("web_show_cumulative_seek_time");this.lr=d.N("web_center_static_circles")};
  6502. SW1=function(d,q){q=g.bO("$TOTAL_SEEK_TIME \u79d2",{TOTAL_SEEK_TIME:q.toString()});d.updateValue("seekTime",q)};
  6503. lr2=function(d){O8.call(this,d,!1,!0);this.rO=[];this.vF=[];this.element.setAttribute("data-overlay-order","9");this.B=!0;this.badge.element.classList.add("ytp-featured-product");this.z2=new g.f({Y:"div",D:"ytp-featured-product-open-in-new"});g.C(this,this.z2);this.countdownTimer=new g.f({Y:"text",D:"ytp-featured-product-countdown",j5:"{{content}}"});this.countdownTimer.hide();g.C(this,this.countdownTimer);this.U=new g.f({Y:"div",D:"ytp-featured-product-trending",V:[{Y:"div",D:"ytp-featured-product-trending-icon"},
  6504. {Y:"text",D:"ytp-featured-product-trending-text",j5:"{{trendingOffer}}"}]});this.U.hide();g.C(this,this.U);this.overflowButton=new g.f({Y:"button",hF:["ytp-featured-product-overflow-icon","ytp-button"],Z:{"aria-haspopup":"true"}});this.overflowButton.hide();g.C(this,this.overflowButton);this.L=new g.f({Y:"text",D:"ytp-featured-product-exclusive-countdown",j5:"{{content}}",Z:{id:"exclusiveCountdown","aria-hidden":"true"}});this.L.hide();g.C(this,this.L);this.X=new g.f({Y:"div",D:"ytp-featured-product-exclusive-container",
  6505. Z:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},V:[{Y:"div",D:"ytp-featured-product-exclusive-badge-container",V:[{Y:"div",D:"ytp-featured-product-exclusive-badge",V:[{Y:"text",D:"ytp-featured-product-exclusive-badge-text",j5:"{{exclusive}}",Z:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.L]});this.X.hide();g.C(this,this.X);this.banner=new g.f({Y:"a",D:"ytp-featured-product-container",V:[{Y:"div",D:"ytp-featured-product-thumbnail",V:[{Y:"img",Z:{src:"{{thumbnail}}"}},this.z2]},{Y:"div",
  6506. D:"ytp-featured-product-details",V:[{Y:"text",D:"ytp-featured-product-title",j5:"{{title}}"},this.J.N("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{Y:"div",D:"ytp-featured-product-price-container",Z:{"aria-label":"{{priceA11yText}}"},V:[{Y:"text",D:"ytp-featured-product-price-when-promotion-text-enabled",j5:"{{price}}",Z:{"aria-hidden":"true"}},{Y:"text",D:"ytp-featured-product-promotion-text",j5:"{{promotionText}}",Z:{"aria-hidden":"true"}}]}:{Y:"div",Z:{"aria-label":"{{priceA11yText}}"},
  6507. V:[{Y:"text",D:"ytp-featured-product-price",j5:"{{price}}",Z:{"aria-hidden":"true"}},{Y:"text",D:"ytp-featured-product-sales-original-price",j5:"{{salesOriginalPrice}}",Z:{"aria-hidden":"true"}},{Y:"text",D:"ytp-featured-product-price-drop-reference-price",j5:"{{priceDropReferencePrice}}",Z:{"aria-hidden":"true"}}]},this.J.N("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{Y:"div",D:"ytp-featured-product-when-promotion-text-enabled",V:[{Y:"text",D:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",
  6508. j5:"{{affiliateDisclaimer}}"},this.U,{Y:"text",D:"ytp-featured-product-vendor-when-promotion-text-enabled",j5:"{{vendor}}"}]}:{Y:"div",V:[{Y:"text",D:"ytp-featured-product-affiliate-disclaimer",j5:"{{affiliateDisclaimer}}"},this.J.N("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.X:null,this.U,{Y:"text",D:"ytp-featured-product-vendor",j5:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.C(this,this.banner);this.banner.IU(this.j.element);this.W(this.J,g.Sh("featured_product"),
  6509. this.DUF);this.W(this.J,g.lG("featured_product"),this.vj);this.W(this.J,"videodatachange",this.onVideoDataChange);this.W(this.overflowButton.element,"click",this.DJ);this.W(d,"featuredproductdismissed",this.aC)};
  6510. v$1=function(d){var q,T;d=(q=d.G)==null?void 0:(T=q.bannerData)==null?void 0:T.itemData;var Y,e,U;return(d==null||!d.affiliateDisclaimer)&&(d==null?0:(Y=d.exclusivesData)==null?0:Y.exclusiveOfferLabelText)&&(d==null?0:(e=d.exclusivesData)==null?0:e.expirationTimestampMs)&&(d==null?0:(U=d.exclusivesData)==null?0:U.exclusiveOfferCountdownText)?!0:!1};
  6511. VyD=function(d){var q,T,Y,e,U=(q=d.G)==null?void 0:(T=q.bannerData)==null?void 0:(Y=T.itemData)==null?void 0:(e=Y.exclusivesData)==null?void 0:e.expirationTimestampMs;q=(Number(U)-Date.now())/1E3;if(q>0){if(q<604800){var b,J,F,N;T=(b=d.G)==null?void 0:(J=b.bannerData)==null?void 0:(F=J.itemData)==null?void 0:(N=F.exclusivesData)==null?void 0:N.exclusiveOfferCountdownText;if(T!==void 0)for(b=Date.now(),J=g.E(T),F=J.next();!F.done;F=J.next())if(F=F.value,F!==void 0&&F.text!==void 0&&(N=Number(F.textDisplayStartTimestampMs),
  6512. !isNaN(N)&&b>=N)){F.insertCountdown?(q=F.text.replace(/\$0/,String(uq({seconds:q}))),d.L.A1(q)):d.L.A1(F.text);d.L.show();break}}var R,x,y,h;d.X.update({exclusive:(R=d.G)==null?void 0:(x=R.bannerData)==null?void 0:(y=x.itemData)==null?void 0:(h=y.exclusivesData)==null?void 0:h.exclusiveOfferLabelText});d.X.show();Nl(d);var H;(H=d.ev)==null||H.start()}else o$D(d)};
  6513. o$D=function(d){var q;(q=d.ev)==null||q.stop();d.L.hide();d.X.hide();RW(d)};
  6514. dJD=function(d){var q,T,Y=(q=d.G)==null?void 0:(T=q.bannerData)==null?void 0:T.itemData;return d.J.N("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(Y==null||!Y.priceReplacementText)&&(Y==null?0:Y.promotionText)?Y==null?void 0:Y.promotionText.content:null};
  6515. qU_=function(d){var q,T,Y=(q=d.G)==null?void 0:(T=q.bannerData)==null?void 0:T.itemData,e,U;if(!(Y!=null&&Y.priceReplacementText||d.J.N("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(Y==null?0:(e=Y.dealsData)==null?0:(U=e.sales)==null?0:U.originalPrice)){var b,J;return Y==null?void 0:(b=Y.dealsData)==null?void 0:(J=b.sales)==null?void 0:J.originalPrice}return null};
  6516. TAX=function(d){var q,T,Y=(q=d.G)==null?void 0:(T=q.bannerData)==null?void 0:T.itemData,e,U,b,J;if(!((Y==null?0:Y.priceReplacementText)||d.J.N("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(Y==null?0:(e=Y.dealsData)==null?0:(U=e.sales)==null?0:U.originalPrice))&&(Y==null?0:(b=Y.dealsData)==null?0:(J=b.priceDrop)==null?0:J.referencePrice)){var F,N;return Y==null?void 0:(F=Y.dealsData)==null?void 0:(N=F.priceDrop)==null?void 0:N.referencePrice}return null};
  6517. YUf=function(d){var q,T,Y=(q=d.G)==null?void 0:(T=q.bannerData)==null?void 0:T.itemData;if(Y==null?0:Y.priceReplacementText)return Y==null?void 0:Y.priceReplacementText;if((Y==null?0:Y.promotionText)&&d.J.N("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var e;return(Y==null?void 0:Y.price)+" "+(Y==null?void 0:(e=Y.promotionText)==null?void 0:e.content)}var U,b;if(Y==null?0:(U=Y.dealsData)==null?0:(b=U.sales)==null?0:b.originalPrice){var J,F;return Y==null?void 0:(J=Y.dealsData)==
  6518. null?void 0:(F=J.sales)==null?void 0:F.salesPriceAccessibilityLabel}var N,R;if(Y==null?0:(N=Y.dealsData)==null?0:(R=N.priceDrop)==null?0:R.referencePrice){var x,y;return(Y==null?void 0:Y.price)+" "+(Y==null?void 0:(x=Y.dealsData)==null?void 0:(y=x.priceDrop)==null?void 0:y.referencePrice)}return Y==null?void 0:Y.price};
  6519. eMI=function(d){if(d.J.N("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var q,T,Y;return d.U.PF?null:(q=d.G)==null?void 0:(T=q.bannerData)==null?void 0:(Y=T.itemData)==null?void 0:Y.vendorName}var e,U,b,J,F,N;return d.U.PF||d.X.PF||((e=d.G)==null?0:(U=e.bannerData)==null?0:(b=U.itemData)==null?0:b.affiliateDisclaimer)?null:(J=d.G)==null?void 0:(F=J.bannerData)==null?void 0:(N=F.itemData)==null?void 0:N.vendorName};
  6520. b87=function(d,q){xB(d);if(q){var T=g.Aw.getState().entities;T=VA(T,"featuredProductsEntity",q);if(T!=null&&T.productsData){q=[];T=g.E(T.productsData);for(var Y=T.next();!Y.done;Y=T.next()){Y=Y.value;var e=void 0;if((e=Y)!=null&&e.identifier&&Y.featuredSegments){d.rO.push(Y);var U=void 0;e=g.E((U=Y)==null?void 0:U.featuredSegments);for(U=e.next();!U.done;U=e.next()){var b=U.value;U=UJH(b.startTimeSec);U!==void 0&&(b=UJH(b.endTimeSec),q.push(new g.Ij(U*1E3,b===void 0?0x7ffffffffffff:b*1E3,{id:Y.identifier,
  6521. namespace:"featured_product"})))}}}d.J.ES(q)}}};
  6522. RW=function(d){if(d.trendingOfferEntityKey){var q=g.Aw.getState().entities;if(q=VA(q,"trendingOfferEntity",d.trendingOfferEntityKey)){var T,Y,e;q.encodedSkuId!==((T=d.G)==null?void 0:(Y=T.bannerData)==null?void 0:(e=Y.itemData)==null?void 0:e.encodedOfferSkuId)?Nl(d):(d.U.update({trendingOffer:q.shortLabel+" \u2022 "+q.countLabel}),d.U.show(),d.banner.update({vendor:eMI(d)}))}else Nl(d)}else Nl(d)};
  6523. Nl=function(d){d.U.hide();d.banner.update({vendor:eMI(d)})};
  6524. xB=function(d){d.rO=[];d.vj();d.J.hm("featured_product")};
  6525. XyD=function(d){var q,T,Y,e,U=(q=d.G)==null?void 0:(T=q.bannerData)==null?void 0:(Y=T.itemData)==null?void 0:(e=Y.hiddenProductOptions)==null?void 0:e.dropTimestampMs;q=(Number(U)-Date.now())/1E3;d.countdownTimer.A1(uq({seconds:q}));if(q>0){var b;(b=d.Qp)==null||b.start()}};
  6526. JXj=function(d){var q;(q=d.Qp)==null||q.stop();d.countdownTimer.hide()};
  6527. UJH=function(d){if(d!==void 0&&d.trim()!==""&&(d=Math.trunc(Number(d.trim())),!(isNaN(d)||d<0)))return d};
  6528. NA2=function(d,q,T){g.f.call(this,{Y:"div",hF:["ytp-info-panel-action-item"],V:[{Y:"div",D:"ytp-info-panel-action-item-disclaimer",j5:"{{disclaimer}}"},{Y:"a",hF:["ytp-info-panel-action-item-button","ytp-button"],Z:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},V:[{Y:"div",D:"ytp-info-panel-action-item-icon",j5:"{{icon}}"},{Y:"div",D:"ytp-info-panel-action-item-label",j5:"{{label}}"}]}]});this.J=d;this.G=T;this.disclaimer=this.Qv("ytp-info-panel-action-item-disclaimer");this.button=
  6529. this.Qv("ytp-info-panel-action-item-button");this.LH=!1;this.J.createServerVe(this.element,this,!0);this.listen("click",this.onClick);d="";T=g.D(q==null?void 0:q.onTap,ri);var Y=g.D(T,g.KM);this.LH=!1;Y?(d=Y.url||"",d.startsWith("//")&&(d="https:"+d),this.LH=!0,g.sD(this.button,g.b4(d))):(Y=g.D(T,sS6))&&!this.G?((d=Y.phoneNumbers)&&d.length>0?(d="sms:"+d[0],Y.messageText&&(d+="?&body="+encodeURI(Y.messageText))):d="",this.LH=!0,g.sD(this.button,g.b4(d,[$JY]))):(T=g.D(T,g01))&&!this.G&&(d=T.phoneNumber?
  6530. "tel:"+T.phoneNumber:"",this.LH=!0,g.sD(this.button,g.b4(d,[Fy1])));var e;if(T=(e=q.disclaimerText)==null?void 0:e.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var U;this.update({label:(U=q.bodyText)==null?void 0:U.content,icon:ck(),disclaimer:T})}else{this.disclaimer.style.display="none";var b;this.update({label:(b=q.bodyText)==null?void 0:b.content,icon:ck()})}this.J.setTrackingParams(this.element,q.trackingParams||null);this.LH&&(this.U={externalLinkData:{url:d}})};
  6531. RM7=function(d,q){var T=ex();g.bi.call(this,d,{Y:"div",D:"ytp-info-panel-detail-skrim",V:[{Y:"div",D:"ytp-info-panel-detail",Z:{role:"dialog",id:T},V:[{Y:"div",D:"ytp-info-panel-detail-header",V:[{Y:"div",D:"ytp-info-panel-detail-title",j5:"{{title}}"},{Y:"button",hF:["ytp-info-panel-detail-close","ytp-button"],Z:{"aria-label":"\u5173\u95ed"},V:[g.y9()]}]},{Y:"div",D:"ytp-info-panel-detail-body",j5:"{{body}}"},{Y:"div",D:"ytp-info-panel-detail-items"}]}]},250);this.G=q;this.items=this.Qv("ytp-info-panel-detail-items");
  6532. this.j=new g.aI(this);this.itemData=[];this.T=T;this.W(this.Qv("ytp-info-panel-detail-close"),"click",this.bF);this.W(this.Qv("ytp-info-panel-detail-skrim"),"click",this.bF);this.W(this.Qv("ytp-info-panel-detail"),"click",function(Y){Y.stopPropagation()});
  6533. g.C(this,this.j);this.J.createServerVe(this.element,this,!0);this.W(d,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",d.getVideoData());this.hide()};
  6534. xJ7=function(d,q){d=g.E(d.itemData);for(var T=d.next();!T.done;T=d.next())T=T.value,T.J.logVisibility(T.element,q)};
  6535. H8I=function(d,q){g.f.call(this,{Y:"div",D:"ytp-info-panel-preview",Z:{"aria-live":"assertive","aria-atomic":"true","aria-owns":q.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.dn(d.C()))},V:[{Y:"div",D:"ytp-info-panel-preview-text",j5:"{{text}}"},{Y:"div",D:"ytp-info-panel-preview-chevron",j5:"{{chevron}}"}]});var T=this;this.J=d;this.Fd=this.G=this.videoId=null;this.j=this.showControls=this.U=!1;this.W(this.element,"click",function(){d.logClick(T.element);d.LW();JM(q)});
  6536. this.fade=new g.oh(this,250,!1,100);g.C(this,this.fade);this.J.createServerVe(this.element,this,!0);this.W(d,"videodatachange",this.onVideoDataChange);this.W(d,"presentingplayerstatechange",this.gT);this.W(this.J,"paidcontentoverlayvisibilitychange",this.Ce);this.W(this.J,"infopaneldetailvisibilitychange",this.Ce);var Y=d.getVideoData()||{};yXn(Y)&&hMH(this,Y);this.W(d,"onShowControls",this.Af);this.W(d,"onHideControls",this.xO)};
  6537. hMH=function(d,q){if(!q.Kz||!d.J.S8()){var T=q.j9||1E4,Y=yXn(q);d.G?q.videoId&&q.videoId!==d.videoId&&(g.I1(d.G),d.videoId=q.videoId,Y?(QS_(d,T,q),d.St()):(d.bF(),d.G.dispose(),d.G=null)):Y&&(q.videoId&&(d.videoId=q.videoId),QS_(d,T,q),d.St())}};
  6538. yXn=function(d){var q,T,Y,e;return!!((q=d.dA)==null?0:(T=q.title)==null?0:T.content)||!!((Y=d.dA)==null?0:(e=Y.bodyText)==null?0:e.content)};
  6539. QS_=function(d,q,T){d.G&&d.G.dispose();d.G=new g.f9(d.Zzk,q,d);g.C(d,d.G);var Y;q=((Y=T.dA)==null?void 0:Y.trackingParams)||null;d.J.setTrackingParams(d.element,q);var e;var U,b;if(T==null?0:(U=T.dA)==null?0:(b=U.title)==null?0:b.content){var J;Y=(e=T.dA)==null?void 0:(J=e.title)==null?void 0:J.content;var F,N;if((F=T.dA)==null?0:(N=F.bodyText)==null?0:N.content)Y+=" \u2022 ";e=Y}else e="";var R,x;T=((R=T.dA)==null?void 0:(x=R.bodyText)==null?void 0:x.content)||"";d.update({text:e+T,chevron:g.xP()})};
  6540. MrH=function(d,q){d.G&&(g.I(q,8)?(d.U=!0,d.St(),d.G.start()):(g.I(q,2)||g.I(q,64))&&d.videoId&&(d.videoId=null))};
  6541. yr=function(d){var q=null;try{q=d.toLocaleString("zh-CN",{style:"percent"})}catch(T){q=d.toLocaleString(void 0,{style:"percent"})}return q};
  6542. hg=function(d,q){var T=0;d=g.E(d);for(var Y=d.next();!(Y.done||Y.value.startTime>q);Y=d.next())T++;return T===0?T:T-1};
  6543. cXQ=function(d,q){for(var T=0,Y=g.E(d),e=Y.next();!e.done;e=Y.next()){e=e.value;if(q<e.timeRangeStartMillis)return null;if(q>=e.timeRangeStartMillis&&q<e.timeRangeStartMillis+e.G)break;T++}T+1<d.length&&d[T+1].timeRangeStartMillis<=q&&T++;return T<d.length?T:null};
  6544. E01=function(d,q){q=hg(d,q)+1;return q<d.length?q:-1};
  6545. jSg=function(d,q){return hg(d,q)-1};
  6546. aF7=function(d,q){return new g.Ij(d,q,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+d})};
  6547. pyN=function(d,q,T,Y,e,U,b,J){g.aI.call(this);var F=this;this.api=d;this.S=q;this.contextMenu=T;this.QH=Y;this.Jm=e;this.G=U;this.X=b;this.progressBar=J;this.T=new g.f9(function(){AX_(F,!1)},1E3);
  6548. this.U="";this.j={xD:!1,LO:!1,aB:!1};g.C(this,this.T);this.W(q,"mousedown",function(){H9(F,!1)});
  6549. this.W(T.element,"mousedown",function(){H9(F,!1)});
  6550. this.W(q,"keydown",this.gN);this.W(T.element,"keydown",this.gN);this.W(q,"keyup",this.WL);this.W(T.element,"keyup",this.WL)};
  6551. Z8X=function(d,q){if(q<0)return"0";d=Math.floor(Math.min(q,d.api.getDuration())*1E3);return d>2147483647?"0":String(d)};
  6552. Qr=function(d,q,T){var Y=d.api.getCurrentTime(),e=Z8X(d,Y);d=Z8X(d,Y+q);return{startMediaTimeMs:e,endMediaTimeMs:d,seekSource:T}};
  6553. O8n=function(d){var q,T=(q=d.api.getVideoData())==null?void 0:q.y5();return d.api.getPresentingPlayerType(T)!==2};
  6554. H9=function(d,q){d.j.LO=q;g.ep(d.api.getRootNode(),"ytp-probably-keyboard-focus",q);g.ep(d.contextMenu.element,"ytp-probably-keyboard-focus",q)};
  6555. c9=function(d,q,T,Y){var e=g.La(d.api.M5());if(e&&e.loaded){var U=d.api.getSubtitlesUserSettings();e=void 0;for(var b=0;b<g.Ml.length;b++){var J=g.Ml[b];if(J.option===q){e=J.options;break}}b=void 0;for(J=0;J<e.length;J++)e[J].option===U[q]&&(b=J);if(Y)if(T){if(b===0)return}else if(b===e.length-1)return;Y={};Y[q]=e[(b+(T?e.length-1:1))%e.length].option;d.api.updateSubtitlesUserSettings(Y);AX_(d,!0);d.T.start()}};
  6556. AX_=function(d,q){g.La(d.api.M5())&&d.api.setOption("captions","sampleSubtitles",q)};
  6557. Ea=function(d,q){g.f.call(this,{Y:"button",hF:["ytp-button","ytp-overflow-button"],Z:{title:d.N("player_tooltip_data_title_killswitch")?"\u66f4\u591a":"","data-tooltip-title":"\u66f4\u591a","aria-haspopup":"true","aria-owns":q.element.id},V:[{Y:"div",D:"ytp-overflow-icon",V:[{Y:"svg",Z:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},V:[{Y:"path",Z:{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",
  6558. fill:"#fff"}}]}]}]});var T=this;this.J=d;this.ag=q;this.visible=!1;d.createClientVe(this.element,this,16499);this.W(d,"videoplayerreset",this.S5);this.W(d,"appresize",this.S5);this.W(d,"fullscreentoggled",this.S5);this.W(d,"presentingplayerstatechange",this.S5);this.S5();D$(d,this.element,this);this.listen("click",function(){d.logClick(T.element);JM(q,T.element,!1)});
  6559. this.W(q.closeButton,"click",function(){T.focus()})};
  6560. n0_=function(d){g.bi.call(this,d,{Y:"div",D:"ytp-overflow-panel",Z:{id:ex(),role:"dialog"},V:[{Y:"div",D:"ytp-overflow-panel-content",V:[{Y:"div",D:"ytp-overflow-panel-action-buttons",j5:"{{buttons}}"}]},{Y:"button",hF:["ytp-overflow-panel-close","ytp-button"],Z:{"data-tooltip-title":"\u5173\u95ed",title:d.C().N("player_tooltip_data_title_killswitch")?"\u5173\u95ed":""},V:[g.y9()]}]},250);this.actionButtons=[];this.G=this.Qv("ytp-overflow-panel-content");this.closeButton=this.Qv("ytp-overflow-panel-close");
  6561. this.W(this.closeButton,"click",this.bF);D$(d,this.closeButton,this);this.listen("click",this.WB);this.W(d,"videoplayerreset",this.hide);this.W(d,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
  6562. rXQ=function(d,q){d.actionButtons.includes(q)||(d.actionButtons.push(q),d.updateValue("buttons",d.actionButtons))};
  6563. trQ=function(d,q){d=g.E(d.actionButtons);for(var T=d.next();!T.done;T=d.next())T.value.N5(q)};
  6564. BAD=function(d,q,T){var Y=g.pa(q,T),e=Y.Qg("default.jpg");g.f.call(this,{Y:"a",hF:["ytp-video-menu-item","ytp-button"],Z:{role:"menuitemradio","aria-label":Y.title,href:d.C().getVideoUrl(Y.videoId,q.listId?q.listId.toString():null)},V:[{Y:"div",D:"ytp-video-menu-item-index",j5:String(T+1)},{Y:"div",D:"ytp-video-menu-item-now-playing",j5:"\u25b6"},{Y:"div",D:"ytp-video-menu-item-thumbnail",Z:{style:e?"background-image: url("+e+");":void 0}},{Y:"div",D:"ytp-video-menu-item-title",j5:Y.title},{Y:"div",
  6565. D:"ytp-video-menu-item-author",j5:Y.author}]});this.api=d;this.index=T;this.listen("click",this.onClick)};
  6566. KyI=function(d){g.bi.call(this,d,{Y:"div",D:"ytp-playlist-menu",Z:{role:"dialog",id:ex()},V:[{Y:"div",D:"ytp-playlist-menu-header",V:[{Y:"div",D:"ytp-playlist-menu-title",V:[d.C().j?{Y:"span",D:"ytp-playlist-menu-title-name",j5:"{{title}}"}:{Y:"a",D:"ytp-playlist-menu-title-name",Z:{href:"{{playlisturl}}"},j5:"{{title}}"},{Y:"button",hF:["ytp-playlist-menu-close","ytp-button"],Z:{"aria-label":"\u5173\u95ed"},V:[g.y9()]}]},{Y:"div",D:"ytp-playlist-menu-subtitle",j5:"{{subtitle}}"}]},{Y:"div",D:"ytp-playlist-menu-items",
  6567. Z:{role:"menu"}}]},250);this.api=d;this.j=this.selected=this.T=this.playlist=null;this.items=this.Qv("ytp-playlist-menu-items");this.G=new g.aI(this);this.playlistData=[];this.W(this.Qv("ytp-playlist-menu-close"),"click",this.bF);var q=this.Qv("ytp-playlist-menu-title-name");d.C().j||(this.j=this.W(q,"click",this.Tsf));g.C(this,this.G);this.hide()};
  6568. jg=function(d,q){var T={};g.f.call(this,{Y:"button",hF:["ytp-playlist-menu-button","ytp-button"],Z:(T.title=d.N("player_tooltip_data_title_killswitch")?"{{title}}":"",T["data-tooltip-title"]="{{tooltip-title}}",T["aria-owns"]=String(q.element.id),T["aria-haspopup"]="true",T["aria-label"]="\u64ad\u653e\u5217\u8868",T["data-overlay-order"]="2",T),V:[{Y:"div",D:"ytp-playlist-menu-button-icon",V:[{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,Z:{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",
  6569. fill:"#fff"}}]}]},{Y:"div",D:"ytp-playlist-menu-button-title",j5:"{{playlistTitle}}"},{Y:"div",D:"ytp-playlist-menu-button-text",j5:"{{text}}"}]});var Y=this;this.api=d;this.playlist=null;this.visible=!1;d.createClientVe(this.element,this,70344);this.W(d,"videodatachange",this.G);this.W(d,"videoplayerreset",this.G);this.W(d,"onPlaylistUpdate",this.G);this.W(d,"presentingplayerstatechange",this.S5);this.W(d,"appresize",this.S5);this.hide();this.G();D$(d,this.element,this);this.listen("click",function(){d.logClick(Y.element);
  6570. d.N("delhi_web_player_use_external_playlist_panel")?d.gO("onToggleExternalPlaylistPanel"):JM(q,Y.element,!1)})};
  6571. Gon=function(d,q){g.f.call(this,{Y:"div",D:"ytp-promotooltip-wrapper",V:[{Y:"div",D:"ytp-promotooltip-container",V:[{Y:"div",D:"ytp-promotooltip-content",V:[{Y:"div",D:"ytp-promotooltip-title",j5:"{{title}}"},{Y:"div",D:"ytp-promotooltip-details",j5:"{{details}}"}]},{Y:"div",D:"ytp-promotooltip-buttons",V:[{Y:"div",D:"ytp-promotooltip-dismiss-button",j5:"{{dismissButtonText}}",Z:{tabindex:"0"}},{Y:"div",D:"ytp-promotooltip-accept-button",j5:"{{acceptButtonText}}",Z:{tabindex:"0","aria-haspopup":"true"}}]}]},
  6572. {Y:"div",D:"ytp-promotooltip-pointer"}]});var T=this;this.tooltipRenderer=d;this.J=q;this.G=this.j=null;this.title=this.Qv("ytp-promotooltip-title");this.details=this.Qv("ytp-promotooltip-details");this.acceptButton=this.Qv("ytp-promotooltip-accept-button");this.dismissButton=this.Qv("ytp-promotooltip-dismiss-button");this.U=this.X=!1;this.T=!0;this.lr=this.L=this.K=this.B=!1;this.fC={Zk:function(Y){T.Zk(Y)}};
  6573. this.OM(!1);d=this.tooltipRenderer.trackingParams||null;if(this.U=!!d)this.J.createServerVe(this.element,this,!0),this.J.setTrackingParams(this.element,d);this.W(q,"onShowControls",this.ZJ);this.W(q,"onHideControls",this.BB);this.W(q,"resize",this.gz);this.W(this.acceptButton,"click",this.hgZ);this.W(this.dismissButton,"click",this.k2D);this.W(document,"click",this.OG)};
  6574. LyY=function(d){var q=document.querySelectorAll('[data-tooltip-target-id="'+d.tooltipRenderer.targetId+'"]');q=q.length>0?q[0]:null;var T=g.bY("ytp-chrome-bottom"),Y=g.bY("ytp-ad-module");d.T=!(T==null||!T.contains(q));d.B=!(Y==null||!Y.contains(q));d.K=!(q==null||!q.hasAttribute("data-tooltip-target-fixed"));return q};
  6575. Wyf=function(d,q,T){if(!d.X){if(q){d.tooltipRenderer=q;q=d.tooltipRenderer.text;var Y=!1,e;(q==null?0:(e=q.runs)==null?0:e.length)&&q.runs[0].text&&(d.update({title:q.runs[0].text.toString()}),Y=!0);g.dv(d.title,Y);q=d.tooltipRenderer.detailsText;e=!1;var U;if((q==null?0:(U=q.runs)==null?0:U.length)&&q.runs[0].text){Y=q.runs[0].text.toString();U=Y.indexOf("$TARGET_ICON");if(U>-1)if(d.tooltipRenderer.targetId){q=[];Y=Y.split("$TARGET_ICON");var b=new g.Ux({Y:"span",D:"ytp-promotooltip-details-icon",
  6576. V:[koI[d.tooltipRenderer.targetId]]});g.C(d,b);for(var J=[],F=g.E(Y),N=F.next();!N.done;N=F.next())N=new g.Ux({Y:"span",D:"ytp-promotooltip-details-component",j5:N.value}),g.C(d,N),J.push(N);Y.length===2?(q.push(J[0].element),q.push(b.element),q.push(J[1].element)):Y.length===1&&(U===0?(q.push(b.element),q.push(J[0].element)):(q.push(J[0].element),q.push(b.element)));U=q.length?q:null}else U=null;else U=Y;if(U){if(typeof U!=="string")for(g.xE(d.details),e=g.E(U),U=e.next();!U.done;U=e.next())d.details.appendChild(U.value);
  6577. else d.update({details:U});e=!0}}g.dv(d.details,e);e=d.tooltipRenderer.acceptButton;U=!1;var R,x,y;((R=g.D(e,g.q6))==null?0:(x=R.text)==null?0:(y=x.runs)==null?0:y.length)&&g.D(e,g.q6).text.runs[0].text&&(d.update({acceptButtonText:g.D(e,g.q6).text.runs[0].text.toString()}),U=!0);g.dv(d.acceptButton,U);R=d.tooltipRenderer.dismissButton;x=!1;var h,H,a;((h=g.D(R,g.q6))==null?0:(H=h.text)==null?0:(a=H.runs)==null?0:a.length)&&g.D(R,g.q6).text.runs[0].text&&(d.update({dismissButtonText:g.D(R,g.q6).text.runs[0].text.toString()}),
  6578. x=!0);g.dv(d.dismissButton,x)}T&&(d.j=T);d.G=LyY(d);d.L=!1;d.J.C().N("web_player_hide_nitrate_promo_tooltip")||d.OM(!0);PK2(d);d.PF&&!d.lr&&(d.lr=!0,d.fC.Zk(0));d.U&&d.J.logVisibility(d.element,d.PF)}};
  6579. aW=function(d){d.OM(!1);d.U&&d.J.logVisibility(d.element,d.PF)};
  6580. CKD=function(d){var q,T,Y,e=((q=g.D(d.acceptButton,g.q6))==null?void 0:(T=q.text)==null?void 0:(Y=T.runs)==null?void 0:Y.length)&&!!g.D(d.acceptButton,g.q6).text.runs[0].text,U,b,J;q=((U=g.D(d.dismissButton,g.q6))==null?void 0:(b=U.text)==null?void 0:(J=b.runs)==null?void 0:J.length)&&!!g.D(d.dismissButton,g.q6).text.runs[0].text;return e||q};
  6581. PK2=function(d){var q;if(!(q=!d.G)){q=d.G;var T=window.getComputedStyle(q);q=T.display==="none"||T.visibility==="hidden"||q.getAttribute("aria-hidden")==="true"}if(q||d.J.isMinimized())d.OM(!1);else if(q=g.Vp(d.G),q.width&&q.height){d.J.KZ(d.element,d.G);var Y=d.J.OD().getPlayerSize().height;T=g.Vp(d.Qv("ytp-promotooltip-container")).height;d.T?d.element.style.top=Y-T-q.height-12+"px":d.K||(Y=d.J.Xb().height-T-q.height-12,d.element.style.top=Y+"px");Y=d.Qv("ytp-promotooltip-pointer");var e=g.vB(d.G,
  6582. d.J.getRootNode()),U=Number(d.element.style.left.replace(/[^\d\.]/g,""));d=d.J.isFullscreen()?18:12;Y.style.left=e.x-U+q.width/2-d+"px";Y.style.top=T+"px"}else d.OM(!1)};
  6583. Ag=function(d){g.f.call(this,{Y:"button",hF:["ytp-replay-button","ytp-button"],Z:{title:d.N("player_tooltip_data_title_killswitch")?"\u91cd\u653e":"","data-tooltip-title":"\u91cd\u653e"},V:[g.ah()]});this.J=d;this.W(d,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.XC(d.getPlayerStateObject());D$(this.J,this.element,this)};
  6584. pq=function(d,q){q=q===void 0?240:q;g.f.call(this,{Y:"button",hF:["ytp-button","ytp-search-button"],Z:{title:d.N("player_tooltip_data_title_killswitch")?"\u641c\u7d22":"","data-tooltip-title":"\u641c\u7d22","data-tooltip-opaque":String(g.dn(d.C()))},V:[{Y:"div",D:"ytp-search-icon",j5:"{{icon}}"},{Y:"div",D:"ytp-search-title",j5:"\u641c\u7d22"}]});this.api=d;this.U=q;this.visible=!1;this.updateValue("icon",{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{Y:"path",D:"ytp-svg-fill",
  6585. Z:{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"}}]});d.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.G();this.W(d,"appresize",this.G);this.W(d,"videodatachange",this.G);D$(d,this.element,this)};
  6586. ZI=function(d){g.f.call(this,{Y:"div",D:"ytp-seek-overlay",V:[{Y:"div",hF:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],V:[{Y:"div",hF:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],V:[{Y:"svg",Z:{viewBox:"0 0 22 32",width:"22",height:"32"},V:[{Y:"path",Z:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{Y:"div",D:"ytp-seek-overlay-duration",j5:"{{durationBack}}"}]},{Y:"div",hF:["ytp-seek-overlay-animation",
  6587. "ytp-seek-overlay-animation-forward"],V:[{Y:"div",D:"ytp-seek-overlay-duration",j5:"{{durationForward}}"},{Y:"div",hF:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],V:[{Y:"svg",Z:{viewBox:"0 0 22 32",width:"22",height:"32"},V:[{Y:"path",Z:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{Y:"div",D:"ytp-seek-overlay-message",V:[{Y:"div",D:"ytp-seek-overlay-message-icon",j5:"{{icon}}"},{Y:"div",D:"ytp-seek-overlay-message-text",
  6588. j5:"{{text}}"}]}]});var q=this;this.J=d;this.L=0;this.G="hidden";this.B=this.Qv("ytp-seek-overlay-animation-back");this.K=this.Qv("ytp-seek-overlay-animation-forward");this.lr=this.Qv("ytp-seek-overlay-message");this.X=new g.f9(function(){uu7(q)},g.Yv(this.J.C().experiments,"web_player_seek_overlay_linger_duration")||1E3);
  6589. g.C(this,this.X);this.J.createClientVe(this.K,this,28240);this.J.createClientVe(this.B,this,28239);this.J.logVisibility(this.K,!0);this.J.logVisibility(this.B,!0);this.hide()};
  6590. DJ6=function(d,q){d.j=d.T.animate([{offset:0,opacity:q,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:1}],{duration:200,fill:"forwards"});d.j.addEventListener("finish",function(){d.j=void 0;d.X.start();d.G="lingering"})};
  6591. wy1=function(d,q,T,Y){T=T===void 0?!1:T;Y=Y===void 0?!1:Y;var e=[];e.push({offset:0,transform:"translateX("+(d.U===-1?30:-30)+"px)",opacity:T?"0":"1"});T&&e.push({offset:.5,opacity:"1"});e.push({offset:1,transform:"translateX(0)"});T=q.animate(e,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});q=q.querySelector("path");e=[];e.push({offset:0,d:d.U===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'});Y&&e.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"});
  6592. d={offset:1,d:d.U===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};Y&&(d.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");e.push(d);q.animate(e,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return T};
  6593. fFH=function(d){var q=d.T.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);q.classList.add("ytp-seek-overlay-arrow-additional");q.classList.remove("ytp-seek-overlay-arrow-persistent");d.T.appendChild(q);wy1(d,q,!0,!0).addEventListener("finish",function(){q.remove()})};
  6594. uu7=function(d,q,T){T=T===void 0?!0:T;d.j=d.T.animate([{offset:0,opacity:q===void 0?1:q},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});T&&(d.j.addEventListener("finish",function(){d.j=void 0;zM2(d);d.hide()}),d.G="fading-out")};
  6595. i8D=function(d){var q=Number(getComputedStyle(d.T).opacity),T;(T=d.j)==null||T.cancel();d.j=void 0;return q};
  6596. zM2=function(d){d.L=0;d.G="hidden";d.U=void 0;d.T=void 0;d.X.stop();d.j=void 0};
  6597. IF6=function(d,q,T){d.updateValue("text",q);if(T){a:{switch(T){case "PREMIUM_STANDALONE":q=B8H();break a;case "PREMIUM_STANDALONE_CAIRO":q=K2D();break a}q=void 0}d.updateValue("icon",q)}q=g.E(d.lr.getAnimations());for(T=q.next();!T.done;T=q.next())T.value.cancel();d.lr.animate([{opacity:0,offset:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){d.updateValue("text","");d.updateValue("icon","")})};
  6598. Oa=function(d,q,T,Y){Y=Y===void 0?240:Y;g.f.call(this,{Y:"button",hF:["ytp-button","ytp-share-button"],Z:{title:d.N("player_tooltip_data_title_killswitch")?"\u5206\u4eab":"","data-tooltip-title":"\u5206\u4eab","aria-haspopup":"true","aria-owns":T.element.id,"data-tooltip-opaque":String(g.dn(d.C()))},V:[{Y:"div",D:"ytp-share-icon",j5:"{{icon}}"},{Y:"div",D:"ytp-share-title",j5:"\u5206\u4eab"}]});this.api=d;this.G=q;this.U=T;this.j=Y;this.visible=!1;this.tooltip=this.G.nH();d.createClientVe(this.element,
  6599. this,28664);this.listen("click",this.onClick);this.W(d,"videodatachange",this.S5);this.W(d,"videoplayerreset",this.S5);this.W(d,"appresize",this.S5);this.W(d,"presentingplayerstatechange",this.S5);this.S5();this.addOnDisposeCallback(g.uH(this.tooltip,this.element))};
  6600. mJ7=function(d){var q=d.api.C(),T=d.api.getVideoData(),Y=g.dn(q)&&g.m7(d.api)&&g.I(d.api.getPlayerStateObject(),128);q=q.j||q.disableSharing&&d.api.getPresentingPlayerType()!==2||!T.showShareButton||T.Oi||Y||T.kc||!1;Y=d.api.OD().getPlayerSize().width;return!!T.videoId&&Y>=d.j&&!q};
  6601. SUQ=function(d,q){q.name!=="InvalidStateError"&&q.name!=="AbortError"&&(q.name==="NotAllowedError"?(d.G.LW(),JM(d.U,d.element,!1)):g.Zz(q))};
  6602. v0X=function(d,q){var T=ex(),Y=d.C();T={Y:"div",D:"ytp-share-panel",Z:{id:ex(),role:"dialog","aria-labelledby":T},V:[{Y:"div",D:"ytp-share-panel-inner-content",V:[{Y:"div",D:"ytp-share-panel-title",Z:{id:T},j5:"\u5206\u4eab"},{Y:"a",hF:["ytp-share-panel-link","ytp-no-contextmenu"],Z:{href:"{{link}}",target:Y.K,title:"\u5206\u4eab\u94fe\u63a5","aria-label":"{{shareLinkWithUrl}}"},j5:"{{linkText}}"},{Y:"label",D:"ytp-share-panel-include-playlist",V:[{Y:"input",D:"ytp-share-panel-include-playlist-checkbox",
  6603. Z:{type:"checkbox",checked:"true"}},"\u5305\u62ec\u64ad\u653e\u5217\u8868"]},{Y:"div",D:"ytp-share-panel-loading-spinner",V:[Oc()]},{Y:"div",D:"ytp-share-panel-service-buttons",j5:"{{buttons}}"},{Y:"div",D:"ytp-share-panel-error",j5:"\u68c0\u7d22\u5206\u4eab\u4fe1\u606f\u65f6\u51fa\u9519\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002"}]},{Y:"button",hF:["ytp-share-panel-close","ytp-button"],Z:{title:"\u5173\u95ed"},V:[g.y9()]}]};g.bi.call(this,d,T,250);var e=this;this.moreButton=null;this.api=d;this.tooltip=
  6604. q.nH();this.j=[];this.X=this.Qv("ytp-share-panel-inner-content");this.closeButton=this.Qv("ytp-share-panel-close");this.W(this.closeButton,"click",this.bF);this.addOnDisposeCallback(g.uH(this.tooltip,this.closeButton));this.T=this.Qv("ytp-share-panel-include-playlist-checkbox");this.W(this.T,"click",this.S5);this.G=this.Qv("ytp-share-panel-link");this.addOnDisposeCallback(g.uH(this.tooltip,this.G));this.api.createClientVe(this.G,this,164503);this.W(this.G,"click",function(U){U.preventDefault();e.api.logClick(e.G);
  6605. var b=e.api.getVideoUrl(!0,!0,!1,!1);b=lFf(e,b);g.pR(b,e.api,U)&&e.api.gO("SHARE_CLICKED")});
  6606. this.listen("click",this.cB);this.W(d,"videoplayerreset",this.hide);this.W(d,"fullscreentoggled",this.onFullscreenToggled);this.W(d,"onLoopRangeChange",this.Zo);this.hide()};
  6607. dpf=function(d,q){o0Y(d);for(var T=q.links||q.shareTargets,Y=0,e={},U=0;U<T.length&&Y<2;e={zb:void 0,fS:void 0},U++){e.zb=T[U];a:switch(e.zb.img||e.zb.iconId){case "facebook":var b={Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{Y:"rect",Z:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{Y:"path",Z:{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",
  6608. fill:"#39579b"}}]};break a;case "twitter":b={Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{Y:"rect",Z:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{Y:"path",Z:{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",
  6609. fill:"#01abf0"}}]};break a;default:b=null}if(b){var J=e.zb.sname||e.zb.serviceName;e.fS=new g.f({Y:"a",hF:["ytp-share-panel-service-button","ytp-button"],Z:{href:e.zb.url,target:"_blank",title:J},V:[b]});e.fS.listen("click",function(R){return function(x){var y=R.zb.url;if(g.cG(x)){var h=h===void 0?{}:h;h.target=h.target||"YouTube";h.width=h.width||"600";h.height=h.height||"600";var H=h;H||(H={});h=window;var a=y instanceof TP?y:g.b4(typeof y.href!="undefined"?y.href:String(y));var p=self.crossOriginIsolated!==
  6610. void 0,t="strict-origin-when-cross-origin";window.Request&&(t=(new Request("/")).referrerPolicy);var n=H.noreferrer;if(p&&n&&t==="unsafe-url")throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");t=n&&!p;y=H.target||y.target;n=[];var K=[],P=!1;for(l in H){var w=H[l];switch(l){case "width":case "height":case "top":case "left":n.push(l+"="+w);break;case "target":break;case "noopener":case "noreferrer":w?K.push(l):(P=!0,K.push(l+"=false"));
  6611. break;case "attributionsrc":n.push(l+(w?"="+w:""));break;default:n.push(l+"="+(w?1:0))}}var l=y!==void 0&&!["_blank","_self","_top","_parent",""].includes(y);l=IT()&&l;Vrj&&p&&n.length===0&&K.length>0&&!l&&!P?(K.length===2&&(K=["noreferrer"]),g.Ry(h,a,y,K[0]),h=YfY()):(p=n.join(","),Ln()&&h.navigator&&h.navigator.standalone&&y&&y!="_self"?(p=g.FE("A"),g.sD(p,a),p.target=y,t&&(p.rel="noreferrer"),((H=H.attributionsrc)||H==="")&&p.setAttribute("attributionsrc",H),H=document.createEvent("MouseEvent"),
  6612. H.initMouseEvent("click",!0,!0,h,1),p.dispatchEvent(H),h=YfY()):t?(h=g.Ry(h,"",y,p),H=g.YS(a),h&&(h.opener=null,H===""&&(H="javascript:''"),H='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+nn(H)+'">',H=Fk(H),(a=h.document)&&a.write&&(a.write(NX(H)),a.close()))):((h=g.Ry(h,a,y,p))&&H.noopener&&(h.opener=null),h&&H.noreferrer&&(h.opener=null)));h&&(h.opener||(h.opener=window),h.focus());x.preventDefault()}}}(e));
  6613. e.fS.addOnDisposeCallback(g.uH(d.tooltip,e.fS.element));J==="Facebook"?d.api.createClientVe(e.fS.element,e.fS,164504):J==="Twitter"&&d.api.createClientVe(e.fS.element,e.fS,164505);d.W(e.fS.element,"click",function(R){return function(){d.api.logClick(R.fS.element)}}(e));
  6614. d.api.logVisibility(e.fS.element,!0);d.j.push(e.fS);Y++}}var F=q.more||q.moreLink,N=new g.f({Y:"a",hF:["ytp-share-panel-service-button","ytp-button"],V:[{Y:"span",D:"ytp-share-panel-service-button-more",V:[{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{Y:"rect",Z:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{Y:"path",Z:{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",
  6615. fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],Z:{href:F,target:"_blank",title:"\u66f4\u591a\u9009\u9879"}});N.listen("click",function(R){var x=F;d.api.logClick(d.moreButton.element);x=lFf(d,x);g.pR(x,d.api,R)&&d.api.gO("SHARE_CLICKED")});
  6616. N.addOnDisposeCallback(g.uH(d.tooltip,N.element));d.api.createClientVe(N.element,N,164506);d.W(N.element,"click",function(){d.api.logClick(N.element)});
  6617. d.api.logVisibility(N.element,!0);d.j.push(N);d.moreButton=N;d.updateValue("buttons",d.j)};
  6618. lFf=function(d,q){var T={};g.dn(d.api.C())&&(g.OF(d.api,"addEmbedsConversionTrackingParams",[T]),q=g.y6(q,T));return q};
  6619. o0Y=function(d){for(var q=g.E(d.j),T=q.next();!T.done;T=q.next())T=T.value,T.detach(),g.T1(T);d.j=[]};
  6620. nq=function(d){return d===void 0||d.startSec===void 0||d.endSec===void 0?!1:!0};
  6621. qQf=function(d,q){d.startSec+=q;d.endSec+=q};
  6622. YQf=function(d){O8.call(this,d);this.U=this.G=this.isContentForward=this.L=!1;this.element.setAttribute("data-overlay-order","8");T$7(this);this.W(this.J,"changeProductsInVideoVisibility",this.y1w);this.W(this.J,"videodatachange",this.onVideoDataChange)};
  6623. eeQ=function(d){d.X&&d.dO.element.removeChild(d.X.element);d.X=void 0};
  6624. bf_=function(d,q){return q.map(function(T){var Y,e;if((T=(Y=g.D(T,Upg))==null?void 0:(e=Y.thumbnail)==null?void 0:e.thumbnails)&&T.length!==0)return T[0].url}).filter(function(T){return T!==void 0}).map(function(T){T=new g.f({Y:"img",
  6625. D:"ytp-suggested-action-product-thumbnail",Z:{alt:"",src:T}});g.C(d,T);return T})};
  6626. XS1=function(d,q){d.isContentForward=q;g.ep(d.badge.element,"ytp-suggested-action-badge-content-forward",q)};
  6627. rr=function(d){var q=d.isContentForward&&!d.To();g.ep(d.badge.element,"ytp-suggested-action-badge-preview-collapsed",q&&d.G);g.ep(d.badge.element,"ytp-suggested-action-badge-preview-expanded",q&&d.U)};
  6628. tg=function(d,q,T){return new g.Ij(d*1E3,q*1E3,{priority:9,namespace:T})};
  6629. JN_=function(d){d.J.hm("shopping_overlay_visible");d.J.hm("shopping_overlay_preview_collapsed");d.J.hm("shopping_overlay_preview_expanded");d.J.hm("shopping_overlay_expanded")};
  6630. T$7=function(d){d.W(d.J,g.Sh("shopping_overlay_visible"),function(){d.nz(!0)});
  6631. d.W(d.J,g.lG("shopping_overlay_visible"),function(){d.nz(!1)});
  6632. d.W(d.J,g.Sh("shopping_overlay_expanded"),function(){d.UD=!0;Zt(d)});
  6633. d.W(d.J,g.lG("shopping_overlay_expanded"),function(){d.UD=!1;Zt(d)});
  6634. d.W(d.J,g.Sh("shopping_overlay_preview_collapsed"),function(){d.G=!0;rr(d)});
  6635. d.W(d.J,g.lG("shopping_overlay_preview_collapsed"),function(){d.G=!1;rr(d)});
  6636. d.W(d.J,g.Sh("shopping_overlay_preview_expanded"),function(){d.U=!0;rr(d)});
  6637. d.W(d.J,g.lG("shopping_overlay_preview_expanded"),function(){d.U=!1;rr(d)})};
  6638. gdN=function(d){g.f.call(this,{Y:"div",D:"ytp-shorts-title-channel",V:[{Y:"a",D:"ytp-shorts-title-channel-logo",Z:{href:"{{channelLink}}",target:d.C().K,"aria-label":"{{channelLogoLabel}}"}},{Y:"div",D:"ytp-shorts-title-expanded-heading",V:[{Y:"div",D:"ytp-shorts-title-expanded-title",V:[{Y:"a",j5:"{{expandedTitle}}",Z:{href:"{{channelTitleLink}}",target:d.C().K,tabIndex:"0"}}]}]}]});var q=this;this.api=d;this.G=this.Qv("ytp-shorts-title-channel-logo");this.channelName=this.Qv("ytp-shorts-title-expanded-title");
  6639. this.subscribeButton=null;d.createClientVe(this.G,this,36925);this.W(this.G,"click",function(T){q.api.logClick(q.G);g.Ry(window,sKY(q));T.preventDefault()});
  6640. d.createClientVe(this.channelName,this,37220);this.W(this.channelName,"click",function(T){q.api.logClick(q.channelName);g.Ry(window,sKY(q));T.preventDefault()});
  6641. $p_(this);this.W(d,"videodatachange",this.S5);this.W(d,"videoplayerreset",this.S5);this.S5()};
  6642. $p_=function(d){if(!d.api.C().q5){var q=d.api.getVideoData(),T=new g.Jg("\u8ba2\u9605",null,"\u5df2\u8ba2\u9605",null,!0,!1,q.Gp,q.subscribed,"channel_avatar",null,d.api,!0);d.api.createServerVe(T.element,d);var Y;d.api.setTrackingParams(T.element,((Y=q.subscribeButtonRenderer)==null?void 0:Y.trackingParams)||null);d.W(T.element,"click",function(){d.api.logClick(T.element)});
  6643. d.subscribeButton=T;g.C(d,d.subscribeButton);d.subscribeButton.IU(d.element)}};
  6644. sKY=function(d){var q=d.api.C(),T=d.api.getVideoData();T=g.nI(q)+T.wO;if(!g.dn(q))return T;q={};g.OF(d.api,"addEmbedsConversionTrackingParams",[q]);return g.y6(T,q)};
  6645. B9=function(d){g.bi.call(this,d,{Y:"button",hF:["ytp-skip-intro-button","ytp-popup","ytp-button"],V:[{Y:"div",D:"ytp-skip-intro-button-text",j5:"\u8df3\u8fc7\u4ecb\u7ecd"}]},100);var q=this;this.j=!1;this.G=new g.f9(function(){q.hide()},5E3);
  6646. this.Je=this.Pf=NaN;g.C(this,this.G);this.L=function(){q.show()};
  6647. this.X=function(){q.hide()};
  6648. this.T=function(){var T=q.J.getCurrentTime();T>q.Pf/1E3&&T<q.Je/1E3&&q.show()};
  6649. this.W(this.J,"videodatachange",function(T,Y){q.qF(T,Y)});
  6650. this.W(this.element,"click",function(){q.J.seekTo(q.Je/1E3)});
  6651. this.hide()};
  6652. Kq=function(d){g.f.call(this,{Y:"button",hF:["ytp-airplay-button","ytp-button"],Z:{title:d.N("player_tooltip_data_title_killswitch")?"AirPlay":"","data-tooltip-title":"AirPlay","data-priority":"11"},j5:"{{icon}}"});this.J=d;this.listen("click",this.onClick);this.W(d,"airplayactivechange",this.S5);this.W(d,"airplayavailabilitychange",this.S5);this.S5();D$(d,this.element,this)};
  6653. N$6=function(d){g.f.call(this,{Y:"div",D:"ytp-gradient-bottom"});this.U=g.FE("CANVAS");this.G=this.U.getContext("2d",{willReadFrequently:!0});this.j=NaN;this.U.width=1;Fkf(this,d.OD().getPlayerSize().height)};
  6654. Fkf=function(d,q){if(d.G){q=Math.floor(q*.4);q=Math.max(q,47);var T=q+2;if(d.j!==T){d.j=T;d.U.height=T;d.G.clearRect(0,0,1,T);var Y=d.G.createLinearGradient(0,2,0,2+q),e=q-42;Y.addColorStop(0,"rgba(0, 0, 0, 0)");Y.addColorStop(e/q,"rgba(0, 0, 0, 0.3)");Y.addColorStop(1,"rgba(0, 0, 0, 0.68)");d.G.fillStyle=Y;d.G.fillRect(0,2,1,q);d.element.style.height=T+"px";try{d.element.style.backgroundImage="url("+d.U.toDataURL()+")"}catch(U){}}}};
  6655. GZ=function(d,q,T,Y){g.f.call(this,{Y:"div",D:"ytp-chapter-container",V:[{Y:"button",hF:["ytp-chapter-title","ytp-button"],V:[{Y:"span",Z:{"aria-hidden":"true"},D:"ytp-chapter-title-prefix",j5:"\u2022"},{Y:"div",D:"ytp-chapter-title-content",j5:"{{chapterTitle}}",Z:{"aria-label":"{{ariaLabel}}","aria-live":"polite",title:d.N("player_tooltip_data_title_killswitch")?Y:"","data-tooltip-title":Y}},{Y:"div",D:"ytp-chapter-title-chevron",V:[{Y:"svg",Z:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{Y:"path",
  6656. Z:{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"}}]}]}]}]});this.J=d;this.T=q;this.L="";this.currentIndex=0;this.U=void 0;this.j=!0;this.yv=this.Qv("ytp-chapter-container");this.G=this.Qv("ytp-chapter-title");this.X=this.Qv("ytp-chapter-title-content");this.K();this.updateVideoData("newdata",this.J.getVideoData());this.W(d,"videodatachange",this.updateVideoData);this.W(d,"resize",this.K);this.W(this.yv,"click",this.onClick);this.W(d,g.Sh(T),this.Yc);this.W(d,"onLoopRangeChange",
  6657. this.Yc);this.W(d,"innertubeCommand",this.onClickCommand);(d=g.JJ(this.J.C()))&&g.ep(this.G,"ytp-profile-page",!0);g.dn(this.J.C())||d||D$(this.J,this.X,this)};
  6658. Lq=function(d,q){GZ.call(this,d,q,"chapterCueRange","\u67e5\u770b\u7ae0\u8282");this.B=""};
  6659. kB=function(){g.Ji.call(this,{Y:"button",hF:["ytp-expand-right-bottom-section-button","ytp-button"],Z:{title:"{{title}}","aria-pressed":"{{pressed}}","data-priority":"1","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[g.xP()]});this.G=!1;this.listen("click",this.U)};
  6660. Re1=function(d,q,T,Y,e){var U=q.Xf/q.rows,b=Math.min(T/(q.XE/q.columns),Y/U),J=q.XE*b,F=q.Xf*b;J=Math.floor(J/q.columns)*q.columns;F=Math.floor(F/q.rows)*q.rows;var N=J/q.columns,R=F/q.rows,x=-q.column*N,y=-q.row*R;e&&U<=45&&(R-=1/b);N-=2/b;d=d.style;d.width=N+"px";d.height=R+"px";e||(Y=(Y-R)/2,T=(T-N)/2,d.marginTop=Math.floor(Y)+"px",d.marginBottom=Math.ceil(Y)+"px",d.marginLeft=Math.floor(T)+"px",d.marginRight=Math.ceil(T)+"px");d.background="url("+q.url+") "+x+"px "+y+"px/"+J+"px "+F+"px"};
  6661. P9=function(d,q){g.f.call(this,{Y:"div",D:"ytp-storyboard-framepreview",V:[{Y:"div",D:"ytp-storyboard-framepreview-timestamp",j5:"{{timestamp}}"},{Y:"div",D:"ytp-storyboard-framepreview-img"}]});this.api=d;this.U=this.Qv("ytp-storyboard-framepreview-img");this.G=null;this.frameIndex=NaN;this.events=new g.aI(this);this.fade=new g.oh(this,100);g.C(this,this.events);g.C(this,this.fade);this.W(this.api,"presentingplayerstatechange",this.j);q&&this.W(this.element,"click",function(){q.RI()})};
  6662. xp6=function(d,q){var T=!!d.G;d.G=q;d.G?(T||(d.events.W(d.api,"videodatachange",function(){xp6(d,d.api.TN())}),d.events.W(d.api,"progresssync",d.S$),d.events.W(d.api,"appresize",d.T)),d.frameIndex=NaN,yND(d),d.fade.show(200)):(T&&g.jX(d.events),d.fade.hide(),d.fade.stop())};
  6663. yND=function(d){var q=d.G,T=d.api.getCurrentTime(),Y=d.api.OD().getPlayerSize(),e=Jw(q,Y.width);e=eyf(q,e,T);d.update({timestamp:g.MY(T)});e!==d.frameIndex&&(d.frameIndex=e,TNQ(q,e,Y.width),q=d6I(q,e,Y.width),Re1(d.U,q,Y.width,Y.height))};
  6664. heQ=function(d,q){g.f.call(this,{Y:"button",hF:["ytp-fullscreen-button","ytp-button"],Z:{title:d.N("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-label":"{{aria-label}}","aria-keyshortcuts":"f","data-priority":"12","data-title-no-tooltip":"{{data-title-no-tooltip}}"},j5:"{{icon}}"});this.J=d;this.U=q;this.message=null;this.G=g.uH(this.U.nH(),this.element);this.j=new g.f9(this.tG,2E3,this);g.C(this,this.j);this.W(d,"fullscreentoggled",this.Cp);
  6665. this.W(d,"presentingplayerstatechange",this.S5);this.W(d,"resize",this.S5);this.listen("click",this.onClick);g.g8()&&(q=this.J.OD(),this.W(q,D0I(),this.j4),this.W(q,uTY(document),this.xX));d.C().wO||d.C().L||this.disable();d.createClientVe(this.element,this,139117);this.S5();this.Cp(d.isFullscreen())};
  6666. Hf_=function(d,q){return d.J.N("delhi_modern_web_player_icons")?q?{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M3.29 3.29C3.11 3.46 3.01 3.70 3.00 3.94C2.98 4.19 3.06 4.43 3.22 4.63L3.29 4.70L7.58 8.99H5C4.73 8.99 4.48 9.10 4.29 9.29C4.10 9.47 4 9.73 4 9.99C4 10.26 4.10 10.51 4.29 10.70C4.48 10.89 4.73 10.99 5 10.99H11V4.99C11 4.73 10.89 4.47 10.70 4.29C10.51 4.10 10.26 3.99 10 3.99C9.73 3.99 9.48 4.10 9.29 4.29C9.10 4.47 9 4.73 9 4.99V7.58L4.70 3.29L4.63 3.22C4.43 3.06 4.19 2.98 3.94 3.00C3.70 3.01 3.46 3.11 3.29 3.29ZM19 13H13V19C13 19.26 13.10 19.51 13.29 19.70C13.48 19.89 13.73 20 14 20C14.26 20 14.51 19.89 14.70 19.70C14.89 19.51 15 19.26 15 19V16.41L19.29 20.70L19.36 20.77C19.56 20.92 19.80 21.00 20.04 20.99C20.29 20.98 20.52 20.87 20.70 20.70C20.87 20.52 20.98 20.29 20.99 20.04C21.00 19.80 20.92 19.56 20.77 19.36L20.70 19.29L16.41 15H19C19.26 15 19.51 14.89 19.70 14.70C19.89 14.51 20 14.26 20 14C20 13.73 19.89 13.48 19.70 13.29C19.51 13.10 19.26 13 19 13Z",
  6667. fill:"white"}}]}:{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M10 3H3V10C3 10.26 3.10 10.51 3.29 10.70C3.48 10.89 3.73 11 4 11C4.26 11 4.51 10.89 4.70 10.70C4.89 10.51 5 10.26 5 10V6.41L9.29 10.70L9.36 10.77C9.56 10.92 9.80 11.00 10.04 10.99C10.29 10.98 10.52 10.87 10.70 10.70C10.87 10.52 10.98 10.29 10.99 10.04C11.00 9.80 10.92 9.56 10.77 9.36L10.70 9.29L6.41 5H10C10.26 5 10.51 4.89 10.70 4.70C10.89 4.51 11 4.26 11 4C11 3.73 10.89 3.48 10.70 3.29C10.51 3.10 10.26 3 10 3ZM20 13C19.73 13 19.48 13.10 19.29 13.29C19.10 13.48 19 13.73 19 14V17.58L14.70 13.29L14.63 13.22C14.43 13.07 14.19 12.99 13.95 13.00C13.70 13.01 13.47 13.12 13.29 13.29C13.12 13.47 13.01 13.70 13.00 13.95C12.99 14.19 13.07 14.43 13.22 14.63L13.29 14.70L17.58 19H14C13.73 19 13.48 19.10 13.29 19.29C13.10 19.48 13 19.73 13 20C13 20.26 13.10 20.51 13.29 20.70C13.48 20.89 13.73 21 14 21H21V14C21 13.73 20.89 13.48 20.70 13.29C20.51 13.10 20.26 13 20 13Z",
  6668. fill:"white"}}]}:q?{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"g",D:"ytp-fullscreen-button-corner-2",V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",Z:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{Y:"g",D:"ytp-fullscreen-button-corner-3",V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",Z:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{Y:"g",D:"ytp-fullscreen-button-corner-0",V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",Z:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{Y:"g",D:"ytp-fullscreen-button-corner-1",
  6669. V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",Z:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]}:{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"g",D:"ytp-fullscreen-button-corner-0",V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",Z:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{Y:"g",D:"ytp-fullscreen-button-corner-1",V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",Z:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{Y:"g",D:"ytp-fullscreen-button-corner-2",V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",
  6670. Z:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{Y:"g",D:"ytp-fullscreen-button-corner-3",V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",Z:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]}};
  6671. W9=function(d,q){g.f.call(this,{Y:"button",hF:["ytp-button","ytp-jump-button"],Z:{title:d.N("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[q>0?{Y:"svg",Z:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{Y:"path",hF:["ytp-circle-arrow","ytp-svg-fill"],Z:{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"}},
  6672. {Y:"text",hF:["ytp-jump-button-text","ytp-svg-fill"],Z:{x:"7.05",y:"15.05"}}]}:{Y:"svg",Z:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{Y:"path",hF:["ytp-circle-arrow","ytp-svg-fill"],Z:{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"}},
  6673. {Y:"text",hF:["ytp-jump-button-text","ytp-svg-fill"],Z:{x:"6.5",y:"15"}}]}]});var T=this;this.J=d;this.G=q;this.U=new g.f9(function(){T.j?(T.j=!1,T.U.start()):T.element.classList.remove("ytp-jump-spin","backwards")},250);
  6674. this.j=!1;(q=q>0)?this.J.createClientVe(this.element,this,36843):this.J.createClientVe(this.element,this,36844);var Y=g.bO(q?"\u5feb\u8fdb $SECONDS \u79d2\u3002(\u2192)":"\u5feb\u9000 $SECONDS \u79d2\u3002(\u2190)",{SECONDS:Math.abs(this.G).toString()});this.J.N("player_tooltip_data_title_killswitch")?this.update({title:Y,"data-title-no-tooltip":Y,"aria-keyshortcuts":q?"\u2192":"\u2190"}):this.update({"tooltip-title":Y,"data-title-no-tooltip":Y,"aria-keyshortcuts":q?"\u2192":"\u2190"});this.T=this.element.querySelector(".ytp-jump-button-text");
  6675. this.T.textContent=Math.abs(this.G).toString();this.listen("click",this.onClick,this);D$(d,this.element,this)};
  6676. QK_=function(d,q){q?d.element.classList.add("ytp-jump-button-enabled"):d.element.classList.remove("ytp-jump-button-enabled");d.J.logVisibility(d.element,q);d.J.U$()};
  6677. Cq=function(d,q){GZ.call(this,d,q,"timedMarkerCueRange","\u67e5\u770b\u91cd\u8981\u65f6\u523b");this.W(d,g.lG("timedMarkerCueRange"),this.Yc);this.W(d,"updatemarkervisibility",this.updateVideoData)};
  6678. MQ6=function(d){var q,T=(q=d.J.getVideoData())==null?void 0:q.Fw;if(T)for(d=d.T.xx,T=g.E(T),q=T.next();!q.done;q=T.next())if(q=d[q.value]){var Y=void 0,e=void 0,U=void 0;if(((Y=q.onTap)==null?void 0:(e=Y.innertubeCommand)==null?void 0:(U=e.changeEngagementPanelVisibilityAction)==null?void 0:U.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return q}};
  6679. ug=function(d){var q=d.N("web_enable_pip_on_miniplayer");g.f.call(this,{Y:"button",hF:["ytp-miniplayer-button","ytp-button"],Z:{title:d.N("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},V:["{{icon}}"]});this.J=d;this.visible=!1;this.listen("click",this.onClick);this.W(d,"fullscreentoggled",this.S5);this.J.N("player_tooltip_data_title_killswitch")?
  6680. this.update({title:g.wm(d,"\u8ff7\u4f60\u64ad\u653e\u5668","i"),"data-title-no-tooltip":"\u8ff7\u4f60\u64ad\u653e\u5668",icon:cN7(this,q)}):this.update({"tooltip-title":g.wm(d,"\u8ff7\u4f60\u64ad\u653e\u5668","i"),"data-title-no-tooltip":"\u8ff7\u4f60\u64ad\u653e\u5668",icon:cN7(this,q)});D$(d,this.element,this);d.createClientVe(this.element,this,62946);this.S5()};
  6681. cN7=function(d,q){return d.J.N("delhi_modern_web_player_icons")?{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M21.20 3.01C21.66 3.05 22.08 3.26 22.41 3.58C22.73 3.91 22.94 4.33 22.98 4.79L23 5V19C23.00 19.49 22.81 19.97 22.48 20.34C22.15 20.70 21.69 20.93 21.20 20.99L21 21H3L2.79 20.99C2.30 20.93 1.84 20.70 1.51 20.34C1.18 19.97 .99 19.49 1 19V13H3V19H21V5H11V3H21L21.20 3.01ZM1.29 3.29C1.10 3.48 1.00 3.73 1.00 4C1.00 4.26 1.10 4.51 1.29 4.70L5.58 9H3C2.73 9 2.48 9.10 2.29 9.29C2.10 9.48 2 9.73 2 10C2 10.26 2.10 10.51 2.29 10.70C2.48 10.89 2.73 11 3 11H9V5C9 4.73 8.89 4.48 8.70 4.29C8.51 4.10 8.26 4 8 4C7.73 4 7.48 4.10 7.29 4.29C7.10 4.48 7 4.73 7 5V7.58L2.70 3.29C2.51 3.10 2.26 3.00 2 3.00C1.73 3.00 1.48 3.10 1.29 3.29ZM19.10 11.00L19 11H12L11.89 11.00C11.66 11.02 11.45 11.13 11.29 11.29C11.13 11.45 11.02 11.66 11.00 11.89L11 12V17C10.99 17.24 11.09 17.48 11.25 17.67C11.42 17.85 11.65 17.96 11.89 17.99L12 18H19L19.10 17.99C19.34 17.96 19.57 17.85 19.74 17.67C19.90 17.48 20.00 17.24 20 17V12L19.99 11.89C19.97 11.66 19.87 11.45 19.70 11.29C19.54 11.13 19.33 11.02 19.10 11.00ZM13 16V13H18V16H13Z",
  6682. fill:"white"}}]}:q?{Y:"svg",Z:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},V:[{Y:"g",Z:{transform:"translate(96, -96) scale(0.8)"},V:[{Y:"path",Kn:!0,Z:{d:"M96-480v-72h165L71-743l50-50 191 190v-165h72v288H96Zm72 288q-29.7 0-50.85-21.15Q96-234.3 96-264v-144h72v144h336v72H168Zm624-264v-240H456v-72h336q29.7 0 50.85 21.15Q864-725.7 864-696v240h-72ZM576-192v-192h288v192H576Z"}}]}]}:tXD()};
  6683. DI=function(d,q,T,Y,e,U){U=U===void 0?!1:U;var b={Y:"div",hF:["ytp-input-slider-section"],V:[{Y:"input",D:"ytp-input-slider",Z:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};e&&b.V.unshift(e);U&&b.hF.push("ytp-vertical-slider");g.f.call(this,b);this.T=d;this.X=q;this.B=T;this.initialValue=Y;this.header=e;this.U=this.Qv("ytp-input-slider");this.G=Y?Y:d;this.init();this.W(this.U,"input",this.j);this.W(this.U,"keydown",
  6684. this.L)};
  6685. wr=function(d,q){d.G=q;d.updateValue("slidervalue",d.G);d.U.valueAsNumber=d.G;EdY(d,q)};
  6686. EdY=function(d,q){d.U.style.setProperty("--yt-slider-shape-gradient-percent",(q-d.T)/(d.X-d.T)*100+"%")};
  6687. fq=function(d){var q=d.isMuted()?0:d.getVolume();DI.call(this,0,100,1,q,void 0,!0);this.J=d;this.lr=KT(this.yv,10,this);this.K=!1;this.W(d,"onVolumeChange",this.onVolumeChange);this.W(this.element,"wheel",this.UD)};
  6688. jKX=function(d,q){g.f.call(this,{Y:"div",Z:{tabindex:"0",title:d.N("player_tooltip_data_title_killswitch")?"\u97f3\u91cf":"","data-tooltip-title":"\u97f3\u91cf","data-tooltip-offset-y":"-120"},hF:["ytp-volume-popover"]});var T=this;this.isVisible=!1;this.tooltip=q.nH();this.U=new fq(d);g.C(this,this.U);this.U.IU(this.element);this.G=new g.f9(function(){zZ(T,!1)},300);
  6689. this.listen("mouseenter",function(){T.G.stop()});
  6690. this.listen("mouseleave",function(){T.G.start()});
  6691. this.listen("focus",function(){T.G.stop()});
  6692. this.W(this.U.U,"focus",function(){T.G.stop()});
  6693. this.listen("focusout",function(){T.G.start();T.element.dispatchEvent(new Event("blur"))});
  6694. this.addOnDisposeCallback(g.uH(q.nH(),this.element));g.C(this,this.G)};
  6695. zZ=function(d,q){d.element.classList.toggle("ytp-volume-popover-hovering",q);d.isVisible=q;(d=d.element.closest(".ytp-chrome-bottom"))&&d.classList.toggle("ytp-volume-popover-showing",q)};
  6696. ig=function(d,q,T){T=T===void 0?!1:T;var Y=d.C().dO?{"aria-keyshortcuts":"m","aria-label":"{{aria-label}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}","data-tooltip-offset-y":"{{dataTooltipOffsetY}}","data-tooltip-title":"{{tooltip-title}}",title:d.N("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};Y=d.N("delhi_modern_web_player")?{Y:"div",D:"ytp-mute-button",V:[{Y:"button",Z:Y,hF:["ytp-volume-icon",
  6697. "ytp-button"],j5:"{{icon}}"}]}:{Y:"button",hF:["ytp-mute-button","ytp-button"],Z:Y,V:[{Y:"div",D:"ytp-volume-icon",j5:"{{icon}}"}]};g.f.call(this,Y);this.J=d;this.aU=T;this.U=null;this.L=this.yv=this.K=this.B=NaN;this.z2=this.lr=null;this.X=[];this.T=[];this.visible=!1;this.j=this.G=this.UD=null;d.N("delhi_modern_web_player")&&this.update({"data-priority":4});T=this.J.C();this.updateValue("icon",Zy());this.tooltip=q.nH();this.updateValue("dataTooltipOffsetY",0);this.j=g.bY("ytp-volume-icon",this.element);
  6698. Y=this.J.N("delhi_modern_web_player_icons")?{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",hF:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],Z:{d:"M 11.60 2.08 L 11.48 2.14 L 3.91 6.68 C 3.02 7.21 2.28 7.97 1.77 8.87 C 1.26 9.77 1.00 10.79 1 11.83 V 12.16 L 1.01 12.56 C 1.07 13.52 1.37 14.46 1.87 15.29 C 2.38 16.12 3.08 16.81 3.91 17.31 L 11.48 21.85 C 11.63 21.94 11.80 21.99 11.98 21.99 C 12.16 22.00 12.33 21.95 12.49 21.87 C 12.64 21.78 12.77 21.65 12.86 21.50 C 12.95 21.35 13 21.17 13 21 V 3 C 12.99 2.83 12.95 2.67 12.87 2.52 C 12.80 2.37 12.68 2.25 12.54 2.16 C 12.41 2.07 12.25 2.01 12.08 2.00 C 11.92 1.98 11.75 2.01 11.60 2.08 Z",
  6699. fill:"#fff"}},{Y:"path",D:"ytp-svg-volume-animation-small-ripple",Z:{d:" M 15.53 7.05 C 15.35 7.22 15.25 7.45 15.24 7.70 C 15.23 7.95 15.31 8.19 15.46 8.38 L 15.53 8.46 L 15.70 8.64 C 16.09 9.06 16.39 9.55 16.61 10.08 L 16.70 10.31 C 16.90 10.85 17 11.42 17 12 L 16.99 12.24 C 16.96 12.73 16.87 13.22 16.70 13.68 L 16.61 13.91 C 16.36 14.51 15.99 15.07 15.53 15.53 C 15.35 15.72 15.25 15.97 15.26 16.23 C 15.26 16.49 15.37 16.74 15.55 16.92 C 15.73 17.11 15.98 17.21 16.24 17.22 C 16.50 17.22 16.76 17.12 16.95 16.95 C 17.6 16.29 18.11 15.52 18.46 14.67 L 18.59 14.35 C 18.82 13.71 18.95 13.03 18.99 12.34 L 19 12 C 18.99 11.19 18.86 10.39 18.59 9.64 L 18.46 9.32 C 18.15 8.57 17.72 7.89 17.18 7.3 L 16.95 7.05 L 16.87 6.98 C 16.68 6.82 16.43 6.74 16.19 6.75 C 15.94 6.77 15.71 6.87 15.53 7.05",
  6700. fill:"#fff"}},{Y:"path",D:"ytp-svg-volume-animation-big-ripple",Z:{d:"M18.36 4.22C18.18 4.39 18.08 4.62 18.07 4.87C18.05 5.12 18.13 5.36 18.29 5.56L18.36 5.63L18.66 5.95C19.36 6.72 19.91 7.60 20.31 8.55L20.47 8.96C20.82 9.94 21 10.96 21 11.99L20.98 12.44C20.94 13.32 20.77 14.19 20.47 15.03L20.31 15.44C19.86 16.53 19.19 17.52 18.36 18.36C18.17 18.55 18.07 18.80 18.07 19.07C18.07 19.33 18.17 19.59 18.36 19.77C18.55 19.96 18.80 20.07 19.07 20.07C19.33 20.07 19.59 19.96 19.77 19.77C20.79 18.75 21.61 17.54 22.16 16.20L22.35 15.70C22.72 14.68 22.93 13.62 22.98 12.54L23 12C22.99 10.73 22.78 9.48 22.35 8.29L22.16 7.79C21.67 6.62 20.99 5.54 20.15 4.61L19.77 4.22L19.70 4.15C19.51 3.99 19.26 3.91 19.02 3.93C18.77 3.94 18.53 4.04 18.36 4.22 Z",
  6701. fill:"#fff"}}]}:{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"defs",V:[{Y:"clipPath",Z:{id:"ytp-svg-volume-animation-mask"},V:[{Y:"path",Z:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{Y:"path",Z:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{Y:"path",D:"ytp-svg-volume-animation-mover",Z:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{Y:"clipPath",Z:{id:"ytp-svg-volume-animation-slash-mask"},V:[{Y:"path",D:"ytp-svg-volume-animation-mover",
  6702. Z:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{Y:"path",Kn:!0,hF:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],Z:{"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"}},{Y:"path",Kn:!0,hF:["ytp-svg-fill","ytp-svg-volume-animation-hider"],Z:{"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",
  6703. fill:"#fff"}}]};this.U=new g.Ux(Y);g.C(this,this.U);this.lr=this.U.Qv("ytp-svg-volume-animation-speaker");this.z2=this.lr.getAttribute("d");this.X=g.eV("ytp-svg-volume-animation-mover",this.U.element);this.J.N("delhi_modern_web_player_icons");this.T=g.eV("ytp-svg-volume-animation-hider",this.U.element);this.J.N("delhi_modern_web_player_icons");this.dO=new Yr;g.C(this,this.dO);this.rO=new Yr;g.C(this,this.rO);this.W(d,"appresize",this.mQ);this.W(d,"onVolumeChange",this.onVolumeChange);d.N("delhi_modern_web_player")?
  6704. this.listen("click",this.rmg):this.listen("click",this.hT);T.dO?(d.N("delhi_modern_web_player")&&(this.G=new jKX(d,q),this.G.IU(this.element),g.C(this,this.G),this.W(this.j,"mouseover",this.X8),this.W(this.j,"focus",this.X8),this.W(this.j,"mouseout",this.oY),this.W(this.j,"blur",this.oY)),T=d.N("delhi_modern_web_player")?this.j:this.element,this.addOnDisposeCallback(g.uH(q.nH(),T))):aoD(this);this.message=null;d.createClientVe(this.element,this,28662);this.mQ(d.OD().getPlayerSize());this.setVolume(d.getVolume(),
  6705. d.isMuted())};
  6706. ANQ=function(d,q){if(d.J.C().dO){var T=g.wm(d.J,"\u9759\u97f3","m"),Y=g.wm(d.J,"\u53d6\u6d88\u9759\u97f3","m");T=q?Y:T;d.J.C().N("player_tooltip_data_title_killswitch")?d.updateValue("title",T):d.update({"tooltip-title":T,"aria-label":T});d.update({"data-title-no-tooltip":q?"\u53d6\u6d88\u9759\u97f3":"\u9759\u97f3"});d.tooltip.U$()}};
  6707. OfN=function(d,q){d.B=q;var T=d.z2;d.J.N("delhi_modern_web_player_icons")?d.U.Qv("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(q+") translate(-22,-12)")):q&&(T+=LNQ(pSj,Zf6,q));d.lr.setAttribute("d",T)};
  6708. ndn=function(d,q){var T;q===1?T=d.J.N("delhi_modern_web_player_icons")?{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M11.60 2.08L11.48 2.14L3.91 6.68C3.02 7.21 2.28 7.97 1.77 8.87C1.26 9.77 1.00 10.79 1 11.83V12.16L1.01 12.56C1.07 13.52 1.37 14.46 1.87 15.29C2.38 16.12 3.08 16.81 3.91 17.31L11.48 21.85C11.63 21.94 11.80 21.99 11.98 21.99C12.16 22.00 12.33 21.95 12.49 21.87C12.64 21.78 12.77 21.65 12.86 21.50C12.95 21.35 13 21.17 13 21V3C12.99 2.83 12.95 2.67 12.87 2.52C12.80 2.37 12.68 2.25 12.54 2.16C12.41 2.07 12.25 2.01 12.08 2.00C11.92 1.98 11.75 2.01 11.60 2.08ZM4.94 8.4V8.40L11 4.76V19.23L4.94 15.6C4.38 15.26 3.92 14.80 3.58 14.25C3.24 13.70 3.05 13.07 3.00 12.43L3 12.17V11.83C2.99 11.14 3.17 10.46 3.51 9.86C3.85 9.25 4.34 8.75 4.94 8.4ZM21.29 8.29L19 10.58L16.70 8.29L16.63 8.22C16.43 8.07 16.19 7.99 15.95 8.00C15.70 8.01 15.47 8.12 15.29 8.29C15.12 8.47 15.01 8.70 15.00 8.95C14.99 9.19 15.07 9.43 15.22 9.63L15.29 9.70L17.58 12L15.29 14.29C15.19 14.38 15.12 14.49 15.06 14.61C15.01 14.73 14.98 14.87 14.98 15.00C14.98 15.13 15.01 15.26 15.06 15.39C15.11 15.51 15.18 15.62 15.28 15.71C15.37 15.81 15.48 15.88 15.60 15.93C15.73 15.98 15.86 16.01 15.99 16.01C16.12 16.01 16.26 15.98 16.38 15.93C16.50 15.87 16.61 15.80 16.70 15.70L19 13.41L21.29 15.70L21.36 15.77C21.56 15.93 21.80 16.01 22.05 15.99C22.29 15.98 22.53 15.88 22.70 15.70C22.88 15.53 22.98 15.29 22.99 15.05C23.00 14.80 22.93 14.56 22.77 14.36L22.70 14.29L20.41 12L22.70 9.70C22.80 9.61 22.87 9.50 22.93 9.38C22.98 9.26 23.01 9.12 23.01 8.99C23.01 8.86 22.98 8.73 22.93 8.60C22.88 8.48 22.81 8.37 22.71 8.28C22.62 8.18 22.51 8.11 22.39 8.06C22.26 8.01 22.13 7.98 22.00 7.98C21.87 7.98 21.73 8.01 21.61 8.06C21.49 8.12 21.38 8.19 21.29 8.29Z",
  6709. fill:"white"}}]}:Zy():T=d.U;d.yv=q;if(d.J.N("delhi_modern_web_player_icons"))d.U.Qv("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-q+") translate(-18,-12)")),d.U.Qv("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(d.B-q+") translate(-22, -12)"));else{for(var Y=20*q,e=0;e<d.X.length;e++)d.X[e].setAttribute("transform","translate("+Y+", "+Y+")");for(Y=0;Y<d.T.length;Y++){e=d.T[Y];var U=void 0;if((U=e)==null?
  6710. 0:U.style)e.style.display=q===0?"none":""}}T!==d.UD&&(d.updateValue("icon",T),d.UD=T)};
  6711. aoD=function(d){var q=null,T="\u4f60\u7684\u6d4f\u89c8\u5668\u4e0d\u5141\u8bb8\u66f4\u6539\u97f3\u91cf\u3002$BEGIN_LINK\u4e86\u89e3\u8be6\u60c5$END_LINK".split(/\$(BEGIN|END)_LINK/);q=new g.bi(d.J,{Y:"span",hF:["ytp-popup","ytp-generic-popup"],Z:{tabindex:"0"},V:[T[0],{Y:"a",Z:{href:"https://support.google.com/youtube/?p=noaudio",target:d.J.C().K},j5:T[2]},T[4]]},100,!0);g.C(d,q);q.hide();q.subscribe("show",function(Y){d.J.V8(q,Y)});
  6712. g.o6(d.J,q.element,4)};
  6713. g.IW=function(d,q){g.f.call(this,{Y:"button",hF:["ytp-play-button","ytp-button"],Z:{title:d.N("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},j5:"{{icon}}"});this.J=d;this.G=null;this.transition=new Yr;this.tooltip=q.nH();g.C(this,this.transition);d.createClientVe(this.element,this,36842);d.N("embeds_use_parent_visibility_in_ve_logging")?d.logVisibility(this.element,this.S):
  6714. d.logVisibility(this.element,!0);this.W(d,"fullscreentoggled",this.onVideoDataChange);this.W(d,"presentingplayerstatechange",this.onStateChange);this.W(d,"videodatachange",this.onVideoDataChange);this.XC(d.getPlayerStateObject());this.listen("click",this.cW,this);this.addOnDisposeCallback(g.uH(q.nH(),this.element))};
  6715. rN_=function(d,q){d=d.J.N("delhi_modern_web_player_icons");switch(q){case 1:return d?jx():Ex();case 2:return d?OWN():ZWj();case 3:return d?kyD():g.ah();case 4:return d?W26():P5_();default:return null}};
  6716. g.mG=function(d,q,T){g.f.call(this,{Y:"a",hF:[T?"ytp-next-button":"ytp-prev-button","ytp-button"],Z:{role:"button",title:"{{title}}","data-tooltip-title":"{{tooltip-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:[tQY(T,d.N("delhi_modern_web_player_icons"))]});
  6717. var Y=this;this.J=d;this.G=T;this.playlist=this.videoData=null;this.L=!1;this.T=this.X=this.U=null;this.j=!1;this.tooltip=q.nH();T?d.createClientVe(this.element,this,6193):d.createClientVe(this.element,this,6194);this.W(d,"fullscreentoggled",this.onVideoDataChange);this.W(d,"videodatachange",this.onVideoDataChange);this.W(d,"onPlaylistUpdate",this.onVideoDataChange);this.W(d,"onLoopRangeChange",this.onVideoDataChange);this.G||this.W(d,"appresize",this.X6);this.W(d,"mdxpreviousnextchange",function(){B$_(Y);
  6718. Y.X6()});
  6719. this.onVideoDataChange()};
  6720. KkY=function(d){d.playlist&&d.playlist.unsubscribe("shuffle",d.onVideoDataChange,d)};
  6721. GwD=function(d){return!!d.playlist&&!d.G&&!!d.videoData&&!d.videoData.isLivePlayback&&d.J.getCurrentTime()>=3&&d.J.getPresentingPlayerType()!==2};
  6722. LkQ=function(d){var q=I6(d.J.M5());return q?d.G?q.mB():q.M1():!1};
  6723. B$_=function(d){var q={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},T=d.playlist!=null&&d.playlist.mB();T=g.m7(d.J)&&(!d.G||T);var Y=d.G&&g.V2(d.J),e=LkQ(d),U=d.G&&d.J.getPresentingPlayerType()===5,b=g.wm(d.J,"\u4e0b\u4e00\u4e2a","SHIFT+n"),J=g.wm(d.J,"\u4e0a\u4e00\u4e2a","SHIFT+p");if(U)q.title="\u5f00\u59cb\u64ad\u653e\u89c6\u9891",q["tooltip-title"]="\u5f00\u59cb\u64ad\u653e\u89c6\u9891";else if(d.j)q.title=
  6724. "\u91cd\u653e",q["tooltip-title"]="\u91cd\u653e";else if(T){var F=null;d.playlist&&(F=g.pa(d.playlist,d.G?ajn(d.playlist):Aa2(d.playlist)));if(F){if(F.videoId){var N=d.playlist.listId;q.url=d.J.C().getVideoUrl(F.videoId,N?N.toString():void 0)}q.text=F.title;q.duration=F.lengthText?F.lengthText:F.lengthSeconds?g.MY(F.lengthSeconds):null;q.preview=F.Qg("mqdefault.jpg")}d.G?(q.title=b,q["tooltip-title"]=b,q["data-title-no-tooltip"]="\u4e0b\u4e00\u4e2a",q["aria-keyshortcuts"]="SHIFT+n"):(q.title=J,q["tooltip-title"]=
  6725. J,q["data-title-no-tooltip"]="\u4e0a\u4e00\u4e2a",q["aria-keyshortcuts"]="SHIFT+p")}else if(Y){if(J=(F=d.videoData)==null?void 0:g.jH(F))q.url=J.Xk(),q.text=J.title,q.duration=J.lengthText?J.lengthText:J.lengthSeconds?g.MY(J.lengthSeconds):null,q.preview=J.Qg("mqdefault.jpg");q.title=b;q["tooltip-title"]=b;q["data-title-no-tooltip"]="\u4e0b\u4e00\u4e2a";q["aria-keyshortcuts"]="SHIFT+n"}q.disabled=!Y&&!T&&!e&&!U;d.update(q);d.L=!!q.url;Y||T||d.j||e||U?d.U||(d.U=g.uH(d.tooltip,d.element),d.X=d.listen("click",
  6726. d.onClick,d)):d.U&&(d.U(),d.U=null,d.t1(d.X),d.X=null);d.tooltip.U$();g.ep(d.element,"ytp-playlist-ui",d.G&&(T||d.J.N("web_hide_next_button")))};
  6727. tQY=function(d,q){return d?q?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M20 20C20.26 20 20.51 19.89 20.70 19.70C20.89 19.51 21 19.26 21 19V5C21 4.73 20.89 4.48 20.70 4.29C20.51 4.10 20.26 4 20 4C19.73 4 19.48 4.10 19.29 4.29C19.10 4.48 19 4.73 19 5V19C19 19.26 19.10 19.51 19.29 19.70C19.48 19.89 19.73 20 20 20ZM5.04 19.77L18 12L5.04 4.22C4.84 4.10 4.60 4.03 4.36 4.03C4.12 4.03 3.89 4.09 3.68 4.21C3.47 4.32 3.30 4.49 3.18 4.70C3.06 4.91 2.99 5.14 3 5.38V18.61C2.99 18.85 3.06 19.08 3.18 19.29C3.30 19.50 3.47 19.67 3.68 19.79C3.89 19.90 4.12 19.96 4.36 19.96C4.60 19.96 4.84 19.89 5.04 19.77Z",
  6728. fill:"white"}}]}:Q9():q?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M4 4C3.73 4 3.48 4.10 3.29 4.29C3.10 4.48 3 4.73 3 5V19C3 19.26 3.10 19.51 3.29 19.70C3.48 19.89 3.73 20 4 20C4.26 20 4.51 19.89 4.70 19.70C4.89 19.51 5 19.26 5 19V5C5 4.73 4.89 4.48 4.70 4.29C4.51 4.10 4.26 4 4 4ZM18.95 4.23L6 12.00L18.95 19.77C19.15 19.89 19.39 19.96 19.63 19.96C19.87 19.97 20.10 19.91 20.31 19.79C20.52 19.67 20.69 19.50 20.81 19.29C20.93 19.09 21.00 18.85 21 18.61V5.38C20.99 5.14 20.93 4.91 20.81 4.70C20.69 4.50 20.52 4.33 20.31 4.21C20.10 4.09 19.87 4.03 19.63 4.03C19.39 4.04 19.15 4.10 18.95 4.23Z",
  6729. fill:"white"}}]}:GyN()};
  6730. PJn=function(d,q){g.f.call(this,{Y:"div",D:"ytp-fine-scrubbing",V:[{Y:"div",D:"ytp-fine-scrubbing-draggable",V:[{Y:"div",D:"ytp-fine-scrubbing-thumbnails",Z:{tabindex:"0",role:"slider",type:"range","aria-label":"\u70b9\u51fb\u6216\u6eda\u52a8\u9762\u677f\u53ef\u8fdb\u884c\u7cbe\u786e\u8df3\u8f6c\u3002","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{Y:"div",Z:{"aria-hidden":"true"},D:"ytp-fine-scrubbing-cursor"},{Y:"div",
  6731. D:"ytp-fine-scrubbing-seek-time",Z:{"aria-hidden":"true"},j5:"{{seekTime}}"},{Y:"div",D:"ytp-fine-scrubbing-play",V:[d.N("delhi_modern_web_player_icons")?jx():Ex()],Z:{title:"\u4ece\u8fd9\u4e2a\u4f4d\u7f6e\u5f00\u59cb\u64ad\u653e",role:"button"}},{Y:"div",D:"ytp-fine-scrubbing-dismiss",V:[g.y9()],Z:{title:"\u9000\u51fa\u7cbe\u786e\u8df3\u8f6c\u6a21\u5f0f",role:"button"}}]});var T=this;this.api=d;this.X=this.Qv("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Qv("ytp-fine-scrubbing-dismiss");
  6732. this.yv=this.Qv("ytp-fine-scrubbing-draggable");this.playButton=this.Qv("ytp-fine-scrubbing-play");this.thumbnails=[];this.U=[];this.aU=this.G=0;this.dO=void 0;this.lr=NaN;this.RU=this.K=this.j=this.B=0;this.T=[];this.interval=this.frameCount=0;this.L=160;this.scale=1;this.qk=0;this.isEnabled=this.z2=!1;kw6(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.uH(q,this.dismissButton));this.addOnDisposeCallback(g.uH(q,this.playButton));this.rO=new g.fc(this.yv,!0);this.rO.subscribe("dragstart",
  6733. this.m$,this);this.rO.subscribe("dragmove",this.q_,this);this.rO.subscribe("dragend",this.kO,this);this.W(d,"SEEK_COMPLETE",this.K2);d.N("web_fix_fine_scrubbing_false_play")&&this.W(d,"rootnodemousedown",function(Y){T.UD=Y});
  6734. this.X.addEventListener("keydown",function(){});
  6735. g.C(this,this.rO);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.X,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)};
  6736. kw6=function(d,q){var T=g.MY(q),Y=g.bO("\u8df3\u8f6c\u5230 $PROGRESS \u5904",{PROGRESS:g.MY(q,!0)});d.update({ariamin:0,ariamax:Math.floor(d.api.getDuration()),arianow:Math.floor(q),arianowtext:Y,seekTime:T})};
  6737. WkN=function(d){d.lr=NaN;d.K=0;d.B=d.j};
  6738. Dp7=function(d){var q=d.api.TN();if(q){var T=90*d.scale,Y=Jw(q,160*d.scale);if(q=q.levels[Y]){d.L=q.width;if(!d.T.length){Y=[];for(var e=sB(q,q.wi()),U=q.columns*q.rows,b=q.frameCount,J=0;J<=e;J++)for(var F=b<U?Math.ceil(b/q.columns):q.rows,N=0;N<q.rows;N++){var R=b<q.columns?b:q.columns,x={url:q.Hl(J),column:0,columns:R,row:N,rows:F,XE:q.width*R,Xf:q.height*F};Y.push(x);b-=R;if(b<=1)break}d.T=Y;d.frameCount=q.Az();d.interval=q.G/1E3||d.api.getDuration()/d.frameCount}for(;d.thumbnails.length>d.T.length;)Y=
  6739. void 0,(Y=d.thumbnails.pop())==null||Y.dispose();for(;d.thumbnails.length<d.T.length;)Y=new CJY,d.thumbnails.push(Y),Y.IU(d.X),g.C(d,Y);for(Y=0;Y<d.T.length;Y++)e=d.thumbnails[Y].element,U=d.T[Y],b=d.L*d.scale,J=U.Xf/U.rows,F=T/J,e.style.background="url("+U.url+") 0 "+-U.row*U.Xf/U.rows*F+"px/"+b*q.columns+"px "+J*U.rows*F+"px",e.style.width=b*U.columns+"px",e.style.height=T+"px";Sg(d,d.api.getCurrentTime());for(T=d.api.getVideoData().lS;d.U.length>T.length;)Y=void 0,(Y=d.U.pop())==null||Y.dispose();
  6740. for(;d.U.length<T.length;)Y=new u5N,d.U.push(new u5N),g.C(d,Y);for(Y=0;Y<T.length;Y++)e=T[Y],d.U[Y].update({chapterTitle:e.title}),e=Math.round(e.startTime/q.G),U=Math.floor(e/q.rows),g.Dv(d.U[Y].element,"transform","translateX("+e%q.rows*d.L*d.scale+"px)"),U<d.thumbnails.length&&d.thumbnails[U]&&d.U[Y].IU(d.thumbnails[U].element);d.z2=!0}}};
  6741. Sg=function(d,q){d.UD&&(d.UD.MG=!0);d.update({seekTime:g.MY(q)});var T=d.L*d.scale;q=q<d.interval/2?-q*T/d.interval*2+d.G/2:-q*T/d.interval-T/2+d.G/2;q=g.Cn(q,wSD(d),d.G/2);d.B=q;d.j=d.B;g.Dv(d.yv,"transform","translateX("+(d.B-d.G/2)+"px)");g.Dv(d.yv,"padding","0px "+d.G/2+"px");g.Dv(d.X,"position","relative")};
  6742. foY=function(d,q){var T=d.L*d.scale;q-=d.G/2;return q>-T?-q/T*d.interval*.5:-(q+T/2)/T*d.interval};
  6743. wSD=function(d){return-((d.X.offsetWidth||(d.frameCount-1)*d.L*d.scale)-d.G/2)};
  6744. CJY=function(){g.f.call(this,{Y:"div",D:"ytp-fine-scrubbing-thumbnail"})};
  6745. u5N=function(){g.f.call(this,{Y:"div",D:"ytp-fine-scrubbing-chapter-title",V:[{Y:"div",D:"ytp-fine-scrubbing-chapter-title-content",j5:"{{chapterTitle}}"}]})};
  6746. ze_=function(d){g.f.call(this,{Y:"div",D:"ytp-heat-map-chapter",V:[{Y:"svg",D:"ytp-heat-map-svg",Z:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},V:[{Y:"defs",V:[{Y:"clipPath",Z:{id:"{{id}}"},V:[{Y:"path",D:"ytp-heat-map-path",Z:{d:"",fill:"white"}}]},{Y:"linearGradient",Z:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},V:[{Y:"stop",Z:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{Y:"stop",Z:{offset:"100%",
  6747. "stop-color":"white","stop-opacity":"0"}}]}]},{Y:"rect",D:"ytp-heat-map-graph",Z:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{Y:"rect",D:"ytp-heat-map-hover",Z:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{Y:"rect",D:"ytp-heat-map-play",Z:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{Y:"path",D:"ytp-modern-heat-map",Z:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%",
  6748. stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",style:"display: none;",width:"100%",x:"0",y:"0"}}]}]});this.api=d;this.B=this.Qv("ytp-heat-map-svg");this.X=this.Qv("ytp-heat-map-path");this.T=this.Qv("ytp-heat-map-graph");this.L=this.Qv("ytp-heat-map-play");this.G=this.Qv("ytp-heat-map-hover");this.j=this.Qv("ytp-modern-heat-map");this.LH=!1;this.U=60;d=""+g.X_(this);this.update({id:d});d="url(#"+d+")";this.T.setAttribute("clip-path",d);this.L.setAttribute("clip-path",d);this.G.setAttribute("clip-path",
  6749. d)};
  6750. ifQ=function(d,q){q>0&&(d.U=q,d.B.style.height=d.U+"px")};
  6751. lg=function(){g.f.call(this,{Y:"div",D:"ytp-chapter-hover-container",V:[{Y:"div",D:"ytp-progress-bar-padding"},{Y:"div",D:"ytp-progress-list",V:[{Y:"div",hF:["ytp-play-progress","ytp-swatch-background-color"]},{Y:"div",D:"ytp-progress-linear-live-buffer"},{Y:"div",D:"ytp-load-progress"},{Y:"div",D:"ytp-hover-progress"},{Y:"div",D:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.U=this.Qv("ytp-progress-list");this.X=this.Qv("ytp-progress-linear-live-buffer");
  6752. this.T=this.Qv("ytp-ad-progress-list");this.L=this.Qv("ytp-load-progress");this.B=this.Qv("ytp-play-progress");this.j=this.Qv("ytp-hover-progress");this.G=this.Qv("ytp-chapter-hover-container")};
  6753. v9=function(d,q){g.Dv(d.G,"width",q)};
  6754. Io7=function(d,q){g.Dv(d.G,"margin-right",q+"px")};
  6755. mpf=function(){this.U=this.position=this.j=this.G=this.T=this.width=NaN};
  6756. SQn=function(){g.f.call(this,{Y:"div",D:"ytp-timed-marker"});this.G=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
  6757. g.Vr=function(d,q){g.Ji.call(this,{Y:"div",D:"ytp-progress-bar-container",Z:{"aria-disabled":"true"},V:[{Y:"div",hF:["ytp-heat-map-container"],V:[{Y:"div",D:"ytp-heat-map-edu"}]},{Y:"div",hF:["ytp-progress-bar"],Z:{tabindex:"0",role:"slider","aria-label":"\u64ad\u653e\u6ed1\u5757","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},V:[{Y:"div",D:"ytp-chapters-container"},{Y:"div",D:"ytp-timed-markers-container"},{Y:"div",D:"ytp-clip-start-exclude"},
  6758. {Y:"div",D:"ytp-clip-end-exclude"},{Y:"div",D:"ytp-scrubber-container",V:[{Y:"div",hF:["ytp-scrubber-button","ytp-swatch-background-color"],V:[{Y:"div",D:"ytp-scrubber-pull-indicator"},{Y:"img",hF:["ytp-decorated-scrubber-button"]}]}]}]},{Y:"div",hF:["ytp-fine-scrubbing-container"],V:[{Y:"div",D:"ytp-fine-scrubbing-edu"}]},{Y:"div",D:"ytp-bound-time-left",j5:"{{boundTimeLeft}}"},{Y:"div",D:"ytp-bound-time-right",j5:"{{boundTimeRight}}"},{Y:"div",D:"ytp-clip-start",Z:{title:"{{clipstarttitle}}"},j5:"{{clipstarticon}}"},
  6759. {Y:"div",D:"ytp-clip-end",Z:{title:"{{clipendtitle}}"},j5:"{{clipendicon}}"}]});this.api=d;this.yH=!1;this.R6=this.Y1=this.Fw=this.X=this.t0=0;this.FW=null;this.Je=!1;this.qk={};this.Ln={};this.clipEnd=Infinity;this.vF=this.Qv("ytp-clip-end");this.gk=new g.fc(this.vF,!0);this.LC=this.Qv("ytp-clip-end-exclude");this.wk=this.Qv("ytp-clip-start-exclude");this.clipStart=0;this.ev=this.Qv("ytp-clip-start");this.zX=new g.fc(this.ev,!0);this.lr=this.fn=0;this.progressBar=this.Qv("ytp-progress-bar");this.Qp=
  6760. {};this.xx={};this.Bv=this.Qv("ytp-chapters-container");this.Pf=this.Qv("ytp-timed-markers-container");this.G=[];this.L=[];this.qU={};this.lS=null;this.z2=-1;this.lF=this.dO=0;this.rA=this.B=null;this.vA=this.Qv("ytp-scrubber-button");this.yv=this.Qv("ytp-decorated-scrubber-button");this.gB=this.Qv("ytp-scrubber-container");this.wO=new g.wt;this.qC=0;this.E$=new mpf;this.j=new nG(0,0);this.IN=null;this.K=this.Kz=!1;this.wU=null;this.UD=this.Qv("ytp-heat-map-container");this.V5=this.Qv("ytp-heat-map-edu");
  6761. this.T=[];this.heatMarkersDecorations=[];this.kx=this.Qv("ytp-fine-scrubbing-container");this.ST=this.Qv("ytp-fine-scrubbing-edu");this.U=void 0;this.aU=this.dA=this.RU=!1;this.tooltip=q.nH();this.addOnDisposeCallback(g.uH(this.tooltip,this.vF));g.C(this,this.gk);this.gk.subscribe("hoverstart",this.ZO,this);this.gk.subscribe("hoverend",this.BY,this);this.W(this.vF,"click",this.v0);this.addOnDisposeCallback(g.uH(this.tooltip,this.ev));g.C(this,this.zX);this.zX.subscribe("hoverstart",this.ZO,this);
  6762. this.zX.subscribe("hoverend",this.BY,this);this.W(this.ev,"click",this.v0);lof(this);this.W(d,"resize",this.gz);this.W(d,"presentingplayerstatechange",this.FS);this.W(d,"videodatachange",this.qF);this.W(d,"videoplayerreset",this.LI);this.W(d,"cuerangesadded",this.OjF);this.W(d,"cuerangesremoved",this.Q6Z);this.W(d,"onLoopRangeChange",this.SG);this.W(d,"innertubeCommand",this.onClickCommand);this.W(d,"onRetroModeChanged",this.SFw);this.W(d,g.Sh("timedMarkerCueRange"),this.iHF);this.W(d,"updatemarkervisibility",
  6763. this.fG);this.W(d,"serverstitchedvideochange",this.cEO);this.updateVideoData(d.getVideoData(),!0);this.SG(d.getLoopRange());oW(this)&&!this.U&&(this.U=new PJn(this.api,this.tooltip),d=g.lY(this.element).x||0,this.U.gz(d,this.X),this.U.IU(this.kx),g.C(this,this.U),this.W(this.U.dismissButton,"click",this.RI),this.W(this.U.playButton,"click",this.dG),this.W(this.U.element,"dblclick",this.dG));this.api.createClientVe(this.UD,this,139609,!0);this.api.createClientVe(this.V5,this,140127,!0);this.api.createClientVe(this.ST,
  6764. this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)};
  6765. lof=function(d){if(d.G.length===0){var q=new lg;d.G.push(q);g.C(d,q);q.IU(d.Bv,0)}for(;d.G.length>1;)d.G.pop().dispose();v9(d.G[0],"100%");d.G[0].startTime=0;d.G[0].title=""};
  6766. vd7=function(d){var q=q===void 0?NaN:q;var T=new ze_(d.api);d.T.push(T);g.C(d,T);T.IU(d.UD);q>=0&&(T.element.style.width=q+"px")};
  6767. odg=function(d){for(;d.L.length;)d.L.pop().dispose()};
  6768. d21=function(d){var q,T,Y,e,U;return(U=g.D((e=g.D((q=d.getWatchNextResponse())==null?void 0:(T=q.playerOverlays)==null?void 0:(Y=T.playerOverlayRenderer)==null?void 0:Y.decoratedPlayerBarRenderer,on))==null?void 0:e.playerBar,VQg))==null?void 0:U.chapters};
  6769. qhj=function(d){for(var q=d.G,T=[],Y=0;Y<q.length;Y++)if(!isNaN(q[Y].startTime)){var e=q[Y].startTime;e=new g.Ij(e,Y===q.length-1?Infinity:q[Y+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+e});T.push(e)}d.api.hm("chapterCueRange");d.api.ES(T)};
  6770. sX6=function(d,q){var T,Y=(T=d.Qp[q])==null?void 0:T.chapters;Y&&(Ty6(d,Y),d.api.getVideoData().lS=d.G,qhj(d));var e;if((T=(e=d.Qp[q])==null?void 0:e.markers)&&q!=="HEATSEEKER"){odg(d);e=g.E(T);for(T=e.next();!T.done;T=e.next())if(Y=T.value,T=new SQn,Y=g.D(Y,g.YhH)){var U=void 0;T.title=((U=Y.title)==null?void 0:U.simpleText)||"";U=void 0;T.timeRangeStartMillis=(U=Y.timeRangeStartMillis)!=null?U:NaN;var b=U=void 0;T.onActiveCommand=(b=(U=Y)==null?void 0:U.onActiveCommand)!=null?b:void 0;ewN(d,T)}U2H(d,
  6771. d.L);e=d.L;T=d.qU;Y=[];for(U=0;U<e.length;U++)!isNaN(e[U].timeRangeStartMillis)&&e[U].onActiveCommand&&(b=aF7(e[U].timeRangeStartMillis,U===e.length-1?Infinity:e[U+1].timeRangeStartMillis),Y.push(b),T[b.id]=e[U].onActiveCommand);d.api.ES(Y)}var J;if(q=g.D((J=d.Qp[q])==null?void 0:J.heatmap,b_Q)){J=q.heatMarkers||[];var F;e=(F=q.minHeightDp)!=null?F:0;var N;F=(N=q.maxHeightDp)!=null?N:60;N=d.G.length;T=null;for(Y=0;Y<N;Y++){b=d.G[Y].startTime;var R=Y===N-1?Infinity:d.G[Y+1].startTime;Y===d.T.length&&
  6772. vd7(d);U=[];T&&U.push(T);for(var x=g.E(J),y=x.next();!y.done;y=x.next()){y=y.value;var h=void 0,H=void 0,a=(H=(h=g.D(y,XwD))==null?void 0:h.timeRangeStartMillis)!=null?H:-1;a>=b&&a<=R&&U.push(y)}F>0&&(d.UD.style.height=F+"px");b=d.T[Y];R=U;y=e;H=F;a=Y===0;a=a===void 0?!1:a;ifQ(b,H);x=R;h=b.U;a=a===void 0?!1:a;var p=1E3/x.length,t=[];t.push({x:0,y:100});for(var n=0;n<x.length;n++){var K=void 0,P=((K=g.D(x[n],XwD))==null?void 0:K.heatMarkerIntensityScoreNormalized)||0;K=(n+.5)*p;P=100-g.Cn(P*100,y/
  6773. h*100,H/h*100);n!==0||a||t.push({x:0,y:P});t.push({x:K,y:P});n===x.length-1&&t.push({x:1E3,y:P})}t.push({x:1E3,y:100});x=t;R=R.length===0?"":x9f(x);b.api.N("delhi_modern_web_player")?b.j.setAttribute("d",R):b.X.setAttribute("d",R);b.LH=R!=="";g.ep(b.api.getRootNode(),"ytp-heat-map",b.LH);g.ep(b.api.getRootNode(),"ytp-heat-map-played_bar",b.api.N("web_player_heat_map_played_bar")&&R!=="");b.api.N("delhi_modern_web_player")&&(b.j.style.display="block",b.T.style.display="none",b.G.style.display="none");
  6774. U.length>0&&(T=U[U.length-1])}g.dl(d);J=[];q=g.E(q.heatMarkersDecorations||[]);for(e=q.next();!e.done;e=q.next())if(e=g.D(e.value,J26))F=e.label,Y=T=N=void 0,J.push({visibleTimeRangeStartMillis:(N=e.visibleTimeRangeStartMillis)!=null?N:-1,visibleTimeRangeEndMillis:(T=e.visibleTimeRangeEndMillis)!=null?T:-1,decorationTimeMillis:(Y=e.decorationTimeMillis)!=null?Y:NaN,label:F?g.gx(F):""});d.heatMarkersDecorations=J}};
  6775. ewN=function(d,q){d.L.push(q);g.C(d,q);q.IU(d.Pf,d.Pf.children.length)};
  6776. U2H=function(d,q){q=g.E(q);for(var T=q.next();!T.done;T=q.next()){T=T.value;var Y=qN(d,T.timeRangeStartMillis/(d.j.G*1E3),Tj(d)),e=d.api.N("delhi_modern_web_player")?.667:.6;g.Dv(T.element,"transform","translateX("+Y+"px) scaleX("+e+")")}};
  6777. Ty6=function(d,q){var T=0,Y=!1;q=g.E(q);for(var e=q.next();!e.done;e=q.next()){e=e.value;if(g.D(e,$2Y)){e=g.D(e,$2Y);var U={startTime:NaN,title:null,onActiveCommand:void 0},b=e.title;U.title=b?g.gx(b):"";b=e.timeRangeStartMillis;b!=null&&(U.startTime=b);U.onActiveCommand=e.onActiveCommand;e=U;T===0&&e.startTime!==0&&(d.G[T].startTime=0,d.G[T].title="",d.G[T].onActiveCommand=e.onActiveCommand,T++,Y=!0);d.G.length<=T&&(U=new lg,d.G.push(U),g.C(d,U),U.IU(d.Bv,d.Bv.children.length));d.G[T].startTime=
  6778. e.startTime;d.G[T].title=e.title?e.title:"";d.G[T].onActiveCommand=e.onActiveCommand;d.G[T].index=Y?T-1:T}T++}for(;T<d.G.length;)d.G.pop().dispose();g.dl(d);Yn(d)};
  6779. g.dl=function(d){d.dO=d.G.length-1;d.lF=0;gFX(d,!0)&&gFX(d,!1);for(var q=0,T=0;T<d.G.length;T++)if(d.G[T].width===0){if(T===d.G.length-1)for(var Y=d.G.length-1;Y>=0;Y--)if(d.G[Y].width>0){Io7(d.G[Y],0);var e=Math.floor(d.G[Y].width);d.G[Y].width=e;v9(d.G[Y],e+"px");break}d.G[T].width=0;v9(d.G[T],"0")}else T===d.G.length-1?(Y=Math.floor(d.G[T].width+q),d.G[T].width=Y,v9(d.G[T],Y+"px")):(q=d.G[T].width+q,Y=Math.round(q),q-=Y,d.G[T].width=Y,v9(d.G[T],Y+"px"));T=0;if(d.T.length===d.G.length)for(q=0;q<
  6780. d.T.length;q++)Y=d.G[q].width,d.T[q].element.style.width=Y+"px",d.T[q].element.style.left=T+"px",T+=Y+ew(d);d.api.N("delhi_modern_web_player")&&(d.G.length===1?d.G[0].U.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(d.G[0].U.classList.remove("ytp-progress-bar-end"),d.G[0].U.classList.add("ytp-progress-bar-start"),d.G[d.G.length-1].U.classList.add("ytp-progress-bar-end")))};
  6781. gFX=function(d,q){var T=0,Y=!1,e=d.G.length,U=d.j.G*1E3;U===0&&(U=d.api.getProgressState().seekableEnd*1E3);if(U>0&&d.X>0){for(var b=d.X-ew(d)*d.dO,J=d.lF===0?3:b*d.lF,F=g.E(d.G),N=F.next();!N.done;N=F.next())N.value.width=0;for(;T<e;){F=U-d.G[T].startTime;T<e-1&&(F=d.G[T+1].startTime-d.G[T].startTime,Io7(d.G[T],ew(d)));g.ep(d.G[T].G,"ytp-exp-chapter-hover-container",d.G.length>1);N=(U===0?0:F/U*b)+d.G[T].width;if(N>J)d.G[T].width=N;else{d.G[T].width=0;var R=d,x=T,y=R.G[x-1];y!==void 0&&y.width>0?
  6782. y.width+=N:x<R.G.length-1&&(R.G[x+1].width+=N);Io7(R.G[x],0);q&&(d.dO--,F/U>d.lF&&(d.lF=F/U),Y=!0)}T++}}return Y};
  6783. Yn=function(d){if(d.X){var q=d.api.getProgressState(),T=d.api.getVideoData();if(!(T&&T.enableServerStitchedDai&&T.nL)||isFinite(q.current)){var Y;if(((Y=d.api.getVideoData())==null?0:Q2(Y))&&q.airingStart&&q.airingEnd)var e=Uk(d,q.airingStart,q.airingEnd);else if(d.api.getPresentingPlayerType()===2){var U,b,J;e=(T=(e=d.api.getVideoData())==null?void 0:(U=e.getPlayerResponse())==null?void 0:(b=U.playerConfig)==null?void 0:(J=b.webPlayerConfig)==null?void 0:J.skippableAdProgressBarDuration)?Uk(d,q.seekableStart,
  6784. T/1E3):Uk(d,q.seekableStart,q.seekableEnd)}else e=Uk(d,q.seekableStart,q.seekableEnd);U=rs(e,q.loaded,0);q=rs(e,q.current,0);b=d.j.U!==e.U||d.j.G!==e.G;d.j=e;br(d,q,U);b&&Fs1(d);NyX(d)}}};
  6785. Uk=function(d,q,T){return RwH(d)?new nG(Math.max(q,d.IN.startTimeMs/1E3),Math.min(T,d.IN.endTimeMs/1E3)):new nG(q,T)};
  6786. y27=function(d,q){var T,Y,e;q=g.D((T=q.getWatchNextResponse())==null?void 0:(Y=T.playerOverlays)==null?void 0:(e=Y.playerOverlayRenderer)==null?void 0:e.decoratedPlayerBarRenderer,on);if(q==null?0:q.progressColor)for(T=0;T<d.G.length;T++)d.G[T].tA("PLAY_PROGRESS").style.background=g.Gc(q.progressColor);T=g.D(q==null?void 0:q.playhead,x26);var U,b;d.rO=(T==null?void 0:(U=T.playheadImage)==null?void 0:U.thumbnails)&&(T==null?void 0:(b=T.playheadImage)==null?void 0:b.thumbnails[0].url);var J,F;d.zq=
  6787. (T==null?void 0:(J=T.playheadFastForwardImage)==null?void 0:J.thumbnails)&&(T==null?void 0:(F=T.playheadFastForwardImage)==null?void 0:F.thumbnails[0].url);var N,R;d.pC=(T==null?void 0:(N=T.playheadRewindImage)==null?void 0:N.thumbnails)&&(T==null?void 0:(R=T.playheadRewindImage)==null?void 0:R.thumbnails[0].url);g.ep(d.gB,"ytp-decorated-scrubber-container",!!d.rO&&!d.api.OD().po);var x;if(T==null?0:(x=T.loggingDirectives)==null?0:x.trackingParams){var y;d.api.setTrackingParams(d.yv,T==null?void 0:
  6788. (y=T.loggingDirectives)==null?void 0:y.trackingParams);d.api.createServerVe(d.yv,d)}d.rO&&!d.api.OD().po&&(d.yv.src=d.rO);d.zq&&fetch(d.zq,{cache:"force-cache"});d.pC&&fetch(d.pC,{cache:"force-cache"})};
  6789. hw6=function(d,q){var T;if(((T=d.IN)==null?void 0:T.type)==="repeatChapter"||(q==null?void 0:q.type)==="repeatChapter")q&&(q=d.G[hg(d.G,q.startTimeMs)],g.ep(q.G,"ytp-repeating-chapter",!1)),d.IN&&(q=d.G[hg(d.G,d.IN.startTimeMs)],g.ep(q.G,"ytp-repeating-chapter",!0)),d.G.forEach(function(Y){g.ep(Y.G,"ytp-exp-chapter-hover-container",!d.IN)})};
  6790. JZ=function(d,q){var T=xw2(d.j,q.U);if(d.G.length>1){T=X3(d,q.j,!0);for(var Y=0,e=0;e<T;e++)d.G[e].width>0&&(Y+=d.G[e].width,Y+=ew(d));T=(d.G[T].startTime+(q.j-Y)/d.G[T].width*((T===d.G.length-1?d.j.G*1E3:d.G[T+1].startTime)-d.G[T].startTime))/1E3||0}return T};
  6791. H_D=function(d,q){if(q<0)return"0";d=Math.floor(Math.min(q,d.api.getDuration())*1E3);return d>2147483647?"0":String(d)};
  6792. sk=function(d,q,T,Y,e){q=H_D(d,q);T=H_D(d,T);d=d.progressBar.visualElement;Y={seekData:{startMediaTimeMs:q,endMediaTimeMs:T,seekSource:Y}};(q=g.Q0())&&g.iF(I$)(void 0,q,d,e,Y,void 0)};
  6793. QXj=function(d,q,T){if(T>=d.G.length)return!1;var Y=d.X-ew(d)*d.dO;return Math.abs(q-d.G[T].startTime/1E3)/d.j.G*Y<4};
  6794. Fs1=function(d){d.vA.style.removeProperty("height");for(var q=g.E(Object.keys(d.qk)),T=q.next();!T.done;T=q.next())MmQ(d,T.value);$n(d);br(d,d.lr,d.fn)};
  6795. Tj=function(d){var q=d.wO.x;q=g.Cn(q,0,d.X);d.E$.update(q,d.X);return d.E$};
  6796. F3=function(d){return(d.K?135:90)-gl(d)};
  6797. gl=function(d){var q=48,T=d.api.C();d.api.N("delhi_modern_web_player")?q=d.api.getPlayerSize().width<=528?64:d.K?96:72:d.K?q=54:g.dn(T)&&!T.U&&(q=40);return q};
  6798. br=function(d,q,T){d.lr=q;d.fn=T;var Y=Tj(d),e=d.j.G,U=xw2(d.j,d.lr),b=g.bO("$PLAY_PROGRESS/$DURATION",{PLAY_PROGRESS:g.MY(U,!0),DURATION:g.MY(e,!0)}),J=hg(d.G,U*1E3);J=d.G[J].title;d.update({ariamin:Math.floor(d.j.U),ariamax:Math.floor(e),arianow:Math.floor(U),arianowtext:J?J+" "+b:b});e=d.clipStart;U=d.clipEnd;d.IN&&d.api.getPresentingPlayerType()!==2&&(e=d.IN.startTimeMs/1E3,U=d.IN.endTimeMs/1E3);e=rs(d.j,e,0);J=rs(d.j,U,1);b=d.api.getVideoData();U=g.Cn(q,e,J);T=(b==null?0:g.y2(b))?1:g.Cn(T,e,
  6799. J);q=qN(d,q,Y);g.Dv(d.gB,"transform","translateX("+q+"px)");d.api.N("delhi_modern_web_player")&&d.api.N("delhi_modern_web_player_cutout")&&c2D(d,q);NN(d,Y,e,U,"PLAY_PROGRESS");(b==null?0:Q2(b))?(q=d.api.getProgressState().seekableEnd)&&NN(d,Y,U,rs(d.j,q),"LIVE_BUFFER"):NN(d,Y,e,T,"LOAD_PROGRESS");if(d.api.N("web_player_heat_map_played_bar")){var F;(F=d.T[0])!=null&&F.L.setAttribute("width",(U*100).toFixed(2)+"%")}};
  6800. c2D=function(d,q){d.api.getPresentingPlayerType()!==1?d.Bv.style.removeProperty("clip-path"):(q||(q=qN(d,d.lr,Tj(d))),d.Bv.style.clipPath='path("'+(d.Je?EF7(d,8,q,d.K?50:36,0,6):EF7(d,4,q,d.K?34:24,2,3))+'")')};
  6801. EF7=function(d,q,T,Y,e,U){var b=T-Y/2;T+=Y/2;q+=e;return"M 0 "+e+" L 0 "+(q+" L ")+(b+" "+q+" C ")+(b+U+" "+q+" "+(b+U)+" "+e+" "+b+" "+e+" L 0 ")+(e+" M ")+(T+" "+e+" L ")+(d.X+" "+e+" L ")+(d.X+" "+q+" L ")+(T+" "+q+" C ")+(T-U+" "+q+" "+(T-U)+" "+e+" "+T+" "+e)};
  6802. NN=function(d,q,T,Y,e){var U=d.G.length,b=q.G-d.dO*ew(d),J=T*b;T=X3(d,J);var F=Y*b;b=X3(d,F);e==="HOVER_PROGRESS"&&(b=X3(d,q.G*Y,!0),F=q.G*Y-jXQ(d,q.G*Y)*ew(d));Y=Math.max(J-aRj(d,T),0);for(J=T;J<U;J++)d.G[J].tA(e).style.left=T===J?Y+"px":"0";q=qN(d,d.lr,q);for(U=T;U<b;U++){J=d.G[U].tA(e);var N=d.G[U].width,R=U===T?N-Y:N;Rk(d,J,R,N);A2I(d,J,R,N,U,q,e)}U=d.G[b].width;F=g.Cn(F-aRj(d,b),0,U);T===b&&(F-=Y);Y=d.G[b].tA(e);Rk(d,Y,F,U);A2I(d,Y,F,U,b,q,e);F=d.G.length;for(b+=1;b<F;b++)pwQ(d,b,e);for(b=0;b<
  6803. T;b++)pwQ(d,b,e)};
  6804. aRj=function(d,q){if(q>=d.G.length)return d.X;for(var T=0,Y=0;Y<q;)T+=d.G[Y].width,Y++;return T};
  6805. pwQ=function(d,q,T){T=d.G[q].tA(T);Rk(d,T,0,d.G[q].width)};
  6806. A2I=function(d,q,T,Y,e,U,b){b==="PLAY_PROGRESS"&&(T=!Y||d.api.C().U?1:T/Y,d.wk.clientWidth>0||d.LC.clientWidth>0?(U=q.clientWidth/T,d=-1*d.wk.clientWidth/T):(U/=T,d=-1*d.G[e].element.offsetLeft/T),g.Dv(q,"background-size",U+"px"),g.Dv(q,"background-position-x",d+"px"))};
  6807. Rk=function(d,q,T,Y,e){e||d.api.C().U?q.style.width=T+"px":g.Dv(q,"transform","scalex("+(Y?T/Y:0)+")")};
  6808. X3=function(d,q,T){var Y=0;(T===void 0?0:T)&&(q-=jXQ(d,q)*ew(d));T=g.E(d.G);for(var e=T.next();!e.done;e=T.next()){e=e.value;if(q>e.width)q-=e.width;else break;Y++}return Y===d.G.length?Y-1:Y};
  6809. qN=function(d,q,T){var Y=q*d.j.G*1E3;for(var e=-1,U=g.E(d.G),b=U.next();!b.done;b=U.next())b=b.value,Y>b.startTime&&b.width>0&&e++;Y=e<0?0:e;e=T.G-ew(d)*d.dO;return q*e+ew(d)*Y+T.T};
  6810. jXQ=function(d,q){for(var T=d.G.length,Y=0,e=g.E(d.G),U=e.next();!U.done;U=e.next())if(U=U.value,U.width!==0)if(q>U.width)q-=U.width,q-=ew(d),Y++;else break;return Y===T?T-1:Y};
  6811. g.Z_Q=function(d,q,T,Y){var e=d.X!==T,U=d.K!==Y;d.t0=q;d.X=T;d.K=Y;oW(d)&&(q=d.U)!=null&&(q.scale=Y?1.5:1);Fs1(d);d.G.length===1&&(d.G[0].width=T||0);e&&g.dl(d);d.U&&U&&oW(d)&&(d.U.isEnabled&&(T=d.K?135:90,Y=T-gl(d),d.kx.style.height=T+"px",g.Dv(d.UD,"transform","translateY("+-Y+"px)"),g.Dv(d.progressBar,"transform","translateY("+-Y+"px)")),Dp7(d.U))};
  6812. $n=function(d){var q=!!d.IN&&d.api.getPresentingPlayerType()!==2,T=d.clipStart,Y=d.clipEnd,e=!0,U=!0;q&&d.IN?(T=d.IN.startTimeMs/1E3,Y=d.IN.endTimeMs/1E3):(e=T>d.j.U,U=d.j.G>0&&Y<d.j.G);var b,J;if(((b=d.IN)==null?0:b.postId)||((J=d.IN)==null?void 0:J.type)==="repeatChapter")U=e=!1;g.ep(d.element,"ytp-loop-range-enabled",q);g.ep(d.element,"ytp-clip-start-enabled",e);g.ep(d.element,"ytp-clip-end-enabled",U);q=e?rs(d.j,T,0):0;Y=U?rs(d.j,Y,1):1;d.ev.style.left=Math.round(q*1E3)/10+"%";d.vF.style.left=
  6813. Math.round(Y*1E3)/10+"%";d.wk.style.width=Math.round(q*1E3)/10+"%";d.LC.style.left=Math.round(Y*1E3)/10+"%";d.LC.style.width=Math.round((1-Y)*1E3)/10+"%"};
  6814. NyX=function(d){var q;if((q=d.api.getVideoData())==null||!Q2(q)){q=Tj(d);NN(d,q,d.lr,Math.max(q.U,d.lr),"HOVER_PROGRESS");for(var T=X3(d,q.G*d.lr,!0),Y=X3(d,q.j,!0),e=T;e<=Y;e++)g.ep(d.G[e].j,"ytp-hover-progress-light",q.U>d.lr);g.ep(d.vA,"ytp-scrubber-button-hover",T===Y&&d.G.length>1);if(d.api.N("web_player_heat_map_played_bar")){var U;(U=d.T[0])!=null&&U.G.setAttribute("width",(q.U*100).toFixed(2)+"%")}}};
  6815. MmQ=function(d,q){var T=d.qk[q];q=d.Ln[q];var Y=Tj(d),e=rs(d.j,T.start/1E3,0),U=Z1f(T,d.K)/Y.width;var b=rs(d.j,T.end/1E3,1);U!==Number.POSITIVE_INFINITY&&(e=g.Cn(e,0,b-U));b=Math.min(b,e+U);T.color&&(q.style.background=T.color);T=e;q.style.left=Math.max(T*Y.G+Y.T,0)+"px";Rk(d,q,g.Cn((b-T)*Y.G+Y.T,0,Y.width),Y.width,!0)};
  6816. O_I=function(d,q){var T=q.getId();d.qk[T]===q&&(g.h4(d.Ln[T]),delete d.qk[T],delete d.Ln[T])};
  6817. oW=function(d){var q=g.cT(d.api.C())&&(d.api.N("web_shorts_pip")||d.api.N("web_watch_pip")),T;return!((T=d.api.getVideoData())==null?0:T.isLivePlayback)&&!d.api.isMinimized()&&!d.api.isInline()&&(!d.api.Kx()||!q)};
  6818. xn=function(d){d.U&&(d.U.disable(),d.Fw=0,d.UD.style.removeProperty("transform"),d.progressBar.style.removeProperty("transform"),d.kx.style.removeProperty("height"),d.element.parentElement&&d.element.parentElement.style.removeProperty("height"))};
  6819. nFj=function(d,q){var T=q/F3(d)*gl(d);g.Dv(d.progressBar,"transform","translateY("+-q+"px)");g.Dv(d.UD,"transform","translateY("+-q+"px)");g.Dv(d.kx,"transform","translateY("+T+"px)");d.kx.style.height=q+T+"px";d.element.parentElement&&(d.element.parentElement.style.height=gl(d)-T+"px")};
  6820. r2_=function(d,q){q?d.B||(d.element.removeAttribute("aria-disabled"),d.B=new g.fc(d.progressBar,!0),d.api.N("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&d.B.subscribe("hoverstart",d.Mtw,d),d.B.subscribe("hovermove",d.zlO,d),d.B.subscribe("hoverend",d.ttD,d),d.B.subscribe("dragstart",d.QdZ,d),d.B.subscribe("dragmove",d.r1O,d),d.B.subscribe("dragend",d.pGw,d),d.api&&d.api.N("delhi_modern_web_player")&&d.api.N("delhi_modern_web_player_cutout")&&(d.rA=new g.fc(d.progressBar,
  6821. !0),d.rA.subscribe("hoverstart",function(){d.Je=!0;c2D(d)},d),d.rA.subscribe("hoverend",function(){d.Je=!1;
  6822. c2D(d)},d)),d.wU=d.listen("keydown",d.wT)):d.B&&(d.element.setAttribute("aria-disabled","true"),d.t1(d.wU),d.B.cancel(),d.B.dispose(),d.B=null)};
  6823. ew=function(d){return d.api.N("delhi_modern_web_player")?4:d.K?3:2};
  6824. RwH=function(d){var q;return!((q=d.IN)==null||!q.postId)&&d.api.getPresentingPlayerType()!==2};
  6825. yW=function(d,q){g.f.call(this,{Y:"button",hF:["ytp-remote-button","ytp-button"],Z:{title:d.N("player_tooltip_data_title_killswitch")?"\u5728\u7535\u89c6\u4e0a\u64ad\u653e":"","data-tooltip-title":"\u5728\u7535\u89c6\u4e0a\u64ad\u653e","aria-haspopup":"true","data-priority":"10"},j5:"{{icon}}"});this.J=d;this.TG=q;this.G=null;this.W(d,"onMdxReceiversChange",this.S5);this.W(d,"presentingplayerstatechange",this.S5);this.W(d,"appresize",this.S5);d.createClientVe(this.element,this,139118);this.S5();this.listen("click",
  6826. this.U,this);D$(d,this.element,this)};
  6827. hZ=function(d,q){g.f.call(this,{Y:"button",hF:["ytp-button","ytp-settings-button"],Z:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":ex(),title:d.N("player_tooltip_data_title_killswitch")?"\u8bbe\u7f6e":"","data-tooltip-title":"\u8bbe\u7f6e","data-tooltip-target-id":"ytp-settings-button"},V:[d.N("delhi_modern_web_player_icons")?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M12.84 1H11.15C10.72 .99 10.30 1.14 9.95 1.40C9.60 1.66 9.35 2.02 9.23 2.44L9.19 2.61C9.11 3.00 8.96 3.38 8.73 3.71C8.51 4.04 8.22 4.33 7.89 4.55L7.75 4.64C7.37 4.85 6.96 4.98 6.53 5.02C6.11 5.06 5.68 5.01 5.27 4.87C4.86 4.73 4.42 4.73 4.00 4.86C3.59 5.00 3.23 5.26 2.99 5.62L2.89 5.77L2.05 7.23C1.82 7.63 1.73 8.10 1.81 8.55C1.88 9.01 2.12 9.43 2.47 9.73L2.58 9.84C3.15 10.39 3.50 11.15 3.50 12L3.49 12.16C3.47 12.56 3.37 12.95 3.19 13.31C3.01 13.67 2.77 13.99 2.47 14.26C2.12 14.56 1.88 14.98 1.81 15.43C1.73 15.89 1.82 16.36 2.05 16.76L2.89 18.22L2.99 18.37C3.24 18.73 3.59 18.99 4.01 19.13C4.42 19.26 4.86 19.26 5.27 19.12L5.42 19.07C5.81 18.96 6.21 18.93 6.61 18.98C7.01 19.03 7.40 19.15 7.75 19.36L7.89 19.44C8.22 19.66 8.51 19.95 8.73 20.28C8.96 20.61 9.11 20.99 9.19 21.38C9.28 21.84 9.52 22.24 9.88 22.54C10.24 22.83 10.69 23.00 11.15 23H12.84C13.30 23.00 13.75 22.83 14.11 22.54C14.47 22.24 14.71 21.84 14.80 21.38C14.89 20.96 15.06 20.56 15.31 20.21C15.55 19.86 15.88 19.57 16.25 19.36L16.39 19.28C16.75 19.10 17.14 18.99 17.54 18.96C17.94 18.94 18.34 18.99 18.72 19.12L18.89 19.17C19.31 19.27 19.75 19.24 20.15 19.07C20.55 18.90 20.88 18.60 21.10 18.23L21.95 16.76C22.18 16.36 22.26 15.89 22.19 15.43C22.11 14.98 21.88 14.56 21.53 14.26C21.23 13.99 20.98 13.67 20.80 13.31C20.63 12.95 20.52 12.56 20.50 12.16L20.50 12C20.50 11.57 20.59 11.14 20.77 10.75C20.94 10.36 21.20 10.01 21.53 9.73C21.88 9.43 22.11 9.01 22.19 8.55C22.26 8.10 22.18 7.63 21.95 7.23L21.10 5.76C20.88 5.39 20.55 5.09 20.15 4.92C19.76 4.75 19.31 4.72 18.89 4.82L18.72 4.87C18.34 5.00 17.94 5.05 17.54 5.03C17.14 5.00 16.75 4.89 16.4 4.71L16.25 4.63C15.88 4.42 15.56 4.13 15.31 3.78C15.06 3.43 14.89 3.03 14.80 2.61C14.71 2.15 14.47 1.74 14.11 1.45C13.75 1.16 13.30 .99 12.84 1ZM11.15 3H12.84C12.98 3.70 13.26 4.36 13.68 4.94C14.09 5.52 14.63 6.01 15.25 6.37C15.87 6.72 16.55 6.94 17.26 7.01C17.97 7.08 18.69 6.99 19.37 6.76L20.21 8.23C19.67 8.69 19.24 9.27 18.94 9.92C18.65 10.57 18.50 11.28 18.5 12C18.50 12.71 18.65 13.42 18.95 14.07C19.24 14.72 19.67 15.29 20.21 15.76L19.37 17.23C18.69 16.99 17.97 16.91 17.26 16.98C16.55 17.05 15.86 17.27 15.25 17.63C14.63 17.98 14.09 18.47 13.68 19.05C13.26 19.63 12.98 20.29 12.84 21H11.15C11.01 20.29 10.73 19.63 10.31 19.05C9.90 18.47 9.36 17.98 8.75 17.62C8.13 17.27 7.44 17.05 6.73 16.98C6.02 16.91 5.30 16.99 4.62 17.23L3.78 15.76C4.32 15.29 4.75 14.71 5.05 14.06C5.34 13.41 5.49 12.71 5.5 12C5.50 11.28 5.34 10.57 5.05 9.92C4.75 9.27 4.32 8.69 3.78 8.23L4.62 6.76C5.30 7.00 6.02 7.08 6.73 7.01C7.44 6.94 8.13 6.72 8.75 6.37C9.36 6.01 9.90 5.52 10.31 4.94C10.73 4.36 11.01 3.70 11.15 3ZM12.00 8C10.94 8 9.92 8.42 9.17 9.17C8.42 9.92 8.00 10.93 8.00 12C8.00 13.06 8.42 14.07 9.17 14.82C9.92 15.57 10.94 16 12.00 16C13.06 16 14.08 15.57 14.83 14.82C15.58 14.07 16.00 13.06 16.00 12C16.00 10.93 15.58 9.92 14.83 9.17C14.08 8.42 13.06 8 12.00 8ZM12.00 10H12L12.20 10.01C12.69 10.06 13.15 10.29 13.48 10.65C13.81 11.02 14.00 11.50 14 12L13.99 12.20C13.95 12.58 13.80 12.95 13.55 13.25C13.31 13.55 12.98 13.78 12.62 13.90C12.25 14.02 11.85 14.03 11.48 13.93C11.11 13.83 10.77 13.62 10.51 13.34C10.25 13.05 10.08 12.69 10.02 12.31C9.96 11.93 10.01 11.54 10.17 11.18C10.32 10.83 10.58 10.53 10.91 10.32C11.23 10.11 11.61 10.00 12 10",
  6828. fill:"white"}}]}:g.Ai()]});this.J=d;this.TG=q;this.U=!0;this.listen("click",this.j);this.W(d,"onPlaybackQualityChange",this.updateBadge);this.W(d,"videodatachange",this.updateBadge);this.W(d,"webglsettingschanged",this.updateBadge);this.W(d,"appresize",this.G);D$(d,this.element,this);this.J.createClientVe(this.element,this,28663);this.updateBadge();this.G(d.OD().getPlayerSize())};
  6829. tmn=function(d,q){d.U=!!q;d.G(d.J.OD().getPlayerSize())};
  6830. HF=function(d,q){jq.call(this,"\u6ce8\u91ca",g.rR.qo);this.J=d;this.TG=q;this.G=!1;d.N("web_settings_menu_icons")&&(q=d.N("delhi_modern_web_player_icons")?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M9.65 6.00L9.5 6H2.5L2.34 6.00C1.97 6.04 1.63 6.21 1.38 6.49C1.13 6.77 1.00 7.12 1 7.5V13.5L1.00 13.65C1.04 14.02 1.21 14.36 1.49 14.61C1.77 14.86 2.12 15 2.5 15H4.5L3.81 17.75C3.77 17.89 3.77 18.03 3.79 18.17C3.82 18.31 3.87 18.45 3.95 18.56C4.03 18.68 4.14 18.78 4.26 18.85C4.38 18.92 4.51 18.97 4.66 18.99L4.78 19H8.55L8.72 18.98C8.88 18.95 9.04 18.89 9.17 18.79C9.30 18.68 9.40 18.55 9.47 18.40L9.52 18.24L10.62 13.96C10.84 13.11 10.96 12.24 10.99 11.36L11 10.98V7.5C11 7.12 10.86 6.77 10.61 6.49C10.36 6.21 10.02 6.04 9.65 6.00ZM21.65 6.00L21.5 6H14.5L14.34 6.00C13.97 6.04 13.63 6.21 13.38 6.49C13.13 6.77 13 7.12 13 7.5V13.5L13.00 13.65C13.04 14.02 13.21 14.36 13.49 14.61C13.77 14.86 14.12 15 14.5 15H16.5L15.81 17.75C15.77 17.89 15.77 18.03 15.79 18.17C15.82 18.31 15.87 18.44 15.95 18.56C16.03 18.68 16.14 18.78 16.26 18.85C16.38 18.92 16.51 18.97 16.66 18.99L16.78 19H20.55L20.72 18.98C20.88 18.95 21.04 18.89 21.17 18.79C21.30 18.68 21.40 18.55 21.47 18.40L21.52 18.24L22.62 13.96C22.84 13.11 22.96 12.24 22.99 11.36L23 10.98V7.5C23 7.12 22.86 6.77 22.61 6.49C22.36 6.21 22.02 6.04 21.65 6.00ZM3 13V8H9V10.98C9.00 11.71 8.91 12.44 8.76 13.16L8.68 13.47L7.78 17H6.06L6.44 15.48L7.06 13H3ZM15 13V8H21V10.98C21 11.71 20.91 12.44 20.76 13.16L20.68 13.47L19.78 17H18.06L18.44 15.48L19.06 13H15Z",
  6831. fill:"white"}}]}:{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{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",
  6832. fill:"white"}}]},this.setIcon(q));this.W(d,"videodatachange",this.S5);this.W(d,"onApiChange",this.S5);this.subscribe("select",this.onSelect,this);this.S5()};
  6833. QW=function(d,q){g.uf.call(this,"\u97f3\u8f68",g.rR.AUDIO,d,q);this.J=d;this.tracks={};g.d9(this.element,"ytp-audio-menu-item");this.countLabel=new g.f({Y:"div",V:[{Y:"span",j5:"\u97f3\u8f68"},{Y:"span",D:"ytp-menuitem-label-count",j5:"{{content}}"}]});d.N("web_settings_menu_icons")&&(q=d.N("delhi_modern_web_player_icons")?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M19.4 .2C19.29 .27 19.20 .37 19.13 .49C19.07 .60 19.02 .72 19.01 .85C18.99 .98 18.99 1.12 19.03 1.24C19.06 1.37 19.12 1.49 19.2 1.6L20.8 .4C20.64 .18 20.40 .04 20.14 .01C19.87 -0.02 19.61 .04 19.4 .2ZM20.8 .4L20 1L19.2 1.59C20.37 3.16 21.00 5.06 21.00 7.01C20.99 8.97 20.35 10.87 19.17 12.42C19.01 12.64 18.94 12.90 18.98 13.16C19.02 13.43 19.16 13.66 19.37 13.83C19.58 13.99 19.84 14.05 20.11 14.02C20.37 13.98 20.61 13.84 20.77 13.63C22.21 11.73 22.99 9.41 23 7.02C23.00 4.63 22.23 2.31 20.8 .4ZM10 2C8.67 2 7.40 2.52 6.46 3.46C5.52 4.40 5 5.67 5 7C5 8.32 5.52 9.59 6.46 10.53C7.40 11.47 8.67 12 10 12C11.32 12 12.59 11.47 13.53 10.53C14.47 9.59 15 8.32 15 7C15 5.67 14.47 4.40 13.53 3.46C12.59 2.52 11.32 2 10 2ZM16.17 2.29C15.97 2.48 15.86 2.73 15.86 2.99C15.85 3.26 15.95 3.51 16.14 3.71C16.98 4.58 17.44 5.68 17.49 6.80L17.5 7.02C17.49 8.22 17.01 9.40 16.10 10.32C15.92 10.51 15.83 10.77 15.83 11.03C15.84 11.29 15.95 11.53 16.13 11.71C16.32 11.90 16.57 12.00 16.83 12.00C17.09 12.00 17.34 11.90 17.53 11.72C18.78 10.44 19.49 8.77 19.5 7.03L19.49 6.71C19.42 5.09 18.74 3.53 17.58 2.32C17.49 2.23 17.38 2.15 17.26 2.10C17.14 2.05 17.01 2.02 16.88 2.01C16.75 2.01 16.62 2.03 16.49 2.08C16.37 2.13 16.26 2.20 16.17 2.29ZM10 4C10.39 4 10.78 4.07 11.14 4.22C11.51 4.37 11.84 4.60 12.12 4.87C12.39 5.15 12.62 5.48 12.77 5.85C12.92 6.21 13 6.60 13 7C13 7.39 12.92 7.78 12.77 8.14C12.62 8.51 12.39 8.84 12.12 9.12C11.84 9.39 11.51 9.62 11.14 9.77C10.78 9.92 10.39 10 10 10C9.20 10 8.44 9.68 7.87 9.12C7.31 8.55 7 7.79 7 7C7 6.20 7.31 5.44 7.87 4.87C8.44 4.31 9.20 4 10 4ZM10.39 13.01L10 13C8.01 12.99 6.10 13.73 4.63 15.06L4.34 15.34C3.60 16.08 3.01 16.96 2.60 17.93C2.20 18.90 1.99 19.94 2 21C2 21.26 2.10 21.51 2.29 21.70C2.48 21.89 2.73 22 3 22C3.26 22 3.51 21.89 3.70 21.70C3.89 21.51 4 21.26 4 21C4.00 19.40 4.63 17.88 5.75 16.75L5.97 16.55C7.07 15.55 8.51 15 10 15L10.29 15.00C11.78 15.08 13.18 15.70 14.24 16.75L14.44 16.97C15.44 18.07 16 19.51 16 21C16 21.26 16.10 21.51 16.29 21.70C16.48 21.89 16.73 22 17 22C17.26 22 17.51 21.89 17.70 21.70C17.89 21.51 18 21.26 18 21C18.00 19.01 17.26 17.10 15.93 15.63L15.65 15.34C14.25 13.93 12.37 13.10 10.39 13.01Z",
  6834. fill:"white"}}]}:rBI(),this.setIcon(q));g.C(this,this.countLabel);g.$T(this,this.countLabel);this.W(d,"videodatachange",this.S5);this.W(d,"onPlaybackAudioChange",this.S5);this.S5()};
  6835. MN=function(d,q){jq.call(this,"\u81ea\u52a8\u64ad\u653e",g.rR.nG);this.J=d;this.TG=q;this.G=!1;this.j=[];this.W(d,"presentingplayerstatechange",this.U);this.subscribe("select",this.onSelect,this);d.createClientVe(this.element,this,113682);this.U()};
  6836. ByY=function(d,q){g.gR.call(this,g.Fp({"aria-haspopup":"false"}),0,"\u66f4\u591a\u9009\u9879");this.J=d;this.TG=q;this.W(this.element,"click",this.onClick);this.TG.rk(this)};
  6837. Ks7=function(d,q){var T;g.cT(d.C())&&(T={Y:"div",D:"ytp-panel-footer-content",V:[{Y:"span",j5:"\u901a\u8fc7\u4f60\u7684"},{Y:"a",D:"ytp-panel-footer-content-link",j5:"\u8bbe\u7f6e",Z:{href:"/account_downloads"}}]});g.uf.call(this,"\u753b\u8d28",g.rR.ao,d,q,void 0,void 0,T);this.J=d;this.yv={};this.K={};this.T={};this.rO=new Set;this.G=this.X=!1;this.L="unknown";this.lr="";this.UD=new g.PW;g.C(this,this.UD);this.X=this.J.N("web_player_use_new_api_for_quality_pullback");this.G=this.J.N("web_player_enable_premium_hbr_playback_cap");
  6838. d.N("web_settings_menu_icons")&&(q=d.N("delhi_modern_web_player_icons")?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M9 3C8.11 2.99 7.25 3.29 6.54 3.83C5.84 4.38 5.34 5.14 5.12 6H3C2.73 6 2.48 6.10 2.29 6.29C2.10 6.48 2 6.73 2 7C2 7.26 2.10 7.51 2.29 7.70C2.48 7.89 2.73 8 3 8H5.12C5.34 8.85 5.84 9.61 6.55 10.16C7.25 10.70 8.11 10.99 9 10.99C9.88 10.99 10.74 10.70 11.44 10.16C12.15 9.61 12.65 8.85 12.87 8H21C21.26 8 21.51 7.89 21.70 7.70C21.89 7.51 22 7.26 22 7C22 6.73 21.89 6.48 21.70 6.29C21.51 6.10 21.26 6 21 6H12.87C12.65 5.14 12.15 4.38 11.45 3.83C10.74 3.29 9.88 2.99 9 3ZM9 5C9.53 5 10.03 5.21 10.41 5.58C10.78 5.96 11 6.46 11 7C11 7.53 10.78 8.03 10.41 8.41C10.03 8.78 9.53 9 9 9C8.46 9 7.96 8.78 7.58 8.41C7.21 8.03 7 7.53 7 7C7 6.46 7.21 5.96 7.58 5.58C7.96 5.21 8.46 5 9 5ZM15 13C14.11 12.99 13.25 13.29 12.54 13.83C11.84 14.38 11.34 15.14 11.12 16H3C2.73 16 2.48 16.10 2.29 16.29C2.10 16.48 2 16.73 2 17C2 17.26 2.10 17.51 2.29 17.70C2.48 17.89 2.73 18 3 18H11.12C11.34 18.85 11.84 19.61 12.55 20.16C13.25 20.70 14.11 20.99 15 20.99C15.88 20.99 16.74 20.70 17.44 20.16C18.15 19.61 18.65 18.85 18.87 18H21C21.26 18 21.51 17.89 21.70 17.70C21.89 17.51 22 17.26 22 17C22 16.73 21.89 16.48 21.70 16.29C21.51 16.10 21.26 16 21 16H18.87C18.65 15.14 18.15 14.38 17.45 13.83C16.74 13.29 15.88 12.99 15 13ZM15 15C15.53 15 16.03 15.21 16.41 15.58C16.78 15.96 17 16.46 17 17C17 17.53 16.78 18.03 16.41 18.41C16.03 18.78 15.53 19 15 19C14.46 19 13.96 18.78 13.58 18.41C13.21 18.03 13 17.53 13 17C13 16.46 13.21 15.96 13.58 15.58C13.96 15.21 14.46 15 15 15Z",
  6839. fill:"white"}}]}:{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{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"}}]},this.setIcon(q));g.d9(this.U.element,"ytp-quality-menu");this.W(d,"videodatachange",this.DD);this.W(d,"videoplayerreset",this.DD);this.W(d,"onPlaybackQualityChange",this.EB);this.DD();d.createClientVe(this.element,this,137721)};
  6840. Ls1=function(d,q,T){var Y=d.yv[q],e=g.ZB[q];return G96(d,Y?Y.qualityLabel:e?e+"p":"\u81ea\u52a8",q,T)};
  6841. k9Y=function(d,q,T,Y,e){var U=(q=d.G?d.T[q]:d.K[q])&&q.quality,b=q&&q.qualityLabel;b=b?b:"\u81ea\u52a8";Y&&(b="("+b);d=G96(d,b,U||"",e);Y&&d.V.push(")");(Y=(Y=q&&q.paygatedQualityDetails)&&Y.paygatedIndicatorText)&&T&&d.V.push({Y:"div",D:"ytp-premium-label",j5:Y});return d};
  6842. G96=function(d,q,T,Y){q={Y:"span",hF:Y,V:[q]};var e;Y="ytp-swatch-color";if(d.X||d.G)Y="ytp-swatch-color-white";T==="highres"?e="8K":T==="hd2880"?e="5K":T==="hd2160"?e="4K":T.indexOf("hd")===0&&T!=="hd720"&&(e="HD");e&&(q.V.push(" "),q.V.push({Y:"sup",D:Y,j5:e}));return q};
  6843. cF=function(d){DI.call(this,d.getAvailablePlaybackRates()[0],d.getAvailablePlaybackRates()[d.getAvailablePlaybackRates().length-1],.05,d.getPlaybackRate(),{Y:"div",D:"ytp-speedslider-indicator-container",V:[{Y:"div",D:"ytp-speedslider-badge"},{Y:"p",D:"ytp-speedslider-text"}]});this.J=d;this.lr=KT(this.yv,50,this);g.d9(this.U,"ytp-speedslider");this.K=this.Qv("ytp-speedslider-text");this.UD=this.Qv("ytp-speedslider-badge");PX6(this);this.W(this.U,"change",this.rO)};
  6844. PX6=function(d){d.K.textContent=d.G.toFixed(2)+"x";var q=d.G>2&&d.J.N("enable_web_premium_varispeed");d.UD.classList.toggle("ytp-speedslider-premium-badge",q);d.UD.setAttribute("aria-label",q?"Premium":"")};
  6845. Ek=function(d,q,T,Y,e,U,b){g.f.call(this,{Y:"div",D:"ytp-slider-section",Z:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},V:[{Y:"div",D:"ytp-slider",V:[{Y:"div",D:"ytp-slider-handle"}]}]});this.B=d;this.K=q;this.U=T;this.j=Y;this.lr=e;this.z2=U;this.range=this.j-this.U;this.dO=this.Qv("ytp-slider-section");this.T=this.Qv("ytp-slider");this.UD=this.Qv("ytp-slider-handle");this.L=new g.fc(this.T,
  6846. !0);this.G=b?b:T;g.C(this,this.L);this.L.subscribe("dragmove",this.GQ,this);this.W(this.element,"keydown",this.fK);this.W(this.element,"wheel",this.Pb);this.init()};
  6847. jw=function(d){Ek.call(this,.05,.05,d.getAvailablePlaybackRates()[0],d.getAvailablePlaybackRates()[d.getAvailablePlaybackRates().length-1],150,20,d.getPlaybackRate());this.J=d;this.X=g.FE("P");this.rO=KT(this.yv,50,this);g.d9(this.T,"ytp-speedslider");g.d9(this.X,"ytp-speedslider-text");d=this.X;var q=this.T;q.parentNode&&q.parentNode.insertBefore(d,q.nextSibling);Wsj(this);this.W(this.J,"onPlaybackRateChange",this.updateValues)};
  6848. Wsj=function(d){d.X.textContent=CX1(d,d.G)+"x"};
  6849. CX1=function(d,q){d=Number(g.Cn(q,d.U,d.j).toFixed(2));q=Math.floor((d+.001)*100%5+2E-15);var T=d;q!==0&&(T=d-q*.01);return Number(T.toFixed(2))};
  6850. uBY=function(d){g.Ji.call(this,{Y:"div",D:"ytp-speedslider-component"});d.N("web_settings_use_input_slider")?this.G=new cF(d):this.G=new jw(d);g.C(this,this.G);this.element.appendChild(this.G.element)};
  6851. D2g=function(d){var q=new uBY(d);nc.call(this,d,q,"\u81ea\u5b9a\u4e49");g.C(this,q)};
  6852. wwj=function(d,q){var T=new D2g(d);g.uf.call(this,"\u64ad\u653e\u901f\u5ea6",g.rR.uf,d,q,ak(d)?void 0:"\u81ea\u5b9a\u4e49",ak(d)?void 0:function(){g.Kc(q,T)});
  6853. var Y=this;this.T=!1;g.C(this,T);this.L=new cF(d);g.C(this,this.L);if(d.N("web_settings_menu_icons")){var e=d.N("delhi_modern_web_player_icons")?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M9.80 1.22C8.59 1.46 7.44 1.91 6.38 2.54L5.93 2.82L5.85 2.88C5.66 3.04 5.53 3.26 5.49 3.51C5.45 3.75 5.51 4.00 5.65 4.21C5.78 4.41 5.99 4.56 6.23 4.62C6.47 4.69 6.72 4.66 6.94 4.54L7.03 4.49L7.40 4.26C8.27 3.74 9.21 3.38 10.20 3.18C10.46 3.12 10.69 2.97 10.84 2.75C10.98 2.53 11.04 2.26 10.98 2.00C10.93 1.74 10.77 1.51 10.55 1.36C10.33 1.22 10.06 1.16 9.80 1.22M13.02 2.00C12.99 2.13 12.99 2.26 13.02 2.39C13.04 2.52 13.09 2.64 13.16 2.75C13.24 2.86 13.33 2.95 13.44 3.03C13.55 3.10 13.67 3.15 13.80 3.18L14.20 1.22C14.07 1.19 13.94 1.19 13.81 1.22C13.68 1.24 13.56 1.29 13.45 1.36C13.34 1.44 13.24 1.53 13.17 1.64C13.09 1.75 13.04 1.87 13.02 2.00ZM14.20 1.22L14.00 2.20L13.80 3.18C15.77 3.58 17.54 4.63 18.85 6.15C20.15 7.68 20.90 9.60 20.99 11.61L21.00 12.00C21.00 14.07 20.28 16.08 18.96 17.69C17.65 19.30 15.82 20.40 13.79 20.82L13.99 21.8L14.19 22.78C16.59 22.29 18.77 21.01 20.36 19.14C21.96 17.27 22.88 14.93 22.99 12.47L23.00 12.00C23.00 9.46 22.12 7.00 20.52 5.04C18.91 3.08 16.68 1.73 14.20 1.22ZM2.88 5.85L2.82 5.93L2.54 6.38C1.91 7.44 1.46 8.59 1.22 9.80C1.19 9.93 1.19 10.06 1.21 10.19C1.24 10.32 1.29 10.44 1.36 10.55C1.51 10.77 1.74 10.93 2 10.98C2.25 11.04 2.53 10.98 2.75 10.84C2.97 10.69 3.12 10.46 3.18 10.20C3.38 9.21 3.74 8.27 4.26 7.40L4.49 7.03L4.54 6.95C4.65 6.73 4.68 6.47 4.62 6.23C4.56 5.99 4.41 5.78 4.20 5.65C4.00 5.51 3.75 5.46 3.50 5.49C3.26 5.53 3.03 5.66 2.88 5.85ZM17 12.00L9 7.2V16.8L17 12.00ZM2 13.01C1.87 13.04 1.74 13.09 1.64 13.16C1.53 13.23 1.43 13.33 1.36 13.44C1.29 13.55 1.24 13.67 1.21 13.80C1.19 13.93 1.19 14.06 1.22 14.19C1.46 15.40 1.91 16.55 2.54 17.61L2.82 18.06L2.88 18.14C3.03 18.33 3.26 18.46 3.50 18.50C3.75 18.53 4.00 18.48 4.20 18.34C4.41 18.21 4.56 18.00 4.62 17.76C4.68 17.52 4.65 17.27 4.54 17.05L4.49 16.96L4.26 16.59C3.74 15.72 3.38 14.78 3.18 13.79C3.15 13.66 3.10 13.54 3.02 13.43C2.95 13.32 2.86 13.23 2.75 13.15C2.64 13.08 2.51 13.03 2.39 13.01C2.26 12.98 2.12 12.98 2 13.01ZM5.65 19.79C5.51 19.99 5.46 20.24 5.49 20.49C5.53 20.73 5.66 20.95 5.85 21.11L5.93 21.17L6.38 21.45C7.44 22.08 8.59 22.53 9.80 22.77C10.06 22.83 10.33 22.77 10.55 22.63C10.77 22.48 10.93 22.25 10.98 21.99C11.03 21.73 10.98 21.46 10.84 21.24C10.69 21.02 10.46 20.87 10.20 20.81C9.21 20.61 8.27 20.25 7.40 19.73L7.03 19.50L6.94 19.45C6.72 19.34 6.47 19.31 6.23 19.37C5.99 19.43 5.78 19.58 5.65 19.79ZM14.19 22.78L13.79 20.82C13.66 20.84 13.54 20.89 13.43 20.97C13.32 21.04 13.23 21.13 13.15 21.24C13.08 21.35 13.03 21.48 13.01 21.60C12.98 21.73 12.98 21.87 13.01 22C13.04 22.12 13.09 22.25 13.16 22.35C13.23 22.46 13.33 22.56 13.44 22.63C13.55 22.70 13.67 22.75 13.80 22.78C13.93 22.80 14.06 22.80 14.19 22.78Z",
  6854. fill:"white"}}]}:{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{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",
  6855. fill:"white"}}]};this.setIcon(e)}this.J=d;this.T=!1;this.lr=null;ak(d)?(this.G=g.bO("\u81ea\u5b9a\u4e49 ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.J.getPlaybackRate().toString()}),this.X=this.J.getPlaybackRate()):this.X=this.G=null;this.K=this.J.getAvailablePlaybackRates();this.W(d,"presentingplayerstatechange",this.S5);var U;((U=this.J.getVideoData())==null?0:U.y5())&&this.W(d,"serverstitchedvideochange",this.S5);this.W(this.L.U,"change",function(){Y.T=!0;Y.S5()});
  6856. this.S5()};
  6857. fR2=function(d,q){var T=AZ(q);d.G&&(d.T||q===d.X)?(d.kL(d.G),d.A1(q.toString())):d.kL(T)};
  6858. i_7=function(d){d.MF(d.K.map(AZ));d.G=null;d.X=null;var q=d.J.getPlaybackRate();ak(d.J)&&zwn(d,q);!d.K.includes(q)||d.T?d.kL(d.G):d.kL(AZ(q))};
  6859. zwn=function(d,q){d.X=q;d.G=g.bO("\u81ea\u5b9a\u4e49 ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:q.toString()});q=d.K.map(AZ);q.unshift(d.G);d.MF(q)};
  6860. AZ=function(d){return d.toString()};
  6861. ak=function(d){return d.N("web_settings_menu_surface_custom_playback")};
  6862. IRX=function(d){return d.N("web_settings_menu_surface_custom_playback")&&d.N("web_settings_use_input_slider")};
  6863. ShD=function(d,q,T,Y){var e=new g.rF(q,void 0,"\u8ddf\u968f\u89c6\u9891\u7684\u8bbe\u7f6e");g.uf.call(this,Y.text||"",d,q,T,"\u8ddf\u968f\u89c6\u9891\u7684\u8bbe\u7f6e",function(){g.Kc(T,e)});
  6864. var U=this;g.d9(this.element,"ytp-subtitles-options-menu-item");this.setting=Y.option.toString();d=Y.options;this.settings=g.lQ(d,this.eG,this);this.X=e;g.C(this,this.X);q=new g.gR({Y:"div",D:"ytp-menuitemtitle",j5:"\u5728\u89c6\u9891\u6307\u5b9a\u7684\u5b57\u5e55\u6837\u5f0f\u4e0e\u7528\u6237\u8bbe\u7f6e\u7684\u6837\u5f0f\u4e0d\u540c\u65f6\uff0c\u5141\u8bb8\u4f7f\u7528\u89c6\u9891\u6307\u5b9a\u7684\u6837\u5f0f\u3002"},0);g.C(this,q);this.X.rk(q,!0);this.T=new g.gR({Y:"div",D:"ytp-menuitem",Z:{role:"menuitemradio",
  6865. tabindex:"0"},V:[{Y:"div",D:"ytp-menuitem-label",j5:"\u5f00\u542f"}]},-1);g.C(this,this.T);this.X.rk(this.T,!0);this.W(this.T.element,"click",function(){m2H(U,!0)});
  6866. this.G=new g.gR({Y:"div",D:"ytp-menuitem",Z:{role:"menuitemradio",tabindex:"0"},V:[{Y:"div",D:"ytp-menuitem-label",j5:"\u5173\u95ed"}]},-2);g.C(this,this.G);this.X.rk(this.G,!0);this.W(this.G.element,"click",function(){m2H(U,!1)});
  6867. this.MF(g.yC(d,this.eG))};
  6868. m2H=function(d,q){d.publish("settingChange",d.setting+"Override",!q);d.TG.l1()};
  6869. pA=function(d,q){g.rF.call(this,d,void 0,"\u9009\u9879");var T=this;this.py={};for(var Y=0;Y<g.Ml.length;Y++){var e=g.Ml[Y],U=new ShD(-Y,d,q,e);g.C(this,U);U.subscribe("settingChange",this.Lq,this);this.py[e.option.toString()]=U;this.rk(U,!0)}d=new g.gR(g.Fp(),-g.Ml.length,"\u91cd\u7f6e");g.C(this,d);d.listen("click",function(){T.Lq("reset",!0)});
  6870. this.rk(d,!0)};
  6871. Zk=function(d,q){g.uf.call(this,"\u81ea\u52a8\u7ffb\u8bd1",0,d,q);this.J=d;this.languages={};d.createClientVe(this.element,this,127301);d.logVisibility(this.element,!0)};
  6872. lRQ=function(d,q){d.languages=g.lQ(q,d.G,d);d.MF(g.yC(q,d.G))};
  6873. oFg=function(d,q){var T=new pA(d,q),Y=["\u6b64\u8bbe\u7f6e\u53ea\u4f1a\u5f71\u54cd\u5f53\u524d\u89c6\u9891\u3002\u4f60\u53ef\u4ee5\u5728","\u4e2d\u8c03\u6574\u6240\u6709\u89c6\u9891\u7684\u5b57\u5e55\u663e\u793a\u8bbe\u7f6e\u3002"],e;g.cT(d.C())&&(e={Y:"div",D:"ytp-panel-footer-content",V:[{Y:"span",j5:Y[0]},{Y:"a",D:"ytp-panel-footer-content-link",j5:"\u8bbe\u7f6e",Z:{href:"/account_playback"}},{Y:"span",j5:Y[1]}]});g.uf.call(this,"\u5b57\u5e55",g.rR.SUBTITLES,d,q,"\u9009\u9879",function(){g.Kc(q,
  6874. T)},e);
  6875. var U=this;this.J=d;this.TG=q;this.tracks={};this.L=new g.f9(function(){vFn(U,!1)},3E3);
  6876. g.C(this,this.L);this.countLabel=new g.f({Y:"div",V:[{Y:"span",j5:"\u5b57\u5e55"},{Y:"span",D:"ytp-menuitem-label-count",j5:"{{content}}"}]});g.C(this,this.countLabel);g.$T(this,this.countLabel);d.N("web_settings_menu_icons")&&this.setIcon(STI(d.N("delhi_modern_web_player_icons")));this.G=new Zk(d,q);g.C(this,this.G);this.G.subscribe("select",this.lf,this);this.X=T;g.C(this,this.X);this.X.subscribe("settingChange",this.Lq,this);q.subscribe("show",this.C$D,this);this.W(d,"videodatachange",this.S5);
  6877. this.W(d,"onApiChange",this.S5);this.W(d,"onCaptionsTrackListChanged",this.S5);this.W(d,"captionschanged",this.S5);d.createClientVe(this.element,this,127300);this.S5()};
  6878. VmN=function(d){return Object.values(d.tracks).find(function(q){return q.languageCode==="en"&&q.kind==="asr"})};
  6879. Ok=function(d,q){d.J.setOption("captions","track",q)};
  6880. vFn=function(d,q){d.J.setOption("captions","sampleSubtitles",q)};
  6881. dD7=function(d){g.B$.call(this,d,"ytp-settings-menu");var q=this;this.ws=new g.rF(this.J);this.PT=this.settingsButton=null;this.isInitialized=this.P0=!1;g.C(this,this.ws);this.hide();g.Kc(this,this.ws);d.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(T){q.nz(T)});
  6882. this.W(d,"highlightSettingsMenu",function(){q.P0=!0;q.St()});
  6883. this.W(d,"openSettingsMenuItem",function(T){if(T&&(q.P0=!0,q.St(),T==="menu_item_video_quality_advanced")){var Y;(Y=q.PT)==null||Y.open()}})};
  6884. qZN=function(d,q){d.settingsButton=q;d.element.id=q.element.getAttribute("aria-controls")};
  6885. YZX=function(d,q){g.f.call(this,{Y:"button",hF:["ytp-subtitles-button","ytp-button"],Z:{"aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"5","data-tooltip-title":"{{tooltip-title}}",title:d.N("player_tooltip_data_title_killswitch")?"{{title}}":"","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[d.N("delhi_modern_web_player_icons")?{Y:"div",D:"ytp-subtitles-button-icon",j5:"{{icon}}"}:m7Q(d)]});this.J=d;this.tooltip=q.nH();d.N("delhi_modern_web_player_icons")&&this.updateValue("icon",
  6886. T31(this));this.W(d,"videodatachange",this.S5);this.W(d,"appresize",this.S5);this.W(d,"promotooltipacceptbuttonclicked",this.ymk);this.W(d,"onApiChange",this.S5);this.W(d,"onCaptionsTrackListChanged",this.S5);this.W(d,"captionschanged",this.S5);this.J.createClientVe(this.element,this,127299);this.S5();this.listen("click",this.onClick);this.addOnDisposeCallback(g.uH(q.nH(),this.element))};
  6887. nA=function(d){return g.La(d.J.M5())!=null?g.La(d.J.M5()).cT()?!!d.J.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1};
  6888. T31=function(d){if(d.J.N("delhi_modern_web_player_icons"))return d=Zx.includes("zh-CN")?nA(d)&&d.isEnabled()?{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM9.03 8.08L9.29 8.16C9.79 8.35 10.24 8.65 10.60 9.05L10.77 9.26L10.83 9.34C10.96 9.55 11.01 9.80 10.96 10.05C10.92 10.29 10.79 10.51 10.59 10.66C10.40 10.81 10.15 10.89 9.91 10.87C9.66 10.85 9.43 10.74 9.26 10.57L9.19 10.49L9.11 10.39C8.98 10.24 8.81 10.12 8.62 10.05L8.54 10.02C8.32 9.97 8.10 10.00 7.91 10.11C7.67 10.24 7.48 10.43 7.35 10.67L7.28 10.79C7.09 11.16 6.99 11.58 7 12L7.00 12.16C7.02 12.52 7.11 12.88 7.28 13.20L7.35 13.32C7.48 13.56 7.67 13.75 7.91 13.88L7.99 13.92C8.16 14.00 8.35 14.02 8.54 13.97L8.62 13.94C8.85 13.85 9.05 13.70 9.19 13.50L9.26 13.43C9.44 13.24 9.68 13.13 9.93 13.12C10.19 13.11 10.44 13.20 10.63 13.37C10.82 13.53 10.94 13.77 10.97 14.02C11.00 14.27 10.93 14.53 10.77 14.73C10.39 15.23 9.88 15.61 9.29 15.83L9.03 15.91C8.43 16.06 7.79 16.01 7.21 15.77L6.97 15.65C6.42 15.35 5.95 14.90 5.64 14.36L5.50 14.12C5.21 13.55 5.04 12.92 5.00 12.27L5 12C4.99 11.26 5.17 10.53 5.50 9.87L5.64 9.63C5.96 9.09 6.42 8.64 6.97 8.34C7.60 8.00 8.34 7.91 9.03 8.08ZM17.03 8.08L17.29 8.16C17.79 8.35 18.24 8.65 18.60 9.05L18.77 9.26L18.83 9.34C18.96 9.55 19.01 9.80 18.96 10.05C18.92 10.29 18.79 10.51 18.59 10.66C18.40 10.81 18.15 10.89 17.91 10.87C17.66 10.85 17.43 10.74 17.26 10.57L17.19 10.49L17.11 10.39C16.98 10.24 16.81 10.12 16.62 10.05L16.54 10.02C16.32 9.97 16.10 10.00 15.91 10.11C15.67 10.24 15.48 10.43 15.35 10.67L15.28 10.79C15.09 11.16 14.99 11.58 15 12L15.00 12.16C15.02 12.52 15.11 12.88 15.28 13.20L15.35 13.32C15.48 13.56 15.67 13.75 15.91 13.88L15.99 13.92C16.16 14.00 16.35 14.02 16.54 13.97L16.62 13.94C16.85 13.85 17.05 13.70 17.19 13.50L17.26 13.43C17.44 13.24 17.68 13.13 17.93 13.12C18.19 13.11 18.44 13.20 18.63 13.37C18.82 13.53 18.94 13.77 18.97 14.02C19.00 14.27 18.93 14.53 18.77 14.73C18.39 15.23 17.88 15.61 17.29 15.83L17.03 15.91C16.43 16.06 15.79 16.01 15.21 15.77L14.97 15.65C14.42 15.35 13.95 14.90 13.64 14.36L13.50 14.12C13.21 13.55 13.04 12.92 13.00 12.27L13 12C12.99 11.26 13.17 10.53 13.50 9.87L13.64 9.63C13.96 9.09 14.42 8.64 14.97 8.34C15.60 8.00 16.34 7.91 17.03 8.08Z",
  6889. fill:"white"}}]}:hi():nA(d)&&d.isEnabled()?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM6 11H8C8.26 11 8.51 11.10 8.70 11.29C8.89 11.48 9 11.73 9 12C9 12.26 8.89 12.51 8.70 12.70C8.51 12.89 8.26 13 8 13H6C5.73 13 5.48 12.89 5.29 12.70C5.10 12.51 5 12.26 5 12C5 11.73 5.10 11.48 5.29 11.29C5.48 11.10 5.73 11 6 11ZM12 11H18C18.26 11 18.51 11.10 18.70 11.29C18.89 11.48 19 11.73 19 12C19 12.26 18.89 12.51 18.70 12.70C18.51 12.89 18.26 13 18 13H12C11.73 13 11.48 12.89 11.29 12.70C11.10 12.51 11 12.26 11 12C11 11.73 11.10 11.48 11.29 11.29C11.48 11.10 11.73 11 12 11ZM16 15H18C18.26 15 18.51 15.10 18.70 15.29C18.89 15.48 19 15.73 19 16C19 16.26 18.89 16.51 18.70 16.70C18.51 16.89 18.26 17 18 17H16C15.73 17 15.48 16.89 15.29 16.70C15.10 16.51 15 16.26 15 16C15 15.73 15.10 15.48 15.29 15.29C15.48 15.10 15.73 15 16 15ZM6 15H12C12.26 15 12.51 15.10 12.70 15.29C12.89 15.48 13 15.73 13 16C13 16.26 12.89 16.51 12.70 16.70C12.51 16.89 12.26 17 12 17H6C5.73 17 5.48 16.89 5.29 16.70C5.10 16.51 5 16.26 5 16C5 15.73 5.10 15.48 5.29 15.29C5.48 15.10 5.73 15 6 15Z",
  6890. fill:"white"}}]}:C5I()};
  6891. g.rl=function(d,q,T){T=T===void 0?350:T;g.f.call(this,{Y:"div",hF:["ytp-time-display","notranslate"],Z:{"aria-label":"{{timeDisplayAriaLabel}}",tabindex:"0"},V:[{Y:"span",D:"ytp-time-wrapper",V:[{Y:"div",D:"ytp-time-contents",V:[{Y:"span",D:"ytp-time-clip-icon",j5:"{{clipicon}}",Z:{"aria-label":"\u526a\u8f91"}},{Y:"span",D:"ytp-time-current",j5:"{{currenttime}}"},{Y:"span",D:"ytp-time-separator",j5:" / "},{Y:"span",D:"ytp-time-duration",j5:"{{duration}}"}]}]},{Y:"span",D:"ytp-clip-watch-full-video-button-separator",
  6892. j5:"\u2022"},{Y:"span",D:"ytp-clip-watch-full-video-button",j5:"{{watchfullvideo}}"}]});var Y=this;this.api=d;this.K=T;this.liveBadge=new g.f({Y:"button",hF:["ytp-live-badge","ytp-button"],Z:{disabled:"true"},j5:"{{content}}"});this.G=null;this.cS=this.U=!1;this.B=this.L=null;this.isPremiere=!1;this.X=this.T=null;this.j=!1;this.IN=null;this.lr=this.Qv("ytp-clip-watch-full-video-button");this.liveBadge.A1("\u76f4\u64ad");g.C(this,this.liveBadge);this.api.N("web_player_updated_entrypoint")||this.api.N("delhi_modern_web_player")?
  6893. this.liveBadge.IU(this.element.querySelector(".ytp-time-contents")):this.liveBadge.IU(this.element);this.tooltip=q.nH();this.liveBadge.listen("click",this.onClick.bind(this));this.api.N("delhi_modern_web_player")&&(q=this.Qv("ytp-time-wrapper"),this.W(q,"click",this.ZfD),q.classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown()));this.W(this.lr,"click",this.Imk);this.W(this.api,"serverstitchedvideochange",function(){e_6(Y,Y.api.getProgressState().isAtLiveHead)});
  6894. this.W(d,"presentingplayerstatechange",this.Yc);this.W(d,"appresize",this.Yc);this.W(d,"onLoopRangeChange",this.onLoopRangeChange);this.W(d,"videodatachange",this.onVideoDataChange);(q=d.getVideoData())&&this.updateVideoData(q);this.Yc();UD2(this,d.getLoopRange())};
  6895. e_6=function(d,q){var T=d.liveBadge.element,Y=d.api.isLifaAdPlaying();T.disabled=Y||q;!tZ(d)||d.B===q&&d.L===d.isPremiere||(d.B=q,d.L=d.isPremiere,d.Yc(),q?T.classList.add("ytp-live-badge-is-livehead"):T.classList.remove("ytp-live-badge-is-livehead"),d.liveBadge.A1(d.isPremiere?"\u9996\u64ad":"\u76f4\u64ad"),q?d.G&&(d.G(),d.G=null,T.removeAttribute("title")):(T.title="\u8df3\u8f6c\u5230\u76f4\u64ad\u72b6\u6001\u3002",d.G=g.uH(d.tooltip,d.liveBadge.element)))};
  6896. UD2=function(d,q){var T=d.IN!==q;d.IN=q;T&&bQH(d)};
  6897. bQH=function(d){d.updateValue("clipicon",{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{Y:"path",Z:{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"}}]});
  6898. d.cS&&!d.U?d.updateValue("watchfullvideo","\u89c2\u770b\u76f4\u64ad"):d.updateValue("watchfullvideo","\u89c2\u770b\u5b8c\u6574\u7248\u89c6\u9891");g.ep(d.element,"ytp-clip",BF(d));g.ep(d.element,"ytp-live",tZ(d))};
  6899. tZ=function(d){var q=d.api.C().N("enable_linear_program_progress"),T=d.api.getPresentingPlayerType()===2;return d.cS&&!BF(d)&&(!q||!d.U)&&!T};
  6900. BF=function(d){return!!d.IN&&!!d.IN.postId&&d.api.getPresentingPlayerType()!==2&&(!d.IN.type||d.IN.type==="clips")};
  6901. J97=function(d,q){g.f.call(this,{Y:"div",D:"ytp-volume-panel",Z:{title:d.N("player_tooltip_data_title_killswitch")?"\u97f3\u91cf":"","data-tooltip-title":"\u97f3\u91cf",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},V:[{Y:"div",D:"ytp-volume-slider",V:[{Y:"div",D:"ytp-volume-slider-handle"}]}]});var T=this;this.api=d;this.L=q;this.qO=!1;this.K=this.volume=0;this.X=null;this.U=this.G=this.isDragging=!1;this.L=q;
  6902. this.j=d.rU();this.B=this.Qv("ytp-volume-slider");this.lr=this.Qv("ytp-volume-slider-handle");this.T=new g.fc(this.B,!0);g.C(this,this.T);this.T.subscribe("dragstart",this.wGw,this);this.T.subscribe("dragmove",this.oo,this);this.T.subscribe("dragend",this.Kcw,this);this.W(d,"onVolumeChange",this.onVolumeChange);this.W(d,"appresize",this.nE);this.W(d,"fullscreentoggled",this.xX);this.W(d,"onShowControls",this.f6);this.W(d,"onHideControls",this.f6);this.W(this.element,"keydown",this.jW);this.W(this.element,
  6903. "focus",function(){KA(T,T.G,T.isDragging,!0,T.api.qO())});
  6904. this.W(this.element,"blur",function(){KA(T,T.G,T.isDragging,!1,T.api.qO())});
  6905. this.nE(d.OD().getPlayerSize());XCj(this,d.getVolume(),d.isMuted());D$(d,this.element,this)};
  6906. XCj=function(d,q,T){var Y=Math.floor(q),e=Y+"% \u97f3\u91cf"+(T?" \u5df2\u9759\u97f3":"");T=T?0:q/100;d.updateValue("valuenow",Y);d.updateValue("valuetext",e);d.lr.style.left=(d.j?60:40)*T+"px";d.volume=q};
  6907. st_=function(d,q){g.ep(d.element,"ytp-volume-control-hover",q);KA(d,q,d.isDragging,d.U,d.api.qO())};
  6908. KA=function(d,q,T,Y,e){var U=d.G||d.isDragging||d.U||d.qO;d.G=q;d.isDragging=T;d.U=Y;d.qO=e;q=d.G||d.isDragging||d.U||d.qO;U!==q&&(q?d.X=d.W(d.element,"wheel",d.Uf):(d.t1(d.X),d.X=null),g.ep(d.L,"ytp-volume-slider-active",q))};
  6909. Gj=function(d,q){var T=d.C(),Y=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];T.j&&Y.push("no-link");var e={title:d.N("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}",target:T.K,"data-priority":"6","data-sessionlink":"feature=player-button"};T.j||(e.href="{{url}}");g.f.call(this,{Y:"a",hF:Y,Z:e,j5:"{{logoSvg}}"});this.G=null;this.api=d;this.visible=!1;T.j||(this.G=this.listen("click",this.onClick));this.W(d,"videodatachange",this.onVideoDataChange);
  6910. this.W(d,"videoplayerreset",this.onVideoDataChange);this.W(d,"onLoopRangeChange",this.onVideoDataChange);this.W(d,"appresize",this.gz);this.onVideoDataChange();T.j||this.addOnDisposeCallback(g.uH(q.nH(),this.element));this.gz()};
  6911. g6D=function(d,q,T){g.aI.call(this);var Y=this;this.J=d;this.z2=q;this.QH=T;this.fn=NaN;this.yv=this.Bv=this.playButton=this.S=this.X=this.AF=this.qk=this.UD=this.lr=this.G=this.B=this.kx=this.Tg=this.wO=null;this.T=new dD7(this.J);this.progressBar=new g.Vr(this.J,this.z2);this.dO=new g.rl(this.J,this.z2);this.rO=new heQ(this.J,this.z2);this.K=new g.uc(this.TQ,null,this);T=d.C();this.QH.subscribe("autohideupdate",this.cE,this);var e=!d.getPlayerStateObject().isCued(),U;(this.lF=!d.N("delhi_modern_web_player")&&
  6912. d.C().N("html5_player_dynamic_bottom_gradient"))?this.kx=U=new N$6(d):U=new g.f({Y:"div",D:"ytp-gradient-bottom"});g.C(this,U);g.o6(d,U.element,9);this.RU=new g.oh(U,250,e,100);g.C(this,this.RU);this.U=new g.f({Y:"div",D:"ytp-chrome-bottom",V:[{Y:"div",D:"ytp-chrome-controls"}]});g.C(this,this.U);g.o6(d,this.U.element,9);this.aU=new g.oh(this.U,250,e,100);g.C(this,this.aU);this.xx=this.U.element.children[0];g.C(this,this.T);g.o6(d,this.T.element,6);this.T.subscribe("show",function(N){Y.J.VV(!N);d.n_(Y.T,
  6913. N)});
  6914. g.C(this,this.progressBar);this.progressBar.IU(this.U.element,0);e=new P9(d,q);g.C(this,e);g.o6(d,e.element,4);e=new g.Ux({Y:"div",D:"ytp-left-controls"});g.C(this,e);e.IU(this.xx);d.N("delhi_modern_web_player")||(U=new g.mG(d,q,!1),g.C(this,U),U.IU(e.element));d.N("web_render_jump_buttons")&&(this.lr=new W9(d,-10),g.C(this,this.lr),this.lr.IU(e.element));T.RU||(this.playButton=new g.IW(d,q),g.C(this,this.playButton),this.playButton.IU(e.element));d.N("web_render_jump_buttons")&&(this.UD=new W9(d,
  6915. 10),g.C(this,this.UD),this.UD.IU(e.element));d.N("delhi_modern_web_player_remove_nav_buttons")||(d.N("delhi_modern_web_player")&&(U=new g.mG(d,q,!1),g.C(this,U),U.IU(e.element)),U=new g.mG(d,q,!0),g.C(this,U),U.IU(e.element));if(!d.N("delhi_modern_web_player")&&(U=new g.f({Y:"span",D:"ytp-volume-area"}),g.C(this,U),U.IU(e.element),!T.qC&&(this.G=new ig(d,q),g.C(this,this.G),this.G.IU(U.element),T.dO&&!T.L))){var b=new J97(d,this.U.element);this.Bv=b;g.C(this,b);b.IU(U.element);U=new g.fc(U.element);
  6916. g.C(this,U);U.subscribe("hoverstart",function(){var N;(N=Y.Bv)==null||st_(N,!0)});
  6917. U=new g.fc(e.element);g.C(this,U);U.subscribe("hoverend",function(){var N;(N=Y.Bv)==null||st_(N,!1)})}d.N("delhi_modern_web_player_lhs_volume_controls")&&(e.element.classList.add("ytp-left-controls-with-volume"),this.G=new ig(d,q),g.C(this,this.G),this.G.IU(e.element),this.G.element.classList.add("ytp-standalone-mute-button"));
  6918. g.C(this,this.dO);this.dO.IU(e.element);this.qk=new Lq(d,this.progressBar);g.C(this,this.qk);this.qk.IU(e.element);T.N("web_key_moments_markers")&&(this.AF=new Cq(d,this.progressBar),g.C(this,this.AF),this.AF.IU(e.element));d.N("delhi_modern_web_player")?this.j=new g.Ux({Y:"div",D:"ytp-right-controls",V:[{Y:"div",D:LA.RIGHT_CONTROLS_LEFT},{Y:"div",D:LA.RIGHT_CONTROLS_RIGHT}]}):this.j=new g.Ux({Y:"div",D:"ytp-right-controls"});g.C(this,this.j);this.j.IU(this.xx);d.N("delhi_modern_web_player")&&(this.B=
  6919. new kB,g.C(this,this.B),this.B.IU(this.j.Qv(LA.RIGHT_CONTROLS_LEFT)),d.N("delhi_modern_web_player_lhs_volume_controls")||(this.G=new ig(d,q),g.C(this,this.G),this.G.IU(this.j.Qv(LA.RIGHT_CONTROLS_LEFT))));this.Fw=new YZX(d,q);g.C(this,this.Fw);kn(this,this.Fw,"RIGHT_CONTROLS_LEFT");this.settingsButton=new hZ(d,this.T);g.C(this,this.settingsButton);qZN(this.T,this.settingsButton);kn(this,this.settingsButton,"RIGHT_CONTROLS_LEFT");e=d.getVideoData();if(T.hC||e.kc&&T.controlsType==="1")this.X=new Gj(d,
  6920. q),g.C(this,this.X),this.X.IU(this.j.element);T.showMiniplayerButton&&(this.S=new ug(d),g.C(this,this.S),kn(this,this.S,"RIGHT_CONTROLS_RIGHT"));T.Aq&&(q=new yW(d,this.T),g.C(this,q),kn(this,q,"RIGHT_CONTROLS_RIGHT"));T.IF&&(q=new Kq(d),g.C(this,q),kn(this,q,"RIGHT_CONTROLS_RIGHT"));g.C(this,this.rO);kn(this,this.rO,"RIGHT_CONTROLS_RIGHT");g.C(this,this.K);this.W(d,"appresize",this.gz);this.W(d,"fullscreentoggled",this.gz);var J;(J=this.B)==null||J.subscribe("small-mode-expand-right-bottom-controls",
  6921. function(){$DX(Y)});
  6922. var F;(F=this.B)==null||F.subscribe("small-mode-collapse-right-bottom-controls",function(){$DX(Y)});
  6923. this.W(d,"presentingplayerstatechange",this.N8);this.W(d,"videodatachange",this.onVideoDataChange);this.gz()};
  6924. $DX=function(d){d.U.element.classList.toggle("ytp-xsmall-width-right-controls-expanded",d.B.isExpanded())};
  6925. FCH=function(d,q){if(d.J.getPlayerStateObject().isCued()||q){if(q){d.aU.hide();d.RU.hide();d.G&&d.G.N5(!1);d.X&&d.X.N5(!1);d.S&&d.S.N5(!1);if(d.J.N("embeds_use_parent_visibility_in_ve_logging")){var T;(T=d.rO)==null||T.N5(!1);var Y;(Y=d.settingsButton)==null||Y.N5(!1);var e;(e=d.playButton)==null||e.N5(!1)}d.J.Jo(d.tA())}}else if(!q){d.aU.show();d.RU.show();d.G&&d.G.N5(!0);d.X&&d.X.N5(!0);d.S&&d.S.N5(!0);if(d.J.N("embeds_use_parent_visibility_in_ve_logging")){var U;(U=d.rO)==null||U.N5(!0);var b;
  6926. (b=d.Fw)==null||b.N5(!0);var J;(J=d.playButton)==null||J.N5(!0)}d.cE()}};
  6927. R_n=function(d){var q=d.J.OD().getPlayerSize().width;return Math.max(q-N3Q(d)*2,100)};
  6928. N3Q=function(d){if(d.J.N("web_player_rtr_ctrls")&&d.J.OD().po)return 0;var q=d.J.rU(),T=d.J.getVideoData().kc,Y=0;d.J.rU()&&d.J.isEmbedsShortsMode()&&(Y=(d.J.OD().getPlayerSize().width-d.J.getVideoContentRect().width)/2);return 12*(T?0:q?2:1)+Y};
  6929. xDg=function(d){var q=d.J.rU()?72:50,T=d.J.C();g.cT(T)&&(T.N("delhi_modern_web_player")?(q=d.J.rU()?112:78,d.J.getRootNode().classList.contains("ytp-fullscreen-grid-peaking")&&(q+=36)):q=62,g.bS(T)&&(q=54));return q};
  6930. kn=function(d,q,T){d.J.N("delhi_modern_web_player")?q.IU(d.j.Qv(LA[T])):q.IU(d.j.element)};
  6931. y9N=function(d){O8.call(this,d,!1);var q=this;this.suggestedActions={};this.element.setAttribute("data-overlay-order","7");this.W(this.J,"videodatachange",this.onVideoDataChange);this.W(this.J,g.Sh("suggested_action_button_visible"),function(T){T=T.id;q.text=T;lI7(q);q.onClickCommand=q.suggestedActions[T];q.enabled=!0;q.nz()});
  6932. this.W(this.J,g.lG("suggested_action_button_visible"),function(T){q.enabled=!1;q.nz();q.J.removeCueRange(T.id)})};
  6933. h__=function(d){d.suggestedActions={};d.J.hm("suggested_action_button_visible")};
  6934. WF=function(d){g.f.call(this,{Y:"div",D:PF.TITLE,V:[{Y:"div",D:PF.TEXT,V:[{Y:"a",hF:[PF.LINK,PF.SESSIONLINK],Z:{target:d.C().K,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},j5:"{{title}}"},{Y:"div",D:PF.SUBTEXT,V:["{{subtextElement}}"]}]}]});this.api=d;this.G=null;this.link=this.Qv(PF.LINK);d.createClientVe(this.element,this,23851);this.W(d,"videodatachange",this.S5);this.W(d,"videoplayerreset",this.S5);this.S5()};
  6935. HQ6=function(d){d.updateValue("channelLink","");d.updateValue("channelName","");g.bS(d.api.C())?d.updateValue("channelTitleFocusable","0"):d.updateValue("channelTitleFocusable","-1")};
  6936. g.CA=function(d,q){g.f.call(this,{Y:"div",V:[{Y:"div",D:"ytp-tooltip-text-wrapper",Z:{"aria-hidden":"{{ariaHidden}}"},V:[{Y:"div",D:"ytp-tooltip-edu",V:[{Y:"svg",Z:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Z:{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"}}]},{Y:"span",j5:"{{eduText}}"}]},{Y:"div",D:"ytp-tooltip-image"},{Y:"div",D:"ytp-tooltip-title",V:[{Y:"span",j5:"{{title}}"},{Y:"div",D:"ytp-tooltip-keyboard-shortcut",
  6937. j5:"{{keyBoardShortcutTitle}}"}]},{Y:"div",D:"ytp-tooltip-bottom-text",V:[{Y:"span",D:"ytp-tooltip-text",j5:"{{text}}"},{Y:"div",D:"ytp-tooltip-keyboard-shortcut",j5:"{{keyBoardShortcut}}"}]},{Y:"div",D:"ytp-tooltip-progress-bar-pill",V:[{Y:"div",D:"ytp-tooltip-progress-bar-pill-time-stamp",j5:"{{pillTimeStamp}}"},{Y:"div",D:"ytp-tooltip-progress-bar-pill-title",j5:"{{pillTitle}}"}]}]},{Y:"div",D:"ytp-tooltip-bg",V:[{Y:"div",D:"ytp-tooltip-duration",j5:"{{duration}}"}]}]});var T=this;this.api=d;this.dO=
  6938. q;this.K=function(Y){(Y=Y.relatedTarget)&&g.HB(T.G,Y)||T.QS()};
  6939. this.X=function(Y){T.type===3&&T.QS();(Y=Y.currentTarget)&&Y.nodeType===1&&!T.type&&(Y.removeEventListener("mouseover",T.X),Y.addEventListener("mouseout",T.K),Y.removeEventListener("focus",T.X),Y.addEventListener("blur",T.K),Qt7(T,Y,2))};
  6940. this.lr=function(){T.QS()};
  6941. this.type=this.G=null;this.B=!1;this.U=null;this.j="";this.L=!0;this.scale=1;this.env=this.api.C();this.rO=this.env.U;this.wrapper=this.Qv("ytp-tooltip-text-wrapper");this.bg=this.Qv("ytp-tooltip-bg");this.z2=this.Qv("ytp-tooltip-edu");this.image=this.Qv("ytp-tooltip-image");this.text=this.Qv("ytp-tooltip-text");this.bottomText=this.Qv("ytp-tooltip-bottom-text");this.title=this.Qv("ytp-tooltip-title");this.fade=new g.oh(this,100);this.T=NaN;this.Mt=this.api.OD().getPlayerSize().width;this.UD=new g.f9(this.nV,
  6942. 250,this);this.yv=new g.f9(this.QS,5E3,this);g.C(this,this.fade);g.C(this,this.UD);g.C(this,this.yv);le&&(d=this.Qv("ytp-tooltip-text"),d.setAttribute("role","text"),d.setAttribute("aria-live","polite"))};
  6943. MUH=function(d,q){d.env.N("delhi_modern_web_player")&&d.scale!==.6&&(d.scale=q?.8:1)};
  6944. g.uH=function(d,q){if(d.rO)return function(){};
  6945. q.addEventListener("mouseover",d.X);q.addEventListener("focus",d.X);var T=d.env.N("player_tooltip_data_title_killswitch")?q.getAttribute("title"):q.getAttribute("data-tooltip-title");T&&!q.hasAttribute("aria-label")&&q.setAttribute("aria-label",T);return function(){d.G===q&&d.QS();q.removeEventListener("mouseover",d.X);q.removeEventListener("focus",d.X)}};
  6946. Qt7=function(d,q,T,Y){if(q&&!q.hasAttribute)d=new g.CW("showElementTooltip called with non-element.",q.toString()),g.Zz(d);else{isNaN(d.T)||(d.T=NaN,d.bg.style.background="");g.TR(d.element,"ytp-tooltip-progress-bar-style");d.G=q;d.B=!!Y;Y?d.j=Y:(d.env.N("player_tooltip_data_title_killswitch")?d.j=q.getAttribute("title"):d.j=q.getAttribute("data-tooltip-title"),d.env.N("player_tooltip_data_title_killswitch")?q.removeAttribute("title"):q.removeAttribute("data-tooltip-title"));g.o1(d.element,"ytp-tooltip");
  6947. var e=q.getAttribute("data-tooltip-image");e&&(d.image.style.backgroundImage="url("+e+")");Y?d.update({ariaHidden:"false"}):d.update({ariaHidden:"true"});g.ep(d.element,"ytp-tooltip-image-enabled",!!e);q=q.getAttribute("data-tooltip-opaque");g.ep(d.element,"ytp-tooltip-opaque",!!q);d.type=T;d.api.addEventListener("appresize",d.lr);d.L&&(ur(d),d.fade.show(0))}};
  6948. ur=function(d){if(d.G){var q=d.G.getAttribute("data-tooltip-text");if(d.j&&d.G.getAttribute("aria-label")!==d.j)var T=d.j;var Y=d.G.getAttribute("aria-keyshortcuts"),e=d.G.getAttribute("data-title-no-tooltip");Y&&e&&(T=g.bO("$BUTTON_TITLE \u952e\u76d8\u5feb\u6377\u952e $SHORTCUT_KEY",{BUTTON_TITLE:e,SHORTCUT_KEY:Y}));T&&d.G.setAttribute("aria-label",T);if(q&&!d.B){MUH(d,!0);var U=d.G;d.updateValue("text",q);T=U.getAttribute("data-duration");d.update({title:d.j,duration:T});U=U.getAttribute("data-preview");
  6949. d.env.N("delhi_modern_web_player")?(d.updateValue("title",e),d.updateValue("keyBoardShortcutTitle",Y.toUpperCase())):MUH(d,!1);Y=243*d.scale;e=141*d.scale;d.bg.style.width=Y+"px";d.bg.style.height=e+"px";d.bg.style.backgroundImage=U?"url("+U+")":"";d.bg.style.backgroundSize=Y+"px "+e+"px";d.wrapper.style.width=Y+"px";g.qg(d.element,["ytp-text-detail","ytp-preview"]);g.ep(d.element,"ytp-has-duration",!!T)}else e&&Y&&d.env.N("delhi_modern_web_player")?(d.updateValue("text",e),d.updateValue("keyBoardShortcut",
  6950. Y.toUpperCase())):d.updateValue("text",d.j),g.YG(d.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);T=d.G;T.hasAttribute("data-tooltip-offset-y")?(T=Number(T.getAttribute("data-tooltip-offset-y")),T=isNaN(T)?0:T):T=0;c9n(d,!!q,void 0,T)}};
  6951. c9n=function(d,q,T,Y){var e=Math.min(d.Mt,300*d.scale);d.element.style.maxWidth=q?"":e+"px";d.dO.KZ(d.element,d.G,T,d.type===1,Y);d.element.style.top?g.d9(d.element,"ytp-bottom"):d.element.style.bottom&&g.d9(d.element,"ytp-top");d.type===3&&d.yv.start()};
  6952. E6Y=function(d,q){g.ep(d.element,"ytp-preview",q>=0);if(!(q<0||q===d.T)){d.T=q;q=243*d.scale;var T=141*d.scale,Y=d6I(d.U,d.T,q);Re1(d.bg,Y,q,T,!0);d.UD.start()}};
  6953. jtH=function(d){var q=d.G;d.type===3&&d.yv.stop();d.api.removeEventListener("appresize",d.lr);d.B||(d.env.N("player_tooltip_data_title_killswitch")?q.setAttribute("title",d.j):q.setAttribute("data-tooltip-title",d.j));d.j="";d.G=null;d.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});d.wrapper.style.width=""};
  6954. A9j=function(d){g.f.call(this,{Y:"button",hF:["ytp-watch-later-button","ytp-button"],Z:{title:d.N("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.dn(d.C()))},V:[{Y:"div",D:"ytp-watch-later-icon",j5:"{{icon}}"},{Y:"div",D:"ytp-watch-later-title",j5:"\u7a0d\u540e\u89c2\u770b"}]});this.J=d;this.icon=null;this.visible=this.isRequestPending=this.G=!1;rHY(d);d.createClientVe(this.element,this,
  6955. 28665);this.listen("click",this.onClick,this);this.W(d,"videoplayerreset",this.onReset);this.W(d,"appresize",this.bq);this.W(d,"videodatachange",this.bq);this.W(d,"presentingplayerstatechange",this.bq);this.bq();d=this.J.C();var q=g.Zs("yt-player-watch-later-pending");d.T&&q?(TXn(),aHD(this)):this.S5(2);g.ep(this.element,"ytp-show-watch-later-title",g.dn(d));D$(this.J,this.element,this)};
  6956. pC7=function(d){var q=d.J.getPlayerSize(),T=d.J.C(),Y=d.J.getVideoData(),e=g.dn(T)&&g.m7(d.J)&&g.I(d.J.getPlayerStateObject(),128),U=T.j;return T.FW&&q.width>=240&&!Y.isAd()&&Y.FW&&!e&&!Y.kc&&!d.J.isEmbedsShortsMode()&&!U};
  6957. ZQN=function(d,q){Or_(g.yv(d.J.C()),"wl_button",function(){TXn({videoId:q});window.location.reload()})};
  6958. aHD=function(d){if(!d.isRequestPending){d.isRequestPending=!0;d.S5(3);var q=d.J.getVideoData();q=d.G?q.removeFromWatchLaterCommand:q.addToWatchLaterCommand;var T=d.J.S0(),Y=d.G?function(){d.G=!1;d.isRequestPending=!1;d.S5(2);d.J.C().B&&d.J.gO("WATCH_LATER_VIDEO_REMOVED")}:function(){d.G=!0;
  6959. d.isRequestPending=!1;d.S5(1);d.J.C().U&&d.J.lK(d.element);d.J.C().B&&d.J.gO("WATCH_LATER_VIDEO_ADDED")};
  6960. KU(T,q).then(Y,function(){d.isRequestPending=!1;d.S5(4,"\u51fa\u73b0\u9519\u8bef\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002");d.J.C().B&&d.J.gO("WATCH_LATER_ERROR","\u51fa\u73b0\u9519\u8bef\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002")})}};
  6961. OQQ=function(d,q){if(q!==d.icon){switch(q){case 3:var T=Oc();break;case 1:T=NP();break;case 2:T={Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",Z:{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:T={Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",
  6962. Kn:!0,Z:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}d.updateValue("icon",T);d.icon=q}};
  6963. n61=function(){g.ql.apply(this,arguments);this.q9=(this.PW=g.dn(this.api.C()))&&(this.api.C().U||m9()||ib());this.JV=48;this.RJ=69;this.FR=this.mV=null;this.YI=[];this.Hp=this.J0=this.dY=this.HZ=this.Jm=null;this.sj=[];this.contextMenu=this.nj=this.overflowButton=this.ag=this.x9=this.searchButton=this.copyLinkButton=this.shareButton=this.XU=this.al=this.title=this.channelAvatar=this.VW=this.tooltip=null;this.oJ=!1;this.ze=this.yW=this.UE=this.o7=null;this.scv=this.qA=this.DF=!1};
  6964. r9j=function(d){var q=d.api.C(),T=g.I(d.api.getPlayerStateObject(),128);return q.T&&T&&!d.api.isFullscreen()};
  6965. tU1=function(d){if(d.Rl()&&!d.api.isEmbedsShortsMode()&&d.ag){var q=d.api.N("web_player_hide_overflow_button_if_empty_menu");!d.XU||q&&!pC7(d.XU)||rXQ(d.ag,d.XU);!d.shareButton||q&&!mJ7(d.shareButton)||rXQ(d.ag,d.shareButton);!d.copyLinkButton||q&&!zzY(d.copyLinkButton)||rXQ(d.ag,d.copyLinkButton)}else{q=d.api.C().getWebPlayerContextConfig();if(d.ag){for(var T=d.ag,Y=g.E(T.actionButtons),e=Y.next();!e.done;e=Y.next())e.value.detach();T.actionButtons=[]}d.searchButton&&!g.HB(d.al.element,d.searchButton.element)&&
  6966. d.searchButton.IU(d.al.element);!d.XU||(q==null?0:q.hideTopWatchNextButton)||g.HB(d.al.element,d.XU.element)||d.XU.IU(d.al.element);!d.shareButton||(q==null?0:q.hideTopShareButton)||g.HB(d.al.element,d.shareButton.element)||d.shareButton.IU(d.al.element);d.copyLinkButton&&!g.HB(d.al.element,d.copyLinkButton.element)&&d.copyLinkButton.IU(d.al.element)}};
  6967. B3_=function(d,q,T){q=T?q.lastElementChild:q.firstElementChild;for(var Y=null;q;){if(zO(q,"display")!=="none"&&q.getAttribute("aria-hidden")!=="true"){var e=void 0;q.tabIndex>=0?e=q:e=B3_(d,q,T);e&&(Y?T?e.tabIndex>Y.tabIndex&&(Y=e):e.tabIndex<Y.tabIndex&&(Y=e):Y=e)}q=T?q.previousElementSibling:q.nextElementSibling}return Y};
  6968. KCX=function(d,q,T){if(d.api.N("web_player_nitrate_promo_tooltip")&&d.api.getPresentingPlayerType(!0)!==2){var Y=d.api.getVideoData(1);if(Y==null?0:Y.tooltipRenderer){Y=Y.tooltipRenderer;var e;if(e=!d.ze){if(!(q=!q)){var U,b,J;q=((U=Y.tooltipDisplayStrategy)==null?void 0:U.type)!=="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"&&((b=Y.promoConfig)==null?void 0:b.promoId)!=="dtip-edu-player-iseecaptions"&&((J=Y.promoConfig)==null?void 0:J.promoId)!=="dtip-edu-player-tc-m2"}e=q}e&&(d.ze=new Gon(Y,d.api),
  6969. g.C(d,d.ze),g.o6(d.api,d.ze.element,9));var F;(F=d.ze)==null||Wyf(F,Y,T)}}};
  6970. g.Dk=function(d){g.na.call(this,d);this.chrome=null;this.load()};
  6971. G4j=function(){for(var d=wl.length;d<4;d++){var q=g.FE("VIDEO");q.load();wl.push(new g.Vk(q))}};
  6972. LC6=function(d,q,T,Y){var e=T.getVideoData(),U=q.getVideoData();if(T.getPlayerState().isError())return{msg:"player-error"};var b=U.j;if(q.tE()>Y/1E3+1)return{msg:"in-the-past"};if(U.isLivePlayback&&!isFinite(Y))return{msg:"live-infinite"};(Y=q.WG())&&Y.isView()&&(Y=Y.mediaElement);if(Y&&Y.NT().length>12&&g.ft(e))return{msg:"played-ranges"};if(!e.j)return null;if(!b)return{msg:"no-pvd-formats"};if(!e.j.G||!b.G)return{msg:"non-dash"};Y=b.videoInfos[0];var J=e.j.videoInfos[0];d.lr&&Zu(U)&&(Y=q.Ko(),
  6973. J=T.Ko());if(!Y||!J)return{msg:"no-video-info"};if(d.X&&(kV(Y)||kV(J)))return{msg:"av1"};q=d.T&&U.mT()&&XD();if(J.containerType!==Y.containerType)if(q)U.oU("sgap",{ierr:"container"});else return{msg:"container"};if(d.S&&!q&&(J.Cf!==Y.Cf||J.Cf===""||Y.Cf===""))return{msg:"codec"};if(d.L&&J.video&&Y.video&&Math.abs(J.video.width/J.video.height-Y.video.width/Y.video.height)>.01)return{msg:"ratio"};if(g.ft(U)&&g.ft(e))return{msg:"content-protection"};b=b.G[0];e=e.j.G[0];T=b.audio;var F=e.audio;if(T.sampleRate!==
  6974. F.sampleRate&&!g.MI)if(q)U.oU("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:b.itag,cr:T.sampleRate,ni:e.itag,nr:F.sampleRate};return(T.numChannels||2)!==(F.numChannels||2)?{msg:"channel-count"}:d.B&&U.mT()&&Y.video.fps!==J.video.fps?{msg:"fps"}:null};
  6975. k42=function(d,q,T){var Y=d.getVideoData(),e=q.getVideoData();if(!Y.C().supportsGaplessShorts())return{nq:"env"};if((!T.K||Y.k9&&!Y.isAd()||e.k9&&!e.isAd())&&(!T.U||Y.k9&&!Y.isAd()||e.k9)&&(!T.j||e.k9&&!e.isAd()||Y.k9)&&(Y.k9||e.k9))return{nq:"autoplay"};if(Y.endSeconds>0)return{nq:"endcr"};if(!Y.L)return{nq:"client"};if(!d.MN())return{nq:"no-empty"};d=LC6(T,d,q,Infinity);return d!=null?{nq:d.msg}:null};
  6976. fA=function(d){g.W.call(this);this.app=d;this.S=this.T=this.U=this.G=null;this.j=1;this.events=new g.aI(this);this.events.W(this.app.mZ,g.lG("gaplessshortslooprange"),this.B);g.C(this,this.events)};
  6977. PT_=function(){this.G=this.L=this.j=this.U=this.K=this.X=this.lr=this.B=this.S=this.T=!1};
  6978. WCX=function(d){var q=new PT_;q.T=d.N("h5_gapless_support_types_diff");q.B=d.N("h5_gapless_error_on_fps_diff");q.lr=d.N("html5_gapless_use_format_info_fix");q.X=d.N("html5_gapless_disable_on_av1")&&!d.N("html5_gapless_enable_on_av1");q.S=d.N("html5_gapless_check_codec_diff_strictly");q.K=d.N("html5_gapless_on_ad_autoplay");q.L=d.N("html5_gapless_disable_diff_aspect_radio");q.U=d.N("html5_gapless_ad_autoplay_on_ad_to_video_only");q.G=d.N("html5_pseudogapless_shorts_seek_to_next_start");q.j=d.N("html5_gapless_ad_autoplay_on_video_to_ad_only");
  6979. return q};
  6980. g.zj=function(d,q,T,Y){Y=Y===void 0?!1:Y;he.call(this);this.mediaElement=d;this.start=q;this.end=T;this.G=Y};
  6981. CT6=function(d,q,T,Y,e,U){U=U===void 0?0:U;g.W.call(this);var b=this;this.policy=d;this.G=q;this.U=T;this.h1=e;this.S=U;this.T=this.j=null;this.currentVideoDuration=this.X=-1;this.L=!1;this.l3=new yQ;this.yP=Y-q.mz()*1E3;this.l3.then(void 0,function(){});
  6982. this.timeout=new g.f9(function(){b.Kj("timeout")},1E4);
  6983. g.C(this,this.timeout);this.B=isFinite(Y)||this.h1.C().experiments.Wv("html5_pseudogapless_shorts")&&Zu(q.getVideoData());this.status={status:0,error:null}};
  6984. DDg=function(d){var q,T,Y,e,U,b,J,F,N;return g.G(function(R){if(R.U==1){if(d.JF())return R.return(Promise.reject(Error(d.status.error||"disposed")));d.timeout.start();return g.B(R,d.l3,2)}q=d.G.WG();if(q.isEnded())return d.Kj("ended_in_finishTransition"),R.return(Promise.reject(Error(d.status.error||"")));if(!d.T||!$x(d.T))return d.Kj("next_mse_closed"),R.return(Promise.reject(Error(d.status.error||"")));if(d.U.Eg()!==d.T)return d.Kj("next_mse_mismatch"),R.return(Promise.reject(Error(d.status.error||
  6985. "")));T=ir(d);Y=T.Iy;e=T.vk;U=T.e3;d.G.Hf(!1,!0);b=udg(q,Y,U,!d.U.getVideoData().isAd());d.U.setMediaElement(b);(J=d.G.NI())&&d.U.Z1(J.TW,J.yu);d.B&&(d.policy.G||d.U.seekTo(d.U.getCurrentTime()+.001,{Zn:!0,hc:3,b$:"gapless_pseudo"}),b.play(),pZ());F=q.BF();F.cpn=d.G.getVideoData().clientPlaybackNonce;F.st=""+Y;F.et=""+U;d.U.oU("gapless",F);d.G.oU("gaplessTo",{cpn:d.U.getVideoData().clientPlaybackNonce});N=d.G.getPlayerType()===d.U.getPlayerType();d.G.a$(e,!0,!1,N,d.U.getVideoData().clientPlaybackNonce);
  6986. d.U.a$(d.U.getCurrentTime(),!0,!0,N,d.G.getVideoData().clientPlaybackNonce);d.U.Be();g.ML(function(){!d.U.getVideoData().UD&&d.U.getPlayerState().isOrWillBePlaying()&&d.U.eR()});
  6987. Ik(d,6);d.dispose();return R.return(Promise.resolve())})};
  6988. iQ2=function(d){if(d.U.getVideoData().j){var q=d.h1.C().N("html5_gapless_suspend_next_loader")&&d.S===1;d.U.uY(d.T,q,wCY(d));Ik(d,3);fH7(d);var T=z_N(d);q=T.gg;T=T.gy;q.subscribe("updateend",d.BV,d);T.subscribe("updateend",d.BV,d);d.BV(q);d.BV(T)}};
  6989. fH7=function(d){d.G.unsubscribe("internalvideodatachange",d.v1,d);d.U.unsubscribe("internalvideodatachange",d.v1,d);d.h1.C().N("html5_gapless_use_format_info_fix")&&(d.G.unsubscribe("internalvideoformatchange",d.v1,d),d.U.unsubscribe("internalvideoformatchange",d.v1,d));d.G.unsubscribe("mediasourceattached",d.v1,d);d.U.unsubscribe("statechange",d.tH,d)};
  6990. udg=function(d,q,T,Y){d=d.isView()?d.mediaElement:d;return new g.zj(d,q,T,Y)};
  6991. Ik=function(d,q){q<=d.status.status||(d.status={status:q,error:null},q===5&&d.l3.resolve())};
  6992. wCY=function(d){return d.h1.C().N("html5_gapless_no_clear_buffer_timeline")&&d.S===1&&tw(d.G.getVideoData())};
  6993. ir=function(d){var q=d.G.WG();q=q.isView()?q.start:0;var T=d.G.getVideoData().isLivePlayback?Infinity:d.G.Jq(!0);T=Math.min(d.yP/1E3,T)+q;var Y=d.B?100:0;d=T-d.U.tE()+Y;return{Xl:q,Iy:d,vk:T,e3:Infinity}};
  6994. z_N=function(d){return{gg:d.j.G.KC,gy:d.j.U.KC}};
  6995. mN=function(d){g.W.call(this);var q=this;this.app=d;this.X=this.U=this.G=null;this.B=!1;this.j=this.T=null;this.S=WCX(this.app.C());this.L=function(){g.ML(function(){IHY(q)})}};
  6996. mD1=function(d,q,T,Y,e){Y=Y===void 0?0:Y;e=e===void 0?0:e;d.MN()||Sw(d);d.T=new yQ;d.G=q;var U=T,b=e===0;b=b===void 0?!0:b;var J=d.app.Lf(),F=J.getVideoData().isLivePlayback?Infinity:J.Jq(!0)*1E3;U>F&&(U=F-200,d.B=!0);b&&J.getCurrentTime()>=U/1E3?d.L():(d.U=J,b&&(b=U,U=d.U,d.app.mZ.addEventListener(g.Sh("vqueued"),d.L),b=isFinite(b)||b/1E3>U.getDuration()?b:0x8000000000000,d.X=new g.Ij(b,0x8000000000000,{namespace:"vqueued"}),U.addCueRange(d.X)));b=Y/=1E3;U=q.getVideoData().G;Y&&U&&d.U&&(J=Y,F=0,
  6997. q.getVideoData().isLivePlayback&&(b=Math.min(T/1E3,d.U.Jq(!0)),F=Math.max(0,b-d.U.getCurrentTime()),J=Math.min(Y,q.Jq()+F)),b=LiD(U,J)||Y,b!==Y&&d.G.oU("qvaln",{st:Y,at:b,rm:F,ct:J}));q=b;Y=d.G;Y.getVideoData().t0=!0;Y.getVideoData().L=!0;Y.Z8(!0);U={};d.U&&(U=d.U.Rf(),b=d.U.getVideoData().clientPlaybackNonce,U={crt:(U*1E3).toFixed(),cpn:b});Y.oU("queued",U);q!==0&&Y.seekTo(q+.01,{Zn:!0,hc:3,b$:"videoqueuer_queued"});d.j=new CT6(d.S,d.app.Lf(),d.G,T,d.app,e);T=d.j;T.status.status!==Infinity&&(Ik(T,
  6998. 1),T.G.subscribe("internalvideodatachange",T.v1,T),T.U.subscribe("internalvideodatachange",T.v1,T),T.h1.C().N("html5_gapless_use_format_info_fix")&&(T.G.subscribe("internalvideoformatchange",T.v1,T),T.U.subscribe("internalvideoformatchange",T.v1,T)),T.G.subscribe("mediasourceattached",T.v1,T),T.U.subscribe("statechange",T.tH,T),T.G.subscribe("newelementrequired",T.Pn,T),T.v1());return d.T};
  6999. IHY=function(d){var q,T,Y,e,U,b,J;g.G(function(F){switch(F.U){case 1:if(d.JF()||!d.T||!d.G)return F.return();d.B&&d.app.Lf().Wx(!0,!1);q=null;if(!d.j){F.tF(2);break}g.jD(F,3);return g.B(F,DDg(d.j),5);case 5:g.ZX(F,2);break;case 3:q=T=g.nN(F);case 2:if(!d.G)return F.return();SZ6.GZ("vqsp",function(){d.app.D8(d.G)});
  7000. if(!d.G)return F.return();Y=d.G.WG();d.app.C().N("html5_gapless_seek_on_negative_time")&&Y&&Y.getCurrentTime()<-.01&&d.G.seekTo(0);SZ6.GZ("vqpv",function(){d.app.playVideo()});
  7001. q&&(d.G?(e=q?q.message:"forced",(U=d.U)==null||U.oU("gapfulfbk",{r:e}),d.G.rE(e)):(b=d.U)==null||b.oU("gapsp",{}));J=d.T;Sw(d);J&&J.resolve();return F.return(Promise.resolve())}})};
  7002. Sw=function(d,q){q=q===void 0?!1:q;if(d.U){if(d.X){var T=d.U;d.app.mZ.removeEventListener(g.Sh("vqueued"),d.L);T.removeCueRange(d.X)}d.U=null;d.X=null}d.j&&(d.j.status.status!==6&&(T=d.j,T.status.status!==Infinity&&T.S!==1&&T.Kj("Canceled")),d.j=null);d.T=null;d.G&&!q&&d.G!==d.app.UM()&&d.G!==d.app.Lf()&&d.G.dispose();d.G&&q&&d.G.B$();d.G=null;d.B=!1};
  7003. lH1=function(d){var q;return((q=d.j)==null?void 0:q.currentVideoDuration)||-1};
  7004. v6j=function(d,q,T){if(d.MN())return"qie";if(d.G==null||d.G.JF()||d.G.getVideoData()==null)return"qpd";if(q.videoId!==d.G.Sh())return"vinm";if(lH1(d)<=0)return"ivd";if(T!==1)return"upt";if((T=d.j)==null)d=void 0;else if(T.getStatus().status!==5)d="niss";else if(LC6(T.policy,T.G,T.U,T.yP)!=null)d="pge";else{q=z_N(T);d=q.gg;var Y=q.gy;q=g.Yv(T.h1.C().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var e=T.X+q;T.h1.C().experiments.Wv("html5_pseudogapless_shorts")&&(e=ir(T).Iy+q);T=oI(Y.Zm(),
  7005. e);d=oI(d.Zm(),e);d=!(q>0)||T&&d?null:"neb"}return d!=null?d:null};
  7006. o66=function(){g.YP.call(this);var d=this;this.fullscreen=0;this.T=this.j=this.pictureInPicture=this.G=this.U=this.inline=!1;this.S=function(){d.nz()};
  7007. YVj(this.S);this.X=this.getVisibilityState(this.pA(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Kx(),this.YM(),this.vE(),this.E6())};
  7008. bEX=function(d){return!(d.isMinimized()||d.isInline()||d.isBackground()||d.Kx()||d.YM()||d.vE()||d.E6())};
  7009. g.lr=function(d){g.W.call(this);this.Pv=d;this.videoData=this.playerState=null};
  7010. VW=function(d,q){g.W.call(this);var T=this;this.data=[];this.j=d||NaN;this.U=q||null;this.G=new g.f9(function(){vF(T);ok(T)});
  7011. g.C(this,this.G)};
  7012. BgI=function(d){vF(d);return d.data.map(function(q){return q.value})};
  7013. vF=function(d){var q=(0,g.cj)();d.data.forEach(function(T){T.expire<q&&da(d,T,!0)});
  7014. d.data=g.Zl(d.data,function(T){return!(T.expire<q)})};
  7015. da=function(d,q,T){T&&d.U&&d.U(q.value)};
  7016. ok=function(d){d.G.stop();var q=Infinity;for(var T=g.E(d.data),Y=T.next();!Y.done;Y=T.next())Y=Y.value,Y.expire<q&&(q=Y.expire);q&&isFinite(q)&&(q=Math.max(q-Date.now(),100),d.G.start(q))};
  7017. g.qU=function(d,q){g.W.call(this);var T=this;this.api=d;this.j={};this.Ig=null;this.X={};this.L=this.T=null;q=new VW(q,function(Y){Y!==T.dk({playerType:Y.getPlayerType()})&&Y.dispose()});
  7018. g.C(this,q);this.U=this.B=this.G=new g.lr(d.C());this.S=q};
  7019. Tr=function(d){var q=[{cpn:d.U.aQ()}];d.T&&q.push({cpn:d.T.aQ()});d.api.publish("playbackChange",{vG5:q})};
  7020. VUj=function(d){for(var q=g.E(Object.values(d.X)),T=q.next();!T.done;T=q.next())T.value.dispose();d.X={};d.T=null;d.L=null;Tr(d)};
  7021. Yi=function(d,q,T){d.X[q.aQ()]=q;d.T=q;T&&(d.L=q);Tr(d)};
  7022. eL1=function(d){var q=d.experiments,T=q.Wv.bind(q);drn=T("html5_use_async_stopVideo");qpQ=T("html5_pause_for_async_stopVideo");THX=T("html5_not_reset_media_source");T("html5_listen_for_audio_output_changed")&&(vPf=!0);gC=T("html5_not_reset_media_source");Yp6=T("html5_not_reset_media_source");UX=T("html5_retain_source_buffer_appends_for_debugging");jk1(T("web_watch_pip"));T("html5_mediastream_applies_timestamp_offset")&&(KP=!0);var Y=g.Yv(q,"html5_cobalt_override_quic");Y&&dCQ("QUIC",+(Y>0));d.uF()&&
  7023. TmI();Error.stackTraceLimit=50;var e=g.Yv(q,"html5_idle_rate_limit_ms");e&&Object.defineProperty(window,"requestIdleCallback",{value:function(U){return window.setTimeout(U,e)}});
  7024. Y_I(d.S);C87(T("html5_use_ump_request_slicer"));RHY(T("html5_record_now"));T("html5_disable_streaming_xhr")&&(QU=!1);T("html5_byterate_constraints")&&(Oo=!0);T("html5_use_non_active_broadcast_for_post_live")&&(y8=!0);T("html5_enable_encrypted_av1")&&(Le=!0);ovN(g.Yv(d.experiments,"html5_sticky_duration_mos"))};
  7025. Ur6=function(d,q){return d.slice(q.length).replace(/_[a-z]/g,function(T){return T.toUpperCase().replace("_","")}).replace("Dot",".")};
  7026. bDQ=function(d){var q={},T=Object.keys(d.experiments.flags);T=g.E(T);for(var Y=T.next();!Y.done;Y=T.next())if(Y=Y.value,Y.startsWith("cobalt_h5vcc"))if(Y.startsWith("cobalt_h5vcc_string")){var e=Ur6(Y,"cobalt_h5vcc_string");Y=Md(d.experiments,Y);e&&Y&&(q[e]=dCQ(e,Y))}else Y.startsWith("cobalt_h5vcc")&&(e=Ur6(Y,"cobalt_h5vcc"),Y=g.Yv(d.experiments,Y),e&&Y&&(q[e]=dCQ(e,Y)));return q};
  7027. JO6=function(d,q,T,Y){Y=Y===void 0?0:Y;g.Uc.call(this,T.I_());var e=this;this.Rd=d;this.videoData=q;this.duration=Y;this.endTime=this.startTime=0;this.G=new XQ_(function(U,b){return void e.oU(U,b)})};
  7028. XQ_=function(d){this.oU=d;this.G={}};
  7029. sv2=function(d,q,T){d.G[q]||(d.oU("huli-sdai-err",T),d.G[q]=!0)};
  7030. $rn=function(d){this.end=this.start=d};
  7031. g.ek=function(){this.G=new Map;this.j=new Map;this.U=new Map};
  7032. ga2=function(){var d=this;this.G=[];this.j=new Map;this.T=new Map;this.U=new Map;this.fC={lN:function(){return d.j},
  7033. R2D:function(){return d.T}}};
  7034. NHQ=function(d,q){g.mq(d.G,q,function(T,Y){return T.PG===Y.PG?T.durationMs-Y.durationMs:T.PG-Y.PG});
  7035. d.j.set(q.cpn,q);q.HG&&d.T.set(q.HG,q);q.UP&&Fmj(d,q.UP,q)};
  7036. RLN=function(d,q){q=g.Dn(d.G,{lC:q},function(T,Y){return T.lC-Y.lC});
  7037. return q>=0?d.G[q]:null};
  7038. xrN=function(d,q){var T=d.G.indexOf(q);T>=0&&d.G.splice(T,1);d.j.delete(q.cpn);q.HG&&d.T.delete(q.HG)};
  7039. Fmj=function(d,q,T){var Y=d.U.get(q);Y?(Y.push(T),g.iQ(Y,function(e,U){return e.PG-U.PG})):d.U.set(q,[T])};
  7040. g.Ue=function(d,q,T,Y){g.W.call(this);var e=this;this.api=d;this.Pv=q;this.playback=T;this.app=Y;this.UD=new g.ek;this.U=new Map;this.G=new ga2;this.z2=new Map;this.rO=null;this.kx=NaN;this.AF=this.Bv=null;this.Fw=new g.f9(function(){yOg(e,e.kx,e.Bv||void 0)});
  7041. this.events=new g.aI(this);this.RU=15E3;this.L=new g.f9(function(){e.B=!0;e.playback.uH(e.RU);hLg(e);if(e.playback.getVideoData().y5()){var U;e.oN({togab:(U=e.X)==null?void 0:U.identifier})}e.g9(!1)},this.RU);
  7042. this.B=!1;this.S=new Map;this.dO=[];this.X=null;this.xx=new Set;this.K=[];this.wO=[];this.vF=[];this.Qp=[];this.CZ=0;this.lr=!1;this.q5=new Set;this.Ln=new Set;this.ev=new Set;this.qk=new Set;this.lF=this.Yk=0;this.q0=this.fn=!1;this.Ae=this.j="";this.yv=null;this.logger=new g.cb("dai");this.fC={Ht5:function(){return e.U},
  7043. lN:function(){return e.G.fC.lN()},
  7044. R1v:function(){return e.j},
  7045. Tar:function(U){e.onCueRangeEnter(e.U.get(U))},
  7046. p$5:function(U){e.onCueRangeExit(e.U.get(U))},
  7047. BJf:function(U,b){e.U.set(U,b)},
  7048. OwO:function(U){e.Ae=U},
  7049. D0:function(){return e.D0()},
  7050. JWk:function(U){return e.G.U.get(U)},
  7051. Jsv:function(){return e.yv},
  7052. d1x:function(){return e.G.G}};
  7053. this.playback.getPlayerType();this.playback.Go(this);this.aU=this.Pv.uF();g.C(this,this.Fw);g.C(this,this.events);g.C(this,this.L);this.events.W(this.api,g.Sh("serverstitchedcuerange"),this.onCueRangeEnter);this.events.W(this.api,g.lG("serverstitchedcuerange"),this.onCueRangeExit);Yi(this.app.v3(),this.playback,!1)};
  7054. EaN=function(d,q,T,Y,e,U,b,J,F){if(d.Pv.N("html5_ignore_ads_after_noadresponse")&&F&&d.xx.has(F))b6(d,{reason:"addafternoad",cueid:F});else{F=HD1(d,U,U+e);d.B&&d.oN({adaftto:1});T||d.oN({missadcon:1,enter:U,len:e,aid:J});d.T&&!d.T.u_&&(d.T.u_=J);d.q0&&d.oN({adfbk:1,enter:U,len:e,aid:J});var N=d.playback;U===b&&!e&&d.Pv.N("html5_allow_zero_duration_ads_on_timeline")&&d.oN({attl0d:1});U>b&&b6(d,{reason:"enterTime_greater_than_return",PG:U,lC:b});var R=N.BG()*1E3;U<R&&b6(d,{reason:"enterTime_less_than_minSeekableTime",
  7055. enterMs:U,minSkMs:R},!1);N=N.getDuration()*1E3;b>N&&b6(d,{reason:"parent_return_greater_than_content_duration",lC:b,uiv:N});(N=RLN(d.G,U))&&N.lC>U&&QvY(d,q.video_id||"",U,b,N);if(F&&N)for(R=0;R<d.K.length;R++){if(d.K[R].identifier===F.identifier){d.K.splice(R,1);break}}else if(F){d.oN({rejectAttl:1});J&&!D7(d.Qp,function(x){return x===J})&&(d.oN({rejectAdBreakAttl:J},!0),d.Qp.push(J));
  7056. Xh(d);return}F="ss_childplayback_"+McQ++;q.cpn||(q.cpn=g.RC(16));R=q.cpn;q=new g.yM(d.Pv,q);q.HG=F;NHQ(d.G,{HG:F,playerType:Y,durationMs:e,PG:U,lC:b,cpn:R,videoData:q,errorCount:0,ssdaiAdsConfig:T,UP:J?J:N?N.UP:R});cO6(d,q,e);d.oN({attlDone:b-U,acpn:R,et:U,prt:b});d.L.isActive()&&(d.B=!1,d.L.stop(),hLg(d),d.g9(!0));return q}};
  7057. jvn=function(d,q,T){return{ssvc:q,cpn:(T==null?void 0:T.cpn)||"",vid:(T==null?void 0:T.videoData.videoId)||"",ct:(d.playback.getCurrentTime()||0).toFixed(3),cmt:(d.playback.tE()||0).toFixed(3)}};
  7058. cO6=function(d,q,T){var Y;(Y=d.app.v3().X[q.clientPlaybackNonce]||null)==null||Y.dispose();q=new JO6(d,q,d.playback,T/1E3);d.z2.set(q.aQ(),q);d.app.v3().X[q.aQ()]=q};
  7059. aE6=function(d,q){var T=d.app;R6(T.GX())&&T.MC.j[2]&&d.logger.G(360717806,"SSTM lingering playback");d.api.VM();d.api.publish("serverstitchedvideochange",q.HG,q.ou)};
  7060. pQf=function(d,q){return(d=AOn(d,q*1E3))?q-d.start/1E3:q};
  7061. OD_=function(d,q){return(d=ZDn(d,q*1E3))?d.durationMs/1E3:0};
  7062. naf=function(d){if(d.q0)return!1;var q=void 0;d.Ae&&(q=d.G.dk({cpn:d.Ae}));return d.playback.getVideoData().y5()?!!q&&!q.XD:!!q};
  7063. rO1=function(d,q){if(!d.q0){var T=void 0;d.Ae&&(T=d.G.dk({cpn:d.Ae}));if(!T){T=ZDn(d,q*1E3);var Y,e=(Y=T)==null?void 0:Y.cpn;d.Ae?e&&d.Ae!==e&&d.oN({cpcnm:e+"_"+d.Ae,cmt:q.toFixed(3)}):d.oN({cpcna:e,cmt:q.toFixed(3)})}var U;return(U=T)==null?void 0:U.videoData}};
  7064. Ja=function(d,q,T){T=T===void 0?0:T;var Y=g.Dn(d.G.G,{PG:(q+T)*1E3},function(J,F){return J.PG-F.PG});
  7065. Y=Y<0?(Y+2)*-1:Y;if(Y>=0)for(var e=q*1E3,U=Y;U<=Y+1&&U<d.G.G.length;U++){var b=d.G.G[U];if(e>=b.PG-T*1E3&&e<=b.lC+T*1E3)return{vK:b,bI:q}}return{vK:void 0,bI:q}};
  7066. ZDn=function(d,q){var T="";(q=AOn(d,q))&&(T=q.getId());return T?d.G.dk({cpn:T}):void 0};
  7067. AOn=function(d,q){if(d.Ae){var T=d.U.get(d.Ae);if(T&&T.start-200<=q&&T.end+200>=q)return T}d=g.E(d.U.values());for(T=d.next();!T.done;T=d.next())if(T=T.value,T.start<=q&&T.end>=q)return T};
  7068. yOg=function(d,q,T){var Y=d.AF||d.app.Lf().getPlayerState();se(d,!0);d.playback.seekTo(q,T);d=d.app.Lf();q=d.getPlayerState();Y.isOrWillBePlaying()&&!q.isOrWillBePlaying()?d.playVideo():Y.isPaused()&&!q.isPaused()&&d.pauseVideo()};
  7069. se=function(d,q){d.kx=NaN;d.Bv=null;d.Fw.stop();d.rO&&q&&d.rO.e_();d.AF=null;d.rO=null};
  7070. BH1=function(d){var q=q===void 0?-1:q;var T=T===void 0?Infinity:T;for(var Y=[],e=g.E(d.G.G),U=e.next();!U.done;U=e.next())U=U.value,(U.PG<q||U.lC>T)&&Y.push(U);d.G.G=Y;Y=g.E(d.U.values());for(e=Y.next();!e.done;e=Y.next())e=e.value,e.start>=q&&e.end<=T&&(d.playback.removeCueRange(e),d.U.delete(e.getId()),d.oN({rmAdCR:1}));Y=Ja(d,q/1E3);q=Y.vK;Y=Y.bI;q&&(Y=Y*1E3-q.PG,tcY(d,q,Y,q.PG+Y),Y=d.U.get(q.cpn))&&(Y.start=q.PG,Y.end=q.PG+q.durationMs);if(q=Ja(d,T/1E3).vK){var b;Y="playback_timelinePlaybackId_"+
  7071. q.HG+"_video_id_"+((b=q.videoData)==null?void 0:b.videoId)+"_durationMs_"+q.durationMs+"_enterTimeMs_"+q.PG+"_parentReturnTimeMs_"+q.lC;d.EP("Invalid_clearEndTimeMs_"+T+"_that_falls_during_"+Y+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
  7072. KmX=function(d){d.UD.clearAll();d.U.clear();d.G.clear();d.S.clear();d.dO=[];d.X=null;d.xx.clear();d.K=[];d.wO=[];d.vF=[];d.Qp=[];d.q5.clear();d.Ln.clear();d.ev.clear();d.qk.clear();d.B=!1;d.CZ=0;d.lr=!1;d.Yk=0;d.lF=0;d.fn=!1;d.q0=!1;d.j="";VUj(d.app.v3());Yi(d.app.v3(),d.playback,!1);d.z2.clear();d.L.isActive()&&Xh(d)};
  7073. tcY=function(d,q,T,Y){q.durationMs=T;q.lC=Y;(Y=d.z2.get(q.cpn))?Y.lV(T/1E3):d.oN({nop_d:q.cpn})};
  7074. kvn=function(d,q,T,Y,e,U){if(!d.q0)if(g.GvD(d,T))d.oN({gdu:"undec",seg:T,itag:e});else if(q=Lmn(d,q,T,Y,U),!(d.playback.getVideoData().y5()&&(q==null?0:q.XD)))return q};
  7075. Lmn=function(d,q,T,Y,e){var U=d.S.get(T);if(!U){if(U=Phf(d,q))return U;q=d.V9(T-1,Y!=null?Y:2);if(e)return d.oN({misscue:e,sq:T,type:Y,prevsstate:q==null?void 0:q.lZ,prevrecord:d.S.has(T-1)}),d.S.get(T-1);if((q==null?void 0:q.lZ)===2)return d.oN({adnf:1,sq:T,type:Y,prevrecord:d.S.has(T-1)}),d.S.get(T-1)}return U};
  7076. Phf=function(d,q){q+=d.il();if(d.playback.getVideoData().y5())a:{var T=1;T=T===void 0?0:T;var Y=q*1E3;d=g.E(d.G.G);for(var e=d.next();!e.done;e=d.next()){e=e.value;var U=e.ou?e.ou*1E3:e.PG;if(Y>=e.PG-T*1E3&&Y<=U+e.durationMs+T*1E3){Y={vK:e,bI:q};break a}}Y={vK:void 0,bI:q}}else Y=Ja(d,q),((T=Y)==null?0:T.vK)||(Y=Ja(d,q,1));var b;return(b=Y)==null?void 0:b.vK};
  7077. Wmj=function(d,q){q=q===void 0?"":q;var T=Bx(q)||void 0;if(!q||!T){var Y;d.oN({adcfg:(Y=q)==null?void 0:Y.length,dcfg:T==null?void 0:T.length})}return T};
  7078. ChX=function(d){for(var q=g.E(d.U.values()),T=q.next();!T.done;T=q.next())d.playback.removeCueRange(T.value);d.U.clear();d.UD.clearAll()};
  7079. u9D=function(d,q,T,Y,e,U,b){if(q&&T){d.Ae=T.cpn;d.FZ(T.cpn,T.PG/1E3);aE6(d,T);var J=jvn(d,"a2a",T);d.oN(J);d.Yk++;d.playback.JP(q,T,Y||0,e||0,!!U,!!b)}else d.oN({misspbkonadtrans:1,enter:(T==null?void 0:T.cpn)||"",exit:(q==null?void 0:q.cpn)||"",seek:U,skip:b})};
  7080. $i=function(d,q,T){if(T===void 0||!T){T=g.E(d.dO);for(var Y=T.next();!Y.done;Y=T.next()){Y=Y.value;if(q>=Y.start&&q<=Y.end)return;if(q===Y.end+1){Y.end+=1;return}}d.dO.push(new $rn(q))}};
  7081. g.GvD=function(d,q){d=g.E(d.dO);for(var T=d.next();!T.done;T=d.next())if(T=T.value,q>=T.start&&q<=T.end)return!0;return!1};
  7082. Drg=function(d,q,T){var Y;if(Y=d.playback.getVideoData().y5()||d.Pv.N("html5_ssdai_extent_last_unfinished_ad_cue_range"))Y=(Y=d.G.dk({cpn:q}))&&Y.UP?(d=d.G.U.get(Y==null?void 0:Y.UP))&&d.slice(-1)[0].cpn===q:!1;return Y&&T===2?1E3:0};
  7083. QvY=function(d,q,T,Y,e){var U;q={reason:"overlapping_playbacks",I8v:q,PG:T,lC:Y,tNv:e.HG,z2g:((U=e.videoData)==null?void 0:U.videoId)||"",yWg:e.durationMs,QsZ:e.PG,MNk:e.lC};b6(d,q)};
  7084. b6=function(d,q,T){d.playback.dn(q,T)};
  7085. wQI=function(d,q){var T=[];d=d.G.U.get(q);if(!d)return[];d=g.E(d);for(q=d.next();!q.done;q=d.next())q=q.value,q.cpn&&T.push(q.cpn);return T};
  7086. fEj=function(d,q,T){var Y=0;d=d.G.U.get(T);if(!d)return-1;d=g.E(d);for(T=d.next();!T.done;T=d.next()){if(T.value.cpn===q)return Y;Y++}return-1};
  7087. zLg=function(d,q){var T=0;d=d.G.U.get(q);if(!d)return 0;d=g.E(d);for(q=d.next();!q.done;q=d.next())q=q.value,q.durationMs!==0&&q.lC!==q.PG&&T++;return T};
  7088. iDj=function(d,q,T){var Y=!1;if(T=d.G.U.get(T)){T=g.E(T);for(var e=T.next();!e.done;e=T.next())e=e.value,e.durationMs!==0&&e.lC!==e.PG&&(e=e.cpn,q===e&&(Y=!0),Y&&!d.Ln.has(e)&&(d.oN({decoratedAd:e}),d.Ln.add(e)))}};
  7089. hLg=function(d){d.aU&&d.oN({adf:"0_"+((new Date).getTime()/1E3-d.lF)+"_isTimeout_"+d.B})};
  7090. HD1=function(d,q,T){if(d.K.length)for(var Y=g.E(d.K),e=Y.next(),U={};!e.done;U={Hs:void 0},e=Y.next()){U.Hs=e.value;e=U.Hs.startSecs*1E3;var b=U.Hs.sS*1E3+e;if(q>e&&q<b||T>e&&T<b)return D7(d.vF,function(J){return function(F){return F.identifier===J.Hs.identifier}}(U))||(d.oN({adskip:q}),d.vF.push(U.Hs)),U.Hs}};
  7091. Xh=function(d){d.B=!1;d.L.isActive()&&hLg(d);d.L.stop();d.g9(!1)};
  7092. Spf=function(d,q){d.j||d.lr||Fh(d,d.Ae);var T=q.Y8,Y=q.z6;if(Y.cpn===d.Ae)d.oN({igtranssame:1,enter:Y.cpn,exit:T.cpn});else{var e=d.lr,U=!!d.j;d.j="";var b=q.p7,J=T.playerType===2?T.PG/1E3+T.videoData.ST:d.D0().videoData.ST;d.api.N("html5_ssdai_enable_media_end_cue_range")&&(U||e||T.playerType!==2?(e||U)&&d.oN({mecr:0,seek:e,skip:U}):d.api.lT(T.cpn));if(T.playerType===2&&Y.playerType===2)U?d.oN({igtransskip:1,enter:Y.cpn,exit:T.cpn,seek:e,skip:d.j}):u9D(d,T,Y,J,b,e,U);else{d.Ae=Y.cpn;var F=T.cpn;
  7093. if(F!==d.playback.aQ()){var N=d.z2.get(F);N?N.endTime=b:d.oN({nop_e:F})}d.FZ(Y.cpn,b);q=q.Guv;T.playerType===1&&Y.playerType===2?(d.CZ=0,aE6(d,Y),F=jvn(d,"c2a",Y),d.oN(F),d.Yk++):T.playerType===2&&Y.playerType===1&&(d.api.publish("serverstitchedvideochange"),F=jvn(d,"a2c"),d.oN(F),d.Yk=0,d.CZ=J,IEn(d,T.UP));d.playback.JP(T,Y,J,b,e,U,q)}mrf(d)}};
  7094. lE7=function(d,q,T,Y){if(d.Pv.N("html5_ssdai_log_ssevt_in_loader")||d.Pv.N("html5_ssdai_log_ssevt_in_loader_200ms")||d.Pv.N("html5_ssdai_log_ssevt_in_loader_timers")||d.Pv.N("html5_ssdai_log_ssevt_in_loader_cuerange"))Y=d.lr?0:Math.round((Y-T)*1E3),d.playback.oU("ssevt",{tag:"sstme",ad:q!==d.playback.aQ(),cpn:q,st:(T-d.playback.il()).toFixed(3),late:Y})};
  7095. va2=function(d,q,T){d.playback.U6();d.playback.seekTo(q,T);d.playback.playVideo()};
  7096. oaN=function(d,q,T,Y){q={Y8:q,z6:T,p7:d.playback.getCurrentTime(),Guv:Y};Spf(d,q)};
  7097. IEn=function(d,q){if(d.playback.getVideoData().y5()){var T=d.G.U.get(q);if(T){T=g.E(T);for(var Y=T.next();!Y.done;Y=T.next()){var e=d;Y=Y.value;var U=e.U.get(Y.cpn);e.U.delete(Y.cpn);U&&e.playback.removeCueRange(U);xrN(e.G,Y)}d.S.clear();d=d.G;var b;T=(b=d.U.get(q))!=null?b:[];b=g.E(T);for(T=b.next();!T.done;T=b.next())xrN(d,T.value);d.U.delete(q)}}};
  7098. Fh=function(d,q){var T=q||d.Ae,Y=d.G.dk({cpn:T});if(Y){q=Y.videoData;var e,U;T=Y.ou||((U=(e=d.U.get(T))==null?void 0:e.start)!=null?U:0)/1E3;d=d.playback.getCurrentTime()-T;q.ST=d>0?d:0}else d.D0().videoData.ST=d.playback.getCurrentTime()};
  7099. mrf=function(d){d.qk.add(d.j);d.j="";d.lr=!1};
  7100. dT_=function(d,q,T,Y){g.W.call(this);var e=this;this.api=d;this.Pv=q;this.G=T;this.app=Y;this.S=new Map;this.U=[];this.j=this.L=null;this.lr=NaN;this.X=this.T=this.K=null;this.B=new g.f9(function(){VcX(e,e.lr,e.K||void 0)});
  7101. this.UD=[];this.yv=new g.f9(function(){var U=e.UD.pop();if(U){var b=U.HG,J=U.playerVars;U=U.playerType;J&&(J.prefer_gapless=!0,e.api.preloadVideoByPlayerVars(J,U,NaN,"",b),e.UD.length&&g.zh(e.yv,4500))}});
  7102. this.events=new g.aI(this);this.fC={nyD:function(){return e.U}};
  7103. this.G.getPlayerType();g.C(this,this.B);g.C(this,this.yv);g.C(this,this.events);this.events.W(this.api,g.Sh("childplayback"),this.onCueRangeEnter);this.events.W(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.W(this.api,"presentingplayerstatechange",this.h0)};
  7104. eCD=function(d,q,T,Y,e,U){var b=q.cpn,J=q.docid||q.video_id||q.videoId||q.id,F=d.G;U=U===void 0?e+Y:U;if(e>U)return NU(d,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+U.toFixed(3),b,J),"";var N=F.BG()*1E3;if(e<N)return NU(d,"enterBeforeMinSeekable enterTimeMs="+e+" is less than parentMinSeekableTimeMs="+N,b,J),"";N=F.getDuration()*1E3;if(U>N)return F="returnAfterDuration parentReturnTimeMs="+U.toFixed(3)+" is greater than parentDurationMs="+N+". And timestampOffset in seconds is "+
  7105. F.mz(),NU(d,F,b,J),"";N=null;for(var R=g.E(d.U),x=R.next();!x.done;x=R.next()){x=x.value;if(e>=x.PG&&e<x.lC)return NU(d,"overlappingEnter",b,J),"";if(U<=x.lC&&U>x.PG)return NU(d,"overlappingReturn",b,J),"";if(U===x.PG)return NU(d,"outOfOrder",b,J),"";e===x.lC&&(N=x)}b="cs_childplayback_"+ql1++;J={SF:RU(Y,!0),yP:Infinity,target:null};var y={HG:b,playerVars:q,playerType:T,durationMs:Y,PG:e,lC:U,Jv:J};d.U=d.U.concat(y).sort(function(a,p){return a.PG-p.PG});
  7106. N?ToY(d,N,{SF:RU(N.durationMs,!0),yP:N.Jv.yP,target:y}):(q={SF:RU(e,!1),yP:e,target:y},d.S.set(q.SF,q),F.addCueRange(q.SF));q=!0;if(d.G===d.app.Lf()&&(F=F.getCurrentTime()*1E3,F>=y.PG&&F<y.lC)){var h=d.app.Lf().getPlayerState(),H=F-y.PG;x1(function(){Yl6(d,y,H/1E3,{},h)});
  7107. q=!1}q&&(d.UD.unshift(y),g.zh(d.yv,0));return b};
  7108. RU=function(d,q){return new g.Ij(Math.max(0,d-5E3),q?0x8000000000000:d-1,{namespace:"childplayback",priority:9})};
  7109. UT6=function(d,q,T,Y){d.j=Y;d.api.sH(d.G,T,q)};
  7110. bxj=function(d,q,T,Y){d.j=Y;Y=q.HG;var e=q.playerVars,U=q.playerType;d.L=q;e&&d.api.enqueueVideoByPlayerVars(e,U,T,Y)};
  7111. ToY=function(d,q,T){var Y=q.Jv;q.Jv=T;xi(d,q)&&(T=d.app.Lf(),Y.SF===d.j&&y3(d),T.removeCueRange(Y.SF),T.addCueRange(q.Jv.SF))};
  7112. y3=function(d){d.L=null;d.j=null;d.api.MN()||d.api.clearQueue()};
  7113. Xfj=function(d,q){xi(d,q)||NU(d,"childPlaybackIsNotPresenting");return q.lC===q.PG+q.durationMs?q.PG+d.app.Lf().getCurrentTime()*1E3:q.lC};
  7114. JhI=function(d,q){var T=0;d=g.E(d.U);for(var Y=d.next();!Y.done;Y=d.next()){Y=Y.value;var e=Y.PG/1E3+T,U=e+Y.durationMs/1E3;if(e>q)break;if(U>q)return{vK:Y,bI:q-e};T=U-Y.lC/1E3}return{vK:null,bI:q-T}};
  7115. VcX=function(d,q,T){T=T===void 0?{}:T;var Y=d.X||d.app.Lf().getPlayerState();ha(d,!0);q=isFinite(q)?q:d.G.d4();var e=JhI(d,q);q=e.bI;var U=(e=e.vK)&&!xi(d,e)||!e&&d.G!==d.app.Lf(),b=q*1E3;b=d.j&&d.j.start<=b&&b<=d.j.end;!U&&b||y3(d);e?Yl6(d,e,q,T,Y):sGY(d,q,T,Y)};
  7116. sGY=function(d,q,T,Y){var e=d.G;e!==d.app.Lf()&&d.app.xI();e.seekTo(q,Object.assign({},{b$:"application_timelinemanager"},T));$T7(d,Y)};
  7117. Yl6=function(d,q,T,Y,e){var U=xi(d,q);if(!U){q.playerVars.prefer_gapless=!0;var b=new g.yM(d.Pv,q.playerVars);b.HG=q.HG;d.api.ym(b,q.playerType)}b=d.app.Lf();U||b.addCueRange(q.Jv.SF);b.seekTo(T,Object.assign({},{b$:"application_timelinemanager"},Y));$T7(d,e)};
  7118. $T7=function(d,q){d=d.app.Lf();var T=d.getPlayerState();q.isOrWillBePlaying()&&!T.isOrWillBePlaying()?d.playVideo():q.isPaused()&&!T.isPaused()&&d.pauseVideo()};
  7119. ha=function(d,q){d.lr=NaN;d.K=null;d.B.stop();d.T&&q&&d.T.e_();d.X=null;d.T=null};
  7120. xi=function(d,q){d=d.app.Lf();return!!d&&d.getVideoData().HG===q.HG};
  7121. gR7=function(d){var q=d.U.find(function(e){return xi(d,e)});
  7122. if(q){var T=d.app.Lf();y3(d);var Y=new g.EX(8);q=Xfj(d,q)/1E3;sGY(d,q,{},Y);T.oU("forceParentTransition",{childPlayback:1});d.G.oU("forceParentTransition",{parentPlayback:1})}};
  7123. NoQ=function(d,q,T){q=q===void 0?-1:q;T=T===void 0?Infinity:T;for(var Y=q,e=T,U=g.E(d.S),b=U.next();!b.done;b=U.next()){var J=g.E(b.value);b=J.next().value;J=J.next().value;J.yP>=Y&&J.target&&J.target.lC<=e&&(d.G.removeCueRange(b),d.S.delete(b))}Y=q;e=T;U=[];b=g.E(d.U);for(J=b.next();!J.done;J=b.next())if(J=J.value,J.PG>=Y&&J.lC<=e){var F=d;F.L===J&&y3(F);xi(F,J)&&F.app.xI()}else U.push(J);d.U=U;Y=JhI(d,q/1E3);q=Y.vK;Y=Y.bI;q&&(Y*=1E3,FwD(d,q,Y,q.lC===q.PG+q.durationMs?q.PG+Y:q.lC));(q=JhI(d,T/1E3).vK)&&
  7124. NU(d,"Invalid clearEndTimeMs="+T+" that falls during playback={timelinePlaybackId="+(q.HG+" video_id="+q.playerVars.video_id+" durationMs="+q.durationMs+" enterTimeMs="+q.PG+" parentReturnTimeMs="+q.lC+"}.Child playbacks can only have duration updated not their start."))};
  7125. FwD=function(d,q,T,Y){q.durationMs=T;q.lC=Y;Y={SF:RU(T,!0),yP:T,target:null};ToY(d,q,Y);xi(d,q)&&d.app.Lf().getCurrentTime()*1E3>T&&(q=Xfj(d,q)/1E3,T=d.app.Lf().getPlayerState(),sGY(d,q,{},T))};
  7126. NU=function(d,q,T,Y){d.G.oU("timelineerror",{e:q,cpn:T?T:void 0,videoId:Y?Y:void 0})};
  7127. xTI=function(d){d&&d!=="web"&&RCD.includes(d)};
  7128. H1=function(){g.W.call(this);this.G=new VW(5,null);g.C(this,this.G);this.U=new VW(15,null);g.C(this,this.U)};
  7129. ffD=function(d,q){return q?!!d.G.get(q):!1};
  7130. yhY=function(d,q){d.dataset.version=q};
  7131. QGg=function(d){g.f.call(this,{Y:"div",hF:["html5-video-player"],Z:{tabindex:d.C().disableOrganicUi?"":"-1",id:d.webPlayerContextConfig.rootElementId},V:[{Y:"div",D:g.Eo.VIDEO_CONTAINER,Z:{"data-layer":"0"}}]});var q=this;this.app=d;this.t6=this.Qv(g.Eo.VIDEO_CONTAINER);this.iY=new g.WB(0,0,0,0);this.Cn=null;this.z8=new g.WB(0,0,0,0);this.hD=this.ek=this.Eb=NaN;this.aR=this.Qc=this.Cg=this.wu=!1;this.Lu=NaN;this.yB=!1;this.aE=null;this.UL=function(){q.element.focus({preventScroll:!0})};
  7132. this.ZI=function(){q.app.mZ.publish("playerUnderlayVisibilityChange","visible");q.Cn.classList.remove(g.Eo.VIDEO_CONTAINER_TRANSITIONING);q.Cn.removeEventListener(tM,q.ZI);q.Cn.removeEventListener("transitioncancel",q.ZI)};
  7133. this.rg=this.po=!1;var T=this.element.addEventListener,Y=this.element.removeEventListener;this.addEventListener=function(U,b,J){T.apply(q.element,[U,b,J])};
  7134. this.removeEventListener=function(U,b,J){Y.apply(q.element,[U,b,J])};
  7135. var e=d.C();e.transparentBackground&&this.iG("ytp-transparent");e.controlsType==="0"&&this.iG("ytp-hide-controls");g.d9(this.element,"ytp-exp-bottom-control-flexbox");g.d9(this.element,"ytp-modern-caption");e.N("enable_new_paid_product_placement")&&!g.an(e)&&g.d9(this.element,"ytp-exp-ppp-update");e.N("html5_enable_ssap")&&g.d9(this.element,"ytp-ssap");g.d9(this.element,"ytp-livebadge-color");if(e.N("delhi_modern_web_player"))switch(g.d9(this.element,"ytp-delhi-modern"),e.N("delhi_modern_web_player_icons")&&
  7136. g.d9(this.element,"ytp-delhi-modern-icons"),Md(e.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.d9(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.d9(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.d9(this.element,"ytp-delhi-modern-with-exclusion")}yhY(this.element,hC_(d));this.Ww=!1;this.lE=new g.zP(NaN,NaN);HxI(this);this.W(d.mZ,"onMutedAutoplayChange",this.onMutedAutoplayChange);d=g.Yv(e.experiments,"html5_android_mweb_resize_delay");
  7137. d>0&&(this.RS=new g.f9(function(){return void q.resize()},d),g.C(this,this.RS))};
  7138. HxI=function(d){function q(b){d.Cn&&Q3(d);MU(d)!==d.yB&&d.resize();d.app.C().N("web_enable_smart_zoom")&&d.Cu&&(b.state.isPaused()?d.Cu.pause():g.gs(b,8)&&d.Cu.playState==="paused"&&d.Cu.play())}
  7139. function T(b,J){d.qF(b,J)}
  7140. function Y(b){b.getVideoData()&&d.updateVideoData(b.getVideoData())}
  7141. function e(){d.z8=new g.WB(0,0,0,0);d.iY=new g.WB(0,0,0,0)}
  7142. var U=d.app.mZ;U.addEventListener("initializingmode",e);U.addEventListener("videoplayerreset",Y);U.addEventListener("videodatachange",T);U.addEventListener("presentingplayerstatechange",q);d.addOnDisposeCallback(function(){U.removeEventListener("initializingmode",e);U.removeEventListener("videoplayerreset",Y);U.removeEventListener("videodatachange",T);U.removeEventListener("presentingplayerstatechange",q)})};
  7143. chY=function(d){var q=d.app.Lf();if(q=q?q.getVideoData():null){if(g.VM(q)||g.dm(q)||g.qC(q))return 16/9;if(pt(q)&&q.j.G)return d=q.j.videoInfos[0].video,M3_(d.width,d.height)}return(d=d.Cn)?M3_(d.videoWidth,d.videoHeight):16/9};
  7144. ERj=function(d,q,T,Y){var e=T,U=M3_(q.width,q.height);d.wu?e=T<U?Infinity:0:isNaN(d.hD)?isNaN(d.ek)||(e=d.ek):e=d.hD;isFinite(e)||(e=Math.max(T,U));d=e>U?{width:q.width,height:q.width/e,aspectRatio:e}:e<U?{width:q.height*e,height:q.height,aspectRatio:e}:{width:q.width,height:q.height,aspectRatio:U};Y||isNaN(T)||(T>e?d.width=d.height*T:T<e&&(d.height=d.width/T),d.aspectRatio=T);return d};
  7145. M3_=function(d,q){return Math.abs(jGg*q-d)<1||Math.abs(jGg/d-q)<1?jGg:d/q};
  7146. MU=function(d){if(d.app.getAppState()===1)return!1;if(d.app.getAppState()===6)return!0;var q=d.app.Lf();if(!q||q.S8())return!1;d=d.app.mZ.getPlayerStateObject();q=!g.I(d,2)||q&&q.getVideoData().L;var T=g.I(d,1024);return d&&q&&!T&&!d.isCued()};
  7147. Q3=function(d){var q=d.app.C().controlsType==="3"&&!d.aR&&MU(d)&&!d.app.BE||!1;d.Cn.controls=q;d.Cn.tabIndex=q?0:-1;d.app.C().T&&(d.Cn.ariaHidden=q||d.app.C().N("video_element_aria_hidden_ks")?"false":"true");q?d.Cn.removeEventListener("focus",d.UL):d.Cn.addEventListener("focus",d.UL)};
  7148. a1D=function(d){var q=d.yS(),T=1,Y=!1,e=ERj(d,q,d.getVideoAspectRatio()),U=d.app.C(),b=U.N("enable_desktop_player_underlay"),J=a_f(),F=g.Yv(U.experiments,"player_underlay_min_player_width");F=b&&d.Cg&&d.getPlayerSize().width>F;if(MU(d)){var N=chY(d);var R=isNaN(N)||g.DP||Ro&&g.F8||F;uR&&!g.WZ(601)?N=e.aspectRatio:R=R||U.controlsType==="3";R?F?(R=U.N("place_shrunken_video_on_left_of_player")?16:d.getPlayerSize().width-q.width-16,N=Math.max((d.getPlayerSize().height-q.height)/2,0),R=new g.WB(R,N,q.width,
  7149. q.height),d.Cn.style.setProperty("border-radius","12px")):R=new g.WB(0,0,q.width,q.height):(T=e.aspectRatio/N,R=new g.WB((q.width-e.width/T)/2,(q.height-e.height)/2,e.width/T,e.height),T===1&&g.F8&&(N=R.width-q.height*N,N>0&&(R.width+=N,R.height+=N)));g.ep(d.element,"ytp-fit-cover-video",Math.max(R.width-e.width,R.height-e.height)<1);if(J||d.Ww)d.Cn.style.display="";d.yB=!0}else{R=-q.height;uR?R*=window.devicePixelRatio:g.AJ&&(R-=window.screen.height);R=new g.WB(0,R,q.width,q.height);if(J||d.Ww)d.Cn.style.display=
  7150. "none";d.yB=!1}CT(d.z8,R)||(d.z8=R,g.XW(U)?(d.Cn.style.setProperty("width",R.width+"px","important"),d.Cn.style.setProperty("height",R.height+"px","important")):g.or(d.Cn,R.getSize()),Y=new g.wt(R.left,R.top),g.mZ(d.Cn,Math.round(Y.x),Math.round(Y.y)),Y=!0);q=new g.WB((q.width-e.width)/2,(q.height-e.height)/2,e.width,e.height);CT(d.iY,q)||(d.iY=q,Y=!0);g.Dv(d.Cn,"transform",T===1?"":"scaleX("+T+")");b&&F!==d.Qc&&(F&&(d.Cn.addEventListener(tM,d.ZI),d.Cn.addEventListener("transitioncancel",d.ZI),d.Cn.classList.add(g.Eo.VIDEO_CONTAINER_TRANSITIONING)),
  7151. d.Qc=F,d.app.mZ.publish("playerUnderlayVisibilityChange",d.Qc?"transitioning":"hidden"));return Y};
  7152. Ahf=function(d){d.po=!d.po;d.rg=!0;d.element.classList.toggle("ytp-retro-player",d.po);d.resize();d.rg=!1;d.app.mZ.gO("onRetroModeChanged",d.po)};
  7153. pfQ=function(){this.csn=g.Q0();this.clientPlaybackNonce=null;this.elements=new Set;this.j=new Set;this.G=new Set;this.U=new Set};
  7154. Zxf=function(d){if(d.csn!==g.Q0())if(d.csn==="UNDEFINED_CSN")d.csn=g.Q0();else{var q=g.Q0(),T=g.Ha();if(q&&T){d.csn=q;for(var Y=g.E(d.elements),e=Y.next();!e.done;e=Y.next())(e=e.value.visualElement)&&e.isClientVe()&&q&&T&&(g.RD("combine_ve_grafts")?lq(mx(),e,T):g.iF(g.un)(void 0,q,T,e))}if(q)for(d=g.E(d.G),T=d.next();!T.done;T=d.next())(T=T.value.visualElement)&&T.isClientVe()&&g.va(q,T)}};
  7155. g.c1=function(d,q,T,Y){g.W.call(this);var e=this;this.logger=new g.cb("App");this.BE=this.H3=!1;this.YK={};this.h4=[];this.IY=!1;this.Ca=null;this.intentionalPlayback=!1;this.lA=!0;this.OV=!1;this.Tg=this.FD=this.rC=null;this.oL=!0;this.mediaElement=this.IN=null;this.DA=NaN;this.l0=!1;this.mM=this.Vu=this.gs=this.screenLayer=this.playlist=null;this.Xx=[];this.dC=0;this.fC={v3:function(){return e.MC},
  7156. uqf:function(){return e.gs}};
  7157. this.logger.debug("constructor begin");if(!T)throw Error("b/179532961");this.JS=(q==null?void 0:q.args)||{};this.webPlayerContextConfig=T;s1I();q=this.JS;this.Pv=new Rn(q,T,T.canaryState,Y,this);g.C(this,this.Pv);eL1(this.Pv);T=bDQ(this.Pv);this.Pv.uF()&&this.lW("h5vcc",T);this.Pv.experiments.Wv("jspb_serialize_with_worker")&&fAN();this.Pv.experiments.Wv("gzip_gel_with_worker")&&L$2();this.Pv.U&&!Ox7&&(window.addEventListener(le?"touchstart":"click",G4j,{capture:!0,passive:!0}),Ox7=!0);this.N("html5_onesie")&&
  7158. (this.cq=new kW(this.Pv),g.C(this,this.cq));this.Zv=vL(TF(this.Pv)&&!0,q.enablesizebutton);this.ij=vL(!1,q.player_wide);this.visibility=new o66;g.C(this,this.visibility);this.N("web_log_theater_mode_visibility")&&this.mp(vL(!1,q.player_wide));this.H3=vL(!1,q.external_list);this.events=new g.aI(this);g.C(this,this.events);this.N("start_client_gcf")&&(aC(Ou(),{Mn:TN,xj:Ug2()}),this.sA=Ou().resolve(TN),Jx7(this.sA));this.kXv=new nV;g.C(this,this.kXv);this.KW=new pfQ;T=new rm;this.mZ=new g.fV(this,T);
  7159. g.C(this,this.mZ);this.template=new QGg(this);g.C(this,this.template);this.appState=1;this.FM=nRN(this);g.C(this,T);T={};this.Pz=(T.internalvideodatachange=this.ZA,T.playbackready=this.vxr,T.playbackstarted=this.Xvg,T.statechange=this.qDZ,T);this.JM=new jz(this.mZ);this.Am=rhn(this);T=this.Pv.X;!1!==T&&this.lW("badps",{hbp:T,hostname:window.location.hostname,ps:this.Pv.playerStyle});this.rz=new QUg(this.Pv,this.Am);this.mZ.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||WK6(this.Am))&&
  7160. t3Q(this);T=10;g.ho(this.Pv)&&(T=3);Em(this.Pv)&&(T=g.Yv(this.Pv.experiments,"tvhtml5_unplugged_preload_cache_size"));this.MC=new g.qU(this.mZ,T);T=BoN(this);this.MC.Oh(T);Kw6(this);T={};this.Op=(T.airplayactivechange=this.eYk,T.airplayavailabilitychange=this.nBU,T.beginseeking=this.FzO,T.sabrCaptionsDataLoaded=this.wFv,T.endseeking=this.x5O,T.internalAbandon=this.gBO,T.internalaudioformatchange=this.NzO,T.internalvideodatachange=this.oc5,T.internalvideoformatchange=this.iCO,T.liveviewshift=this.Wz2,
  7161. T.playbackstalledatstart=this.UCf,T.progresssync=this.Vvf,T.onAbnormalityDetected=this.EBU,T.onSnackbarMessage=this.l$5,T.onLoadProgress=this.BzF,T.SEEK_COMPLETE=this.P$U,T.SEEK_TO=this.Gqg,T.onVideoProgress=this.TkD,T.onLoadedMetadata=this.Znk,T.onAutoplayBlocked=this.Lzk,T.onPlaybackPauseAtStart=this.cA5,T.playbackready=this.CFv,T.statechange=this.T4,T.newelementrequired=this.iR,T.heartbeatparams=this.AAZ,T.videoelementevent=this.jdr,T.drmoutputrestricted=this.D55,T.signatureexpired=this.f$O,T.nonfatalerror=
  7162. this.Onf,T.reloadplayer=this.KzU,T);this.t3=new g.aI(this);g.C(this,this.t3);this.z0=new H1;g.C(this,this.z0);this.sy=this.mW=-1;this.NZ=new g.f9(this.template.resize,16,this.template);g.C(this,this.NZ);this.Rd=new dT_(this.mZ,this.Pv,this.UM(),this);this.p8=new mN(this);g.C(this,this.p8);this.xe=new fA(this);g.C(this,this.xe);xTI(this.Pv.G.c);this.events.W(this.mZ,g.Sh("appapi"),this.dkf);this.events.W(this.mZ,g.lG("appapi"),this.JFv);this.events.W(this.mZ,g.Sh("appprogressboundary"),this.I$D);this.events.W(this.mZ,
  7163. g.lG("applooprange"),this.A2);this.events.W(this.mZ,"presentingplayerstatechange",this.h0);this.events.W(this.mZ,"resize",this.qFk);this.template.IU(TO(document,d));this.events.W(this.mZ,"offlineslatestatechange",this.RYD);this.events.W(this.mZ,"sabrCaptionsTrackChanged",this.A1w);this.events.W(this.mZ,"sabrCaptionsBufferedRangesUpdated",this.xCr);this.Am.J.C().t0&&kr(this.Am,"offline");this.Pv.AF&&g.Oi("ux",g.Dk);d=g.Yv(this.Pv.experiments,"html5_defer_fetch_att_ms");this.XN=new g.f9(this.fYw,d,
  7164. this);g.C(this,this.XN);this.GX().LH()&&(g.nW()&&this.GX().K.push("remote"),GfD(this));this.rz.tick("fs");Lwg(this);this.Pv.AF&&kr(this.Am,"ux",!0);g.dn(this.Am.J.C())&&kr(this.Am,"embed");this.N("web_player_sentinel_is_uniplayer")||g.OL(new g.CW("Player experiment flags missing","web_player_sentinel_is_uniplayer"));d=this.N("web_player_sentinel_yt_experiments_sync");T=g.RD("web_player_sentinel_yt_experiments_sync");d!==T&&g.OL(new g.CW("b/195699950",{yt:d,player:T}));this.Cr=kf6(this);if(d=g.Yv(this.Pv.experiments,
  7165. "html5_block_pip_safari_delay"))this.Ey=new g.f9(this.cN,d,this),g.C(this,this.Ey);Zq=this.Pv.ev;this.mZ.publish("applicationInitialized");this.logger.debug("constructor end")};
  7166. kf6=function(d){function q(T){T.stack&&T.stack.indexOf("player")!==-1&&d.Lf().EU(T)}
  7167. n1.subscribe("handleError",q);fs.push(q);return function(){n1.unsubscribe("handleError",q);var T=fs.indexOf(q);T!==-1&&fs.splice(T,1)}};
  7168. BoN=function(d){var q=new g.yM(d.Pv,d.JS);d.mZ.publish("initialvideodatacreated",q);return Ee(d,1,q,!1)};
  7169. Kw6=function(d){var q=d.UM();q.setPlaybackRate(d.Pv.T?1:P1_(d,Number(g.Zs("yt-player-playback-rate"))||1));q.Ts(d.Pz,d);q.Sb()};
  7170. rhn=function(d){var q="",T=hC_(d);T.indexOf("//")===0&&(T=d.Pv.protocol+":"+T);var Y=T.lastIndexOf("/base.js");Y!==-1&&(q=T.substring(0,Y+1));if(T=Error().stack)if(T=T.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))T=T[1],T.includes(q)||g.OL(Error("Player module URL mismatch: "+(T+" vs "+q+".")));q=new LKD(d.mZ,q);T={};krg(q,(T.destroyed=function(){d.onApiChange()},T));
  7171. return q};
  7172. nRN=function(d){if(d.Pv.storeUserVolume){d=g.Zs("yt-player-volume")||{};var q=d.volume;d={volume:isNaN(q)?100:g.Cn(Math.floor(q),0,100),muted:!!d.muted}}else d={volume:100,muted:d.Pv.mute};return d};
  7173. jk=function(d){d.mediaElement=d.Pv.deviceIsAudioOnly?new g.Vk(g.FE("AUDIO")):wl.pop()||new g.Vk(g.FE("VIDEO"));g.C(d,d.mediaElement);d.Lf().setMediaElement(d.mediaElement);try{d.Pv.qC?(d.Vu&&d.events.t1(d.Vu),d.Vu=d.events.W(d.mediaElement,"volumechange",d.aQZ)):(d.mediaElement.J4(d.FM.muted),d.mediaElement.setVolume(d.FM.volume/100))}catch(e){d.Kj("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(e&&typeof e==="object"&&"message"in e&&typeof e.message==="string"&&e.message.replace(/[;:,]/g,
  7174. "_")));return}g.jX(d.t3);WwX(d);var q=d.template,T=d.mediaElement.tA();q.Cn=T;q.aR=!1;q.Cn.parentNode||yp(q.t6,q.Cn,0);q.z8=new g.WB(0,0,0,0);a1D(q);Q3(q);T=q.Cn;g.d9(T,"video-stream");g.d9(T,g.Eo.MAIN_VIDEO);var Y=q.app.C();Y.B3&&T.setAttribute("data-no-fullscreen","true");Y.N("html5_local_playsinline")?"playsInline"in HH()&&(T.playsInline=!0):Y.rK&&(T.setAttribute("webkit-playsinline",""),T.setAttribute("playsinline",""));Y.YH&&q.Cn&&q.W(T,"click",T.play,T);try{d.mediaElement.activate()}catch(e){d.Kj("html5.missingapi",
  7175. 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(e&&typeof e==="object"&&"message"in e&&typeof e.message==="string"&&e.message.replace(/[;:,]/g,"_")))}};
  7176. ulQ=function(d){if(!C1g(d)){var q=d.UM().WG();q&&(q=q.Gf(),q instanceof Promise&&q.catch(function(){}));
  7177. aU(d,rC(d.getPlayerStateObject()))}};
  7178. WwX=function(d){var q=d.mediaElement;EJ()?d.t3.W(q,"webkitpresentationmodechanged",d.WcO):window.document.pictureInPictureEnabled&&(d.t3.W(q,"enterpictureinpicture",function(){d.Bx(!0)}),d.t3.W(q,"leavepictureinpicture",function(){d.Bx(!1)}));
  7179. fZ&&(d.t3.W(q,"webkitbeginfullscreen",function(){d.Cp(3)}),d.t3.W(q,"webkitendfullscreen",function(){d.Cp(0)}))};
  7180. DT2=function(d,q){var T=q.getPlayerType(),Y=d.MC.j[T]||null;q!==d.UM()&&q!==Y&&(Y==null||Y.dispose(),d.MC.j[T]=q)};
  7181. wf2=function(d,q){q=q===void 0?!0:q;d.logger.debug("start clear presenting player");var T;if(T=d.mM){T=d.mM;var Y=d.mediaElement;T=!!Y&&Y===T.mediaElement}T&&(d.Hf(),jk(d));T=d.Lf();T.Hf(!q);T.jC(d.Op,d);T.getPlayerType()!==1&&T.dispose();q=d.MC;q.U=q.G;Tr(q);d.logger.debug("finish clear presenting player")};
  7182. g.f1j=function(d,q,T,Y){var e=d.rz;q===2&&(e=new QUg(d.Pv));return new g.JG(d.Pv,q,e,d.template,function(U,b,J){d.mZ.publish(U,b,J)},function(){return d.mZ.getVisibilityState()},d.visibility,d,T,Y)};
  7183. Ee=function(d,q,T,Y,e){d=g.f1j(d,q,T,e);d=new g.Uc(d);Y&&d.Sb();return d};
  7184. Aa=function(d,q){return d.ZY(q)?d.UM():q};
  7185. pl=function(d,q){var T=d.Lf();return q===d.UM()&&d.ZY(q)&&d.ZY(T)?T:q};
  7186. I1Y=function(d){d.logger.debug("start application playback");if(d.UM().getPlayerState().isError())d.logger.debug("start application playback done, player in error state");else{var q=Zj(d);d.GX().isLoaded();q&&d.Vj(6);zC6(d);mU6(d.Am)||ixI(d)}};
  7187. ixI=function(d){if(!Zj(d)){var q=Wc(d.Am);q&&!q.created&&P6j(d.Am)&&(d.logger.debug("reload ad module"),q.create())}};
  7188. zC6=function(d){d.logger.debug("start presenter playback");var q=d.getVideoData(),T=d.Am;mU6(T)||T.AV();!r6&&T.J.N("html5_allow_asmjs")&&dkN(T);kr(T,"embed");kr(T,"kids");kr(T,"remote");kr(T,"miniplayer");kr(T,"offline");kr(T,"unplugged");kr(T,"ypc",!1,!0);kr(T,"ypc_clickwrap",!1,!0);kr(T,"yto",!1,!0);kr(T,"webgl",!1,!0);SeX(T)||(kr(T,"captions",!0),kr(T,"endscreen"),T.fB(),kr(T,"creatorendscreen",!0));T.s_();T.J.publish("modulesCreated");d.mZ.publish("videoready",q)};
  7189. Oe=function(d){d=d.GX();d.LH();return sF(d)};
  7190. Lwg=function(d){d.logger.debug("start prepare initial playback");d.Ku();var q=d.JS;jk(d);d.events.W(window,"resize",d.mCk);var T=d.GX();d.mZ.uv("onVolumeChange",d.FM);if(q&&jUD(q)){var Y=HT(d.Pv);Y&&!d.H3&&(q.fetch=0);var e=g.dn(d.Pv);e&&!d.H3&&(q.fetch=0);nl(d,q);g.dn(d.Pv)&&d.rz.tick("ep_pr_s");if(!Y||d.H3)if(e&&!d.H3)mTQ(d);else if(!T.LH())d.playlist.onReady(function(){ra(d)})}d.D8(d.UM(),!1,!0);
  7191. g.I(d.UM().getPlayerState(),128)||(q=txf(!d.Pv.deviceIsAudioOnly),q==="fmt.noneavailable"?d.Kj("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):q==="html5.missingapi"?d.Kj(q,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):T&&T.LH()&&Oe(d)&&(d.Pv.yH||d.Pv.lS)?ta(d):T.Qq?d.mZ.mutedAutoplay({durationMode:T.mutedAutoplayDurationMode}):g.Zs("yt-player-playback-on-reload")?(g.Ta("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!d.Pv.yv}),g.pW("yt-player-playback-on-reload",!1),
  7192. ta(d)):Zi(d.Pv)||Sln(d),g.cT(d.Pv)||Hx(d.Pv)==="MWEB"?(g.zy(g.IY(),function(){B1(d)}),g.zy(g.IY(),function(){rL6()})):(B1(d),rL6()),d.logger.debug("finish prepare initial playback"))};
  7193. B1=function(d){if(!d.N("use_rta_for_player"))if(d.N("fetch_att_independently"))g.zh(d.XN);else{var q=d.getVideoData().botguardData;q&&g.eK(q,d.Pv,d.getVideoData().q2||"")}};
  7194. Sln=function(d){d.logger.debug("start initialize to CUED mode");d.mZ.publish("initializingmode");d.Vj(2);kr(d.Am,"remote");kr(d.Am,"miniplayer");d.logger.debug("initialized to CUED mode")};
  7195. ta=function(d){d.logger.debug("start initialize application playback");var q=d.UM();if(g.I(q.getPlayerState(),128))return!1;q=q.getVideoData();Oe(d)&&d.Pv.lS&&(wl.length&&d.BE?(Kl(d,{muted:!1,volume:d.FM.volume},!1),Gr(d,!1)):wl.length||d.FM.muted||(Kl(d,{muted:!0,volume:d.FM.volume},!1),Gr(d,!0)));Oe(d)&&g.dn(d.Pv)&&q.mutedAutoplay&&(Kl(d,{muted:!0,volume:d.FM.volume},!1),Gr(d,!0));q.rR&&Kl(d,{muted:!0,volume:d.FM.volume},!1);l12(d,1,q,!1);var T=d.UM();d.mZ.publish("initializingmode");d.D8(T);d.Vj(3);
  7196. var Y;if(!(Y=!d.Pv.bV)){if(Y=d.mM){Y=d.mM;var e=d.mediaElement;Y=!!e&&e===Y.mediaElement}Y=Y&&d.IY}Y&&(d.Hf(),jk(d),T.setMediaElement(d.mediaElement));T.n5();if(g.I(T.getPlayerState(),128))return!1;q.PR||aU(d,3);return d.IY=!0};
  7197. Zj=function(d){d=I6(d.Am);return!!d&&d.loaded};
  7198. vR6=function(d,q){if(!d.IN)return!1;var T=d.IN.startTimeMs*.001-1,Y=d.IN.endTimeMs*.001;d.IN.type==="repeatChapter"&&Y--;return Math.abs(q-T)<=1E-6||Math.abs(q-Y)<=1E-6||q>=T&&q<=Y};
  7199. oRN=function(d){var q=d.Lf();Zu(q.getVideoData())&&!q.Kb()&&(q=Ll(d)*1E3-d.getVideoData().oS,d.N("html5_gapless_new_slr")?(d=d.xe,ki(d.app,"gaplessshortslooprange"),q=new g.Ij(0,q,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(d=d.app.Lf())&&d.addCueRange(q)):d.setLoopRange({startTimeMs:0,endTimeMs:q,type:"shortsLoop"}))};
  7200. V3f=function(d){var q=d.UM();if(!(g.I(q.getPlayerState(),64)&&d.GX().isLivePlayback&&d.IN.startTimeMs<5E3)){if(d.IN.type==="repeatChapter"){var T,Y=(T=EC_(d.M5()))==null?void 0:T.u1(),e;T=(e=d.getVideoData())==null?void 0:e.lS;Y instanceof g.ql&&T&&(e=T[hg(T,d.IN.startTimeMs)],Y.renderChapterSeekingAnimation(0,e.title));isNaN(Number(d.IN.loopCount))?d.IN.loopCount=0:d.IN.loopCount++;d.IN.loopCount===1&&d.mZ.gO("innertubeCommand",d.getVideoData().aYr)}Y={b$:"application_loopRangeStart"};if(d.IN.type===
  7201. "clips"||d.IN.type==="shortsLoop")Y.seekSource=58;q.seekTo(d.IN.startTimeMs*.001,Y)}};
  7202. P1_=function(d,q){var T=d.mZ.getAvailablePlaybackRates();q=Number(q.toFixed(2));d=T[0];T=T[T.length-1];q<=d?q=d:q>=T?q=T:(d=Math.floor(q*100+.001)%5,q=d===0?q:Math.floor((q-d*.01)*100+.001)/100);return q};
  7203. Ll=function(d,q){q=d.dk({playerType:q});if(!q)return d.MC.G.Jq();q=Aa(d,q);return P1(d,q.Jq(),q)};
  7204. P1=function(d,q,T){if(d.ZY(T)&&(T=T.getVideoData(),!W1(d))){d=d.Rd;for(var Y=g.E(d.U),e=Y.next();!e.done;e=Y.next())if(e=e.value,T.HG===e.HG){q+=e.PG/1E3;break}Y=q;d=g.E(d.U);for(e=d.next();!e.done;e=d.next()){e=e.value;if(T.HG===e.HG)break;var U=e.PG/1E3;if(U<q)Y+=e.durationMs/1E3+U-e.lC/1E3;else break}return Y}return q};
  7205. dWn=function(d,q){var T=d.MC.Ig;if(T)return rC(T.getPlayerState());if(d.getVideoData().enableServerStitchedDai&&q===2){var Y;return((Y=d.gs)==null?0:naf(Y,d.getCurrentTime()))?d.mW:-1}return q!==2||d.ZY()?d.mW:d.sy};
  7206. GfD=function(d){d.logger.debug("reset for new application playback");Cl(d);d.setLoopVideo(!1);d.setLoopRange(null);d.mZ.publish("legacyadtrackingpingreset");d.YK={};d.h4=[];caN(d.rz);if(d.gs){var q=d.gs,T=d.UM();T.getPlayerType();se(q,!1);BH1(q);KmX(q);q.playback=T}q=d.Rd;d=d.UM();d.getPlayerType()!==1&&NU(q,"invalidParentVideoPlayerType");ha(q,!1);NoQ(q);q.G=d};
  7207. mTQ=function(d,q){var T=(q?q:d.GX()).MW;d.rz.tick("ep_pr_r");if(T!=null&&(ZlY(d.playlist,T),d.OV))d.playlist.onReady(function(){ra(d,q)})};
  7208. nl=function(d,q){d.playlist&&(g.T1(d.playlist),d.playlist=null);q&&(d.H3&&(q.fetch=0),d.playlist=new Eig(d.Pv,q))};
  7209. q9X=function(d){var q,T=Number((q=d.getVideoData().progressBarEndPosition)==null?void 0:q.utcTimeMillis)/1E3;!isNaN(T)&&(q=d.fH())&&(q-=d.getCurrentTime(),T=(T-q)*1E3,q=d.YK.progressEndBoundary,(q==null?void 0:q.start)!==T&&(q&&d.TD([q]),T=new g.Ij(T,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),d.UM().addCueRange(T),d.YK.progressEndBoundary=T))};
  7210. aU=function(d,q){d.logger.debug(function(){return"set external state "+q});
  7211. var T=d.Lf(),Y=T.getPlayerType();if(Y!==2||d.ZY()){if(Y===2&&d.ZY()||Y===5||Y===6||Y===7)if(q===-1||q===0||q===5)return;if(q===0){if(d.IN)return;if(T.AC()&&g.ho(d.Pv)){d.playVideo();return}}d.mW!==q&&(d.mW=q,d.mZ.uv("onStateChange",q))}else d.sy!==q&&(d.sy=q,d.mZ.uv("onAdStateChange",q))};
  7212. ThY=function(d,q,T,Y,e){Y=Y===void 0?Infinity:Y;e=e===void 0?0:e;d.logger.debug(function(){return"Enqueuing playerType="+T+" at time="+Y+"\n videoId="+q.videoId});
  7213. var U=d.Lf();T=T||U.getPlayerType();(U=l12(d,T,q,!0))||(U=Ee(d,T,q,!0));var b=d.UM();if(T===2&&b){var J=U.getVideoData();b.Xi(J.clientPlaybackNonce,J.R6||"",J.breakType||0,J.LC,J.videoId||"")}d.sH(U,Y,0,e)};
  7214. Y9j=function(d,q,T,Y,e){var U=u6(T,q);d.logger.debug(function(){return"start preload video "+U+", trigger="+e});
  7215. var b=d.Lf(),J=u6(b.getPlayerType(),b.getVideoData());if(U===J)return b.Z8(!0),q.dispose(),null;q.t0=!0;q=Ee(d,T,q,!0);T===1&&Em(d.Pv)||q.Z8(!0);d.MC.S.set(U,q,Y||3600);return q};
  7216. ePH=function(d,q,T){var Y=Ty(q);return d+"_"+Y+"_"+T+"_"+ +(q.autonav==="1"||q.autonav===!0)+ +(q.autoplay==="1"||q.autoplay===!0||q.autoplay===1)};
  7217. u6=function(d,q){return d+"_"+q.videoId+"_"+q.HG+"_"+ +q.isAutonav+ +q.Ct};
  7218. l12=function(d,q,T,Y){var e=u6(q,T),U=d.MC.S.get(e)||null;if(!U||U.JF())return null;d.MC.S.remove(e);if(g.I(U.getPlayerState(),128))return U.dispose(),null;if(U===d.dk({playerType:q}))return d.rz.infoGel({isCacheHit:!0}),U;if((U.getVideoData().oauthToken||T.oauthToken)&&U.getVideoData().oauthToken!==T.oauthToken)return null;q===1&&(q=d.Lf().getVideoData(),Zu(q)&&q.isAd()&&Y||Cl(d));Y||d.D8(U,!0);d.rz.infoGel({isCacheHit:!0});return U};
  7219. UW1=function(d,q){var T;return q&&d.Pv.fp&&!((T=d.getVideoData())==null?0:T.backgroundable)};
  7220. bLj=function(d,q){return UW1(d,q)?(d.Ey?d.Ey.start():d.cN(),!0):!1};
  7221. Dj=function(d,q,T){q&&(q=d.dk({playerType:T}))&&q===d.UM()&&(q.getVideoData().yH=!0)};
  7222. wa=function(d,q,T){T=T===void 0?1:T;d.logger.debug(function(){return"start cue video, vid "+q.videoId+", type "+T});
  7223. if(q.LH()){var Y=Ee(d,T,q,!1);d.cancelPlayback(4,T);d.D8(Y);Y.Sb();if(T===1){d.Vj(1);if(g.dn(d.Pv)&&!h7(q)){q.dispose();d.UM().dispose();return}Sln(d)}d.logger.debug("finish cue video")}else d.logger.debug(function(){return"invalid VideoData in cueVideo"}),q.dispose(),(Y=d.dk({playerType:T}))&&Y.dispose(),R6(d.GX())&&T===2&&d.VM()};
  7224. XO7=function(d,q,T,Y,e){q=Qmn(q,T,Y,e);(T=g.dn(d.Pv)&&!d.Pv.UD)&&!d.H3&&(q.fetch=0);nl(d,q);g.dn(d.Pv)&&d.rz.tick("ep_a_pr_s");if(T&&!d.H3)T=d.GX(),raD(T,q).then(function(U){d.OV=!0;mTQ(d,U)});
  7225. else d.playlist.onReady(function(){ra(d)});
  7226. g.dn(d.Pv)&&d.rz.tick("ep_a_pr_r")};
  7227. ra=function(d,q){var T=g.dn(d.Pv)&&!d.Pv.UD,Y=T&&q?q:g.pa(d.playlist);q=T&&q?q:d.getVideoData();Y&&(q.k9&&(d.Pv.yH||d.Pv.lS)||!d.lA?(q=q.yH,Y=d.ym(Y,1),q&&Dj(d,Y)):wa(d,Y,1));g.dn(d.Pv)&&d.rz.tick("ep_p_l");d.OV=!1;d.mZ.US("onPlaylistUpdate")};
  7228. C1g=function(d){if(d.playlist&&g.bS(d.Pv)&&d.yN()){var q=d.Pv.N("html5_player_autonav_logging");d.nextVideo(!1,q);return!0}return!1};
  7229. Jvg=function(d,q,T,Y,e,U,b){q={id:q,namespace:b!=null?b:"appapi"};U==="chapter"?(q.style=iG.CHAPTER_MARKER,q.visible=!0):isNaN(e)||(U==="ad"?q.style=iG.AD_MARKER:(q.style=iG.TIME_MARKER,q.color=e),q.visible=!0);d.Td([new g.Ij(T*1E3,Y*1E3,q)],1);return!0};
  7230. sAX=function(d,q,T,Y,e,U){U=U===void 0?!0:U;var b=d.fH();if(!b)return U&&d.getVideoData().isLivePlayback&&d.h4.push({id:q,GSD:T,PSx:Y}),!1;U=b-d.getCurrentTime();return Jvg(d,q,T-U,Y-U,void 0,void 0,e)};
  7231. ki=function(d,q,T){var Y=d.dk({playerType:T});Y&&(q=Y.hm(q),T&&d.getPresentingPlayerType()!==T||fl(d,"cuerangesremoved",q))};
  7232. $WX=function(d){var q=(0,g.cj)(),T=d.getCurrentTime();d=d.getVideoData();T=1E3*(T-d.startSeconds);d.isLivePlayback&&(T=0);return q-Math.max(T,0)};
  7233. Kl=function(d,q,T){d.Pv.dO&&(d.FM=q,q.muted||Gr(d,!1),T&&d.Pv.storeUserVolume&&!d.Pv.qC&&(T={volume:Math.floor(q.volume),muted:q.muted},T.unstorable||(g.pW("yt-player-volume",T),g.pW("yt-player-volume",T,2592E3))),gZI(d),T=g.MI&&d.mediaElement&&!d.mediaElement.j0(),d.Pv.qC&&!T||d.mZ.uv("onVolumeChange",{muted:q.muted,volume:q.volume,unstorable:!d.Pv.storeUserVolume}))};
  7234. gZI=function(d){var q=d.getVideoData();if(!q.wB){q=d.Pv.qC?1:oqX(q);var T=d.mediaElement;T.J4(d.FM.muted);try{T.setVolume(d.FM.volume*q/100)}catch(Y){g.OL(new g.CW("b183742307","multiplier: "+q+", volume: "+d.FM.volume))}}};
  7235. Gr=function(d,q){q!==d.BE&&(d.BE=q,d.mZ.US("onMutedAutoplayChange",q))};
  7236. GJ=function(d){return d.BE&&d.getVideoData().mutedAutoplay};
  7237. FQ7=function(d){var q=FH(!0);return q&&(q===d.template.element||d.mediaElement&&q===d.mediaElement.tA())?q:null};
  7238. RPY=function(d,q){var T=window.screen&&window.screen.orientation;if(d.Pv.L&&T&&T.lock&&(!g.MI||!NhX))if(q){q=T.type.indexOf("portrait")===0;var Y=d.template.getVideoAspectRatio(),e=q;Y<1?e=!0:Y>1&&(e=!1);if(!d.l0||e!==q){T=T.lock(e?"portrait":"landscape");if(T!=null)T["catch"](function(){});
  7239. d.l0=!0}}else d.l0&&(d.l0=!1,T.unlock())};
  7240. fl=function(d,q,T){d.mZ.publish(q,T);var Y=g.ho(d.Pv)||g.XW(d.Pv)||g.KG(d.Pv);if(T&&Y){switch(q){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&d.mZ.gO(e,T.map(function(U){return{getId:function(){return this.id},
  7241. end:U.end,id:U.getId(),namespace:U.namespace==="ad"?"ad":"",start:U.start,style:U.style,visible:U.visible,markerPositionMs:U.markerPositionMs}}))}};
  7242. zr=function(d,q,T,Y,e,U){T=T===void 0?!0:T;var b=d.dk({playerType:e});if(!b||(b.getPlayerType()!==2||d.ZY(b))&&!g.vr(b.getVideoData())){var J=d.MC.Ig;J?J.seekTo(q,{W6:!T,XL:Y,b$:"application",seekSource:U}):(b&&b===d.UM()&&d.IN&&!vR6(d,q)&&d.setLoopRange(null),d.seekTo(q,T,Y,e,U))}};
  7243. xWH=function(d,q,T,Y){T&&(d.Hf(),jk(d));T=d.Lf();T.J2(q);var e=d.getVideoData(),U={};U.video_id=e.videoId;U.adformat=e.adFormat;e.isLivePlayback||(U.start=T.getCurrentTime(),U.resume="1");e.isLivePlayback&&kp(e)&&g.xv(d.Pv)&&(U.live_utc_start=T.fH(),U.resume="1");e.z2&&(U.vvt=e.z2);e.X&&(U.vss_credentials_token=e.X,U.vss_credentials_token_type=e.M4);e.oauthToken&&(U.oauth_token=e.oauthToken);U.autoplay=1;U.reload_count=e.q5+1;U.reload_reason=q;e.iq&&(U.unplugged_partner_opt_out=e.iq);e.Vt&&(U.ypc_is_premiere_trailer=
  7244. e.Vt);e.playerParams&&(U.player_params=e.playerParams);d.loadVideoByPlayerVars(U,void 0,!0,void 0,void 0,Y);q==="signature"&&d.gs&&ixI(d)};
  7245. yvj=function(d,q){d.GX().autonavState=q;g.pW("yt-player-autonavstate",q);d.mZ.publish("autonavchange",q)};
  7246. hPf=function(d){var q=d.getVideoData().wB,T=d.Pv.Bv,Y=d.isInline()&&!d.getVideoData().Q_,e=d.mediaElement;q||T||Y?e.G6():(e.T6(),Kl(d,d.FM))};
  7247. Cl=function(d){var q=Wc(d.M5());q&&q.created&&(d.logger.debug("reset ad module"),q.destroy())};
  7248. W1=function(d){return d.getVideoData().enableServerStitchedDai&&!!d.gs};
  7249. HL6=function(d,q){q.bounds=d.getBoundingClientRect();for(var T=g.E(["display","opacity","visibility","zIndex"]),Y=T.next();!Y.done;Y=T.next())Y=Y.value,q[Y]=zO(d,Y);q.hidden=!!d.hidden};
  7250. hC_=function(d){var q=d.webPlayerContextConfig.trustedJsUrl;return q?Hq(q).toString():d.webPlayerContextConfig.jsUrl};
  7251. QAD=function(d,q){var T=d.dk({playerType:1});if(T){if(T.getVideoData().clientPlaybackNonce===q)return T;if((d=d.p8.G)&&d.getVideoData().clientPlaybackNonce===q)return d}return null};
  7252. t3Q=function(d){function q(Y){return BN(qWD(d.Am),function(e){return e.MP(Y)})}
  7253. d.rz.tick("wasm_s");var T=cP7(d.webPlayerContextConfig.wasmModuleUrl,WK6(d.Am)?q:void 0,d.lW.bind(d));T==null||BN(T,function(Y){d.rz.tick(Y.G?"wasm_fa":"wasm_fw")},function(){d.rz.tick("wasm_ferr")});
  7254. oKH(d.Pv,T)};
  7255. MSn=function(d){return d.name==="TypeError"&&d.stack.includes("/s/player/")&&Gt()<=105};
  7256. cv1=function(d){return d.isTimeout?"NO_BID":"ERR_BID"};
  7257. EZf=function(){var d=null;GAj().then(function(q){return d=q},function(q){return d=cv1(q)});
  7258. return d};
  7259. jAj=function(){var d=LK(1E3,"NO_BID");return g.tK(SbX([GAj(),d]).C8(cv1),function(){d.cancel()})};
  7260. i6=function(d){return d.zX?g.Gy(g.KW(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
  7261. IU=function(d){this.player=d;this.j=this.G=1};
  7262. pOH=function(d,q,T,Y,e,U){q.client||(q.client={});d.player.C().N("h5_remove_url_for_get_ad_break")||(q.client.originalUrl=T);var b=q4(T),J=g.sb(T)?!1:!0;(b||J)&&typeof Intl!=="undefined"&&(q.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);J=g.sb(T)?!1:!0;if(b||J||Y!==""){var F={};T=SW(bb(Y)).split("&");var N=new Map;T.forEach(function(R){R=R.split("=");R.length>1&&N.set(R[0].toString(),decodeURIComponent(R[1].toString()))});
  7263. N.has("bid")&&(F.bid=N.get("bid"));F.params=[];aCf.forEach(function(R){N.has(R)&&(R={key:R,value:N.get(R)},F.params.push(R))});
  7264. Avf(d,F);q.adSignalsInfo=F}q.client.unpluggedAppInfo||(q.client.unpluggedAppInfo={});q.client.unpluggedAppInfo.enableFilterMode=!1;T=e.G.cosver;T!=null&&T!=="cosver"&&(q.client.osVersion=T);T=e.G.cplatform;T!=null&&T!=="cplatform"&&T!==""&&(q.client.platform=T);T=e.G.cmodel;T!=null&&T!=="cmodel"&&(q.client.deviceModel=T);T=e.G.cplayer;T!=null&&T!=="cplayer"&&(q.client.playerType=T);T=e.G.cbrand;T!=null&&T!=="cbrand"&&(q.client.deviceMake=T);q.user||(q.user={});q.user.lockedSafetyMode=!1;(e.N("embeds_web_enable_iframe_api_send_full_embed_url")||
  7265. e.N("embeds_enable_autoplay_and_visibility_signals"))&&g.bS(e)&&s5D(q,U,d.player.getPlayerState(1))};
  7266. nZ1=function(d,q){var T=!1;if(q==="")return T;q.split(",").forEach(function(Y){var e={},U={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},b="ACTIVE";Y[0]==="!"&&(Y=Y.substring(1),b="INACTIVE");Y=Y.split("-");Y.length<3||(Y[0]in ZLI&&(U.clientName=ZLI[Y[0]]),Y[1]in OLN&&(U.platform=OLN[Y[1]]),U.applicationState=b,U.clientVersion=Y.length>2?Y[2]:"",e.remoteClient=U,d.remoteContexts?d.remoteContexts.push(e):d.remoteContexts=[e],T=!0)});
  7267. return T};
  7268. tS2=function(d){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in rv1))return!1;d=d.split(RegExp("[:&]"));var q=rv1.FLAG_AUTO_CAPTIONS_DEFAULT_ON,T="f"+(1+Math.floor(q/31)).toString();q=1<<Math.floor(q%31);for(var Y=0,e=d.length;Y<e;Y++){var U=d[Y].split("=");if(U[0]===T&&parseInt("0x"+U[1],16)&q)return!0}return!1};
  7269. Avf=function(d,q){d=d.player.C();if(g.Qv(d)||Em(d)){d=g.Cs("INNERTUBE_CONTEXT");var T,Y;(d==null?0:(T=d.adSignalsInfo)==null?0:T.advertisingId)&&typeof(d==null?void 0:(Y=d.adSignalsInfo)==null?void 0:Y.limitAdTracking)!=="undefined"&&(q.advertisingId=d.adSignalsInfo.advertisingId,q.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",q.limitAdTracking=d.adSignalsInfo.limitAdTracking)}};
  7270. CA7=function(d,q,T,Y,e){var U=T.DRIFT_FROM_HEAD_MS&&!Number.isNaN(T.DRIFT_FROM_HEAD_MS)?Math.trunc(T.DRIFT_FROM_HEAD_MS):0,b=Bh1.exec(q);b=b!=null&&b.length>=2?b[1]:"";var J=KQ2.test(q),F=GKN.exec(q);F=F!=null&&F.length>=2?F[1]:"";var N=LQ2.exec(q);N=N!=null&&N.length>=2&&!Number.isNaN(Number(N[1]))?Number(N[1]):1;var R=kK_.exec(q);R=R!=null&&R.length>=2?R[1]:"0";var x=gn(d.player.C().XM),y=d.player.getVideoData(1),h=g.mV(y.aU,!0),H="BISCOTTI_ID"in T?T.BISCOTTI_ID:"";pOH(d,h,q,H.toString(),d.player.C(),
  7271. y);y={splay:!1,lactMilliseconds:T.LACT.toString(),playerHeightPixels:Math.trunc(T.P_H),playerWidthPixels:Math.trunc(T.P_W),vis:Math.trunc(T.VIS),signatureTimestamp:20291,autonavState:i6(d.player.C())};Y&&(Y={},nZ1(Y,T.YT_REMOTE)&&(y.mdxContext=Y));if(Y=PAn.includes(x)?void 0:g.r7("PREF")){for(var a=Y.split(RegExp("[:&]")),p=0,t=a.length;p<t;p++){var n=a[p].split("=");if((n[0].toUpperCase()==="SML"||n[0].toUpperCase()==="GSML")&&n.length>1&&n[1].toUpperCase()==="TRUE"){h.user.lockedSafetyMode=!0;break}}y.autoCaptionsDefaultOn=
  7272. tS2(Y)}q=WQX.exec(q);(q=q!=null&&q.length>=2?q[1]:"")&&F&&(h.user.credentialTransferTokens=[{token:q,scope:"VIDEO"}]);q={contentPlaybackContext:y};b={adBlock:Math.trunc(T.AD_BLOCK),params:b,breakIndex:N,breakPositionMs:R,clientPlaybackNonce:T.CPN,topLevelDomain:x,isProxyAdTagRequest:J,context:h,adSignalsInfoString:SW(bb(H.toString())),overridePlaybackContext:q};e!==void 0&&(b.cueProcessedMs=Math.round(e).toString());F&&(b.videoId=F);T.LIVE_TARGETING_CONTEXT&&(b.liveTargetingParams=T.LIVE_TARGETING_CONTEXT);
  7273. T.AD_BREAK_LENGTH&&(b.breakLengthMs=Math.trunc(T.AD_BREAK_LENGTH*1E3).toString());U&&(b.driftFromHeadMs=U.toString());b.currentMediaTimeMs=Math.round(d.player.getCurrentTime(1)*1E3);(d=d.player.getGetAdBreakContext())&&(b.getAdBreakContext=d);return b};
  7274. uSN=function(){IU.apply(this,arguments)};
  7275. DW7=function(d,q,T,Y,e){var U=T.II;var b=T.SF;var J=d.player.C().Dc,F=0;T.cueProcessedMs&&b&&!U&&(T=b.end-b.start,T>0&&(F=Math.floor(T/1E3)));var N={AD_BLOCK:e,AD_BREAK_LENGTH:U?U.sS:F,AUTONAV_STATE:i6(d.player.C()),CA_TYPE:"image",CPN:d.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:d.player.Jt()*1E3,LACT:QF(),LIVE_INDEX:U?d.j++:1,LIVE_TARGETING_CONTEXT:U&&U.context?U.context:"",MIDROLL_POS:b?Math.round(b.start/1E3):0,MIDROLL_POS_MS:b?Math.round(b.start):0,VIS:d.player.getVisibilityState(),
  7276. P_H:d.player.OD().yS().height,P_W:d.player.OD().yS().width,YT_REMOTE:J?J.join(","):""},R=U3(ee);Object.keys(R).forEach(function(x){R[x]!=null&&(N[x.toUpperCase()]=R[x].toString())});
  7277. Y!==""&&(N.BISCOTTI_ID=Y);Y={};YA(q)&&(Y.sts="20291",(d=d.player.C().forcedExperiments)&&(Y.forced_experiments=d));return d7(g.a1(q,N),Y)};
  7278. wOg=function(d,q){var T=d.player.C(),Y,e=(Y=d.player.getVideoData(1))==null?void 0:Y.oauthToken;return g.rn(T,e).then(function(U){if(U&&Tt()){var b=Tk();eq(b,U)}return g.GY(d.player.S0(b),q,"/youtubei/v1/player/ad_break").then(function(J){return J})})};
  7279. fC6=function(d){this.Hv=d};
  7280. zPD=function(d){this.J=d};
  7281. iL_=function(d){this.Hv=d};
  7282. mWf=function(d){g.W.call(this);this.G=d;this.KG=IC1(this)};
  7283. IC1=function(d){var q=new taQ(d.G.FC);g.C(d,q);d=[new fC6(d.G.Hv),new zPD(d.G.J),new iL_(d.G.Hv),new cD(d.G.NF,d.G.je),new jo,new p3(d.G.kP,d.G.u9,d.G.Hv),new En,new M1];d=g.E(d);for(var T=d.next();!T.done;T=d.next())B4D(q,T.value);d=g.E(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(T=d.next();!T.done;T=d.next())aw(q,T.value,function(){});
  7284. return q};
  7285. mK=function(d){var q=d.Xw,T=d.T2;d=d.KH;var Y=new m1D,e={cf:new nPD(q.get(),T),T2:T};return{JA:new jN(T,d,q,e),context:e,Df:Y}};
  7286. Sk=function(d,q,T,Y,e){g.W.call(this);this.U=q;this.Yx=T;this.Xw=Y;this.eT=e;this.listeners=[];var U=new cu(this);g.C(this,U);U.W(d,"internalAbandon",this.QNU);this.addOnDisposeCallback(function(){g.jX(U)})};
  7287. l6=function(d){this.J=d;this.adVideoId=this.G=this.videoId=this.adCpn=this.contentCpn=null;this.S=!0;this.U=this.j=!1;this.adFormat=null;this.T="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
  7288. S97=function(d){d.contentCpn=null;d.adCpn=null;d.videoId=null;d.adVideoId=null;d.adFormat=null;d.T="AD_PLACEMENT_KIND_UNKNOWN";d.actionType="unknown_type";d.j=!1;d.U=!1};
  7289. lCD=function(d,q){d=g.E(q);for(q=d.next();!q.done;q=d.next())if((q=q.value.renderer)&&(q.instreamVideoAdRenderer||q.linearAdSequenceRenderer||q.sandwichedLinearAdRenderer||q.instreamSurveyAdRenderer)){pU("ad_i");g.ZO({isMonetized:!0});break}};
  7290. vZn=function(d){var q;(q=d.J.getVideoData(1))!=null&&q.UD&&(d.U=!1,q={},d.G&&d.videoId&&(q.cttAuthInfo={token:d.G,videoId:d.videoId}),OG("video_to_ad",q))};
  7291. $K=function(d){d.U=!1;var q={};d.G&&d.videoId&&(q.cttAuthInfo={token:d.G,videoId:d.videoId});OG("ad_to_video",q);oZ1(d)};
  7292. oZ1=function(d){if(d.j)if(d.T==="AD_PLACEMENT_KIND_START"&&d.actionType==="video_to_ad")jl("video_to_ad");else{var q={adBreakType:uN(d.T),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:d.videoStreamType};d.actionType==="ad_to_video"?(d.contentCpn&&(q.targetCpn=d.contentCpn),d.videoId&&(q.targetVideoId=d.videoId)):(d.adCpn&&(q.targetCpn=d.adCpn),d.adVideoId&&(q.targetVideoId=d.adVideoId));d.adFormat&&(q.adType=d.adFormat);d.contentCpn&&
  7293. (q.clientPlaybackNonce=d.contentCpn);d.videoId&&(q.videoId=d.videoId);d.adCpn&&(q.adClientPlaybackNonce=d.adCpn);d.adVideoId&&(q.adVideoId=d.adVideoId);g.ZO(q,d.actionType);d.J.C().experiments.Wv("html5_ads_csi_qoes")&&(q=d.J.Rf(d.actionType==="ad_to_video"?1:2),q=(0,g.cj)()-1E3*q,rc("qoes",q,d.actionType))}};
  7294. v1=function(d){g.W.call(this);this.J=d;this.G=new Map;this.U=new cu(this);g.C(this,this.U);this.U.W(this.J,g.Sh("ad"),this.onCueRangeEnter,this);this.U.W(this.J,g.lG("ad"),this.onCueRangeExit,this)};
  7295. VS1=function(d,q,T,Y,e,U,b){g.Ij.call(this,q,T,{id:d,namespace:"ad",priority:e,visible:Y,associatedClipId:U,markerPositionMs:b})};
  7296. oU=function(d){this.J=d};
  7297. du_=function(d,q){d.J.cueVideoByPlayerVars(q,2)};
  7298. V3=function(d){this.J=d};
  7299. dB=function(d){this.J=d;g.Yv(this.J.C().experiments,"tv_pacf_logging_sample_rate")};
  7300. q1D=function(d){return WA(d,"html5_ssap_play_cached_preroll")};
  7301. Fg=function(d,q){q=q===void 0?!1:q;return d.J.C().N("html5_ssap_force_ads_ctmp")?!0:(q||d.J.C().uF())&&d.J.C().N("html5_ssap_pacf_qoe_ctmp")};
  7302. qk=function(d){var q;return(q=d.J.getVideoData(1)==null?void 0:!1)!=null?q:!1};
  7303. WA=function(d,q){return d.J.C().N(q)};
  7304. TuX=function(d){return d.J.C().N("substitute_ad_cpn_macro_in_ssdai")};
  7305. uv=function(d){var q,T,Y;return((q=d.J.getVideoData(1).getPlayerResponse())==null?void 0:(T=q.playerConfig)==null?void 0:(Y=T.daiConfig)==null?void 0:Y.enableServerStitchedDai)||!1};
  7306. uN7=function(d){return d.J.C().N("html5_enable_vod_slar_with_notify_pacf")};
  7307. Y1D=function(d){return d.J.C().N("html5_recognize_predict_start_cue_point")};
  7308. QE=function(d){return d.J.C().experiments.Wv("enable_desktop_player_underlay")};
  7309. edj=function(d){return d.J.C().experiments.Wv("html5_load_empty_player_in_media_break_sub_lra")};
  7310. VQ=function(d){return d.J.C().experiments.Wv("html5_load_ads_instead_of_cue")};
  7311. dU=function(d){return d.J.C().experiments.Wv("html5_preload_ads")};
  7312. Uu1=function(d){return d.J.C().experiments.Wv("should_ignore_cuepoints_during_lifa_preroll")};
  7313. hH=function(d){return d.J.C().experiments.Wv("enable_ads_control_flow_deterministic_id_generation")};
  7314. bXN=function(d){return d.J.C().experiments.Wv("enable_desktop_discovery_video_abandon_pings")||g.Qv(d.J.C())};
  7315. Xvn=function(d){return d.J.C().experiments.Wv("enable_progres_commands_lr_feeds")};
  7316. Dw=function(d){return d.J.C().experiments.Wv("html5_cuepoint_identifier_logging")};
  7317. m36=function(d){d=d.J.getVideoData(1);return!!d&&d.N("html5_preload_first_vod_video_ad")&&!d.isDaiEnabled()&&!d.isLivePlayback};
  7318. J6I=function(d){return d.J.C().experiments.Wv("html5_ssdai_enable_media_end_cue_range")};
  7319. sH1=function(d){switch(d){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";
  7320. case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}};
  7321. $u1=function(){g.YP.call(this);var d=this;this.G={};this.addOnDisposeCallback(function(){for(var q=g.E(Object.keys(d.G)),T=q.next();!T.done;T=q.next())delete d.G[T.value]})};
  7322. T_=function(){if(gD_===null){gD_=new $u1;QC(i3).U="b";var d=QC(i3),q=W3(d)=="h"||W3(d)=="b",T=!(T3(),!1);q&&T&&(d.S=!0,d.X=new RZ1)}return gD_};
  7323. Fe_=function(d,q,T){d.G[q]=T};
  7324. NuQ=function(d){switch(d){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";
  7325. 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";
  7326. 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}};
  7327. Y$=function(d,q,T){this.Yx=d;this.J=q;this.T2=T;this.U=new Set;this.G=new Map;T_().subscribe("adactiveviewmeasurable",this.LZ,this);T_().subscribe("adfullyviewableaudiblehalfdurationimpression",this.ND,this);T_().subscribe("adviewableimpression",this.Ff,this);T_().subscribe("adaudioaudible",this.eI,this);T_().subscribe("adaudiomeasurable",this.nZ,this)};
  7328. UW=function(d,q,T){var Y=T.jE,e=T.Nx,U=T.listener,b=T.LK;T=T.KS===void 0?!1:T.KS;if(d.G.has(q))Jm("Unexpected registration of layout in LidarApi");else{if(b){if(d.U.has(b))return;d.U.add(b)}d.G.set(q,U);aT(T3().QU,"fmd",1);aLj(QC(i3),Y);var J=T?q:void 0;Fe_(T_(),q,{Oy:function(){if(!e)return{};var F=d.J.getPresentingPlayerType(!0),N;return(N=d.J.getVideoData(F))!=null&&N.isAd()?{currentTime:d.Yx.get().getCurrentTimeSec(F,!1,J),duration:e,isPlaying:ey(d.Yx.get(),F).isPlaying(),isVpaid:!1,isYouTube:!0,
  7329. volume:d.Yx.get().isMuted()?0:d.Yx.get().getVolume()/100}:{}}})}};
  7330. bU=function(d,q){d.G.has(q)?(d.G.delete(q),delete T_().G[q]):Jm("Unexpected unregistration of layout in LidarApi")};
  7331. Rd7=function(d,q){if(d.J.isLifaAdPlaying()){var T=d.J.Xb(!0,!0);d.yA(q,T.width*.5*1.1,T.height*.25*1.1,T.width*.5*.9,T.height*.5*.9)}};
  7332. hdX=function(d,q,T){var Y={};xuH(d,Y,q,T);y6g(Y);Y.LACT=XU(function(){return QF().toString()});
  7333. Y.VIS=XU(function(){return d.getVisibilityState().toString()});
  7334. Y.SDKV="h.3.0";Y.VOL=XU(function(){return d.isMuted()?"0":Math.round(d.getVolume()).toString()});
  7335. Y.VED="";return Y};
  7336. HX2=function(d,q){var T={};if(q||!d||!d.kind)return T;if(d.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||d.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!d.adTimeOffset||!d.adTimeOffset.offsetStartMilliseconds)return g.Zz(Error("malformed AdPlacementConfig")),T;T.MIDROLL_POS=XU(nT(Math.round(BZ(d.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else T.MIDROLL_POS=XU(nT("0"));return T};
  7337. XU=function(d){return{toString:function(){return d()}}};
  7338. QH1=function(d,q,T){function Y(J,F){(F=T[F])&&(U[J]=F)}
  7339. function e(J,F){(F=T[F])&&(U[J]=b(F))}
  7340. if(!T||g.FV(T))return d;var U=Object.assign({},d),b=q?encodeURIComponent:function(J){return J};
  7341. e("DV_VIEWABILITY","doubleVerifyViewability");e("IAS_VIEWABILITY","integralAdsViewability");e("MOAT_INIT","moatInit");e("MOAT_VIEWABILITY","moatViewability");Y("GOOGLE_VIEWABILITY","googleViewability");Y("VIEWABILITY","viewability");return U};
  7342. xuH=function(d,q,T,Y){q.CPN=XU(function(){var e;(e=d.getVideoData(1))?e=e.clientPlaybackNonce:(g.OL(Error("Video data is null.")),e=null);return e});
  7343. q.AD_MT=XU(function(){if(Y!=null)var e=Y;else{var U=T;d.C().N("html5_ssap_use_cpn_to_get_time")||(U=void 0);if(d.C().N("enable_h5_shorts_ad_fill_ad_mt_macro")||d.C().N("enable_desktop_discovery_pings_ad_mt_macro")||g.Qv(d.C())){var b=d.getPresentingPlayerType(!0),J;e=((J=d.getVideoData(b))==null?0:J.isAd())?MbD(d,b,U):0}else e=MbD(d,2,U)}return c6g(e)});
  7344. q.MT=XU(function(){return c6g(d.getCurrentTime(1,!1))});
  7345. q.P_H=XU(function(){return d.OD().yS().height.toString()});
  7346. q.P_W=XU(function(){return d.OD().yS().width.toString()});
  7347. q.PV_H=XU(function(){return d.OD().getVideoContentRect().height.toString()});
  7348. q.PV_W=XU(function(){return d.OD().getVideoContentRect().width.toString()})};
  7349. c6g=function(d){return Math.round(Math.max(0,d*1E3)).toString()};
  7350. y6g=function(d){d.CONN=XU(nT("0"));d.WT=XU(function(){return Date.now().toString()})};
  7351. MbD=function(d,q,T){return T!==void 0?d.getCurrentTime(q,!1,T):d.getCurrentTime(q,!1)};
  7352. EDf=function(){};
  7353. jHY=function(d,q,T,Y,e){var U,b,J,F,N,R,x,y,h,H,a,p,t;g.G(function(n){switch(n.U){case 1:U=!!q.scrubReferrer;b=g.a1(q.baseUrl,QH1(T,U,Y));J={};if(!q.headers){n.tF(2);break}F=d.T();if(!F.G){N=F.getValue();n.tF(3);break}return g.B(n,F.G,4);case 4:N=n.G;case 3:R=N;x=g.E(q.headers);for(y=x.next();!y.done;y=x.next())switch(h=y.value,h.headerType){case "VISITOR_ID":g.Cs("VISITOR_DATA")&&(J["X-Goog-Visitor-Id"]=g.Cs("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.Cs("EOM_VISITOR_DATA")&&(J["X-Goog-EOM-Visitor-Id"]=
  7354. g.Cs("EOM_VISITOR_DATA"));break;case "USER_AUTH":R&&(J.Authorization="Bearer "+R);break;case "PLUS_PAGE_ID":(H=d.S())&&(J["X-Goog-PageId"]=H);break;case "AUTH_USER":a=d.G();!R&&a&&(J["X-Goog-AuthUser"]=a);break;case "DATASYNC_ID":if(p=void 0,(p=d.j())==null?0:p.Wv("enable_datasync_id_header_in_web_vss_pings"))t=d.U(),q4(b)&&g.Cs("LOGGED_IN")&&t&&(J["X-YouTube-DataSync-Id"]=t)}"X-Goog-EOM-Visitor-Id"in J&&"X-Goog-Visitor-Id"in J&&delete J["X-Goog-Visitor-Id"];case 2:g.rM(b,void 0,U,Object.keys(J).length!==
  7355. 0?J:void 0,"",!0,e),g.E6(n)}})};
  7356. a82=function(d,q,T,Y,e){this.T=d;this.S=q;this.G=T;this.U=Y;this.j=e};
  7357. A6f=function(d,q){this.G=d;this.T2=q};
  7358. JT=function(d,q,T,Y,e,U,b){var J=J===void 0?new a82(function(){var F=d.C(),N=d.getVideoData(1);return g.rn(F,N?g.$4(N):"")},function(){return d.C().pageId},function(){return d.C().yv},function(){var F;
  7359. return(F=d.C().datasyncId)!=null?F:""},function(){return d.C().experiments}):J;
  7360. this.J=d;this.U=q;this.iF=T;this.Xw=Y;this.JA=e;this.T2=U;this.Df=b;this.T=J;this.r5=null;this.G=new Map;this.j=new A6f(J,this.T2)};
  7361. ZX1=function(d,q,T,Y,e){var U=v_(d.U.get(),T);U?(T=Hp(d,pvH(U),U,void 0,void 0,Y),q.hasOwnProperty("baseUrl")?d.T.send(q,T):d.j.send(q,T,{},e)):Jm("Trying to ping from an unknown layout",void 0,void 0,{layoutId:T})};
  7362. WdY=function(d,q,T,Y,e,U){Y=Y===void 0?[]:Y;var b=v_(d.U.get(),q);if(b){var J=d.iF.get().Wr(q,T),F=Hp(d,pvH(b),b,e,U);Y.forEach(function(N,R){N.baseUrl&&(d.j.send(N.baseUrl,F,J,N.attributionSrcMode),N.serializedAdPingMetadata&&d.JA.yY("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,b,new hUH(N,R),void 0,void 0,b.adLayoutLoggingData))})}else Jm("Trying to track from an unknown layout.",void 0,void 0,{layoutId:q,
  7363. trackingType:T})};
  7364. gX=function(d,q){d.J.sendVideoStatsEngageEvent(q,void 0,2)};
  7365. Hn=function(d,q){g.Ta("adsClientStateChange",q)};
  7366. OX2=function(d,q){d.G.has(q.Z6())?Jm("Trying to register an existing AdErrorInfoSupplier."):d.G.set(q.Z6(),q)};
  7367. nDf=function(d,q){d.G.delete(q.Z6())||Jm("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
  7368. cn=function(d,q,T){typeof T==="string"?d.J.getVideoData(1).f_(q,T):d.J.getVideoData(1).oU(q,T)};
  7369. pvH=function(d){var q=l7(d.clientMetadata,"metadata_type_ad_placement_config");d=l7(d.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:q,Yf:d}};
  7370. Hp=function(d,q,T,Y,e,U){var b=T?r66(d):{},J=T?tbg(d,T.layoutId):{},F=Buf(d),N,R=e!=null?e:(N=kx(d.Xw.get(),2))==null?void 0:N.clientPlaybackNonce;e=void 0;if(T){var x;if((x=d.Df.G.get(T.layoutId))==null?0:x.KS)e=T.layoutId}x={};d=Object.assign({},hdX(d.J,e,Y),HX2(q.adPlacementConfig,(T==null?void 0:T.renderingContent)!==void 0),J,b,F,(x.FINAL=XU(function(){return"1"}),x.AD_CPN=XU(function(){return R||""}),x));
  7371. (T==null?void 0:T.renderingContent)!==void 0||(d.SLOT_POS=XU(function(){return(q.Yf||0).toString()}));
  7372. T={};U=Object.assign({},d,U);d=g.E(Object.values(KeQ));for(Y=d.next();!Y.done;Y=d.next())Y=Y.value,b=U[Y],b!=null&&b.toString()!=null&&(T[Y]=b.toString());return T};
  7373. r66=function(d){var q={},T,Y=(T=d.r5)==null?void 0:T.MQ/1E3;Y!=null&&(q.SURVEY_ELAPSED_MS=XU(function(){return Math.round(Y*1E3).toString()}));
  7374. q.SURVEY_LOCAL_TIME_EPOCH_S=XU(function(){return Math.round(Date.now()/1E3).toString()});
  7375. return q};
  7376. tbg=function(d,q){d=d.G.get(q);if(!d)return{};d=d.eX();if(!d)return{};q={};return q.YT_ERROR_CODE=d.gY.toString(),q.ERRORCODE=d.Ej.toString(),q.ERROR_MSG=d.errorMessage,q};
  7377. Buf=function(d){var q={},T=d.J.getVideoData(1);q.ASR=XU(function(){var Y;return(Y=T==null?void 0:T.sQ)!=null?Y:null});
  7378. q.EI=XU(function(){var Y;return(Y=T==null?void 0:T.eventId)!=null?Y:null});
  7379. return q};
  7380. sW=function(d,q,T){g.W.call(this);this.J=d;this.UQ=q;this.T2=T;this.listeners=[];this.aT=null;this.Oo=new Map;q=new g.aI(this);g.C(this,q);q.W(d,"videodatachange",this.zUw);q.W(d,"serverstitchedvideochange",this.OCg);this.h6=kx(this)};
  7381. kx=function(d,q){var T=d.J.getVideoData(q);return T?d.LR(T,q||d.J.getPresentingPlayerType(!0)):null};
  7382. Gdg=function(d,q,T){var Y=d.LR(q,T);d.h6=Y;d.listeners.forEach(function(e){e.xt(Y)})};
  7383. LeD=function(d){switch(d){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7}};
  7384. $$=function(d,q,T){g.W.call(this);this.J=d;this.Xw=q;this.T2=T;this.listeners=[];this.N7=[];this.G=function(){Jm("Called 'doUnlockPreroll' before it's initialized.")};
  7385. q=new cu(this);T=new g.aI(this);g.C(this,T);g.C(this,q);q.W(d,"progresssync",this.hlF);q.W(d,"presentingplayerstatechange",this.kGw);q.W(d,"fullscreentoggled",this.onFullscreenToggled);q.W(d,"onVolumeChange",this.onVolumeChange);q.W(d,"minimized",this.bS);q.W(d,"overlayvisibilitychange",this.n8);q.W(d,"shortsadswipe",this.L8);q.W(d,"resize",this.gz);T.W(d,g.Sh("appad"),this.EN)};
  7386. gB=function(d){qk(d.T2.get())||d.G()};
  7387. kdD=function(d,q){d.N7=d.N7.filter(function(T){return T!==q})};
  7388. FU=function(d,q,T){return d.getCurrentTimeSec(q,T)};
  7389. Nk=function(d,q){var T;q=(T=d.Xw.get().Oo.get(q))!=null?T:null;if(q===null)return Jm("Expected ad video start time on playback timeline"),0;d=d.J.getCurrentTime(2,!0);return d<q?0:d-q};
  7390. ey=function(d,q){return d.J.getPlayerStateObject(q)};
  7391. Pdg=function(d){var q=d.J.OD().yS();d=d.J.Xb(!0,!0);return q.height-(d.height+d.top)};
  7392. WeX=function(d){d.J.cueVideoByPlayerVars({videoId:"empty_video"},2)};
  7393. XGD=function(d,q){var T=d.J.C();g.Um(T)||T.controlsType!=="3"||d.J.OD().C0(q)};
  7394. RP=function(d,q){g.d9(d.J.getRootNode(),q)};
  7395. x$=function(d,q){g.TR(d.J.getRootNode(),q)};
  7396. Cdf=function(d,q,T,Y,e){g.W.call(this);var U=this,b=to(function(){return new yI(U.T2)});
  7397. g.C(this,b);var J=to(function(){return new HN(b,U.T2)});
  7398. g.C(this,J);var F=to(function(){return new Si});
  7399. g.C(this,F);Y=to(function(){return new Ix(d)});
  7400. g.C(this,Y);var N=to(function(){return new QI(b,J,U.T2)});
  7401. g.C(this,N);var R=to(function(){return new am});
  7402. g.C(this,R);this.hA=to(function(){return new Ku(e)});
  7403. g.C(this,this.hA);this.yU=to(function(){return new l6(q)});
  7404. g.C(this,this.yU);this.l$=to(function(){return new v1(q)});
  7405. g.C(this,this.l$);this.UF=to(function(){return new oU(q)});
  7406. g.C(this,this.UF);this.FC=to(function(){return new V3(q)});
  7407. g.C(this,this.FC);this.T2=to(function(){return new dB(q)});
  7408. g.C(this,this.T2);var x=to(function(){return new eh(U.T2)});
  7409. g.C(this,x);var y=to(function(){return new kq(b,N,J,U.T2,x,null,null,null,null)});
  7410. g.C(this,y);this.Xw=to(function(){return new sW(q,R,U.T2)});
  7411. g.C(this,this.Xw);var h=mK({Xw:this.Xw,T2:this.T2,KH:x}),H=h.context,a=h.Df;this.JA=h.JA;this.Yx=to(function(){return new $$(q,U.Xw,U.T2)});
  7412. g.C(this,this.Yx);this.iF=to(function(){return new Y$(U.Yx,q,U.T2)});
  7413. g.C(this,this.iF);this.Hv=to(function(){return new JT(q,F,U.iF,U.Xw,U.JA,U.T2,a)});
  7414. g.C(this,this.Hv);this.Q5=new iv(Y,y,T,this.T2,d,this.Xw,this.Yx,this.yU);g.C(this,this.Q5);var p=new Sk(q,this.Q5,this.Yx,this.Xw);this.H4=to(function(){return p});
  7415. this.Da=p;this.Np=new mo(Y,N,this.l$,this.H4,H);g.C(this,this.Np);this.pH=new Yq(this.T2,Y,N,y,this.Xw,this.Np,T,this.UF);g.C(this,this.pH);this.Rt={GW:new Map,Xg:new Map,QP:new Map,kI:new Map,iI:new Map};this.listeners=[];this.Em={pH:this.pH,u9:this.T2.get(),Nk:this.hA.get(),oV:this.Yx.get(),Q5:this.Q5,Bu:b.get(),QI:null,je:{dj:function(){}},
  7416. NF:F.get(),kP:this.Xw.get()}};
  7417. y_=function(d,q){g.W.call(this);this.Ui=q;this.Ui.get().addListener(this)};
  7418. hT=function(d){this.G=d};
  7419. uRI=function(d,q){if(!d)return{CL:[],adSlots:[],xr:!0,ssdaiAdsConfig:void 0};d.trackingParams&&vN(d.trackingParams);if(d.adThrottled)return{CL:[],adSlots:[],xr:!0,ssdaiAdsConfig:void 0};var T,Y=(T=d.adSlots)!=null?T:[],e;T=(e=d.playerAds)!=null?e:[];if(!(T&&T.length||Y.length))return{CL:[],adSlots:Y,xr:!1,ssdaiAdsConfig:void 0};e=T.map(function(b){return b.adPlacementRenderer}).filter(function(b){return!(!b||!b.renderer)});
  7420. if(!e.length&&!Y.length)return{CL:[],adSlots:Y,xr:!1,ssdaiAdsConfig:void 0};if(q.end>0){var U=q.end.toString();e.forEach(function(b){(b=b.config&&b.config.adPlacementConfig)&&b.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&b.adTimeOffset&&b.adTimeOffset.offsetEndMilliseconds==="-1"&&b.adTimeOffset.offsetEndMilliseconds!==U&&(b.adTimeOffset.offsetEndMilliseconds=U)});
  7421. Y.map(function(b){return g.D(b,ei)}).forEach(function(b){var J;
  7422. (b=b==null?void 0:(J=b.slotEntryTrigger)==null?void 0:J.mediaTimeRangeTrigger)&&b.offsetEndMilliseconds==="-1"&&(b.offsetEndMilliseconds=U)})}return{CL:e,
  7423. adSlots:Y,xr:!1,ssdaiAdsConfig:d.ssdaiAdsConfig}};
  7424. He=function(d){g.W.call(this);this.J=d;this.listeners=[];this.G=new cu(this);g.C(this,this.G);this.G.W(this.J,"aduxclicked",this.onAdUxClicked);this.G.W(this.J,"aduxmouseover",this.B5);this.G.W(this.J,"aduxmouseout",this.W5);this.G.W(this.J,"muteadaccepted",this.sUZ)};
  7425. Du1=function(d,q,T){q=g.yC(q,function(Y){return new IsI(Y,T,Y.id)});
  7426. d.J.gO("onAdUxUpdate",q)};
  7427. Q_=function(d,q){d=g.E(d.listeners);for(var T=d.next();!T.done;T=d.next())q(T.value)};
  7428. Mk=function(d,q){this.U=d;this.j=q===void 0?!1:q;this.G={}};
  7429. wv1=function(d,q){var T=d.startSecs+d.sS;T=T<=0?null:T;if(T===null)return null;switch(d.event){case "start":case "continue":case "stop":break;case "predictStart":if(q)break;return null;default:return null}q=Math.max(d.startSecs,0);return{S6:new hx(q,T),pV:new $k(q,T-q,d.context,d.identifier,d.event,d.G)}};
  7430. f8Q=function(){this.G=[]};
  7431. LV1=function(d,q,T){var Y=g.Dn(d.G,q);if(Y>=0)return q;q=-Y-1;return q>=d.G.length||d.G[q]>T?null:d.G[q]};
  7432. ce=function(d,q,T){g.W.call(this);this.J=d;this.T2=q;this.Hv=T;this.listeners=[];this.T=!1;this.gp=[];this.G=null;this.S=new Mk(this,Y1D(q.get()));this.j=new f8Q;this.U=null};
  7433. zdD=function(d,q){d.gp.push(q);for(var T=!1,Y=g.E(d.listeners),e=Y.next();!e.done;e=Y.next())T=e.value.b6(q)||T;d.T=T;Dw(d.T2.get())&&cn(d.Hv.get(),"onci","cpi."+q.identifier+";cpe."+q.event+";cps."+q.startSecs+";cbi."+T)};
  7434. I8f=function(d,q){Hn(d.Hv.get(),{cuepointTrigger:{event:iXj(q.event),cuepointId:q.identifier,totalCueDurationMs:q.sS*1E3,playheadTimeMs:q.G,cueStartTimeMs:q.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:d.J.getVideoData(1).clientPlaybackNonce}})};
  7435. iXj=function(d){switch(d){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 $S(d,"Unexpected cuepoint event")}};
  7436. EW=function(d){this.J=d};
  7437. jy=function(d){this.J=d};
  7438. muQ=function(d){switch(d){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;default:$S(d,"unknown transitionReason")}};
  7439. aP=function(){g.W.apply(this,arguments);this.Ns2=new Map};
  7440. S1n=function(d){this.J=d};
  7441. l8N=function(d,q,T,Y,e){g.W.call(this);var U=this,b=to(function(){return new yI(U.T2)});
  7442. g.C(this,b);var J=to(function(){return new HN(b,U.T2)});
  7443. g.C(this,J);var F=to(function(){return new Si});
  7444. g.C(this,F);var N=to(function(){return new Ix(d)});
  7445. g.C(this,N);var R=to(function(){return new QI(b,J,U.T2)});
  7446. g.C(this,R);var x=to(function(){return new am});
  7447. g.C(this,x);this.kB=to(function(){return new He(q)});
  7448. g.C(this,this.kB);this.hA=to(function(){return new Ku(e)});
  7449. g.C(this,this.hA);this.yU=to(function(){return new l6(q)});
  7450. g.C(this,this.yU);this.l$=to(function(){return new v1(q)});
  7451. g.C(this,this.l$);this.UF=to(function(){return new oU(q)});
  7452. g.C(this,this.UF);this.FC=to(function(){return new V3(q)});
  7453. g.C(this,this.FC);this.T2=to(function(){return new dB(q)});
  7454. g.C(this,this.T2);var y=to(function(){return new hT(Y)});
  7455. g.C(this,y);var h=to(function(){return new eh(U.T2)});
  7456. g.C(this,h);this.XW=to(function(){return new EW(q)});
  7457. g.C(this,this.XW);this.Ui=to(function(){return new kv});
  7458. g.C(this,this.Ui);this.Xw=to(function(){return new sW(q,x,U.T2)});
  7459. g.C(this,this.Xw);var H=mK({Xw:this.Xw,T2:this.T2,KH:h}),a=H.context,p=H.Df;this.JA=H.JA;this.eT=to(function(){return new ce(q,U.T2,U.Hv)});
  7460. g.C(this,this.eT);this.Gq=to(function(){return new jy(q)});
  7461. g.C(this,this.Gq);this.Yx=to(function(){return new $$(q,U.Xw,U.T2)});
  7462. g.C(this,this.Yx);this.ol=to(function(){return new aP});
  7463. g.C(this,this.ol);H=to(function(){return new kq(b,R,J,U.T2,h,"SLOT_TYPE_ABOVE_FEED",U.Yx,U.qM,U.NU)});
  7464. g.C(this,H);this.DY=to(function(){return new PA(U.T2)});
  7465. this.iF=to(function(){return new Y$(U.Yx,q,U.T2)});
  7466. g.C(this,this.iF);this.Hv=to(function(){return new JT(q,F,U.iF,U.Xw,U.JA,U.T2,p)});
  7467. g.C(this,this.Hv);this.xZ=new zb(f6,AT,function(n,K,P,w){return H_(J.get(),n,K,P,w)},N,R,J,h,this.T2,this.Xw);
  7468. g.C(this,this.xZ);this.Q5=new iv(N,H,T,this.T2,d,this.Xw,this.Yx,this.yU);g.C(this,this.Q5);var t=new Sk(q,this.Q5,this.Yx,this.Xw,this.eT);this.H4=to(function(){return t});
  7469. this.Da=t;this.qM=new C6(N,R,this.H4,this.eT,this.Yx,this.T2,this.Hv,this.Gq);g.C(this,this.qM);this.Np=new mo(N,R,this.l$,this.H4,a);g.C(this,this.Np);this.pH=new Yq(this.T2,N,R,H,this.Xw,this.Np,T,this.UF);g.C(this,this.pH);this.jV=to(function(){return new TS(y,J,h,U.T2,U.Hv,U.Yx,U.Gq)});
  7470. g.C(this,this.jV);this.jh=to(function(){return new Yu});
  7471. g.C(this,this.jh);this.fA=new TD(d,this.kB,this.T2);g.C(this,this.fA);this.F9=new YC(d);g.C(this,this.F9);this.Q4=new eN(d);g.C(this,this.Q4);this.Xn=new bq(d,this.H4,a);g.C(this,this.Xn);this.xP=new X4(d,this.l$,this.Yx,this.Xw,a);g.C(this,this.xP);this.rd=new JH(d,this.Xw);g.C(this,this.rd);this.NU=new gg(d,this.eT,this.Yx,this.Hv,this.H4,this.qM);g.C(this,this.NU);this.MU=new sT(d);g.C(this,this.MU);this.bC=new xC(d);g.C(this,this.bC);this.FT=new $C(d);g.C(this,this.FT);this.RP=new Rm(d);g.C(this,
  7472. this.RP);this.bC=new xC(d);g.C(this,this.bC);this.GA=to(function(){return new ox});
  7473. g.C(this,this.GA);this.Ap=to(function(){return new VE(U.Yx)});
  7474. g.C(this,this.Ap);this.IS=to(function(){return new UPg(U.kB,U.Hv,d,F,U.iF)});
  7475. g.C(this,this.IS);this.oQ=to(function(){return new uO(U.pH,N,b)});
  7476. g.C(this,this.oQ);this.IQ=to(function(){return new fw(U.T2,U.Hv,U.MU,U.iF)});
  7477. g.C(this,this.IQ);this.Dp=to(function(){return new O_(d,U.bC,U.MU,U.Xw,U.Gq,U.Yx,U.ol,U.Hv,x,U.eT,U.iF,U.DY,U.UF,U.l$,U.yU,U.FC,U.hA,U.XW,U.T2,F,a,p)});
  7478. g.C(this,this.Dp);this.Bg=to(function(){return new Qh6(U.Yx,U.Hv,U.hA,U.T2,U.iF,U.Xw)});
  7479. g.C(this,this.Bg);this.kT=to(function(){return new bUD(U.kB,U.Yx,U.Hv,F,U.iF,U.Q4,U.RP,U.hA,U.T2,T)});
  7480. g.C(this,this.kT);this.k0=to(function(){return new bMI(U.kB,U.Hv,F)});
  7481. g.C(this,this.k0);this.gw=new y_(d,this.Ui,b);g.C(this,this.gw);this.Rt={GW:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.pH],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.qM],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.xZ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Q5],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Np]]),Xg:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.jV],["SLOT_TYPE_ABOVE_FEED",this.jh],["SLOT_TYPE_FORECASTING",this.jh],
  7482. ["SLOT_TYPE_IN_PLAYER",this.jh],["SLOT_TYPE_PLAYER_BYTES",this.jh],["SLOT_TYPE_PLAYER_UNDERLAY",this.jh],["SLOT_TYPE_PLAYBACK_TRACKING",this.jh],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.jh]]),QP:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.fA],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.fA],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.F9],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.F9],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.F9],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.F9],["TRIGGER_TYPE_SLOT_ID_ENTERED",
  7483. this.F9],["TRIGGER_TYPE_SLOT_ID_EXITED",this.F9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.F9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.F9],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.F9],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.F9],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.F9],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Q4],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xn],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.xP],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",
  7484. this.xP],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.xP],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.xP],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.xP],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.xP],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.xP],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.rd],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.rd],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.MU],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
  7485. this.Xn],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.FT],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.RP],["TRIGGER_TYPE_AD_BREAK_STARTED",this.bC],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.NU],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.NU],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.NU],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.NU],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.NU]]),kI:new Map([["SLOT_TYPE_ABOVE_FEED",this.GA],
  7486. ["SLOT_TYPE_AD_BREAK_REQUEST",this.GA],["SLOT_TYPE_FORECASTING",this.GA],["SLOT_TYPE_IN_PLAYER",this.GA],["SLOT_TYPE_PLAYER_BYTES",this.Ap],["SLOT_TYPE_PLAYER_UNDERLAY",this.GA],["SLOT_TYPE_PLAYBACK_TRACKING",this.GA],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.GA]]),iI:new Map([["SLOT_TYPE_ABOVE_FEED",this.IS],["SLOT_TYPE_AD_BREAK_REQUEST",this.oQ],["SLOT_TYPE_FORECASTING",this.IQ],["SLOT_TYPE_PLAYER_BYTES",this.Dp],["SLOT_TYPE_PLAYBACK_TRACKING",this.Bg],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",
  7487. this.Bg],["SLOT_TYPE_IN_PLAYER",this.kT],["SLOT_TYPE_PLAYER_UNDERLAY",this.k0]])};this.listeners=[F.get()];this.Em={pH:this.pH,u9:this.T2.get(),Nk:this.hA.get(),oV:this.Yx.get(),Q5:this.Q5,Bu:b.get(),QI:this.Ui.get(),je:this.fA,NF:F.get(),kP:this.Xw.get()}};
  7488. vDX=function(d,q,T,Y,e){g.W.call(this);var U=this,b=to(function(){return new yI(U.T2)});
  7489. g.C(this,b);var J=to(function(){return new HN(b,U.T2)});
  7490. g.C(this,J);var F=to(function(){return new Si});
  7491. g.C(this,F);var N=to(function(){return new Ix(d)});
  7492. g.C(this,N);var R=to(function(){return new QI(b,J,U.T2)});
  7493. g.C(this,R);var x=to(function(){return new am});
  7494. g.C(this,x);this.kB=to(function(){return new He(q)});
  7495. g.C(this,this.kB);this.hA=to(function(){return new Ku(e)});
  7496. g.C(this,this.hA);this.yU=to(function(){return new l6(q)});
  7497. g.C(this,this.yU);this.l$=to(function(){return new v1(q)});
  7498. g.C(this,this.l$);this.UF=to(function(){return new oU(q)});
  7499. g.C(this,this.UF);this.FC=to(function(){return new V3(q)});
  7500. g.C(this,this.FC);this.T2=to(function(){return new dB(q)});
  7501. g.C(this,this.T2);var y=to(function(){return new hT(Y)});
  7502. g.C(this,y);var h=to(function(){return new eh(U.T2)});
  7503. g.C(this,h);var H=to(function(){return new kq(b,R,J,U.T2,h,null,null,U.qM,U.NU)});
  7504. g.C(this,H);this.XW=to(function(){return new EW(q)});
  7505. g.C(this,this.XW);this.Ui=to(function(){return new kv});
  7506. g.C(this,this.Ui);this.Xw=to(function(){return new sW(q,x,U.T2)});
  7507. g.C(this,this.Xw);var a=mK({Xw:this.Xw,T2:this.T2,KH:h}),p=a.context,t=a.Df;this.JA=a.JA;this.eT=to(function(){return new ce(q,U.T2,U.Hv)});
  7508. this.Yx=to(function(){return new $$(q,U.Xw,U.T2)});
  7509. g.C(this,this.Yx);this.ol=to(function(){return new aP});
  7510. g.C(this,this.ol);this.iF=to(function(){return new Y$(U.Yx,q,U.T2)});
  7511. g.C(this,this.iF);this.Hv=to(function(){return new JT(q,F,U.iF,U.Xw,U.JA,U.T2,t)});
  7512. g.C(this,this.Hv);this.DY=to(function(){return new PA(U.T2)});
  7513. g.C(this,this.DY);this.xZ=new zb(f6,AT,function(K,P,w,l){return H_(J.get(),K,P,w,l)},N,R,J,h,this.T2,this.Xw);
  7514. g.C(this,this.xZ);this.Q5=new iv(N,H,T,this.T2,d,this.Xw,this.Yx,this.yU);g.C(this,this.Q5);var n=new Sk(q,this.Q5,this.Yx,this.Xw,this.eT);this.H4=to(function(){return n});
  7515. this.Da=n;this.qM=new C6(N,R,this.H4,this.eT,this.Yx,this.T2,this.Hv);g.C(this,this.qM);this.Np=new mo(N,R,this.l$,this.H4,p);g.C(this,this.Np);this.pH=new Yq(this.T2,N,R,H,this.Xw,this.Np,T,this.UF);g.C(this,this.pH);this.jV=to(function(){return new TS(y,J,h,U.T2,U.Hv,U.Yx)});
  7516. g.C(this,this.jV);this.jh=to(function(){return new Yu});
  7517. g.C(this,this.jh);this.fA=new TD(d,this.kB,this.T2);g.C(this,this.fA);this.F9=new YC(d);g.C(this,this.F9);this.Q4=new eN(d);g.C(this,this.Q4);this.Xn=new bq(d,this.H4,p);g.C(this,this.Xn);this.xP=new X4(d,this.l$,this.Yx,this.Xw,p);g.C(this,this.xP);this.MU=new sT(d);g.C(this,this.MU);this.FT=new $C(d);g.C(this,this.FT);this.RP=new Rm(d);g.C(this,this.RP);this.Gq=to(function(){return new jy(q)});
  7518. g.C(this,this.Gq);this.bC=new xC(d);g.C(this,this.bC);this.NU=new gg(d,this.eT,this.Yx,this.Hv,this.H4,this.qM);g.C(this,this.NU);this.GA=to(function(){return new ox});
  7519. g.C(this,this.GA);this.Ap=to(function(){return new VE(U.Yx)});
  7520. g.C(this,this.Ap);this.oQ=to(function(){return new uO(U.pH,N,b)});
  7521. g.C(this,this.oQ);this.IQ=to(function(){return new fw(U.T2,U.Hv,U.MU,U.iF)});
  7522. g.C(this,this.IQ);this.kT=to(function(){return new XmN(U.kB,U.Yx,U.Hv,F,U.iF,U.Q4,U.RP,U.hA,U.T2,T)});
  7523. g.C(this,this.kT);this.Dp=to(function(){return new nd(d,U.bC,U.MU,U.Hv,U.iF,U.DY,U.UF,U.Xw,U.Yx,U.ol,U.l$,U.yU,U.FC,U.hA,U.XW,U.T2,U.Gq,p,t)});
  7524. g.C(this,this.Dp);this.gw=new y_(d,this.Ui,b);g.C(this,this.gw);this.Rt={GW:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.pH],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.qM],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.xZ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Q5],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Np]]),Xg:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.jV],["SLOT_TYPE_FORECASTING",this.jh],["SLOT_TYPE_IN_PLAYER",this.jh],
  7525. ["SLOT_TYPE_PLAYER_BYTES",this.jh]]),QP:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.fA],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.F9],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.F9],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.F9],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.F9],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.F9],["TRIGGER_TYPE_SLOT_ID_EXITED",this.F9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.F9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.F9],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.F9],
  7526. ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.F9],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Q4],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xn],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.xP],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.xP],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.xP],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.MU],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Xn],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.FT],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",
  7527. this.RP],["TRIGGER_TYPE_AD_BREAK_STARTED",this.bC],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.NU],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.NU],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.NU],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.NU],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.NU]]),kI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.GA],["SLOT_TYPE_FORECASTING",this.GA],["SLOT_TYPE_IN_PLAYER",this.GA],["SLOT_TYPE_PLAYER_BYTES",this.Ap]]),
  7528. iI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.oQ],["SLOT_TYPE_FORECASTING",this.IQ],["SLOT_TYPE_IN_PLAYER",this.kT],["SLOT_TYPE_PLAYER_BYTES",this.Dp]])};this.listeners=[F.get()];this.Em={pH:this.pH,u9:this.T2.get(),Nk:this.hA.get(),oV:this.Yx.get(),Q5:this.Q5,Bu:b.get(),QI:this.Ui.get(),je:this.fA,NF:F.get(),kP:this.Xw.get()}};
  7529. oD7=function(d,q,T,Y,e){g.W.call(this);var U=this,b=to(function(){return new yI(U.T2)});
  7530. g.C(this,b);var J=to(function(){return new HN(b,U.T2)});
  7531. g.C(this,J);var F=to(function(){return new Si});
  7532. g.C(this,F);var N=to(function(){return new Ix(d)});
  7533. g.C(this,N);var R=to(function(){return new QI(b,J,U.T2)});
  7534. g.C(this,R);var x=to(function(){return new am});
  7535. g.C(this,x);this.kB=to(function(){return new He(q)});
  7536. g.C(this,this.kB);this.hA=to(function(){return new Ku(e)});
  7537. g.C(this,this.hA);this.yU=to(function(){return new l6(q)});
  7538. g.C(this,this.yU);this.l$=to(function(){return new v1(q)});
  7539. g.C(this,this.l$);this.UF=to(function(){return new oU(q)});
  7540. g.C(this,this.UF);this.FC=to(function(){return new V3(q)});
  7541. g.C(this,this.FC);this.T2=to(function(){return new dB(q)});
  7542. g.C(this,this.T2);var y=to(function(){return new hT(Y)});
  7543. g.C(this,y);var h=to(function(){return new eh(U.T2)});
  7544. g.C(this,h);var H=to(function(){return new kq(b,R,J,U.T2,h,null,null,null,null)});
  7545. g.C(this,H);this.XW=to(function(){return new EW(q)});
  7546. g.C(this,this.XW);this.Xw=to(function(){return new sW(q,x,U.T2)});
  7547. g.C(this,this.Xw);var a=mK({Xw:this.Xw,T2:this.T2,KH:h}),p=a.context,t=a.Df;this.JA=a.JA;this.Yx=to(function(){return new $$(q,U.Xw,U.T2)});
  7548. g.C(this,this.Yx);this.ol=to(function(){return new aP});
  7549. g.C(this,this.ol);this.iF=to(function(){return new Y$(U.Yx,q,U.T2)});
  7550. g.C(this,this.iF);this.Hv=to(function(){return new JT(q,F,U.iF,U.Xw,U.JA,U.T2,t)});
  7551. g.C(this,this.Hv);this.DY=to(function(){return new PA(U.T2)});
  7552. g.C(this,this.DY);this.xZ=new zb(f6,AT,function(K,P,w,l){return H_(J.get(),K,P,w,l)},N,R,J,h,this.T2,this.Xw);
  7553. g.C(this,this.xZ);this.Q5=new iv(N,H,T,this.T2,d,this.Xw,this.Yx,this.yU);g.C(this,this.Q5);var n=new Sk(q,this.Q5,this.Yx,this.Xw);this.H4=to(function(){return n});
  7554. this.Da=n;this.Np=new mo(N,R,this.l$,this.H4,p);g.C(this,this.Np);this.pH=new Yq(this.T2,N,R,H,this.Xw,this.Np,T,this.UF);g.C(this,this.pH);this.jV=to(function(){return new TS(y,J,h,U.T2,U.Hv,U.Yx)});
  7555. g.C(this,this.jV);this.jh=to(function(){return new Yu});
  7556. g.C(this,this.jh);this.fA=new TD(d,this.kB,this.T2);g.C(this,this.fA);this.F9=new YC(d);g.C(this,this.F9);this.Xn=new bq(d,this.H4,p);g.C(this,this.Xn);this.xP=new X4(d,this.l$,this.Yx,this.Xw,p);g.C(this,this.xP);this.MU=new sT(d);g.C(this,this.MU);this.FT=new $C(d);g.C(this,this.FT);this.Gq=to(function(){return new jy(q)});
  7557. g.C(this,this.Gq);this.bC=new xC(d);g.C(this,this.bC);this.GA=to(function(){return new ox});
  7558. g.C(this,this.GA);this.Ap=to(function(){return new VE(U.Yx)});
  7559. g.C(this,this.Ap);this.oQ=to(function(){return new uO(U.pH,N,b)});
  7560. g.C(this,this.oQ);this.IQ=to(function(){return new fw(U.T2,U.Hv,U.MU,U.iF)});
  7561. g.C(this,this.IQ);this.n4=to(function(){return new HMN(U.kB,U.Yx,U.Hv,F,T,U.T2)});
  7562. g.C(this,this.n4);this.Dp=to(function(){return new nd(d,U.bC,U.MU,U.Hv,U.iF,U.DY,U.UF,U.Xw,U.Yx,U.ol,U.l$,U.yU,U.FC,U.hA,U.XW,U.T2,U.Gq,p,t)});
  7563. g.C(this,this.Dp);this.Rt={GW:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.pH],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.xZ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Q5],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Np]]),Xg:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.jV],["SLOT_TYPE_FORECASTING",this.jh],["SLOT_TYPE_IN_PLAYER",this.jh],["SLOT_TYPE_PLAYER_BYTES",this.jh]]),QP:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.fA],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
  7564. this.F9],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.F9],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.F9],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.F9],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.F9],["TRIGGER_TYPE_SLOT_ID_EXITED",this.F9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.F9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.F9],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.F9],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xn],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.xP],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
  7565. this.xP],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.MU],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Xn],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.FT],["TRIGGER_TYPE_AD_BREAK_STARTED",this.bC]]),kI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.GA],["SLOT_TYPE_ABOVE_FEED",this.GA],["SLOT_TYPE_FORECASTING",this.GA],["SLOT_TYPE_IN_PLAYER",this.GA],["SLOT_TYPE_PLAYER_BYTES",this.Ap]]),iI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.oQ],["SLOT_TYPE_FORECASTING",this.IQ],["SLOT_TYPE_IN_PLAYER",
  7566. this.n4],["SLOT_TYPE_PLAYER_BYTES",this.Dp]])};this.listeners=[F.get()];this.Em={pH:this.pH,u9:this.T2.get(),Nk:this.hA.get(),oV:this.Yx.get(),Q5:this.Q5,Bu:b.get(),QI:null,je:this.fA,NF:F.get(),kP:this.Xw.get()}};
  7567. Vb1=function(d,q,T,Y,e){g.W.call(this);var U=this,b=to(function(){return new yI(U.T2)});
  7568. g.C(this,b);var J=to(function(){return new HN(b,U.T2)});
  7569. g.C(this,J);var F=to(function(){return new Si});
  7570. g.C(this,F);var N=to(function(){return new Ix(d)});
  7571. g.C(this,N);var R=to(function(){return new QI(b,J,U.T2)});
  7572. g.C(this,R);var x=to(function(){return new am});
  7573. g.C(this,x);this.uV=to(function(){return new S1n(q)});
  7574. g.C(this,this.uV);this.kB=to(function(){return new He(q)});
  7575. g.C(this,this.kB);this.hA=to(function(){return new Ku(e)});
  7576. g.C(this,this.hA);this.yU=to(function(){return new l6(q)});
  7577. g.C(this,this.yU);this.l$=to(function(){return new v1(q)});
  7578. g.C(this,this.l$);this.UF=to(function(){return new oU(q)});
  7579. g.C(this,this.UF);this.FC=to(function(){return new V3(q)});
  7580. g.C(this,this.FC);this.T2=to(function(){return new dB(q)});
  7581. g.C(this,this.T2);var y=to(function(){return new hT(Y)});
  7582. g.C(this,y);var h=to(function(){return new eh(U.T2)});
  7583. g.C(this,h);var H=to(function(){return new kq(b,R,J,U.T2,h,null,null,null,null)});
  7584. g.C(this,H);this.XW=to(function(){return new EW(q)});
  7585. g.C(this,this.XW);this.Xw=to(function(){return new sW(q,x,U.T2)});
  7586. g.C(this,this.Xw);var a=mK({Xw:this.Xw,T2:this.T2,KH:h}),p=a.context,t=a.Df;this.JA=a.JA;this.Yx=to(function(){return new $$(q,U.Xw,U.T2)});
  7587. g.C(this,this.Yx);this.ol=to(function(){return new aP});
  7588. g.C(this,this.ol);this.iF=to(function(){return new Y$(U.Yx,q,U.T2)});
  7589. g.C(this,this.iF);this.Hv=to(function(){return new JT(q,F,U.iF,U.Xw,U.JA,U.T2,t)});
  7590. g.C(this,this.Hv);this.DY=to(function(){return new PA(U.T2)});
  7591. g.C(this,this.DY);this.xZ=new zb(zr1,AT,function(K,P,w,l){return Roj(J.get(),K,P,w,l)},N,R,J,h,this.T2,this.Xw);
  7592. g.C(this,this.xZ);this.Q5=new iv(N,H,T,this.T2,d,this.Xw,this.Yx,this.yU);g.C(this,this.Q5);var n=new Sk(q,this.Q5,this.Yx,this.Xw);this.H4=to(function(){return n});
  7593. this.Da=n;this.Np=new mo(N,R,this.l$,this.H4,p);g.C(this,this.Np);this.pH=new Yq(this.T2,N,R,H,this.Xw,this.Np,T,this.UF);g.C(this,this.pH);this.jV=to(function(){return new TS(y,J,h,U.T2,U.Hv,U.Yx)});
  7594. g.C(this,this.jV);this.jh=to(function(){return new Yu});
  7595. g.C(this,this.jh);this.fA=new TD(d,this.kB,this.T2);g.C(this,this.fA);this.F9=new YC(d);g.C(this,this.F9);this.Xn=new bq(d,this.H4,p);g.C(this,this.Xn);this.xP=new X4(d,this.l$,this.Yx,this.Xw,p);g.C(this,this.xP);this.MU=new sT(d);g.C(this,this.MU);this.FT=new $C(d);g.C(this,this.FT);this.Gq=to(function(){return new jy(q)});
  7596. g.C(this,this.Gq);this.bC=new xC(d);g.C(this,this.bC);this.GA=to(function(){return new ox});
  7597. g.C(this,this.GA);this.Ap=to(function(){return new VE(U.Yx)});
  7598. g.C(this,this.Ap);this.oQ=to(function(){return new uO(U.pH,N,b)});
  7599. g.C(this,this.oQ);this.IQ=to(function(){return new fw(U.T2,U.Hv,U.MU,U.iF)});
  7600. g.C(this,this.IQ);this.Dp=to(function(){return new nd(d,U.bC,U.MU,U.Hv,U.iF,U.DY,U.UF,U.Xw,U.Yx,U.ol,U.l$,U.yU,U.FC,U.hA,U.XW,U.T2,U.Gq,p,t)});
  7601. g.C(this,this.Dp);this.Ir=to(function(){return new saY(U.kB,U.Yx,U.Hv,F,U.uV,T,U.Xw)});
  7602. g.C(this,this.Ir);this.Rt={GW:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.pH],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.xZ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Q5],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Np]]),Xg:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.jV],["SLOT_TYPE_FORECASTING",this.jh],["SLOT_TYPE_IN_PLAYER",this.jh],["SLOT_TYPE_PLAYER_BYTES",this.jh]]),QP:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.fA],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
  7603. this.F9],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.F9],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.F9],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.F9],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.F9],["TRIGGER_TYPE_SLOT_ID_EXITED",this.F9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.F9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.F9],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.F9],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xn],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.xP],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
  7604. this.xP],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.MU],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Xn],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.FT],["TRIGGER_TYPE_AD_BREAK_STARTED",this.bC]]),kI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.GA],["SLOT_TYPE_FORECASTING",this.GA],["SLOT_TYPE_IN_PLAYER",this.GA],["SLOT_TYPE_PLAYER_BYTES",this.Ap]]),iI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.oQ],["SLOT_TYPE_FORECASTING",this.IQ],["SLOT_TYPE_IN_PLAYER",this.Ir],["SLOT_TYPE_PLAYER_BYTES",
  7605. this.Dp]])};this.listeners=[F.get()];this.Em={pH:this.pH,u9:this.T2.get(),Nk:this.hA.get(),oV:this.Yx.get(),Q5:this.Q5,Bu:b.get(),QI:null,je:this.fA,NF:F.get(),kP:this.Xw.get()}};
  7606. dHN=function(d,q,T,Y,e){g.W.call(this);var U=this,b=to(function(){return new yI(U.T2)});
  7607. g.C(this,b);var J=to(function(){return new HN(b,U.T2)});
  7608. g.C(this,J);var F=to(function(){return new Si});
  7609. g.C(this,F);var N=to(function(){return new Ix(d)});
  7610. g.C(this,N);var R=to(function(){return new QI(b,J,U.T2)});
  7611. g.C(this,R);var x=to(function(){return new am});
  7612. g.C(this,x);this.uV=to(function(){return new S1n(q)});
  7613. g.C(this,this.uV);this.kB=to(function(){return new He(q)});
  7614. g.C(this,this.kB);this.hA=to(function(){return new Ku(e)});
  7615. g.C(this,this.hA);this.yU=to(function(){return new l6(q)});
  7616. g.C(this,this.yU);this.l$=to(function(){return new v1(q)});
  7617. g.C(this,this.l$);this.UF=to(function(){return new oU(q)});
  7618. g.C(this,this.UF);this.FC=to(function(){return new V3(q)});
  7619. g.C(this,this.FC);this.T2=to(function(){return new dB(q)});
  7620. g.C(this,this.T2);var y=to(function(){return new hT(Y)});
  7621. g.C(this,y);var h=to(function(){return new eh(U.T2)});
  7622. g.C(this,h);this.XW=to(function(){return new EW(q)});
  7623. g.C(this,this.XW);this.Xw=to(function(){return new sW(q,x,U.T2)});
  7624. g.C(this,this.Xw);var H=mK({Xw:this.Xw,T2:this.T2,KH:h}),a=H.context,p=H.Df;this.JA=H.JA;this.eT=to(function(){return new ce(q,U.T2,U.Hv)});
  7625. g.C(this,this.eT);this.Gq=to(function(){return new jy(q)});
  7626. g.C(this,this.Gq);this.Yx=to(function(){return new $$(q,U.Xw,U.T2)});
  7627. g.C(this,this.Yx);this.ol=to(function(){return new aP});
  7628. g.C(this,this.ol);H=to(function(){return new kq(b,R,J,U.T2,h,null,U.Yx,U.qM,U.NU,3)});
  7629. g.C(this,H);this.DY=to(function(){return new PA(U.T2)});
  7630. this.iF=to(function(){return new Y$(U.Yx,q,U.T2)});
  7631. g.C(this,this.iF);this.Hv=to(function(){return new JT(q,F,U.iF,U.Xw,U.JA,U.T2,p)});
  7632. g.C(this,this.Hv);this.Q5=new iv(N,H,T,this.T2,d,this.Xw,this.Yx,this.yU);g.C(this,this.Q5);var t=new Sk(q,this.Q5,this.Yx,this.Xw,this.eT);this.H4=to(function(){return t});
  7633. this.Da=t;this.xZ=new zb(i3g,AT,function(n,K,P,w){return Roj(J.get(),n,K,P,w)},N,R,J,h,this.T2,this.Xw);
  7634. g.C(this,this.xZ);this.qM=new C6(N,R,this.H4,this.eT,this.Yx,this.T2,this.Hv,this.Gq);g.C(this,this.qM);this.Np=new mo(N,R,this.l$,this.H4,a);g.C(this,this.Np);this.pH=new Yq(this.T2,N,R,H,this.Xw,this.Np,T,this.UF);g.C(this,this.pH);this.jV=to(function(){return new TS(y,J,h,U.T2,U.Hv,U.Yx,U.Gq)});
  7635. g.C(this,this.jV);this.jh=to(function(){return new Yu});
  7636. g.C(this,this.jh);this.fA=new TD(d,this.kB,this.T2);g.C(this,this.fA);this.F9=new YC(d);g.C(this,this.F9);this.Xn=new bq(d,this.H4,a);g.C(this,this.Xn);this.xP=new X4(d,this.l$,this.Yx,this.Xw,a);g.C(this,this.xP);this.rd=new JH(d,this.Xw);g.C(this,this.rd);this.NU=new gg(d,this.eT,this.Yx,this.Hv,this.H4,this.qM);g.C(this,this.NU);this.MU=new sT(d);g.C(this,this.MU);this.FT=new $C(d);g.C(this,this.FT);this.bC=new xC(d);g.C(this,this.bC);this.GA=to(function(){return new ox});
  7637. g.C(this,this.GA);this.Ap=to(function(){return new VE(U.Yx)});
  7638. g.C(this,this.Ap);this.oQ=to(function(){return new uO(U.pH,N,b)});
  7639. g.C(this,this.oQ);this.IQ=to(function(){return new fw(U.T2,U.Hv,U.MU,U.iF)});
  7640. g.C(this,this.IQ);this.Dp=to(function(){return new O_(d,U.bC,U.MU,U.Xw,U.Gq,U.Yx,U.ol,U.Hv,x,U.eT,U.iF,U.DY,U.UF,U.l$,U.yU,U.FC,U.hA,U.XW,U.T2,F,a,p)});
  7641. g.C(this,this.Dp);this.kT=to(function(){return new $3_(U.kB,U.Yx,U.Hv,F,U.uV,T,U.T2,U.Xw)});
  7642. g.C(this,this.kT);this.Rt={GW:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.pH],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.qM],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.xZ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Q5],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Np]]),Xg:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.jV],["SLOT_TYPE_FORECASTING",this.jh],["SLOT_TYPE_IN_PLAYER",this.jh],["SLOT_TYPE_PLAYER_BYTES",this.jh]]),QP:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",
  7643. this.fA],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.F9],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.F9],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.F9],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.F9],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.F9],["TRIGGER_TYPE_SLOT_ID_EXITED",this.F9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.F9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.F9],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.F9],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xn],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",
  7644. this.xP],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.xP],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.rd],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.rd],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.MU],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Xn],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.FT],["TRIGGER_TYPE_AD_BREAK_STARTED",this.bC],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.NU],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",
  7645. this.NU],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.NU],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.NU],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.NU]]),kI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.GA],["SLOT_TYPE_FORECASTING",this.GA],["SLOT_TYPE_IN_PLAYER",this.GA],["SLOT_TYPE_PLAYER_BYTES",this.Ap]]),iI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.oQ],["SLOT_TYPE_FORECASTING",this.IQ],["SLOT_TYPE_PLAYER_BYTES",this.Dp],["SLOT_TYPE_IN_PLAYER",this.kT]])};this.listeners=[F.get()];
  7646. this.Em={pH:this.pH,u9:this.T2.get(),Nk:this.hA.get(),oV:this.Yx.get(),Q5:this.Q5,Bu:b.get(),QI:null,je:this.fA,NF:F.get(),kP:this.Xw.get()}};
  7647. TI_=function(d,q,T,Y){function e(){return U.U}
  7648. g.W.call(this);var U=this;d.C().experiments.Wv("html5_dispose_of_manager_before_dependency")?(this.G=q6Q(e,d,q,T,Y),this.U=(new BA(this.G)).j(),g.C(this,this.U),g.C(this,this.G)):(this.G=q6Q(e,d,q,T,Y),g.C(this,this.G),this.U=(new BA(this.G)).j(),g.C(this,this.U))};
  7649. pr=function(d){return d.G.Em};
  7650. q6Q=function(d,q,T,Y,e){try{var U=q.C();if(g.cT(U))var b=new l8N(d,q,T,Y,e);else if(g.an(U))b=new vDX(d,q,T,Y,e);else if(Ni(U))b=new oD7(d,q,T,Y,e);else if(g.KG(U))b=new Vb1(d,q,T,Y,e);else if(g.XW(U))b=new dHN(d,q,T,Y,e);else throw new TypeError("Unknown web interface");return b}catch(J){return b=q.C(),Jm("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:b.G.cplatform,interface:b.G.c,gHf:b.G.cver,As5:b.G.ctheme,x2D:b.G.cplayer,msv:b.playerStyle}),new Cdf(d,q,T,Y,e)}};
  7651. Y6c=function(d){uE.call(this,d)};
  7652. enE=function(d,q,T,Y,e){Sx.call(this,d,{Y:"div",D:"ytp-ad-timed-pie-countdown-container",V:[{Y:"svg",D:"ytp-ad-timed-pie-countdown",Z:{viewBox:"0 0 20 20"},V:[{Y:"circle",D:"ytp-ad-timed-pie-countdown-background",Z:{r:"10",cx:"10",cy:"10"}},{Y:"circle",D:"ytp-ad-timed-pie-countdown-inner",Z:{r:"5",cx:"10",cy:"10"}},{Y:"circle",D:"ytp-ad-timed-pie-countdown-outer",Z:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",q,T,Y,e);this.T=this.Qv("ytp-ad-timed-pie-countdown-container");this.j=this.Qv("ytp-ad-timed-pie-countdown-inner");
  7653. this.X=this.Qv("ytp-ad-timed-pie-countdown-outer");this.U=Math.ceil(2*Math.PI*5);this.hide()};
  7654. UH7=function(d,q,T,Y,e,U){sx.call(this,d,{Y:"div",D:"ytp-ad-action-interstitial",Z:{tabindex:"0"},V:[{Y:"div",D:"ytp-ad-action-interstitial-background-container"},{Y:"div",D:"ytp-ad-action-interstitial-slot",V:[{Y:"div",D:"ytp-ad-action-interstitial-instream-info"},{Y:"div",D:"ytp-ad-action-interstitial-card",V:[{Y:"div",D:"ytp-ad-action-interstitial-image-container"},{Y:"div",D:"ytp-ad-action-interstitial-headline-container"},{Y:"div",D:"ytp-ad-action-interstitial-description-container"},{Y:"div",
  7655. D:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",q,T,Y);this.C_=e;this.jO=U;this.navigationEndpoint=this.G=this.skipButton=this.U=this.actionButton=null;this.RU=this.Qv("ytp-ad-action-interstitial-instream-info");this.aU=this.Qv("ytp-ad-action-interstitial-image-container");this.K=new kP(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,"ytp-ad-action-interstitial-image");g.C(this,this.K);this.K.IU(this.aU);this.z2=this.Qv("ytp-ad-action-interstitial-headline-container");
  7656. this.X=new Ih(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,"ytp-ad-action-interstitial-headline");g.C(this,this.X);this.X.IU(this.z2);this.UD=this.Qv("ytp-ad-action-interstitial-description-container");this.j=new Ih(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,"ytp-ad-action-interstitial-description");g.C(this,this.j);this.j.IU(this.UD);this.Bv=this.Qv("ytp-ad-action-interstitial-background-container");this.qk=new kP(this.api,this.layoutId,this.interactionLoggingClientData,
  7657. this.Nk,"ytp-ad-action-interstitial-background",!0);g.C(this,this.qk);this.qk.IU(this.Bv);this.Fw=this.Qv("ytp-ad-action-interstitial-action-button-container");this.slot=this.Qv("ytp-ad-action-interstitial-slot");this.mj=this.Qv("ytp-ad-action-interstitial-card");this.T=new cu;g.C(this,this.T);this.hide()};
  7658. bNj=function(d){var q=g.bY("html5-video-player");q&&g.ep(q,"ytp-ad-display-override",d)};
  7659. $HB=function(d,q,T,Y){sx.call(this,d,{Y:"div",D:"ytp-ad-overlay-slot",V:[{Y:"div",D:"ytp-ad-overlay-container"}]},"invideo-overlay",q,T,Y);this.K=[];this.Bv=this.z2=this.T=this.Fw=this.RU=null;this.qk=!1;this.X=null;this.UD=0;d=this.Qv("ytp-ad-overlay-container");this.aU=new Yo(d,45E3,6E3,.3,.4);g.C(this,this.aU);this.j=Xg_(this);g.C(this,this.j);this.j.IU(d);this.U=JYl(this);g.C(this,this.U);this.U.IU(d);this.G=sQ7(this);g.C(this,this.G);this.G.IU(d);this.hide()};
  7660. Xg_=function(d){var q=new g.Ji({Y:"div",D:"ytp-ad-text-overlay",V:[{Y:"div",D:"ytp-ad-overlay-ad-info-button-container"},{Y:"div",D:"ytp-ad-overlay-close-container",V:[{Y:"button",D:"ytp-ad-overlay-close-button",V:[Ox(g2N)]}]},{Y:"div",D:"ytp-ad-overlay-title",j5:"{{title}}"},{Y:"div",D:"ytp-ad-overlay-desc",j5:"{{description}}"},{Y:"div",hF:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],j5:"{{displayUrl}}"}]});d.W(q.Qv("ytp-ad-overlay-title"),"click",function(T){Zr(d,q.element,T)});
  7661. d.W(q.Qv("ytp-ad-overlay-link"),"click",function(T){Zr(d,q.element,T)});
  7662. d.W(q.Qv("ytp-ad-overlay-close-container"),"click",d.ZR);q.hide();return q};
  7663. JYl=function(d){var q=new g.Ji({Y:"div",hF:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],V:[{Y:"div",D:"ytp-ad-overlay-ad-info-button-container"},{Y:"div",D:"ytp-ad-overlay-close-container",V:[{Y:"button",D:"ytp-ad-overlay-close-button",V:[Ox(g2N)]}]},{Y:"div",D:"ytp-ad-overlay-text-image",V:[{Y:"img",Z:{src:"{{imageUrl}}"}}]},{Y:"div",D:"ytp-ad-overlay-title",j5:"{{title}}"},{Y:"div",D:"ytp-ad-overlay-desc",j5:"{{description}}"},{Y:"div",hF:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
  7664. j5:"{{displayUrl}}"}]});d.W(q.Qv("ytp-ad-overlay-title"),"click",function(T){Zr(d,q.element,T)});
  7665. d.W(q.Qv("ytp-ad-overlay-link"),"click",function(T){Zr(d,q.element,T)});
  7666. d.W(q.Qv("ytp-ad-overlay-close-container"),"click",d.ZR);d.W(q.Qv("ytp-ad-overlay-text-image"),"click",d.oor);q.hide();return q};
  7667. sQ7=function(d){var q=new g.Ji({Y:"div",D:"ytp-ad-image-overlay",V:[{Y:"div",D:"ytp-ad-overlay-ad-info-button-container"},{Y:"div",D:"ytp-ad-overlay-close-container",V:[{Y:"button",D:"ytp-ad-overlay-close-button",V:[Ox(g2N)]}]},{Y:"div",D:"ytp-ad-overlay-image",V:[{Y:"img",Z:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});d.W(q.Qv("ytp-ad-overlay-image"),"click",function(T){Zr(d,q.element,T)});
  7668. d.W(q.Qv("ytp-ad-overlay-close-container"),"click",d.ZR);q.hide();return q};
  7669. FjN=function(d,q){if(q){var T=g.D(q,VP)||null;T==null?g.Zz(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(q=g.bY("video-ads ytp-ad-module")||null,q==null?g.Zz(Error("Could not locate the root ads container element to attach the ad info dialog.")):(d.z2=new g.Ji({Y:"div",D:"ytp-ad-overlay-ad-info-dialog-container"}),g.C(d,d.z2),d.z2.IU(q),q=new iE(d.api,d.layoutId,d.interactionLoggingClientData,d.Nk,d.z2.element,!1),g.C(d,q),q.init(qP("ad-info-hover-text-button"),T,d.macros),
  7670. d.X?(q.IU(d.X,0),q.subscribe("f",d.bfr,d),q.subscribe("e",d.YC,d),d.W(d.X,"click",d.awZ),d.W(g.bY("ytp-ad-button",q.element),"click",function(){var Y;if(g.D((Y=g.D(T.button,g.q6))==null?void 0:Y.serviceEndpoint,Y2j))d.qk=d.api.getPlayerState(1)===2,d.api.pauseVideo();else d.api.onAdUxClicked("ad-info-hover-text-button",d.layoutId)}),d.Bv=q):g.Zz(Error("Ad info button container within overlay ad was not present."))))}else g.OL(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
  7671. RnE=function(d,q){if(NIN(d,OW)||d.api.isMinimized())return!1;var T=$P(q.title),Y=$P(q.description);if(g.nh(T)||g.nh(Y))return!1;d.createServerVe(d.j.element,q.trackingParams||null);d.j.updateValue("title",$P(q.title));d.j.updateValue("description",$P(q.description));d.j.updateValue("displayUrl",$P(q.displayUrl));q.navigationEndpoint&&g.tE(d.K,q.navigationEndpoint);d.j.show();d.aU.start();d.logVisibility(d.j.element,!0);d.W(d.j.element,"mouseover",function(){d.UD++});
  7672. return!0};
  7673. xH7=function(d,q){if(NIN(d,OW)||d.api.isMinimized())return!1;var T=$P(q.title),Y=$P(q.description);if(g.nh(T)||g.nh(Y))return!1;d.createServerVe(d.U.element,q.trackingParams||null);d.U.updateValue("title",$P(q.title));d.U.updateValue("description",$P(q.description));d.U.updateValue("displayUrl",$P(q.displayUrl));d.U.updateValue("imageUrl",N8g(q.image));q.navigationEndpoint&&g.tE(d.K,q.navigationEndpoint);d.Fw=q.imageNavigationEndpoint||null;d.U.show();d.aU.start();d.logVisibility(d.U.element,!0);
  7674. d.W(d.U.element,"mouseover",function(){d.UD++});
  7675. return!0};
  7676. yYn=function(d,q){if(d.api.isMinimized())return!1;var T=RT1(q.image),Y=T;T.width<OW.width&&(Y=OW);if(T.width===0||T.height===0||NIN(d,Y))return!1;d.createServerVe(d.G.element,q.trackingParams||null);d.G.updateValue("imageUrl",N8g(q.image));d.G.updateValue("width",T.width);d.G.updateValue("height",T.height);q.navigationEndpoint&&g.tE(d.K,q.navigationEndpoint);g.Dv(d.G.Qv("ytp-ad-image-overlay"),"max-width",T.width+"px");d.G.show();d.logVisibility(d.G.element,!0);d.W(d.G.element,"mouseover",function(){d.UD++;
  7677. d.api.B5("invideo-overlay",d.layoutId)});
  7678. d.W(d.G.element,"mouseout",function(){d.api.W5("invideo-overlay",d.layoutId)});
  7679. return!0};
  7680. NIN=function(d,q){var T=d.api.OD().yS(),Y=d.api.Xb(!0,!1);return(q=Kd(T,T.height-(Y.height+Y.top),q))?(d.RU&&q&&(T=g.x9(d.macros),T.ERRORCODE=q.Ej.toString(),T.ERROR_MSG=q.errorMessage,d.layoutId?Lu(d.Nk,d.RU,d.layoutId,T):g.Zz(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1};
  7681. Zr=function(d,q,T){var Y=g.x9(d.macros),e=g.Vp(q);Y.AW={toString:function(){return e.width.toString()}};
  7682. Y.AH={toString:function(){return e.height.toString()}};
  7683. var U=g.vB(T,q).floor();Y.I_X={toString:function(){return U.x.toString()}};
  7684. Y.NX={toString:function(){return U.x.toString()}};
  7685. Y.I_Y={toString:function(){return U.y.toString()}};
  7686. Y.NY={toString:function(){return U.y.toString()}};
  7687. Y.NM={toString:function(){return d.UD.toString()}};
  7688. q=g.E(d.K);for(T=q.next();!T.done;T=q.next())T=T.value,d.layoutId?Lu(d.Nk,T,d.layoutId,Y):g.Zz(Error("Missing layoutId for invideo_overlay_ad."));d.api.pauseVideo()};
  7689. hnj=function(d,q){d=d.api.getRootNode();g.ep(d,"ytp-ad-overlay-open",q);g.ep(d,"ytp-ad-overlay-closed",!q)};
  7690. HNR=function(d,q,T,Y,e){Sx.call(this,d,{Y:"div",D:"ytp-ad-message-overlay",V:[{Y:"div",D:"ytp-ad-message-slot"}]},"ad-message",q,T,Y,e);var U=this;this.X=-1;this.j=0;this.UD=!1;this.z2=this.Qv("ytp-ad-message-slot");this.U=new g.Ji({Y:"span",D:"ytp-ad-message-container"});this.U.IU(this.z2);g.C(this,this.U);this.messageText=new Ih(this.api,this.layoutId,this.interactionLoggingClientData,Y,"ytp-ad-message-text");g.C(this,this.messageText);this.messageText.IU(this.U.element);this.T=new g.oh(this.U,
  7691. 400,!1,100,function(){U.hide()});
  7692. g.C(this,this.T);this.hide()};
  7693. QQE=function(d,q){d=d.api.getRootNode();g.ep(d,"ytp-ad-overlay-open",q);g.ep(d,"ytp-ad-overlay-closed",!q)};
  7694. MDN=function(d,q,T,Y){sx.call(this,d,{Y:"div",D:"ytp-ad-underlay-companion",V:[{Y:"div",D:"ytp-ad-underlay-side-container",V:[{Y:"div",D:"ytp-ad-underlay-image-container"},{Y:"div",D:"ytp-ad-underlay-description-container"},{Y:"div",D:"ytp-ad-underlay-headline-container"},{Y:"div",D:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",q,T,Y);this.actionButton=null;this.z2=this.Qv("ytp-ad-underlay-image-container");this.j=new kP(this.api,this.layoutId,this.interactionLoggingClientData,
  7695. this.Nk,"ytp-ad-underlay-image");g.C(this,this.j);this.j.IU(this.z2);this.UD=this.Qv("ytp-ad-underlay-headline-container");this.U=new Ih(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,"ytp-ad-underlay-headline");g.C(this,this.U);this.U.IU(this.UD);this.K=this.Qv("ytp-ad-underlay-description-container");this.T=new Ih(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,"ytp-ad-underlay-description");g.C(this,this.T);this.T.IU(this.K);this.X=this.Qv("ytp-ad-underlay-action-button-container");
  7696. this.G=this.Qv("ytp-ad-underlay-side-container");this.hide()};
  7697. cYx=function(d){var q=g.bY("html5-video-player");q&&g.ep(q,"ytp-ad-display-override",d)};
  7698. nr=function(d,q,T,Y,e,U){U=U===void 0?function(){}:U;
  7699. sx.call(this,d,{Y:"div",D:"ytp-ad-survey-answer"},"survey-answer",q,T,Y);this.index=e;this.onSelected=U;this.G=null;this.toggledLoggingParams="";this.answer=this.Qv("ytp-ad-survey-answer");this.hide()};
  7700. E2j=function(d,q,T,Y){sx.call(this,d,{Y:"div",D:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",q,T,Y);this.button=null;this.G=this.Qv("ytp-ad-survey-none-of-the-above");this.hide()};
  7701. rB=function(d,q,T,Y){var e=["ytp-ad-survey-submit-button"];e.push("ytp-ad-survey-submit-button-rounded");nM.call(this,d,q,T,Y,e,"survey-submit")};
  7702. tT=function(d,q,T,Y,e){sx.call(this,d,{Y:"div",D:"ytp-ad-survey-player-overlay",V:[{Y:"div",D:"ytp-ad-survey-player-overlay-instream-info"},{Y:"div",D:"ytp-ad-survey-player-overlay-skip-preview-submit",V:[{Y:"div",D:"ytp-ad-survey-player-overlay-skip-or-preview"},{Y:"div",D:"ytp-ad-survey-player-overlay-submit"}]},{Y:"div",D:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",q,T,Y);this.T=e;this.U=this.G=null;this.j=this.Qv("ytp-ad-survey-player-overlay-instream-info");
  7703. this.skipOrPreview=this.Qv("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.Qv("ytp-ad-survey-player-overlay-submit");g.C(this,this.T);this.hide()};
  7704. Be=function(d,q,T,Y,e,U){U=U===void 0?function(){}:U;
  7705. sx.call(this,d,{Y:"div",D:"ytp-ad-survey-question",V:[{Y:"div",hF:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{Y:"div",hF:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{Y:"div",hF:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{Y:"div",D:"ytp-ad-survey-question-background"}]},e,q,T,Y);this.z2=U;this.T=null;this.U=[];this.G=null;this.K=this.api.C().experiments.Wv("a11y_h5_associate_survey_question");this.question=this.Qv("ytp-ad-survey-question");
  7706. this.aU=this.Qv("ytp-ad-survey-question-background");this.questionText=this.Qv("ytp-ad-survey-question-text");this.answers=this.Qv("ytp-ad-survey-answers");this.playerOverlay=this.Qv("ytp-ad-survey-question-player-overlay");this.j=Date.now()};
  7707. jQl=function(d,q){q=g.gx(q);g.Qp(d.questionText,q);d.K&&d.questionText.setAttribute("id",qP("survey-question-text"))};
  7708. aXs=function(d,q,T,Y){Y=new nr(d.api,d.layoutId,d.interactionLoggingClientData,d.Nk,Y,d.z2);Y.IU(d.answers);Y.init(qP("survey-answer"),q,T);d.K&&(q=d.questionText.getAttribute("id"),q!=null&&(Y.G!==null?Y.G.U.setAttribute("aria-describedby",q):Y.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",q)));d.U.push(Y)};
  7709. pgs=function(d,q){if(q){var T=q.background;T&&g.D(T,AYQ)&&(T=(T=g.D(T,AYQ).image)&&LM(T)||"",g.nh(T)?g.OL(Error("Found ThumbnailDetails without valid image URL")):g.Dv(d.aU,"backgroundImage","url("+T+")"));if(q.durationMilliseconds==null||q.durationMilliseconds===void 0||q.durationMilliseconds===0)d=Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(q)),g.Zz(d);else{d.j=g.F_();d.G=new HG(d.api,q.durationMilliseconds);g.C(d,d.G);if(d.G&&q.instreamAdPlayerOverlay&&g.D(q.instreamAdPlayerOverlay,
  7710. oF))try{var Y=new tT(d.api,d.layoutId,d.interactionLoggingClientData,d.Nk,d.G);Y.IU(d.playerOverlay);Y.init(qP("survey-player-overlay"),g.D(q.instreamAdPlayerOverlay,oF),d.macros);d.T=Y;g.C(d,Y);d.U8()}catch(e){Y=Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(q))),g.Zz(Y)}else Y=Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(q)),g.Zz(Y);d.G&&q.durationMilliseconds&&q.durationMilliseconds>0?(q=new tm(d.api,d.G),
  7711. q.IU(d.playerOverlay),g.C(d,q)):(d=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(q)),g.Zz(d))}}else g.Zz(Error("addCommonComponents() needs to be called before starting countdown."))};
  7712. ZNj=function(d){function q(T){return{toString:function(){return T()}}}
  7713. d.macros.SURVEY_LOCAL_TIME_EPOCH_S=q(function(){var T=new Date;return(Math.round(T.valueOf()/1E3)+-1*T.getTimezoneOffset()*60).toString()});
  7714. d.macros.SURVEY_ELAPSED_MS=q(function(){return(Date.now()-d.j).toString()})};
  7715. ONj=function(d,q,T,Y,e){Be.call(this,d,q,T,Y,"survey-question-multi-select");this.UD=e;this.noneOfTheAbove=null;this.submitEndpoints=[];this.X=null;this.hide()};
  7716. n2I=function(d,q,T){d.noneOfTheAbove=new E2j(d.api,d.layoutId,d.interactionLoggingClientData,d.Nk);d.noneOfTheAbove.IU(d.answers);d.noneOfTheAbove.init(qP("survey-none-of-the-above"),q,T)};
  7717. tD7=function(d){d.U.forEach(function(q){q.G.toggleButton(!1)});
  7718. rYL(d,!0)};
  7719. rYL=function(d,q){var T=d.T;d=BIN(d);q=q===void 0?!1:q;T.G&&(d?T.G.hide():T.G.show(),q&&T.G instanceof Ru&&!T.G.T&&FYQ(T.G,!1));T.U&&(d?T.U.show():T.U.hide())};
  7720. BIN=function(d){return d.U.some(function(q){return q.G.isToggled()})||d.noneOfTheAbove.button.isToggled()};
  7721. Kr=function(d,q,T,Y,e){Be.call(this,d,q,T,Y,"survey-question-single-select",function(b){U.api.C().N("supports_multi_step_on_desktop")&&e([b])});
  7722. var U=this;this.hide()};
  7723. G_=function(d,q,T,Y){sx.call(this,d,{Y:"div",D:"ytp-ad-survey",V:[{Y:"div",D:"ytp-ad-survey-questions"}]},"survey",q,T,Y);this.questions=[];this.U=[];this.conditioningRules=[];this.G=0;this.X=this.Qv("ytp-ad-survey-questions");this.api.C().N("fix_survey_color_contrast_on_destop")&&this.Qv("ytp-ad-survey").classList.add("color-contrast-fix");this.api.C().N("web_enable_speedmaster")&&this.Qv("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()};
  7724. Ljj=function(d,q){var T=d.U[q],Y;(Y=d.j)==null||Y.dispose();g.D(T,vY)?Kjx(d,g.D(T,vY),d.macros):g.D(T,lV)&&G7j(d,g.D(T,lV),d.macros);d.G=q};
  7725. Kjx=function(d,q,T){var Y=new Kr(d.api,d.layoutId,d.interactionLoggingClientData,d.Nk,d.T.bind(d));Y.IU(d.X);Y.init(qP("survey-question-single-select"),q,T);d.api.C().N("supports_multi_step_on_desktop")?d.j=Y:d.questions.push(Y);g.C(d,Y)};
  7726. G7j=function(d,q,T){var Y=new ONj(d.api,d.layoutId,d.interactionLoggingClientData,d.Nk,d.T.bind(d));Y.IU(d.X);Y.init(qP("survey-question-multi-select"),q,T);d.api.C().N("supports_multi_step_on_desktop")?d.j=Y:d.questions.push(Y);g.C(d,Y)};
  7727. Lr=function(d,q,T,Y){sx.call(this,d,{Y:"div",D:"ytp-ad-survey-interstitial",V:[{Y:"div",D:"ytp-ad-survey-interstitial-contents",V:[{Y:"div",D:"ytp-ad-survey-interstitial-logo",V:[{Y:"div",D:"ytp-ad-survey-interstitial-logo-image"}]},{Y:"div",D:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",q,T,Y);this.G=this.actionButton=null;this.interstitial=this.Qv("ytp-ad-survey-interstitial");this.U=this.Qv("ytp-ad-survey-interstitial-contents");this.text=this.Qv("ytp-ad-survey-interstitial-text");
  7728. this.logoImage=this.Qv("ytp-ad-survey-interstitial-logo-image");this.transition=new g.oh(this,500,!1,300);g.C(this,this.transition)};
  7729. k7L=function(d,q){q=q&&LM(q)||"";if(g.nh(q))g.OL(Error("Found ThumbnailDetails without valid image URL"));else{var T=d.style;d=d.style.cssText;var Y=document.implementation.createHTMLDocument("").createElement("DIV");Y.style.cssText=d;d=wPX(Y.style);T.cssText=[d,'background-image:url("'+q+'");'].join("")}};
  7730. P_E=function(d){var q=g.bY("html5-video-player");q&&g.ep(q,"ytp-ad-display-override",d)};
  7731. k$=function(d,q,T,Y,e,U){U=U===void 0?0:U;Sx.call(this,d,{Y:"div",D:"ytp-preview-ad",V:[{Y:"div",D:"ytp-preview-ad__text"}]},"preview-ad",q,T,Y,e);var b=this;this.UD=U;this.U=0;this.T=-1;this.j=this.Qv("ytp-preview-ad__text");switch(this.UD){case 1:this.j.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.oh(this,400,!1,100,function(){b.hide()});
  7732. g.C(this,this.transition);this.hide()};
  7733. Pe=function(d,q,T,Y){sx.call(this,d,{Y:"img",D:"ytp-ad-avatar"},"ad-avatar",q,T,Y);this.hide()};
  7734. WjR=function(d){switch(d.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}};
  7735. We=function(d,q,T,Y,e,U){e=e===void 0?!1:e;U=U===void 0?!1:U;sx.call(this,d,{Y:"button",D:"ytp-ad-button-vm"},"ad-button",q,T,Y);this.buttonText=this.buttonIcon=null;this.hide();this.G=e;this.U=U};
  7736. C_n=function(d,q,T,Y,e){Sx.call(this,d,{Y:"div",hF:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],V:[{Y:"div",D:"ytp-ad-avatar-lockup-card__avatar_and_text_container",V:[{Y:"div",D:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",q,T,Y,e);this.startMilliseconds=0;this.adAvatar=new Pe(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk);g.C(this,this.adAvatar);yp(this.element,this.adAvatar.element,0);this.headline=new Am(this.api,this.layoutId,
  7737. this.interactionLoggingClientData,this.Nk);g.C(this,this.headline);this.headline.IU(this.Qv("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new Am(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk);g.C(this,this.description);this.description.IU(this.Qv("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new We(this.api,
  7738. this.layoutId,this.interactionLoggingClientData,this.Nk);g.C(this,this.adButton);this.adButton.IU(this.element);this.hide()};
  7739. Cr=function(d,q,T,Y){sx.call(this,d,{Y:"button",D:"ytp-skip-ad-button",V:[{Y:"div",D:"ytp-skip-ad-button__text"}]},"skip-button",q,T,Y);var e=this;this.U=!1;this.T=this.Qv("ytp-skip-ad-button__text");this.transition=new g.oh(this,500,!1,100,function(){e.hide()});
  7740. g.C(this,this.transition);this.G=new Yo(this.element,15E3,5E3,.5,.5,!0);g.C(this,this.G);this.hide()};
  7741. u1L=function(d,q,T,Y,e){Sx.call(this,d,{Y:"div",D:"ytp-skip-ad"},"skip-ad",q,T,Y,e);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.j=new Cr(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk);g.C(this,this.j);this.j.IU(this.element);this.hide()};
  7742. uU=function(d,q,T,Y){sx.call(this,d,{Y:"div",D:"ytp-visit-advertiser-link"},"visit-advertiser-link",q,T,Y);this.hide()};
  7743. Dr=function(d,q,T,Y,e){sx.call(this,d,{Y:"div",D:"ytp-ad-player-overlay-layout",V:[{Y:"div",D:"ytp-ad-player-overlay-layout__player-card-container"},{Y:"div",D:"ytp-ad-player-overlay-layout__ad-info-container"},{Y:"div",D:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{Y:"div",D:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",q,T,Y);this.U=e;this.z2=this.Qv("ytp-ad-player-overlay-layout__player-card-container");this.G=this.Qv("ytp-ad-player-overlay-layout__ad-info-container");
  7744. this.K=this.Qv("ytp-ad-player-overlay-layout__skip-or-preview-container");this.UD=this.Qv("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()};
  7745. DHB=function(d,q,T,Y){sx.call(this,d,{Y:"div",D:"ytp-ad-grid-card-text",V:[{Y:"div",D:"ytp-ad-grid-card-text__metadata",V:[{Y:"div",D:"ytp-ad-grid-card-text__metadata__headline"},{Y:"div",D:"ytp-ad-grid-card-text__metadata__description",V:[{Y:"div",D:"ytp-ad-grid-card-text__metadata__description__line"},{Y:"div",D:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{Y:"div",D:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",q,T,Y);this.headline=new Am(this.api,this.layoutId,this.interactionLoggingClientData,
  7746. this.Nk);g.C(this,this.headline);this.headline.IU(this.Qv("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new We(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,!0);g.C(this,this.moreInfoButton);this.moreInfoButton.IU(this.Qv("ytp-ad-grid-card-text__button"))};
  7747. wB=function(d,q,T,Y){sx.call(this,d,{Y:"div",D:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",q,T,Y);this.G=[]};
  7748. fr=function(d,q,T,Y,e,U,b){Sx.call(this,d,U,b,q,T,Y,e);this.playerProgressOffsetMs=0;this.U=!1};
  7749. wg7=function(d){var q=g.bY("html5-video-player");q&&g.ep(q,"ytp-ad-display-override",d)};
  7750. fXc=function(d,q,T,Y,e){fr.call(this,d,q,T,Y,e,{Y:"div",D:"ytp-display-underlay-text-grid-cards",V:[{Y:"div",D:"ytp-display-underlay-text-grid-cards__content_container",V:[{Y:"div",D:"ytp-display-underlay-text-grid-cards__content_container__header",V:[{Y:"div",D:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{Y:"div",D:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{Y:"div",D:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"},
  7751. {Y:"div",D:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new wB(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk);g.C(this,this.adGridCardCollection);this.adGridCardCollection.IU(this.Qv("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new We(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk);g.C(this,this.adButton);this.adButton.IU(this.Qv("ytp-display-underlay-text-grid-cards__content_container__ad_button"));
  7752. this.j=this.Qv("ytp-display-underlay-text-grid-cards__content_container");this.T=this.Qv("ytp-display-underlay-text-grid-cards__content_container__header")};
  7753. z_=function(d,q,T,Y){sx.call(this,d,{Y:"div",D:"ytp-ad-details-line"},"ad-details-line",q,T,Y);this.G=[];this.hide()};
  7754. iU=function(d,q,T,Y){sx.call(this,d,{Y:"div",D:"ytp-image-background",V:[{Y:"img",D:"ytp-image-background-image"}]},"image-background",q,T,Y);this.hide()};
  7755. znB=function(d,q,T,Y,e){Sx.call(this,d,{Y:"svg",D:"ytp-timed-pie-countdown",Z:{viewBox:"0 0 20 20"},V:[{Y:"circle",D:"ytp-timed-pie-countdown__background",Z:{r:"10",cx:"10",cy:"10"}},{Y:"circle",D:"ytp-timed-pie-countdown__inner",Z:{r:"5",cx:"10",cy:"10"}},{Y:"circle",D:"ytp-timed-pie-countdown__outer",Z:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",q,T,Y,e);this.j=this.Qv("ytp-timed-pie-countdown__inner");this.U=Math.ceil(2*Math.PI*5);this.hide()};
  7756. IP=function(d,q,T,Y){sx.call(this,d,{Y:"div",D:"ytp-video-interstitial-buttoned-centered-layout",Z:{tabindex:"0"},V:[{Y:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content",V:[{Y:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{Y:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",V:[{Y:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{Y:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"},
  7757. {Y:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{Y:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{Y:"div",D:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",q,T,Y);this.U=null;this.T=this.Qv("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.j=new cu;g.C(this,this.j);this.hide()};
  7758. iNQ=function(d){var q=g.bY("html5-video-player");q&&g.ep(q,"ytp-ad-display-override",d)};
  7759. IXn=function(d){if(!d.adAvatar||!g.D(d.adAvatar,mO))return g.Zz(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!d.headline)return g.Zz(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!d.adBadge||!g.D(d.adBadge,Sy))return g.Zz(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!d.adButton||!g.D(d.adButton,lU))return g.Zz(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!d.adInfoRenderer||
  7760. !g.D(d.adInfoRenderer,VP))return g.Zz(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;d=d.durationMilliseconds||0;return typeof d!=="number"||d<=0?(g.Zz(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+d)),!1):!0};
  7761. ve=function(d,q){q=q===void 0?2:q;g.YP.call(this);this.api=d;this.G=null;this.CC=new cu(this);g.C(this,this.CC);this.U=NO2;this.CC.W(this.api,"presentingplayerstatechange",this.w$);this.G=this.CC.W(this.api,"progresssync",this.Yc);this.f3=q;this.f3===1&&this.Yc()};
  7762. oP=function(d,q,T){uE.call(this,d);this.api=d;this.Nk=q;this.components={};d=new g.f({Y:"div",hF:["video-ads","ytp-ad-module"]});g.C(this,d);vx&&g.d9(d.element,"ytp-ads-tiny-mode");this.T=new $y(d.element);g.C(this,this.T);g.o6(this.api,d.element,4);QE(T)&&(T=new g.f({Y:"div",hF:["ytp-ad-underlay"]}),g.C(this,T),this.U=new $y(T.element),g.C(this,this.U),g.o6(this.api,T.element,0));g.C(this,Dsf())};
  7763. mHn=function(d,q){d=g.N$(d.components,q.id,null);d==null&&g.OL(Error("Component not found for element id: "+q.id));return d||null};
  7764. S6j=function(d){g.na.call(this,d);var q=this;this.U=null;this.created=!1;this.j=d.C().N("h5_use_refactored_get_ad_break")?new uSN(this.player):new IU(this.player);this.T=function(){if(q.U!=null)return q.U;var Y=new mWf({je:pr(q.G).je,kP:pr(q.G).kP,J:q.player,u9:pr(q.G).u9,Hv:q.G.G.Hv,NF:pr(q.G).NF,FC:q.G.G.FC});q.U=Y.KG;return q.U};
  7765. this.G=new TI_(this.player,this,this.j,this.T);g.C(this,this.G);var T=d.C();!yz(T)||g.XW(T)||Ni(T)||(g.C(this,new oP(d,pr(this.G).Nk,pr(this.G).u9)),g.C(this,new Y6c(d)))};
  7766. lXL=function(d){d.created!==d.loaded&&Jm("Created and loaded are out of sync")};
  7767. VD7=function(d){g.na.prototype.load.call(d);var q=pr(d.G).u9;try{d.player.getRootNode().classList.add("ad-created")}catch(F){Jm(F instanceof Error?F:String(F))}var T=d.player.getVideoData(1),Y=T&&T.videoId||"",e=T&&T.getPlayerResponse()||{},U=(e&&e.adPlacements||[]).map(function(F){return F.adPlacementRenderer}),b=((e==null?void 0:e.adSlots)||[]).map(function(F){return g.D(F,ei)});
  7768. e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;T&&T.aN();U=v2s(U,b,q,pr(d.G).Bu);b=T&&T.clientPlaybackNonce||"";T=T&&T.Uq||!1;if(Fg(q,!0)&&T){var J;q={};(J=d.player.getVideoData())==null||J.oU("p_cpb",(q.cc=b,q))}J=1E3*d.player.getDuration(1);o2N(d);d.G.G.Da.ej(b,J,T,U.G8,U.s4,U.G8,e,Y)};
  7769. o2N=function(d){var q,T;if(T=(q=d.player.getVideoData(1))==null||!q.Uq)q=d.player.C(),T=yz(q)&&!g.xv(q)&&q.playerStyle==="desktop-polymer";T&&(d=d.player.getInternalApi(),d.addEventListener("updateKevlarOrC3Companion",E7Q),d.addEventListener("updateEngagementPanelAction",jJg),d.addEventListener("changeEngagementPanelVisibility",aPY),window.addEventListener("yt-navigate-start",pjg))};
  7770. V_=function(d,q){q===d.o9&&(d.o9=void 0)};
  7771. dxx=function(d){var q=pr(d.G).Q5,T=q.T().i5("SLOT_TYPE_PLAYER_BYTES",1);q=kx(q.Xw.get(),1).clientPlaybackNonce;var Y=!1;T=g.E(T);for(var e=T.next();!e.done;e=T.next()){e=e.value;var U=e.slotType==="SLOT_TYPE_PLAYER_BYTES"&&e.slotEntryTrigger instanceof fd?e.slotEntryTrigger.oK:void 0;U&&U===q&&(Y&&Jm("More than 1 preroll playerBytes slot detected",e),Y=!0)}Y||gB(pr(d.G).oV)};
  7772. qII=function(d){if(qk(pr(d.G).u9))return!0;var q="";d=g.E(pr(d.G).NF.yK.keys());for(var T=d.next();!T.done;T=d.next()){T=T.value;if(T.slotType==="SLOT_TYPE_PLAYER_BYTES"&&T.nf==="core")return!0;q+=T.slotType+" "}Math.random()<.01&&Jm("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:q});return!1};
  7773. TLI=function(d){d=g.E(pr(d.G).NF.yK.values());for(var q=d.next();!q.done;q=d.next())if(q.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1};
  7774. zU1=function(d,q,T,Y,e,U,b){T=T===void 0?[]:T;Y=Y===void 0?"":Y;e=e===void 0?"":e;var J=pr(d.G).u9,F=d.player.getVideoData(1);F&&F.getPlayerResponse();F&&F.aN();T=v2s(q,T,J,pr(d.G).Bu);lOn(pr(d.G).pH,Y,T.G8,T.s4,q,e,U,b)};
  7775. v2s=function(d,q,T,Y){q={G8:[],s4:q};d=g.E(d);for(var e=d.next();!e.done;e=d.next())if((e=e.value)&&e.renderer!=null){var U=e.renderer;if(!T.J.C().N("html5_enable_vod_lasr_with_notify_pacf")){var b=void 0,J=void 0,F=void 0,N=void 0,R=Y;g.D((N=U.sandwichedLinearAdRenderer)==null?void 0:N.adVideoStart,L6)?(b=g.D((F=U.sandwichedLinearAdRenderer)==null?void 0:F.adVideoStart,L6),b=$_n(b,R),g.K1(U.sandwichedLinearAdRenderer.adVideoStart,L6,b)):g.D((J=U.linearAdSequenceRenderer)==null?void 0:J.adStart,L6)&&
  7776. (F=g.D((b=U.linearAdSequenceRenderer)==null?void 0:b.adStart,L6),b=$_n(F,R),g.K1(U.linearAdSequenceRenderer.adStart,L6,b))}q.G8.push(e)}return q};
  7777. g.dA=function(d){if(typeof DOMParser!="undefined")return An(new DOMParser,PZ1(d),"application/xml");throw Error("Your browser does not support loading xml documents");};
  7778. g.qJ=function(d){g.W.call(this);this.callback=d;this.G=new xG(0,0,.4,0,.2,1,1,1);this.delay=new g.uc(this.next,window,this);g.C(this,this.delay)};
  7779. g.YIn=function(d){var q=d.C();return q.LC&&!q.j&&g.dn(q)?d.isEmbedsShortsMode()?(d=d.Xb(),Math.min(d.width,d.height)>=315):!d.Rl():!1};
  7780. g.To=function(d){g.f.call(this,{Y:"div",D:"ytp-more-videos-view",Z:{tabIndex:"-1"}});var q=this;this.api=d;this.U=!0;this.j=new g.aI(this);this.G=[];this.suggestionData=[];this.columns=this.containerWidth=this.B=this.T=this.scrollPosition=0;this.title=new g.f({Y:"h2",D:"ytp-related-title",j5:"{{title}}"});this.previous=new g.f({Y:"button",hF:["ytp-button","ytp-previous"],Z:{"aria-label":"\u663e\u793a\u4e4b\u524d\u7684\u63a8\u8350\u89c6\u9891"},V:[g.Rh()]});this.L=new g.qJ(function(T){q.suggestions.element.scrollLeft=
  7781. -T});
  7782. this.next=new g.f({Y:"button",hF:["ytp-button","ytp-next"],Z:{"aria-label":"\u663e\u793a\u66f4\u591a\u63a8\u8350\u89c6\u9891"},V:[g.xP()]});g.C(this,this.j);this.X=d.C().T;g.C(this,this.title);this.title.IU(this.element);this.suggestions=new g.f({Y:"div",D:"ytp-suggestions"});g.C(this,this.suggestions);this.suggestions.IU(this.element);g.C(this,this.previous);this.previous.IU(this.element);this.previous.listen("click",this.G1,this);g.C(this,this.L);e7l(this);g.C(this,this.next);this.next.IU(this.element);
  7783. this.next.listen("click",this.PX,this);this.j.W(this.api,"appresize",this.gz);this.j.W(this.api,"fullscreentoggled",this.xX);this.j.W(this.api,"videodatachange",this.onVideoDataChange);this.gz(this.api.OD().getPlayerSize());this.onVideoDataChange()};
  7784. e7l=function(d){for(var q={TK:0};q.TK<16;q={TK:q.TK},++q.TK){var T=new g.f({Y:"a",D:"ytp-suggestion-link",Z:{href:"{{link}}",target:d.api.C().K,"aria-label":"{{aria_label}}"},V:[{Y:"div",D:"ytp-suggestion-image"},{Y:"div",D:"ytp-suggestion-overlay",Z:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},V:[{Y:"div",D:"ytp-suggestion-title",j5:"{{title}}"},{Y:"div",D:"ytp-suggestion-author",j5:"{{author_and_views}}"},{Y:"div",Z:{"data-is-live":"{{is_live}}"},D:"ytp-suggestion-duration",
  7785. j5:"{{duration}}"}]}]});g.C(d,T);var Y=T.Qv("ytp-suggestion-link");g.Dv(Y,"transitionDelay",q.TK/20+"s");d.j.W(Y,"click",function(e){return function(U){var b=e.TK;if(d.U){var J=d.suggestionData[b],F=J.sessionData;d.X&&d.api.N("web_player_log_click_before_generating_ve_conversion_params")?(d.api.logClick(d.G[b].element),b=J.Xk(),J={},g.Sf(d.api,J),b=g.y6(b,J),g.pR(b,d.api,U)):g.AM(U,d.api,d.X,F||void 0)&&d.api.tC(J.videoId,F,J.playlistId)}else U.preventDefault(),document.activeElement.blur()}}(q));
  7786. T.IU(d.suggestions.element);d.G.push(T);d.api.createServerVe(T.element,T)}};
  7787. UxN=function(d){if(d.api.C().N("web_player_log_click_before_generating_ve_conversion_params"))for(var q=Math.floor(-d.scrollPosition/(d.T+8)),T=Math.min(q+d.columns,d.suggestionData.length)-1;q<=T;q++)d.api.logVisibility(d.G[q].element,!0)};
  7788. g.Y0=function(d){var q=d.api.rU()?32:16;q=d.B/2+q;d.next.element.style.bottom=q+"px";d.previous.element.style.bottom=q+"px";q=d.scrollPosition;var T=d.containerWidth-d.suggestionData.length*(d.T+8);g.ep(d.element,"ytp-scroll-min",q>=0);g.ep(d.element,"ytp-scroll-max",q<=T)};
  7789. XRq=function(d){for(var q=d.suggestionData.length,T=0;T<q;++T){var Y=void 0,e=void 0,U=void 0;Y=d;var b=Y.api.C(),J=Y.suggestionData[T],F=Y.G[T];U=Y.api.isEmbedsShortsMode()?J.shortViewCount||"":J.shortViewCount?J.author+" \u2022 "+J.shortViewCount:J.author;F.element.style.display="";g.Dv(F.Qv("ytp-suggestion-link"),"display","inline-block");bBQ.test(J.title)&&(F.Qv("ytp-suggestion-title").dir="rtl");bBQ.test(U)&&(F.Qv("ytp-suggestion-author").dir="rtl");e=J.isLivePlayback?"\u76f4\u64ad":J.lengthSeconds?
  7790. g.MY(J.lengthSeconds):"";var N=J.Xk(Y.api.isEmbedsShortsMode());if(g.dn(b)&&!b.N("web_player_log_click_before_generating_ve_conversion_params")){var R={};g.OF(Y.api,"addEmbedsConversionTrackingParams",[R]);N=g.y6(N,R)}b.N("web_player_log_click_before_generating_ve_conversion_params")&&(b=(b=J.sessionData)&&b.itct)&&Y.api.setTrackingParams(F.element,b);F.update({author_and_views:U,duration:e,link:N,title:J.title,aria_label:J.ariaLabel||J.title,is_live:J.isLivePlayback,aria_hidden:!!J.ariaLabel,blink_rendering_hack:g.MI||
  7791. g.o9?"will-change: opacity":void 0});e=F.Qv("ytp-suggestion-image");Y=Y.api.isEmbedsShortsMode()?J.Qg("hq2.jpg"):J.Qg();e.style.backgroundImage=Y?"url("+Y+")":""}if(q<16)for(;q<16;++q)g.Dv(d.G[q].Qv("ytp-suggestion-link"),"display","none");g.Y0(d)};
  7792. dHf=[];$2=typeof Object.defineProperties=="function"?Object.defineProperty:function(d,q,T){if(d==Array.prototype||d==Object.prototype)return d;d[q]=T.value;return d};
  7793. g.U6=TI1(this);gI("Symbol",function(d){function q(U){if(this instanceof q)throw new TypeError("Symbol is not a constructor");return new T(Y+(U||"")+"_"+e++,U)}
  7794. function T(U,b){this.G=U;$2(this,"description",{configurable:!0,writable:!0,value:b})}
  7795. if(d)return d;T.prototype.toString=function(){return this.G};
  7796. var Y="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",e=0;return q});
  7797. gI("Symbol.iterator",function(d){if(d)return d;d=Symbol("Symbol.iterator");for(var q="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),T=0;T<q.length;T++){var Y=g.U6[q[T]];typeof Y==="function"&&typeof Y.prototype[d]!="function"&&$2(Y.prototype,d,{configurable:!0,writable:!0,value:function(){return Y62(q6_(this))}})}return d});
  7798. var enY=typeof Object.create=="function"?Object.create:function(d){function q(){}
  7799. q.prototype=d;return new q},JEl=function(){function d(){function T(){}
  7800. new T;Reflect.construct(T,[],function(){});
  7801. return new T instanceof T}
  7802. if(typeof Reflect!="undefined"&&Reflect.construct){if(d())return Reflect.construct;var q=Reflect.construct;return function(T,Y,e){T=q(T,Y);e&&Reflect.setPrototypeOf(T,e.prototype);return T}}return function(T,Y,e){e===void 0&&(e=T);
  7803. e=enY(e.prototype||Object.prototype);return Function.prototype.apply.call(T,e,Y)||e}}(),sss;
  7804. if(typeof Object.setPrototypeOf=="function")sss=Object.setPrototypeOf;else{var $x_;a:{var gcB={a:!0},Fq7={};try{Fq7.__proto__=gcB;$x_=Fq7.a;break a}catch(d){}$x_=!1}sss=$x_?function(d,q){d.__proto__=q;if(d.__proto__!==q)throw new TypeError(d+" is not extensible");return d}:null}var NH=sss,NLB=typeof Object.assign=="function"?Object.assign:function(d,q){for(var T=1;T<arguments.length;T++){var Y=arguments[T];
  7805. if(Y)for(var e in Y)hY(Y,e)&&(d[e]=Y[e])}return d};
  7806. gI("Object.assign",function(d){return d||NLB});
  7807. Hg.prototype.B=function(d){this.G=d};
  7808. Hg.prototype.return=function(d){this.j={return:d};this.U=this.S};
  7809. Hg.prototype.tF=function(d){this.U=d};
  7810. gI("globalThis",function(d){return d||g.U6});
  7811. gI("Reflect",function(d){return d?d:{}});
  7812. gI("Reflect.construct",function(){return JEl});
  7813. gI("Reflect.setPrototypeOf",function(d){return d?d:NH?function(q,T){try{return NH(q,T),!0}catch(Y){return!1}}:null});
  7814. gI("Promise",function(d){function q(b){this.G=0;this.j=void 0;this.U=[];this.L=!1;var J=this.T();try{b(J.resolve,J.reject)}catch(F){J.reject(F)}}
  7815. function T(){this.G=null}
  7816. function Y(b){return b instanceof q?b:new q(function(J){J(b)})}
  7817. if(d)return d;T.prototype.U=function(b){if(this.G==null){this.G=[];var J=this;this.j(function(){J.S()})}this.G.push(b)};
  7818. var e=g.U6.setTimeout;T.prototype.j=function(b){e(b,0)};
  7819. T.prototype.S=function(){for(;this.G&&this.G.length;){var b=this.G;this.G=[];for(var J=0;J<b.length;++J){var F=b[J];b[J]=null;try{F()}catch(N){this.T(N)}}}this.G=null};
  7820. T.prototype.T=function(b){this.j(function(){throw b;})};
  7821. q.prototype.T=function(){function b(N){return function(R){F||(F=!0,N.call(J,R))}}
  7822. var J=this,F=!1;return{resolve:b(this.yv),reject:b(this.S)}};
  7823. q.prototype.yv=function(b){if(b===this)this.S(new TypeError("A Promise cannot resolve to itself"));else if(b instanceof q)this.z2(b);else{a:switch(typeof b){case "object":var J=b!=null;break a;case "function":J=!0;break a;default:J=!1}J?this.UD(b):this.X(b)}};
  7824. q.prototype.UD=function(b){var J=void 0;try{J=b.then}catch(F){this.S(F);return}typeof J=="function"?this.dO(J,b):this.X(b)};
  7825. q.prototype.S=function(b){this.B(2,b)};
  7826. q.prototype.X=function(b){this.B(1,b)};
  7827. q.prototype.B=function(b,J){if(this.G!=0)throw Error("Cannot settle("+b+", "+J+"): Promise already settled in state"+this.G);this.G=b;this.j=J;this.G===2&&this.rO();this.K()};
  7828. q.prototype.rO=function(){var b=this;e(function(){if(b.lr()){var J=g.U6.console;typeof J!=="undefined"&&J.error(b.j)}},1)};
  7829. q.prototype.lr=function(){if(this.L)return!1;var b=g.U6.CustomEvent,J=g.U6.Event,F=g.U6.dispatchEvent;if(typeof F==="undefined")return!0;typeof b==="function"?b=new b("unhandledrejection",{cancelable:!0}):typeof J==="function"?b=new J("unhandledrejection",{cancelable:!0}):(b=g.U6.document.createEvent("CustomEvent"),b.initCustomEvent("unhandledrejection",!1,!0,b));b.promise=this;b.reason=this.j;return F(b)};
  7830. q.prototype.K=function(){if(this.U!=null){for(var b=0;b<this.U.length;++b)U.U(this.U[b]);this.U=null}};
  7831. var U=new T;q.prototype.z2=function(b){var J=this.T();b.BQ(J.resolve,J.reject)};
  7832. q.prototype.dO=function(b,J){var F=this.T();try{b.call(J,F.resolve,F.reject)}catch(N){F.reject(N)}};
  7833. q.prototype.then=function(b,J){function F(y,h){return typeof y=="function"?function(H){try{N(y(H))}catch(a){R(a)}}:h}
  7834. var N,R,x=new q(function(y,h){N=y;R=h});
  7835. this.BQ(F(b,N),F(J,R));return x};
  7836. q.prototype.catch=function(b){return this.then(void 0,b)};
  7837. q.prototype.BQ=function(b,J){function F(){switch(N.G){case 1:b(N.j);break;case 2:J(N.j);break;default:throw Error("Unexpected state: "+N.G);}}
  7838. var N=this;this.U==null?U.U(F):this.U.push(F);this.L=!0};
  7839. q.resolve=Y;q.reject=function(b){return new q(function(J,F){F(b)})};
  7840. q.race=function(b){return new q(function(J,F){for(var N=g.E(b),R=N.next();!R.done;R=N.next())Y(R.value).BQ(J,F)})};
  7841. q.all=function(b){var J=g.E(b),F=J.next();return F.done?Y([]):new q(function(N,R){function x(H){return function(a){y[H]=a;h--;h==0&&N(y)}}
  7842. var y=[],h=0;do y.push(void 0),h++,Y(F.value).BQ(x(y.length-1),R),F=J.next();while(!F.done)})};
  7843. return q});
  7844. gI("Object.setPrototypeOf",function(d){return d||NH});
  7845. gI("Symbol.dispose",function(d){return d?d:Symbol("Symbol.dispose")});
  7846. gI("SuppressedError",function(d){function q(T,Y,e){if(!(this instanceof q))return new q(T,Y,e);e=Error(e);"stack"in e&&(this.stack=e.stack);this.message=e.message;this.error=T;this.suppressed=Y}
  7847. if(d)return d;g.M(q,Error);q.prototype.name="SuppressedError";return q});
  7848. gI("WeakMap",function(d){function q(F){this.G=(J+=Math.random()+1).toString();if(F){F=g.E(F);for(var N;!(N=F.next()).done;)N=N.value,this.set(N[0],N[1])}}
  7849. function T(){}
  7850. function Y(F){var N=typeof F;return N==="object"&&F!==null||N==="function"}
  7851. function e(F){if(!hY(F,b)){var N=new T;$2(F,b,{value:N})}}
  7852. function U(F){var N=Object[F];N&&(Object[F]=function(R){if(R instanceof T)return R;Object.isExtensible(R)&&e(R);return N(R)})}
  7853. if(function(){if(!d||!Object.seal)return!1;try{var F=Object.seal({}),N=Object.seal({}),R=new d([[F,2],[N,3]]);if(R.get(F)!=2||R.get(N)!=3)return!1;R.delete(F);R.set(N,4);return!R.has(F)&&R.get(N)==4}catch(x){return!1}}())return d;
  7854. var b="$jscomp_hidden_"+Math.random();U("freeze");U("preventExtensions");U("seal");var J=0;q.prototype.set=function(F,N){if(!Y(F))throw Error("Invalid WeakMap key");e(F);if(!hY(F,b))throw Error("WeakMap key fail: "+F);F[b][this.G]=N;return this};
  7855. q.prototype.get=function(F){return Y(F)&&hY(F,b)?F[b][this.G]:void 0};
  7856. q.prototype.has=function(F){return Y(F)&&hY(F,b)&&hY(F[b],this.G)};
  7857. q.prototype.delete=function(F){return Y(F)&&hY(F,b)&&hY(F[b],this.G)?delete F[b][this.G]:!1};
  7858. return q});
  7859. gI("Map",function(d){function q(){var J={};return J.previous=J.next=J.head=J}
  7860. function T(J,F){var N=J[1];return Y62(function(){if(N){for(;N.head!=J[1];)N=N.previous;for(;N.next!=N.head;)return N=N.next,{done:!1,value:F(N)};N=null}return{done:!0,value:void 0}})}
  7861. function Y(J,F){var N=F&&typeof F;N=="object"||N=="function"?U.has(F)?N=U.get(F):(N=""+ ++b,U.set(F,N)):N="p_"+F;var R=J[0][N];if(R&&hY(J[0],N))for(J=0;J<R.length;J++){var x=R[J];if(F!==F&&x.key!==x.key||F===x.key)return{id:N,list:R,index:J,entry:x}}return{id:N,list:R,index:-1,entry:void 0}}
  7862. function e(J){this[0]={};this[1]=q();this.size=0;if(J){J=g.E(J);for(var F;!(F=J.next()).done;)F=F.value,this.set(F[0],F[1])}}
  7863. if(function(){if(!d||typeof d!="function"||!d.prototype.entries||typeof Object.seal!="function")return!1;try{var J=Object.seal({x:4}),F=new d(g.E([[J,"s"]]));if(F.get(J)!="s"||F.size!=1||F.get({x:4})||F.set({x:4},"t")!=F||F.size!=2)return!1;var N=F.entries(),R=N.next();if(R.done||R.value[0]!=J||R.value[1]!="s")return!1;R=N.next();return R.done||R.value[0].x!=4||R.value[1]!="t"||!N.next().done?!1:!0}catch(x){return!1}}())return d;
  7864. var U=new WeakMap;e.prototype.set=function(J,F){J=J===0?0:J;var N=Y(this,J);N.list||(N.list=this[0][N.id]=[]);N.entry?N.entry.value=F:(N.entry={next:this[1],previous:this[1].previous,head:this[1],key:J,value:F},N.list.push(N.entry),this[1].previous.next=N.entry,this[1].previous=N.entry,this.size++);return this};
  7865. e.prototype.delete=function(J){J=Y(this,J);return J.entry&&J.list?(J.list.splice(J.index,1),J.list.length||delete this[0][J.id],J.entry.previous.next=J.entry.next,J.entry.next.previous=J.entry.previous,J.entry.head=null,this.size--,!0):!1};
  7866. e.prototype.clear=function(){this[0]={};this[1]=this[1].previous=q();this.size=0};
  7867. e.prototype.has=function(J){return!!Y(this,J).entry};
  7868. e.prototype.get=function(J){return(J=Y(this,J).entry)&&J.value};
  7869. e.prototype.entries=function(){return T(this,function(J){return[J.key,J.value]})};
  7870. e.prototype.keys=function(){return T(this,function(J){return J.key})};
  7871. e.prototype.values=function(){return T(this,function(J){return J.value})};
  7872. e.prototype.forEach=function(J,F){for(var N=this.entries(),R;!(R=N.next()).done;)R=R.value,J.call(F,R[1],R[0],this)};
  7873. e.prototype[Symbol.iterator]=e.prototype.entries;var b=0;return e});
  7874. gI("Set",function(d){function q(T){this.G=new Map;if(T){T=g.E(T);for(var Y;!(Y=T.next()).done;)this.add(Y.value)}this.size=this.G.size}
  7875. if(function(){if(!d||typeof d!="function"||!d.prototype.entries||typeof Object.seal!="function")return!1;try{var T=Object.seal({x:4}),Y=new d(g.E([T]));if(!Y.has(T)||Y.size!=1||Y.add(T)!=Y||Y.size!=1||Y.add({x:4})!=Y||Y.size!=2)return!1;var e=Y.entries(),U=e.next();if(U.done||U.value[0]!=T||U.value[1]!=T)return!1;U=e.next();return U.done||U.value[0]==T||U.value[0].x!=4||U.value[1]!=U.value[0]?!1:e.next().done}catch(b){return!1}}())return d;
  7876. q.prototype.add=function(T){T=T===0?0:T;this.G.set(T,T);this.size=this.G.size;return this};
  7877. q.prototype.delete=function(T){T=this.G.delete(T);this.size=this.G.size;return T};
  7878. q.prototype.clear=function(){this.G.clear();this.size=0};
  7879. q.prototype.has=function(T){return this.G.has(T)};
  7880. q.prototype.entries=function(){return this.G.entries()};
  7881. q.prototype.values=function(){return this.G.values()};
  7882. q.prototype.keys=q.prototype.values;q.prototype[Symbol.iterator]=q.prototype.values;q.prototype.forEach=function(T,Y){var e=this;this.G.forEach(function(U){return T.call(Y,U,U,e)})};
  7883. return q});
  7884. gI("String.prototype.endsWith",function(d){return d?d:function(q,T){var Y=DX(this,q,"endsWith");q+="";T===void 0&&(T=Y.length);T=Math.max(0,Math.min(T|0,Y.length));for(var e=q.length;e>0&&T>0;)if(Y[--T]!=q[--e])return!1;return e<=0}});
  7885. gI("Array.prototype.find",function(d){return d?d:function(q,T){return Fjf(this,q,T).LP}});
  7886. gI("Array.prototype.entries",function(d){return d?d:function(){return fN(this,function(q,T){return[q,T]})}});
  7887. gI("Array.prototype.keys",function(d){return d?d:function(){return fN(this,function(q){return q})}});
  7888. gI("String.prototype.startsWith",function(d){return d?d:function(q,T){var Y=DX(this,q,"startsWith");q+="";var e=Y.length,U=q.length;T=Math.max(0,Math.min(T|0,Y.length));for(var b=0;b<U&&T<e;)if(Y[T++]!=q[b++])return!1;return b>=U}});
  7889. gI("Number.isFinite",function(d){return d?d:function(q){return typeof q!=="number"?!1:!isNaN(q)&&q!==Infinity&&q!==-Infinity}});
  7890. gI("String.prototype.repeat",function(d){return d?d:function(q){var T=DX(this,null,"repeat");if(q<0||q>1342177279)throw new RangeError("Invalid count value");q|=0;for(var Y="";q;)if(q&1&&(Y+=T),q>>>=1)T+=T;return Y}});
  7891. gI("Object.entries",function(d){return d?d:function(q){var T=[],Y;for(Y in q)hY(q,Y)&&T.push([Y,q[Y]]);return T}});
  7892. gI("Array.from",function(d){return d?d:function(q,T,Y){T=T!=null?T:function(J){return J};
  7893. var e=[],U=typeof Symbol!="undefined"&&Symbol.iterator&&q[Symbol.iterator];if(typeof U=="function"){q=U.call(q);for(var b=0;!(U=q.next()).done;)e.push(T.call(Y,U.value,b++))}else for(U=q.length,b=0;b<U;b++)e.push(T.call(Y,q[b],b));return e}});
  7894. gI("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
  7895. gI("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
  7896. gI("Number.isInteger",function(d){return d?d:function(q){return Number.isFinite(q)?q===Math.floor(q):!1}});
  7897. gI("Number.isSafeInteger",function(d){return d?d:function(q){return Number.isInteger(q)&&Math.abs(q)<=Number.MAX_SAFE_INTEGER}});
  7898. gI("Object.is",function(d){return d?d:function(q,T){return q===T?q!==0||1/q===1/T:q!==q&&T!==T}});
  7899. gI("Array.prototype.includes",function(d){return d?d:function(q,T){var Y=this;Y instanceof String&&(Y=String(Y));var e=Y.length;T=T||0;for(T<0&&(T=Math.max(T+e,0));T<e;T++){var U=Y[T];if(U===q||Object.is(U,q))return!0}return!1}});
  7900. gI("String.prototype.includes",function(d){return d?d:function(q,T){return DX(this,q,"includes").indexOf(q,T||0)!==-1}});
  7901. gI("Math.log2",function(d){return d?d:function(q){return Math.log(q)/Math.LN2}});
  7902. gI("Object.values",function(d){return d?d:function(q){var T=[],Y;for(Y in q)hY(q,Y)&&T.push(q[Y]);return T}});
  7903. gI("Math.trunc",function(d){return d?d:function(q){q=Number(q);if(isNaN(q)||q===Infinity||q===-Infinity||q===0)return q;var T=Math.floor(Math.abs(q));return q<0?-T:T}});
  7904. gI("Math.clz32",function(d){return d?d:function(q){q=Number(q)>>>0;if(q===0)return 32;var T=0;(q&4294901760)===0&&(q<<=16,T+=16);(q&4278190080)===0&&(q<<=8,T+=8);(q&4026531840)===0&&(q<<=4,T+=4);(q&3221225472)===0&&(q<<=2,T+=2);(q&2147483648)===0&&T++;return T}});
  7905. gI("Number.isNaN",function(d){return d?d:function(q){return typeof q==="number"&&isNaN(q)}});
  7906. gI("Array.prototype.values",function(d){return d?d:function(){return fN(this,function(q,T){return T})}});
  7907. gI("Array.prototype.fill",function(d){return d?d:function(q,T,Y){var e=this.length||0;T<0&&(T=Math.max(0,e+T));if(Y==null||Y>e)Y=e;Y=Number(Y);Y<0&&(Y=Math.max(0,e+Y));for(T=Number(T||0);T<Y;T++)this[T]=q;return this}});
  7908. gI("Int8Array.prototype.fill",z7);gI("Uint8Array.prototype.fill",z7);gI("Uint8ClampedArray.prototype.fill",z7);gI("Int16Array.prototype.fill",z7);gI("Uint16Array.prototype.fill",z7);gI("Int32Array.prototype.fill",z7);gI("Uint32Array.prototype.fill",z7);gI("Float32Array.prototype.fill",z7);gI("Float64Array.prototype.fill",z7);
  7909. gI("Object.fromEntries",function(d){return d?d:function(q){var T={};if(!(Symbol.iterator in q))throw new TypeError(""+q+" is not iterable");q=q[Symbol.iterator].call(q);for(var Y=q.next();!Y.done;Y=q.next()){Y=Y.value;if(Object(Y)!==Y)throw new TypeError("iterable for fromEntries should yield objects");T[Y[0]]=Y[1]}return T}});
  7910. gI("String.prototype.replaceAll",function(d){return d?d:function(q,T){if(q instanceof RegExp&&!q.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return q instanceof RegExp?this.replace(q,T):this.replace(new RegExp(String(q).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),T)}});
  7911. gI("String.prototype.padStart",function(d){return d?d:function(q,T){var Y=DX(this,null,"padStart");q-=Y.length;T=T!==void 0?String(T):" ";return(q>0&&T?T.repeat(Math.ceil(q/T.length)).substring(0,q):"")+Y}});
  7912. gI("Array.prototype.findIndex",function(d){return d?d:function(q,T){return Fjf(this,q,T).jg}});
  7913. gI("Promise.prototype.finally",function(d){return d?d:function(q){return this.then(function(T){return Promise.resolve(q()).then(function(){return T})},function(T){return Promise.resolve(q()).then(function(){throw T;
  7914. })})}});
  7915. gI("Math.imul",function(d){return d?d:function(q,T){q=Number(q);T=Number(T);var Y=q&65535,e=T&65535;return Y*e+((q>>>16&65535)*e+Y*(T>>>16&65535)<<16>>>0)|0}});
  7916. gI("Math.sign",function(d){return d?d:function(q){q=Number(q);return q===0||isNaN(q)?q:q>0?1:-1}});
  7917. gI("WeakSet",function(d){function q(T){this.G=new WeakMap;if(T){T=g.E(T);for(var Y;!(Y=T.next()).done;)this.add(Y.value)}}
  7918. if(function(){if(!d||!Object.seal)return!1;try{var T=Object.seal({}),Y=Object.seal({}),e=new d([T]);if(!e.has(T)||e.has(Y))return!1;e.delete(T);e.add(Y);return!e.has(T)&&e.has(Y)}catch(U){return!1}}())return d;
  7919. q.prototype.add=function(T){this.G.set(T,!0);return this};
  7920. q.prototype.has=function(T){return this.G.has(T)};
  7921. q.prototype.delete=function(T){return this.G.delete(T)};
  7922. return q});
  7923. gI("AggregateError",function(d){function q(T,Y){Y=Error(Y);"stack"in Y&&(this.stack=Y.stack);this.errors=T;this.message=Y.message}
  7924. if(d)return d;g.M(q,Error);q.prototype.name="AggregateError";return q});
  7925. gI("Array.prototype.copyWithin",function(d){function q(T){T=Number(T);return T===Infinity||T===-Infinity?T:T|0}
  7926. return d?d:function(T,Y,e){var U=this.length;T=q(T);Y=q(Y);e=e===void 0?U:q(e);T=T<0?Math.max(U+T,0):Math.min(T,U);Y=Y<0?Math.max(U+Y,0):Math.min(Y,U);e=e<0?Math.max(U+e,0):Math.min(e,U);if(T<Y)for(;Y<e;)Y in this?this[T++]=this[Y++]:(delete this[T++],Y++);else for(e=Math.min(e,U+Y-T),T+=e-Y;e>Y;)--e in this?this[--T]=this[e]:delete this[--T];return this}});
  7927. gI("Int8Array.prototype.copyWithin",i_);gI("Uint8Array.prototype.copyWithin",i_);gI("Uint8ClampedArray.prototype.copyWithin",i_);gI("Int16Array.prototype.copyWithin",i_);gI("Uint16Array.prototype.copyWithin",i_);gI("Int32Array.prototype.copyWithin",i_);gI("Uint32Array.prototype.copyWithin",i_);gI("Float32Array.prototype.copyWithin",i_);gI("Float64Array.prototype.copyWithin",i_);gI("Array.prototype.at",function(d){return d?d:mj});
  7928. gI("Int8Array.prototype.at",l_);gI("Uint8Array.prototype.at",l_);gI("Uint8ClampedArray.prototype.at",l_);gI("Int16Array.prototype.at",l_);gI("Uint16Array.prototype.at",l_);gI("Int32Array.prototype.at",l_);gI("Uint32Array.prototype.at",l_);gI("Float32Array.prototype.at",l_);gI("Float64Array.prototype.at",l_);gI("String.prototype.at",function(d){return d?d:mj});
  7929. gI("Array.prototype.findLastIndex",function(d){return d?d:function(q,T){return NIf(this,q,T).jg}});
  7930. gI("Int8Array.prototype.findLastIndex",vg);gI("Uint8Array.prototype.findLastIndex",vg);gI("Uint8ClampedArray.prototype.findLastIndex",vg);gI("Int16Array.prototype.findLastIndex",vg);gI("Uint16Array.prototype.findLastIndex",vg);gI("Int32Array.prototype.findLastIndex",vg);gI("Uint32Array.prototype.findLastIndex",vg);gI("Float32Array.prototype.findLastIndex",vg);gI("Float64Array.prototype.findLastIndex",vg);gI("Number.parseInt",function(d){return d||parseInt});var fK,bQ,xHn;fK=fK||{};g.oQ=this||self;bQ="closure_uid_"+(Math.random()*1E9>>>0);xHn=0;g.Rs(xc,Error);xc.prototype.name="CustomError";var BLg;var E2D,Hz,D7;E2D=Array.prototype.indexOf?function(d,q){return Array.prototype.indexOf.call(d,q,void 0)}:function(d,q){if(typeof d==="string")return typeof q!=="string"||q.length!=1?-1:d.indexOf(q,0);
  7931. for(var T=0;T<d.length;T++)if(T in d&&d[T]===q)return T;return-1};
  7932. g.R7j=Array.prototype.lastIndexOf?function(d,q){return Array.prototype.lastIndexOf.call(d,q,d.length-1)}:function(d,q){var T=d.length-1;
  7933. T<0&&(T=Math.max(0,d.length+T));if(typeof d==="string")return typeof q!=="string"||q.length!=1?-1:d.lastIndexOf(q,T);for(;T>=0;T--)if(T in d&&d[T]===q)return T;return-1};
  7934. g.Sj=Array.prototype.forEach?function(d,q,T){Array.prototype.forEach.call(d,q,T)}:function(d,q,T){for(var Y=d.length,e=typeof d==="string"?d.split(""):d,U=0;U<Y;U++)U in e&&q.call(T,e[U],U,d)};
  7935. g.Zl=Array.prototype.filter?function(d,q,T){return Array.prototype.filter.call(d,q,T)}:function(d,q,T){for(var Y=d.length,e=[],U=0,b=typeof d==="string"?d.split(""):d,J=0;J<Y;J++)if(J in b){var F=b[J];
  7936. q.call(T,F,J,d)&&(e[U++]=F)}return e};
  7937. g.yC=Array.prototype.map?function(d,q,T){return Array.prototype.map.call(d,q,T)}:function(d,q,T){for(var Y=d.length,e=Array(Y),U=typeof d==="string"?d.split(""):d,b=0;b<Y;b++)b in U&&(e[b]=q.call(T,U[b],b,d));
  7938. return e};
  7939. Hz=Array.prototype.reduce?function(d,q,T){return Array.prototype.reduce.call(d,q,T)}:function(d,q,T){var Y=T;
  7940. (0,g.Sj)(d,function(e,U){Y=q.call(void 0,Y,e,U,d)});
  7941. return Y};
  7942. D7=Array.prototype.some?function(d,q){return Array.prototype.some.call(d,q,void 0)}:function(d,q){for(var T=d.length,Y=typeof d==="string"?d.split(""):d,e=0;e<T;e++)if(e in Y&&q.call(void 0,Y[e],e,d))return!0;
  7943. return!1};
  7944. g.h0=Array.prototype.every?function(d,q,T){return Array.prototype.every.call(d,q,T)}:function(d,q,T){for(var Y=d.length,e=typeof d==="string"?d.split(""):d,U=0;U<Y;U++)if(U in e&&!q.call(T,e[U],U,d))return!1;
  7945. return!0};var C_X={NONE:0,YNv:1},KZ6={Wi:0,d02:1,uu2:2,Jow:3},Yf={mX:"a",Mjv:"d",VIDEO:"v"};vR.prototype.isVisible=function(){return this.wZ?this.Rc>=.3:this.Rc>=.5};var Zm={Cw5:0,nqg:1},tVn={NONE:0,sQg:1,gqv:2};var k7I="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");H2.prototype.getValue=function(){return this.U};
  7946. g.M(Ql,H2);Ql.prototype.j=function(d){this.U===null&&g.$9(this.T,d)&&(this.U=d)};
  7947. g.M(M$,H2);M$.prototype.j=function(d){this.U===null&&typeof d==="number"&&(this.U=d)};
  7948. g.M(c2,H2);c2.prototype.j=function(d){this.U===null&&typeof d==="string"&&(this.U=d)};EN.prototype.disable=function(){this.U=!1};
  7949. EN.prototype.enable=function(){this.U=!0};
  7950. EN.prototype.isEnabled=function(){return this.U};
  7951. EN.prototype.reset=function(){this.G={};this.U=!0;this.j={}};var f5=document,OM=window;var xxN=Yc(1,!0),P2=Yc(610401301,!1);Yc(899588437,!1);var yEc=Yc(772657768,!1),h7c=Yc(513659523,!1),HBI=Yc(568333945,!1),Vrj=Yc(1331761403,!1);Yc(651175828,!1);Yc(722764542,!1);Yc(748402145,!1);Yc(748402146,!1);var jy7=Yc(748402147,!1);Yc(333098724,!1);Yc(2147483644,!1);Yc(2147483645,!1);Yc(2147483646,xxN);Yc(2147483647,!0);var W2=!!g.qx("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var Kh=String.prototype.trim?function(d){return d.trim()}:function(d){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(d)[1]},XRj=/&/g,JE7=/</g,ssQ=/>/g,$x1=/"/g,gcN=/'/g,Fqn=/\x00/g,bB_=/[\x00&<>"']/;var Dm,Qsq=g.oQ.navigator;Dm=Qsq?Qsq.userAgentData||null:null;var S6D=globalThis.trustedTypes,lw;oT.prototype.toString=function(){return this.G+""};TP.prototype.toString=function(){return this.G};
  7952. var o2f=new TP("about:invalid#zClosurez");var Fy1=UD("tel"),$JY=UD("sms"),v2Q=[UD("data"),UD("http"),UD("https"),UD("mailto"),UD("ftp"),new ev(function(d){return/^[^:]*([/?#]|$)/.test(d)})],VDn=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;gt.prototype.toString=function(){return this.G+""};yY.prototype.toString=function(){return this.G+""};cZ.prototype.toString=function(){return this.G};var jv={};g.MjR=String.prototype.repeat?function(d,q){return d.repeat(q)}:function(d,q){return Array(q+1).join(d)};PZ[" "]=function(){};var w_,Ro,NhX,cEL,Ec7,jsR,le,vx,anx;g.o9=iw();g.Jx=wgn();g.DP=fh("Edge");g.AJ=g.DP||g.Jx;w_=fh("Gecko")&&!(B2(g.k9(),"WebKit")&&!fh("Edge"))&&!(fh("Trident")||fh("MSIE"))&&!fh("Edge");g.J4=B2(g.k9(),"WebKit")&&!fh("Edge");Ro=kS();NhX=HB6();g.ID=h72();cEL=GP();Ec7=fh("iPad");jsR=fh("iPod");le=Ln();vx=B2(g.k9(),"KaiOS");
  7953. a:{var AEx="",pRB=function(){var d=g.k9();if(w_)return/rv:([^\);]+)(\)|;)/.exec(d);if(g.DP)return/Edge\/([\d\.]+)/.exec(d);if(g.Jx)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(d);if(g.J4)return/WebKit\/(\S+)/.exec(d);if(g.o9)return/(?:Version)[ \/]?(\S+)/.exec(d)}();
  7954. pRB&&(AEx=pRB?pRB[1]:"");if(g.Jx){var er,ZBN=g.oQ.document;er=ZBN?ZBN.documentMode:void 0;if(er!=null&&er>parseFloat(AEx)){anx=String(er);break a}}anx=AEx}var Ecn=anx,Mjg={};var fZ,zt;g.Fv=IT();fZ=GP()||fh("iPod");zt=fh("iPad");g.VU=znN();g.MI=mf();g.F8=SY()&&!Ln();var LT7=!g.Jx&&!SY();g.Q=g.wt.prototype;g.Q.clone=function(){return new g.wt(this.x,this.y)};
  7955. g.Q.equals=function(d){return d instanceof g.wt&&fn(this,d)};
  7956. g.Q.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
  7957. g.Q.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
  7958. g.Q.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
  7959. g.Q.scale=function(d,q){this.x*=d;this.y*=typeof q==="number"?q:d;return this};g.Q=g.zP.prototype;g.Q.clone=function(){return new g.zP(this.width,this.height)};
  7960. g.Q.aspectRatio=function(){return this.width/this.height};
  7961. g.Q.isEmpty=function(){return!Iy(this)};
  7962. g.Q.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
  7963. g.Q.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
  7964. g.Q.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
  7965. g.Q.scale=function(d,q){this.width*=d;this.height*=typeof q==="number"?q:d;return this};Sv.prototype.toString=function(){return this.G};
  7966. var mn={};new Sv(mn,"");var AEH=/^[a-z][a-z\d-]*$/i,pRN="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),OBn="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),rEj=["action","formaction","href"];var KqI={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.Q=vZ.prototype;g.Q.tA=function(d){return TO(this.G,d)};
  7967. g.Q.getElementsByTagName=function(d,q){return(q||this.G).getElementsByTagName(String(d))};
  7968. g.Q.Qv=function(d){return g.bY(d,this.G)};
  7969. g.Q.setProperties=XE;g.Q.createElement=function(d){return $E(this.G,d)};
  7970. g.Q.appendChild=g.Rr;g.Q.append=function(d,q){PQI(oy(d),d,arguments,1)};
  7971. g.Q.canHaveChildren=function(d){if(d.nodeType!=1)return!1;switch(d.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};
  7972. g.Q.removeNode=g.h4;g.Q.getChildren=function(d){return d.children!=void 0?d.children:Array.prototype.filter.call(d.childNodes,function(q){return q.nodeType==1})};
  7973. g.Q.contains=g.HB;A4.prototype.now=function(){return 0};
  7974. A4.prototype.U=function(){return 0};
  7975. A4.prototype.j=function(){return 0};
  7976. A4.prototype.G=function(){return 0};g.M(Zv,A4);Zv.prototype.now=function(){return pT()&&OM.performance.now?OM.performance.now():A4.prototype.now.call(this)};
  7977. Zv.prototype.U=function(){return pT()&&OM.performance.memory?OM.performance.memory.totalJSHeapSize||0:A4.prototype.U.call(this)};
  7978. Zv.prototype.j=function(){return pT()&&OM.performance.memory?OM.performance.memory.usedJSHeapSize||0:A4.prototype.j.call(this)};
  7979. Zv.prototype.G=function(){return pT()&&OM.performance.memory?OM.performance.memory.jsHeapSizeLimit||0:A4.prototype.G.call(this)};var Kb6=function(){if(!g.oQ.addEventListener||!Object.defineProperty)return!1;var d=!1,q=Object.defineProperty({},"passive",{get:function(){d=!0}});
  7980. try{var T=function(){};
  7981. g.oQ.addEventListener("test",T,q);g.oQ.removeEventListener("test",T,q)}catch(Y){}return d}();var KOg=Dxj("AnimationEnd"),tM=Dxj("TransitionEnd");g.Q=GO.prototype;g.Q.getHeight=function(){return this.bottom-this.top};
  7982. g.Q.clone=function(){return new GO(this.top,this.right,this.bottom,this.left)};
  7983. g.Q.contains=function(d){return this&&d?d instanceof GO?d.left>=this.left&&d.right<=this.right&&d.top>=this.top&&d.bottom<=this.bottom:d.x>=this.left&&d.x<=this.right&&d.y>=this.top&&d.y<=this.bottom:!1};
  7984. g.Q.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};
  7985. g.Q.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};
  7986. g.Q.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};
  7987. g.Q.scale=function(d,q){q=typeof q==="number"?q:d;this.left*=d;this.right*=d;this.top*=q;this.bottom*=q;return this};g.Q=g.WB.prototype;g.Q.clone=function(){return new g.WB(this.left,this.top,this.width,this.height)};
  7988. g.Q.contains=function(d){return d instanceof g.wt?d.x>=this.left&&d.x<=this.left+this.width&&d.y>=this.top&&d.y<=this.top+this.height:this.left<=d.left&&this.left+this.width>=d.left+d.width&&this.top<=d.top&&this.top+this.height>=d.top+d.height};
  7989. g.Q.getSize=function(){return new g.zP(this.width,this.height)};
  7990. g.Q.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};
  7991. g.Q.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};
  7992. g.Q.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};
  7993. g.Q.scale=function(d,q){q=typeof q==="number"?q:d;this.left*=d;this.width*=d;this.top*=q;this.height*=q;return this};var fnf={};var lnN=t4(function(){var d=!1;try{var q=Object.defineProperty({},"passive",{get:function(){d=!0}});
  7994. g.oQ.addEventListener("test",null,q)}catch(T){}return d});vcj.prototype.isVisible=function(){return YQ(f5)===1};var ihQ=e0(function(d){return typeof d==="number"}),ziQ=e0(function(d){return typeof d==="string"}),ImH=e0(function(d){return typeof d==="boolean"}),Z4=e0(function(d){return d!=null&&typeof d==="object"&&typeof d.then==="function"}),a36=e0(function(d){return typeof d==="function"}),OB7=e0(function(d){return!!d&&(typeof d==="object"||typeof d==="function")});var VjN={q$x:"allow-forms",mMF:"allow-modals",S$w:"allow-orientation-lock",ELw:"allow-pointer-lock",eqw:"allow-popups",nLF:"allow-popups-to-escape-sandbox",NU5:"allow-presentation",Li5:"allow-same-origin",Fiv:"allow-scripts",DMO:"allow-top-navigation",xM5:"allow-top-navigation-by-user-activation"},YNg=t4(function(){return d$j()});var X2I=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");FQ.prototype.Hl=function(d,q,T){d=d+"//"+q+T;var Y=g9Y(this)-T.length;if(Y<0)return"";this.G.sort(function(N,R){return N-R});
  7995. T=null;q="";for(var e=0;e<this.G.length;e++)for(var U=this.G[e],b=this.U[U],J=0;J<b.length;J++){if(!Y){T=T==null?U:T;break}var F=$$2(b[J],this.j,",$");if(F){F=q+F;if(Y>=F.length){Y-=F.length;d+=F;q=this.j;break}T=T==null?U:T}}Y="";T!=null&&(Y=""+q+"trn="+T);return d+Y};Mq.prototype.setInterval=function(d,q){return OM.setInterval(d,q)};
  7996. Mq.prototype.clearInterval=function(d){OM.clearInterval(d)};
  7997. Mq.prototype.setTimeout=function(d,q){return OM.setTimeout(d,q)};
  7998. Mq.prototype.clearTimeout=function(d){OM.clearTimeout(d)};var $Y=void 0,J3,IG6=typeof TextDecoder!=="undefined",E97,cz_=typeof String.prototype.isWellFormed==="function",MYn=typeof TextEncoder!=="undefined";var ZhN={},Ow=null,OhI=w_||g.J4||typeof g.oQ.btoa=="function";var Wfj=typeof Uint8Array!=="undefined",Kfn=!g.Jx&&typeof btoa==="function",GXD=/[-_.]/g,tYY={"-":"+",_:"/",".":"="},rv={};np.prototype.isEmpty=function(){return this.G==null};
  7999. np.prototype.sizeBytes=function(){var d=Bz(this);return d?d.length:0};
  8000. var Pw_;var CwD=void 0;var Pz=typeof Symbol==="function"&&typeof Symbol()==="symbol",ncN=kQ("jas",void 0,!0),xJ=kQ(void 0,"1oa"),rY=kQ(void 0,Symbol()),rEq=kQ(void 0,"0ub"),xXQ=kQ(void 0,"0ubs"),hu6=kQ(void 0,"0ubsb"),Anf=kQ(void 0,"0actk"),ZY=kQ("m_m","yd2",!0),HnI=kQ(void 0,"vps"),tjj=kQ();Math.max.apply(Math,g.RQ(Object.values({gZO:1,Apv:2,xOF:4,Ncg:8,qxw:16,vzr:32,Zxv:64,Gv5:128,DQg:256,U4r:512,Aqw:1024,fpF:2048,XaZ:4096})));var D$I={tQ:{value:0,configurable:!0,writable:!0,enumerable:!1}},uVI=Object.defineProperties,Wz=Pz?ncN:"tQ",qA,BLR=[];u$(BLR,7);qA=Object.freeze(BLR);var OS={},wv={},KnN=Object.freeze({}),i$={};var mA=typeof g.oQ.BigInt==="function"&&typeof g.oQ.BigInt(0)==="bigint";var kj=e0(function(d){return mA?d>=KqL&&d<=GlB:d[0]==="-"?m$j(d,Lqs):m$j(d,kll)}),Lqs=Number.MIN_SAFE_INTEGER.toString(),KqL=mA?BigInt(Number.MIN_SAFE_INTEGER):void 0,kll=Number.MAX_SAFE_INTEGER.toString(),GlB=mA?BigInt(Number.MAX_SAFE_INTEGER):void 0;var DX2=typeof Uint8Array.prototype.slice==="function",oc=0,VC=0,HTg;var yX=typeof BigInt==="function"?BigInt.asIntN:void 0,syI=typeof BigInt==="function"?BigInt.asUintN:void 0,ES=Number.isSafeInteger,sS=Number.isFinite,jE=Math.trunc,VY_=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var QyD={};var PQL={bzf:!0};var Gi;var Mvj,cn2;var kPI=vz(0),r2={};C2.prototype.init=function(d,q,T,Y){var e=Y===void 0?{}:Y;Y=e.Xj===void 0?!1:e.Xj;e=e.Re===void 0?!1:e.Re;this.Xj=Y;this.Re=e;d&&(d=WV(d,this.Re),this.U=d.buffer,this.S=d.G,this.T=q||0,this.j=T!==void 0?this.T+T:this.U.length,this.G=this.T)};
  8001. C2.prototype.free=function(){this.clear();mg.length<100&&mg.push(this)};
  8002. C2.prototype.clear=function(){this.U=null;this.S=!1;this.G=this.j=this.T=0;this.Xj=!1};
  8003. C2.prototype.reset=function(){this.G=this.T};
  8004. var mg=[];Ss.prototype.free=function(){this.G.clear();this.U=this.T=-1;lD.length<100&&lD.push(this)};
  8005. Ss.prototype.reset=function(){this.G.reset();this.j=this.G.G;this.U=this.T=-1};
  8006. var lD=[];var SDj,vSN;Rb.prototype.length=function(){return this.G.length};
  8007. Rb.prototype.end=function(){var d=this.G;this.G=[];return d};var j8=c0(),WqQ=c0(),CQs=c0(),u_B=c0(),Dxq=c0(),wR7=c0(),fnN=c0(),z7j=c0(),iBq=c0(),Ins=c0(),mxN=c0();Et.prototype.toJSON=function(){return ul(this)};
  8008. Et.prototype.VH=function(d){return JSON.stringify(ul(this,d))};
  8009. Et.prototype.clone=function(){var d=this.Kf,q=d[Wz]|0;return zi(this,d,q)?il(this,d,!0):new this.constructor(f$(d,q,!1))};
  8010. Et.prototype[ZY]=OS;Et.prototype.toString=function(){return this.Kf.toString()};var XB6=A3(function(d,q,T,Y,e){if(d.U!==2)return!1;ol(d,yw(q,Y,T),e);return!0},bT6),J4I=A3(function(d,q,T,Y,e){if(d.U!==2)return!1;
  8011. ol(d,yw(q,Y,T),e);return!0},bT6),DL=Symbol(),rz=Symbol(),Kg=Symbol(),RuN=Symbol(),gE6=Symbol(),pg,ZL;var SIR=zU(function(d,q,T){if(d.U!==1)return!1;m3(q,T,iD(d.G));return!0},S8,iBq),lnB=zU(function(d,q,T){if(d.U!==1)return!1;
  8012. d=iD(d.G);m3(q,T,d===0?void 0:d);return!0},S8,iBq),vcq=zU(function(d,q,T,Y){if(d.U!==1)return!1;
  8013. NA(q,T,Y,iD(d.G));return!0},S8,iBq),ocj=zU(function(d,q,T){if(d.U!==0)return!1;
  8014. m3(q,T,Dc(d.G));return!0},lL,fnN),VjB=zU(function(d,q,T){if(d.U!==0)return!1;
  8015. d=Dc(d.G);m3(q,T,d===0?void 0:d);return!0},lL,fnN),d$q=zU(function(d,q,T,Y){if(d.U!==0)return!1;
  8016. NA(q,T,Y,Dc(d.G));return!0},lL,fnN),qNR=zU(function(d,q,T){if(d.U!==0)return!1;
  8017. m3(q,T,w2(d.G));return!0},v0,u_B),Tbx=zU(function(d,q,T){if(d.U!==0)return!1;
  8018. d=w2(d.G);m3(q,T,d===0?void 0:d);return!0},v0,u_B),YNR=zU(function(d,q,T,Y){if(d.U!==0)return!1;
  8019. NA(q,T,Y,w2(d.G));return!0},v0,u_B),eiB=zU(function(d,q,T){if(d.U!==1)return!1;
  8020. m3(q,T,zg(d.G));return!0},function(d,q,T){YM_(d,T,$XX(q))},z7j),U$j=Ib(function(d,q,T){if(d.U!==1&&d.U!==2)return!1;
  8021. q=JI(q,q[Wz]|0,T);if(d.U==2)for(T=w2(d.G)>>>0,T=d.G.G+T;d.G.G<T;)q.push(zg(d.G));else q.push(zg(d.G));return!0},function(d,q,T){q=fg($XX,q,!1);
  8022. if(q!=null)for(var Y=0;Y<q.length;Y++)YM_(d,T,q[Y])},z7j),bhn=zU(function(d,q,T){if(d.U!==5)return!1;
  8023. m3(q,T,f2(d.G));return!0},function(d,q,T){q=R4(q);
  8024. q!=null&&(Qu(d,T,5),h3(d.G,q))},wR7),X2L=zU(function(d,q,T){if(d.U!==0)return!1;
  8025. m3(q,T,Il(d.G));return!0},Qr1,WqQ),Jzs=zU(function(d,q,T,Y){if(d.U!==0)return!1;
  8026. NA(q,T,Y,Il(d.G));return!0},Qr1,WqQ),UU=zU(function(d,q,T){if(d.U!==2)return!1;
  8027. m3(q,T,gz(d));return!0},MV1,CQs),sTl=Ib(function(d,q,T){if(d.U!==2)return!1;
  8028. d=gz(d);JI(q,q[Wz]|0,T).push(d);return!0},function(d,q,T){q=fg(AA,q,!0);
  8029. if(q!=null)for(var Y=0;Y<q.length;Y++){var e=d,U=T,b=q[Y];b!=null&&MV(e,U,jTj(b))}},CQs),$$c=zU(function(d,q,T,Y){if(d.U!==2)return!1;
  8030. NA(q,T,Y,gz(d));return!0},MV1,CQs),bK,Xu=void 0;
  8031. Xu=Xu===void 0?j8:Xu;bK=new ab(function(d,q,T,Y,e){if(d.U!==2)return!1;Y=wY(void 0,Y,!0);JI(q,q[Wz]|0,T).push(Y);ol(d,Y,e);return!0},function(d,q,T,Y,e){if(Array.isArray(q))for(var U=0;U<q.length;U++)c4D(d,q[U],T,Y,e)},Xu);
  8032. var JX=A3(function(d,q,T,Y,e,U){if(d.U!==2)return!1;var b=q[Wz]|0;g2(q,b,U,T,Ic(b));q=yw(q,Y,T);ol(d,q,e);return!0},c4D),g9E=zU(function(d,q,T){if(d.U!==2)return!1;
  8033. m3(q,T,mX7(d));return!0},function(d,q,T){q=gS6(q);
  8034. q!=null&&MV(d,T,WV(q,!0).buffer)},Ins),Ffs=Ib(function(d,q,T){if(d.U!==2)return!1;
  8035. d=mX7(d);JI(q,q[Wz]|0,T).push(d);return!0},function(d,q,T){q=fg(gS6,q,!1);
  8036. if(q!=null)for(var Y=0;Y<q.length;Y++){var e=d,U=T,b=q[Y];b!=null&&MV(e,U,WV(b,!0).buffer)}},Ins),sU=zU(function(d,q,T){if(d.U!==0)return!1;
  8037. m3(q,T,w2(d.G)>>>0);return!0},function(d,q,T){q=R4(q);
  8038. q!=null&&q!=null&&(Qu(d,T,0),yu(d.G,q))},Dxq),$0=zU(function(d,q,T){if(d.U!==0)return!1;
  8039. m3(q,T,w2(d.G));return!0},function(d,q,T){q=Nb(q);
  8040. q!=null&&(q=parseInt(q,10),Qu(d,T,0),VvN(d.G,q))},mxN);jr2.prototype.register=function(){PZ(this)};g.M(dQ,Et);dQ.prototype.j=A4_([0,lnB,VjB,-2,Tbx]);var B_Q={lt2:1,Ef:2,a5O:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};GO7.prototype.V6=function(d){if(typeof d==="string"&&d.length!=0){var q=this.QU;if(q.U){d=d.split("&");for(var T=d.length-1;T>=0;T--){var Y=d[T].split("="),e=decodeURIComponent(Y[0]);Y.length>1?(Y=decodeURIComponent(Y[1]),Y=/^[0-9]+$/g.exec(Y)?parseInt(Y,10):Y):Y=1;(e=q.G[e])&&e.j(Y)}}}};var gA=null;var bB=g.oQ.performance,Nbl=!!(bB&&bB.mark&&bB.measure&&bB.clearMarks),eG=t4(function(){var d;if(d=Nbl){var q=q===void 0?window:q;if(gA===null){gA="";try{d="";try{d=q.top.location.hash}catch(Y){d=q.location.hash}if(d){var T=d.match(/\bdeid=([\d,]+)/);gA=T?T[1]:""}}catch(Y){}}q=gA;d=!!q.indexOf&&q.indexOf("1337")>=0}return d});
  8041. Ub.prototype.disable=function(){this.G=!1;this.events!==this.U.google_js_reporting_queue&&(eG()&&g.Sj(this.events,uE6),this.events.length=0)};
  8042. Ub.prototype.start=function(d,q){if(!this.G)return null;var T=WZn()||PYD();d=new CYY(d,q,T);q="goog_"+d.label+"_"+d.uniqueId+"_start";bB&&eG()&&bB.mark(q);return d};
  8043. Ub.prototype.end=function(d){if(this.G&&typeof d.value==="number"){var q=WZn()||PYD();d.duration=q-d.value;q="goog_"+d.label+"_"+d.uniqueId+"_end";bB&&eG()&&bB.mark(q);!this.G||this.events.length>2048||this.events.push(d)}};var DQn=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Q6=/#|$/,mQj=/[?&]($|#)/;lv6.prototype.RT=function(d,q,T,Y,e){e=e||this.g7;try{var U=new FQ;U.G.push(1);U.U[1]=Nq("context",d);q.error&&q.meta&&q.id||(q=new p5(Z7(q)));if(q.msg){var b=q.msg.substring(0,512);U.G.push(2);U.U[2]=Nq("msg",b)}var J=q.meta||{};if(this.CU)try{this.CU(J)}catch(h){}if(Y)try{Y(J)}catch(h){}Y=[J];U.G.push(3);U.U[3]=Y;var F=sT7();if(F.U){var N=F.U.url||"";U.G.push(4);U.U[4]=Nq("top",N)}var R={url:F.G.url||""};if(F.G.url){var x=g.Jq(F.G.url);var y=Xm(x[1],null,x[3],x[4])}else y="";N=[R,{url:y}];U.G.push(5);
  8044. U.U[5]=N;LZ7(this.G,e,U,T)}catch(h){try{LZ7(this.G,e,{context:"ecmserr",rctx:d,msg:Z7(h),url:F&&F.G.url},T)}catch(H){}}return this.K_};
  8045. g.M(p5,kOH);var aq,Aq,jG=new Ub;aq=new function(){var d="https:";OM&&OM.location&&OM.location.protocol==="http:"&&(d="http:");this.U=d;this.G=.01};
  8046. Aq=new lv6;OM&&OM.document&&(OM.document.readyState=="complete"?oEY():jG.G&&TI(OM,"load",function(){oEY()}));var qwN=Date.now(),G3=-1,BK=-1,$AN,L5=-1,K5=!1;kf.prototype.equals=function(d,q){return!!d&&(!(q===void 0?0:q)||this.volume==d.volume)&&this.j==d.j&&kE(this.G,d.G)&&!0};PK.prototype.tA=function(){return this.L};
  8047. PK.prototype.equals=function(d,q){return this.T.equals(d.T,q===void 0?!1:q)&&this.L==d.L&&kE(this.j,d.j)&&kE(this.X,d.X)&&this.G==d.G&&this.S==d.S&&this.U==d.U&&this.B==d.B};var Rij={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},ip={JR:"start",Ow:"firstquartile",tR:"midpoint",Ro:"thirdquartile",COMPLETE:"complete",ERROR:"error",Mm:"metric",PAUSE:"pause",sf:"resume",Hb:"skip",SW:"viewable_impression",pK:"mute",qm:"unmute",CG:"fullscreen",Zg:"exitfullscreen",Fm:"bufferstart",LG:"bufferfinish",kJ:"fully_viewable_audible_half_duration_impression",Qd:"measurable_impression",Rr:"abandon",Bi:"engagedview",Vx:"impression",A$:"creativeview",LOADED:"loaded",
  8048. i3v:"progress",CLOSE:"close",WVO:"collapse",gzg:"overlay_resize",WBv:"overlay_unmeasurable_impression",Bcw:"overlay_unviewable_impression",Opk:"overlay_viewable_immediate_impression",Zpf:"overlay_viewable_end_of_session_impression",g$:"custom_metric_viewable",SQ:"audio_audible",eQ:"audio_measurable",Ew:"audio_impression"},c31="start firstquartile midpoint thirdquartile resume loaded".split(" "),EYX=["start","firstquartile","midpoint","thirdquartile"],Fg7=["abandon"],Fz={UNKNOWN:-1,JR:0,Ow:1,tR:2,
  8049. Ro:3,COMPLETE:4,Mm:5,PAUSE:6,sf:7,Hb:8,SW:9,pK:10,qm:11,CG:12,Zg:13,kJ:14,Qd:15,Rr:16,Bi:17,Vx:18,A$:19,LOADED:20,g$:21,Fm:22,LG:23,Ew:27,eQ:28,SQ:29};var YwH={aff:"addEventListener",B45:"getMaxSize",Z8w:"getScreenSize",O8g:"getState",cqr:"getVersion",Ygv:"removeEventListener",W75:"isViewable"};$qD.prototype.update=function(d){d&&d.document&&(this.L=WK(!1,d,this.isMobileDevice),this.G=WK(!0,d,this.isMobileDevice),FA6(this,d),gQ6(this,d))};iB.prototype.cancel=function(){cz().clearTimeout(this.G);this.G=null};
  8050. iB.prototype.schedule=function(){var d=this,q=cz(),T=T3().G.G;this.G=q.setTimeout(qj(T,n5(143,function(){d.U++;d.j.sample()})),Tv_())};g.Q=Iq.prototype;g.Q.mU=function(){return!1};
  8051. g.Q.initialize=function(){return this.isInitialized=!0};
  8052. g.Q.gD=function(){return this.G.z2};
  8053. g.Q.Nc=function(){return this.G.lr};
  8054. g.Q.fail=function(d,q){if(!this.lr||(q===void 0?0:q))this.lr=!0,this.z2=d,this.B=0,this.G!=this||lB(this)};
  8055. g.Q.getName=function(){return this.G.RU};
  8056. g.Q.EX=function(){return this.G.tj()};
  8057. g.Q.tj=function(){return{}};
  8058. g.Q.Z0=function(){return this.G.B};
  8059. g.Q.l7=function(){var d=wQ();d.G=WK(!0,this.j,d.isMobileDevice)};
  8060. g.Q.UB=function(){gQ6(wQ(),this.j)};
  8061. g.Q.qg=function(){return this.T.G};
  8062. g.Q.sample=function(){};
  8063. g.Q.isActive=function(){return this.G.X};
  8064. g.Q.GK=function(d){var q=this.G;this.G=d.Z0()>=this.B?d:this;q!==this.G?(this.X=this.G.X,lB(this)):this.X!==this.G.X&&(this.X=this.G.X,lB(this))};
  8065. g.Q.BZ=function(d){if(d.U===this.G){var q=!this.T.equals(d,this.K);this.T=d;q&&xqY(this)}};
  8066. g.Q.c$=function(){return this.K};
  8067. g.Q.dispose=function(){this.rO=!0};
  8068. g.Q.JF=function(){return this.rO};g.Q=vK.prototype;g.Q.observe=function(){return!0};
  8069. g.Q.unobserve=function(){};
  8070. g.Q.yA=function(d){this.S=d};
  8071. g.Q.dispose=function(){if(!this.JF()){var d=this.U;g.jj(d.S,this);d.K&&this.c$()&&Rkg(d);this.unobserve();this.yv=!0}};
  8072. g.Q.JF=function(){return this.yv};
  8073. g.Q.EX=function(){return this.U.EX()};
  8074. g.Q.Z0=function(){return this.U.Z0()};
  8075. g.Q.gD=function(){return this.U.gD()};
  8076. g.Q.Nc=function(){return this.U.Nc()};
  8077. g.Q.GK=function(){};
  8078. g.Q.BZ=function(){this.tv()};
  8079. g.Q.c$=function(){return this.rO};g.Q=oq.prototype;g.Q.Z0=function(){return this.G.Z0()};
  8080. g.Q.gD=function(){return this.G.gD()};
  8081. g.Q.Nc=function(){return this.G.Nc()};
  8082. g.Q.create=function(d,q,T){var Y=null;this.G&&(Y=this.PQ(d,q,T),SG(this.G,Y));return Y};
  8083. g.Q.oM=function(){return this.Sm()};
  8084. g.Q.Sm=function(){return!1};
  8085. g.Q.init=function(d){return this.G.initialize()?(SG(this.G,this),this.T=d,!0):!1};
  8086. g.Q.GK=function(d){d.Z0()==0&&this.T(d.gD(),this)};
  8087. g.Q.BZ=function(){};
  8088. g.Q.c$=function(){return!1};
  8089. g.Q.dispose=function(){this.S=!0};
  8090. g.Q.JF=function(){return this.S};
  8091. g.Q.EX=function(){return{}};V6.prototype.add=function(d,q,T){++this.j;d=new hk2(d,q,T);this.G.push(new hk2(d.U,d.G,d.j+this.j/4096));this.U=!0;return this};EQn.prototype.toString=function(){var d="//pagead2.googlesyndication.com//pagead/gen_204",q=q8(this.G);q.length>0&&(d+="?"+q);return d};g.W.prototype.TB=!1;g.W.prototype.JF=function(){return this.TB};
  8092. g.W.prototype.dispose=function(){this.TB||(this.TB=!0,this.ir())};
  8093. g.W.prototype[Symbol.dispose]=function(){this.dispose()};
  8094. g.W.prototype.addOnDisposeCallback=function(d,q){this.TB?q!==void 0?d.call(q):d():(this.Ox||(this.Ox=[]),q&&(d=d.bind(q)),this.Ox.push(d))};
  8095. g.W.prototype.ir=function(){if(this.Ox)for(;this.Ox.length;)this.Ox.shift()()};var x$R=[0,ocj,bhn,-1];e9.prototype.update=function(d,q,T){d&&(this.G+=q,this.U+=q,this.T+=q,this.j=Math.max(this.j,this.T));if(T===void 0?!d:T)this.T=0};var AAj=[1,.75,.5,.3,0];UR.prototype.update=function(d,q,T,Y,e,U){U=U===void 0?!0:U;q=e?Math.min(d,q):q;for(e=0;e<this.U.length;e++){var b=this.U[e],J=q>0&&q>=b;b=!(d>0&&d>=b)||T;this.G[e].update(U&&J,Y,!U||b)}};gD.prototype.update=function(d,q,T,Y){this.L=this.L!=-1?Math.min(this.L,q.Rc):q.Rc;this.UD=Math.max(this.UD,q.Rc);this.yv=this.yv!=-1?Math.min(this.yv,q.Cq):q.Cq;this.z2=Math.max(this.z2,q.Cq);this.kx.update(q.Cq,T.Cq,q.G,d,Y);this.aU+=d;q.Rc===0&&(this.RU+=d);this.U.update(q.Rc,T.Rc,q.G,d,Y);T=Y||T.wZ!=q.wZ?T.isVisible()&&q.isVisible():T.isVisible();q=!q.isVisible()||q.G;this.xx.update(T,d,q)};
  8096. gD.prototype.i8=function(){return this.xx.j>=this.Bv};if(f5&&f5.URL){var yzl=f5.URL,hiL;if(hiL=!!yzl){var HhI;a:{if(yzl){var QT_=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var Fu=QT_.exec(decodeURIComponent(yzl));if(Fu){HhI=Fu[1]&&Fu[1].length>1?Fu[1].substring(1):"true";break a}}catch(d){}}HhI=""}hiL=HhI.length>0}Aq.K_=!hiL};var MY7=new GO(0,0,0,0);var KTH=new GO(0,0,0,0);g.M(M8,g.W);g.Q=M8.prototype;
  8097. g.Q.ir=function(){if(this.tp.G){if(this.zw.Fo){var d=this.tp.G;typeof d.removeEventListener==="function"&&d.removeEventListener("mouseover",this.zw.Fo,qq());this.zw.Fo=null}this.zw.LT&&(d=this.tp.G,typeof d.removeEventListener==="function"&&d.removeEventListener("mouseout",this.zw.LT,qq()),this.zw.LT=null)}this.iK&&this.iK.dispose();this.vl&&this.vl.dispose();delete this.fJ;delete this.v5;delete this.Kr;delete this.tp.Qm;delete this.tp.G;delete this.zw;delete this.iK;delete this.vl;delete this.QU;
  8098. g.W.prototype.ir.call(this)};
  8099. g.Q.eE=function(){return this.vl?this.vl.G:this.position};
  8100. g.Q.V6=function(d){T3().V6(d)};
  8101. g.Q.c$=function(){return!1};
  8102. g.Q.KB=function(){return new gD};
  8103. g.Q.Rk=function(){return this.fJ};
  8104. g.Q.Yn=function(d){return Pl7(this,d,1E4)};
  8105. g.Q.S5=function(d,q,T,Y,e,U,b){this.Vh||(this.cC&&(d=this.TF(d,T,e,b),Y=Y&&this.zN.Rc>=(this.wZ()?.3:.5),this.e2(U,d,Y),this.ul=q,d.Rc>0&&-1===this.ue&&(this.ue=q),this.qB==-1&&this.i8()&&(this.qB=q),this.H5==-2&&(this.H5=RO(this.eE())?d.Rc:-1),this.zN=d),this.v5(this))};
  8106. g.Q.e2=function(d,q,T){this.Rk().update(d,q,this.zN,T)};
  8107. g.Q.Pt=function(){return new vR};
  8108. g.Q.TF=function(d,q,T,Y){T=this.Pt();T.G=q;q=cz().U;q=YQ(f5)===0?-1:q.isVisible()?0:1;T.U=q;T.Rc=this.eY(d);T.wZ=this.wZ();T.Cq=Y;return T};
  8109. g.Q.eY=function(d){return this.opacity===0&&Az(this.QU,"opac")===1?0:d};
  8110. g.Q.wZ=function(){return!1};
  8111. g.Q.yG=function(){return this.bJ||this.Hc};
  8112. g.Q.qD=function(){tq()};
  8113. g.Q.WE=function(){tq()};
  8114. g.Q.T3=function(){return 0};
  8115. g.Q.i8=function(){return this.fJ.i8()};
  8116. g.Q.EY=function(){var d=this.cC;d=(this.hasCompleted||this.JF())&&!d;var q=T3().U!==2||this.mpv;return this.Vh||q&&d?2:this.i8()?4:3};
  8117. g.Q.NW=function(){return 0};g.ER.prototype.next=function(){return g.NJ};
  8118. g.NJ={done:!0,value:void 0};g.ER.prototype.zp=function(){return this};g.M(fY1,vR);var RS=i$j([void 0,1,2,3,4,8,16]),x0=i$j([void 0,4,8,16]),czQ={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:pF("p0",x0),p1:pF("p1",x0),p2:pF("p2",x0),p3:pF("p3",x0),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Ay("mtos1",[0,2,4],!1,x0),mtos2:Ay("mtos2",[0,2,4],!1,x0),mtos3:Ay("mtos3",[0,2,4],!1,x0),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:pF("a0",x0),a1:pF("a1",x0),a2:pF("a2",x0),a3:pF("a3",x0),ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as",
  8119. 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:pF("c0",x0),c1:pF("c1",x0),c2:pF("c2",x0),c3:pF("c3",x0),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:pF("qmtos",RS),qnc:pF("qnc",RS),qmv:pF("qmv",RS),qnv:pF("qnv",RS),
  8120. 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:pF("ss0",x0),ss1:pF("ss1",x0),ss2:pF("ss2",x0),ss3:pF("ss3",x0),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia",
  8121. omiddc:"omiddc",omidlat:"omidlat",omiddit:"omiddit",nopd:"nopd",co:"co",tm:"tm",tu:"tu"},E9l=Object.assign({},czQ,{avid:nT("audio"),avas:"avas",vs:"vs"}),jTq={atos:"atos",avt:Ay("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(d,q){return function(T){return T[d]===void 0&&q!==void 0?q:T[d]}}("ss",0),
  8122. t:"t"};rD.prototype.getValue=function(){return this.U};
  8123. rD.prototype.update=function(d,q){d>=32||(this.G&1<<d&&!q?this.U&=~(1<<d):this.G&1<<d||!q||(this.U|=1<<d),this.G|=1<<d)};g.M(ty,gD);
  8124. ty.prototype.update=function(d,q,T,Y){if(!q.paused){gD.prototype.update.call(this,d,q,T,Y);var e=aO(q)&&aO(T),U=(Y?Math.min(q.Rc,T.Rc):T.Rc)>=.5;uB(q.volume)&&(this.T=this.T!=-1?Math.min(this.T,q.volume):q.volume,this.X=Math.max(this.X,q.volume));U&&(this.rO+=d,this.K+=e?d:0);this.G.update(q.Rc,T.Rc,q.G,d,Y,e);this.j.update(!0,d);this.S.update(e,d);this.lr.update(T.fullscreen,d);this.wO.update(e&&!U,d);d=Math.floor(q.mediaTime/1E3);this.dO.update(d,q.isVisible());this.Fw.update(d,q.Rc>=1);this.AF.update(d,
  8125. aO(q))}};oj6.prototype.U=function(d){this.j||(this.G(d)?(d=sbI(this.K,this.T,d),this.S|=d,d=d==0):d=!1,this.j=d)};g.M(G1,oj6);G1.prototype.G=function(){return!0};
  8126. G1.prototype.X=function(){return!1};
  8127. G1.prototype.getId=function(){var d=this,q=gb(ip,function(T){return T==d.T});
  8128. return Fz[q].toString()};
  8129. G1.prototype.toString=function(){var d="";this.X()&&(d+="c");this.j&&(d+="s");this.S>0&&(d+=":"+this.S);return this.getId()+d};g.M(LF,G1);LF.prototype.U=function(d,q){q=q===void 0?null:q;q!=null&&this.L.push(q);G1.prototype.U.call(this,d)};g.M(kt,VE2);kt.prototype.U=function(){return null};
  8130. kt.prototype.j=function(){return[]};g.M(P5,vK);g.Q=P5.prototype;g.Q.MX=function(){if(this.element){var d=this.element,q=this.U.G.j;try{try{var T=Xz1(d.getBoundingClientRect())}catch(N){T=new GO(0,0,0,0)}var Y=T.right-T.left,e=T.bottom-T.top,U=InQ(d,q),b=U.x,J=U.y;var F=new GO(Math.round(J),Math.round(b+Y),Math.round(J+e),Math.round(b))}catch(N){F=MY7.clone()}this.j=F;this.G=y01(this,this.j)}};
  8131. g.Q.Z9=function(){this.X=this.U.T.G};
  8132. g.Q.uQ=function(d){var q=Az(this.QU,"od")==1;return BYH(d,this.X,this.element,q)};
  8133. g.Q.O4=function(){this.timestamp=tq()};
  8134. g.Q.tv=function(){this.O4();this.MX();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var d=this.element;var q=new g.zP(d.videoWidth,d.videoHeight);d=this.G;var T=LT(d),Y=d.getHeight(),e=q.width;q=q.height;e<=0||q<=0||T<=0||Y<=0||(e/=q,q=T/Y,d=d.clone(),e>q?(T/=e,Y=(Y-T)/2,Y>0&&(Y=d.top+Y,d.top=Math.round(Y),d.bottom=Math.round(Y+T))):(Y*=e,T=Math.round((T-Y)/2),T>0&&(T=d.left+T,d.left=Math.round(T),d.right=Math.round(T+Y))));this.G=d}this.Z9();
  8135. d=this.G;T=this.X;d=d.left<=T.right&&T.left<=d.right&&d.top<=T.bottom&&T.top<=d.bottom?new GO(Math.max(d.top,T.top),Math.min(d.right,T.right),Math.min(d.bottom,T.bottom),Math.max(d.left,T.left)):new GO(0,0,0,0);T=d.top>=d.bottom||d.left>=d.right?new GO(0,0,0,0):d;d=this.U.T;q=e=Y=0;if((this.G.bottom-this.G.top)*(this.G.right-this.G.left)>0)if(this.uQ(T))T=new GO(0,0,0,0);else{Y=wQ().T;q=new GO(0,Y.height,Y.width,0);var U;Y=xt(T,(U=this.S)!=null?U:this.G);e=xt(T,wQ().G);q=xt(T,q)}U=T.top>=T.bottom||
  8136. T.left>=T.right?new GO(0,0,0,0):PB(T,-this.G.left,-this.G.top);z3()||(e=Y=0);this.K=new PK(d,this.element,this.G,U,Y,e,this.timestamp,q)};
  8137. g.Q.getName=function(){return this.U.getName()};var amL=new GO(0,0,0,0);g.M(W5,P5);g.Q=W5.prototype;g.Q.observe=function(){this.T();return!0};
  8138. g.Q.BZ=function(){P5.prototype.tv.call(this)};
  8139. g.Q.O4=function(){};
  8140. g.Q.MX=function(){};
  8141. g.Q.tv=function(){this.T();P5.prototype.tv.call(this)};
  8142. g.Q.GK=function(d){d=d.isActive();d!==this.B&&(d?this.T():(wQ().G=new GO(0,0,0,0),this.G=new GO(0,0,0,0),this.X=new GO(0,0,0,0),this.timestamp=-1));this.B=d};var yS={},sl2=(yS.firstquartile=0,yS.midpoint=1,yS.thirdquartile=2,yS.complete=3,yS);g.M(up,M8);g.Q=up.prototype;g.Q.c$=function(){return!0};
  8143. g.Q.wK=function(){return this.eV==2};
  8144. g.Q.Yn=function(d){return Pl7(this,d,Math.max(1E4,this.j/3))};
  8145. g.Q.S5=function(d,q,T,Y,e,U,b){var J=this,F=this.L(this)||{};g.hz(F,e);this.j=F.duration||this.j;this.K=F.isVpaid||this.K;this.RU=F.isYouTube||this.RU;cz();this.kx=!1;e=qyf(this,q);dA1(this)===1&&(U=e);M8.prototype.S5.call(this,d,q,T,Y,F,U,b);this.QY&&this.QY.j&&g.Sj(this.X,function(N){N.U(J)})};
  8146. g.Q.e2=function(d,q,T){M8.prototype.e2.call(this,d,q,T);fF(this).update(d,q,this.zN,T);this.Bv=aO(this.zN)&&aO(q);this.z2==-1&&this.Fw&&(this.z2=this.Rk().j.G);this.Dh.j=0;d=this.i8();q.isVisible()&&nF(this.Dh,"vs");d&&nF(this.Dh,"vw");uB(q.volume)&&nF(this.Dh,"am");aO(q)?nF(this.Dh,"a"):nF(this.Dh,"mut");this.tO&&nF(this.Dh,"f");q.U!=-1&&(nF(this.Dh,"bm"),q.U==1&&(nF(this.Dh,"b"),aO(q)&&nF(this.Dh,"umutb")));aO(q)&&q.isVisible()&&nF(this.Dh,"avs");this.Bv&&d&&nF(this.Dh,"avw");q.Rc>0&&nF(this.Dh,
  8147. "pv");z1(this,this.Rk().j.G,!0)&&nF(this.Dh,"gdr");sR(this.Rk().U,1)>=2E3&&nF(this.Dh,"pmx");this.kx&&nF(this.Dh,"tvoff")};
  8148. g.Q.KB=function(){return new ty};
  8149. g.Q.Rk=function(){return this.fJ};
  8150. g.Q.Pt=function(){return new fY1};
  8151. g.Q.TF=function(d,q,T,Y){d=M8.prototype.TF.call(this,d,q,T,Y===void 0?-1:Y);d.fullscreen=this.tO;d.paused=this.wK();d.volume=T.volume;uB(d.volume)||(this.fn++,q=this.zN,uB(q.volume)&&(d.volume=q.volume));T=T.currentTime;d.mediaTime=T!==void 0&&T>=0?T:-1;return d};
  8152. g.Q.eY=function(d){return wQ(),this.tO?1:M8.prototype.eY.call(this,d)};
  8153. g.Q.T3=function(){return 1};
  8154. g.Q.getDuration=function(){return this.j};
  8155. g.Q.EY=function(){return this.Vh?2:YyH(this)?5:this.i8()?4:3};
  8156. g.Q.NW=function(){return this.wO?this.Rk().S.j>=2E3?4:3:2};
  8157. g.Q.yA=function(d){this.vl&&this.vl.yA(d)};var Azq=g.F_();MsQ.prototype.reset=function(){this.G=[];this.U=[]};
  8158. var v5=QC(MsQ);g.M(dS,oq);g.Q=dS.prototype;g.Q.getName=function(){return(this.U?this.U:this.G).getName()};
  8159. g.Q.EX=function(){return(this.U?this.U:this.G).EX()};
  8160. g.Q.Z0=function(){return(this.U?this.U:this.G).Z0()};
  8161. g.Q.init=function(d){var q=!1;(0,g.Sj)(this.j,function(T){T.initialize()&&(q=!0)});
  8162. q&&(this.T=d,SG(this.G,this));return q};
  8163. g.Q.dispose=function(){(0,g.Sj)(this.j,function(d){d.dispose()});
  8164. oq.prototype.dispose.call(this)};
  8165. g.Q.oM=function(){return D7(this.j,function(d){return d.mU()})};
  8166. g.Q.Sm=function(){return D7(this.j,function(d){return d.mU()})};
  8167. g.Q.PQ=function(d,q,T){return new P5(d,this.G,q,T)};
  8168. g.Q.BZ=function(d){this.U=d.U};var nJY={threshold:[0,.3,.5,.75,1]};g.M(q5,P5);g.Q=q5.prototype;g.Q.observe=function(){var d=this;this.UD||(this.UD=tq());if(dqN(298,function(){return rIX(d)}))return!0;
  8169. this.U.fail("msf");return!1};
  8170. g.Q.unobserve=function(){if(this.T&&this.element)try{this.T.unobserve(this.element),this.B?(this.B.unobserve(this.element),this.B=null):this.L&&(this.L.disconnect(),this.L=null)}catch(d){}};
  8171. g.Q.tv=function(){var d=Ts(this);d.length>0&&Y3(this,d);P5.prototype.tv.call(this)};
  8172. g.Q.MX=function(){};
  8173. g.Q.uQ=function(){return!1};
  8174. g.Q.Z9=function(){};
  8175. g.Q.EX=function(){var d={};return Object.assign(this.U.EX(),(d.niot_obs=this.UD,d.niot_cbk=this.lr,d))};
  8176. g.Q.getName=function(){return"nio"};g.M(eI,oq);eI.prototype.getName=function(){return"nio"};
  8177. eI.prototype.Sm=function(){return!wQ().U&&this.G.G.j.IntersectionObserver!=null};
  8178. eI.prototype.PQ=function(d,q,T){return new q5(d,this.G,q,T)};g.M(Ur,Iq);Ur.prototype.qg=function(){return wQ().G};
  8179. Ur.prototype.mU=function(){var d=B2f();this.B!==d&&(this.G!=this&&d>this.G.B&&(this.G=this,lB(this)),this.B=d);return d==2};b3.prototype.sample=function(){sr(this,oO(),!1)};
  8180. b3.prototype.T=function(){var d=z3(),q=tq();d?(K5||(G3=q,g.Sj(v5.G,function(T){var Y=T.Rk();Y.qk=B5(Y,q,T.eV!=1)})),K5=!0):(this.L=PDH(this,q),K5=!1,$AN=q,g.Sj(v5.G,function(T){T.cC&&(T.Rk().B=q)}));
  8181. sr(this,oO(),!d)};
  8182. var Xz=QC(b3);var CDI=null,k3="",tD=!1;var wVg=DAX().WO,gS=DAX().Z7;var i21={N4w:"visible",y0w:"audible",iSF:"time",TKD:"timetype"},IcY={visible:function(d){return/^(100|[0-9]{1,2})$/.test(d)},
  8183. audible:function(d){return d=="0"||d=="1"},
  8184. timetype:function(d){return d=="mtos"||d=="tos"},
  8185. time:function(d){return/^(100|[0-9]{1,2})%$/.test(d)||/^([0-9])+ms$/.test(d)}};
  8186. zZf.prototype.setTime=function(d,q,T){q=="ms"?(this.j=d,this.T=-1):(this.j=-1,this.T=d);this.S=T===void 0?"tos":T;return this};g.M(x3,G1);x3.prototype.getId=function(){return this.L};
  8187. x3.prototype.X=function(){return!0};
  8188. x3.prototype.G=function(d){var q=d.Rk(),T=d.getDuration();return D7(this.B,function(Y){if(Y.G!=void 0)var e=SyI(Y,q);else b:{switch(Y.S){case "mtos":e=Y.U?q.S.j:q.j.G;break b;case "tos":e=Y.U?q.S.G:q.j.G;break b}e=0}e==0?Y=!1:(Y=Y.j!=-1?Y.j:T!==void 0&&T>0?Y.T*T:-1,Y=Y!=-1&&e>=Y);return Y})};g.M(yc,mbn);yc.prototype.G=function(d){var q=new IYY;q.G=OR(d,czQ);q.U=OR(d,jTq);return q};g.M(hD,G1);hD.prototype.G=function(d){return YyH(d)};g.M(H3,VE2);g.M(Qc,G1);Qc.prototype.G=function(d){return d.Rk().i8()};g.M(M5,LF);M5.prototype.G=function(d){var q=g.cR(this.L,Az(T3().QU,"ovms"));return!d.Vh&&(d.eV!=0||q)};g.M(c3,H3);c3.prototype.U=function(){return new M5(this.G)};
  8189. c3.prototype.j=function(){return[new Qc("viewable_impression",this.G),new hD(this.G)]};g.M(Er,W5);Er.prototype.T=function(){var d=g.qx("ima.admob.getViewability"),q=Az(this.QU,"queryid");typeof d==="function"&&q&&d(q)};
  8190. Er.prototype.getName=function(){return"gsv"};g.M(jI,oq);jI.prototype.getName=function(){return"gsv"};
  8191. jI.prototype.Sm=function(){var d=wQ();T3();return d.U&&!1};
  8192. jI.prototype.PQ=function(d,q,T){return new Er(this.G,q,T)};g.M(aL,W5);aL.prototype.T=function(){var d=this,q=g.qx("ima.bridge.getNativeViewability"),T=Az(this.QU,"queryid");typeof q==="function"&&T&&q(T,function(Y){g.FV(Y)&&d.L++;var e=Y.opt_nativeViewVisibleBounds||{},U=Y.opt_nativeViewHidden;d.G=J0Q(Y.opt_nativeViewBounds||{});var b=d.U.T;b.G=U?amL.clone():J0Q(e);d.timestamp=Y.opt_nativeTime||-1;wQ().G=b.G;Y=Y.opt_nativeVolume;Y!==void 0&&(b.volume=Y)})};
  8193. aL.prototype.getName=function(){return"nis"};g.M(AD,oq);AD.prototype.getName=function(){return"nis"};
  8194. AD.prototype.Sm=function(){var d=wQ();T3();return d.U&&!1};
  8195. AD.prototype.PQ=function(d,q,T){return new aL(this.G,q,T)};g.M(pJ,Iq);g.Q=pJ.prototype;g.Q.mU=function(){return this.U.oi!=null};
  8196. g.Q.tj=function(){var d={};this.dO&&(d.mraid=this.dO);this.yv&&(d.mlc=1);d.mtop=this.U.POf;this.L&&(d.mse=this.L);this.aU&&(d.msc=1);d.mcp=this.U.compatibility;return d};
  8197. g.Q.gf=function(d){var q=g.CN.apply(1,arguments);try{return this.U.oi[d].apply(this.U.oi,q)}catch(T){rQ(538,T,.01,function(Y){Y.method=d})}};
  8198. g.Q.initialize=function(){var d=this;if(this.isInitialized)return!this.Nc();this.isInitialized=!0;if(this.U.compatibility===2)return this.L="ng",this.fail("w"),!1;if(this.U.compatibility===1)return this.L="mm",this.fail("w"),!1;wQ().B=!0;this.j.document.readyState&&this.j.document.readyState=="complete"?VsQ(this):N8(this.j,"load",function(){cz().setTimeout(n5(292,function(){return VsQ(d)}),100)},292);
  8199. return!0};
  8200. g.Q.l7=function(){var d=wQ(),q=eRg(this,"getMaxSize");d.G=new GO(0,q.width,q.height,0)};
  8201. g.Q.UB=function(){wQ().T=eRg(this,"getScreenSize")};
  8202. g.Q.dispose=function(){qt7(this);Iq.prototype.dispose.call(this)};var nE6=new function(d,q){this.key=d;this.defaultValue=q===void 0?!1:q;this.valueType="boolean"}("45378663");g.Q=Or.prototype;g.Q.Qa=function(d){c5(d,!1);acQ(d)};
  8203. g.Q.i4=function(){};
  8204. g.Q.R$=function(d,q,T,Y){var e=this;d=new up(OM,d,T?q:-1,7,this.Bz(),this.Hk());d.UN=Y;P_Y(d.QU);aT(d.QU,"queryid",d.UN);d.V6("");ueQ(d,function(){return e.Aj.apply(e,g.RQ(g.CN.apply(0,arguments)))},function(){return e.ZM.apply(e,g.RQ(g.CN.apply(0,arguments)))});
  8205. (Y=QC(Vg).G)&&ki6(d,Y);this.j&&(d.yA(this.j),this.j=null);d.tp.Qm&&QC(Kg_);return d};
  8206. g.Q.GK=function(d){switch(d.Z0()){case 0:if(d=QC(Vg).G)d=d.G,g.jj(d.S,this),d.K&&this.c$()&&Rkg(d);rS();break;case 2:JD()}};
  8207. g.Q.BZ=function(){};
  8208. g.Q.c$=function(){return!1};
  8209. g.Q.ZM=function(d,q){d.Vh=!0;switch(d.T3()){case 1:$Vn(d,q);break;case 2:this.jy(d)}};
  8210. g.Q.GL=function(d){var q=d.L(d);q&&(q=q.volume,d.wO=uB(q)&&q>0);b2Y(d,0);return IO(d,"start",z3())};
  8211. g.Q.ZV=function(d,q,T){sr(Xz,[d],!z3());return this.yj(d,q,T)};
  8212. g.Q.yj=function(d,q,T){return IO(d,T,z3())};
  8213. g.Q.kW=function(d){return u3(d,"firstquartile",1)};
  8214. g.Q.KI=function(d){d.Fw=!0;return u3(d,"midpoint",2)};
  8215. g.Q.fV=function(d){return u3(d,"thirdquartile",3)};
  8216. g.Q.O3=function(d){var q=u3(d,"complete",4);Dl(d);return q};
  8217. g.Q.cI=function(d){d.eV=3;return IO(d,"error",z3())};
  8218. g.Q.hn=function(d,q,T){q=z3();if(d.wK()&&!q){var Y=d.Rk(),e=tq();Y.B=e}sr(Xz,[d],!q);d.wK()&&(d.eV=1);return IO(d,T,q)};
  8219. g.Q.Pc=function(d,q){q=this.ZV(d,q||{},"skip");Dl(d);return q};
  8220. g.Q.V7=function(d,q){c5(d,!0);return this.ZV(d,q||{},"fullscreen")};
  8221. g.Q.CI=function(d,q){c5(d,!1);return this.ZV(d,q||{},"exitfullscreen")};
  8222. g.Q.xC=function(d,q,T){q=d.Rk();var Y=tq();q.qk=B5(q,Y,d.eV!=1);sr(Xz,[d],!z3());d.eV==1&&(d.eV=2);return IO(d,T,z3())};
  8223. g.Q.w2=function(d){sr(Xz,[d],!z3());return d.U()};
  8224. g.Q.XY=function(d){sr(Xz,[d],!z3());this.jJ(d);Dl(d);return d.U()};
  8225. g.Q.Aj=function(){};
  8226. g.Q.jy=function(){};
  8227. g.Q.jJ=function(){};
  8228. g.Q.jG=function(){};
  8229. g.Q.ZF=function(){};
  8230. g.Q.Hk=function(){this.G||(this.G=this.ZF());return this.G==null?new kt:new c3(this.G)};
  8231. g.Q.Bz=function(){return new yc};g.M(DU,G1);DU.prototype.G=function(d){return d.NW()==4};g.M(wS,LF);wS.prototype.G=function(d){d=d.NW();return d==3||d==4};g.M(fJ,H3);fJ.prototype.U=function(){return new wS(this.G)};
  8232. fJ.prototype.j=function(){return[new DU(this.G)]};g.M(zs,mbn);zs.prototype.G=function(d){d&&(d.e===28&&(d=Object.assign({},d,{avas:3})),d.vs===4||d.vs===5)&&(d=Object.assign({},d,{vs:3}));var q=new IYY;q.G=OR(d,E9l);q.U=OR(d,jTq);return q};RRI.prototype.U=function(){return g.qx(this.G)};g.M(i3,Or);g.Q=i3.prototype;g.Q.i4=function(d,q){var T=this,Y=QC(Vg);if(Y.G!=null)switch(Y.G.getName()){case "nis":var e=Hgg(this,d,q);break;case "gsv":e=hRf(this,d,q);break;case "exc":e=Qb6(this,d)}e||(q.opt_overlayAdElement?e=void 0:q.opt_adElement&&(e=F37(this,d,q.opt_adElement,q.opt_osdId)));e&&e.T3()==1&&(e.L==g.r_&&(e.L=function(U){return T.jG(U)}),y3I(this,e,q));
  8233. return e};
  8234. g.Q.jG=function(d){d.U=0;d.rO=0;if(d.T=="h"||d.T=="n"){T3();d.AF&&(T3(),W3(this)!="h"&&W3(this));var q=g.qx("ima.common.getVideoMetadata");if(typeof q==="function")try{var T=q(d.UN)}catch(e){d.U|=4}else d.U|=2}else if(d.T=="b")if(q=g.qx("ytads.bulleit.getVideoMetadata"),typeof q==="function")try{T=q(d.UN)}catch(e){d.U|=4}else d.U|=2;else if(d.T=="ml")if(q=g.qx("ima.common.getVideoMetadata"),typeof q==="function")try{T=q(d.UN)}catch(e){d.U|=4}else d.U|=2;else d.U|=1;d.U||(T===void 0?d.U|=8:T===null?
  8235. d.U|=16:g.FV(T)?d.U|=32:T.errorCode!=null&&(d.rO=T.errorCode,d.U|=64));T==null&&(T={});q=T;d.B=0;for(var Y in Rij)q[Y]==null&&(d.B|=Rij[Y]);NzI(q,"currentTime");NzI(q,"duration");uB(T.volume)&&uB()&&(T.volume*=NaN);return T};
  8236. g.Q.ZF=function(){T3();W3(this)!="h"&&W3(this);var d=M86(this);return d!=null?new RRI(d):null};
  8237. g.Q.jy=function(d){!d.G&&d.Vh&&CJ(this,d,"overlay_unmeasurable_impression")&&(d.G=!0)};
  8238. g.Q.jJ=function(d){d.Bw&&(d.i8()?CJ(this,d,"overlay_viewable_end_of_session_impression"):CJ(this,d,"overlay_unviewable_impression"),d.Bw=!1)};
  8239. g.Q.Aj=function(){};
  8240. g.Q.R$=function(d,q,T,Y){if(r42()){var e=Az(T3().QU,"mm"),U={};(e=(U[Yf.mX]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",U[Yf.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",U)[e])&&aLj(this,e);this.T==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&rQ(1044,Error())}d=Or.prototype.R$.call(this,d,q,T,Y);this.S&&(q=this.X,d.S==null&&(d.S=new Dbf),q.G[d.UN]=d.S,d.S.S=Azq);return d};
  8241. g.Q.Qa=function(d){d&&d.T3()==1&&this.S&&delete this.X.G[d.UN];return Or.prototype.Qa.call(this,d)};
  8242. g.Q.Hk=function(){this.G||(this.G=this.ZF());return this.G==null?new kt:this.T==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new fJ(this.G):new c3(this.G)};
  8243. g.Q.Bz=function(){return this.T==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new zs:new yc};
  8244. g.Q.yA=function(d,q,T,Y,e){q=new GO(T,q+Y,T+e,q);(d=lp(v5,d))?d.yA(q):this.j=q};
  8245. var p2N=Ob(193,p07,void 0,gYg);g.Vf("Goog_AdSense_Lidar_sendVastEvent",p2N);var ZhB=n5(194,function(d,q){q=q===void 0?{}:q;d=jb2(QC(i3),d,q);return A3f(d)});
  8246. g.Vf("Goog_AdSense_Lidar_getViewability",ZhB);var OhL=Ob(195,function(){return hiI()});
  8247. g.Vf("Goog_AdSense_Lidar_getUrlSignalsArray",OhL);var n9I=n5(196,function(){return JSON.stringify(hiI())});
  8248. g.Vf("Goog_AdSense_Lidar_getUrlSignalsList",n9I);var nYQ=yf(["//ep2.adtrafficquality.google/sodar/",""]),r3g=yf(["//tpc.googlesyndication.com/sodar/",""]);g.M(SI,Error);g.M(oL,g.W);oL.prototype.J_=function(){return this.wpc.f()};
  8249. oL.prototype.gt=function(d){this.wpc.c(d)};
  8250. oL.prototype.rf=function(d){return this.wpc.m(GUX(d))};
  8251. oL.prototype.RE=function(d){return this.wpc.mws(GUX(d))};
  8252. g.M(l3,g.W);l3.prototype.snapshot=function(d){return this.CH.s(Object.assign({},d.BO&&{c:d.BO},d.Vf&&{s:d.Vf},d.P_!==void 0&&{p:d.P_}))};
  8253. l3.prototype.f0=function(d){this.CH.e(d)};
  8254. l3.prototype.oe=function(){return this.CH.l()};var uj_;g.M(dq,g.W);dq.prototype.share=function(){if(this.JF())throw Error("E:AD");this.U++;return this};
  8255. dq.prototype.dispose=function(){--this.U||g.W.prototype.dispose.call(this)};
  8256. uj_=Symbol.dispose;DVH.prototype.Z5=function(d,q){this.G.Z5("/client_streamz/bg/frs",d,q)};
  8257. w07.prototype.Z5=function(d,q,T,Y,e,U){this.G.Z5("/client_streamz/bg/wrl",d,q,T,Y,e,U)};
  8258. fLn.prototype.Er=function(d,q){this.G.Tp("/client_streamz/bg/ec",d,q)};
  8259. zR2.prototype.Z5=function(d,q,T){this.G.Z5("/client_streamz/bg/el",d,q,T)};
  8260. igN.prototype.Er=function(d,q){this.G.Tp("/client_streamz/bg/cec",d,q)};
  8261. ILH.prototype.Er=function(d,q){this.G.Tp("/client_streamz/bg/po/csc",d,q)};
  8262. mVj.prototype.Er=function(d,q){this.G.Tp("/client_streamz/bg/po/ctav",d,q)};
  8263. Stn.prototype.Er=function(d,q){this.G.Tp("/client_streamz/bg/po/cwsc",d,q)};g.M(lL1,Et);g.M(Ym,Et);var $m=[1,2,3];var rzI=[0,$m,$$c,YNR,Jzs];var tYE=[0,bK,[0,SIR,ocj]];g.M(e$,Et);var sE=[1,2,3];var Bb_=[0,sE,d$q,vcq,JX,tYE];g.M(UE,Et);var Kf7=[0,bK,rzI,Bb_];var GXj=[0,UU];g.M(bm,Et);var LfQ=[0,UU,-1,X2L];var kXR=[0,UU,-1,qNR,X2L];g.M(XP,Et);var hG6=[1,2,3];var PwQ=[0,hG6,JX,LfQ,JX,kXR,JX,GXj];g.M(JS,Et);JS.prototype.xH=function(){var d=es(this,3,AA,3,!0);zI(d);return d[void 0]};JS.prototype.j=A4_([0,UU,PwQ,sTl,bK,Kf7,eiB,U$j]);g.M(oYn,Et);g.Q=gq.prototype;g.Q.isEnabled=function(){if(!g.oQ.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{s2:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
  8264. g.Q.set=function(d,q,T){var Y=!1;if(typeof T==="object"){var e=T.Jew;Y=T.secure||!1;var U=T.domain||void 0;var b=T.path||void 0;var J=T.s2}if(/[;=\s]/.test(d))throw Error('Invalid cookie name "'+d+'"');if(/[;\r\n]/.test(q))throw Error('Invalid cookie value "'+q+'"');J===void 0&&(J=-1);T=U?";domain="+U:"";b=b?";path="+b:"";Y=Y?";secure":"";J=J<0?"":J==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+J*1E3)).toUTCString();this.G.cookie=d+"="+q+T+b+J+Y+(e!=null?";samesite="+
  8265. e:"")};
  8266. g.Q.get=function(d,q){for(var T=d+"=",Y=(this.G.cookie||"").split(";"),e=0,U;e<Y.length;e++){U=Kh(Y[e]);if(U.lastIndexOf(T,0)==0)return U.slice(T.length);if(U==d)return""}return q};
  8267. g.Q.remove=function(d,q,T){var Y=this.get(d)!==void 0;this.set(d,"",{s2:0,path:q,domain:T});return Y};
  8268. g.Q.ll=function(){return FP(this).keys};
  8269. g.Q.N0=function(){return FP(this).values};
  8270. g.Q.isEmpty=function(){return!this.G.cookie};
  8271. g.Q.clear=function(){for(var d=FP(this).keys,q=d.length-1;q>=0;q--)this.remove(d[q])};
  8272. var O3=new gq(typeof document=="undefined"?null:document);NS.prototype.compress=function(d){var q,T,Y,e;return g.G(function(U){switch(U.U){case 1:return q=new CompressionStream("gzip"),T=(new Response(q.readable)).arrayBuffer(),Y=q.writable.getWriter(),g.B(U,Y.write((new TextEncoder).encode(d)),2);case 2:return g.B(U,Y.close(),3);case 3:return e=Uint8Array,g.B(U,T,4);case 4:return U.return(new e(U.G))}})};
  8273. NS.prototype.isSupported=function(d){return d<1024?!1:typeof CompressionStream!=="undefined"};g.M(RB,Et);xm.prototype.setInterval=function(d){this.intervalMs=d;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
  8274. xm.prototype.start=function(){var d=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){d.tick()},this.intervalMs),this.U=this.G())};
  8275. xm.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
  8276. xm.prototype.tick=function(){var d=this;if(this.enabled){var q=Math.max(this.G()-this.U,0);q<this.intervalMs*.8?this.timer=setTimeout(function(){d.tick()},this.intervalMs-q):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};g.M(y1,Et);g.M(hS,Et);g.M(HP,Et);HP.prototype.jA=function(){return n2(this,1)};g.M(Q1,Et);g.M(MS,Et);var yqX=Vu(MS);g.M(EE,Et);var gfg=["platform","platformVersion","architecture","model","uaFullVersion"],cP=new MS,j$=null;g.M(aB,Et);g.M(Rxf,Et);g.M(AS,Et);g.M(pb,Et);pb.prototype.N=function(){var d=this.Kf;return tvY(d,d[Wz]|0,Rxf,7)!==void 0};
  8277. pb.prototype.AI=function(){return hI(this,RB,16)};g.M(ZQ,Et);ZQ.prototype.cj=function(d){return L2(this,2,d)};nb.prototype.cj=function(d){this.G.cj(d);return this};
  8278. nb.prototype.build=function(d,q,T,Y,e,U){q=q===void 0?0:q;T=T===void 0?0:T;Y=Y===void 0?null:Y;e=e===void 0?0:e;U=U===void 0?0:U;if(!this.oW){var b=rq(this);var J=new HP;J=L2(J,1,this.U);J=VX(J,2,JA(this.isFinal));T=VX(J,3,Fe(T>0?T:void 0));T=VX(T,4,Fe(e>0?e:void 0));T=VX(T,5,Fe(U>0?U:void 0));e=T.Kf;U=e[Wz]|0;T=fp(T,U)?T:zi(T,e,U)?il(T,e):new T.constructor(f$(e,U,!0));Qw(b,HP,10,T)}b=this.G.clone();T=Date.now().toString();b=VX(b,4,cE(T));d=al(b,pb,3,d.slice());Y&&(b=new y1,Y=VX(b,13,Fe(Y)),b=new hS,
  8279. Y=Qw(b,y1,2,Y),b=new AS,Y=Qw(b,hS,1,Y),Y=L2(Y,2,9),Qw(d,AS,18,Y));q&&BV(d,14,q);return d};g.tS.prototype.U=0;g.tS.prototype.reset=function(){this.G=this.j=this.T;this.U=0};
  8280. g.tS.prototype.getValue=function(){return this.j};g.M(ob,Et);var Wfq=Vu(ob);g.M(EEg,Et);var hX;hX=new jr2;g.M(Lb,g.W);g.Q=Lb.prototype;g.Q.ir=function(){Gx(this);this.U.stop();this.dO.stop();g.W.prototype.ir.call(this)};
  8281. g.Q.dispatch=function(d){if(d instanceof pb)this.log(d);else try{var q=new pb,T=d.VH();var Y=K2(q,8,T);this.log(Y)}catch(e){km(this,4,1)}};
  8282. g.Q.log=function(d){km(this,2,1);if(this.aU){d=d.clone();var q=this.xx++;d=BV(d,21,q);this.componentId&&K2(d,26,this.componentId);q=d;var T=vE(q,1);var Y=Y===void 0?!1:Y;var e=typeof T;Y=T==null?T:e==="bigint"?String(yX(64,T)):gY(T)?e==="string"?xj(T):Y?QX(T):Mb(T):void 0;Y==null&&(Y=Date.now(),Y=Number.isFinite(Y)?Y.toString():"0",VX(q,1,cE(Y)));Y=vE(q,15);Y!=null&&(typeof Y==="bigint"?kj(Y)?Y=Number(Y):(Y=yX(64,Y),Y=kj(Y)?Number(Y):String(Y)):Y=gY(Y)?typeof Y==="number"?Mb(Y):xj(Y):void 0);Y!=null||
  8283. BV(q,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(Y=this.experimentIds.clone(),Qw(q,RB,16,Y));km(this,1,1);q=this.G.length-1E3+1;q>0&&(this.G.splice(0,q),this.T+=q,km(this,3,q));this.G.push(d);this.gS||this.U.enabled||this.U.start()}};
  8284. g.Q.flush=function(d,q){var T=this;if(this.G.length===0)d&&d();else if(this.z2&&this.lr)this.j.U=3,Ef6(this);else{var Y=Date.now();if(this.qk>Y&&this.rO<Y)q&&q("throttled");else{this.network&&(typeof this.network.jA==="function"?xjf(this.j,this.network.jA()):this.j.U=0);var e=this.G.length,U=this.j.build(this.G,this.T,this.X,this.wd,this.yv,this.UD),b=this.Nq();if(b&&this.RU===b)q&&q("stale-auth-token");else{this.G=[];this.U.enabled&&this.U.stop();this.T=0;Y=U.VH();var J;this.L&&this.L.isSupported(Y.length)&&
  8285. (J=this.L.compress(Y));var F=MGj(this,Y,b),N=function(y){T.S.reset();T.U.setInterval(T.S.getValue());if(y){var h=null;try{var H=JSON.stringify(JSON.parse(y.replace(")]}'\n","")));h=Wfq(H)}catch(t){}if(h){y=Number(P4n(h,1,vz("-1")));y>0&&(T.rO=Date.now(),T.qk=T.rO+y);y=Nx(rY);var a;Pz&&y&&((a=h.Kf[y])==null?void 0:a[175237375])!=null&&Lp(rEq,3);a:{var p=p===void 0?!1:p;if(Nx(tjj)&&Nx(rY)&&void 0===tjj){a=h.Kf;y=a[rY];if(!y)break a;if(y=y.hX)try{y(a,175237375,PQL);break a}catch(t){j0(t)}}p&&(p=h.Kf,
  8286. (a=Nx(rY))&&a in p&&(p=p[a])&&delete p[175237375])}p=hX.G?hX.U(h,hX.G,175237375,hX.j):hX.U(h,175237375,null,hX.j);if(p=p===null?void 0:p)p=p2(p,1,-1),p!==-1&&(T.S=new g.tS(p<1?1:p,3E5,.1),T.U.setInterval(T.S.getValue()))}}d&&d();T.X=0},R=function(y,h){var H=HV(U,pb,3);
  8287. var a=Number(P4n(U,14));g.BP(T.S);T.U.setInterval(T.S.getValue());y===401&&b&&(T.RU=b);a&&(T.T+=a);h===void 0&&(h=T.isRetryable(y));h&&(T.G=H.concat(T.G),T.gS||T.U.enabled||T.U.start());km(T,7,1);q&&q("net-send-failed",y);++T.X},x=function(){T.network&&T.network.send(F,N,R)};
  8288. J?J.then(function(y){km(T,5,e);F.requestHeaders["Content-Encoding"]="gzip";F.requestHeaders["Content-Type"]="application/binary";F.body=y;F.UA=2;x()},function(){km(T,6,e);
  8289. x()}):x()}}}};
  8290. g.Q.isRetryable=function(d){return 500<=d&&d<600||d===401||d===0};PP.prototype.send=function(d,q,T){var Y=this,e,U,b,J,F,N,R,x,y,h;return g.G(function(H){switch(H.U){case 1:return U=(e=Y.nK?new AbortController:void 0)?setTimeout(function(){e.abort()},d.timeoutMillis):void 0,g.jD(H,2,3),b=Object.assign({},{method:d.requestType,
  8291. headers:Object.assign({},d.requestHeaders)},d.body&&{body:d.body},d.withCredentials&&{credentials:"include"},{signal:d.timeoutMillis&&e?e.signal:null}),g.B(H,fetch(d.url,b),5);case 5:J=H.G;if(J.status!==200){(F=T)==null||F(J.status);H.tF(3);break}if((N=q)==null){H.tF(7);break}return g.B(H,J.text(),8);case 8:N(H.G);case 7:case 3:g.KN(H);clearTimeout(U);g.LN(H,0);break;case 2:R=g.nN(H);switch((x=R)==null?void 0:x.name){case "AbortError":(y=T)==null||y(408);break;default:(h=T)==null||h(400)}H.tF(3)}})};
  8292. PP.prototype.jA=function(){return 4};g.M(WP,g.W);WP.prototype.Uy=function(){this.S=!0;return this};
  8293. WP.prototype.build=function(){this.network||(this.network=new PP);var d=new Lb({logSource:this.logSource,Nq:this.Nq?this.Nq:sqD,sessionIndex:this.sessionIndex,kur:this.sX,oW:this.T,gS:!1,Uy:this.S,D9:this.D9,network:this.network});g.C(this,d);if(this.U){var q=this.U,T=rq(d.j);K2(T,7,q)}d.L=new NS;this.componentId&&(d.componentId=this.componentId);this.wd&&(d.wd=this.wd);this.pageId&&(d.pageId=this.pageId);this.G&&((T=this.G)?(d.experimentIds||(d.experimentIds=new RB),q=d.experimentIds,T=T.VH(),K2(q,
  8294. 4,T)):d.experimentIds&&VX(d.experimentIds,4));this.j&&(d.z2=d.lr);hx6(d.j);this.network.cj&&this.network.cj(this.logSource);this.network.OzF&&this.network.OzF(d);return d};g.M(Cb,g.W);Cb.prototype.flush=function(d){d=d||[];if(d.length){for(var q=new oYn,T=[],Y=0;Y<d.length;Y++){var e=d[Y],U=qbQ(e);T.push(U);e.clear()}al(q,JS,1,T);this.G.dispatch(q);this.G.flush()}};g.Q=um.prototype;g.Q.Bb=function(d){var q=g.CN.apply(1,arguments),T=this.Fe(q);T?T.push(new Z5Q(d)):this.eJ(d,q)};
  8295. g.Q.eJ=function(d){this.G.set(this.i7(g.CN.apply(1,arguments)),[new Z5Q(d)])};
  8296. g.Q.Fe=function(){var d=this.i7(g.CN.apply(0,arguments));return this.G.has(d)?this.G.get(d):void 0};
  8297. g.Q.ge=function(){var d=this.Fe(g.CN.apply(0,arguments));return d&&d.length?d[0]:void 0};
  8298. g.Q.clear=function(){this.G.clear()};
  8299. g.Q.i7=function(){var d=g.CN.apply(0,arguments);return d?d.join(","):"key"};g.M(DQ,um);DQ.prototype.j=function(d){var q=g.CN.apply(1,arguments),T=0,Y=this.ge(q);Y&&(T=Y.G);this.eJ(T+d,q)};g.M(wq,um);wq.prototype.Z5=function(d){this.Bb(d,g.CN.apply(1,arguments))};g.fb.prototype.stopPropagation=function(){this.U=!0};
  8300. g.fb.prototype.preventDefault=function(){this.defaultPrevented=!0};g.Rs(zx,g.fb);
  8301. zx.prototype.init=function(d,q){var T=this.type=d.type,Y=d.changedTouches&&d.changedTouches.length?d.changedTouches[0]:null;this.target=d.target||d.srcElement;this.currentTarget=q;q=d.relatedTarget;q||(T=="mouseover"?q=d.fromElement:T=="mouseout"&&(q=d.toElement));this.relatedTarget=q;Y?(this.clientX=Y.clientX!==void 0?Y.clientX:Y.pageX,this.clientY=Y.clientY!==void 0?Y.clientY:Y.pageY,this.screenX=Y.screenX||0,this.screenY=Y.screenY||0):(this.clientX=d.clientX!==void 0?d.clientX:d.pageX,this.clientY=
  8302. d.clientY!==void 0?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0);this.button=d.button;this.keyCode=d.keyCode||0;this.key=d.key||"";this.charCode=d.charCode||(T=="keypress"?d.keyCode:0);this.ctrlKey=d.ctrlKey;this.altKey=d.altKey;this.shiftKey=d.shiftKey;this.metaKey=d.metaKey;this.pointerId=d.pointerId||0;this.pointerType=d.pointerType;this.state=d.state;this.G=d;d.defaultPrevented&&zx.VX.preventDefault.call(this)};
  8303. zx.prototype.stopPropagation=function(){zx.VX.stopPropagation.call(this);this.G.stopPropagation?this.G.stopPropagation():this.G.cancelBubble=!0};
  8304. zx.prototype.preventDefault=function(){zx.VX.preventDefault.call(this);var d=this.G;d.preventDefault?d.preventDefault():d.returnValue=!1};var O5N="closure_listenable_"+(Math.random()*1E6|0);var nf_=0;g.Q=m4.prototype;g.Q.add=function(d,q,T,Y,e){var U=d.toString();d=this.listeners[U];d||(d=this.listeners[U]=[],this.G++);var b=lm(d,q,Y,e);b>-1?(q=d[b],T||(q.WQ=!1)):(q=new rqg(q,this.src,U,!!Y,e),q.WQ=T,d.push(q));return q};
  8305. g.Q.remove=function(d,q,T,Y){d=d.toString();if(!(d in this.listeners))return!1;var e=this.listeners[d];q=lm(e,q,T,Y);return q>-1?(IB(e[q]),g.EI(e,q),e.length==0&&(delete this.listeners[d],this.G--),!0):!1};
  8306. g.Q.removeAll=function(d){d=d&&d.toString();var q=0,T;for(T in this.listeners)if(!d||T==d){for(var Y=this.listeners[T],e=0;e<Y.length;e++)++q,IB(Y[e]);delete this.listeners[T];this.G--}return q};
  8307. g.Q.a7=function(d,q,T,Y){d=this.listeners[d.toString()];var e=-1;d&&(e=lm(d,q,T,Y));return e>-1?d[e]:null};
  8308. g.Q.hasListener=function(d,q){var T=d!==void 0,Y=T?d.toString():"",e=q!==void 0;return g.q$(this.listeners,function(U){for(var b=0;b<U.length;++b)if(!(T&&U[b].type!=Y||e&&U[b].capture!=q))return!0;return!1})};var qL="closure_lm_"+(Math.random()*1E6|0),Y1={},Lb6=0,JK="__closure_events_fn_"+(Math.random()*1E9>>>0);g.Rs(g.$1,g.W);g.$1.prototype[O5N]=!0;g.Q=g.$1.prototype;g.Q.addEventListener=function(d,q,T,Y){g.oB(this,d,q,T,Y)};
  8309. g.Q.removeEventListener=function(d,q,T,Y){PBj(this,d,q,T,Y)};
  8310. g.Q.dispatchEvent=function(d){var q=this.Lg;if(q){var T=[];for(var Y=1;q;q=q.Lg)T.push(q),++Y}q=this.F2;Y=d.type||d;if(typeof d==="string")d=new g.fb(d,q);else if(d instanceof g.fb)d.target=d.target||q;else{var e=d;d=new g.fb(Y,q);g.hz(d,e)}e=!0;var U;if(T)for(U=T.length-1;!d.U&&U>=0;U--){var b=d.currentTarget=T[U];e=g1(b,Y,!0,d)&&e}d.U||(b=d.currentTarget=q,e=g1(b,Y,!0,d)&&e,d.U||(e=g1(b,Y,!1,d)&&e));if(T)for(U=0;!d.U&&U<T.length;U++)b=d.currentTarget=T[U],e=g1(b,Y,!1,d)&&e;return e};
  8311. g.Q.ir=function(){g.$1.VX.ir.call(this);this.SH&&this.SH.removeAll(void 0);this.Lg=null};
  8312. g.Q.listen=function(d,q,T,Y){return this.SH.add(String(d),q,!1,T,Y)};
  8313. g.Q.zg=function(d,q,T,Y){return this.SH.add(String(d),q,!0,T,Y)};
  8314. g.Q.t1=function(d,q,T,Y){this.SH.remove(String(d),q,T,Y)};
  8315. g.Q.a7=function(d,q,T,Y){return this.SH.a7(String(d),q,T,Y)};
  8316. g.Q.hasListener=function(d,q){return this.SH.hasListener(d!==void 0?String(d):void 0,q)};var NL=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(d){return d&&AsyncContext.Snapshot.wrap(d)}:function(d){return d};F6.prototype.get=function(){if(this.U>0){this.U--;var d=this.G;this.G=d.next;d.next=null}else d=this.j();return d};var R_;y7.prototype.add=function(d,q){var T=f7_.get();T.set(d,q);this.U?this.U.next=T:this.G=T;this.U=T};
  8317. y7.prototype.remove=function(){var d=null;this.G&&(d=this.G,this.G=this.G.next,this.G||(this.U=null),d.next=null);return d};
  8318. var f7_=new F6(function(){return new hK},function(d){return d.reset()});
  8319. hK.prototype.set=function(d,q){this.G=d;this.scope=q;this.next=null};
  8320. hK.prototype.reset=function(){this.next=this.scope=this.G=null};var Hd,Q7=!1,Dj2=new y7;zxj.prototype.reset=function(){this.context=this.U=this.j=this.G=null;this.T=!1};
  8321. var i51=new F6(function(){return new zxj},function(d){d.reset()});
  8322. g.pK.prototype.then=function(d,q,T){return qRI(this,NL(typeof d==="function"?d:null),NL(typeof q==="function"?q:null),T)};
  8323. g.pK.prototype.$goog_Thenable=!0;g.Q=g.pK.prototype;g.Q.finally=function(d){var q=this;d=NL(d);return new Promise(function(T,Y){l7I(q,function(e){d();T(e)},function(e){d();
  8324. Y(e)})})};
  8325. g.Q.C8=function(d,q){return qRI(this,null,NL(d),q)};
  8326. g.Q.catch=g.pK.prototype.C8;g.Q.cancel=function(d){if(this.G==0){var q=new Bd(d);g.ML(function(){vfN(this,q)},this)}};
  8327. g.Q.Lfr=function(d){this.G=0;cd(this,2,d)};
  8328. g.Q.FfU=function(d){this.G=0;cd(this,3,d)};
  8329. g.Q.bU=function(){for(var d;d=ofj(this);)VG1(this,d,this.G,this.L);this.X=!1};
  8330. var U8g=j0;g.Rs(Bd,xc);Bd.prototype.name="cancel";g.Rs(g.KK,g.$1);g.Q=g.KK.prototype;g.Q.enabled=!1;g.Q.EF=null;g.Q.setInterval=function(d){this.VS=d;this.EF&&this.enabled?(this.stop(),this.start()):this.EF&&this.stop()};
  8331. g.Q.HjF=function(){if(this.enabled){var d=g.F_()-this.Dz;d>0&&d<this.VS*.8?this.EF=this.bK.setTimeout(this.BN,this.VS-d):(this.EF&&(this.bK.clearTimeout(this.EF),this.EF=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
  8332. g.Q.start=function(){this.enabled=!0;this.EF||(this.EF=this.bK.setTimeout(this.BN,this.VS),this.Dz=g.F_())};
  8333. g.Q.stop=function(){this.enabled=!1;this.EF&&(this.bK.clearTimeout(this.EF),this.EF=null)};
  8334. g.Q.ir=function(){g.KK.VX.ir.call(this);this.stop();delete this.bK};g.M(g.k1,g.W);g.Q=g.k1.prototype;g.Q.sendIsolatedPayload=function(d){this.S=d;this.j=1};
  8335. g.Q.pP=function(){var d=this.U.values();d=[].concat(g.RQ(d)).filter(function(q){return q.G.size});
  8336. d.length&&this.L.flush(d,this.S);JyH(d);this.T=0;this.G.enabled&&this.G.stop()};
  8337. g.Q.Ib=function(d){var q=g.CN.apply(1,arguments);this.U.has(d)||this.U.set(d,new DQ(d,q))};
  8338. g.Q.cU=function(d){var q=g.CN.apply(1,arguments);this.U.has(d)||this.U.set(d,new wq(d,q))};
  8339. g.Q.Tp=function(d){this.pU(d,1,g.CN.apply(1,arguments))};
  8340. g.Q.pU=function(d,q){var T=g.CN.apply(2,arguments),Y=X51(this,d);Y&&Y instanceof DQ&&(Y.j(q,T),bFf(this))};
  8341. g.Q.Z5=function(d,q){var T=g.CN.apply(2,arguments),Y=X51(this,d);Y&&Y instanceof wq&&(Y.Z5(q,T),bFf(this))};g.M(Pd,Error);Pd.prototype.toString=function(){var d="RpcError("+($8_(this.code)||String(this.code))+")";this.message&&(d+=": "+this.message);return d};gtf.prototype.VH=function(d){var q=[];CK(this,d,q);return q.join("")};
  8342. var RDf={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},NDj=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;var Cwj;g.Rs(uZ,yy_);uZ.prototype.G=function(){return new XMLHttpRequest};
  8343. Cwj=new uZ;g.Rs(g.DZ,g.$1);var Etf=/^https?$/i,uVL=["POST","PUT"],hDX=[];g.Q=g.DZ.prototype;g.Q.rq=function(){this.dispose();g.jj(hDX,this)};
  8344. g.Q.send=function(d,q,T,Y){if(this.G)throw Error("[goog.net.XhrIo] Object is active with another request="+this.B+"; newUri="+d);q=q?q.toUpperCase():"GET";this.B=d;this.T="";this.U=0;this.UD=!1;this.j=!0;this.G=this.z2?this.z2.G():Cwj.G();this.G.onreadystatechange=NL((0,g.sI)(this.Mz,this));try{this.getStatus(),this.yv=!0,this.G.open(q,String(d),!0),this.yv=!1}catch(b){this.getStatus();M97(this,b);return}d=T||"";T=new Map(this.headers);if(Y)if(Object.getPrototypeOf(Y)===Object.prototype)for(var e in Y)T.set(e,
  8345. Y[e]);else if(typeof Y.keys==="function"&&typeof Y.get==="function"){e=g.E(Y.keys());for(var U=e.next();!U.done;U=e.next())U=U.value,T.set(U,Y.get(U))}else throw Error("Unknown input type for opt_headers: "+String(Y));Y=Array.from(T.keys()).find(function(b){return"content-type"==b.toLowerCase()});
  8346. e=g.oQ.FormData&&d instanceof g.oQ.FormData;!g.cR(uVL,q)||Y||e||T.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");q=g.E(T);for(Y=q.next();!Y.done;Y=q.next())T=g.E(Y.value),Y=T.next().value,T=T.next().value,this.G.setRequestHeader(Y,T);this.rO&&(this.G.responseType=this.rO);"withCredentials"in this.G&&this.G.withCredentials!==this.L&&(this.G.withCredentials=this.L);try{this.X&&(clearTimeout(this.X),this.X=null),this.lr>0&&(this.getStatus(),this.X=setTimeout(this.yJ.bind(this),
  8347. this.lr)),this.getStatus(),this.K=!0,this.G.send(d),this.K=!1}catch(b){this.getStatus(),M97(this,b)}};
  8348. g.Q.yJ=function(){typeof fK!="undefined"&&this.G&&(this.T="Timed out after "+this.lr+"ms, aborting",this.U=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))};
  8349. g.Q.abort=function(d){this.G&&this.j&&(this.getStatus(),this.j=!1,this.S=!0,this.G.abort(),this.S=!1,this.U=d||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),w1(this))};
  8350. g.Q.ir=function(){this.G&&(this.j&&(this.j=!1,this.S=!0,this.G.abort(),this.S=!1),w1(this,!0));g.DZ.VX.ir.call(this)};
  8351. g.Q.Mz=function(){this.JF()||(this.yv||this.K||this.S?cyg(this):this.sdF())};
  8352. g.Q.sdF=function(){cyg(this)};
  8353. g.Q.isActive=function(){return!!this.G};
  8354. g.Q.isComplete=function(){return g.zB(this)==4};
  8355. g.Q.getStatus=function(){try{return g.zB(this)>2?this.G.status:-1}catch(d){return-1}};
  8356. g.Q.getResponseHeader=function(d){if(this.G&&this.isComplete())return d=this.G.getResponseHeader(d),d===null?void 0:d};
  8357. g.Q.getLastError=function(){return typeof this.T==="string"?this.T:String(this.T)};lZ.prototype.send=function(d,q,T){q=q===void 0?function(){}:q;
  8358. T=T===void 0?function(){}:T;
  8359. HFg(d.url,function(Y){Y=Y.target;iZ(Y)?q(g.I_(Y)):T(Y.getStatus())},d.requestType,d.body,d.requestHeaders,d.timeoutMillis,d.withCredentials)};
  8360. lZ.prototype.jA=function(){return 1};o_.prototype.done=function(){this.logger.bA(this.event,vd()-this.startTime)};
  8361. g.M(V7,dq);g.M(q0,V7);g.Q=q0.prototype;g.Q.rl=function(){};
  8362. g.Q.v$=function(){};
  8363. g.Q.bA=function(){};
  8364. g.Q.EP=function(){};
  8365. g.Q.qs=function(){};
  8366. g.Q.IE=function(d,q,T,Y){return Y};
  8367. g.Q.CO=function(){};
  8368. g.Q.Zl=function(){};
  8369. g.Q.cH=function(){};
  8370. g.M(TA,V7);g.Q=TA.prototype;g.Q.update=function(d){this.logger.dispose();this.logger=d};
  8371. g.Q.v$=function(d){this.logger.v$(d)};
  8372. g.Q.bA=function(d,q){this.logger.bA(d,q)};
  8373. g.Q.EP=function(d){this.logger.EP(d)};
  8374. g.Q.qs=function(){this.logger.qs()};
  8375. g.Q.IE=function(d,q,T,Y){return this.logger.IE(d,q,T,Y)};
  8376. g.Q.CO=function(d){this.logger.CO(d)};
  8377. g.Q.Zl=function(d){this.logger.Zl(d)};
  8378. g.Q.cH=function(d){this.logger.cH(d)};
  8379. g.Q.rl=function(d){this.logger.rl(d)};
  8380. g.M(Ayg,g.W);g.M(YH,V7);g.Q=YH.prototype;g.Q.rl=function(d){this.metrics.fhv.Z5(d,this.wH)};
  8381. g.Q.v$=function(d){this.metrics.eventCount.Er(d,this.wH)};
  8382. g.Q.bA=function(d,q){this.metrics.hM.Z5(q,d,this.wH)};
  8383. g.Q.EP=function(d){this.metrics.errorCount.Er(d,this.wH)};
  8384. g.Q.IE=function(d,q,T,Y){function e(J){if(!U.JF()){var F=vd()-b;U.metrics.jtk.Z5(F,d,T,J,q,U.wH)}}
  8385. var U=this,b=vd();Y.then(function(){return void e(0)},function(J){return void e(J instanceof Pd?J.code:-1)});
  8386. return Y};
  8387. g.Q.CO=function(d){this.metrics.TU5.Er(d,this.wH)};
  8388. g.Q.Zl=function(d){this.metrics.ib.Er(d,this.wH)};
  8389. g.Q.cH=function(d){this.metrics.iAD.Er(d,this.wH)};
  8390. g.M(e_,YH);e_.prototype.qs=function(){p56(this.G)};g.M(Uq,Et);g.M(bj,Et);g.M(XT,Et);var ucQ=Vu(XT),nt2=function(d){return e0(function(q){return q instanceof d&&!fp(q)})}(XT);
  8391. XT.messageId="bfkj";g.M(ZFN,Et);g.M(Vc,Et);g.M(Jf,Et);var ryQ=Vu(Jf);g.M($H,g.W);$H.prototype.snapshot=function(d){if(this.JF())throw Error("Already disposed");this.logger.v$("n");var q=this.logger.share();return this.j.then(function(T){var Y=T.KK;return new Promise(function(e){var U=new o_(q,"n");Y(function(b){U.done();q.rl(b.length);q.qs();q.dispose();e(b)},[d.BO,
  8392. d.Vf,d.r$,d.P_])})})};
  8393. $H.prototype.CX=function(d){var q=this;if(this.JF())throw Error("Already disposed");this.logger.v$("n");var T=de(this.logger,function(){return q.T([d.BO,d.Vf,d.r$,d.P_])},"n");
  8394. this.logger.rl(T.length);this.logger.qs();return T};
  8395. $H.prototype.f0=function(d){this.j.then(function(q){var T;(T=q.RUF)==null||T(d)})};
  8396. $H.prototype.oe=function(){return this.logger.share()};g.M(N0,Et);g.M(R2,Et);xH.prototype.ut=function(d){return zDg(this,d,new q0,0)};g.M(ym,g.W);ym.prototype.snapshot=function(d){var q=this;return g.G(function(T){switch(T.U){case 1:if(q.JF())throw Error("Already disposed");if(q.U||q.L){T.tF(2);break}return g.B(T,q.S.promise,2);case 2:if(!q.U){T.tF(4);break}return g.B(T,q.U.snapshot(d),5);case 5:return T.return(T.G);case 4:throw q.L;}})};
  8397. ym.prototype.f0=function(d){var q,T;(q=this.U)==null||(T=q.f0)==null||T.call(q,d)};
  8398. ym.prototype.handleError=function(d){if(!this.JF()){this.L=d;this.S.resolve();var q,T;(T=(q=this.options).lQw)==null||T.call(q,d)}};
  8399. ym.prototype.oe=function(){return this.logger.share()};
  8400. var m8N={lYw:432E5,HP:3E5,XJ:10,ub:1E4,R5:3E4,LV:3E4,kAO:6E4,z7:1E3,tM:6E4,I5:6E5,Y5:.25,MV:2,maxAttempts:10};var D$L,YrI=(D$L=Math.imul)!=null?D$L:function(d,q){return d*q|0},M0=[196,
  8401. 200,224,18];cJ.prototype.VH=function(){return String(this.G)+","+this.U.join()};
  8402. cJ.prototype.LA=function(d,q){var T=void 0;if(this.U[this.G]!==d){var Y=this.U.indexOf(d);Y!==-1?(this.U.splice(Y,1),Y<this.G&&this.G--,this.U.splice(this.G,0,d)):(T=this.U[this.G],this.U[this.G]=d)}this.G=(this.G+1)%this.maxItems;d=TS6("iU5q-!O9@$",this.VH());T&&d&&q(T);return d};var R4H={toString:function(d){var q=[],T=0;d-=-2147483648;q[T++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(d%52);for(d=Math.floor(d/52);d>0;)q[T++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(d%62),d=Math.floor(d/62);return q.join("")}};var yDN;g.M(j_,g.W);j_.prototype.RE=function(d,q){var T=this.rf(d);q==null||q(T);return de(this.logger,function(){return g.A0(T,2)},this.U)};
  8403. yDN=Symbol.dispose;g.M(pi,j_);pi.prototype.rf=function(d,q){var T=this;this.logger.v$(this.G);++this.S>=this.X&&this.j.resolve();var Y=d();d=de(this.logger,function(){return T.T(Y)},"C");
  8404. if(d===void 0)throw new SI(17,"YNJ:Undefined");if(!(d instanceof Uint8Array))throw new SI(18,"ODM:Invalid");q==null||q(d);return d};
  8405. g.M(Z_,j_);Z_.prototype.rf=function(){return this.T};
  8406. g.M(Oq,j_);Oq.prototype.rf=function(){var d=this;return de(this.logger,function(){return ZV(d.T)},"d")};
  8407. Oq.prototype.RE=function(){return this.T};
  8408. g.M(ni,j_);ni.prototype.rf=function(){if(this.T)return this.T;this.T=h4f(this,function(d){return"_"+x5I(d)});
  8409. return h4f(this,function(d){return d})};
  8410. g.M(tf,j_);tf.prototype.rf=function(){var d=Math.floor(Date.now()/1E3),q=[Math.random()*255,Math.random()*255],T=q.concat([this.T&255,this.clientState],[d>>24&255,d>>16&255,d>>8&255,d&255]);d=new Uint8Array(2+T.length);d[0]=34;d[1]=T.length;d.set(T,2);T=d.subarray(2);for(var Y=q=q.length;Y<T.length;++Y)T[Y]^=T[Y%q];this.logger.CO(this.clientState);return d};var QLY={X1:3E4,lhO:2E4};g.M(Ki,g.W);g.Q=Ki.prototype;g.Q.J_=function(){return this.j.promise};
  8411. g.Q.rf=function(d){return OJ2(this,Object.assign({},d),!1)};
  8412. g.Q.RE=function(d){return OJ2(this,Object.assign({},d),!0)};
  8413. g.Q.gt=function(d){if(!(d>150))try{this.cache=new $5I(d,this.logger)}catch(q){this.reportError(new SI(22,"GBJ:init",q))}};
  8414. g.Q.reportError=function(d){this.logger.EP(d.code);this.onError(d);return d};
  8415. var MI_=function(d){return e0(function(q){if(!OB7(q))return!1;for(var T=g.E(Object.entries(d)),Y=T.next();!Y.done;Y=T.next()){var e=g.E(Y.value);Y=e.next().value;e=e.next().value;if(!(Y in q)){if(e.ZWZ===!0)continue;return!1}if(!e(q[Y]))return!1}return!0})}({CH:function(d){return e0(function(q){return q instanceof d})}(ym)},"");var qqg=(new Date).getTime();g.M(kH,Et);var w2c=Vu(kH);n32.prototype.getMetadata=function(){return this.metadata};PJ.prototype.getMetadata=function(){return this.metadata};
  8416. PJ.prototype.getStatus=function(){return this.status};WJ.prototype.L=function(d,q){q=q===void 0?{}:q;return new n32(d,this,q)};
  8417. WJ.prototype.getName=function(){return this.name};var fmQ=new WJ("/google.internal.waa.v1.Waa/Create",N0,kH,function(d){return d.VH()},w2c);g.M(Ci,Et);var w5j=new WJ("/google.internal.waa.v1.Waa/GenerateIT",R2,Ci,function(d){return d.VH()},Vu(Ci));var bbg=new Set(["SAPISIDHASH","APISIDHASH"]);g.M(uj,Et);uj.prototype.getValue=function(){var d=vE(this,2);if(Array.isArray(d)||d instanceof Et)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return bD(this,2)};g.M(D_,Et);D_.prototype.getMessage=function(){return Oy(this,2)};
  8418. var Lt6=Vu(D_);we.prototype.rJ=function(d,q){d=="data"?this.j.push(q):d=="metadata"?this.S.push(q):d=="status"?this.X.push(q):d=="end"?this.T.push(q):d=="error"&&this.U.push(q);return this};
  8419. we.prototype.removeListener=function(d,q){d=="data"?m6(this.j,q):d=="metadata"?m6(this.S,q):d=="status"?m6(this.X,q):d=="end"?m6(this.T,q):d=="error"&&m6(this.U,q);return this};
  8420. we.prototype.cancel=function(){this.G.abort()};
  8421. we.prototype.cancel=we.prototype.cancel;we.prototype.removeListener=we.prototype.removeListener;we.prototype.on=we.prototype.rJ;g.M(tIN,Error);g.Rs(g.S_,yy_);g.S_.prototype.G=function(){var d=new lj(this.T,this.j);this.U&&d.setCredentialsMode(this.U);return d};
  8422. g.S_.prototype.setCredentialsMode=function(d){this.U=d};
  8423. g.Rs(lj,g.$1);g.Q=lj.prototype;g.Q.open=function(d,q){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.UD=d;this.lr=q;this.readyState=1;vJ(this)};
  8424. g.Q.send=function(d){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.B.signal.aborted)throw this.abort(),Error("Request was aborted.");this.G=!0;var q={headers:this.K,method:this.UD,credentials:this.S,cache:void 0,signal:this.B.signal};d&&(q.body=d);(this.yv||g.oQ).fetch(new Request(this.lr,q)).then(this.WI.bind(this),this.IR.bind(this))};
  8425. g.Q.abort=function(){this.response=this.responseText="";this.K=new Headers;this.status=0;this.B.abort();this.j&&this.j.cancel("Request was aborted.").catch(function(){});
  8426. this.readyState>=1&&this.G&&this.readyState!=4&&(this.G=!1,o2(this));this.readyState=0};
  8427. g.Q.WI=function(d){if(this.G&&(this.T=d,this.U||(this.status=this.T.status,this.statusText=this.T.statusText,this.U=d.headers,this.readyState=2,vJ(this)),this.G&&(this.readyState=3,vJ(this),this.G)))if(this.responseType==="arraybuffer")d.arrayBuffer().then(this.AB.bind(this),this.IR.bind(this));else if(typeof g.oQ.ReadableStream!=="undefined"&&"body"in d){this.j=d.body.getReader();if(this.X){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=
  8428. []}else this.response=this.responseText="",this.L=new TextDecoder;ksH(this)}else d.text().then(this.g2.bind(this),this.IR.bind(this))};
  8429. g.Q.SK=function(d){if(this.G){if(this.X&&d.value)this.response.push(d.value);else if(!this.X){var q=d.value?d.value:new Uint8Array(0);if(q=this.L.decode(q,{stream:!d.done}))this.response=this.responseText+=q}d.done?o2(this):vJ(this);this.readyState==3&&ksH(this)}};
  8430. g.Q.g2=function(d){this.G&&(this.response=this.responseText=d,o2(this))};
  8431. g.Q.AB=function(d){this.G&&(this.response=d,o2(this))};
  8432. g.Q.IR=function(){this.G&&o2(this)};
  8433. g.Q.setRequestHeader=function(d,q){this.K.append(d,q)};
  8434. g.Q.getResponseHeader=function(d){return this.U?this.U.get(d.toLowerCase())||"":""};
  8435. g.Q.getAllResponseHeaders=function(){if(!this.U)return"";for(var d=[],q=this.U.entries(),T=q.next();!T.done;)T=T.value,d.push(T[0]+": "+T[1]),T=q.next();return d.join("\r\n")};
  8436. g.Q.setCredentialsMode=function(d){this.S=d};
  8437. Object.defineProperty(lj.prototype,"withCredentials",{get:function(){return this.S==="include"},
  8438. set:function(d){this.setCredentialsMode(d?"include":"same-origin")}});g.Vm.prototype.toString=function(){var d=[],q=this.S;q&&d.push(bc(q,zis,!0),":");var T=this.G;if(T||q=="file")d.push("//"),(q=this.B)&&d.push(bc(q,zis,!0),"@"),d.push(g.pn(T).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),T=this.j,T!=null&&d.push(":",String(T));if(T=this.U)this.G&&T.charAt(0)!="/"&&d.push("/"),d.push(bc(T,T.charAt(0)=="/"?ihs:Imx,!0));(T=this.T.toString())&&d.push("?",T);(T=this.X)&&d.push("#",bc(T,m$q));return d.join("")};
  8439. g.Vm.prototype.resolve=function(d){var q=this.clone(),T=!!d.S;T?g.dW(q,d.S):T=!!d.B;T?q.B=d.B:T=!!d.G;T?g.qK(q,d.G):T=d.j!=null;var Y=d.U;if(T)g.Th(q,d.j);else if(T=!!d.U){if(Y.charAt(0)!="/")if(this.G&&!this.U)Y="/"+Y;else{var e=q.U.lastIndexOf("/");e!=-1&&(Y=q.U.slice(0,e+1)+Y)}e=Y;if(e==".."||e==".")Y="";else if(g.rb(e,"./")||g.rb(e,"/.")){Y=ON(e,"/");e=e.split("/");for(var U=[],b=0;b<e.length;){var J=e[b++];J=="."?Y&&b==e.length&&U.push(""):J==".."?((U.length>1||U.length==1&&U[0]!="")&&U.pop(),
  8440. Y&&b==e.length&&U.push("")):(U.push(J),Y=!0)}Y=U.join("/")}else Y=e}T?q.U=Y:T=d.T.toString()!=="";T?YM(q,d.T.clone()):T=!!d.X;T&&(q.X=d.X);return q};
  8441. g.Vm.prototype.clone=function(){return new g.Vm(this)};
  8442. var zis=/[#\/\?@]/g,Imx=/[#\?:]/g,ihs=/[#\?]/g,D5D=/[#\?@]/g,m$q=/#/g;g.Q=UC.prototype;g.Q.add=function(d,q){sC(this);this.j=null;d=$M(this,d);var T=this.G.get(d);T||this.G.set(d,T=[]);T.push(q);this.U=this.U+1;return this};
  8443. g.Q.remove=function(d){sC(this);d=$M(this,d);return this.G.has(d)?(this.j=null,this.U=this.U-this.G.get(d).length,this.G.delete(d)):!1};
  8444. g.Q.clear=function(){this.G=this.j=null;this.U=0};
  8445. g.Q.isEmpty=function(){sC(this);return this.U==0};
  8446. g.Q.forEach=function(d,q){sC(this);this.G.forEach(function(T,Y){T.forEach(function(e){d.call(q,e,Y,this)},this)},this)};
  8447. g.Q.ll=function(){sC(this);for(var d=Array.from(this.G.values()),q=Array.from(this.G.keys()),T=[],Y=0;Y<q.length;Y++)for(var e=d[Y],U=0;U<e.length;U++)T.push(q[Y]);return T};
  8448. g.Q.N0=function(d){sC(this);var q=[];if(typeof d==="string")fU7(this,d)&&(q=q.concat(this.G.get($M(this,d))));else{d=Array.from(this.G.values());for(var T=0;T<d.length;T++)q=q.concat(d[T])}return q};
  8449. g.Q.set=function(d,q){sC(this);this.j=null;d=$M(this,d);fU7(this,d)&&(this.U=this.U-this.G.get(d).length);this.G.set(d,[q]);this.U=this.U+1;return this};
  8450. g.Q.get=function(d,q){if(!d)return q;d=this.N0(d);return d.length>0?String(d[0]):q};
  8451. g.Q.toString=function(){if(this.j)return this.j;if(!this.G)return"";for(var d=[],q=Array.from(this.G.keys()),T=0;T<q.length;T++){var Y=q[T],e=g.pn(Y);Y=this.N0(Y);for(var U=0;U<Y.length;U++){var b=e;Y[U]!==""&&(b+="="+g.pn(Y[U]));d.push(b)}}return this.j=d.join("&")};
  8452. g.Q.clone=function(){var d=new UC;d.j=this.j;this.G&&(d.G=new Map(this.G),d.U=this.U);return d};
  8453. g.Q.extend=function(d){for(var q=0;q<arguments.length;q++)C3I(arguments[q],function(T,Y){this.add(Y,T)},this)};g.Rs(g.FO,g.W);var SNQ=[];g.Q=g.FO.prototype;g.Q.listen=function(d,q,T,Y){Array.isArray(q)||(q&&(SNQ[0]=q.toString()),q=SNQ);for(var e=0;e<q.length;e++){var U=g.oB(d,q[e],T||this.handleEvent,Y||!1,this.U||this);if(!U)break;this.G[U.key]=U}return this};
  8454. g.Q.zg=function(d,q,T,Y){return IU6(this,d,q,T,Y)};
  8455. g.Q.t1=function(d,q,T,Y,e){if(Array.isArray(q))for(var U=0;U<q.length;U++)this.t1(d,q[U],T,Y,e);else T=T||this.handleEvent,Y=g.UI(Y)?!!Y.capture:!!Y,e=e||this.U||this,T=V1(T),Y=!!Y,q=im(d)?d.a7(q,T,Y,e):d?(d=d1(d))?d.a7(q,T,Y,e):null:null,q&&(TB(q),delete this.G[q.key])};
  8456. g.Q.removeAll=function(){g.os(this.G,function(d,q){this.G.hasOwnProperty(q)&&TB(d)},this);
  8457. this.G={}};
  8458. g.Q.ir=function(){g.FO.VX.ir.call(this);this.removeAll()};
  8459. g.Q.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};m5f.prototype.isInputValid=function(){return this.j};NK.prototype.isInputValid=function(){return this.G!=3};
  8460. NK.prototype.P4=function(){return this.X};
  8461. NK.prototype.HQ=function(){return!0};
  8462. NK.prototype.parse=function(d){function q(F){F&128&&R1(U,b,J,"invalid tag");(F&7)!=2&&R1(U,b,J,"invalid wire type");U.j=F>>>3;U.j!=1&&U.j!=2&&U.j!=15&&R1(U,b,J,"unexpected tag");U.G=1;U.U=0;U.T=0}
  8463. function T(F){U.T++;U.T==5&&F&240&&R1(U,b,J,"message length too long");U.U|=(F&127)<<(U.T-1)*7;F&128||(U.G=2,U.B=0,typeof Uint8Array!=="undefined"?U.S=new Uint8Array(U.U):U.S=Array(U.U),U.U==0&&e())}
  8464. function Y(F){U.S[U.B++]=F;U.B==U.U&&e()}
  8465. function e(){if(U.j<15){var F={};F[U.j]=U.S;U.L.push(F)}U.G=0}
  8466. for(var U=this,b=d instanceof Array?d:new Uint8Array(d),J=0;J<b.length;){switch(U.G){case 3:R1(U,b,J,"stream already broken");break;case 0:q(b[J]);break;case 1:T(b[J]);break;case 2:Y(b[J]);break;default:throw Error("unexpected parser state: "+U.G);}U.K++;J++}d=U.L;U.L=[];return d.length>0?d:null};xM.prototype.isInputValid=function(){return this.G===null};
  8467. xM.prototype.P4=function(){return this.G};
  8468. xM.prototype.HQ=function(){return!1};
  8469. xM.prototype.parse=function(d){this.G!==null&&lUI(this,d,"stream already broken");var q=null;try{var T=this.j;T.j||Srj(T,d,"stream already broken");T.G+=d;var Y=Math.floor(T.G.length/4);if(Y==0)var e=null;else{try{var U=rz6(T.G.slice(0,Y*4))}catch(b){Srj(T,T.G,b.message)}T.U+=Y*4;T.G=T.G.slice(Y*4);e=U}q=e===null?null:this.T.parse(e)}catch(b){lUI(this,d,b.message)}this.U+=d.length;return q};var lmj={INIT:0,iL:1,nU:2,Gc:3,wp:4,K5:5,STRING:6,Sn:7,F8:8,PN:9,GP:10,fv:11,G$:12,f$:13,lP:14,Ue:15,W7:16,B7:17,ZS:18,Y7:19,Eo:20};g.Q=h_.prototype;g.Q.isInputValid=function(){return this.S!=3};
  8470. g.Q.P4=function(){return this.K};
  8471. g.Q.done=function(){return this.S===2};
  8472. g.Q.HQ=function(){return!1};
  8473. g.Q.parse=function(d){function q(){for(;y<d.length;)if(y5(d[y]))y++,U.j++;else break;return y<N}
  8474. function T(){for(var H;;){H=d[y++];if(!H)break;U.j++;switch(U.G){case F.INIT:H==="{"?U.G=F.nU:H==="["?U.G=F.wp:y5(H)||Hh(U,d,y);continue;case F.Sn:case F.nU:if(y5(H))continue;if(U.G===F.Sn)b.push(F.F8);else if(H==="}"){e("{}");U.G=Y();continue}else b.push(F.Gc);H==='"'?U.G=F.STRING:Hh(U,d,y);continue;case F.F8:case F.Gc:if(y5(H))continue;H===":"?(U.G===F.Gc&&(b.push(F.Gc),U.U++),U.G=F.iL):H==="}"?(U.U--,e(),U.G=Y()):H===","?(U.G===F.Gc&&b.push(F.Gc),U.G=F.Sn):Hh(U,d,y);continue;case F.wp:case F.iL:if(y5(H))continue;
  8475. if(U.G===F.wp)if(U.U++,U.G=F.iL,H==="]"){U.U--;if(U.U===0){U.G=F.K5;return}e("[]");U.G=Y();continue}else b.push(F.K5);H==='"'?U.G=F.STRING:H==="{"?U.G=F.nU:H==="["?U.G=F.wp:H==="t"?U.G=F.PN:H==="f"?U.G=F.G$:H==="n"?U.G=F.W7:H!=="-"&&("0123456789".indexOf(H)!==-1?U.G=F.Eo:Hh(U,d,y));continue;case F.K5:if(H===",")b.push(F.K5),U.G=F.iL,U.U===1&&(x=y);else if(H==="]"){U.U--;if(U.U===0)return;e();U.G=Y()}else if(y5(H))continue;else Hh(U,d,y);continue;case F.STRING:var a=y;a:for(;;){for(;U.B>0;)if(H=d[y++],
  8476. U.B===4?U.B=0:U.B++,!H)break a;if(H==='"'&&!U.L){U.G=Y();break}if(H==="\\"&&!U.L&&(U.L=!0,H=d[y++],!H))break;if(U.L)if(U.L=!1,H==="u"&&(U.B=1),H=d[y++])continue;else break;J.lastIndex=y;H=J.exec(d);if(!H){y=d.length+1;break}y=H.index+1;H=d[H.index];if(!H)break}U.j+=y-a;continue;case F.PN:if(!H)continue;H==="r"?U.G=F.GP:Hh(U,d,y);continue;case F.GP:if(!H)continue;H==="u"?U.G=F.fv:Hh(U,d,y);continue;case F.fv:if(!H)continue;H==="e"?U.G=Y():Hh(U,d,y);continue;case F.G$:if(!H)continue;H==="a"?U.G=F.f$:
  8477. Hh(U,d,y);continue;case F.f$:if(!H)continue;H==="l"?U.G=F.lP:Hh(U,d,y);continue;case F.lP:if(!H)continue;H==="s"?U.G=F.Ue:Hh(U,d,y);continue;case F.Ue:if(!H)continue;H==="e"?U.G=Y():Hh(U,d,y);continue;case F.W7:if(!H)continue;H==="u"?U.G=F.B7:Hh(U,d,y);continue;case F.B7:if(!H)continue;H==="l"?U.G=F.ZS:Hh(U,d,y);continue;case F.ZS:if(!H)continue;H==="l"?U.G=Y():Hh(U,d,y);continue;case F.Y7:H==="."?U.G=F.Eo:Hh(U,d,y);continue;case F.Eo:if("0123456789.eE+-".indexOf(H)!==-1)continue;else y--,U.j--,U.G=
  8478. Y();continue;default:Hh(U,d,y)}}}
  8479. function Y(){var H=b.pop();return H!=null?H:F.iL}
  8480. function e(H){U.U>1||(H||(H=x===-1?U.T+d.substring(R,y):d.substring(x,y)),U.lr?U.X.push(H):U.X.push(JSON.parse(H)),x=y)}
  8481. for(var U=this,b=U.UD,J=U.yv,F=lmj,N=d.length,R=0,x=-1,y=0;y<N;)switch(U.S){case 3:return Hh(U,d,y),null;case 2:return q()&&Hh(U,d,y),null;case 0:if(q()){var h=d[y++];U.j++;if(h==="["){U.S=1;R=y;U.G=F.wp;continue}else Hh(U,d,y)}return null;case 1:return T(),U.U===0&&U.G==F.K5?(U.S=2,U.T=d.substring(y)):U.T=x===-1?U.T+d.substring(R):d.substring(x),U.X.length>0?(h=U.X,U.X=[],h):null}return null};Q5.prototype.isInputValid=function(){return this.S===null};
  8482. Q5.prototype.P4=function(){return this.S};
  8483. Q5.prototype.HQ=function(){return!1};
  8484. Q5.prototype.parse=function(d){function q(F){U.U=6;U.S="The stream is broken @"+U.G+"/"+b+". Error: "+F+". With input:\n";throw Error(U.S);}
  8485. function T(){U.j=new h_({Epg:!0,AG:!0})}
  8486. function Y(F){if(F)for(var N=0;N<F.length;N++){var R={};R[1]=F[N];U.T.push(R)}}
  8487. function e(F){if(F){(U.X||F.length>1)&&q("extra status: "+F);U.X=!0;var N={};N[2]=F[0];U.T.push(N)}}
  8488. for(var U=this,b=0;b<d.length;){var J;if(J=U.U!==2){a:{for(;b<d.length;){if(!y5(d[b])){J=!0;break a}b++;U.G++}J=!1}J=!J}if(J)return null;switch(U.U){case 6:q("stream already broken");break;case 0:d[b]==="["?(U.U=1,b++,U.G++):q("unexpected input token");break;case 1:d[b]==="["?(U.U=2,T()):d[b]===","||d.slice(b,b+5)=="null,"?U.U=3:d[b]==="]"?(U.U=5,b++,U.G++):q("unexpected input token");break;case 2:J=U.j.parse(d.substring(b));Y(J);U.j.done()?(U.U=3,J=U.j.T,U.G+=d.length-b-J.length,d=J,b=0):(U.G+=d.length-
  8489. b,b=d.length);break;case 3:d[b]===","||d.slice(b,b+5)=="null,"?(U.U=4,T(),U.j.parse("["),b+=d[b]===","?1:5,U.G++):d[b]==="]"&&(U.U=5,b++,U.G++);break;case 4:J=U.j.parse(d.substring(b));e(J);U.j.done()?(U.U=5,J=U.j.T,U.G+=d.length-b-J.length,d=J,b=0):(U.G+=d.length-b,b=d.length);break;case 5:q("extra input after stream end")}}return U.T.length>0?(d=U.T,U.T=[],d):null};MK.prototype.Ya=function(){return this.G};
  8490. MK.prototype.getStatus=function(){return this.S};
  8491. MK.prototype.lr=function(d){d=d.target;try{if(d==this.G)a:{var q=g.zB(this.G),T=this.G.U,Y=this.G.getStatus(),e=g.I_(this.G);d=[];if(g.mW(this.G)instanceof Array){var U=g.mW(this.G);U.length>0&&U[0]instanceof Uint8Array&&(this.K=!0,d=U)}if(!(q<3||q==3&&!e&&d.length==0))if(Y=Y==200||Y==206,q==4&&(T==8?ch(this,7):T==7?ch(this,8):Y||ch(this,3)),this.U||(this.U=v3Y(this.G),this.U==null&&ch(this,5)),this.S>2)EC(this);else{if(d.length>this.j){var b=d.length;T=[];try{if(this.U.HQ())for(var J=0;J<b;J++){var F=
  8492. this.U.parse(Array.from(d[J]));F&&(T=T.concat(F))}else{F="";if(!this.X){if(typeof TextDecoder==="undefined")throw Error("TextDecoder is not supported by this browser.");this.X=new TextDecoder}for(J=0;J<b;J++)F+=this.X.decode(d[J],{stream:q==4&&J==b-1});T=this.U.parse(F)}d.splice(0,b);T&&this.T(T)}catch(R){ch(this,5);EC(this);break a}}else if(e.length>this.j){J=e.slice(this.j);this.j=e.length;try{var N=this.U.parse(J);N!=null&&this.T&&this.T(N)}catch(R){ch(this,5);EC(this);break a}}q==4?(e.length!=
  8493. 0||this.K?ch(this,2):ch(this,4),EC(this)):ch(this,1)}}}catch(R){ch(this,6),EC(this)}};g.Q=o37.prototype;g.Q.rJ=function(d,q){var T=this.U[d];T||(T=[],this.U[d]=T);T.push(q);return this};
  8494. g.Q.addListener=function(d,q){this.rJ(d,q);return this};
  8495. g.Q.removeListener=function(d,q){var T=this.U[d];T&&g.jj(T,q);(d=this.G[d])&&g.jj(d,q);return this};
  8496. g.Q.once=function(d,q){var T=this.G[d];T||(T=[],this.G[d]=T);T.push(q);return this};
  8497. g.Q.Off=function(d){var q=this.U.data;q&&VIf(d,q);(q=this.G.data)&&VIf(d,q);this.G.data=[]};
  8498. g.Q.fmr=function(){switch(this.j.getStatus()){case 1:jA(this,"readable");break;case 5:case 6:case 4:case 7:case 3:jA(this,"error");break;case 8:jA(this,"close");break;case 2:jA(this,"end")}};dSN.prototype.serverStreaming=function(d,q,T,Y){var e=this,U=d.substring(0,d.length-Y.name.length);return XPY(function(b){var J=b.Ji,F=b.getMetadata(),N=YEf(e,!1);F=eKn(e,F,N,U+J.getName());var R=US1(N,J.U,!0);b=J.G(b.Qy);N.send(F,"POST",b);return R},this.Qr).call(this,Y.L(q,T))};JSI.prototype.create=function(d,q,T){var Y=this.G,e=this.U+"/$rpc/google.internal.waa.v1.Waa/Create";q=q||{};T=T===void 0?{}:T;return flf(Y,e,d,q,fmQ,T)};var sB_="://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(" "),$SQ=/\bocr\b/;var F47=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(d){throw d;}},{VeD:!0,
  8499. wOv:!0,Pl2:!1,G3U:h7c,fXx:HBI,lXO:!1,eNf:!1,K15:!0,oyw:yEc,kHO:!1,btZ:!1,KwD:!1});var p9=null,OC=!1,aQj=1,cS2=Symbol("SIGNAL"),Hy={version:0,kBw:0,eP:!1,s6:void 0,ML:void 0,DX:void 0,rF:0,SV:void 0,pZ:void 0,r7:!1,Ij:!1,kind:"unknown",kV:function(){return!1},
  8500. VR:function(){},
  8501. Yi:function(){},
  8502. Bof:function(){}};var QS=Symbol("UNSET"),MJ=Symbol("COMPUTING"),cy=Symbol("ERRORED");Object.assign({},Hy,{value:QS,eP:!0,error:null,PS:A_,kind:"computed",kV:function(d){return d.value===QS||d.value===MJ},
  8503. VR:function(d){if(d.value===MJ)throw Error("");var q=d.value;d.value=MJ;var T=xSD(d),Y=!1;try{var e=d.bb();Z6(null);Y=q!==QS&&q!==cy&&e!==cy&&d.PS(q,e)}catch(U){e=cy,d.error=U}finally{yS1(d,T)}Y?d.value=q:(d.value=e,d.version++)}});var M$g=Object.assign({},Hy,{PS:A_,value:void 0,kind:"signal"});Object.assign({},Hy,{value:QS,eP:!0,error:null,PS:A_,kind:"linkedSignal",kV:function(d){return d.value===QS||d.value===MJ},
  8504. VR:function(d){if(d.value===MJ)throw Error("");var q=d.value;d.value=MJ;var T=xSD(d);try{var Y=d.source();var e=d.bb(Y,q===QS||q===cy?void 0:{source:d.Upv,value:q});d.Upv=Y}catch(U){e=cy,d.error=U}finally{yS1(d,T)}q!==QS&&e!==cy&&d.PS(q,e)?d.value=q:(d.value=e,d.version++)}});Object.assign({},Hy,{Ij:!0,r7:!1,Yi:function(d){d.schedule!==null&&d.schedule(d.NJF)},
  8505. e1U:!1,DfZ:function(){}});g.M(K9,g.$1);K9.prototype.dispose=function(){window.removeEventListener("offline",this.j);window.removeEventListener("online",this.j);this.PO.Qt(this.S);delete K9.instance};
  8506. K9.prototype.YL=function(){return this.G};
  8507. K9.prototype.Yo=function(){var d=this;this.S=this.PO.DE(function(){var q;return g.G(function(T){if(T.U==1)return d.G?((q=window.navigator)==null?0:q.onLine)?T.tF(3):g.B(T,Bh(d),3):g.B(T,Bh(d),3);d.Yo();g.E6(T)})},3E4)};g.M(pPf,Et);var v9c=avg(pPf,[0,$0,x$R,qNR,$0,-2,qNR,ocj]);L9.prototype.set=function(d,q){q=q===void 0?!0:q;0<=d&&d<52&&Number.isInteger(d)&&this.data[d]!==q&&(this.data[d]=q,this.G=-1)};
  8508. L9.prototype.get=function(d){return!!this.data[d]};var Ph;g.Rs(g.uc,g.W);g.Q=g.uc.prototype;g.Q.start=function(){this.stop();this.T=!1;var d=ObX(this),q=nm1(this);d&&!q&&this.U.mozRequestAnimationFrame?(this.G=g.oB(this.U,"MozBeforePaint",this.j),this.U.mozRequestAnimationFrame(null),this.T=!0):this.G=d&&q?d.call(this.U,this.j):this.U.setTimeout(wRn(this.j),20)};
  8509. g.Q.stop=function(){if(this.isActive()){var d=ObX(this),q=nm1(this);d&&!q&&this.U.mozRequestAnimationFrame?TB(this.G):d&&q?q.call(this.U,this.G):this.U.clearTimeout(this.G)}this.G=null};
  8510. g.Q.isActive=function(){return this.G!=null};
  8511. g.Q.QJ=function(){this.T&&this.G&&TB(this.G);this.G=null;this.X.call(this.S,g.F_())};
  8512. g.Q.ir=function(){this.stop();g.uc.VX.ir.call(this)};g.Rs(g.f9,g.W);g.Q=g.f9.prototype;g.Q.EK=0;g.Q.ir=function(){g.f9.VX.ir.call(this);this.stop();delete this.G;delete this.U};
  8513. g.Q.start=function(d){this.stop();this.EK=g.GB(this.j,d!==void 0?d:this.VS)};
  8514. g.Q.stop=function(){this.isActive()&&g.oQ.clearTimeout(this.EK);this.EK=0};
  8515. g.Q.isActive=function(){return this.EK!=0};
  8516. g.Q.T9=function(){this.EK=0;this.G&&this.G.call(this.U)};g.M(g.mE,g.W);g.Q=g.mE.prototype;g.Q.Gh=function(d){this.j=arguments;this.EF||this.U?this.G=!0:SA(this)};
  8517. g.Q.stop=function(){this.EF&&(g.oQ.clearTimeout(this.EF),this.EF=null,this.G=!1,this.j=null)};
  8518. g.Q.pause=function(){this.U++};
  8519. g.Q.resume=function(){this.U--;this.U||!this.G||this.EF||(this.G=!1,SA(this))};
  8520. g.Q.ir=function(){g.W.prototype.ir.call(this);this.stop()};g.lc.prototype[Symbol.iterator]=function(){return this};
  8521. g.lc.prototype.next=function(){var d=this.G.next();return{value:d.done?void 0:this.U.call(void 0,d.value),done:d.done}};g.Rs(g.UA,g.$1);g.Q=g.UA.prototype;g.Q.isPlaying=function(){return this.G==1};
  8522. g.Q.isPaused=function(){return this.G==-1};
  8523. g.Q.Ry=function(){this.Ex("begin")};
  8524. g.Q.YG=function(){this.Ex("end")};
  8525. g.Q.onFinish=function(){this.Ex("finish")};
  8526. g.Q.onStop=function(){this.Ex("stop")};
  8527. g.Q.Ex=function(d){this.dispatchEvent(d)};var o9N=t4(function(){var d=g.FE("DIV"),q=g.J4?"-webkit":w_?"-moz":null,T="transition:opacity 1s linear;";q&&(T+=q+"-transition:opacity 1s linear;");q=ncf({style:T});if(d.nodeType===1&&/^(script|style)$/i.test(d.tagName))throw Error("");d.innerHTML=NX(q);return g.fT(d.firstChild,"transition")!=""});g.Rs(bM,g.UA);g.Q=bM.prototype;g.Q.play=function(){if(this.isPlaying())return!1;this.Ry();this.Ex("play");this.startTime=g.F_();this.G=1;if(o9N())return g.Dv(this.U,this.X),this.j=g.GB(this.noO,void 0,this),!0;this.I0(!1);return!1};
  8528. g.Q.noO=function(){g.Vp(this.U);BqI(this.U,this.L);g.Dv(this.U,this.T);this.j=g.GB((0,g.sI)(this.I0,this,!1),this.S*1E3)};
  8529. g.Q.stop=function(){this.isPlaying()&&this.I0(!0)};
  8530. g.Q.I0=function(d){g.Dv(this.U,"transition","");g.oQ.clearTimeout(this.j);g.Dv(this.U,this.T);this.endTime=g.F_();this.G=0;if(d)this.onStop();else this.onFinish();this.YG()};
  8531. g.Q.ir=function(){this.stop();bM.VX.ir.call(this)};
  8532. g.Q.pause=function(){};var GxN={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,"var":!0};Xr("Element","attributes")||Xr("Node","attributes");Xr("Element","innerHTML")||Xr("HTMLElement","innerHTML");Xr("Node","nodeName");Xr("Node","nodeType");Xr("Node","parentNode");Xr("Node","childNodes");Xr("HTMLElement","style")||Xr("Element","style");Xr("HTMLStyleElement","sheet");var uPI=kx1("getPropertyValue"),DSH=kx1("setProperty");Xr("Element","namespaceURI")||Xr("Node","namespaceURI");var CmH={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var ibD,bBQ,zK7,fQ1,IQX;ibD=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]");bBQ=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.VYQ=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]");
  8533. g.sA=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]");zK7=/^http:\/\/.*/;g.dX7=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");fQ1=/\s+/;IQX=/[\d\u06f0-\u06f9]/;g9.prototype.zp=function(){return new Fr(this.U())};
  8534. g9.prototype[Symbol.iterator]=function(){return new Ng(this.U())};
  8535. g9.prototype.G=function(){return new Ng(this.U())};
  8536. g.M(Fr,g.ER);Fr.prototype.next=function(){return this.U.next()};
  8537. Fr.prototype[Symbol.iterator]=function(){return new Ng(this.U)};
  8538. Fr.prototype.G=function(){return new Ng(this.U)};
  8539. g.M(Ng,g9);Ng.prototype.next=function(){return this.j.next()};xG.prototype.clone=function(){return new xG(this.G,this.L,this.j,this.S,this.T,this.X,this.U,this.B)};
  8540. xG.prototype.equals=function(d){return this.G==d.G&&this.L==d.L&&this.j==d.j&&this.S==d.S&&this.T==d.T&&this.X==d.X&&this.U==d.U&&this.B==d.B};hx.prototype.clone=function(){return new hx(this.start,this.end)};(function(){if(NhX){var d=/Windows NT ([0-9.]+)/;return(d=d.exec(g.k9()))?d[1]:"0"}return Ro?(d=/1[0|1][_.][0-9_.]+/,(d=d.exec(g.k9()))?d[0].replace(/_/g,"."):"10"):g.ID?(d=/Android\s+([^\);]+)(\)|;)/,(d=d.exec(g.k9()))?d[1]:""):cEL||Ec7||jsR?(d=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(d=d.exec(g.k9()))?d[1].replace(/_/g,"."):""):""})();var SE6=function(){if(g.Fv)return H7(/Firefox\/([0-9.]+)/);if(g.Jx||g.DP||g.o9)return Ecn;if(g.MI){if(Ln()||kS()){var d=H7(/CriOS\/([0-9.]+)/);if(d)return d}return H7(/Chrome\/([0-9.]+)/)}if(g.F8&&!Ln())return H7(/Version\/([0-9.]+)/);if(fZ||zt){if(d=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.k9()))return d[1]+"."+d[2]}else if(g.VU)return(d=H7(/Android\s+([0-9.]+)/))?d:H7(/Version\/([0-9.]+)/);return""}();g.Rs(g.Mg,g.W);g.Q=g.Mg.prototype;g.Q.subscribe=function(d,q,T){var Y=this.U[d];Y||(Y=this.U[d]=[]);var e=this.X;this.G[e]=d;this.G[e+1]=q;this.G[e+2]=T;this.X=e+3;Y.push(e);return e};
  8541. g.Q.unsubscribe=function(d,q,T){if(d=this.U[d]){var Y=this.G;if(d=d.find(function(e){return Y[e+1]==q&&Y[e+2]==T}))return this.Br(d)}return!1};
  8542. g.Q.Br=function(d){var q=this.G[d];if(q){var T=this.U[q];this.T!=0?(this.j.push(d),this.G[d+1]=function(){}):(T&&g.jj(T,d),delete this.G[d],delete this.G[d+1],delete this.G[d+2])}return!!q};
  8543. g.Q.publish=function(d,q){var T=this.U[d];if(T){var Y=Array(arguments.length-1),e=arguments.length,U;for(U=1;U<e;U++)Y[U-1]=arguments[U];if(this.L)for(U=0;U<T.length;U++)e=T[U],lQ1(this.G[e+1],this.G[e+2],Y);else{this.T++;try{for(U=0,e=T.length;U<e&&!this.JF();U++){var b=T[U];this.G[b+1].apply(this.G[b+2],Y)}}finally{if(this.T--,this.j.length>0&&this.T==0)for(;T=this.j.pop();)this.Br(T)}}return U!=0}return!1};
  8544. g.Q.clear=function(d){if(d){var q=this.U[d];q&&(q.forEach(this.Br,this),delete this.U[d])}else this.G.length=0,this.U={}};
  8545. g.Q.ir=function(){g.Mg.VX.ir.call(this);this.clear();this.j.length=0};g.c7.prototype.set=function(d,q){q===void 0?this.G.remove(d):this.G.set(d,g.Wd(q))};
  8546. g.c7.prototype.get=function(d){try{var q=this.G.get(d)}catch(T){return}if(q!==null)try{return JSON.parse(q)}catch(T){throw"Storage: Invalid value was encountered";}};
  8547. g.c7.prototype.remove=function(d){this.G.remove(d)};g.Rs(EA,g.c7);EA.prototype.set=function(d,q){EA.VX.set.call(this,d,omn(q))};
  8548. EA.prototype.U=function(d){d=EA.VX.get.call(this,d);if(d===void 0||d instanceof Object)return d;throw"Storage: Invalid value was encountered";};
  8549. EA.prototype.get=function(d){if(d=this.U(d)){if(d=d.data,d===void 0)throw"Storage: Invalid value was encountered";}else d=void 0;return d};g.Rs(jp,EA);jp.prototype.set=function(d,q,T){if(q=omn(q)){if(T){if(T<g.F_()){jp.prototype.remove.call(this,d);return}q.expiration=T}q.creation=g.F_()}jp.VX.set.call(this,d,q)};
  8550. jp.prototype.U=function(d,q){var T=jp.VX.U.call(this,d);if(T)if(!q&&g.V$f(T))jp.prototype.remove.call(this,d);else return T};g.Rs(g.aM,jp);g.Rs(Ax,dLY);Ax.prototype[Symbol.iterator]=function(){return g.RM(this.zp(!0)).G()};
  8551. Ax.prototype.clear=function(){var d=Array.from(this);d=g.E(d);for(var q=d.next();!q.done;q=d.next())this.remove(q.value)};g.Rs(pv,Ax);g.Q=pv.prototype;g.Q.isAvailable=function(){if(this.U===null){var d=this.G;if(d)try{d.setItem("__sak","1");d.removeItem("__sak");var q=!0}catch(T){q=T instanceof DOMException&&(T.name==="QuotaExceededError"||T.code===22||T.code===1014||T.name==="NS_ERROR_DOM_QUOTA_REACHED")&&d&&d.length!==0}else q=!1;this.U=q}return this.U};
  8552. g.Q.set=function(d,q){Zg(this);try{this.G.setItem(d,q)}catch(T){if(this.G.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
  8553. g.Q.get=function(d){Zg(this);d=this.G.getItem(d);if(typeof d!=="string"&&d!==null)throw"Storage mechanism: Invalid value was encountered";return d};
  8554. g.Q.remove=function(d){Zg(this);this.G.removeItem(d)};
  8555. g.Q.zp=function(d){Zg(this);var q=0,T=this.G,Y=new g.ER;Y.next=function(){if(q>=T.length)return g.NJ;var e=T.key(q++);if(d)return g.j9(e);e=T.getItem(e);if(typeof e!=="string")throw"Storage mechanism: Invalid value was encountered";return g.j9(e)};
  8556. return Y};
  8557. g.Q.clear=function(){Zg(this);this.G.clear()};
  8558. g.Q.key=function(d){Zg(this);return this.G.key(d)};g.Rs(OA,pv);g.Rs(qfj,pv);g.Rs(nv,Ax);nv.prototype.set=function(d,q){this.U.set(this.G+d,q)};
  8559. nv.prototype.get=function(d){return this.U.get(this.G+d)};
  8560. nv.prototype.remove=function(d){this.U.remove(this.G+d)};
  8561. nv.prototype.zp=function(d){var q=this.U[Symbol.iterator](),T=this,Y=new g.ER;Y.next=function(){var e=q.next();if(e.done)return e;for(e=e.value;e.slice(0,T.G.length)!=T.G;){e=q.next();if(e.done)return e;e=e.value}return g.j9(d?e.slice(T.G.length):T.U.get(e))};
  8562. return Y};tx.prototype.getValue=function(){return this.U};
  8563. tx.prototype.clone=function(){return new tx(this.G,this.U)};g.Q=B7.prototype;g.Q.LA=function(d,q){var T=this.G;T.push(new tx(d,q));d=T.length-1;q=this.G;for(T=q[d];d>0;){var Y=d-1>>1;if(q[Y].G>T.G)q[d]=q[Y],d=Y;else break}q[d]=T};
  8564. g.Q.remove=function(){var d=this.G,q=d.length,T=d[0];if(!(q<=0)){if(q==1)d.length=0;else{d[0]=d.pop();d=0;q=this.G;for(var Y=q.length,e=q[d];d<Y>>1;){var U=d*2+1,b=d*2+2;U=b<Y&&q[b].G<q[U].G?b:U;if(q[U].G>e.G)break;q[d]=q[U];d=U}q[d]=e}return T.getValue()}};
  8565. g.Q.N0=function(){for(var d=this.G,q=[],T=d.length,Y=0;Y<T;Y++)q.push(d[Y].getValue());return q};
  8566. g.Q.ll=function(){for(var d=this.G,q=[],T=d.length,Y=0;Y<T;Y++)q.push(d[Y].G);return q};
  8567. g.Q.clone=function(){return new B7(this)};
  8568. g.Q.isEmpty=function(){return this.G.length===0};
  8569. g.Q.clear=function(){this.G.length=0};g.M(Kv,B7);Kv.prototype.enqueue=function(d,q){this.LA(d,q)};GR.zS=void 0;GR.getInstance=function(){return GR.zS?GR.zS:GR.zS=new GR};
  8570. GR.prototype.G=0;var Lv={},qDq=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";Lv.assign=function(d){for(var q=Array.prototype.slice.call(arguments,1);q.length;){var T=q.shift();if(T){if(typeof T!=="object")throw new TypeError(T+"must be non-object");for(var Y in T)Object.prototype.hasOwnProperty.call(T,Y)&&(d[Y]=T[Y])}}return d};
  8571. Lv.kd=function(d,q){if(d.length===q)return d;if(d.subarray)return d.subarray(0,q);d.length=q;return d};
  8572. var TtE={iZ:function(d,q,T,Y,e){if(q.subarray&&d.subarray)d.set(q.subarray(T,T+Y),e);else for(var U=0;U<Y;U++)d[e+U]=q[T+U]},
  8573. VF:function(d){var q,T;var Y=T=0;for(q=d.length;Y<q;Y++)T+=d[Y].length;var e=new Uint8Array(T);Y=T=0;for(q=d.length;Y<q;Y++){var U=d[Y];e.set(U,T);T+=U.length}return e}},YDR={iZ:function(d,q,T,Y,e){for(var U=0;U<Y;U++)d[e+U]=q[T+U]},
  8574. VF:function(d){return[].concat.apply([],d)}};
  8575. Lv.ce2=function(){qDq?(Lv.gi=Uint8Array,Lv.b3=Uint16Array,Lv.Dg=Int32Array,Lv.assign(Lv,TtE)):(Lv.gi=Array,Lv.b3=Array,Lv.Dg=Array,Lv.assign(Lv,YDR))};
  8576. Lv.ce2();var eSN=!0;try{new Uint8Array(1)}catch(d){eSN=!1};var XM={};XM=function(d,q,T,Y){var e=d&65535|0;d=d>>>16&65535|0;for(var U;T!==0;){U=T>2E3?2E3:T;T-=U;do e=e+q[Y++]|0,d=d+e|0;while(--U);e%=65521;d%=65521}return e|d<<16|0};for(var J1={},EU,UXR=[],jr=0;jr<256;jr++){EU=jr;for(var bnc=0;bnc<8;bnc++)EU=EU&1?3988292384^EU>>>1:EU>>>1;UXR[jr]=EU}J1=function(d,q,T,Y){T=Y+T;for(d^=-1;Y<T;Y++)d=d>>>8^UXR[(d^q[Y])&255];return d^-1};var oM={};oM={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 zR=[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],m$=[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],pd6=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],xLN=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],T2=Array(576);kG(T2);var Y5=Array(60);kG(Y5);var IM=Array(512);kG(IM);var fv=Array(256);kG(fv);var iM=Array(29);kG(iM);var Sp=Array(30);kG(Sp);var j_D,aZ_,AKI,E1f=!1;var RE;RE=[new Nv(0,0,0,0,function(d,q){var T=65535;for(T>d.C3-5&&(T=d.C3-5);;){if(d.xB<=1){$5(d);if(d.xB===0&&q===0)return 1;if(d.xB===0)break}d.pn+=d.xB;d.xB=0;var Y=d.s5+T;if(d.pn===0||d.pn>=Y)if(d.xB=d.pn-Y,d.pn=Y,eW(d,!1),d.q3.Wl===0)return 1;if(d.pn-d.s5>=d.r4-262&&(eW(d,!1),d.q3.Wl===0))return 1}d.LA=0;if(q===4)return eW(d,!0),d.q3.Wl===0?3:4;d.pn>d.s5&&eW(d,!1);return 1}),
  8577. new Nv(4,4,8,4,gw),new Nv(4,5,16,8,gw),new Nv(4,6,32,32,gw),new Nv(4,4,16,16,FM),new Nv(8,16,32,32,FM),new Nv(8,16,128,128,FM),new Nv(8,32,128,256,FM),new Nv(32,128,258,1024,FM),new Nv(32,258,258,4096,FM)];var cKn={};cKn=function(){this.input=null;this.vV=this.b1=this.EO=0;this.output=null;this.H_=this.Wl=this.ZN=0;this.msg="";this.state=null;this.VO=2;this.Ic=0};var ZKg=Object.prototype.toString;
  8578. x5.prototype.push=function(d,q){var T=this.q3,Y=this.options.chunkSize;if(this.ended)return!1;var e=q===~~q?q:q===!0?4:0;typeof d==="string"?T.input=eFD(d):ZKg.call(d)==="[object ArrayBuffer]"?T.input=new Uint8Array(d):T.input=d;T.EO=0;T.b1=T.input.length;do{T.Wl===0&&(T.output=new Lv.gi(Y),T.ZN=0,T.Wl=Y);d=M4j(T,e);if(d!==1&&d!==0)return this.YG(d),this.ended=!0,!1;if(T.Wl===0||T.b1===0&&(e===4||e===2))if(this.options.to==="string"){var U=Lv.kd(T.output,T.ZN);q=U;U=U.length;if(U<65537&&(q.subarray&&
  8579. eSN||!q.subarray))q=String.fromCharCode.apply(null,Lv.kd(q,U));else{for(var b="",J=0;J<U;J++)b+=String.fromCharCode(q[J]);q=b}this.chunks.push(q)}else q=Lv.kd(T.output,T.ZN),this.chunks.push(q)}while((T.b1>0||T.Wl===0)&&d!==1);if(e===4)return(T=this.q3)&&T.state?(Y=T.state.status,Y!==42&&Y!==69&&Y!==73&&Y!==91&&Y!==103&&Y!==113&&Y!==666?d=Vy(T,-2):(T.state=null,d=Y===113?Vy(T,-3):0)):d=-2,this.YG(d),this.ended=!0,d===0;e===2&&(this.YG(0),T.Wl=0);return!0};
  8580. x5.prototype.YG=function(d){d===0&&(this.result=this.options.to==="string"?this.chunks.join(""):Lv.VF(this.chunks));this.chunks=[];this.err=d;this.msg=this.q3.msg};var h1="@@redux/INIT"+yH(),KWD="@@redux/REPLACE"+yH();var GB7=typeof Symbol==="function"&&Symbol.observable||"@@observable";var XZQ=[0,g9E,-3,sU];g.M(WWI,Et);var wbj=avg(WWI,[0,$0,Ffs,UU,g9E,UU,-1,sU,g9E,sU,-1,$0,sU,Ffs,bK,XZQ,UU,-1,sU]);var CZ1=317184834;var Y2j=new g.Mv("adInfoDialogEndpoint");var GTj=new g.Mv("adPingingEndpoint");var TsN=new g.Mv("crossDeviceProgressCommand");var pS=new g.Mv("actionCompanionAdRenderer");var o5=new g.Mv("adActionInterstitialRenderer");var Jnq=new g.Mv("adDurationRemainingRenderer");var VP=new g.Mv("adHoverTextButtonRenderer");var q2Q=new g.Mv("adInfoDialogRenderer");var L6=new g.Mv("adMessageRenderer");var dN=new g.Mv("adPreviewRenderer");var OO=new g.Mv("adsEngagementPanelRenderer");var nhD=new g.Mv("dismissablePanelTextPortraitImageRenderer");var ZUI=new g.Mv("adsEngagementPanelSectionListViewModel");var syL=new g.Mv("flyoutCtaRenderer");var ZJ=new g.Mv("imageCompanionAdRenderer");var lO=new g.Mv("instreamAdPlayerOverlayRenderer");var AYQ=new g.Mv("instreamSurveyAdBackgroundImageRenderer");var oF=new g.Mv("instreamSurveyAdPlayerOverlayRenderer");var CS=new g.Mv("instreamSurveyAdRenderer"),vY=new g.Mv("instreamSurveyAdSingleSelectQuestionRenderer"),lV=new g.Mv("instreamSurveyAdMultiSelectQuestionRenderer"),aS=new g.Mv("instreamSurveyAdAnswerRenderer"),$Xn=new g.Mv("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var PY=new g.Mv("instreamVideoAdRenderer");var gSI=new g.Mv("textOverlayAdContentRenderer"),FnR=new g.Mv("enhancedTextOverlayAdContentRenderer"),Nt7=new g.Mv("imageOverlayAdContentRenderer");var vp=new g.Mv("playerOverlayLayoutRenderer");var VT=new g.Mv("videoInterstitialButtonedCenteredLayoutRenderer");var GYX=new g.Mv("aboveFeedAdLayoutRenderer");var LM6=new g.Mv("belowPlayerAdLayoutRenderer");var KM6=new g.Mv("inPlayerAdLayoutRenderer");var wG=new g.Mv("playerBytesAdLayoutRenderer");var S5=new g.Mv("playerBytesSequenceItemAdLayoutRenderer");var mu=new g.Mv("playerUnderlayAdLayoutRenderer");var WY=new g.Mv("adIntroRenderer");var LS=new g.Mv("playerBytesSequentialLayoutRenderer");var RpD=new g.Mv("slidingTextPlayerOverlayRenderer");var uV=new g.Mv("surveyTextInterstitialRenderer");var fS=new g.Mv("videoAdTrackingRenderer");var aOX=new g.Mv("videoInterstitialCenteredLayoutViewModel");var RSs=new g.Mv("simpleAdBadgeRenderer");var AP=new g.Mv("skipAdRenderer"),xXs=new g.Mv("skipButtonRenderer");var ei=new g.Mv("adSlotRenderer");var iV=new g.Mv("squeezebackPlayerSidePanelRenderer");var ynL=new g.Mv("timedPieCountdownRenderer");var mO=new g.Mv("adAvatarViewModel");var Sy=new g.Mv("adBadgeViewModel");var lU=new g.Mv("adButtonViewModel");var hSn=new g.Mv("adDetailsLineViewModel");var HnL=new g.Mv("adDisclosureBannerViewModel");var Qyj=new g.Mv("adPodIndexViewModel");var Mvq=new g.Mv("imageBackgroundViewModel");var cnc=new g.Mv("adGridCardCollectionViewModel");var ESN=new g.Mv("adGridCardTextViewModel");var jyl=new g.Mv("adPreviewViewModel");var aGn=new g.Mv("playerAdAvatarLockupCardButtonedViewModel");var AnN=new g.Mv("skipAdButtonViewModel");var pZI=new g.Mv("skipAdViewModel");var Znx=new g.Mv("timedPieCountdownViewModel");var OnB=new g.Mv("visitAdvertiserLinkViewModel");var nS=new g.Mv("bannerImageLayoutViewModel");var rG=new g.Mv("topBannerImageTextIconButtonedLayoutViewModel");var tR=new g.Mv("adsEngagementPanelLayoutViewModel");var IF=new g.Mv("displayUnderlayTextGridCardsLayoutViewModel");g.SH=new g.Mv("browseEndpoint");var nSL=new g.Mv("confirmDialogEndpoint");var DNX=new g.Mv("commandContext");var yd7=new g.Mv("rawColdConfigGroup");var x4f=new g.Mv("rawHotConfigGroup");g.NY=new g.Mv("commandExecutorCommand");g.M(DL7,Et);var wn2={m4v:0,BKU:1,f7r:32,ToF:61,r8f:67,Me5:103,Qix:86,GHf:42,l7O:60,OSD:62,iog:73,op5:76,tev:88,zN2:90,I7x:99,w1Z:98,pOk:100,ji5:102,Yiv:41,hNf:69,bow:70,a7f:71,q5w:2,mFO:27,ANDROID:3,Wiv:54,BUO:14,GNw:91,ZAw:55,OAv:24,ckv:20,CSv:18,VFZ:21,Kiv:104,lE2:30,jgw:29,ixO:28,D4F:101,THw:34,fEZ:36,kSv:38,IOS:5,uTF:15,eF5:92,dOv:40,RFg:25,vZg:17,XRZ:19,qPk:64,mOf:66,SPg:26,NBw:22,L7F:33,F7k:68,DOk:35,EZv:53,nZw:37,Jp5:39,Ibf:7,YxO:57,h0v:43,abZ:59,bSZ:93,o1v:74,sFg:75,HSU:85,utx:65,JCw:80,R0k:8,p1k:10,
  8581. X1k:58,v6Z:63,d4w:72,UNw:23,uUk:11,dfx:13,xNf:12,rCZ:16,PuU:56,y8D:31,Jtv:77,C1v:84,Ufv:87,Vjf:89,kzF:94,M8D:95};g.M(cq,Et);cq.prototype.Wd=function(){return Oy(this,3)};
  8582. cq.prototype.Ki=function(){return Oy(this,5)};
  8583. cq.prototype.Lw=function(d){return K2(this,5,d)};g.M(Es,Et);g.M(wdX,Et);g.M(jW,Et);g.Q=jW.prototype;g.Q.getDeviceId=function(){return Oy(this,6)};
  8584. g.Q.AI=function(d){var q=es(this,9,Nb,3,!0);zI(q,d);return q[d]};
  8585. g.Q.getPlayerType=function(){return n2(this,36)};
  8586. g.Q.setHomeGroupInfo=function(d){return Qw(this,wdX,81,d)};
  8587. g.Q.clearLocationPlayabilityToken=function(){return VX(this,89)};g.M(aE,Et);aE.prototype.getValue=function(){return Oy(this,Rl(this,N7j,2))};
  8588. var N7j=[2,3,4,5,6];g.M(A1,Et);A1.prototype.setTrackingParams=function(d){return VX(this,1,w22(d,!1))};g.M(ps,Et);g.M(ZA,Et);ZA.prototype.AI=function(d){var q=es(this,5,R4,3,!0);zI(q,d);return q[d]};g.M(Os,Et);Os.prototype.getToken=function(){return tI(this,2)};
  8589. Os.prototype.setToken=function(d){return K2(this,2,d)};g.M(ns,Et);ns.prototype.setSafetyMode=function(d){return L2(this,5,d)};g.M(rw,Et);rw.prototype.Ol=function(d){return Qw(this,jW,1,d)};var Tb=new g.Mv("thumbnailLandscapePortraitRenderer");g.rnI=new g.Mv("changeEngagementPanelVisibilityAction");var tF_=new g.Mv("continuationCommand");g.tvE=new g.Mv("openPopupAction");g.AX=new g.Mv("webCommandMetadata");var H6N=new g.Mv("metadataBadgeRenderer");var rrg=new g.Mv("signalServiceEndpoint");var ri=new g.Mv("innertubeCommand");var RGD=new g.Mv("loggingDirectives");var Zi_={H8O:"EMBEDDED_PLAYER_MODE_UNKNOWN",b82:"EMBEDDED_PLAYER_MODE_DEFAULT",skD:"EMBEDDED_PLAYER_MODE_PFP",acU:"EMBEDDED_PLAYER_MODE_PFL"};var zyX=new g.Mv("channelThumbnailEndpoint");var fwf=new g.Mv("embeddedPlayerErrorMessageRenderer");var Cv_=new g.Mv("embeddedPlayerOverlayVideoDetailsRenderer"),i61=new g.Mv("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),Iw_=new g.Mv("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var x66=new g.Mv("embedsInfoPanelRenderer");var Btx=new g.Mv("feedbackEndpoint");var KnB=new g.Mv("callToActionButtonViewModel");var GP7=new g.Mv("interactionLoggingCommandMetadata");var EGQ={Kmw:"WEB_DISPLAY_MODE_UNKNOWN",cCZ:"WEB_DISPLAY_MODE_BROWSER",ksk:"WEB_DISPLAY_MODE_MINIMAL_UI",VUZ:"WEB_DISPLAY_MODE_STANDALONE",CVv:"WEB_DISPLAY_MODE_FULLSCREEN"};g.M(t1,Et);t1.prototype.getPlayerType=function(){return n2(this,7)};
  8590. t1.prototype.Sh=function(){return Oy(this,19)};
  8591. t1.prototype.setVideoId=function(d){return K2(this,19,d)};g.M(Bq,Et);g.M(Ks,Et);g.M(G2,Et);
  8592. var Lnx=[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,
  8593. 354,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,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525];var kPL=new g.Mv("loggingContext");g.M(Ls,Et);g.M(k5,Et);k5.prototype.Sh=function(){return tI(this,Rl(this,en,1))};
  8594. k5.prototype.setVideoId=function(d){return F2(this,1,en,a4(d))};
  8595. k5.prototype.getPlaylistId=function(){return tI(this,Rl(this,en,2))};
  8596. var en=[1,2];g.M(fZ7,Et);var af=new g.Mv("changeKeyedMarkersVisibilityCommand");var P47=new g.Mv("changeMarkersVisibilityCommand");var MiH=new g.Mv("loadMarkersCommand");var WnI=new g.Mv("suggestedActionDataViewModel");var mNI=new g.Mv("timelyActionViewModel");var Ik2=new g.Mv("timelyActionsOverlayViewModel");var Upg=new g.Mv("productListItemRenderer");var C4I=new g.Mv("shoppingOverlayRenderer");var uCj=new g.Mv("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var uk_=new g.Mv("adFeedbackEndpoint");var DXc=new g.Mv("menuEndpoint");var g01=new g.Mv("phoneDialerEndpoint");var sS6=new g.Mv("sendSmsEndpoint");var Wo1=new g.Mv("copyTextEndpoint");var wZs=new g.Mv("shareEndpoint"),fGq=new g.Mv("shareEntityEndpoint"),zSc=new g.Mv("shareEntityServiceEndpoint"),inI=new g.Mv("webPlayerShareEntityServiceEndpoint");g.KM=new g.Mv("urlEndpoint");g.EB=new g.Mv("watchEndpoint");var IGI=new g.Mv("watchPlaylistEndpoint");g.mXl=new g.Mv("offlineOrchestrationActionCommand");var nBQ=new g.Mv("compositeVideoOverlayRenderer");var SDq=new g.Mv("miniplayerRenderer");var kbN=new g.Mv("paidContentOverlayRenderer");var lGI=new g.Mv("playerMutedAutoplayOverlayRenderer"),vSB=new g.Mv("playerMutedAutoplayEndScreenRenderer");var BGn=new g.Mv("unserializedPlayerResponse"),oS_=new g.Mv("unserializedPlayerResponse");var VvB=new g.Mv("playlistEditEndpoint");var p8;g.q6=new g.Mv("buttonRenderer");p8=new g.Mv("toggleButtonRenderer");var pm1=new g.Mv("counterfactualRenderer");var dQR=new g.Mv("resolveUrlCommandMetadata");var qM7=new g.Mv("modifyChannelNotificationPreferenceEndpoint");var KIX=new g.Mv("pingingEndpoint");var T_s=new g.Mv("unsubscribeEndpoint");g.lx=new g.Mv("subscribeButtonRenderer");var YMQ=new g.Mv("subscribeEndpoint");var sg6=new g.Mv("buttonViewModel");var OU1=new g.Mv("qrCodeRenderer");var zcn={f5r:"LIVING_ROOM_APP_MODE_UNSPECIFIED",wRg:"LIVING_ROOM_APP_MODE_MAIN",K7k:"LIVING_ROOM_APP_MODE_KIDS",P95:"LIVING_ROOM_APP_MODE_MUSIC",Grw:"LIVING_ROOM_APP_MODE_UNPLUGGED",VVw:"LIVING_ROOM_APP_MODE_GAMING"};var Fo_=new g.Mv("autoplaySwitchButtonRenderer");var on,VQg,CVg,$2Y;on=new g.Mv("decoratedPlayerBarRenderer");VQg=new g.Mv("chapteredPlayerBarRenderer");CVg=new g.Mv("multiMarkersPlayerBarRenderer");$2Y=new g.Mv("chapterRenderer");g.YhH=new g.Mv("markerRenderer");var x26=new g.Mv("decoratedPlayheadRenderer");var yC1=new g.Mv("desktopOverlayConfigRenderer");var rU_=new g.Mv("engagementPanelSectionListRenderer");var RyY=new g.Mv("gatedActionsOverlayViewModel");var XwD=new g.Mv("heatMarkerRenderer");var b_Q=new g.Mv("heatmapRenderer");var Qxn=new g.Mv("watchToWatchTransitionRenderer");var D6_=new g.Mv("playlistPanelRenderer");var euc=new g.Mv("productUpsellSuggestedActionViewModel");var UQx=new g.Mv("suggestedActionTimeRangeTrigger"),bTI=new g.Mv("suggestedActionsRenderer"),XBI=new g.Mv("suggestedActionRenderer");var J26=new g.Mv("timedMarkerDecorationRenderer");var uI1=new g.Mv("cipher");var Kuf=new g.Mv("playerVars");var J4L=new g.Mv("playerVars");var ZF=g.oQ.window,src,$QQ,Pq=(ZF==null?void 0:(src=ZF.yt)==null?void 0:src.config_)||(ZF==null?void 0:($QQ=ZF.ytcfg)==null?void 0:$QQ.data_)||{};g.Vf("yt.config_",Pq);var fs=[];var d07=/^[\w.]*$/,lZY={q:!0,search_query:!0},Sff=String(mR);var ee=new function(){var d=window.document;this.G=window;this.U=d};
  8597. g.Vf("yt.ads_.signals_.getAdSignalsString",function(d){return SW(bb(d))});g.F_();var Te7="XMLHttpRequest"in g.oQ?function(){return new XMLHttpRequest}:null;var gEI="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.RQ(gEI);var biD={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",
  8598. "X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-Goog-AuthUser":"SESSION_INDEX","X-Goog-PageId":"DELEGATED_SESSION_ID"},hJN="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.RQ(gEI)),Ne2=!1,$07=HL;g.M(cL,xc);aD.prototype.then=function(d,q,T){return this.G?this.G.then(d,q,T):this.j===1&&d?(d=d.call(T,this.U))&&typeof d.then==="function"?d:pZ(d):this.j===2&&q?(d=q.call(T,this.U))&&typeof d.then==="function"?d:Ad(d):this};
  8599. aD.prototype.getValue=function(){return this.U};
  8600. aD.prototype.$goog_Thenable=!0;var Zq=!1;var uR=fZ||zt;var Afj=/^([0-9\.]+):([0-9\.]+)$/;g.M(b5,xc);b5.prototype.name="BiscottiError";g.M(Ud,xc);Ud.prototype.name="BiscottiMissingError";var nH_={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},XH=null;var TL6=yf(["data-"]),W6N={};var FZn=0,JB=g.J4?"webkit":w_?"moz":g.Jx?"ms":g.o9?"o":"",N__=g.qx("ytDomDomGetNextId")||function(){return++FZn};
  8601. g.Vf("ytDomDomGetNextId",N__);var wJ_={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};RY.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
  8602. RY.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
  8603. RY.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var xO=g.oQ.ytEventsEventsListeners||{};g.Vf("ytEventsEventsListeners",xO);var ii_=g.oQ.ytEventsEventsCounter||{count:0};g.Vf("ytEventsEventsCounter",ii_);var l_g=t4(function(){var d=!1;try{var q=Object.defineProperty({},"passive",{get:function(){d=!0}});
  8604. window.addEventListener("test",null,q)}catch(T){}return d}),I_6=t4(function(){var d=!1;
  8605. try{var q=Object.defineProperty({},"capture",{get:function(){d=!0}});
  8606. window.addEventListener("test",null,q)}catch(T){}return d});var OU;OU=window;g.cj=OU.ytcsi&&OU.ytcsi.now?OU.ytcsi.now:OU.performance&&OU.performance.timing&&OU.performance.now&&OU.performance.timing.navigationStart?function(){return OU.performance.timing.navigationStart+OU.performance.now()}:function(){return(new Date).getTime()};g.Rs(Ms,g.W);Ms.prototype.K=function(d){d.G===void 0&&f__(d);var q=d.G;d.U===void 0&&f__(d);this.G=new g.wt(q,d.U)};
  8607. Ms.prototype.eE=function(){return this.G||new g.wt};
  8608. Ms.prototype.lr=function(){if(this.G){var d=(0,g.cj)();if(this.T!=0){var q=this.X,T=this.G,Y=q.x-T.x;q=q.y-T.y;Y=Math.sqrt(Y*Y+q*q)/(d-this.T);this.U[this.j]=Math.abs((Y-this.S)/this.S)>.5?1:0;for(T=q=0;T<4;T++)q+=this.U[T]||0;q>=3&&this.L();this.S=Y}this.T=d;this.X=this.G;this.j=(this.j+1)%4}};
  8609. Ms.prototype.ir=function(){g.Fq(this.B);g.hB(this.UD)};g.M(cu,g.W);cu.prototype.W=function(d,q,T,Y,e){T=g.iF((0,g.sI)(T,Y||this.Qp));T={target:d,name:q,callback:T};var U;e&&l_g()&&(U={passive:!0});d.addEventListener(q,T.callback,U);this.L.push(T);return T};
  8610. cu.prototype.t1=function(d){for(var q=0;q<this.L.length;q++)if(this.L[q]==d){this.L.splice(q,1);d.target.removeEventListener(d.name,d.callback);break}};
  8611. cu.prototype.ir=function(){g.jX(this);g.W.prototype.ir.call(this)};var RfQ=["att/get"],niN=["embedded_player"],hW7=["account/get_setting_values"],RuB=["share/get_share_panel"],xQI=["share/get_web_player_share_panel"],y4c=["feedback"],huI=["notification/modify_channel_preference"],tzN=["player"],HTR=["browse/edit_playlist"],Ma6=["account/set_setting"],Qr_=["subscription/subscribe"],MV_=["subscription/unsubscribe"],GVH=["next","unplugged/watch_next"];var AB;g.aY=t4(function(){try{var d=new OA;var q=d.isAvailable()?d:null}catch(T){return null}return q?new g.aM(q):null});
  8612. AB=t4(function(){var d=new qfj;return d.isAvailable()?new g.aM(d):null});g.c4j=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.Vf("yt.msgs_",g.c4j);tB.prototype.Tf=function(d,q){d={};var T=[];"USER_SESSION_ID"in Pq&&T.push({key:"u",value:g.Cs("USER_SESSION_ID")});if(T=sqD(T))d.Authorization=T,T=q=q==null?void 0:q.sessionIndex,T===void 0&&(T=Number(g.Cs("SESSION_INDEX",0)),T=isNaN(T)?0:T),g.RD("voice_search_auth_header_removal")||(d["X-Goog-AuthUser"]=T.toString()),"INNERTUBE_HOST_OVERRIDE"in Pq||(d["X-Origin"]=window.location.origin),q===void 0&&"DELEGATED_SESSION_ID"in Pq&&(d["X-Goog-PageId"]=g.Cs("DELEGATED_SESSION_ID"));return d};var X7={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var LW=g.qx("ytglobal.prefsUserPrefsPrefs_")||{};g.Vf("ytglobal.prefsUserPrefsPrefs_",LW);var Bu;g.Q=qCI.prototype;g.Q.get=function(d,q){Wu(d);Pu(d);d=LW[d]!==void 0?LW[d].toString():null;return d!=null?d:q?q:""};
  8613. g.Q.set=function(d,q){Wu(d);Pu(d);if(q==null)throw Error("ExpectedNotNull");LW[d]=q.toString()};
  8614. g.Q.remove=function(d){Wu(d);Pu(d);delete LW[d]};
  8615. g.Q.save=function(){var d=!0;g.RD("web_secure_pref_cookie_killswitch")&&(d=!1);g.nZ(this.G,this.dump(),63072E3,this.U,d)};
  8616. g.Q.clear=function(){g.LjD(LW)};
  8617. g.Q.dump=function(){var d=[],q;for(q in LW)LW.hasOwnProperty(q)&&d.push(q+"="+encodeURIComponent(String(LW[q])));return d.join("&")};
  8618. g.Q.parse=function(d){d=decodeURIComponent(d).split("&");for(var q=0;q<d.length;q++){var T=d[q].split("="),Y=T[0];(T=T[1])&&(LW[Y]=T.toString())}};var eNN={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"},jM1={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,
  8619. CONN_CELLULAR_5G_NSA:12,CONN_WIRED:30,CONN_INVALID:31},ag2={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},b92={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};g.M(g.CW,Error);w8.prototype.DE=function(d,q){return fW(d,1,q)};
  8620. w8.prototype.yb=function(d){(d=this.G.get(d))&&d()};g.qx("yt.scheduler.instance.timerIdMap_");g.M(i5,w8);i5.prototype.Qt=function(d){if(d===void 0||!Number.isNaN(Number(d))){var q=g.qx("yt.scheduler.instance.cancelJob");q?q(d):g.g7(d)}};
  8621. i5.prototype.start=function(){var d=g.qx("yt.scheduler.instance.start");d&&d()};
  8622. i5.prototype.pause=function(){var d=g.qx("yt.scheduler.instance.pause");d&&d()};
  8623. g.Gh=g.IY();l5.prototype.set=function(d,q,T,Y){T=T||31104E3;this.remove(d);if(this.G)try{this.G.set(d,q,Date.now()+T*1E3);return}catch(U){}var e="";if(Y)try{e=escape(g.Wd(q))}catch(U){return}else e=escape(q);g.nZ(d,e,T,this.U)};
  8624. l5.prototype.get=function(d,q){var T=void 0,Y=!this.G;if(!Y)try{T=this.G.get(d)}catch(e){Y=!0}if(Y&&(T=g.r7(d))&&(T=unescape(T),q))try{T=JSON.parse(T)}catch(e){this.remove(d),T=void 0}return T};
  8625. l5.prototype.remove=function(d){this.G&&this.G.remove(d);g.td(d,"/",this.U)};
  8626. l5.prototype.getCreationTime=function(d){return this.G&&(d=(this.G.U(d)||{}).creation,typeof d==="number")?d:null};var vu=function(){var d;return function(){d||(d=new l5("ytidb"));return d}}();var Y7=[],Vi,eF=!1;var n8={},$K2=(n8.AUTH_INVALID="No user identifier specified.",n8.EXPLICIT_ABORT="Transaction was explicitly aborted.",n8.IDB_NOT_SUPPORTED="IndexedDB is not supported.",n8.MISSING_INDEX="Index not created.",n8.MISSING_OBJECT_STORES="Object stores not created.",n8.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",n8.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",n8.UNKNOWN_ABORT=
  8627. "Transaction was aborted for unknown reasons.",n8.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",n8.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",n8.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",n8.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",n8),rA={},gM_=(rA.AUTH_INVALID="ERROR",rA.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",rA.EXPLICIT_ABORT="IGNORED",
  8628. rA.IDB_NOT_SUPPORTED="ERROR",rA.MISSING_INDEX="WARNING",rA.MISSING_OBJECT_STORES="ERROR",rA.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",rA.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",rA.QUOTA_EXCEEDED="WARNING",rA.QUOTA_MAYBE_EXCEEDED="WARNING",rA.UNKNOWN_ABORT="WARNING",rA.INCOMPATIBLE_DB_VERSION="WARNING",rA),tX={},FEg=(tX.AUTH_INVALID=!1,tX.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,tX.EXPLICIT_ABORT=!1,tX.IDB_NOT_SUPPORTED=!1,tX.MISSING_INDEX=!1,tX.MISSING_OBJECT_STORES=!1,tX.DB_DELETED_BY_MISSING_OBJECT_STORES=
  8629. !1,tX.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,tX.QUOTA_EXCEEDED=!1,tX.QUOTA_MAYBE_EXCEEDED=!0,tX.UNKNOWN_ABORT=!0,tX.INCOMPATIBLE_DB_VERSION=!1,tX);g.M(g.s2,g.CW);g.M($7,g.s2);g.M(gO,Error);var NW1=["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.hr.all=function(d){return new g.hr(new x7(function(q,T){var Y=[],e=d.length;e===0&&q(Y);for(var U={iB:0};U.iB<d.length;U={iB:U.iB},++U.iB)g.hr.resolve(d[U.iB]).then(function(b){return function(J){Y[b.iB]=J;e--;e===0&&q(Y)}}(U)).catch(function(b){T(b)})}))};
  8630. g.hr.resolve=function(d){return new g.hr(new x7(function(q,T){d instanceof g.hr?d.then(q,T):q(d)}))};
  8631. g.hr.reject=function(d){return new g.hr(new x7(function(q,T){T(d)}))};
  8632. g.hr.prototype.then=function(d,q){var T=this,Y=d!=null?d:xKX,e=q!=null?q:RN7;return new g.hr(new x7(function(U,b){T.state.status==="PENDING"?(T.G.push(function(){y_I(T,T,Y,U,b)}),T.U.push(function(){hNN(T,T,e,U,b)})):T.state.status==="FULFILLED"?y_I(T,T,Y,U,b):T.state.status==="REJECTED"&&hNN(T,T,e,U,b)}))};
  8633. g.hr.prototype.catch=function(d){return this.then(void 0,d)};g.Q=j1Y.prototype;g.Q.add=function(d,q,T){return g.Ar(this,[d],{mode:"readwrite",sM:!0},function(Y){return Y.objectStore(d).add(q,T)})};
  8634. g.Q.clear=function(d){return g.Ar(this,[d],{mode:"readwrite",sM:!0},function(q){return q.objectStore(d).clear()})};
  8635. g.Q.close=function(){this.G.close();var d;((d=this.options)==null?0:d.closed)&&this.options.closed()};
  8636. g.Q.count=function(d,q){return g.Ar(this,[d],{mode:"readonly",sM:!0},function(T){return T.objectStore(d).count(q)})};
  8637. g.Q.delete=function(d,q){return g.Ar(this,[d],{mode:"readwrite",sM:!0},function(T){return T.objectStore(d).delete(q)})};
  8638. g.Q.get=function(d,q){return g.Ar(this,[d],{mode:"readonly",sM:!0},function(T){return T.objectStore(d).get(q)})};
  8639. g.Q.getAll=function(d,q,T){return g.Ar(this,[d],{mode:"readonly",sM:!0},function(Y){return Y.objectStore(d).getAll(q,T)})};
  8640. g.Q.objectStoreNames=function(){return Array.from(this.G.objectStoreNames)};
  8641. g.Q.getName=function(){return this.G.name};
  8642. g.Q=E2.prototype;g.Q.add=function(d,q){return Qt(this.G.add(d,q))};
  8643. g.Q.autoIncrement=function(){return this.G.autoIncrement};
  8644. g.Q.clear=function(){return Qt(this.G.clear()).then(function(){})};
  8645. g.Q.count=function(d){return Qt(this.G.count(d))};
  8646. g.Q.delete=function(d){return d instanceof IDBKeyRange?Z9j(this,d):Qt(this.G.delete(d))};
  8647. g.Q.get=function(d){return Qt(this.G.get(d))};
  8648. g.Q.getAll=function(d,q){return"getAll"in IDBObjectStore.prototype?Qt(this.G.getAll(d,q)):O9f(this,d,q)};
  8649. g.Q.index=function(d){try{return new BWf(this.G.index(d))}catch(q){if(q instanceof Error&&q.name==="NotFoundError")throw new gO(d,this.G.name);throw q;}};
  8650. g.Q.getName=function(){return this.G.name};
  8651. g.Q.keyPath=function(){return this.G.keyPath};
  8652. O2.prototype.abort=function(){this.G.abort();this.U=!0;throw new g.s2("EXPLICIT_ABORT");};
  8653. O2.prototype.objectStore=function(d){d=this.G.objectStore(d);var q=this.j.get(d);q||(q=new E2(d),this.j.set(d,q));return q};
  8654. g.Q=BWf.prototype;g.Q.count=function(d){return Qt(this.G.count(d))};
  8655. g.Q.delete=function(d){return g.K7(this,{query:d},function(q){return q.delete().then(function(){return g.tr(q)})})};
  8656. g.Q.get=function(d){return Qt(this.G.get(d))};
  8657. g.Q.getAll=function(d,q){return"getAll"in IDBIndex.prototype?Qt(this.G.getAll(d,q)):KE1(this,d,q)};
  8658. g.Q.keyPath=function(){return this.G.keyPath};
  8659. g.Q.unique=function(){return this.G.unique};
  8660. Ga.prototype.delete=function(){return Qt(this.cursor.delete()).then(function(){})};
  8661. Ga.prototype.getValue=function(){return this.cursor.value};
  8662. Ga.prototype.update=function(d){return Qt(this.cursor.update(d))};k7.prototype.U=function(d,q,T){T=T===void 0?{}:T;return LEI(d,q,T)};
  8663. k7.prototype.delete=function(d){d=d===void 0?{}:d;return L7(this.name,d)};
  8664. k7.prototype.open=function(){function d(){var U,b,J,F,N,R,x,y,h,H;return g.G(function(a){switch(a.U){case 1:return b=(U=Error().stack)!=null?U:"",g.jD(a,2),g.B(a,T.U(T.name,T.options.version,e),4);case 4:for(var p=J=a.G,t=T.options,n=[],K=g.E(Object.keys(t.pw)),P=K.next();!P.done;P=K.next()){P=P.value;var w=t.pw[P],l=w.thg===void 0?Number.MAX_VALUE:w.thg;!(p.G.version>=w.JC)||p.G.version>=l||p.G.objectStoreNames.contains(P)||n.push(P)}F=n;if(F.length===0){a.tF(5);break}N=Object.keys(T.options.pw);
  8665. R=J.objectStoreNames();if(T.S<g.xA("ytidb_reopen_db_retries",0))return T.S++,J.close(),U2(new g.s2("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:T.name,expectedObjectStores:N,foundObjectStores:R})),a.return(d());if(!(T.T<g.xA("ytidb_remake_db_retries",1))){a.tF(6);break}T.T++;return g.B(a,T.delete(),7);case 7:return U2(new g.s2("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:T.name,expectedObjectStores:N,foundObjectStores:R})),a.return(d());case 6:throw new $7(R,N);case 5:return a.return(J);case 2:x=
  8666. g.nN(a);if(x instanceof DOMException?x.name!=="VersionError":"DOMError"in self&&x instanceof DOMError?x.name!=="VersionError":!(x instanceof Object&&"message"in x)||x.message!=="An attempt was made to open a database using a lower version than the existing version."){a.tF(8);break}return g.B(a,T.U(T.name,void 0,Object.assign({},e,{upgrade:void 0})),9);case 9:y=a.G;h=y.G.version;if(T.options.version!==void 0&&h>T.options.version+1)throw y.close(),T.j=!1,khj(T,h);return a.return(y);case 8:throw q(),
  8667. x instanceof Error&&!g.RD("ytidb_async_stack_killswitch")&&(x.stack=x.stack+"\n"+b.substring(b.indexOf("\n")+1)),Nw(x,T.name,"",(H=T.options.version)!=null?H:-1);}})}
  8668. function q(){T.G===Y&&(T.G=void 0)}
  8669. var T=this;if(!this.j)throw khj(this);if(this.G)return this.G;var Y,e={blocking:function(U){U.close()},
  8670. closed:q,bjO:q,upgrade:this.options.upgrade};return this.G=Y=d()};var Wj=new k7("YtIdbMeta",{pw:{databases:{JC:1}},upgrade:function(d,q){q(1)&&g.jF(d,"databases",{keyPath:"actualName"})}});var f7,wO=new function(){}(new function(){});new g.sq;g.M(IJ,k7);IJ.prototype.U=function(d,q,T){T=T===void 0?{}:T;return(this.options.shared?i9_:zN7)(d,q,Object.assign({},T))};
  8671. IJ.prototype.delete=function(d){d=d===void 0?{}:d;return(this.options.shared?l6Q:I6g)(this.name,d)};var EER={},oM1=g.mY("ytGcfConfig",{pw:(EER.coldConfigStore={JC:1},EER.hotConfigStore={JC:1},EER),shared:!1,upgrade:function(d,q){q(1)&&(g.n7(g.jF(d,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.n7(g.jF(d,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
  8672. version:1});g.M(lR,g.W);lR.prototype.ir=function(){for(var d=g.E(this.U),q=d.next();!q.done;q=d.next()){var T=this.G;q=T.indexOf(q.value);q>=0&&T.splice(q,1)}this.U.length=0;g.W.prototype.ir.call(this)};TN.prototype.Lw=function(d){this.hotHashData=d;g.Vf("yt.gcf.config.hotHashData",this.hotHashData||null)};var jrc=typeof TextEncoder!=="undefined"?new TextEncoder:null,urf=jrc?function(d){return jrc.encode(d)}:function(d){d=g.ac(d);
  8673. for(var q=new Uint8Array(d.length),T=0;T<q.length;T++)q[T]=d[T];return q};var $z2={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},FLD={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};JL.prototype.VH=function(){return{version:this.version,args:this.args}};sg.prototype.toString=function(){return this.topic};var avR=g.qx("ytPubsub2Pubsub2Instance")||new g.Mg;g.Mg.prototype.subscribe=g.Mg.prototype.subscribe;g.Mg.prototype.unsubscribeByKey=g.Mg.prototype.Br;g.Mg.prototype.publish=g.Mg.prototype.publish;g.Mg.prototype.clear=g.Mg.prototype.clear;g.Vf("ytPubsub2Pubsub2Instance",avR);var F7=g.qx("ytPubsub2Pubsub2SubscribedKeys")||{};g.Vf("ytPubsub2Pubsub2SubscribedKeys",F7);var Nz=g.qx("ytPubsub2Pubsub2TopicToKeys")||{};g.Vf("ytPubsub2Pubsub2TopicToKeys",Nz);var Zv1=g.qx("ytPubsub2Pubsub2IsAsync")||{};
  8674. g.Vf("ytPubsub2Pubsub2IsAsync",Zv1);g.Vf("ytPubsub2Pubsub2SkipSubKey",null);var yd=void 0,xL=void 0;var PMf=g.xA("max_body_size_to_compress",5E5),W$f=g.xA("min_body_size_to_compress",500),Mz=!0,aR=0,jT=0,DgQ=g.xA("compression_performance_threshold_lr",250),w7I=g.xA("slow_compressions_before_abandon_count",4),HW=!1,Qd=new Map,cW=1,CM_=!0;g.Q=p4.prototype;g.Q.writeThenSend=function(d,q){var T=this;q=q===void 0?{}:q;if(AL(this)&&this.G){var Y={url:d,options:q,timestamp:this.now(),status:"NEW",sendCount:0};this.Fn.set(Y,this.gA).then(function(e){Y.id=e;T.hk.YL()&&T.A9(Y)}).catch(function(e){T.A9(Y);
  8675. Zd(T,e)})}else this.sendFn(d,q)};
  8676. g.Q.sendThenWrite=function(d,q,T){var Y=this;q=q===void 0?{}:q;if(AL(this)&&this.G){var e={url:d,options:q,timestamp:this.now(),status:"NEW",sendCount:0};this.Wv&&this.Wv("nwl_skip_retry")&&(e.skipRetry=T);if(this.hk.YL()||this.Wv&&this.Wv("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var U=q.onError?q.onError:function(){};
  8677. q.onError=function(b,J){return g.G(function(F){if(F.U==1)return g.B(F,Y.Fn.set(e,Y.gA).catch(function(N){Zd(Y,N)}),2);
  8678. U(b,J);g.E6(F)})}}this.sendFn(d,q,e.skipRetry)}else this.Fn.set(e,this.gA).catch(function(b){Y.sendFn(d,q,e.skipRetry);
  8679. Zd(Y,b)})}else T=this.Wv&&this.Wv("nwl_skip_retry")&&T,this.sendFn(d,q,T)};
  8680. g.Q.sendAndWrite=function(d,q){var T=this;q=q===void 0?{}:q;if(AL(this)&&this.G){var Y={url:d,options:q,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,U=q.onSuccess?q.onSuccess:function(){};
  8681. Y.options.onSuccess=function(b,J){Y.id!==void 0?T.Fn.uZ(Y.id,T.gA):e=!0;T.hk.m8&&T.Wv&&T.Wv("vss_network_hint")&&T.hk.m8(!0);U(b,J)};
  8682. this.sendFn(Y.url,Y.options,void 0,!0);this.Fn.set(Y,this.gA).then(function(b){Y.id=b;e&&T.Fn.uZ(Y.id,T.gA)}).catch(function(b){Zd(T,b)})}else this.sendFn(d,q,void 0,!0)};
  8683. g.Q.A4=function(){var d=this;if(!AL(this))throw Error("IndexedDB is not supported: throttleSend");this.U||(this.U=this.PO.DE(function(){var q;return g.G(function(T){if(T.U==1)return g.B(T,d.Fn.hj("NEW",d.gA),2);if(T.U!=3)return q=T.G,q?g.B(T,d.A9(q),3):(d.pu(),T.return());d.U&&(d.U=0,d.A4());g.E6(T)})},this.hZ))};
  8684. g.Q.pu=function(){this.PO.Qt(this.U);this.U=0};
  8685. g.Q.A9=function(d){var q=this,T;return g.G(function(Y){switch(Y.U){case 1:if(!AL(q))throw Error("IndexedDB is not supported: immediateSend");if(d.id===void 0){Y.tF(2);break}return g.B(Y,q.Fn.Oz(d.id,q.gA),3);case 3:(T=Y.G)||q.fM(Error("The request cannot be found in the database."));case 2:if(q.eL(d,q.iM)){Y.tF(4);break}q.fM(Error("Networkless Logging: Stored logs request expired age limit"));if(d.id===void 0){Y.tF(5);break}return g.B(Y,q.Fn.uZ(d.id,q.gA),5);case 5:return Y.return();case 4:d.skipRetry||
  8686. (d=SAX(q,d));if(!d){Y.tF(0);break}if(!d.skipRetry||d.id===void 0){Y.tF(8);break}return g.B(Y,q.Fn.uZ(d.id,q.gA),8);case 8:q.sendFn(d.url,d.options,!!d.skipRetry),g.E6(Y)}})};
  8687. g.Q.eL=function(d,q){d=d.timestamp;return this.now()-d>=q?!1:!0};
  8688. g.Q.FA=function(){var d=this;if(!AL(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Fn.hj("QUEUED",this.gA).then(function(q){q&&!d.eL(q,d.Pw)?d.PO.DE(function(){return g.G(function(T){if(T.U==1)return q.id===void 0?T.tF(2):g.B(T,d.Fn.p_(q.id,d.gA),2);d.FA();g.E6(T)})}):d.hk.YL()&&d.A4()})};var Og;var QDj={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,
  8689. 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,
  8690. 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,
  8691. 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,
  8692. 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,
  8693. 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,
  8694. 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,
  8695. vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,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,
  8696. mbsConnectionInitiated:138,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,
  8697. kidsParentalGateTracking:168,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,
  8698. 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,
  8699. 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,
  8700. 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,
  8701. 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,
  8702. 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,
  8703. 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,
  8704. 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,
  8705. 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,
  8706. 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,
  8707. 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,
  8708. 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,
  8709. 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,
  8710. mdeQosEvent:510,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,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
  8711. mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,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,
  8712. cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,
  8713. startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,
  8714. keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
  8715. adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525};var A4Q={},Uv2=g.mY("ServiceWorkerLogsDatabase",{pw:(A4Q.SWHealthLog={JC:1},A4Q),shared:!0,upgrade:function(d,q){q(1)&&g.n7(g.jF(d,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
  8716. version:1});var tL={},g51=0;var BW;GN.prototype.requestComplete=function(d,q){q&&(this.U=!0);d=this.removeParams(d);this.G.get(d)||this.G.set(d,q)};
  8717. GN.prototype.isEndpointCFR=function(d){d=this.removeParams(d);return(d=this.G.get(d))?!1:d===!1&&this.U?!0:null};
  8718. GN.prototype.removeParams=function(d){return d.split("?")[0]};
  8719. GN.prototype.removeParams=GN.prototype.removeParams;GN.prototype.isEndpointCFR=GN.prototype.isEndpointCFR;GN.prototype.requestComplete=GN.prototype.requestComplete;GN.getInstance=L4;g.M(kL,g.$1);g.Q=kL.prototype;g.Q.YL=function(){return this.G.YL()};
  8720. g.Q.m8=function(d){this.G.G=d};
  8721. g.Q.HI=function(){var d=window.navigator.onLine;return d===void 0?!0:d};
  8722. g.Q.lU=function(){this.U=!0};
  8723. g.Q.listen=function(d,q){return this.G.listen(d,q)};
  8724. g.Q.Zd=function(d){d=Bh(this.G,d);d.then(function(q){g.RD("use_cfr_monitor")&&L4().requestComplete("generate_204",q)});
  8725. return d};
  8726. kL.prototype.sendNetworkCheckRequest=kL.prototype.Zd;kL.prototype.listen=kL.prototype.listen;kL.prototype.enableErrorFlushing=kL.prototype.lU;kL.prototype.getWindowStatus=kL.prototype.HI;kL.prototype.networkStatusHint=kL.prototype.m8;kL.prototype.isNetworkAvailable=kL.prototype.YL;kL.getInstance=RY6;g.M(g.PW,g.$1);g.PW.prototype.YL=function(){var d=g.qx("yt.networkStatusManager.instance.isNetworkAvailable");return d?d.bind(this.U)():!0};
  8727. g.PW.prototype.m8=function(d){var q=g.qx("yt.networkStatusManager.instance.networkStatusHint").bind(this.U);q&&q(d)};
  8728. g.PW.prototype.Zd=function(d){var q=this,T;return g.G(function(Y){T=g.qx("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(q.U);return g.RD("skip_network_check_if_cfr")&&L4().isEndpointCFR("generate_204")?Y.return(new Promise(function(e){var U;q.m8(((U=window.navigator)==null?void 0:U.onLine)||!0);e(q.YL())})):T?Y.return(T(d)):Y.return(!0)})};var WW;g.M(C4,p4);C4.prototype.writeThenSend=function(d,q){q||(q={});q=Dd(d,q);g.Ds()||(this.G=!1);p4.prototype.writeThenSend.call(this,d,q)};
  8729. C4.prototype.sendThenWrite=function(d,q,T){q||(q={});q=Dd(d,q);g.Ds()||(this.G=!1);p4.prototype.sendThenWrite.call(this,d,q,T)};
  8730. C4.prototype.sendAndWrite=function(d,q){q||(q={});q=Dd(d,q);g.Ds()||(this.G=!1);p4.prototype.sendAndWrite.call(this,d,q)};
  8731. C4.prototype.awaitInitialization=function(){return this.j.promise};var QE6=g.oQ.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Vf("ytNetworklessLoggingInitializationOptions",QE6);g.wM.prototype.isReady=function(){!this.config_&&xgg()&&(this.config_=g.Ug());return!!this.config_};var pBQ,iI,mL;pBQ=g.oQ.ytPubsubPubsubInstance||new g.Mg;iI=g.oQ.ytPubsubPubsubSubscribedKeys||{};mL=g.oQ.ytPubsubPubsubTopicToKeys||{};g.IR=g.oQ.ytPubsubPubsubIsSynchronous||{};g.Mg.prototype.subscribe=g.Mg.prototype.subscribe;g.Mg.prototype.unsubscribeByKey=g.Mg.prototype.Br;g.Mg.prototype.publish=g.Mg.prototype.publish;g.Mg.prototype.clear=g.Mg.prototype.clear;g.Vf("ytPubsubPubsubInstance",pBQ);g.Vf("ytPubsubPubsubTopicToKeys",mL);g.Vf("ytPubsubPubsubIsSynchronous",g.IR);
  8732. g.Vf("ytPubsubPubsubSubscribedKeys",iI);var A1X={};g.M(J$,g.W);J$.prototype.append=function(d){if(!this.U)throw Error("This does not support the append operation");d=d.tA();this.tA().appendChild(d)};
  8733. g.M($y,J$);$y.prototype.tA=function(){return this.G};g.M(g4,g.W);g4.prototype.onTouchStart=function(d){this.L=!0;this.U=d.touches.length;this.G.isActive()&&(this.G.stop(),this.S=!0);d=d.touches;this.X=OsY(this,d)||d.length!=1;var q=d.item(0);this.X||!q?this.K=this.B=Infinity:(this.B=q.clientX,this.K=q.clientY);for(q=this.j.length=0;q<d.length;q++){var T=d.item(q);this.j.push(T.identifier)}};
  8734. g4.prototype.onTouchMove=function(d){d=d.changedTouches.item(0);var q;if(q=Ln()){q=g.k9();var T="";if(HB6())T=/Windows (?:NT|Phone) ([0-9.]+)/,T=(q=T.exec(q))?q[1]:"0.0";else if(Ln())T=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,T=(q=T.exec(q))&&q[1].replace(/_/g,".");else if(kS())T=/Mac OS X ([0-9_.]+)/,T=(q=T.exec(q))?q[1].replace(/_/g,"."):"10";else if(B2(g.k9(),"KaiOS"))T=/(?:KaiOS)\/(\S+)/i,T=(q=T.exec(q))&&q[1];else if(h72())T=/Android\s+([^\);]+)(\)|;)/,T=(q=T.exec(q))&&q[1];else if(Kn()?Dm.platform===
  8735. "Chrome OS":fh("CrOS"))T=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,T=(q=T.exec(q))&&q[1];q=!(g.Lh(T||"",8)>=0)}if(q||d&&Math.pow(d.clientX-this.B,2)+Math.pow(d.clientY-this.K,2)>25)this.T=!0};
  8736. g4.prototype.onTouchEnd=function(d){var q=d.changedTouches;q&&this.L&&this.U==1&&!this.T&&!this.S&&!this.X&&OsY(this,q)&&(this.lr=d,this.G.start());this.U=d.touches.length;this.U===0&&(this.T=this.L=!1,this.j.length=0);this.S=!1};var FZ=Date.now().toString();var Hi={};var A$=Symbol("injectionDeps");M9.prototype.toString=function(){return"InjectionToken("+this.name+")"};
  8737. tW6.prototype.resolve=function(d){return d instanceof ci?pC(this,d.key,[],!0):pC(this,d,[])};var Z5;var nC=window;var KC=g.RD("web_enable_lifecycle_monitoring")&&r4()!==0,WR_=g.RD("web_enable_lifecycle_monitoring");LR2.prototype.cancel=function(){for(var d=g.E(this.G),q=d.next();!q.done;q=d.next())q=q.value,q.jobId===void 0||q.ID||this.scheduler.Qt(q.jobId),q.ID=!0;this.U.resolve()};g.Q=GT.prototype;g.Q.install=function(d){this.plugins.push(d);return this};
  8738. g.Q.uninstall=function(){var d=this;g.CN.apply(0,arguments).forEach(function(q){q=d.plugins.indexOf(q);q>-1&&d.plugins.splice(q,1)})};
  8739. g.Q.transition=function(d,q){var T=this;KC&&KRQ(this.state);var Y=this.transitions.find(function(U){return Array.isArray(U.from)?U.from.find(function(b){return b===T.state&&U.to===d}):U.from===T.state&&U.to===d});
  8740. if(Y){this.U&&(k26(this.U),this.U=void 0);CFg(this,d,q);this.state=d;KC&&t$(this.state);Y=Y.action.bind(this);var e=this.plugins.filter(function(U){return U[d]}).map(function(U){return U[d]});
  8741. Y(PF1(this,e),q)}else throw Error("no transition specified from "+this.state+" to "+d);};
  8742. g.Q.HzF=function(d){var q=g.CN.apply(1,arguments);g.IY();for(var T=g.E(d),Y=T.next(),e={};!Y.done;e={M$:void 0},Y=T.next())e.M$=Y.value,J_2(function(U){return function(){ky(U.M$.name);Wi(function(){return U.M$.callback.apply(U.M$,g.RQ(q))});
  8743. Pi(U.M$.name)}}(e))};
  8744. g.Q.s6x=function(d){var q=g.CN.apply(1,arguments),T,Y,e,U;return g.G(function(b){b.U==1&&(g.IY(),T=g.E(d),Y=T.next(),e={});if(b.U!=3){if(Y.done)return b.tF(0);e.T0=Y.value;e.SS=void 0;U=function(J){return function(){ky(J.T0.name);var F=Wi(function(){return J.T0.callback.apply(J.T0,g.RQ(q))});
  8745. Z4(F)?J.SS=g.RD("web_lifecycle_error_handling_killswitch")?F.then(function(){Pi(J.T0.name)}):F.then(function(){Pi(J.T0.name)},function(N){G2X(N);
  8746. Pi(J.T0.name)}):Pi(J.T0.name)}}(e);
  8747. J_2(U);return e.SS?g.B(b,e.SS,3):b.tF(3)}e={T0:void 0,SS:void 0};Y=T.next();return b.tF(2)})};
  8748. g.Q.F3=function(d){var q=g.CN.apply(1,arguments),T=this,Y=d.map(function(e){return{QB:function(){ky(e.name);Wi(function(){return e.callback.apply(e,g.RQ(q))});
  8749. Pi(e.name)},
  8750. priority:LC(T,e)}});
  8751. Y.length&&(this.U=new LR2(Y))};
  8752. g.U6.Object.defineProperties(GT.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var uy;g.M(CC,GT);CC.prototype.S=function(d,q){var T=this;this.G=g.zy(0,function(){T.currentState==="application_navigating"&&T.transition("none")},5E3);
  8753. d(q==null?void 0:q.event)};
  8754. CC.prototype.X=function(d,q){this.G&&(g.Gh.Qt(this.G),this.G=null);d(q==null?void 0:q.event)};var Fn=[];g.Vf("yt.logging.transport.getScrapedGelPayloads",function(){return Fn});D5.prototype.storePayload=function(d,q){d=w4(d);this.store[d]?this.store[d].push(q):(this.U={},this.store[d]=[q]);this.G++;g.RD("more_accurate_gel_parser")&&(q=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(q));return d};
  8755. D5.prototype.smartExtractMatchingEntries=function(d){if(!d.keys.length)return[];for(var q=zT(this,d.keys.splice(0,1)[0]),T=[],Y=0;Y<q.length;Y++)this.store[q[Y]]&&d.sizeLimit&&(this.store[q[Y]].length<=d.sizeLimit?(T.push.apply(T,g.RQ(this.store[q[Y]])),delete this.store[q[Y]]):T.push.apply(T,g.RQ(this.store[q[Y]].splice(0,d.sizeLimit))));this.G-=T.length;(d==null?0:d.sizeLimit)&&T.length<(d==null?void 0:d.sizeLimit)&&(d.sizeLimit-=T.length,T.push.apply(T,g.RQ(this.smartExtractMatchingEntries(d))));
  8756. return T};
  8757. D5.prototype.extractMatchingEntries=function(d){d=zT(this,d);for(var q=[],T=0;T<d.length;T++)this.store[d[T]]&&(q.push.apply(q,g.RQ(this.store[d[T]])),delete this.store[d[T]]);this.G-=q.length;return q};
  8758. D5.prototype.getSequenceCount=function(d){d=zT(this,d);for(var q=0,T=0;T<d.length;T++){var Y=void 0;q+=((Y=this.store[d[T]])==null?void 0:Y.length)||0}return q};
  8759. D5.prototype.getSequenceCount=D5.prototype.getSequenceCount;D5.prototype.extractMatchingEntries=D5.prototype.extractMatchingEntries;D5.prototype.smartExtractMatchingEntries=D5.prototype.smartExtractMatchingEntries;D5.prototype.storePayload=D5.prototype.storePayload;var bZ6=g.xA("initial_gel_batch_timeout",2E3),U4_=g.xA("gel_queue_timeout_max_ms",6E4),XLj=g.xA("gel_min_batch_size",5),di=void 0,HZ1=new iy,hBj=new iy,eBN=new iy,Y3Q=new iy,Tp,Jt=!0,gi=1,mI=new Map,bn=g.oQ.ytLoggingTransportTokensToCttTargetIds_||{};g.Vf("ytLoggingTransportTokensToCttTargetIds_",bn);var UL=g.oQ.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.Vf("ytLoggingTransportTokensToJspbCttTargetIds_",UL);var vi={},DvY=!1;var Nh=g.oQ.ytLoggingGelSequenceIdObj_||{};g.Vf("ytLoggingGelSequenceIdObj_",Nh);var Ve6=[];var teg,By=g.oQ.ytLoggingDocDocumentNonce_;By||(By=g.RC(16),g.Vf("ytLoggingDocDocumentNonce_",By));teg=By;var OZf={Wi:0,E1v:1,kNv:2,zQ:3,oqw:4,g65:5,Rxv:6,SHARE:7,tHw:8,vlO:9,e0U:10,C9r:11,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",10:"UNPLUGGED_BROWSE",11:"PICTURE_IN_PICTURE"};var cd_=1;g.Q=xz.prototype;g.Q.getAsJson=function(){var d={};this.G.trackingParams!==void 0?d.trackingParams=this.G.trackingParams:(d.veType=this.G.veType,this.G.veCounter!==void 0&&(d.veCounter=this.G.veCounter),this.G.elementIndex!==void 0&&(d.elementIndex=this.G.elementIndex));this.G.dataElement!==void 0&&(d.dataElement=this.G.dataElement.getAsJson());this.G.youtubeData!==void 0&&(d.youtubeData=this.G.youtubeData);this.G.isCounterfactual&&(d.isCounterfactual=!0);return d};
  8760. g.Q.getAsJspb=function(){var d=new A1;this.G.trackingParams!==void 0?d.setTrackingParams(this.G.trackingParams):(this.G.veType!==void 0&&VX(d,2,Fe(this.G.veType)),this.G.veCounter!==void 0&&VX(d,6,Fe(this.G.veCounter)),this.G.elementIndex!==void 0&&VX(d,3,Fe(this.G.elementIndex)),this.G.isCounterfactual&&VX(d,5,JA(!0)));if(this.G.dataElement!==void 0){var q=this.G.dataElement.getAsJspb();Qw(d,A1,7,q)}this.G.youtubeData!==void 0&&Qw(d,DL7,8,this.G.jspbYoutubeData);return d};
  8761. g.Q.toString=function(){return JSON.stringify(this.getAsJson())};
  8762. g.Q.isClientVe=function(){return!this.G.trackingParams&&!!this.G.veType};
  8763. g.Q.getLoggingDirectives=function(){return this.G.loggingDirectives};g.Vf("yt_logging_screen.getRootVeType",AdD);g.Vf("yt_logging_screen.getCurrentCsn",g.Q0);g.Vf("yt_logging_screen.getCttAuthInfo",Mh);g.Vf("yt_logging_screen.setCurrentScreen",B77);var L9_="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var Iqf=[{Sk:function(d){return"Cannot read property '"+d.key+"'"},
  8764. lH:{Error:[{xq:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{xq:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{xq:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{xq:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,
  8765. groups:["value","key"]},{xq:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{xq:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{xq:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{Sk:function(d){return"Cannot call '"+d.key+"'"},
  8766. lH:{TypeError:[{xq:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{xq:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{xq:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{xq:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{xq:/\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"]},
  8767. {xq:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{Sk:function(d){return d.key+" is not defined"},
  8768. lH:{ReferenceError:[{xq:/(.*) is not defined/,groups:["key"]},{xq:/Can't find variable: (.*)/,groups:["key"]}]}}];var uqN={td:[],EQ:[{callback:ktD,weight:500},{callback:PbD,weight:500}]};var EL;var n1=new g.Mg;var m4g=new Set,fq6=0,vAf=0,lqN=0,iZ_=[],zBN=[],oAN=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var qdQ=new g.Mv("parallelCommand");var eT1=new g.Mv("performOnceCommand");var Yd6=new g.Mv("serialCommand");var tt=void 0;t_({},"sgPmTd");t_(null,"jypsq");t_(null,"mWiOof");g.M(Gp,JL);var p72=new sg("screen-created",Gp),Sn=[],bWg=$sQ,ln=0,kz=new Map,Pa=new Map,Wa=new Map;g.Rs(g.YP,g.W);g.Q=g.YP.prototype;g.Q.subscribe=function(d,q,T){return this.JF()?0:this.Y1.subscribe(d,q,T)};
  8769. g.Q.unsubscribe=function(d,q,T){return this.JF()?!1:this.Y1.unsubscribe(d,q,T)};
  8770. g.Q.Br=function(d){return this.JF()?!1:this.Y1.Br(d)};
  8771. g.Q.publish=function(d,q){return this.JF()?!1:this.Y1.publish.apply(this.Y1,arguments)};
  8772. g.Q.Ts=function(d,q){for(var T in d)this.subscribe(T,d[T],q)};
  8773. g.Q.jC=function(d,q){for(var T in d)this.unsubscribe(T,d[T],q)};var jGg=16/9,K8=[.25,.5,.75,1,1.25,1.5,1.75,2],ZTj=K8.concat([3,4,5,6,7,8,9,10,15]),OTl=K8.concat([2.5,3,3.5,4]),nEI=K8.concat([2.5,3]);var gOQ=1;g.M(g.Ux,g.W);g.Q=g.Ux.prototype;
  8774. g.Q.createElement=function(d,q){q=q||d.Y==="svg";var T=d.D,Y=d.hF;if(q){var e=document.createElementNS("http://www.w3.org/2000/svg",d.Y);g.AJ&&(d.Z||(d.Z={}),d.Z.focusable="false")}else e=g.FE(d.Y);if(T){if(T=bE(this,e,"class",T))XA(this,e,"class",T),this.q5[T]=e}else if(Y){T=g.E(Y);for(var U=T.next();!U.done;U=T.next())this.q5[U.value]=e;XA(this,e,"class",Y.join(" "))}Y=d.j5;T=d.V;if(Y)q=bE(this,e,"child",Y),q!==void 0&&e.appendChild(g.NQ(q));else if(T)for(Y=0,T=g.E(T),U=T.next();!U.done;U=T.next())if(U=
  8775. U.value)if(typeof U==="string")U=bE(this,e,"child",U),U!=null&&e.appendChild(g.NQ(U));else if(U.element)e.appendChild(U.element);else{var b=U;U=this.createElement(b,q);e.appendChild(U);b.Kn&&(b=ex(),U.id=b,U=document.createElementNS("http://www.w3.org/2000/svg","use"),U.setAttribute("class","ytp-svg-shadow"),U.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+b),yp(e,U,Y++))}if(d=d.Z)for(q=e,Y=g.E(Object.keys(d)),T=Y.next();!T.done;T=Y.next())T=T.value,U=d[T],XA(this,q,T,typeof U==="string"?
  8776. bE(this,q,T,U):U);return e};
  8777. g.Q.Qv=function(d){return this.q5[d]};
  8778. g.Q.IU=function(d,q){typeof q==="number"?yp(d,this.element,q):d.appendChild(this.element)};
  8779. g.Q.detach=function(){g.h4(this.element)};
  8780. g.Q.update=function(d){for(var q=g.E(Object.keys(d)),T=q.next();!T.done;T=q.next())T=T.value,this.updateValue(T,d[T])};
  8781. g.Q.updateValue=function(d,q){(d=this.XF["{{"+d+"}}"])&&XA(this,d[0],d[1],q)};
  8782. g.Q.ir=function(){this.q5={};this.XF={};this.detach();g.W.prototype.ir.call(this)};g.M(g.f,g.Ux);g.Q=g.f.prototype;g.Q.A1=function(d,q){this.updateValue(q||"content",d)};
  8783. g.Q.show=function(){this.PF||(g.Dv(this.element,"display",""),this.PF=!0)};
  8784. g.Q.hide=function(){this.PF&&(g.Dv(this.element,"display","none"),this.PF=!1)};
  8785. g.Q.OM=function(d){d?this.show():this.hide()};
  8786. g.Q.N5=function(d){this.S=d};
  8787. g.Q.listen=function(d,q,T){return this.W(this.element,d,q,T)};
  8788. g.Q.W=function(d,q,T,Y){T=(0,g.sI)(T,Y||this);Y={target:d,type:q,listener:T};this.listeners.push(Y);d.addEventListener(q,T);return Y};
  8789. g.Q.t1=function(d){var q=this;this.listeners.forEach(function(T,Y){T===d&&(T=q.listeners.splice(Y,1)[0],T.target.removeEventListener(T.type,T.listener))})};
  8790. g.Q.focus=function(){this.element.focus()};
  8791. g.Q.ir=function(){for(;this.listeners.length;){var d=this.listeners.pop();d&&d.target.removeEventListener(d.type,d.listener)}g.Ux.prototype.ir.call(this)};g.M(g.Ji,g.f);g.Ji.prototype.subscribe=function(d,q,T){return this.AF.subscribe(d,q,T)};
  8792. g.Ji.prototype.unsubscribe=function(d,q,T){return this.AF.unsubscribe(d,q,T)};
  8793. g.Ji.prototype.Br=function(d){return this.AF.Br(d)};
  8794. g.Ji.prototype.publish=function(d){return this.AF.publish.apply(this.AF,[d].concat(g.RQ(g.CN.apply(1,arguments))))};var r4c=new WeakSet;g.M(sx,g.Ji);g.Q=sx.prototype;g.Q.bind=function(d){this.xx||d.renderer&&this.init(d.id,d.renderer,{},d);return Promise.resolve()};
  8795. g.Q.init=function(d,q,T){this.xx=d;this.element.setAttribute("id",this.xx);this.wO&&g.d9(this.element,this.wO);this.lr=q&&q.adRendererCommands;this.dO=q.interaction;var Y;((Y=this.dO)==null?0:Y.onTap)&&g.d9(this.element,"ytp-ad-component--clickable");this.macros=T;this.B=q.trackingParams||null;var e,U;this.L=(U=(e=g.D(q.rendererContext,kPL))==null?void 0:e.loggingDirectives)!=null?U:q.loggingDirectives;this.B!=null?this.createServerVe(this.element,this.B):this.L&&(d=this.element,q=this.L,this.api.createServerVe(d,
  8796. this,!0),this.api.setTrackingParams(d,q.trackingParams||null))};
  8797. g.Q.clear=function(){};
  8798. g.Q.hide=function(){g.Ji.prototype.hide.call(this);(this.B!=null||this.L)&&this.logVisibility(this.element,!1)};
  8799. g.Q.show=function(){g.Ji.prototype.show.call(this);if(!this.fn){this.fn=!0;var d=this.lr&&this.lr.impressionCommand,q,T=(q=this.dO)==null?void 0:q.onFirstVisible;d?this.xm(d):T&&(d=Ba(T))&&this.xm(d)}(this.B!=null||this.L)&&this.logVisibility(this.element,!0)};
  8800. g.Q.onClick=function(d){if((this.B||this.L)&&!r4c.has(d)){var q=this.element;this.api.hasVe(q)&&this.PF&&this.api.logClick(q,this.interactionLoggingClientData);r4c.add(d)}var T=this.lr&&this.lr.clickCommand,Y;q=(Y=this.dO)==null?void 0:Y.onTap;if(T)q=this.K4(T),this.xm(q);else{if(Y=q)a:{Y=this.element;d=d.composedPath();d=g.E(d);for(T=d.next();!T.done;T=d.next()){T=T.value;if(T===Y)break;if(T.className.indexOf("ytp-ad-component--clickable")>=0){Y=!1;break a}}Y=!0}Y&&(q=Ba(q))&&this.xm(q)}};
  8801. g.Q.K4=function(d){return d};
  8802. g.Q.onTouchStart=function(d){this.yv.onTouchStart(d)};
  8803. g.Q.onTouchMove=function(d){this.yv.onTouchMove(d)};
  8804. g.Q.onTouchEnd=function(d){if(this.yv)this.yv.onTouchEnd(d)};
  8805. g.Q.xm=function(d){this.layoutId?this.Nk.executeCommand(d,this.layoutId):(d=new g.CW("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.Zz(d))};
  8806. g.Q.createServerVe=function(d,q){this.api.createServerVe(d,this);this.api.setTrackingParams(d,q)};
  8807. g.Q.logVisibility=function(d,q){this.api.hasVe(d)&&this.api.logVisibility(d,q,this.interactionLoggingClientData)};
  8808. g.Q.ir=function(){this.clear(null);this.t1(this.kx);for(var d=g.E(this.rO),q=d.next();!q.done;q=d.next())this.t1(q.value);g.Ji.prototype.ir.call(this)};g.M(nM,sx);
  8809. nM.prototype.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);this.G=q;if(q.text==null&&q.icon==null)g.OL(Error("ButtonRenderer did not have text or an icon set."));else{switch(q.style||null){case "STYLE_UNKNOWN":d="ytp-ad-button-link";break;default:d=null}d!=null&&g.d9(this.element,d);q.text!=null&&(d=g.gx(q.text),g.nh(d)||(this.element.setAttribute("aria-label",d),this.j=new g.Ji({Y:"span",D:"ytp-ad-button-text",j5:d}),g.C(this,this.j),this.j.IU(this.element)));q.accessibilityData&&q.accessibilityData.accessibilityData&&
  8810. q.accessibilityData.accessibilityData.label&&!g.nh(q.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",q.accessibilityData.accessibilityData.label);q.icon!=null&&(q=Ox(q.icon,this.T),q!=null&&(this.U=new g.Ji({Y:"span",D:"ytp-ad-button-icon",V:[q]}),g.C(this,this.U)),this.X?yp(this.element,this.U.element,0):this.U.IU(this.element))}};
  8811. nM.prototype.clear=function(){this.hide()};
  8812. nM.prototype.onClick=function(d){sx.prototype.onClick.call(this,d);d=g.E(uHn(this));for(var q=d.next();!q.done;q=d.next())q=q.value,this.layoutId?this.Nk.executeCommand(q,this.layoutId):g.Zz(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.M(rx,g.W);rx.prototype.ir=function(){this.U&&g.hB(this.U);this.G.clear();ti=null;g.W.prototype.ir.call(this)};
  8813. rx.prototype.register=function(d,q){q&&this.G.set(d,q)};
  8814. var ti=null;g.M(GW,sx);
  8815. GW.prototype.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);d=q.hoverText||null;q=q.button&&g.D(q.button,g.q6)||null;q==null?g.Zz(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new nM(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,void 0,void 0,void 0,void 0,this.j),g.C(this,this.button),this.button.init(qP("button"),q,this.macros),d&&this.button.element.setAttribute("aria-label",g.gx(d)),this.button.IU(this.element),this.K&&!g.V5(this.button.element,
  8816. "ytp-ad-clickable")&&g.d9(this.button.element,"ytp-ad-clickable"),this.j&&g.d9(this.button.element,"ytp-ad-hover-text-button--clean-player"),d&&(this.U=new g.Ji({Y:"div",D:"ytp-ad-hover-text-container"}),this.X&&(q=new g.Ji({Y:"div",D:"ytp-ad-hover-text-callout"}),q.IU(this.U.element),g.C(this,q)),g.C(this,this.U),this.U.IU(this.element),q=Bk(d),yp(this.U.element,q,0)),this.show())};
  8817. GW.prototype.hide=function(){this.button&&this.button.hide();this.U&&this.U.hide();sx.prototype.hide.call(this)};
  8818. GW.prototype.show=function(){this.button&&this.button.show();sx.prototype.show.call(this)};g.M(kP,sx);
  8819. kP.prototype.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);T=(d=q.thumbnail)&&LM(d)||"";g.nh(T)?Math.random()<.01&&g.OL(Error("Found AdImage without valid image URL")):(this.G?g.Dv(this.element,"backgroundImage","url("+T+")"):XE(this.element,{src:T}),XE(this.element,{alt:d&&d.accessibility&&d.accessibility.label||""}),q&&q.adRendererCommands&&q.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())};
  8820. kP.prototype.clear=function(){this.hide()};g.M(Pk,sx);g.Q=Pk.prototype;g.Q.hide=function(){sx.prototype.hide.call(this);this.j&&this.j.focus()};
  8821. g.Q.show=function(){this.j=document.activeElement;sx.prototype.show.call(this);this.T.focus()};
  8822. g.Q.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);this.U=q;q.dialogMessages||q.title!=null?q.confirmLabel==null?g.Zz(Error("ConfirmDialogRenderer.confirmLabel was not set.")):q.cancelLabel==null?g.Zz(Error("ConfirmDialogRenderer.cancelLabel was not set.")):zTf(this,q):g.Zz(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
  8823. g.Q.clear=function(){g.jX(this.G);this.hide()};
  8824. g.Q.c5=function(){this.hide()};
  8825. g.Q.Yu=function(){var d=this.U.cancelEndpoint;d&&(this.layoutId?this.Nk.executeCommand(d,this.layoutId):g.Zz(Error("Missing layoutId for confirm dialog.")));this.hide()};
  8826. g.Q.CT=function(){var d=this.U.confirmNavigationEndpoint||this.U.confirmEndpoint;d&&(this.layoutId?this.Nk.executeCommand(d,this.layoutId):g.Zz(Error("Missing layoutId for confirm dialog.")));this.hide()};g.M(Wk,sx);g.Q=Wk.prototype;
  8827. g.Q.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);this.j=q;if(q.defaultText==null&&q.defaultIcon==null)g.Zz(Error("ToggleButtonRenderer must have either text or icon set."));else if(q.defaultIcon==null&&q.toggledIcon!=null)g.Zz(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(q.style){switch(q.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":d="ytp-ad-toggle-button-default-style";break;default:d=null}d!=null&&g.d9(this.T,d)}d={};q.defaultText?
  8828. (T=g.gx(q.defaultText),g.nh(T)||(d.buttonText=T,this.api.C().experiments.Wv("a11y_h5_associate_survey_question")||this.G.setAttribute("aria-label",T),this.api.C().experiments.Wv("fix_h5_toggle_button_a11y")&&this.U.setAttribute("aria-label",T))):g.dv(this.z2,!1);q.defaultTooltip&&(d.tooltipText=q.defaultTooltip,this.G.hasAttribute("aria-label")||this.U.setAttribute("aria-label",q.defaultTooltip));q.defaultIcon?(T=Ox(q.defaultIcon),this.updateValue("untoggledIconTemplateSpec",T),q.toggledIcon?(this.UD=
  8829. !0,T=Ox(q.toggledIcon),this.updateValue("toggledIconTemplateSpec",T)):(g.dv(this.K,!0),g.dv(this.X,!1)),g.dv(this.G,!1)):g.dv(this.U,!1);g.FV(d)||this.update(d);q.isToggled&&(g.d9(this.T,"ytp-ad-toggle-button-toggled"),this.toggleButton(q.isToggled));CM(this);this.W(this.element,"change",this.yQ);this.show()}};
  8830. g.Q.onClick=function(d){this.rO.length>0&&(this.toggleButton(!this.isToggled()),this.yQ());sx.prototype.onClick.call(this,d)};
  8831. g.Q.yQ=function(){g.ep(this.T,"ytp-ad-toggle-button-toggled",this.isToggled());for(var d=g.E(iWj(this,this.isToggled())),q=d.next();!q.done;q=d.next())q=q.value,this.layoutId?this.Nk.executeCommand(q,this.layoutId):g.Zz(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);CM(this)};
  8832. g.Q.clear=function(){this.hide()};
  8833. g.Q.toggleButton=function(d){g.ep(this.T,"ytp-ad-toggle-button-toggled",d);this.G.checked=d;CM(this)};
  8834. g.Q.isToggled=function(){return this.G.checked};g.M(uE,cu);uE.prototype.S=function(d){if(Array.isArray(d)){d=g.E(d);for(var q=d.next();!q.done;q=d.next())q=q.value,q instanceof IsI&&this.j(q)}};g.M(Dy,sx);g.Q=Dy.prototype;g.Q.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);q.reasons?q.confirmLabel==null?g.Zz(Error("AdFeedbackRenderer.confirmLabel was not set.")):(q.cancelLabel==null&&g.OL(Error("AdFeedbackRenderer.cancelLabel was not set.")),q.title==null&&g.OL(Error("AdFeedbackRenderer.title was not set.")),vO2(this,q)):g.Zz(Error("AdFeedbackRenderer.reasons were not set."))};
  8835. g.Q.clear=function(){Hu(this.X);Hu(this.K);this.T.length=0;this.hide()};
  8836. g.Q.hide=function(){this.G&&this.G.hide();this.U&&this.U.hide();sx.prototype.hide.call(this);this.j&&this.j.focus()};
  8837. g.Q.show=function(){this.G&&this.G.show();this.U&&this.U.show();this.j=document.activeElement;sx.prototype.show.call(this);this.X.focus()};
  8838. g.Q.On=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()};
  8839. g.Q.tTD=function(){this.hide()};
  8840. wx.prototype.tA=function(){return this.G.element};
  8841. wx.prototype.getCommand=function(){return this.U};
  8842. wx.prototype.isChecked=function(){return this.j.checked};g.M(fM,Pk);fM.prototype.c5=function(d){Pk.prototype.c5.call(this,d);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
  8843. fM.prototype.Yu=function(d){Pk.prototype.Yu.call(this,d);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
  8844. fM.prototype.CT=function(d){Pk.prototype.CT.call(this,d);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.M(zW,sx);g.Q=zW.prototype;
  8845. g.Q.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);this.X=q;if(q.dialogMessage==null&&q.title==null)g.Zz(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{q.confirmLabel==null&&g.OL(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(d=q.closeOverlayRenderer&&g.D(q.closeOverlayRenderer,g.q6)||null)this.G=new nM(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),
  8846. g.C(this,this.G),this.G.init(qP("button"),d,this.macros),this.G.IU(this.element);q.title&&(d=g.gx(q.title),this.updateValue("title",d));if(q.adReasons)for(d=q.adReasons,T=0;T<d.length;T++){var Y=Bk(d[T]);if(!g.nh(Y.textContent)){var e=g_("LI");e.appendChild(Y);this.aU.appendChild(e)}}else g.dv(this.aU,!1);q.dialogMessage&&(d=Bk(q.dialogMessage,!0),this.qk.appendChild(d));q.confirmLabel&&(d=g.gx(q.confirmLabel),this.updateValue("confirmLabel",d));q.muteAdRenderer&&(q=g.D(q.muteAdRenderer,g.q6)||null)&&
  8847. (d=q.navigationEndpoint&&g.D(q.navigationEndpoint,uk_)||null,T=q.navigationEndpoint&&g.D(q.navigationEndpoint,nSL)||null,d==null&&T==null?g.OL(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(d?oO_(this,d):T&&VX2(this,T),this.j=new nM(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,["ytp-ad-info-dialog-mute-button"],"button",!0),g.C(this,this.j),this.j.init(qP("button"),q,this.macros),this.j.listen("click",
  8848. this.u95,this),this.j.IU(this.Fw)));dwN(this)}};
  8849. g.Q.clear=function(){Hu(this.K);this.hide()};
  8850. g.Q.hide=function(){this.U?this.U.hide():this.T&&this.T.hide();this.G&&this.G.hide();this.j&&this.j.hide();sx.prototype.hide.call(this);this.UD&&this.UD.focus()};
  8851. g.Q.show=function(){this.G&&this.G.show();this.j&&this.j.show();if(!this.RU){for(var d=g.E(this.X&&this.X.impressionEndpoints||[]),q=d.next();!q.done;q=d.next())q=q.value,this.layoutId?this.Nk.executeCommand(q,this.layoutId):g.Zz(Error("Missing layoutId for ad info dialog."));this.RU=!0}this.UD=document.activeElement;sx.prototype.show.call(this);this.K.focus()};
  8852. g.Q.QQ=function(){if(this.X&&this.X.confirmServiceEndpoint){var d=this.X.confirmServiceEndpoint;this.layoutId?this.Nk.executeCommand(d,this.layoutId):g.Zz(Error("Missing layoutId for ad info dialog."))}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.publish("d");this.hide()};
  8853. g.Q.u95=function(){var d=this.U?this.U:this.T;d&&!d.PF&&(this.hide(),d.show())};g.M(iE,GW);iE.prototype.init=function(d,q,T){GW.prototype.init.call(this,d,q,T);d=q.button&&g.D(q.button,g.q6)||null;d!=null&&(Uw7(this,d,T),this.show())};
  8854. iE.prototype.hide=function(){this.button&&this.button.hide();this.G&&this.G.hide();GW.prototype.hide.call(this)};
  8855. iE.prototype.show=function(){this.button&&this.button.show();GW.prototype.show.call(this)};
  8856. iE.prototype.clear=function(){this.hide()};g.M(Ih,sx);
  8857. Ih.prototype.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);this.G=q;this.isTemplated()||g.Qp(this.element,$P(this.G));if(q.backgroundImage&&(d=(d=q.backgroundImage.thumbnail)?LM(d):"",T=(T=this.api.getVideoData(1))&&T.fp,d&&T&&(this.element.style.backgroundImage="url("+d+")",this.element.style.backgroundSize="100%"),q.style&&q.style.adTextStyle))switch(q.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}(d=g.rt(q.targetId))&&this.element.setAttribute("data-tooltip-target-id",d);
  8858. q&&q.adRendererCommands&&q.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element");this.show()};
  8859. Ih.prototype.isTemplated=function(){return this.G.isTemplated||!1};
  8860. Ih.prototype.clear=function(){this.hide()};var NO2={seekableStart:0,seekableEnd:1,current:0};g.M(Sx,sx);Sx.prototype.clear=function(){this.dispose()};g.M(g.oh,g.W);g.Q=g.oh.prototype;g.Q.show=function(d){this.state!==1&&this.state!==2&&(this.state===4&&this.fR(),this.state===5?(this.element.show(),this.state=null,this.delay.stop(),this.G&&this.G()):this.element.PF||(V9(this,!0),this.state=1,d?this.delay.start(d):this.fR()))};
  8861. g.Q.hide=function(){this.state!==4&&(this.state===1||this.state===2?(this.element.hide(),this.state=null,this.delay.stop()):this.element.PF&&(V9(this,!0),this.state=4,this.delay.start(this.j)))};
  8862. g.Q.fR=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:V9(this,!1);this.state=3;this.delay.start(this.U);break;case 3:this.state=null;this.G&&this.G();break;case 4:this.element.hide();V9(this,!1);this.state=5;this.delay.start(0);break;case 5:if(this.state=null,this.onHidden)this.onHidden()}};
  8863. g.Q.stop=function(){for(;this.state!==null&&this.state!==5;)this.delay.stop(),this.fR()};
  8864. g.Q.ir=function(){this.element.JF()||this.element.element.removeAttribute("aria-hidden");g.W.prototype.ir.call(this)};g.M(ds,Sx);g.Q=ds.prototype;
  8865. g.Q.init=function(d,q,T){Sx.prototype.init.call(this,d,q,T);d=q.durationMilliseconds;typeof d==="number"&&d<0&&g.Zz(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+d));this.Bv&&(this.T?g.d9(this.U.element,"modern-countdown-next-to-thumbnail"):g.d9(this.U.element,"countdown-next-to-thumbnail"));d=q.durationMilliseconds;this.aU=d==null||d===0?this.G.F0():d;if(q.templatedCountdown)var Y=q.templatedCountdown.templatedAdText;else q.staticPreview&&(Y=q.staticPreview);
  8866. this.j.init(qP("ad-text"),Y,T);(Y=this.api.getVideoData(1))&&Y.fp&&q.thumbnail?this.X.init(qP("ad-image"),q.thumbnail,T):(this.z2.hide(),this.T&&this.Bv&&g.d9(this.j.element,"ytp-ad-preview-text-modern-postroll"))};
  8867. g.Q.clear=function(){this.hide()};
  8868. g.Q.hide=function(){this.U.hide();this.j.hide();this.X.hide();vk(this);Sx.prototype.hide.call(this)};
  8869. g.Q.show=function(){lE(this);this.U.show();this.j.show();this.X.show();Sx.prototype.show.call(this)};
  8870. g.Q.K3=function(){this.hide()};
  8871. g.Q.Ba=function(){if(this.G!=null){var d=this.G.getProgressState();d!=null&&d.current!=null&&(d=1E3*d.current,!this.qk&&d>=this.aU?(this.UD.hide(),this.qk=!0,this.publish("i")):this.j&&this.j.isTemplated()&&(d=Math.max(0,Math.ceil((this.aU-d)/1E3)),d!=this.Fw&&(mr(this.j,{TIME_REMAINING:String(d)}),this.Fw=d)))}};g.M(qY,Sx);g.Q=qY.prototype;
  8872. g.Q.init=function(d,q,T){Sx.prototype.init.call(this,d,q,T);if(q.image&&q.image.thumbnail)if(q.headline)if(q.description)if((d=q.actionButton&&g.D(q.actionButton,g.q6))&&d.navigationEndpoint){var Y=this.api.getVideoData(2);if(Y!=null)if(q.image&&q.image.thumbnail){var e=q.image.thumbnail.thumbnails;e!=null&&e.length>0&&g.nh(g.rt(e[0].url))&&(e[0].url=Y.profilePicture)}else g.OL(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.j.init(qP("ad-image"),q.image,T);this.X.init(qP("ad-text"),
  8873. q.headline,T);this.T.init(qP("ad-text"),q.description,T);this.U.init(qP("button"),d,T);T=C9(this.U.element);Wh(this.U.element,T+" This link opens in new tab");this.UD=d.navigationEndpoint;this.api.uB()||this.show();this.api.C().N("enable_larger_flyout_cta_on_desktop")&&(this.Qv("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.Qv("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.Qv("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"),
  8874. this.Qv("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.Qv("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.Qv("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.U.element.classList.add("ytp-flyout-cta-action-button-large"),this.U.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.Qv("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large"));
  8875. this.api.addEventListener("playerUnderlayVisibilityChange",this.Mi.bind(this));this.z2=q.startMs||0;lE(this)}else g.Zz(Error("FlyoutCtaRenderer has no valid action button."));else g.Zz(Error("FlyoutCtaRenderer has no description AdText."));else g.Zz(Error("FlyoutCtaRenderer has no headline AdText."));else g.OL(Error("FlyoutCtaRenderer has no image."))};
  8876. g.Q.onClick=function(d){Sx.prototype.onClick.call(this,d);this.api.pauseVideo();!g.HB(this.U.element,d.target)&&this.UD&&(this.layoutId?this.Nk.executeCommand(this.UD,this.layoutId):g.Zz(Error("Missing layoutId for flyout cta.")))};
  8877. g.Q.Ba=function(){if(this.G){var d=this.G.getProgressState();(d&&d.current||this.aU)&&1E3*d.current>=this.z2&&(vk(this),g.TR(this.element,"ytp-flyout-cta-inactive"),this.U.element.removeAttribute("tabIndex"))}};
  8878. g.Q.K3=function(){this.clear()};
  8879. g.Q.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Mi.bind(this))};
  8880. g.Q.show=function(){this.U&&this.U.show();Sx.prototype.show.call(this)};
  8881. g.Q.hide=function(){this.U&&this.U.hide();Sx.prototype.hide.call(this)};
  8882. g.Q.Mi=function(d){d=="hidden"?this.show():this.hide()};g.M(Tc,sx);g.Q=Tc.prototype;
  8883. g.Q.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);this.G=q;if(this.G.rectangle)for(d=this.G.likeButton&&g.D(this.G.likeButton,p8),q=this.G.dislikeButton&&g.D(this.G.dislikeButton,p8),this.j.init(qP("toggle-button"),d,T),this.U.init(qP("toggle-button"),q,T),this.W(this.element,"change",this.z9),this.T.show(100),this.show(),T=g.E(this.G&&this.G.impressionCommands||[]),d=T.next();!d.done;d=T.next())d=d.value,this.layoutId?this.Nk.executeCommand(d,this.layoutId):g.Zz(Error("Missing layoutId for instream user sentiment."))};
  8884. g.Q.clear=function(){this.hide()};
  8885. g.Q.hide=function(){this.j.hide();this.U.hide();sx.prototype.hide.call(this)};
  8886. g.Q.show=function(){this.j.show();this.U.show();sx.prototype.show.call(this)};
  8887. g.Q.z9=function(){t$7(this.element,"ytp-ad-instream-user-sentiment-selected");this.G.postMessageAction&&this.api.gO("onYtShowToast",this.G.postMessageAction);this.T.hide()};
  8888. g.Q.onClick=function(d){this.rO.length>0&&this.z9();sx.prototype.onClick.call(this,d)};g.M(Yo,g.W);g.Q=Yo.prototype;g.Q.ir=function(){this.reset();g.W.prototype.ir.call(this)};
  8889. g.Q.reset=function(){g.jX(this.T);this.X=!1;this.G&&this.G.stop();this.S.stop();this.j&&(this.j=!1,this.L.play())};
  8890. g.Q.start=function(){this.reset();this.T.W(this.U,"mouseover",this.rL,this);this.T.W(this.U,"mouseout",this.pE,this);this.lr&&(this.T.W(this.U,"focusin",this.rL,this),this.T.W(this.U,"focusout",this.pE,this));this.G?this.G.start():(this.X=this.j=!0,g.Dv(this.U,{opacity:this.K}))};
  8891. g.Q.rL=function(){this.j&&(this.j=!1,this.L.play());this.S.stop();this.G&&this.G.stop()};
  8892. g.Q.pE=function(){this.X?this.S.start():this.G&&this.G.start()};
  8893. g.Q.Sx=function(){this.j||(this.j=!0,this.B.play(),this.X=!0)};var sJ1=[new eC("b.f_",!1,0),new eC("j.s_",!1,2),new eC("r.s_",!1,4),new eC("e.h_",!1,6),new eC("i.s_",!0,8),new eC("s.t_",!1,10),new eC("p.h_",!1,12),new eC("s.i_",!1,14),new eC("f.i_",!1,16),new eC("a.b_",!1,18),new eC("a.o_",!1),new eC("g.o_",!1,22),new eC("p.i_",!1,24),new eC("p.m_",!1),new eC("n.k_",!0,20),new eC("i.f_",!1),new eC("a.s_",!0),new eC("m.c_",!1),new eC("n.h_",!1,26),new eC("o.p_",!1),new eC("m.p_",!0,28),new eC("o.a_",!1),new eC("d.p_",!1),new eC("e.i_",!1)].reduce(function(d,q){d[q.U]=
  8894. q;return d},{});g.M(F$,Sx);g.Q=F$.prototype;
  8895. g.Q.init=function(d,q,T){Sx.prototype.init.call(this,d,q,T);this.UD=q;(this.z2=g7_(this))&&g.OL(Error("hasAdControlInClickCommands_ is true."));if(!q||g.FV(q))g.Zz(Error("SkipButtonRenderer was not specified or empty."));else if(!q.message||g.FV(q.message))g.Zz(Error("SkipButtonRenderer.message was not specified or empty."));else if(d=this.X?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},q=Ox(d),q==null?g.Zz(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+d.iconType+".")):
  8896. (this.api.C().N("disable_touch_events_on_skip_button")&&(q.Z=Object.assign({},q.Z,{"aria-hidden":"true",aXU:"false"})),this.j=new g.Ji({Y:"button",hF:[this.X?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],V:[{Y:"span",D:this.X?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",V:[q]}]}),g.C(this,this.j),this.j.IU(this.T.element),this.U=new Ih(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,"ytp-ad-skip-button-text"),this.X&&this.U.element.classList.add("ytp-ad-skip-button-text-centered"),
  8897. this.U.init(qP("ad-text"),this.UD.message,T),g.C(this,this.U),yp(this.j.element,this.U.element,0)),!this.api.C().N("disable_touch_events_on_skip_button")){var Y=Y===void 0?null:Y;T=this.api.C();!(this.rO.length>0)&&T.U&&(vx?0:"ontouchstart"in document.documentElement&&(ocD()||XQ()))&&(this.t1(this.kx),Y&&this.t1(Y),this.rO=[this.W(this.element,"touchstart",this.onTouchStart,this),this.W(this.element,"touchmove",this.onTouchMove,this),this.W(this.element,"touchend",this.onTouchEnd,this)])}};
  8898. g.Q.clear=function(){this.aU.reset();this.hide()};
  8899. g.Q.hide=function(){this.T.hide();this.U&&this.U.hide();vk(this);Sx.prototype.hide.call(this)};
  8900. g.Q.onClick=function(d){if(this.j!=null){if(d){var q=d||window.event;q.returnValue=!1;q.preventDefault&&q.preventDefault()}var T;if(Xj_(d,{contentCpn:((T=this.api.getVideoData(1))==null?void 0:T.clientPlaybackNonce)||""})===0)this.api.gO("onAbnormalityDetected");else if(Sx.prototype.onClick.call(this,d),this.publish("j"),this.api.gO("onAdSkip"),this.qk||!this.z2)this.api.onAdUxClicked(this.componentType,this.layoutId)}};
  8901. g.Q.K4=function(d){if(!this.qk)return this.z2&&Jm("SkipButton click commands not pruned while ALC exist"),d;var q,T=(q=g.D(d,g.NY))==null?void 0:q.commands;if(!T)return d;d=[];for(q=0;q<T.length;q++){var Y=T[q];Y.adLifecycleCommand&&$wf(Y.adLifecycleCommand)||Y.pingingEndpoint||Y.adPingingEndpoint||d.push(Y)}return{commandExecutorCommand:{commands:d}}};
  8902. g.Q.show=function(){this.aU.start();this.T.show();this.U&&this.U.show();lE(this);Sx.prototype.show.call(this);this.Fw&&this.api.C().N("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};
  8903. g.Q.K3=function(){this.publish("k")};
  8904. g.Q.Ba=function(){};g.M(Ru,Sx);g.Q=Ru.prototype;
  8905. g.Q.init=function(d,q,T){Sx.prototype.init.call(this,d,q,T);d=q&&q.preskipRenderer&&g.D(q.preskipRenderer,dN)||{};(d=g.FV(d)?null:d)?(this.X=d.durationMilliseconds!=null&&d.durationMilliseconds!==void 0?d.durationMilliseconds:5E3,this.U=new ds(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.G,Md(this.api.C().experiments,"preskip_button_style_ads_backend")=="countdown_next_to_thumbnail"&&yz(this.api.C())),this.U.init(qP("preskip-component"),d,T),d=this.U,d.UD.show(100),d.show(),
  8906. g.C(this,this.U),this.U.IU(this.element)):q.skipOffsetMilliseconds&&(this.X=q.skipOffsetMilliseconds);d=q&&q.skippableRenderer&&g.D(q.skippableRenderer,xXs)||{};d=g.FV(d)?null:d;d==null?g.Zz(Error("SkipButtonRenderer was not set in player response.")):(this.j=new F$(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.G,this.UD),this.j.init(qP("skip-button"),d,T),g.C(this,this.j),this.j.IU(this.element),this.api.C().experiments.Wv("enable_skip_to_next_messaging")&&(q=g.rt(q.targetId))&&
  8907. (T=this.j,T.j!=null&&(T.Fw=!0,T.j.element.setAttribute("data-tooltip-target-id",q),T.j.element.setAttribute("data-tooltip-target-fixed",""))),this.show())};
  8908. g.Q.show=function(){this.T&&this.j?this.j.show():this.U&&this.U.show();lE(this);Sx.prototype.show.call(this)};
  8909. g.Q.K3=function(){};
  8910. g.Q.clear=function(){this.U&&this.U.clear();this.j&&this.j.clear();vk(this);Sx.prototype.hide.call(this)};
  8911. g.Q.hide=function(){this.U&&this.U.hide();this.j&&this.j.hide();vk(this);Sx.prototype.hide.call(this)};
  8912. g.Q.Ba=function(){1E3*this.G.getProgressState().current>=this.X&&FYQ(this,!0)};g.M(xo,nM);xo.prototype.init=function(d,q,T){nM.prototype.init.call(this,d,q,T);d=!1;q.text!=null&&(d=g.gx(q.text),d=!g.nh(d));d?q.navigationEndpoint==null?g.OL(Error("No visit advertiser clickthrough provided in renderer,")):q.style!=="STYLE_UNKNOWN"?g.OL(Error("Button style was not a link-style type in renderer,")):this.show():g.OL(Error("No visit advertiser text was present in the renderer."))};g.M(yZ,sx);
  8913. yZ.prototype.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);d=q.text;g.nh($P(d))?g.OL(Error("SimpleAdBadgeRenderer has invalid or empty text")):(d&&d.text&&(q=d.text,this.j&&!this.U&&(q=this.api.C(),q=d.text+" "+(q&&q.U?"\u2022":"\u00b7")),q={text:q,isTemplated:d.isTemplated},d.style&&(q.style=d.style),d.targetId&&(q.targetId=d.targetId),d=new Ih(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),d.init(qP("simple-ad-badge"),q,T),d.IU(this.element),g.C(this,d)),this.show())};
  8914. yZ.prototype.clear=function(){this.hide()};g.M(hm,TW);g.M(HG,g.YP);g.Q=HG.prototype;g.Q.F0=function(){return this.durationMs};
  8915. g.Q.stop=function(){this.G&&this.CC.t1(this.G)};
  8916. g.Q.Yc=function(d){this.U={seekableStart:0,seekableEnd:this.durationMs/1E3,current:d.current};this.publish("h")};
  8917. g.Q.getProgressState=function(){return this.U};
  8918. g.Q.Ml=function(d){g.gs(d,2)&&this.publish("g")};g.M(QZ,g.YP);g.Q=QZ.prototype;g.Q.F0=function(){return this.durationMs};
  8919. g.Q.start=function(){this.G||(this.G=!0,this.timer.start())};
  8920. g.Q.stop=function(){this.G&&(this.G=!1,this.timer.stop())};
  8921. g.Q.Yc=function(){this.MQ+=100;var d=!1;this.MQ>this.durationMs&&(this.MQ=this.durationMs,this.timer.stop(),d=!0);this.U={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.MQ/1E3};this.publish("h");d&&this.publish("g")};
  8922. g.Q.getProgressState=function(){return this.U};g.M(EP,Sx);g.Q=EP.prototype;g.Q.init=function(d,q,T){Sx.prototype.init.call(this,d,q,T);var Y;if(q==null?0:(Y=q.templatedCountdown)==null?0:Y.templatedAdText){d=q.templatedCountdown.templatedAdText;if(!d.isTemplated){g.OL(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.U=new Ih(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk);this.U.init(qP("ad-text"),d,{});this.U.IU(this.element);g.C(this,this.U)}this.show()};
  8923. g.Q.clear=function(){this.hide()};
  8924. g.Q.hide=function(){vk(this);Sx.prototype.hide.call(this)};
  8925. g.Q.K3=function(){this.hide()};
  8926. g.Q.Ba=function(){if(this.G!=null){var d=this.G.getProgressState();if(d!=null&&d.current!=null&&this.U){var q=this.G instanceof HG?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:d.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.G instanceof QZ?d.seekableEnd:this.api.getDuration(2,!1);d=d.current;var T,Y,e=((T=this.api.getVideoData())==null?0:(Y=T.y5)==null?0:Y.call(T))?Math.max(q-d,0):q-d;mr(this.U,{FORMATTED_AD_DURATION_REMAINING:String(g.MY(e)),
  8927. TIME_REMAINING:String(Math.ceil(e))})}}};
  8928. g.Q.show=function(){lE(this);Sx.prototype.show.call(this)};g.M(jC,Ih);jC.prototype.onClick=function(d){Ih.prototype.onClick.call(this,d);this.api.onAdUxClicked(this.componentType)};g.M(Am,sx);Am.prototype.init=function(d,q){sx.prototype.init.call(this,d,q,{});if(d=q.content){g.Qp(this.element,d);var T,Y;q=((T=q.interaction)==null?void 0:(Y=T.accessibility)==null?void 0:Y.label)||d;this.element.setAttribute("aria-label",q)}else g.Zz(Error("AdSimpleAttributedString does not have text content"))};
  8929. Am.prototype.clear=function(){this.hide()};
  8930. Am.prototype.onClick=function(d){sx.prototype.onClick.call(this,d)};g.M(pG,sx);
  8931. pG.prototype.init=function(d,q){sx.prototype.init.call(this,d,q,{});(d=q.label)&&d.content&&!g.nh(d.content)?(this.adBadgeText.init(qP("ad-simple-attributed-string"),new au(d)),(q=q.adPodIndex)&&q.content&&!g.nh(q.content)&&(this.G=new Am(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),this.G.IU(this.element),g.C(this,this.G),this.G.element.classList.add("ytp-ad-badge__pod-index"),this.G.init(qP("ad-simple-attributed-string"),new au(q))),this.element.classList.add(this.U?"ytp-ad-badge--stark-clean-player":
  8932. "ytp-ad-badge--stark"),this.show()):g.Zz(Error("No label is returned in AdBadgeViewModel."))};
  8933. pG.prototype.show=function(){this.adBadgeText.show();var d;(d=this.G)==null||d.show();sx.prototype.show.call(this)};
  8934. pG.prototype.hide=function(){this.adBadgeText.hide();var d;(d=this.G)==null||d.hide();sx.prototype.hide.call(this)};g.M(Z0,sx);Z0.prototype.init=function(d,q){sx.prototype.init.call(this,d,q,{});(d=q.adPodIndex)&&d.content&&!g.nh(d.content)&&(this.G=new Am(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),this.G.IU(this.element),g.C(this,this.G),this.G.init(qP("ad-simple-attributed-string"),new au(d)),q.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE"&&this.element.classList.add("ytp-ad-pod-index--autohide"));this.element.classList.add("ytp-ad-pod-index--stark");this.show()};
  8935. Z0.prototype.show=function(){var d;(d=this.G)==null||d.show();sx.prototype.show.call(this)};
  8936. Z0.prototype.hide=function(){var d;(d=this.G)==null||d.hide();sx.prototype.hide.call(this)};g.M(OP,sx);
  8937. OP.prototype.init=function(d,q){sx.prototype.init.call(this,d,q,{});if(q!=null&&q.text){var T;if(((T=q.text)==null?0:T.content)&&!g.nh(q.text.content)){this.G=new g.Ji({Y:"div",D:"ytp-ad-disclosure-banner__text",j5:q.text.content});g.C(this,this.G);this.G.IU(this.element);var Y,e;d=((Y=q.interaction)==null?void 0:(e=Y.accessibility)==null?void 0:e.label)||q.text.content;this.element.setAttribute("aria-label",d);var U;if((U=q.interaction)==null?0:U.onTap)this.U=new g.Ji({Y:"div",D:"ytp-ad-disclosure-banner__chevron",V:[g.xP()]}),
  8938. g.C(this,this.U),this.U.IU(this.element);this.show()}}else g.Zz(Error("No banner text found in AdDisclosureBanner."))};
  8939. OP.prototype.clear=function(){this.hide()};g.M(tm,g.Ji);tm.prototype.Yc=function(){var d=this.U.getProgressState(),q=d.seekableEnd;this.api.getPresentingPlayerType()===2&&(q=this.j?this.j/1E3:d.seekableEnd);this.progressBar.style.width=rs(new nG(d.seekableStart,q),d.current,0)*100+"%"};
  8940. tm.prototype.onStateChange=function(){g.XW(this.api.C())||(this.api.getPresentingPlayerType()===2?this.G===-1&&(this.show(),this.G=this.U.subscribe("h",this.Yc,this),this.Yc()):this.G!==-1&&(this.hide(),this.U.Br(this.G),this.G=-1))};g.M(BG,sx);
  8941. BG.prototype.init=function(d,q,T,Y){sx.prototype.init.call(this,d,q,T);if(q.skipOrPreviewRenderer){if(d=g.D(q.skipOrPreviewRenderer,AP))T=new Ru(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.U,this.K),T.IU(this.RU),T.init(qP("skip-button"),d,this.macros),g.C(this,T);if(d=g.D(q.skipOrPreviewRenderer,AP))var e=d.skipOffsetMilliseconds}q.brandInteractionRenderer&&(d=q.brandInteractionRenderer.brandInteractionRenderer,T=new Tc(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),
  8942. T.IU(this.z2),T.init(qP("instream-user-sentiment"),d,this.macros),g.C(this,T));if(d=g.D(q,syL))if(d=g.D(d,syL))T=new qY(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.U,!!q.showWithoutLinkedMediaLayout),g.C(this,T),T.IU(this.X),T.init(qP("flyout-cta"),d,this.macros);Y=Y&&Y.videoAdDurationSeconds;q.adBadgeRenderer&&(T=q.adBadgeRenderer,d=g.D(T,Sy),d!=null?(T=new pG(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,!1),g.C(this,T),T.IU(this.G),T.init(qP("ad-badge"),
  8943. d,this.macros),this.j=T.element):(d=T.simpleAdBadgeRenderer,d==null&&(d={text:{text:"\u5e7f\u544a",isTemplated:!1}}),T=new yZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,!0),g.C(this,T),T.IU(this.G),T.init(qP("simple-ad-badge"),d,this.macros)));q.adPodIndex&&(d=g.D(q.adPodIndex,Qyj),d!=null&&(T=new Z0(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),g.C(this,T),T.IU(this.G),T.init(qP("ad-pod-index"),d)));q.adDurationRemaining&&!q.showWithoutLinkedMediaLayout&&
  8944. (d=q.adDurationRemaining.adDurationRemainingRenderer,d==null&&(d={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),Y=new EP(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.U,Y,!1),g.C(this,Y),Y.IU(this.G),Y.init(qP("ad-duration-remaining"),d,this.macros));q.adInfoRenderer&&(Y=g.D(q.adInfoRenderer,VP))&&(d=new iE(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.element,void 0,!1),g.C(this,d),this.j!==null?this.G.insertBefore(d.element,
  8945. this.j.nextSibling):d.IU(this.G),d.init(qP("ad-info-hover-text-button"),Y,this.macros));q.visitAdvertiserRenderer&&(d=g.D(q.visitAdvertiserRenderer,g.q6))&&(T=yr1(this)&&this.T?this.T:this.G)&&(Y=new xo(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),g.C(this,Y),Y.IU(T),Y.init(qP("visit-advertiser"),d,this.macros),kM(Y.element),d=C9(Y.element),Wh(Y.element,d+" This link opens in new tab"));!(Y=this.api.C())||g.Um(Y)||g.dn(Y)||Y.controlsType!="3"&&!Y.disableOrganicUi||(e=new tm(this.api,
  8946. this.U,e,!1),e.IU(this.aU),g.C(this,e));q.adDisclosureBannerRenderer&&(q=g.D(q.adDisclosureBannerRenderer,HnL))&&(e=new OP(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),e.IU(this.UD),e.init(qP("ad-disclosure-banner"),q),g.C(this,e));this.api.C().N("enable_updated_html5_player_focus_style")&&g.d9(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
  8947. BG.prototype.clear=function(){this.hide()};g.LG.prototype.flush=function(d,q){d=d===void 0?[]:d;q=q===void 0?!1:q;if(g.RD("enable_client_streamz_web")){d=g.E(d);for(var T=d.next();!T.done;T=d.next())T=qbQ(T.value),this.G&&Qw(T,XP,2,this.G),T={serializedIncrementBatch:g.A0(T.j())},g.Ta("streamzIncremented",T,{sendIsolatedPayload:q})}};
  8948. g.M(H7f,g.LG);var X1H=new Map;ko.prototype.set=function(d,q,T){T=T!==void 0?Date.now()+T:void 0;this.G.set(d,q,T)};
  8949. ko.prototype.get=function(d){return this.G.get(d)};
  8950. ko.prototype.remove=function(d){this.G.remove(d)};var MF_=null;var D0=null,ws=null,fG=null,Ar7=null;g.Vf("yt.www.ads.eventcache.getLastCompanionData",function(){return D0});
  8951. g.Vf("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
  8952. g.Vf("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return ws});
  8953. g.Vf("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return fG});
  8954. g.Vf("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return Ar7});var Z7D=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);zc.prototype.handleResponse=function(d,q){if(!q)throw Error("request needs to be passed into ConsistencyService");var T,Y;q=((T=q.Yy.context)==null?void 0:(Y=T.request)==null?void 0:Y.consistencyTokenJars)||[];var e;(d=(e=d.responseContext)==null?void 0:e.consistencyTokenJar)&&this.replace(q,d)};
  8955. zc.prototype.replace=function(d,q){d=g.E(d);for(var T=d.next();!T.done;T=d.next())delete this.G[T.value.encryptedTokenJarContents];n7j(this,q)};var tV7=window.location.hostname.split(".").slice(-2).join("."),Go;Iu.getInstance=function(){Go=g.qx("yt.clientLocationService.instance");Go||(Go=new Iu,g.Vf("yt.clientLocationService.instance",Go));return Go};
  8956. g.Q=Iu.prototype;
  8957. g.Q.setLocationOnInnerTubeContext=function(d){d.client||(d.client={});if(this.G)d.client.locationInfo||(d.client.locationInfo={}),d.client.locationInfo.latitudeE7=Math.floor(this.G.coords.latitude*1E7),d.client.locationInfo.longitudeE7=Math.floor(this.G.coords.longitude*1E7),d.client.locationInfo.horizontalAccuracyMeters=Math.round(this.G.coords.accuracy),d.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.j||this.locationPlayabilityToken)d.client.locationPlayabilityToken=this.j||
  8958. this.locationPlayabilityToken};
  8959. g.Q.handleResponse=function(d){var q;d=(q=d.responseContext)==null?void 0:q.locationPlayabilityToken;d!==void 0&&(this.locationPlayabilityToken=d,this.G=void 0,g.Cs("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=i2(this))&&this.localStorage.set("yt-location-playability-token",d,15552E3):g.nZ("YT_CL",JSON.stringify({loctok:d}),15552E3,tV7,!0))};
  8960. g.Q.clearLocationPlayabilityToken=function(d){d==="TVHTML5"?(this.localStorage=i2(this))&&this.localStorage.remove("yt-location-playability-token"):g.td("YT_CL");this.j=void 0;this.U!==-1&&(clearTimeout(this.U),this.U=-1)};
  8961. g.Q.getCurrentPositionFromGeolocation=function(){var d=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var q=!1,T=1E4;g.Cs("INNERTUBE_CLIENT_NAME")==="MWEB"&&(q=!0,T=15E3);return new Promise(function(Y,e){navigator.geolocation.getCurrentPosition(function(U){d.G=U;Y(U)},function(U){e(U)},{enableHighAccuracy:q,
  8962. maximumAge:0,timeout:T})})};
  8963. g.Q.createUnpluggedLocationInfo=function(d){var q={};d=d.coords;if(d==null?0:d.latitude)q.latitudeE7=Math.floor(d.latitude*1E7);if(d==null?0:d.longitude)q.longitudeE7=Math.floor(d.longitude*1E7);if(d==null?0:d.accuracy)q.locationRadiusMeters=Math.round(d.accuracy);return q};
  8964. g.Q.createLocationInfo=function(d){var q={};d=d.coords;if(d==null?0:d.latitude)q.latitudeE7=Math.floor(d.latitude*1E7);if(d==null?0:d.longitude)q.longitudeE7=Math.floor(d.longitude*1E7);return q};g.Q=GaD.prototype;g.Q.contains=function(d){return Object.prototype.hasOwnProperty.call(this.G,d)};
  8965. g.Q.get=function(d){if(this.contains(d))return this.G[d]};
  8966. g.Q.set=function(d,q){this.G[d]=q};
  8967. g.Q.ll=function(){return Object.keys(this.G)};
  8968. g.Q.remove=function(d){delete this.G[d]};SC.prototype.getModuleId=function(d){return d.serviceId.getModuleId()};
  8969. SC.prototype.get=function(d){a:{var q=this.mappings.get(d.toString());switch(q.type){case "mapping":d=q.value;break a;case "factory":q=q.value();this.mappings.set(d.toString(),{type:"mapping",value:q});d=q;break a;default:d=$S(q)}}return d};
  8970. SC.prototype.registerService=function(d,q){this.mappings.set(d.toString(),{type:"mapping",value:q});return d};
  8971. new SC;var L8={},LY2=(L8.WEB_UNPLUGGED="^unplugged/",L8.WEB_UNPLUGGED_ONBOARDING="^unplugged/",L8.WEB_UNPLUGGED_OPS="^unplugged/",L8.WEB_UNPLUGGED_PUBLIC="^unplugged/",L8.WEB_CREATOR="^creator/",L8.WEB_KIDS="^kids/",L8.WEB_EXPERIMENTS="^experiments/",L8.WEB_MUSIC="^music/",L8.WEB_REMIX="^music/",L8.WEB_MUSIC_EMBEDDED_PLAYER="^music/",L8.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",L8);ou.prototype.S=function(d,q,T){q=q===void 0?{}:q;T=T===void 0?X7:T;var Y={context:g.mV(d.clickTrackingParams,!1,this.T)};var e=this.U(d);if(e){this.G(Y,e,q);var U;q=g.vG(this.j());(e=(U=g.D(d.commandMetadata,g.AX))==null?void 0:U.apiUrl)&&(q=e);U=M_6(BL(q));d=Object.assign({},{command:d},void 0);Y={input:U,A3:KZ(U),Yy:Y,config:d};Y.config.VA?Y.config.VA.identity=T:Y.config.VA={identity:T};return Y}T=new g.CW("Error: Failed to create Request from Command.",d);g.Zz(T)};
  8972. g.U6.Object.defineProperties(ou.prototype,{T:{configurable:!0,enumerable:!0,get:function(){return!1}}});
  8973. g.M(VZ,ou);g.M(dc,VZ);dc.prototype.S=function(){return{input:"/getDatasyncIdsEndpoint",A3:KZ("/getDatasyncIdsEndpoint","GET"),Yy:{}}};
  8974. dc.prototype.j=function(){return[]};
  8975. dc.prototype.U=function(){};
  8976. dc.prototype.G=function(){};var B_s={},xzI=(B_s.GET_DATASYNC_IDS=l2(dc),B_s);var k0={},KZI=(k0["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",k0["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",k0["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",k0["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",k0["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",k0["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",k0["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP",
  8977. k0["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",k0["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",k0["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",k0["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",k0["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",k0["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",k0["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",k0["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",
  8978. k0["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",k0["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",k0["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",k0["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",k0["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",k0["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",k0["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA",
  8979. k0["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",k0.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",k0["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",k0["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",k0["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",k0["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",k0["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",k0["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",
  8980. k0["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",k0["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",k0["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",k0["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",k0["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",k0["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",k0["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",k0["dialog.copyright_strikes"]=
  8981. "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",k0["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",k0["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",k0.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",k0["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",k0["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",k0["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",k0["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",k0["owner.asset_groups"]=
  8982. "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",k0["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",k0["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",k0["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",k0["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",k0["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",k0["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",k0["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",k0["owner.delivery"]=
  8983. "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",k0["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",k0["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",k0["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",k0["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",k0["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",k0["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",k0["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",k0["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS",
  8984. k0["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",k0["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",k0["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",k0["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",k0["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",k0["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",k0["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",k0["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",k0["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",
  8985. k0["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",k0["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",k0["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",k0["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",k0["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",k0["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",k0["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",k0["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",
  8986. k0),Py={},wjn=(Py.auto_search="LATENCY_ACTION_AUTO_SEARCH",Py.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Py.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Py.app_startup="LATENCY_ACTION_APP_STARTUP",Py.browse="LATENCY_ACTION_BROWSE",Py.cast_splash="LATENCY_ACTION_CAST_SPLASH",Py.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Py.channels="LATENCY_ACTION_CHANNELS",Py.chips="LATENCY_ACTION_CHIPS",Py.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Py.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
  8987. Py.editor="LATENCY_ACTION_EDITOR",Py.embed="LATENCY_ACTION_EMBED",Py.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Py.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Py.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Py.explore="LATENCY_ACTION_EXPLORE",Py.favorites="LATENCY_ACTION_FAVORITES",Py.home="LATENCY_ACTION_HOME",Py.inboarding="LATENCY_ACTION_INBOARDING",Py.landing="LATENCY_ACTION_LANDING",Py.learning="LATENCY_ACTION_LEARNING",
  8988. Py.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",Py.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",Py.library="LATENCY_ACTION_LIBRARY",Py.live="LATENCY_ACTION_LIVE",Py.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Py.management="LATENCY_ACTION_MANAGEMENT",Py.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Py.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Py.onboarding="LATENCY_ACTION_ONBOARDING",Py.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
  8989. Py.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Py.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Py.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",Py.prebuffer="LATENCY_ACTION_PREBUFFER",Py.prefetch="LATENCY_ACTION_PREFETCH",Py.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Py.profile_switcher="LATENCY_ACTION_LOGIN",Py.projects="LATENCY_ACTION_PROJECTS",Py.reel_watch="LATENCY_ACTION_REEL_WATCH",Py.results="LATENCY_ACTION_RESULTS",Py.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
  8990. Py.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Py.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Py.review="LATENCY_ACTION_REVIEW",Py.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",Py.search_ui="LATENCY_ACTION_SEARCH_UI",Py.search_suggest="LATENCY_ACTION_SUGGEST",Py.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Py.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Py.seek="LATENCY_ACTION_PLAYER_SEEK",Py.settings="LATENCY_ACTION_SETTINGS",Py.store="LATENCY_ACTION_STORE",
  8991. Py.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Py.tenx="LATENCY_ACTION_TENX",Py.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Py.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",Py.watch="LATENCY_ACTION_WATCH",Py.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Py["watch,watch7"]="LATENCY_ACTION_WATCH",Py["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Py["watch,watch7ad"]="LATENCY_ACTION_WATCH",Py["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Py.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
  8992. Py.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Py.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Py.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Py.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Py.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Py.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Py.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Py);Object.assign(wjn,KZI);g.M(sG,JL);var Ygf=new sg("aft-recorded",sG);var GOl=g.oQ.ytLoggingGelSequenceIdObj_||{};g.Vf("ytLoggingGelSequenceIdObj_",GOl);var N3=g.oQ.ytLoggingLatencyUsageStats_||{};g.Vf("ytLoggingLatencyUsageStats_",N3);$h.prototype.tick=function(d,q,T,Y){Ra(this,"tick_"+d+"_"+q)||g.Ta("latencyActionTicked",{tickName:d,clientActionNonce:q},{timestamp:T,cttAuthInfo:Y})};
  8993. $h.prototype.info=function(d,q,T){var Y=Object.keys(d).join("");Ra(this,"info_"+Y+"_"+q)||(d=Object.assign({},d),d.clientActionNonce=q,g.Ta("latencyActionInfo",d,{cttAuthInfo:T}))};
  8994. $h.prototype.jspbInfo=function(d,q,T){for(var Y="",e=0;e<ul(d).length;e++)ul(d)[e]!==void 0&&(Y=e===0?Y.concat(""+e):Y.concat("_"+e));if(!Ra(this,"info_"+Y+"_"+q)){K2(d,2,q);T={cttAuthInfo:T};q=g.RD("jspb_sparse_encoded_pivot")?new G2([{}]):new G2;LnH(q,t1,7,Lnx,d);T=T===void 0?{}:T;d=!1;g.Cs("ytLoggingEventsDefaultDisabled",!1)&&(d=!0);d=d?null:g.wM;T=T===void 0?{}:T;Y=Math.round(T.timestamp||(0,g.cj)());BV(q,1,Y<Number.MAX_SAFE_INTEGER?Y:0);Y=new Ks;T.lact?BV(Y,1,isFinite(T.lact)?T.lact:-1):T.timestamp?
  8995. BV(Y,1,-1):(e=QF(),BV(Y,1,isFinite(e)?e:-1));if(T.sequenceGroup&&!g.RD("web_gel_sequence_info_killswitch")){e=T.sequenceGroup;var U=MeD(e),b=new Bq;BV(b,2,U);K2(b,1,e);Qw(Y,Bq,3,b);T.endOfSequence&&delete GOl[T.sequenceGroup]}Qw(q,Ks,33,Y);(T.sendIsolatedPayload?v5H:o56)("latencyActionInfo",{endpoint:"log_event",payload:q,cttAuthInfo:T.cttAuthInfo,dangerousLogToVisitorSession:T.dangerousLogToVisitorSession},d)}};
  8996. $h.prototype.span=function(d,q,T){var Y=Object.keys(d).join("");Ra(this,"span_"+Y+"_"+q)||(d.clientActionNonce=q,g.Ta("latencyActionSpan",d,{cttAuthInfo:T}))};var Wy=window,xh=Wy.performance||Wy.mozPerformance||Wy.msPerformance||Wy.webkitPerformance||new fPn;var TMQ=!1,IP2=!1,aa={'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",
  8997. '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",
  8998. 'script[name="mobile_blazer_watch_mod"]':"mbwj",'script[name="embed_client"]':"ecj",'link[rel="stylesheet"][name="embed-ui"]':"ecc"},Uz_=(0,g.sI)(xh.clearResourceTimings||xh.webkitClearResourceTimings||xh.mozClearResourceTimings||xh.msClearResourceTimings||xh.oClearResourceTimings||g.r_,xh);var LZl=window;LZl.ytcsi&&(LZl.ytcsi.infoGel=g.ZO,LZl.ytcsi.tick=pU);var cLH="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" "),jRg=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];var pWn=new M9("INNERTUBE_TRANSPORT_TOKEN");g.M(LU,VZ);LU.prototype.j=function(){return Qr_};
  8999. LU.prototype.U=function(d){return g.D(d,YMQ)||void 0};
  9000. LU.prototype.G=function(d,q,T){T=T===void 0?{}:T;q.channelIds&&(d.channelIds=q.channelIds);q.siloName&&(d.siloName=q.siloName);q.params&&(d.params=q.params);T.botguardResponse&&(d.botguardResponse=T.botguardResponse);T.feature&&(d.clientFeature=T.feature)};
  9001. g.U6.Object.defineProperties(LU.prototype,{T:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.M(kh,VZ);kh.prototype.j=function(){return MV_};
  9002. kh.prototype.U=function(d){return g.D(d,T_s)||void 0};
  9003. kh.prototype.G=function(d,q){q.channelIds&&(d.channelIds=q.channelIds);q.siloName&&(d.siloName=q.siloName);q.params&&(d.params=q.params)};
  9004. g.U6.Object.defineProperties(kh.prototype,{T:{configurable:!0,enumerable:!0,get:function(){return!0}}});var kOx=new M9("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");g.M(Pm,VZ);Pm.prototype.j=function(){return RuB};
  9005. Pm.prototype.U=function(d){return g.D(d,fGq)||g.D(d,zSc)||g.D(d,wZs)};
  9006. Pm.prototype.G=function(d,q){q.serializedShareEntity&&(d.serializedSharedEntity=q.serializedShareEntity);if(q.clientParamIdentifier){var T;if((T=this.X)==null?0:T.G(q.clientParamIdentifier))d.clientParams=this.X.U(q.clientParamIdentifier)}};
  9007. Pm[A$]=[kOx];g.M(Wm,VZ);Wm.prototype.j=function(){return y4c};
  9008. Wm.prototype.U=function(d){return g.D(d,Btx)||void 0};
  9009. Wm.prototype.G=function(d,q,T){d.feedbackTokens=[];q.feedbackToken&&d.feedbackTokens.push(q.feedbackToken);if(q=q.cpn||T.cpn)d.feedbackContext={cpn:q};d.isFeedbackTokenUnencrypted=!!T.is_feedback_token_unencrypted;d.shouldMerge=!1;T.extra_feedback_tokens&&(d.shouldMerge=!0,d.feedbackTokens=d.feedbackTokens.concat(T.extra_feedback_tokens))};
  9010. g.U6.Object.defineProperties(Wm.prototype,{T:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.M(CU,VZ);CU.prototype.j=function(){return huI};
  9011. CU.prototype.U=function(d){return g.D(d,qM7)||void 0};
  9012. CU.prototype.G=function(d,q){q.params&&(d.params=q.params);q.secondaryParams&&(d.secondaryParams=q.secondaryParams)};g.M(u9,VZ);u9.prototype.j=function(){return HTR};
  9013. u9.prototype.U=function(d){return g.D(d,VvB)||void 0};
  9014. u9.prototype.G=function(d,q){q.actions&&(d.actions=q.actions);q.params&&(d.params=q.params);q.playlistId&&(d.playlistId=q.playlistId)};g.M(DO,VZ);DO.prototype.j=function(){return xQI};
  9015. DO.prototype.U=function(d){return g.D(d,inI)};
  9016. DO.prototype.G=function(d,q,T){T=T===void 0?{}:T;q.serializedShareEntity&&(d.serializedSharedEntity=q.serializedShareEntity);T.includeListId&&(d.includeListId=!0)};var PYj=new M9("FETCH_FN_TOKEN"),WZ7=new M9("PARSE_FN_TOKEN"),CYE=new M9("WINDOW_REQUEST_TOKEN"),uEI=new M9("TEXT_DECODER_TOKEN");g.M(g.wc,g.CW);var DQ7=new M9("NETWORK_SLI_TOKEN");fU.prototype.fetch=function(d,q,T){var Y=this,e,U,b;return g.G(function(J){e=adX(Y,d,q);b=(U=Y.U)!=null?U:fetch;return J.return(b(e).then(function(F){return Y.handleResponse(F,T)}).catch(function(F){g.OL(F);
  9017. if((T==null?0:T.Fq)&&F instanceof g.wc&&F.errorType===1)return Promise.reject(F)}))})};
  9018. fU.prototype.handleResponse=function(d,q){var T,Y=(T=this.j)!=null?T:JSON.parse;T=d.text().then(function(e){if((q==null?0:q.JQ)&&d.ok)return eu2(q.JQ,e);e=e.replace(")]}'","");if((q==null?0:q.Fq)&&e)try{var U=Y(e)}catch(J){throw new g.wc(1,"JSON parsing failed after fetch");}var b;return(b=U)!=null?b:Y(e)});
  9019. d.redirected||d.ok?this.G&&this.G.success():(this.G&&this.G.IXw(),T=T.then(function(e){g.OL(new g.CW("Error: API fetch failed",d.status,d.url,e));return Object.assign({},e,{errorMetadata:{status:d.status}})}));
  9020. return T};
  9021. fU[A$]=[Eu(DQ7),Eu(PYj),Eu(WZ7),Eu(CYE),Eu(uEI)];var ALQ=new M9("NETWORK_MANAGER_TOKEN");var zY;mM.prototype.bindInnertubeChallengeFetcher=function(d){this.G.bicf(d)};
  9022. mM.prototype.registerChallengeFetchedCallback=function(d){this.G.bcr(d)};
  9023. mM.prototype.getLatestChallengeResponse=function(){return this.G.blc()};var nLY=[],Sl=!1;d5.prototype.T=function(){var d=this;return g.G(function(q){return q.U==1?g.B(q,Promise.race([d.G,null]),2):q.return(!!q.G)})};
  9024. d5.prototype.j=function(d,q,T){var Y=this,e,U,b;return g.G(function(J){Y.G===null&&tT6(Y,Va(Y));e=!1;U={};b=function(){var F,N,R;return g.G(function(x){switch(x.U){case 1:return g.B(x,Y.G,2);case 2:F=x.G;U.challenge=F.challenge;if(!F.CH){"c1a"in F.Rb&&(U.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");x.tF(3);break}N=Object.assign({},{c:F.challenge,e:d},q);g.jD(x,4);e=!0;return g.B(x,F.CH.snapshot({BO:N}),6);case 6:(R=x.G)?U.webResponse=R:U.error="ATTESTATION_ERROR_VM_NO_RESPONSE";g.ZX(x,3);break;case 4:g.nN(x),
  9025. U.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(d==="ENGAGEMENT_TYPE_PLAYBACK"){var y=F.Rb,h={};y.c6a&&(h.reportingStatus=String(Number(y.c)^l9()));y.c6b&&(h.broadSpectrumDetectionResult=String(Number(y.c)^Number(g.Cs("CATSTAT",0))));U.adblockReporting=h}return x.return(U)}})};
  9026. return J.return(Promise.race([b(),LL2(T,function(){var F=Object.assign({},U);e&&(F.error="ATTESTATION_ERROR_VM_TIMEOUT");return F})]))})};var WLI=["APP_STATE","PI"];var Zm1=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
  9027. 160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,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,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
  9028. 74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
  9029. 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,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
  9030. 184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,
  9031. 74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,
  9032. 147994,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,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,
  9033. 50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,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,263843,196075,194768,252201,194769,191885,233634,265810,194770,195350,195349,194771,166382,37671,
  9034. 49953,220669,249229,213774,204572,191389,253830,253831,253832,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,
  9035. 170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,261210,210815,246127,245256,244950,
  9036. 191925,167637,234545,197196,214295,110386,221054,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,
  9037. 253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,190190,225739,31961,
  9038. 26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,
  9039. 39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,82039];Tq.prototype.getState=function(){return this.store.getState()};
  9040. Tq.prototype.dispatch=function(d){return this.store.dispatch(d)};
  9041. Tq.prototype.subscribe=function(d){return this.store.subscribe(d)};
  9042. Tq.prototype.replaceReducer=function(d){return this.store.replaceReducer(d)};
  9043. Tq.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};e2.prototype.append=function(d){if(DzX(this,d)){var q=this.G[this.G.length-1];this.G[this.G.length-1]=new Uint8Array(q.buffer,q.byteOffset,q.length+d.length);XJ(this)}else this.G.push(d);this.totalLength+=d.length};
  9044. e2.prototype.split=function(d){for(var q=new e2,T=new e2,Y=g.E(this.G),e=Y.next();!e.done;e=Y.next())e=e.value,d>=e.length?(q.append(e),d-=e.length):d?(q.append(new Uint8Array(e.buffer,e.byteOffset,d)),T.append(new Uint8Array(e.buffer,e.byteOffset+d,e.length-d)),d=0):T.append(e);return{hS:q,Kp:T}};
  9045. e2.prototype.isFocused=function(d){return d>=this.j&&d<this.j+this.G[this.U].length};
  9046. e2.prototype.focus=function(d){if(!this.isFocused(d)){for(d<this.j&&XJ(this);this.j+this.G[this.U].length<=d&&this.U<this.G.length;)this.j+=this.G[this.U].length,this.U+=1;this.T=void 0}};var xX,Nt,hV;g.GM=function(){function d(Y){for(var e=new Uint8Array(Y.length),U=0;U<Y.length;U++)e[U]=Y[U];return e}
  9047. function q(Y){return new Uint8Array(Y)}
  9048. var T=new Uint8Array([1]);return T.length===1&&T[0]===1?q:d}();
  9049. xX=Array(1024);Nt=window.TextDecoder?new TextDecoder:void 0;hV=window.TextEncoder?new TextEncoder:void 0;for(var VTQ={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,
  9050. emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,
  9051. mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,
  9052. musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,
  9053. suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},oLQ={},wBQ=g.E(Object.entries(VTQ)),fvE=wBQ.next();!fvE.done;fvE=wBQ.next()){var zuQ=g.E(fvE.value),iTQ=zuQ.next().value,Iv_=zuQ.next().value,mQq=iTQ,SMq=Iv_;SMq&&(oLQ[SMq]=mQq)};var T42=!1,q1,Tm,YU,eo,Un;g.M(ba,g.W);
  9054. ba.prototype.encrypt=function(d){var q=d.length;d=new Uint8Array(d.buffer.slice(d.byteOffset,d.byteOffset+q));for(var T=this.U,Y=0;Y<q&&this.G<16;)d[Y++]^=T[this.G++];for(var e=q-(q-Y)%16;Y<e;)Yu1(this),d[Y++]^=T[0],d[Y++]^=T[1],d[Y++]^=T[2],d[Y++]^=T[3],d[Y++]^=T[4],d[Y++]^=T[5],d[Y++]^=T[6],d[Y++]^=T[7],d[Y++]^=T[8],d[Y++]^=T[9],d[Y++]^=T[10],d[Y++]^=T[11],d[Y++]^=T[12],d[Y++]^=T[13],d[Y++]^=T[14],d[Y++]^=T[15];if(Y<q)for(Yu1(this),this.G=0;Y<q;)d[Y++]^=T[this.G++];return d};var XN=!1;(function(){function d(Y){for(var e=new Uint8Array(Y.length),U=0;U<Y.length;U++)e[U]=Y[U];return e}
  9055. function q(Y){return new Uint8Array(Y)}
  9056. var T=new Uint8Array([1]);return T.length===1&&T[0]===1?q:d})();
  9057. var Jb;g.FN.prototype.encrypt=function(d,q){var T=this,Y;return g.G(function(e){switch(e.U){case 1:if(!T.G){e.tF(2);break}g.jD(e,3);return g.B(e,T.G.encrypt(d,q),5);case 5:return e.return(e.G);case 3:Y=g.nN(e),g.OL(Y),XN=!0,T.G=void 0;case 2:return e.return(T.U.encrypt(d,q))}})};
  9058. g.FN.prototype.decrypt=function(d,q){return this.encrypt(d,q)};
  9059. $U.prototype.encrypt=function(d,q){var T=this,Y;return g.G(function(e){if(e.U==1)return g.jD(e,2),g.B(e,eW6(T,d,q),4);if(e.U!=2)return e.return(e.G);Y=g.nN(e);g.OL(Y);XN=!0;throw Y;})};
  9060. g.gE.prototype.encrypt=function(d,q){this.G||(this.G=new ba(this.U));for(var T=this.G,Y=0;Y<4;Y++)T.counter[Y]=q[Y*4]<<24|q[Y*4+1]<<16|q[Y*4+2]<<8|q[Y*4+3];T.G=16;return this.G.encrypt(d)};
  9061. g.gE.prototype.decrypt=function(d,q){return this.encrypt(d,q)};N1.prototype.reset=function(){bCH(this);this.update(this.j)};
  9062. N1.prototype.update=function(d){var q=0,T=d.length;this.T+=T;this.U&&this.U+T>=64&&(this.X.set(d.subarray(0,64-this.U),this.U),q=64-this.U,this.U=0,U9j(this,this.X,0));for(;q+64<=T;q+=64)U9j(this,d,q);q<T&&(d=d.subarray(q),this.X.set(d,this.U),this.U+=d.length)};
  9063. var Rw=[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,
  9064. 4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];var lvI;lvI={};g.vE_=g.mY("yt-idb-pref-storage",{pw:(lvI.prefs={JC:1},lvI),shared:!1,upgrade:function(d,q){q(1)&&g.n7(g.jF(d,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
  9065. version:1});var C8;C8={};g.oEE=(C8.INVALID_ENCODER_VERSION="Invalid encoder version",C8.KEY_CREATION_FAILED="Failed to create encoder key",C8.UNKNOWN_DECODE_ERROR="Failed to decode PES data",C8.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",C8.WRONG_DATA_TYPE="Encoder cannot process the data type",C8);g.v6("","downloadsPageViewConfigurationEntity");g.v6("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");g.uK=g.v6("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");g.v6("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");g.v6("SMART_DOWNLOADS_ENABLED","settingEntity");g.v6("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var a5I=new M9("POSTMESSAGE_TUNNEL_TOKEN");var OCn=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];g.Q=yK.prototype;g.Q.initialize=function(d,q,T,Y){this.XM=Y;if(d.program){var e;Y=(e=d.interpreterUrl)!=null?e:null;if(d.interpreterSafeScript)e=LW2(d.interpreterSafeScript);else{var U;e=(U=d.interpreterScript)!=null?U:null}d.interpreterSafeUrl&&(Y=Hq(d.interpreterSafeUrl).toString());ZC6(this,e,Y,d.program,q,T)}else g.OL(Error("BL:CIP"))};
  9066. g.Q.isInitialized=function(){return this.B_()};
  9067. g.Q.getState=function(){return this.state};
  9068. g.Q.isLoading=function(){return this.state===2};
  9069. g.Q.invoke=function(d){d=d===void 0?{}:d;return this.B_()?this.pG({BO:d}):null};
  9070. g.Q.dispose=function(){this.xd(null);this.XC(8)};
  9071. g.Q.B_=function(){return!!this.CH};
  9072. g.Q.pG=function(d){return this.CH.CX(d)};
  9073. g.Q.xd=function(d){g.T1(this.CH);this.CH=d};
  9074. g.Q.XC=function(d){this.state=d};g.M(QK,yK);QK.prototype.xd=function(d){var q;(q=HD())==null||q.bgvma();d?(q={bgvma:d.dispose.bind(d),bgvmb:d.snapshot.bind(d),bgvmc:d.CX.bind(d)},g.Vf("yt.abuse.playerAttLoader",q),g.Vf("yt.abuse.playerAttLoaderRun",function(T){return d.snapshot(T)})):(g.Vf("yt.abuse.playerAttLoader",null),g.Vf("yt.abuse.playerAttLoaderRun",null))};
  9075. QK.prototype.B_=function(){return!!HD()};
  9076. QK.prototype.pG=function(d){return HD().bgvmc(d)};M1.prototype.xH=function(){return"crossDeviceProgressCommand"};
  9077. M1.prototype.WZ=function(d){if(d.crossDevicePings){var q=[];d=g.E(d.crossDevicePings);for(var T=d.next();!T.done;T=d.next())q.push({baseUrl:T.value.baseUrl});g.Ta("crossDeviceNotificationTransfer",{crossDevicePings:q})}};cD.prototype.xH=function(){return"muteAdEndpoint"};
  9078. cD.prototype.WZ=function(d,q){switch(d.type){case "SKIP":ny6(this.NF,this.je,q)}};En.prototype.xH=function(){return"openPopupAction"};
  9079. En.prototype.WZ=function(){};jo.prototype.xH=function(){return"pingingEndpoint"};
  9080. jo.prototype.WZ=function(){};var kT7={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.M(taQ,g.W);var KeQ={rkv:"FINAL",HAf:"AD_BREAK_LENGTH",un5:"AD_CPN",dMf:"AH",JkU:"AD_MT",Rqx:"ASR",XrU:"AW",LVw:"NM",FV5:"NX",DNw:"NY",BHw:"CONN",V05:"CPN",rqv:"DV_VIEWABILITY",RLf:"ERRORCODE",mQZ:"ERROR_MSG",Eqw:"EI",KTk:"GOOGLE_VIEWABILITY",zFF:"IAS_VIEWABILITY",Oqr:"LACT",kvg:"LIVE_TARGETING_CONTEXT",ipO:"I_X",TcF:"I_Y",t8w:"MT",rt5:"MIDROLL_POS",I5x:"MIDROLL_POS_MS",Y5v:"MOAT_INIT",hxD:"MOAT_VIEWABILITY",V8Z:"P_H",KBg:"PV_H",waZ:"PV_W",Pgr:"P_W",ftv:"TRIGGER_TYPE",Sgx:"SDKV",kpk:"SLOT_POS",jFg:"SURVEY_LOCAL_TIME_EPOCH_S",
  9081. o6D:"SURVEY_ELAPSED_MS",Ef:"VIS",FmZ:"VIEWABILITY",x4v:"VED",AC5:"VOL",WmZ:"WT",J8v:"YT_ERROR_CODE"};p3.prototype.xH=function(){return"urlEndpoint"};
  9082. p3.prototype.WZ=function(d,q,T){var Y=this.Hv.get(),e=v_(Y.U.get(),q);e?q=Hp(Y,pvH(e),e,void 0,void 0,T):(Jm("Trying to ping from an unknown layout",void 0,void 0,{layoutId:q}),q={});q=Object.assign({},q);WA(this.G,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(T=kx(this.kP,2))&&(q.AD_CPN=T.clientPlaybackNonce);q=g.a1(d.url,q);d=g.u2(q,void 0,void 0,void 0,d.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME");A$H(d,q)};Zh.prototype.get=function(){return this.value};
  9083. g.M(On,Zh);On.prototype.G=function(){return"metadata_type_action_companion_ad_renderer"};
  9084. g.M(n3,Zh);n3.prototype.G=function(){return"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"};
  9085. g.M(rE,Zh);rE.prototype.G=function(){return"metadata_type_ads_engagement_panel_renderer"};
  9086. g.M(tb,Zh);tb.prototype.G=function(){return"metadata_type_ads_engagement_panel_layout_view_model"};
  9087. g.M(BD,Zh);BD.prototype.G=function(){return"metadata_type_ad_next_params"};
  9088. g.M(K3,Zh);K3.prototype.G=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
  9089. g.M(Gm,Zh);Gm.prototype.G=function(){return"metadata_type_invideo_overlay_ad_renderer"};
  9090. g.M(L3,Zh);L3.prototype.G=function(){return"metadata_type_image_companion_ad_renderer"};
  9091. g.M(kU,Zh);kU.prototype.G=function(){return"metadata_type_banner_image_layout_view_model"};
  9092. g.M(PD,Zh);PD.prototype.G=function(){return"metadata_type_shopping_companion_carousel_renderer"};
  9093. g.M(WD,Zh);WD.prototype.G=function(){return"metadata_type_ad_info_ad_metadata"};
  9094. g.M(C3,Zh);C3.prototype.G=function(){return"metadata_ad_video_is_listed"};
  9095. g.M(ua,Zh);ua.prototype.G=function(){return"metadata_type_ad_placement_config"};
  9096. g.M(Dh,Zh);Dh.prototype.G=function(){return"metadata_type_ad_pod_info"};
  9097. g.M(wE,Zh);wE.prototype.G=function(){return"metadata_type_ad_pod_skip_index"};
  9098. g.M(f3,Zh);f3.prototype.G=function(){return"metadata_type_ad_pod_skip_target"};
  9099. g.M(zm,Zh);zm.prototype.G=function(){return"metadata_type_ad_pod_skip_target_callback_ref"};
  9100. g.M(ia,Zh);ia.prototype.G=function(){return"metadata_type_ad_video_id"};
  9101. g.M(Iw,Zh);Iw.prototype.G=function(){return"metadata_type_content_cpn"};
  9102. g.M(m0,Zh);m0.prototype.G=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
  9103. g.M(So,Zh);So.prototype.G=function(){return"metadata_type_player_overlay_layout_renderer"};
  9104. g.M(la,Zh);la.prototype.G=function(){return"metadata_type_player_underlay_renderer"};
  9105. g.M(vD,Zh);vD.prototype.G=function(){return"metadata_type_player_underlay_ad_slot_renderer"};
  9106. g.M(ow,Zh);ow.prototype.G=function(){return"metadata_type_media_associated_in_player_slot"};
  9107. g.M(VK,Zh);VK.prototype.G=function(){return"metadata_type_shrunken_player_bytes_config"};
  9108. g.M(dJ,Zh);dJ.prototype.G=function(){return"metadata_type_ad_action_interstitial_renderer"};
  9109. g.M(q_,Zh);q_.prototype.G=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
  9110. g.M(Te,Zh);Te.prototype.G=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
  9111. g.M(Yg,Zh);Yg.prototype.G=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
  9112. g.M(et,Zh);et.prototype.G=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
  9113. g.M(UH,Zh);UH.prototype.G=function(){return"metadata_type_linked_player_bytes_layout_id"};
  9114. g.M(b7,Zh);b7.prototype.G=function(){return"metadata_type_linked_in_player_layout_id"};
  9115. g.M(Xb,Zh);Xb.prototype.G=function(){return"metadata_type_linked_in_player_layout_type"};
  9116. g.M(Js,Zh);Js.prototype.G=function(){return"metadata_type_linked_in_player_slot_id"};
  9117. g.M(sH,Zh);sH.prototype.G=function(){return"metadata_type_player_bytes_callback"};
  9118. g.M($g,Zh);$g.prototype.G=function(){return"metadata_type_player_bytes_callback_ref"};
  9119. g.M(gJ,Zh);gJ.prototype.G=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
  9120. g.M(Fb,Zh);Fb.prototype.G=function(){return"metadata_type_sub_layouts"};
  9121. g.M(N_,Zh);N_.prototype.G=function(){return"metadata_type_cue_point"};
  9122. g.M(RV,Zh);RV.prototype.G=function(){return"metadata_type_triggering_cue_point"};
  9123. g.M(xg,Zh);xg.prototype.G=function(){return"metadata_type_video_length_seconds"};
  9124. g.M(yq,Zh);yq.prototype.G=function(){return"metadata_type_player_vars"};
  9125. g.M(hs,Zh);hs.prototype.G=function(){return"metadata_type_preload_player_vars"};
  9126. g.M(H4,Zh);H4.prototype.G=function(){return"metadata_type_sodar_extension_data"};
  9127. g.M(Qq,Zh);Qq.prototype.G=function(){return"metadata_type_layout_enter_ms"};
  9128. g.M(M_,Zh);M_.prototype.G=function(){return"metadata_type_layout_exit_ms"};
  9129. g.M(c4,Zh);c4.prototype.G=function(){return"metadata_type_media_sub_layout_index"};
  9130. g.M(EH,Zh);EH.prototype.G=function(){return"metadata_type_dai"};
  9131. g.M(jt,Zh);jt.prototype.G=function(){return"metadata_type_ad_intro"};
  9132. g.M(aV,Zh);aV.prototype.G=function(){return"metadata_type_client_forecasting_ad_renderer"};
  9133. g.M(As,Zh);As.prototype.G=function(){return"metadata_type_drift_recovery_ms"};
  9134. g.M(pm,Zh);pm.prototype.G=function(){return"metadata_type_fulfilled_layout"};
  9135. g.M(Z3,Zh);Z3.prototype.G=function(){return"metadata_type_ad_break_request_data"};
  9136. g.M(OH,Zh);OH.prototype.G=function(){return"metadata_type_ad_break_response_data"};
  9137. g.M(nm,Zh);nm.prototype.G=function(){return"metadata_type_remote_slots_data"};
  9138. g.M(rJ,Zh);rJ.prototype.G=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
  9139. g.M(ts,Zh);ts.prototype.G=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
  9140. g.M(B4,Zh);B4.prototype.G=function(){return"metadata_type_legacy_info_card_vast_extension"};
  9141. g.M(Km,Zh);Km.prototype.G=function(){return"metadata_type_valid_ad_message_renderer"};
  9142. g.M(Ge,Zh);Ge.prototype.G=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
  9143. g.M(Lm,Zh);Lm.prototype.G=function(){return"metadata_type_served_from_live_infra"};
  9144. g.M(kg,Zh);kg.prototype.G=function(){return"metadata_type_survey_overlay"};
  9145. g.M(P4,Zh);P4.prototype.G=function(){return"metadata_type_active_view_traffic_type"};
  9146. g.M(W4,Zh);W4.prototype.G=function(){return"metadata_type_active_view_identifier"};
  9147. g.M(Cm,Zh);Cm.prototype.G=function(){return"metadata_type_ssdai_ads_config"};
  9148. g.M(u7,Zh);u7.prototype.G=function(){return"metadata_type_eligible_for_ssap"};
  9149. g.M(D3,Zh);D3.prototype.G=function(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"};
  9150. g.M(wJ,Zh);wJ.prototype.G=function(){return"metadata_type_player_bytes_slot_metadata"};
  9151. g.M(fm,Zh);fm.prototype.G=function(){return"metadata_type_prefetch_metadata"};var l5D=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 Uhf=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",
  9152. "trigger_category_layout_exit_user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","trigger_category_layout_exit_user_cancelled"]]);g.M(m5,xc);g.M(S,xc);new Promise(function(){});var uZ7=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"]]),WIn=new Map([["normal",{QD:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",uy:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{QD:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",uy:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
  9153. ["muted",{QD:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",uy:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{QD:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",uy:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{QD:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",uy:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{QD:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",uy:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
  9154. ["error",{QD:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",uy:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);g.M(U5,g.W);g.Q=U5.prototype;g.Q.i5=function(d,q){return this.G.i5(d,q)};
  9155. g.Q.qp=function(d,q){this.JA.o1("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",d,q);for(var T=g.E(this.U),Y=T.next();!Y.done;Y=T.next())Y.value.qp(d,q)};
  9156. g.Q.bv=function(d){if($v(this.G,d)){this.JA.fq("ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",d);this.G.bv(d);for(var q=g.E(this.U),T=q.next();!T.done;T=q.next())T.value.bv(d);zWX(this,d)}};
  9157. g.Q.a6=function(d){if($v(this.G,d)){this.JA.fq("ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",d);this.G.a6(d);for(var q=g.E(this.U),T=q.next();!T.done;T=q.next())T.value.a6(d);$v(this.G,d)&&gp(this.G,d).S&&Jo(this,d,!1)}};
  9158. g.Q.We=function(d){this.JA.fq("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",d);$v(this.G,d)&&(this.G.We(d),Jo(this,d,!1))};
  9159. g.Q.AA=function(d,q){if($v(this.G,d)){this.JA.CA("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",d,q);for(var T=g.E(this.U),Y=T.next();!Y.done;Y=T.next())Y.value.AA(d,q)}};
  9160. g.Q.i$=function(d,q,T){if($v(this.G,d)){this.JA.CA(Cyg(T),d,q);this.G.i$(d,q);for(var Y=g.E(this.U),e=Y.next();!e.done;e=Y.next())e.value.i$(d,q,T);(T=aj(this.G,d))&&q.layoutId===T.layoutId&&Ti2(this,d,!1)}};
  9161. g.Q.Cz=function(d,q,T,Y){T.b9&&Y?(Jm(T,d,q,void 0,T.kA),this.JA.ys(Y,T.b9,d,q)):Jm("adsClientErrorMessage is missing.",d,q);Jo(this,d,!0)};
  9162. g.Q.ir=function(){var d=emj(this.G);d=g.E(d);for(var q=d.next();!q.done;q=d.next())Jo(this,q.value,!1);g.W.prototype.ir.call(this)};
  9163. g.Q.Uc=function(d,q){this.JA.CA("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",d,q);this.JA.CA("ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",d,q);for(var T=g.E(this.U),Y=T.next();!Y.done;Y=T.next())Y=Y.value,q&&Y.Uc(d,q)};YLf.prototype.isActive=function(){switch(this.G){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.M(Zp,g.W);g.Q=Zp.prototype;g.Q.i5=function(d,q){q=jh(this,d+"_"+q);d=[];q=g.E(q.values());for(var T=q.next();!T.done;T=q.next())d.push(T.value.slot);return d};
  9164. g.Q.Ec=function(d){d=gp(this,d);d.G!=="not_scheduled"&&Ao(d.slot,d.G,"onSlotScheduled");d.G="scheduled"};
  9165. g.Q.f1=function(d){d=gp(this,d);d.T="fill_requested";d.L.f1()};
  9166. g.Q.bv=function(d){d=gp(this,d);d.G!=="enter_requested"&&Ao(d.slot,d.G,"onSlotEntered");d.G="entered"};
  9167. g.Q.We=function(d){gp(this,d).T="fill_canceled"};
  9168. g.Q.a6=function(d){d=gp(this,d);d.G!=="exit_requested"&&Ao(d.slot,d.G,"onSlotExited");d.G="scheduled"};
  9169. g.Q.i$=function(d,q){d=gp(this,d);d.layout!=null&&d.layout.layoutId===q.layoutId&&(d.G!=="rendering_stop_requested"&&Ao(d.slot,d.G,"onLayoutExited"),d.G="entered")};g.M(rp,g.W);rp.prototype.get=function(){Math.random()<.001&&this.JF()&&Jm("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.G());return this.instance};g.M(BA,g.W);BA.prototype.j=function(){return this.U};Ku.prototype.executeCommand=function(d,q){Ab(this.G(),d,q)};kv.prototype.addListener=function(d){this.listeners.add(d)};
  9170. kv.prototype.removeListener=function(d){this.listeners.delete(d)};var DF={},iG=(DF.AD_MARKER="ytp-ad-progress",DF.CHAPTER_MARKER="ytp-chapter-marker",DF.TIME_MARKER="ytp-time-marker",DF);var kDH=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/)"),Rmf=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-green-qa\\.corp|tv-release-qa|tv-release-qa\\.corp|tv-integration-qa|tv-integration-qa\\.corp|yt-tv-autopush\\.corp|yt-tv-integration\\.corp|yt-tv-staging\\.corp)\\.youtube\\.com/|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?/)"),
  9171. Pq1=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),EzY=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)|$))"),
  9172. Mn1=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)|$))"),hmj=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|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-us|-eu)?(-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|viewer)))\\/|^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/)"),
  9173. Wx1=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),H1Q=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)"),yt1=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|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-us|-eu)?(-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|viewer)))\\/|^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/.*$)"),
  9174. PuQ=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)"),
  9175. ku_=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|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com(/|$)|^https://canvastester-3fd0b\\.appspot\\.com(/|$)|^https://localhost\\.googleusercontent\\.com(:\\d+)?(/|$)|^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)"),
  9176. VV_=RegExp("^(https://play\\.google\\.com|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|https://adstransparency\\.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|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://localhost\\.googleusercontent\\.com(:\\d+)?$|^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$)");g.Ij.prototype.getId=function(){return this.id};
  9177. g.Ij.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+pan(this.start)+", "+pan(this.end)+"]"};
  9178. g.Ij.prototype.contains=function(d,q){return d>=this.start&&(d<this.end||d===this.end&&this.start===this.end)&&(q==null||d<q&&q<=this.end)};
  9179. var Atn=1;g.Ij.prototype.getId=g.Ij.prototype.getId;vA.prototype.f1=function(){var d=this,q=0;Fdg(this.G,function(){var T=l7(d.slot.clientMetadata,"metadata_type_ad_break_request_data");q=Date.now();cn(d.Hv.get(),"abrs","ct."+q+";cmt."+d.Yx.get().getCurrentTimeSec(1,!1)+";sid."+d.slot.slotId+";");return d.U.get().fetch({FL:T.getAdBreakUrl,cz:new g.Ij(T.vW,T.RW),II:l7(d.slot.clientMetadata,"metadata_type_cue_point"),cueProcessedMs:T.cueProcessedMs})},function(){O1Y(d)},function(T){var Y=Date.now()-q;
  9180. cn(d.Hv.get(),"abrr","ct."+(new Date).getTime()+";cmt."+d.Yx.get().getCurrentTimeSec(1,!1)+";l."+Y.toString()+";sid."+d.slot.slotId+";");Y=T.CL;Y.length>=2&&T.ssdaiAdsConfig&&Jm("Unexpected ad placement renderers length",d.slot,null,{length:Y.length});var e;((e=T.adSlots)==null?0:e.some(function(U){var b,J;return((b=g.D(U,ei))==null?void 0:(J=b.adSlotMetadata)==null?void 0:J.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||Y.some(function(U){var b,J,F,N;
  9181. return!!((b=U.renderer)==null?0:(J=b.linearAdSequenceRenderer)==null?0:(F=J.linearAds)==null?0:F.length)||!((N=U.renderer)==null||!N.instreamVideoAdRenderer)})||O1Y(d)})};
  9182. vA.prototype.zF=function(){Nij(this.G)};oj.prototype.f1=function(){var d=this;Fdg(this.U,function(){var q=l7(d.slot.clientMetadata,"metadata_type_ad_break_request_data");return q.cueProcessedMs?d.G.get().fetch({FL:q.getAdBreakUrl,cz:new g.Ij(q.vW,q.RW),cueProcessedMs:q.cueProcessedMs}):d.G.get().fetch({FL:q.getAdBreakUrl,cz:new g.Ij(q.vW,q.RW)})})};
  9183. oj.prototype.zF=function(){Nij(this.U)};Vz.prototype.f1=function(){var d=this.slot.clientMetadata,q,T=(q=this.slot.fulfilledLayout)!=null?q:l7(d,"metadata_type_fulfilled_layout");iCI(this.callback,this.slot,T)};
  9184. Vz.prototype.zF=function(){s5(this.callback,this.slot,new S("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")};qo.prototype.build=function(d,q){return q.fulfilledLayout||dX(q,{Pl:["metadata_type_fulfilled_layout"]})?new Vz(d,q):this.j(d,q)};g.M(TS,qo);
  9185. TS.prototype.j=function(d,q){if(dX(q,{Pl:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new vA(d,q,this.G,this.U,this.KH,this.T2,this.Hv,this.Yx,this.Gq);if(dX(q,{Pl:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new oj(d,q,this.G,this.U,this.KH,this.T2);throw new S("Unsupported slot with type: "+q.slotType+" and client metadata: "+v4(q.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.M(Yu,qo);Yu.prototype.j=function(d,q){throw new S("Unsupported slot with type: "+q.slotType+" and client metadata: "+v4(q.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.Q=nz7.prototype;g.Q.Sv=function(){return this.slot};
  9186. g.Q.e5=function(){return this.layout};
  9187. g.Q.init=function(){};
  9188. g.Q.release=function(){};
  9189. g.Q.startRendering=function(d){if(d.layoutId!==this.layout.layoutId)this.callback.Cz(this.slot,d,new m5("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 q=l7(d.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.AA(this.slot,d),IO6(this.j,
  9190. this.slot,q)):Jm("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,d)}};
  9191. g.Q.OF=function(d,q){d.layoutId!==this.layout.layoutId?this.callback.Cz(this.slot,d,new m5("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.i$(this.slot,d,q),tnI(this),BiI(this))};g.M(J8,g.YP);g.Q=J8.prototype;g.Q.Sv=function(){return this.U.slot};
  9192. g.Q.e5=function(){return this.U.layout};
  9193. g.Q.init=function(){this.j.get().addListener(this)};
  9194. g.Q.release=function(){this.j.get().removeListener(this);this.dispose()};
  9195. g.Q.dj=function(){};
  9196. g.Q.Ht=function(){};
  9197. g.Q.a_=function(){};
  9198. g.Q.tS=function(){};
  9199. g.Q.startRendering=function(d){var q=this;XI(this.U,d,function(){return void q.QG()})};
  9200. g.Q.QG=function(){this.j.get().QG(this.G)};
  9201. g.Q.OF=function(d,q){var T=this;XI(this.U,d,function(){var Y=T.j.get();Du1(Y,T.G,3);T.G=[];T.callback.i$(T.slot,d,q)})};
  9202. g.Q.ir=function(){this.j.JF()||this.j.get().removeListener(this);g.YP.prototype.ir.call(this)};
  9203. g.U6.Object.defineProperties(J8.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.U.slot}},
  9204. layout:{configurable:!0,enumerable:!0,get:function(){return this.U.layout}}});yT.prototype.Wr=function(d,q){q=q===void 0?!1:q;var T=(this.j.get(d)||[]).concat();if(q=q&&kpH(d)){var Y=this.j.get(q);Y&&T.push.apply(T,g.RQ(Y))}QT(this,d,T);this.G.add(d);q&&this.G.add(q)};
  9205. yT.prototype.EM=function(d,q){q=q===void 0?!1:q;if(!this.G.has(d)){var T=q&&kpH(d);T&&(q=!this.G.has(T));this.Wr(d,q)}};g.M(CnH,TW);g.M(a5,J8);g.Q=a5.prototype;g.Q.Gu=function(d,q){FI("ads-engagement-panel-layout",d,this.X.get().yK,this.Hv.get(),this.T,this.S,this.Sv(),this.e5(),q)};
  9206. g.Q.startRendering=function(d){$u(this.Dw,this.Sv(),this.e5(),g.D(this.e5().renderingContent,tR),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(q,T,Y,e,U){return new CnH(q,T,Y,e,U)},this.G);
  9207. J8.prototype.startRendering.call(this,d)};
  9208. g.Q.AA=function(d,q){this.S===q.layoutId&&(this.T===null?this.T=this.Hv.get().iS():Jm("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
  9209. g.Q.i$=function(){};
  9210. g.Q.Ec=function(){};
  9211. g.Q.dU=function(){};
  9212. g.Q.s$=function(){};
  9213. g.Q.bv=function(){};
  9214. g.Q.a6=function(){};
  9215. g.Q.Hr=function(){};
  9216. g.Q.uS=function(){};
  9217. g.Q.Cj=function(){};
  9218. g.Q.Uc=function(){};
  9219. g.Q.qp=function(){};
  9220. g.Q.ir=function(){XX(this.cF(),this);J8.prototype.ir.call(this)};g.M(Dh_,TW);g.M(A8,J8);g.Q=A8.prototype;g.Q.Gu=function(d,q){FI("banner-image",d,this.X.get().yK,this.Hv.get(),this.T,this.S,this.Sv(),this.e5(),q)};
  9221. g.Q.startRendering=function(d){$u(this.Dw,this.Sv(),this.e5(),g.D(this.e5().renderingContent,nS),this.callback,"metadata_type_banner_image_layout_view_model",function(q,T,Y,e,U){return new Dh_(q,T,Y,e,U)},this.G);
  9222. J8.prototype.startRendering.call(this,d)};
  9223. g.Q.AA=function(d,q){this.S===q.layoutId&&(this.T===null?this.T=this.Hv.get().iS():Jm("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
  9224. g.Q.i$=function(){};
  9225. g.Q.Ec=function(){};
  9226. g.Q.dU=function(){};
  9227. g.Q.s$=function(){};
  9228. g.Q.bv=function(){};
  9229. g.Q.a6=function(){};
  9230. g.Q.Hr=function(){};
  9231. g.Q.uS=function(){};
  9232. g.Q.Cj=function(){};
  9233. g.Q.Uc=function(){};
  9234. g.Q.qp=function(){};
  9235. g.Q.ir=function(){XX(this.cF(),this);J8.prototype.ir.call(this)};g.M(pw,TW);g.M(Zb,J8);g.Q=Zb.prototype;g.Q.Gu=function(d,q){FI("action-companion",d,this.X.get().yK,this.Hv.get(),this.T,this.S,this.Sv(),this.e5(),q)};
  9236. g.Q.startRendering=function(d){$u(this.Dw,this.Sv(),this.e5(),g.D(this.e5().renderingContent,pS),this.callback,"metadata_type_action_companion_ad_renderer",function(q,T,Y,e,U){return new pw(q,T,Y,e,U)},this.G);
  9237. J8.prototype.startRendering.call(this,d)};
  9238. g.Q.AA=function(d,q){q.layoutId===this.layout.layoutId?this.Dw.EM("impression"):this.S===q.layoutId&&(this.T===null?this.T=this.Hv.get().iS():Jm("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
  9239. g.Q.i$=function(){};
  9240. g.Q.Ec=function(){};
  9241. g.Q.dU=function(){};
  9242. g.Q.s$=function(){};
  9243. g.Q.bv=function(){};
  9244. g.Q.a6=function(){};
  9245. g.Q.Hr=function(){};
  9246. g.Q.uS=function(){};
  9247. g.Q.Cj=function(){};
  9248. g.Q.Uc=function(){};
  9249. g.Q.qp=function(){};
  9250. g.Q.ir=function(){XX(this.cF(),this);J8.prototype.ir.call(this)};g.M(zmI,TW);g.M(O0,J8);g.Q=O0.prototype;g.Q.Gu=function(d,q){FI("image-companion",d,this.X.get().yK,this.Hv.get(),this.T,this.S,this.Sv(),this.e5(),q)};
  9251. g.Q.startRendering=function(d){$u(this.Dw,this.Sv(),this.e5(),g.D(this.e5().renderingContent,ZJ),this.callback,"metadata_type_image_companion_ad_renderer",function(q,T,Y,e,U){return new zmI(q,T,Y,e,U)},this.G);
  9252. J8.prototype.startRendering.call(this,d)};
  9253. g.Q.AA=function(d,q){q.layoutId===this.layout.layoutId?this.Dw.EM("impression"):this.S===q.layoutId&&(this.T===null?this.T=this.Hv.get().iS():Jm("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
  9254. g.Q.i$=function(){};
  9255. g.Q.Ec=function(){};
  9256. g.Q.dU=function(){};
  9257. g.Q.s$=function(){};
  9258. g.Q.bv=function(){};
  9259. g.Q.a6=function(){};
  9260. g.Q.Hr=function(){};
  9261. g.Q.uS=function(){};
  9262. g.Q.Cj=function(){};
  9263. g.Q.Uc=function(){};
  9264. g.Q.qp=function(){};
  9265. g.Q.ir=function(){XX(this.cF(),this);J8.prototype.ir.call(this)};g.M(Iz7,TW);g.M(nw,J8);g.Q=nw.prototype;g.Q.Gu=function(d,q){FI("shopping-companion",d,this.X.get().yK,this.Hv.get(),this.T,this.S,this.Sv(),this.e5(),q)};
  9266. g.Q.startRendering=function(d){$u(this.Dw,this.Sv(),this.e5(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(q,T,Y,e,U){return new Iz7(q,T,Y,e,U)},this.G);
  9267. J8.prototype.startRendering.call(this,d)};
  9268. g.Q.AA=function(d,q){q.layoutId===this.layout.layoutId?this.Dw.EM("impression"):this.S===q.layoutId&&(this.T===null?this.T=this.Hv.get().iS():Jm("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
  9269. g.Q.i$=function(){};
  9270. g.Q.Ec=function(){};
  9271. g.Q.dU=function(){};
  9272. g.Q.s$=function(){};
  9273. g.Q.bv=function(){};
  9274. g.Q.a6=function(){};
  9275. g.Q.Hr=function(){};
  9276. g.Q.uS=function(){};
  9277. g.Q.Cj=function(){};
  9278. g.Q.Uc=function(){};
  9279. g.Q.qp=function(){};
  9280. g.Q.ir=function(){XX(this.cF(),this);J8.prototype.ir.call(this)};g.M(t8,J8);g.Q=t8.prototype;g.Q.startRendering=function(d){$u(this.Dw,this.Sv(),this.e5(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(q,T,Y,e,U){return new pw(q,T,Y,e,U)},this.G);
  9281. J8.prototype.startRendering.call(this,d)};
  9282. g.Q.AA=function(){};
  9283. g.Q.i$=function(){};
  9284. g.Q.Ec=function(){};
  9285. g.Q.dU=function(){};
  9286. g.Q.s$=function(){};
  9287. g.Q.bv=function(){};
  9288. g.Q.a6=function(){};
  9289. g.Q.Hr=function(){};
  9290. g.Q.uS=function(){};
  9291. g.Q.Cj=function(){};
  9292. g.Q.Uc=function(){};
  9293. g.Q.qp=function(){};
  9294. g.Q.ir=function(){XX(this.cF(),this);J8.prototype.ir.call(this)};
  9295. g.Q.Gu=function(){};g.Q=VnH.prototype;g.Q.Sv=function(){return this.slot};
  9296. g.Q.e5=function(){return this.layout};
  9297. g.Q.init=function(){this.Yx.get().addListener(this);this.Yx.get().N7.push(this);var d=l7(this.layout.clientMetadata,"metadata_type_video_length_seconds"),q=l7(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");No(this.layout.GG)&&UW(this.iF.get(),this.layout.layoutId,{jE:q,Nx:d,listener:this})};
  9298. g.Q.release=function(){this.Yx.get().removeListener(this);kdD(this.Yx.get(),this);No(this.layout.GG)&&bU(this.iF.get(),this.layout.layoutId)};
  9299. g.Q.startRendering=function(d){this.callback.AA(this.slot,d)};
  9300. g.Q.OF=function(d,q){bXN(this.T2.get())&&!this.G&&(this.Dw.EM("abandon"),this.G=!0);this.callback.i$(this.slot,d,q)};
  9301. g.Q.EN=function(d){switch(d.id){case "part2viewed":this.Dw.EM("start");this.Dw.EM("impression");break;case "videoplaytime25":this.Dw.EM("first_quartile");break;case "videoplaytime50":this.Dw.EM("midpoint");break;case "videoplaytime75":this.Dw.EM("third_quartile");break;case "videoplaytime100":bXN(this.T2.get())?this.G||(this.Dw.EM("complete"),this.G=!0):this.Dw.EM("complete");jP(this.Dw)&&cp(this.Dw,Infinity,!0);Xvn(this.T2.get())&&rX(this.U,Infinity,!0);break;case "engagedview":jP(this.Dw)||this.Dw.EM("progress");
  9302. break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:Jm("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
  9303. g.Q.onVolumeChange=function(){};
  9304. g.Q.P3=function(){};
  9305. g.Q.bS=function(){};
  9306. g.Q.n8=function(){};
  9307. g.Q.onFullscreenToggled=function(){};
  9308. g.Q.mf=function(){};
  9309. g.Q.e0=function(){};
  9310. g.Q.VB=function(d){Xvn(this.T2.get())&&rX(this.U,d*1E3,!1);jP(this.Dw)&&cp(this.Dw,d*1E3,!1)};
  9311. g.Q.L8=function(){};
  9312. g.Q.LZ=function(){this.Dw.EM("active_view_measurable")};
  9313. g.Q.Ff=function(){this.Dw.EM("active_view_viewable")};
  9314. g.Q.ND=function(){this.Dw.EM("active_view_fully_viewable_audible_half_duration")};
  9315. g.Q.nZ=function(){this.Dw.EM("audio_measurable")};
  9316. g.Q.eI=function(){this.Dw.EM("audio_audible")};g.M(Bp,J8);g.Q=Bp.prototype;g.Q.init=function(){J8.prototype.init.call(this);var d=l7(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),q={adsClientData:this.layout.HF};this.G.push(new hm(d,this.layout.layoutId,l7(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),q,!0))};
  9317. g.Q.q1=function(){this.T||this.Yx.get().resumeVideo(1)};
  9318. g.Q.startRendering=function(d){J8.prototype.startRendering.call(this,d);RP(this.Yx.get(),"ad-showing");this.callback.AA(this.slot,d);this.S.o9=this};
  9319. g.Q.OF=function(d,q){J8.prototype.OF.call(this,d,q);x$(this.Yx.get(),"ad-showing");V_(this.S,this)};
  9320. g.Q.Gu=function(d){switch(d){case "ad-info-icon-button":(this.T=this.Yx.get().wK(1))||this.Yx.get().pauseVideo();break;case "visit-advertiser":this.Yx.get().pauseVideo()}};
  9321. g.Q.ir=function(){J8.prototype.ir.call(this)};g.M(Kw,TW);g.M(GS,J8);g.Q=GS.prototype;g.Q.startRendering=function(d){$u(this.Dw,this.Sv(),this.e5(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(q,T,Y,e,U){return new Kw(q,T,Y,e,U)},this.G);
  9322. J8.prototype.startRendering.call(this,d)};
  9323. g.Q.AA=function(){};
  9324. g.Q.i$=function(){};
  9325. g.Q.Ec=function(){};
  9326. g.Q.dU=function(){};
  9327. g.Q.s$=function(){};
  9328. g.Q.bv=function(){};
  9329. g.Q.a6=function(){};
  9330. g.Q.Hr=function(){};
  9331. g.Q.uS=function(){};
  9332. g.Q.Cj=function(){};
  9333. g.Q.Uc=function(){};
  9334. g.Q.qp=function(){};
  9335. g.Q.ir=function(){XX(this.cF(),this);J8.prototype.ir.call(this)};
  9336. g.Q.Gu=function(){};g.M(Lw,TW);g.M(ku,J8);ku.prototype.init=function(){J8.prototype.init.call(this);this.G.push(new Lw(g.D(this.layout.renderingContent,IF),this.layout.layoutId,{adsClientData:this.layout.HF}))};
  9337. ku.prototype.Gu=function(){lv(this.T.get(),this.S)&&gX(this.Hv.get(),3)};
  9338. ku.prototype.startRendering=function(d){J8.prototype.startRendering.call(this,d);this.callback.AA(this.slot,d)};
  9339. ku.prototype.ir=function(){J8.prototype.ir.call(this)};g.M(Pp,TW);g.M(Wp,J8);Wp.prototype.init=function(){J8.prototype.init.call(this);var d=g.D(this.layout.renderingContent,o5)||l7(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),q=s0(this.Dw);this.G.push(new Pp(d,q,this.layout.layoutId,{adsClientData:this.layout.HF},!0,!0))};
  9340. Wp.prototype.startRendering=function(d){J8.prototype.startRendering.call(this,d);this.callback.AA(this.slot,d)};
  9341. Wp.prototype.Gu=function(d,q){if(q===this.layout.layoutId)switch(d){case "skip-button":var T;(d=(T=l7(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:T.current)&&d.wl(this.Sv(),this.layout)}};
  9342. Wp.prototype.ir=function(){J8.prototype.ir.call(this)};uO.prototype.build=function(d,q,T,Y){if(Cw(Y,{Pl:["metadata_type_ad_break_response_data"],Dm:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new nz7(d,T,Y,this.U,this.j,this.G);throw new m5("Unsupported layout with type: "+Y.layoutType+" and client metadata: "+v4(Y.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.M(TxN,TW);g.M(Db,J8);g.Q=Db.prototype;g.Q.Gu=function(d,q){FI("ads-engagement-panel",d,this.X.get().yK,this.Hv.get(),this.T,this.S,this.Sv(),this.e5(),q)};
  9343. g.Q.startRendering=function(d){$u(this.Dw,this.Sv(),this.e5(),g.D(this.e5().renderingContent,OO),this.callback,"metadata_type_ads_engagement_panel_renderer",function(q,T,Y,e,U){return new TxN(q,T,Y,e,U)},this.G);
  9344. J8.prototype.startRendering.call(this,d)};
  9345. g.Q.AA=function(d,q){q.layoutId===this.layout.layoutId?this.Dw.EM("impression"):this.S===q.layoutId&&(this.T===null?this.T=this.Hv.get().iS():Jm("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
  9346. g.Q.i$=function(){};
  9347. g.Q.Ec=function(){};
  9348. g.Q.dU=function(){};
  9349. g.Q.s$=function(){};
  9350. g.Q.bv=function(){};
  9351. g.Q.a6=function(){};
  9352. g.Q.Hr=function(){};
  9353. g.Q.uS=function(){};
  9354. g.Q.Cj=function(){};
  9355. g.Q.Uc=function(){};
  9356. g.Q.qp=function(){};
  9357. g.Q.ir=function(){XX(this.cF(),this);J8.prototype.ir.call(this)};g.M(wX,J8);g.Q=wX.prototype;g.Q.Gu=function(d,q){FI("top-banner-image-text-icon-buttoned",d,this.X.get().yK,this.Hv.get(),this.T,this.S,this.Sv(),this.e5(),q)};
  9358. g.Q.startRendering=function(d){$u(this.Dw,this.Sv(),this.e5(),g.D(this.e5().renderingContent,rG),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(q,T,Y,e,U){return new Kw(q,T,Y,e,U)},this.G);
  9359. J8.prototype.startRendering.call(this,d)};
  9360. g.Q.AA=function(d,q){this.S===q.layoutId&&(this.T===null?this.T=this.Hv.get().iS():Jm("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
  9361. g.Q.i$=function(){};
  9362. g.Q.Ec=function(){};
  9363. g.Q.dU=function(){};
  9364. g.Q.s$=function(){};
  9365. g.Q.bv=function(){};
  9366. g.Q.a6=function(){};
  9367. g.Q.Hr=function(){};
  9368. g.Q.uS=function(){};
  9369. g.Q.Cj=function(){};
  9370. g.Q.Uc=function(){};
  9371. g.Q.qp=function(){};
  9372. g.Q.ir=function(){XX(this.cF(),this);J8.prototype.ir.call(this)};UPg.prototype.build=function(d,q,T,Y){if(Cw(Y,YxI())||g.D(Y.renderingContent,OO)!==void 0)return new Db(d,T,Y,this.kB,this.Hv,this.cF,this.iF,this.G);if(Cw(Y,fzQ())||g.D(Y.renderingContent,pS)!==void 0)return new Zb(d,T,Y,this.kB,this.Hv,this.cF,this.iF,this.G);if(Cw(Y,i1Y())||g.D(Y.renderingContent,ZJ)!==void 0)return new O0(d,T,Y,this.kB,this.Hv,this.cF,this.iF,this.G);if(Cw(Y,mh6()))return new nw(d,T,Y,this.kB,this.Hv,this.cF,this.iF,this.G);if(Cw(Y,ozn()))return new t8(d,T,Y,this.kB,this.Hv,this.cF,
  9373. this.iF,this.G);if(Cw(Y,waj())||g.D(Y.renderingContent,nS)!==void 0)return new A8(d,T,Y,this.kB,this.Hv,this.cF,this.iF,this.G);if(Cw(Y,esf())||g.D(Y.renderingContent,rG)!==void 0)return new wX(d,T,Y,this.kB,this.Hv,this.cF,this.iF,this.G);if(Cw(Y,dP_()))return new GS(d,T,Y,this.kB,this.Hv,this.cF,this.iF,this.G);if(Cw(Y,unD())||g.D(Y.renderingContent,tR)!==void 0)return new a5(d,T,Y,this.kB,this.Hv,this.cF,this.iF,this.G);throw new m5("Unsupported layout with type: "+Y.layoutType+" and client metadata: "+
  9374. v4(Y.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};bMI.prototype.build=function(d,q,T,Y){if(Cw(Y,{Pl:["metadata_type_linked_player_bytes_layout_id"],Dm:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new ku(d,T,Y,this.kB,this.Hv,this.G);throw new m5("Unsupported layout with type: "+Y.layoutType+" and client metadata: "+v4(Y.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.Q=Xk7.prototype;g.Q.Sv=function(){return this.slot};
  9375. g.Q.e5=function(){return this.layout};
  9376. g.Q.init=function(){};
  9377. g.Q.release=function(){};
  9378. g.Q.startRendering=function(d){d.layoutId!==this.layout.layoutId?this.callback.Cz(this.slot,d,new m5("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.AA(this.slot,d),this.Dw.EM("impression"),gU(this.nx,d,"normal"))};
  9379. g.Q.OF=function(d,q){d.layoutId!==this.layout.layoutId?this.callback.Cz(this.slot,d,new m5("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.i$(this.slot,d,q)};g.Q=shg.prototype;g.Q.Sv=function(){return this.slot};
  9380. g.Q.e5=function(){return this.layout};
  9381. g.Q.init=function(){};
  9382. g.Q.release=function(){};
  9383. g.Q.startRendering=function(d){d.layoutId!==this.layout.layoutId?this.callback.Cz(this.slot,d,new m5("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.AA(this.slot,d),this.Dw.EM("impression"),gU(this.nx,d,"normal"))};
  9384. g.Q.OF=function(d,q){d.layoutId!==this.layout.layoutId?this.callback.Cz(this.slot,d,new m5("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.i$(this.slot,d,q)};fw.prototype.build=function(d,q,T,Y){if(!this.T2.get().J.C().N("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(Cw(Y,Jig()))return new Xk7(d,T,Y,this.Hv,this.nx)}else if(Cw(Y,{Pl:[],Dm:["LAYOUT_TYPE_FORECASTING"]}))return new shg(d,T,Y,this.Hv,this.nx);throw new m5("Unsupported layout with type: "+Y.layoutType+" and client metadata: "+v4(Y.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.M(Frn,TW);g.M(zS,J8);g.Q=zS.prototype;g.Q.init=function(){J8.prototype.init.call(this);var d=g.D(this.layout.renderingContent,vp)||l7(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),q={adsClientData:this.layout.HF};this.G.push(new Frn(d,l7(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,q))};
  9385. g.Q.q1=function(){this.T||this.Yx.get().resumeVideo(2)};
  9386. g.Q.startRendering=function(d){J8.prototype.startRendering.call(this,d);this.callback.AA(this.slot,d);this.S.o9=this};
  9387. g.Q.OF=function(d,q){J8.prototype.OF.call(this,d,q);V_(this.S,this)};
  9388. g.Q.Gu=function(d,q){if(!WA(this.T2.get(),"stop_handling_click_for_non_rendering_overlay_layout")||q===this.layout.layoutId){if(lv(this.X.get(),this.L))switch(d){case "visit-advertiser-link":gX(this.Hv.get(),3)}switch(d){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.T||this.Yx.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.T=this.Yx.get().wK(2))||this.Yx.get().pauseVideo();break;
  9389. case "visit-advertiser-link":this.Yx.get().pauseVideo();Nx_(this).SL();break;case "skip-button":if(d=Nx_(this),this.layout.renderingContent&&!ze(this.layout.clientMetadata,"metadata_type_dai")||!d||!d.E9){var T;(d=(T=l7(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:T.current)&&d.wl(this.Sv(),this.layout)}else Jm("Requesting to skip by LegacyPlayerBytes when components enabled"),d.Za(this.Sv(),this.layout)}}};
  9390. g.Q.ir=function(){J8.prototype.ir.call(this)};g.M(iO,J8);g.Q=iO.prototype;g.Q.init=function(){J8.prototype.init.call(this);var d=g.D(this.layout.renderingContent,lO)||l7(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),q={adsClientData:this.layout.HF},T;(T=!!this.layout.renderingContent)||(T=I5(this),T=!(T&&T.E9));this.G.push(new hm(d,this.layout.layoutId,l7(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),q,T))};
  9391. g.Q.q1=function(){this.T||this.Yx.get().resumeVideo(2)};
  9392. g.Q.startRendering=function(d){J8.prototype.startRendering.call(this,d);this.callback.AA(this.slot,d);this.S.o9=this};
  9393. g.Q.OF=function(d,q){J8.prototype.OF.call(this,d,q);V_(this.S,this)};
  9394. g.Q.Gu=function(d,q){if(!this.T2||!WA(this.T2.get(),"stop_handling_click_for_non_rendering_overlay_layout")||q===this.layout.layoutId){if(lv(this.X.get(),this.L))switch(d){case "visit-advertiser":gX(this.Hv.get(),3)}switch(d){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.T||this.Yx.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.T=this.Yx.get().wK(2))||this.Yx.get().pauseVideo();break;
  9395. case "visit-advertiser":this.Yx.get().pauseVideo();I5(this).SL();break;case "skip-button":if(d=I5(this),this.layout.renderingContent&&!ze(this.layout.clientMetadata,"metadata_type_dai")||!d||!d.E9){var T;(d=(T=l7(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:T.current)&&d.wl(this.Sv(),this.layout)}else Jm("Requesting to skip by LegacyPlayerBytes"),d.Za(this.Sv(),this.layout)}}};
  9396. g.Q.ir=function(){J8.prototype.ir.call(this)};g.M(xP2,TW);g.M(ma,J8);g.Q=ma.prototype;g.Q.startRendering=function(d){var q=this;XI(this.U,d,function(){q.G.push(new xP2(l7(q.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),d.layoutId,d.HF));q.QG();q.callback.AA(q.slot,d);g.I(ey(q.Yx.get(),1),512)&&q.callback.Cz(q.Sv(),q.e5(),new m5("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})};
  9397. g.Q.e0=function(){};
  9398. g.Q.mf=function(d){if(d.state.isError()){var q;this.callback.Cz(this.Sv(),this.e5(),new m5("A player error happened during adNotify",{playerErrorCode:(q=d.state.eF)==null?void 0:q.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}};
  9399. g.Q.onFullscreenToggled=function(){};
  9400. g.Q.bS=function(){};
  9401. g.Q.n8=function(){};
  9402. g.Q.P3=function(){};
  9403. g.Q.onVolumeChange=function(){};
  9404. g.Q.EN=function(){};
  9405. g.Q.L8=function(){};
  9406. g.Q.Gu=function(){};g.M(hs6,TW);g.M(SP,J8);SP.prototype.init=function(){J8.prototype.init.call(this);var d=g.D(this.layout.renderingContent,VT),q=s0(this.Dw);this.G.push(new hs6(d,q,this.layout.layoutId,{adsClientData:this.layout.HF}))};
  9407. SP.prototype.startRendering=function(d){J8.prototype.startRendering.call(this,d);this.callback.AA(this.slot,d)};
  9408. SP.prototype.Gu=function(d,q){if(q===this.layout.layoutId)switch(d){case "skip-button":var T;(d=(T=l7(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:T.current)&&d.wl(this.Sv(),this.layout)}};
  9409. SP.prototype.ir=function(){J8.prototype.ir.call(this)};HMN.prototype.build=function(d,q,T,Y){if(d=dP(d,T,Y,this.kB,this.Yx,this.Hv,this.U,this.G,this.T2))return d;throw new m5("Unsupported layout with type: "+Y.layoutType+" and client metadata: "+v4(Y.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.Q=YV.prototype;g.Q.Sv=function(){return this.slot};
  9410. g.Q.e5=function(){return this.layout};
  9411. g.Q.init=function(){this.Yx.get().addListener(this);this.Yx.get().N7.push(this);if(this.layout.renderingContent){var d=this.Xw.get();d=kx(d,1).L4/1E3}else d=l7(this.layout.clientMetadata,"metadata_type_video_length_seconds");var q=g.D(this.layout.renderingContent,fS),T=q?R5(q.pings):l7(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");q=q?Ld_(q.pings):l7(this.layout.clientMetadata,"metadata_type_active_view_identifier");No(this.layout.GG)&&UW(this.iF.get(),this.layout.layoutId,
  9412. {jE:T,Nx:d,listener:this,LK:q})};
  9413. g.Q.release=function(){this.Yx.get().removeListener(this);kdD(this.Yx.get(),this);No(this.layout.GG)&&bU(this.iF.get(),this.layout.layoutId)};
  9414. g.Q.startRendering=function(d){this.callback.AA(this.slot,d)};
  9415. g.Q.OF=function(d,q){e7(this,"abandon");this.callback.i$(this.slot,d,q)};
  9416. g.Q.EN=function(d){switch(d.id){case "part2viewed":this.Dw.EM("start");this.Dw.EM("impression");break;case "videoplaytime25":this.Dw.EM("first_quartile");break;case "videoplaytime50":this.Dw.EM("midpoint");break;case "videoplaytime75":this.Dw.EM("third_quartile");break;case "videoplaytime100":e7(this,"complete");jP(this.Dw)&&cp(this.Dw,Infinity,!0);break;case "engagedview":jP(this.Dw)||this.Dw.EM("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;
  9417. default:Jm("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}};
  9418. g.Q.onVolumeChange=function(){};
  9419. g.Q.P3=function(){};
  9420. g.Q.bS=function(){};
  9421. g.Q.n8=function(){};
  9422. g.Q.onFullscreenToggled=function(){};
  9423. g.Q.mf=function(d){this.G||(g.gs(d,4)&&!g.gs(d,2)?Mo(this.Dw,"pause"):$o(d,4)<0&&!($o(d,2)<0)&&Mo(this.Dw,"resume"))};
  9424. g.Q.e0=function(){};
  9425. g.Q.VB=function(d){jP(this.Dw)&&cp(this.Dw,d*1E3,!1)};
  9426. g.Q.L8=function(){e7(this,"swipe")};
  9427. g.Q.LZ=function(){this.Dw.EM("active_view_measurable")};
  9428. g.Q.Ff=function(){this.Dw.EM("active_view_viewable")};
  9429. g.Q.ND=function(){this.Dw.EM("active_view_fully_viewable_audible_half_duration")};
  9430. g.Q.nZ=function(){this.Dw.EM("audio_measurable")};
  9431. g.Q.eI=function(){this.Dw.EM("audio_audible")};Qh6.prototype.build=function(d,q,T,Y){if(T.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.D(Y.renderingContent,fS)!==void 0)return new YV(d,T,Y,this.Yx,this.Hv,this.T2,this.iF,this.Xw);q=["metadata_type_ad_placement_config"];for(var e=g.E(h8()),U=e.next();!U.done;U=e.next())q.push(U.value);if(Cw(Y,{Pl:q,Dm:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return T.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new YV(d,T,Y,this.Yx,this.Hv,this.T2,this.iF,this.Xw):new VnH(d,T,Y,this.Yx,this.Hv,
  9432. this.hA,this.T2,this.iF);throw new m5("Unsupported layout with type: "+Y.layoutType+" and client metadata: "+v4(Y.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var JQ={contentCpn:"",mJ:new Map};nPD.prototype.oN=function(d,q){var T={};q=Object.assign({},q,(T.cc=this.kP.dc(),T));this.kP.J.oU(d,q)};var dqB,wA;
  9433. dqB={Akg:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",zZv:"AUTHENTICATION_MALFORMED",pfU:"AUTHENTICATION_MISSING",Y6x:"BAD_REQUEST",J0U:"CAST_SESSION_DEVICE_MISMATCHED",RZw:"CAST_SESSION_VIDEO_MISMATCHED",v1Z:"CAST_TOKEN_EXPIRED",XfZ:"CAST_TOKEN_FAILED",q6r:"CAST_TOKEN_MALFORMED",mNO:"CGI_PARAMS_MALFORMED",S65:"CGI_PARAMS_MISSING",UQk:"DEVICE_FALLBACK",vqf:"GENERIC_WITH_LINK_AND_CPN",X3Z:"ERROR_HDCP",qNv:"LICENSE",SNr:"VIDEO_UNAVAILABLE",FTf:"FORMAT_UNAVAILABLE",WTw:"GEO_FAILURE",
  9434. iqf:"HTML5_AUDIO_RENDERER_ERROR",TBr:"GENERIC_WITHOUT_LINK",yp2:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",QQF:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",MVw:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",tVg:"HTML5_SPS_UMP_STATUS_REJECTED",Hqw:"INVALID_DRM_MESSAGE",QbD:"PURCHASE_NOT_FOUND",MHv:"PURCHASE_REFUNDED",hn5:"RENTAL_EXPIRED",RnF:"RETRYABLE_ERROR",nlw:"SERVER_ERROR",Z3F:"SIGNATURE_EXPIRED",wKv:"STOPPED_BY_ANOTHER_PLAYBACK",PVD:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",Gs5:"STREAMING_NOT_ALLOWED",
  9435. fbD:"STREAM_LICENSE_NOT_FOUND",QFD:"TOO_MANY_REQUESTS",MUk:"TOO_MANY_REQUESTS_WITH_LINK",tUw:"TOO_MANY_STREAMS_PER_ENTITLEMENT",z0k:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",NKr:"VIDEO_FORBIDDEN",Lmg:"VIDEO_NOT_FOUND",HxO:"BROWSER_OR_EXTENSION_ERROR"};wA={};
  9436. g.l0=(wA.ALREADY_PINNED_ON_A_DEVICE="\u4f60\u5c06\u6b64\u89c6\u9891\u4e0b\u8f7d\u5230\u7684\u8bbe\u5907\u7684\u6570\u91cf\u5df2\u8fbe\u5230\u5176\u7248\u6743\u6301\u6709\u8005\u89c4\u5b9a\u7684\u4e0a\u9650\u3002\u8981\u5728\u6b64\u8bbe\u5907\u4e0a\u64ad\u653e\uff0c\u5fc5\u987b\u5148\u5728\u53e6\u4e00\u8bbe\u5907\u4e2d\u53d6\u6d88\u56fa\u5b9a\u5b83\u3002",wA.DEVICE_FALLBACK="\u5f88\u62b1\u6b49\uff0c\u6b64\u89c6\u9891\u65e0\u6cd5\u5728\u8be5\u8bbe\u5907\u4e0a\u64ad\u653e\u3002",wA.GENERIC_WITH_LINK_AND_CPN=
  9437. "\u51fa\u4e86\u70b9\u95ee\u9898\u3002\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002\uff08\u64ad\u653e ID\uff1a$CPN\uff09$BEGIN_LINK\u4e86\u89e3\u8be6\u60c5$END_LINK",wA.LICENSE="\u5f88\u62b1\u6b49\uff0c\u4e3a\u6b64\u89c6\u9891\u6388\u4e88\u8bb8\u53ef\u65f6\u51fa\u9519\u3002",wA.VIDEO_UNAVAILABLE="\u89c6\u9891\u65e0\u6cd5\u64ad\u653e",wA.FORMAT_UNAVAILABLE="\u6b64\u89c6\u9891\u65e0\u6cd5\u4ee5\u6240\u9009\u753b\u8d28\u64ad\u653e\u3002\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002",wA.GEO_FAILURE="\u6b64\u89c6\u9891\u65e0\u6cd5\u5728\u4f60\u6240\u5728\u7684\u56fd\u5bb6/\u5730\u533a\u64ad\u653e\u3002",
  9438. wA.HTML5_AUDIO_RENDERER_ERROR="\u97f3\u9891\u6e32\u67d3\u5668\u9519\u8bef\u3002\u8bf7\u91cd\u542f\u8ba1\u7b97\u673a\u3002",wA.GENERIC_WITHOUT_LINK="\u51fa\u73b0\u9519\u8bef\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002",wA.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="\u4e0d\u652f\u6301\u6b64\u89c6\u9891\u683c\u5f0f\u3002",wA.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="\u4f60\u7684\u6d4f\u89c8\u5668\u76ee\u524d\u65e0\u6cd5\u8bc6\u522b\u4efb\u4f55\u53ef\u7528\u7684\u89c6\u9891\u683c\u5f0f\u3002$BEGIN_LINK\u8bf7\u70b9\u51fb\u6b64\u5904\uff0c\u67e5\u770b\u5173\u4e8eHTML5\u89c6\u9891\u7684\u5e38\u89c1\u95ee\u9898\u89e3\u7b54\u3002$END_LINK",
  9439. wA.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="\u4f60\u7684\u6d4f\u89c8\u5668\u65e0\u6cd5\u64ad\u653e\u6b64\u89c6\u9891\u3002$BEGIN_LINK\u4e86\u89e3\u8be6\u60c5$END_LINK",wA.HTML5_SPS_UMP_STATUS_REJECTED="\u51fa\u4e86\u70b9\u95ee\u9898\u3002\u8bf7\u5237\u65b0\u6216\u7a0d\u540e\u91cd\u8bd5\u3002$BEGIN_LINK\u4e86\u89e3\u8be6\u60c5$END_LINK",wA.INVALID_DRM_MESSAGE="DRM\u7cfb\u7edf\u4e13\u7528\u6d88\u606f\u65e0\u6548\u3002",wA.PURCHASE_NOT_FOUND="\u6b64\u89c6\u9891\u9700\u8981\u4ed8\u8d39\u3002",
  9440. wA.PURCHASE_REFUNDED="\u6b64\u89c6\u9891\u7684\u8d2d\u4e70\u8d39\u7528\u5df2\u9000\u8fd8\u3002",wA.RENTAL_EXPIRED="\u6b64\u89c6\u9891\u7684\u79df\u501f\u671f\u5df2\u8fc7\u3002",wA.CAST_SESSION_DEVICE_MISMATCHED="\u6295\u653e\u4f1a\u8bdd\u4e2d\u7684\u8bbe\u5907\u4e0e\u8981\u6c42\u7684\u8bbe\u5907\u4e0d\u76f8\u7b26\u3002",wA.CAST_SESSION_VIDEO_MISMATCHED="\u6295\u653e\u4f1a\u8bdd\u4e2d\u7684\u89c6\u9891\u4e0e\u8981\u6c42\u7684\u89c6\u9891\u4e0d\u76f8\u7b26\u3002",wA.CAST_TOKEN_FAILED="\u6295\u653e\u4f1a\u8bdd\u4e0d\u53ef\u7528\uff0c\u8bf7\u5237\u65b0\u6216\u7a0d\u540e\u91cd\u8bd5\u3002",
  9441. wA.CAST_TOKEN_EXPIRED="\u6295\u653e\u4f1a\u8bdd\u5df2\u5931\u6548\uff0c\u8bf7\u5237\u65b0\u3002",wA.CAST_TOKEN_MALFORMED="\u6295\u653e\u4f1a\u8bdd\u65e0\u6548\uff0c\u8bf7\u5237\u65b0\u6216\u7a0d\u540e\u91cd\u8bd5\u3002",wA.SERVER_ERROR="\u51fa\u73b0\u5185\u90e8\u670d\u52a1\u5668\u9519\u8bef\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002",wA.STOPPED_BY_ANOTHER_PLAYBACK="\u4f60\u7684\u8d26\u53f7\u6b63\u5728\u5176\u4ed6\u4f4d\u7f6e\u64ad\u653e\u6b64\u89c6\u9891\u3002\u8981\u7ee7\u7eed\u89c2\u770b\uff0c\u8bf7\u91cd\u65b0\u52a0\u8f7d\u6b64\u9875\u9762\u3002",
  9442. wA.STREAM_LICENSE_NOT_FOUND="\u89c6\u9891\u64ad\u653e\u5df2\u4e2d\u65ad\uff0c\u8bf7\u91cd\u8bd5\u3002",wA.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="\u8fc7\u53bb24\u5c0f\u65f6\u5185\u4f7f\u7528\u7684\u8bbe\u5907/IP\u5730\u5740\u592a\u591a\u3002",wA.STREAMING_NOT_ALLOWED="\u4e0d\u5141\u8bb8\u64ad\u653e\uff0c\u56e0\u4e3a\u6b64\u89c6\u9891\u5df2\u56fa\u5b9a\u5728\u53e6\u4e00\u53f0\u8bbe\u5907\u4e0a\u3002",wA.RETRYABLE_ERROR="\u51fa\u73b0\u6682\u65f6\u6027\u7684\u670d\u52a1\u5668\u9519\u8bef\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002",
  9443. wA.TOO_MANY_REQUESTS="\u8bf7\u767b\u5f55\u4ee5\u89c2\u770b\u6b64\u89c6\u9891\u3002",wA.TOO_MANY_REQUESTS_WITH_LINK="\u8981\u5728 YouTube \u4e0a\u89c2\u770b\u6b64\u89c6\u9891\uff0c\u8bf7$BEGIN_LINK\u70b9\u51fb\u6b64\u5904$END_LINK\u3002",wA.TOO_MANY_STREAMS_PER_USER="\u5df2\u505c\u6b62\u64ad\u653e\uff0c\u56e0\u4e3a\u76ee\u524d\u5728\u64ad\u653e\u7684\u89c6\u9891\u4e2d\u6709\u592a\u591a\u5c5e\u4e8e\u540c\u4e00\u8d26\u53f7\u3002",wA.TOO_MANY_STREAMS_PER_ENTITLEMENT="\u5df2\u505c\u6b62\u64ad\u653e\uff0c\u56e0\u4e3a\u6b64\u89c6\u9891\u5df2\u7ecf\u5728\u592a\u591a\u8bbe\u5907\u4e0a\u64ad\u653e\u8fc7\u3002",
  9444. wA.UNSUPPORTED_DEVICE="\u4e0d\u652f\u6301\u5728\u6b64\u8bbe\u5907\u4e0a\u64ad\u653e\u3002",wA.VIDEO_FORBIDDEN="\u4f60\u8981\u6c42\u8bbf\u95ee\u6b64\u89c6\u9891\u7684\u8bf7\u6c42\u88ab\u62d2\u3002",wA.VIDEO_NOT_FOUND="\u627e\u4e0d\u5230\u6b64\u89c6\u9891\u3002",wA.BROWSER_OR_EXTENSION_ERROR="\u51fa\u4e86\u70b9\u95ee\u9898\u3002\u8bf7\u5237\u65b0\u6216\u7a0d\u540e\u91cd\u8bd5\u3002$BEGIN_LINK\u4e86\u89e3\u8be6\u60c5$END_LINK",wA);var qwB;var TvQ=g.k9(),Ywx=TvQ.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Ywx||Ywx.length<2)qwB=void 0;else{var ekB=TvQ.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);qwB=ekB&&ekB.length===6?Number(ekB[5].replace("_",".")):0}var TZ=qwB,zV=TZ>=0;g.M(g.aI,cu);g.aI.prototype.W=function(d,q,T,Y,e){return cu.prototype.W.call(this,d,q,T,Y,e)};var f8={},uP=(f8.FAIRPLAY="fairplay",f8.PLAYREADY="playready",f8.WIDEVINE="widevine",f8.CLEARKEY=null,f8.FLASHACCESS=null,f8.UNKNOWN=null,f8.WIDEVINE_CLASSIC=null,f8);AQ.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var zo={},zG=(zo.WIDTH={name:"width",video:!0,valid:640,xl:99999},zo.HEIGHT={name:"height",video:!0,valid:360,xl:99999},zo.FRAMERATE={name:"framerate",video:!0,valid:30,xl:9999},zo.BITRATE={name:"bitrate",video:!0,valid:3E5,xl:2E9},zo.EOTF={name:"eotf",video:!0,valid:"bt709",xl:"catavision"},zo.CHANNELS={name:"channels",video:!1,valid:2,xl:99},zo.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",xl:"invalidformat"},zo.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false",
  9445. xl:"nope"},zo.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",xl:"av99.0.05M.08"},zo.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",xl:"invalid"},zo.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",xl:"false"},zo);var UqE=["h","H"],bp7=["9","("],Xz_=["9h","(h"],J0s=["8","*"],scN=["a","A"],$qj=["o","O"],gQI=["m","M"],FAI=["mac3","MAC3"],Nvn=["meac3","MEAC3"],iK={},uD_=(iK.h=UqE,iK.H=UqE,iK["9"]=bp7,iK["("]=bp7,iK["9h"]=Xz_,iK["(h"]=Xz_,iK["8"]=J0s,iK["*"]=J0s,iK.a=scN,iK.A=scN,iK.o=$qj,iK.O=$qj,iK.m=gQI,iK.M=gQI,iK.mac3=FAI,iK.MAC3=FAI,iK.meac3=Nvn,iK.MEAC3=Nvn,iK),RkR=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),ppj=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var v={},tQ=(v["0"]="f",v["160"]="h",v["133"]="h",v["134"]="h",v["135"]="h",v["136"]="h",v["137"]="h",v["264"]="h",v["266"]="h",v["138"]="h",v["298"]="h",v["299"]="h",v["304"]="h",v["305"]="h",v["214"]="h",v["216"]="h",v["374"]="h",v["375"]="h",v["140"]="a",v["141"]="a",v["327"]="sa",v["258"]="m",v["380"]="mac3",v["328"]="meac3",v["161"]="H",v["142"]="H",v["143"]="H",v["144"]="H",v["222"]="H",v["223"]="H",v["145"]="H",v["224"]="H",v["225"]="H",v["146"]="H",v["226"]="H",v["227"]="H",v["147"]="H",v["384"]=
  9446. "H",v["376"]="H",v["385"]="H",v["377"]="H",v["149"]="A",v["261"]="M",v["381"]="MAC3",v["329"]="MEAC3",v["598"]="9",v["278"]="9",v["242"]="9",v["243"]="9",v["244"]="9",v["775"]="9",v["776"]="9",v["777"]="9",v["778"]="9",v["779"]="9",v["780"]="9",v["781"]="9",v["782"]="9",v["783"]="9",v["247"]="9",v["248"]="9",v["353"]="9",v["355"]="9",v["356"]="9",v["271"]="9",v["577"]="9",v["313"]="9",v["579"]="9",v["272"]="9",v["302"]="9",v["303"]="9",v["407"]="9",v["408"]="9",v["308"]="9",v["315"]="9",v["330"]=
  9447. "9h",v["331"]="9h",v["332"]="9h",v["333"]="9h",v["334"]="9h",v["335"]="9h",v["336"]="9h",v["337"]="9h",v["338"]="so",v["600"]="o",v["250"]="o",v["251"]="o",v["774"]="o",v["194"]="*",v["195"]="*",v["220"]="*",v["221"]="*",v["196"]="*",v["197"]="*",v["279"]="(",v["280"]="(",v["317"]="(",v["318"]="(",v["273"]="(",v["274"]="(",v["357"]="(",v["358"]="(",v["275"]="(",v["359"]="(",v["360"]="(",v["276"]="(",v["583"]="(",v["584"]="(",v["314"]="(",v["585"]="(",v["561"]="(",v["277"]="(",v["361"]="(h",v["362"]=
  9448. "(h",v["363"]="(h",v["364"]="(h",v["365"]="(h",v["366"]="(h",v["591"]="(h",v["592"]="(h",v["367"]="(h",v["586"]="(h",v["587"]="(h",v["368"]="(h",v["588"]="(h",v["562"]="(h",v["409"]="(",v["410"]="(",v["411"]="(",v["412"]="(",v["557"]="(",v["558"]="(",v["394"]="1",v["395"]="1",v["396"]="1",v["397"]="1",v["398"]="1",v["399"]="1",v["720"]="1",v["721"]="1",v["400"]="1",v["401"]="1",v["571"]="1",v["402"]="1",v["694"]="1h",v["695"]="1h",v["696"]="1h",v["697"]="1h",v["698"]="1h",v["699"]="1h",v["700"]="1h",
  9449. v["701"]="1h",v["702"]="1h",v["703"]="1h",v["386"]="3",v["387"]="w",v["406"]="6",v["787"]="1",v["788"]="1",v["548"]="1e",v["549"]="1e",v["550"]="1e",v["551"]="1e",v["809"]="1e",v["810"]="1e",v["552"]="1e",v["811"]="1e",v["812"]="1e",v["553"]="1e",v["813"]="1e",v["814"]="1e",v["554"]="1e",v["815"]="1e",v["816"]="1e",v["555"]="1e",v["817"]="1e",v["818"]="1e",v["572"]="1e",v["556"]="1e",v["645"]="(",v["646"]="(",v["647"]="(",v["648"]="(",v["649"]="(",v["650"]="(",v["651"]="(",v["652"]="(",v["653"]="(",
  9450. v["654"]="(",v["655"]="(",v["656"]="(",v["657"]="(",v["658"]="(",v["659"]="(",v["660"]="(",v["661"]="(",v["662"]="(",v["663"]="(",v["664"]="(",v["665"]="(",v["666"]="(",v["667"]="(",v["668"]="(",v["669"]="(",v["670"]="(",v["671"]="(",v["672"]="(",v["673"]="(",v["674"]="(h",v["675"]="(h",v["676"]="(h",v["677"]="(h",v["678"]="(h",v["679"]="(h",v["680"]="(h",v["681"]="(h",v["682"]="(h",v["683"]="(h",v["684"]="(h",v["685"]="(h",v["686"]="(h",v["687"]="(h",v["688"]="A",v["689"]="A",v["690"]="A",v["691"]=
  9451. "MEAC3",v["773"]="i",v["806"]="I",v["805"]="I",v["829"]="9",v["830"]="9",v["831"]="9",v["832"]="9",v["833"]="9",v["834"]="9",v["835"]="9",v["836"]="9",v["892"]="9",v["893"]="9",v["837"]="9",v["838"]="9",v["839"]="9",v["840"]="9",v["841"]="(",v["842"]="(",v["843"]="(",v["844"]="(",v["845"]="(",v["846"]="(",v["847"]="(",v["848"]="(",v["894"]="(",v["895"]="(",v["849"]="(",v["850"]="(",v["851"]="(",v["852"]="(",v["865"]="9",v["866"]="9",v["867"]="9",v["868"]="9",v["869"]="9",v["870"]="9",v["871"]="9",
  9452. v["872"]="9",v["896"]="9",v["897"]="9",v["873"]="9",v["874"]="9",v["875"]="9",v["876"]="9",v["877"]="(",v["878"]="(",v["879"]="(",v["880"]="(",v["881"]="(",v["882"]="(",v["883"]="(",v["884"]="(",v["898"]="(",v["899"]="(",v["885"]="(",v["886"]="(",v["887"]="(",v["888"]="(",v);var IS={},ce7=(IS.STEREO_LAYOUT_UNKNOWN=0,IS.STEREO_LAYOUT_LEFT_RIGHT=1,IS.STEREO_LAYOUT_TOP_BOTTOM=2,IS);var my,rj;my={};g.ZB=(my.auto=0,my.tiny=144,my.light=144,my.small=240,my.medium=360,my.large=480,my.hd720=720,my.hd1080=1080,my.hd1440=1440,my.hd2160=2160,my.hd2880=2880,my.highres=4320,my);rj={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var ne="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");OJ.prototype.isHdr=function(){return this.G==="smpte2084"||this.G==="arib-std-b67"};BH.prototype.fz=function(){return this.containerType===2};
  9453. BH.prototype.isEncrypted=function(){return!!this.ac};
  9454. BH.prototype.JE=function(){return!!this.audio};
  9455. BH.prototype.eh=function(){return!!this.video};
  9456. var Le=!1;g.M(e1,g.YP);g.Q=e1.prototype;g.Q.appendBuffer=function(d,q,T){if(this.KC.iE()!==this.appendWindowStart+this.start||this.KC.nB()!==this.appendWindowEnd+this.start||this.KC.mz()!==this.timestampOffset+this.start)this.KC.supports(1),this.KC.qa(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.KC.Ii(this.timestampOffset+this.start);this.KC.appendBuffer(d,q,T)};
  9457. g.Q.abort=function(){this.KC.abort()};
  9458. g.Q.remove=function(d,q){this.KC.remove(d+this.start,q+this.start)};
  9459. g.Q.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)};
  9460. g.Q.clear=function(){this.KC.clear()};
  9461. g.Q.qa=function(d,q){this.appendWindowStart=d;this.appendWindowEnd=q};
  9462. g.Q.zI=function(){return this.timestampOffset+this.start};
  9463. g.Q.iE=function(){return this.appendWindowStart};
  9464. g.Q.nB=function(){return this.appendWindowEnd};
  9465. g.Q.Ii=function(d){this.timestampOffset=d};
  9466. g.Q.mz=function(){return this.timestampOffset};
  9467. g.Q.Zm=function(d){d=this.KC.Zm(d===void 0?!1:d);return Yx(d,this.start,this.end)};
  9468. g.Q.e8=function(){return this.KC.e8()};
  9469. g.Q.y_=function(){return this.KC.y_()};
  9470. g.Q.Ao=function(){return this.KC.Ao()};
  9471. g.Q.Ka=function(){return this.KC.Ka()};
  9472. g.Q.zc=function(){this.KC.zc()};
  9473. g.Q.o4=function(d){return this.KC.o4(d)};
  9474. g.Q.vu=function(){return this.KC.vu()};
  9475. g.Q.Wo=function(){return this.KC.Wo()};
  9476. g.Q.m6=function(d,q,T){this.KC.m6(d,q,T)};
  9477. g.Q.S2=function(d,q,T){this.KC.S2(d,q,T)};
  9478. g.Q.nD=function(d,q){return this.KC.nD(d,q)};
  9479. g.Q.supports=function(d){return this.KC.supports(d)};
  9480. g.Q.ZG=function(){return this.KC.ZG()};
  9481. g.Q.isView=function(){return!0};
  9482. g.Q.ZP=function(){return this.KC.ZP()?this.isActive:!1};
  9483. g.Q.isLocked=function(){return this.DZ&&!this.isActive};
  9484. g.Q.BF=function(d){d=this.KC.BF(d);d.vw=this.start+"-"+this.end;return d};
  9485. g.Q.Bo=function(){return this.KC.Bo()};
  9486. g.Q.h9=function(){return this.KC.h9()};
  9487. g.Q.o_=function(){return this.KC.o_()};
  9488. g.Q.ir=function(){this.KC.jC(this.Zj);g.YP.prototype.ir.call(this)};var KP=!1;g.M(bN,g.YP);g.Q=bN.prototype;g.Q.appendBuffer=function(d,q,T){this.Rv=!1;T&&(this.U2=T);if(d.length){var Y;((Y=this.RN)==null?0:Y.appendBuffer)?this.RN.appendBuffer(d):this.RN?this.RN.append(d):this.Jk&&this.Jk.webkitSourceAppend(this.id,d)}q&&(q.isEncrypted()&&(this.pT=this.U2),q.type===3&&(this.Or=q),this.fm.push(q.jt()),this.fm.length>4&&this.fm.shift());this.Yr&&(this.Yr.length>=2||d.length>1048576?delete this.Yr:this.Yr.push(d))};
  9489. g.Q.abort=function(){try{this.RN?this.RN.abort():this.Jk&&this.Jk.webkitSourceAbort(this.id)}catch(q){if(Yp6){var d=new g.CW("Error while abort the source buffer: "+q.name+", "+q.message);g.Zz(d)}}this.U2=this.Or=null};
  9490. g.Q.remove=function(d,q,T){this.Rv=!1;var Y;if((Y=this.RN)==null?0:Y.remove)T&&T({b:lW(this.Zm()),s:d,e:q}),this.RN.remove(d,q)};
  9491. g.Q.removeAll=function(){this.remove(this.iE(),this.nB())};
  9492. g.Q.clear=function(){this.Ao()||(this.abort(),this.removeAll(),this.pT=this.U2=this.Or=null,this.appendWindowStart=this.timestampOffset=0,this.QO=S7([],[]),this.Rv=!1,this.Yr=UX?[]:void 0,this.KR=!0)};
  9493. g.Q.iE=function(){if(KP&&this.eh)return this.appendWindowStart;var d;return((d=this.RN)==null?void 0:d.appendWindowStart)||0};
  9494. g.Q.nB=function(){var d;return((d=this.RN)==null?void 0:d.appendWindowEnd)||0};
  9495. g.Q.qa=function(d,q){this.RN&&(KP&&this.eh?(this.appendWindowStart=d,this.RN.appendWindowEnd=q):d>this.iE()?(this.RN.appendWindowEnd=q,this.RN.appendWindowStart=d):(this.RN.appendWindowStart=d,this.RN.appendWindowEnd=q))};
  9496. g.Q.zI=function(){return this.timestampOffset};
  9497. g.Q.Ii=function(d){KP?this.timestampOffset=d:this.supports(1)&&(this.RN.timestampOffset=d)};
  9498. g.Q.mz=function(){return KP?this.timestampOffset:this.supports(1)?this.RN.timestampOffset:0};
  9499. g.Q.Zm=function(d){if(d===void 0?0:d)return this.Rv||this.e8()||(this.QO=this.Zm(!1),this.Rv=!0),this.QO;try{return this.RN?this.RN.buffered:this.Jk?this.Jk.webkitSourceBuffered(this.id):S7([0],[Infinity])}catch(q){return S7([],[])}};
  9500. g.Q.e8=function(){var d;return((d=this.RN)==null?void 0:d.updating)||!1};
  9501. g.Q.Ao=function(){return this.KR};
  9502. g.Q.Ka=function(){return!this.KR&&this.e8()};
  9503. g.Q.zc=function(){this.KR=!1};
  9504. g.Q.o4=function(d){var q=d==null?void 0:d.Cf;d=d==null?void 0:d.containerType;return!q&&!d||q===this.Cf&&d===this.containerType};
  9505. g.Q.vu=function(){return this.U2};
  9506. g.Q.Wo=function(){return this.pT};
  9507. g.Q.nD=function(d,q){return this.containerType!==d||this.Cf!==q};
  9508. g.Q.m6=function(d,q,T){if(this.containerType!==d||T&&this.nD(d,T))this.supports(4),XD()&&this.RN.changeType(q),T&&(this.Cf=T);this.containerType=d};
  9509. g.Q.S2=function(d,q,T){this.containerType&&this.nD(d,q)&&XD()&&this.RN.changeType(T);this.containerType=d;this.Cf=q};
  9510. g.Q.ZG=function(){return this.Or};
  9511. g.Q.isView=function(){return!1};
  9512. g.Q.supports=function(d){switch(d){case 1:var q;return((q=this.RN)==null?void 0:q.timestampOffset)!==void 0;case 0:var T;return!((T=this.RN)==null||!T.appendBuffer);case 2:var Y;return!((Y=this.RN)==null||!Y.remove);case 3:var e,U;return!!(((e=this.RN)==null?0:e.addEventListener)&&((U=this.RN)==null?0:U.removeEventListener));case 4:return!(!this.RN||!this.RN.changeType);default:return!1}};
  9513. g.Q.ZP=function(){return!this.e8()};
  9514. g.Q.isLocked=function(){return!1};
  9515. g.Q.BF=function(d){d.to=this.mz();d.up=this.e8();var q,T=((q=this.RN)==null?void 0:q.appendWindowStart)||0,Y;q=((Y=this.RN)==null?void 0:Y.appendWindowEnd)||Infinity;d.aw=T.toFixed(3)+"-"+q.toFixed(3);return d};
  9516. g.Q.y_=function(){var d;return((d=this.RN)==null?void 0:d.writeHead)||0};
  9517. g.Q.Bo=function(){for(var d={},q=0;q<this.fm.length;q++)d["s"+q]=this.fm[q];return d};
  9518. g.Q.ir=function(){this.supports(3)&&(this.RN.removeEventListener("updateend",this.CC),this.RN.removeEventListener("error",this.CC));g.YP.prototype.ir.call(this)};
  9519. g.Q.h9=function(){return this.containerType};
  9520. g.Q.o_=function(){return this.Yr};
  9521. var UX=!1,Yp6=!1;Je.prototype.dispose=function(){if(!this.JF()){if(this.G)try{URL.revokeObjectURL(this.zG)}catch(d){}this.U=!0}};
  9522. Je.prototype.JF=function(){return this.U};
  9523. Je.prototype.equals=function(d){return d!==null&&d.zG===this.zG};
  9524. Je.prototype.toString=function(){return"MediaResource {"+this.zG+"}"};g.M(sX,g.W);g.Q=sX.prototype;g.Q.getDuration=function(){var d;return((d=this.ED)==null?void 0:d.duration)||this.K};
  9525. g.Q.lV=function(d){try{this.ED?this.ED.duration=d:(this.K=d,this.Jk.webkitSourceSetDuration(d))}catch(q){}};
  9526. g.Q.Zh=function(){try{return Rp(this)==="closed"}catch(d){return!0}};
  9527. g.Q.e8=function(){return!!(this.G&&this.G.e8()||this.U&&this.U.e8())};
  9528. g.Q.isAsync=function(){return this.G?!!this.G.supports(0):xx()};
  9529. g.Q.GX5=function(){!this.JF()&&$x(this)&&this.callback&&(this.callback(this),this.callback=null)};
  9530. g.Q.PCx=function(){this.dispose()};
  9531. g.Q.tf=function(d){if(gC&&!this.T&&d.Ao()&&d.Zm().length===0){var q;FD(this.mediaElement,{l:"mswoue",sr:(q=this.mediaElement.G2)==null?void 0:q.Tz()},!1);d.zc();this.Ao()||(this.mediaElement.HH=!0,this.mediaElement.setCurrentTime(0))}};
  9532. g.Q.clear=function(){uAN(this,function(){});
  9533. var d;(d=this.G)==null||d.clear();var q;(q=this.U)==null||q.clear()};
  9534. g.Q.Ao=function(){var d,q;return((d=this.U)==null?void 0:d.Ao())||((q=this.G)==null?void 0:q.Ao())};
  9535. g.Q.o4=function(d,q){return!!this.G&&!!this.U&&this.G.o4(q)&&this.U.o4(d)};
  9536. var gC=!1;yQ.prototype.then=function(d,q){return this.promise.then(d,q)};
  9537. yQ.prototype.resolve=function(d){this.MK(d)};
  9538. yQ.prototype.reject=function(d){this.oA(d)};g.M(he,g.W);g.Q=he.prototype;g.Q.l_=function(){return this.zG};
  9539. g.Q.activate=function(d){var q="";d&&(SxH(this,d),q=d.zG);if(!this.j0()||q)q&&this.j0()!==q&&(this.Pp(q),delete this.U,this.j&&(this.j.reject(),delete this.j),!window.MediaSource&&window.ManagedMediaSource&&this.EV(!(d==null||!d.G))),d&&d.G||this.load(),this.L||(this.addEventListener("volumechange",this.U_),this.L=!0)};
  9540. g.Q.Eg=function(d,q){if(this.U)if(THX&&NF(this.U)&&!this.U.o4(d,q)){var T;FD(this,{l:"megms",sr:(T=this.G2)==null?void 0:T.Tz()});Iy6(this);this.stopVideo()}else return this.ED=this.U,this.U=void 0,this.ED;d=window.MediaSource?new sX(this,new window.MediaSource,!1):window.ManagedMediaSource?new sX(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new sX(this,new window.WebKitMediaSource,!1):new sX(this,void 0,!1);this.activate(d.j);this.ED=d;this.HH=!1;return d};
  9541. g.Q.playVideo=function(){var d=this;this.isEnded()&&this.seekTo(0);!this.j0()&&this.zG&&(g.Zz(Error("playVideo without src")),this.Pp(this.zG.zG),this.zG.G||this.load());var q=this.play(),T;if((T=this.G2)==null||!T.N("html5_remove_ios_7_hack_force_play")){var Y;zV&&(TZ||0)>=7&&(!q||((Y=this.G2)==null?0:Y.N("mweb_ios_allow_playback_workaround_when_ready")))&&ri7(this,function(){g.s3(function(){mP2(d,d.getCurrentTime(),0)},500)})}return q};
  9542. g.Q.seekTo=function(d){this.Tr()>0&&(zV&&TZ<4&&(d=Math.max(.1,d)),this.setCurrentTime(d))};
  9543. g.Q.Zp=function(){if(!this.U&&this.ED)if(this.ED.S)try{var d;FD(this,{l:"mer",sr:(d=this.G2)==null?void 0:d.Tz(),rs:Rp(this.ED)});this.ED.clear();this.U=this.ED;this.ED=void 0}catch(q){d=new g.CW("Error while clearing Media Source in MediaElement: "+q.name+", "+q.message),g.Zz(d),this.stopVideo()}else this.stopVideo()};
  9544. g.Q.stopVideo=function(){var d=this;if(!this.U){var q;(q=this.ED)==null||zsX(q);if(drn){if(!this.j){var T=new yQ;T.then(void 0,function(){});
  9545. this.j=T;qpQ&&this.pause();g.s3(function(){d.j===T&&(MF(d),T.resolve())},200)}}else MF(this)}};
  9546. g.Q.sP=function(){var d=this.g1();return qF(d)&&this.getDuration()?Vb(d,this.getCurrentTime()):0};
  9547. g.Q.mE=function(){var d=this.getDuration();return d===Infinity?1:d?this.sP()/d:0};
  9548. g.Q.BF=function(){try{var d=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:lW(this.NT(),",",3),vbu:lW(this.g1()),vbs:lW(this.kF()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Tr(),vns:""+this.Va(),vec:""+this.nA(),vemsg:this.P4(),vvol:""+this.getVolume(),vdom:""+ +this.wj(),vsrc:""+ +!!this.j0(),vw:""+d.width,vh:""+d.height}}catch(q){return{}}};
  9549. g.Q.hasError=function(){return this.nA()>0};
  9550. g.Q.addEventListener=function(d,q){this.T.listen(d,q,!1,this);this.t_(d)};
  9551. g.Q.removeEventListener=function(d,q){this.T.t1(d,q,!1,this)};
  9552. g.Q.dispatchEvent=function(d){if(this.j&&d.type==="pause")return!1;if(THX){var q,T=((q=d.G)==null?void 0:q.timeStamp)||Infinity;q=T>performance.now()?T-Date.now()+performance.now():T;T=this.U||this.ED;if((T==null?0:T.Ao())||q<=((T==null?void 0:T.X)||0)){var Y;FD(this,{l:"mede",sr:(Y=this.G2)==null?void 0:Y.Tz(),et:d.type});return!1}if(this.HH)return FD(this,{l:"medes",et:d.type}),T&&d.type==="seeking"&&(T.X=performance.now(),this.HH=!1),!1}return this.T.dispatchEvent(d)};
  9553. g.Q.T6=function(){this.X=!1};
  9554. g.Q.G6=function(){this.X=!0;this.J4(!0)};
  9555. g.Q.U_=function(){this.X&&!this.CB()&&this.J4(!0)};
  9556. g.Q.equals=function(d){return!!d&&d.tA()===this.tA()};
  9557. g.Q.ir=function(){this.L&&this.removeEventListener("volumechange",this.U_);drn&&MF(this);g.W.prototype.ir.call(this)};
  9558. var drn=!1,qpQ=!1,THX=!1,vPf=!1;g.Q=g.EX.prototype;g.Q.isPaused=function(){return g.I(this,4)};
  9559. g.Q.isPlaying=function(){return g.I(this,8)&&!g.I(this,512)&&!g.I(this,64)&&!g.I(this,2)};
  9560. g.Q.isOrWillBePlaying=function(){return g.I(this,8)&&!g.I(this,2)&&!g.I(this,1024)};
  9561. g.Q.isCued=function(){return g.I(this,64)&&!g.I(this,8)&&!g.I(this,4)};
  9562. g.Q.isBuffering=function(){return g.I(this,1)&&!g.I(this,2)};
  9563. g.Q.isError=function(){return g.I(this,128)};
  9564. g.Q.isSuspended=function(){return g.I(this,512)};
  9565. g.Q.Kl=function(){return g.I(this,64)&&g.I(this,4)};
  9566. g.Q.toString=function(){return"PSt."+this.state.toString(16)};
  9567. var Sr={},lK=(Sr.BUFFERING="buffering-mode",Sr.CUED="cued-mode",Sr.ENDED="ended-mode",Sr.PAUSED="paused-mode",Sr.PLAYING="playing-mode",Sr.SEEKING="seeking-mode",Sr.UNSTARTED="unstarted-mode",Sr);g.M(Bl,g.W);g.Q=Bl.prototype;g.Q.Ft=function(){return this.j};
  9568. g.Q.Sv=function(){return this.slot};
  9569. g.Q.e5=function(){return this.layout};
  9570. g.Q.init=function(){var d=l7(this.layout.clientMetadata,"metadata_type_video_length_seconds"),q=l7(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");No(this.layout.GG)&&UW(this.iF.get(),this.layout.layoutId,{jE:q,Nx:d,listener:this,KS:this.pz()});OX2(this.Hv.get(),this);d=this.Df;q=this.layout.layoutId;var T={KS:this.pz()};d.G.set(q,T);this.u4()};
  9571. g.Q.pM=function(){};
  9572. g.Q.release=function(){No(this.layout.GG)&&bU(this.iF.get(),this.layout.layoutId);nDf(this.Hv.get(),this);this.Df.G.delete(this.layout.layoutId);this.jp()};
  9573. g.Q.u8=function(){};
  9574. g.Q.Ev=function(){};
  9575. g.Q.startRendering=function(d){gP(Kk(this));if(G5(this,d)){var q=this.G;Fg(q.params.cf.T2.get(),!0)&&OMf(q,"p_sr",{});Lk(this);this.HV(d);this.pz()||this.Nr(!1)}};
  9576. g.Q.AA=function(d,q){if(q.layoutId===this.layout.layoutId){this.WF="rendering";this.U=this.Yx.get().isMuted()||this.Yx.get().getVolume()===0;this.EM("impression");this.EM("start");if(this.Yx.get().isMuted()){D2(this,"mute");var T;d=((T=te(this))==null?void 0:T.muteCommands)||[];Gn(this.hA.get(),d,this.layout.layoutId)}if(this.Yx.get().isFullscreen()){this.Wr("fullscreen");var Y;T=((Y=te(this))==null?void 0:Y.fullscreenCommands)||[];Gn(this.hA.get(),T,this.layout.layoutId)}this.pz()||(Y=this.yU.get(),
  9577. Y.j&&!Y.U&&(Y.S=!1,Y.U=!0,Y.actionType!=="ad_to_video"&&(tU("pbs",void 0,Y.actionType),g.RD("finalize_all_timelines")&&JL6(Y.actionType))));this.wr(1);this.Q6(q);var e;q=((e=te(this))==null?void 0:e.impressionCommands)||[];Gn(this.hA.get(),q,this.layout.layoutId)}};
  9578. g.Q.He=function(d,q,T){this.L={gY:3,Ej:d==="load_timeout"?402:400,errorMessage:q.message};this.EM("error");var Y;d=((Y=te(this))==null?void 0:Y.errorCommands)||[];Gn(this.hA.get(),d,this.layout.layoutId);this.pz()||this.ai.Cz(this.slot,this.layout,q,T)};
  9579. g.Q.DB=function(){if(this.WF==="rendering"){D2(this,"pause");var d,q=((d=te(this))==null?void 0:d.pauseCommands)||[];Gn(this.hA.get(),q,this.layout.layoutId);this.wr(2)}};
  9580. g.Q.x0=function(){if(this.WF==="rendering"){D2(this,"resume");var d,q=((d=te(this))==null?void 0:d.resumeCommands)||[];Gn(this.hA.get(),q,this.layout.layoutId)}};
  9581. g.Q.Xs=function(d,q){q=q===void 0?!1:q;if(this.WF==="rendering"){var T={currentTimeSec:d,flush:q};NI(this.G,"p_ip",T);cp(this.Dw,d*1E3,q);this.U||cp(this.Dw,d*1E3,q===void 0?!1:q);var Y=this.Bs();if(Y){Y/=1E3;if(d>=Y*.25||q)this.EM("first_quartile"),NI(this.G,"p_fq",T);if(d>=Y*.5||q)this.EM("midpoint"),NI(this.G,"p_sq",T);if(d>=Y*.75||q)this.EM("third_quartile"),NI(this.G,"p_tq",T);this.T2.get().J.C().experiments.Wv("enable_progress_command_flush_on_kabuki")?rX(this.T,d*1E3,q):rX(this.T,d*1E3,YPn(this)?
  9582. q:!1)}}};
  9583. g.Q.dc=function(){var d;return((d=kx(this.Xw.get(),1))==null?void 0:d.clientPlaybackNonce)||""};
  9584. g.Q.EC=function(d,q){d.layoutId!==this.layout.layoutId?this.ai.Cz(this.slot,d,new m5("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"):q()};
  9585. g.Q.i$=function(d,q,T){if(q.layoutId===this.layout.layoutId)switch(this.WF="not_rendering",this.layoutExitReason=void 0,this.pz()||(d=T!=="normal"||this.position+1===this.X)&&this.Nr(d),this.FJ(T),this.wr(0),T){case "abandoned":if(E0(this.Dw,"impression")){var Y,e=((Y=te(this))==null?void 0:Y.abandonCommands)||[];Gn(this.hA.get(),e,this.layout.layoutId)}break;case "normal":Y=((e=te(this))==null?void 0:e.completeCommands)||[];Gn(this.hA.get(),Y,this.layout.layoutId);break;case "skipped":var U;Y=((U=
  9586. te(this))==null?void 0:U.skipCommands)||[];Gn(this.hA.get(),Y,this.layout.layoutId)}};
  9587. g.Q.Z6=function(){return this.layout.layoutId};
  9588. g.Q.eX=function(){return this.L};
  9589. g.Q.LZ=function(){if(this.WF==="rendering"){this.Dw.EM("active_view_measurable");var d,q=((d=te(this))==null?void 0:d.activeViewMeasurableCommands)||[];Gn(this.hA.get(),q,this.layout.layoutId)}};
  9590. g.Q.ND=function(){if(this.WF==="rendering"){this.Dw.EM("active_view_fully_viewable_audible_half_duration");var d,q=((d=te(this))==null?void 0:d.activeViewFullyViewableAudibleHalfDurationCommands)||[];Gn(this.hA.get(),q,this.layout.layoutId)}};
  9591. g.Q.Ff=function(){if(this.WF==="rendering"){this.Dw.EM("active_view_viewable");var d,q=((d=te(this))==null?void 0:d.activeViewViewableCommands)||[];Gn(this.hA.get(),q,this.layout.layoutId)}};
  9592. g.Q.eI=function(){if(this.WF==="rendering"){this.Dw.EM("audio_audible");var d,q=((d=te(this))==null?void 0:d.activeViewAudioAudibleCommands)||[];Gn(this.hA.get(),q,this.layout.layoutId)}};
  9593. g.Q.nZ=function(){if(this.WF==="rendering"){this.Dw.EM("audio_measurable");var d,q=((d=te(this))==null?void 0:d.activeViewAudioMeasurableCommands)||[];Gn(this.hA.get(),q,this.layout.layoutId)}};
  9594. g.Q.Nr=function(d){this.yU.get().Nr(l7(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,d,this.position,this.X,!1)};
  9595. g.Q.onFullscreenToggled=function(d){if(this.WF==="rendering")if(d){this.Wr("fullscreen");var q,T=((q=te(this))==null?void 0:q.fullscreenCommands)||[];Gn(this.hA.get(),T,this.layout.layoutId)}else this.Wr("end_fullscreen"),q=((T=te(this))==null?void 0:T.endFullscreenCommands)||[],Gn(this.hA.get(),q,this.layout.layoutId)};
  9596. g.Q.onVolumeChange=function(){if(this.WF==="rendering")if(this.Yx.get().isMuted()){D2(this,"mute");var d,q=((d=te(this))==null?void 0:d.muteCommands)||[];Gn(this.hA.get(),q,this.layout.layoutId)}else D2(this,"unmute"),d=((q=te(this))==null?void 0:q.unmuteCommands)||[],Gn(this.hA.get(),d,this.layout.layoutId)};
  9597. g.Q.bS=function(){};
  9598. g.Q.n8=function(){};
  9599. g.Q.P3=function(){};
  9600. g.Q.EN=function(){};
  9601. g.Q.L8=function(){};
  9602. g.Q.Wr=function(d){this.Dw.Wr(d,!this.U)};
  9603. g.Q.EM=function(d){this.Dw.EM(d,!this.U)};
  9604. g.Q.pz=function(){var d=l7(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return d===void 0?(Jm("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.T2.get().pz(d)};g.M(Ip,Bl);g.Q=Ip.prototype;g.Q.u4=function(){};
  9605. g.Q.jp=function(){var d=this.Hv.get();d.r5===this&&(d.r5=null);this.timer.stop()};
  9606. g.Q.u8=function(){this.timer.stop();Bl.prototype.DB.call(this)};
  9607. g.Q.Ev=function(){S1(this);Bl.prototype.x0.call(this)};
  9608. g.Q.Bs=function(){return l7(this.e5().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
  9609. g.Q.OF=function(d,q){var T=this;this.EC(d,function(){T.WF!=="rendering_stop_requested"&&(T.WF="rendering_stop_requested",T.layoutExitReason=q,Pl(T,q),T.timer.stop())})};
  9610. g.Q.Yc=function(){var d=Date.now(),q=d-this.bj;this.bj=d;this.MQ+=q;this.MQ>=this.Bs()?this.Lc():(this.Xs(this.MQ/1E3),mi(this,this.MQ))};
  9611. g.Q.FJ=function(){};
  9612. g.Q.e0=function(){};
  9613. g.M(lN,Ip);g.Q=lN.prototype;g.Q.mf=function(d){if(this.WF!=="not_rendering"){d=Wl(this,d);var q=this.Yx.get().getPresentingPlayerType()===2;this.WF==="rendering_start_requested"?q&&qI(d)&&this.Gk():q?g.gs(d,2)?Jm("Receive player ended event during MediaBreak",this.Sv(),this.e5()):Ck(this,d):this.wD()}};
  9614. g.Q.HV=function(){qPH(this);WeX(this.Yx.get());this.Hv.get().r5=this;nU("pbp")||nU("pbs")||tU("pbp");nU("pbp","watch")||nU("pbs","watch")||tU("pbp",void 0,"watch");this.Gk()};
  9615. g.Q.Q6=function(d){this.yU.get();var q=l7(d.clientMetadata,"metadata_type_ad_placement_config").kind,T=this.position===0;d=l7(d.clientMetadata,"metadata_type_linked_in_player_layout_type");d={adBreakType:uN(q),adType:Rvg(d)};var Y=void 0;T?q!=="AD_PLACEMENT_KIND_START"&&(Y="video_to_ad"):Y="ad_to_ad";pU("ad_mbs",void 0,Y);g.ZO(d,Y);S1(this)};
  9616. g.Q.wD=function(){this.e9()};
  9617. g.Q.Lc=function(){UY1(this);this.e9()};
  9618. g.M(vl,Ip);g.Q=vl.prototype;g.Q.mf=function(d){this.WF!=="not_rendering"&&(d=Wl(this,d),Ck(this,d))};
  9619. g.Q.HV=function(){Jm("Not used in SSAP")};
  9620. g.Q.Q6=function(){S1(this)};
  9621. g.Q.wD=function(){Jm("Not used in SSAP")};
  9622. g.Q.Lc=function(){UY1(this);this.ai.rp(this.Sv(),this.e5(),"normal")};
  9623. g.M(op,vl);op.prototype.OF=function(d,q){var T=this;this.EC(d,function(){bW(T.j,q)&&(T.WF="rendering_stop_requested",T.layoutExitReason=q,Pl(T,q),T.timer.stop())})};
  9624. op.prototype.startRendering=function(d){gP(Kk(this));G5(this,d)&&(Lk(this),this.Hv.get().r5=this)};g.M(qB,Bl);g.Q=qB.prototype;g.Q.wD=function(){this.e9()};
  9625. g.Q.mf=function(d){if(this.WF!=="not_rendering"){d=Wl(this,d);var q=this.Yx.get().getPresentingPlayerType()===2;this.WF==="rendering_start_requested"?q&&qI(d)&&this.Gk():!q||g.gs(d,2)?this.e9():Ck(this,d)}};
  9626. g.Q.u4=function(){l7(this.e5().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=l7(this.e5().clientMetadata,"metadata_type_shrunken_player_bytes_config")};
  9627. g.Q.jp=function(){l7(this.e5().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.jF){var d=this.context.cf,q=this.jF,T=this.e5().layoutId;if(Fg(d.T2.get(),!0)){var Y={};d.oN("mccru",(Y.cid=q,Y.p_ac=T,Y))}this.l$.get().removeCueRange(this.jF)}this.jF=void 0;var e;(e=this.UU)==null||e.dispose();this.xM&&this.xM.dispose()};
  9628. g.Q.HV=function(d){var q=VQ(this.T2.get()),T=dU(this.T2.get());if(q&&T&&!this.pz()){T=l7(d.clientMetadata,"metadata_type_preload_player_vars");var Y=this.T2.get();Y=g.Yv(Y.J.C().experiments,"html5_preload_wait_time_secs");T&&this.xM&&this.xM.start(Y*1E3)}Jm_(this,d);qPH(this);q?(T=this.UF.get(),d=l7(d.clientMetadata,"metadata_type_player_vars"),T.J.loadVideoByPlayerVars(d,!1,2)):du_(this.UF.get(),l7(d.clientMetadata,"metadata_type_player_vars"));var e;(e=this.UU)==null||e.start();q||this.UF.get().J.playVideo(2)};
  9629. g.Q.Q6=function(){var d;(d=this.UU)==null||d.stop();this.sb();(this.adCpn=dYn(this))||Jm("Media layout confirmed started, but ad CPN not set.");this.FC.get().qd("onAdStart",this.adCpn);this.aS=Date.now()};
  9630. g.Q.Bs=function(){var d;return(d=kx(this.Xw.get(),2))==null?void 0:d.L4};
  9631. g.Q.SL=function(){this.Dw.Wr("clickthrough")};
  9632. g.Q.OF=function(d,q){var T=this;this.EC(d,function(){if(T.WF!=="rendering_stop_requested"){T.WF="rendering_stop_requested";T.layoutExitReason=q;Pl(T,q);var Y;(Y=T.UU)==null||Y.stop();T.xM&&T.xM.stop();suQ(T)}})};
  9633. g.Q.onCueRangeEnter=function(d){if(d!==this.jF)Jm("Received CueRangeEnter signal for unknown layout.",this.Sv(),this.e5(),{cueRangeId:d});else{var q=this.context.cf,T=this.e5().layoutId;if(Fg(q.T2.get(),!0)){var Y={};q.oN("mccre",(Y.cid=d,Y.p_ac=T,Y))}this.l$.get().removeCueRange(this.jF);this.jF=void 0;WA(this.context.T2.get(),"html5_ssap_flush_at_stop_rendering")&&this.pz()||(d=l7(this.e5().clientMetadata,"metadata_type_video_length_seconds"),this.Xs(d,!0),this.EM("complete"))}};
  9634. g.Q.FJ=function(d){d!=="abandoned"&&this.FC.get().qd("onAdComplete");this.FC.get().qd("onAdEnd",this.adCpn)};
  9635. g.Q.sb=function(){this.jF="adcompletioncuerange:"+this.e5().layoutId;this.l$.get().addCueRange(this.jF,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var d=this.context.cf,q=this.jF,T=this.e5().layoutId;if(Fg(d.T2.get(),!0)){var Y={};d.oN("mccr",(Y.cid=q,Y.p_ac=T,Y))}};
  9636. g.Q.onCueRangeExit=function(){};
  9637. g.Q.e0=function(d){this.WF==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&d>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Yx.get().Kt(!0),this.Xs(d))};
  9638. g.Q.Xs=function(d,q){Bl.prototype.Xs.call(this,d,q===void 0?!1:q);q=Date.now()-this.aS;var T=d*1E3,Y={contentCpn:this.dc(),adCpn:dYn(this)};if(d-this.ER>=5){var e=q<T*.4?0:1;UP(e,"n.k_",{metadata:Y,AR:q,gX:Math.floor(T/1E3)});Wq("NKDSTAT",e);if(q=e===0)q=l7(this.Sv().clientMetadata,"metadata_type_player_bytes_slot_metadata"),q===void 0&&Jm("PlayerBytesSlotMetadata is not filled",this.Sv(),this.e5()),q=(q==null?void 0:q.Px)===!0;q&&this.FC.get().qd("onAbnormalityDetected");this.ER=d}};g.M(YK,qB);YK.prototype.mf=function(d){this.WF!=="not_rendering"&&(d=Wl(this,d),Ck(this,d))};
  9639. YK.prototype.HV=function(){Jm("Not used in SSAP")};
  9640. g.M(Tu,YK);Tu.prototype.OF=function(d,q){var T=this;this.EC(d,function(){if(bW(T.j,q)){T.WF="rendering_stop_requested";T.layoutExitReason=q;Pl(T,q);if(WA(T.context.T2.get(),"html5_ssap_flush_at_stop_rendering")&&q==="normal"){var Y=l7(T.e5().clientMetadata,"metadata_type_video_length_seconds");T.Xs(Y,!0)}suQ(T)}})};
  9641. Tu.prototype.startRendering=function(d){gP(Kk(this));G5(this,d)&&(Lk(this),Jm_(this,d))};g.M(U_,g.W);g.Q=U_.prototype;g.Q.init=function(){var d=l7(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");d&&(d.current=this);this.Xw.get().addListener(this);this.NC.init();Mxj([this.layout],this.Xw.get());this.V1()};
  9642. g.Q.V1=function(){var d=l7(this.NC.e5().clientMetadata,"metadata_type_player_vars");d?this.UF.get().addPlayerResponseForAssociation({playerVars:d}):(d=xY7(this.NC.e5()),this.UF.get().addPlayerResponseForAssociation({d7:d}))};
  9643. g.Q.xt=function(){};
  9644. g.Q.Sv=function(){return this.slot};
  9645. g.Q.e5=function(){return this.layout};
  9646. g.Q.u8=function(){this.NC.u8()};
  9647. g.Q.Ev=function(){this.NC.Ev()};
  9648. g.Q.Za=function(){Jm("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter. Skip should be handled by Triggers")};
  9649. g.Q.AA=function(d,q){this.NC.AA(d,q)};
  9650. g.Q.Ec=function(){};
  9651. g.Q.dU=function(){};
  9652. g.Q.s$=function(){};
  9653. g.Q.bv=function(){};
  9654. g.Q.a6=function(){};
  9655. g.Q.Hr=function(){};
  9656. g.Q.uS=function(){};
  9657. g.Q.Cj=function(){};
  9658. g.Q.Uc=function(){};
  9659. g.Q.qp=function(){};
  9660. g.Q.e0=function(d){this.NC.e0(d)};
  9661. g.Q.onFullscreenToggled=function(d){this.NC.onFullscreenToggled(d)};
  9662. g.Q.bS=function(d){this.NC.bS(d)};
  9663. g.Q.P3=function(d){this.NC.P3(d)};
  9664. g.Q.onVolumeChange=function(){this.NC.onVolumeChange()};
  9665. g.Q.EN=function(){};
  9666. g.Q.L8=function(){};
  9667. g.Q.n8=function(){};
  9668. g.Q.vH=function(){return this.Yx.get().getPresentingPlayerType()===2};
  9669. g.Q.De=function(d){AiI({cpn:d,kP:this.Xw.get(),jc:!0});this.layout.layoutId===d&&(sVg(this.bC,this.slot.slotId),this.Ov.AA(this.slot,this.layout))};
  9670. g.Q.startRendering=function(d){if(d.layoutId!==this.layout.layoutId)return void Jm("wrong layout");this.Yx.get().addListener(this);bG(this.cF(),this);this.NC.startRendering(this.layout)};
  9671. g.Q.mf=function(d){this.NC.mf(d)};
  9672. g.Q.i$=function(d,q,T){this.NC.i$(d,q,T)};
  9673. g.Q.release=function(){this.Xw.get().removeListener(this);this.NC.release();ciD();XX(this.cF(),this)};
  9674. g.Q.OI=function(){return WA(this.params.context.T2.get(),"html5_ssap_exit_without_waiting_for_transition")};
  9675. g.Q.OF=function(d,q){d.layoutId!==this.layout.layoutId?Jm("wrong layout"):this.OI()&&this.NC.Ft().currentState>=2||(this.NC.OF(this.layout,q),d=WA(this.params.context.T2.get(),"html5_ssap_pass_transition_reason")&&q==="abandoned",this.vH()&&!d&&(WA(this.params.context.T2.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(q)||Jm("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:q})),this.Gq.get().finishSegmentByCpn(this.layout.layoutId,
  9676. kx(this.Xw.get(),1).clientPlaybackNonce,fk(q,this.params.context.T2))),this.Yx.get().removeListener(this),this.OI()&&Xg(this.NC.Ft())&&this.Ov.i$(this.slot,this.layout,this.NC.Ft().G))};
  9677. g.Q.xQ=function(d,q,T){pk1({cpn:d,kP:this.Xw.get(),jc:!0});this.e5().layoutId!==d||WA(this.params.context.T2.get(),"html5_ssap_pass_transition_reason")&&T===5||(this.NC.Ft().currentState<2&&(d=z5(T,this.params.context.T2),d==="error"?this.Ov.Cz(this.slot,this.layout,new m5("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:T},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):gU(this.MU,
  9678. this.layout,d)),WA(this.params.context.T2.get(),"html5_ssap_exit_without_waiting_for_transition")||this.Ov.i$(this.slot,this.layout,this.NC.Ft().G))};g.M(bu,g.W);g.Q=bu.prototype;g.Q.Sv=function(){return this.slot};
  9679. g.Q.e5=function(){return this.layout};
  9680. g.Q.xt=function(){};
  9681. g.Q.WA=function(){return this.gU[this.rS]};
  9682. g.Q.hp=function(){return this.rS};
  9683. g.Q.u8=function(d,q){var T=this.WA();q.layoutId!==JP(T,d,q)?Jm("pauseLayout for a PlayerBytes layout that is not currently active",d,q):T.u8()};
  9684. g.Q.Ev=function(d,q){var T=this.WA();q.layoutId!==JP(T,d,q)?Jm("resumeLayout for a PlayerBytes layout that is not currently active",d,q):T.Ev()};
  9685. g.Q.Za=function(d,q){var T=this.WA();Quf(this,d,q);MC7(T,d,q)&&this.X0(T.Sv(),T.e5(),"skipped")};
  9686. g.Q.wl=function(d,q){var T=this.WA();cm7(this);EoH(T,d,q)&&(d=juj(this,T,d,q),d!==void 0&&(this.pz()?Jm("Should not happen. Should delete"):AmN(this,T.Sv(),T.e5(),d)))};
  9687. g.Q.bR=function(d,q){var T=Object.assign({},XF(this),{layoutId:q.layoutId}),Y=T.layoutId,e=T.jc;if(T.KS){var U={};$V(T.kP,"wrse",(U.ec=Y,U.is=e,U.ctp=sJ(Y),U))}HA(this.bu,d,q)};
  9688. g.Q.AA=function(d,q){var T;(T=this.WA())==null||T.AA(d,q)};
  9689. g.Q.i$=function(d,q,T){q.layoutId===this.e5().layoutId&&(this.Oq=!1,XX(this.cF(),this));var Y;(Y=this.WA())==null||Y.i$(d,q,T)};
  9690. g.Q.e0=function(d){var q;(q=this.WA())==null||q.e0(d)};
  9691. g.Q.pO=function(d,q,T){this.hp()===-1&&(this.callback.AA(this.slot,this.layout),this.rS++);var Y=this.WA();Y?(Y.He(d,q,T),this.pz()&&this.callback.Cz(this.slot,this.layout,q,T)):Jm("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.hp()),layoutId:this.e5().layoutId})};
  9692. g.Q.onFullscreenToggled=function(d){var q;(q=this.WA())==null||q.onFullscreenToggled(d)};
  9693. g.Q.bS=function(d){var q;(q=this.WA())==null||q.bS(d)};
  9694. g.Q.P3=function(d){var q;(q=this.WA())==null||q.P3(d)};
  9695. g.Q.onVolumeChange=function(){var d;(d=this.WA())==null||d.onVolumeChange()};
  9696. g.Q.nu=function(d,q,T){Qz(this.bu,d,q,T)};
  9697. g.Q.j2=function(d){d.startRendering(d.e5())};
  9698. g.Q.init=function(){var d=l7(this.e5().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");d&&(d.current=this);if(this.gU.length<1)throw new S("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.gU.length)});if(d=l7(this.e5().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))d.current=this;d=g.E(this.gU);for(var q=d.next();!q.done;q=d.next())q=q.value,q.init(),I52(this.bu,this.slot,q.e5()),m9_(this.bu,this.slot,q.e5());
  9699. if(this.pz())for(this.Xw.get().addListener(this),Mxj(HGN(this),this.Xw.get()),d=HGN(this),d=g.E(d),q=d.next();!q.done;q=d.next())this.V1(q.value)};
  9700. g.Q.V1=function(d){var q=l7(d.clientMetadata,"metadata_type_player_vars");q?(d.layoutType!=="LAYOUT_TYPE_MEDIA"&&Jm("Non-video ad contains playerVars",this.slot,d),this.UF.get().addPlayerResponseForAssociation({playerVars:q})):(d=xY7(d),this.UF.get().addPlayerResponseForAssociation({d7:d}))};
  9701. g.Q.release=function(){var d=l7(this.e5().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");d&&(d.current=null);if(d=l7(this.e5().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))d.current=null;d=g.E(this.gU);for(var q=d.next();!q.done;q=d.next())q=q.value,Su_(this.bu,this.slot,q.e5()),q.release();this.pz()&&(this.Xw.get().removeListener(this),ciD())};
  9702. g.Q.EC=function(d){return d.layoutId!==this.e5().layoutId?(this.callback.Cz(this.Sv(),d,new m5("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.e5().layoutId+("and LayoutType: "+this.e5().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0};
  9703. g.Q.R1=function(){this.Yx.get().addListener(this);bG(this.cF(),this)};
  9704. g.Q.mf=function(d){if(d.state.isError()){var q,T;this.pO((q=d.state.eF)==null?void 0:q.errorCode,new m5("There was a player error during this media layout.",{playerErrorCode:(T=d.state.eF)==null?void 0:T.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(q=this.WA())&&q.mf(d)};
  9705. g.Q.pz=function(){var d=l7(this.Sv().clientMetadata,"metadata_type_eligible_for_ssap");return d===void 0?(Jm("Expected SSAP eligibility in PlayerBytes slots",this.Sv(),this.e5()),!1):this.T2.get().pz(d)};
  9706. g.Q.n8=function(){};
  9707. g.Q.Ec=function(){};
  9708. g.Q.dU=function(){};
  9709. g.Q.s$=function(){};
  9710. g.Q.bv=function(){};
  9711. g.Q.a6=function(){};
  9712. g.Q.Hr=function(){};
  9713. g.Q.uS=function(){};
  9714. g.Q.Cj=function(){};
  9715. g.Q.Uc=function(){};
  9716. g.Q.qp=function(){};
  9717. g.Q.EN=function(){};
  9718. g.Q.L8=function(){};
  9719. g.M(FF,bu);g.Q=FF.prototype;g.Q.uR=function(d,q,T){this.X0(d,q,T)};
  9720. g.Q.Hn=function(d,q){this.X0(d,q,"error")};
  9721. g.Q.X0=function(d,q,T){var Y=this;a06(this,d,q,T,function(){s_(Y,Y.hp()+1)})};
  9722. g.Q.startRendering=function(d){this.EC(d)&&(this.R1(),vZn(this.yU.get()),edj(this.T2.get())||WeX(this.Yx.get()),this.hp()===-1&&s_(this,this.hp()+1))};
  9723. g.Q.OF=function(d,q){var T=this;this.Oq=!0;this.hp()===this.gU.length?this.callback.i$(this.slot,this.layout,q):(d=this.WA(),d.OF(d.e5(),q),this.TV=function(){T.callback.i$(T.slot,T.layout,q)});
  9724. this.Yx.get().J.xI();du_(this.UF.get(),{});d=ey(this.Yx.get(),1);d.isPaused()&&!g.I(d,2)&&this.Yx.get().playVideo();this.Yx.get().removeListener(this);this.Oq&&pGX(this)};
  9725. g.Q.xQ=function(){};
  9726. g.Q.De=function(){};
  9727. g.Q.rp=function(){};
  9728. g.M(NB,bu);g.Q=NB.prototype;g.Q.uR=function(d,q,T){d=Object.assign({},XF(this),{layoutId:q.layoutId,layoutExitReason:T});q=d.layoutId;T=d.layoutExitReason;var Y={};$V(d.kP,"prse",(Y.xc=q,Y.ler=T,Y.ctp=sJ(q),Y))};
  9729. g.Q.Hn=function(){Jm("onSubLayoutError in SSAP")};
  9730. g.Q.X0=function(){Jm("exitSubLayoutAndPlayNext in SSAP")};
  9731. g.Q.WA=function(){return this.I6};
  9732. g.Q.hp=function(){var d=this;return this.gU.findIndex(function(q){var T;return q.e5().layoutId===((T=d.I6)==null?void 0:T.e5().layoutId)})};
  9733. g.Q.j2=function(d){X$(this.I6===void 0,"replacing another adapter");this.I6=d;d.startRendering(d.e5())};
  9734. g.Q.nu=function(d,q,T){Qz(this.bu,d,q,T);var Y;X$(q.layoutId===((Y=this.I6)==null?void 0:Y.e5().layoutId),"currentAdapter does not match exiting layout",{slot:d?"slot: "+d.slotType:"",subLayout:b2(q)})&&(this.I6=void 0)};
  9735. g.Q.release=function(){bu.prototype.release.call(this);X$(this.I6===void 0,"currentAdapter is still active during release");this.I6=void 0};
  9736. g.Q.vH=function(){return this.Yx.get().getPresentingPlayerType()===2};
  9737. g.Q.OF=function(d,q){function T(){R0(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(q)||Jm("Composite stopRendering: Unexpected layout exit reason",this.slot,d,{layoutExitReason:q}))}
  9738. function Y(){this.I6&&xK(this,this.I6,q);if(this.vH()&&(!R0(this)||q!=="abandoned")){T.call(this);var U;var b=((U=this.Xw.get().J.getVideoData())==null?void 0:U.clientPlaybackNonce)||"";U=kx(this.Xw.get(),1).clientPlaybackNonce;this.Gq.get().finishSegmentByCpn(b,U,fk(q,this.T2))}ZGg(this,q)}
  9739. function e(){if(this.I6){var U=this.I6;U.Ft().currentState<2&&U.OF(U.e5(),q);U=R0(this)&&q==="abandoned";this.vH()&&!U&&(T.call(this),this.Gq.get().finishSegmentByCpn(this.I6.e5().layoutId,kx(this.Xw.get(),1).clientPlaybackNonce,fk(q,this.T2)))}}
  9740. X$(d.layoutId===this.e5().layoutId,"StopRendering for wrong layout")&&bW(this.I9.U,q)&&(this.OI()?Y.call(this):e.call(this))};
  9741. g.Q.i$=function(d,q,T){bu.prototype.i$.call(this,d,q,T);q.layoutId===this.e5().layoutId&&this.Yx.get().removeListener(this)};
  9742. g.Q.dc=function(){return kx(this.Xw.get(),1).clientPlaybackNonce};
  9743. g.Q.xQ=function(d,q,T){pk1(Object.assign({},XF(this),{cpn:d}));if(!R0(this)||T!==5)if(this.OI()){if(this.I6&&this.I6.e5().layoutId!==q){var Y=this.I6.e5().layoutId;Y!==d&&Jm("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:Y,exitingCpn:d,enteringCpn:q});d=z5(T,this.T2);xK(this,this.I6,d)}else this.I6&&Jm("onClipExited: active layout is entering again");q===this.dc()&&noI(this,T)}else{if(this.I6&&this.I6.e5().layoutId===d)OG_(this,this.I6,T);else{var e;Jm("Exiting cpn does not match active cpn",
  9744. this.slot,(Y=this.I6)==null?void 0:Y.e5(),{exitingCpn:d,transitionReason:T,activeCpn:(e=this.I6)==null?void 0:e.e5().layoutId})}q===this.dc()&&(this.I6!==void 0&&(Jm("active adapter is not properly exited",this.slot,this.layout,{activeLayout:b2(this.I6.e5())}),OG_(this,this.I6,T)),noI(this,T),ZGg(this,this.I9.U.G))}};
  9745. g.Q.OI=function(){return WA(this.T2.get(),"html5_ssap_exit_without_waiting_for_transition")};
  9746. g.Q.startRendering=function(d){this.EC(d)&&(d=this.I9,X$(d.G===1,"tickStartRendering: state is not initial"),d.G=2,this.R1())};
  9747. g.Q.De=function(d){AiI(Object.assign({},XF(this),{cpn:d}));var q=this.gU.find(function(T){return T.e5().layoutId===d});
  9748. q?(this.I9.G!==2&&(sVg(this.bC,this.slot.slotId),X$(this.I9.G===2,"Expect started"),this.callback.AA(this.slot,this.layout)),this.j2(q),HA(this.bu,this.slot,q.e5())):rmn(this,d)};
  9749. g.Q.Za=function(d,q){Quf(this,d,q);var T=this.WA();T?MC7(T,d,q)&&tC1(this,"skipped"):BsN(this,"onSkipRequested")};
  9750. g.Q.wl=function(d,q){var T;a:{if(T=this.WA()){if(cm7(this),EoH(T,d,q)&&(d=juj(this,T,d,q),d!==void 0)){T={Nm:T,Ycw:this.gU[d]};break a}}else BsN(this,"SkipWithAdPodSkip");T=void 0}if(d=T)T=d.Nm,q=d.Ycw,d=T.e5().layoutId,this.OI()?xK(this,T,"skipped"):T.OF(T.e5(),"skipped"),T=q.e5().layoutId,this.Gq.get().finishSegmentByCpn(d,T,fk("skipped",this.T2))};
  9751. g.Q.bR=function(){Jm("Not used in html5_ssap_fix_layout_exit")};
  9752. g.Q.mf=function(d){var q;(q=this.WA())==null||q.mf(d)};
  9753. g.Q.pO=function(){Jm("Not used in html5_ssap_fix_layout_exit")};
  9754. g.Q.rp=function(d,q,T){var Y;if(((Y=this.WA())==null?void 0:Y.e5().layoutId)!==q.layoutId)return void Jm("requestToExitSubLayout: wrong layout");tC1(this,T)};g.M(yj,g.W);g.Q=yj.prototype;g.Q.Sv=function(){return this.NC.Sv()};
  9755. g.Q.e5=function(){return this.NC.e5()};
  9756. g.Q.init=function(){var d=l7(this.e5().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");d&&(d.current=this);this.u4()};
  9757. g.Q.u4=function(){this.NC.init()};
  9758. g.Q.release=function(){var d=l7(this.e5().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");d&&(d.current=null);this.jp()};
  9759. g.Q.jp=function(){this.NC.release()};
  9760. g.Q.u8=function(){this.NC.u8()};
  9761. g.Q.Ev=function(){this.NC.Ev()};
  9762. g.Q.Za=function(d,q){Jm("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.Sv(),this.e5(),{requestingSlot:d,requestingLayout:q})};
  9763. g.Q.startRendering=function(d){d.layoutId!==this.e5().layoutId?this.callback.Cz(this.Sv(),d,new m5("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.e5().layoutId+("and LayoutType: "+this.e5().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Yx.get().addListener(this),bG(this.cF(),this),vZn(this.yU.get()),edj(this.T2.get())||WeX(this.Yx.get()),this.NC.startRendering(d))};
  9764. g.Q.OF=function(d,q){this.Oq=!0;this.NC.OF(d,q);this.Yx.get().J.xI();du_(this.UF.get(),{});d=ey(this.Yx.get(),1);d.isPaused()&&!g.I(d,2)&&this.Yx.get().playVideo();this.Yx.get().removeListener(this);this.Oq&&this.NC.wD()};
  9765. g.Q.AA=function(d,q){this.NC.AA(d,q)};
  9766. g.Q.i$=function(d,q,T){q.layoutId===this.e5().layoutId&&(this.Oq=!1,XX(this.cF(),this));this.NC.i$(d,q,T);q.layoutId===this.e5().layoutId&&$K(this.yU.get())};
  9767. g.Q.e0=function(d){this.NC.e0(d)};
  9768. g.Q.mf=function(d){if(d.state.isError()){var q,T;this.pO((q=d.state.eF)==null?void 0:q.errorCode,new m5("There was a player error during this media layout.",{playerErrorCode:(T=d.state.eF)==null?void 0:T.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.NC.mf(d)};
  9769. g.Q.pO=function(d,q,T){this.NC.He(d,q,T)};
  9770. g.Q.onFullscreenToggled=function(d){this.NC.onFullscreenToggled(d)};
  9771. g.Q.bS=function(d){this.NC.bS(d)};
  9772. g.Q.P3=function(d){this.NC.P3(d)};
  9773. g.Q.onVolumeChange=function(){this.NC.onVolumeChange()};
  9774. g.Q.n8=function(){};
  9775. g.Q.Ec=function(){};
  9776. g.Q.dU=function(){};
  9777. g.Q.s$=function(){};
  9778. g.Q.bv=function(){};
  9779. g.Q.a6=function(){};
  9780. g.Q.Hr=function(){};
  9781. g.Q.uS=function(){};
  9782. g.Q.Cj=function(){};
  9783. g.Q.Uc=function(){};
  9784. g.Q.qp=function(){};
  9785. g.Q.EN=function(){};
  9786. g.Q.L8=function(){};g.Q=hP.prototype;g.Q.Sv=function(){return this.slot};
  9787. g.Q.e5=function(){return this.layout};
  9788. g.Q.init=function(){this.eT.get().addListener(this);this.Yx.get().addListener(this);var d=l7(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var q=l7(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.T){var T=this.eT.get().gp.slice(-1)[0];T!==void 0&&(d=T.startSecs*1E3,q=(T.startSecs+T.sS)*1E3)}this.pM(d,q);var Y;T=(Y=this.Xw.get().h6)==null?void 0:Y.clientPlaybackNonce;Y=this.layout.HF.adClientDataEntry;Hn(this.Hv.get(),{daiStateTrigger:{filledAdsDurationMs:q-d,contentCpn:T,
  9789. adClientData:Y}});var e=this.eT.get();e=LV1(e.j,d,q);e!==null&&(Hn(this.Hv.get(),{daiStateTrigger:{filledAdsDurationMs:e-d,contentCpn:T,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:Y}}),this.Gq.get().tI(e,q))};
  9790. g.Q.release=function(){this.jp();this.eT.get().removeListener(this);this.Yx.get().removeListener(this)};
  9791. g.Q.startRendering=function(){this.HV();this.callback.AA(this.slot,this.layout)};
  9792. g.Q.OF=function(d,q){this.jD(q);this.driftRecoveryMs!==null&&(Qj(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(kc1(this)-l7(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.Yx.get().J.Jt()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.i$(this.slot,this.layout,q)};
  9793. g.Q.b6=function(){return!1};
  9794. g.Q.KT=function(d){var q=l7(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),T=l7(this.layout.clientMetadata,"metadata_type_layout_exit_ms");d*=1E3;if(q<=d&&d<T){var Y;Hn(this.Hv.get(),{daiStateTrigger:{filledAdsDurationMs:d-q,contentCpn:(Y=this.Xw.get().h6)==null?void 0:Y.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.HF.adClientDataEntry}});this.Gq.get().tI(d,T)}};
  9795. g.Q.e0=function(d){this.DO(d);d=FU(this.Yx.get(),2,!0);if(lv(this.S.get(),this.layout.layoutId)){var q=l7(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),T=this.driftRecoveryMs;if(!(T===null||d*1E3<q+T)){this.driftRecoveryMs=null;var Y=kc1(this),e=this.Yx.get().J.Jt(),U=Math.min(d+e,Y/1E3);U<=d?Qj(this,{driftRecoveryMs:T.toString(),breakDurationMs:Math.round(Y-q).toString(),driftFromHeadMs:Math.round(e*1E3).toString()}):(Qj(this,{driftRecoveryMs:T.toString(),breakDurationMs:Math.round(Y-
  9796. q).toString(),driftFromHeadMs:Math.round(e*1E3).toString(),appliedDriftRecoveryMs:Math.round(d*1E3-q).toString(),destinationMs:Math.round(U*1E3-q).toString()}),this.Yx.get().J.seekTo(U,void 0,void 0,1))}}};
  9797. g.Q.bS=function(){};
  9798. g.Q.n8=function(){};
  9799. g.Q.P3=function(){};
  9800. g.Q.onVolumeChange=function(){};
  9801. g.Q.EN=function(){};
  9802. g.Q.L8=function(){};g.M(MB,hP);g.Q=MB.prototype;g.Q.pM=function(d,q){this.Xw.get().addListener(this);if(this.T){var T=d,Y=0,e=[];d=this.j.slice();d.sort(function(U,b){return l7(U.e5().clientMetadata,"metadata_type_media_sub_layout_index")-l7(b.e5().clientMetadata,"metadata_type_media_sub_layout_index")});
  9803. d.forEach(function(U){var b=T,J=l7(U.e5().clientMetadata,"metadata_type_video_length_seconds"),F=Math.min(b+J*1E3,q);T=F;Y++;e.push(J);U.pM(b,F)})}else this.j.forEach(function(U){U.init()});
  9804. this.U!=null&&cn(this.Hv.get(),"ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.U)};
  9805. g.Q.jp=function(){this.Xw.get().removeListener(this);this.G=null;this.j.forEach(function(d){d.release()})};
  9806. g.Q.HV=function(){if(this.G)Jm("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.U)});else{var d,q=(d=this.Xw.get().h6)==null?void 0:d.layoutId;WVI(this,q)}};
  9807. g.Q.jD=function(d){var q,T,Y,e;(Y=this.G)==null||(e=Y.rr)==null||e.OF((q=this.G)==null?void 0:(T=q.rr)==null?void 0:T.e5(),d);this.G=null};
  9808. g.Q.xt=function(d){var q=d.videoId;d=d.layoutId;if(q==="nPpU29QrbiU"){var T,Y;cn(this.Hv.get(),"ads_ssmplra_opdcs","vid."+q+";lid."+this.layout.layoutId+";smlid."+this.U+";slrs."+!!this.G+";slrslid."+((T=this.G)==null?void 0:(Y=T.rr)==null?void 0:Y.e5().layoutId))}if(this.G){var e;if(((e=this.G.rr)==null?void 0:e.e5().layoutId)===d)Jm("Unexpected transition into the same layout ID",this.slot,this.layout,{layoutId:d});else{var U,b;(b=this.G.rr)==null||b.OF((U=this.G.rr)==null?void 0:U.e5(),"normal");
  9809. WVI(this,d)}}};
  9810. g.Q.xQ=function(){};
  9811. g.Q.De=function(){};
  9812. g.Q.DO=function(){};
  9813. g.Q.mf=function(){};
  9814. g.Q.onFullscreenToggled=function(){};g.Q=l01.prototype;g.Q.Sv=function(){return this.slot};
  9815. g.Q.e5=function(){return this.layout};
  9816. g.Q.Ft=function(){Jm("Should not get exitStateMachine for DAI");return new UJ};
  9817. g.Q.pM=function(d,q){var T=this;l7(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.HG=C2X(this.slot,this.layout,l7(this.layout.clientMetadata,"metadata_type_player_vars"),d,q,l7(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.Gq.get(),this.UQ.get(),function(){var Y=Object,e=Y.assign,U=pd(T.layout);var b=l7(T.slot.clientMetadata,"metadata_type_fulfilled_layout")||T.slot.fulfilledLayout;var J=l7(b.clientMetadata,"metadata_type_sub_layouts")||
  9818. b.iV;b=Object.assign({},pd(b),{adPlacementConfig:l7(b.clientMetadata,"metadata_type_ad_placement_config"),subLayouts:(J||[]).map(pd)});return e.call(Y,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},U,{compositeLayout:b,hasSurveyOverlay:ze(T.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:l7(T.layout.clientMetadata,"metadata_type_survey_overlay")})},this.Hv.get());
  9819. this.Yx.get().addListener(this);d=l7(this.layout.clientMetadata,"metadata_type_video_length_seconds");q=l7(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");No(this.layout.GG)&&UW(this.iF.get(),this.layout.layoutId,{jE:q,Nx:d,listener:this});I52(this.callback,this.slot,this.layout);m9_(this.callback,this.slot,this.layout)};
  9820. g.Q.init=function(){var d=l7(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),q=l7(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.pM(d,q)};
  9821. g.Q.release=function(){this.Yx.get().removeListener(this);No(this.layout.GG)&&bU(this.iF.get(),this.layout.layoutId);this.T2.get();Su_(this.callback,this.slot,this.layout);if(J6I(this.T2.get())){if(this.jF){var d;cn(this.Hv.get(),"ads_ccru","acpn."+((d=kx(this.Xw.get(),2))==null?void 0:d.clientPlaybackNonce)+";cr."+this.jF);this.l$.get().removeCueRange(this.jF)}this.jF=void 0}};
  9822. g.Q.startRendering=function(){var d=this;ze(this.layout.clientMetadata,"metadata_type_survey_overlay")&&cn(this.Hv.get(),"ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.WF)Jm("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:ze(this.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:l7(this.layout.clientMetadata,"metadata_type_survey_overlay")});else{this.WF={GH:null,AP:!1};this.G=!1;if(TuX(this.T2.get())){var q;this.adCpn=
  9823. (q=kx(this.Xw.get(),2))==null?void 0:q.clientPlaybackNonce}this.T2.get().J.C().experiments.Wv("html5_disable_sodar_for_tvhtml5")||u$I(this.slot,this.layout,this.DY.get());No(this.layout.GG)&&Rd7(this.iF.get(),this.layout.layoutId);this.Dw.EM("start");if(uv(this.T2.get())){q=ey(this.Yx.get());var T=l7(this.layout.clientMetadata,"metadata_type_video_length_seconds"),Y=FU(this.Yx.get(),2,!1);DYI(this.Dw,this.WF.GH,q,T,Y,function(){return void oo_(d,"teois")},kx(this.Xw.get(),1).y5)}HA(this.callback,
  9824. this.slot,this.layout);
  9825. J6I(this.T2.get())&&(this.adCpn||Jm("Media layout confirmed started, but ad CPN not set."),this.sb());ze(this.layout.clientMetadata,"metadata_type_survey_overlay")&&cn(this.Hv.get(),"ads_ssmlra_sre","lid."+this.layout.layoutId)}};
  9826. g.Q.OF=function(d,q){var T=this;if(this.WF){if(uv(this.T2.get()))if(this.HG===null)Jm("Unexpected media sub layout exited without a timeline playback ID");else{d=l7(this.layout.clientMetadata,"metadata_type_video_length_seconds");var Y=Nk(this.Yx.get(),this.HG);TuX(this.T2.get())&&this.adCpn===void 0&&Jm("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:l7(this.layout.clientMetadata,"metadata_type_content_cpn")});PnX(this.Dw,Y,this.adCpn);jd(this.Dw,null,this.WF.GH,d,Y,kx(this.Xw.get(),
  9827. 1).y5,function(e){return void vof(T,e,"fue")},TuX(this.T2.get()),J6I(this.T2.get()))}this.WF=null;
  9828. Qz(this.callback,this.slot,this.layout,this.G&&this.T2.get().J.C().N("dai_layout_log_skip_exit_reason")?"skipped":q)}else Jm("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
  9829. g.Q.onCueRangeEnter=function(d){if(d!==this.jF)Jm("Received CueRangeEnter signal for unknown layout.",this.Sv(),this.e5(),{cueRangeId:d});else if(this.adCpn===void 0&&Jm("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:l7(this.layout.clientMetadata,"metadata_type_content_cpn")}),E0(this.Dw,"impression")&&uv(this.T2.get()))if(this.HG===null)Jm("Unexpected cue range enter without a timeline playback ID");else{var q=Nk(this.Yx.get(),this.HG),T;cn(this.Hv.get(),"ads_ccre","cpn."+
  9830. l7(this.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((T=kx(this.Xw.get(),2))==null?void 0:T.clientPlaybackNonce)+";cr."+d+";cts."+q);this.l$.get().removeCueRange(this.jF);this.jF=void 0;this.Dw.EM("complete")}};
  9831. g.Q.onCueRangeExit=function(){};
  9832. g.Q.He=function(){};
  9833. g.Q.wD=function(){};
  9834. g.Q.e0=function(d){var q=this;if(this.WF){if(E0(this.Dw,"impression")){var T=ey(this.Yx.get()),Y=l7(this.layout.clientMetadata,"metadata_type_video_length_seconds");a0(this.Dw,T,d,this.WF.GH,Y,function(e){return void vof(q,e,"tpaqe")})}this.WF.GH=d}};
  9835. g.Q.mf=function(d){var q=this;if(this.WF){uv(this.T2.get())||this.WF.AP||(this.WF.AP=!0,d=new g.sP(d.state,new g.EX));var T=l7(this.layout.clientMetadata,"metadata_type_video_length_seconds"),Y=FU(this.Yx.get(),2,!1);E_(this.Dw,this.WF.GH,d,T,Y,kx(this.Xw.get(),1).y5,!uv(this.T2.get()),function(){return void oo_(q,"teosc")})}};
  9836. g.Q.onFullscreenToggled=function(d){wGX(this.Dw,d)};
  9837. g.Q.bS=function(){};
  9838. g.Q.n8=function(){};
  9839. g.Q.P3=function(){};
  9840. g.Q.Za=function(d,q){var T;d=this.Hv.get();var Y="ti."+E0(this.Dw,"impression")+";ts."+E0(this.Dw,"skip")+";hp.",e;var U=!((e=this.Dw.j.get("skip"))==null||!e.length);cn(d,"ads_dsr",Y+U+";cpn."+l7(this.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((T=kx(this.Xw.get(),2))==null?void 0:T.clientPlaybackNonce)+";sl."+(l7(q.clientMetadata,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));E0(this.Dw,"impression")&&this.Dw.EM("skip");q=kx(this.Xw.get(),1).y5;this.G=!0;
  9841. this.Gq.get().oF(q)||(this.G=!1,Jm("Unexpected failure to skip a server stitched ad",this.slot,this.layout))};
  9842. g.Q.onVolumeChange=function(){};
  9843. g.Q.AA=function(){};
  9844. g.Q.i$=function(){};
  9845. g.Q.u8=function(){};
  9846. g.Q.Ev=function(){};
  9847. g.Q.SL=function(){f0n(this.Dw)};
  9848. g.Q.LZ=function(){zv2(this.Dw)};
  9849. g.Q.ND=function(){iGf(this.Dw)};
  9850. g.Q.Ff=function(){I0D(this.Dw)};
  9851. g.Q.eI=function(){mY6(this.Dw)};
  9852. g.Q.nZ=function(){SPn(this.Dw)};
  9853. g.Q.EN=function(){};
  9854. g.Q.L8=function(){};
  9855. g.Q.sb=function(){if(!this.jF){this.jF="adcompletioncuerange:"+this.e5().layoutId;this.l$.get().addCueRange(this.jF,0x7ffffffffffff,0x8000000000000,!1,this,2,2,this.adCpn);var d;cn(this.Hv.get(),"ads_ccr","acpn."+((d=kx(this.Xw.get(),2))==null?void 0:d.clientPlaybackNonce)+";cr."+this.jF)}};g.M(ZD,hP);g.Q=ZD.prototype;
  9856. g.Q.pM=function(){var d=this;l7(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;var q=l7(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),T=l7(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.HG=C2X(this.slot,this.layout,l7(this.layout.clientMetadata,"metadata_type_player_vars"),q,T,l7(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.Gq.get(),this.UQ.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:q,
  9857. exitMs:T,adPlacementConfig:l7(d.layout.clientMetadata,"metadata_type_ad_placement_config")}},this.Hv.get());
  9858. var Y=l7(this.layout.clientMetadata,"metadata_type_video_length_seconds"),e=l7(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");No(this.layout.GG)&&UW(this.iF.get(),this.layout.layoutId,{jE:e,Nx:Y,listener:this})};
  9859. g.Q.jp=function(){No(this.layout.GG)&&bU(this.iF.get(),this.layout.layoutId)};
  9860. g.Q.HV=function(){var d=this;if(this.WF)Jm("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.WF={GH:null,AP:!1},u$I(this.slot,this.layout,this.DY.get()),this.Dw.EM("start"),uv(this.T2.get())){var q=ey(this.Yx.get()),T=l7(this.layout.clientMetadata,"metadata_type_video_length_seconds"),Y=FU(this.Yx.get(),2,!1);DYI(this.Dw,this.WF.GH,q,T,Y,function(){return void VC2(d,"teois")},!1)}};
  9861. g.Q.jD=function(){var d=this;if(this.WF){if(uv(this.T2.get()))if(this.HG===null)Jm("Unexpected single media layout exited without a timeline playback ID");else{var q=l7(this.layout.clientMetadata,"metadata_type_video_length_seconds"),T=Nk(this.Yx.get(),this.HG);PnX(this.Dw,T);jd(this.Dw,null,this.WF.GH,q,T,!1,function(Y){return void d3f(d,Y,"fue")})}this.WF=null}else Jm("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
  9862. g.Q.DO=function(d){var q=this;if(this.WF){if(E0(this.Dw,"impression")){var T=ey(this.Yx.get()),Y=l7(this.layout.clientMetadata,"metadata_type_video_length_seconds");a0(this.Dw,T,d,this.WF.GH,Y,function(e){return void d3f(q,e,"tpaqe")})}this.WF.GH=d}};
  9863. g.Q.mf=function(d){var q=this;if(this.WF){uv(this.T2.get())||this.WF.AP||(this.WF.AP=!0,d=new g.sP(d.state,new g.EX));var T=l7(this.layout.clientMetadata,"metadata_type_video_length_seconds"),Y=FU(this.Yx.get(),2,!1);E_(this.Dw,this.WF.GH,d,T,Y,!1,!uv(this.T2.get()),function(){return void VC2(q,"teosc")})}};
  9864. g.Q.onFullscreenToggled=function(d){wGX(this.Dw,d)};
  9865. g.Q.SL=function(){f0n(this.Dw)};
  9866. g.Q.LZ=function(){zv2(this.Dw)};
  9867. g.Q.ND=function(){iGf(this.Dw)};
  9868. g.Q.Ff=function(){I0D(this.Dw)};
  9869. g.Q.eI=function(){mY6(this.Dw)};
  9870. g.Q.nZ=function(){SPn(this.Dw)};O_.prototype.build=function(d,q,T,Y){if(ze(T.clientMetadata,"metadata_type_dai")){var e=l7(Y.clientMetadata,"metadata_type_ad_placement_config");Cw(Y,{Pl:"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(" "),Dm:["LAYOUT_TYPE_MEDIA"]})&&e!==void 0?(e=new yT(Y.GG,this.Hv,e,Y.layoutId,null),e=new ZD(d,T,Y,this.Xw,this.Gq,this.UQ,this.eT,this.Yx,e,this.Hv,this.DY,
  9871. this.G,this.iF,this.T2)):e=null;if(e)return e;a:{var U,b=(U=Y.iV)!=null?U:l7(Y.clientMetadata,"metadata_type_sub_layouts");e=l7(Y.clientMetadata,"metadata_type_ad_placement_config");if(Cw(Y,{Pl:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],Dm:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&b!==void 0&&e!==void 0){U=[];b=g.E(b);for(var J=b.next();!J.done;J=b.next()){J=J.value;var F=l7(J.clientMetadata,"metadata_type_media_sub_layout_index");if(!Cw(J,{Pl:"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(" "),
  9872. Dm:["LAYOUT_TYPE_MEDIA"]})||F===void 0){d=null;break a}F=new yT(J.GG,this.Hv,e,J.layoutId,F);U.push(new l01(q,T,J,this.Gq,F,this.Yx,this.UQ,this.iF,this.DY,this.T2,this.Hv,this.Xw,this.l$))}q=new yT(Y.GG,this.Hv,e,Y.layoutId);d=new MB(d,T,Y,this.Xw,this.Gq,this.eT,this.Yx,q,this.Hv,this.G,U)}else d=null}if(d)return d}else if(d=GcQ(d,q,T,Y,this.cF,this.bC,this.nx,this.Hv,this.iF,this.DY,this.UF,this.Xw,this.Yx,this.ol,this.l$,this.yU,this.FC,this.hA,this.XW,this.T2,this.Gq,this.context,this.Df))return d;
  9873. throw new m5("Unsupported layout with type: "+Y.layoutType+" and client metadata: "+v4(Y.clientMetadata)+" in PlayerBytesLayoutRenderingAdapterFactory.");};nd.prototype.build=function(d,q,T,Y){if(d=GcQ(d,q,T,Y,this.cF,this.bC,this.nx,this.Hv,this.iF,this.DY,this.UF,this.Xw,this.Yx,this.ol,this.l$,this.yU,this.FC,this.hA,this.XW,this.T2,this.Gq,this.context,this.Df))return d;throw new m5("Unsupported layout with type: "+Y.layoutType+" and client metadata: "+v4(Y.clientMetadata)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.M(qGD,TW);g.M(rU,J8);rU.prototype.startRendering=function(d){var q=s0(this.Dw),T={adsClientData:this.layout.HF};this.G.push(new qGD(l7(this.layout.clientMetadata,"metadata_type_valid_survey_text_interstitial_renderer"),q,this.e5().layoutId,T));J8.prototype.startRendering.call(this,d);this.callback.AA(this.slot,d)};
  9874. rU.prototype.Gu=function(d,q){q!==this.layout.layoutId||d!=="survey-interstitial"&&d!=="button"||((d=l7(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?d.Za(this.slot,this.layout):Jm("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
  9875. rU.prototype.ir=function(){J8.prototype.ir.call(this)};var Bn=new g.zP(320,63);g.M(Ld,TW);g.M(kK,J8);g.Q=kK.prototype;g.Q.e0=function(){};
  9876. g.Q.mf=function(){};
  9877. g.Q.onFullscreenToggled=function(){};
  9878. g.Q.bS=function(d){d&&UT(this.T,this.layout)};
  9879. g.Q.n8=function(){};
  9880. g.Q.P3=function(d){var q=Gu(this.layout);if(this.L=Kd(d,Pdg(this.Yx.get())))q.onErrorCommand&&this.hA.get().executeCommand(q.onErrorCommand,this.layout.layoutId),UT(this.T,this.layout)};
  9881. g.Q.onVolumeChange=function(){};
  9882. g.Q.Z6=function(){return this.e5().layoutId};
  9883. g.Q.eX=function(){return this.L};
  9884. g.Q.Gu=function(d){this.S.Gu(d);d==="in_video_overlay_close_button"&&UT(this.T,this.layout)};
  9885. g.Q.tS=function(d){d==="invideo-overlay"&&UT(this.T,this.layout)};
  9886. g.Q.q1=function(){this.S.q1()};
  9887. g.Q.startRendering=function(d){J8.prototype.startRendering.call(this,d);this.callback.AA(this.slot,d);this.X.o9=this};
  9888. g.Q.OF=function(d,q){J8.prototype.OF.call(this,d,q);V_(this.X,this)};
  9889. g.Q.init=function(){J8.prototype.init.call(this);OX2(this.Hv.get(),this);this.Yx.get().addListener(this);this.G.push(new Ld(Gu(this.layout),s0(this.Dw),this.layout.layoutId,{adsClientData:this.layout.HF}))};
  9890. g.Q.release=function(){J8.prototype.release.call(this);this.Yx.get().removeListener(this);nDf(this.Hv.get(),this)};
  9891. g.Q.EN=function(){};
  9892. g.Q.L8=function(){};g.M(Pn,J8);g.Q=Pn.prototype;g.Q.init=function(){J8.prototype.init.call(this);OX2(this.Hv.get(),this);this.Yx.get().addListener(this);this.G.push(new Ld(Gu(this.layout),s0(this.Dw),this.layout.layoutId,{adsClientData:this.layout.HF}))};
  9893. g.Q.q1=function(){this.S.q1()};
  9894. g.Q.startRendering=function(d){J8.prototype.startRendering.call(this,d);this.callback.AA(this.slot,d);this.X.o9=this};
  9895. g.Q.OF=function(d,q){J8.prototype.OF.call(this,d,q);V_(this.X,this)};
  9896. g.Q.Gu=function(d){this.S.Gu(d);d==="in_video_overlay_close_button"&&UT(this.T,this.layout)};
  9897. g.Q.Ht=function(d){if(d==="invideo-overlay"){d=Jsf(this.B,this.layout);d=g.E(d);for(var q=d.next();!q.done;q=d.next())q.value.stop()}};
  9898. g.Q.tS=function(d){d==="invideo-overlay"&&UT(this.T,this.layout)};
  9899. g.Q.a_=function(d){if(d==="invideo-overlay"){d=Jsf(this.B,this.layout);d=g.E(d);for(var q=d.next();!q.done;q=d.next())q.value.start()}};
  9900. g.Q.e0=function(){};
  9901. g.Q.mf=function(){};
  9902. g.Q.onFullscreenToggled=function(){};
  9903. g.Q.bS=function(d){d&&UT(this.T,this.layout)};
  9904. g.Q.n8=function(){};
  9905. g.Q.P3=function(d){var q=Gu(this.layout),T=q.contentSupportedRenderer.imageOverlayAdContentRenderer,Y=Pdg(this.Yx.get());a:{T=T.image;T=T===void 0?null:T;if(T!=null&&(T=T.thumbnail,T!=null&&T.thumbnails!=null&&T.thumbnails.length!=0&&T.thumbnails[0].width!=null&&T.thumbnails[0].height!=null)){T=new g.zP(T.thumbnails[0].width||0,T.thumbnails[0].height||0);break a}T=new g.zP(0,0)}if(this.L=Kd(d,Y,T))q.onErrorCommand&&this.hA.get().executeCommand(q.onErrorCommand,this.layout.layoutId),UT(this.T,this.layout)};
  9906. g.Q.onVolumeChange=function(){};
  9907. g.Q.Z6=function(){return this.e5().layoutId};
  9908. g.Q.eX=function(){return this.L};
  9909. g.Q.release=function(){J8.prototype.release.call(this);this.Yx.get().removeListener(this);nDf(this.Hv.get(),this)};
  9910. g.Q.EN=function(){};
  9911. g.Q.L8=function(){};Wn.prototype.Gu=function(d){d==="ad-info-hover-text-button"&&((this.G=this.Yx.get().wK(1))||this.Yx.get().pauseVideo())};
  9912. Wn.prototype.q1=function(){this.G||this.Yx.get().resumeVideo(1)};g.M(U3N,TW);g.M(Cd,J8);g.Q=Cd.prototype;g.Q.init=function(){J8.prototype.init.call(this);this.Yx.get().addListener(this)};
  9913. g.Q.startRendering=function(d){var q=l7(this.layout.clientMetadata,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.G.push(new U3N(q,this.layout.layoutId,{adsClientData:this.layout.HF}));J8.prototype.startRendering.call(this,d);this.callback.AA(this.slot,d)};
  9914. g.Q.AA=function(){};
  9915. g.Q.Gu=function(d,q){q!==this.layout.layoutId||d!=="ad-info-icon-button"&&d!=="ad-info-dialog-close-button"||((q=l7(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?d==="ad-info-icon-button"?q.u8(this.slot,this.layout):d==="ad-info-dialog-close-button"&&q.Ev(this.slot,this.layout):Jm("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:d}))};
  9916. g.Q.P3=function(d){d.width<450&&UT(this.T,this.layout)};
  9917. g.Q.onVolumeChange=function(){};
  9918. g.Q.e0=function(){};
  9919. g.Q.onFullscreenToggled=function(){};
  9920. g.Q.bS=function(){};
  9921. g.Q.n8=function(){};
  9922. g.Q.mf=function(){};
  9923. g.Q.EN=function(){};
  9924. g.Q.L8=function(){};
  9925. g.Q.ir=function(){J8.prototype.ir.call(this)};
  9926. g.Q.release=function(){J8.prototype.release.call(this);this.Yx.get().removeListener(this)};bUD.prototype.build=function(d,q,T,Y){if(q=dP(d,T,Y,this.kB,this.Yx,this.Hv,this.T,this.G,this.T2))return q;if(Cw(Y,eUD()))return new Pn(T,Y,this.Hv,this.iF,this.kB,d,this.U,this.j,this.Yx,this.hA,this.T2,this.G,new Wn(this.Yx));if(Cw(Y,YG2()))return new kK(T,Y,this.Hv,this.iF,this.kB,d,this.U,this.Yx,this.hA,this.T2,this.G,new Wn(this.Yx));if(Cw(Y,{Pl:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Dm:["LAYOUT_TYPE_SURVEY"]}))return new Cd(T,Y,d,this.kB,this.U,this.Yx,this.T2);if(Cw(Y,
  9927. {Pl:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Dm:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new rU(T,Y,d,this.kB,this.Hv);if(Cw(Y,yiN()))return new ma(T,Y,d,this.kB,this.Yx,this.T2);throw new m5("Unsupported layout with type: "+Y.layoutType+" and client metadata: "+v4(Y.clientMetadata)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};XmN.prototype.build=function(d,q,T,Y){if(q=dP(d,T,Y,this.kB,this.Yx,this.Hv,this.T,this.G,this.T2))return q;if(Cw(Y,eUD()))return new Pn(T,Y,this.Hv,this.iF,this.kB,d,this.U,this.j,this.Yx,this.hA,this.T2,this.G,new Wn(this.Yx));if(Cw(Y,YG2()))return new kK(T,Y,this.Hv,this.iF,this.kB,d,this.U,this.Yx,this.hA,this.T2,this.G,new Wn(this.Yx));throw new m5("Unsupported layout with type: "+Y.layoutType+" and client metadata: "+v4(Y.clientMetadata)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");
  9928. };g.M(uu,iO);uu.prototype.startRendering=function(d){iO.prototype.startRendering.call(this,d);if(d.renderingContent?gP_(d,kx(this.Xw.get(),2)||void 0):l7(this.layout.clientMetadata,"metadata_ad_video_is_listed"))d=d.renderingContent?$PI(d,kx(this.Xw.get(),2)||void 0):l7(this.layout.clientMetadata,"metadata_type_ad_info_ad_metadata"),this.uV.get().J.gO("onAdMetadataAvailable",d)};saY.prototype.build=function(d,q,T,Y){if(Cw(Y,JUn())||Y.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.D(Y.renderingContent,lO)!==void 0)return new uu(d,T,Y,this.kB,this.Yx,this.Hv,this.U,this.uV,this.G,this.Xw);throw new m5("Unsupported layout with type: "+Y.layoutType+" and client metadata: "+v4(Y.clientMetadata)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};$3_.prototype.build=function(d,q,T,Y){if(Cw(Y,JUn()))return new uu(d,T,Y,this.kB,this.Yx,this.Hv,this.U,this.uV,this.G,this.Xw);if(d=dP(d,T,Y,this.kB,this.Yx,this.Hv,this.U,this.G,this.T2))return d;throw new m5("Unsupported layout with type: "+Y.layoutType+" and client metadata: "+v4(Y.clientMetadata)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};sO.prototype.clone=function(d){var q=this;return new sO(function(){return q.triggerId},d)};$b.prototype.clone=function(d){var q=this;return new $b(function(){return q.triggerId},d)};gG.prototype.clone=function(d){var q=this;return new gG(function(){return q.triggerId},d)};FY.prototype.clone=function(d){var q=this;return new FY(function(){return q.triggerId},d)};Nm.prototype.clone=function(d){var q=this;return new Nm(function(){return q.triggerId},d)};RF.prototype.clone=function(d){var q=this;return new RF(function(){return q.triggerId},d)};g.M(Yq,g.W);var p6n={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,
  9929. "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 ax={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],J1:[],layoutExitUserInputSubmittedTriggers:[]};var $l={l55:1,UFw:2,ozg:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.M(C6,g.W);g.Q=C6.prototype;g.Q.fg=function(d){if(this.G)Jm("Unexpected multiple fetch instructions for the current content");else{this.G=d;d=g.E(this.eT.get().gp);for(var q=d.next();!q.done;q=d.next())wN(this,this.G,q.value)}};
  9930. g.Q.b6=function(d){if(!this.G){if(!this.T2.get().J.C().N("high_ccv_client_side_caching_h5")){var q;(q=this.Gq)==null||q.get().uI(d.identifier)}return!1}wN(this,this.G,d);return!0};
  9931. g.Q.KT=function(){};
  9932. g.Q.ej=function(d){this.G&&this.G.contentCpn!==d&&(Jm("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:d,fetchInstructionsCpn:this.G.contentCpn}),this.G=null)};
  9933. g.Q.Zt=function(d){this.G&&this.G.contentCpn!==d&&Jm("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:d,fetchInstructionsCpn:this.G.contentCpn},!0);this.G=null};
  9934. g.Q.ir=function(){g.W.prototype.ir.call(this);this.G=null};var AT=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],xqE=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];g.M(zb,g.W);g.Q=zb.prototype;g.Q.AA=function(d,q){var T=this;if(q.layoutType==="LAYOUT_TYPE_MEDIA"&&(i7(q,this.X)||i7(q,xqE))){var Y=kx(this.Xw.get(),2),e=this.T(q,Y||void 0);e?eP(this.j.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var U=[kqn(T.G.get(),e.contentCpn,e.jP,function(b){return T.S(b.slotId,"core",e,Tn(T.KH.get(),b))},e.inPlayerSlotId)];
  9935. e.instreamAdPlayerUnderlayRenderer&&QE(T.T2.get())&&U.push(Ihj(T,e,e.instreamAdPlayerUnderlayRenderer));return U}):Jm("Expected MediaLayout to carry valid opportunity on entered",d,q)}};
  9936. g.Q.Ec=function(){};
  9937. g.Q.dU=function(){};
  9938. g.Q.bv=function(){};
  9939. g.Q.s$=function(){};
  9940. g.Q.a6=function(){};
  9941. g.Q.Hr=function(){};
  9942. g.Q.uS=function(){};
  9943. g.Q.Cj=function(){};
  9944. g.Q.Uc=function(){};
  9945. g.Q.qp=function(){};
  9946. g.Q.i$=function(){};g.M(iv,g.W);iv.prototype.ej=function(d,q,T,Y,e,U,b){var J=this,F=kx(this.Xw.get(),1);!q1D(this.T2.get())&&F.Uq?gB(this.Yx.get()):(lCD(this.yU.get(),Y),eP(this.U.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return U7(J.G.get(),Y,e,U,d,q,b,F,"")}),dxx(this.j))};
  9947. iv.prototype.Zt=function(){};g.M(Ix,g.W);g.M(mo,g.W);mo.prototype.onCueRangeEnter=function(){};
  9948. mo.prototype.onCueRangeExit=function(d){var q=this,T=this.G.get(d);T&&(this.G.delete(d),this.l$.get().removeCueRange(d),eP(this.U.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var Y=q.j.get();Y=U0(Y.U.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},T,{slotId:Y,slotEntryTrigger:T.slotEntryTrigger?ys_(T.slotId,Y,T.slotEntryTrigger):void 0,slotFulfillmentTriggers:ho7(T.slotId,Y,T.slotFulfillmentTriggers),slotExpirationTriggers:ho7(T.slotId,Y,T.slotExpirationTriggers)})]},
  9949. T.slotId))};
  9950. mo.prototype.ej=function(){for(var d=g.E(this.G.keys()),q=d.next();!q.done;q=d.next())q=q.value,this.l$.get().removeCueRange(q);this.G.clear()};
  9951. mo.prototype.Zt=function(){};g.M(Si,g.W);g.Q=Si.prototype;g.Q.Ec=function(){};
  9952. g.Q.dU=function(d){var q=this;g.zy(g.IY(),function(){var T=q.G.get(d);T&&Jm("Expected layouts to be properly unscheduled",d,void 0,{slotType:d.slotType,layoutTypes:[].concat(g.RQ(T)).map(function(Y){return Y.layoutType})})},0)};
  9953. g.Q.bv=function(){};
  9954. g.Q.s$=function(){};
  9955. g.Q.a6=function(){};
  9956. g.Q.Hr=function(){};
  9957. g.Q.uS=function(){};
  9958. g.Q.Cj=function(d,q){this.G.has(d)||this.G.set(d,new Set);this.G.get(d).add(q)};
  9959. g.Q.Uc=function(d,q){this.yK.has(d)&&this.yK.get(d)===q&&Jm("Unscheduled a Layout that is currently entered.",d,q);if(this.G.has(d)){var T=this.G.get(d);T.has(q)?(T.delete(q),T.size===0&&this.G.delete(d)):Jm("Trying to unscheduled a Layout that was not scheduled.",d,q)}else Jm("Trying to unscheduled a Layout that was not scheduled.",d,q)};
  9960. g.Q.AA=function(d,q){this.yK.set(d,q)};
  9961. g.Q.i$=function(d){this.yK.delete(d)};
  9962. g.Q.qp=function(){};g.Q=Snf.prototype;g.Q.init=function(){};
  9963. g.Q.Sv=function(){return this.slot};
  9964. g.Q.Ho=function(){this.callback.bv(this.slot)};
  9965. g.Q.Jz=function(){this.callback.a6(this.slot)};
  9966. g.Q.release=function(){};ox.prototype.build=function(d,q){return new Snf(d,q)};g.Q=lhI.prototype;g.Q.init=function(){};
  9967. g.Q.Sv=function(){return this.slot};
  9968. g.Q.Ho=function(){RP(this.Yx.get(),"ad-showing");this.callback.bv(this.slot)};
  9969. g.Q.Jz=function(){this.callback.a6(this.slot);x$(this.Yx.get(),"ad-showing")};
  9970. g.Q.release=function(){};g.Q=vUX.prototype;g.Q.init=function(){};
  9971. g.Q.Sv=function(){return this.slot};
  9972. g.Q.Ho=function(){RP(this.Yx.get(),"ad-showing");RP(this.Yx.get(),"ad-interrupting");this.U=this.Yx.get().isAtLiveHead();this.G=Math.ceil(Date.now()/1E3);this.callback.bv(this.slot)};
  9973. g.Q.Jz=function(){x$(this.Yx.get(),"ad-showing");x$(this.Yx.get(),"ad-interrupting");var d=this.U?Infinity:FU(this.Yx.get(),1,!0)+Math.floor(Date.now()/1E3)-this.G;this.Yx.get().J.seekTo(d,void 0,void 0,1);this.callback.a6(this.slot)};
  9974. g.Q.release=function(){};g.Q=oUf.prototype;g.Q.init=function(){};
  9975. g.Q.Sv=function(){return this.slot};
  9976. g.Q.Ho=function(){RP(this.Yx.get(),"ad-showing");RP(this.Yx.get(),"ad-interrupting");this.callback.bv(this.slot)};
  9977. g.Q.Jz=function(){gB(this.Yx.get());x$(this.Yx.get(),"ad-showing");x$(this.Yx.get(),"ad-interrupting");this.callback.a6(this.slot)};
  9978. g.Q.release=function(){gB(this.Yx.get())};VE.prototype.build=function(d,q){if(oV(q,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new lhI(d,q,this.Yx);if(q.slotEntryTrigger instanceof qm&&oV(q,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new vUX(d,q,this.Yx);if(oV(q,[],"SLOT_TYPE_PLAYER_BYTES"))return new oUf(d,q,this.Yx);throw new S("Unsupported slot with type "+q.slotType+" and client metadata: "+(v4(q.clientMetadata)+" in PlayerBytesSlotAdapterFactory."));};g.M(dg,g.W);dg.prototype.G=function(d){for(var q=[],T=g.E(this.YB.values()),Y=T.next();!Y.done;Y=T.next()){Y=Y.value;var e=Y.trigger;e instanceof JR&&Y.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"&&e.triggeringLayoutId===d&&q.push(Y)}q.length?ME(this.hN(),q):Jm("Mute requested but no registered triggers can be activated.")};g.M(TD,dg);g.Q=TD.prototype;g.Q.Gu=function(d,q){if(q)if(d==="skip-button"){d=[];for(var T=g.E(this.YB.values()),Y=T.next();!Y.done;Y=T.next()){Y=Y.value;var e=Y.trigger;e instanceof JR&&Y.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"&&e.triggeringLayoutId===q&&d.push(Y)}d.length&&ME(this.hN(),d)}else WA(this.T2.get(),"supports_multi_step_on_desktop")?d==="ad-action-submit-survey"&&q7(this,q):d==="survey-submit"?q7(this,q):d==="survey-single-select-answer-button"&&q7(this,q)};
  9979. g.Q.dj=function(d){dg.prototype.G.call(this,d)};
  9980. g.Q.BR=function(d,q,T,Y){if(this.YB.has(q.triggerId))throw new S("Tried to register duplicate trigger for slot.");if(!(q instanceof EO||q instanceof JR))throw new S("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in AdUxUpdateTriggerAdapter.");this.YB.set(q.triggerId,new aF(d,q,T,Y))};
  9981. g.Q.kZ=function(d){this.YB.delete(d.triggerId)};
  9982. g.Q.Ht=function(){};
  9983. g.Q.a_=function(){};
  9984. g.Q.tS=function(){};g.M(YC,g.W);g.Q=YC.prototype;
  9985. g.Q.BR=function(d,q,T,Y){if(this.YB.has(q.triggerId))throw new S("Tried to register duplicate trigger for slot.");if(!(q instanceof sO||q instanceof $b||q instanceof gG||q instanceof FY||q instanceof Nm||q instanceof RF||q instanceof e5||q instanceof ml||q instanceof lu||q instanceof Sd||q instanceof Yb||q instanceof I0))throw new S("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in AdsControlFlowEventTriggerAdapter");d=new aF(d,q,T,Y);this.YB.set(q.triggerId,d);q instanceof
  9986. Nm&&this.S.has(q.triggeringSlotId)&&ME(this.G(),[d]);q instanceof sO&&this.j.has(q.triggeringSlotId)&&ME(this.G(),[d]);q instanceof ml&&this.U.has(q.triggeringLayoutId)&&ME(this.G(),[d])};
  9987. g.Q.kZ=function(d){this.YB.delete(d.triggerId)};
  9988. g.Q.Ec=function(d){this.S.add(d.slotId);for(var q=[],T=g.E(this.YB.values()),Y=T.next();!Y.done;Y=T.next())Y=Y.value,Y.trigger instanceof Nm&&d.slotId===Y.trigger.triggeringSlotId&&q.push(Y);q.length>0&&ME(this.G(),q)};
  9989. g.Q.dU=function(d){this.S.delete(d.slotId);for(var q=[],T=g.E(this.YB.values()),Y=T.next();!Y.done;Y=T.next()){Y=Y.value;var e=Y.trigger;e instanceof RF&&e.triggeringSlotId===d.slotId&&q.push(Y)}q.length>0&&ME(this.G(),q)};
  9990. g.Q.s$=function(d){for(var q=[],T=g.E(this.YB.values()),Y=T.next();!Y.done;Y=T.next()){Y=Y.value;var e=Y.trigger;e instanceof e5&&e.slotType===d.slotType&&e.G!==d.slotId&&q.push(Y)}q.length>0&&ME(this.G(),q)};
  9991. g.Q.bv=function(d){this.j.add(d.slotId);for(var q=[],T=g.E(this.YB.values()),Y=T.next();!Y.done;Y=T.next())Y=Y.value,Y.trigger instanceof sO&&d.slotId===Y.trigger.triggeringSlotId&&q.push(Y);q.length>0&&ME(this.G(),q)};
  9992. g.Q.a6=function(d){this.j.delete(d.slotId);this.T.add(d.slotId);for(var q=[],T=g.E(this.YB.values()),Y=T.next();!Y.done;Y=T.next())if(Y=Y.value,Y.trigger instanceof $b)d.slotId===Y.trigger.triggeringSlotId&&q.push(Y);else if(Y.trigger instanceof I0){var e=Y.trigger;d.slotId===e.slotId&&this.U.has(e.triggeringLayoutId)&&q.push(Y)}q.length>0&&ME(this.G(),q)};
  9993. g.Q.Hr=function(d){for(var q=[],T=g.E(this.YB.values()),Y=T.next();!Y.done;Y=T.next())Y=Y.value,Y.trigger instanceof gG&&d.slotId===Y.trigger.triggeringSlotId&&q.push(Y);q.length>0&&ME(this.G(),q)};
  9994. g.Q.uS=function(d){for(var q=[],T=g.E(this.YB.values()),Y=T.next();!Y.done;Y=T.next())Y=Y.value,Y.trigger instanceof FY&&d.slotId===Y.trigger.triggeringSlotId&&q.push(Y);q.length>0&&ME(this.G(),q)};
  9995. g.Q.Cj=function(d,q){this.X.add(q.layoutId)};
  9996. g.Q.Uc=function(d,q){this.X.delete(q.layoutId)};
  9997. g.Q.AA=function(d,q){this.U.add(q.layoutId);for(var T=[],Y=g.E(this.YB.values()),e=Y.next();!e.done;e=Y.next())if(e=e.value,e.trigger instanceof ml)q.layoutId===e.trigger.triggeringLayoutId&&T.push(e);else if(e.trigger instanceof Yb){var U=e.trigger;d.slotType===U.slotType&&q.layoutType===U.layoutType&&q.layoutId!==U.G&&T.push(e)}else e.trigger instanceof I0&&(U=e.trigger,q.layoutId===U.triggeringLayoutId&&this.T.has(U.slotId)&&T.push(e));T.length>0&&ME(this.G(),T)};
  9998. g.Q.i$=function(d,q,T){this.U.delete(q.layoutId);d=[];for(var Y=g.E(this.YB.values()),e=Y.next();!e.done;e=Y.next())if(e=e.value,e.trigger instanceof lu&&q.layoutId===e.trigger.triggeringLayoutId&&d.push(e),e.trigger instanceof Sd){var U=e.trigger;q.layoutId===U.triggeringLayoutId&&U.G.includes(T)&&d.push(e)}d.length>0&&ME(this.G(),d)};
  9999. g.Q.qp=function(){};
  10000. g.Q.ej=function(){this.T.clear()};
  10001. g.Q.Zt=function(){};g.M(eN,g.W);eN.prototype.BR=function(d,q,T,Y){if(this.YB.has(q.triggerId))throw new S("Tried to register duplicate trigger for slot.");if(!(q instanceof zu))throw new S("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in CloseRequestedTriggerAdapter");this.YB.set(q.triggerId,new aF(d,q,T,Y))};
  10002. eN.prototype.kZ=function(d){this.YB.delete(d.triggerId)};g.M(bq,g.W);bq.prototype.BR=function(d,q,T,Y){if(this.YB.has(q.triggerId))throw new S("Tried to register duplicate trigger for slot.");if(!(q instanceof fd||q instanceof bV))throw new S("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.YB.set(q.triggerId,new aF(d,q,T,Y))};
  10003. bq.prototype.kZ=function(d){this.YB.delete(d.triggerId)};
  10004. bq.prototype.ej=function(d){for(var q=[],T=q.push,Y=T.apply,e=[],U=g.E(this.YB.values()),b=U.next();!b.done;b=U.next())b=b.value,b.trigger instanceof fd&&b.trigger.oK===d&&e.push(b);Y.call(T,q,g.RQ(e));T=q.push;Y=T.apply;e=[];U=g.E(this.YB.values());for(b=U.next();!b.done;b=U.next())b=b.value,b.trigger instanceof bV&&b.trigger.G!==d&&e.push(b);Y.call(T,q,g.RQ(e));q.length&&ME(this.G(),q)};
  10005. bq.prototype.Zt=function(d){for(var q=[],T=q.push,Y=T.apply,e=[],U=g.E(this.YB.values()),b=U.next();!b.done;b=U.next()){b=b.value;var J=b.trigger;J instanceof bV&&J.G===d&&e.push(b)}Y.call(T,q,g.RQ(e));q.length&&ME(this.G(),q)};g.M(X4,g.W);g.Q=X4.prototype;g.Q.BR=function(d,q,T,Y){if(this.YB.has(q.triggerId))throw new S("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+q.triggerId;if(q instanceof qm)Voj(this,d,q,T,Y,e,q.G.start,q.G.end,q.oK,q.visible);else if(q instanceof iu)Voj(this,d,q,T,Y,e,0x7ffffffffffff,0x8000000000000,q.oK,q.visible);else throw new S("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in CueRangeTriggerAdapter");};
  10006. g.Q.kZ=function(d){var q=this.YB.get(d.triggerId);q&&this.l$.get().removeCueRange(q.cueRangeId);this.YB.delete(d.triggerId)};
  10007. g.Q.onCueRangeEnter=function(d){var q=d_n(this,d);if(q&&(q=this.YB.get(q)))if(g.I(ey(this.Yx.get()),32))this.G.add(q.cueRangeId);else{var T=q==null?void 0:q.dS.trigger;if(T instanceof qm||T instanceof iu){if(Fg(this.context.T2.get())){var Y=q.dS.slot,e=q.dS.layout,U={};this.context.cf.oN("cre",(U.ca=q.dS.category,U.tt=T.triggerType,U.st=Y.slotType,U.lt=e==null?void 0:e.layoutType,U.cid=d,U))}ME(this.U(),[q.dS])}}};
  10008. g.Q.onCueRangeExit=function(d){(d=d_n(this,d))&&(d=this.YB.get(d))&&this.G.delete(d.cueRangeId)};
  10009. g.Q.mf=function(d){if($o(d,16)<0){d=g.E(this.G);for(var q=d.next();!q.done;q=d.next())this.onCueRangeEnter(q.value,!0);this.G.clear()}};
  10010. g.Q.Ec=function(){};
  10011. g.Q.dU=function(){};
  10012. g.Q.s$=function(){};
  10013. g.Q.bv=function(){};
  10014. g.Q.a6=function(){};
  10015. g.Q.Hr=function(){};
  10016. g.Q.uS=function(){};
  10017. g.Q.Cj=function(){};
  10018. g.Q.Uc=function(){};
  10019. g.Q.AA=function(){};
  10020. g.Q.i$=function(){};
  10021. g.Q.qp=function(){};
  10022. g.Q.e0=function(){};
  10023. g.Q.onFullscreenToggled=function(){};
  10024. g.Q.bS=function(){};
  10025. g.Q.n8=function(){};
  10026. g.Q.P3=function(){};
  10027. g.Q.onVolumeChange=function(){};
  10028. g.Q.EN=function(){};
  10029. g.Q.L8=function(){};g.M(JH,g.W);g.Q=JH.prototype;
  10030. g.Q.BR=function(d,q,T,Y){if(this.U.has(q.triggerId)||this.j.has(q.triggerId))throw new S("Tried to re-register the trigger.");d=new aF(d,q,T,Y);if(d.trigger instanceof dG)this.U.set(d.trigger.triggerId,d);else if(d.trigger instanceof vn)this.j.set(d.trigger.triggerId,d);else throw new S("Incorrect TriggerType: Tried to register trigger of type "+d.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.U.has(d.trigger.triggerId)&&d.slot.slotId===this.G&&ME(this.T(),[d])};
  10031. g.Q.kZ=function(d){this.U.delete(d.triggerId);this.j.delete(d.triggerId)};
  10032. g.Q.xt=function(d){d=d.slotId;if(this.G!==d){var q=[];this.G!=null&&q.push.apply(q,g.RQ(qHX(this.j,this.G)));d!=null&&q.push.apply(q,g.RQ(qHX(this.U,d)));this.G=d;q.length&&ME(this.T(),q)}};
  10033. g.Q.xQ=function(){};
  10034. g.Q.De=function(){};g.M(sT,g.W);g.Q=sT.prototype;g.Q.BR=function(d,q,T,Y){if(this.YB.has(q.triggerId))throw new S("Tried to register duplicate trigger for slot.");if(!(q instanceof UO))throw new S("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.YB.set(q.triggerId,new aF(d,q,T,Y))};
  10035. g.Q.kZ=function(d){this.YB.delete(d.triggerId)};
  10036. g.Q.AA=function(){};
  10037. g.Q.i$=function(){};
  10038. g.Q.Ec=function(){};
  10039. g.Q.dU=function(){};
  10040. g.Q.s$=function(){};
  10041. g.Q.bv=function(){};
  10042. g.Q.a6=function(){};
  10043. g.Q.Hr=function(){};
  10044. g.Q.uS=function(){};
  10045. g.Q.Cj=function(){};
  10046. g.Q.Uc=function(){};
  10047. g.Q.qp=function(){};g.M($C,g.W);g.Q=$C.prototype;g.Q.qp=function(d,q){for(var T=[],Y=g.E(this.YB.values()),e=Y.next();!e.done;e=Y.next()){e=e.value;var U=e.trigger;U.opportunityType===d&&(U.associatedSlotId&&U.associatedSlotId!==q||T.push(e))}T.length&&ME(this.G(),T)};
  10048. g.Q.BR=function(d,q,T,Y){if(this.YB.has(q.triggerId))throw new S("Tried to register duplicate trigger for slot.");if(!(q instanceof gzn))throw new S("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in OpportunityEventTriggerAdapter");this.YB.set(q.triggerId,new aF(d,q,T,Y))};
  10049. g.Q.kZ=function(d){this.YB.delete(d.triggerId)};
  10050. g.Q.Ec=function(){};
  10051. g.Q.dU=function(){};
  10052. g.Q.s$=function(){};
  10053. g.Q.bv=function(){};
  10054. g.Q.a6=function(){};
  10055. g.Q.Hr=function(){};
  10056. g.Q.uS=function(){};
  10057. g.Q.Cj=function(){};
  10058. g.Q.Uc=function(){};
  10059. g.Q.AA=function(){};
  10060. g.Q.i$=function(){};g.M(gg,g.W);g.Q=gg.prototype;g.Q.BR=function(d,q,T,Y){d=new aF(d,q,T,Y);if(q instanceof o0||q instanceof T8||q instanceof Vj||q instanceof XY||q instanceof ghg){if(this.YB.has(q.triggerId))throw new S("Tried to register duplicate trigger for slot.");this.YB.set(q.triggerId,d)}else throw new S("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in PrefetchTriggerAdapter");};
  10061. g.Q.kZ=function(d){this.YB.delete(d.triggerId)};
  10062. g.Q.Ec=function(d){var q=d.slotFulfillmentTriggers.find(function(T){return T instanceof o0});
  10063. q&&(F4(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",q.breakDurationMs,new Set([d.slotId]),!0),cn(this.Hv.get(),"ads_css","sid."+d.slotId+";bd."+q.breakDurationMs))};
  10064. g.Q.dU=function(){};
  10065. g.Q.s$=function(){};
  10066. g.Q.bv=function(){};
  10067. g.Q.a6=function(){};
  10068. g.Q.Hr=function(){};
  10069. g.Q.uS=function(){};
  10070. g.Q.Cj=function(){};
  10071. g.Q.Uc=function(){};
  10072. g.Q.AA=function(){};
  10073. g.Q.i$=function(){};
  10074. g.Q.qp=function(){};
  10075. g.Q.b6=function(d){var q=this;if(!this.G)return Jm("Unexpected cue break before fetch instructions are available"),!1;this.U&&this.U.stop();this.S&&g.zh(this.S);var T=U__(this,d);if(!T){var Y=YHH(this),e=this.L!==void 0&&Date.now()<=this.L+1E4;cn(this.Hv.get(),"ads_ncfs","cid."+d.identifier+";cd."+d.sS.toFixed(3)+";ccs."+e+";cfa."+this.T+";bdc."+Y.length+";"+Y.slice(0,6).map(function(U){return";bd."+U}).join(""));
  10076. return e?(wN(this.qM,this.G,d),!0):!1}(Y=l7(T.slot.clientMetadata,"metadata_type_triggering_cue_point"))?Y.current=d:Jm("Expected triggering cue point ref to be available",T.slot);(new g.f9(function(){var U=T.trigger,b=T.slot;F4(q,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",U.breakDurationMs,new Set,!0);F4(q,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",U.breakDurationMs,new Set,!1);for(var J=0,F=g.E(q.YB.values()),N=F.next();!N.done;N=F.next()){N=N.value;var R=N.trigger;
  10077. N.slot.slotId===b.slotId&&(q.YB.delete(R.triggerId),J++)}cn(q.Hv.get(),"ads_csf","sid."+b.slotId+";bd."+U.breakDurationMs+";dt."+J)},10)).start();
  10078. return!0};
  10079. g.Q.KT=function(){};
  10080. g.Q.ej=function(d){var q=this;this.T=!1;this.L=Date.now();if(this.G&&this.G.contentCpn!==d)Jm("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:d,fetchInstructionsCpn:this.G.contentCpn}),N7(this);else{this.j=new g.f9(function(){if(q.T)delete q.j;else{var Y=q.Yx.get().getGetAdBreakContext(),e;if(Number(Y==null?void 0:(e=Y.livePlaybackPosition)==null?void 0:e.utcTimeMillis)>0)delete q.j,eoX(q);else{var U;(U=q.j)==null||U.start()}}},200);
  10081. var T;(T=this.j)==null||T.start()}};
  10082. g.Q.Zt=function(d){this.G&&this.G.contentCpn!==d&&Jm("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:d,fetchInstructionsCpn:this.G.contentCpn},!0);N7(this)};
  10083. g.Q.fg=function(d){var q=this;if(this.G)Jm("Unexpected multiple fetch instructions for the current content");else{this.G=d;d=X4g(d);this.U=new g.f9(function(){eoX(q)},d?d:6E5);
  10084. this.U.start();this.S=new g.f9(function(){q.G&&(q.U&&(q.U.stop(),q.U.start()),TJ7(q,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},bm1(this.G));
  10085. d=this.Yx.get().getCurrentTimeSec(1,!1);for(var T=g.E(this.eT.get().gp),Y=T.next();!Y.done;Y=T.next())Y=Y.value,cn(this.Hv.get(),"nocache","ct."+Date.now()+";cmt."+d+";d."+Y.sS.toFixed(3)+";tw."+(Y.startSecs-d)+";cid."+Y.identifier+";")}};
  10086. g.Q.ir=function(){g.W.prototype.ir.call(this);N7(this)};g.M(Rm,g.W);g.Q=Rm.prototype;g.Q.BR=function(d,q,T,Y){if(this.YB.has(q.triggerId))throw new S("Tried to register duplicate trigger for slot.");if(!(q instanceof j5))throw new S("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.YB.set(q.triggerId,new aF(d,q,T,Y));d=this.G.has(q.triggeringLayoutId)?this.G.get(q.triggeringLayoutId):new Set;d.add(q);this.G.set(q.triggeringLayoutId,d)};
  10087. g.Q.kZ=function(d){this.YB.delete(d.triggerId);if(!(d instanceof j5))throw new S("Incorrect TriggerType: Tried to unregister trigger of type "+d.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var q=this.U.get(d.triggerId);q&&(q.dispose(),this.U.delete(d.triggerId));if(q=this.G.get(d.triggeringLayoutId))q.delete(d),q.size===0&&this.G.delete(d.triggeringLayoutId)};
  10088. g.Q.Ec=function(){};
  10089. g.Q.dU=function(){};
  10090. g.Q.s$=function(){};
  10091. g.Q.bv=function(){};
  10092. g.Q.a6=function(){};
  10093. g.Q.Hr=function(){};
  10094. g.Q.uS=function(){};
  10095. g.Q.Cj=function(){};
  10096. g.Q.Uc=function(){};
  10097. g.Q.qp=function(){};
  10098. g.Q.AA=function(d,q){var T=this;if(this.G.has(q.layoutId)){d=this.G.get(q.layoutId);d=g.E(d);var Y=d.next();for(q={};!Y.done;q={vp:void 0},Y=d.next())q.vp=Y.value,Y=new g.f9(function(e){return function(){var U=T.YB.get(e.vp.triggerId);ME(T.j(),[U])}}(q),q.vp.durationMs),Y.start(),this.U.set(q.vp.triggerId,Y)}};
  10099. g.Q.i$=function(){};g.M(xC,g.W);xC.prototype.BR=function(d,q,T,Y){if(this.YB.has(q.triggerId))throw new S("Tried to register duplicate trigger for slot.");if(!(q instanceof DD))throw new S("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in VideoTransitionTriggerAdapter.");this.YB.set(q.triggerId,new aF(d,q,T,Y))};
  10100. xC.prototype.kZ=function(d){this.YB.delete(d.triggerId)};QI.prototype.Px=function(d){return d.kind==="AD_PLACEMENT_KIND_START"};g.M(ET,g.W);g.Q=ET.prototype;g.Q.logEvent=function(d){this.yY(d)};
  10101. g.Q.fq=function(d,q,T){this.yY(d,void 0,void 0,void 0,q,void 0,void 0,void 0,q.adSlotLoggingData,void 0,void 0,T)};
  10102. g.Q.CA=function(d,q,T,Y){this.yY(d,void 0,void 0,void 0,q,T?T:void 0,void 0,void 0,q.adSlotLoggingData,T?T.adLayoutLoggingData:void 0,void 0,Y)};
  10103. g.Q.bd=function(d,q,T,Y){WA(this.T2.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+d,"trigger:",T,"slot:",q,"layout:",Y);qE(this.G.get())&&this.yY(d,void 0,void 0,void 0,q,Y?Y:void 0,void 0,T,q.adSlotLoggingData,Y?Y.adLayoutLoggingData:void 0)};
  10104. g.Q.o1=function(d,q,T,Y,e){this.yY(d,q,T,Y,void 0,void 0,void 0,void 0,void 0,void 0,void 0,e)};
  10105. g.Q.ys=function(d,q,T,Y){this.yY("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,T,Y,void 0,void 0,T.adSlotLoggingData,Y?Y.adLayoutLoggingData:void 0,{errorType:d,errorMessage:q})};
  10106. g.Q.yY=function(d,q,T,Y,e,U,b,J,F,N,R,x){var y=this;x=x===void 0?0:x;WA(this.T2.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+d,"slot:",e,"layout:",U,"ping:",b,"Opportunity:",{opportunityType:q,associatedSlotId:T,MED:Y,pZD:J,adSlotLoggingData:F,adLayoutLoggingData:N});try{var h=function(){if(!y.T2.get().J.C().N("html5_disable_client_tmp_logs")&&d!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){d||Jm("Empty PACF event type",e,U);var H=qE(y.G.get()),a={eventType:d,eventOrder:++y.eventCount},p={};
  10107. e&&(p.slotData=dp(H,e));U&&(p.layoutData=D96(H,U));b&&(p.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:b.G.serializedAdPingMetadata,pingIndex:b.index});J&&(p.triggerData=Vq(J.trigger,J.category));q&&(p.opportunityData=wi2(H,q,T,Y));H={organicPlaybackContext:{contentCpn:kx(y.Xw.get(),1).clientPlaybackNonce}};H.organicPlaybackContext.isLivePlayback=kx(y.Xw.get(),1).aN;var t;H.organicPlaybackContext.isMdxPlayback=(t=kx(y.Xw.get(),1))==null?void 0:t.isMdxPlayback;
  10108. var n;if((n=kx(y.Xw.get(),1))==null?0:n.daiEnabled)H.organicPlaybackContext.isDaiContent=!0;var K;if(t=(K=kx(y.Xw.get(),2))==null?void 0:K.clientPlaybackNonce)H.adVideoPlaybackContext={adVideoCpn:t};H&&(p.externalContext=H);a.adClientData=p;F&&(a.serializedSlotAdServingData=F.serializedSlotAdServingDataEntry);N&&(a.serializedAdServingData=N.serializedAdServingDataEntry);R&&(a.errorInfo=R);g.Ta("adsClientStateChange",{adsClientEvent:a})}};
  10109. x&&x>0?g.zy(g.IY(),function(){return h()},x):h()}catch(H){WA(this.T2.get(),"html5_log_pacf_logging_errors")&&g.zy(g.IY(),function(){Jm(H instanceof Error?H:String(H),e,U,{pacf_message:"exception during pacf logging"})})}};var y0_=new Set("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED".split(" "));g.M(jN,ET);g.Q=jN.prototype;
  10110. g.Q.fq=function(d,q,T){ET.prototype.fq.call(this,d,q,T);Fg(this.T2.get())&&(T={},this.context.cf.oN("pacf",(T.et=d,T.st=q.slotType,T.si=q.slotId,T)))};
  10111. g.Q.CA=function(d,q,T,Y){var e=y0_.has(d);ET.prototype.CA.call(this,d,q,T,Y);Fg(this.T2.get(),e)&&(Y={},this.context.cf.oN("pacf",(Y.et=d,Y.st=q.slotType,Y.si=q.slotId,Y.lt=T==null?void 0:T.layoutType,Y.li=T==null?void 0:T.layoutId,Y.p_ac=T==null?void 0:T.layoutId,Y)))};
  10112. g.Q.o1=function(d,q,T,Y,e){ET.prototype.o1.call(this,d,q,T,Y,e);Fg(this.T2.get())&&(T={},this.context.cf.oN("pacf",(T.et=d,T.ot=q,T.ss=Y==null?void 0:Y.length,T)))};
  10113. g.Q.bd=function(d,q,T,Y){ET.prototype.bd.call(this,d,q,T,Y);if(Fg(this.T2.get())){var e={};this.context.cf.oN("pacf",(e.et=d,e.tt=T.trigger.triggerType,e.tc=T.category,e.st=q.slotType,e.si=q.slotId,e.lt=Y==null?void 0:Y.layoutType,e.li=Y==null?void 0:Y.layoutId,e.p_ac=Y==null?void 0:Y.layoutId,e))}};
  10114. g.Q.ys=function(d,q,T,Y){ET.prototype.ys.call(this,d,q,T,Y);if(Fg(this.T2.get(),!0)){var e={};this.context.cf.oN("perror",(e.ert=d,e.erm=q,e.st=T.slotType,e.si=T.slotId,e.lt=Y==null?void 0:Y.layoutType,e.li=Y==null?void 0:Y.layoutId,e.p_ac=Y==null?void 0:Y.layoutId,e))}};
  10115. g.Q.yY=function(d,q,T,Y,e,U,b,J,F,N,R){var x=this.T2.get();g.ho(x.J.C())?(x=this.T2.get(),x=g.Yv(x.J.C().experiments,"H5_async_logging_delay_ms")):x=void 0;ET.prototype.yY.call(this,d,q,T,Y,e,U,b,J,F,N,R,x)};am.prototype.clear=function(){this.G.clear()};AH.prototype.state=function(){return this.G==="fulfilled"?{state:"fulfilled",value:this.result}:this.G==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}};
  10116. AH.prototype.T=function(d){Z4(d)||p0(d)?BN(OT(d),this.T.bind(this),this.reject.bind(this)):(this.G="fulfilled",this.result=d,tH(this))};
  10117. AH.prototype.reject=function(d){this.G="rejected";this.error=d;tH(this)};
  10118. var p0=e0(function(d){return OB7(d)?d instanceof AH:!1});Object.freeze({HlU:function(d){var q=WN(d);return BN(PN(q,function(T){return q[T].G==="rejected"}),function(T){return Number.isNaN(T)?q.map(function(Y){return Y.state().value}):q[T]})},
  10119. ugg:function(d){var q=WN(d);return BN(PN(q),function(){return q.map(function(T){return T.state()})})},
  10120. dIr:function(d){var q=WN(d);return BN(PN(q,function(T){return q[T].G==="fulfilled"}),function(T){return Number.isNaN(T)?n0(new AggregateError(q.map(function(Y){return Y.state().reason}))):q[T].state().value})},
  10121. Jvv:function(d){var q=WN(d);return BN(PN(q,function(){return!0}),function(T){return q[T]})}});var C0=window.RN2||"zh-CN";f0.prototype.Ol=function(d){this.client=d};
  10122. f0.prototype.G=function(){this.clear();this.csn=g.Q0()};
  10123. f0.prototype.clear=function(){this.j.clear();this.U.clear();this.T.clear();this.csn=null};iq.prototype.Ol=function(d){g.iF(zD().Ol).bind(zD())(d)};
  10124. iq.prototype.clear=function(){g.iF(zD().clear).bind(zD())()};g.Q=Im.prototype;g.Q.Ol=function(d){this.client=d};
  10125. g.Q.uo=function(d,q){var T=this;q=q===void 0?{}:q;g.iF(function(){var Y,e,U,b=((Y=g.D(d==null?void 0:d.commandMetadata,g.AX))==null?void 0:Y.rootVe)||((e=g.D(d==null?void 0:d.commandMetadata,GP7))==null?void 0:(U=e.screenVisualElement)==null?void 0:U.uiType);if(b){Y=g.D(d==null?void 0:d.commandMetadata,dQR);if(Y==null?0:Y.parentTrackingParams){var J=g.y0(Y.parentTrackingParams);if(Y.parentCsn)var F=Y.parentCsn}else q.clickedVisualElement?J=q.clickedVisualElement:d.clickTrackingParams&&(J=g.y0(d.clickTrackingParams));
  10126. a:{Y=g.D(d,g.EB);e=g.D(d,IGI);if(Y){if(e=p4Y(Y,"VIDEO")){Y={token:e,videoId:Y.videoId};break a}}else if(e&&(Y=p4Y(e,"PLAYLIST"))){Y={token:Y,playlistId:e.playlistId};break a}Y=void 0}q=Object.assign({},{cttAuthInfo:Y,parentCsn:F},q);if(g.RD("expectation_logging")){var N;q.loggingExpectations=((N=g.D(d==null?void 0:d.commandMetadata,GP7))==null?void 0:N.loggingExpectations)||void 0}SN(T,b,J,q)}else g.OL(new g.CW("Error: Trying to create a new screen without a rootVeType",d))})()};
  10127. g.Q.clickCommand=function(d,q,T){d=d.clickTrackingParams;T=T===void 0?0:T;d?(T=g.Q0(T===void 0?0:T))?(md(this.client,T,g.y0(d),q),q=!0):q=!1:q=!1;return q};
  10128. g.Q.stateChanged=function(d,q,T){this.visualElementStateChanged(g.y0(d),q,T===void 0?0:T)};
  10129. g.Q.visualElementStateChanged=function(d,q,T){T=T===void 0?0:T;T===0&&this.U.has(T)?this.B.push([d,q]):BJN(this,d,q,T)};VI.prototype.fetch=function(d,q,T){var Y=this,e=L5j(d,q,T);return new Promise(function(U,b){function J(){if(T==null?0:T.Fq)try{var N=Y.handleResponse(d,e.status,e.response,T);U(N)}catch(R){b(R)}else U(Y.handleResponse(d,e.status,e.response,T))}
  10130. e.onerror=J;e.onload=J;var F;e.send((F=q.body)!=null?F:null)})};
  10131. VI.prototype.handleResponse=function(d,q,T,Y){T=T.replace(")]}'","");try{var e=JSON.parse(T)}catch(U){g.OL(new g.CW("JSON parsing failed after XHR fetch",d,q,T));if((Y==null?0:Y.Fq)&&T)throw new g.wc(1,"JSON parsing failed after XHR fetch");e={}}q!==200&&(g.OL(new g.CW("XHR API fetch failed",d,q,T)),e=Object.assign({},e,{errorMetadata:{status:q}}));return e};dj.getInstance=function(){var d=g.qx("ytglobal.storage_");d||(d=new dj,g.Vf("ytglobal.storage_",d));return d};
  10132. dj.prototype.estimate=function(){var d,q,T;return g.G(function(Y){d=navigator;return((q=d.storage)==null?0:q.estimate)?Y.return(d.storage.estimate()):((T=d.webkitTemporaryStorage)==null?0:T.queryUsageAndQuota)?Y.return(ke_()):Y.return()})};
  10133. g.Vf("ytglobal.storageClass_",dj);dO.prototype.EP=function(d){this.handleError(d)};
  10134. dO.prototype.logEvent=function(d,q){switch(d){case "IDB_DATA_CORRUPTED":g.RD("idb_data_corrupted_killswitch")||this.G("idbDataCorrupted",q);break;case "IDB_UNEXPECTEDLY_CLOSED":this.G("idbUnexpectedlyClosed",q);break;case "IS_SUPPORTED_COMPLETED":g.RD("idb_is_supported_completed_killswitch")||this.G("idbIsSupportedCompleted",q);break;case "QUOTA_EXCEEDED":W5X(this,q);break;case "TRANSACTION_ENDED":this.j&&Math.random()<=.1&&this.G("idbTransactionEnded",q);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":d=
  10135. Object.assign({},q,{hasWindowUnloaded:this.U}),this.G("idbTransactionAborted",d)}};var vy={},fJD=g.mY("yt-player-local-media",{pw:(vy.index={JC:2},vy.media={JC:2},vy.captions={JC:5},vy),shared:!1,upgrade:function(d,q){q(2)&&(g.jF(d,"index"),g.jF(d,"media"));q(5)&&g.jF(d,"captions");q(6)&&(aJ(d,"metadata"),aJ(d,"playerdata"))},
  10136. version:5});var hkc={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},oS;a:{var VS=g.k9();VS=VS.toLowerCase();if(g.rb(VS,"android")){var HpE=VS.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(HpE){var Qcl=parseFloat(HpE[1]);if(Qcl<100){oS=Qcl;break a}}var M0n=VS.match("("+Object.keys(hkc).join("|")+")");oS=M0n?hkc[M0n[0]]:0}else oS=void 0}var eZ=oS,Yl=eZ>=0;var IuQ=window;var C7n=t4(function(){var d,q;return(q=(d=window).matchMedia)==null?void 0:q.call(d,"(prefers-reduced-motion: reduce)").matches});var TG;g.qe=new QK;TG=0;var QU=I3I()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.DP?!0:!1;var Uo={hE:function(d,q){var T=d[0];d[0]=d[q%d[X[1]]];d[q%d[X[1]]]=T},
  10137. Ei:function(d,q){d[X[35]](0,q)},
  10138. Ra:function(d){d[X[80]]()}};var WlN={vLZ:"adunit",lcO:"detailpage",IcF:"editpage",hLv:"embedded",cpf:"leanback",U0v:"previewpage",jbx:"profilepage",mK:"unplugged",Gp2:"playlistoverview",Kvr:"sponsorshipsoffer",Aof:"shortspage",w3k:"handlesclaiming",pRf:"immersivelivepage",wfx:"creatormusic",rpf:"immersivelivepreviewpage",str:"admintoolyurt",x0U:"shortsaudiopivot",Ox2:"consumption"};var DBH={t0Z:0,Qgk:1,M0w:2,0:"AUDIO_QUALITY_SETTING_UNKNOWN",1:"AUDIO_QUALITY_SETTING_HIGHER_QUALITY",2:"AUDIO_QUALITY_SETTING_NORMAL_QUALITY"};var vvY=2592E3;var d$,c0l,LA;d$={};g.Eo=(d$.STOP_EVENT_PROPAGATION="html5-stop-propagation",d$.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",d$.IV_DRAWER_OPEN="ytp-iv-drawer-open",d$.MAIN_VIDEO="html5-main-video",d$.VIDEO_CONTAINER="html5-video-container",d$.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",d$.HOUSE_BRAND="house-brand",d$);c0l={};LA=(c0l.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",c0l.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",c0l);var Xp1={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var guQ={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},Fan={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"},eXg={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var sxI={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.AF.prototype.getLanguageInfo=function(){return this.DQ};
  10139. g.AF.prototype.getXtags=function(){if(!this.xtags){var d=this.id.split(";");d.length>1&&(this.xtags=d[1])}return this.xtags};
  10140. g.AF.prototype.toString=function(){return this.DQ.name};
  10141. g.AF.prototype.getLanguageInfo=g.AF.prototype.getLanguageInfo;pY.prototype.equals=function(d){return this.U===d.U&&this.G===d.G&&this.j===d.j&&this.reason===d.reason&&(!Oo||this.Vv===d.Vv)};
  10142. pY.prototype.isLocked=function(){return this.j&&!!this.U&&this.U===this.G};
  10143. pY.prototype.compose=function(d){if(d.j&&nY(d))return xp;if(d.j||nY(this))return d;if(this.j||nY(d))return this;var q=this.U&&d.U?Math.max(this.U,d.U):this.U||d.U,T=this.G&&d.G?Math.min(this.G,d.G):this.G||d.G;q=Math.min(q,T);var Y=0;Oo&&(Y=this.Vv!==0&&d.Vv!==0?Math.min(this.Vv,d.Vv):this.Vv===0?d.Vv:this.Vv);return Oo&&q===this.U&&T===this.G&&Y===this.Vv||!Oo&&q===this.U&&T===this.G?this:Oo?new pY(q,T,!1,T===this.G&&Y===this.Vv?this.reason:d.reason,Y):new pY(q,T,!1,T===this.G?this.reason:d.reason)};
  10144. pY.prototype.T=function(d){return!d.video||Oo&&this.Vv!==0&&this.Vv<d.Vv?!1:RlY(this,d.video.quality)};
  10145. var EQ7=g.ZW("auto","hd1080",!1,"l"),iHY=g.ZW("auto","large",!1,"l"),xp=g.ZW("auto","auto",!1,"p"),Oo=!1;KY.prototype.N4=function(d){d=d||xp;for(var q=g.Zl(this.videoInfos,function(b){return d.T(b)}),T=[],Y={},e=0;e<q.length;e++){var U=q[e].video;
  10146. Y[U.quality]||(T.push(U),Y[U.quality]=!0)}return T};
  10147. KY.prototype.SE=function(d){d=d||xp;return g.Zl(this.videoInfos,function(q){return d.T(q)})};
  10148. KY.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var BXN=new Set(["356"]);g.M(GG,g.W);GG.prototype.ir=function(){g.W.prototype.ir.call(this)};g.Ig[X[12]][X[5]]=function(d,q){this[X[2]][d]!==q&&(this[X[2]][d]=q,this[X[29]]=X[14])};
  10149. g.Ig[X[12]][X[11]]=function(d){mp(this);return this[X[2]][d]||null};
  10150. g.Ig[X[12]][X[9]]=function(){this[X[29]]||(this[X[29]]=Wa6(this));return this[X[29]]};
  10151. g.Ig[X[12]][X[43]]=function(){var d=new g.Ig(this[X[3]],this[X[41]]);d[X[32]]=this[X[32]];d[X[18]]=this[X[18]];d[X[23]]=this[X[23]];d[X[2]]=g.x9(this[X[2]]);d[X[29]]=this[X[29]];return d};
  10152. var PON=[u6j];g.Q=g.qn.prototype;g.Q.jS=function(d){this.segments.push(d)};
  10153. g.Q.Zb=function(d){return!!this.nS(d)};
  10154. g.Q.getDuration=function(d){return(d=this.nS(d))?d.duration:0};
  10155. g.Q.jo=function(d){return this.getDuration(d)};
  10156. g.Q.qc=function(){return 0};
  10157. g.Q.Db=function(){return this.segments.length?this.segments[0].sD:-1};
  10158. g.Q.fH=function(d){return(d=this.nS(d))?d.ingestionTime:NaN};
  10159. g.Q.nC=function(){return this.segments.length?this.segments[this.segments.length-1].sD:-1};
  10160. g.Q.K1=function(d){return this.nC()===d&&!this.U&&d>=0};
  10161. g.Q.As=function(){var d=this.segments[this.segments.length-1];return d?d.endTime:NaN};
  10162. g.Q.BG=function(){return this.segments[0].startTime};
  10163. g.Q.Od=function(){return this.segments.length};
  10164. g.Q.n3=function(){return 0};
  10165. g.Q.yg=function(d){return(d=this.S_(d))?d.sD:-1};
  10166. g.Q.fO=function(d){return(d=this.nS(d))?d.sourceURL:""};
  10167. g.Q.getStartTime=function(d){return(d=this.nS(d))?d.startTime:0};
  10168. g.Q.Zq=function(d){return this.getStartTime(d)+this.getDuration(d)};
  10169. g.Q.oR=dI(1);g.Q.isLoaded=function(){return this.segments.length>0};
  10170. g.Q.nS=function(d){if(this.G&&this.G.sD===d)return this.G;d=g.Dn(this.segments,new d0(d,0,0,0,""),function(q,T){return q.sD-T.sD});
  10171. return this.G=d>=0?this.segments[d]:null};
  10172. g.Q.S_=function(d){if(this.G&&this.G.startTime<=d&&d<this.G.startTime+this.G.duration)return this.G;d=g.Dn(this.segments,{startTime:d},function(q,T){return q.startTime-T.startTime});
  10173. return this.G=d>=0?this.segments[d]:this.segments[Math.max(0,-d-2)]};
  10174. g.Q.append=function(d){if(d.length)if(d=g.rL(d),this.segments.length){var q=this.segments.length?g.yN(this.segments).endTime:0,T=d[0].sD-this.nC();T>1&&jQ7(this.segments);for(T=T>0?0:-T+1;T<d.length;T++){var Y=d[T];Y.startTime=q;Y.endTime=Y.startTime+Y.duration;q+=d[T].duration;this.segments.push(d[T])}}else this.segments=d};
  10175. g.Q.rN=function(){return 0};Tz.prototype.skip=function(d){this.G+=d};var qp={},jcE=(qp.predictStart="predictStart",qp.start="start",qp["continue"]="continue",qp.stop="stop",qp),zlI={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};F0.prototype.OX=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"])};
  10176. F0.prototype.toString=function(){for(var d="",q=g.E(Object.keys(this.data)),T=q.next();!T.done;T=q.next())T=T.value,d+=T+":"+this.data[T]+";";return d};a8.prototype.VP=function(){var d=this.pos;this.pos=0;var q=!1;try{OK(this,440786851)&&(this.pos=0,OK(this,408125543)&&(q=!0))}catch(T){if(T instanceof RangeError)this.pos=0,q=!1,g.OL(T);else throw T;}this.pos=d;return q};Wt.prototype.set=function(d,q){this.Wf.get(d);this.G[d]=q;this.url=""};
  10177. Wt.prototype.get=function(d){return this.G[d]||this.Wf.get(d)};
  10178. Wt.prototype.Hl=function(){this.url||(this.url=NP2(this));return this.url};g.Q=fj.prototype;g.Q.VK=function(d,q){return d.Qp?this.B?this.X=!0:this.X=xIg(this,d,q):xIg(this,d,q)};
  10179. g.Q.w_=function(d){return this.U.get(d)};
  10180. g.Q.aQ=function(){return this.U.get("cpn")||""};
  10181. g.Q.RQ=function(d,q){d.Wf===this.G&&(this.G=Cj(d,q));d.Wf===this.T&&(this.T=Cj(d,q))};
  10182. g.Q.jd=function(){return this.G!==this.T&&!this.X};l8.prototype.pj=function(){return!!this.G&&this.index.isLoaded()};
  10183. l8.prototype.Rw=function(){return!1};
  10184. l8.prototype.IM=function(d){return[d]};
  10185. l8.prototype.IV=function(d){return[d]};vt.prototype.toString=function(){return this.start+"-"+(this.end==null?"":this.end)};g.Q=qG.prototype;g.Q.qQ=function(){return this.S&&this.G.index.K1(this.sD)};
  10186. g.Q.isEncrypted=function(){return this.G.info.isEncrypted()};
  10187. g.Q.equals=function(d){return!(!d||d.G!==this.G||d.type!==this.type||(this.range&&d.range?d.range.start!==this.range.start||d.range.end!==this.range.end:d.range!==this.range)||d.sD!==this.sD||d.U!==this.U||d.j!==this.j)};
  10188. g.Q.eh=function(){return!!this.G.info.video};
  10189. g.Q.jt=function(){var d=bP(this),q="";g.os(d,function(T,Y){q+=Y+"_"+T+"_"});
  10190. return q.slice(0,-1)};Jl.prototype.xF=function(){return this.G?this.G.Hl():""};
  10191. Jl.prototype.isDecorated=function(){return!!(this.G||this.T&&this.T.Gs)};
  10192. Jl.prototype.q4=function(){return TE(this.Zw[0])};
  10193. Jl.prototype.RQ=function(d,q){this.zG.RQ(d,q);if(this.G){this.G=Cj(d,q);q=g.E(["acpns","cpn","daistate","skipsq"]);for(var T=q.next();!T.done;T=q.next())this.G[X[5]](T.value,null)}this.requestId=d.get("req_id")};g.M(Fo,l8);g.Q=Fo.prototype;g.Q.gr=function(){return!1};
  10194. g.Q.Gb=function(){return!0};
  10195. g.Q.hO=function(){return!1};
  10196. g.Q.Rw=function(){return!this.S};
  10197. g.Q.Sd=function(){return new Jl([new qG(1,this,this.initRange,"getMetadataRequestInfo")],this.S)};
  10198. g.Q.Kh=function(){return null};
  10199. g.Q.NJ=function(d){this.lG(d);return this.Gb()&&d.j&&!d.S?new Jl([new qG(d.type,d.G,d.range,"liveGetNextRequestInfoBySegment",d.sD,d.startTime,d.duration,d.U+d.j,NaN,!0)],this.index.fO(d.sD)):this.UX(U$(d),!1)};
  10200. g.Q.Fg=function(d,q){q=q===void 0?!1:q;d=this.index.yg(d);q&&(d=Math.min(this.index.nC(),d+1));return this.UX(d,!0)};
  10201. g.Q.u5=function(d){ny(d)};
  10202. g.Q.lG=function(d){return d.j===0?!0:this.index.nC()>d.sD&&this.index.Db()<=d.sD+1};
  10203. g.Q.update=function(d,q,T){this.index.append(d);Do2(this.index,T);d=this.index;d.U=q;d.j="update"};
  10204. g.Q.pj=function(){return this.Rw()?!0:l8.prototype.pj.call(this)};
  10205. g.Q.UX=function(d,q){var T=this.index.fO(d),Y=this.index.getStartTime(d),e=this.index.getDuration(d),U;q?e=U=0:U=this.info.Vv>0?this.info.Vv*e:1E3;return new Jl([new qG(3,this,void 0,"liveCreateRequestInfoForSegment",d,Y,e,0,U,!q)],T)};
  10206. g.Q.wG=function(){return this.Rw()?0:this.initRange.length};
  10207. g.Q.gV=function(){return!1};xw.prototype.update=function(d){var q=void 0;this.U&&(q=this.U);var T=new xw,Y=Array.from(d.getElementsByTagName("S"));if(Y.length){var e=+NG(d,"timescale")||1,U=(+Y[0].getAttribute("t")||0)/e,b=+NG(d,"startNumber")||0;T.T=U;var J=q?q.startSecs+q.sS:0,F=Date.parse(L17(NG(d,"yt:segmentIngestTime")))/1E3;T.S=d.parentElement.tagName==="SegmentTemplate";T.S&&(T.L=NG(d,"media"));d=q?b-q.sD:1;T.X=d>0?0:-d+1;d=g.E(Y);for(Y=d.next();!Y.done;Y=d.next()){Y=Y.value;for(var N=+Y.getAttribute("d")/e,R=(+Y.getAttribute("yt:sid")||
  10208. 0)/e,x=+Y.getAttribute("r")||0,y=0;y<=x;y++)if(q&&b<=q.sD)b++;else{var h=new K1D(b,J,N,F+R,U);T.G.push(h);var H=Y;var a=e,p=h.startSecs;h=H.getAttribute("yt:cuepointTimeOffset");var t=H.getAttribute("yt:cuepointDuration");if(h&&t){h=Number(h);p=-h/a+p;a=Number(t)/a;t=H.getAttribute("yt:cuepointContext")||null;var n=H.getAttribute("yt:cuepointIdentifier")||"";H=H.getAttribute("yt:cuepointEvent")||"";H=new $k(p,a,t,n,jcE[H]||"unknown",h)}else H=null;H&&T.j.push(H);b++;J+=N;U+=N;F+=N+R}}T.G.length&&
  10209. (T.U=g.yN(T.G))}this.X=T.X;this.U=T.U||this.U;g.tE(this.G,T.G);g.tE(this.j,T.j);this.S=T.S;this.L=T.L;this.T===-1&&(this.T=T.getStreamTimeOffset())};
  10210. xw.prototype.getStreamTimeOffset=function(){return this.T===-1?0:this.T};g.M(hl,g.qn);g.Q=hl.prototype;g.Q.qc=function(){return this.bO};
  10211. g.Q.Zb=function(d,q){d=Hb(this,d);return d>=0&&(q||!this.segments[d].pending)};
  10212. g.Q.Db=function(){return this.RF?this.segments.length?this.S_(this.BG()).sD:-1:g.qn.prototype.Db.call(this)};
  10213. g.Q.BG=function(){if(this.uC)return 0;if(!this.RF)return g.qn.prototype.BG.call(this);if(!this.segments.length)return 0;var d=Math.max(g.yN(this.segments).endTime-this.nW,0);return this.QX>0&&this.S_(d).sD<this.QX?this.nS(this.QX).startTime:d};
  10214. g.Q.As=function(){if(this.qx&&this.Dt&&this.Dt>0)return this.Dt/1E3;if(!this.segments.length)return g.qn.prototype.As.call(this);var d=this.nC();if(!this.RF||d<=this.segments[this.segments.length-1].sD)d=this.segments[this.segments.length-1];else{var q=this.segments[this.segments.length-1];d=new d0(d,Math.max(0,q.startTime-(q.sD-d)*this.bO),this.bO,0,"sq/"+d,void 0,void 0,!0)}return this.uC?Math.min(this.nW,d.endTime):d.endTime};
  10215. g.Q.Od=function(){return this.RF?this.segments.length?this.nC()-this.Db()+1:0:g.qn.prototype.Od.call(this)};
  10216. g.Q.nC=function(){var d=Math.min(this.rH,Math.max(g.qn.prototype.nC.call(this),this.z3)),q=this.nW*1E3;q=this.Dt>0&&this.Dt<q;this.uC&&this.nW>0&&this.z3>0&&!q&&(q=this.S_(this.nW))&&(d=Math.min(q.sD-1,d));return d};
  10217. g.Q.XZ=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
  10218. g.Q.jS=function(d){var q=Hb(this,d.sD);if(q>=0)this.segments[q]=d;else if(this.segments.splice(-(q+1),0,d),this.Fp&&d.sD%(300/this.bO)===0){var T=this.segments[0].sD,Y=Math.floor(this.Fp/this.bO);d=d.sD-Y;q=-(q+1)-Y;q>0&&d>T&&(this.segments=this.segments.slice(q))}};
  10219. g.Q.YD=function(){return this.z3};
  10220. g.Q.K1=function(d){return y8?!this.U&&d>=0&&this.nC()<=d:g.qn.prototype.K1.call(this,d)};
  10221. g.Q.S_=function(d){if(!this.RF)return g.qn.prototype.S_.call(this,d);if(!this.segments.length)return null;var q=this.segments[this.segments.length-1];if(d<this.segments[0].startTime)q=Math.max(0,this.segments[0].sD-Math.ceil((this.segments[0].startTime-d)/this.bO));else if(d>=q.endTime)q=q.sD+Math.floor((d-q.endTime)/this.bO+1);else{q=wL(this.segments,function(Y){return d<Y.startTime?-1:d>=Y.endTime?1:0});
  10222. if(q>=0)return this.segments[q];var T=-(q+1);q=this.segments[T-1];T=this.segments[T];q=Math.floor((d-q.endTime)/((T.startTime-q.endTime)/(T.sD-q.sD-1))+1)+q.sD}return this.nS(q)};
  10223. g.Q.nS=function(d){if(!this.RF)return g.qn.prototype.nS.call(this,d);if(!this.segments.length)return null;var q=Hb(this,d);if(q>=0)return this.segments[q];var T=-(q+1);q=this.bO;if(T===0)var Y=Math.max(0,this.segments[0].startTime-(this.segments[0].sD-d)*q);else T===this.segments.length?(Y=this.segments[this.segments.length-1],Y=Y.endTime+(d-Y.sD-1)*q):(Y=this.segments[T-1],q=this.segments[T],q=(q.startTime-Y.endTime)/(q.sD-Y.sD-1),Y=Y.endTime+(d-Y.sD-1)*q);return new d0(d,Y,q,0,"sq/"+d,void 0,void 0,
  10224. !0)};
  10225. var y8=!1;g.M(Q8,Fo);g.Q=Q8.prototype;g.Q.hO=function(){return!0};
  10226. g.Q.pj=function(){return!0};
  10227. g.Q.lG=function(d){return this.Gb()&&d.j&&!d.S||!d.G.index.K1(d.sD)};
  10228. g.Q.Sd=function(){};
  10229. g.Q.Fg=function(d,q){return typeof d!=="number"||isFinite(d)?Fo.prototype.Fg.call(this,d,q===void 0?!1:q):new Jl([new qG(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.W3,void 0,this.W3*this.info.Vv)],"")};
  10230. g.Q.UX=function(d,q){var T=T===void 0?!1:T;if(this.index.Zb(d))return Fo.prototype.UX.call(this,d,q);var Y=this.index.getStartTime(d),e=Math.round(this.W3*this.info.Vv),U=this.W3;q&&(U=e=0);return new Jl([new qG(T?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",d,Y,U,void 0,e,!q)],d>=0?"sq/"+d:"")};g.M(MG,l8);g.Q=MG.prototype;g.Q.gr=function(){return!1};
  10231. g.Q.Gb=function(){return!1};
  10232. g.Q.hO=function(){return!1};
  10233. g.Q.Sd=function(){return new Jl([new qG(1,this,void 0,"otfInit")],this.S)};
  10234. g.Q.Kh=function(){return null};
  10235. g.Q.NJ=function(d){this.lG(d);return fBD(this,U$(d),!1)};
  10236. g.Q.Fg=function(d,q){q=q===void 0?!1:q;d=this.index.yg(d);q&&(d=Math.min(this.index.nC(),d+1));return fBD(this,d,!0)};
  10237. g.Q.u5=function(d){d.info.type===1&&(this.G||(this.G=g5(d.U)),d.G&&d.G.uri==="http://youtube.com/streaming/otf/durations/112015"&&zIH(this,d.G))};
  10238. g.Q.lG=function(d){return d.j===0?!0:this.index.nC()>d.sD&&this.index.Db()<=d.sD+1};
  10239. g.Q.wG=function(){return 0};
  10240. g.Q.gV=function(){return!1};g.cb.prototype.info=function(){};
  10241. g.cb.prototype.debug=function(){};
  10242. g.cb.prototype.G=function(d){E$.apply(null,[5,this.tag,d].concat(g.RQ(g.CN.apply(1,arguments))))};
  10243. var mI7=new Map,vV2=new Map,SJg=new function(){var d=this;this.G=new Map;this.fC={SZD:function(){return d.G}}};g.Q=g.rT.prototype;g.Q.Zb=function(d){return d<=this.nC()};
  10244. g.Q.n3=function(d){return this.offsets[d]};
  10245. g.Q.getStartTime=function(d){return this.startTicks[d]/this.G};
  10246. g.Q.Zq=function(d){return this.getStartTime(d)+this.getDuration(d)};
  10247. g.Q.oR=dI(0);g.Q.fH=function(){return NaN};
  10248. g.Q.getDuration=function(d){d=this.jo(d);return d>=0?d/this.G:-1};
  10249. g.Q.jo=function(d){return d+1<this.count||this.U?this.startTicks[d+1]-this.startTicks[d]:-1};
  10250. g.Q.qc=function(){return 0};
  10251. g.Q.Db=function(){return 0};
  10252. g.Q.nC=function(){return this.count-1};
  10253. g.Q.K1=function(d){return this.nC()===d&&d>=0};
  10254. g.Q.As=function(){return this.U?this.startTicks[this.count]/this.G:NaN};
  10255. g.Q.BG=function(){return 0};
  10256. g.Q.Od=function(){return this.count};
  10257. g.Q.fO=function(){return""};
  10258. g.Q.yg=function(d){d=g.Dn(this.startTicks.subarray(0,this.count),d*this.G);return d>=0?d:Math.max(0,-d-2)};
  10259. g.Q.isLoaded=function(){return this.nC()>=0};
  10260. g.Q.rN=function(d,q){if(d>=this.nC())return 0;var T=0;for(q=this.getStartTime(d)+q;d<this.nC()&&q>this.getStartTime(d);d++)T=Math.max(T,bkY(this,d)/this.getDuration(d));return T};
  10261. g.Q.resize=function(d){d+=2;var q=this.offsets;this.offsets=new Float64Array(d+1);var T=this.startTicks;this.startTicks=new Float64Array(d+1);for(d=0;d<this.count+1;d++)this.offsets[d]=q[d],this.startTicks[d]=T[d]};
  10262. g.Q.cap=function(d,q){tl(this);this.U=!0;this.startTicks[this.count]=q;this.offsets[this.count]=d};g.M(Bb,l8);g.Q=Bb.prototype;g.Q.Sd=function(d,q){var T=new qG(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,q),Y=[new qG(1,this,this.initRange,"initInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,q),T];this.info.contentLength>0&&d&&(T=T.range.end+1,d=Math.min(d,this.info.contentLength-T),d>0&&Y.push(new qG(4,this,VL(T,d),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,q)));return new Jl(Y)};
  10263. g.Q.u5=function(d){if(d.info.type===1){if(this.G)return;this.G=g5(d.U)}else if(d.info.type===2){if(this.S||this.index.nC()>=0)return;if(g.Ce(this.info)){var q=this.index,T=g.ad(d);d=d.info.range.start;var Y=g.R8(T,0,1936286840);T=qJ2(Y);q.G=T.timescale;var e=T.Vb;q.offsets[0]=T.mI+d+Y.size;q.startTicks[0]=e;q.U=!0;d=T.yL.length;for(Y=0;Y<d;Y++){e=q;var U=T.GAZ[Y],b=T.yL[Y];e.count++;tl(e);e.offsets[e.count]=e.offsets[e.count-1]+U;e.startTicks[e.count]=e.startTicks[e.count-1]+b}}else this.S=g.ad(d)}if(this.info.fz()&&
  10264. this.G&&this.S){T=new DataView(this.G.buffer);q=this.index;Y=this.S;d=this.indexRange.end;e=new a8(T);T=e;e=T.pos;U={dh:1E6,JZ:1E9,duration:0,RO:0,RA:0};if(OK(T,408125543))if(U.RO=nj(T,!0),U.RA=T.start+T.pos,OK(T,357149030)){for(b=ZT(T);!Au(b);){var J=nj(b,!1);J===2807729?U.dh=tu(b):J===2807730?U.JZ=tu(b):J===17545?U.duration=Kj(b):Bt(b)}T.pos=e;T=U}else T.pos=e,T=null;else T.pos=e,T=null;if(T!==null){q.G=T.JZ/T.dh;e=new a8(Y);Y=e;b=T.RA;e=Y.pos;U=[];if(OK(Y,475249515)){for(J=ZT(Y);OK(J,187);){var F=
  10265. ZT(J);if(OK(F,179)){var N=tu(F);if(OK(F,183)){F=ZT(F);for(var R=b;OK(F,241);)R=tu(F)+b;U.push({Po:R,EA:N})}}}if(U.length>0&&d===U[0].Po)for(d=0;d<U.length;d++)U[d].Po+=1;Y.pos=e;d=U}else Y.pos=e,d=null;if(d!==null){d=g.E(d);for(Y=d.next();!Y.done;Y=d.next())U=Y.value,Y=q,e=U.Po,U=U.EA,tl(Y),Y.offsets[Y.count]=e,Y.startTicks[Y.count]=U,Y.count++;q.cap(T.RO+T.RA,T.duration)}}this.S=null}};
  10266. g.Q.R7=function(d,q,T,Y){for(var e=[],U=d;U<=this.index.nC();U++){var b=VL(this.index.n3(U),bkY(this.index,U)),J=this.index.getStartTime(U),F=this.index.getDuration(U),N=Math.max(0,q-b.start),R=Math.min(b.end+1,q+T)-(b.start+N);e.push(new qG(3,this,b,"getRequestInfoForRange",U,J,F,N,R,void 0,void 0,Y));if(b.start+N+R>=q+T)break}e.length||(d=new g.CW("b189619593",""+d,""+q,""+T),g.Zz(d));return new Jl(e)};
  10267. g.Q.IM=function(d){for(var q=this.IV(d.info),T=d.info.range.start+d.info.U,Y=[],e=0;e<q.length;e++){var U=bz(d.U,q[e].range.start+q[e].U-T,q[e].j);Y.push(new ju(q[e],U))}return Y};
  10268. g.Q.IV=function(d){for(var q=d.range.start+d.U,T=0;T<this.index.nC()&&q>=this.index.n3(T+1);)T++;return this.R7(T,q,d.j).Zw};
  10269. g.Q.lG=function(d){d.qQ();return this.pj()?!0:d.range.end+1<this.info.contentLength};
  10270. g.Q.Kh=function(d,q){this.lG(d);if(!this.pj())return q=VL(d.range.end+1,q),q.end+1>this.info.contentLength&&(q=new vt(q.start,this.info.contentLength-1)),new Jl([new qG(4,d.G,q,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,d.clipId)]);d.type===4&&(d=this.IV(d),d=d[d.length-1]);var T=0,Y=d.range.start+d.U+d.j;d.type===3&&(d.qQ(),T=d.sD,Y===d.range.end+1&&(T+=1));return this.R7(T,Y,q)};
  10271. g.Q.NJ=function(){return null};
  10272. g.Q.Fg=function(d,q){q=q===void 0?!1:q;d=this.index.yg(d);q&&(d=Math.min(this.index.nC(),d+1));return this.R7(d,this.index.n3(d),0,void 0)};
  10273. g.Q.gr=function(){return!0};
  10274. g.Q.Gb=function(){return!0};
  10275. g.Q.hO=function(){return!1};
  10276. g.Q.wG=function(){return this.indexRange.length+this.initRange.length};
  10277. g.Q.gV=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var Tw={},ExY=(Tw.COLOR_PRIMARIES_BT709="bt709",Tw.COLOR_PRIMARIES_BT2020="bt2020",Tw.COLOR_PRIMARIES_UNKNOWN=null,Tw.COLOR_PRIMARIES_UNSPECIFIED=null,Tw),Yd={},JeX=(Yd.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",Yd.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",Yd.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",Yd.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",Yd.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,Yd.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,Yd);g.Ky.prototype.getName=function(){return this.name};
  10278. g.Ky.prototype.getId=function(){return this.id};
  10279. g.Ky.prototype.getIsDefault=function(){return this.isDefault};
  10280. g.Ky.prototype.toString=function(){return this.name};
  10281. g.Ky.prototype.getName=g.Ky.prototype.getName;g.Ky.prototype.getId=g.Ky.prototype.getId;g.Ky.prototype.getIsDefault=g.Ky.prototype.getIsDefault;var Fif=/action_display_post/;var NCN,kw,Pb;g.M(Wb,g.YP);g.Q=Wb.prototype;g.Q.isLoading=function(){return this.state===1};
  10282. g.Q.E5=function(){return this.state===3};
  10283. g.Q.HH2=function(d){var q=d.getElementsByTagName("Representation");if(d.getElementsByTagName("SegmentList").length>0||d.getElementsByTagName("SegmentTemplate").length>0){this.aN=this.U=!0;this.timeline||(this.timeline=new PWX);DIX(this.timeline,d);this.publish("refresh");for(d=0;d<q.length;d++){var T=nxH(this,q[d]);if(!this.G[T.id]){var Y=fy(Rd(q[d],"BaseURL").textContent),e=Rd(q[d],"Initialization"),U=NG(e,"sourceURL");e=o8(NG(e,"range"));this.G[T.id]=new Fo(Y,T,U,e)}T=this.G[T.id];Y=NG(q[d],"id",
  10284. "AdaptationSet");Y=Y!==""?Y:NG(q[d],"mimetype","AdaptationSet");U=this.timeline;U=U.j[T.info.id]||U.U[Y]||U.G||null;Y=U.G;!this.L&&U.getStreamTimeOffset()&&(this.L=U.getStreamTimeOffset());if(U.S){e=[];Y=g.E(Y);for(var b=Y.next();!b.done;b=Y.next()){b=b.value;var J=T.info.id,F=T.info.Vv*8,N=b.sD;var R=b.startSecs;var x=U.L.split("$$");for(var y=0;y<x.length;y++)x[y]=x[y].replace("$RepresentationID$",J),x[y]=x[y].replace("$Number$",N.toString()),x[y]=x[y].replace("$Bandwidth$",F.toString()),x[y]=x[y].replace("$Time$",
  10285. R.toString());e.push(new d0(b.sD,b.startSecs,b.sS,b.G,x.join("$"),null,b.U))}Y=e}else{U=LB(Rd(q[d],"SegmentList").getElementsByTagName("SegmentURL"),U.X);e=[];for(b=0;b<U.length;b++){J=e;F=J.push;N=Y[b];R=void 0;y=U[b];x=y.getAttribute("media");if(y=y.getAttribute("mediaRange")){var h=y.split("-");h[1]&&Number(h[1])>=0?R=o8(y):x=x+"?range="+y}F.call(J,new d0(N.sD,N.startSecs,N.sS,N.G,x,R,N.U))}Y=e}T.update(Y,this.isLive,this.qk)}wHQ(this.timeline);return!0}this.duration=GLN(NG(d,"mediaPresentationDuration"));
  10286. a:{for(d=0;d<q.length;d++){U=q[d];T=nxH(this,U);Y=fy(Rd(U,"BaseURL").textContent);e=Rd(U,"SegmentBase");U=o8(e.attributes.getNamedItem("indexRange").value);e=o8(e.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);T=new Bb(Y,T,e,U);if(!T){q=!1;break a}Ly(this,T)}q=!0}return q};
  10287. g.Q.refresh=function(){if(!this.isLoading()&&!this.JF()){var d=g.y6(this.sourceUrl,{start_seq:G51(this).toString()});t1D(this,d).C8(function(){})}};
  10288. g.Q.resume=function(){rej(this)};
  10289. g.Q.cG=function(){if(this.isManifestless&&this.T&&iP(this))return iP(this);var d=this.G,q=!1,T=NaN,Y=NaN,e;for(e in d){var U=d[e],b=U.index;b.isLoaded()&&!iW(U.info.mimeType)&&(U.T&&(q=!0),b=b.As(),U.info.JE()&&(isNaN(T)||b<T)?T=b:U.info.eh()&&(isNaN(Y)||b<Y)&&(Y=b))}return q||isNaN(Y)?T:Math.min(T,Y)};
  10290. g.Q.BG=function(){if(this.isManifestless){if(Id(this))return Id(this);if(this.vF){var d=this.fH(this.cG());if(d&&(d-=this.vF,d>0))return this.cG()-d}}d=this.G;for(var q in d){var T=d[q].index;if(T.isLoaded()&&!iW(d[q].info.mimeType))return T.BG()}return 0};
  10291. g.Q.getStreamTimeOffset=function(){return this.L};
  10292. g.Q.fH=function(d){for(var q in this.G){var T=this.G[q].index;if(T.isLoaded()){var Y=T.yg(d),e=T.fH(Y);if(e)return e+d-T.getStartTime(Y)}}return NaN};
  10293. var V8=null,aV7,d6=!((aV7=navigator.mediaCapabilities)==null||!aV7.decodingInfo),OkD={commentary:1,alternate:2,dub:3,main:4};var pE=new Set,qd=new Map;eJ.prototype.clone=function(d){return new eJ(this.flavor,d,this.U,this.experiments)};
  10294. eJ.prototype.BF=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
  10295. eJ.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}};
  10296. var A0N={},R9=(A0N.playready=["com.youtube.playready","com.microsoft.playready"],A0N.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],A0N),eQ={},rWj=(eQ.widevine="DRM_SYSTEM_WIDEVINE",eQ.fairplay="DRM_SYSTEM_FAIRPLAY",eQ.playready="DRM_SYSTEM_PLAYREADY",eQ),UQ={},pz_=(UQ.widevine=1,UQ.fairplay=2,UQ.playready=3,UQ);var hj;g.M(x8,g.W);
  10297. x8.prototype.initialize=function(d,q){for(var T=this,Y=g.E(Object.keys(d)),e=Y.next();!e.done;e=Y.next()){e=g.E(d[e.value]);for(var U=e.next();!U.done;U=e.next())if(U=U.value,U.ac)for(var b=g.E(Object.keys(U.ac)),J=b.next();!J.done;J=b.next()){var F=J.value;J=F;F=R9[F];!F&&this.N("html5_enable_vp9_fairplay")&&J==="fairplay"&&(F=["com.youtube.fairplay.sbdl"]);if(F){F=g.E(F);for(var N=F.next();!N.done;N=F.next())N=N.value,this.j[N]=this.j[N]||new eJ(J,N,U.ac[J],this.Mk.experiments),this.G[J]=this.G[J]||
  10298. {},this.G[J][U.mimeType]=!0}}}CZ()&&(this.j["com.youtube.fairplay"]=new eJ("fairplay","com.youtube.fairplay","",this.Mk.experiments),this.N("html5_enable_vp9_fairplay")||(this.G.fairplay=this.G.fairplay||{},this.G.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.G.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.U=DF_(q,this.useCobaltWidevine,this.N("html5_enable_safari_fairplay")&&!0,this.N("html5_enable_vp9_fairplay")).filter(function(R){return!!T.j[R]})};
  10299. x8.prototype.N=function(d){return this.Mk.experiments.Wv(d)};var ZpB={"":"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"};mFI.prototype.N=function(d){return this.experiments.Wv(d)};var uF2={RED:"red",siO:"white"};SX6.prototype.Wv=function(d){d=this.flags[d];JSON.stringify(d);return d==="true"};var ox1=Promise.resolve(),TUD=window.queueMicrotask?window.queueMicrotask.bind(window):V1D;cx.prototype.canPlayType=function(d,q){d=d.canPlayType?d.canPlayType(q):!1;uR?d=d||Opx[q]:eZ===2.2?d=d||nQI[q]:PL()&&(d=d||r0c[q]);return!!d};
  10300. cx.prototype.isTypeSupported=function(d){return this.K?window.cast.receiver.platform.canDisplayType(d):cH(d)};
  10301. var nQI={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},r0c={"application/x-mpegURL":"maybe"},Opx={"application/x-mpegURL":"maybe"};g.M(a9,g.YP);a9.prototype.add=function(d,q){if(!this.items[d]&&(q.cQ||q.YR||q.NB)){var T=this.items,Y=q;Object.isFrozen&&!Object.isFrozen(q)&&(Y=Object.create(q),Object.freeze(Y));T[d]=Y;this.publish("vast_info_card_add",d)}};
  10302. a9.prototype.remove=function(d){var q=this.get(d);delete this.items[d];return q};
  10303. a9.prototype.get=function(d){return this.items[d]||null};
  10304. a9.prototype.isEmpty=function(){return g.FV(this.items)};Aj.prototype.encrypt=function(d){this.G.exports.AES128CTRCipher_encrypt(this.cipher,d.byteOffset,d.byteLength);return d};
  10305. Aj.prototype.JF=function(){return this.cipher===0};
  10306. Aj.prototype.dispose=function(){this.G.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};ZN.prototype.Z5=function(d,q){q=q===void 0?1:q;this.oI+=q;this.U+=d;d/=q;for(var T=0;T<pO.length&&!(d<pO[T]);++T)this.G[T]+=q};
  10307. ZN.prototype.toString=function(){return""};
  10308. var pO=[20,100,500,2E3];g.Q=JPn.prototype;g.Q.isActive=function(){return!0};
  10309. g.Q.aY=function(d,q){if(q){var T=this,Y={},e;for(e in q)Y={zJ:void 0,dP:void 0},q.hasOwnProperty(e)&&(Y.dP=d.prototype[e],Y.zJ=q[e],d.prototype[e]=function(U){return function(){var b=g.CN.apply(0,arguments),J=this,F=(0,g.cj)(),N=U.dP.apply(J,b);return gKN(T,N,null,F,function(R){return U.zJ.apply(J,[R].concat(b))})}}(Y))}};
  10310. g.Q.ji=function(){return new XnQ};
  10311. g.Q.Ed=function(d,q,T){T=T===void 0?1:T;q instanceof XnQ&&(s0I(this,d,(0,g.cj)()-q.startTimeMs,T),q.G=!0)};
  10312. g.Q.GZ=function(d,q){var T=(0,g.cj)();q=q();gKN(this,q,d,T)};
  10313. g.Q.K6=function(){var d={},q;for(q in this.G)if(this.G.hasOwnProperty(q)){var T=this.G[q];if(T.oI===0)T=null;else{for(var Y=Math.ceil(T.oI).toFixed(0)+"."+T.U.toFixed(0),e=0;e<pO.length;++e)if(T.G[e]>0)Y+="."+pO[e].toFixed(0)+"_"+T.G[e].toFixed(0);else break;T=Y}T&&(d[q]=T)}this.G=new bdf;return d};
  10314. g.Q.toString=function(){return""};g.Q=Fl_.prototype;g.Q.isActive=function(){return!1};
  10315. g.Q.aY=function(){};
  10316. g.Q.ji=function(){};
  10317. g.Q.Ed=function(){};
  10318. g.Q.GZ=function(d,q){q()};
  10319. g.Q.K6=function(){return{}};
  10320. g.Q.toString=function(){return""};var t0q=new Fl_,BvB=!!+ww("html5_enable_profiler"),KAx=!!+ww("html5_onesie_enable_profiler"),bJ=BvB||KAx?new JPn:t0q,SZ6=BvB?bJ:t0q,nO=KAx?bJ:t0q;Hd_.prototype.emscripten_notify_memory_growth=function(){};g.Q=O4.prototype;g.Q.malloc=function(d){return this.exports.malloc(d)};
  10321. g.Q.free=function(d){this.exports.free(d)};
  10322. g.Q.realloc=function(d,q){return this.exports.realloc(d,q)};
  10323. g.Q.rZ=function(d){if(d.buffer!==this.exports.memory.buffer){var q=this.malloc(d.byteLength);q=new Uint8Array(this.exports.memory.buffer,q,d.byteLength);q.set(d);return q}};
  10324. g.Q.q$=function(d){if(d.buffer===this.exports.memory.buffer){var q=d.slice();this.free(d.byteOffset);return q}};
  10325. var NUD=new function(){this.j=this.T="WebAssembly"in window},r6="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly);
  10326. nO.aY(O4,{rZ:function(d){return{profile:"copyj2w",oI:d===void 0?0:Math.ceil(d.byteLength/16)}},
  10327. q$:function(d){return{profile:"copyw2j",oI:d===void 0?0:Math.ceil(d.byteLength/16)}}});tj.prototype.encrypt=function(d,q){try{return this.G.q$(EKQ(this,d,q))}catch(T){g.OL(Error("ocwce: wasm encrypt failed: "+T))}};
  10328. tj.prototype.JF=function(){return this.j};
  10329. tj.prototype.dispose=function(){this.JF()||(g.T1(this.U),this.G.free(this.T.byteOffset),this.j=!0)};g.M(j0_,g.W);g.M(AP2,g.W);var KO;GH.prototype.add=function(d){if(this.pos+20>this.data.length){var q=new Uint8Array(this.data.length*2);q.set(this.data);this.data=q}for(;d>31;)this.data[this.pos++]=KO[(d&31)+32],d>>=5;this.data[this.pos++]=KO[d|0]};
  10330. GH.prototype.VH=function(){return g.yA(this.data.subarray(0,this.pos))};
  10331. GH.prototype.reset=function(){this.pos=0};k8.prototype.gH=function(d,q){var T=Math.pow(this.alpha,d);this.G=q*(1-T)+T*this.G;this.U+=d};
  10332. k8.prototype.W4=function(){return this.G/(1-Math.pow(this.alpha,this.U))};Px.prototype.gH=function(d,q){for(var T=0;T<10;T++){var Y=this.G[T],e=Y+(T===0?d:0),U=1*Math.pow(2,T);if(e<=U)break;Y=Math.min(1,(e-U*.5)/Y);for(e=0;e<16;e++)U=this.values[T*16+e]*Y,this.values[(T+1)*16+e]+=U,this.G[T+1]+=U,this.values[T*16+e]-=U,this.G[T]-=U}Y=T=0;e=8192;q>8192&&(T=Math.ceil(Math.log(q/8192)/Math.log(2)),Y=8192*Math.pow(2,T-1),e=Y*2);T+2>16?this.values[15]+=d:(q=(q-Y)/(e-Y),this.values[T]+=d*(1-q),this.values[T+1]+=d*q);this.G[0]+=d};
  10333. Px.prototype.W4=function(){var d=d===void 0?this.U:d;var q=q===void 0?.02:q;var T=T===void 0?.98:T;for(var Y=this.j,e=0;e<16;e++)Y[e]=this.values[e];e=this.G[0];for(var U=1;U<11;U++){var b=this.G[U];if(b===0)break;for(var J=Math.min(1,(d-e)/b),F=0;F<16;F++)Y[F]+=this.values[U*16+F]*J;e+=b*J;if(J<1)break}for(U=d=b=0;U<16;U++){J=b+Y[U]/e;d+=Math.max(0,Math.min(J,T)-Math.max(b,q))*(U>0?8192*Math.pow(2,U-1):0);if(J>T)break;b=J}return d/(T-q)};Wx.prototype.gH=function(d,q){d=Math.min(this.G,Math.max(1,Math.round(d*this.resolution)));d+this.U>=this.G&&(this.j=!0);for(;d--;)this.values[this.U]=q,this.U=(this.U+1)%this.G;this.eP=!0};
  10334. Wx.prototype.percentile=function(d){var q=this;if(!this.j&&this.U===0)return 0;this.eP&&(g.iQ(this.S,function(T,Y){return q.values[T]-q.values[Y]}),this.eP=!1);
  10335. return this.values[this.S[Math.round(d*((this.j?this.G:this.U)-1))]]||0};
  10336. Wx.prototype.W4=function(){return this.X?(this.percentile(this.T-this.X)+this.percentile(this.T)+this.percentile(this.T+this.X))/3:this.percentile(this.T)};g.M(CO,g.W);CO.prototype.xx=function(){var d;(d=this.RU)==null||d.start();if(mz(this)&&this.policy.B){var q;(q=this.h1)==null||q.h3()}};tdf.prototype.N=function(d){return this.experiments.Wv(d)};g.M(KlY,g.W);var Cu6="blogger ads-preview gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),ID1={wrZ:"caoe",Pwr:"capsv",aED:"cbrand",sgD:"cbr",uMv:"cbrver",eZf:"cchip",A0v:"ccappver",g1w:"ccrv",LT2:"cfrmver",YPg:"c",apr:"cver",bq5:"ctheme",hFv:"cplayer",bpg:"cmodel",rX:"cnetwork",Atg:"cos",OS_VERSION:"cosver",krv:"cplatform",H3U:"crqyear"};g.M(Rn,g.W);g.Q=Rn.prototype;g.Q.N=function(d){return this.experiments.Wv(d)};
  10337. g.Q.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig};
  10338. g.Q.getVideoUrl=function(d,q,T,Y,e,U,b){q={list:q};T&&(e?q.time_continue=T:q.t=T);T=b?"music.youtube.com":g.yv(this);e=T==="www.youtube.com";!U&&Y&&e?U="https://youtu.be/"+d:g.XW(this)?(U="https://"+T+"/fire",q.v=d):(U&&e?(U=this.protocol+"://"+T+"/shorts/"+d,Y&&(q.feature="share")):(U=this.protocol+"://"+T+"/watch",q.v=d),uR&&(d=zFY())&&(q.ebc=d));return g.y6(U,q)};
  10339. g.Q.getVideoEmbedCode=function(d,q,T,Y){q="https://"+g.yv(this)+"/embed/"+q;Y&&(q=g.y6(q,{list:Y}));Y=T.width;T=T.height;q=nn(q);d=nn(d!=null?d:"YouTube video player");return'<iframe width="'+Y+'" height="'+T+'" src="'+q+'" title="'+(d+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>')};
  10340. g.Q.supportsGaplessAudio=function(){return g.MI&&!uR&&Gt()>=74||g.Fv&&g.WZ(68)?!0:!1};
  10341. g.Q.supportsGaplessShorts=function(){return!this.N("html5_enable_short_gapless")||this.qk||g.F8?!1:!0};
  10342. g.Q.getPlayerType=function(){return this.G.cplayer};
  10343. g.Q.uF=function(){return this.R6};
  10344. var vK7=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],idN=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],S_g=[19];var X5={},qOH=(X5["140"]={numChannels:2},X5["141"]={numChannels:2},X5["251"]={audioSampleRate:48E3,numChannels:2},X5["774"]={audioSampleRate:48E3,numChannels:2},X5["380"]={numChannels:6},X5["328"]={numChannels:6},X5["773"]={},X5),JN={},VdN=(JN["1"]='video/mp4; codecs="av01.0.08M.08"',JN["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',JN["1e"]='video/mp4; codecs="av01.0.08M.08"',JN["9"]='video/webm; codecs="vp9"',JN["("]='video/webm; codecs="vp9"',JN["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',
  10345. JN.h='video/mp4; codecs="avc1.64001e"',JN.H='video/mp4; codecs="avc1.64001e"',JN.o='audio/webm; codecs="opus"',JN.a='audio/mp4; codecs="mp4a.40.2"',JN.ah='audio/mp4; codecs="mp4a.40.2"',JN.mac3='audio/mp4; codecs="ac-3"; channels=6',JN.meac3='audio/mp4; codecs="ec-3"; channels=6',JN.i='audio/mp4; codecs="iamf.001.001.Opus"',JN),sQ={},dm1=(sQ["337"]={width:3840,height:2160,bitrate:3E7,fps:30},sQ["336"]={width:2560,height:1440,bitrate:15E6,fps:30},sQ["335"]={width:1920,height:1080,bitrate:75E5,fps:30},
  10346. sQ["702"]={width:7680,height:4320,bitrate:4E7,fps:60},sQ["701"]={width:3840,height:2160,bitrate:2E7,fps:60},sQ["700"]={width:2560,height:1440,bitrate:1E7,fps:60},sQ["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},sQ["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},sQ["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},sQ["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},
  10347. sQ["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},sQ["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},sQ["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},sQ["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},sQ["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},sQ["315"]={width:3840,height:2160,bitrate:2E7,fps:60},sQ["308"]={width:2560,
  10348. height:1440,bitrate:1E7,fps:60},sQ["303"]={width:1920,height:1080,bitrate:5E6,fps:60},sQ["302"]={width:1280,height:720,bitrate:25E5,fps:60},sQ["299"]={width:1920,height:1080,bitrate:75E5,fps:60},sQ["298"]={width:1280,height:720,bitrate:35E5,fps:60},sQ["571"]={width:7680,height:4320,bitrate:3E7,fps:60},sQ["401"]={width:3840,height:2160,bitrate:15E6,fps:60},sQ["400"]={width:2560,height:1440,bitrate:75E5,fps:60},sQ["399"]={width:1920,height:1080,bitrate:2E6,fps:60},sQ["398"]={width:1280,height:720,bitrate:1E6,
  10349. fps:60},sQ["397"]={width:854,height:480,bitrate:4E5,fps:30},sQ["396"]={width:640,height:360,bitrate:25E4,fps:30},sQ["787"]={width:1080,height:608,bitrate:2E5,fps:30},sQ["788"]={width:1080,height:608,bitrate:4E5,fps:30},sQ["572"]={width:7680,height:4320,bitrate:3E7,fps:60},sQ["555"]={width:3840,height:2160,bitrate:15E6,fps:60},sQ["554"]={width:2560,height:1440,bitrate:75E5,fps:60},sQ["553"]={width:1920,height:1080,bitrate:2E6,fps:60},sQ["552"]={width:1280,height:720,bitrate:1E6,fps:60},sQ["551"]={width:854,
  10350. height:480,bitrate:4E5,fps:30},sQ["550"]={width:640,height:360,bitrate:25E4,fps:30},sQ["313"]={width:3840,height:2160,bitrate:8E6,fps:30},sQ["271"]={width:2560,height:1440,bitrate:4E6,fps:30},sQ["248"]={width:1920,height:1080,bitrate:2E6,fps:30},sQ["247"]={width:1280,height:720,bitrate:15E5,fps:30},sQ["244"]={width:854,height:480,bitrate:52E4,fps:30},sQ["243"]={width:640,height:360,bitrate:28E4,fps:30},sQ["137"]={width:1920,height:1080,bitrate:4E6,fps:30},sQ["136"]={width:1280,height:720,bitrate:3E6,
  10351. fps:30},sQ["135"]={width:854,height:480,bitrate:1E6,fps:30},sQ["385"]={width:1920,height:1080,bitrate:6503313,fps:60},sQ["376"]={width:1280,height:720,bitrate:5706960,fps:60},sQ["384"]={width:1280,height:720,bitrate:3660979,fps:60},sQ["225"]={width:1280,height:720,bitrate:5805E3,fps:30},sQ["224"]={width:1280,height:720,bitrate:453E4,fps:30},sQ["145"]={width:1280,height:720,bitrate:2682052,fps:30},sQ);g.Q=KI.prototype;g.Q.getInfo=function(){return this.G};
  10352. g.Q.Ld=function(){return null};
  10353. g.Q.Tx=function(){var d=this.Ld();return d?(d=g.oE(d.zG),Number(d.expire)):NaN};
  10354. g.Q.vT=function(){};
  10355. g.Q.getHeight=function(){return this.G.video.height};Um_.prototype.build=function(){JRX(this);var d=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],q={};a:if(this.G)var T=this.G;else{T="";for(var Y=g.E(this.j),e=Y.next();!e.done;e=Y.next())if(e=e.value,e.DQ){if(e.DQ.getIsDefault()){T=e.DQ.getId();break a}T||(T=e.DQ.getId())}}Y=g.E(this.j);for(e=Y.next();!e.done;e=Y.next())if(e=e.value,this.X||!e.DQ||e.DQ.getId()===T)q[e.itag]||(q[e.itag]=[]),q[e.itag].push(e);T=g.E(this.U);for(Y=T.next();!Y.done;Y=T.next())if(Y=Y.value,e=q[Y.G]){e=g.E(e);for(var U=e.next();!U.done;U=
  10356. e.next()){var b=d,J=b.push;U=U.value;var F="#EXT-X-MEDIA:TYPE=AUDIO,",N="YES",R="audio";if(U.DQ){R=U.DQ;var x=R.getId().split(".")[0];x&&(F+='LANGUAGE="'+x+'",');(this.G?this.G===R.getId():R.getIsDefault())||(N="NO");R=R.getName()}x="";Y!==null&&(x=Y.itag.toString());x=LI(this,U.url,x);F=F+('NAME="'+R+'",DEFAULT='+(N+',AUTOSELECT=YES,GROUP-ID="'))+(XY1(U,Y)+'",URI="'+(x+'"'));J.call(b,F)}}T=g.E(this.S);for(Y=T.next();!Y.done;Y=T.next())Y=Y.value,e=GIs,Y=(b=Y.DQ)?'#EXT-X-MEDIA:URI="'+LI(this,Y.url)+
  10357. '",TYPE=SUBTITLES,GROUP-ID="'+e+'",LANGUAGE="'+b.getId()+'",NAME="'+b.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,Y&&d.push(Y);T=this.S.length>0?GIs:void 0;Y=g.E(this.U);for(e=Y.next();!e.done;e=Y.next())e=e.value,J=q[e.G],b=void 0,((b=J)==null?void 0:b.length)>0&&(b=e,J=J[0],J="#EXT-X-STREAM-INF:BANDWIDTH="+(b.bitrate+J.bitrate)+',CODECS="'+(b.codecs+","+J.codecs+'",RESOLUTION=')+(b.width+"x"+b.height+',AUDIO="')+(XY1(J,b)+'",')+(T?'SUBTITLES="'+T+'",':"")+"CLOSED-CAPTIONS=NONE",b.fps>1&&(J+=
  10358. ",FRAME-RATE="+b.fps),b.C5&&(J+=",VIDEO-RANGE="+b.C5),d.push(J),d.push(LI(this,e.url,"")));return d.join("\n")};
  10359. var GIs="text";g.M(kl,KI);kl.prototype.Tx=function(){return this.expiration};
  10360. kl.prototype.Ld=function(){if(!this.zG||this.zG.JF()){var d=this.U.build();d="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(d);this.zG=new Je(d)}return this.zG};g.M(PT,KI);PT.prototype.Ld=function(){return new Je(this.U.Hl())};
  10361. PT.prototype.vT=function(){this.U=og(this.U)};g.M(WT,KI);WT.prototype.Ld=function(){return new Je(this.U)};var $d={},HSQ=($d.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",$d.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",$d.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",$d.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",$d);g.Q=g.CI.prototype;g.Q.getId=function(){return this.id};
  10362. g.Q.getName=function(){return this.name};
  10363. g.Q.isServable=function(){return this.G};
  10364. g.Q.Hl=function(){return this.url};
  10365. g.Q.getXtags=function(){return this.xtags};
  10366. g.Q.toString=function(){return this.languageCode+": "+g.uS(this)+" - "+this.vssId+" - "+(this.captionId||"")};
  10367. g.Q.equals=function(d){return d?this.toString()===d.toString():!1};
  10368. g.Q.LH=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var aJ6={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},ARn={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},pYg=/^(\d*)_((\d*)_?(\d*))$/;var OS6={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},nb_={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var g$={},LAR=(g$.ALWAYS=1,g$.BY_REQUEST=3,g$.UNKNOWN=void 0,g$),F5={},kIB=(F5.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",F5.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",F5.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",F5.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",F5);var u7N;
  10369. u7N=function(d){for(var q=Object.keys(d),T={},Y=0;Y<q.length;Y++){var e=q[Y];typeof d[e]==="function"&&(T[e]=d[e])}var U=Object.keys(T);try{t4n(T)}catch(J){var b=J}return function(J,F){J=J===void 0?{}:J;if(b)throw b;for(var N=!1,R={},x=0;x<U.length;x++){var y=U[x],h=J[y],H=(0,T[y])(h,F);if(typeof H==="undefined")throw J=F&&F.type,Error("When called with an action of type "+(J?'"'+String(J)+'"':"(unknown type)")+', the slice reducer for key "'+y+'" 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.');R[y]=
  10370. H;N=N||H!==h}return(N=N||U.length!==Object.keys(J).length)?R:J}}({entities:function(d,q){d=d===void 0?{}:d;
  10371. return quf(d,q)}});
  10372. g.Aw=new Tq;m8.prototype.toString=function(){return this.type+this.id};lS.prototype.Qg=function(d){d=d||"hqdefault.jpg";var q=this.B[d];if(q)return q;if(d==="sddefault.jpg"||d==="hq720.jpg"||d==="maxresdefault.jpg")return q;if(this.G)return hJ(this.Mk,this.G,d)};
  10373. lS.prototype.Xk=function(){return this.Mk.getVideoUrl(this.videoId,this.playlistId)};vT.prototype.Qg=function(d){d||(d="hqdefault.jpg");var q=this.B[d];return q?q:d==="pop1.jpg"||d==="pop2.jpg"||d==="sddefault.jpg"||d==="hq720.jpg"||d==="maxresdefault.jpg"?q:hJ(this.Mk,this.videoId,d)};
  10374. vT.prototype.Xk=function(d){return this.watchUrl||this.Mk.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,d)};var dd=void 0;CIg("LMS",function(){return g.G(function(d){return d.return(g.qR())})});var UB;UB=0;g.ob_=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;CIg("LMDB",function(){var d,q;return g.G(function(T){if(T.U==1)return g.B(T,g.iR(),2);if(T.U!=3){d=T.G;if(!d)throw g.RJ("edd");return g.B(T,g.eH(d),3)}q=T.G;return T.return(g.Ar(q,["index","media","captions"],{mode:"readonly",sM:!0},function(Y){var e={};Y=[g.rO(Y.objectStore("index"),{},function(U){e[U.cursor.key]=U.getValue();return g.tr(U)}),
  10375. r_f(Y.objectStore("media")),r_f(Y.objectStore("captions"))];return g.hr.all(Y).then(function(U){var b=g.E(U);b.next();U=b.next().value;b=b.next().value;return{index:e,media:V51(U||[]),captions:b}})}))})});g.M(Xx,g.YP);Xx.prototype.ir=function(){this.G&&(this.G=this.G.onload=null);g.YP.prototype.ir.call(this)};g.Q=g.gd.prototype;g.Q.getHeight=function(){return this.height};
  10376. g.Q.zx=dI(2);g.Q.Az=function(){return this.frameCount};
  10377. g.Q.isDefault=function(){return this.j.indexOf("default")!==-1};
  10378. g.Q.isLoaded=function(d){return this.loaded.has(d)};
  10379. g.Q.Hl=function(d){var q=this.T;q=q.replace("$N",this.j);q=q.replace("$L",this.level.toString());q=q.replace("$M",d.toString());this.signature&&(q=g.y6(q,{sigh:this.signature}));return zn(q)};
  10380. g.Q.i_=function(d){var q=this.Az()-1;return g.Cn(this.G===0?Math.round(d*this.frameCount/this.videoLength):Math.round(d*1E3/this.G),0,q)};
  10381. g.Q.wi=function(){return this.frameCount-1};
  10382. g.Q.HU=function(){return this.frameCount?0:-1};
  10383. g.Q.Y2=function(){};g.M(Fx,Xx);Fx.prototype.U=function(d,q){var T=[];d=d.split("|");for(var Y=d[0],e=1;e<d.length;e++){var U=this.S(e-1,Y,d[e],q);(this.L||U.getHeight()<180)&&T.push(U)}return T};
  10384. Fx.prototype.S=function(d,q,T,Y){return new g.gd(d,q,T,Y)};g.M(NR,g.gd);g.Q=NR.prototype;g.Q.Az=function(){return this.U.Od()};
  10385. g.Q.i_=function(d){var q=this.rows*this.columns*this.S,T=this.U,Y=T.nC();d=T.yg(d);return d>Y-q?-1:d};
  10386. g.Q.wi=function(){return this.U.nC()};
  10387. g.Q.HU=function(){return this.U.Db()};
  10388. g.Q.Y2=function(d){this.U=d};g.M(Rf,Fx);Rf.prototype.U=function(d,q){return Fx.prototype.U.call(this,"$N|"+d,q)};
  10389. Rf.prototype.S=function(d,q,T){return new NR(d,q,T,this.isLive)};g.M(g.yM,g.YP);g.Q=g.yM.prototype;
  10390. g.Q.setData=function(d){d=d||{};var q=d.errordetail;q!=null&&(this.errorDetail=q);var T=d.errorcode;T!=null?this.errorCode=T:d.status==="fail"&&(this.errorCode="auth");var Y=d.reason;Y!=null&&(this.errorReason=Y);var e=d.subreason;e!=null&&(this.eU=e);this.clientPlaybackNonce||(this.clientPlaybackNonce=d.cpn||(this.Mk.uF()?"r"+g.RC(15):g.RC(16)));this.kx=vL(this.Mk.kx,d.livemonitor);b6g(this,d);var U=d.raw_player_response;if(U)this.Ph=U;else{var b=d.player_response;b&&(U=JSON.parse(b))}U&&(this.playerResponse=
  10391. U);if(this.playerResponse){var J=this.playerResponse.annotations;if(J)for(var F=g.E(J),N=F.next();!N.done;N=F.next()){var R=N.value.playerAnnotationsUrlsRenderer;if(R){R.adsOnly&&(this.H9=!0);var x=R.loadPolicy;x&&(this.annotationsLoadPolicy=LAR[x]);var y=R.invideoUrl;y&&(this.RU=zn(y));break}}var h=this.playerResponse.attestation;h&&t5H(this,h);var H=this.playerResponse.cotn;H&&(this.cotn=H);var a=this.playerResponse.heartbeatParams;if(a){this.oy=!0;var p=a.heartbeatToken;p&&(this.drmSessionId=a.drmSessionId||
  10392. "",this.heartbeatToken=p,this.xA=Number(a.intervalMilliseconds),this.Yt=Number(a.maxRetries),this.h2=!!a.softFailOnError,this.UT=!!a.useInnertubeHeartbeatsForDrm);this.heartbeatServerData=a.heartbeatServerData;var t;this.Gv=!((t=a.heartbeatAttestationConfig)==null||!t.requiresAttestation)}var n=this.playerResponse.messages;n&&LuX(this,n);var K=this.playerResponse.overlay;if(K){var P=K.playerControlsOverlayRenderer;if(P)if(PV6(this,P.controlBgHtml),P.mutedAutoplay){var w=g.D(P.mutedAutoplay,lGI);if(w&&
  10393. w.endScreen){var l=g.D(w.endScreen,vSB);l&&l.text&&(this.CN=g.gx(l.text))}}else this.mutedAutoplay=!1}var m=this.playerResponse.playabilityStatus;if(m){var b_=m.backgroundability;b_&&b_.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var x2,JY;if((x2=m.offlineability)==null?0:(JY=x2.offlineabilityRenderer)==null?0:JY.offlineable)this.offlineable=!0;var s6=m.contextParams;s6&&(this.contextParams=s6);var qH=m.pictureInPicture;qH&&qH.pictureInPictureRenderer.playableInPip&&(this.pipable=
  10394. !0);m.playableInEmbed&&(this.allowEmbed=!0);var O6=m.ypcClickwrap;if(O6){var SD=O6.playerLegacyDesktopYpcClickwrapRenderer,dL=O6.ypcRentalActivationRenderer;if(SD)this.sZ=SD.durationMessage||"",this.Kz=!0;else if(dL){var hE=dL.durationMessage;this.sZ=hE?g.gx(hE):"";this.Kz=!0}}var JE=m.errorScreen;if(JE){if(JE.playerLegacyDesktopYpcTrailerRenderer){var tY=JE.playerLegacyDesktopYpcTrailerRenderer;this.r3=tY.trailerVideoId||"";var bw=JE.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var kc=bw&&bw.ypcTrailerRenderer}else if(JE.playerLegacyDesktopYpcOfferRenderer)tY=
  10395. JE.playerLegacyDesktopYpcOfferRenderer;else if(JE.ypcTrailerRenderer){kc=JE.ypcTrailerRenderer;var fB=kc.fullVideoMessage;this.H$=fB?g.gx(fB):"";var XV,r;this.r3=((XV=g.D(kc,oS_))==null?void 0:(r=XV.videoDetails)==null?void 0:r.videoId)||""}tY&&(this.JW=tY.itemTitle||"",tY.itemUrl&&(this.Lh=tY.itemUrl),tY.itemBuyUrl&&(this.qK=tY.itemBuyUrl),this.NK=tY.itemThumbnail||"",this.DT=tY.offerHeadline||"",this.W$=tY.offerDescription||"",this.If=tY.offerId||"",this.Fs=tY.offerButtonText||"",this.Vq=tY.offerButtonFormattedText||
  10396. null,this.yl=tY.overlayDurationMsec||NaN,this.H$=tY.fullVideoMessage||"",this.B3=!0);if(kc){var Ch=g.D(kc,oS_);if(Ch)this.Yz={raw_player_response:Ch};else{var BR=g.D(kc,J4L);this.Yz=BR?lF(BR):null}this.B3=!0}}}var Y2=this.playerResponse.playbackTracking;if(Y2){var AE=d,A=iS(Y2.googleRemarketingUrl);A&&(this.googleRemarketingUrl=A);var T7=iS(Y2.youtubeRemarketingUrl);T7&&(this.youtubeRemarketingUrl=T7);var tz={},Xk=iS(Y2.ptrackingUrl);if(Xk){var uQ=In(Xk),IQ=uQ.oid;IQ&&(this.KN=IQ);var Tl=uQ.pltype;
  10397. Tl&&(this.wM=Tl);var Vl=uQ.ptchn;Vl&&(this.VL=Vl);var uw=uQ.ptk;uw&&(this.BJ=encodeURIComponent(uw));var Z=uQ.m;Z&&(this.Nj=Z)}var c=iS(Y2.qoeUrl);if(c){for(var O=g.oE(c),L=g.E(Object.keys(O)),u=L.next();!u.done;u=L.next()){var F1=u.value,z=O[F1];O[F1]=Array.isArray(z)?z.join(","):z}this.hY=O;var V=O.cat;V&&(this.N("html5_enable_qoe_cat_list")?this.aF=this.aF.concat(V.split(",")):this.gB=V);var k=O.live;k&&(this.wm=k);var G7=O.drm_product;G7&&(this.drmProduct=G7)}var wI=iS(Y2.videostatsPlaybackUrl);
  10398. if(wI){var X1=In(wI),gL=X1.adformat;if(gL){AE.adformat=gL;var Bg=this.C(),AY=ZS7(gL,this.fh,Bg.T,Bg.B);AY&&(this.adFormat=AY)}var d_=X1.aqi;d_&&(AE.ad_query_id=d_);var as=X1.autoplay;as&&(this.k9=as=="1",this.Ct=as=="1");var PR=X1.autonav;PR&&(this.isAutonav=PR=="1");var pN=X1.delay;pN&&(this.fn=BZ(pN));var EM=X1.ei;EM&&(this.eventId=EM);var rI=Bx(X1.adcontext);if(rI)try{var KB=v9c(rI);KB&&(this.qV=KB)}catch(DPn){g.OL(Error("Malformed adContext"))}if(rI||gL)this.k9=!0;var pB=X1.feature;pB&&(this.sx=
  10399. pB);var Jz=X1.list;Jz&&(this.playlistId=Jz);var Zn=X1.of;Zn&&(this.I$=Zn);var Vw=X1.osid;Vw&&(this.osid=Vw);var Y9=X1.referrer;Y9&&(this.referrer=Y9);var zl=X1.sdetail;zl&&(this.A6=zl);var Gl=X1.ssrt;Gl&&(this.Nf=Gl=="1");var ZG=X1.subscribed;ZG&&(this.subscribed=ZG=="1");var S0=X1.uga;S0&&(this.userGenderAge=S0);var hA=X1.upt;hA&&(this.Tb=hA);var PE=X1.vm;PE&&(this.videoMetadata=PE);tz.playback=X1}var dz=iS(Y2.videostatsWatchtimeUrl);if(dz){var qV=In(dz),Uw=qV.ald;Uw&&(this.hs=Uw);tz.watchtime=qV}var jV=
  10400. iS(Y2.atrUrl);if(jV){var GU=In(jV);tz.atr=GU}var l$=iS(Y2.engageUrl);if(l$){var Lg=In(l$);tz.engage=Lg}this.Y6=tz;if(Y2.promotedPlaybackTracking){var qQ=Y2.promotedPlaybackTracking;qQ.startUrls&&(this.OW=qQ.startUrls);qQ.firstQuartileUrls&&(this.Ah=qQ.firstQuartileUrls);qQ.secondQuartileUrls&&(this.g5=qQ.secondQuartileUrls);qQ.thirdQuartileUrls&&(this.PD=qQ.thirdQuartileUrls);qQ.completeUrls&&(this.xN=qQ.completeUrls);qQ.engagedViewUrls&&(qQ.engagedViewUrls.length>1&&g.OL(new g.CW("There are more than one engaged_view_urls.")),
  10401. this.dZ=qQ.engagedViewUrls[0])}}var HE=this.playerResponse.playerCueRanges;HE&&HE.length>0&&(this.cueRanges=HE);var WE=this.playerResponse.playerCueRangeSet;WE&&g.MR(this,WE);a:{var MA=this.playerResponse.adPlacements;if(MA)for(var TU=g.E(MA),cV=TU.next();!cV.done;cV=TU.next()){var YY=void 0,e8=void 0,Ut=(YY=cV.value.adPlacementRenderer)==null?void 0:(e8=YY.renderer)==null?void 0:e8.videoAdTrackingRenderer;if(Ut){var bL=Ut;break a}}bL=null}var Ey=bL;Y2&&Y2.promotedPlaybackTracking&&Ey&&g.OL(new g.CW("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));
  10402. var b$;if(!(b$=Ey))a:{for(var Xj=g.E(this.playerResponse.adSlots||[]),yg=Xj.next();!yg.done;yg=Xj.next()){var hy=g.D(yg.value,ei);if(hy===void 0||!kYf(hy))break;var B3=void 0,P0=(B3=hy.fulfillmentContent)==null?void 0:B3.fulfilledLayout,W0=g.D(P0,S5);if(W0&&z8(W0)){b$=!0;break a}}b$=!1}b$&&(this.WH=!0);var Cg=this.playerResponse.playerAds;if(Cg)for(var e4=d,KJ=g.E(Cg),Mj=KJ.next();!Mj.done;Mj=KJ.next()){var Gs=Mj.value;if(Gs){var Uf=Gs.playerLegacyDesktopWatchAdsRenderer;if(Uf){var uL=Uf.playerAdParams;
  10403. if(uL){uL.autoplay=="1"&&(this.Ct=this.k9=!0);this.sQ=uL.encodedAdSafetyReason||null;uL.showContentThumbnail!==void 0&&(this.fp=!!uL.showContentThumbnail);e4.enabled_engage_types=uL.enabledEngageTypes;break}}}}var ar=this.playerResponse.playerConfig;if(ar){var js=ar.manifestlessWindowedLiveConfig;if(js){var uF=Number(js.minDvrSequence),bZ=Number(js.maxDvrSequence),H5=Number(js.minDvrMediaTimeMs),X6=Number(js.maxDvrMediaTimeMs),LJ=Number(js.startWalltimeMs);uF&&(this.QX=uF);H5&&(this.rO=H5/1E3,this.N("html5_sabr_parse_live_metadata_playback_boundaries")&&
  10404. tw(this)&&(this.m1=H5/1E3));bZ&&(this.rH=bZ);X6&&(this.Qp=X6/1E3,this.N("html5_sabr_parse_live_metadata_playback_boundaries")&&tw(this)&&(this.Gr=X6/1E3));LJ&&(this.vF=LJ/1E3);(uF||H5)&&(bZ||X6)&&(this.allowLiveDvr=this.isLivePlayback=this.yv=!0,this.uC=!1)}var Qg=ar.daiConfig;if(Qg){if(Qg.enableDai){this.ZY=!0;var eT=Qg.enableServerStitchedDai;eT&&(this.enableServerStitchedDai=eT);var fe=Qg.enablePreroll;fe&&(this.nL=fe)}var ef;if(Qg.daiType==="DAI_TYPE_SS_DISABLED"||((ef=Qg.debugInfo)==null?0:ef.isDisabledUnpluggedChannel))this.y8=
  10405. !0;Qg.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.Y0=!0);Qg.allowUstreamerRequestAdconfig&&(this.Qz=!0)}var sf=ar.audioConfig;if(sf){var DA=sf.loudnessDb;DA!=null&&(this.LC=DA);var XsH=sf.trackAbsoluteLoudnessLkfs;XsH!=null&&(this.N9=XsH);var JM2=sf.loudnessTargetLkfs;JM2!=null&&(this.loudnessTargetLkfs=JM2);sf.audioMuted&&(this.wB=!0);sf.muteOnStart&&(this.rR=!0);var xb=sf.loudnessNormalizationConfig;if(xb){xb.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);xb.preserveStatefulLoudnessTarget&&
  10406. (this.preserveStatefulLoudnessTarget=!0);var szj=xb.minimumLoudnessTargetLkfs;szj!=null&&(this.minimumLoudnessTargetLkfs=szj);var $fY=xb.maxStatefulTimeThresholdSec;$fY!=null&&(this.maxStatefulTimeThresholdSec=$fY)}sf.playAudioOnly&&(this.XF=!0)}var jcY=ar.playbackEndConfig;if(jcY){var gTQ=jcY.endSeconds,FH6=jcY.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(gTQ&&(this.endSeconds=gTQ),FH6&&(this.limitedPlaybackDurationInSeconds=FH6))}var xW=ar.fairPlayConfig;if(xW){var NRX=xW.certificate;NRX&&
  10407. (this.qk=Bx(NRX));var R9N=Number(xW.keyRotationPeriodMs);R9N>0&&(this.Fc=R9N);var xfj=Number(xW.keyPrefetchMarginMs);xfj>0&&(this.LL=xfj)}var B6=ar.playbackStartConfig;if(B6){this.hC=Number(B6.startSeconds);var yMj=B6.liveUtcStartSeconds,h92=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;yMj&&!h92&&(this.liveUtcStartSeconds=Number(yMj));var aVn=B6.startPosition;if(aVn){var HRI=aVn.utcTimeMillis;HRI&&!h92&&(this.liveUtcStartSeconds=Number(HRI)*.001);var QzX=aVn.streamTimeMillis;QzX&&(this.wk=
  10408. Number(QzX)*.001)}this.progressBarStartPosition=B6.progressBarStartPosition;this.progressBarEndPosition=B6.progressBarEndPosition}else{var A0f=ar.skippableSegmentsConfig;if(A0f){var Mqn=A0f.introSkipDurationMs;Mqn&&(this.pS=Number(Mqn)/1E3);var cMX=A0f.outroSkipDurationMs;cMX&&(this.N$=Number(cMX)/1E3)}}var pz1=ar.skippableIntroConfig;if(pz1){var ETf=Number(pz1.startMs),jzg=Number(pz1.endMs);isNaN(ETf)||isNaN(jzg)||(this.Pf=ETf,this.Je=jzg)}var axf=ar.streamSelectionConfig;axf&&(this.zq=Number(axf.maxBitrate));
  10409. var AM_=ar.vrConfig;AM_&&(this.bB=AM_.partialSpherical=="1");var yP=ar.webDrmConfig;if(yP){yP.skipWidevine&&(this.TP=!0);var psI=yP.widevineServiceCert;psI&&(this.zr=Bx(psI));yP.useCobaltWidevine&&(this.useCobaltWidevine=!0);yP.startWithNoQualityConstraint&&(this.wU=!0)}var D6=ar.mediaCommonConfig;if(D6){var ye=D6.dynamicReadaheadConfig;if(ye){this.maxReadAheadMediaTimeMs=ye.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=ye.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=ye.readAheadGrowthRateMs||
  10410. NaN;var ZR_,ORD=D6==null?void 0:(ZR_=D6.mediaUstreamerRequestConfig)==null?void 0:ZR_.videoPlaybackUstreamerConfig;ORD&&(this.Rg=Bx(ORD));var ZpN=D6==null?void 0:D6.sabrContextUpdates;if(ZpN&&ZpN.length>0)for(var nT6=g.E(ZpN),OpH=nT6.next();!OpH.done;OpH=nT6.next()){var oR=OpH.value;if(oR.type&&oR.value){var $4x={type:oR.type,scope:oR.scope,value:Bx(oR.value)||void 0,sendByDefault:oR.sendByDefault};this.sabrContextUpdates.set(oR.type,$4x)}}}var rMX=D6.serverPlaybackStartConfig;rMX&&(this.serverPlaybackStartConfig=
  10411. rMX);D6.useServerDrivenAbr&&(this.Aq=!0);var tqN=D6.requestPipeliningConfig;tqN&&(this.requestPipeliningConfig=tqN)}var BRH=ar.inlinePlaybackConfig;BRH&&(this.Q_=!!BRH.showAudioControls);var hW=ar.embeddedPlayerConfig;if(hW){this.embeddedPlayerConfig=hW;var nQ6=hW.embeddedPlayerMode;if(nQ6){var KHj=this.C();KHj.rO=nQ6;KHj.j=nQ6==="EMBEDDED_PLAYER_MODE_PFL"}var GkH=hW.permissions;GkH&&(this.allowImaMonetization=!!GkH.allowImaMonetization)}var HM=ar.webPlayerConfig;HM&&(HM.gatewayExperimentGroup&&(this.gatewayExperimentGroup=
  10412. HM.gatewayExperimentGroup),HM.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var wW=this.playerResponse.streamingData;if(wW){var r02=wW.formats;if(r02){for(var hR=[],LHI=g.E(r02),t0j=LHI.next();!t0j.done;t0j=LHI.next()){var BvN=t0j.value;hR.push(BvN.itag+"/"+BvN.width+"x"+BvN.height)}this.Uu=hR.join(",");hR=[];for(var kk6=g.E(r02),KAH=kk6.next();!KAH.done;KAH=kk6.next()){var HY=KAH.value,QP={itag:HY.itag,type:HY.mimeType,quality:HY.quality},PiX=HY.url;PiX&&(QP.url=PiX);var Qe=VR(HY),gAx=Qe.XR,
  10413. F9j=Qe.oG,N7q=Qe.s;Qe.cL&&(QP.url=gAx,QP.sp=F9j,QP.s=N7q);hR.push(g.xf(QP))}this.vA=hR.join(",")}var GIQ=wW.hlsFormats;if(GIQ){var WHj=ar||null,My={};if(WHj){var LAg=WHj.audioPairingConfig;if(LAg&&LAg.pairs)for(var Ci7=g.E(LAg.pairs),kIN=Ci7.next();!kIN.done;kIN=Ci7.next()){var up2=kIN.value,P$Q=up2.videoItag;My[P$Q]||(My[P$Q]=[]);My[P$Q].push(up2.audioItag)}}for(var Dfj={},wsY=g.E(GIQ),WA7=wsY.next();!WA7.done;WA7=wsY.next()){var fx1=WA7.value;Dfj[fx1.itag]=fx1.bitrate}for(var z91=[],iRg=g.E(GIQ),
  10414. C$6=iRg.next();!C$6.done;C$6=iRg.next()){var iL=C$6.value,Ef={itag:iL.itag,type:iL.mimeType,url:iL.url,bitrate:iL.bitrate,width:iL.width,height:iL.height,fps:iL.fps},cM=iL.audioTrack;if(cM){var Ix2=cM.displayName;Ix2&&(Ef.name=Ix2,Ef.audio_track_id=cM.id,cM.audioIsDefault&&(Ef.is_default="1"))}if(iL.drmFamilies){for(var mfj=[],ScN=g.E(iL.drmFamilies),uQ1=ScN.next();!uQ1.done;uQ1=ScN.next())mfj.push(uP[uQ1.value]);Ef.drm_families=mfj.join(",")}var EY=My[iL.itag];if(EY&&EY.length){Ef.audio_itag=EY.join(",");
  10415. var lxf=Dfj[EY[0]];lxf&&(Ef.bitrate+=lxf)}var vTg=spD(iL);vTg&&(Ef.eotf=vTg);iL.audioChannels&&(Ef.audio_channels=iL.audioChannels);z91.push(g.xf(Ef))}this.hlsFormats=z91.join(",")}var DqQ=wW.licenseInfos;if(DqQ&&DqQ.length>0){for(var oTf={},Vqn=g.E(DqQ),wzI=Vqn.next();!wzI.done;wzI=Vqn.next()){var dOf=wzI.value,qj1=dOf.drmFamily,TK6=dOf.url;qj1&&TK6&&(oTf[uP[qj1]]=TK6)}this.ac=oTf}var Yjg=wW.drmParams;Yjg&&(this.drmParams=Yjg);var egX=wW.dashManifestUrl;egX&&(this.Ln=g.y6(egX,{cpn:this.clientPlaybackNonce}));
  10416. var UOY=wW.hlsManifestUrl;UOY&&(this.hlsvp=UOY);var bzN=wW.probeUrl;bzN&&(this.probeUrl=zn(g.y6(bzN,{cpn:this.clientPlaybackNonce})));var XX1=wW.serverAbrStreamingUrl;XX1&&(this.Dc=new g.Ig(XX1,!0))}var JkQ=this.playerResponse.trackingParams;JkQ&&(this.aU=JkQ);var MX=this.playerResponse.videoDetails;if(MX){var j4=d,fVn=MX.videoId;fVn&&(this.videoId=fVn,j4.video_id||(j4.video_id=fVn));var zkD=MX.title;zkD&&(this.title=zkD,j4.title||(j4.title=zkD));var ipI=MX.lengthSeconds;ipI&&(this.lengthSeconds=
  10417. Number(ipI),j4.length_seconds||(j4.length_seconds=ipI));var s3N=MX.keywords;s3N&&(this.keywords=$61(s3N));var IV6=MX.channelId;IV6&&(this.Gp=IV6,j4.ucid||(j4.ucid=IV6));var $Og=MX.viewCount;$Og&&(this.rawViewCount=Number($Og));var mq2=MX.author;mq2&&(this.author=mq2,j4.author||(j4.author=mq2));var gI2=MX.shortDescription;gI2&&(this.shortDescription=gI2);var FD7=MX.isCrawlable;FD7&&(this.isListed=FD7);var NK_=MX.musicVideoType;NK_&&(this.musicVideoType=NK_);var Sw1=MX.isLive;Sw1!=null&&(this.isLivePlayback=
  10418. Sw1);if(Sw1||MX.isUpcoming)this.isPremiere=!MX.isLiveContent;var RgD=MX.thumbnail;RgD&&(this.B=zF(RgD));var xOY=MX.isExternallyHostedPodcast;xOY&&(this.isExternallyHostedPodcast=xOY);var lV6=MX.viewerLivestreamJoinPosition;if(lV6==null?0:lV6.utcTimeMillis)this.di=BZ(lV6.utcTimeMillis);var ykI=ar||null,vQQ=d;MX.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);MX.isUpcoming&&(this.isUpcoming=!0);if(MX.isPostLiveDvr){this.uC=!0;var hgj=MX.latencyClass;hgj&&(this.latencyClass=kIB[hgj]||"UNKNOWN");
  10419. MX.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var oQ2=!1;this.kx?(this.allowLiveDvr=E4()?!0:zt&&TZ<5?!1:!0,this.isLivePlayback=!0):MX.isLive?(vQQ.livestream="1",this.allowLiveDvr=MX.isLiveDvrEnabled?E4()?!0:zt&&TZ<5?!1:!0:!1,this.partnerId=27,oQ2=!0):MX.isUpcoming&&(oQ2=!0);if(MX.isLive||this.kx){MX.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var HzY=MX.latencyClass;HzY&&(this.latencyClass=kIB[HzY]||"UNKNOWN");var Q3X=MX.liveChunkReadahead;Q3X&&(this.liveChunkReadahead=
  10420. Q3X);var Ko=ykI&&ykI.livePlayerConfig;if(Ko){Ko.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);Ko.hasSubfragmentedWebm&&(this.L1=!0);Ko.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var M6D=Ko.liveExperimentalContentId;M6D&&(this.liveExperimentalContentId=Number(M6D));var ckf=Ko.isLiveHeadPlayable;this.N("html5_live_head_playable")&&ckf!=null&&(this.isLiveHeadPlayable=ckf)}}oQ2&&(this.isLivePlayback=!0,vQQ.adformat&&vQQ.adformat.split("_")[1]!=="8"||this.K.push("heartbeat"))}var EI6=
  10421. MX.isPrivate;EI6!==void 0&&(this.isPrivate=vL(this.isPrivate,EI6))}if(m){var j3I=MX||null,aa_=!1,Gq=m.errorScreen;aa_=Gq&&(Gq.playerLegacyDesktopYpcOfferRenderer||Gq.playerLegacyDesktopYpcTrailerRenderer||Gq.ypcTrailerRenderer)?!0:j3I&&j3I.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(m.status);if(!aa_){this.errorCode=QF6(m.errorCode)||"auth";var jB=Gq&&Gq.playerErrorMessageRenderer;if(jB){this.playerErrorMessageRenderer=jB;var Akn=jB.reason;Akn&&(this.errorReason=g.gx(Akn));
  10422. var V0D=jB.subreason;V0D&&(this.eU=g.gx(V0D),this.Ds=V0D)}else this.errorReason=m.reason||null;var dbj=m.status;if(dbj==="LOGIN_REQUIRED")this.errorDetail="1";else if(dbj==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(dbj==="AGE_CHECK_REQUIRED"){var pXI=m.errorScreen,ZzH=pXI&&pXI.playerKavRenderer;this.errorDetail=ZzH&&ZzH.kavUrl?"4":"3"}else this.errorDetail=m.isBlockedInRestrictedMode?"5":"0"}}var OzY=this.playerResponse.interstitialPods;OzY&&G81(this,OzY);this.RU&&this.eventId&&(this.RU=
  10423. d7(this.RU,{ei:this.eventId}));var qS6=this.playerResponse.captions;if(qS6&&qS6.playerCaptionsTracklistRenderer)a:{var a_=qS6.playerCaptionsTracklistRenderer;this.captionTracks=[];if(a_.captionTracks)for(var nID=g.E(a_.captionTracks),TYY=nID.next();!TYY.done;TYY=nID.next()){var AK=TYY.value,rkf=JC1(AK.baseUrl);if(!rkf)break a;var YS7={is_translateable:!!AK.isTranslatable,languageCode:AK.languageCode,languageName:AK.name&&g.gx(AK.name),url:rkf,vss_id:AK.vssId,kind:AK.kind};YS7.name=AK.trackName;YS7.displayName=
  10424. AK.name&&g.gx(AK.name);this.captionTracks.push(new g.CI(YS7))}this.Yh=a_.audioTracks||[];this.s1=a_.defaultAudioTrackIndex||0;this.YA=[];if(a_.translationLanguages)for(var t6Q=g.E(a_.translationLanguages),e1Q=t6Q.next();!e1Q.done;e1Q=t6Q.next()){var Lo=e1Q.value,Vd={};Vd.languageCode=Lo.languageCode;Vd.languageName=g.gx(Lo.languageName);if(Lo.translationSourceTrackIndices){Vd.translationSourceTrackIndices=[];for(var BKQ=g.E(Lo.translationSourceTrackIndices),Ubj=BKQ.next();!Ubj.done;Ubj=BKQ.next())Vd.translationSourceTrackIndices.push(Ubj.value)}if(Lo.excludeAudioTrackIndices){Vd.excludeAudioTrackIndices=
  10425. [];for(var KDX=g.E(Lo.excludeAudioTrackIndices),b$Q=KDX.next();!b$Q.done;b$Q=KDX.next())Vd.excludeAudioTrackIndices.push(b$Q.value)}this.YA.push(Vd)}this.gQ=[];if(a_.defaultTranslationSourceTrackIndices)for(var GMN=g.E(a_.defaultTranslationSourceTrackIndices),XE7=GMN.next();!XE7.done;XE7=GMN.next())this.gQ.push(XE7.value);this.IK=!!a_.contribute&&!!a_.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.hC=Number(this.clipConfig.startTimeMs)*
  10426. .001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&k8H(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var LDg;this.compositeLiveIngestionOffsetToken=(LDg=this.playerResponse.playbackTracking)==null?void 0:LDg.compositeLiveIngestionOffsetToken;var kMn;this.compositeLiveStatusToken=(kMn=this.playerResponse.playbackTracking)==null?void 0:
  10427. kMn.compositeLiveStatusToken;this.N("html5_fill_default_mosaic_audio_track_id")&&FG(this)&&(this.Mk.Fw=Vi7(this))}Hr(this,d);d.queue_info&&(this.queueInfo=d.queue_info);var PkQ=d.hlsdvr;PkQ!=null&&(this.allowLiveDvr=Number(PkQ)===1?E4()?!0:zt&&TZ<5?!1:!0:!1);this.adQueryId=d.ad_query_id||null;this.sQ||(this.sQ=d.encoded_ad_safety_reason||null);this.wB=vL(this.wB,d.infringe||d.muted);this.lJ=d.authkey;this.gq=d.authuser;this.mutedAutoplay=vL(this.mutedAutoplay,d&&d.playmuted);this.mutedAutoplayDurationMode=
  10428. VB(this.mutedAutoplayDurationMode,d&&d.muted_autoplay_duration_mode);this.Qq=vL(this.Qq,d&&d.mutedautoplay);var a7=d.length_seconds;a7&&(this.lengthSeconds=typeof a7==="string"?BZ(a7):a7);if(this.isAd()||this.Qs||!g.eX(g.sm(this.Mk)))this.endSeconds=VB(this.endSeconds,this.N$||d.end||d.endSeconds);else{var RBl=g.sm(this.Mk),AW=this.lengthSeconds;switch(RBl){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":AW>30?this.limitedPlaybackDurationInSeconds=30:AW<30&&AW>10&&(this.limitedPlaybackDurationInSeconds=
  10429. 10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=AW*.2}}this.aU=d8(this.aU,d.itct);this.M7=vL(this.M7,d.is_live_destination);this.isLivePlayback=vL(this.isLivePlayback,d.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.aN();d.isUpcoming&&(this.isUpcoming=vL(this.isUpcoming,d.isUpcoming));this.uC=vL(this.uC,d.post_live_playback);this.yv&&(this.uC=!1);this.isMdxPlayback=vL(this.isMdxPlayback,d.mdx);var pH=d.mdx_control_mode;
  10430. pH&&(this.mdxControlMode=typeof pH==="number"?pH:BZ(pH));this.isInlinePlaybackNoAd=vL(this.isInlinePlaybackNoAd,d.is_inline_playback_no_ad);this.q5=VB(this.q5,d.reload_count);this.reloadReason=d8(this.reloadReason,d.reload_reason);this.fp=vL(this.fp,d.show_content_thumbnail);this.cycToken=d.cyc||null;var WDQ=fI(d);Object.keys(WDQ).length>0&&(this.B=WDQ);this.z2=d8(this.z2,d.vvt);this.mdxEnvironment=d8(this.mdxEnvironment,d.mdx_environment);d.source_container_playlist_id&&(this.sourceContainerPlaylistId=
  10431. d.source_container_playlist_id);d.serialized_mdx_metadata&&(this.serializedMdxMetadata=d.serialized_mdx_metadata);this.qSD=d.osig;this.eventId||(this.eventId=d.eventid);this.osid||(this.osid=d.osid);this.playlistId=d8(this.playlistId,d.list);d.index&&(this.playlistIndex=this.playlistIndex===void 0?VB(0,d.index):VB(this.playlistIndex,d.index));this.Al=d.pyv_view_beacon_url;this.c7=d.pyv_quartile25_beacon_url;this.CE=d.pyv_quartile50_beacon_url;this.VQ=d.pyv_quartile75_beacon_url;this.OB=d.pyv_quartile100_beacon_url;
  10432. var Ck_=d.session_data;!this.KE&&Ck_&&(this.KE=mR(Ck_,"&").feature);this.isFling=VB(this.isFling?1:0,d.is_fling)===1;this.vnd=VB(this.vnd,d.vnd);this.forceAdsUrl=d8(this.forceAdsUrl,d.force_ads_url);this.jj=d8(this.jj,d.ctrl);this.OP=d8(this.OP,d.ytr);this.Eu=d.ytrcc;this.wL=d.ytrexp;this.GE=d.ytrext;this.R6=d8(this.R6,d.adformat);this.fh=d8(this.fh,d.attrib);this.slotPosition=VB(this.slotPosition,d.slot_pos);this.breakType=d.break_type;this.Nf=vL(this.Nf,d.ssrt);this.videoId=Ty(d)||this.videoId;
  10433. this.X=d8(this.X,d.vss_credentials_token);this.M4=d8(this.M4,d.vss_credentials_token_type);this.XF=vL(this.XF,d.audio_only);this.xx=vL(this.xx,d.aac_high);this.lq=vL(this.lq,d.prefer_low_quality_audio);this.WD=vL(this.WD,d.uncap_inline_quality);this.N("html5_enable_qoe_cat_list")?d.qoe_cat&&(this.aF=this.aF.concat(d.qoe_cat.split(","))):this.gB=d8(this.gB,d.qoe_cat);this.EW=vL(this.EW,d.download_media);var usj=d.prefer_gapless;this.L=usj!=null?vL(this.L,usj):this.L?this.L:this.Mk.preferGapless&&this.Mk.supportsGaplessShorts();
  10434. ggX(this.playerResponse)&&this.K.push("ad");var DOH=d.adaptive_fmts;DOH&&(this.adaptiveFormats=DOH,this.oU("adpfmts",{},!0));var wXn=d.allow_embed;wXn&&(this.allowEmbed=Number(wXn)===1);var faY=d.backgroundable;faY&&(this.backgroundable=Number(faY)===1);var zg2=d.autonav;zg2&&(this.isAutonav=Number(zg2)===1);var izj=d.autoplay;izj&&(this.k9=this.Ct=Number(izj)===1);var Ia2=d.iv_load_policy;Ia2&&(this.annotationsLoadPolicy=oD(this.annotationsLoadPolicy,Ia2,$l));var mON=d.cc_lang_pref;mON&&(this.captionsLanguagePreference=
  10435. d8(mON,this.captionsLanguagePreference));var SjD=d.cc_load_policy;SjD&&(this.xU=oD(this.xU,SjD,$l));var laj;this.deviceCaptionsOn=(laj=d.device_captions_on)!=null?laj:void 0;var vI7;this.CR=(vI7=d.device_captions_lang_pref)!=null?vI7:"";var oI_;this.Cd=(oI_=d.viewer_selected_caption_langs)!=null?oI_:[];var V6I=d.cached_load;V6I&&(this.Uq=vL(this.Uq,V6I));if(d.dash==="0"||d.dash===0||d.dash===!1)this.kh=!0;var dMN=d.dashmpd;dMN&&(this.Ln=g.y6(dMN,{cpn:this.clientPlaybackNonce}));var qz1=d.delay;qz1&&
  10436. (this.fn=BZ(qz1));var JA6=this.N$||d.end;if(this.ev?JA6!=null:JA6!=void 0)this.clipEnd=VB(this.clipEnd,JA6);var TfQ=d.fmt_list;TfQ&&(this.Uu=TfQ);d.heartbeat_preroll&&this.K.push("heartbeat");this.Au=-Math.floor(Math.random()*10);this.WV=-Math.floor(Math.random()*40);var YzH=d.is_listed;YzH&&(this.isListed=vL(this.isListed,YzH));var e3I=d.is_private;e3I&&(this.isPrivate=vL(this.isPrivate,e3I));var UM6=d.is_dni;UM6&&(this.kc=vL(this.kc,UM6));var bPj=d.dni_color;bPj&&(this.Co=d8(this.Co,bPj));var Xo7=
  10437. d.pipable;Xo7&&(this.pipable=vL(this.pipable,Xo7));this.yz=(this.tY=this.pipable&&this.Mk.H9)&&!this.Mk.showMiniplayerButton;var J57=d.paid_content_overlay_duration_ms;J57&&(this.paidContentOverlayDurationMs=BZ(J57));var so7=d.paid_content_overlay_text;so7&&(this.paidContentOverlayText=so7);var $M7=d.url_encoded_fmt_stream_map;$M7&&(this.vA=$M7);var g_1=d.hls_formats;g_1&&(this.hlsFormats=g_1);var FhH=d.hlsvp;FhH&&(this.hlsvp=FhH);var ZM=d.live_start_walltime;ZM&&(this.d6=typeof ZM==="number"?ZM:
  10438. BZ(ZM));var OY=d.live_manifest_duration;OY&&(this.Ar=typeof OY==="number"?OY:BZ(OY));var NfY=d.player_params;NfY&&(this.playerParams=NfY);var R37=d.partnerid;R37&&(this.partnerId=VB(this.partnerId,R37));var xMD=d.probe_url;xMD&&(this.probeUrl=zn(g.y6(xMD,{cpn:this.clientPlaybackNonce})));var s4N=d.pyv_billable_url;s4N&&Q$2(s4N)&&(this.dZ=s4N);var $bg=d.pyv_conv_url;$bg&&Q$2($bg)&&(this.gL=$bg);gqg(this,d);this.startSeconds>0?this.N("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.hC||
  10439. this.pS||d.start||d.startSeconds)&&this.oU("lss",{css:this.startSeconds,pcss:this.hC,iss:this.pS,ps:d.start||void 0,pss:d.startSeconds||void 0}):this.lF=this.startSeconds=VB(this.startSeconds,this.hC||this.pS||d.start||d.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var y5N=d.live_utc_start;if(y5N!=null)this.liveUtcStartSeconds=Number(y5N);else{var gjX=this.startSeconds;gjX&&isFinite(gjX)&&gjX>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&
  10440. this.liveUtcStartSeconds>0)){var h3f=d.utc_start_millis;h3f&&(this.liveUtcStartSeconds=Number(h3f)*.001)}var HP7=d.stream_time_start_millis;HP7&&(this.wk=Number(HP7)*.001);var FTN=this.pS||d.start;(this.ev?FTN==null||Number(d.resume)===1:FTN==void 0||d.resume=="1")||this.isLivePlayback||(this.clipStart=VB(this.clipStart,FTN));var Qon=d.url_encoded_third_party_media;Qon&&(this.j8=vq(Qon));var NY2=d.ypc_offer_button_formatted_text;if(NY2){var MMI=JSON.parse(NY2);this.Vq=MMI!=null?MMI:null;this.Pk=NY2}var c5g=
  10441. d.ypc_offer_button_text;c5g&&(this.Fs=c5g);var E_D=d.ypc_offer_description;E_D&&(this.W$=E_D);var joY=d.ypc_offer_headline;joY&&(this.DT=joY);var a9I=d.ypc_full_video_message;a9I&&(this.H$=a9I);var A5_=d.ypc_offer_id;A5_&&(this.If=A5_);var poH=d.ypc_buy_url;poH&&(this.qK=poH);var ZPf=d.ypc_item_thumbnail;ZPf&&(this.NK=ZPf);var OP2=d.ypc_item_title;OP2&&(this.JW=OP2);var n_f=d.ypc_item_url;n_f&&(this.Lh=n_f);var r5_=d.ypc_vid;r5_&&(this.r3=r5_);d.ypc_overlay_timeout&&(this.yl=Number(d.ypc_overlay_timeout));
  10442. var tM1=d.ypc_trailer_player_vars;tM1&&(this.Yz=lF(tM1));var Bf2=d.ypc_original_itct;Bf2&&(this.pr5=Bf2);this.Gp=d8(this.Gp,d.ucid);this.iA=d.storyboard_spec||null;this.gx=d.live_storyboard_spec||null;this.uD=d.iv_endscreen_url||null;this.B3=vL(this.B3,d.ypc_module);this.Kz=vL(this.Kz,d.ypc_clickwrap_module);this.B3&&this.K.push("ypc");this.Kz&&this.K.push("ypc_clickwrap");this.iP={video_id:d.video_id,eventid:d.eventid,cbrand:d.cbrand,cbr:d.cbr,cbrver:d.cbrver,c:d.c,cver:d.cver,ctheme:d.ctheme,cplayer:d.cplayer,
  10443. cmodel:d.cmodel,cnetwork:d.cnetwork,cos:d.cos,cosver:d.cosver,cplatform:d.cplatform,user_age:d.user_age,user_display_image:d.user_display_image,user_display_name:d.user_display_name,user_gender:d.user_gender,csi_page_type:d.csi_page_type,csi_service_name:d.csi_service_name,enablecsi:d.enablecsi,enabled_engage_types:d.enabled_engage_types};X_j(this,d);var Kh2=d.cotn;Kh2&&(this.cotn=Kh2);if(jxj(this))GC(this)&&(this.isLivePlayback&&this.Ln&&(this.E$=!0),this.qk&&(this.rK=!0));else if(awj(this))this.E$=
  10444. !0;else{var G0f,LhN,k0f=((G0f=this.playerResponse)==null?void 0:(LhN=G0f.streamingData)==null?void 0:LhN.adaptiveFormats)||[];if(k0f.length>0)var Mm=Eq1(this,k0f);else{var Psn=this.adaptiveFormats;if(Psn&&!GC(this)){this.Mk.S.j&&(d6=!0);var kX=Du(Psn),R1g=this.ac,Whg=this.lengthSeconds,x4N=this.isLivePlayback,cY=this.uC,P6=this.Mk,ydl=jpY(kX);if(x4N||cY){var CsQ=P6==null?void 0:P6.experiments,KF=new Wb("",CsQ,!0);KF.aN=!0;KF.isManifestless=!0;KF.U=!cY;KF.isLive=!cY;KF.uC=cY;for(var ut2=g.E(kX),xbf=
  10445. ut2.next();!xbf.done;xbf=ut2.next()){var W6=xbf.value,DMI=wT(W6,R1g),d4=fy(W6.url,W6.sp,W6.s),woI=d4.get("id");woI&&woI.includes("%7E")&&(KF.K=!0);var f9Y=void 0,hBq=(f9Y=CsQ)==null?void 0:f9Y.Wv("html5_max_known_end_time_rebase"),HZ_=Number(W6.target_duration_sec)||5,QDq=Number(W6.max_dvr_duration_sec)||14400,z3N=Number(d4.get("mindsq")||d4.get("min_sq")||"0"),iPj=Number(d4.get("maxdsq")||d4.get("max_sq")||"0")||Infinity;KF.QX=KF.QX||z3N;KF.rH=KF.rH||iPj;var Mej=!iW(DMI.mimeType);d4&&Ly(KF,new Q8(d4,
  10446. DMI,{W3:HZ_,RF:Mej,nW:QDq,QX:z3N,rH:iPj,Fp:300,uC:cY,qx:hBq}))}var I92=KF}else{if(ydl==="FORMAT_STREAM_TYPE_OTF"){var nH=Whg;nH=nH===void 0?0:nH;var Co=new Wb("",P6==null?void 0:P6.experiments,!1);Co.duration=nH||0;for(var mMY=g.E(kX),yAX=mMY.next();!yAX.done;yAX=mMY.next()){var uz=yAX.value,h1_=wT(uz,R1g,Co.duration),H$1=fy(uz.url,uz.sp,uz.s);if(H$1)if(h1_.streamType==="FORMAT_STREAM_TYPE_OTF")Ly(Co,new MG(H$1,h1_,"sq/0"));else{var cdQ=o8(uz.init),EAs=o8(uz.index);Ly(Co,new Bb(H$1,h1_,cdQ,EAs))}}Co.isOtf=
  10447. !0;var Szn=Co}else{var rZ=Whg;rZ=rZ===void 0?0:rZ;var tW=new Wb("",P6==null?void 0:P6.experiments,!1);tW.duration=rZ||0;for(var l9H=g.E(kX),Q4I=l9H.next();!Q4I.done;Q4I=l9H.next()){var DS=Q4I.value,jDc=wT(DS,R1g,tW.duration),aqc=o8(DS.init),Adj=o8(DS.index),v_X=fy(DS.url,DS.sp,DS.s);v_X&&Ly(tW,new Bb(v_X,jDc,aqc,Adj))}Szn=tW}I92=Szn}var o_1=I92;if(kX.length>0){var VM_=kX[0];if(this.C().playerStyle==="hangouts-meet"&&VM_.url){var pLN=g.oE(VM_.url);this.tW=this.tW||Number(pLN.expire)}}var ZZL=this.isLivePlayback&&
  10448. !this.uC&&!this.yv&&!this.isPremiere;this.N("html5_live_head_playable")&&(!Lt(this)&&ZZL&&this.oU("missingLiveHeadPlayable",{}),this.Mk.lr==="yt"&&(o_1.RU=!0));Mm=o_1}else Mm=null;this.oU("pafmts",{isManifestFilled:!!Mm})}if(Mm){Wr(this,Mm);var dyH=!0}else dyH=!1;dyH?this.enableServerStitchedDai=this.enableServerStitchedDai&&kp(this):this.Ln&&(this.Mk.lr==="yt"&&this.aN()&&this.N("drm_manifestless_unplugged")&&this.N("html5_deprecate_manifestful_fallback")?this.oU("deprecateMflFallback",{}):this.E$=
  10449. !0)}var ME6=d.adpings;ME6&&(this.aZ=ME6?lF(ME6):null);var qYj=d.feature;qYj&&(this.sx=qYj);var TZf=d.referrer;TZf&&(this.referrer=TZf);this.clientScreenNonce=d8(this.clientScreenNonce,d.csn);this.Dk=VB(this.Dk,d.root_ve_type);this.t5=VB(this.t5,d.kids_age_up_mode);this.ev||d.kids_app_info==void 0||(this.kidsAppInfo=d.kids_app_info);this.ev&&d.kids_app_info!=null&&(this.kidsAppInfo=d.kids_app_info);this.ZD=vL(this.ZD,d.upg_content_filter_mode);this.unpluggedFilterModeType=VB(this.unpluggedFilterModeType,
  10450. d.unplugged_filter_mode_type);var YYI=d.unplugged_location_info;YYI&&(this.zX=YYI);var eQf=d.unplugged_partner_opt_out;eQf&&(this.iq=d8("",eQf));this.G_=vL(this.G_,d.disable_watch_next);this.T_=d8(this.T_,d.internal_ip_override);this.Q8=!!d.is_yto_interstitial;(this.interstitials.length||this.Q8)&&this.K.push("yto");var Uy7=d.BK;Uy7&&(this.BK=Uy7);this.lr=d8(this.lr,d.csi_timer);d.watchUrl&&(this.watchUrl=d.watchUrl);var q9=d.watch_endpoint;this.N("html5_attach_watch_endpoint_ustreamer_config")&&
  10451. q9&&Eb2(this,q9);if(q9==null?0:q9.ustreamerConfig)this.vO=Bx(q9.ustreamerConfig);var bHY,XMY,JWH=q9==null?void 0:(bHY=q9.loggingContext)==null?void 0:(XMY=bHY.qoeLoggingContext)==null?void 0:XMY.serializedContextData;JWH&&(this.ykO=JWH);g.dn(this.Mk)&&this.Mk.zr&&(this.embedsRct=d8(this.embedsRct,d.rct),this.embedsRctn=d8(this.embedsRctn,d.rctn));d.embed_config&&(this.eC=d.embed_config);this.PR=this.PR||!!d.pause_at_start;d.default_active_source_video_id&&(this.defaultActiveSourceVideoId=d.default_active_source_video_id)};
  10452. g.Q.C=function(){return this.Mk};
  10453. g.Q.N=function(d){return this.Mk.N(d)};
  10454. g.Q.Oc=function(){return!this.isLivePlayback||this.allowLiveDvr};
  10455. g.Q.hasSupportedAudio51Tracks=function(){var d;return!((d=this.rA)==null||!d.Bv)};
  10456. g.Q.getUserAudio51Preference=function(){var d=1;Em(this.Mk)&&this.N("html5_ytv_surround_toggle_default_off")?d=0:g.Qv(this.Mk)&&this.isLivePlayback&&this.It()&&(d=0);var q;return(q=g.Zs("yt-player-audio51"))!=null?q:d};
  10457. g.Q.kf=function(){this.JF()||(this.G.U||this.G.unsubscribe("refresh",this.kf,this),this.GJ(-1))};
  10458. g.Q.GJ=function(d){if(!this.isLivePlayback||!this.S||this.S.flavor!=="fairplay"){var q=AeN(this.G,this.j1);if(q.length>0){for(var T=g.E(q),Y=T.next();!Y.done;Y=T.next())Y=Y.value,Y.startSecs=Math.max(Y.startSecs,this.BG()),this.N("html5_cuepoint_identifier_logging")&&Y.event==="start"&&this.oU("cuepoint",{pubCue:Y.identifier,segNum:d});this.publish("cuepointupdated",q,d);this.j1+=q.length;if(kp(this)&&this.Mk.uF())for(q=g.E(q),T=q.next();!T.done;T=q.next())T=T.value,this.oU("cuepoint",{segNum:d,event:T.event,
  10459. startSecs:T.startSecs,id:T.identifier.slice(-16)}),T.event==="start"&&(T=T.startSecs,this.yq.start=this.ST,this.yq.end=T+3)}}};
  10460. g.Q.kM=function(){this.JF()||(this.loading=!1,this.publish("dataloaded"))};
  10461. g.Q.It=function(){return this.pL!==void 0?this.pL:this.pL=!!this.ac||!!this.G&&WI(this.G)};
  10462. g.Q.LR=function(d){var q=this;if(this.JF())return Ad();this.qC=this.AF=this.j=null;HU(this,"html5_high_res_logging_always")&&(this.Mk.R6=!0);return O6_(this,d).then(void 0,function(){return rCj(q,d)}).then(void 0,function(){return tij(q)}).then(void 0,function(){return KoD(q)})};
  10463. g.Q.Vc=function(d){this.j=d;nqn(this,this.j.getAvailableAudioTracks());if(this.j){d=g.E(this.j.videoInfos);for(var q=d.next();!q.done;q=d.next()){q=q.value;var T=q.containerType;T!==0&&(this.Xc[T]=q.id)}}d=this.getAvailableAudioTracks();d=d.concat(this.Pa);for(q=0;q<this.Yh.length;q++){T=this.Yh[q];for(var Y=0;Y<d.length;Y++){var e=d[Y],U=e.DQ.id===T.audioTrackId;if(e.DQ.isDefault&&q===this.s1||U){if(T.captionTrackIndices)for(U=0;U<T.captionTrackIndices.length;U++)e.captionTracks[U]=this.captionTracks[T.captionTrackIndices[U]];
  10464. T.defaultCaptionTrackIndex!==void 0&&(e.j=this.captionTracks[T.defaultCaptionTrackIndex]);T.forcedCaptionTrackIndex!==void 0&&(e.G=this.captionTracks[T.forcedCaptionTrackIndex]);e.U=T.visibility||"UNKNOWN";e.captionsInitialState=T.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}}if(this.S&&this.j&&this.j.videoInfos&&!(this.j.videoInfos.length<=0)&&(d=uW(this.j.videoInfos[0]),this.S.flavor==="fairplay"!==d))for(q=g.E(this.bV),T=q.next();!T.done;T=q.next())if(T=T.value,d===(T.flavor==="fairplay")){this.S=
  10465. T;break}};
  10466. g.Q.TN=function(){if(this.cotn)return null;var d=g.xv(this.Mk)||this.N("web_l3_storyboard");if(!this.Kq)if(this.playerResponse&&this.playerResponse.storyboards){var q=this.playerResponse.storyboards,T=q.playerStoryboardSpecRenderer;T&&T.spec?this.Kq=new Fx(T.spec,this.lengthSeconds,void 0,!1,d):(q=q.playerLiveStoryboardSpecRenderer)&&q.spec&&this.G&&(T=KjH(this.G.G).index)&&(this.Kq=new Rf(q.spec,this.G.isLive,T,d))}else this.iA?this.Kq=new Fx(this.iA,this.lengthSeconds,void 0,!1,d):this.gx&&this.G&&
  10467. (q=KjH(this.G.G).index)&&(this.Kq=new Rf(this.gx,this.G.isLive,q,d));return this.Kq};
  10468. g.Q.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var d=this.playerResponse.storyboards;return(d=d.playerStoryboardSpecRenderer||d.playerLiveStoryboardSpecRenderer)&&d.spec||null}return this.iA||this.gx};
  10469. g.Q.cG=function(){return this.G&&!isNaN(this.G.cG())?this.G.cG():kp(this)?0:this.lengthSeconds};
  10470. g.Q.BG=function(){return this.G&&!isNaN(this.G.BG())?this.G.BG():0};
  10471. g.Q.getPlaylistSequenceForTime=function(d){if(this.G&&this.U){var q=this.G.G[this.U.id];if(!q)return null;var T=q.index.yg(d);q=q.index.getStartTime(T);return{sequence:T,elapsed:Math.floor((d-q)*1E3)}}return null};
  10472. g.Q.LH=function(){return!this.JF()&&!(!this.videoId&&!this.j8)};
  10473. g.Q.xk=function(){var d,q,T;return!!this.adaptiveFormats||!!((d=this.playerResponse)==null?0:(q=d.streamingData)==null?0:(T=q.adaptiveFormats)==null?0:T.length)};
  10474. g.Q.isLoaded=function(){return hw(this)&&!this.E$&&!this.rK};
  10475. g.Q.Qg=function(d){d||(d="hqdefault.jpg");var q=this.B[d];return q||this.Mk.UD||d==="pop1.jpg"||d==="pop2.jpg"||d==="sddefault.jpg"||d==="hq720.jpg"||d==="maxresdefault.jpg"?q:hJ(this.Mk,this.videoId,d)};
  10476. g.Q.aN=function(){return this.isLivePlayback||this.uC||this.yv||!(!this.liveUtcStartSeconds||!this.Ar)};
  10477. g.Q.isOtf=function(){return!!this.G&&(this.G.isOtf||!this.uC&&!this.isLivePlayback&&this.G.U)};
  10478. g.Q.getAvailableAudioTracks=function(){return this.j?this.j.getAvailableAudioTracks().length>0?this.j.getAvailableAudioTracks():this.K8||[]:[]};
  10479. g.Q.getAudioTrack=function(){var d=this;if(this.T&&!uW(this.T)){var q=g.QN(this.getAvailableAudioTracks(),function(e){return e.id===d.T.id}),T;
  10480. if(!q&&((T=this.T.DQ)==null?0:T.id)){var Y=this.T.DQ.id;q=g.QN(this.getAvailableAudioTracks(),function(e){return e.DQ.id===Y});
  10481. this.oU("nat",{id:this.T.id,track:!!q})}return q||this.Pa}if(this.K8){if(!this.Se)for(q=g.E(this.K8),T=q.next();!T.done;T=q.next())if(T=T.value,T.DQ.getIsDefault()){this.Se=T;break}return this.Se||this.Pa}return this.Pa};
  10482. g.Q.getPlayerResponse=function(){return this.playerResponse};
  10483. g.Q.getWatchNextResponse=function(){return this.dO};
  10484. g.Q.getHeartbeatResponse=function(){return this.ov};
  10485. g.Q.Xk=function(){return this.watchUrl?this.watchUrl:this.Mk.getVideoUrl(this.videoId)};
  10486. g.Q.P5=function(){return!!this.G&&(yeY(this.G)||h0g(this.G)||HkQ(this.G))};
  10487. g.Q.getEmbeddedPlayerResponse=function(){return this.mV};
  10488. g.Q.mT=function(){return(this.eventLabel||this.Mk.z2)==="shortspage"};
  10489. g.Q.isAd=function(){return!!this.adFormat};
  10490. g.Q.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
  10491. g.Q.y5=function(){var d,q,T;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((d=this.playerResponse)==null?0:(q=d.playerConfig)==null?0:(T=q.daiConfig)==null?0:T.ssaEnabledPlayback)};
  10492. g.Q.ZK=function(){return this.oy};
  10493. g.Q.Gi=function(){return this.B3||this.Vt};
  10494. g.Q.qr=function(){return HU(this,"html5_samsung_vp9_live")};
  10495. g.Q.oU=function(d,q,T){this.publish("ctmp",d,q,T)};
  10496. g.Q.f_=function(d,q,T){this.publish("ctmpstr",d,q,T)};
  10497. g.Q.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
  10498. g.Q.getGetAdBreakContext=function(d,q){d=d===void 0?NaN:d;q=q===void 0?NaN:q;var T={isSabr:tw(this)},Y,e=(Y=this.getHeartbeatResponse())==null?void 0:Y.adBreakHeartbeatParams;e&&(T.adBreakHeartbeatParams=e);if(this.N("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.G&&!isNaN(d)&&!isNaN(q)){q=d-q;for(var U in this.G.G)if(Y=this.G.G[U],Y.info.eh()||Y.info.JE())if(Y=Y.index,Y.isLoaded()){U=Y.yg(q);Y=Y.fH(U)+q-Y.getStartTime(U);this.oU("gabc",{t:d.toFixed(3),mt:q.toFixed(3),sg:U,igt:Y.toFixed(3)});
  10499. T.livePlaybackPosition={utcTimeMillis:""+(Y*1E3).toFixed(0)};break}}return T};
  10500. g.Q.isEmbedsShortsMode=function(d,q){if(!g.dn(this.Mk)||(this.Mk.rO||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||q)return!1;var T,Y;return!!(((T=this.embeddedPlayerConfig)==null?0:(Y=T.embeddedPlayerFlags)==null?0:Y.isShortsExperienceEligible)&&d.width<=d.height)};
  10501. g.Q.ir=function(){g.YP.prototype.ir.call(this);this.aZ=null;delete this.d2;delete this.accountLinkingConfig;delete this.G;this.j=this.ov=this.playerResponse=this.dO=null;this.vA=this.adaptiveFormats="";delete this.botguardData;this.Fw=this.suggestions=this.u3=null;this.sabrContextUpdates.clear()};var $7H={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},gCY={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},JHI={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},U7j={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"},XNY={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},b0_={0:"UNPLUGGED_FILTER_MODE_TYPE_UNKNOWN",1:"UNPLUGGED_FILTER_MODE_TYPE_NONE",2:"UNPLUGGED_FILTER_MODE_TYPE_PG",
  10502. 3:"UNPLUGGED_FILTER_MODE_TYPE_PG_THIRTEEN"},sm_={0:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_UNSPECIFIED",1:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_30_SECONDS",2:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_FULL"};g.M(a6,g.W);g.Q=a6.prototype;g.Q.handleExternalCall=function(d,q,T){var Y=this.state.L[d],e=this.state.B[d],U=Y;if(e)if(T&&Dp(T,VV_))U=e;else if(!Y)throw Error('API call from an untrusted origin: "'+T+'"');this.logApiCall(d,T);if(U){T=!1;Y=g.E(q);for(e=Y.next();!e.done;e=Y.next())if(String(e.value).includes("javascript:")){T=!0;break}T&&g.OL(Error('Dangerous call to "'+d+'" with ['+q+"]."));return U.apply(this,q)}throw Error('Unknown API method: "'+d+'".');};
  10503. g.Q.logApiCall=function(d,q,T){var Y=this.app.C();Y.Se&&!this.state.K.has(d)&&(this.state.K.add(d),g.Ta("webPlayerApiCalled",{callerUrl:Y.loaderUrl,methodName:d,origin:q||void 0,playerStyle:Y.playerStyle||void 0,embeddedPlayerMode:Y.rO,errorCode:T}))};
  10504. g.Q.publish=function(d){var q=g.CN.apply(1,arguments);this.state.j.publish.apply(this.state.j,[d].concat(g.RQ(q)));if(d==="videodatachange"||d==="resize"||d==="cardstatechange")this.state.U.publish.apply(this.state.U,[d].concat(g.RQ(q))),this.state.T.publish.apply(this.state.T,[d].concat(g.RQ(q)))};
  10505. g.Q.gO=function(d){var q=g.CN.apply(1,arguments);this.state.j.publish.apply(this.state.j,[d].concat(g.RQ(q)));this.state.U.publish.apply(this.state.U,[d].concat(g.RQ(q)))};
  10506. g.Q.US=function(d){var q=g.CN.apply(1,arguments);this.state.j.publish.apply(this.state.j,[d].concat(g.RQ(q)));this.state.U.publish.apply(this.state.U,[d].concat(g.RQ(q)));this.state.T.publish.apply(this.state.T,[d].concat(g.RQ(q)))};
  10507. g.Q.uv=function(d){var q=g.CN.apply(1,arguments);this.state.j.publish.apply(this.state.j,[d].concat(g.RQ(q)));this.state.U.publish.apply(this.state.U,[d].concat(g.RQ(q)));this.state.T.publish.apply(this.state.T,[d].concat(g.RQ(q)));this.state.S.publish.apply(this.state.S,[d].concat(g.RQ(q)))};
  10508. g.Q.N=function(d){return this.app.C().N(d)};
  10509. g.Q.ir=function(){if(this.state.element){var d=this.state.element,q;for(q in this.state.G)this.state.G.hasOwnProperty(q)&&(d[q]=null);this.state.element=null}g.W.prototype.ir.call(this)};g.M(nV,g.Mg);nV.prototype.publish=function(d){var q=g.CN.apply(1,arguments);if(this.S.has(d))return this.S.get(d).push(q),!0;var T=!1;try{for(q=[q],this.S.set(d,q);q.length;)T=g.Mg.prototype.publish.call.apply(g.Mg.prototype.publish,[this,d].concat(g.RQ(q.shift())))}finally{this.S.delete(d)}return T};g.M(rm,g.W);rm.prototype.ir=function(){this.S.dispose();this.T.dispose();this.U.dispose();this.j.dispose();this.K=this.G=this.B=this.L=this.X=void 0};var H0Y=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.M(BU,a6);g.Q=BU.prototype;g.Q.getApiInterface=function(){return Array.from(this.state.X)};
  10510. g.Q.CK=function(d,q){this.state.S.subscribe(d,q)};
  10511. g.Q.TAw=function(d,q){this.state.S.unsubscribe(d,q)};
  10512. g.Q.getPlayerState=function(d){return dWn(this.app,d)};
  10513. g.Q.ix=function(){return dWn(this.app)};
  10514. g.Q.mUD=function(d,q,T){LV(this)&&(Dj(this.app,!0,1),zr(this.app,d,q,T,1))};
  10515. g.Q.getCurrentTime=function(d,q,T){var Y=this.getPlayerState(d);if(this.app.getAppState()===2&&Y===5){var e;return((e=this.app.getVideoData())==null?void 0:e.startSeconds)||0}return this.N("web_player_max_seekable_on_ended")&&Y===0?Ll(this.app,d):d?this.app.getCurrentTime(d,q,T):this.app.getCurrentTime(d)};
  10516. g.Q.Zx=function(){return this.app.getCurrentTime(1)};
  10517. g.Q.Gl=function(){var d=this.app.fH(1);return isNaN(d)?this.getCurrentTime(1):d};
  10518. g.Q.k5=function(){return this.app.getDuration(1)};
  10519. g.Q.fP=function(d,q){d=g.Cn(Math.floor(d),0,100);isFinite(d)&&Kl(this.app,{volume:d,muted:this.isMuted()},q)};
  10520. g.Q.Cvr=function(d){this.fP(d,!1)};
  10521. g.Q.zR=function(d){Kl(this.app,{muted:!0,volume:this.getVolume()},d)};
  10522. g.Q.zgx=function(){this.zR(!1)};
  10523. g.Q.md=function(d){GJ(this.app)&&!this.N("embeds_enable_emc3ds_muted_autoplay")||Kl(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},d)};
  10524. g.Q.N12=function(){GJ(this.app)&&this.N("embeds_enable_emc3ds_muted_autoplay")||this.md(!1)};
  10525. g.Q.getPlayerMode=function(){var d={};this.app.getVideoData().kc&&(d.pfp={enableIma:this.app.GX().allowImaMonetization,autoplay:sF(this.app.GX()),mutedAutoplay:this.app.GX().mutedAutoplay});return d};
  10526. g.Q.Wg=function(){var d=this.app.getPresentingPlayerType();if(d===2&&!this.app.ZY()){var q=Wc(this.app.M5());if(!(qII(q)||g.dn(this.app.C())&&g.I(this.app.Lf().getPlayerState(),1024))||TLI(q))return}(q=this.app.v3().Ig)?q.playVideo():this.app.playVideo(d)};
  10527. g.Q.eU5=function(){Dj(this.app,!0,1);this.Wg()};
  10528. g.Q.pauseVideo=function(d){var q=this.app.getPresentingPlayerType();if(q!==2||this.app.ZY()||qII(Wc(this.app.M5()))){var T=this.app.v3().Ig;T?T.pauseVideo():this.app.pauseVideo(q,d)}};
  10529. g.Q.QlD=function(){var d=this.app,q=!1;d.Pv.vF&&(d.mZ.publish("pageTransition"),q=!0);d.stopVideo(q)};
  10530. g.Q.clearVideo=function(){};
  10531. g.Q.getAvailablePlaybackRates=function(){var d=this.app.C();return d.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(d.T?d.ancestorOrigins[0]:window.location.origin)||d.Nf?ZTj:d.supportsVarispeedExtendedFeatures?OTl:d.N("web_remix_allow_up_to_3x_playback_rate")&&g.KG(d)?nEI:K8:[1]};
  10532. g.Q.getPlaybackQuality=function(d){return(d=this.app.YP(d))?d.getPlaybackQuality():"unknown"};
  10533. g.Q.gPr=function(){};
  10534. g.Q.getAvailableQualityLevels=function(d){return(d=this.app.YP(d))?(d=g.yC(d.N4(),function(q){return q.quality}),d.length&&(d[0]==="auto"&&d.shift(),d=d.concat(["auto"])),d):[]};
  10535. g.Q.AM=function(){return this.getAvailableQualityLevels(1)};
  10536. g.Q.tB=function(){return this.So()};
  10537. g.Q.zl=function(){return 1};
  10538. g.Q.getVideoLoadedFraction=function(d){return this.app.getVideoLoadedFraction(d)};
  10539. g.Q.So=function(){return this.getVideoLoadedFraction()};
  10540. g.Q.YW=function(){return 0};
  10541. g.Q.getSize=function(){var d=this.app.OD().getPlayerSize();return{width:d.width,height:d.height}};
  10542. g.Q.setSize=function(){this.app.OD().resize()};
  10543. g.Q.loadVideoById=function(d,q,T,Y){if(!d)return!1;d=t7(d,q,T);return this.app.loadVideoByPlayerVars(d,Y)};
  10544. g.Q.Fv=function(d,q,T){d=this.loadVideoById(d,q,T,1);Dj(this.app,d,1)};
  10545. g.Q.cueVideoById=function(d,q,T,Y){d=t7(d,q,T);this.app.cueVideoByPlayerVars(d,Y)};
  10546. g.Q.e6=function(d,q,T){this.cueVideoById(d,q,T,1)};
  10547. g.Q.loadVideoByUrl=function(d,q,T,Y){d=hfQ(d,q,T);return this.app.loadVideoByPlayerVars(d,Y)};
  10548. g.Q.AQ=function(d,q,T){d=this.loadVideoByUrl(d,q,T,1);Dj(this.app,d,1)};
  10549. g.Q.cueVideoByUrl=function(d,q,T,Y){d=hfQ(d,q,T);this.app.cueVideoByPlayerVars(d,Y)};
  10550. g.Q.LQ=function(d,q,T){this.cueVideoByUrl(d,q,T,1)};
  10551. g.Q.bx=function(){var d=this.app.C();if(d.UD)return"";var q=this.app.GX(),T=void 0;q.isLivePlayback||(T=Math.floor(this.app.getCurrentTime(1)));return d.getVideoUrl(q.videoId,this.getPlaylistId()||void 0,T)};
  10552. g.Q.Ci=function(){return this.app.getDebugText()};
  10553. g.Q.getVideoEmbedCode=function(){var d=this.app.C();if(d.UD)return"";var q=this.app.GX();return d.getVideoEmbedCode(q.isPrivate?"":q.title,this.app.GX().videoId,this.app.OD().getPlayerSize(),this.getPlaylistId()||void 0)};
  10554. g.Q.ZU=function(d,q,T){return Jvg(this.app,d,q,T)};
  10555. g.Q.removeCueRange=function(d){return this.app.XA(d)};
  10556. g.Q.loadPlaylist=function(d,q,T,Y){this.app.loadPlaylist(d,q,T,Y)};
  10557. g.Q.NP=function(d,q,T,Y){this.loadPlaylist(d,q,T,Y);Dj(this.app,!0,1)};
  10558. g.Q.cuePlaylist=function(d,q,T,Y){this.app.cuePlaylist(d,q,T,Y)};
  10559. g.Q.nextVideo=function(d,q){this.app.nextVideo(d,q)};
  10560. g.Q.pvk=function(){this.nextVideo();Dj(this.app,!0,1)};
  10561. g.Q.previousVideo=function(d){this.app.previousVideo(d)};
  10562. g.Q.OHD=function(){this.previousVideo();Dj(this.app,!0,1)};
  10563. g.Q.playVideoAt=function(d){this.app.playVideoAt(d)};
  10564. g.Q.Eok=function(d){this.playVideoAt(d);Dj(this.app,!0,1)};
  10565. g.Q.setShuffle=function(d){var q=this.app.getPlaylist();q&&q.setShuffle(d)};
  10566. g.Q.setLoop=function(d){var q=this.app.getPlaylist();q&&(q.loop=d)};
  10567. g.Q.y7=function(){var d=this.app.getPlaylist();if(!d)return null;for(var q=[],T=0;T<d.length;T++){var Y=g.pa(d,T);Y&&q.push(Y.videoId)}return q};
  10568. g.Q.getPlaylistIndex=function(){var d=this.app.getPlaylist();return d?d.index:-1};
  10569. g.Q.getPlaylistId=function(){var d=this.app.getPlaylist();return d&&d.listId?d.listId.toString():null};
  10570. g.Q.wv=function(d){d==="captions"&&(d=g.La(this.app.M5()))&&!d.loaded&&d.load()};
  10571. g.Q.Vr=function(d){d==="captions"&&(d=g.La(this.app.M5()))&&d.loaded&&d.AEk()};
  10572. g.Q.Na=function(d,q,T){if(!q)return null;var Y=this.app.M5();return d==="captions"?(d=g.La(Y))&&d.Vg(q,T):null};
  10573. g.Q.fI=function(d,q,T){return cU(this.app.UM().getVideoData())?{}:this.Na(d,q,T)};
  10574. g.Q.GI=function(d){var q=this.app.M5();if(d==="captions"){var T;return((T=g.La(q))==null?void 0:T.getOptions())||null}return d?null:(d=[],g.La(q)&&d.push("captions"),d)};
  10575. g.Q.getVolume=function(){return this.app.FM.volume};
  10576. g.Q.isMuted=function(){return this.app.FM.muted};
  10577. g.Q.destroy=function(){this.app.dispose()};
  10578. g.Q.logImaAdEvent=function(d,q){var T=this.app.C();this.app.GX().allowImaMonetization&&(d={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:q,embedUrl:g.fvY(this.app.C().loaderUrl),eventType:d,youtubeHost:g.sb(this.app.C().XM)||""},d.embeddedPlayerMode=T.rO,g.Ta("embedsAdEvent",d))};
  10579. g.Q.mutedAutoplay=function(d){var q=this.app.C(),T,Y,e;((T=q.getWebPlayerContextConfig())==null?0:(Y=T.embedsHostFlags)==null?0:(e=Y.allowMutedAutoplayDurationMode)==null?0:e.length)&&!q.j&&this.app.mutedAutoplay(d)};
  10580. g.Q.preloadVideoById=function(d,q,T,Y){var e,U;((e=this.app.C().getWebPlayerContextConfig())==null?0:(U=e.embedsHostFlags)==null?0:U.allowPreloadVideoById)&&d&&(d=t7(d,q,T),this.app.preloadVideoByPlayerVars(d,Y))};
  10581. g.Q.gow=function(d,q,T){this.preloadVideoById(d,q,T,1)};
  10582. g.Q.setFauxFullscreen=function(d){g.g8();this.app.Cp(d?2:0)};
  10583. g.Q.Fjv=function(d){var q,T;((q=this.app.C().getWebPlayerContextConfig())==null?0:(T=q.embedsHostFlags)==null?0:T.allowSetFauxFullscreen)&&this.setFauxFullscreen(d)};
  10584. g.Q.setCenterCrop=function(d){var q,T;((q=this.app.C().getWebPlayerContextConfig())==null?0:(T=q.embedsHostFlags)==null?0:T.allowSetCenterCrop)&&this.app.OD().setCenterCrop(d)};
  10585. g.Q.wakeUpControls=function(){var d=g.KV(this);d&&d.oZ()};var a4f="driveweb flix flix_from_driveweb hovercard projector texmex wshbp".split(" ");g.M(k4,BU);g.Q=k4.prototype;g.Q.k7=function(d,q){this.state.T.subscribe(d,q)};
  10586. g.Q.yeF=function(d,q){this.state.T.unsubscribe(d,q)};
  10587. g.Q.cueVideoByPlayerVars=function(d,q){this.app.cueVideoByPlayerVars(d,q)};
  10588. g.Q.Nv=function(d,q){q=q===void 0?1:q;this.cueVideoByPlayerVars(PU(this,d),q)};
  10589. g.Q.loadVideoByPlayerVars=function(d,q,T,Y,e){this.app.loadVideoByPlayerVars(d,T,q,Y,e)};
  10590. g.Q.xs=function(d,q,T,Y){T=T===void 0?1:T;this.loadVideoByPlayerVars(PU(this,d),q,T,Y)};
  10591. g.Q.preloadVideoByPlayerVars=function(d,q,T,Y,e){T=T===void 0?NaN:T;this.app.preloadVideoByPlayerVars(d,q,T,Y===void 0?"":Y,e===void 0?"":e)};
  10592. g.Q.Bsf=function(d,q,T,Y){q=q===void 0?1:q;this.preloadVideoByPlayerVars(PU(this,d),q,T,Y)};
  10593. g.Q.GC=function(d,q,T){this.loadVideoById(d,q,T,1)};
  10594. g.Q.Un=function(d,q,T){this.loadVideoByUrl(d,q,T,1)};
  10595. g.Q.Tl=function(d){return this.getPlayerState(d)};
  10596. g.Q.mY=function(d){d=d===void 0?1:d;var q=MNH(this,d);if(d=this.app.YP(d)){d=d.getVideoData();q.backgroundable=d.backgroundable;q.eventId=d.eventId;q.cpn=d.clientPlaybackNonce;q.isLive=d.isLivePlayback;q.isWindowedLive=d.yv;q.isManifestless=kp(d);q.allowLiveDvr=d.allowLiveDvr;q.isListed=d.isListed;d.liveUtcStartSeconds!=null&&(q.liveUtcStartSeconds=d.liveUtcStartSeconds);d.It()&&(q.isEncrypted=!0);if(d.j)for(var T=g.E(d.j.videoInfos),Y=T.next();!Y.done;Y=T.next()){var e=void 0;if((e=Y.value.video)==
  10597. null?0:e.isHdr()){q.isHdr=!0;break}}var U,b;q.isMultiChannelAudio=!!((U=d.T)==null?0:(b=U.audio)==null?0:b.isMultiChannelAudio())}return q};
  10598. g.Q.seekBy=function(d,q,T,Y,e){LV(this)&&zr(this.app,this.app.getCurrentTime()+d,q,T,e,Y)};
  10599. g.Q.XAg=function(d,q,T){this.seekBy(d,q,T,void 0,1)};
  10600. g.Q.seekTo=function(d,q,T,Y,e){LV(this)&&zr(this.app,d,q,T,Y,e)};
  10601. g.Q.SrZ=function(d,q,T,Y){this.seekTo(d,q,T,Y===void 0?1:Y)};
  10602. g.Q.getStoryboardFormat=function(){return cU(this.app.getVideoData())?null:this.app.getStoryboardFormat()};
  10603. g.Q.O0=function(d,q){return this.getCurrentTime(d===void 0?1:d,q)};
  10604. g.Q.Jj=function(){var d=this.app.getPresentingPlayerType(!0);d===2&&this.app.ZY()&&(d=1);return d};
  10605. g.Q.getDuration=function(d,q){return d?this.app.getDuration(d,q):this.app.getDuration(d)};
  10606. g.Q.iN=function(d,q){return this.getDuration(d===void 0?1:d,q)};
  10607. g.Q.Ip=function(d){return this.getVideoLoadedFraction(d)};
  10608. g.Q.loadModule=function(d){if(d==="annotations_module"){var q=g.Df(this.app.M5());q&&!q.loaded&&q.load()}this.wv(d)};
  10609. g.Q.unloadModule=function(d){if(d==="annotations_module"){var q=g.Df(this.app.M5());q&&q.loaded&&q.unload()}this.Vr(d)};
  10610. g.Q.getOption=function(d,q,T,Y){return(Y=this.app.YP(Y))&&cU(Y.getVideoData())?{}:this.setOption(d,q,T)};
  10611. g.Q.sY=function(d,q,T){return this.getOption(d,q,T,1)};
  10612. g.Q.getOptions=function(d){var q=this.app.M5();switch(d){case "ad":var T,Y;return((T=Wc(q))==null?void 0:(Y=T.getOptions)==null?void 0:Y.call(T))||null;case "remote":var e,U;return((e=I6(q))==null?void 0:(U=e.getOptions)==null?void 0:U.call(e))||null;case "annotations_module":var b,J;return((b=g.Df(q))==null?void 0:(J=b.getOptions)==null?void 0:J.call(b))||null;case "creatorendscreen":var F,N;return((F=wV(q))==null?void 0:(N=F.getOptions)==null?void 0:N.call(F))||null;case "unplugged":var R,x;return((R=
  10613. g.Ca(q))==null?void 0:(x=R.getOptions)==null?void 0:x.call(R))||null;case "kids":var y,h;return((y=oi_(q))==null?void 0:(h=y.getOptions)==null?void 0:h.call(y))||null}if(!d){d=this.GI();if(!d)return d;Wc(q)&&d.push("ad");I6(q)&&d.push("remote");g.Df(q)&&d.push("annotations_module");wV(q)&&d.push("creatorendscreen");g.Ca(q)&&d.push("unplugged");oi_(q)&&d.push("kids");return d}return this.GI(d)};
  10614. g.Q.setOption=function(d,q,T){if(!q)return null;var Y=this.app.M5();switch(d){case "ad":return(d=Wc(Y))&&d.Vg&&d.Vg(q,T);case "kids":return(d=oi_(Y))&&d.Vg(q,T);case "remote":return(d=I6(Y))&&d.Vg(q,T);case "unplugged":return(d=g.Ca(Y))&&d.Vg(q,T);case "annotations_module":return(d=g.Df(Y))&&d.Vg(q,T);case "creatorendscreen":return(d=wV(Y))&&d.Vg(q,T)}return this.Na(d,q,T)};
  10615. g.Q.addCueRange=function(d,q,T,Y,e){return Jvg(this.app,d,q,T,Y,e)};
  10616. g.Q.getDebugText=function(d){return this.app.getDebugText(d)};
  10617. g.Q.getCurrentBroadcastId=function(){return null};
  10618. g.Q.handleGlobalKeyDown=function(d,q,T,Y,e,U,b,J){q=q===void 0?!1:q;T=T===void 0?!1:T;Y=Y===void 0?!1:Y;e=e===void 0?!1:e;var F=g.KV(this);F&&F.handleGlobalKeyDown(d,q,T,Y,e,U,b,J)};
  10619. g.Q.handleGlobalKeyUp=function(d,q,T,Y,e,U,b){q=q===void 0?!1:q;T=T===void 0?!1:T;Y=Y===void 0?!1:Y;e=e===void 0?!1:e;var J=g.KV(this);J&&J.handleGlobalKeyUp(d,q,T,Y,e,U,b)};
  10620. g.Q.setSizeStyle=function(d,q){this.app.setSizeStyle(d,q)};
  10621. g.Q.showControls=function(){var d=g.KV(this);d&&d.showControls(!0)};
  10622. g.Q.hideControls=function(){var d=g.KV(this);d&&d.showControls(!1)};
  10623. g.Q.getVideoContentRect=function(d){d=this.app.OD().getVideoContentRect(d);return{left:d.left,top:d.top,width:d.width,height:d.height}};
  10624. g.Q.toggleFullscreen=function(){function d(T){g.OL(T)}
  10625. var q=this.app.C();if(q.externalFullscreen){if(!g.an(q))return this.isFullscreen()?Ns(window.document.documentElement):$O(window.document.documentElement).catch(d)}else if(g.g8()||q.L)return this.isFullscreen()?Ns(FH()):q.controlsType!=="3"&&g.g8()?$O(this.app.OD().element).catch(d):(q=this.app.WG().tA())?$O(q).catch(d):Promise.reject(Error("Media element missing"));this.uv("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
  10626. g.Q.isFullscreen=function(){return this.app.isFullscreen()};
  10627. g.Q.hW=function(){return this.app.hW()};
  10628. g.Q.cancelPlayback=function(){var d=Wc(this.app.M5());d&&d.created&&d.destroy();this.app.Lf().stopVideo();(d=this.app.M5().OS.get("endscreen"))&&d.IH()&&g.iH(this.app.mZ,!0)};
  10629. g.Q.getProgressState=function(d){if(this.Jj()===3)return I6(this.app.M5()).getProgressState();var q=this.app.getVideoData(),T=this.app.YP(d)||this.app.Lf(),Y=T.getPlayerType();a:{var e=this.app.getVideoData();var U;if((U=e.progressBarStartPosition)==null?0:U.utcTimeMillis)if(e=Number(e.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(e)){e=WU(this,e,d);break a}e=0}var b;a:{U=this.app.getVideoData();if((b=U.progressBarEndPosition)==null?0:b.utcTimeMillis)if(b=Number(U.progressBarEndPosition.utcTimeMillis)/
  10630. 1E3,!isNaN(b)){b=WU(this,b,d);break a}b=0}U=this.getCurrentTime(d);d=this.getDuration(d);var J=this.app.fH(Y),F=this.app.isAtLiveHead(Y),N=this.app.sP();var R=this.app;var x=R.dk({playerType:Y});x?(x=Aa(R,x),R=P1(R,x.g3(),x)):R=R.MC.G.g3();x=Ll(this.app,Y);T=T.mz();var y=this.app.getVideoData().di;Y=!y||isNaN(y)?0:WU(this,y,Y);return{airingStart:e,airingEnd:b,allowSeeking:this.app.Oc(),clipEnd:q.clipEnd,clipStart:q.clipStart,current:U,displayedStart:-1,duration:d,ingestionTime:J,isAtLiveHead:F,loaded:N,
  10631. seekableStart:R,seekableEnd:x,offset:T,viewerLivestreamJoinMediaTime:Y}};
  10632. g.Q.isInline=function(){return this.app.isInline()};
  10633. g.Q.setInline=function(d){this.app.setInline(d)};
  10634. g.Q.hB=function(){return this.app.UM().BF(!0)};
  10635. g.Q.toggleSubtitles=function(){var d=g.La(this.app.M5());d&&d.JE2()};
  10636. g.Q.getPlayerSize=function(){var d=this.app.OD().getPlayerSize();return{width:d.width,height:d.height}};
  10637. g.Q.setCenterCrop=function(d){this.app.OD().setCenterCrop(d)};
  10638. g.Q.getLoopVideo=function(){return this.app.getLoopVideo()};
  10639. g.Q.setLoopVideo=function(d){this.app.setLoopVideo(d)};
  10640. var jm1="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(" "),
  10641. pNN="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 Np={},Z06=(Np["api.invalidparam"]=2,Np.auth=150,Np["drm.auth"]=150,Np["heartbeat.net"]=150,Np["heartbeat.servererror"]=150,Np["heartbeat.stop"]=150,Np["html5.unsupportedads"]=5,Np["fmt.noneavailable"]=5,Np["fmt.decode"]=5,Np["fmt.unplayable"]=5,Np["html5.missingapi"]=5,Np["html5.unsupportedlive"]=5,Np["drm.unavailable"]=5,Np["mrm.blocked"]=151,Np["embedder.identity.denied"]=152,Np["embedder.identity.missing.referrer"]=153,Np);g.M(g.CV,k4);g.Q=g.CV.prototype;g.Q.isExternalMethodAvailable=function(d,q){return this.state.L[d]?!0:!!(this.state.B[d]&&q&&Dp(q,VV_))};
  10642. g.Q.getBandwidthEstimate=function(){return I9(this.app.C().schedule)};
  10643. g.Q.reportPlaybackIssue=function(d){d=d===void 0?"":d;var q=this.app.Lf();d={gpu:(0,g.gk)(),d:d};q.handleError(new g.xV("feedback",d))};
  10644. g.Q.getInternalApi=function(){return Object.assign({},this.state.G)};
  10645. g.Q.getInternalApiInterface=function(){return g.UN(this.state.G)};
  10646. g.Q.queueNextVideo=function(d,q,T,Y,e){T=T===void 0?NaN:T;this.app.queueNextVideo(d,q,T,Y===void 0?"":Y,e===void 0?"":e)};
  10647. g.Q.jK=function(d){d=this.app.getPlayerStateObject(d);return{isBuffering:g.I(d,1),isCued:d.isCued(),isDomPaused:g.I(d,1024),isEnded:g.I(d,2),isError:g.I(d,128),isOrWillBePlaying:d.isOrWillBePlaying(),isPaused:d.isPaused(),isPlaying:d.isPlaying(),isSeeking:g.I(d,16),isUiSeeking:g.I(d,32),isUnstarted:g.I(d,64)}};
  10648. g.Q.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()};
  10649. g.Q.startSeekCsiAction=function(){this.app.GN().T.G=(0,g.cj)()};
  10650. g.Q.Bd=function(d,q,T){return this.getCurrentTime(d===void 0?1:d,q,T)};
  10651. g.Q.seekToStreamTime=function(d,q,T,Y){var e=this.app;q=q===void 0?!0:q;var U=e.dk({playerType:1}),b=0;U&&U.getStreamTimeOffset()&&!U.mz()&&(b=U.getStreamTimeOffset());zr(e,d-b,q,T,1,Y)};
  10652. g.Q.getStreamTimeOffset=function(){return this.app.UM().getStreamTimeOffset()};
  10653. g.Q.seekToLiveHead=function(d,q){var T=this.app.UM().getVideoData();T&&T.isLivePlayback&&zr(this.app,Infinity,d,q,1)};
  10654. g.Q.requestSeekToWallTimeSeconds=function(d,q,T){this.app.UM().mN(d,q,T)};
  10655. g.Q.qrD=function(d,q,T,Y,e){this.seekTo(d,q,T,Y===void 0?1:Y,e)};
  10656. g.Q.vPv=function(d,q,T,Y){this.seekBy(d,q,T,Y,1)};
  10657. g.Q.prefetchKeyPlay=function(d,q){this.app.UM().prefetchKeyPlay(d,q)};
  10658. g.Q.setVolume=function(d,q){this.fP(d,q===void 0?!0:q)};
  10659. g.Q.mute=function(d){this.zR(d===void 0?!0:d)};
  10660. g.Q.unMute=function(d){this.md(d===void 0?!0:d)};
  10661. g.Q.syncVolume=function(){var d=nRN(this.app);Kl(this.app,{volume:d.volume,muted:d.muted},!1)};
  10662. g.Q.getAvailableQualityLabels=function(){return g.yC(this.app.UM().N4(),function(d){return d.qualityLabel})};
  10663. g.Q.channelSubscribed=function(){this.gO("SUBSCRIBE",this.app.GX().Gp)};
  10664. g.Q.channelUnsubscribed=function(){this.gO("UNSUBSCRIBE",this.app.GX().Gp)};
  10665. g.Q.setScreenLayer=function(d){this.app.setScreenLayer(d)};
  10666. g.Q.getCurrentPlaylistSequence=function(){return this.app.Lf().getPlaylistSequenceForTime(this.app.getCurrentTime())};
  10667. g.Q.getPlaylistSequenceForTime=function(d){return this.app.Lf().getPlaylistSequenceForTime(d)};
  10668. g.Q.shouldSendVisibilityState=function(){return!0};
  10669. g.Q.confirmYpcRental=function(){this.app.UM().Lz("ypc_clickwrap")};
  10670. g.Q.setHomeGroupInfo=function(d){this.app.C().homeGroupInfo=d};
  10671. g.Q.setConnectedRemoteApps=function(d){this.app.C().Dc=d};
  10672. g.Q.setLivingRoomAppMode=function(d){this.app.C().livingRoomAppMode=oD("LIVING_ROOM_APP_MODE_UNSPECIFIED",d,zcn)};
  10673. g.Q.setEnablePrivacyFilter=function(d){this.app.C().enablePrivacyFilter=d===void 0?!1:d};
  10674. g.Q.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
  10675. g.Q.addUtcCueRange=function(d,q,T,Y,e){return sAX(this.app,d,q,T,Y,e)};
  10676. g.Q.pI=function(d){d=d===void 0?1:d;var q=this.mY(d);if(d=this.app.YP(d)){d=d.getVideoData();q.hasProgressBarBoundaries=d.hasProgressBarBoundaries();q.isPremiere=d.isPremiere;q.itct=d.aU;q.playerResponseCpn=d.playerResponseCpn;var T;var Y=d.hasProgressBarBoundaries()&&((T=d.progressBarStartPosition)==null?0:T.utcTimeMillis)?BZ(d.progressBarStartPosition.utcTimeMillis):null;q.progressBarStartPositionUtcTimeMillis=Y;var e;T=d.hasProgressBarBoundaries()&&((e=d.progressBarEndPosition)==null?0:e.utcTimeMillis)?
  10677. BZ(d.progressBarEndPosition.utcTimeMillis):null;q.progressBarEndPositionUtcTimeMillis=T;q.ypcOriginalItct=d.pr5;q.ypcPreview=d.ypcPreview;q.paidContentOverlayText=GbY(d);q.paidContentOverlayDurationMs=Loj(d);d.G&&LY(d.G)&&(q.usingLocalMedia="true");q.transitionEndpointAtEndOfStream=d.transitionEndpointAtEndOfStream}return q};
  10678. g.Q.getAdState=function(){return this.app.getAdState()};
  10679. g.Q.isNotServable=function(d){if(d!==this.app.JS.video_id)return!1;var q=(d=this.app.UM().getPlayerState())?d.eF:null;return!!(d&&q&&g.I(d,128)&&O0Y(q.errorCode)===5)};
  10680. g.Q.supportsGaplessAudio=function(){return this.app.C().supportsGaplessAudio()};
  10681. g.Q.supportsGaplessShorts=function(){return this.app.C().supportsGaplessShorts()};
  10682. g.Q.enqueueVideoByPlayerVars=function(d,q,T,Y){T=T===void 0?Infinity:T;this.app.enqueueVideoByPlayerVars(d,q,T,Y===void 0?"":Y)};
  10683. g.Q.clearQueue=function(){this.app.clearQueue()};
  10684. g.Q.u1=function(){return g.KV(this)};
  10685. g.Q.sendAbandonmentPing=function(){this.app.Lf().sendAbandonmentPing()};
  10686. g.Q.setAutonavState=function(d,q){q=q===void 0?!1:q;if(this.N("web_player_autonav_use_server_provided_state")&&!q&&(q=this.app.GX(),q==null?0:cr(q)))if(d===3)q.autonavState!==3&&(q.MJ=q.autonavState);else if(q.MJ!==void 0)d=q.MJ,q.MJ=void 0;else return;yvj(this.app,d)};
  10687. g.Q.setAutonav=function(d,q){this.setAutonavState(d?2:1,q===void 0?!1:q)};
  10688. g.Q.setLoopRange=function(d){this.app.setLoopRange(d)};
  10689. g.Q.getLoopRange=function(){return this.app.getLoopRange()};
  10690. g.Q.hasSupportedAudio51Tracks=function(){return this.app.UM().hasSupportedAudio51Tracks()};
  10691. g.Q.setUserAudio51Preference=function(d,q){this.app.UM().setUserAudio51Preference(d,q===void 0?!1:q)};
  10692. g.Q.getUserAudio51Preference=function(){return this.app.UM().getUserAudio51Preference()};
  10693. g.Q.setProximaLatencyPreference=function(d){this.app.UM().setProximaLatencyPreference(d)};
  10694. g.Q.getProximaLatencyPreference=function(){return this.app.UM().getProximaLatencyPreference()};
  10695. g.Q.isProximaLatencyEligible=function(){return this.app.UM().isProximaLatencyEligible()};
  10696. g.Q.getAppState=function(){return this.app.getAppState()};
  10697. g.Q.updateLastActiveTime=function(){yF()};
  10698. g.Q.setBlackout=function(d){this.app.setBlackout(d)};
  10699. g.Q.setUserEngagement=function(d){this.app.C().Yz!==d&&(this.app.C().Yz=d,this.app.UM().M2())};
  10700. g.Q.updateSubtitlesUserSettings=function(d,q){q=q===void 0?!0:q;g.La(this.app.M5()).jQ(d,q)};
  10701. g.Q.getCaptionWindowContainerId=function(){var d=g.La(this.app.M5());return d?d.getCaptionWindowContainerId():""};
  10702. g.Q.toggleSubtitlesOn=function(){var d=g.La(this.app.M5());d&&d.mu()};
  10703. g.Q.isSubtitlesOn=function(){var d=g.La(this.app.M5());return d?d.isSubtitlesOn():!1};
  10704. g.Q.getPlayerResponse=function(d){return(d=this.app.YP(d))?d.getVideoData().getPlayerResponse():null};
  10705. g.Q.U3=function(){return this.getPlayerResponse(1)};
  10706. g.Q.getEmbeddedPlayerResponse=function(){return this.app.UM().getVideoData().getEmbeddedPlayerResponse()};
  10707. g.Q.getWatchNextResponse=function(d){return(d=this.app.YP(d))?d.getVideoData().getWatchNextResponse():null};
  10708. g.Q.s3=function(){return this.getWatchNextResponse(1)};
  10709. g.Q.getHeartbeatResponse=function(d){return(d=this.app.YP(d))?d.getVideoData().getHeartbeatResponse():null};
  10710. g.Q.Vn=function(){return this.getHeartbeatResponse(1)};
  10711. g.Q.getStoryboardFrame=function(d,q){var T=this.app.TN();if(!T)return null;q=T.levels[q];return q?(d=g.$p(q,d))?{column:d.column,columns:d.columns,height:d.Xf,row:d.row,rows:d.rows,url:d.url,width:d.XE}:null:null};
  10712. g.Q.getStoryboardFrameIndex=function(d,q){var T=this.app.TN();if(!T)return-1;q=T.levels[q];if(!q)return-1;d-=this.mz();return q.i_(d)};
  10713. g.Q.getStoryboardLevel=function(d){var q=this.app.TN();return q?(q=q.levels[d])?{index:d,intervalMs:q.G,maxFrameIndex:q.wi(),minFrameIndex:q.HU()}:null:null};
  10714. g.Q.getNumberOfStoryboardLevels=function(){var d=this.app.TN();return d?d.levels.length:0};
  10715. g.Q.Li=function(){return this.getAudioTrack(1)};
  10716. g.Q.getAudioTrack=function(d){return(d=this.app.YP(d))?d.getAudioTrack():this.app.getVideoData().Pa};
  10717. g.Q.n9=function(){var d=this.app.YP();return d?d.n9():null};
  10718. g.Q.setAudioTrack=function(d,q,T){var Y=this.app.v3().Ig;Y&&Y.mG(d);return(T=this.app.YP(T))?T.mG(d,q):!1};
  10719. g.Q.NAx=function(d,q){return this.setAudioTrack(d,q,1)};
  10720. g.Q.x5=function(){return this.getAvailableAudioTracks(1)};
  10721. g.Q.getAvailableAudioTracks=function(d){return this.app.YP(d).getAvailableAudioTracks()};
  10722. g.Q.getMaxPlaybackQuality=function(){var d=this.app.UM();return d.getVideoData().U?tF(d.U9()):"unknown"};
  10723. g.Q.getUserPlaybackQualityPreference=function(){return this.app.UM().getUserPlaybackQualityPreference()};
  10724. g.Q.getSubtitlesUserSettings=function(){var d=g.La(this.app.M5());return d?d.ME():null};
  10725. g.Q.resetSubtitlesUserSettings=function(){g.La(this.app.M5()).IYF()};
  10726. g.Q.setMinimized=function(d){this.app.setMinimized(d)};
  10727. g.Q.setOverlayVisibility=function(d){this.publish("overlayvisibilitychange",d)};
  10728. g.Q.setInlinePreview=function(d){this.app.setInlinePreview(d)};
  10729. g.Q.setSqueezeback=function(d){this.app.setSqueezeback(d)};
  10730. g.Q.setGlobalCrop=function(d){this.app.OD().setGlobalCrop(d)};
  10731. g.Q.setAppFullscreen=function(d){this.app.Cp(d?4:0)};
  10732. g.Q.Jp=function(){return this.app.Jp()};
  10733. g.Q.getVisibilityState=function(){return this.Jp().getVisibilityState(this.pA(),this.hW()||g.Um(this.app.C()),this.isMinimized(),this.isInline(),this.app.Kx(),this.app.YM(),this.app.vE(),this.app.E6())};
  10734. g.Q.isMutedByMutedAutoplay=function(){return this.app.BE};
  10735. g.Q.isMutedByEmbedsMutedAutoplay=function(){return GJ(this.app)};
  10736. g.Q.setInternalSize=function(d,q){this.app.OD().setInternalSize(new g.zP(d,q))};
  10737. g.Q.mz=function(d){return(d=this.app.YP(d))?d.mz():0};
  10738. g.Q.isMinimized=function(){return this.app.isMinimized()};
  10739. g.Q.Kx=function(){return this.app.Kx()};
  10740. g.Q.pA=function(){return this.app.Lf().pA()};
  10741. g.Q.setSafetyMode=function(d){this.app.C().enableSafetyMode=d};
  10742. g.Q.canPlayType=function(d){return this.app.canPlayType(d)};
  10743. g.Q.updatePlaylist=function(d){if(d){var q=this.getPlaylistId(),T=!1;q&&q!==d.list&&(T=!0);d.external_list!==void 0&&(this.app.H3=vL(!1,d.external_list));var Y=d.video;(q=this.app.getPlaylist())&&!T?this.isFullscreen()&&((T=Y[q.index])&&T.encrypted_id!==g.pa(q).videoId||(d.index=q.index)):nl(this.app,{list:d.list,index:d.index,playlist_length:Y.length});ZlY(this.app.getPlaylist(),d);this.US("onPlaylistUpdate")}else this.app.updatePlaylist()};
  10744. g.Q.updateVideoData=function(d,q){g.QM(this.app.UM().getVideoData(),d,q)};
  10745. g.Q.updateEnvironmentData=function(d){FW(this.app.C(),d,!1)};
  10746. g.Q.ezD=function(d){this.app.sendVideoStatsEngageEvent(d,1)};
  10747. g.Q.productsInVideoVisibilityUpdated=function(d){this.publish("changeProductsInVideoVisibility",d)};
  10748. g.Q.isAtLiveHead=function(d,q){return this.app.isAtLiveHead(d,q===void 0?!0:q)};
  10749. g.Q.getVideoAspectRatio=function(){return this.app.OD().getVideoAspectRatio()};
  10750. g.Q.getPreferredQuality=function(){return this.app.Lf().getPreferredQuality()};
  10751. g.Q.getPlaybackQualityLabel=function(d){if(d=this.app.YP(d)){var q,T;return((T=(q=d.getVideoData().U)==null?void 0:q.video)==null?void 0:T.qualityLabel)||""}return""};
  10752. g.Q.setPlaybackQualityRange=function(d,q,T,Y){(Y=this.app.YP(Y))&&Y.KD(g.ZW(d,q||d,!0,"m"),!0,T)};
  10753. g.Q.Wjv=function(d,q,T){this.setPlaybackQualityRange(d,q,T,1)};
  10754. g.Q.onAdUxClicked=function(d,q){this.publish("aduxclicked",d,q)};
  10755. g.Q.showAirplayPicker=function(){this.app.showAirplayPicker()};
  10756. g.Q.dispatchReduxAction=function(d){g.Aw.dispatch(d)};
  10757. g.Q.highlightSettingsMenuItem=function(d){this.publish("highlightSettingsMenu",d)};
  10758. g.Q.openSettingsMenuItem=function(d){this.publish("openSettingsMenuItem",d)};
  10759. g.Q.Of=function(d,q){this.state.U.subscribe(d,q)};
  10760. g.Q.izZ=function(d,q){this.state.U.unsubscribe(d,q)};
  10761. g.Q.nQ=function(d,q){this.cueVideoByPlayerVars(d,q===void 0?1:q)};
  10762. g.Q.Do=function(d,q,T,Y){this.loadVideoByPlayerVars(d,q,T===void 0?1:T,Y)};
  10763. g.Q.WMv=function(d,q,T,Y){this.preloadVideoByPlayerVars(d,q===void 0?1:q,T,Y)};
  10764. g.Q.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
  10765. g.Q.rU=function(){return g.KV(this).rU()};
  10766. g.Q.Rl=function(){return g.KV(this).Rl()};
  10767. g.Q.qO=function(){return g.KV(this).qO()};
  10768. g.Q.nH=function(){return this.u1().nH()};
  10769. g.Q.Jo=function(){var d=g.CN.apply(0,arguments),q;(q=this.nH()).Jo.apply(q,g.RQ(d))};
  10770. g.Q.U$=function(){this.nH().U$()};
  10771. g.Q.La=function(){this.nH().La()};
  10772. g.Q.QS=function(){this.nH().hide()};
  10773. g.Q.MS=function(d,q,T,Y,e,U,b,J){this.nH().MS(d,q,T,Y,e,U,b,J)};
  10774. g.Q.lK=function(d,q){this.nH().lK(d,q)};
  10775. g.Q.KZ=function(d,q,T,Y,e){this.u1().KZ(d,q,T,Y,e)};
  10776. g.Q.VV=function(d){this.nH().setEnabled(d)};
  10777. g.Q.j_=function(d,q){this.u1().j_(d,q)};
  10778. g.Q.V8=function(d,q){this.u1().V8(d,q)};
  10779. g.Q.X4=function(d,q){this.u1().X4(d,q)};
  10780. g.Q.LW=function(){this.u1().LW()};
  10781. g.Q.n_=function(d,q){this.u1().n_(d,q)};
  10782. g.Q.RV=dI(4);g.Q.renderChapterSeekingAnimation=function(d,q,T){this.u1().renderChapterSeekingAnimation(d,q,T)};
  10783. g.Q.RI=function(){this.u1().RI()};
  10784. g.Q.getWebPlayerContextConfig=function(){return this.app.C().getWebPlayerContextConfig()};
  10785. g.Q.notifyShortsAdSwipeEvent=function(){this.publish("shortsadswipe")};
  10786. g.Q.gK=function(){return this.app.Lf().gK()};
  10787. g.Q.A0=function(d,q,T){T=T===void 0?!1:T;var Y;(Y=this.u1())==null||Y.A0(d,q,T)};g.M(g.fV,g.CV);g.Q=g.fV.prototype;g.Q.tC=function(d,q,T,Y,e,U,b){return this.app.tC(d,q,T,Y,e,U,b)};
  10788. g.Q.yN=function(){return this.app.yN()};
  10789. g.Q.qI=dI(6);g.Q.M5=function(){return this.app.M5()};
  10790. g.Q.yX=function(){var d=this.M5().OS.get("endscreen");return!!d&&d.yX()};
  10791. g.Q.getRootNode=function(){return this.OD().element};
  10792. g.Q.C=function(){return this.app.C()};
  10793. g.Q.x6=dI(10);g.Q.S0=function(d){return this.app.S0(d)};
  10794. g.Q.dB=function(){var d;return((d=g.KV(this))==null?void 0:d.dB())||null};
  10795. g.Q.K9=function(){return this.app.Lf().K9()};
  10796. g.Q.getPlayerStateObject=function(d){return this.app.getPlayerStateObject(d)};
  10797. g.Q.OD=function(){return this.app.OD()};
  10798. g.Q.getPlaylist=function(){return this.app.getPlaylist()};
  10799. g.Q.getVideoData=function(d,q){q=q===void 0?!1:q;var T=this.app.YP(d);if(!T)return null;T=T.getVideoData();if(q)var Y=T;else T.enableServerStitchedDai&&d===2?(q=this.app,d=q.gs?((Y=q.MC.T)==null?void 0:Y.getVideoData())||q.getVideoData():q.getVideoData()):d=T,Y=d;return Y};
  10800. g.Q.Av=function(){return this.app.Lf().Av()};
  10801. g.Q.TN=function(d){return this.app.TN(d)};
  10802. g.Q.E6=function(){return this.app.E6()};
  10803. g.Q.isHdr=function(){return this.app.Lf().isHdr()};
  10804. g.Q.oT=function(){return this.app.oT()};
  10805. g.Q.isEmbedsShortsMode=function(){var d=g.KV(this),q=this.getVideoData();d=d?d.dE:this.getPlayerSize();var T=!!this.getPlaylist();return!(!q||!q.isEmbedsShortsMode(new g.zP(d.width,d.height),T))};
  10806. g.Q.ri=function(d,q){this.app.ri(d,1,q)};
  10807. g.Q.o6=function(d,q,T,Y,e){this.app.Kj(d,q,T,Y,e)};
  10808. g.Q.P9=dI(14);g.Q.playVideo=function(d,q){try{var T=this.app.v3().Ig;if(T){T.playVideo();return}if(!d&&this.getPresentingPlayerType()===2){var Y=Wc(this.app.M5());if(Y&&TLI(Y))return}}catch(e){g.Zz(e)}this.app.playVideo(d,q)};
  10809. g.Q.stopVideo=function(d){this.app.YP(d).stopVideo()};
  10810. g.Q.Zp=function(d){this.app.YP(d).Zp()};
  10811. g.Q.addEventListener=function(d,q){this.state.j.subscribe(d,q)};
  10812. g.Q.removeEventListener=function(d,q){this.state.j.unsubscribe(d,q)};
  10813. g.Q.r0=function(d){this.app.r0(d)};
  10814. g.Q.setPlaybackQuality=function(d,q){this.setPlaybackQualityRange(d,d,q)};
  10815. g.Q.N4=function(){var d={},q=this.app.Lf().N4();q=g.E(q);for(var T=q.next();!T.done;T=q.next())T=T.value,d[T.quality]=T;return d};
  10816. g.Q.SE=function(){return this.app.Lf().SE()};
  10817. g.Q.UZ=dI(18);g.Q.Eh=function(d){this.app.Eh(d);d&&yvj(this.app,d)};
  10818. g.Q.getVideoUrl=function(d,q,T,Y){var e=this.getPresentingPlayerType(),U=e===2;if(Y&&U||e===3)U=!1,e=1;Y=this.getVideoData(e);if(!Y)return"";var b;d||Y.isLivePlayback||(b=Math.floor(this.getCurrentTime(e)));d=U?void 0:this.getPlaylistId()||void 0;q&&d==="WL"&&(d=void 0);return this.app.getVideoUrl(Y.videoId,d,b,q,T)};
  10819. g.Q.HS=dI(20);g.Q.Gz=dI(26);g.Q.WR=function(d){this.app.Lf().WR(d)};
  10820. g.Q.xL=dI(32);g.Q.Ak=dI(38);g.Q.eg=function(d,q){this.M5().eg(d,q)};
  10821. g.Q.Tv=function(){var d=g.Df(this.M5());return!!d&&d.Tv()};
  10822. g.Q.D7=function(){var d=g.Df(this.M5());return!!d&&d.D7()};
  10823. g.Q.H6=function(d,q,T){var Y=g.Df(this.M5());Y&&Y.H6(d,q,T)};
  10824. g.Q.sJ=dI(39);g.Q.kG=function(){this.app.Lf().bX()};
  10825. g.Q.C0=function(d){this.US("onVideoAreaChange");this.US(d?"onShowControls":"onHideControls")};
  10826. g.Q.Xb=function(d,q){var T=g.KV(this);if(T)return T.Xb(d,q);d=this.app.OD().yS();return new g.WB(0,0,d.width,d.height)};
  10827. g.Q.C1=function(){var d=this.M5().OS.get("heartbeat");return!!d&&d.C1()};
  10828. g.Q.Oc=function(){var d=this.C();if(d.RU||d.disableSeek)return!1;var q=this.app.Lf(),T=q.getVideoData();if(!T.LH()||g.vr(T)||this.getPresentingPlayerType()===2&&!this.app.ZY()||T.y5()&&this.getPresentingPlayerType(!0)===2||q.S8()&&this.getPresentingPlayerType()!==3)return!1;d=g.sm(d);return g.eX(d)&&!T.Qs||GJ(this.app)?!1:!0};
  10829. g.Q.X7=function(){return this.app.Lf().g_()};
  10830. g.Q.isLifaAdPlaying=function(){var d,q=(d=this.getVideoData())==null?void 0:d.y5();return q?this.getPresentingPlayerType(q)===2:!1};
  10831. g.Q.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
  10832. g.Q.Yp=function(){this.app.Lf().Yp()};
  10833. g.Q.sendVideoStatsEngageEvent=function(d,q,T){this.app.sendVideoStatsEngageEvent(d,T,q)};
  10834. g.Q.ES=function(d,q,T){this.app.Td(d,q,T)};
  10835. g.Q.cR=function(d,q){this.app.TD(d,q)};
  10836. g.Q.hm=function(d,q){ki(this.app,d,q)};
  10837. g.Q.Qj=dI(43);g.Q.lT=function(d){return this.app.lT(d)};
  10838. g.Q.Lz=function(d,q){var T;(T=this.app.YP(q))==null||T.Lz(d)};
  10839. g.Q.S8=function(){var d=this.app.YP();return d?d.S8():!0};
  10840. g.Q.xk=function(){var d=this.getVideoData();return!!d&&(d.xk()||!!d.hlsFormats||!!d.Ln)};
  10841. g.Q.getPlaybackRate=function(){return this.app.UM().getPlaybackRate()};
  10842. g.Q.setPlaybackRate=function(d,q){this.app.setPlaybackRate(d,q)};
  10843. g.Q.WG=function(){return this.app.WG()};
  10844. g.Q.GN=function(){return this.app.GN()};
  10845. g.Q.iS=function(d){return this.app.iS(d)};
  10846. g.Q.createClientVe=function(d,q,T,Y){this.C().xx&&this.app.KW.createClientVe(d,q,T,Y===void 0?!1:Y)};
  10847. g.Q.createServerVe=function(d,q,T){this.C().xx&&this.app.KW.createServerVe(d,q,T===void 0?!1:T)};
  10848. g.Q.setTrackingParams=function(d,q){this.C().xx&&this.app.KW.setTrackingParams(d,q)};
  10849. g.Q.logClick=function(d,q){this.C().xx&&(this.app.KW.click(d,q),this.publish("veClickLogged",d))};
  10850. g.Q.logVisibility=function(d,q,T){this.C().xx&&this.app.KW.OM(d,q,T)};
  10851. g.Q.hasVe=function(d){return this.C().xx?this.app.KW.hasVe(d):!1};
  10852. g.Q.destroyVe=function(d){this.C().xx&&this.app.KW.destroyVe(d)};
  10853. g.Q.getPresentingPlayerType=function(d){return this.app.getPresentingPlayerType(d)};
  10854. g.Q.xI=function(){this.app.xI()};
  10855. g.Q.Lk=dI(45);g.Q.Vj=function(d){this.app.Vj(d)};
  10856. g.Q.NG=function(){this.app.NG()};
  10857. g.Q.addPlayerResponseForAssociation=function(){};
  10858. g.Q.finishSegmentByCpn=function(d,q,T){return this.app.finishSegmentByCpn(d,q,T)};
  10859. g.Q.Iv=function(d,q,T,Y,e,U,b,J){return this.app.Iv(d,q,T,Y,e,U,b,J)};
  10860. g.Q.gm=function(d,q,T,Y,e,U,b,J){this.app.gm(d,q,T,Y,e,U,b,J)};
  10861. g.Q.eA=function(){return this.app.eA()};
  10862. g.Q.uI=function(d){this.app.uI(d)};
  10863. g.Q.tI=function(d,q){q=q===void 0?Infinity:q;this.app.tI(d===void 0?-1:d,q)};
  10864. g.Q.SO=function(d){var q;(q=g.La(this.M5()))==null||q.SO(d)};
  10865. g.Q.Jh=function(d,q,T){this.app.Jh(d,q,T)};
  10866. g.Q.Jt=function(){return this.app.Jt()};
  10867. g.Q.sH=function(d,q,T){this.app.sH(d,q,T===void 0?0:T)};
  10868. g.Q.MN=function(){return this.app.MN()};
  10869. g.Q.ZY=function(){return this.app.ZY()};
  10870. g.Q.ym=function(d,q,T){return this.app.ym(d,q,T)};
  10871. g.Q.oU=function(d,q,T,Y){T=T===void 0?!1:T;var e;(e=this.app.YP(Y))==null||e.oU(d,q,T)};
  10872. g.Q.B5=function(d,q){this.publish("aduxmouseover",d,q)};
  10873. g.Q.W5=function(d,q){this.publish("aduxmouseout",d,q)};
  10874. g.Q.YC=function(d,q){this.publish("muteadaccepted",d,q)};
  10875. g.Q.uB=function(){return this.app.OD().uB()};
  10876. g.Q.Kt=function(d){this.app.OD().Kt(d)};
  10877. g.Q.oF=function(d){return d?this.app.fN():this.app.Lf().oF()};
  10878. g.Q.L_=function(d){this.app.L_(d)};
  10879. g.Q.Ql=function(){this.app.Lf().Ql()};
  10880. g.Q.VM=function(){this.app.VM()};
  10881. g.Q.getGetAdBreakContext=function(){var d=this.app.UM();return d.getVideoData().getGetAdBreakContext(d.getCurrentTime(),d.mz())};
  10882. g.Q.Nd=function(d,q){this.app.Lf().Nd(d,q)};
  10883. g.Q.HE=function(){return this.app.Lf().HE()};
  10884. g.Q.CD=dI(47);g.Q.X_=dI(49);g.Q.Rf=function(d){var q;return((q=this.app.YP(d))==null?void 0:q.Rf())||0};var qf;g.M(dR,tB);dR.prototype.Tf=function(d,q){d=tB.prototype.Tf.call(this,d,q);return Object.assign({},d,this.requestHeaders)};g.M(g.Uc,g.W);g.Q=g.Uc.prototype;g.Q.ir=function(){this.NR();g.W.prototype.ir.call(this)};
  10885. g.Q.NR=function(){this.G2.dispose()};
  10886. g.Q.addCueRange=function(d){this.G2.addCueRange(d)};
  10887. g.Q.Td=function(d,q){this.G2.Td(d,q)};
  10888. g.Q.vC=function(){this.G2.vC()};
  10889. g.Q.y4=function(){return this.G2.y4()};
  10890. g.Q.h7=function(d){return this.G2===d};
  10891. g.Q.bX=function(){this.G2.kG()};
  10892. g.Q.pB=function(d,q){this.G2.pB(d,q)};
  10893. g.Q.uX=function(d,q){return this.G2.uX(d,q)};
  10894. g.Q.e_=function(d){this.G2.e_(d)};
  10895. g.Q.getAudioTrack=function(){return this.G2.getAudioTrack()};
  10896. g.Q.n9=function(){return this.G2.n9()};
  10897. g.Q.getAvailableAudioTracks=function(){return this.G2.getAvailableAudioTracks()};
  10898. g.Q.N4=function(){return this.G2.N4()};
  10899. g.Q.SE=function(){return this.G2.SE()};
  10900. g.Q.aQ=function(){return this.getVideoData().clientPlaybackNonce};
  10901. g.Q.lw=function(){return this.G2.lw()};
  10902. g.Q.F4=function(){return this.G2.F4()};
  10903. g.Q.tE=function(){return this.G2.tE()};
  10904. g.Q.getCurrentTime=function(){return this.G2.getCurrentTime()};
  10905. g.Q.D6=function(){return this.G2.D6()};
  10906. g.Q.Ko=function(){return this.G2.Ko()};
  10907. g.Q.BF=function(d){return this.G2.BF(d)};
  10908. g.Q.getDuration=function(d){return this.G2.getDuration(d)};
  10909. g.Q.d4=function(){return this.G2.d4()};
  10910. g.Q.fH=function(){return this.G2.fH()};
  10911. g.Q.g_=function(){return this.G2.g_()};
  10912. g.Q.Jt=function(){return this.G2.Jt()};
  10913. g.Q.sP=function(){return this.G2.sP()};
  10914. g.Q.x6=dI(9);g.Q.Rf=function(){return this.G2.Rf()};
  10915. g.Q.AC=function(){return this.G2.AC()};
  10916. g.Q.Jq=function(d){return this.G2.Jq(d)};
  10917. g.Q.WG=function(){return this.G2.WG()};
  10918. g.Q.Eg=function(){return this.G2.Eg()};
  10919. g.Q.BG=function(){return this.G2.BG()};
  10920. g.Q.g3=function(){return this.G2.g3()};
  10921. g.Q.U6=function(d,q,T){return this.G2.U6(d,q,T)};
  10922. g.Q.UZ=dI(17);g.Q.getPlaybackQuality=function(){return this.G2.getPlaybackQuality()};
  10923. g.Q.getPlaybackRate=function(){return this.G2.getPlaybackRate()};
  10924. g.Q.getPlayerState=function(){return this.G2.getPlayerState()};
  10925. g.Q.getPlayerType=function(){return this.G2.getPlayerType()};
  10926. g.Q.getPlaylistSequenceForTime=function(d){return this.G2.getPlaylistSequenceForTime(d)};
  10927. g.Q.iS=function(d){return this.G2.iS(d)};
  10928. g.Q.gK=function(){return this.G2.gK()};
  10929. g.Q.getPreferredQuality=function(){return this.G2.getPreferredQuality()};
  10930. g.Q.NI=function(){return this.G2.NI()};
  10931. g.Q.getProximaLatencyPreference=function(){return this.G2.getProximaLatencyPreference()};
  10932. g.Q.U9=function(){return this.G2.U9()};
  10933. g.Q.TN=function(){return this.getVideoData().TN()};
  10934. g.Q.getStoryboardFormat=function(){return this.getVideoData().getStoryboardFormat()};
  10935. g.Q.getStreamTimeOffset=function(){return this.G2.getStreamTimeOffset()};
  10936. g.Q.il=function(){return this.G2.il()};
  10937. g.Q.mz=function(){return this.G2.mz()};
  10938. g.Q.K9=function(){return this.G2.K9()};
  10939. g.Q.getUserAudio51Preference=function(){return this.G2.getUserAudio51Preference()};
  10940. g.Q.getUserPlaybackQualityPreference=function(){return this.G2.getUserPlaybackQualityPreference()};
  10941. g.Q.getVideoData=function(){return this.G2.getVideoData()};
  10942. g.Q.Av=function(){return this.G2.Av()};
  10943. g.Q.Sh=function(){return this.G2.Sh()};
  10944. g.Q.getVideoLoadedFraction=function(){if(g.y2(this.getVideoData()))return 1;var d=this.G2.WG();return d?d.mE():0};
  10945. g.Q.I_=function(){return this.G2};
  10946. g.Q.g9=function(d){this.G2.g9(d)};
  10947. g.Q.handleError=function(d){this.G2.handleError(d)};
  10948. g.Q.Lb=function(d){this.G2.Lb(d)};
  10949. g.Q.rE=function(d){this.G2.rE(d)};
  10950. g.Q.Qj=dI(42);g.Q.S8=function(){return this.G2.S8()};
  10951. g.Q.hasSupportedAudio51Tracks=function(){return this.G2.hasSupportedAudio51Tracks()};
  10952. g.Q.k6=function(){return this.G2.k6()};
  10953. g.Q.pA=function(){return this.G2.pA()};
  10954. g.Q.isAtLiveHead=function(d,q){return this.G2.isAtLiveHead(d,q)};
  10955. g.Q.Kb=function(){return this.G2.Kb()};
  10956. g.Q.isGapless=function(){return this.G2.isGapless()};
  10957. g.Q.isHdr=function(){return this.G2.isHdr()};
  10958. g.Q.Kl=function(){return this.G2.Kl()};
  10959. g.Q.kD=function(){return this.G2.kD()};
  10960. g.Q.HE=function(){return this.G2.HE()};
  10961. g.Q.isProximaLatencyEligible=function(){return this.G2.isProximaLatencyEligible()};
  10962. g.Q.MN=function(){return this.G2.MN()};
  10963. g.Q.JO=function(d){var q;return!((q=this.G2.loader)==null||!q.JO(d))};
  10964. g.Q.jI=function(){return this.G2.jI()};
  10965. g.Q.V_=function(){this.G2.V_()};
  10966. g.Q.sO=function(d){this.G2.sO(d)};
  10967. g.Q.sU=function(){this.G2.sU()};
  10968. g.Q.h3=function(){this.G2.h3()};
  10969. g.Q.eR=function(){this.G2.eR()};
  10970. g.Q.SB=function(){this.G2.SB()};
  10971. g.Q.EU=function(d){this.G2.EU(d)};
  10972. g.Q.xz=dI(54);g.Q.Gz=dI(25);g.Q.Be=function(){this.G2.Be()};
  10973. g.Q.pauseVideo=function(d){this.G2.pauseVideo(d)};
  10974. g.Q.prefetchKeyPlay=function(d,q){this.G2.prefetchKeyPlay(d,q)};
  10975. g.Q.XG=function(d){this.G2.XG(d)};
  10976. g.Q.v6=function(d){this.G2.v6(d)};
  10977. g.Q.playVideo=function(d,q){return this.G2.playVideo(d,q)};
  10978. g.Q.Xi=function(d,q,T,Y,e){this.G2.Xi(d,q,T,Y,e)};
  10979. g.Q.xL=dI(31);g.Q.Ak=dI(37);g.Q.a$=function(d,q,T,Y,e){this.G2.a$(d,q,T,Y,e)};
  10980. g.Q.oU=function(d,q,T){this.G2.oU(d,q,T)};
  10981. g.Q.WR=function(d){this.G2.WR(d)};
  10982. g.Q.Nd=function(d,q){this.G2.X9.Nd(d,q)};
  10983. g.Q.Ly=function(d,q,T){this.G2.Ly(d,q,T)};
  10984. g.Q.jT=function(d){this.G2.jT(d)};
  10985. g.Q.uH=function(d){this.G2.uH(d)};
  10986. g.Q.dn=function(d,q){this.G2.dn(d,q)};
  10987. g.Q.JP=function(d,q,T,Y,e,U,b,J){this.G2.JP(d,q,T,Y,e,U,b,J)};
  10988. g.Q.lM=function(){Raj(this.G2.X9)};
  10989. g.Q.J2=function(d){this.G2.J2(d)};
  10990. g.Q.Zp=function(d,q){this.G2.Zp(d,q)};
  10991. g.Q.removeCueRange=function(d){this.G2.removeCueRange(d)};
  10992. g.Q.TD=function(d){this.G2.TD(d)};
  10993. g.Q.hm=function(d){return this.G2.Mp.hm(d)};
  10994. g.Q.B$=function(d){this.G2.B$(d)};
  10995. g.Q.Hf=function(d,q,T){this.G2.Hf(d,q,T)};
  10996. g.Q.zW=function(){this.G2.zW()};
  10997. g.Q.zm=function(){this.G2.Mp.reset()};
  10998. g.Q.L0=function(){this.G2.L0()};
  10999. g.Q.mN=function(d,q,T){this.G2.mN(d,q,T)};
  11000. g.Q.seekTo=function(d,q){this.G2.seekTo(d,q)};
  11001. g.Q.sendAbandonmentPing=function(){this.G2.sendAbandonmentPing()};
  11002. g.Q.sendVideoStatsEngageEvent=function(d,q){this.G2.sendVideoStatsEngageEvent(d,q)};
  11003. g.Q.Wx=function(d,q,T){this.G2.Wx(d,q,T)};
  11004. g.Q.setLoop=function(d){this.G2.setLoop(d)};
  11005. g.Q.kK=function(){this.G2.kK()};
  11006. g.Q.setMediaElement=function(d){this.G2.setMediaElement(d)};
  11007. g.Q.uY=function(d,q,T,Y){this.G2.uY(d,q,T,Y)};
  11008. g.Q.setPlaybackRate=function(d){this.G2.setPlaybackRate(d)};
  11009. g.Q.o6=function(d,q,T,Y,e,U){this.G2.o6(d,q,T,Y,e,U)};
  11010. g.Q.Z1=function(d,q){this.G2.Z1(d,q)};
  11011. g.Q.Lz=function(d){this.G2.Lz(d)};
  11012. g.Q.setProximaLatencyPreference=function(d){this.G2.setProximaLatencyPreference(d)};
  11013. g.Q.xG=function(d,q,T){this.G2.xG(d,q,T)};
  11014. g.Q.Sb=function(){this.G2.Sb()};
  11015. g.Q.Go=function(d){this.G2.Go(d)};
  11016. g.Q.setUserAudio51Preference=function(d,q){this.G2.setUserAudio51Preference(d,q)};
  11017. g.Q.KD=function(d,q,T){this.G2.KD(d,q,T)};
  11018. g.Q.Tz=function(){return this.G2.Tz()};
  11019. g.Q.Yp=function(){this.G2.Yp()};
  11020. g.Q.oF=function(){return this.G2.oF()};
  11021. g.Q.Z8=function(d){this.G2.Z8(d)};
  11022. g.Q.n5=function(){this.G2.n5()};
  11023. g.Q.Nn=function(d){this.G2.Nn(d)};
  11024. g.Q.stopVideo=function(){this.G2.stopVideo()};
  11025. g.Q.subscribe=function(d,q,T){return this.G2.subscribe(d,q,T)};
  11026. g.Q.Ts=function(d,q){this.G2.Ts(d,q)};
  11027. g.Q.togglePictureInPicture=function(){this.G2.togglePictureInPicture()};
  11028. g.Q.lT=function(d){return this.G2.Mp.lT(d)};
  11029. g.Q.unsubscribe=function(d,q,T){return this.G2.unsubscribe(d,q,T)};
  11030. g.Q.jC=function(d,q){this.G2.jC(d,q)};
  11031. g.Q.mG=function(d,q){return this.G2.mG(d,q)};
  11032. g.Q.M2=function(){this.G2.M2()};
  11033. g.Q.eO=function(d){this.G2.eO(d)};
  11034. g.Q.Ql=function(){this.G2.Ql()};g.M(g.bi,g.Ji);g.Q=g.bi.prototype;g.Q.show=function(){var d=this.vR();g.Ji.prototype.show.call(this);this.yv&&(this.B.W(window,"blur",this.bF),this.B.W(Xp(this),"click",this.zj));d||this.publish("show",!0)};
  11035. g.Q.hide=function(){var d=this.vR();g.Ji.prototype.hide.call(this);GD7(this);d&&this.publish("show",!1)};
  11036. g.Q.St=function(d,q){this.U=d;this.fade.show();q?(this.K||(this.K=this.B.W(this.J,"appresize",this.du)),this.du()):this.K&&(this.B.t1(this.K),this.K=void 0)};
  11037. g.Q.w7=function(){this.U&&this.element&&(this.U.getAttribute("aria-haspopup"),this.U.setAttribute("aria-expanded","true"),this.focus())};
  11038. g.Q.du=function(){var d=g.KV(this.J);this.U&&d.KZ(this.element,this.U)};
  11039. g.Q.bF=function(){var d=this.vR();GD7(this);this.fade.hide();d&&this.publish("show",!1)};
  11040. g.Q.zj=function(d){var q=Qi(d);q&&(g.HB(this.element,q)||this.U&&g.HB(this.U,q)||!g.cG(d))||this.bF()};
  11041. g.Q.vR=function(){return this.PF&&this.fade.state!==4};g.M(sc,g.bi);sc.prototype.St=function(){g.bi.prototype.St.call(this);this.dialog.focus()};g.M(g.gR,g.Ji);g.gR.prototype.setIcon=function(d){this.updateValue("icon",d)};
  11042. g.gR.prototype.updateValue=function(d,q){g.Ji.prototype.updateValue.call(this,d,q);this.publish("size-change")};g.rR={yd:17,dX:16,Itk:15,cov:14,zQ:13,X2:12,nG:11,xJ:10,qo:9,AUDIO:8,SUBTITLES:7,eW:6,SLEEP_TIMER:5,uf:4,ao:3,Ca5:2,REMOTE:1,c02:0,17:"LOOP",16:"STABLE_VOLUME",15:"REMOTE_SELECT",14:"SIZE",13:"MINIPLAYER",12:"THREED",11:"AUTONAV",10:"CINEMATIC",9:"ANNOTATIONS",8:"AUDIO",7:"SUBTITLES",6:"VOICE_BOOST",5:"SLEEP_TIMER",4:"SPEED",3:"QUALITY",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"};g.M(Nf,g.gR);Nf.prototype.N5=function(d){this.U&&this.J.logVisibility(this.element,this.G&&d)};
  11043. Nf.prototype.T=function(){var d,q,T=(d=this.J.getVideoData())==null?void 0:(q=d.accountLinkingConfig)==null?void 0:q.linked;if(T&&!this.G){var Y;d=(Y=this.J.getVideoData())==null?void 0:Y.accountLinkingConfig;this.setIcon(Hk());var e;g.$T(this,Rz(d==null?void 0:(e=d.menuData)==null?void 0:e.connectedMenuLabel));var U,b,J;this.j=new sc(this.J,Rz(d==null?void 0:(U=d.menuData)==null?void 0:U.connectedDialogTitle),Rz(d==null?void 0:(b=d.menuData)==null?void 0:b.connectedDialogMessage),Rz(d==null?void 0:
  11044. (J=d.menuData)==null?void 0:J.confirmButtonText));g.C(this,this.j);var F;Y=(d==null?void 0:(F=d.menuData)==null?void 0:F.trackingParams)||null;(this.U=!!Y)&&this.J.setTrackingParams(this.element,Y);this.TG.rk(this);this.G=!0}else!T&&this.G&&(this.TG.e$(this),this.G=!1)};
  11045. Nf.prototype.onClick=function(){this.U&&this.J.logClick(this.element);this.TG.bF();this.j&&this.j.St()};g.M(xT,g.W);xT.prototype.N=function(d){return this.api.N(d)};g.M(yD,xT);yD.prototype.onVideoDataChange=function(d){if(!d.accountLinkingConfig){var q,T=(q=d.getPlayerResponse())==null?void 0:q.accountLinkingConfig;d.accountLinkingConfig=T}var Y;if(q=(Y=d.accountLinkingConfig)==null?void 0:Y.alsParam)d.Th=q};
  11046. yD.prototype.setAccountLinkState=function(d){this.api.getVideoData().Th=d;this.api.kG()};
  11047. yD.prototype.updateAccountLinkingConfig=function(d){var q=this.api.getVideoData(),T=q.accountLinkingConfig;T&&(T.linked=d);this.api.publish("videodatachange","dataupdated",q,this.api.getPresentingPlayerType())};g.M(Hs,xT);
  11048. Hs.prototype.U=function(d){var q=d.getId(),T=this.api.getVideoData(1),Y=!this.api.isInline();if(!T.inlineMetricEnabled||Y){if(q==="part2viewed"){if(T.Al&&g.rM(T.Al),T.uK&&QD(this,T.uK),T.OW)for(var e={CPN:this.api.getVideoData().clientPlaybackNonce},U=g.E(T.OW),b=U.next();!b.done;b=U.next())QD(this,g.a1(b.value,e))}else q==="engagedview"&&T.dZ&&(e={CPN:this.api.getVideoData().clientPlaybackNonce},g.rM(g.a1(T.dZ,e)));T.gL&&(e=T.gL,U=d.getId(),e=VH(e,{label:U}),g.rM(e));switch(q){case "videoplaytime25":T.Qk&&QD(this,
  11049. T.Qk);T.Ah&&Mf(this,T.Ah);T.c7&&g.rM(T.c7);break;case "videoplaytime50":T.Ni&&QD(this,T.Ni);T.g5&&Mf(this,T.g5);T.CE&&g.rM(T.CE);break;case "videoplaytime75":T.DS&&QD(this,T.DS);T.PD&&Mf(this,T.PD);T.VQ&&g.rM(T.VQ);break;case "videoplaytime100":T.yk&&QD(this,T.yk),T.xN&&Mf(this,T.xN),T.OB&&g.rM(T.OB)}(e=this.api.getVideoData().aZ)&&Cq1(this,e,d.getId())&&Cq1(this,e,d.getId()+"gaia")}if(T.inlineMetricEnabled&&!Y)switch(q){case "videoplaybackstart":var J,F=(J=T.Gw)==null?void 0:J.G;F&&QD(this,F);break;
  11050. case "videoplayback2s":(J=(F=T.Gw)==null?void 0:F.j)&&QD(this,J);break;case "videoplayback10s":var N;(J=(N=T.Gw)==null?void 0:N.U)&&QD(this,J)}this.api.cR([d],1)};g.M(D7H,xT);g.M(cs,xT);cs.prototype.getUserAudioQualitySetting=function(){return this.mw};
  11051. cs.prototype.setUserAudioQualitySetting=function(d){this.api.oU("aqs_set",{setting:d});g.pW("yt-player-audio-quality-setting",d);d!==this.mw&&(this.mw=d,this.updateEnvironmentData())};
  11052. cs.prototype.hasHqaAudioTrack=function(){var d,q,T=(d=this.api.getVideoData())==null?void 0:(q=d.j)==null?void 0:q.G;return T?D7(T,function(Y){var e;return((e=Y.audio)==null?void 0:e.audioQuality)==="AUDIO_QUALITY_HIGH"}):!1};
  11053. cs.prototype.updateEnvironmentData=function(){this.api.C().mw=this.mw};g.M(Ec,g.f);g.Q=Ec.prototype;
  11054. g.Q.FB=function(){var d;if(d=this.J.getPresentingPlayerType()!==3&&g.V2(this.J)&&this.J.OD().getPlayerSize().width>=400)if(d=this.GX(),this.J.C().N("client_respect_autoplay_switch_button_renderer"))d=!!d.autoplaySwitchButtonRenderer;else{var q,T,Y,e;d=!!((q=d.getWatchNextResponse())==null?0:(T=q.contents)==null?0:(Y=T.twoColumnWatchNextResults)==null?0:(e=Y.autoplay)==null?0:e.autoplay)!==!1}if(d)this.G||(this.G=!0,this.OM(this.G),this.J.C().N("web_player_autonav_toggle_always_listen")||wN2(this),
  11055. q=this.GX(),this.b7(q.autonavState),this.J.logVisibility(this.element,this.G));else if(this.G=!1,this.OM(this.G),!this.J.C().N("web_player_autonav_toggle_always_listen"))for(this.J.C().N("web_player_autonav_toggle_always_listen"),q=g.E(this.U),T=q.next();!T.done;T=q.next())this.t1(T.value)};
  11056. g.Q.b7=function(d){zfY(this)?this.isChecked=d!==1:((d=d!==1)||(g.KW(),d=g.RD("web_autonav_allow_off_by_default")&&!g.Gy(0,141)&&g.Cs("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Gy(0,140)),this.isChecked=d);f42(this)};
  11057. g.Q.onClick=function(){this.isChecked=!this.isChecked;this.J.Eh(this.isChecked?2:1);f42(this);if(zfY(this)){var d=this.GX().autoplaySwitchButtonRenderer;this.isChecked&&(d==null?0:d.onEnabledCommand)?this.J.gO("innertubeCommand",d.onEnabledCommand):!this.isChecked&&(d==null?0:d.onDisabledCommand)&&this.J.gO("innertubeCommand",d.onDisabledCommand)}this.J.logClick(this.element)};
  11058. g.Q.getValue=function(){return this.isChecked};
  11059. g.Q.GX=function(){return this.J.getVideoData(1)};g.M(i07,xT);g.M(jq,g.gR);jq.prototype.onClick=function(){this.enabled&&(az(this,!this.checked),this.publish("select",this.checked))};
  11060. jq.prototype.getValue=function(){return this.checked};
  11061. jq.prototype.setEnabled=function(d){(this.enabled=d)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var Zx=["en-CA","en","es-MX","fr-CA"];g.M(Bs,jq);Bs.prototype.S5=function(d){d?this.G||(this.TG.rk(this),this.G=!0):this.G&&(this.TG.e$(this),this.G=!1);this.G&&az(this,ubY())};
  11062. Bs.prototype.T=function(){g.TR(this.element,"ytp-menuitem-highlight-transition-enabled")};
  11063. Bs.prototype.j=function(d){var q=ubY();d!==q&&(q=g.KW(),kO(190,d),kO(192,!0),q.save(),this.J.gO("cinematicSettingsToggleChange",d))};
  11064. Bs.prototype.ir=function(){this.G&&this.TG.e$(this);jq.prototype.ir.call(this)};g.M(KR,xT);KR.prototype.updateCinematicSettings=function(d){this.G=d;var q;(q=this.menuItem)==null||q.S5(d);this.api.publish("onCinematicSettingsVisibilityChange",d)};g.M(vCj,xT);g.M(Gk,xT);Gk.prototype.setCreatorEndscreenVisibility=function(d){var q;(q=wV(this.api.M5()))==null||q.OM(d)};
  11065. Gk.prototype.G=function(d){function q(Y){Y==="creatorendscreen"&&(Y=wV(T.api.M5()))&&Y.xUv(T.hideButton)}
  11066. var T=this;this.hideButton=d;this.events.W(this.api,"modulecreated",q);q("creatorendscreen")};g.M(LR,jq);LR.prototype.T=function(d){this.j(d?1:0)};
  11067. LR.prototype.U=function(){var d=this.hasDrcAudioTrack(),q=this.G()===1&&d;az(this,q);this.setEnabled(d)};
  11068. LR.prototype.ir=function(){this.TG.e$(this);jq.prototype.ir.call(this)};g.M(kT,xT);kT.prototype.getDrcUserPreference=function(){return this.G};
  11069. kT.prototype.setDrcUserPreference=function(d){g.pW("yt-player-drc-pref",d,31536E3);d!==this.G&&(this.G=d,this.updateEnvironmentData(),this.U()&&this.api.Ql())};
  11070. kT.prototype.updateEnvironmentData=function(){this.api.C().XF=this.G===1};
  11071. kT.prototype.U=function(){var d,q,T=(d=this.api.getVideoData())==null?void 0:(q=d.j)==null?void 0:q.G;if(!T)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.N("mta_drc_mutual_exclusion_removal")){var Y,e,U=(Y=this.api.n9())==null?void 0:(e=Y.DQ)==null?void 0:e.id;return D7(T,function(b){var J;return b.audio.G&&((J=b.DQ)==null?void 0:J.id)===U})}return D7(T,function(b){var J;
  11072. return((J=b.audio)==null?void 0:J.G)===!0})};g.M(Ps,xT);Ps.prototype.onVideoDataChange=function(){var d=this,q=this.api.getVideoData();this.api.hm("embargo",1);var T=q==null?void 0:q.fd.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(T==null?0:T.length)?VNg(this,T.filter(function(Y){return oC2(d,Y)})):(q==null?0:q.cueRanges)&&VNg(this,q.cueRanges.filter(function(Y){return oC2(d,Y)}))};
  11073. Ps.prototype.U=function(d){return d.embargo!==void 0};
  11074. Ps.prototype.ir=function(){xT.prototype.ir.call(this);this.G={}};g.M(Ws,xT);
  11075. Ws.prototype.addEmbedsConversionTrackingParams=function(d){var q=this.api.C(),T=q.widgetReferrer,Y=q.Ln,e=this.G,U="",b=q.getWebPlayerContextConfig();b&&(U=b.embedsIframeOriginParam||"");T.length>0&&(d.embeds_widget_referrer=T);Y.length>0&&(d.embeds_referring_euri=Y);q.T&&U.length>0&&(d.embeds_referring_origin=U);b&&b.embedsFeature&&(d.feature=b.embedsFeature);e.length>0&&(q.N("embeds_web_enable_lite_experiment_control_arm_logging")?e.unshift(28572):g.eX(g.sm(q))&&e.unshift(159628),q=e.join(","),q=
  11076. g.WL()?q:g.pp(q,4),d.source_ve_path=q);this.G.length=0};g.M(de_,xT);g.M(qo2,xT);g.M(CR,g.W);CR.prototype.ir=function(){g.W.prototype.ir.call(this);this.G=null;this.U&&this.U.disconnect()};g.M(YoQ,xT);g.M(ui,g.f);ui.prototype.show=function(){g.f.prototype.show.call(this);this.api.logVisibility(this.element,!0)};
  11077. ui.prototype.stopTimer=function(){this.G&&(this.G.dispose(),this.G=null)};
  11078. ui.prototype.onVideoDataChange=function(d){var q,T,Y=(q=this.api.getVideoData())==null?void 0:(T=q.getPlayerResponse())==null?void 0:T.playabilityStatus;Y&&(q=eH1(Y),g.I(this.api.getPlayerStateObject(),128)||d==="dataloaderror"||!q?(this.U=0,this.stopTimer(),this.hide()):(d=(q.remainingTimeSecs||0)*1E3,d>0&&(this.show(),this.updateValue("label",D4(q.label)),bYI(this,d))))};
  11079. ui.prototype.ir=function(){this.stopTimer();g.f.prototype.ir.call(this)};g.M(XIg,xT);g.M(Dx,g.f);Dx.prototype.onClick=function(){this.mZ.logClick(this.element);this.mZ.gO("onFullerscreenEduClicked")};
  11080. Dx.prototype.S5=function(){this.mZ.isFullscreen()?this.G?this.fade.hide():this.fade.show():this.hide();this.mZ.logVisibility(this.element,this.mZ.isFullscreen()&&!this.G)};g.M(wR,xT);wR.prototype.updateFullerscreenEduButtonSubtleModeState=function(d){var q;(q=this.G)!=null&&(g.ep(q.element,"ytp-fullerscreen-edu-button-subtle",d),d&&!q.U&&(q.mZ.N("player_tooltip_data_title_killswitch")?q.element.setAttribute("title","\u6eda\u52a8\u6d4f\u89c8\u8be6\u60c5"):q.element.setAttribute("data-tooltip-title","\u6eda\u52a8\u6d4f\u89c8\u8be6\u60c5"),D$(q.mZ,q.element,q),q.U=!0))};
  11081. wR.prototype.updateFullerscreenEduButtonVisibility=function(d){var q;(q=this.G)!=null&&(q.G=d,q.S5())};g.M(JFg,g.f);g.M(ge1,xT);g.M(fR,xT);fR.prototype.getSphericalProperties=function(){var d=g.lH(this.api.M5());return d?d.getSphericalProperties():{}};
  11082. fR.prototype.setSphericalProperties=function(d){if(d){var q=g.lH(this.api.M5());q&&q.setSphericalProperties(d,!0)}};g.M(zk,xT);g.Q=zk.prototype;g.Q.createClientVe=function(d,q,T,Y){this.api.createClientVe(d,q,T,Y===void 0?!1:Y)};
  11083. g.Q.createServerVe=function(d,q,T){this.api.createServerVe(d,q,T===void 0?!1:T)};
  11084. g.Q.setTrackingParams=function(d,q){this.api.setTrackingParams(d,q)};
  11085. g.Q.logClick=function(d,q){this.api.logClick(d,q)};
  11086. g.Q.logVisibility=function(d,q,T){this.api.logVisibility(d,q,T)};
  11087. g.Q.hasVe=function(d){return this.api.hasVe(d)};
  11088. g.Q.destroyVe=function(d){this.api.destroyVe(d)};var NjN=!1;Iz.prototype.setPlaybackRate=function(d){this.playbackRate=Math.max(1,d)};
  11089. Iz.prototype.getPlaybackRate=function(){return this.playbackRate};oz.prototype.sE=function(d){var q=g.DB(d.info.G.info,this.vv.aN),T=d.info.sD+this.T,Y=d.info.startTime*1E3;if(this.policy.AF)try{Y=this.policy.AF?g.py(d)*1E3:d.info.startTime*1E3}catch(b){Math.random()>.99&&this.logger&&(Y=g5(d.U).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:d.info.jt(),encodedDataView:g.A0(Y,4)})),Y=d.info.startTime*1E3}var e=d.info.clipId,U=this.policy.AF?g.qXj(d)*1E3:d.info.duration*1E3;this.policy.AF&&(Y<0||U<0)&&(this.logger&&(this.logger({missingSegInfo:d.info.jt(),
  11090. startTimeMs:Y,durationMs:U}),this.policy.rK||(Y<0&&(Y=d.info.startTime*1E3),U<0&&(U=d.info.duration*1E3))),this.policy.rK&&(Y<0&&(Y=d.info.startTime*1E3),U<0&&(U=d.info.duration*1E3)));return{formatId:q,sD:T,startTimeMs:Y,clipId:e,CQ:U}};
  11091. oz.prototype.Ii=function(d){this.timestampOffset=d};VD.prototype.seek=function(d,q){d!==this.targetTime&&(this.seekCount=0);this.targetTime=d;var T=this.videoTrack.U,Y=this.audioTrack.U,e=this.audioTrack.RN,U=tKn(this,this.videoTrack,d,this.videoTrack.RN,q);q=tKn(this,this.audioTrack,this.policy.ST?d:U,e,q);d=Math.max(d,U,q);this.T=!0;this.vv.isManifestless&&(pI2(this,this.videoTrack,T),pI2(this,this.audioTrack,Y));return d};
  11092. VD.prototype.isSeeking=function(){return this.T};
  11093. VD.prototype.DK=function(d){this.U=d};
  11094. var rFN=2/24;var GG_=0;g.Q=$I.prototype;g.Q.vx=function(){this.K=this.now();OdX(this.Tq,this.K);this.yp.vx()};
  11095. g.Q.aW=function(d,q){var T=this.policy.U?(0,g.cj)():0;gK(this,d,q);d-this.X<10&&this.U>0||this.vJ(d,q);this.yp.aW(d,q);this.policy.U&&(d=(0,g.cj)()-T,this.Qp+=d,this.kx=Math.max(d,this.kx))};
  11096. g.Q.vJ=function(d,q){var T=(d-this.X)/1E3,Y=q-this.j;this.cO||(zH(this.Tq,T,Y),this.D1(T,Y));this.X=d;this.j=q};
  11097. g.Q.Q2=function(){this.rO&&Lpf(this);this.yp.Q2()};
  11098. g.Q.hd=function(d){this.rO||(this.rO=this.S-this.vF+d,this.Ln=this.S,this.zq=this.L)};
  11099. g.Q.ez=function(d,q){d=d===void 0?this.L:d;q=q===void 0?this.S:q;this.U>0||(this.B=d,this.U=q,this.lr=this.isActive=!0)};
  11100. g.Q.OH=function(){return this.bO||2};
  11101. g.Q.fX=function(){};
  11102. g.Q.Xq=function(){var d,q={rn:this.requestNumber,rt:(this.L-this.G).toFixed(),lb:this.S,stall:(1E3*this.T).toFixed(),ht:(this.K-this.G).toFixed(),elt:(this.B-this.G).toFixed(),elb:this.U,d:(d=this.z2)==null?void 0:d.VH()};this.url&&Fp1(q,this.url);this.policy.U&&(q.mph=this.kx.toFixed(),q.tph=this.Qp.toFixed());q.ulb=this.dO;q.ult=this.UD;return q};
  11103. g.Q.now=function(){return(0,g.cj)()};
  11104. g.Q.deactivate=function(){this.isActive&&(this.isActive=!1)};g.M(NO,$I);g.Q=NO.prototype;g.Q.Xq=function(){var d=$I.prototype.Xq.call(this);d.pb=this.mO;d.pt=(1E3*this.wO).toFixed();d.se=this.ev;return d};
  11105. g.Q.V2=function(){var d=this.yp;this.AF||(this.AF=d.V2?d.V2():1);return this.AF};
  11106. g.Q.jk=function(){return this.Fb?this.V2()!==1:!1};
  11107. g.Q.Ab=function(d,q,T){if(!this.q5){this.q5=!0;if(!this.cO){gK(this,d,q);this.vJ(d,q);var Y=this.V2();this.ev=T;if(!this.cO)if(Y===2){Y=d-this.B<this.OH()*1E3+50;T=this.UD?this.dO/(this.UD/1E3):T||this.Bv;var e=this.D5*1.3;Y&&T<e||(this.UD?ue(this.Tq,this.UD/1E3,this.dO,this.qk||this.policy.lr):ue(this.Tq,q/T,q,.01));w6(this.Tq,q,Y?0:this.T)}else Y===1&&(Y=(d-this.G)/1E3,!(Y<=this.policy.T)&&this.policy.T||this.fn||this.policy.K||!(this.U>0)||R3(this,Y,q),this.U>0&&w6(this.Tq,q,this.T));d=(d-this.G)/
  11108. 1E3||.01;this.policy.B&&!(this.U>0)||DN(this.Tq,d,this.j,Ptj(this),this.q4)}this.deactivate()}};
  11109. g.Q.df=function(d,q,T){T&&(this.AF=2);d<0&&this.bO&&(d=this.bO);q?this.xx+=d:this.qk+=d};
  11110. g.Q.OH=function(){return this.qk||this.xx||$I.prototype.OH.call(this)};
  11111. g.Q.vJ=function(d,q){var T=(d-this.X)/1E3,Y=q-this.j,e=this.V2();this.isActive?e===1&&((Y>0||this.policy.S)&&(T>.2||Y<1024)?(this.T+=T,Y>0&&T>.2&&R3(this,this.D5?T:.05,Y),this.fn=!0):Y>0&&(R3(this,T,Y),this.fn=!0)):q&&q>=this.policy.G&&this.ez(d,q);$I.prototype.vJ.call(this,d,q)};
  11112. g.Q.uc=function(d){if(!this.cO){gK(this,d,this.S);var q=(d-this.G)/1E3;this.V2()!==2&&this.U>0&&(this.T+=(d-this.X)/1E3,w6(this.Tq,this.j,this.T));DN(this.Tq,q,this.j,Ptj(this),this.q4,!0);d=(d-this.X)/1E3;zH(this.Tq,d,0);this.D1(d,0)}};
  11113. g.Q.ez=function(d,q){d=d===void 0?this.L:d;q=q===void 0?this.S:q;if(!(this.U>0)&&($I.prototype.ez.call(this,d,q),this.V2()===1)){q=(this.K-this.G)/1E3;var T=(d-this.K)/1E3;this.Fb&&xI(this,this.now());this.lF||this.cO||(this.bO&&(T=Math.max(0,T-this.bO)),d=this.Tq,d.B.gH(1,q),d.z2.gH(1,T))}};
  11114. g.Q.dN=function(){this.Fb&&xI(this,this.now());return this.RU};
  11115. g.Q.fZ=function(){var d;if(d=this.j>this.e4)d=(d=this.j)?d>=this.policy.G:!1;return d};
  11116. g.Q.Ga=function(){return this.Fw};
  11117. g.Q.iW=function(d){d=d===void 0?this.now():d;if(this.Fb){xI(this,d);if(this.AF?this.jk():this.yv!==this.aU){var q=this.aU;if(d<q){this.Fw=this.aU;return}}else q=this.yv;q=Math.max(q,this.RU)}else q=this.RU;var T=this.mO-this.j;T<0&&(T=0);T=(T*this.snapshot.stall+T/this.snapshot.byterate)*1E3;this.Fw=T=this.U>0?T+d:T+Math.max(d,q)};
  11118. g.Q.DG=function(){return this.now()-this.B};
  11119. g.Q.l5=function(){return(this.j-this.U)*1E3/this.DG()||0};
  11120. g.Q.Rh=function(){return this.B};yh.prototype.feed=function(d){Uv(this.G,d);this.Yo()};
  11121. yh.prototype.Yo=function(){if(this.T){if(!this.G.totalLength)return;var d=this.G.split(this.j-this.U),q=d.hS;d=d.Kp;if(!this.yp.hd(this.T,q,this.U,this.j))return;this.U+=q.totalLength;this.G=d;this.U===this.j&&(this.T=this.j=this.U=void 0)}for(;;){var T=0;d=g.E(De7(this.G,T));q=d.next().value;T=d.next().value;T=g.E(De7(this.G,T));d=T.next().value;T=T.next().value;if(q<0||d<0)break;if(!(T+d<=this.G.totalLength)){if(!(this.yp.hd&&T+1<=this.G.totalLength))break;T=this.G.split(T).Kp;this.yp.hd(q,T,0,
  11122. d)&&(this.T=q,this.U=T.totalLength,this.j=d,this.G=new e2([]));break}d=this.G.split(T).Kp.split(d);T=d.Kp;this.yp.P6(q,d.hS);this.G=T}};
  11123. yh.prototype.dispose=function(){this.G=new e2};g.Q=hk.prototype;g.Q.Dq=function(){return 0};
  11124. g.Q.YD=function(){return null};
  11125. g.Q.Mg=function(){return null};
  11126. g.Q.G0=function(){return this.state>=1};
  11127. g.Q.isComplete=function(){return this.state>=3};
  11128. g.Q.E5=function(){return this.state===5};
  11129. g.Q.onStateChange=function(){};
  11130. g.Q.XC=function(d){var q=this.state;this.state=d;this.onStateChange(q);this.callback&&this.callback(this,q)};
  11131. g.Q.Om=function(d){d&&this.state<d?this.XC(d):this.callback&&this.callback(this,this.state)};
  11132. g.Q.JF=function(){return this.state===-1};
  11133. g.Q.jt=function(){var d="";this.info.Zw.forEach(function(q){d+=q.jt()+"."});
  11134. return d.slice(0,-1)};
  11135. g.Q.dispose=function(){this.JF()||(this.info.Zw[0].G.j=!1,this.XC(-1))};
  11136. g.Q.TI=function(){return 0};g.Q=HX.prototype;g.Q.VZ=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.yp.vx()};
  11137. g.Q.onError=function(){this.j=!0;this.onDone()};
  11138. g.Q.onDone=function(){this.JF||(this.T=!0,this.yp.Q2())};
  11139. g.Q.ZL=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED};
  11140. g.Q.getResponseHeader=function(d){try{return this.xhr.getResponseHeader(d)}catch(q){return""}};
  11141. g.Q.QN=function(){return+this.getResponseHeader("content-length")};
  11142. g.Q.eH=function(){return this.U};
  11143. g.Q.ly=function(){return this.status>=200&&this.status<300&&!!this.U};
  11144. g.Q.w3=function(){return this.G.totalLength>0};
  11145. g.Q.by=function(){var d=this.G;this.G=new e2;return d};
  11146. g.Q.oD=function(){return this.G};
  11147. g.Q.abort=function(){this.JF=!0;this.xhr.abort()};
  11148. g.Q.wf=function(){return!0};
  11149. g.Q.aD=function(){return this.j};
  11150. g.Q.P4=function(){return""};g.Q=iYg.prototype;g.Q.getResponseHeader=function(d){return d==="content-type"?this.G.get("type"):""};
  11151. g.Q.abort=function(){};
  11152. g.Q.ZL=function(){return!0};
  11153. g.Q.QN=function(){return this.range.length};
  11154. g.Q.eH=function(){return this.loaded};
  11155. g.Q.ly=function(){return!!this.loaded};
  11156. g.Q.w3=function(){return!!this.U.totalLength};
  11157. g.Q.by=function(){var d=this.U;this.U=new e2;return d};
  11158. g.Q.oD=function(){return this.U};
  11159. g.Q.wf=function(){return!0};
  11160. g.Q.aD=function(){return!!this.error};
  11161. g.Q.P4=function(){return this.error};g.Q=meD.prototype;g.Q.start=function(d){var q={credentials:"include",cache:"no-store"};Object.assign(q,this.L);this.T&&(q.signal=this.T.signal);d=new Request(d,q);fetch(d).then(this.K,this.onError).then(void 0,qw)};
  11162. g.Q.onDone=function(){this.JF()||this.yp.Q2()};
  11163. g.Q.getResponseHeader=function(d){return this.responseHeaders?this.responseHeaders.get(d):null};
  11164. g.Q.ZL=function(){return!!this.responseHeaders};
  11165. g.Q.eH=function(){return this.U};
  11166. g.Q.QN=function(){return+this.getResponseHeader("content-length")};
  11167. g.Q.ly=function(){return this.status>=200&&this.status<300&&!!this.U};
  11168. g.Q.w3=function(){return!!this.G.totalLength};
  11169. g.Q.by=function(){var d=this.G;this.G=new e2;return d};
  11170. g.Q.oD=function(){return this.G};
  11171. g.Q.JF=function(){return this.S};
  11172. g.Q.abort=function(){this.j&&this.j.cancel().catch(function(){});
  11173. this.T&&this.T.abort();this.S=!0};
  11174. g.Q.wf=function(){return!0};
  11175. g.Q.aD=function(){return this.X};
  11176. g.Q.P4=function(){return this.errorMessage};g.Q=Soj.prototype;g.Q.onDone=function(){if(!this.JF){this.status=this.xhr.status;try{this.response=this.xhr.response,this.U=this.response.byteLength}catch(d){}this.G=!0;this.yp.Q2()}};
  11177. g.Q.VZ=function(){this.xhr.readyState===2&&this.yp.vx()};
  11178. g.Q.S$=function(d){this.JF||(this.status=this.xhr.status,this.G||(this.U=d.loaded),this.yp.aW((0,g.cj)(),d.loaded))};
  11179. g.Q.ZL=function(){return this.xhr.readyState>=2};
  11180. g.Q.getResponseHeader=function(d){try{return this.xhr.getResponseHeader(d)}catch(q){return g.OL(Error("Could not read XHR header "+d)),""}};
  11181. g.Q.QN=function(){return+this.getResponseHeader("content-length")};
  11182. g.Q.eH=function(){return this.U};
  11183. g.Q.ly=function(){return this.status>=200&&this.status<300&&this.G&&!!this.U};
  11184. g.Q.w3=function(){return this.G&&!!this.response&&!!this.response.byteLength};
  11185. g.Q.by=function(){var d=this.response;this.response=void 0;return new e2([new Uint8Array(d)])};
  11186. g.Q.oD=function(){return new e2([new Uint8Array(this.response)])};
  11187. g.Q.abort=function(){this.JF=!0;this.xhr.abort()};
  11188. g.Q.wf=function(){return!1};
  11189. g.Q.aD=function(){return!1};
  11190. g.Q.P4=function(){return""};g.M(MO,g.W);MO.prototype.kz=function(){if(!this.FF.length)return[];var d=this.FF;this.FF=[];this.j=g.yN(d).info;return d};
  11191. MO.prototype.o$=function(){return this.FF};
  11192. MO.prototype.ir=function(){g.W.prototype.ir.call(this);this.G=null;this.FF.length=0;this.Zw.length=0;this.j=null};g.M(Ej,g.W);g.Q=Ej.prototype;
  11193. g.Q.zzF=function(){if(!this.JF()){var d=(0,g.cj)(),q=!1;if(this.policy.zr){d=d-(this.timing.U>0?this.timing.B:this.timing.G)-this.timing.OH()*1E3;var T=DT(j6(this),!1);d>=2E3*T?q=!0:d>=this.policy.hs*T&&(this.G=this.policy.Gv)}else if(this.timing.U>0){if(this.S){this.policy.zq&&(this.G=0);return}var Y=this.timing.Ga();this.timing.iW();var e=this.timing.Ga();e-Y>=this.policy.XF*.8?(this.G++,this.logger.debug(function(){return"Mispredicted by "+(e-Y).toFixed(0)}),q=this.G>=5):this.G=0}else{var U=d-
  11194. this.timing.dN();
  11195. this.policy.Gv&&U>0&&(this.G+=1);q=DT(j6(this),!1)*this.policy.PD;(q=U>q*1E3)&&this.logger.debug(function(){return"Elbow late by "+U.toFixed(3)})}this.G>0&&this.yp.JD();
  11196. q?this.UW():this.U.start()}};
  11197. g.Q.UW=function(){this.T=!0;this.yp.f9();this.lastError="net.timeout";Ak(this)};
  11198. g.Q.canRetry=function(d){var q=j6(this);d=d?this.policy.NK:this.policy.TB;return q.timedOut<this.policy.DT&&q.G<d};
  11199. g.Q.nA=function(){return this.lastError};
  11200. g.Q.W9=function(){return this.G};
  11201. g.Q.dispose=function(){this.U.dispose();g.W.prototype.dispose.call(this)};var RK={},yuY=(RK["1h"]=8,RK["9h"]=4,RK["1"]=8,RK["9"]=4,RK["("]=4,RK.h=2,RK.H=2,RK),xd={},hjN=(xd.o=3,xd.O=3,xd.so=3,xd.a=1,xd.ah=1,xd.A=1,xd.m=1,xd.M=1,xd.sa=1,xd.mac3=7,xd.MAC3=7,xd.meac3=5,xd.MEAC3=5,xd),ys={},Q8_=(ys.o=0,ys.O=0,ys.a=0,ys.ah=0,ys.A=0,ys.m=1,ys.M=1,ys.mac3=1,ys.MAC3=1,ys.meac3=1,ys.MEAC3=1,ys.so=4,ys.sa=4,ys);var j82={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};var rK,nz,tk=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"],["787","788"]],$n7=[["571","401","400","399","398"],["313","271","248","247"],["137","136"]],gkn=["571 401 400 399 398 787 788 397 396".split(" "),"313 271 248 247 781 777 244 243".split(" "),["137","136","135"]],FUf=[["411","410","409"],["360","358","357","274"],["385","376","384"],["225","224","145"]],N0j=["412","359"],RjD=[["141"],["774"],["380"],["328"]],hN={},XtD=(hN["398"]="397 396 395 394 788 787".split(" "),
  11202. hN["247"]=["780","779","244","243","242"],hN["136"]=["135","134","133","160"],hN["141"]=["140"],hN["774"]=["251","250"],hN),HS={},Ju_=(HS["135"]=["134","133","160"],HS["243"]=["242"],HS["781"]=["780","779"],HS["777"]=["776","775"],HS["396"]=["395","394"],HS["141"]=["140"],HS["774"]=["251","250"],HS),Qs={},s8I=(Qs["274"]=["317","273","318","280","279"],Qs["145"]=["144","222","223","143","142"],Qs["141"]=["149"],Qs["140"]=["149"],Qs["380"]=["381"],Qs["328"]=["329"],Qs),Mp={},Un1=(Mp["133"]=240,Mp["134"]=
  11203. 360,Mp["135"]=480,Mp["136"]=720,Mp["137"]=1080,Mp["242"]=240,Mp["243"]=360,Mp["244"]=480,Mp["247"]=720,Mp["248"]=1080,Mp["298"]=720,Mp["299"]=1080,Mp["302"]=720,Mp["303"]=1080,Mp["395"]=240,Mp["396"]=360,Mp["397"]=480,Mp["398"]=720,Mp["399"]=1080,Mp);var ML7={unknown:0,other:0,bluetooth:117,wifi:116,cellular:120,ethernet:118,wimax:119,none:122};g.M(qO,hk);g.Q=qO.prototype;g.Q.HR=function(){return this.timing.requestNumber};
  11204. g.Q.Hl=function(){return this.M3.Hl()};
  11205. g.Q.P$=function(){var d=T0D(this.Id);if(this.PK){var q=this.PK,T=q.G.totalLength;d.ulen=T;T>0&&(q=FJ(q.G,0),d.ubyte=q,T===1&&q===0&&(d.b248180278=!0))}this.v4&&(d.rc=this.policy.zs?this.v4:this.v4.toString());this.policy.LC&&this.vP&&(d.tr=this.vP);d.itag=this.info.Zw[0].G.info.itag;d.ml=""+ +this.info.Zw[0].G.pj();d.sq=""+this.info.Zw[0].sD;this.M3&&(d.ifi=""+ +vI(this.info.zG.U));this.v4!==410&&this.v4!==500&&this.v4!==503||(d.fmt_unav="true");var Y;(T=this.errorMessage||((Y=this.xhr)==null?void 0:
  11206. Y.P4()))&&(d.msg=T);this.yT&&(d.smb="1");this.info.isDecorated()&&(d.sdai="1");return d};
  11207. g.Q.oh=function(){return Wp_(this.timing)};
  11208. g.Q.P4=function(){return this.xhr.P4()||""};
  11209. g.Q.fZ=function(){return this.isComplete()||this.timing.fZ()};
  11210. g.Q.aW=function(){!this.JF()&&this.xhr&&(this.v4=this.xhr.status,this.policy.YA&&this.j$&&this.L3(!1),this.Vs()?this.Om(2):!this.P2&&this.fZ()&&(this.Om(),this.P2=!0))};
  11211. g.Q.vx=function(){if(!this.JF()&&this.xhr){if(!this.Iu&&this.xhr.ZL()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var d=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Iu=((0,g.cj)()-d)/1E3}this.xhr.ZL()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.b4&&!Y0D()&&g.pW("yt-player-headers-readable",!0,2592E3);d=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var q=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),T;(T=this.IC)==null||T.stop();this.z3=d||this.z3;
  11212. this.Dt=q||this.Dt}};
  11213. g.Q.Q2=function(){var d=this.xhr;if(!this.JF()&&d){this.v4=d.status;d=this.qh(d);if(this.policy.LC){var q;(q=this.IC)==null||q.stop()}d===5?Ak(this.Id):this.XC(d);this.Id.U.stop()}};
  11214. g.Q.qh=function(d){var q=this;OjY(this);if(pz(this.Id,this.xhr.status,this.d9?this.timing.lr||this.qS:this.xhr.ly(),!1,this.UO))return 5;var T="";Za(this.Id,this.xhr)&&(T=qK6(this.Id,this.xhr));if(T)return u8(j6(this.Id)),this.info.RQ(this.M3,T),3;T=d.eH();if(this.PK){this.L3(!0);OjY(this);if(pz(this.Id,this.xhr.status,this.timing.lr||this.qS,!1,this.UO))return 5;if(!this.Oa){if(this.qS)return u8(j6(this.Id)),3;this.Id.lastError="net.closed";return 5}}else{if(pz(this.Id,this.xhr.status,this.xhr.ly(),
  11215. !1,this.UO))return 5;var Y=this.info.j;if(Y&&Y!==T||d.aD())return this.Id.lastError="net.closed",5;this.L3(!0)}Y=wIX(this)?d.getResponseHeader("X-Bandwidth-Est"):0;if(d=wIX(this)?d.getResponseHeader("X-Bandwidth-Est3"):0)this.m5=!0,this.policy.QM&&(Y=d);VKI(this.Id,T,Y?Number(Y):0,this.info.Zw[0].type===5);this.logger.debug(function(){var e=q.timing;return"Succeeded, rtpd="+(e.wO*1E3+e.G-Date.now()).toFixed(0)});
  11216. return 4};
  11217. g.Q.canRetry=function(){this.JF();var d=this.info.isDecorated();return this.Id.canRetry(d)};
  11218. g.Q.onStateChange=function(){this.isComplete()&&(this.policy.Kw?this.f9():this.timing.deactivate())};
  11219. g.Q.UW=function(){this.Id.UW()};
  11220. g.Q.JD=function(){this.callback&&this.callback(this,this.state)};
  11221. g.Q.W9=function(){return this.Id.W9()};
  11222. g.Q.dispose=function(){hk.prototype.dispose.call(this);this.Id.dispose();var d;(d=this.IC)==null||d.dispose();this.policy.Kw||this.f9()};
  11223. g.Q.f9=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()};
  11224. g.Q.kz=function(){if(!this.o$().length)return[];this.mR=!0;return this.j$.kz()};
  11225. g.Q.Vs=function(){if(this.state<1)return!1;if(this.j$&&this.j$.FF.length)return!0;var d;return((d=this.xhr)==null?0:d.w3())?!0:!1};
  11226. g.Q.o$=function(){this.L3(!1);return this.j$?this.j$.o$():[]};
  11227. g.Q.L3=function(d){try{if(d||this.xhr.ZL()&&this.xhr.w3()&&!Za(this.Id,this.xhr)&&!this.f5)this.j$||(this.j$=new MO(this.policy,this.info.Zw)),this.xhr.w3()&&(this.PK?this.PK.feed(this.xhr.by()):cX(this.j$,this.xhr.by(),d&&!this.xhr.w3()))}catch(q){this.PK?Auj(this,q):g.OL(q)}};
  11228. g.Q.P6=function(d,q){switch(d){case 21:d=q.split(1).Kp;pt2(this,d);break;case 22:this.Oa=!0;cX(this.j$,new e2([]),!0);break;case 43:if(d=po(new Mt(q),1))this.info.RQ(this.M3,d),this.qS=!0;break;case 45:q=xe(new Mt(q));d=q.HT;q=q.uW;d&&q&&(this.AY=d/q);break;case 44:this.bY=zO6(new Mt(q));var T,Y,e;!this.timing.lr&&((T=this.bY)==null?void 0:T.action)===4&&((Y=this.bY)==null?0:(e=Y.Hw)==null?0:e.d9)&&(this.d9=this.bY.Hw.d9);break;case 53:this.policy.LC&&(d=DE_(new Mt(q)).XQ)&&(this.IC||(this.XQ=d,this.IC=
  11229. new g.f9(this.IL,d,this)),this.IC.start());break;case 60:this.Sg=Rg(new Mt(q));break;case 58:if(d=Hu7(new Mt(q)))this.fW=d,d.fW===3&&(this.UO=!0)}};
  11230. g.Q.hd=function(d,q,T,Y){T||this.timing.hd(Y);if(d!==21)return!1;if(d=this.policy.YA)if(d*=this.info.Zw[0].G.info.Vv,q.totalLength+T!==Y&&q.totalLength<d)return!1;if(!T){if(q.totalLength===1)return!0;q=q.split(1).Kp}pt2(this,q);return!0};
  11231. g.Q.eH=function(){return this.xhr.eH()};
  11232. g.Q.Dq=function(){return this.Iu};
  11233. g.Q.V2=function(){return this.jk()?2:1};
  11234. g.Q.jk=function(){if(!this.policy.L.zz||!isNaN(this.info.MM)&&this.info.MM>0)return!1;if(!this.xhr.ZL())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.PK)var d=!this.info.j;else this.xhr.QN()?d=!1:(d=this.xhr.getResponseHeader("content-type"),d=d==="audio/mp4"||d==="video/mp4"||d==="video/webm");if(!d)return!1;if(isNaN(this.info.MM)){d=this.xhr.getResponseHeader("x-head-seqnum");var q=this.timing.policy.L?1:0;if(!d)this.logger.debug("No x-head-seqnum, cannot tell if head segment.");
  11235. else if(Number(d)>this.info.Zw[0].sD+q)return!1}return!0};
  11236. g.Q.TI=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
  11237. g.Q.YD=function(){this.xhr&&(this.z3=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.z3};
  11238. g.Q.Mg=function(){this.xhr&&(this.Dt=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Dt};
  11239. g.Q.nA=function(){return this.Id.nA()};
  11240. g.Q.IL=function(){if(!this.JF()&&this.xhr){this.vP="heartbeat";var d=this.Id;d.G+=2;this.JD()}};g.M(Lz,$I);g.Q=Lz.prototype;g.Q.vJ=function(d,q){var T=(d-this.X)/1E3,Y=q-this.j;this.U>0?Y>0&&(this.yv&&(T>.2||Y<1024?(this.T+=T,T>.2&&nkI(this,.05,Y)):nkI(this,T,Y)),this.aU&&(this.RU+=Y,this.qk+=T)):q>this.policy.G&&this.ez(d,q);$I.prototype.vJ.call(this,d,q)};
  11241. g.Q.Ab=function(d,q){gK(this,d,q);this.vJ(d,q);this.yv&&(q=this.j*this.snapshot.stall+this.j/this.snapshot.byterate,this.U>0&&w6(this.Tq,this.RU,this.T),d=(d-this.G)/1E3||.01,this.policy.B&&!(this.U>0)||DN(this.Tq,d,this.j,q,!1))};
  11242. g.Q.uc=function(d){gK(this,d,this.S);var q=(d-this.X)/1E3;zH(this.Tq,q,0);this.D1(q,0);!this.yv&&this.U>0||(q=this.j*this.snapshot.stall+this.j/this.snapshot.byterate,this.U>0&&(this.T+=(d-this.X)/1E3,w6(this.Tq,this.RU,this.T)),DN(this.Tq,(d-this.G)/1E3||.01,this.j,q,!1,!0))};
  11243. g.Q.Pj=function(d){d=d.ip||2147483647;(d&2)!==2&&(this.aU=!1);(d&1)===1&&(this.yv=!0)};
  11244. g.Q.Ay=function(d){d=d.ip||2147483647;(d&2)===2&&(this.aU=!1);(d&1)===1&&(this.yv=!1)};
  11245. g.Q.Rh=function(){return this.B};
  11246. g.Q.DG=function(){var d=this.aU?this.now()-this.X:0;return Math.max(this.qk*1E3+d,1)};
  11247. g.Q.l5=function(){return this.RU*1E3/this.DG()};
  11248. g.Q.ez=function(d,q){d=d===void 0?this.L:d;q=q===void 0?this.S:q;this.U>0||($I.prototype.ez.call(this,d,q),q=this.Tq,d=(d-this.K)/1E3,q.B.gH(1,(this.K-this.G)/1E3),q.z2.gH(1,d))};
  11249. g.Q.fX=function(d){this.xx=d};
  11250. g.Q.Xq=function(){var d=$I.prototype.Xq.call(this);d.rbw=this.l5();d.rbe=+this.aU;d.gbe=+this.yv;d.ackt=(this.xx-this.G).toFixed();return d};
  11251. g.Q.iW=function(){};
  11252. g.Q.Ga=function(){return NaN};
  11253. g.Q.dN=function(){return this.G+this.snapshot.delay*1E3};kI.prototype.P6=function(d,q){switch(d){case 20:d=new Mt(q);d={ra:j2(d,1),videoId:po(d,2),itag:j2(d,3),lmt:j2(d,4),xtags:po(d,5),aV:j2(d,6),VP:ae(d,8),P1:j2(d,9),c8Z:j2(d,10),startMs:j2(d,11),durationMs:j2(d,12),Ns:j2(d,14),timeRange:ZS(d,15,q5X),g4:j2(d,16),dF:j2(d,17),clipId:po(d,1E3)};this.pg(d);break;case 21:this.tT(q,!1);break;case 22:this.SN(q);break;case 31:d=r5(q,KXg);this.Hx(d);break;case 52:d=r5(q,wAH);this.KM(d);break;default:this.GU(d,q)}};
  11254. kI.prototype.pg=function(){};
  11255. kI.prototype.GU=function(){};g.M(PX,kI);g.Q=PX.prototype;
  11256. g.Q.GU=function(d,q){switch(d){case 35:this.EZ(q);break;case 44:this.Cm(q);break;case 43:this.dV(q);break;case 53:this.sL(q);break;case 55:d=new Mt(q);ZS(d,1,IpQ);ZS(d,2,lp2);break;case 56:this.Ze();break;case 57:this.Bq(q);break;case 42:this.oX(q);break;case 45:this.eN(q);break;case 59:this.O2(q);break;case 51:this.Km(q);break;case 49:this.Pj(q);break;case 50:this.Ay(q);break;case 47:this.kQ(q);break;case 58:this.J3(q);break;case 61:this.yp.VU.fX((0,g.cj)());break;case 66:this.b8(q);break;case 46:this.Wh(q);
  11257. break;case 67:this.onSnackbarMessage(q);break;case 68:this.IW(q)}};
  11258. g.Q.Km=function(d){d=new Mt(d);d={gGO:no(d,1,$e),Ad5:no(d,2,$e)};this.yp.Km(d)};
  11259. g.Q.O2=function(d){var q=new Mt(d);d=Ov(q,1);var T=Ov(q,2);q=Ov(q,3);this.yp.O2(d,T,q)};
  11260. g.Q.eN=function(d){d=xe(new Mt(d));this.yp.eN(d)};
  11261. g.Q.kQ=function(d){d=r5(d,knI);this.yp.kQ(d)};
  11262. g.Q.oX=function(d){d=new Mt(d);d={videoId:po(d,1),formatId:ZS(d,2,$e),endTimeMs:j2(d,3),itr:j2(d,4),mimeType:po(d,5),zV:ZS(d,6,ZuN),indexRange:ZS(d,7,ZuN),qe:ZS(d,8,OuI)};this.yp.oX(d)};
  11263. g.Q.Bq=function(d){d=lp2(new Mt(d));this.yp.Bq(d)};
  11264. g.Q.Ze=function(){this.yp.Ze()};
  11265. g.Q.EZ=function(d){d=Gn6(new Mt(d));this.yp.EZ(d)};
  11266. g.Q.sL=function(d){d=DE_(new Mt(d));this.yp.sL(d)};
  11267. g.Q.Cm=function(d){d=zO6(new Mt(d));this.yp.Cm(d)};
  11268. g.Q.dV=function(d){d={redirectUrl:po(new Mt(d),1)};this.yp.dV(d)};
  11269. g.Q.tT=function(d){var q=FJ(d,0);if(d.totalLength!==1){d=d.split(1).Kp;var T=this.U[q]||null;T&&zM(this.yp.cA,q,T,d)}};
  11270. g.Q.SN=function(d){d=FJ(d,0);var q=this.U[d]||null;q&&this.yp.SN(d,q)};
  11271. g.Q.KM=function(d){this.yp.KM(d)};
  11272. g.Q.pg=function(d){var q=d.ra,T=d.VP,Y=d.aV,e=d.dF,U=d.g4,b=d.P1,J=d.startMs,F=d.durationMs,N=d.timeRange,R=d.Ns,x=d.clipId,y=SL(d);d=RkR.has(tQ[""+d.itag]);this.U[q]=y;this.yp.df(y,d,{ra:q,VP:!!T,aV:Y!=null?Y:-1,P1:b!=null?b:-1,startMs:J!=null?J:-1,durationMs:F!=null?F:-1,Ns:R,dF:e,g4:U,clipId:x,timeRange:N})};
  11273. g.Q.Pj=function(d){d={ip:j2(new Mt(d),1)};this.yp.Pj(d)};
  11274. g.Q.Ay=function(d){d={ip:j2(new Mt(d),1)};this.yp.Ay(d)};
  11275. g.Q.Hx=function(d){this.yp.Hx(d)};
  11276. g.Q.J3=function(d){d=Hu7(new Mt(d));this.yp.J3(d)};
  11277. g.Q.b8=function(d){d={Z_:ZS(new Mt(d),1,CG7)};this.yp.b8(d)};
  11278. g.Q.onSnackbarMessage=function(d){d=j2(new Mt(d),1);this.yp.onSnackbarMessage(d)};
  11279. g.Q.IW=function(d){d={Rj:no(new Mt(d),1,pAN)};this.yp.IW(d)};
  11280. g.Q.Wh=function(d){d=new Mt(d);d={reloadPlaybackParams:ZS(d,1,hON),yx:ae(d,2)};this.yp.Wh(d)};g.M(WX,g.W);g.Q=WX.prototype;g.Q.mF=function(){return Array.from(this.vG.keys())};
  11281. g.Q.Ad=function(d){d=this.vG.get(d);var q=d.FF;d.Mq+=q.totalLength;d.FF=new e2;return q};
  11282. g.Q.Zh=function(d){return this.vG.get(d).Zh};
  11283. g.Q.Cb=function(d){return this.vG.get(d).Cb};
  11284. g.Q.df=function(d,q,T,Y){this.vG.get(d)||Gz1(this,d,q);q=this.vG.get(d);if(this.vv){d=kzY(this,d,T);if(Y)for(var e=g.E(d),U=e.next();!U.done;U=e.next()){U=U.value;var b=Y;U.UD=b;U.startTime+=b;U.T+=b;U.X+=b}LUI(this,T.ra,q,d)}else T.VP?q.tU=T.Ns:q.dl.push(T),q.JX.push(T)};
  11285. g.Q.jN=function(d){var q;return((q=this.vG.get(d))==null?void 0:q.Zw)||[]};
  11286. g.Q.Om=function(){for(var d=g.E(this.vG.values()),q=d.next();!q.done;q=d.next())q=q.value,q.Kg&&(q.S$&&q.S$(),q.Kg=!1)};
  11287. g.Q.SN=function(d,q){this.logger.debug(function(){return"[onMediaEnd] formatId: "+q});
  11288. var T=this.vG.get(q);Cz?T&&!T.Zh&&(T.Sj.get(d)?T.Sj.get(d).Pq=!0:T.Sj.set(d,{data:new e2,xY:0,Pq:!0}),T.Cb=!0):T&&!T.Cb&&(T.Cb=!0)};
  11289. g.Q.kz=function(d){if(Cz){var q=this.vG.get(d);if(q)for(var T=g.E(q.Sj),Y=T.next();!Y.done;Y=T.next()){var e=g.E(Y.value);Y=e.next().value;e=e.next().value;var U=q.Uj.get(Y);if(TE(U[0])){if(!e.Pq)continue;var b=e.data,J=0,F=[];U=g.E(U);for(var N=U.next();!N.done;N=U.next()){N=N.value;var R=N.j,x=bz(b,J,R);J+=R;F.push(new ju(N,x))}q.R4.push.apply(q.R4,g.RQ(F))}else if(e.data.totalLength>0||!U[0].range&&e.Pq)b=void 0,J=U[0],F=e.xY,U=e.data,J.range||(b=e.Pq),b=new ju(OeH(J,J.U+F,U.totalLength,b),U),
  11290. e.xY+=b.info.j,q.R4.push(b);q.Sj.get(Y).data=new e2;e.Pq&&q.Sj.delete(Y)}d=this.vG.get(d);if(!d)return[];q=d.R4;d.R4=[];T=g.E(q);for(Y=T.next();!Y.done;Y=T.next())d.Mq+=Y.value.info.j;return q||[]}T=(q=this.vG.get(d))==null?void 0:q.j$;if(!T)return[];this.L3(d,T);return T.kz()};
  11291. g.Q.Vs=function(d){if(Cz)return fz(this,d);var q,T,Y;return!!((T=(q=this.vG.get(d))==null?void 0:q.j$)==null?0:(Y=T.o$())==null?0:Y.length)||fz(this,d)};
  11292. g.Q.L3=function(d,q){for(;fz(this,d);){var T=this.Ad(d);var Y=d;Y=this.vG.get(Y).Zh&&!wK(this,Y);cX(q,T,Y&&KUQ(this,d))}};
  11293. g.Q.ir=function(){g.W.prototype.ir.call(this);for(var d=g.E(this.vG.keys()),q=d.next();!q.done;q=d.next())uk(this,q.value);var T;if((T=this.xo)==null?0:T.l9)for(d=g.E(this.vG.values()),q=d.next();!q.done;q=d.next())q=q.value,q.Sj.clear(),q.Uj.clear(),q.R4.length=0,q.Zw.length=0,q.JX.length=0,q.dl.length=0;this.vG.clear()};
  11294. var Cz=!1;g.M(ik,g.W);g.Q=ik.prototype;g.Q.aW=function(){!this.JF()&&this.xhr&&(this.L3(!1),qZ(this.yp,this))};
  11295. g.Q.vx=function(){};
  11296. g.Q.Q2=function(){if(!this.JF()&&this.xhr){var d=this.qh();d===5?Ak(this.Id):this.XC(d);this.Id.U.stop();var q;(q=this.Sq)==null||q.stop()}};
  11297. g.Q.qh=function(){var d="";Za(this.Id,this.xhr)&&(d=qK6(this.Id,this.xhr));if(d)return this.info.zG.RQ(this.M3,d),3;this.L3(!0);if(pz(this.Id,this.xhr.status,this.xhr.ly(),this.info.l8(),this.UO))return 5;if(this.uM)return 3;VKI(this.Id,this.xhr.eH(),0,this.l8());this.policy.pC&&ywj(this.yp);return 4};
  11298. g.Q.L3=function(d){var q=this.xhr;if((d||!Za(this.Id,this.xhr))&&q.w3()){d=q.by();var T=d.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+T});
  11299. this.PK.feed(d)}};
  11300. g.Q.P6=function(d,q){this.xhr.wf()&&d===21&&Dnn(this);this.Jn.P6(d,q)};
  11301. g.Q.hd=function(d,q,T,Y){T||(this.VU.hd(Y),this.policy.Tb&&d===21&&Dnn(this));if(d!==21)return!1;this.VU.lr=!0;d=q.totalLength;T||(this.kR=FJ(q,0),q=q.split(1).Kp);var e=this.policy.UK,U=this.Jn.U[this.kR],b=this.vv.j.get(U);if(e&&b&&(e*=b.info.Vv,d+T!==Y&&d<e))return!1;zM(this.cA,this.kR,U,q);return!0};
  11302. g.Q.EZ=function(d){this.yp.EZ(d)};
  11303. g.Q.sL=function(d){if(this.policy.enableServerDrivenRequestCancellation){var q;(q=this.Sq)==null||q.dispose();this.TZ=d;d.Bn&&(this.Sq=new g.f9(this.rP,d.Bn,this));this.rP()}};
  11304. g.Q.rP=function(){var d;if((d=this.TZ)!=null&&d.items){var q;(q=this.Sq)==null||q.start();if(this.VU.U>0){this.policy.zr&&this.Id.U.stop();d=this.VU.DG();q=this.VU.l5();var T=wt7(this,d);if(!(q>T.y3||T.NA>0&&this.info.Wm()>T.NA)){this.yf=(0,g.cj)();var Y;(Y=this.Sq)==null||Y.stop();this.policy.pC&&(Y=this.yp,d={lX:Math.round(q*d/1E3),Ju:d},Y.policy.pC&&(Y.z2=d,Y.OZ++));this.UW()}}}};
  11305. g.Q.UW=function(){this.Id.UW()};
  11306. g.Q.Cm=function(d){this.yp.Cm(d,this.HR())};
  11307. g.Q.dV=function(d){this.uM=!0;this.info.zG.RQ(this.M3,d.redirectUrl)};
  11308. g.Q.Pj=function(d){this.VU instanceof Lz&&this.VU.Pj(d)};
  11309. g.Q.Ay=function(d){this.VU instanceof Lz&&this.VU.Ay(d)};
  11310. g.Q.oX=function(d){var q=d.formatId,T=SL({itag:q.itag,lmt:q.lmt,xtags:q.xtags}),Y,e,U=new vt(((Y=d.zV)==null?void 0:Y.first)||0,((e=d.zV)==null?void 0:e.SZ)||0),b,J;Y=new vt(((b=d.indexRange)==null?void 0:b.first)||0,((J=d.indexRange)==null?void 0:J.SZ)||0);this.vv.j.get(T)||(T=d.qe||{},T.mimeType=d.mimeType,T.itag=q.itag,T.lastModified=""+(q.lmt||0),T.xtags=q.xtags,d=this.vv,q=fy(""),T=De(T,null),Ly(d,new Bb(q,T,U,Y)))};
  11311. g.Q.eN=function(d){this.yp.eN(d,this.HR())};
  11312. g.Q.onSnackbarMessage=function(d){if(this.policy.T_)this.yp.onSnackbarMessage(d)};
  11313. g.Q.IW=function(d){this.policy.rA&&this.yp.IW(d,this.HR())};
  11314. g.Q.Hx=function(d){this.xK=d;this.wP=(0,g.cj)();this.yp.Hx(d)};
  11315. g.Q.O2=function(d,q,T){this.yp.O2(d,q,T)};
  11316. g.Q.Bq=function(d){d.scope===2&&(this.sV=d);this.yp.Bq(d)};
  11317. g.Q.Ze=function(){this.JJ=!0;this.yp.Ze()};
  11318. g.Q.Km=function(d){this.policy.yl&&this.yp.Km(d)};
  11319. g.Q.kQ=function(d){this.yp.kQ(d,this.HR())};
  11320. g.Q.J3=function(d){d.fW===3&&(this.UO=!0);this.yp.J3(d)};
  11321. g.Q.b8=function(d){this.yp.b8(d)};
  11322. g.Q.Wh=function(d){this.yp.Wh(d)};
  11323. g.Q.canRetry=function(){this.JF();return this.Id.canRetry(!1)};
  11324. g.Q.dispose=function(){if(!this.JF()){g.W.prototype.dispose.call(this);this.Id.dispose();var d;(d=this.Sq)==null||d.dispose();this.XC(-1);this.f9()}};
  11325. g.Q.XC=function(d){this.state=d;qZ(this.yp,this)};
  11326. g.Q.l8=function(){return this.info.l8()};
  11327. g.Q.tV=function(){return this.JJ};
  11328. g.Q.ju=function(){return this.sV};
  11329. g.Q.df=function(d,q,T){T.clipId&&(this.clipId=T.clipId);this.policy.U&&!q&&(this.O5=T.P1);this.cA.df(d,q,T,0);if(this.policy.U5&&this.xK&&this.VU instanceof NO){var Y=this.xK.F5;this.VU.df(T.durationMs/1E3,q,Y>0&&T.P1+1>=Y)}this.cA.vG.get(d).pk=!0};
  11330. g.Q.SN=function(d,q){this.cA.SN(d,q)};
  11331. g.Q.KM=function(d){this.requestIdentifier=d};
  11332. g.Q.kz=function(d){return this.cA.kz(d)};
  11333. g.Q.jN=function(d){return this.cA.jN(d)};
  11334. g.Q.Vs=function(d){return this.cA.Vs(d)};
  11335. g.Q.mF=function(){return this.cA.mF()};
  11336. g.Q.V2=function(){return 1};
  11337. g.Q.HR=function(){return this.VU.requestNumber};
  11338. g.Q.Us=function(){return this.requestIdentifier};
  11339. g.Q.Hl=function(){return this.M3.Hl()};
  11340. g.Q.xf=function(){this.f9()};
  11341. g.Q.f9=function(){this.VU.deactivate();var d;(d=this.xhr)==null||d.abort()};
  11342. g.Q.isComplete=function(){return this.state>=3};
  11343. g.Q.v2=function(){return this.state===3};
  11344. g.Q.E5=function(){return this.state===5};
  11345. g.Q.mq=function(){return this.state===4};
  11346. g.Q.lQ=function(){return this.isComplete()};
  11347. g.Q.G0=function(){return this.state>=1};
  11348. g.Q.W9=function(){return this.policy.zq?this.Id.W9():0};
  11349. g.Q.JD=function(){this.policy.zq&&qZ(this.yp,this)};
  11350. g.Q.vL=function(){return XT2(this.info)};
  11351. g.Q.nA=function(){return this.Id.nA()};
  11352. g.Q.P$=function(){var d=T0D(this.Id);Object.assign(d,snQ(this.info));d.req="sabr";d.rn=this.HR();var q;if((q=this.xhr)==null?0:q.status)d.rc=this.policy.zs?this.xhr.status:this.xhr.status.toString();var T;(q=(T=this.xhr)==null?void 0:T.P4())&&(d.msg=q);this.yf&&(T=wt7(this,this.yf-this.VU.Rh()),d.letm=T.vc,d.mrbps=T.y3,d.mram=T.NA);return d};fTN.prototype.tick=function(d,q){this.ticks[d]=q?window.performance.timing.navigationStart+q:(0,g.cj)()};g.M(mD,g.YP);g.Q=mD.prototype;
  11353. g.Q.DI=function(d,q,T,Y){if(this.policy.H$&&this.policy.U){var e=d.iC||null;e?(UGQ(this,d.sD,Vh(this,d.startTime,d.sD),{iC:e,sD:d.sD,OX:!!q,eh:T},this.j),Y&&this.j&&this.j.wb(d.sD,d.startTime,this.U,(q==null?void 0:q.G)||[],(q==null?void 0:q.U)||[],(q==null?void 0:q.T)||[],T,(q==null?void 0:q.lZ)||0,(q==null?void 0:q.j)||void 0)):this.U===1&&lk(this,5,"noad")}else{var U=!1;this.policy.U&&(U=T?this.rO===d.sD:this.yv===d.sD);if(this.j&&Y&&!U){Y=[];U=[];var b=[],J=void 0,F=0;q&&(Y=q.G,U=q.U,b=q.T,J=
  11354. q.j,F=q.lZ,this.oU("sdai",{sq:d.sD,ssvicpns:Y.join("."),ssvid:U.join(".")}));this.policy.U&&(T?this.rO=d.sD:this.yv=d.sD);this.j.wb(d.sD,d.startTime,this.U,Y,U,b,T,F,J)}this.policy.U?T&&(this.U===1&&lk(this,5,"noad"),d.sD!==((e=this.G)==null?void 0:e.sD)&&(TTI(this,d,q,T),isNaN(d.startTime)||Y$Q(this,d.sD,Vh(this,d.startTime,d.sD),!!q,this.j))):T&&TTI(this,d,q)}};
  11355. g.Q.rV=function(d,q,T){var Y=this.videoTrack.G.index.nC()<=q;this.G={iC:d,sD:q,OX:T};Y&&S6(this,d,q)};
  11356. g.Q.Dn=function(){this.j&&this.j.Dn()};
  11357. g.Q.oU=function(d,q,T){(d!=="sdai"||this.policy.r3||(T===void 0?0:T))&&this.loader.oU(d,q)};
  11358. g.Q.oF=function(d,q){var T=this.videoTrack.G.index.yg(d);if(T>=0){var Y;var e=((Y=q.Rd.V9(T,2))==null?void 0:Y.aI)||"";if(this.policy.U||e)return q.gJ(d,T),vX(this.loader,d,d,T),this.oU("sdai",{cmskpad:1,t:d.toFixed(3),sq:T}),!0}this.oU("sdai",{cmskpad:0,t:d.toFixed(3),sq:T});return!1};g.Q=sdY.prototype;g.Q.xG=function(d,q,T){d=d||this.G;if(this.U.has(d)){if(d=this.U.get(d))d.AN=q,d.vQ.push(T)}else q={AN:q,vQ:[],startTimeSecs:0,sS:0,aq:Date.now()},q.vQ.push(T),this.U.set(d,q)};
  11359. g.Q.IW=function(d,q){var T;if(!((((T=d.Rj)==null?void 0:T.length)||0)<=0)&&(d=d.Rj[0],d.iC)){var Y,e,U,b,J,F;T=new $k(((Y=d.iC)==null?void 0:Y.AK)||0,((e=d.iC)==null?void 0:e.RfU)||0,((U=d.iC)==null?void 0:U.FP)||"",((b=d.iC)==null?void 0:b.identifier)||"",gwD(((J=d.iC)==null?void 0:J.event)||0),(((F=d.iC)==null?void 0:F.AK)||0)*1E3);$GX(this,T,q)}};
  11360. g.Q.Qo=function(d,q){d!==void 0&&this.vy(d);if(this.G&&(d=this.U.get(this.G),d!=null&&d.AN)){var T={cJ:d.vQ,KU:Bx(d.AN||"")||void 0,cuepointId:this.G};d.G5&&(T.zo=d.G5);q&&(T.Ac=BZ(q.split(";")[0]),T.gM=q.split(";")[1]||"");d.D3&&(T.D3=d.D3);return T}};
  11361. g.Q.gJ=function(d,q){this.vy(d);var T=this.U.get(this.G);T?(this.oU("ssskipad",{cid:this.G,sn:q,mt:d.toFixed(3)}),T.G5=q):this.oU("ssskipadfail",{cid:this.G,sn:q,mt:d.toFixed(3)})};
  11362. g.Q.LD=function(){for(var d=g.E(this.U.values()),q=d.next();!q.done;q=d.next())q.value.G5=NaN};
  11363. g.Q.vy=function(d,q){q&&(this.j=q);if(this.G&&(q=this.U.get(this.G))&&q.startTimeSecs<=d&&d<=q.startTimeSecs+q.sS)return;this.G="";q=g.E(this.U.entries());for(var T=q.next();!T.done;T=q.next()){var Y=g.E(T.value);T=Y.next().value;Y=Y.next().value;var e=void 0,U=void 0,b=void 0;if(((e=Y)==null?void 0:e.startTimeSecs)<=d&&d<=((U=Y)==null?void 0:U.startTimeSecs)+((b=Y)==null?void 0:b.sS)){this.G=T;break}}};g.M(eM,g.W);eM.prototype.J8=function(d,q,T){T=T===void 0?{}:T;this.policy.hq=Y8(d,T,this.T,q===void 0?!1:q)};sz.prototype.NH=function(d){var q=this;if(this.policy.lL){var T=new Set(d);T.size===this.z2.size&&[].concat(g.RQ(T)).every(function(Y){return q.z2.has(Y)})||(this.loader.oU("lwnmow",{itagDenylist:[].concat(g.RQ(d)).join(",")}),this.loader.yD(!!T.size),this.K=-1,this.z2=T,$_(this,this.G),this.RU=!0)}};
  11364. sz.prototype.J8=function(d,q,T){T=T===void 0?{}:T;var Y=this.policy.hq;this.S.J8(d,q===void 0?!1:q,T);if(Y!==this.policy.hq){$_(this,this.G);gf(this);var e,U;Y>this.policy.hq&&((e=this.j)==null?0:kV(e.info))&&((U=this.nextVideo)==null||!kV(U.info))&&(this.lr=!0)}};x_.prototype.Ii=function(d){this.timestampOffset=d;this.flush()};
  11365. x_.prototype.flush=function(){if(this.G.pos>0){var d={a:this.track.JE(),u:this.G.VH(),pd:Math.round(this.T),ad:Math.round(this.j)},q=this.U;if(q){var T=q.G.info;d.itag=T.itag;T.G&&(d.xtags=T.G);d.sq=q.sD;d.st=q.startTime;d.sd=q.duration;this.track.policy.Ah&&(d.si=q.jt());q.S&&(d.esl=q.U+q.j);q.qQ()&&(d.eos=1)}isNaN(this.timestampOffset)||(d.to=this.timestampOffset);var Y;if(q=(Y=this.track.RN)==null?void 0:Y.BF({})){for(var e in q)this.X[e]!==q[e]&&(d["sb_"+e]=q[e]);this.X=q}this.track.oU("sbu",
  11366. d);this.G.reset();this.buffered=[];this.S=this.j=this.T=0;this.timestampOffset=this.U=void 0}};h5.prototype.dispose=function(){this.UD=!0};
  11367. h5.prototype.JF=function(){return this.UD};
  11368. g.M(jM,Error);pP.prototype.skip=function(d){this.offset+=d};
  11369. pP.prototype.n3=function(){return this.offset};g.Q=lej.prototype;g.Q.uN=function(){return this.U};
  11370. g.Q.N1=function(){return this.U.length?this.U[this.U.length-1]:null};
  11371. g.Q.ZE=function(){this.U=[];t5(this);nP(this)};
  11372. g.Q.Ad=function(d){this.qk=this.U.shift().info;d.info.equals(this.qk)};
  11373. g.Q.jN=function(){return g.yC(this.U,function(d){return d.info})};
  11374. g.Q.JE=function(){return!!this.S.info.audio};
  11375. g.Q.isDrm=function(){return!!this.S.info.ac};
  11376. g.Q.getDuration=function(){return this.S.index.As()};g.M(dK,hk);g.Q=dK.prototype;g.Q.onStateChange=function(){this.JF()&&(Da(this.cA,this.formatId),this.G.dispose())};
  11377. g.Q.P$=function(){var d=B0f(this.cA,this.formatId),q;var T=((q=this.cA.vG.get(this.formatId))==null?void 0:q.bytesReceived)||0;var Y;q=((Y=this.cA.vG.get(this.formatId))==null?void 0:Y.Mq)||0;return{expected:d,received:T,bytesShifted:q,sliceLength:wK(this.cA,this.formatId),isAnyMediaEndReceived:this.cA.Cb(this.formatId)}};
  11378. g.Q.oh=function(){return 0};
  11379. g.Q.fZ=function(){return!0};
  11380. g.Q.kz=function(){return this.cA.kz(this.formatId)};
  11381. g.Q.o$=function(){return[]};
  11382. g.Q.Vs=function(){return this.cA.Vs(this.formatId)};
  11383. g.Q.nA=function(){return this.lastError};
  11384. g.Q.W9=function(){return 0};g.M(LP,g.W);g.Q=LP.prototype;g.Q.JE=function(){return!!this.G.info.audio};
  11385. g.Q.N1=function(){return this.T.N1()};
  11386. g.Q.Ad=function(d){this.T.Ad(d);var q;(q=this.B)!=null&&(q.S.add(d.info.sD),q.G=MKf(q,q.wz,q.cK,d,q.G),q.j=d,q.X=(0,g.cj)());this.Vv=Math.max(this.Vv,d.info.G.info.Vv||0)};
  11387. g.Q.getDuration=function(){return this.G.index.As()};
  11388. g.Q.ZE=function(){TM(this);this.T.ZE()};
  11389. g.Q.K7=function(){return this.T};
  11390. g.Q.isRequestPending=function(d){return this.j.length?d===this.j[this.j.length-1].info.Zw[0].sD:!1};
  11391. g.Q.Ii=function(d){var q;(q=this.B)==null||q.Ii(d);var T;(T=this.K)==null||T.Ii(d)};
  11392. g.Q.oU=function(d,q){this.loader.oU(d,q)};
  11393. g.Q.Rf=function(){return this.loader.Rf()};
  11394. g.Q.dispose=function(){var d;(d=this.K)==null||d.flush();g.W.prototype.dispose.call(this)};g.M(eB,g.W);eB.prototype.j=function(){this.U++>15||(this.G=!this.G,new Wz7(this.loader,this.policy,this.Tq,this.zG,this.G),this.delay.start())};
  11395. g.Q=Wz7.prototype;g.Q.vx=function(){};
  11396. g.Q.aW=function(){};
  11397. g.Q.Q2=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.eH()===this.size)this.loader.oU("rqs",this.getInfo());else{var d="net.connect";this.xhr.status>200?d="net.badstatus":this.xhr.ZL()&&(d="net.closed");this.onError(d)}};
  11398. g.Q.onError=function(d){var q=this;this.loader.handleError(d,this.getInfo());ii("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(T){q.loader.oU("pathprobe",T)},function(T){q.loader.handleError(T.errorCode,T.details)})};
  11399. g.Q.getInfo=function(){var d=this.timing.Xq();d.shost=SK(this.location.Wf);d.pb=this.size;return d};g.M(UY,g.W);
  11400. UY.prototype.L=function(d,q){if(d.L){this.vv.isLive?(d=this.vv.QX&&this.vv.T?d.G.UX(this.vv.QX,!1):d.G.Fg(Infinity),d.MM=this.MM):d=d.G.UX(0,!1);if(this.lr){var T=this.lr;d.MM===0&&(d.S=T.B)}else d.S=this.K;return d}T=d.U;if(!T.G.pj())return T.G.gr()?(d=Sq(this.S,d.G.info.Vv,q.G.info.Vv,0),d=T.G.Kh(T,d)):d=T.G.NJ(T),d;var Y=T.X-this.loader.getCurrentTime(),e=!T.range||T.j===0&&T.U===0?0:T.range.length-(T.U+T.j),U=T.G;this.Ub(d,Y)&&e===0&&(this.vv.isManifestless?U=d.G:(U=T.startTime+YcX,T.j&&(U+=T.duration),
  11401. Uj(d,U),T=d.U,U=T.G));U.gr()?(e=this.j,q=Sq(this.S,U.info.Vv,q.G.info.Vv,Y,e.T.length>0&&e.B===0&&this.loader.Uv),Y=vo(d),d=T.G.Kh(T,q),(q=d.j)&&d.Zw.length>1&&(Y||d.zG.j||d.Zw[0].G!==T.G?d=T.G.Kh(T,d.Zw[0].j):(Y=d.Zw[d.Zw.length-1],U=Y.j/q,!Y.S&&U<.4&&(d=T.G.Kh(T,q-Y.j))))):(T.sD<0&&(q=bP(T),q.pr=""+d.j.length,this.loader.isSeeking()&&(q.sk="1"),q.snss=T.L,this.loader.oU("nosq",q)),d=U.NJ(T));if(this.policy.rO)for(T=g.E(d.Zw),q=T.next();!q.done;q=T.next())q.value.type=6;return d};
  11402. UY.prototype.Ub=function(d,q){if(!vo(d)||!d.G.pj())return!1;var T=this.j.RU||j9Q(d)||q<=this.policy.g5||this.j.lr;this.logger.debug(function(){return"ready to adapt: "+T+", upgrade pending: "+j9Q(d)+", health: "+q});
  11403. return T};
  11404. UY.prototype.ir=function(){g.W.prototype.ir.call(this)};
  11405. var YcX=2/24;g.M(BM,g.W);BM.prototype.nJ=function(d,q,T){var Y;var e=((Y=this.U)==null?void 0:Y.reason)==="m"?"m":this.U&&o8_(this,this.U)?this.U.reason:"a";this.loader.nJ(new Y_(d,e,T));Fw(this.loader,q,d,!0)};
  11406. BM.prototype.X3=function(d,q){for(var T=g.E(this.rO),Y=T.next();!Y.done;Y=T.next())if(Y.value.id===d)return this.S=this.vv.G[d],BX(this.xo)&&(this.lr=!0),d=new Y_(this.S,q?"t":"m"),q&&(this.L=!0),d;this.j=[];return null};
  11407. BM.prototype.J8=function(d,q,T){T=T===void 0?{}:T;this.G.J8(d,q===void 0?!1:q,T)};LH.prototype.setData=function(d,q,T){var Y=this;T=T===void 0?{}:T;if(q==null?0:q.Qp)this.W0=u0N(this,q,T),d.jd=this.zG.jd();if(this.l8())return!0;this.data=d;this.G=Ui6(d,function(e,U){var b;(b=Y.yp)==null||b.oN(e,U)},q==null?void 0:q.j);
  11408. if(!this.G)return!1;this.U=g.S2(this.G,cog);return!0};
  11409. LH.prototype.l8=function(){return this.requestType===1};
  11410. LH.prototype.Wm=function(){var d;return((d=this.yp)==null?void 0:d.Wm())||0};
  11411. LH.prototype.isDecorated=function(){var d;return!((d=this.data)==null||!d.Gs)};$i_.prototype.encrypt=function(d){(0,g.cj)();return this.G.G?yJj(this,d,this.iv):(new g.gE(this.G.U)).encrypt(d,this.iv)};
  11412. $i_.prototype.decrypt=function(d,q){(0,g.cj)();return this.G.G?yJj(this,d,q):(new g.gE(this.G.U)).decrypt(d,q)};g.M(kW,g.W);kW.prototype.j=function(d,q){if(q){q=q instanceof g.Ig?q:PM(this,q);var T;((T=this.G.get(d))==null?void 0:SK(T.location))!==SK(q)&&this.G.set(d,new ElY(q,d))}else this.G.delete(d)};
  11413. kW.prototype.load=function(){var d=this,q,T,Y,e,U,b,J,F,N,R;return g.G(function(x){switch(x.U){case 1:q=d.G.get(0);g.jD(x,2);var y;if(y=q&&!d.U)y=SK(q.location),y=d.U===a3(y);if(y){x.tF(4);break}return g.B(x,MZX(d,d.U?2:0),5);case 5:if(T=x.G)d.j(0,T),vI(T)&&d.j(1,og(T));case 4:g.ZX(x,3);break;case 2:Y=g.nN(x);g.OL(Y);if(!d.U){x.tF(3);break}d.U=!1;return g.B(x,d.load(),7);case 7:return x.return();case 3:if(!d.Pv.experiments.Wv("html5_onesie_probe_ec_hosts")){x.tF(0);break}g.jD(x,9);e=d;U=e.j;b=3;return g.B(x,
  11414. MZX(d,1),11);case 11:return U.call(e,b,x.G),J=d,F=J.j,N=4,g.B(x,MZX(d,2),12);case 12:F.call(J,N,x.G);g.ZX(x,0);break;case 9:R=g.nN(x),g.OL(R),g.E6(x)}})};
  11415. kW.prototype.L=function(){var d=this,q,T;return g.G(function(Y){g.zh(d.B);q=g.Yv(d.Pv.experiments,"html5_onesie_prewarm_max_lact_ms");if(QF()>=q)return Y.return();(T=d.G.get(0))&&Qn1(d,T);g.E6(Y)})};
  11416. var hq1={olD:0,ElF:1,pKO:2,enF:3,fcf:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};jnI.prototype.decrypt=function(d){var q=this,T,Y,e,U,b,J;return g.G(function(F){switch(F.U){case 1:if(q.G.length&&!q.G[0].isEncrypted)return F.return();q.U=!0;q.Og.D$("omd_s");T=new Uint8Array(16);sn()?Y=new g.FN(d):e=new g.gE(d);case 2:if(!q.G.length||!q.G[0].isEncrypted){F.tF(4);break}U=q.G.shift();if(!Y){b=e.decrypt($X(U.buffer),T);F.tF(5);break}return g.B(F,Y.decrypt($X(U.buffer),T),6);case 6:b=F.G;case 5:J=b;for(var N=0;N<T.length;N++)if(T[N]===255)T[N]=0;else{T[N]+=1;break}N=q.Og;var R=U.videoId,
  11417. x=U.ra,y=U.formatId,h=new e2([J]),H;(H=CH(N.u$,R))==null||zM(H,x,y,h);F.tF(2);break;case 4:q.Og.D$("omd_c"),uo(q),q.U=!1,q.Og.zU(),g.E6(F)}})};
  11418. jnI.prototype.enqueue=function(d,q,T,Y,e){this.G.push({videoId:d,ra:q,formatId:T,buffer:Y,isEncrypted:e});this.U||uo(this)};var K86=!!Uint8Array.prototype.copyWithin,DM=[],ain=[],ZIg=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],fH=[],wZ=[],z$=[],AJY=[];var GFQ="DecompressionStream"in window;g.M(kF6,kI);g.Q=kF6.prototype;g.Q.zU=function(){this.u$.zU()};
  11419. g.Q.GU=function(d,q){switch(d){case 10:var T=r5(q,thn);d=T.Jmr;var Y=!1;switch(d){case 0:this.T=!T.xV.hQ;this.iv=T.xV.iv;break;case 2:break;case 23:var e=this.u$;T=T.UkO;e.D$("omp_r");T.videoId&&(e.Xz=T.videoId);e.Xz!==e.videoData.videoId&&(e.videoData.wlg=e.Xz,e.oU("ompp","vid."+e.Xz));e.Xo=!0;break;case 24:T=this.u$;T.D$("omp_c");T.Xo=!1;T.NL=!1;var U=(e=T.lO)==null?void 0:e.get(T.Xz);T.notifySubscribers(T.Xz);U!=null&&(U.G=!0);I7(T);break;default:Y=!0}this.u$.Fu&&this.u$.oU("ombup","id.10;pt."+
  11420. d+";len."+q.totalLength+(Y?";ignored.1":""));this.j=d;break;case 11:W8I(this,q);break;case 12:this.tT(q,!0);break;case 37:q=r5(q,BpN);(q.P8||q.W_)&&q.videoId&&this.u$.Gx.set(q.videoId,q);break;case 60:this.y6(q);break;case 47:this.N("html5_server_playback_start_policy")&&(q=r5(q,knI),this.u$.playbackStartPolicy=q);break;case 35:this.EZ(q);break;case 45:this.eN(q);break;case 66:this.b8(q);break;default:this.u$.Fu&&this.u$.oU("ombup","id."+d+";len."+q.totalLength+";ignored.1")}};
  11421. g.Q.Hx=function(d){this.u$.Hx(d)};
  11422. g.Q.y6=function(d){d=r5(d,Rg);this.u$.y6(d)};
  11423. g.Q.eN=function(d){d=r5(d,xe);this.u$.eN(d)};
  11424. g.Q.pg=function(d){var q=d.ra,T=d.VP,Y=d.aV,e=d.g4,U=d.P1,b=d.startMs,J=d.durationMs,F=d.timeRange,N=d.Ns,R=SL(d),x=RkR.has(tQ[""+d.itag]);T&&this.D$(x?"oais_r":"ovis_r");var y=this.G[R]!==void 0;this.u$.Fu&&this.u$.oU("ombup","id.20;hid."+q+";fid."+R);var h=d.videoId||"";this.U[q]=R;this.S[q]=h;y||(this.G[R]={videoId:h,Cc:!1,JE:x,headers:[]});this.G[R].headers.push(d);this.u$.df(h,R,x,{ra:q,VP:!!T,aV:Y!=null?Y:-1,P1:U!=null?U:-1,startMs:b!=null?b:-1,durationMs:J!=null?J:-1,Ns:N!=null?N:0,g4:e,timeRange:F})};
  11425. g.Q.tT=function(d,q){var T=FJ(d,0);this.u$.Fu&&this.u$.oU("ombup","id."+(q?12:21)+";len."+d.totalLength+";hid."+T);if(d.totalLength!==1){d=d.split(1).Kp;var Y=this.U[T]||null,e=this.S[T]||"";Y&&(this.w1(this.G[Y].JE?"oafs_r":"ovfs_r"),this.queue.enqueue(e,T,Y,d,q))}};
  11426. g.Q.SN=function(d){var q=FJ(d,0);this.u$.Fu&&this.u$.oU("ombup","id.22;len."+d.totalLength+";hid."+q);d=this.U[q]||null;var T=this.S[q]||"";if(d)if(this.N("html5_use_ump_request_slicer")){var Y=this.queue;Y.G.push({videoId:T,ra:q,formatId:d,isEncrypted:!1,NV:!0});Y.U||uo(Y)}else this.u$.SN(T,q,d)};
  11427. g.Q.KM=function(d){this.u$.KM(d)};
  11428. g.Q.aX=function(d,q){var T=this,Y,e,U,b,J,F,N;return g.G(function(R){switch(R.U){case 1:T.u$.aX();Y=$X(d);if(!q){U=Y;R.tF(2);break}return g.B(R,vlI(T.u$,Y,T.iv),3);case 3:U=R.G;case 2:e=U;if(!T.u$.enableCompression){R.tF(4);break}return g.B(R,CSf(T,e),5);case 5:e=R.G;case 4:try{b=r5(e,yoN)}catch(y){return J=y instanceof Error?{name:y.name,message:y.message}:{},J.webcrypto=""+ +!!sn(),J.enc=""+ +T.T,F=new g.xV("onesie.response.parse",J),R.return(Promise.reject(F))}var x=b;if(x.XI!==1)throw new g.xV("onesie.response.badproxystatus",
  11429. {st:x.XI,webcrypto:!!sn(),textencoder:!!g.oQ.TextEncoder});if(x.httpStatus!==200)throw new g.xV("onesie.response.badstatus",{st:x.httpStatus});N=g.yA(b.body);return R.return(N)}})};
  11430. g.Q.EZ=function(d){this.N("html5_consume_onesie_next_request_policy_for_sabr")&&(d=r5(d,Gn6),this.u$.EZ(d))};
  11431. g.Q.b8=function(d){d={Z_:ZS(new Mt(d),1,CG7)};this.u$.b8(d)};
  11432. g.Q.D$=function(d){this.u$.D$(d)};
  11433. g.Q.w1=function(d){return this.u$.w1(d)};
  11434. g.Q.N=function(d){return this.u$.N(d)};g.M(SB,g.W);g.Q=SB.prototype;g.Q.mF=function(d){var q,T;return((T=(q=this.lO)==null?void 0:q.get(d))==null?void 0:T.mF())||[]};
  11435. g.Q.Vs=function(d,q){var T;return!((T=CH(this,q))==null||!T.Vs(d))};
  11436. g.Q.kz=function(d,q){var T;return((T=CH(this,q))==null?void 0:T.kz(d))||[]};
  11437. g.Q.jN=function(d,q){var T;return((T=CH(this,q))==null?void 0:T.jN(d))||[]};
  11438. g.Q.XC=function(d){this.state=d;this.notifySubscribers()};
  11439. g.Q.l8=function(){return!1};
  11440. g.Q.tV=function(){return!1};
  11441. g.Q.ju=function(){};
  11442. g.Q.D$=function(d){this.G2.D$(d)};
  11443. g.Q.w1=function(d){return this.G2.w1(d)};
  11444. g.Q.hd=function(d,q,T,Y){T||this.VU.hd(Y);return!1};
  11445. g.Q.P6=function(d,q){this.Og.P6(d,q)};
  11446. g.Q.l6=function(){this.D$("orfb");this.SA=!0;if(ol6(this)&&this.xhr){var d={rc:this.xhr.status,lb:this.xhr.eH(),rt:(1E3*Wp_(this.VU)).toFixed(),shost:g.sb(this.S4),trigger:"o1"};this.oU("pathprobe",RI(d))}};
  11447. g.Q.aX=function(){this.D$("opr_r");this.wN=!0};
  11448. g.Q.df=function(d,q,T,Y){if(this.lO){if(!this.lO.has(d)){var e=new WX(this);this.lO.set(d,e);g.C(this,e)}var U;(U=this.lO.get(d))==null||U.df(q,T,Y);I7(this);T||(this.O5=Y.P1)}else I7(this)};
  11449. g.Q.Hx=function(d){this.Ks=d;d.BH!=null&&this.G2.oP(d.BH)};
  11450. g.Q.y6=function(d){this.Sg=d};
  11451. g.Q.EZ=function(d){d.videoId&&this.Nw.set(d.videoId,d)};
  11452. g.Q.zU=function(){if(this.lO)for(var d=g.E(this.lO.keys()),q=d.next();!q.done;q=d.next()){var T=void 0;(T=this.lO.get(q.value))==null||T.Om()}};
  11453. g.Q.eN=function(d){this.qz=d};
  11454. g.Q.b8=function(d){if(d==null?0:d.Z_)if(d=d.Z_.PL){d=g.E(d);for(var q=d.next();!q.done;q=d.next())q=q.value,q.videoId&&this.Xe.set(q.videoId,q)}};
  11455. g.Q.oU=function(d,q,T){this.G2.oU(d,q,T===void 0?!1:T)};
  11456. g.Q.SN=function(d,q,T){var Y;(Y=CH(this,d))==null||Y.SN(q,T)};
  11457. g.Q.KM=function(d){this.yy.set(d.videoId,d)};
  11458. g.Q.fetch=function(){var d=this,q,T,Y,e,U,b,J,F,N,R,x,y,h,H,a,p,t,n,K,P,w,l,m,b_,x2,JY;return g.G(function(s6){switch(s6.U){case 1:d.logger.debug("Onesie fetch started.");d.Xa?d.aJ.start():d.fD.start();d.D$("or_i");q=d.Pv.experiments.Wv("html5_onesie_verbose_timing");T={};Y=(0,g.cj)();e=function(qH){q&&(T[qH]=(0,g.cj)()-Y)};
  11459. e("loc_s");if(U=Di_(d.videoData,d.ow)){s6.tF(2);break}e("loc_async");b=g.Yv(d.Pv.experiments,"html5_onesie_redirector_timeout_ms");return g.B(s6,wT_(d.videoData,d.ow,b),3);case 3:U=s6.G;case 2:if(!U)return d.logger.info("Onesie URL creation failed."),J={url:"0"},F=new g.xV("onesie.unavailable.hotconfig",J),d.fail(F),s6.return(d.l3);d.W0=SK(U);e("loc_e");N=g.rn(d.Pv,g.$4(d.videoData));R=!!N.G;if(!R){x=N.getValue();s6.tF(4);break}return g.B(s6,N.G,5);case 5:x=s6.G;case 4:y=x;d.N("html5_log_onesie_empty_oauth")&&
  11460. !y&&d.oU("no_token",{async:R});e("oauth");h=zq6(d.playerRequest,d.Pv,d.videoData,y,a3(d.W0));g.jD(s6,6);!d.Pv.Pf||(a=h)!=null&&a.sC||!d.N("html5_wasm_onesie_request_encryption")||(e("or_s_wasm"),H=Smn(h,d.Ge,d.Pv,d.G2,d.UH.onesieUstreamerConfig,(p=d.videoData.kt)==null?void 0:p.vO));if(H){s6.tF(8);break}if(!lig(d,h)){e("or_s_sync");H=Ii7(h,d.Ge,d.Pv,d.G2,d.UH.onesieUstreamerConfig,(t=d.videoData.kt)==null?void 0:t.vO);s6.tF(8);break}e("or_s_async");return g.B(s6,miX(h,d.Ge,d.Pv,d.G2,d.UH.onesieUstreamerConfig,
  11461. (n=d.videoData.kt)==null?void 0:n.vO),10);case 10:H=s6.G;case 8:g.ZX(s6,7);break;case 6:return K=g.nN(s6),d.logger.info("Failed to create OnesieRequestProto."),d.fail(K),s6.return(d.l3);case 7:return e("or_e"),q&&d.oU("oreqvt",T),d.enableCompression=H.innertubeRequest.Fl,d.MY=((P=H)==null?void 0:(w=P.zd)==null?void 0:w.cg)||0,d.D$("osor"),l=GHN(),m=g.S2(H,vg6),b_={method:"POST",body:m,headers:{"Content-Type":"text/plain",Referer:location.origin}},x2=d.N("html5_onesie_media_capabilities"),fi_(U,d.videoData,
  11462. dRf(d),x2),d.logger.debug("Starting Onesie network request."),d.Fu&&d.oU("ombrs","1"),JY=d.G2.C().schedule,d.VU=new NO(d,{Tq:JY,Y4:d.Fu,D1:function(qH,O6){d.G2.d0(qH,O6)},
  11463. q4:!0}),U.set("rn",""+d.VU.requestNumber),d.S4=U.Hl(),Fs(d.VU,d.S4),d.D$("or_p"),d.xhr=Qh(new Wt(U),l,d.VU,QU,b_),d.vn.start(),d.G2.onPlayerRequestSent(d.videoData.videoId),s6.return(d.l3)}})};
  11464. g.Q.V2=function(){return 2};
  11465. g.Q.vx=function(){this.D$("orh_r")};
  11466. g.Q.aW=function(){!this.SA&&this.xhr.eH()&&this.l6();if(this.Iw&&!this.Xa){var d;(d=this.CJ)==null||d.start()}this.L3()};
  11467. g.Q.Q2=function(d){d=d===void 0?!1:d;this.logger.debug("onXhrDone");this.L3();if(!(this.JF()||this.state>=4)){var q=mc(this),T=this.xhr;q.rc=T.status;d&&(q.ab=!0);if(T.P4()){var Y="onesie.net";q.msg=T.P4()}else T.status>=400?Y="onesie.net.badstatus":T.ly()?this.wN||(Y="onesie.response.noplayerresponse"):Y=T.status===204?"onesie.net.nocontent":"onesie.net.connect";Y?this.fail(new g.xV(Y,q)):(this.D$("or_fs"),this.VU.Ab((0,g.cj)(),T.eH(),0),this.XC(4),this.Fu&&this.oU("rqs",q));this.Fu&&this.oU("ombre",
  11468. "ok."+ +!Y);this.NL=!1;I7(this);PS2(this.Og);if(!this.Xa){this.fD.stop();var e;(e=this.CJ)==null||e.stop()}var U;if(d=(U=this.ow)==null?void 0:cJg(U))for(U=0;U<d.length;U++)this.oU("pathprobe",d[U])}};
  11469. g.Q.xf=function(){if(this.playerResponse&&this.xhr&&this.lO)for(var d=g.E(this.lO.entries()),q=d.next();!q.done;q=d.next())if(q=g.E(q.value),q.next(),q.next().value.U){this.xhr.abort();this.Q2(!0);break}};
  11470. g.Q.C=function(){return this.Pv};
  11471. g.Q.N=function(d){return this.Pv.N(d)};
  11472. g.Q.G2w=function(){if(ol6(this)&&this.ow&&(!this.SA||this.N("html5_onesie_probe_ec_hosts"))){var d=this.ow;if(d.Pv.experiments.Wv("html5_onesie_probe_ec_hosts")){var q,T=(q=d.G.get(3))==null?void 0:SK(q.location);T&&WM(d,T,"osc",this);var Y;(T=(Y=d.G.get(4))==null?void 0:SK(Y.location))&&WM(d,T,"ocy",this)}else{var e;(Y=(e=d.G.get(1))==null?void 0:SK(e.location))&&WM(d,Y,"o2",this);(Y=(T=d.G.get(2))==null?void 0:SK(T.location))&&WM(d,Y,"o3",this)}}};
  11473. g.Q.zy=function(){if(!this.JF()&&!this.isComplete()){if(this.Iw){if((0,g.cj)()-this.VU.L>1E3){var d;(d=this.VU)==null||d.uc((0,g.cj)());d=mc(this);if(this.Pv.uF()&&this.xhr instanceof HX){var q=this.xhr;d.xrs=q.xhr.readyState;d.xpb=q.G.totalLength;d.xdc=q.T}this.fail(new g.xV("net.timeout",d))}}else(0,g.cj)()-this.VU.G>1E4&&((q=this.VU)==null||q.uc((0,g.cj)()),this.vt());this.isComplete()||this.aJ.start()}};
  11474. g.Q.vt=function(){this.logger.info("Onesie request timed out");this.NL=!1;if(!I7(this)){var d=mc(this);d.timeout="1";this.fail(new g.xV("onesie.request",d))}};
  11475. g.Q.fail=function(d){var q=this;d=hQ(d);this.Iw?this.G2.jT(d):(this.l3.reject(d),this.Iw=!0);PS2(this.Og);this.Xa||this.fD.stop();this.D$("or_fe");var T,Y;(T=this.ow)==null||(Y=cJg(T))==null||Y.forEach(function(e){q.oU("pathprobe",e)});
  11476. this.XC(5);this.dispose()};
  11477. g.Q.isComplete=function(){return this.state>=3};
  11478. g.Q.mq=function(){return this.state===4};
  11479. g.Q.lQ=function(d){var q,T;return this.isComplete()||!!((q=this.lO)==null?0:(T=q.get(d))==null?0:T.G)};
  11480. g.Q.v2=function(){return!1};
  11481. g.Q.E5=function(){return this.state===5};
  11482. g.Q.notifySubscribers=function(d){for(var q=0;q<this.Mx.length;q++)d&&this.Mx[q].Sh()!==d||qZ(this.Mx[q],this)};
  11483. g.Q.vL=function(){return this.MY};
  11484. g.Q.ir=function(){this.playerResponse="";var d;(d=this.xhr)==null||d.abort();PS2(this.Og);this.PK.dispose();var q;(q=this.CJ)==null||q.dispose();this.XC(-1);this.Mx=[];g.W.prototype.ir.call(this)};
  11485. g.Q.L3=function(){try{var d=this.xhr;d.eH()>102400&&!this.sR&&(this.D$("or100k"),this.sR=!0);if(d.w3()){var q=d.by(),T=q.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+T});
  11486. this.Fu&&this.oU("ombrss","len."+T);this.PK.feed(q)}if(this.lO)for(var Y=g.E(this.lO.keys()),e=Y.next();!e.done;e=Y.next()){var U=e.value;d=void 0;(d=this.lO.get(U))==null||d.Om();this.notifySubscribers(U)}}catch(b){this.fail(b)}};
  11487. g.Q.HR=function(){return this.VU.requestNumber};
  11488. g.Q.Us=function(d){return this.yy.get(d)};g.M(Tdf,g.W);g.Q=Tdf.prototype;g.Q.Sc=function(d,q){this.UD=void 0;ywj(this);xRj(this,d,q)};
  11489. g.Q.fT=function(d){if(this.G.length===0)return!1;var q=this.G[0];return q instanceof SB?d===this.loader.getCurrentTime()*1E3:!(q instanceof ik&&JJX(q.info))&&Math.abs(q.vL()-d)<50};
  11490. g.Q.EZ=function(d){this.U=d;this.UD=(0,g.cj)()+(d.backoffTimeMs||0)};
  11491. g.Q.Cm=function(d,q){if(d.action===void 0){var T=this.G2.Eq();T!==void 0&&this.loader.Md(T)}else if(d.action!==0||!this.qk)if(d.action===0&&this.policy.Kd&&(d.action=2),d.Ym==="sabr.malformed_config"&&this.policy.j8>0&&this.xx++<this.policy.j8)this.loader.handleError("sabr.malformed_config",{action:d.action,rn:q,retry:this.xx},0);else switch(d.Ym==="sabr.malformed_config"&&this.policy.j8>0&&(d.action=2),T={},T.reason=d.Ym,T.action=d.action,T.rn=q,d.action){case 1:this.policy.U&&this.B&&this.B.JI(void 0,
  11492. void 0,T);break;case 0:this.qk=!0;this.videoData.y5()&&this.policy.U&&this.B&&this.B.JI(void 0,void 0,T,!1);this.loader.f7(T);break;case 2:M5H(d.Ym)!=="sabr.config"&&delete T.reason;this.loader.handleError(M5H(d.Ym),T,1);break;case 3:this.policy.Qp&&((d=this.vv.B)!=null&&(d.B=!0),this.loader.handleError("sabr.hostfallback",T))}};
  11493. g.Q.Bq=function(d){d&&(this.loader.oU("sabrctxt",{onsbrctxt:d.type,scp:d.scope,dflt:d.sendByDefault}),d.type&&d.sendByDefault&&this.videoData.Bv.add(d.type),d.scope!==2&&(d.type&&this.videoData.sabrContextUpdates.set(d.type,d),this.G2.Bq(d)))};
  11494. g.Q.Ze=function(){};
  11495. g.Q.eN=function(d,q){if(d.HT!==void 0&&d.uW){var T=d.HT/d.uW;this.audioTrack.L=!1;this.videoTrack.L=!1;if(this.policy.UD||this.policy.Ox||this.policy.m1)this.loader.AE.G=!1;var Y=this.loader.Xt(T,1);this.policy.wO&&this.policy.U&&this.loader.vy(Y,q);this.G2.getCurrentTime()!==T&&(q={b$:"sabr_seek",UI:!0,wg:!0},d.seekSource&&(q.seekSource=d.seekSource),Jk(this.loader,T+.1,q))}};
  11496. g.Q.onSnackbarMessage=function(d){this.G2.publish("onSnackbarMessage",d)};
  11497. g.Q.IW=function(d,q){this.policy.rA&&this.K&&this.loader.IW(d,q)};
  11498. g.Q.Hx=function(d){d.F5&&d.lB&&vb(this.vv,d.F5,d.lB);this.policy.eC&&(d.vY&&d.XX&&(this.vv.m1=d.vY/d.XX),d.QC&&d.Mw&&(this.vv.Gr=d.QC/d.Mw));of(this.videoData)&&!this.videoData.yv&&d.lB&&this.loader.Xt(d.lB,1E3);d.BH!=null&&this.G2.oP(d.BH);this.policy.JW&&d.Ok&&(d=((0,g.cj)()-d.Ok)/1E3,this.loader.S9.gH(1,d))};
  11499. g.Q.J3=function(d){this.loader.J3(d)};
  11500. g.Q.JO=function(d){return this.videoData.Bv.has(d)};
  11501. g.Q.O2=function(d,q,T){this.policy.j&&this.loader.oU("sabrctxtplc",{start:d?d.join("_"):"",stop:q?q.join("_"):"",discard:T?T.join("_"):""});if(d){d=g.E(d);for(var Y=d.next();!Y.done;Y=d.next())this.videoData.Bv.add(Y.value)}if(q)for(q=g.E(q),d=q.next();!d.done;d=q.next())d=d.value,this.videoData.Bv.has(d)&&this.videoData.Bv.delete(d);if(T)for(T=g.E(T),q=T.next();!q.done;q=T.next())if(q=q.value,this.videoData.sabrContextUpdates.has(q)&&(this.videoData.sabrContextUpdates.delete(q),q===3&&(this.videoData.TE=
  11502. "")),this.policy.K&&this.G.length)for(d=g.E(this.G),Y=d.next();!Y.done;Y=d.next())if(Y=Y.value,!(Y instanceof SB)){var e=void 0;((e=Y.sV)==null?void 0:e.type)===q&&(Y.sV=void 0)}};
  11503. g.Q.Km=function(){};
  11504. g.Q.Dv=function(d){this.L=d};
  11505. g.Q.mD=function(d){this.X=d};
  11506. g.Q.kQ=function(d,q){YW(this.policy,d,4,q)};
  11507. g.Q.b8=function(d){if(d==null?0:d.Z_)if(d=d.Z_.PL){d=g.E(d);for(var q=d.next();!q.done;q=d.next())if(q=q.value,q.formatId){var T=this.vv.j.get(SL(q.formatId));T&&T.info&&(T.info.debugInfo=q.debugInfo)}}};
  11508. g.Q.Wh=function(d){this.G2.publish("reloadplayer",d)};
  11509. g.Q.Sh=function(){return this.G2.Sh()||""};
  11510. g.Q.Wm=function(){var d=is(this.audioTrack,!0)*1E3,q=is(this.videoTrack,!0)*1E3;return Math.min(d,q)};
  11511. g.Q.oN=function(d,q){this.loader.oU(d,q)};
  11512. g.Q.FO=function(d){Bmf(this.loader,jd_(this.Fw,d))};
  11513. g.Q.ir=function(){g.W.prototype.ir.call(this);this.U=void 0;xRj(this,!0,"i");this.G=[]};AwD.prototype.VI=function(){this.isSeeking=!0;this.G===1&&jf6(this.T);this.G===0&&this.Mp.hm("transitiondetector");this.X=!1};KJ_.prototype.Yo=function(d,q){if(this.T)return WJj(this,q);if(q=sj(d)){var T=q.G;T&&T.j&&T.G&&(d=d.j.length?d.j[0]:null)&&d.state>=2&&!d.E5()&&d.info.MM===0&&(this.T=d,this.L=T,this.U=q.info,this.X=this.startTimeSecs=Date.now()/1E3,this.S=this.U.startTime)}return NaN};
  11514. KJ_.prototype.clear=function(){this.U=this.L=this.T=null;this.G=this.S=this.X=this.startTimeSecs=NaN;this.j=!1};g.M(DRg,g.W);DRg.prototype.ir=function(){fu2(this);g.W.prototype.ir.call(this)};var zVH=/[?&]cpn=/;g.M(YN,g.W);YN.prototype.flush=function(){var d={};this.U&&(d.pe=this.U);this.G.length>0&&(d.pt=this.G.join("."));this.G=[];return d};
  11515. YN.prototype.stop=function(){var d=this,q,T,Y;return g.G(function(e){if(e.U==1)return g.jD(e,2),g.B(e,(q=d.T)==null?void 0:q.stop(),4);if(e.U!=2)return(T=e.G)&&d.logTrace(T),g.ZX(e,0);Y=g.nN(e);d.U=opD(Y.message);g.E6(e)})};
  11516. YN.prototype.logTrace=function(d){this.encoder.reset();this.encoder.add(1);this.encoder.add(d.resources.length);for(var q=g.E(d.resources),T=q.next();!T.done;T=q.next()){T=T.value.replace("https://www.youtube.com/s/","");this.encoder.add(T.length);for(var Y=0;Y<T.length;Y++)this.encoder.add(T.charCodeAt(Y))}this.encoder.add(d.frames.length);q=g.E(d.frames);for(T=q.next();!T.done;T=q.next()){T=T.value;this.encoder.add(T.name.length);for(Y=0;Y<T.name.length;Y++)this.encoder.add(T.name.charCodeAt(Y));
  11517. LO(this.encoder,T.resourceId);LO(this.encoder,T.line);LO(this.encoder,T.column)}this.encoder.add(d.samples.length);q=g.E(d.samples);for(T=q.next();!T.done;T=q.next())T=T.value,this.encoder.add(Math.trunc(T.timestamp)),LO(this.encoder,T.stackId);this.encoder.add(d.stacks.length);d=g.E(d.stacks);for(q=d.next();!q.done;q=d.next())q=q.value,this.encoder.add(q.frameId),LO(this.encoder,q.parentId);d=this.encoder.VH();this.j+=d.length;this.j<1E7&&this.G.push(d)};
  11518. YN.prototype.ir=function(){this.stop();g.W.prototype.ir.call(this)};var qFH=[2,5,30];g.gk=t4(function(){var d="";try{var q=g.FE("CANVAS").getContext("webgl");q&&(q.getExtension("WEBGL_debug_renderer_info"),d=q.getParameter(37446),d=d.replace(/[ :]/g,"_"))}catch(T){}return d});g.M(g.bC,g.W);g.Q=g.bC.prototype;g.Q.xW=function(){var d=g.Jp(this.provider);UCN(this,d)};
  11519. g.Q.bE=function(){return this.Xp};
  11520. g.Q.NI=function(){return{TW:this.TW,yu:this.yu}};
  11521. g.Q.Z1=function(d,q){this.TW=d;this.yu=q};
  11522. g.Q.oP=function(d){if(!this.q5){this.q5=!0;var q="";switch(d){case 1:q="proximaui";break;case 2:q=Z6f(this.provider.videoData)?"proximawpcc":this.provider.videoData.N("html5_enable_proxima")||this.provider.videoData.N("html5_sabr_force_proxima")?"proximaexp":"proximaclient";break;case 3:q="proximaauto"}q!==""&&$N(this,q)}};
  11523. g.Q.Fz=function(d,q,T,Y){if(!this.wk.has(d)){this.wk.add(d);var e=g.Jp(this.provider);g.UV(this,e,"lse",[d,q,T,Y.toFixed(3)])}};
  11524. g.Q.u0=function(d){Xf(this,"lwc",[d.QX?d.QX.toFixed():"",d.rH?d.rH.toFixed():"",d.rO?(d.rO*1E3).toFixed():"",d.Qp?(d.Qp*1E3).toFixed():"",d.vF?(d.vF*1E3).toFixed():""].join(":"))};
  11525. g.Q.reportStats=function(d){d=d===void 0?NaN:d;if(!this.JF()&&(d=d>=0?d:g.Jp(this.provider),this.yv?P$s.has(this.Fd)&&(this.G.size||(this.Fd==="PL"?d>=this.U+30:d<=this.lr+30||d>=this.U+1200&&d<=this.lr+86400))&&(g.UV(this,d,"vps",[this.Fd]),this.U=d):["PL","B","S"].indexOf(this.Fd)>-1&&(this.G.size||d>=this.U+30)&&(g.UV(this,d,"vps",[this.Fd]),this.U=d),this.G.size)){this.sequenceNumber===7E3&&g.OL(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){sV(this,d);var q=this.provider.G2.Ne();
  11526. q=g.E(q);for(var T=q.next();!T.done;T=q.next())T=T.value,this.oU(T.key,T.value);q=d;T=this.provider.G2.EE();var Y=T.droppedVideoFrames||0,e=T.totalVideoFrames||0,U=Y-this.TW,b=e&&!this.yu;Y>T.totalVideoFrames||U>5E3?F7H(this,"html5.badframedropcount","df."+Y+";tf."+T.totalVideoFrames):(U>0||b)&&g.UV(this,q,"df",[U]);this.TW=Y;this.yu=e;this.B>0&&(g.UV(this,d,"glf",[this.B]),this.B=0);bJ.isActive()&&(d=bJ.K6(),Object.keys(d).length>0&&this.oU("profile",d));this.Qp&&$N(this,"lwnmow");this.provider.Pv.uF()&&
  11527. this.provider.N("html5_record_now")&&this.oU("now",{wt:(0,g.cj)()});d={};this.provider.videoData.U&&(d.fmt=this.provider.videoData.U.itag,(q=this.provider.videoData.T)&&q.itag!==d.fmt&&(d.afmt=q.itag));d.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(d.adcpn=this.adCpn);this.Ud&&(d.addocid=this.Ud);this.contentCpn&&(d.ccpn=this.contentCpn);this.rO&&(d.cdocid=this.rO);this.provider.videoData.cotn&&(d.cotn=this.provider.videoData.cotn);d.el=bH(this.provider.videoData);d.content_v=J7(this.provider.videoData);
  11528. d.ns=this.provider.Pv.lr;d.fexp=vx_(this.provider.Pv.experiments).toString();d.cl=(785662079).toString();(q=this.provider.videoData.adFormat||this.adFormat)&&(d.adformat=q);(q=ix(this.provider.videoData))&&(d.live=q);this.provider.videoData.It()&&(d.drm=1,this.provider.videoData.S&&(d.drm_system=pz_[this.provider.videoData.S.flavor]||0),this.provider.videoData.drmProduct&&(d.drm_product=this.provider.videoData.drmProduct));Tt()&&this.provider.videoData.X&&(d.ctt=this.provider.videoData.X,d.cttype=
  11529. this.provider.videoData.M4,this.provider.videoData.mdxEnvironment&&(d.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(d.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.ZB&&(d.dai_fallback="1")):this.provider.videoData.HG?d.dai="cs":this.provider.videoData.y8&&(d.dai="disabled");d.seq=this.sequenceNumber++;if(this.provider.videoData.hY){if(q=this.provider.videoData.hY,d&&q)for(q.ns==="3pp"&&(d.ns="3pp"),this.zX.has(q.ns)&&
  11530. $N(this,"hbps"),q.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=q.shbpslc),this.provider.Pv.experiments.Wv("html5_use_server_qoe_el_value")&&this.Bv.delete("el"),T=g.E(Object.keys(q)),Y=T.next();!Y.done;Y=T.next())Y=Y.value,this.Bv.has(Y)||(d[Y]=q[Y])}else d.event="streamingstats",d.docid=this.provider.videoData.videoId,d.ei=this.provider.videoData.eventId;this.isEmbargoed&&(d.embargoed="1");Object.assign(d,this.provider.Pv.G);if(q=d.seq)q={cpn:this.provider.videoData.clientPlaybackNonce,
  11531. sequenceNumber:+q,serializedWatchEndpointLoggingContext:this.provider.videoData.ykO},this.serializedHouseBrandPlayerServiceLoggingContext&&(q.serializedHouseBrandPlayerServiceLoggingContext=ZV(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(q.playerResponseCpn=this.provider.videoData.playerResponseCpn),eO.length&&(q.decoderInfo=eO),this.remoteControlMode&&(q.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(q.remoteConnectedDevices=
  11532. this.remoteConnectedDevices),q=g.S2(q,ap_),q=g.A0(q,4),this.G.set("qclc",[q]);d=g.y6("//"+this.provider.Pv.sx+"/api/stats/qoe",d);T=q="";Y=g.E(this.G.entries());for(e=Y.next();!e.done;e=Y.next())U=g.E(e.value),e=U.next().value,U=U.next().value,b=void 0,(b=U)!=null&&b.join&&(e="&"+e+"="+U.join(","),e.length>100?T+=e:q+=e);J7H(this,d+q,T.replace(/ /g,"%20"))}this.G.clear()}};
  11533. g.Q.yD=function(d){this.Qp=d};
  11534. g.Q.LX=function(){if(this.provider.videoData.S){var d=this.provider.videoData.S;$N(this,"eme-"+(d.keySystemAccess?"final":be(d)?"ms":s4(d)?"ytfp":Jj(d)?"safarifp":"nonfinal"))}};
  11535. g.Q.xz=dI(53);g.Q.WR=function(d){this.isEmbargoed=d};
  11536. g.Q.xL=dI(30);g.Q.Ak=dI(36);g.Q.onPlaybackRateChange=function(d){var q=g.Jp(this.provider);d&&d!==this.pC&&(g.UV(this,q,"rate",[d]),this.pC=d);this.yv||this.reportStats(q)};
  11537. g.Q.Gz=dI(24);g.Q.getPlayerState=function(d){if(g.I(d,128))return"ER";if(g.I(d,2048))return"B";if(g.I(d,512))return"SU";if(g.I(d,16)||g.I(d,32))return"S";if(d.isOrWillBePlaying()&&g.I(d,64))return"B";var q=WAl[rC(d)];g.ho(this.provider.Pv)&&q==="B"&&this.provider.G2.getVisibilityState()===3&&(q="SU");q==="B"&&g.I(d,4)&&(q="PB");return q};
  11538. g.Q.ir=function(){g.W.prototype.ir.call(this);g.Fq(this.UD);g.Fq(this.vF)};
  11539. g.Q.Hj=function(d){this.isOffline=d;g.UV(this,g.Jp(this.provider),"is_offline",[this.isOffline?"1":"0"])};
  11540. g.Q.oU=function(d,q,T){var Y=this.gk.indexOf(d)!==-1;Y||this.gk.push(d);if(!T||!Y){var e=typeof q!=="string"?RI(q):q;e=RXI(e);if(!T&&!/^t[.]/.test(e)){var U=g.Jp(this.provider)*1E3;e="t."+U.toFixed()+";"+e}Xf(this,"ctmp",d+":"+e);this.logger.debug(function(){return"ctmp "+d+" "+e});
  11541. s62(this);return U}};
  11542. g.Q.Ly=function(d,q,T){this.S={uFx:Number(this.oU("glrem",{nst:d.toFixed(),rem:q.toFixed(),ca:+T})),Le:d,j6r:q,isAd:T}};
  11543. g.Q.Xi=function(d,q,T){g.UV(this,g.Jp(this.provider),"ad_playback",[d,q,T])};
  11544. g.Q.Nd=function(d,q){var T=g.Jp(this.provider)*1E3;Xf(this,"daism","t."+T.toFixed(0)+";smw."+(d*1E3).toFixed(0)+";smo."+(q*1E3).toFixed(0))};
  11545. g.Q.resume=function(){var d=this;isNaN(this.UD)?$CY(this):this.UD=g.$A(function(){d.reportStats()},1E4)};
  11546. var cS={},WAl=(cS[5]="N",cS[-1]="N",cS[3]="B",cS[0]="EN",cS[2]="PA",cS[1]="PL",cS[-1E3]="ER",cS[1E3]="N",cS),P$s=new Set(["PL","B","S"]),eO=[];g.M(g.NZ,g.W);g.Q=g.NZ.prototype;g.Q.initialize=function(d,q,T){this.logger.debug(function(){return"Initialized, t="+d});
  11547. d=d||0;this.policy.G||(q=Alg(this.G),L7Y(this.G2,new Y_(q.video,q.reason)),this.G2.Aa(new Y_(q.audio,q.reason)));this.policy.G&&JW(this);this.vv.isManifestless&&md6(this.S);this.L&&LJn(this.L,this.videoTrack.G);q=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var Y=!this.vv.isManifestless;this.policy.Fc&&(Y=Y||this.vv.uC);if(!this.policy.z2||this.policy.q5)this.currentTime=Y?d:q;this.policy.UD&&this.seek(this.getCurrentTime(),{}).C8(function(){});
  11548. if(this.policy.G){var e;((e=this.K)==null?0:qBY(e,this.Sh()||""))&&E47(this)&&c7I(this,this.videoTrack)&&c7I(this,this.audioTrack)&&(hVQ(this.U,this.K),this.policy.S&&MfH(this))}else this.yv&&(j6_(this,this.videoTrack),j6_(this,this.audioTrack),tL_(this.yv),delete this.yv);T?(A7_(this,!1),g.zh(this.nM)):(T=this.getCurrentTime()===0,sY(this.S,this.videoTrack,this.videoTrack.G,T),sY(this.S,this.audioTrack,this.audioTrack.G,T),this.policy.G&&URg(this.U,!0),this.policy.UD||this.seek(this.getCurrentTime(),
  11549. {}).C8(function(){}),this.timing.tick("gv"));
  11550. (this.vv.QX||this.vv.rH||this.vv.rO||this.vv.Qp||this.vv.vF)&&this.G2.u0(this.vv)};
  11551. g.Q.resume=function(){if(this.isSuspended||this.Uv){this.logger.debug("Resumed.");this.zk=this.Uv=this.isSuspended=!1;try{this.Yo()}catch(d){g.Zz(d)}}};
  11552. g.Q.Kb=function(){return!this.policy.zX};
  11553. g.Q.dD=function(d,q){d=d===void 0?!1:d;q=q===void 0?!1:q;this.logger.debug("detaching media source");n4N(this);this.G2.Tz()&&(this.X=NaN);d?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.dO&&this.oU("loader",{setsmb:1}),this.policy.rO=!0,this.ZE()):(A7_(this,!1),q||this.ZE())};
  11554. g.Q.setAudioTrack=function(d,q,T){T=T===void 0?!1:T;if(!this.JF()){var Y=!isNaN(q);T&&Y&&(this.audioTrack.UD=Date.now(),this.policy.Je&&(this.kx=!0));if(this.policy.G){var e=this.T.X3(d.id,Y);this.logger.debug(function(){return"Logging new audio format: "+e.G.info.id});
  11555. this.G2.Aa(e)}else{var U=Ew7(this.G,d.id,Y);this.logger.debug(function(){return"Logging new audio format: "+U.audio.info.id});
  11556. this.G2.Aa(new Y_(U.audio,U.reason))}Y?(this.Qp=Date.now(),T=this.audioTrack.G.index.yg(q),this.oU("setAudio",{id:d.id,cmt:q,sq:T}),T>=0&&(d=this.policy.y8?T+1:T,this.policy.G&&this.Sc(!0,"mosaic"),Io(this.audioTrack,d,NaN,NaN),!this.policy.dA&&this.vv.isLive&&lP(this.vv,d,!1))):this.G2.zH()}};
  11557. g.Q.setPlaybackRate=function(d){d!==this.B.getPlaybackRate()&&this.B.setPlaybackRate(d)};
  11558. g.Q.XG=function(d){var q=this.U.L;this.U.Dv(d);this.oU("scfidc",{curr:SL(q),"new":SL(d)});d&&SL(d)!==SL(q)&&(this.Sc(!0,"caption change"),this.Yo())};
  11559. g.Q.v6=function(d){this.U.mD(d)};
  11560. g.Q.nJ=function(d){var q=d.G.info.JE();this.logger.debug(function(){return"New "+(q?"audio":"video")+" format from SABR: "+m1(d.G.info)});
  11561. q?this.G2.Aa(d):L7Y(this.G2,d)};
  11562. g.Q.FO=function(d){Yw(d.Zw[d.Zw.length-1])&&Bmf(this,jd_(this.G,d.Zw[0].G))};
  11563. g.Q.gK=function(){return this.G2.gK()};
  11564. g.Q.PH=function(){return this.G2.PH()};
  11565. g.Q.J3=function(d){this.G2.C().uF()&&this.oU("sps",{status:d.fW||""});if(d.fW===1)this.G2.videoData.UK=0;else if(d.fW===2||d.fW===3){var q=!1;if(d.fW===3){q=this.G2.DL();var T;this.LC=(T=d.oPv)!=null?T:Infinity;this.G2.videoData.UK=q+1;(q=Ny(this))&&this.sO(!0)}this.G2.RX(!0,q)}};
  11566. g.Q.C9=function(){return this.G2.C9()};
  11567. g.Q.lw=function(){return this.G2.lw()};
  11568. g.Q.q6=function(d){this.G2.q6(d)};
  11569. g.Q.D3w=function(){var d,q=(d=this.G2.WG())==null?void 0:d.getCurrentTime();q?this.G2.oU("rms",{cta:q}):g.zh(this.qC)};
  11570. g.Q.Yo=function(){tfH(this);if(this.ED&&$x(this.ED)&&!this.ED.e8()&&(!this.policy.z2||isFinite(this.getCurrentTime()))){var d=Po(this.videoTrack);d=this.policy.yI&&d&&d.qQ();this.vv.isManifestless&&this.vv.T&&iP(this.vv)?(this.X=iP(this.vv),this.ED.lV(this.X)):od(this.vv)&&!d?isNaN(this.X)?(this.X=this.getCurrentTime()+3600,this.ED.lV(this.X)):this.X<=this.getCurrentTime()+1800&&(this.X=Math.max(this.X+1800,this.getCurrentTime()+3600),this.ED.lV(this.X)):this.ED.isView||(d=Math.max(this.audioTrack.getDuration(),
  11571. this.videoTrack.getDuration()),(!isFinite(this.X)||this.X!==d)&&d>0&&(this.ED.lV(d),this.X=d))}if(!this.JF())if(zE(this.vv)&&this.vv.E5()){var q=this.vv;this.handleError("manifest.net.retryexhausted",q.Fw?{rc:q.v4}:{rc:q.v4.toString()},1)}else if(this.policy.G)a:{try{FJ6(this.U);this.vv.isManifestless&&this.policy.S&&bk(this.AE);var T;((T=this.ED)==null?0:NF(T))&&this.jb();URg(this.U)}catch(b){g.OL(b);q=b;if(q.message.includes("changeType")){this.oU("ctype",{exp:q.name,msg:q.message,s:q.stack});break a}this.handleError("fmt.unplayable",
  11572. {exp:q.name,msg:q.message,s:q.stack,trg:"sabrslicerqt"},1)}df2(this);g.zh(this.Fw)}else if(!this.vv.U||!pxH(this.videoTrack)&&!pxH(this.audioTrack)||(this.videoTrack.S||this.audioTrack.S)&&this.policy.fn?T=!1:(this.ZE(),this.G2.seekTo(Infinity,{b$:"checkLoaderTracksSync",Xt:!0}),T=!0),!T){tfH(this);this.vv.isManifestless&&(ZOX(this.videoTrack),ZOX(this.audioTrack),bk(this.AE),(T=sj(this.videoTrack))&&T.G&&(T=T.G.j&&!this.policy.zv,this.oU(T===this.policy.L.zz?"strm":"strmbug",{strm:T,sfmp4:this.policy.L.zz,
  11573. dfs:this.policy.zv},!0)));if(this.ED)this.jb();else if(this.policy.T){var Y;T=!1;if(this.policy.Yh){var e;d=g.E([this.videoTrack,this.audioTrack]);for(e=d.next();!e.done;e=d.next()){var U=e.value;for(e=sj(U);e&&U.N1()!==Po(U);e=sj(U))U.Ad(e);T=T||!!e}}else(q=sj(this.videoTrack))&&this.videoTrack.Ad(q),(Y=sj(this.audioTrack))&&this.audioTrack.Ad(Y);wf(this.videoTrack)&&wf(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(q||Y||T)&&dk(this)}a$H(this);sY(this.S,this.videoTrack,
  11574. this.videoTrack.G,!1);sY(this.S,this.audioTrack,this.audioTrack.G,!1);this.policy.PC||GJH(this,this.videoTrack,this.audioTrack);Ddj(this.S,this.videoTrack,this.audioTrack);Ddj(this.S,this.audioTrack,this.videoTrack);df2(this);this.L&&(q=this.L,q.T?(Y=q.X+q.policy.Fs,q.j||(Y=Math.min(Y,q.startTimeSecs+q.policy.Yz)),q=Math.max(0,Y*1E3-Date.now())):q=NaN,isNaN(q)||g.zh(this.gk,q));g.zh(this.Fw)}};
  11575. g.Q.f7=function(d){this.G2.f7(d)};
  11576. g.Q.jb=function(){var d=this;if(this.ED){var q=this.ED.G,T=this.ED.U;bR6(this,this.audioTrack);bR6(this,this.videoTrack);var Y=PHf(this);if(Y){if(this.policy.pW){if(!q.vu()){var e=sj(this.audioTrack);if(e){if(!Ff(this,this.audioTrack,q,e.info))return;uG7(this,this.audioTrack,q,e)}}if(!T.vu()&&(e=sj(this.videoTrack))){if(!Ff(this,this.videoTrack,T,e.info))return;uG7(this,this.videoTrack,T,e)}}this.UD||(this.UD=(0,g.cj)(),this.logger.debug(function(){return"Appends pause start "+d.UD+" reason "+Y}),
  11577. this.policy.j&&this.oU("apdps",{r:Y}))}else if(this.UD&&(kJH(this,this.UD),this.UD=0),W7D(this),e=!1,iV2(this,this.videoTrack,T)&&(e=!0,ITN(this.timing),vk6(this.timing)),this.ED&&!this.ED.Zh()&&(iV2(this,this.audioTrack,q)&&(e=!0,mn1(this.timing),ok2(this.timing)),!this.JF()&&this.ED))!this.policy.zX&&wf(this.videoTrack)&&wf(this.audioTrack)&&$x(this.ED)&&!this.ED.e8()&&(T=!1,T=Po(this.audioTrack).G,T=T===this.vv.G[T.info.id])&&(this.logger.debug("Setting EOS"),wkN(this.ED),nKH(this.schedule),this.Fz("e")),
  11578. e&&!this.ED.isAsync()&&dk(this)}};
  11579. g.Q.Fz=function(d){if(this.policy.rR&&this.vv.isManifestless){var q=this.videoTrack.G;if(q){var T=q.index.nC(),Y=-1,e=-1;q.index instanceof hl&&(Y=q.index.YD(),e=q.index.As());this.G2.Fz(d,T,Y,e)}}};
  11580. g.Q.rT=function(d){var q,T=d===((q=this.ED)==null?void 0:q.G)?this.audioTrack:this.videoTrack,Y;if((Y=sj(T))==null?0:Y.isLocked){if(this.G2.C().uF()){var e;this.oU("eosl",{ounlock:(e=sj(T))==null?void 0:e.info.jt()})}var U;o4j(this,d===((U=this.ED)==null?void 0:U.G))}var b;if(this.policy.Je&&d===((b=this.ED)==null?void 0:b.G)&&this.wO){q=this.wO-this.getCurrentTime();var J;this.G2.oU("asl",{l:q,xtag:(J=Po(this.audioTrack))==null?void 0:J.G.info.G});this.kx=!1;this.wO=0}d.Ao()&&d.Zm().length===0&&
  11581. (d.zc(),this.ED&&!this.ED.Ao()&&(this.G2.C().uF()&&this.G2.oU("rms",{ld:"seek"}),this.ED.X=performance.now(),this.G2.R3(),this.G2.C().uF()&&g.zh(this.qC)));var F;(F=T.K)!=null&&yx(F,0);this.policy.Ln?gZ(this):this.Yo()};
  11582. g.Q.Rg5=function(d){if(this.ED){var q=Po(d===this.ED.G?this.audioTrack:this.videoTrack);if(d=d.o_())for(var T=0;T<d.length;T++)this.oU("appendedbuffer",{i:T,b:g.A0(d[T].subarray(0,4096),3)});d={};q&&(d=bP(q));d.trg="onappenderr";this.handleError("fmt.unplayable",d,1)}};
  11583. g.Q.Wq=function(d){this.G2.Wq(d)};
  11584. g.Q.DI=function(d,q,T){if(this.vv.isManifestless){d=!!d.info.video;FzI(this,q,T,d,!0);if(this.policy.R6&&d){var Y;(Y=this.fn)==null||tH1(Y,q.sD,T)}if(q.iC){Y=!!T;var e=q.iC||null;if((e==null?void 0:e.event)!=="predictStart"){var U,b=(U=this.U)==null?void 0:HtD(U);U=b.isDecorated;d&&!U&&this.oU("sdai",{underdec:1,evt:e==null?void 0:e.event,id:e==null?void 0:e.identifier,sq:q.sD,mt:q.startTime.toFixed(3),stif:Y,rn:b.requestNumber})}}d=d?this.videoTrack:this.audioTrack;d.lr.push({O5:q.sD,T1v:T});d.lr.length>
  11585. 5&&d.lr.shift();q=q.sD;var J;if((J=this.G2.getVideoData())==null?0:J.enableServerStitchedDai)J=B61(this.audioTrack,q),T=B61(this.videoTrack,q),J!==0&&T!==0&&J!==T&&this.handleError("ssdai.avsync",{sq:q,a:J,v:T},0)}};
  11586. g.Q.rV=function(d,q,T,Y){d.info.video&&this.j.rV(q,T,Y)};
  11587. g.Q.NH=function(d){this.G.NH(d)};
  11588. g.Q.mA=dI(12);g.Q.Mv=function(){if(g.I(this.G2.getPlayerState(),8)){var d,q,T=(q=(d=this.G2.WG())==null?void 0:d.getCurrentTime())!=null?q:this.G2.getCurrentTime(),Y;(Y=this.fn)==null||Ztg(Y,T)}var e;(e=this.q5)==null||g.zh(e)};
  11589. g.Q.VN=function(){return this.videoTrack.L||this.audioTrack.L};
  11590. g.Q.seek=function(d,q){if(this.JF())return nK();if(this.VN())return nK("seeking to head");if(this.policy.UD&&!isFinite(d))return OYf(this.AE),g.Of(Infinity);tfH(this);JW(this);this.policy.G||a$H(this,d);this.ED&&this.ED.G&&this.ED.U&&!this.G2.getVideoData().pR&&(this.ED.G.isLocked()||this.ED.U.isLocked())&&this.G2.zH({reattachOnLockedBuffer:1,vsb:""+this.ED.U.isLocked(),asb:""+this.ED.G.isLocked()});var T=this.getCurrentTime(),Y=this.AE.seek(d,q);if(!this.policy.z2||this.policy.q5)this.currentTime=
  11591. Y;df(this.j,d,T,this.policy.GD&&!q.UI);dk(this);return g.Of(Y)};
  11592. g.Q.fT=function(d){return this.policy.G&&this.U.fT(d)};
  11593. g.Q.JO=function(d){return this.U.JO(d)};
  11594. g.Q.Sc=function(d,q){this.U.Sc(d,q)};
  11595. g.Q.getCurrentTime=function(){if(this.policy.z2){var d=this.mz()||0;return this.G2.getCurrentTime(!0)-d}return this.currentTime};
  11596. g.Q.A_=function(){return this.audioTrack.G.info};
  11597. g.Q.Ko=function(){return this.videoTrack.G.info};
  11598. g.Q.F4=function(){return this.audioTrack.G.info.Cf};
  11599. g.Q.D6=function(){return this.videoTrack.G.info.Cf};
  11600. g.Q.ir=function(){try{this.dD(),TM(this.audioTrack),TM(this.videoTrack),oo(this.audioTrack),oo(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.W.prototype.ir.call(this)}catch(d){g.Zz(d)}};
  11601. g.Q.handleError=function(d,q,T){T=T===void 0?0:T;var Y=yb(T);d==="fmt.unplayable"&&this.vv.isLive&&(this.policy.pW=!1,Su(this.vv));q=new g.xV(d,q,T);g.X_(this);RI(q.details);this.G2.handleError(q);d!=="html5.invalidstate"&&q.errorCode!=="fmt.unplayable"&&d!=="fmt.unparseable"&&Y&&this.dispose()};
  11602. g.Q.BF=function(){var d=Po(this.audioTrack),q=Po(this.videoTrack);d={lct:this.getCurrentTime().toFixed(3),lsk:this.AE.isSeeking(),lmf:this.G.G.isLocked(),lbw:ie(this.schedule).toFixed(3),lhd:fO(this.schedule).toFixed(3),lst:((this.schedule.L.W4()||0)*1E9).toFixed(3),laa:d?d.jt():"",lva:q?q.jt():"",lar:this.audioTrack.U?this.audioTrack.U.jt():"",lvr:this.videoTrack.U?this.videoTrack.U.jt():"",laq:""+fP(this.audioTrack),lvq:""+fP(this.videoTrack)};this.ED&&!this.ED.Zh()&&this.ED.G&&this.ED.U&&(d.lab=
  11603. lW(this.ED.G.Zm()),d.lvb=lW(this.ED.U.Zm()));this.UD&&(d.lapt=((0,g.cj)()-this.UD).toFixed(0),d.lapr=PHf(this));this.aU&&(d.lapmabht=((0,g.cj)()-this.aU).toFixed(0),d.lapmabh=e6(this,this.audioTrack).toFixed(0));this.qk&&(d.lapmvbht=((0,g.cj)()-this.qk).toFixed(0),d.lapmvbh=e6(this,this.videoTrack).toFixed(0));this.RU&&(d.lapsdai=((0,g.cj)()-this.RU).toFixed(0));return d};
  11604. g.Q.ZE=function(){try{this.policy.G&&this.U.Sc(!1,"pending"),this.audioTrack.ZE(),this.videoTrack.ZE()}catch(d){g.Zz(d)}this.policy.T=""};
  11605. g.Q.L7=function(){return mH(this.B)};
  11606. g.Q.oU=function(d,q,T){this.G2.oU(d,q,T===void 0?!1:T)};
  11607. g.Q.Sh=function(){return this.G2.Sh()};
  11608. g.Q.Xt=function(d,q){d/=q;isNaN(this.timestampOffset)&&s7I(this,d-Math.min(d,this.policy.fd));return(d-this.timestampOffset)*q};
  11609. g.Q.mz=function(){return this.timestampOffset};
  11610. g.Q.isSeeking=function(){return this.AE.isSeeking()};
  11611. g.Q.Dn=function(){this.j.Dn()};
  11612. g.Q.J8=function(d,q,T){q=q===void 0?!1:q;T=T===void 0?{}:T;this.policy.G?this.T.J8(d,q,T):this.G.J8(d,q,T)};
  11613. g.Q.oF=function(d,q){if(this.lr&&this.j.oF(d,this.lr)){if(this.policy.wO&&this.policy.U){var T=this.videoTrack.G.index.yg(d),Y;(Y=this.rO)==null||Y.gJ(d,T)}s7I(this,this.timestampOffset-q);dk(this);this.policy.U&&(Su(this.vv),oo(this.audioTrack),oo(this.videoTrack),this.ZE());return!0}q=this.videoTrack.G.index.yg(d);this.handleError("ad.skipfailed",{dec:!!this.lr,t:d.toFixed(3),sq:q});return!1};
  11614. g.Q.getManifest=function(){return this.vv};
  11615. g.Q.isOffline=function(){return!!this.G2.getVideoData().cotn};
  11616. g.Q.d0=function(d,q){this.G2.d0(d,q)};
  11617. g.Q.mN=function(d){if(this.policy.G)this.U.Sc(!0,"utc"),this.Yo();else{var q=this.G2.getVideoData().Rg;if(q){var T=this.S;T.vr=d;T.Rg=q;R7(this)}}};
  11618. g.Q.Md=function(d){this.videoTrack.L=!1;this.audioTrack.L=!1;this.AE.G=!1;this.G2.Md(d)};
  11619. g.Q.DK=function(d){this.AE.DK(d-this.mz())};
  11620. g.Q.q7=function(){this.G2.q7()};
  11621. g.Q.sO=function(d){d!==this.policy.wU&&((this.policy.wU=d)||this.Yo())};
  11622. g.Q.zH=function(d){this.G2.zH(d)};
  11623. g.Q.yD=function(d){this.G2.yD(d)};
  11624. g.Q.xG=function(d,q,T){var Y;(Y=this.rO)==null||Y.xG(d,q,T)};
  11625. g.Q.vy=function(d,q){var T;(T=this.rO)==null||T.vy(d,q)};
  11626. g.Q.Qo=function(d){var q;return(q=this.rO)==null?void 0:q.Qo(void 0,d)};
  11627. g.Q.DL=function(){return this.G2.DL()};
  11628. g.Q.IW=function(d,q){if(this.policy.rA){var T;(T=this.rO)==null||T.IW(d,q)}};g.Q=g.Ri.prototype;g.Q.xF=function(d,q,T,Y,e,U){return this.Rd.xF(d,q,T,Y,e,U)};
  11629. g.Q.Ta=function(d,q,T,Y,e,U){return this.Rd.Ta(d,q,T,Y,e,U)};
  11630. g.Q.Mh=function(d){return this.Rd.Mh(d)};
  11631. g.Q.M9=function(d){this.Rd.M9(d)};
  11632. g.Q.JI=function(d,q,T,Y){return this.Rd.JI(d,q,T,Y)};
  11633. g.Q.Dn=function(){this.Rd.Dn()};
  11634. g.Q.gJ=function(d,q){this.Rd.gJ(d,q)};
  11635. g.Q.LD=function(){this.Rd.LD()};
  11636. g.Q.Mc=dI(56);g.Q.RQ=function(d,q,T){this.Rd.RQ(d,q,T)};
  11637. g.Q.iT=dI(59);g.Q.wb=function(d,q,T,Y,e,U,b,J,F){this.Rd.wb(d,q,T,Y,e,U,b,J,F)};
  11638. g.Q.AX=function(d){this.Rd.AX(d)};
  11639. g.Q.sI=function(d){return this.Rd.sI(d)};
  11640. g.Q.jX=function(d){return this.Rd.jX(d)};g.M(xN,g.YP);g.M(yo,xN);yo.prototype.X=function(d,q){if(d&&q){var T=Number(cK(d,"cpi"))*1+1;isNaN(T)||T<=0||T<this.j?(this.T.stop(),this.U.stop(),this.j=-1,this.G={}):(T>this.j&&(this.j=T,g.FV(this.G)||(this.G={},this.T.stop(),this.U.stop())),this.G[q]=d,g.zh(this.U))}};
  11641. yo.prototype.S=function(){for(var d=g.E(Object.keys(this.G)),q=d.next();!q.done;q=d.next()){var T=q.value;q=this.publish;for(var Y=this.j,e=g.Jq(this.G[T]),U=[],b=g.E(e[6].split("&")),J=b.next();!J.done;J=b.next())J=J.value,J.indexOf("cpi=")===0?U.push("cpi="+Y.toString()):J.indexOf("ek=")===0?U.push("ek="+g.pn(T)):U.push(J);e[6]="?"+U.join("&");T="skd://"+e.slice(2).join("");e=T.length*2;Y=new Uint8Array(e+4);Y[0]=e%256;Y[1]=(e-Y[0])/256;for(e=0;e<T.length;++e)Y[e*2+4]=T.charCodeAt(e);q.call(this,
  11642. "rotated_need_key_info_ready",new ao(Y,"fairplay",!0))}this.G={}};
  11643. yo.prototype.ir=function(){this.G={};xN.prototype.ir.call(this)};g.M(hp,xN);
  11644. hp.prototype.T=function(d){var q;a:{if((q=d.cryptoPeriodIndex)&&this.G.length>0)for(var T=g.E(this.G),Y=T.next();!Y.done;Y=T.next())if(q===Y.value.info.cryptoPeriodIndex){q=!0;break a}q=!1}if(!q){q=(0,g.cj)();a:{T=d.cryptoPeriodIndex;if(!isNaN(T)){Y=g.E(this.j.values());for(var e=Y.next();!e.done;e=Y.next())if(Math.abs(e.value.cryptoPeriodIndex-T)<=1){T=!0;break a}}T=!1}T?(T=d.G,T=Math.max(0,Math.random()*((isNaN(T)?120:T)-30))*1E3):T=0;this.publish("log_qoe",{wvagt:"delay."+T,cpi:d.cryptoPeriodIndex,reqlen:this.G.length});
  11645. T<=0?NZY(this,d):(this.G.push({time:q+T,info:d}),g.zh(this.U,T))}};
  11646. hp.prototype.ir=function(){this.G=[];xN.prototype.ir.call(this)};var EQ={},HH7=(EQ.DRM_TRACK_TYPE_AUDIO="AUDIO",EQ.DRM_TRACK_TYPE_SD="SD",EQ.DRM_TRACK_TYPE_HD="HD",EQ.DRM_TRACK_TYPE_UHD1="UHD1",EQ);g.M(yWn,g.W);g.M(MB6,g.YP);g.Q=MB6.prototype;g.Q.mL=function(d){var q=this;if(!(this.JF()||d.size<=0)){var T={};d.forEach(function(Y,e){var U=Xv(q.U)?e:Y;e=new Uint8Array(Xv(q.U)?Y:e);Xv(q.U)&&k$7(e);Y=g.A0(e,4);k$7(e);e=g.A0(e,4);q.G[Y]?q.G[Y].status=U:q.G[e]?q.G[e].status=U:q.G[Y]={type:"",status:U};G$f(q,q.G[Y].type,T)});
  11647. BZ1(this,",");H8(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}};
  11648. g.Q.error=function(d,q,T,Y){this.JF()||(this.publish("licenseerror",d,q,T,Y),d==="drm.provision"&&(d=(Date.now()-this.X)/1E3,this.X=NaN,this.publish("ctmp","provf",{et:d.toFixed(3)})));yb(q)&&this.dispose()};
  11649. g.Q.shouldRetry=function(d,q){return!d&&this.requestNumber===q.requestNumber};
  11650. g.Q.ir=function(){this.G={};g.YP.prototype.ir.call(this)};
  11651. g.Q.BF=function(){var d={ctype:this.B.contentType||"",length:this.B.initData.length,requestedKeyIds:this.yv,cryptoPeriodIndex:this.cryptoPeriodIndex};this.j&&(d.keyStatuses=this.G);return d};
  11652. g.Q.getInfo=function(){var d=this.T.join();if(Qo(this)){var q=new Set,T;for(T in this.G)this.G[T].status!=="usable"&&q.add(this.G[T].type);d+="/UKS."+Array.from(q)}return d+="/"+this.cryptoPeriodIndex};
  11653. g.Q.Hl=function(){return this.url};g.M(c8,g.W);g.Q=c8.prototype;g.Q.Ia=function(d){if(this.S){var q=d.messageType||"license-request";this.S(new Uint8Array(d.message),q)}};
  11654. g.Q.mL=function(){this.L&&this.L(this.G.keyStatuses)};
  11655. g.Q.onClosed=function(){this.JF()||g.kA("xboxone")&&this.j&&this.j("closedShouldNotRetry")};
  11656. g.Q.jf=function(d){this.S&&this.S(d.message,"license-request")};
  11657. g.Q.ox=function(d){if(this.j){if(this.U){var q=this.U.error.code;d=this.U.error.systemCode}else q=d.errorCode,d=d.systemCode;this.j("t.prefixedKeyError;c."+q+";sc."+d,q,d)}};
  11658. g.Q.Up=function(){this.X&&this.X()};
  11659. g.Q.update=function(d){var q=this;if(this.G)return this.G.update(d).then(null,wg(function(T){WcI(q,"t.update",T)}));
  11660. this.U?this.U.update(d):this.element.addKey?this.element.addKey(this.B.keySystem,d,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.B.keySystem,d,this.initData,this.sessionId);return pZ()};
  11661. g.Q.ir=function(){this.G&&(this.K?this.G.close().catch(g.OL):this.G.close());this.element=null;g.W.prototype.ir.call(this)};g.M(EV,g.W);g.Q=EV.prototype;g.Q.setServerCertificate=function(){return this.U.setServerCertificate?this.G.flavor==="widevine"&&this.G.zr?this.U.setServerCertificate(this.G.zr):$8(this.G)&&this.G.qk?this.U.setServerCertificate(this.G.qk):null:null};
  11662. g.Q.createSession=function(d,q){var T=d.initData;if(this.G.keySystemAccess){q&&q("createsession");var Y=this.U.createSession();s4(this.G)?T=DyY(T,this.G.qk):$8(this.G)&&(T=Fc7(T)||new Uint8Array(0));q&&q("genreq");d=Y.generateRequest(d.contentType,T);var e=new c8(null,null,null,Y,null,this.L);d.then(function(){q&&q("genreqsuccess")},wg(function(b){WcI(e,"t.generateRequest",b)}));
  11663. return e}if(be(this.G))return fMX(this,T);if(Jj(this.G))return wMj(this,T);if((Y=this.element)==null?0:Y.generateKeyRequest)this.element.generateKeyRequest(this.G.keySystem,T);else{var U;(U=this.element)==null||U.webkitGenerateKeyRequest(this.G.keySystem,T)}return this.T=new c8(this.element,this.G,T,null,null,this.L)};
  11664. g.Q.bz=function(d){var q=zQj(this,d);q&&q.jf(d)};
  11665. g.Q.hf=function(d){var q=zQj(this,d);q&&q.ox(d)};
  11666. g.Q.YO=function(d){var q=zQj(this,d);q&&q.Up(d)};
  11667. g.Q.getMetrics=function(){if(this.U&&this.U.getMetrics)try{var d=this.U.getMetrics()}catch(q){}return d};
  11668. g.Q.ir=function(){this.j=this.U=null;var d;(d=this.T)==null||d.dispose();d=g.E(Object.values(this.X));for(var q=d.next();!q.done;q=d.next())q.value.dispose();this.X={};g.W.prototype.ir.call(this);delete this.element};g.Q=jO.prototype;g.Q.get=function(d){d=this.findIndex(d);return d!==-1?this.values[d]:null};
  11669. g.Q.remove=function(d){d=this.findIndex(d);d!==-1&&(this.keys.splice(d,1),this.values.splice(d,1))};
  11670. g.Q.removeAll=function(){this.keys=[];this.values=[]};
  11671. g.Q.set=function(d,q){var T=this.findIndex(d);T!==-1?this.values[T]=q:(this.keys.push(d),this.values.push(q))};
  11672. g.Q.findIndex=function(d){return g.Mx(this.keys,function(q){return g.Is(d,q)})};g.M(myn,g.YP);g.Q=myn.prototype;g.Q.GGr=function(d){this.Yq({onecpt:1});d.initData&&vWX(this,new Uint8Array(d.initData),d.initDataType)};
  11673. g.Q.d5D=function(d){this.Yq({onndky:1});vWX(this,d.initData,d.contentType)};
  11674. g.Q.Wq=function(d){this.Yq({onneedkeyinfo:1});this.Pv.N("html5_eme_loader_sync")&&(this.L.get(d.initData)||this.L.set(d.initData,d));lMD(this,d)};
  11675. g.Q.HN=function(d){this.j.push(d);ai(this)};
  11676. g.Q.createSession=function(d){var q=VBf(this)?z82(d):g.A0(d.initData);this.U.get(q);this.rO=!0;d=new MB6(this.videoData,this.Pv,d,this.drmSessionId);this.U.set(q,d);d.subscribe("ctmp",this.WY,this);d.subscribe("keystatuseschange",this.mL,this);d.subscribe("licenseerror",this.LJ,this);d.subscribe("newlicense",this.G4,this);d.subscribe("newsession",this.f4,this);d.subscribe("sessionready",this.YV,this);d.subscribe("fairplay_next_need_key_info",this.VC,this);this.Pv.N("html5_enable_vp9_fairplay")&&d.subscribe("qualitychange",
  11677. this.LN,this);d.subscribe("sabrlicenseconstraint",this.gcf,this);aMD(d,this.T)};
  11678. g.Q.G4=function(d){this.JF()||(this.Yq({onnelcswhb:1}),d&&!this.heartbeatParams&&(this.heartbeatParams=d,this.publish("heartbeatparams",d)))};
  11679. g.Q.f4=function(){this.JF()||(this.Yq({newlcssn:1}),this.j.shift(),this.rO=!1,ai(this))};
  11680. g.Q.YV=function(){if(be(this.G)&&(this.Yq({onsnrdy:1}),this.aU--,this.aU===0)){var d=this.lr,q,T;(q=d.element)==null||(T=q.msSetMediaKeys)==null||T.call(q,d.j)}};
  11681. g.Q.mL=function(d){if(!this.JF()){!this.dO&&this.videoData.N("html5_log_drm_metrics_on_key_statuses")&&(dZX(this),this.dO=!0);this.Yq({onksch:1});var q=this.LN;if(!Qo(d)&&g.DP&&d.U.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var T="large";else{T=[];var Y=!0;if(Qo(d))for(var e=g.E(Object.keys(d.G)),U=e.next();!U.done;U=e.next())U=U.value,d.G[U].status==="usable"&&T.push(d.G[U].type),d.G[U].status!=="unknown"&&(Y=!1);if(!Qo(d)||Y)T=d.T;T=tBI(T)}q.call(this,T);if(!Qo(d))for(q=
  11682. {},T=g.E(d.T),Y=T.next();!Y.done;Y=T.next())G$f(d,Y.value,q);this.videoData.authorizedFormats=d.authorizedFormats;this.publish("keystatuseschange",d)}};
  11683. g.Q.WY=function(d,q){this.JF()||this.publish("ctmp",d,q)};
  11684. g.Q.VC=function(d,q){this.JF()||this.publish("fairplay_next_need_key_info",d,q)};
  11685. g.Q.LJ=function(d,q,T,Y){this.JF()||(this.videoData.N("html5_log_drm_metrics_on_error")&&dZX(this),this.publish("licenseerror",d,q,T,Y))};
  11686. g.Q.qT=function(){return this.B};
  11687. g.Q.LN=function(d){var q=g.ZW("auto",d,!1,"l");if(this.videoData.wU){if(this.B.equals(q))return}else if(RlY(this.B,d))return;this.B=q;this.publish("qualitychange");this.Yq({updtlq:d})};
  11688. g.Q.gcf=function(d){this.videoData.sabrLicenseConstraint=d};
  11689. g.Q.ir=function(){this.G.keySystemAccess&&this.element&&(this.yv?this.element.setMediaKeys(null).catch(g.OL):this.element.setMediaKeys(null));this.element=null;this.j=[];for(var d=g.E(this.U.values()),q=d.next();!q.done;q=d.next())q=q.value,q.unsubscribe("ctmp",this.WY,this),q.unsubscribe("keystatuseschange",this.mL,this),q.unsubscribe("licenseerror",this.LJ,this),q.unsubscribe("newlicense",this.G4,this),q.unsubscribe("newsession",this.f4,this),q.unsubscribe("sessionready",this.YV,this),q.unsubscribe("fairplay_next_need_key_info",
  11690. this.VC,this),this.Pv.N("html5_enable_vp9_fairplay")&&q.unsubscribe("qualitychange",this.LN,this),q.dispose();this.U.clear();this.X.removeAll();this.L.removeAll();this.heartbeatParams=null;g.YP.prototype.ir.call(this)};
  11691. g.Q.BF=function(){for(var d={systemInfo:this.G.BF(),sessions:[]},q=g.E(this.U.values()),T=q.next();!T.done;T=q.next())d.sessions.push(T.value.BF());return d};
  11692. g.Q.getInfo=function(){return this.U.size<=0?"no session":""+this.U.values().next().value.getInfo()+(this.S?"/KR":"")};
  11693. g.Q.Yq=function(d,q){q=q===void 0?!1:q;this.JF()||(RI(d),(this.Pv.uF()||q)&&this.publish("ctmp","drmlog",d))};g.M(UZQ,g.W);g.Q=UZQ.prototype;g.Q.bk=function(){return!!this.jR};
  11694. g.Q.jI=function(){return this.U};
  11695. g.Q.handleError=function(d){var q=this;gNI(this,d);if((d.errorCode!=="html5.invalidstate"&&d.errorCode!=="fmt.unplayable"&&d.errorCode!=="fmt.unparseable"||!$Zn(this,d.errorCode,d.details))&&!xZf(this,d)){if(this.Mk.lr!=="yt"&&Nkj(this,d)&&this.videoData.tW&&(0,g.cj)()/1E3>this.videoData.tW&&this.Mk.lr==="hm"){var T=Object.assign({e:d.errorCode},d.details);T.stalesigexp="1";T.expire=this.videoData.tW;T.init=this.videoData.PM/1E3;T.now=(0,g.cj)()/1E3;T.systelapsed=((0,g.cj)()-this.videoData.PM)/1E3;
  11696. d=new g.xV(d.errorCode,T,2);this.G2.o6(d.errorCode,2,"SIGNATURE_EXPIRED",RI(d.details))}if(yb(d.severity)){var Y;T=(Y=this.G2.loader)==null?void 0:Y.G.G;if(this.Mk.N("html5_use_network_error_code_enums"))if(F_D(d)&&T&&T.isLocked())var e="FORMAT_UNAVAILABLE";else if(this.Mk.X||d.errorCode!=="auth"||d.details.rc!==429)d.errorCode==="ump.spsrejectfailure"&&(e="HTML5_SPS_UMP_STATUS_REJECTED");else{e="TOO_MANY_REQUESTS";var U="6"}else F_D(d)&&T&&T.isLocked()?e="FORMAT_UNAVAILABLE":this.Mk.X||d.errorCode!==
  11697. "auth"||d.details.rc!=="429"?d.errorCode==="ump.spsrejectfailure"&&(e="HTML5_SPS_UMP_STATUS_REJECTED"):(e="TOO_MANY_REQUESTS",U="6");this.G2.o6(d.errorCode,d.severity,e,RI(d.details),U)}else this.G2.publish("nonfatalerror",d),Y=/^pp/.test(this.videoData.clientPlaybackNonce),this.jT(d.errorCode,d.details),Y&&d.errorCode==="manifest.net.connect"&&(d="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.cj)(),ii(d,"manifest",function(b){q.X=!0;q.oU("pathprobe",b)},
  11698. function(b){q.jT(b.errorCode,b.details)}))}};
  11699. g.Q.oU=function(d,q){this.G2.X9.oU(d,q)};
  11700. g.Q.jT=function(d,q){q=RI(q);this.G2.X9.jT(d,q)};Ap.prototype.n7=function(d){var q=Qi2(this);if(!d)return{Nz:xp,Sw:xp,cw:xp,zt:xp,xi:xp,Vy:xp,o2:q};var T=xp;if(nY(q)||this.N("html5_perf_cap_override_sticky"))T=tOg(this,d);return{Nz:T,Sw:Apf(this,d),cw:jiD(this,d),zt:Bk6(this,d.videoData),xi:K_2(this,d.videoData,d),Vy:cpN(this,d),o2:q}};
  11701. Ap.prototype.e1=function(d){if(g.ho(this.Pv)&&fY(this.Pv.S,zG.HEIGHT))var q=d.G.videoInfos[0].video.qualityOrdinal;else{var T=this.LB(!!d.G.G);OB(d.videoData)||NC(d.videoData);d=d.G.videoInfos;if(d.length){var Y=g.Yv(this.Pv.experiments,"html5_override_oversend_fraction")||.85,e=d[0].video;e.projectionType!=="MESH"&&e.projectionType!=="EQUIRECTANGULAR"&&e.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||Yl||(Y=.45);e=g.Yv(this.Pv.experiments,"html5_viewport_undersend_maximum");for(var U=0;U<
  11702. d.length;U++){q=d[U];var b=q.video;if(T===null||b.width*Y<T.width&&b.height*Y<T.height){e&&U&&b.width<T.width*e&&b.height<T.height*e&&(q=d[U-1]);break}}T=q.video;q=new pY(0,q.itag==="93"?g.ZB[pe(T.width,T.height)]:T.qualityOrdinal,!1,"r")}else q=xp;q=q.G}q&&(q=Math.max(q,360));return new pY(0,q,!1,"r")};
  11703. Ap.prototype.LB=function(d){var q;g.Um(this.Pv)&&(q=window.screen&&window.screen.width?new g.zP(window.screen.width,window.screen.height):null);q||(q=this.Pv.aF?this.Pv.aF.clone():this.eb.yS());(fZ||Ro||d)&&q.scale(g.Mi());return q};
  11704. Ap.prototype.N=function(d){return this.Pv.N(d)};g.M(ZK,g.W);ZK.prototype.onError=function(d){if(d!=="player.fatalexception"||this.provider.N("html5_exception_to_health"))d==="sabr.fallback"&&(this.encounteredSabrFallback=!0),d.match(C$I)?this.networkErrorCount++:this.nonNetworkErrorCount++};
  11705. ZK.prototype.send=function(){if(!(this.j||this.G<0)){k66(this);var d=g.Jp(this.provider)-this.G,q="PLAYER_PLAYBACK_STATE_UNKNOWN",T=this.playerState.eF;this.playerState.isError()?q=T&&T.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.I(this.playerState,2)?q="PLAYER_PLAYBACK_STATE_ENDED":g.I(this.playerState,64)?q="PLAYER_PLAYBACK_STATE_UNSTARTED":g.I(this.playerState,16)||g.I(this.playerState,32)?q="PLAYER_PLAYBACK_STATE_SEEKING":g.I(this.playerState,1)&&g.I(this.playerState,
  11706. 4)?q="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.I(this.playerState,1)?q="PLAYER_PLAYBACK_STATE_BUFFERING":g.I(this.playerState,4)?q="PLAYER_PLAYBACK_STATE_PAUSED":g.I(this.playerState,8)&&(q="PLAYER_PLAYBACK_STATE_PLAYING");T=ZpB[ix(this.provider.videoData)];a:switch(this.provider.Pv.playerCanaryState){case "canary":var Y="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":Y="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:Y="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var e=PC2(this.provider),
  11707. U=this.U<0?d:this.U-this.G;d=this.provider.Pv.vA+36E5<(0,g.cj)();q={started:this.U>=0,stateAtSend:q,joinLatencySecs:U,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:Y,playerCanaryStage:e,isAd:this.provider.videoData.isAd(),liveMode:T,hasDrm:!!g.ft(this.provider.videoData),isGapless:this.provider.videoData.L,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai,
  11708. encounteredSabrFallback:this.encounteredSabrFallback,isSabr:tw(this.provider.videoData)};d||g.Ta("html5PlayerHealthEvent",q);this.j=!0;this.dispose()}};
  11709. ZK.prototype.ir=function(){this.j||this.send();window.removeEventListener("error",this.CM);window.removeEventListener("unhandledrejection",this.CM);g.W.prototype.ir.call(this)};
  11710. var C$I=/\bnet\b/;W_Q.prototype.update=function(){if(this.L){var d=this.tE()||0,q=g.Jp(this.provider);d>=this.provider.G2.getDuration()-.1&&(this.previouslyEnded=!0);if(d!==this.G||DZQ(this,d,q)){var T;if(!(T=d<this.G||d-this.G>q-this.ul+2||DZQ(this,d,q))){T=this.provider.G2.getVolume();var Y=T!==this.K,e=this.provider.G2.isMuted()?1:0;e!==this.B?(this.B=e,T=!0):(!Y||this.T>=0||(this.K=T,this.T=q),T=q-this.T,this.T>=0&&T>2?(this.T=-1,T=!0):T=!1)}T&&(nE(this),this.j=d);this.ul=q;this.G=d}}};
  11711. W_Q.prototype.tE=function(){var d=this.provider.G2.tE();return this.provider.Pv.N("html5_disable_live_dvr_shrink_for_cdm_vss")&&rd(this.provider.videoData)?d+this.provider.G2.mz():d};w8Q.prototype.send=function(d){var q=this;if(!this.Fw){var T=z52(this),Y=g.y6(this.uri,T);this.Pv.N("vss_through_gel_double")&&iEQ(Y);this.rO&&!this.Pv.N("html5_simplify_pings")?vNN(this,Y):fKH(this,d).then(function(e){q.rO&&(e=e||{},e.method="POST",e.postParams={atr:q.attestationResponse});SB2(Y,e,{token:q.UD,Yj:q.lF,mdxEnvironment:q.mdxEnvironment},q.Pv,d,q.z2,q.isFinal&&q.XF||q.dO||q.j&&q.qU)});
  11712. this.Fw=!0}};
  11713. w8Q.prototype.U=function(d){d===void 0&&(d=NaN);return Number(d.toFixed(3)).toString()};
  11714. var jQ={},SVX=(jQ.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,jQ.LIVING_ROOM_APP_MODE_MAIN=1,jQ.LIVING_ROOM_APP_MODE_KIDS=2,jQ.LIVING_ROOM_APP_MODE_MUSIC=3,jQ.LIVING_ROOM_APP_MODE_UNPLUGGED=4,jQ.LIVING_ROOM_APP_MODE_GAMING=5,jQ),aK={},mZ7=(aK.EMBEDDED_PLAYER_MODE_UNKNOWN=0,aK.EMBEDDED_PLAYER_MODE_DEFAULT=1,aK.EMBEDDED_PLAYER_MODE_PFP=2,aK.EMBEDDED_PLAYER_MODE_PFL=3,aK);g.M(tp,g.W);tp.prototype.S$=function(){this.G.update();bcj(this)&&(daN(this),q8Q(this))};
  11715. tp.prototype.ir=function(){g.W.prototype.ir.call(this);G6(this);CCn(this.G)};
  11716. tp.prototype.BF=function(){return z52(B8(this,"playback"))};
  11717. tp.prototype.iS=function(d){var q=B8(this,"engage");q.yv=d;return IK2(q,FBD(this.provider))};gsj.prototype.isEmpty=function(){return this.endTime===this.startTime};kN.prototype.N=function(d){return this.Pv.N(d)};
  11718. kN.prototype.getCurrentTime=function(){return this.G2.getCurrentTime()};
  11719. kN.prototype.tE=function(){return this.G2.tE()};
  11720. var NFD={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.M(g.P8,g.W);g.Q=g.P8.prototype;g.Q.S$=function(){if(this.provider.videoData.enableServerStitchedDai&&this.KA){var d;(d=this.j.get(this.KA))==null||d.S$()}else this.G&&this.G.S$()};
  11721. g.Q.WR=function(d){this.qoe&&this.qoe.WR(d)};
  11722. g.Q.xL=dI(29);g.Q.Ak=dI(35);g.Q.Nd=function(d,q){this.qoe&&this.qoe.Nd(d,q)};
  11723. g.Q.bX=function(){if(this.provider.videoData.enableServerStitchedDai&&this.KA){var d;(d=this.j.get(this.KA))!=null&&nE(d.G)}else this.G&&nE(this.G.G)};
  11724. g.Q.jT=function(d,q){this.qoe&&F7H(this.qoe,d,q);if(this.U)this.U.onError(d)};
  11725. g.Q.onPlaybackRateChange=function(d){if(this.qoe)this.qoe.onPlaybackRateChange(d);this.G&&nE(this.G.G)};
  11726. g.Q.xz=dI(52);g.Q.oU=function(d,q,T){this.qoe&&this.qoe.oU(d,q,T)};
  11727. g.Q.Ly=function(d,q,T){this.qoe&&this.qoe.Ly(d,q,T)};
  11728. g.Q.oP=function(d){var q;(q=this.qoe)==null||q.oP(d)};
  11729. g.Q.u0=function(d){var q;(q=this.qoe)==null||q.u0(d)};
  11730. g.Q.Fz=function(d,q,T,Y){var e;(e=this.qoe)==null||e.Fz(d,q,T,Y)};
  11731. g.Q.yD=function(d){this.qoe&&this.qoe.yD(d)};
  11732. g.Q.Xi=function(d,q,T){this.qoe&&this.qoe.Xi(d,q,T)};
  11733. g.Q.Gz=dI(23);g.Q.bE=function(){if(this.qoe)return this.qoe.bE()};
  11734. g.Q.BF=function(){if(this.provider.videoData.enableServerStitchedDai&&this.KA){var d,q;return(q=(d=this.j.get(this.KA))==null?void 0:d.BF())!=null?q:{}}return this.G?this.G.BF():{}};
  11735. g.Q.NI=function(){var d;return(d=this.qoe)==null?void 0:d.NI()};
  11736. g.Q.Z1=function(d,q){var T;(T=this.qoe)==null||T.Z1(d,q)};
  11737. g.Q.iS=function(d){return this.G?this.G.iS(d):function(){}};
  11738. g.Q.getVideoData=function(){return this.provider.videoData};
  11739. g.Q.resume=function(){this.qoe&&this.qoe.resume()};g.M(g.W8,g.W);g.Q=g.W8.prototype;g.Q.ES=function(d,q){this.sync();q&&this.G.array.length>=2E3&&this.uX("captions",1E4);q=this.G;if(d.length>1&&d.length>q.array.length)q.array=q.array.concat(d),q.array.sort(q.G);else{d=g.E(d);for(var T=d.next();!T.done;T=d.next())T=T.value,!q.array.length||q.G(T,q.array[q.array.length-1])>0?q.array.push(T):g.mq(q.array,T,q.G)}this.j=NaN;this.sync()};
  11740. g.Q.cR=function(d){d.length>1E4&&g.OL(new g.CW("Over 10k cueRanges removal occurs with a sample: ",d[0]));if(!this.JF()){var q=new Set(d);this.U=this.U.filter(function(T){return!q.has(T)});
  11741. ns7(this.G,q);this.sync()}};
  11742. g.Q.XA=function(d,q){if(!this.JF()){var T=this.lw().find(function(Y){return Y.id===q&&Y.namespace===d});
  11743. T&&this.cR([T])}};
  11744. g.Q.uX=function(d,q){var T=(isNaN(this.j)?GQ7(this):this.j)-q;q=this.lw().filter(function(Y){return Y.namespace===d&&Y.end<T});
  11745. this.cR(q);return q};
  11746. g.Q.lw=function(){return this.JF()?[]:this.G.array};
  11747. g.Q.reset=function(){this.started=!1;this.T.stop();this.G.array=[];this.U=[];this.sync()};
  11748. g.Q.hm=function(d){var q=this.lw().filter(function(T){return T.namespace===d});
  11749. this.cR(q);return q};
  11750. g.Q.Qj=dI(41);g.Q.lT=function(d){var q=[],T=p$D(this.G,0x7ffffffffffff),Y=[];T=g.E(T);for(var e=T.next();!e.done;e=T.next())e=e.value,e.active&&d===e.associatedClipId&&Y.push(e);q=q.concat(BFN(this,Y));LBD(this,q);q=[];T=[];e=g.E(this.U);for(var U=e.next();!U.done;U=e.next())U=U.value,U.active&&U.associatedClipId===d&&U.start===0x7ffffffffffff&&T.push(U);q=q.concat(KBn(this,T));LBD(this,q);return Y.length};
  11751. g.Q.sync=function(){this.S=!0;if(!this.X){for(var d=3;this.S&&d;)this.S=!1,this.X=!0,kQ6(this),this.X=!1,d--;this.G2.getPlayerState().isPlaying()&&(d=Oc7(this.G,this.j),!isNaN(d)&&d<0x7ffffffffffff&&(d=(d-this.j)/this.G2.getPlaybackRate(),this.T.start(d)))}};
  11752. g.Q.isEnded=function(d,q){q=this.G2.Jq()*1E3-q;q=this.G2.GO()&&g.I(d,1)&&q<500;return g.I(d,2)||this.G2.C().N("html5_pseudogapless_shorts")&&q};
  11753. g.Q.ir=function(){this.U=[];this.G.array=[];g.W.prototype.ir.call(this)};uC.prototype.add=function(d){this.G=(this.G+1)%this.data.length;this.data[this.G]=d};
  11754. uC.prototype.forEach=function(d){for(var q=this.G+1;q<this.data.length;q++)d(this.data[q]||0);for(q=0;q<=this.G;q++)d(this.data[q]||0)};
  11755. uC.prototype.clear=function(){for(var d=this.data.length,q=0;q<d;q++)this.data[q]=0;this.U=this.G=this.data.length-1};g.M(wk,g.YP);wk.prototype.bl=function(){return this.L};
  11756. wk.prototype.d4=function(){return this.policy.UD&&this.videoData.G?this.videoData.G.Gr:Math.max(this.S()-z6(this)*this.G,this.videoData.BG())};g.M(m_,g.W);m_.prototype.Yo=function(){var d=this,q=this.G2.WG(),T=this.G2.getPlayerState();if(q&&!T.isError()){var Y=q.getCurrentTime(),e=T.state===8&&Y>this.G,U=g.I(T,8)&&g.I(T,16),b=this.G2.Jp().isBackground()||T.isSuspended();SO(this,this.AF,U&&!b,e,"qoe.slowseek",function(){},"timeout");
  11757. var J=isFinite(this.G);J=U&&J&&ly2(q,this.G);var F=!Y||Math.abs(Y-this.G)>10,N=this.Pv.N("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),R=Y===0&&this.U&&[11,10].includes(this.U);SO(this,this.Fw,J&&F&&!b&&(!N||!R),e,"qoe.slowseek",function(){q.seekTo(d.G)},"set_cmt");
  11758. F=J&&oI(q.g1(),this.G);var x=this.G2.loader;J=!x||x.Kb();var y=function(){q.seekTo(d.G+.001)};
  11759. SO(this,this.dO,F&&J&&!b,e,"qoe.slowseek",y,"jiggle_cmt");J=function(){return d.G2.U6()};
  11760. SO(this,this.RU,F&&!b,e,"qoe.slowseek",J,"new_elem");var h=nk(T);R=T.isBuffering();var H=q.g1(),a=vH(H,Y),p=a>=0&&H.end(a)>Y+5;F=h&&R&&p;N=this.G2.getVideoData();SO(this,this.aU,Y<.002&&this.G<.002&&U&&g.ho(this.Pv)&&g.XG(N)&&!b,e,"qoe.slowseek",J,"slow_seek_shorts");SO(this,this.K,N.mT()&&U&&!b&&!N.UD,e,"qoe.slowseek",J,"slow_seek_gapless_shorts");SO(this,this.lr,F&&!b,h&&!R,"qoe.longrebuffer",y,"jiggle_cmt");SO(this,this.UD,F&&!b,h&&!R,"qoe.longrebuffer",J,"new_elem_nnr");if(x){var t=x.getCurrentTime();
  11761. U=q.NT();U=Wr1(U,t);U=!x.isSeeking()&&Y===U;SO(this,this.Qp,h&&R&&U&&!b,h&&!R&&!U,"qoe.longrebuffer",function(){q.seekTo(t)},"seek_to_loader")}U={};
  11762. y=vH(H,Math.max(Y-3.5,0));var n=y>=0&&Y>H.end(y)-1.1,K=y>=0&&y+1<H.length?H.start(y+1)-H.end(y):9999;U.mindex=a;U.disIndex=y;U.isdisc=y>=0&&n&&K<11;U.close2edge=n;U.gapsize=K;U.buflen=H.length;this.U&&(U.seekSour=this.U);SO(this,this.yv,h&&R&&!b,h&&!R,"qoe.longrebuffer",function(){},"timeout",U);
  11763. U=T.isSuspended();U=this.G2.k6()&&!U;SO(this,this.L,U,!U,"qoe.start15s",function(){d.G2.Lz("ad")},"ads_preroll_timeout");
  11764. U=this.Pv.experiments.Wv("html5_use_playback_rate_in_skip_slow_ad")?this.G2.getPlaybackRate()*1E3:1E3;a=Y-this.T<U/1E3/2;n=(y=N.isAd())&&h&&!R&&a;U=function(){var P=d.G2,w=P.h1.getVideoData();(!w||!P.videoData.isAd()||w.HG!==P.getVideoData().HG)&&P.videoData.ZY||P.o6("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+P.videoData.videoId)};
  11765. SO(this,this.wO,n,!n,"ad.rebuftimeout",U,"skip_slow_ad");a=y&&R&&oI(q.g1(),Y+5)&&a;SO(this,this.fn,a&&!b,!a,"ad.rebuftimeout",U,"skip_slow_ad_buf");U=T.isOrWillBePlaying()&&g.I(T,64)&&!b;SO(this,this.lF,U,e,"qoe.start15s",function(){},"timeout");
  11766. x=!!x&&!x.ED&&T.isOrWillBePlaying();SO(this,this.rO,x,e,"qoe.start15s",J,"newElemMse");x=T5(H,0);H=g.I(T,16)||g.I(T,32);x=!b&&T.isOrWillBePlaying()&&R&&!H&&(g.I(T,64)||Y===0)&&x>5;SO(this,this.xx,g.XG(N)&&x,h&&!R,"qoe.longrebuffer",function(){d.G2.zH()},"reset_media_source");
  11767. SO(this,this.qk,g.XG(N)&&x,h&&!R,"qoe.longrebuffer",J,"reset_media_element");this.T===0&&(this.X=Y);x=R&&this.G===0&&Y>1&&Y===this.X;SO(this,this.z2,g.XG(N)&&x,h&&!R,"qoe.slowseek",function(){q.seekTo(0)},"reseek_after_time_jump");
  11768. b=T.isOrWillBePlaying()&&!b;p=this.G2.Jq()-Y<6&&!p&&this.G2.GO();SO(this,this.B,N.mT()&&b&&R&&p,h&&!R,"qoe.longrebuffer",function(){d.G2.U6(!1,!0)},"handoff_end_long_buffer_reload");
  11769. b=this.U===104||this.G2.le;T=Zu(N)&&N.isAd()&&!N.UD&&b&&(R||g.I(T,8)&&g.I(T,16));SO(this,this.Bv,T,e,"qoe.start15s",J,"gapless_ad_slow_start");T=Zu(N)&&!N.UD&&b&&F;SO(this,this.kx,T,e,"qoe.longrebuffer",J,"gapless_slow_start");this.T=Y;this.S.start()}};
  11770. m_.prototype.jT=function(d,q,T){q=this.BF(q);q.wn=T;q.wdup=this.j[d]?"1":"0";this.G2.jT(new g.xV(d,q));this.j[d]=!0};
  11771. m_.prototype.BF=function(d){d=Object.assign(this.G2.BF(!0),d.BF());this.G&&(d.stt=this.G.toFixed(3));this.G2.getVideoData().isLivePlayback&&(d.ct=this.G2.getCurrentTime().toFixed(3),d.to=this.G2.mz().toFixed(3));delete d.uga;delete d.euri;delete d.referrer;delete d.fexp;delete d.vm;return d};
  11772. Ii.prototype.reset=function(){this.G=this.U=this.j=this.startTimestamp=0;this.T=!1};
  11773. Ii.prototype.test=function(d){if(!this.S||this.U)return!1;if(!d)return this.reset(),!1;d=(0,g.cj)();if(!this.startTimestamp)this.startTimestamp=d,this.j=0;else if(this.j>=this.S)return this.U=d,!0;this.j+=1;return!1};
  11774. Ii.prototype.BF=function(){var d={},q=(0,g.cj)();this.startTimestamp&&(d.wsd=(q-this.startTimestamp).toFixed());this.U&&(d.wtd=(q-this.U).toFixed());this.G&&(d.wssd=(q-this.G).toFixed());return d};g.M(dcN,g.W);g.Q=dcN.prototype;g.Q.setMediaElement=function(d){(this.mediaElement=d)?(this.mediaElement&&(this.S||this.j||!this.mediaElement.tX()||this.seekTo(.01,{b$:"seektimeline_setupMediaElement"})),lC(this)):oi(this)};
  11775. g.Q.getCurrentTime=function(d){d=d===void 0?!1:d;if(v8(this.G2)){if(this.N("html5_use_centralized_player_time")&&!d&&!isNaN(this.X))return this.X;if(!isNaN(this.U))return this.U}else{if(this.N("html5_use_centralized_player_time")&&!d&&!isNaN(this.X)&&isFinite(this.X))return this.X;if(!isNaN(this.U)&&isFinite(this.U))return this.U}return this.mediaElement&&xc7(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.j||0};
  11776. g.Q.Eq=function(){return this.Bv};
  11777. g.Q.tE=function(){return this.getCurrentTime()-this.mz()};
  11778. g.Q.d4=function(){return this.G?this.G.d4():Infinity};
  11779. g.Q.isAtLiveHead=function(d){if(!this.G)return!1;d===void 0&&(d=this.getCurrentTime());return fE(this.G,d)};
  11780. g.Q.bl=function(){return!!this.G&&this.G.bl()};
  11781. g.Q.seekTo=function(d,q){var T=q===void 0?{}:q;q=T.W6===void 0?!1:T.W6;var Y=T.XL===void 0?0:T.XL;var e=T.Zn===void 0?!1:T.Zn;var U=T.hc===void 0?0:T.hc;var b=T.b$===void 0?"":T.b$;var J=T.seekSource===void 0?void 0:T.seekSource;var F=T.Xt===void 0?!1:T.Xt;var N=T.UI===void 0?!1:T.UI;T=T.wg===void 0?!1:T.wg;F&&(d+=this.mz());tw(this.videoData)&&J===29&&(this.Bv=void 0);F=d<this.RU&&!!this.loader;var R=tw(this.videoData)&&N;if(F&&!R&&(this.G2.oU("sdai",{sk2bk:d.toFixed(3),mt:(d-this.timestampOffset).toFixed(3),
  11782. lstadj:this.RU.toFixed(3)}),this.RU=NaN,this.timestampOffset-=1E3,(R=this.loader)!=null)){s7I(R,R.timestampOffset-1E3);var x=R.vv,y=new Set;for(p in x.G){var h=x.G[p].index,H=h.XZ();H&&!y.has(H)&&(H.startTime+=1E3,H.endTime=H.startTime+H.duration,y.add(H));h.segments.length&&(H=h.segments[h.segments.length-1],h.segments=[],h.segments.push(H))}R.lr&&R.lr.LD();if(R.policy.wO&&R.policy.U){var a;(a=R.rO)==null||a.LD()}df(R.j,0,0,!0)}var p=d;(a=tw(this.videoData))&&N?p=!0:(R=this.N("html5_always_allow_sqless_sync")&&
  11783. this.videoData.aN(),(a||R)&&b==="chunkSelectorSynchronize"?p=!0:(a=!isFinite(p)||(this.G?fE(this.G,p):p>=this.cG())||!g.vr(this.videoData),a||(p={st:p,mst:this.cG()},this.G&&this.N("html5_high_res_seek_logging")&&(p.ht=this.G.d4(),p.adft=ItH(this.G)),this.G2.oU("seeknotallowed",p)),p=a));if(!p)return this.T&&(this.T=null,FS2(this)),g.Of(this.getCurrentTime());p=.005;N&&this.N("html5_sabr_seek_no_shift_tolerance")&&(p=0);if(Math.abs(d-this.U)<=p&&this.z2)return this.S;b&&(p=d,(this.Pv.uF()||this.N("html5_log_seek_reasons"))&&
  11784. this.G2.oU("seekreason",{reason:b,tgt:p}));J&&(this.lr.U=J);this.z2&&oi(this);this.S||(this.S=new yQ);d&&!isFinite(d)&&eAg(this,!1);(b=T||F)||(b=d,b=!(this.videoData.isLivePlayback&&this.videoData.j&&!this.videoData.j.G&&!(this.mediaElement&&this.mediaElement.Tr()>0&&Hl(this.mediaElement)>0)||kp(this.videoData)&&this.BG()===this.cG(!1)?0:isFinite(b)||!kp(this.videoData)));b||(d=dF(this,d,e));d&&!isFinite(d)&&eAg(this,!1);this.N("html5_use_centralized_player_time")?this.X=d:this.U=this.j=d;this.xx=
  11785. U;this.L=0;this.G&&(e=this.G,U=d,maD(e,U,!1),S8H(e,U));e=this.G2;U=d;b={W6:q,seekSource:J};e.sF.j=U;T=e.uL;T.mediaTime=U;T.G=!0;b.W6&&e.Nn(b);b=U>e.videoData.endSeconds&&U>e.videoData.limitedPlaybackDurationInSeconds;e.N2&&b&&isFinite(U)&&iaI(e);U<e.cG()-.01&&(b=pk(e.playerState,2),g.I(b,8)&&(b=pk(b,4)),e.Vp(b));e.publish("SEEK_TO",U);this.S&&(q?Y&&this.AF.start(Y):VRf(this,{UI:N,seekSource:J}));(q=this.G2.N2)&&d>q.start&&iaI(this.G2);return this.S};
  11786. g.Q.cG=function(d){if(!this.videoData.isLivePlayback)return this.G2.videoData.cG();var q;return Q2(this.videoData)&&((q=this.mediaElement)==null?0:q.isPaused())&&this.videoData.G?(d=this.getCurrentTime(),qTj(this.fH(d)*1E3)+d):this.N("html5_sabr_parse_live_metadata_playback_boundaries")&&tw(this.videoData)&&this.videoData.G?d?this.videoData.G.UD||0:this.videoData.G.Gr||0:kp(this.videoData)&&this.videoData.yv&&this.videoData.G?this.videoData.G.cG()+this.timestampOffset:this.videoData.j&&this.videoData.j.G?
  11787. !d&&this.G?this.G.d4():this.G2.videoData.cG()+this.timestampOffset:this.mediaElement?CZ()?qTj(this.mediaElement.U1().getTime()):Hl(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset};
  11788. g.Q.BG=function(){if(this.N("html5_sabr_parse_live_metadata_playback_boundaries")&&tw(this.videoData)){var d;return((d=this.videoData.G)==null?void 0:d.m1)||0}d=this.videoData?this.videoData.BG()+this.timestampOffset:this.timestampOffset;if(Q2(this.videoData)&&this.videoData.G){var q,T=Number((q=this.videoData.progressBarStartPosition)==null?void 0:q.utcTimeMillis)/1E3;q=this.getCurrentTime();q=this.fH(q)-q;if(!isNaN(T)&&!isNaN(q))return Math.max(d,T-q)}return d};
  11789. g.Q.R3=function(){this.S||this.seekTo(this.j,{b$:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})};
  11790. g.Q.VN=function(){return this.z2&&!isFinite(this.U)};
  11791. g.Q.ir=function(){UcY(this,null);this.lr.dispose();g.W.prototype.ir.call(this)};
  11792. g.Q.BF=function(){var d={};this.loader&&Object.assign(d,this.loader.BF());this.mediaElement&&Object.assign(d,this.mediaElement.BF());return d};
  11793. g.Q.XV=function(d){this.timestampOffset=d};
  11794. g.Q.getStreamTimeOffset=function(){return kp(this.videoData)?0:this.videoData.G?this.videoData.G.getStreamTimeOffset():0};
  11795. g.Q.mz=function(){return this.timestampOffset};
  11796. g.Q.fH=function(d){return this.videoData&&this.videoData.G?this.videoData.G.fH(d-this.timestampOffset):NaN};
  11797. g.Q.mE=function(){if(!this.mediaElement)return 0;if(of(this.videoData)){var d=this.mediaElement,q=d.g1();d=(qF(q)&&d.getDuration()?q.end(q.length-1):0)+this.timestampOffset-this.BG();q=this.cG()-this.BG();return Math.max(0,Math.min(1,d/q))}return this.mediaElement.mE()};
  11798. g.Q.Aa=function(d){this.B&&(this.B.G=d)};
  11799. g.Q.mN=function(d,q){this.G2.oU("requestUtcSeek",{time:d});tw(this.videoData)&&(this.Bv=d);var T;(T=this.loader)==null||T.mN(d);q&&(this.rO=q)};
  11800. g.Q.Md=function(d){tw(this.videoData)&&(this.Bv=void 0);if(this.rO)this.G2.oU("utcSeekingFallback",{source:"streamTime",timeSeconds:this.rO}),this.G2.seekTo(this.rO,{b$:"utcSeekingFallback_streamTime"}),this.rO=0;else{var q=this.getCurrentTime();isNaN(q)||(d=this.fH(q)-d,q-=d,this.G2.oU("utcSeekingFallback",{source:"estimate",timeSeconds:q}),this.G2.seekTo(q,{b$:"utcSeekingFallback_estimate"}))}};
  11801. g.Q.q7=function(){this.rO=0};
  11802. g.Q.N=function(d){return this.Pv&&this.Pv.N(d)};g.M(qa,g.W);qa.prototype.start=function(){this.U.start()};
  11803. qa.prototype.stop=function(){this.U.stop()};
  11804. qa.prototype.clear=function(){for(var d=g.E(this.G.values()),q=d.next();!q.done;q=d.next())q.value.clear()};
  11805. qa.prototype.sample=function(){for(var d=g.E(this.j),q=d.next();!q.done;q=d.next()){var T=g.E(q.value);q=T.next().value;T=T.next().value;this.G.has(q)||this.G.set(q,new ccg(uQ_.has(q)));this.G.get(q).update(T())}this.U.start()};
  11806. var uQ_=new Set(["networkactivity"]);ccg.prototype.update=function(d){this.U?(this.buffer.add(d-this.G||0),this.G=d):this.buffer.add(d)};
  11807. ccg.prototype.clear=function(){this.buffer.clear();this.G=0};eR.prototype.G0=function(){return this.started};
  11808. eR.prototype.start=function(){this.started=!0};
  11809. eR.prototype.reset=function(){this.finished=this.started=!1};var pcI=!1;g.M(g.JG,g.YP);g.Q=g.JG.prototype;g.Q.ir=function(){this.logger.debug("dispose");g.Fq(this.iH);e5Q(this.nz);this.visibility.unsubscribe("visibilitystatechange",this.nz);HcN(this.X9);g.T1(this.X9);gF(this);g.Gh.Qt(this.PV);this.Hf();this.zA=null;g.T1(this.videoData);g.T1(this.Ha);g.T1(this.fu);g.T1(this.U7);g.Yt(this.YDv);this.N2=null;g.YP.prototype.ir.call(this)};
  11810. g.Q.Xi=function(d,q,T,Y,e){if(this.Pv.N("html5_log_ad_playback_docid")){var U=this.X9;if(U.qoe){U=U.qoe;var b=this.Pv.lr||"yt";g.UV(U,g.Jp(U.provider),"ad_playback",[d,q,T,e,b])}}else this.X9.Xi(d,q,T);this.N("html5_log_media_perf_info")&&this.oU("adloudness",{ld:Y.toFixed(3),cpn:d})};
  11811. g.Q.F4=function(){var d;return(d=this.loader)==null?void 0:d.F4()};
  11812. g.Q.D6=function(){var d;return(d=this.loader)==null?void 0:d.D6()};
  11813. g.Q.Ko=function(){var d;return(d=this.loader)==null?void 0:d.Ko()};
  11814. g.Q.A_=function(){var d;return(d=this.loader)==null?void 0:d.A_()};
  11815. g.Q.It=function(){return this.videoData.It()};
  11816. g.Q.Tz=function(){return this.N("html5_not_reset_media_source")&&!this.It()&&!this.videoData.isLivePlayback&&g.XG(this.videoData)&&!this.Pv.supportsGaplessShorts()};
  11817. g.Q.Sb=function(){this.videoData.L&&(this.videoData.wJ=this.videoData.wJ||this.h1.Lf().F4(),this.videoData.YH=this.videoData.YH||this.h1.Lf().D6());if(w_n(this.videoData)||!h7(this.videoData)){var d=this.videoData.errorDetail;this.o6(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),d,d,this.videoData.eU||void 0)}this.N("html5_generate_content_po_token")&&this.Sp();this.N("html5_enable_d6de4")&&this.d5()};
  11818. g.Q.getVideoData=function(){return this.videoData};
  11819. g.Q.C=function(){return this.Pv};
  11820. g.Q.n7=function(){return this.f8.n7(this.zA)};
  11821. g.Q.Jp=function(){return this.visibility};
  11822. g.Q.Av=function(){return this.mediaElement&&this.mediaElement.RK()?this.mediaElement.tA():null};
  11823. g.Q.WG=function(){return this.mediaElement};
  11824. g.Q.y4=function(){if(this.videoData.errorCode)return!1;this.C().X&&this.C().houseBrandUserStatus&&this.oU("hbut",{status:this.C().houseBrandUserStatus},!0);if(this.videoData.LH())return!0;this.o6("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
  11825. g.Q.Z8=function(d){(d=d===void 0?!1:d)||Raj(this.X9);this.w9=d;!this.y4()||this.dJ.G0()?g.ho(this.Pv)&&this.videoData.isLivePlayback&&this.dJ.G0()&&!this.dJ.finished&&!this.w9&&this.s7():(this.dJ.start(),d=this.X9,g.Jp(d.provider),d.qoe&&$CY(d.qoe),this.s7())};
  11826. g.Q.s7=function(){if(this.videoData.isLoaded()){var d=this.Ha;g.Yv(d.Mk.experiments,"html5_player_min_build_cl")>0&&g.Yv(d.Mk.experiments,"html5_player_min_build_cl")>785662079&&R5f(d,"oldplayer");DcX(this)}else this.videoData.E$||this.videoData.rK?this.w9&&g.ho(this.Pv)&&this.videoData.isLivePlayback||(this.videoData.E$?p_I(this.videoData):(d=this.X9,d.qoe&&(d=d.qoe,$N(d,"protected"),d.provider.videoData.S?d.LX():d.provider.videoData.subscribe("dataloaded",d.LX,d)),cCj(this.videoData))):!this.videoData.loading&&
  11827. this.Ty&&WSQ(this)};
  11828. g.Q.Go=function(d){this.Rd=d;this.loader&&(TRN(this.loader,new g.Ri(d)),this.oU("sdai",{sdsstm:1}))};
  11829. g.Q.xG=function(d,q,T){var Y;(Y=this.loader)==null||Y.xG(d,q,T)};
  11830. g.Q.x6=dI(8);g.Q.isFullscreen=function(){return this.visibility.isFullscreen()};
  11831. g.Q.isBackground=function(){return this.visibility.isBackground()};
  11832. g.Q.Ql=function(){var d=this;this.logger.debug("Updating for format change");s8(this).then(function(){return Xa(d)});
  11833. this.playerState.isOrWillBePlaying()&&this.playVideo()};
  11834. g.Q.n5=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.Z8();this.y4()&&!g.I(this.playerState,128)&&(this.Jd.G0()||(this.Jd.start(),this.videoData.PR?this.Vp(Ae(this.playerState,4)):this.Vp(Ae(Ae(this.playerState,8),1))),C0_(this))};
  11835. g.Q.kD=function(){return this.dJ.finished};
  11836. g.Q.sendAbandonmentPing=function(){g.I(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.B0(!0),HcN(this.X9),g.T1(this.X9),g.Gh.Qt(this.PV))};
  11837. g.Q.Wx=function(d,q,T){d=d===void 0?!0:d;(q===void 0||q)&&this.mediaElement&&this.mediaElement.pause();d&&T&&this.loader&&kp(this.videoData)&&this.loader.Fz(T);this.Vp(d?new g.EX(14):new g.EX)};
  11838. g.Q.kG=function(){this.X9.bX()};
  11839. g.Q.o6=function(d,q,T,Y,e,U){this.logger.debug(function(){return"set player error: ec="+d+", detail="+e});
  11840. var b,J;g.$9(dqB,T)?b=T:T?J=T:b="GENERIC_WITHOUT_LINK";Y=(Y||"")+(";a6s."+l9());if(d==="auth"||d==="drm.auth"||d==="heartbeat.stop")T&&(Y+=";r."+T.replaceAll(" ","_")),U&&(Y+="sr."+U.replaceAll(" ","_"));q={errorCode:d,errorDetail:e,errorMessage:J||g.l0[b]||"",rG:b,eU:U||"",bH:Y,d_:q,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=d;$s(this,"dataloaderror");this.Vp(ap(this.playerState,128,q));g.Gh.Qt(this.PV);gF(this);this.Zp()};
  11841. g.Q.Lz=function(d){this.Lt=this.Lt.filter(function(q){return d!==q});
  11842. this.logger.debug(function(){return"set preroll ready for "+d});
  11843. this.Jd.G0()&&C0_(this)};
  11844. g.Q.S8=function(){var d;(d=!!this.Lt.length)||(d=this.Mp.G.array[0],d=!!d&&d.start<=-0x8000000000000);return d};
  11845. g.Q.bl=function(){return this.sF.bl()};
  11846. g.Q.isPlaying=function(){return this.playerState.isPlaying()};
  11847. g.Q.Kl=function(){return this.playerState.Kl()&&this.videoData.PR};
  11848. g.Q.getPlayerState=function(){return this.playerState};
  11849. g.Q.XG=function(d){var q;(q=this.loader)==null||q.XG(d)};
  11850. g.Q.v6=function(d){var q;(q=this.loader)==null||q.v6(d)};
  11851. g.Q.getPlayerType=function(){return this.playerType};
  11852. g.Q.getPreferredQuality=function(){if(this.zA){var d=this.zA;d=d.videoData.Ja.compose(d.videoData.b_);d=tF(d)}else d="auto";return d};
  11853. g.Q.UZ=dI(16);g.Q.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()};
  11854. g.Q.setMediaElement=function(d){this.logger.debug("set media element");if(this.mediaElement&&d.tA()===this.mediaElement.tA()&&(d.isView()||this.mediaElement.isView())){if(d.isView()||!this.mediaElement.isView())this.zW(),this.mediaElement=d,this.mediaElement.G2=this,e$_(this),this.sF.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Hf();if(!this.playerState.isError()){var q=pk(this.playerState,512);g.I(q,8)&&!g.I(q,2)&&(q=Ae(q,1));d.isView()&&(q=pk(q,64));this.Vp(q)}this.mediaElement=
  11855. d;this.mediaElement.G2=this;!g.ho(this.Pv)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);e$_(this);this.sF.setMediaElement(this.mediaElement);this.N("html5_prewarm_media_source")&&!this.Ha.bk()&&iM_(this.mediaElement)}};
  11856. g.Q.Hf=function(d,q,T){d=d===void 0?!1:d;q=q===void 0?!1:q;T=T===void 0?!1:T;this.logger.debug("remove media element");if(this.mediaElement){var Y=this.getCurrentTime();Y>0&&(this.sF.j=Y);this.sF.setMediaElement(null);!d&&this.Tz()?Vzj(this):this.B$(T);this.loader&&(dk(this.loader),xs(this,q));this.I4.stop();if(this.mediaElement&&(!this.Jd.G0()&&!this.k6()||this.playerState.isError()||g.I(this.playerState,2)||this.Vp(Ae(this.playerState,512)),this.mediaElement)){this.zW();if(d||!this.mediaElement.isView())this.rz.GT("mesv_s"),
  11857. this.mediaElement.stopVideo(),yk(this);this.mediaElement=this.mediaElement.G2=null}}};
  11858. g.Q.playVideo=function(d,q){d=d===void 0?!1:d;q=q===void 0?!1:q;var T=this,Y,e,U,b,J,F;return g.G(function(N){if(N.U==1){T.logger.debug("start play video");var R=window.google_image_requests;R&&R.length>10&&(window.google_image_requests=R.slice(-10));if(g.I(T.playerState,128))return N.return();if(T.Ha.jI())return T.publish("signatureexpired"),N.return();T.mediaElement&&Raj(T.X9);T.n5();(g.I(T.playerState,64)||d)&&T.Vp(Ae(T.playerState,8));return T.Jd.finished&&T.mediaElement?T.zA||!T.Ul?N.tF(2):g.B(N,
  11859. T.Ul,3):N.return()}if(N.U!=2&&g.I(T.playerState,128))return N.return();if(!T.videoData.j)return T.videoData.isLivePlayback&&!g.jJ(T.Pv.S,!0)?(Y="html5.unsupportedlive",e=2):(Y=T.videoData.It()?"fmt.unplayable":"fmt.noneavailable",e=1),g.OL(Error("selectableFormats")),T.o6(Y,e,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),N.return();if(T.pA()&&T.videoData.j.G)return T.logger.debug("rebuild playbackData for airplay"),N.return(s8(T));if(v8(T))R=T.sF,Lt(R.videoData)&&!R.isAtLiveHead(R.getCurrentTime())&&
  11860. R.bl()&&R.G2.seekTo(Infinity,{b$:"seektimeline_peggedToLive",seekSource:34});else if(Lt(T.videoData)&&(U=T.getCurrentTime()<T.BG()-15,b=g.vr(T.videoData)&&T.playerState.isPaused(),J=g.I(T.playerState,1024),R=T.sF,R.videoData.aN()&&x4(R.videoData)||J||!U&&!b||(b?(T.logger.debug("seek to head for live because of live-only"),T.seekTo(Infinity,{b$:"videoplayer_unpauseLiveOnly",seekSource:102})):(T.logger.debug("seek to min seekable for live because of out of window"),T.seekTo(T.BG(),{b$:"videoplayer_outOfWindow",
  11861. seekSource:102}))),!T.isAtLiveHead(void 0,!0)&&T.bl()&&(T.logger.debug("seek to head for live because pegged to live"),F={b$:"videoplayer_peggedToLive",seekSource:34},T.seekTo(Infinity,F)),g.I(T.playerState,256)&&T.videoData.UD&&T.sF.VN()))return T.Vp(Z2(T.playerState,8,4)),N.return();g.I(T.playerState,4)&&g.I(T.playerState,16)&&T.Vp(Z2(T.playerState,9,4));if(Xa(T,q))return $lf(T),N.return();sW7(T);g.E6(N)})};
  11862. g.Q.zH=function(d){this.logger.debug("reset media source");d&&this.jT(new g.xV("qoe.restart",d));this.Vp(Ae(this.playerState,2048));this.B$();d=this.videoData.G&&WI(this.videoData.G);var q=this.mediaElement&&this.mediaElement.isView();d||q?(this.loader&&OV_(this.loader),this.U6()):(Xa(this),this.playerState.isOrWillBePlaying()&&this.playVideo())};
  11863. g.Q.N4=function(){if(!this.zA)return[];var d=HEf(this.f8,this.zA,this.qT());return this.zA.G.N4(d)};
  11864. g.Q.SE=function(){if(!this.zA)return[];var d=HEf(this.f8,this.zA,this.qT());return this.zA.G.SE(d)};
  11865. g.Q.LB=function(){var d,q;return this.f8.LB(!!((d=this.zA)==null?0:(q=d.G)==null?0:q.G))};
  11866. g.Q.e1=function(){return this.zA?this.f8.e1(this.zA):xp};
  11867. g.Q.qT=function(){var d=this.Bl?this.Bl.qT():pt(this.videoData)&&this.videoData.G&&WI(this.videoData.G)?this.videoData.wU?xp:iHY:xp;this.Yd&&(d=d.compose(EQ7));return d};
  11868. g.Q.U9=function(){return this.zA?HEf(this.f8,this.zA,this.qT()):xp};
  11869. g.Q.x4=function(){var d=this.Sh(),q=this.h1.GX().videoId;return this.h1.z0.x4(d)||this.h1.z0.x4(q)};
  11870. g.Q.KD=function(d,q,T){var Y;if((Y=this.X9.qoe)!=null){var e=d.G,U=g.Jp(Y.provider);g.UV(Y,U,"vfi",[e===0?"":""+e,e===0?"A":"M"])}this.videoData.Ja=d;if(this.zA&&q&&(q=this.f8,e=this.zA,e.G.G)){Y=(U=g.Yv(q.Pv.experiments,"html5_max_quality_sel_upgrade"))?d.G:g.ZB[tF(d)];var b=e.G.videoInfos[0].video.qualityOrdinal,J=b!==0&&d.G===b;b=yR()>b;if(!J||!b){U&&J&&(Y=Math.max(Y,U));var F;U=MOH(q,(F=e.G)==null?void 0:F.videoInfos);F=q.G2.getPlaybackRate();F>1&&U&&(F=q_2(q.Pv.S,e.G.videoInfos,F),d.G!==0&&F<
  11871. d.G&&q.G2.setPlaybackRate(1));var N,R;d=((N=e.videoData.U)==null?void 0:(R=N.video)==null?void 0:R.qualityOrdinal)||0;g.pW("yt-player-quality",{quality:Y,previousQuality:d},31104E3);q.Pv.schedule.policy.T=yR()>=480;if(q.N("html5_exponential_memory_for_sticky")){N=q.Pv.dA;R=1;var x=x===void 0?!1:x;Gug(N,"sticky-lifetime");N.values["sticky-lifetime"]&&N.OQ["sticky-lifetime"]||(N.values["sticky-lifetime"]=0,N.OQ["sticky-lifetime"]=0);x&&SJ(N,"sticky-lifetime")>.0625&&(R=N.OQ["sticky-lifetime"]*2);N.values["sticky-lifetime"]+=
  11872. 1*Math.pow(2,N.G/R);N.OQ["sticky-lifetime"]=R;N.T.start()}if(q.N("html5_perf_cap_override_sticky")){x=q.j;N=q.N("html5_perserve_av1_perf_cap");N=N===void 0?!1:N;if(N===void 0?0:N){R=HI();d=g.E(Object.keys(R));for(q=d.next();!q.done;q=d.next())q=q.value,q.indexOf("1")!==0&&delete R[q];g.pW("yt-player-performance-cap",R,2592E3)}else g.Od("yt-player-performance-cap");q07(N);if(N){N=g.E(qd.keys());for(R=N.next();!R.done;R=N.next())R=R.value,R.startsWith("1")||qd.delete(R);N=g.E(pE.values());for(R=N.next();!R.done;R=
  11873. N.next())R=R.value,R.startsWith("1")||pE.delete(R);N=g.E(x.keys());for(R=N.next();!R.done;R=N.next())R=R.value,R.startsWith("1")||x.delete(R)}else qd.clear(),pE.clear(),x.clear()}}}this.loader&&(x=this.loader,T=T||"",x.policy.G?Xt(x.T.G,T):Xt(x.G.S,T));this.M2()};
  11874. g.Q.getUserPlaybackQualityPreference=function(){return this.videoData.j&&!this.videoData.j.G?tF(this.videoData.Ja):rj[yR()]};
  11875. g.Q.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
  11876. g.Q.setUserAudio51Preference=function(d,q){this.getUserAudio51Preference()!==d&&(this.oU("toggle51",{pref:d}),g.pW("yt-player-audio51",d,q?31536E3:2592E3),this.Ql())};
  11877. g.Q.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()};
  11878. g.Q.setProximaLatencyPreference=function(d){var q=this.getProximaLatencyPreference();this.oU("proxima",{pref:d});g.pW("yt-player-proxima-pref",d,31536E3);q!==d&&(d=this.sF,d.kx=!0,d.G2.seekTo(Infinity,{b$:"seektimeline_proximaSeekToHead",seekSource:34}))};
  11879. g.Q.getProximaLatencyPreference=function(){var d;return(d=hF())!=null?d:0};
  11880. g.Q.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible};
  11881. g.Q.Sp=function(){this.videoData.videoId?this.h1.Sp(this.videoData):this.oU("povid",{})};
  11882. g.Q.d5=function(){this.videoData.videoId?this.h1.d5(this.videoData):this.oU("piavid",{})};
  11883. g.Q.M2=function(){if(!this.JF()&&!g.I(this.playerState,128)&&this.videoData.j){if(this.videoData.j.G)bf(this);else{var d=RZ(this),q=this.videoData;a:{var T=this.videoData.qC;if(d.G){for(var Y=g.E(T),e=Y.next();!e.done;e=Y.next()){e=e.value;var U=e.getInfo(),b=g.ZB[U.video.quality];if((!d.j||U.video.quality!=="auto")&&b<=d.G){T=e;break a}}T=T[T.length-1]}else T=T[0]}q.AF=T;IfD(this,d.reason,X9D(this,this.videoData.AF))}if(this.N("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.sF.K=
  11884. !1,this.playVideo()}};
  11885. g.Q.mG=function(d,q){if(this.JF()||g.I(this.playerState,128))return!1;var T,Y=!((T=this.videoData.j)==null||!T.G);T=Y&&q?this.getCurrentTime()-this.mz():NaN;if(this.Pv.experiments.Wv("html5_record_audio_format_intent")){var e=this.X9;if(e.qoe){e=e.qoe;var U=[d.DQ.id,isNaN(T)?"m":"t"];g.UV(e,g.Jp(e.provider),"afi",U)}}if(Y)return q&&(Y=Xcn(this.sF),this.oU("aswh",{id:d.id,xtags:d.xtags,bh:Y.toFixed(3)})),this.loader.setAudioTrack(d,T,q),!0;if(Si1(this)){a:{q=this.mediaElement.audioTracks();for(Y=0;Y<
  11886. q.length;++Y)if(T=q[Y],T.label===d.DQ.getName()){if(T.enabled){q=!1;break a}q=T.enabled=!0;break a}q=void 0}q&&this.oU("hlsaudio",{id:d.id})}else{a:if(q=this.videoData,q.T&&!uW(q.T)||d===q.Se||!q.qC||q.qC.length<=0)q=!1;else{Y=g.E(q.qC);for(T=Y.next();!T.done;T=Y.next()){T=T.value;if(!(T instanceof kl)){q=!1;break a}e=d.DQ.getId();T.U&&(bSj(T.U,e),T.zG=null)}q.Se=d;q=!0}q&&Xa(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.oU("hlsaudio",{id:d.id}))}return!0};
  11887. g.Q.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()};
  11888. g.Q.getAudioTrack=function(){if(Si1(this)){var d=vrj(this);if(d)return d}return this.videoData.getAudioTrack()};
  11889. g.Q.n9=function(){return this.videoData.T};
  11890. g.Q.h3=function(){if(this.videoData.N("html5_trigger_loader_when_idle_network")&&!this.videoData.aN()&&tw(this.videoData)){var d;(d=this.loader)!=null&&d.Yo()}};
  11891. g.Q.sU=function(){if(Zu(this.videoData)&&this.videoData.N("html5_gapless_append_early")){var d;(d=this.loader)!=null&&d.Yo()}};
  11892. g.Q.onPlayerRequestSent=function(d){this.h1.onPlayerRequestSent(d)};
  11893. g.Q.dD=function(d){d=d===void 0?!1:d;if(this.loader){var q=this.loader,T=q.dD;var Y=this.videoData;Y=Y.N("html5_ssdai_use_post_for_media")&&Y.enableServerStitchedDai?!1:kp(Y)&&Y.ZY&&!Y.isAd();T.call(q,Y,d)}};
  11894. g.Q.B$=function(d){d=d===void 0?!1:d;this.ED&&(this.logger.debug("remove media source"),zsX(this.ED),this.dD(d),this.ED.dispose(),this.ED=null)};
  11895. g.Q.Eg=function(){return this.ED};
  11896. g.Q.uY=function(d,q,T,Y){function e(b){try{YaD(U,b,q,T)}catch(J){g.OL(J),U.handleError(new g.xV("fmt.unplayable",{msi:"1",ename:J&&typeof J==="object"&&"name"in J?String(J.name):void 0,trg:"setmediasrc"},1))}}
  11897. var U=this;q=q===void 0?!1:q;T=T===void 0?!1:T;qaD(this,Y===void 0?!1:Y);this.ED=d;this.Tz()&&Rp(this.ED)==="open"?e(this.ED):uAN(this.ED,e)};
  11898. g.Q.Wq=function(d){this.logger.debug("onNeedKeyInfo");this.lY.set(d.initData,d);this.Bl&&(this.Bl.Wq(d),this.N("html5_eme_loader_sync")||this.lY.remove(d.initData))};
  11899. g.Q.q6=function(d){this.videoData.GD=g.ZW("auto",d,!1,"u");bf(this)};
  11900. g.Q.Aa=function(d){var q=d.reason,T=d.G.info,Y=d.token,e=d.videoId,U=this.X9,b=this.videoData;if(T!==b.T){var J=!b.T;b.T=T;q!=="m"&&q!=="t"&&(q=J?"i":"a");var F=q==="m"||q==="t";this.Pv.experiments.Wv("html5_refactor_sabr_audio_format_selection_logging")?this.eS=new h5f(b,T,q,"",Y,e):(q=new h5f(b,T,q,"",Y),U.qoe&&(U=U.qoe,T=g.Jp(U.provider),hX6(U,T,q)));this.publish("internalaudioformatchange",b,!J&&F)}this.sF.Aa(d.G.index)};
  11901. g.Q.FH=function(d){this.publish("localmediachange",d)};
  11902. g.Q.J8=function(d){d=d===void 0?{}:d;var q;(q=this.loader)==null||q.J8(this.Pv,nt(this.videoData),d)};
  11903. g.Q.jI=function(){return this.Ha.jI()};
  11904. g.Q.J2=function(d){this.jT(new g.xV("staleconfig",{reason:d}))};
  11905. g.Q.handleError=function(d){this.Ha.handleError(d)};
  11906. g.Q.bk=function(){return this.Ha.bk()};
  11907. g.Q.Md=function(d){this.sF.Md(d)};
  11908. g.Q.U6=function(d,q){d=d===void 0?!1:d;q=q===void 0?!1:q;var T=this,Y,e,U;return g.G(function(b){if(b.U==1){T.loader&&T.loader.Dn();T.loader&&T.loader.JF()&&gF(T);if(T.N("html5_enable_vp9_fairplay")&&T.It()&&(Y=T.videoData.G)!=null)for(var J in Y.G)Y.G.hasOwnProperty(J)&&(Y.G[J].G=null,Y.G[J].j=!1);T.Vp(Ae(T.playerState,2048));T.publish("newelementrequired");return d?g.B(b,s8(T),2):b.tF(2)}T.videoData.aN()&&((e=T.loader)==null?0:e.z2)&&!v8(T)&&((U=T.isAtLiveHead())&&Lt(T.videoData)?T.seekTo(Infinity,
  11909. {b$:"videoPlayer_getNewElement"}):T.videoData.uC&&T.loader&&(J=T.loader,J.vv.aN&&(J.vv.uC||J.vv.T||J.vv.isPremiere?(J.seek(0,{b$:"loader_resetSqless"}),J.videoTrack.L=!0,J.audioTrack.L=!0,J.videoTrack.S=!0,J.audioTrack.S=!0):od(J.vv)&&R7(J))));q&&T.seekTo(0,{seekSource:105});g.I(T.playerState,8)&&T.playVideo();g.E6(b)})};
  11910. g.Q.Lb=function(d){this.oU("hgte",{ne:+d});this.videoData.L=!1;d&&this.U6();this.loader&&OV_(this.loader)};
  11911. g.Q.rE=function(d){this.oU("newelem",{r:d});this.U6()};
  11912. g.Q.pauseVideo=function(d){d=d===void 0?!1:d;if((g.I(this.playerState,64)||g.I(this.playerState,2))&&!d)if(g.I(this.playerState,8))this.Vp(Z2(this.playerState,4,8));else if(this.Kl())Xa(this);else return;g.I(this.playerState,128)||(d?this.Vp(Ae(this.playerState,256)):this.Vp(Z2(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.vr(this.videoData)&&this.loader&&xs(this,!1)};
  11913. g.Q.stopVideo=function(){this.pauseVideo();this.loader&&(xs(this,!1),this.loader.ZE())};
  11914. g.Q.Zp=function(d,q){d=d===void 0?!1:d;q=q===void 0?!1:q;if(this.Tz()&&q){var T;(T=this.mediaElement)==null||T.Zp()}else{var Y;(Y=this.mediaElement)==null||Y.stopVideo()}yk(this);gF(this);g.I(this.playerState,128)||(d?this.Vp(pk(pk(Ae(this.playerState,4),8),16)):this.Vp(ap(this.playerState)));this.videoData.videoId&&this.Pv.aU.remove(this.videoData.videoId)};
  11915. g.Q.seekTo=function(d,q){q=q===void 0?{}:q;this.logger.debug(function(){return"SeekTo "+d+", "+JSON.stringify(q)});
  11916. g.I(this.playerState,2)&&Xa(this);q.jWZ&&this.Vp(Ae(this.playerState,2048));q.seekSource!==58&&q.seekSource!==60||!this.N("html5_update_vss_during_gapless_seeking")||yGQ(this.X9,q.seekSource);this.sF.seekTo(d,q);this.Mp.sync()};
  11917. g.Q.Nn=function(d){this.rz.T.U=(0,g.cj)();g.I(this.playerState,32)||(this.Vp(Ae(this.playerState,32,d==null?void 0:d.seekSource)),g.I(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.Yc()};
  11918. g.Q.e_=function(d){d=d==null?void 0:d.seekSource;g.I(this.playerState,32)?(this.Vp(Z2(this.playerState,16,32,d)),this.publish("endseeking")):g.I(this.playerState,2)||this.Vp(Ae(this.playerState,16,d));d=this.rz.T;var q=this.videoData,T=this.playerState.isPaused();if(q.clientPlaybackNonce&&!isNaN(d.G)){if(Math.random()<.01){T=T?"pbp":"pbs";var Y={startTime:d.G};q.X&&(Y.cttAuthInfo={token:q.X,videoId:q.videoId});OG("seek",Y);g.ZO({clientPlaybackNonce:q.clientPlaybackNonce},"seek");isNaN(d.U)||pU("pl_ss",
  11919. d.U,"seek");pU(T,(0,g.cj)(),"seek")}d.reset()}};
  11920. g.Q.VI=function(d){this.e_(d)};
  11921. g.Q.JT=function(){this.publish("SEEK_COMPLETE")};
  11922. g.Q.Bq=function(d){var q=this.h1,T=this.videoData.clientPlaybackNonce,Y=this.playerType;if(d.scope===4){var e=d.type;if(e){var U=q.UM(),b=U.getVideoData().clientPlaybackNonce;Y===1&&(b=T);if(Y=QAD(q,b)){if(T=Y.getVideoData())d.writePolicy===2&&T.sabrContextUpdates.has(e)||(d.sendByDefault&&T.Bv.add(e),T.sabrContextUpdates.set(e,d)),q.N("html5_enable_t1_enf_on_sabr")&&(d=e===5,e=ggX(T.playerResponse),d?(d=e?1:0,UP(d,"m.p_",{}),Wq("MBSTAT",d)):d=1,d===0&&q.mZ.gO("onAbnormalityDetected"))}else U.oU("scuset",
  11923. {ncpf:"1",ccpn:b,crcpn:T})}else g.OL(Error("b/380308491: contextUpdateType is undefined"))}};
  11924. g.Q.x8=function(){if(this.playerType===2)return this.h1.x8("")};
  11925. g.Q.getCurrentTime=function(d){return this.sF.getCurrentTime(d===void 0?!1:d)};
  11926. g.Q.Eq=function(){return this.sF.Eq()};
  11927. g.Q.tE=function(){return this.sF.tE()};
  11928. g.Q.gG=function(){return this.tE()};
  11929. g.Q.d4=function(){return this.sF.d4()};
  11930. g.Q.getPlaylistSequenceForTime=function(d){return this.videoData.getPlaylistSequenceForTime(d-this.mz())};
  11931. g.Q.sP=function(){var d=NaN;this.mediaElement&&(d=this.mediaElement.sP());return d>=0?d:this.getCurrentTime()};
  11932. g.Q.fH=function(){var d;return((d=this.videoData.G)==null?0:d.fH)?this.videoData.G.fH(this.getCurrentTime()-this.mz()):this.mediaElement&&(d=this.mediaElement.U1())&&(d=d.getTime(),!isNaN(d))?d/1E3+this.getCurrentTime():NaN};
  11933. g.Q.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.mz():this.cG()?this.cG():0};
  11934. g.Q.vS=function(){var d=new Esg;if(this.loader){var q=this.Pv.schedule,T=this.Pv.uF();T=T===void 0?!1:T;d.Cw=q.yv;d.fL=q.qk;d.bandwidthEstimate=I9(q);if(T){T=(q.B.W4()*1E3).toFixed();var Y=(q.z2.W4()*1E3).toFixed(),e=fO(q).toFixed(2),U=((q.L.W4()||0)*1E9).toFixed(2),b=q.j.W4().toFixed(0),J=q.dO.W4().toFixed(0),F=q.K.percentile(.5).toFixed(2),N=q.K.percentile(.92).toFixed(2),R=q.K.percentile(.96).toFixed(2),x=q.K.percentile(.98).toFixed(2);q.G?q.G.reset():q.G=new GH;q.G.add(q.rO);q.G.add(q.interruptions.length);
  11935. for(var y=0,h=q.interruptions.length-1;h>=0;h--){var H=q.interruptions[h];q.G.add(H-y);y=H}y=0;for(h=q.T.length-1;h>=0;h--){H=q.T[h];var a=H.stamp/36E5;q.G.add(a-y);y=a;q.G.add(H.net/1E3);q.G.add(H.max)}q=q.G.VH();d.G={ttr:T,ttm:Y,d:e,st:U,bw:b,abw:J,v50:F,v92:N,v96:R,v98:x,"int":q}}qcD(this.loader,d)}else this.mediaElement&&(d.fb=QQ(this.mediaElement));d.Cw=this.Cw;d.fL=this.fL;d.j=this.isAtLiveHead()&&this.isPlaying()?kV1(this):NaN;return d};
  11936. g.Q.d0=function(d,q){this.fL+=d;this.Cw+=q};
  11937. g.Q.mE=function(){return this.mediaElement?g.vr(this.videoData)?1:of(this.videoData)?this.isAtLiveHead()||this.bl()?1:this.sF.mE():this.mediaElement.mE():0};
  11938. g.Q.K9=function(){var d=this.im,q=Ys(d,"bandwidth"),T=Ys(d,"bufferhealth"),Y=Ys(d,"livelatency"),e=Ys(d,"networkactivity"),U=TQ(d,"bandwidth"),b=TQ(d,"bufferhealth"),J=TQ(d,"livelatency");d=TQ(d,"networkactivity");var F=this.EE(),N=F.droppedVideoFrames;F=F.totalVideoFrames;var R=this.getCurrentTime();if(this.Bl){var x="IT/"+(this.Bl.G.getInfo()+"/"+tF(this.qT()));x+="/"+this.Bl.getInfo()}else x="";var y=this.isGapless(),h=this.MN(),H=this.bE(),a=g.Na(this),p=this.getPlayerState(),t=this.getPlaylistSequenceForTime(this.getCurrentTime());
  11939. a:{var n=0;var K="";if(this.Rd){if(this.Rd.q0){K="D,";break a}n=this.Rd.Yk;K=this.Rd.Ae.substring(0,4)}n>0?(n="AD"+n+", ",K&&(n+=K+", "),K=n):K=""}return{AJ:U,y9:b,currentTime:R,ZC:x,droppedVideoFrames:N,isGapless:y,MN:h,Xp:H,x$:q,AU:T,B2:Y,Zz:e,Ve:J,En:d,Sf:a,playerState:p,gI:t,R2:K,totalVideoFrames:F}};
  11940. g.Q.BF=function(d){var q={};if(d===void 0?0:d){Object.assign(q,this.X9.BF());this.mediaElement&&(Object.assign(q,this.mediaElement.BF()),d=this.EE(),q.dvf=d.droppedVideoFrames,q.tvf=d.totalVideoFrames);this.loader&&Object.assign(q,this.loader.BF());this.Bl&&(q.drm=JSON.stringify(this.Bl.BF()));q.state=this.playerState.state.toString(16);g.I(this.playerState,128)&&(q.debug_error=JSON.stringify(this.playerState.eF));this.S8()&&(q.prerolls=this.Lt.join(","));this.videoData.zq&&(q.ismb=this.videoData.zq);
  11941. this.videoData.latencyClass!=="UNKNOWN"&&(q.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(q.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)q.is_mosaic=1;this.videoData.cotn&&(q.is_offline=1,q.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(q.playerResponseCpn=this.videoData.playerResponseCpn);this.h1.isOrchestrationLeader()&&(q.leader=1);this.videoData.isLivePlayback&&
  11942. (this.videoData.G&&mF(this.videoData.G)&&(q.segduration=mF(this.videoData.G)),d=this.sF,q.lat=d.B?uaD(d.B.T):0,q.liveutcstart=this.videoData.liveUtcStartSeconds);q.relative_loudness=this.videoData.LC.toFixed(3);if(d=g.Na(this))q.optimal_format=d.video.qualityLabel;q.user_qual=yR();q.release_version=X[40]}q.debug_videoId=this.videoData.videoId;return q};
  11943. g.Q.addCueRange=function(d){this.Td([d])};
  11944. g.Q.removeCueRange=function(d){this.Mp.cR([d])};
  11945. g.Q.SB=function(){this.Mp.sync()};
  11946. g.Q.uX=function(d,q){return this.Mp.uX(d,q)};
  11947. g.Q.Td=function(d,q){this.Mp.ES(d,q)};
  11948. g.Q.TD=function(d){this.Mp.cR(d)};
  11949. g.Q.lw=function(){return this.Mp.lw()||[]};
  11950. g.Q.g_=function(){return this.X7};
  11951. g.Q.pA=function(){return this.visibility.pA()};
  11952. g.Q.Yp=function(){this.mediaElement&&this.mediaElement.Yp()};
  11953. g.Q.plk=function(){$s(this)};
  11954. g.Q.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
  11955. g.Q.zW=function(){g.jX(this.nY)};
  11956. g.Q.YF5=function(){this.Yc();this.publish("onLoadProgress",this.mE())};
  11957. g.Q.Rx=function(d){var q=d.target.j0();if(this.mediaElement&&this.mediaElement.j0()&&this.mediaElement.j0()===q){R$Q(this,d.type);switch(d.type){case "error":var T=cl(this.mediaElement)||"",Y=this.mediaElement.P4();if(T==="capability.changed"){this.N("html5_restart_on_capability_change")?(this.oU("capchg",{msg:Y}),this.U6(!0)):s8(this);return}if(this.mediaElement.hasError()&&$Zn(this.Ha,T,{msg:Y,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.nA()===4){this.Zp();Fa(this,"unplayable");
  11958. return}break;case "durationchange":T=this.mediaElement.getDuration();isFinite(T)&&(!this.ED||T>0)&&T!==1&&this.lV(T);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());rG2(this.Mp);this.X9.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":yg6(this);this.publish("onLoadedMetadata");bqD(this);T=this.fH();this.videoData.di&&(this.videoData.di=T);break;case "loadstart":bqD(this);break;case "progress":case "suspend":this.QR.Gh();
  11959. break;case "playing":this.rz.GT("plev");this.dg&&!v8(this)&&(this.dg=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{b$:"videoplayer_onPlaying"})));break;case "timeupdate":T=this.mediaElement&&!this.mediaElement.getCurrentTime();Y=this.mediaElement&&this.mediaElement.Tr()===0;if(T&&(!this.hL||Y))return;this.hL=this.hL||!!this.mediaElement.getCurrentTime();UlQ(this);this.Yc();if(!this.mediaElement||this.mediaElement.j0()!==q)return;this.publish("onVideoProgress",
  11960. this.getCurrentTime());break;case "waiting":if(this.mediaElement.NT().length>0&&this.mediaElement.g1().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.N("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.Tr()>2||!this.mediaElement.isSeeking()&&oI(this.mediaElement.g1(),this.mediaElement.getCurrentTime()))&&(T=this.mediaElement.BF(),T.bh=QQ(this.mediaElement).toFixed(3),this.oU("uwe",T));break;case "resize":yg6(this);
  11961. this.videoData.U&&this.videoData.U.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.Lv&&g.I(this.playerState,8)&&!g.I(this.playerState,1024)&&this.getCurrentTime()===0&&g.F8){Fa(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.j0()===q){Ha_(this.sF,d);this.publish("videoelementevent",d);q=this.playerState;Y=this.uL;var e=this.mediaElement;T=this.videoData.clientPlaybackNonce;if(!g.I(q,128)){var U=q.state;
  11962. e=e?e:d.target;var b=e.getCurrentTime();if(!g.I(q,64)||d.type!=="ended"&&d.type!=="pause"){var J=e.getDuration();J=e.isEnded()||b>1&&Math.abs(b-J)<1.1;var F=d.type==="pause"&&e.isEnded();b=d.type==="ended"||d.type==="waiting"||d.type==="timeupdate"&&!g.I(q,4)&&!CE(Y,b);if(F||J&&b)e.Va()>0&&e.j0()&&(U=14);else switch(d.type){case "error":cl(e)&&(U|=128);break;case "pause":g.I(q,256)?(U^=256)||(U=64):g.I(q,32)||g.I(q,2)||g.I(q,4)||(U=4,g.I(q,1)&&g.I(q,8)&&(U|=1));break;case "playing":b=U;U=(U|8)&-1093;
  11963. b&4?(U|=1,j1(Y,e,!0)):CE(Y,e.getCurrentTime())&&(U&=-2);g.I(q,1)&&j1(Y,e)&&(U|=1);break;case "seeking":U|=16;g.I(q,8)&&(U|=1);U&=-3;break;case "seeked":U&=-17;j1(Y,e,!0);break;case "waiting":g.I(q,2)||(U|=1);j1(Y,e);break;case "timeupdate":b=g.I(q,16),J=g.I(q,4),(g.I(q,8)||b)&&!J&&CE(Y,e.getCurrentTime())&&(U=8),j1(Y,e)&&(U|=1)}}Y=U;U=null;Y&128&&(U=d.target,e=cl(U),b=1,e?(e==="capability.changed"&&(b=2),J="GENERIC_WITHOUT_LINK",F=U.BF(),F.mediaElem="1",F.trg="melem",/AUDIO_RENDERER/.test(U.P4())&&
  11964. (J="HTML5_AUDIO_RENDERER_ERROR"),U={errorCode:e,errorMessage:g.l0[J]||"",rG:J,bH:RI(F),d_:b,cpn:q.eF?q.eF.cpn:""}):U=null,U&&(U.cpn=T));q=ap(q,Y,U)}!g.I(this.playerState,1)&&g.I(q,1)&&Nr1(this,"evt"+d.type);this.Vp(q)}}};
  11965. g.Q.Hfr=function(d){d=d.G.availability==="available";d!==this.X7&&(this.X7=d,this.publish("airplayavailabilitychange"))};
  11966. g.Q.uwg=function(){var d=(0,g.cj)(),q=this.mediaElement.pA();this.oU("airplay",{ia:q});!q&&!isNaN(this.xg)&&d-this.xg<2E3||(this.xg=d,q!==this.pA()&&(d=this.visibility,d.G!==q&&(d.G=q,d.nz()),this.oU("airplay",{rbld:q}),this.Ql()),this.publish("airplayactivechange"))};
  11967. g.Q.g9=function(d){if(this.loader){var q=this.loader,T=q.j,Y=q.getCurrentTime(),e=Date.now()-T.K;T.K=NaN;T.oU("sdai",{adfetchdone:d,d:e});d&&!isNaN(T.L)&&T.U!==3&&vX(T.loader,Y,T.L,T.X);T.policy.U?T.S=NaN:T.T=NaN;lk(T,4,T.U===3?"adfps":"adf");dk(q)}};
  11968. g.Q.eR=function(){g.Fq(this.iH);this.I4.stop();this.videoData.UD=!0;this.Pv.m1=!0;this.Pv.lF=0;var d=this.Ha;if(d.videoData.U){var q=d.Mk.S,T=d.videoData.U.Cf;q.T.has(T)&&(q.T.delete(T),q.U=!0)}d.G.stop();this.vC();g.I(this.playerState,8)&&this.Vp(pk(this.playerState,65));this.w9=!1;d=this.X9;d.G&&TFI(d.G);d.U&&(d=d.U,q=g.Jp(d.provider),d.G<0&&(d.G=q,d.delay.start()),d.U=q,d.T=q);g.zh(this.fu);this.publish("playbackstarted");(d=g.qx("yt.scheduler.instance.clearPriorityThreshold"))?d():SX(0)};
  11969. g.Q.vC=function(){var d=this.h1.GX(),q={},T={};!nU("pbs",this.rz.timerName)&&xh.measure&&xh.getEntriesByName&&(xh.getEntriesByName("mark_nr")[0]?sRD("mark_nr"):sRD());d.videoId&&(q.videoId=d.videoId);d.clientPlaybackNonce&&!this.N("web_player_early_cpn")&&(q.clientPlaybackNonce=d.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(T.isPausedOnLoad=!0);T.itag=d.U?Number(d.U.itag):-1;d.t0&&(T.preloadType=String(this.GV?2:1));q.liveStreamMode=ZpB[ix(d)];q.playerInfo=T;this.rz.infoGel(q);
  11970. if(this.loader){d=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(d.j&&(q=window.performance.getEntriesByName(d.j),q.length&&(q=q[0],d.tick("vri",q.fetchStart),d.tick("vdns",q.domainLookupEnd),d.tick("vreq",q.requestStart),d.tick("vrc",q.responseEnd))),d.U&&(q=window.performance.getEntriesByName(d.U),q.length&&(q=q[0],d.tick("ari",q.fetchStart),d.tick("adns",q.domainLookupEnd),d.tick("areq",q.requestStart),d.tick("arc",q.responseEnd))));d=d.ticks;for(var Y in d)d.hasOwnProperty(Y)&&
  11971. this.rz.tick(Y,d[Y])}};
  11972. g.Q.Yc=function(d){var q=this;d=d===void 0?!1:d;if(this.mediaElement&&this.videoData){Jc7(this.sF,this.isPlaying());var T=this.getCurrentTime();if(this.loader&&(g.I(this.playerState,4)&&g.vr(this.videoData)||g.I(this.playerState,32)&&tw(this.videoData)||e9N(this.loader,T),this.N("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-this.loader.currentTime)>10)){var Y;this.oU("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(Y=this.loader)==null?void 0:Y.currentTime},!0)}T>
  11973. 5&&(this.sF.j=T);(Y=g.m2())?g.Gh.Qt(this.PV):g.g7(this.PV);var e=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!e||Q2(this.videoData))&&!g.I(this.playerState,128)){var U=function(){if(q.mediaElement&&!g.I(q.playerState,128)){q.Pv.uF()&&R$Q(q,"pfx");var b=q.getCurrentTime();q.N("html5_buffer_underrun_transition_fix")&&(b-=q.mz());var J=QQ(q.mediaElement),F=g.I(q.playerState,8),N=CE(q.uL,b),R=oPf(q.uL,b,(0,g.cj)(),J);F&&N?q.Vp(pk(q.playerState,1)):F&&R?(F=q.getDuration(),N=Lt(q.videoData),
  11974. F&&Math.abs(F-b)<1.1?(q.oU("setended",{ct:b,bh:J,dur:F,live:N}),q.mediaElement.AC()?(q.logger.debug("seek to 0 because of looping"),q.seekTo(0,{b$:"videoplayer_loop",seekSource:37})):q.Wx()):(q.playerState.isBuffering()||Nr1(q,"progress_fix"),q.Vp(Ae(q.playerState,1)))):(F&&!N&&!R&&b>0&&(F=(Date.now()-q.jR)/1E3,N=q.getDuration(),b>N-1&&q.oU("misspg",{t:b.toFixed(2),d:N.toFixed(2),r:F.toFixed(2),bh:J.toFixed(2)})),q.playerState.isPaused()&&q.playerState.isBuffering()&&QQ(q.mediaElement)>5&&q.Vp(pk(q.playerState,
  11975. 1)));q.Yc()}};
  11976. this.mediaElement.NT().length===0?this.PV=Y?g.Gh.DE(U,100):g.s3(U,100):this.PV=Y?g.Gh.DE(U,500):g.s3(U,500)}this.videoData.ST=T;!d&&this.isPlaying()&&Jg6(this);rpN(this.f8,this.zA,this.WG(),this.isBackground())&&bf(this);this.publish("progresssync",d);e&&Q2(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}};
  11977. g.Q.vI=function(){this.o6("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
  11978. g.Q.bE=function(){return this.X9.bE()};
  11979. g.Q.L7=function(){return this.loader?this.loader.L7():I9(this.Pv.schedule,!0)};
  11980. g.Q.Vp=function(d){if(!g.OX(this.playerState,d)){this.logger.debug(function(){return"Setting state "+d.toString()});
  11981. var q=new g.sP(d,this.playerState);this.playerState=d;xln(this);var T=!this.yc.length;this.yc.push(q);var Y=this.mediaElement&&this.mediaElement.isSeeking();g.gs(q,1)&&this.loader&&pUf(this.loader);Y=q.oldState.state===8&&!Y;g.gs(q,1)&&Y&&g.I(this.playerState,8)&&!g.I(this.playerState,64)&&this.loader&&(ZVY(this.loader),this.mediaElement&&QQ(this.mediaElement)>=5&&OEI(this.f8,this.zA)&&bf(this));(Y=g.Yv(this.Pv.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.I(d,1)&&(g.I(d,8)||g.I(d,
  11982. 16))?this.xu.start(Y):this.xu.stop();($o(q,8)<0||g.gs(q,1024))&&this.I4.stop();!g.gs(q,8)||this.videoData.UD||g.I(q.state,1024)||this.I4.start();g.I(q.state,8)&&$o(q,16)<0&&!g.I(q.state,32)&&!g.I(q.state,2)&&this.playVideo();g.I(q.state,2)&&of(this.videoData)&&(this.lV(this.getCurrentTime()),this.Yc(!0));g.gs(q,2)&&(this.B0(!0),this.Pv.uF()&&this.N("html5_sabr_parse_live_metadata_playback_boundaries")&&tw(this.videoData)&&this.videoData.G&&(Y={minst:""+this.videoData.G.m1,cminst:""+(this.videoData.G.BG()+
  11983. this.mz()),maxst:""+this.videoData.G.Gr,hts:""+this.videoData.G.UD,cmaxst:""+(this.videoData.G.cG()+this.mz())},this.oU("sabrSeekableBoundaries",Y)));g.gs(q,128)&&this.Zp();this.videoData.G&&this.videoData.isLivePlayback&&!this.lD&&($o(q,8)<0?Kif(this.videoData.G):g.gs(q,8)&&this.videoData.G.resume());baj(this.sF,q);ha6(this.X9,q);if(T&&!this.JF())try{for(var e=g.E(this.yc),U=e.next();!U.done;U=e.next()){var b=U.value;tR7(this.Mp,b);this.publish("statechange",b)}}finally{this.yc.length=0}}};
  11984. g.Q.u6=function(){this.rz.tick("qoes")};
  11985. g.Q.R3=function(){this.sF.R3()};
  11986. g.Q.LJ=function(d,q,T,Y){a:{var e=this.Ha;Y=Y===void 0?"LICENSE":Y;T=T.substring(0,256);var U=yb(q);d==="drm.keyerror"&&this.Bl&&this.Bl.U.keys.length>1&&e.T<96&&(d="drm.sessionlimitexhausted",U=!1);var b=e.Mk.experiments.Wv("html5_retry_on_drm_unavailable"),J=e.Mk.experiments.Wv("html5_retry_on_drm_key_error"),F=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(b&&d==="drm.unavailable"||J&&d==="drm.keyerror"&&!T.match(F))e.jT("qoe.restart",{retryOnDrmError:1,e:d,detail:T}),e.G2.U6(!0);else{if(U)if(e.videoData.U&&
  11987. e.videoData.U.video.isHdr())yp7(e,d);else{if(e.G2.o6(d,q,Y,T),X82(e,{detail:T}))break a}else e.jT(d,{detail:T});d==="drm.sessionlimitexhausted"&&(e.oU("retrydrm",{sessionLimitExhausted:1}),e.T++,FG_(e.G2))}}};
  11988. g.Q.tvF=function(){var d=this,q=g.Yv(this.Pv.experiments,"html5_license_constraint_delay"),T=Se();q&&T?(q=new g.f9(function(){d.M2();$s(d)},q),g.C(this,q),q.start()):(this.M2(),$s(this))};
  11989. g.Q.i6=function(d){this.publish("heartbeatparams",d)};
  11990. g.Q.mL=function(d){this.oU("keystatuses",Kc1(d));var q="auto",T=!1;this.videoData.U&&(q=this.videoData.U.video.quality,T=this.videoData.U.video.isHdr());a:{switch(q){case "highres":case "hd2880":q="UHD2";break;case "hd2160":case "hd1440":q="UHD1";break;case "hd1080":case "hd720":q="HD";break;case "large":case "medium":case "small":case "light":case "tiny":q="SD";break;default:q="";break a}T&&(q+="HDR")}q=Qo(d)?MZ(d,q):d.T.includes(q);if(this.N("html5_enable_vp9_fairplay")){if(T)if(d.L){var Y;if((Y=
  11991. this.Bl)==null?0:$8(Y.G))if((T=this.Bl)==null)T=0;else{for(var e=Y=void 0,U=g.E(T.U.values()),b=U.next();!b.done;b=U.next())b=b.value,Y||(Y=LcN(b,"SD")),e||(e=LcN(b,"AUDIO"));T.Yq({sd:Y,audio:e});T=Y==="output-restricted"||e==="output-restricted"}else T=!q;if(T){this.oU("drm",{dshdr:1});yp7(this.Ha);return}}else{this.videoData.Kd||(this.videoData.Kd=!0,this.oU("drm",{dphdr:1}),this.U6(!0));return}var J;if((J=this.Bl)==null?0:$8(J.G))return}else if(J=d.L&&q,T&&!J){yp7(this.Ha);return}q||MZ(d,"AUDIO")&&
  11992. MZ(d,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),d=Kc1(d),this.Yd?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.N("html5_report_fatal_drm_restricted_error_killswitch")||this.o6("drm.keyerror",2,void 0,"info."+d)):(this.Yd=!0,this.jT(new g.xV("qoe.restart",Object.assign({},{retrydrm:1},d))),bf(this),FG_(this)))};
  11993. g.Q.zYF=function(){if(!this.videoData.UD&&this.mediaElement&&!this.isBackground()){var d="0";this.mediaElement.Tr()>0&&QQ(this.mediaElement)>=5&&this.videoData.j&&this.videoData.j.G&&(this.Vp(Ae(this.playerState,1)),Nr1(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),d="1");xln(this);var q=this.videoData.j;d={restartmsg:d,mfmt:!pt(this.videoData),mdrm:!(!(q&&q.videoInfos&&q.videoInfos.length&&q.videoInfos[0].ac)||this.Bl),mfmtinfo:!this.videoData.U,prerolls:this.S8()?this.Lt.join(","):
  11994. "0"};if(this.Bl){q=this.Bl;if(q.U.size<=0){var T="ns;";q.K||(T+="nr;");q=T+="ql."+q.j.length}else q=Kc1(q.U.values().next().value),q=RI(q);d.drmp=q}var Y;Object.assign(d,((Y=this.loader)==null?void 0:Y.BF())||{});var e;Object.assign(d,((e=this.mediaElement)==null?void 0:e.BF())||{});this.X9.jT("qoe.start15s",RI(d));this.publish("loadsofttimeout")}};
  11995. g.Q.lV=function(d){this.videoData.lengthSeconds!==d&&(this.videoData.lengthSeconds=d,$s(this))};
  11996. g.Q.B0=function(d,q){var T=this;d=d===void 0?!1:d;if(!this.E1)if(nU("att_s","player_att")||tU("att_s",void 0,"player_att"),this.N("use_rta_for_player"))(function(){var e,U,b,J;return g.G(function(F){switch(F.U){case 1:if(!(e=d)){F.tF(2);break}return g.B(F,g.PIQ(),3);case 3:e=!F.G;case 2:if(e)return F.return();g.jD(F,4);U=MRN(T.X9);if(!U)throw Error();b={};return g.B(F,g.kNf((b.cpn=T.videoData.clientPlaybackNonce,b.encryptedVideoId=T.videoData.videoId||"",b),3E4),6);case 6:J=F.G;if(T.E1)throw Error();
  11997. if(!J.challenge)throw g.OL(Error("Not sending attestation ping; no attestation challenge string")),Error();T.E1=!0;var N=[J.challenge];J.error?N.push("r1c="+J.error):J.webResponse&&N.push("r1a="+J.webResponse);var R;((R=J.adblockReporting)==null?void 0:R.reportingStatus)!==void 0&&N.push("r6a="+J.adblockReporting.reportingStatus);var x;((x=J.adblockReporting)==null?void 0:x.broadSpectrumDetectionResult)!==void 0&&N.push("r6b="+J.adblockReporting.broadSpectrumDetectionResult);U(N.join("&"));tU("att_f",
  11998. void 0,"player_att");g.ZX(F,0);break;case 4:g.nN(F),tU("att_e",void 0,"player_att"),g.E6(F)}})})().then(function(){q==null||q()});
  11999. else{var Y=new g.zoD(this.videoData);if("c1a"in Y.Rb&&!g.qe.isInitialized()){tU("att_wb",void 0,"player_att");this.GF===2&&Math.random()<.01&&g.OL(Error("Botguard not available after 2 attempts"));if(d)return;if(this.GF<5){g.zh(this.U7);this.GF++;return}}(Y=g.imI(Y))?(tU("att_f",void 0,"player_att"),QZ1(this.X9,Y),this.E1=!0):tU("att_e",void 0,"player_att")}};
  12000. g.Q.Jq=function(d){d=d===void 0?!1:d;return Lt(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.bl()||g.vr(this.videoData))?this.getCurrentTime():this.cG(d)};
  12001. g.Q.g3=function(){return this.BG()};
  12002. g.Q.cG=function(d){return this.sF.cG(d===void 0?!1:d)};
  12003. g.Q.BG=function(){return this.sF.BG()};
  12004. g.Q.mz=function(){return this.sF?this.sF.mz():0};
  12005. g.Q.getStreamTimeOffset=function(){return this.sF?this.sF.getStreamTimeOffset():0};
  12006. g.Q.il=function(){var d=0;this.Pv.N("web_player_ss_media_time_offset")&&(d=this.getStreamTimeOffset()===0?this.mz():this.getStreamTimeOffset());return d};
  12007. g.Q.setPlaybackRate=function(d){var q;this.playbackRate!==d&&MOH(this.f8,(q=this.videoData.j)==null?void 0:q.videoInfos)&&(this.playbackRate=d,bf(this));this.playbackRate=d;this.mediaElement&&this.mediaElement.setPlaybackRate(d)};
  12008. g.Q.getPlaybackRate=function(){return this.playbackRate};
  12009. g.Q.getPlaybackQuality=function(){var d="unknown";if(this.videoData.U&&(d=this.videoData.U.video.quality,d==="auto"&&this.mediaElement)){var q=this.Av();q&&q.videoHeight>0&&(d=pe(q.videoWidth,q.videoHeight))}return d};
  12010. g.Q.isHdr=function(){return!!(this.videoData.U&&this.videoData.U.video&&this.videoData.U.video.isHdr())};
  12011. g.Q.sendVideoStatsEngageEvent=function(d,q){var T=this.X9;T.G?(T=B8(T.G,"engage"),T.yv=d,T.send(q)):q&&q()};
  12012. g.Q.iS=function(d){return this.X9.iS(d)};
  12013. g.Q.isAtLiveHead=function(d,q){q=q===void 0?!1:q;return Lt(this.videoData)&&(this.OY||q)?this.sF.isAtLiveHead(d):!1};
  12014. g.Q.Jt=function(){var d=this.cG(),q=this.getCurrentTime(),T;(T=!Lt(this.videoData))||(T=this.sF,T=!(T.G&&T.G.j));return T||this.bl()||isNaN(d)||isNaN(q)?0:Math.max(0,d-q)};
  12015. g.Q.eO=function(d){(this.OY=d)||this.I4.stop();this.videoData.G&&(d?this.videoData.G.resume():Kif(this.videoData.G));if(this.loader){var q=this.videoData.N("html5_disable_preload_for_ssdai_with_preroll")&&this.k6()&&this.videoData.isLivePlayback;d&&!q?this.loader.resume():xs(this,!0)}g.I(this.playerState,2)||d?g.I(this.playerState,512)&&d&&this.Vp(pk(this.playerState,512)):this.Vp(Ae(this.playerState,512));q=this.X9;q.qoe&&(q=q.qoe,g.UV(q,g.Jp(q.provider),"stream",[d?"A":"I"]))};
  12016. g.Q.EU=function(d){this.X9.jT("player.exception",RI({n:d.name,m:d.message}))};
  12017. g.Q.Gz=dI(22);g.Q.xz=dI(51);g.Q.WR=function(d){this.X9.WR(d)};
  12018. g.Q.oP=function(d){this.X9.oP(d)};
  12019. g.Q.yD=function(d){this.X9.yD(d)};
  12020. g.Q.xL=dI(28);g.Q.Ak=dI(34);g.Q.u0=function(d){this.X9.u0(d)};
  12021. g.Q.Fz=function(d,q,T,Y){this.X9.Fz(d,q,T,Y)};
  12022. g.Q.V_=function(){this.oU("hidden",{},!0)};
  12023. g.Q.EE=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}};
  12024. g.Q.Kb=function(){return this.loader?this.loader.Kb():!0};
  12025. g.Q.setLoop=function(d){this.loop=d;this.mediaElement&&!g.ho(this.Pv)&&this.mediaElement.setLoop(d)};
  12026. g.Q.AC=function(){return this.mediaElement&&!g.ho(this.Pv)?this.mediaElement.AC():this.loop};
  12027. g.Q.XV=function(d){this.oU("timestamp",{o:d.toString()});this.sF.XV(d)};
  12028. g.Q.D$=function(d){this.rz.tick(d)};
  12029. g.Q.w1=function(d){return this.rz.w1(d)};
  12030. g.Q.GT=function(d){this.rz.GT(d)};
  12031. g.Q.oU=function(d,q,T){this.X9.oU(d,q,T===void 0?!1:T)};
  12032. g.Q.f_=function(d,q,T){this.X9.oU(d,q,T===void 0?!1:T)};
  12033. g.Q.jT=function(d){this.X9.jT(d.errorCode,RI(d.details));d=d.errorCode;if(this.videoData.isLivePlayback&&(d==="qoe.longrebuffer"||d==="qoe.slowseek")||d==="qoe.restart"){d=this.loader?xd1(this.loader.videoTrack):{};var q,T;this.oU("lasoe",Object.assign(this.loader?xd1(this.loader.audioTrack):{},(q=this.ED)==null?void 0:(T=q.G)==null?void 0:T.Bo()));var Y,e;this.oU("lvsoe",Object.assign(d,(Y=this.ED)==null?void 0:(e=Y.U)==null?void 0:e.Bo()))}if(this.N("html5_log_centralized_player_time")){var U;this.oU("sabrSeekRefactorCmt",
  12034. {cmt:this.getCurrentTime(),loaderCmt:(U=this.loader)==null?void 0:U.currentTime})}};
  12035. g.Q.Ly=function(d,q,T){this.X9.Ly(d,q,T)};
  12036. g.Q.JP=function(d,q,T,Y,e,U,b,J){var F;if((F=this.videoData.G)!=null&&F.isLive){var N=q.playerType===2?q:d,R=d.videoData.videoId,x=q.videoData.videoId;if(R&&x){F=this.X9;if(F.qoe){var y=F.qoe,h=d.cpn,H=q.cpn,a=N.videoData.R6,p=y.provider.videoData.clientPlaybackNonce,t=y.provider.videoData.videoId,n=H!==p&&x!==t;p=h!==p&&R!==t;y.reportStats();y.adCpn&&y.adCpn!==h||(y.adCpn=p?h:"",y.Ud=p?R:"",y.adFormat=p?a:void 0,HV_(y,U?4:e?2:0,H,x,Y),y.reportStats(),y.adCpn=n?H:"",y.Ud=n?x:"",y.adFormat=n?a:void 0,
  12037. HV_(y,U?5:e?3:1,h,R,T),y.reportStats())}T=d.cpn;if(F.j.has(T)){if(e=F.j.get(T),LE(e,!0).send(),G6(e),T!==F.provider.videoData.clientPlaybackNonce){JG_(e);var K;(K=F.G)==null||Y82(K);F.j.delete(T)}}else F.KA=F.provider.videoData.clientPlaybackNonce,F.KA&&F.G&&(F.j.set(F.KA,F.G),LE(F.G).send(),G6(F.G));K=q.cpn;N=N.videoData;Y-=this.il();if(F.j.has(K)){Y=F.j.get(K);var P=Y.j&&isNaN(Y.S)?KE(Y):NaN;Y=X$2(Y,!1);isNaN(P)||(Y.L=P);Y.send()}else Y=cGn(F,F.provider,N,Y),F.j.set(K,Y),sZ_(Y,new g.sP(Ae(new g.EX,
  12038. 8),new g.EX)),TFI(Y),(P=F.G)==null||G6(P);F.KA=K;if(this.N("html5_unify_csi_server_stitched_transition_logging")){if(F=this.rz,P=q.cpn,Y=this.videoData.clientPlaybackNonce,q=q.videoData,d=(d.cpn===Y?"video":"ad")+"_to_"+(P===Y?"video":"ad"),d!=="video_to_ad"){Y=d==="ad_to_video"?void 0:q;N=Y==null?void 0:Y.d7;K={};if(q==null?0:q.X)K.cttAuthInfo={token:q.X,videoId:q.videoId};b&&(K.startTime=b);OG(d,K);var w,l,m;b={targetVideoId:(w=q==null?void 0:q.videoId)!=null?w:"empty_video",targetCpn:P,adVideoId:(l=
  12039. Y==null?void 0:Y.videoId)!=null?l:"empty_video",adClientPlaybackNonce:(m=N==null?void 0:N.cpn)!=null?m:Y==null?void 0:Y.clientPlaybackNonce};N&&(b.adBreakType=N.adBreakType,b.adType=N.adType);g.ZO(b,d);aN(F,J,d)}}else w=this.rz,m=this.videoData.clientPlaybackNonce,l=q.videoData,m=(d.cpn===m?"video":"ad")+"_to_"+(q.cpn===m?"video":"ad"),d={},l.X&&(d.cttAuthInfo={token:l.X,videoId:l.videoId}),b&&(d.startTime=b),OG(m,d),g.ZO({targetVideoId:l.videoId,targetCpn:q.cpn,isSsdai:!0},m),b||aN(w,J,m)}}else this.logger.G(360717806,
  12040. "SSTEvent for nonSS")};
  12041. g.Q.Ne=function(){var d=this.h1,q=d.Xx;d.Xx=[];return q};
  12042. g.Q.f7=function(d){this.videoData.F7=!0;this.jT(new g.xV("sabr.fallback",d));this.U6(!0)};
  12043. g.Q.pB=function(d,q){this.videoData.ZB=!0;if(q===void 0||q)this.jT(new g.xV("qoe.restart",d)),this.U6(!0);this.videoData.y5()&&this.N("html5_reload_caption_on_ssdai_fallback")&&this.h1.iy()};
  12044. g.Q.uH=function(d){this.oU("sdai",{aftimeout:d});this.jT(new g.xV("ad.fetchtimeout",{timeout:d}))};
  12045. g.Q.dn=function(d,q){this.oU("timelineerror",d);d=new g.xV("dai.timelineerror",d);q?this.o6("dai.timelineerror",1,"RETRYABLE_ERROR",RI(d.details)):this.jT(d)};
  12046. g.Q.Rf=function(){return g.Jp(this.X9.provider)};
  12047. g.Q.getPlayerSize=function(){return this.eb.getPlayerSize()};
  12048. g.Q.yS=function(){return this.eb.yS()};
  12049. g.Q.GN=function(){return this.rz};
  12050. g.Q.B9=function(){return this.h1.B9()};
  12051. g.Q.getVolume=function(){return this.h1.getVolume()};
  12052. g.Q.hW=function(){return this.h1.hW()};
  12053. g.Q.isMuted=function(){return this.h1.isMuted()};
  12054. g.Q.L9=function(){return this.h1.L9()};
  12055. g.Q.kK=function(){this.lD=!0};
  12056. g.Q.N=function(d){return this.Pv.N(d)};
  12057. g.Q.a$=function(d,q,T,Y,e){this.oU("xvt",{m:d,g:q?1:0,tt:T?1:0,np:Y?1:0,c:e})};
  12058. g.Q.L0=function(){var d;(d=this.loader)==null||d.resume()};
  12059. g.Q.k6=function(){return g.cR(this.Lt,"ad")};
  12060. g.Q.oF=function(){var d=this.getCurrentTime(),q=d-this.mz();var T=this.mediaElement?dC(this.mediaElement.g1()):0;T=Math.floor(Math.max(T-q,0))+100;var Y;return((Y=this.loader)==null?0:Y.oF(q,T))?(this.oU("sdai",{skipad:1,ct:q.toFixed(3),adj:T.toFixed(3)}),tw(this.videoData)&&this.loader.seek(q+T,{seekSource:89,b$:"videoplayer_skipServerStitchedAd"}),MzY(this.sF,d),!0):!1};
  12061. g.Q.uF=function(){return this.Pv.uF()};
  12062. g.Q.gK=function(){if(this.N("html5_generate_content_po_token"))return this.videoData.nR||"";this.h1.nN();return this.Pv.qU||""};
  12063. g.Q.PH=function(){if(this.videoData.videoId)return this.videoData.BD};
  12064. g.Q.Sh=function(){return this.videoData.videoId};
  12065. g.Q.C9=function(){return this.h1.cq};
  12066. g.Q.HE=function(){return this.w9};
  12067. g.Q.GO=function(){return this.h1.GO()};
  12068. g.Q.mN=function(d,q,T){this.Vp(Ae(this.playerState,16,T));this.sF.mN(d,q)};
  12069. g.Q.prefetchKeyPlay=function(){};
  12070. g.Q.q7=function(){this.sF.q7()};
  12071. g.Q.RX=function(d,q){var T=this.N("html5_generate_content_po_token")?this.videoData:void 0;this.h1.RX(d,q,T)};
  12072. g.Q.Z1=function(d,q){this.X9.Z1(d,q)};
  12073. g.Q.NI=function(){return this.X9.NI()};
  12074. g.Q.DL=function(){return this.videoData.UK};
  12075. g.Q.MN=function(){return this.h1.MN()};
  12076. g.Q.lj=function(){return this.h1.lj(this)};
  12077. g.Q.Be=function(){this.le=!0};
  12078. g.Q.sO=function(d){var q;(q=this.loader)==null||q.sO(d)};g.M(h$j,xT);g.M(hG,jq);hG.prototype.G=function(d){d&&az(this,this.J.getLoopVideo());this.J.logVisibility(this.element,d)};
  12079. hG.prototype.logClick=function(){this.J.logClick(this.element)};
  12080. hG.prototype.onLoopChange=function(d){az(this,d)};
  12081. hG.prototype.U=function(d){this.J.setLoopVideo(d)};g.M(Hq1,xT);g.M(QWn,xT);g.Q=QWn.prototype;g.Q.seekToChapterWithAnimation=function(d){var q=this;if(g.KV(this.api)&&!(d<0)){var T=this.api.getVideoData(),Y=T.lS;if(Y&&d<Y.length){Y=g.E(Y);for(var e=Y.next();!e.done;e=Y.next())if(e=e.value,e.index===d){Mgn(this,e.startTime,e.title);return}}this.N("web_key_moments_markers")&&(T=T.Mr)&&d<T.length&&T.forEach(function(U,b){b===d&&Mgn(q,U.timeRangeStartMillis,U.title)})}};
  12082. g.Q.seekToTimeWithAnimation=function(d,q){g.KV(this.api)&&Mgn(this,d,q)};
  12083. g.Q.setMacroMarkers=function(d,q){q={playerOverlays:{playerOverlayRenderer:{decoratedPlayerBarRenderer:{decoratedPlayerBarRenderer:{playerBar:{multiMarkersPlayerBarRenderer:q}}}}}};d=d.getVideoData();d.getWatchNextResponse();d&&d.getWatchNextResponse()==null&&(Hr(d,{raw_watch_next_response:q}),d.publish("dataupdated"))};
  12084. g.Q.changeMarkerVisibility=function(d,q,T){var Y=this.api.getVideoData();if(Y){var e=!1;if(d)for(d=g.E(q),q=d.next();!q.done;q=d.next()){q=q.value;var U=Y.Fw;if(U&&!U.includes(q))switch(T){case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_SAME_TYPE":EBQ(q,Y)||(e=!0,U=void 0,(U=Y.Fw)==null||U.push(q));break;case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_ANY_TYPE":U.length===0&&(e=!0,U=void 0,(U=Y.Fw)==null||U.push(q));break;default:e=!0,U=void 0,(U=Y.Fw)==null||U.push(q)}}else for(T=
  12085. g.E(q),d=T.next();!d.done;d=T.next())d=d.value,Y.visibleOnLoadKeys.includes(d)||g.jj(Y.Fw,d)&&(e=!0);e&&this.api.publish("updatemarkervisibility")}};
  12086. g.Q.isSameMarkerTypeVisible=function(d){var q=this.api.getVideoData();return q?EBQ(d,q):!1};g.M(jWj,xT);jWj.prototype.ZA=function(){var d=this.api.getPlaybackRate(),q;if(q=this.api.getVideoData()){var T=q.adFormat==="17_8",Y,e=((Y=q.qV)==null?void 0:n2(Y,5))===8;q=q.isAd()&&(T||e)}else q=!1;q?(d!==1&&(this.G=d),this.api.setPlaybackRate(1)):this.G!==null&&(this.api.setPlaybackRate(this.G),this.G=null)};g.M(H$,xT);
  12087. H$.prototype.updateMetadata=function(){var d=this,q=this.api.getVideoData();if(q!=null&&q.LH()){var T=this.api.C(),Y=[],e="";if(!T.UD){var U=Zqj(this);g.KG(T)&&U?(Y=Oq_(U.thumbnailDetails),U.album&&(e=D4(U.album))):Y=[{src:q.Qg("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}var b;((b=this.api.getVideoData())==null?0:efY(b))&&AgQ(this);aIg(this);p9_(this);navigator.mediaSession.metadata=new MediaMetadata({title:q.title,artist:q.author,artwork:Y,album:e});T=q=null;g.m7(this.api)&&(q=function(){d.api.nextVideo()},
  12088. T=function(){d.api.previousVideo()});
  12089. Qk("nexttrack",q);Qk("previoustrack",T)}};
  12090. H$.prototype.ir=function(){navigator.mediaSession.playbackState="none";navigator.mediaSession.metadata=null;for(var d=g.E("nexttrack previoustrack play pause seekbackward seekforward seekto".split(" ")),q=d.next();!q.done;q=d.next())Qk(q.value,null);var T;((T=this.api.getVideoData())==null?0:efY(T))&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({});xT.prototype.ir.call(this)};g.M(Ma,xT);Ma.prototype.setCompositeVideoOverlayRendererComponent=function(d){this.j&&(this.j.remove(),g.TR(this.j,"ytp-composite-video-overlay-renderer"),this.j=void 0);d&&(g.d9(d,"ytp-composite-video-overlay-renderer"),g.o6(this.api,d,4),this.j=d)};
  12091. Ma.prototype.S=function(d){return d.compositeEmbargo!==void 0};
  12092. Ma.prototype.ir=function(){xT.prototype.ir.call(this);this.U.clear()};g.M(KGN,xT);g.Q=KGN.prototype;g.Q.queueOfflineAction=function(d,q,T,Y){var e=this,U,b;return g.G(function(J){return J.U==1?(U=u0(e.api.M5()))?g.B(J,U.wI([d],q,T,Y),3):J.tF(2):J.U!=2&&(b=J.G,b.length)?J.return(b[0]):J.return(Promise.reject())})};
  12093. g.Q.updateDownloadState=function(d,q){var T=u0(this.api.M5());return T?T.updateDownloadState(d,q):Promise.reject()};
  12094. g.Q.pauseVideoDownload=function(d){var q=u0(this.api.M5());q&&q.D2(d)};
  12095. g.Q.resumeVideoDownload=function(d){var q=this,T;return g.G(function(Y){return(T=u0(q.api.M5()))?Y.return(T.F_(d)):Y.return(Promise.reject())})};
  12096. g.Q.isOrchestrationLeader=function(){return this.api.isOrchestrationLeader()};
  12097. g.Q.refreshAllStaleEntities=function(d){d===void 0&&(d=14400);var q=u0(this.api.M5());return q?q.refreshAllStaleEntities(d):Promise.reject()};
  12098. g.Q.setUpPositionSyncInterval=function(d){var q=u0(this.api.M5());q&&q.setUpPositionSyncInterval(d)};g.M(c$,xT);c$.prototype.getAvailableQualityDataAndMessaging=function(){return{qualityData:this.getAvailableQualityData(),qualityMessagingFormattedString:void 0}};
  12099. c$.prototype.getAvailableQualityData=function(){var d=this.api.getVideoData();if(!d)return[];var q=[],T,Y,e=(T=d.getPlayerResponse())==null?void 0:(Y=T.playabilityStatus)==null?void 0:Y.paygatedQualitiesMetadata;Y=(e==null?void 0:e.qualityDetails)||[];T=new Map;T=g.UI(Y)&&!Array.isArray(Y)?new Map(Object.entries(Y)):new Map(Y.map(function(b){return[b.key,b.value]}));
  12100. if(Y=e==null?void 0:e.restrictedAdaptiveFormats){e=[];Y=g.E(Y);for(var U=Y.next();!U.done;U=Y.next())U=U.value,U=II(U.mimeType,U.quality,U.itag.toString(),U.width.toString(),U.height.toString(),U.qualityLabel),e.push(U);d=g.Br(d);ut(e);Y=[];e=g.E(e);for(U=e.next();!U.done;U=e.next())U=U.value,PI(d,U,this.api.C().S)===!0&&Y.push(U);q=q.concat(GZ_(Y,!1,T))}d=this.api.SE();q=q.concat(GZ_(d,!0,T));T=[];if(this.api.N("web_player_enable_premium_hbr_in_h5_api"))return q=kZf(q),LGX(q),q;d={};q=g.E(q);for(e=
  12101. q.next();!e.done;e=q.next())e=e.value,Y=e.quality,d[Y]||(e.formatId=void 0,T.push(e),d[Y]=!0);return T};var AN={},Dqs=(AN["internal-error"]=-1,AN["non-recoverable-error"]=-2,AN["api-disabled-by-application"]=-3,AN["invalid-argument"]=-4,AN["token-provider-invalid"]=-5,AN);g.M(E8,xT);E8.prototype.d5=function(d){var q=this;if(WGY())if(!this.U&&this.G){DlD(this,d);try{this.G.then(function(){uyH(q,d)},function(T){jR(T,"player_update");
  12102. q.handleError(T,d)})}catch(T){jR(T,"player_update_catch"),this.handleError(T,d)}}else this.U?uyH(this,d):this.api.oU("pf",{m:this.U?1:0,
  12103. p:this.G?1:0})};
  12104. E8.prototype.handleError=function(d,q){g.OL(d);if(this.api.N("html5_enable_d6de4_cold_start_and_error")){var T=0;d.mediaIntegrityErrorName?T||(T=Dqs[d.mediaIntegrityErrorName]):d.code&&(T=d.code());q.BD={m3D:{code:T}}}};g.M(aZ,g.f);aZ.prototype.S5=function(d){d=d?"\u9000\u51fa\u753b\u4e2d\u753b":"\u753b\u4e2d\u753b";this.api.C().N("player_tooltip_data_title_killswitch")?this.update({title:d,"data-title-no-tooltip":d}):this.update({"data-tooltip-title":d,"data-title-no-tooltip":d});this.api.U$()};
  12105. aZ.prototype.onClick=function(){this.api.togglePictureInPicture()};g.M(AG,xT);AG.prototype.createButton=function(){var d=this;this.button=new aZ(this.api);g.C(this,this.button);this.api.j_(this.button);this.events.W(this.api,"videodatachange",function(){w9f(d)});
  12106. w9f(this)};
  12107. AG.prototype.setDocumentPictureInPicture=function(d){this.api.Jp().Bx(d);d=this.api.Kx();var q=Vk6(this.api.M5());q&&(d?q.load():q.unload());this.api.publish("documentpictureinpicturechange")};g.M(fIN,xT);g.Q=fIN.prototype;g.Q.GB=function(){return this.api.getVideoData().K.includes("yto")};
  12108. g.Q.load=function(){var d=this;if(!this.loaded){this.S||(this.S=new g.f({Y:"div",hF:["ytp-player-content","ytp-yto-overlay"],V:[{Y:"div",hF:["ytp-yto-preroll-message"],j5:"\u89c6\u9891\u5373\u5c06\u5f00\u59cb\u64ad\u653e"}]}),g.C(this,this.S),z$j(this,!1),g.o6(this.api,this.S.element,4));var q=this.api.getPresentingPlayerType();this.j.W(this.api,"playbackChange",function(){var T=d.api.getPresentingPlayerType()===5;g.ep(d.api.getRootNode(),"ytp-yto-preroll",T);z$j(d,T)});
  12109. this.j.W(this.api,"presentingplayerstatechange",function(T){d.onStateChange(T)});
  12110. this.j.W(this.api,g.Sh("yto"),function(T,Y){d.onCueRangeEnter(T,Y)});
  12111. this.j.W(this.api,"ytoprerollinternstitialnext",function(){mlH(d)});
  12112. iqN(this);this.loaded=!0;this.api.Lz("yto",q)}};
  12113. g.Q.onCueRangeEnter=function(d){d=d.getId();if(!this.G){if(g.I(this.api.getPlayerStateObject(1),2)){if(this.X)return}else this.X=!1;this.U.includes(d)||this.U.push(d);this.api.getPresentingPlayerType()===1&&II7(this)}};
  12114. g.Q.onStateChange=function(d){var q=this.api.getPresentingPlayerType();d=d.state;this.G||q!==5&&q!==6&&q!==7||g.I(d,1)||g.I(d,16)||g.I(d,32)||(q=g.I(d,128),(g.I(d,2)||q)&&mlH(this))};
  12115. g.Q.unload=function(){this.loaded&&(this.B=0,this.X=this.G=!1,this.L={},this.T=0,this.U.length=0,g.jX(this.j),this.loaded=!1)};
  12116. g.Q.ir=function(){this.unload();xT.prototype.ir.call(this)};g.M(San,xT);g.M(O8,g.f);g.Q=O8.prototype;g.Q.Lm=function(){};
  12117. g.Q.aC=function(){};
  12118. g.Q.Cy=function(){return!0};
  12119. g.Q.o9v=function(){if(this.expanded){this.Bv.show();var d=this.j.element.scrollWidth}else d=this.j.element.scrollWidth,this.Bv.hide();this.Ln=this.qk+d;g.ep(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?this.qk:this.Ln)+"px";this.Fw.start()};
  12120. g.Q.iU=function(){this.badge.element.style.width=(this.expanded?this.Ln:this.qk)+"px";this.kx.start()};
  12121. g.Q.GR=function(){this.T&&this.J.logVisibility(this.badge.element,this.Cy());this.lr&&this.J.logVisibility(this.dismissButton.element,this.Cy()&&this.To())};
  12122. g.Q.qH=function(d){this.yv=d;Zt(this);pc(this);this.kq()};
  12123. g.Q.B1x=function(){g.ep(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
  12124. g.Q.To=function(){return this.UD||this.yv||!this.B};
  12125. g.Q.kq=function(){this.Cy()?(this.show(),this.K.show()):this.K.hide();this.GR()};
  12126. g.Q.aM=function(){this.enabled=!1;this.kq()};
  12127. g.Q.uA=function(d){d?this.lr&&this.J.logClick(this.dismissButton.element):this.T&&this.J.logClick(this.badge.element)};
  12128. g.Q.WfZ=function(){this.kq()};
  12129. g.Q.NOx=function(d){this.lF=d===1;this.kq();g.ep(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
  12130. g.Q.oBO=function(){g.ep(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.J.isFullscreen());this.kq()};g.M(nc,g.Ji);nc.prototype.cY=function(){this.publish("size-change")};
  12131. nc.prototype.focus=function(){this.content.focus()};
  12132. nc.prototype.gP=function(){this.publish("back")};g.M(g.rF,nc);g.Q=g.rF.prototype;g.Q.rk=function(d,q){if(q===void 0?0:q)this.items.push(d),this.menuItems.element.appendChild(d.element);else{q=g.Dn(this.items,d,vB2);if(q>=0)return;q=~q;g.WR(this.items,q,0,d);yp(this.menuItems.element,d.element,q)}d.subscribe("size-change",this.IX,this);this.menuItems.publish("size-change")};
  12133. g.Q.e$=function(d){d.unsubscribe("size-change",this.IX,this);this.JF()||(g.jj(this.items,d),this.menuItems.element.removeChild(d.element),this.menuItems.publish("size-change"))};
  12134. g.Q.IX=function(){this.menuItems.publish("size-change")};
  12135. g.Q.focus=function(){for(var d=0,q=0;q<this.items.length;q++){var T=this.items[q].element;if(T.getAttribute("role")==="menuitemradio"){if(T.getAttribute("aria-checked")==="true"){d=q;break}}else break}this.items[d].focus()};
  12136. g.Q.G3=function(){return this.items.length};g.M(g.B$,g.bi);g.Q=g.B$.prototype;g.Q.show=function(){g.bi.prototype.show.call(this);this.OJ()};
  12137. g.Q.hide=function(){g.bi.prototype.hide.call(this);this.G.length>1&&g.GQ(this)};
  12138. g.Q.OJ=function(){dN1(this);this.PF&&(oBI(this),g.or(this.element,this.size))};
  12139. g.Q.l1=function(){var d=this.G.pop();VgH(this,d,this.G[this.G.length-1],!0)};
  12140. g.Q.sG=function(d){if(!d.defaultPrevented)switch(d.keyCode){case 27:this.bF();d.preventDefault();break;case 37:this.G.length>1&&this.l1();d.preventDefault();break;case 39:d.preventDefault()}};
  12141. g.Q.focus=function(){this.G.length&&this.G[this.G.length-1].focus()};
  12142. g.Q.ir=function(){g.bi.prototype.ir.call(this);this.X&&this.X.dispose();this.L&&this.L.dispose()};g.M(Lc,g.B$);Lc.prototype.open=function(d,q){this.initialize(d.items)&&this.St(q,!!q)};
  12143. Lc.prototype.initialize=function(d){g.tG(this.ws);if(d===void 0||d.length===0)return!1;var q=d.length;d=g.E(d);for(var T=d.next();!T.done;T=d.next())this.rk(T.value,q--);return!0};
  12144. Lc.prototype.rk=function(d,q){d.menuNavigationItemRenderer?Ykj(this,d.menuNavigationItemRenderer,q):d.menuServiceItemRenderer&&et2(this,d.menuServiceItemRenderer,q)};g.M(ks,O8);g.Q=ks.prototype;g.Q.Lm=function(d){d.target!==this.dismissButton.element&&d.target!==this.overflowButton.element&&(this.uA(),this.onClickCommand&&this.J.gO("innertubeCommand",this.onClickCommand))};
  12145. g.Q.aC=function(){this.enabled=!1;this.K.hide()};
  12146. g.Q.Cy=function(){return!!this.G&&this.enabled};
  12147. g.Q.onVideoDataChange=function(d,q){this.E8(q);if(this.G){this.nX();a:if(!this.isCounterfactual){var T,Y,e;this.banner.update({title:(T=this.G)==null?void 0:T.title,subtitle:(Y=this.G)==null?void 0:Y.subtitle,metadata:(e=this.G)==null?void 0:e.metadataText});var U;this.onClickCommand=g.D((U=this.G)==null?void 0:U.onTap,ri);var b;if(d=g.D((b=this.G)==null?void 0:b.onOverflow,ri))this.L=g.D(d,DXc);var J;if((J=this.G)==null?0:J.thumbnailImage){var F,N;b=((F=this.G)==null?void 0:(N=F.thumbnailImage)==
  12148. null?void 0:N.sources)||[];if(b.length===0)break a;this.thumbnailImage.update({url:b[0].url})}else{var R;if((R=this.G)==null?0:R.thumbnailIconName){var x;this.thumbnailIcon.update({icon:(x=this.G)==null?void 0:x.thumbnailIconName})}}var y;this.shouldShowOverflowButton=!((y=this.G)==null||!y.shouldShowOverflowButton);var h;this.shouldHideDismissButton=!((h=this.G)==null||!h.shouldHideDismissButton)}var H;this.banner.element.setAttribute("aria-label",((H=this.G)==null?void 0:H.a11yLabel)||"");var a;
  12149. this.xx=(a=this.G)==null?void 0:a.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;bAQ(this)}};
  12150. g.Q.fQw=function(){this.isVisible=!0;bAQ(this)};
  12151. g.Q.U5v=function(){this.isVisible=!1;bAQ(this)};
  12152. g.Q.GR=function(){O8.prototype.GR.call(this);this.U&&this.J.logVisibility(this.banner.element,this.isVisible)};
  12153. g.Q.uA=function(){O8.prototype.uA.call(this,!1);this.U&&this.J.logClick(this.banner.element)};
  12154. g.Q.HB=function(d){this.X||(this.X=new Lc(this.J),g.C(this,this.X));var q,T;if((q=this.L)==null?0:(T=q.menu)==null?0:T.menuRenderer)this.X.open(this.L.menu.menuRenderer,d.target),d.preventDefault()};
  12155. g.Q.E8=function(){};
  12156. g.Q.nX=function(){};
  12157. g.Q.ir=function(){this.J.hm("suggested_action_view_model");O8.prototype.ir.call(this)};g.M(P$,ks);
  12158. P$.prototype.E8=function(d){var q,T,Y;this.productUpsellSuggestedActionViewModel=g.D((q=d.getWatchNextResponse())==null?void 0:(T=q.playerOverlays)==null?void 0:(Y=T.playerOverlayRenderer)==null?void 0:Y.suggestedActionViewModel,euc);var e;if((e=this.productUpsellSuggestedActionViewModel)==null?0:e.content){var U;this.G=g.D((U=this.productUpsellSuggestedActionViewModel)==null?void 0:U.content,WnI)}var b,J;if(this.U=!!((b=this.productUpsellSuggestedActionViewModel)==null?0:(J=b.loggingDirectives)==null?
  12159. 0:J.trackingParams)){var F,N;this.J.setTrackingParams(this.banner.element,((F=this.productUpsellSuggestedActionViewModel)==null?void 0:(N=F.loggingDirectives)==null?void 0:N.trackingParams)||null)}var R;this.isCounterfactual=!((R=this.productUpsellSuggestedActionViewModel)==null||!R.isCounterfactualServing)};
  12160. P$.prototype.nX=function(){var d=[],q,T=g.E(((q=this.productUpsellSuggestedActionViewModel)==null?void 0:q.ranges)||[]);for(q=T.next();!q.done;q=T.next()){var Y=q.value;Y&&(q=Number(Y.startTimeMilliseconds),Y=Number(Y.endTimeMilliseconds),isNaN(q)||isNaN(Y)||d.push(new g.Ij(q,Y,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.J.ES(d)};g.M(XFN,xT);g.M(W$,xT);W$.prototype.onVideoDataChange=function(d,q){var T=this;if(!FG(q)&&(d==="newdata"&&sk6(this),this.G&&d==="dataloaded")){this.G=!1;var Y;K0(BN(tJ(this.api.C(),(Y=this.api.getVideoData())==null?void 0:g.$4(Y)),function(e){xNN(T,e)}),function(){T.G=!0})}};
  12161. W$.prototype.S0=function(){var d=this;if(g.ho(this.api.C())){var q,T=g.rn(this.api.C(),(q=this.api.getVideoData())==null?void 0:g.$4(q));return BN(OT(T),function(Y){var e=Tk();eq(e,Y);return d.api.S0(e)})}return OT(this.api.S0())};g.M(g.uf,g.gR);g.Q=g.uf.prototype;g.Q.open=function(){g.Kc(this.TG,this.U)};
  12162. g.Q.kL=function(d){yZ1(this);var q=this.options[d];q&&(q.element.setAttribute("aria-checked","true"),this.A1(this.Qi(d)),this.j=d)};
  12163. g.Q.MF=function(d){g.tG(this.U);for(var q={},T=!1,Y=0;Y<d.length;Y++){var e=d[Y],U=this.options[e],b=e===this.j;b&&(T=!0);U&&U.priority===-Y?(g.$T(this.options[e],this.Qi(e,!0)),delete this.options[e]):U=this.Q9(e,-Y,b);q[e]=U;this.U.rk(U,!0)}T||(this.j=null);d=g.E(Object.keys(this.options));for(T=d.next();!T.done;T=d.next())this.options[T.value].dispose();this.options=q};
  12164. g.Q.Q9=function(d,q,T,Y){var e=this;T={Y:"div",hF:["ytp-menuitem",Y?"ytp-menuitem-with-footer":""],Z:{tabindex:"0",role:"menuitemradio","aria-checked":T?"true":"false"},V:[{Y:"div",hF:["ytp-menuitem-label"],j5:"{{label}}"}]};Y&&(Y={Y:"div",D:"ytp-menuitem-footer",V:[Y]},T.V?T.V.push(Y):T.V=[Y]);q=new g.gR(T,q,this.Qi(d,!0));q.listen("click",function(){e.ud(d)});
  12165. return q};
  12166. g.Q.enable=function(d){this.B?d||(this.B=!1,this.Ps(!1)):d&&(this.B=!0,this.Ps(!0))};
  12167. g.Q.Ps=function(d){d?this.TG.rk(this):this.TG.e$(this)};
  12168. g.Q.GS=function(d){this.publish("select",d)};
  12169. g.Q.ud=function(d){this.GS(d)};
  12170. g.Q.Qi=function(d){return d.toString()};
  12171. g.Q.dT=function(d){d.defaultPrevented||d.keyCode!==39||(this.open(),d.preventDefault())};
  12172. g.Q.ir=function(){this.B&&this.TG.e$(this);g.gR.prototype.ir.call(this);for(var d=g.E(Object.keys(this.options)),q=d.next();!q.done;q=d.next())this.options[q.value].dispose()};g.M(htY,g.uf);g.Q=htY.prototype;g.Q.S5=function(){var d=this.Ws("Off");this.J.getPresentingPlayerType()!==2?(HAN(this),this.kL(this.X),this.G&&(this.X===d?this.G="":this.setSleepTimerTimeLeft(this.G)),this.L&&this.setVideoTimeLeft(this.L),this.enable(!0)):(this.MF([]),this.enable(!1))};
  12173. g.Q.GS=function(d){Qk7(this,d);this.TG.l1()};
  12174. g.Q.Ws=function(d){switch(d){case "Off":return"\u5173\u95ed";case "End of video":return"\u89c6\u9891\u7ed3\u5c3e";case "End of playlist":return"\u64ad\u653e\u5217\u8868\u7ed3\u5c3e";default:return(d.toString()+" \u5206\u949f").toLowerCase()}};
  12175. g.Q.onVideoDataChange=function(d){d==="dataloaded"&&HAN(this)};
  12176. g.Q.Jf=function(d){this.J.logVisibility(this.element,d)};
  12177. g.Q.onClick=function(){this.J.logClick(this.element)};
  12178. g.Q.resetSleepTimerMenuSettings=function(){Qk7(this,this.Ws("Off"))};
  12179. g.Q.setSleepTimerTimeLeft=function(d){this.G=d;this.A1(d)};
  12180. g.Q.setVideoTimeLeft=function(d){this.L=d;this.T.A1(d)};g.M(Dt,xT);Dt.prototype.resetSleepTimerMenuSettings=function(){this.menuItem&&this.menuItem.resetSleepTimerMenuSettings()};
  12181. Dt.prototype.setSleepTimerTimeLeft=function(d){this.menuItem&&this.menuItem.setSleepTimerTimeLeft(d)};
  12182. Dt.prototype.setVideoTimeLeft=function(d){this.menuItem&&this.menuItem.setVideoTimeLeft(d)};g.M(Mw1,xT);g.M(g.fc,g.YP);g.Q=g.fc.prototype;g.Q.W=function(d,q){this.T.W(this.B,d,q,void 0,!this.G)};
  12183. g.Q.cancel=function(){this.j&&(this.j=!1,this.publish("dragend",0,0,null));this.U&&(this.U=!1,this.publish("hoverend",0,0,null),zQ(this),wF(this))};
  12184. g.Q.qD=function(d){zQ(this);this.W(IZ("move"),this.sB);this.W(IZ("out"),this.WE);this.W("touchstart",this.JN);this.G&&this.W(IZ("down"),this.dw);var q=d.target;d=new g.wt(d.pageX,d.pageY);this.U=!0;this.publish("hoverstart",d.x,d.y,q);this.publish("hovermove",d.x,d.y,q)};
  12185. g.Q.sB=function(d){var q=d.target;d=new g.wt(d.pageX,d.pageY);if(this.S){var T=this.S;this.S=null;if(T.relatedTarget===q&&fn(new g.wt(T.pageX,T.pageY),d))return}this.publish("hovermove",d.x,d.y,q)};
  12186. g.Q.WE=function(d){var q=new g.wt(d.pageX,d.pageY),T=d.relatedTarget;try{if(T&&g.HB(this.target,T)){this.S=d;this.publish("hovermove",q.x,q.y,T);return}}catch(Y){}zQ(this);wF(this);this.U=!1;this.publish("hoverend",q.x,q.y,T)};
  12187. g.Q.M5k=function(d){this.qD(d);this.dw(d)};
  12188. g.Q.dw=function(d){if(typeof d.button!=="number"||d.button===0){zQ(this);this.T.W(mB(d.target),IZ("move"),this.QUv);this.T.W(mB(d.target),IZ("up"),this.vB);var q=d.target;if(g.J4)this.W("dragstart",this.Zr);else if(d.preventDefault(),(g.AJ||w_)&&q)a:{for(var T=q;T;){if(CQQ(T)||T.getAttribute("tabindex")==="-1"){T.focus();break a}T=T.parentElement}mB(q).activeElement.blur()}this.j=!0;d=new g.wt(d.pageX,d.pageY);this.publish("dragstart",d.x,d.y,q);this.publish("dragmove",d.x,d.y,q)}};
  12189. g.Q.Zr=function(d){d.preventDefault()};
  12190. g.Q.QUv=function(d){var q=d.target;q===mB(d.target)&&(q=null);d=new g.wt(d.pageX,d.pageY);this.publish("hovermove",d.x,d.y,q);this.publish("dragmove",d.x,d.y,q)};
  12191. g.Q.vB=function(d){zQ(this);this.j=!1;var q=Qi(d),T=d.target;d=new g.wt(d.pageX,d.pageY);q&&g.HB(this.target,q)?(this.W(IZ("move"),this.sB),this.W(IZ("out"),this.WE),this.W(IZ("down"),this.dw),this.W("touchstart",this.JN),this.publish("dragend",d.x,d.y,T)):(wF(this),this.U=!1,this.publish("dragend",d.x,d.y,T),this.publish("hoverend",d.x,d.y,T))};
  12192. g.Q.JN=function(d){var q=d.changedTouches[0];q&&(zQ(this),this.K||(this.W("touchmove",this.v9x),this.W("touchend",this.H7),this.W("touchcancel",this.H7),this.X=q.identifier,d=d.target,this.U||(this.U=!0,this.publish("hoverstart",q.pageX,q.pageY,d)),this.publish("hovermove",q.pageX,q.pageY,d),this.G&&(this.j=!0,this.publish("dragstart",q.pageX,q.pageY,d),this.publish("dragmove",q.pageX,q.pageY,d))))};
  12193. g.Q.v9x=function(d){var q=cZj(this,d);q&&(this.G&&d.preventDefault(),d=d.target,this.publish("hovermove",q.pageX,q.pageY,d),this.G&&this.publish("dragmove",q.pageX,q.pageY,d))};
  12194. g.Q.H7=function(d){var q=cZj(this,d);if(q){zQ(this);wF(this);this.U=!1;var T=d.target;this.G&&(this.L||d.preventDefault(),this.j=!1,this.publish("dragend",q.pageX,q.pageY,T));this.publish("hoverend",q.pageX,q.pageY,T)}};
  12195. g.Q.ir=function(){this.G&&(g.J4&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");zQ(this);g.YP.prototype.ir.call(this)};
  12196. var En2=!1;g.M(akI,g.f);akI.prototype.QS=function(){g.Dv(this.element,"display","none");this.J.logVisibility(this.G,!1)};g.M(lf,xT);lf.prototype.UD=function(d,q){this.JF()||(this.B=[d,q],this.G.subscribe("dragmove",this.X,this),this.G.subscribe("dragend",this.S,this),this.j||g.zh(this.delay))};
  12197. lf.prototype.rO=function(){if(this.T){this.j=!0;this.yv=this.api.getPlaybackRate();this.z2=this.api.getPlayerStateObject().isPaused();var d=this.speedmasterUserEdu;g.Dv(d.element,"display","");d.J.logVisibility(d.G,!0);this.api.setPlaybackRate(2);this.api.hideControls();this.api.playVideo();this.L&&(this.L.MG=!0);this.lr&&(this.lr.xD=!0);this.N("enable_smart_skip_speedmaster_on_web")&&this.api.publish("speedmasterchanged",!0)}};
  12198. lf.prototype.X=function(d,q){if(!this.j){d=[d,q];var T=this.B;T&&d&&T.length===2&&d.length===2?(q=Math.abs(T[0]-d[0]),T=Math.abs(T[1]-d[1]),q=Math.sqrt(q*q+T*T)):q=-1;q<10?this.B=d:v$(this)}};
  12199. lf.prototype.S=function(){v$(this)};g.M(pFY,xT);pFY.prototype.onVideoDataChange=function(d){d==="newdata"&&this.api.M5().createSubtitlesModuleIfNeeded()};g.M(oZ,g.fb);oZ.prototype.preventDefault=function(){g.fb.prototype.preventDefault.call(this);this.G&&this.G.preventDefault()};
  12200. oZ.prototype.stopPropagation=function(){g.fb.prototype.stopPropagation.call(this);this.G&&this.G.stopPropagation()};g.M(g.Vk,he);g.Q=g.Vk.prototype;g.Q.RK=function(){return!0};
  12201. g.Q.isView=function(){return!1};
  12202. g.Q.tX=function(){return!1};
  12203. g.Q.tA=function(){return this.G};
  12204. g.Q.j0=function(){return this.G.src};
  12205. g.Q.Pp=function(d){var q=this.getPlaybackRate();this.G.src=d;this.setPlaybackRate(q)};
  12206. g.Q.qZ=function(){this.G.removeAttribute("src")};
  12207. g.Q.getPlaybackRate=function(){try{return this.G.playbackRate>=0?this.G.playbackRate:1}catch(d){return 1}};
  12208. g.Q.setPlaybackRate=function(d){this.getPlaybackRate()!==d&&(this.G.playbackRate=d);return d};
  12209. g.Q.AC=function(){return this.G.loop};
  12210. g.Q.setLoop=function(d){this.G.loop=d};
  12211. g.Q.canPlayType=function(d,q){return this.G.canPlayType(d,q)};
  12212. g.Q.isPaused=function(){return this.G.paused};
  12213. g.Q.isSeeking=function(){return this.G.seeking};
  12214. g.Q.isEnded=function(){return this.G.ended};
  12215. g.Q.CB=function(){return this.G.muted};
  12216. g.Q.J4=function(d){j7();this.G.muted=d};
  12217. g.Q.NT=function(){return this.G.played||S7([],[])};
  12218. g.Q.g1=function(){try{var d=this.G.buffered}catch(q){}return d||S7([],[])};
  12219. g.Q.kF=function(){return this.G.seekable||S7([],[])};
  12220. g.Q.U1=function(){var d=this.G;return d.getStartDate?d.getStartDate():null};
  12221. g.Q.getCurrentTime=function(){return this.G.currentTime};
  12222. g.Q.setCurrentTime=function(d){this.G.currentTime=d};
  12223. g.Q.getDuration=function(){return this.G.duration};
  12224. g.Q.load=function(){var d=this.G.playbackRate;try{this.G.load()}catch(q){}this.G.playbackRate=d};
  12225. g.Q.pause=function(){this.G.pause()};
  12226. g.Q.play=function(){var d=this.G.play();if(!d||!d.then)return null;d.then(void 0,function(){});
  12227. return d};
  12228. g.Q.Tr=function(){return this.G.readyState};
  12229. g.Q.Va=function(){return this.G.networkState};
  12230. g.Q.nA=function(){return this.G.error?this.G.error.code:null};
  12231. g.Q.P4=function(){return this.G.error?this.G.error.message:""};
  12232. g.Q.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.G instanceof window.HTMLVideoElement&&this.G.getVideoPlaybackQuality)return this.G.getVideoPlaybackQuality();if(this.G){var d=this.G,q=d.webkitDroppedFrameCount;if(d=d.webkitDecodedFrameCount)return{droppedVideoFrames:q||0,totalVideoFrames:d}}return{}};
  12233. g.Q.pA=function(){return!!this.G.webkitCurrentPlaybackTargetIsWireless};
  12234. g.Q.Yp=function(){return!!this.G.webkitShowPlaybackTargetPicker()};
  12235. g.Q.togglePictureInPicture=function(){var d=this.G,q=window.document;window.document.pictureInPictureEnabled?this.G!==q.pictureInPictureElement?d.requestPictureInPicture():q.exitPictureInPicture():EJ()&&d.webkitSetPresentationMode(d.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")};
  12236. g.Q.eE=function(){var d=this.G;return new g.wt(d.offsetLeft,d.offsetTop)};
  12237. g.Q.getSize=function(){return g.Vp(this.G)};
  12238. g.Q.setSize=function(d){g.or(this.G,d)};
  12239. g.Q.getVolume=function(){return this.G.volume};
  12240. g.Q.setVolume=function(d){j7();this.G.volume=d};
  12241. g.Q.t_=function(d){this.S[d]||(this.G.addEventListener(d,this.listener),this.S[d]=this.listener)};
  12242. g.Q.setAttribute=function(d,q){this.G.setAttribute(d,q)};
  12243. g.Q.removeAttribute=function(d){this.G.removeAttribute(d)};
  12244. g.Q.hasAttribute=function(d){return this.G.hasAttribute(d)};
  12245. g.Q.Yw=dI(61);g.Q.zi=dI(63);g.Q.pY=dI(65);g.Q.p9=dI(67);g.Q.Gf=function(){return Ns(this.G)};
  12246. g.Q.iG=function(d){g.d9(this.G,d)};
  12247. g.Q.X5=function(d){return g.fT(this.G,d)};
  12248. g.Q.wj=function(){return g.HB(document.body,this.G)};
  12249. g.Q.audioTracks=function(){var d=this.G;if("audioTracks"in d)return d.audioTracks};
  12250. g.Q.ir=function(){for(var d=g.E(Object.keys(this.S)),q=d.next();!q.done;q=d.next())q=q.value,this.G.removeEventListener(q,this.S[q]);he.prototype.ir.call(this)};
  12251. g.Q.EV=function(d){this.G.disableRemotePlayback=d};g.M(dV,g.f);g.M(TV,g.f);TV.prototype.show=function(){g.f.prototype.show.call(this);this.S5();this.mZ.N("html5_enable_moving_s4n_window")&&g.ho(this.mZ.C())&&this.B()};
  12252. TV.prototype.hide=function(){g.f.prototype.hide.call(this);this.delay.stop();this.T.stop()};
  12253. TV.prototype.S5=function(){var d=(0,g.cj)(),q=OAf(this.mZ);qc(this.G,q.bandwidth_samples);qc(this.L,q.network_activity_samples);qc(this.j,q.live_latency_samples);qc(this.U,q.buffer_health_samples);var T={};q=g.E(Object.entries(q));for(var Y=q.next();!Y.done;Y=q.next()){var e=g.E(Y.value);Y=e.next().value;e=e.next().value;this.K[Y]!==e&&(T[Y]=" "+String(e));this.K[Y]=e}this.update(T);d=(0,g.cj)()-d>25?5E3:500;this.delay.start(d)};
  12254. TV.prototype.B=function(){this.X?(this.position+=1,this.position>15&&(this.X=!1)):(--this.position,this.position<=0&&(this.X=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.T.start(2E4)};g.M(twn,xT);g.M(Yr,g.W);Yr.prototype.G=function(){var d=(0,g.cj)()-this.startTime;d=d<this.duration?d/this.duration:1;this.U(yy(wzL,d));d<1&&this.delay.start()};
  12255. var wzL=new xG(0,0,.4,0,.2,1,1,1),PrY=/[0-9.-]+|[^0-9.-]+/g;g.M(ez,g.f);ez.prototype.onClick=function(){var d=this.api.app;var q=d.N("web_log_theater_mode_visibility")?!d.E6():!d.ij;d.mZ.gO("SIZE_CLICKED",q);this.api.logClick(this.element)};
  12256. ez.prototype.S5=function(){this.OM(this.api.oT()&&!this.api.isFullscreen()&&this.api.getPresentingPlayerType()!==3);if(this.PF){var d=this.api.E6();this.E6!==d&&this.mp(d)}this.api.logVisibility(this.element,this.PF)};
  12257. ez.prototype.mp=function(d){var q=this.api.N("delhi_modern_web_player_icons")?d?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 15V5H21V15H3ZM16.87 6.72H16.86L16.79 6.79L13.58 10L16.79 13.20C16.88 13.30 16.99 13.37 17.11 13.43C17.23 13.48 17.37 13.51 17.50 13.51C17.63 13.51 17.76 13.48 17.89 13.43C18.01 13.38 18.12 13.31 18.21 13.21C18.31 13.12 18.38 13.01 18.43 12.89C18.48 12.76 18.51 12.63 18.51 12.50C18.51 12.37 18.48 12.23 18.43 12.11C18.37 11.99 18.30 11.88 18.20 11.79L16.41 10L18.20 8.20L18.27 8.13C18.42 7.93 18.50 7.69 18.49 7.45C18.47 7.20 18.37 6.97 18.20 6.79C18.02 6.62 17.79 6.52 17.55 6.50C17.30 6.49 17.06 6.57 16.87 6.72ZM5.79 6.79C5.60 6.98 5.50 7.23 5.50 7.5C5.50 7.76 5.60 8.01 5.79 8.20L7.58 10L5.79 11.79L5.72 11.86C5.57 12.06 5.49 12.30 5.50 12.54C5.51 12.79 5.62 13.02 5.79 13.20C5.97 13.37 6.20 13.48 6.45 13.49C6.69 13.50 6.93 13.42 7.13 13.27L7.20 13.20L10.41 10L7.20 6.79C7.01 6.60 6.76 6.50 6.5 6.50C6.23 6.50 5.98 6.60 5.79 6.79ZM3 19V17H21V19H3Z",
  12258. fill:"white"}}]}:{Y:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 15V5H21V15H3ZM7.87 6.72L7.79 6.79L4.58 10L7.79 13.20C7.88 13.30 7.99 13.37 8.11 13.43C8.23 13.48 8.37 13.51 8.50 13.51C8.63 13.51 8.76 13.48 8.89 13.43C9.01 13.38 9.12 13.31 9.21 13.21C9.31 13.12 9.38 13.01 9.43 12.89C9.48 12.76 9.51 12.63 9.51 12.50C9.51 12.37 9.48 12.23 9.43 12.11C9.37 11.99 9.30 11.88 9.20 11.79L7.41 10L9.20 8.20L9.27 8.13C9.42 7.93 9.50 7.69 9.48 7.45C9.47 7.20 9.36 6.97 9.19 6.80C9.02 6.63 8.79 6.52 8.54 6.51C8.30 6.49 8.06 6.57 7.87 6.72ZM14.79 6.79C14.60 6.98 14.50 7.23 14.50 7.5C14.50 7.76 14.60 8.01 14.79 8.20L16.58 10L14.79 11.79L14.72 11.86C14.57 12.06 14.49 12.30 14.50 12.54C14.51 12.79 14.62 13.02 14.79 13.20C14.97 13.37 15.20 13.48 15.45 13.49C15.69 13.50 15.93 13.42 16.13 13.27L16.20 13.20L19.41 10L16.20 6.79C16.01 6.60 15.76 6.50 15.5 6.50C15.23 6.50 14.98 6.60 14.79 6.79ZM3 19V17H21V19H3Z",
  12259. fill:"white"}}]}:d?{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,Z:{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"}}]}:{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,Z:{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"}}]};this.E6==null||this.api.N("delhi_modern_web_player_icons")?this.updateValue("icon",q):kjn(this.transition,
  12260. this.element,q);d=(this.E6=d)?"\u9ed8\u8ba4\u89c6\u56fe":"\u5f71\u9662\u6a21\u5f0f";this.api.N("player_tooltip_data_title_killswitch")?this.update({title:g.wm(this.api,d,"t"),"data-title-no-tooltip":d}):this.update({"tooltip-title":g.wm(this.api,d,"t"),"data-title-no-tooltip":d});this.api.U$()};g.M(WND,xT);g.M(wFg,xT);g.Q=wFg.prototype;g.Q.onVideoDataChange=function(d){this.cR();this.videoId=d.videoId;this.j=this.G=void 0;this.timelyActions=u3_(d);fk6(this);b0(this);this.ES()};
  12261. g.Q.h0=function(d){var q=d.oldState,T=d.state,Y=T.seekSource;!g.I(q,16)&&g.I(T,16)?this.VI(Y!=null?Y:void 0):g.I(q,16)&&!g.I(T,16)&&this.JT();d=d.state;d=!d.isCued()&&!g.I(d,1024);this.U.OM(d)};
  12262. g.Q.ES=function(){var d=this.lw();d&&this.api.ES(d)};
  12263. g.Q.cR=function(){this.api.hm("timelyAction",1);if(this.G!==void 0)this.onCueRangeExit(this.G)};
  12264. g.Q.lw=function(){if(this.timelyActions){for(var d=[],q=g.E(this.timelyActions),T=q.next();!T.done;T=q.next())T=T.value,T=T.startTimeMilliseconds!=null&&T.endTimeMilliseconds!=null&&T.cueRangeId!=null?new g.Ij(Number(T.startTimeMilliseconds),Number(T.endTimeMilliseconds),{id:T.cueRangeId,namespace:"timelyAction"}):void 0,T&&d.push(T);return d}};
  12265. g.Q.onCueRangeEnter=function(d){var q=Ui(this,d);q&&this.T[d]!==void 0&&(q.maxShowCount===void 0||(q==null?void 0:q.maxShowCount)>this.T[d])&&(this.G=d,this.Hq())};
  12266. g.Q.onCueRangeExit=function(d){var q=zt_(this,d);q&&this.G===d&&this.api.gO("innertubeCommand",q);b0(this);this.G=void 0};
  12267. g.Q.VI=function(d){this.j=d};
  12268. g.Q.JT=function(){this.Hq();this.j=void 0};
  12269. g.Q.Hq=function(){if(this.G!==void 0){var d=(d=Ui(this,this.G))&&d.onCueRangeEnter?Ba(d.onCueRangeEnter):void 0;var q=Ui(this,this.G);a:if(q&&q.additionalTrigger){var T=g.E(q.additionalTrigger);for(var Y=T.next();!Y.done;Y=T.next())if(Y=Y.value,Y.type){var e=void 0,U=void 0;if((e=this.rO[Y.type])==null?0:e((U=Y.args)!=null?U:{})){T=!0;break a}}T=!1}else T=!0;d&&T&&(this.api.gO("innertubeCommand",d),iA6(this,q),this.T[this.G]!==void 0&&this.T[this.G]++,this.K=!0)}};
  12270. g.Q.ir=function(){this.timelyActions=this.j=this.G=this.videoId=void 0;this.T={};this.cR();b0(this);xT.prototype.ir.call(this)};g.M(SkN,xT);g.M(Xi,jq);Xi.prototype.X=function(d){this.T(d?2:1)};
  12271. Xi.prototype.U=function(){var d=this.J.getPresentingPlayerType();d===2||d===3?(this.G=!1,this.TG.e$(this)):this.G||(d=this.hasVoiceBoostAudioTrack(),this.setEnabled(d),d=this.j()===2&&d,az(this,d),this.TG.rk(this),this.G=!0)};
  12272. Xi.prototype.ir=function(){this.TG.e$(this);jq.prototype.ir.call(this)};g.M(Jc,xT);Jc.prototype.getVoiceBoostUserPreference=function(){return this.G};
  12273. Jc.prototype.setVoiceBoostUserPreference=function(d){this.api.oU("vb_set",{pref:d});g.pW("yt-player-voice-boost",d);d!==this.G&&(this.G=d,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.Ql())};
  12274. Jc.prototype.hasVoiceBoostAudioTrack=function(){var d,q,T=(d=this.api.getVideoData())==null?void 0:(q=d.j)==null?void 0:q.G;return T?D7(T,function(Y){var e;return((e=Y.audio)==null?void 0:e.U)===!0}):!1};
  12275. Jc.prototype.updateEnvironmentData=function(){this.api.C().H1=this.G};var blg=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.M(gV,xT);gV.prototype.ir=function(){this.L&&(g.Fq(this.L),this.L=void 0);xT.prototype.ir.call(this)};
  12276. gV.prototype.nN=function(){(this.U?!this.G:this.j)&&Nc(this)};
  12277. gV.prototype.NN=function(d,q,T){var Y=this;if(onI(d)){var e=T||"";if(this.G)q=RN(this,e),Vwn(d,q);else{var U=new g.sq;q.push(U.promise);this.S.promise.then(function(){var b=RN(Y,e);Vwn(d,b);U.resolve()})}}};
  12278. gV.prototype.Sp=function(d){var q=this;if(this.U||this.j)d.nR=RN(this,d.videoId),this.G||(this.T=new yQ,this.S.promise.then(function(){q.rz.w1("pot_if");d.nR=RN(q,d.videoId)}))};g.M(g.yV,g.f);g.yV.prototype.select=function(){this.api.tC(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.qq||void 0)&&this.api.logClick(this.element)};
  12279. g.yV.prototype.onClick=function(d){if(g.dn(this.api.C())&&this.api.N("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var q=this.suggestion.Xk(),T={};g.Sf(this.api,T);q=g.y6(q,T);g.pR(q,this.api,d)}else g.AM(d,this.api,this.U,this.suggestion.sessionData||void 0)&&this.select()};
  12280. g.yV.prototype.onKeyPress=function(d){switch(d.keyCode){case 13:case 32:d.defaultPrevented||(this.select(),d.preventDefault())}};
  12281. g.yV.prototype.onVideoDataChange=function(){var d=this.api.getVideoData(),q=this.api.C();this.U=d.kc?!1:q.T};g.M(giN,g.f);g.Q=giN.prototype;g.Q.ir=function(){this.hide();g.jX(this.T);g.Yt(this.stills);this.stills.length=0;this.U&&this.U.removeEventListener("click",this.oO);this.j&&this.j.removeEventListener("click",this.PE);this.G&&this.G.removeEventListener("click",this.PE);g.f.prototype.ir.call(this)};
  12282. g.Q.PE=function(d){this.B&&this.B(d)};
  12283. g.Q.onVideoDataChange=function(){this.videoData=this.player.getVideoData(1);var d,q,T,Y,e;var U=(((d=this.videoData)==null?0:(q=d.suggestions)==null?0:q.length)?(T=this.videoData)==null?void 0:T.suggestions:((Y=this.videoData)==null?0:g.jH(Y))?[(e=this.videoData)==null?void 0:g.jH(e)]:[]).slice(0,18);if((d=this.K)&&this.L&&this.X)if(g.xE(d),U.length)for(this.stills.length>U.length&&g.Yt(this.stills.splice(U.length)),this.stills.length=U.length,q=0;q<U.length;q++){if(T=U[q])Y=this.stills[q],Y||(Y=
  12284. new g.yV(this.player),this.stills[q]=Y),g.sUj(Y,T),d&&d.appendChild(Y.element)}else g.Yt(this.stills),this.stills.length=0};
  12285. g.Q.oO=function(d){this.PE(d);this.player.logClick(this.U);this.player.playVideo()};
  12286. g.Q.h0=function(){$Un(this)};
  12287. g.Q.XC=function(d){if(this.currentState!==d){this.currentState=d;this.element.scrollTop=0;this.OM(this.currentState!==0);d===2&&(this.player.logVisibility(this.X,!0),this.onVideoDataChange());if(d!==0){this.element.setAttribute("tabindex","0");var q="",T=g.wm(this.player,"\u66f4\u591a\u89c6\u9891","v");d===2?q="\u9690\u85cf\u89c6\u9891":d===1&&(q="\u66f4\u591a\u89c6\u9891");this.G&&(this.G.title="\u66f4\u591a\u89c6\u9891",this.G.dataset.titleNoTooltip="\u66f4\u591a\u89c6\u9891",this.G.textContent=
  12288. "\u66f4\u591a\u89c6\u9891",this.G.ariaLabel="\u9690\u85cf\u89c6\u9891");this.update({title:T,"data-title-no-tooltip":q,"aria-label":q});this.player.U$()}else this.element.setAttribute("tabindex","-1"),this.update({title:"","data-title-no-tooltip":"","aria-label":""});$Un(this);this.player.U$()}};g.M(QV,xT);QV.prototype.lr=function(){this.j&&this.U!==0&&Na7(this)};
  12289. QV.prototype.setFullscreenQuickActions=function(d){this.K&&this.K.remove();d?(g.d9(d,"ytp-fullscreen-quick-actions"),this.N("web_player_overlay_positioned_layout")?(d.setAttribute("data-overlay-order","12"),this.api.A0(d,4)):(g.d9(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions"),g.o6(this.api,d,4))):g.TR(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions");this.K=d;hc(this)};
  12290. QV.prototype.setPlayerOverlayVideoDetailsRenderer=function(d){this.playerOverlayVideoDetailsRenderer&&this.playerOverlayVideoDetailsRenderer.remove();if(d){g.d9(d,"ytp-fullscreen-metadata");g.d9(this.api.getRootNode(),"ytp-hide-fullscreen-title");d.setAttribute("data-overlay-order","1");var q=this.api.N("delhi_modern_web_player_fullscreen_metadata_bottom"),T=q?3:1;q=q?"ytp-fullscreen-metadata-bottom":"ytp-fullscreen-metadata-top";g.d9(this.api.getRootNode(),q);this.N("web_player_overlay_positioned_layout")?
  12291. this.api.A0(d,T):g.o6(this.api,d,4)}else g.TR(this.api.getRootNode(),"ytp-hide-fullscreen-title"),g.TR(this.api.getRootNode(),"ytp-fullscreen-metadata-bottom"),g.TR(this.api.getRootNode(),"ytp-fullscreen-metadata-top");this.playerOverlayVideoDetailsRenderer=d;hc(this)};g.M(hbf,xT);g.M(jz,g.W);jz.prototype.G=function(){for(var d=g.E(g.CN.apply(0,arguments)),q=d.next();!q.done;q=d.next())(q=q.value)&&this.features.push(q)};
  12292. jz.prototype.ir=function(){for(var d=this.features.length-1;d>=0;d--)this.features[d].dispose();this.features.length=0;g.W.prototype.ir.call(this)};HlQ.prototype.reset=function(){this.G=this.U=NaN};g.Q=QUg.prototype;g.Q.reset=function(){jl(this.timerName)};
  12293. g.Q.tick=function(d,q){pU(d,q,this.timerName)};
  12294. g.Q.w1=function(d){return rc(d,void 0,this.timerName)};
  12295. g.Q.GT=function(d){g.iN(d,void 0,this.timerName)};
  12296. g.Q.infoGel=function(d){g.ZO(d,this.timerName)};g.M(Eig,g.YP);g.Q=Eig.prototype;g.Q.mB=function(d){return this.loop||!!d||this.index+1<this.length};
  12297. g.Q.M1=function(d){return this.loop||!!d||this.index-1>=0};
  12298. g.Q.setShuffle=function(d){this.shuffle=d;d=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var q=0;q<this.items.length;q++)this.order.push(q);this.index=d;this.U++;if(this.shuffle){d=this.order[this.index];for(q=1;q<this.order.length;q++){var T=Math.floor(Math.random()*(q+1)),Y=this.order[q];this.order[q]=this.order[T];this.order[T]=Y}for(q=0;q<this.order.length;q++)this.order[q]===d&&(this.index=q);this.U++}this.publish("shuffle")};
  12299. g.Q.Qg=function(d){d=d||"hqdefault.jpg";var q=this.B[d];if(q||this.Mk.UD||d==="sddefault.jpg"||d==="hq720.jpg"||d==="maxresdefault.jpg")return q;if(this.j.length)return hJ(this.Mk,this.j[0],d)};
  12300. g.Q.findIndex=function(d){if(d&&(d=d.videoId,!this.items[this.index]||this.items[this.index].video_id!==d))for(var q=0;q<this.items.length;q++)if(this.items[q].video_id===d){this.index=q;break}};
  12301. g.Q.onReady=function(d){this.G=d;this.loaded&&g.s3(this.G,0)};
  12302. g.Q.getPlaylistId=function(){return this.listId?this.listId.toString():null};
  12303. g.Q.Xk=function(){return this.Mk.getVideoUrl(g.pa(this).videoId,this.getPlaylistId())};
  12304. g.Q.ir=function(){this.G=null;g.Yt(this.items);g.YP.prototype.ir.call(this)};var Zf=new Map;g.M(g.na,g.YP);g.Q=g.na.prototype;g.Q.create=function(){};
  12305. g.Q.load=function(){this.loaded=!0};
  12306. g.Q.unload=function(){this.loaded=!1};
  12307. g.Q.Vg=function(){};
  12308. g.Q.Ux=function(){return!0};
  12309. g.Q.ir=function(){this.loaded&&this.unload();g.YP.prototype.ir.call(this)};
  12310. g.Q.BF=function(){return{}};
  12311. g.Q.getOptions=function(){return[]};g.M(g.tc,g.W);g.Q=g.tc.prototype;g.Q.TO=dI(70);g.Q.YX=function(){};
  12312. g.Q.uu=function(){};
  12313. g.Q.xT=function(){return""};
  12314. g.Q.kC=dI(71);g.Q.NN=function(d,q){var T=this;if(this.mZ.C().N("html5_dispatch_tracklist_loaded_event")){this.T&&(this.T.reject(),this.T=null);var Y=[];this.mZ.publish("trackListLoaded",this.U,Y,q);Y.length?(q=new g.sq,q.promise.then(d.NN,function(){}),this.T=q,Promise.all(Y).then(q.resolve,q.reject).finally(function(){T.T=null})):d.NN()}else d.NN()};
  12315. g.Q.iy=function(){};
  12316. g.Q.ir=function(){this.T&&(this.T.reject(),this.T=null);this.uu();g.W.prototype.ir.call(this)};g.M(g.Bc,g.tc);g.Bc.prototype.TO=dI(69);g.Bc.prototype.YX=function(d){if(this.audioTrack)for(var q=g.E(this.audioTrack.captionTracks),T=q.next();!T.done;T=q.next())g.rV(this.U,T.value);this.NN(d,this.videoData.videoId)};
  12317. g.Bc.prototype.xT=function(d,q){var T=d.Hl(),Y={fmt:q};if(q==="srv3"||q==="3"||q==="json3")g.WL()?Object.assign(Y,{xorb:2,xobt:1,xovt:1}):Object.assign(Y,{xorb:2,xobt:3,xovt:3});d.translationLanguage&&(Y.tlang=g.wn(d));this.j&&(Y.xosf="1");Object.assign(Y,this.mZ.C().G);return VH(T,Y)};
  12318. g.Bc.prototype.uu=function(){this.G&&this.G.abort()};g.fV7=new Map;g.M(g.GV,g.tc);g.GV.prototype.TO=dI(68);
  12319. g.GV.prototype.YX=function(d){var q=this,T=this.j,Y={type:"list",tlangs:1,v:this.videoId,vssids:1};this.Qe&&(Y.asrs=1);T=VH(T,Y);this.uu();this.G=g.QB(T,{format:"RAW",onSuccess:function(e){q.G=null;if((e=e.responseXML)&&e.firstChild){for(var U=e.getElementsByTagName("track"),b=0;b<U.length;b++){var J=U[b],F=J.getAttribute("lang_code"),N=J.getAttribute("lang_translated"),R=J.getAttribute("name"),x=J.getAttribute("kind"),y=J.getAttribute("id"),h=J.getAttribute("lang_default")==="true",H=J.getAttribute("cantran")===
  12320. "true";J=J.getAttribute("vss_id");g.rV(q.U,new g.CI({languageCode:F,languageName:N,name:R,kind:x,id:y,is_servable:!0,is_translateable:H,vss_id:J,is_default:h}))}e=e.getElementsByTagName("target");U=e.length;for(b=0;b<U;b++)F={languageCode:e[b].getAttribute("lang_code"),languageName:e[b].getAttribute("lang_translated"),languageOriginal:e[b].getAttribute("lang_original"),id:e[b].getAttribute("id"),isDefault:e[b].getAttribute("lang_default")==="true"},q.X[F.languageCode]=F.languageName,q.S.push(F)}q.NN(d,
  12321. q.videoId)},
  12322. withCredentials:!0})};
  12323. g.GV.prototype.xT=function(d,q){var T=this.j;q={v:this.videoId,type:"track",lang:d.languageCode,name:d.getName(),kind:d.kind,fmt:q};var Y=this.mZ.C();Y.N("captions_url_add_ei")&&(q.ei=this.eventId);d.translationLanguage&&(q.tlang=g.wn(d));Object.assign(q,Y.G);return T=VH(T,q)};
  12324. g.GV.prototype.uu=function(){this.G&&this.G.abort()};g.M(LKD,g.W);g.Q=LKD.prototype;g.Q.createSubtitlesModuleIfNeeded=function(){DUY(this)&&kr(this,"captions");return!!g.La(this)};
  12325. g.Q.Gi=function(){return this.J.getVideoData().Gi()};
  12326. g.Q.ZK=function(){return this.J.getVideoData().ZK()};
  12327. g.Q.s_=function(){var d=this.OS.get("heartbeat");kr(this,"heartbeat",!1,!0,this.s_);!d&&this.OS.has("heartbeat")&&this.J.publish("offlineslatestatechange")};
  12328. g.Q.fB=function(){kr(this,"annotations_module",!0,void 0,this.fB);var d=this.OS.get("annotations_module");if(d)for(var q in this.U)if(this.U.hasOwnProperty(q)){var T=q;d.subscribe(T,this.U[T])}};
  12329. g.Q.AV=function(){if(!this.OS.get("ad"))try{P6j(this)?kr(this,"ad",!1,!0,this.AV):this.J.Lz("ad")}catch(d){this.J.Lz("ad"),g.Zz(d)}};
  12330. g.Q.GN=function(){return this.G};
  12331. g.Q.B9=function(){var d={},q=g.La(this);q&&Object.assign(d,q.B9());return d};
  12332. g.Q.eg=function(d,q){Object.assign(this.G,d||null);Object.assign(this.lk,q||null)};
  12333. g.Q.onVideoDataChange=function(){var d=this.J.getVideoData();this.J.N("enable_wn_infocards")&&g.Y4(d)&&!g.Df(this)&&this.fB()};
  12334. g.Q.ir=function(){g.W.prototype.ir.call(this);Pc(this,1,!0);for(var d=g.E(Object.entries(TB_)),q=d.next();!q.done;q=d.next()){var T=g.E(q.value);q=T.next().value;T=T.next().value;this.j.has(T)&&Zf.delete(q)}this.j.clear()};
  12335. var pf={},TB_=(pf.ad="ad.js",pf.annotations_module="annotations_module.js",pf.asmjs="asmjs.js",pf.creatorendscreen="annotations_module.js",pf.embed="embed.js",pf.endscreen="endscreen.js",pf.heartbeat="heartbeat.js",pf.kids="kids.js",pf.remote="remote.js",pf.miniplayer="miniplayer.js",pf.offline="offline.js",pf.captions="captions.js",pf.unplugged="unplugged.js",pf.ux="ux.js",pf.webgl="webgl.js",pf.ypc="ypc.js",pf.ypc_clickwrap="ypc_clickwrap.js",pf.yto="yto.js",pf),viI="ad annotations_module asmjs creatorendscreen embed endscreen heartbeat kids remote miniplayer offline captions webgl ypc ypc_clickwrap yto unplugged ux".split(" ");g.M(ez6,g.YP);g.Q=ez6.prototype;g.Q.Xr=function(d){d=new g.wt(d.pageX,d.pageY);if(!fn(d,this.T)){var q=2;this.X&&(q|=8);this.T=d;fa(this,q,!0)}};
  12336. g.Q.Qt2=function(){fa(this,2048,!0)};
  12337. g.Q.t5k=function(){this.X&&fa(this,8,!0);fa(this,2,!1)};
  12338. g.Q.qD=function(d){var q=new g.wt(d.pageX,d.pageY);fn(q,this.T)||(this.T=q,(d=d.target)&&this.O1(d)&&(fa(this,4,!0),this.G.t1(this.j),this.j=this.G.W(this.target,"mouseover",this.WE),this.L=this.G.W(this.target,"mouseout",this.WE)))};
  12339. g.Q.WE=function(d){d=d.relatedTarget;d&&this.O1(d)||(this.T=new g.wt(NaN,NaN),UkI(this))};
  12340. g.Q.RH=function(){fa(this,1,!0)};
  12341. g.Q.Sr=function(d){d=d.target;d instanceof Element&&!(d.tabIndex>0)||fa(this,1,!0)};
  12342. g.Q.dL=function(){this.X=!0;this.G.t1(this.S);this.S=this.G.W(document,"mouseup",this.ql)};
  12343. g.Q.ql=function(){this.X=!1;fa(this,8,!1);this.G.t1(this.S);this.S=this.G.W(this.target,"mousedown",this.dL)};
  12344. g.Q.Jl=function(d){if(d=(d=d.changedTouches)&&d[0])this.rO=d.identifier,this.G.t1(this.B),this.B=this.G.W(this.target,"touchend",this.S7,void 0,!0),fa(this,1024,!0)};
  12345. g.Q.S7=function(d){if(d=d.changedTouches)for(var q=0;q<d.length;q++){var T=d[q];if(T.identifier===this.rO){var Y=T;break}}Y&&(this.G.t1(this.B),this.B=this.G.W(this.target,"touchstart",this.Jl,void 0,!0),fa(this,1024,!1))};
  12346. g.Q.oZ=function(){fa(this,2,!0)};
  12347. g.Q.resize=function(){g.MI&&UkI(this)};
  12348. g.Q.toString=function(){return g.YP.prototype.toString.call(this)};g.M(g.i0,g.f);g.Q=g.i0.prototype;g.Q.g9F=function(){this.S5()};
  12349. g.Q.S5=function(){var d=this.api.getVideoData(),q=this.api.C(),T=!!this.api.isEmbedsShortsMode();g.ep(this.element,"ytp-shorts-mode",T);T?q=[{Y:"svg",Z:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},V:[{Y:"path",Z:{"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",
  12350. fill:"#f00","fill-rule":"evenodd"}},{Y:"path",Z:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:d.kc?q=[{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},V:[{Y:"path",D:"ytp-dni-large-play-button-bg",Z:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{Y:"path",Z:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:d.kc&&d.Co?q=[{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{Y:"path",D:"ytp-dni-large-play-button-bg",
  12351. Z:{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"}},{Y:"path",Z:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:q.X?(g.ep(this.element,"ytp-touch-device",q.U),q=[q.X?{Y:"svg",Z:{height:"100%",version:"1.1",
  12352. viewBox:"0 0 60 60",width:"100%"},V:[{Y:"path",D:"ytp-large-play-button-bg",Z:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{Y:"path",Z:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{Y:"path",D:"ytp-large-play-button-bg",Z:{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",
  12353. fill:"#212121","fill-opacity":"0.8"}},{Y:"path",Z:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):q=[{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{Y:"path",D:"ytp-large-play-button-bg",Z:{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",
  12354. fill:"#f03"}},{Y:"path",Z:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",q);d.kc&&d.Co&&this.Qv("ytp-dni-large-play-button-bg").setAttribute("fill",d.Co?d.Co:"#1f1f1f")};
  12355. g.Q.show=function(){g.f.prototype.show.call(this);this.api.C().N("embeds_web_enable_lite_experiment_control_arm_logging")&&this.api.logVisibility(this.element,!0)};
  12356. g.Q.XS=function(){this.api.getVideoData().mutedAutoplay||(this.api.NG(),this.api.playVideo())};
  12357. g.Q.ZH2=function(d){this.api.getVideoData().mutedAutoplay||d.preventDefault()};g.M(g.IN,g.f);g.Q=g.IN.prototype;g.Q.show=function(){var d=this;this.PF||(this.U.W(this.api,"videodatachange",function(){g.zh(d.G)}),this.U.W(this.api,"videoplayerreset",function(){g.zh(d.G)}));
  12358. g.f.prototype.show.call(this)};
  12359. g.Q.hide=function(){this.U&&g.jX(this.U);g.f.prototype.hide.call(this)};
  12360. g.Q.gz=function(){g.zh(this.G)};
  12361. g.Q.onStateChange=function(){g.zh(this.G)};
  12362. g.Q.amO=function(){g.zh(this.G)};
  12363. g.Q.onReset=function(){this.fade.stop();this.hide();g.zh(this.G)};
  12364. g.Q.S5=function(){var d=this.api.getPlayerStateObject();if(this.api.getPresentingPlayerType()===3&&(d.isPlaying()||d.isPaused()))var q=!0;else(q=this.api.M5().OS.get("ypc"))&&q.wF?q=!0:(q=this.api.C(),q=g.I(d,2)&&g.zJ(this.api)&&q.Kz?!0:!1);q?(q=!0,this.j.hide()):(this.j.show(),q=d.isCued()&&this.api.getPresentingPlayerType()!==2||g.I(d,2)&&!g.zJ(this.api)&&!this.api.yN()||g.I(d,1024)?!0:!1);var T=this.api.getVideoData();q&&!T.QM?(this.fade.show(),this.COv(this.api.getPlaylist(),T)):(this.fade.hide(),
  12365. g.I(d,1)||this.fade.stop())};
  12366. g.Q.COv=function(){for(var d=this.api.C(),q,T=g.E(g.CN.apply(0,arguments)),Y=T.next();!Y.done;Y=T.next())if(Y=Y.value,!(!Y||Y instanceof g.yM&&!Y.videoId)){q=this.api.OD().getPlayerSize();var e=g.Mi(),U=q.width*e;e*=q.height;if(U>1280||e>720)if(q=Y.Qg("maxresdefault.jpg"))break;if(U>640||e>480)if(q=Y.Qg("maxresdefault.jpg"))break;if(U>320||e>180)if(q=Y.Qg("sddefault.jpg")||Y.Qg("hqdefault.jpg")||Y.Qg("mqdefault.jpg"))break;if(q=Y.Qg("default.jpg"))break}g.an(d)&&(d=new Image,d.addEventListener("load",
  12367. function(){R26()}),d.src=q?q:"",this.api.GN().tick("ftr"));
  12368. this.T.style.backgroundImage=q?"url("+q+")":""};g.M(g.mS,g.f);g.mS.prototype.resize=function(){};
  12369. g.mS.prototype.U=function(d){var q=this;this.j=!1;JT_(this);var T=d.rG,Y=this.api.C();T!=="GENERIC_WITHOUT_LINK"||Y.X?T==="TOO_MANY_REQUESTS"?(Y=this.api.getVideoData(),this.A1(vc(this,"TOO_MANY_REQUESTS_WITH_LINK",Y.Xk(),void 0,void 0,void 0,!1))):T!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||Y.X?this.api.C().N("html5_enable_bandaid_error_screen")&&T==="HTML5_SPS_UMP_STATUS_REJECTED"&&!Y.X?(Y=Y.hostLanguage,d="//support.google.com/youtube?p=videoError",Y&&(d=g.y6(d,{hl:Y})),this.A1(vc(this,"HTML5_SPS_UMP_STATUS_REJECTED",
  12370. d))):this.api.C().N("enable_adb_handling_in_sabr")&&T==="BROWSER_OR_EXTENSION_ERROR"&&!Y.X?(Y=Y.hostLanguage,d="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",Y&&(d=g.y6(d,{hl:Y})),this.A1(vc(this,"BROWSER_OR_EXTENSION_ERROR",d))):this.A1(g.Sz(d.errorMessage)):this.A1(vc(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(d=Y.hostLanguage,T="//support.google.com/youtube/?p=player_error1",d&&(T=g.y6(T,
  12371. {hl:d})),this.A1(vc(this,"GENERIC_WITH_LINK_AND_CPN",T,!0)),Y.vF&&!Y.T&&Xef(this,function(U){if(g.AM(U,q.api,!HT(q.api.C()))){U={as3:!1,html5:!0,player:!0,cpn:q.api.getVideoData().clientPlaybackNonce};var b=q.api;b.US("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:U});b.isFullscreen()&&b.toggleFullscreen()}}));
  12372. if(this.j){var e=this.Qv("ytp-error-link");e&&(this.api.createClientVe(e,this,216104),this.api.logVisibility(e,!0),Xef(this,function(){q.api.logClick(e)}))}};
  12373. var brn=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.M(sP2,g.f);sP2.prototype.A0=function(d,q,T){T=T===void 0?!1:T;switch(q){case 1:oN(this,d,this.j,T);break;case 2:oN(this,d,this.T,T);break;case 3:oN(this,d,this.G,T);break;case 4:oN(this,d,this.U,T)}};g.M($k7,g.f);g.Q=$k7.prototype;g.Q.onClick=function(d){this.innertubeCommand?(this.J.gO("innertubeCommand",this.innertubeCommand),d.preventDefault()):g.AM(d,this.J,!0);this.J.logClick(this.element)};
  12374. g.Q.onVideoDataChange=function(d,q){FON(this,q);this.Fd&&NB1(this,this.Fd)};
  12375. g.Q.EG=function(d){var q=this.J.getVideoData();this.videoId!==q.videoId&&FON(this,q);this.G&&NB1(this,d.state);this.Fd=d.state};
  12376. g.Q.St=function(){this.fade.show();this.J.publish("paidcontentoverlayvisibilitychange",!0);this.J.logVisibility(this.element,!0)};
  12377. g.Q.bF=function(){this.fade.hide();this.J.publish("paidcontentoverlayvisibilitychange",!1);this.J.logVisibility(this.element,!1)};g.M(VV,g.f);VV.prototype.hide=function(){this.G.stop();this.message.style.display="none";g.f.prototype.hide.call(this)};
  12378. VV.prototype.onStateChange=function(d){this.XC(d.state)};
  12379. VV.prototype.XC=function(d){if(g.I(d,128)||this.api.HE())var q=!1;else{var T;q=this.api.N("web_watch_enable_multiview_manager")&&((T=this.api.getVideoData())==null?0:FG(T))?!1:g.I(d,16)||g.I(d,1)?!0:!1}q?this.G.start():this.hide()};
  12380. VV.prototype.U=function(){this.message.style.display="block"};g.M(dr,g.bi);dr.prototype.onMutedAutoplayChange=function(d){this.j&&(d?(Rz6(this),this.St()):(this.G&&this.logClick(),this.bF()))};
  12381. dr.prototype.h0=function(d){this.api.isMutedByMutedAutoplay()&&g.gs(d,2)&&this.bF()};
  12382. dr.prototype.onClick=function(){this.api.unMute();this.logClick()};
  12383. dr.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.M(g.ql,g.aI);g.Q=g.ql.prototype;g.Q.init=function(){var d=this.api,q=d.getPlayerStateObject();this.dE=d.getPlayerSize();this.Vp(q);this.zB();this.gz();this.api.publish("basechromeinitialized",this);this.tD()&&this.api.publish("standardControlsInitialized")};
  12384. g.Q.onVideoDataChange=function(d,q){var T=this.oE!==q.videoId;if(T||d==="newdata")d=this.api,d.isFullscreen()||(this.dE=d.getPlayerSize());T&&(this.oE=q.videoId,T=this.QH,T.z2=3E3,fa(T,512,!0),this.zB());this.api.N("web_render_jump_buttons")&&q.showSeekingControls&&(this.O8=572)};
  12385. g.Q.SMZ=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
  12386. g.Q.EJ=function(){var d=this.api.Tv()&&this.api.D7(),q=this.api.eA();return this.DF||d||this.Es||q};
  12387. g.Q.TT=function(){var d=!this.EJ();g.ep(this.api.getRootNode(),"ytp-menu-shown",!d)};
  12388. g.Q.O1=function(d){try{if(!g.HB(this.api.getRootNode(),d))return!1}catch(q){return!1}for(;d&&!CQQ(d);)d=d===this.api.getRootNode()?null:d.parentElement||null;return!!d};
  12389. g.Q.cE=function(d){var q=this.api.getRootNode();g.ep(q,"ytp-autohide",d);g.ep(q,"ytp-autohide-active",!0);this.E4.start(d?250:100);d&&(this.Jw=!1,g.TR(q,"ytp-touch-mode"));this.xR=!d;this.api.C0(!d);this.api.N("delhi_modern_web_player")&&this.api.publish("autohideupdate",d)};
  12390. g.Q.Ob=function(){var d=this.api.getRootNode();g.ep(d,"ytp-autohide-active",!1)};
  12391. g.Q.DCw=function(){this.dM=!0};
  12392. g.Q.Fc2=function(d){if(this.api.C().N("player_doubletap_to_seek")||this.api.C().L)this.dM=!1,this.Jc&&this.t1(this.Jc),this.nm===0&&YB(this,d)?(this.Nh(),this.r_.start(),this.Jc=this.W(this.api.OD(),"touchmove",this.DCw,void 0,!0)):this.r_.stop();Hrf(this)&&YB(this,d)&&!this.api.C().L&&yT2(this);var q=this.q8.vR();if(!g.dn(this.api.C())&&le&&QPj(this,d))q&&d.preventDefault();else if(this.Jw=!0,g.d9(this.api.getRootNode(),"ytp-touch-mode"),this.QH.oZ(),this.api.C().N("player_doubletap_to_seek")||this.api.C().L)if(q=
  12393. this.api.getPlayerStateObject(),!(!this.api.Oc()||g.I(q,2)&&g.zJ(this.api)||g.I(q,64))){q=Date.now()-this.Ls;this.nm+=1;if(q<=350){this.BC=!0;q=this.api.getPlayerSize().width/3;var T=this.api.getRootNode().getBoundingClientRect(),Y=d.targetTouches[0].clientX-T.left;T=d.targetTouches[0].clientY-T.top;var e=(this.nm-1)*10;Y>0&&Y<q?(this.p5(-1,Y,T,e),this.api.seekBy(-10*this.api.getPlaybackRate())):Y>q*2&&Y<q*3&&(this.p5(1,Y,T,e),this.api.seekBy(10*this.api.getPlaybackRate()));d.preventDefault()}else zV&&
  12394. this.api.C().L&&YB(this,d)&&d.preventDefault();this.Ls=Date.now();this.pX.start()}};
  12395. g.Q.Lcf=function(){this.MH.MG=!1;this.api.publish("rootnodemousedown",this.MH)};
  12396. g.Q.Ecg=function(d){if(this.api.C().N("web_fix_fine_scrubbing_false_play")){if(QPj(this,d)||this.MH.MG)return}else if(this.MH.MG||QPj(this,d))return;Hrf(this)||!YB(this,d)||this.r_.isActive()||(yT2(this),d.preventDefault());this.BC&&(this.BC=!1)};
  12397. g.Q.Nh=function(){};
  12398. g.Q.fY=function(){};
  12399. g.Q.p5=function(){};
  12400. g.Q.renderChapterSeekingAnimation=function(){};
  12401. g.Q.cW=function(){var d=this.api.getPlayerStateObject();g.I(d,2)&&g.zJ(this.api)||(d.isOrWillBePlaying()?this.api.pauseVideo():(this.SU&&(d.isCued()||g.I(d,1024))&&!this.api.C().N("embeds_play_button_state_check_ks")&&this.api.publish("largeplaybuttonclicked",this.SU.j.element),this.api.NG(),this.api.playVideo(),this.SU&&document.activeElement===this.SU.j.element&&((d=this.tD())==null?d=0:d.playButton?(d.playButton.focus(),d=!0):d=!1,d||this.api.getRootNode().focus())))};
  12402. g.Q.elv=function(d){var q=this,T=this.api.getPresentingPlayerType();if(!hzf(this,Qi(d)))if(d=this.api.C(),(this.api.C().N("player_doubletap_to_seek")||this.api.C().L)&&this.BC)this.BC=!1;else if(d.wO&&T!==3)try{this.api.toggleFullscreen().catch(function(Y){q.n1(Y)}),this.api.N("web_player_fullscreen_double_click_ve")&&this.api.logClick(this.api.OD().element)}catch(Y){this.n1(Y)}};
  12403. g.Q.n1=function(d){String(d).includes("fullscreen error")?g.OL(d):g.Zz(d)};
  12404. g.Q.ncv=function(d){My_(this,.3,d.scale);d.preventDefault()};
  12405. g.Q.NkZ=function(d){My_(this,.1,d.scale)};
  12406. g.Q.gz=function(){var d=this.api.OD().getPlayerSize(),q=this.api.getRootNode(),T=d.width>=650,Y=d.width<528;this.QH.resize();g.ep(q,"ytp-fullscreen",this.api.isFullscreen());g.ep(q,"ytp-large-width-mode",T);this.api.N("delhi_modern_web_player")?g.ep(q,"ytp-xsmall-width-mode",Y):g.ep(q,"ytp-small-mode",this.Rl());g.ep(q,"ytp-tiny-mode",this.nO());g.ep(q,"ytp-big-mode",this.rU());this.uO&&this.uO.resize(d)};
  12407. g.Q.h0=function(d){this.Vp(d.state);this.zB()};
  12408. g.Q.RV=dI(3);g.Q.k8=function(){var d=!!this.oE&&!this.api.yX()&&!this.N6,q=this.api.getPresentingPlayerType()===2,T=this.api.C();if(q)return T=Wc(this.api.M5()),d&&(T&&T.player?d=(d=T.player.getVideoData(2))?d.isListed&&!g.xv(T.player.C()):!1:(Jm("showInfoBarDuringAd: this is null"),d=!1)),d;q=T.N("web_player_imax_theater_mode")&&this.api.E6();return d&&(T.Y6||q||this.api.isFullscreen()||T.Vt)};
  12409. g.Q.zB=function(){var d=this.k8();this.CS!==d&&(this.CS=d,g.ep(this.api.getRootNode(),"ytp-hide-info-bar",!d))};
  12410. g.Q.Vp=function(d){var q=d.isCued()||this.api.S8()&&this.api.getPresentingPlayerType()!==3;q!==this.isCued&&(this.isCued=q,this.RB&&this.t1(this.RB),this.RB=this.W(this.api.OD(),"touchstart",this.Fc2,void 0,q));var T=this.QH,Y=d.isPlaying()&&!g.I(d,32)||this.api.C1();fa(T,128,!Y);T=this.QH;Y=this.api.getPresentingPlayerType()===3;fa(T,256,Y);T=this.api.getRootNode();g.I(d,2)?Y=[lK.ENDED]:(Y=[],g.I(d,8)?Y.push(lK.PLAYING):g.I(d,4)&&Y.push(lK.PAUSED),g.I(d,1)&&!g.I(d,32)&&Y.push(lK.BUFFERING),g.I(d,
  12411. 32)&&Y.push(lK.SEEKING),g.I(d,64)&&Y.push(lK.UNSTARTED));g.Is(this.F6,Y)||(g.YG(T,this.F6),this.F6=Y,g.qg(T,Y));Y=this.api.C();var e=g.I(d,2);a:{var U=this.api.C();var b=U.controlsType;switch(b){case "2":case "0":U=!1;break a}U=b==="3"&&!g.I(d,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:TLI(Wc(this.api.M5())))||this.api.eA()||g.dn(U)&&this.api.getPresentingPlayerType()===2?!1:!0}g.ep(T,"ytp-hide-controls",!U);g.ep(T,"ytp-native-controls",Y.controlsType==="3"&&!q&&!e&&!this.Es);g.I(d,
  12412. 128)&&!g.dn(Y)?(this.uO||(this.uO=new g.mS(this.api),g.C(this,this.uO),g.o6(this.api,this.uO.element,4)),this.uO.U(d.eF),this.uO.show()):this.uO&&(this.uO.dispose(),this.uO=null)};
  12413. g.Q.LW=function(){return this.api.Tv()&&this.api.D7()?(this.api.H6(!1,!1),!0):this.api.yX()?(g.iH(this.api,!0),!0):!1};
  12414. g.Q.onMutedAutoplayChange=function(d){this.Es=d;this.TT()};
  12415. g.Q.rU=function(){return!1};
  12416. g.Q.Rl=function(){return!this.rU()&&(this.api.getPlayerSize().width<this.O8||this.api.getPlayerSize().height<290)};
  12417. g.Q.nO=function(){return this.Rl()&&(this.api.getPlayerSize().width<240||this.api.getPlayerSize().height<140)};
  12418. g.Q.qO=function(){return this.Jw};
  12419. g.Q.dB=function(){return null};
  12420. g.Q.UY=function(){return null};
  12421. g.Q.Xb=function(){var d=this.api.OD().getPlayerSize();return new g.WB(0,0,d.width,d.height)};
  12422. g.Q.handleGlobalKeyDown=function(){return!1};
  12423. g.Q.handleGlobalKeyUp=function(){return!1};
  12424. g.Q.KZ=function(){};
  12425. g.Q.showControls=function(d){d!==void 0&&this.api.OD().C0(d)};
  12426. g.Q.oZ=function(){};
  12427. g.Q.tD=function(){return null};g.M(g.eg,g.f);g.eg.prototype.show=function(){g.f.prototype.show.call(this);g.zh(this.G)};
  12428. g.eg.prototype.hide=function(){this.U.stop();g.f.prototype.hide.call(this)};
  12429. g.eg.prototype.fY=function(d){var q=this.J.N("delhi_modern_web_player_icons");d?g.I(this.J.getPlayerStateObject(),64)||(q=q?jx():Ex(),Ua(this,q,"\u64ad\u653e")):(d=this.J.getVideoData(),d.isLivePlayback&&!d.allowLiveDvr?(q=q?W26():P5_(),Ua(this,q,"\u505c\u6b62\u76f4\u64ad")):(q=q?OWN():ZWj(),Ua(this,q,"\u6682\u505c")))};g.M(jPQ,g.f);g.Q=jPQ.prototype;g.Q.VV=function(d){d?this.G=D$(this.J,this.element,null):(this.G=this.G,this.G(),this.G=null)};
  12430. g.Q.St=function(){this.J.C().N("player_new_info_card_format")&&g.V5(this.J.getRootNode(),"ytp-cards-teaser-shown")&&!g.dn(this.J.C())||(this.fade.show(),g.vW("iv-button-shown"))};
  12431. g.Q.bF=function(){g.vW("iv-button-hidden");this.fade.hide()};
  12432. g.Q.vR=function(){return this.PF&&this.fade.state!==4};
  12433. g.Q.ir=function(){this.G&&this.G();g.f.prototype.ir.call(this)};
  12434. g.Q.onHover=function(){g.vW("iv-button-mouseover")};
  12435. g.Q.onClicked=function(d){this.J.Tv();var q=g.V5(this.J.getRootNode(),"ytp-cards-teaser-shown");g.vW("iv-teaser-clicked",q);var T;if((T=this.J.getVideoData())==null?0:g.TJ(T)){var Y;d=(Y=this.J.getVideoData())==null?void 0:g.Y4(Y);(d==null?0:d.onIconTapCommand)&&this.J.gO("innertubeCommand",d.onIconTapCommand)}else Y=d.screenX===0&&d.screenY===0,this.J.H6(!this.J.D7(),Y,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.M(ar_,g.f);g.Q=ar_.prototype;g.Q.Pi=function(){this.J.Tv()&&this.J.D7()&&this.vR()&&this.bF()};
  12436. g.Q.M8=function(){this.bF();!this.J.Tv()&&this.J.C().N("enable_error_corrections_infocards_icon_web")&&this.x9.bF();g.vW("iv-teaser-clicked",this.G!=null);if(this.onClickCommand)this.J.gO("innertubeCommand",this.onClickCommand);else{var d;((d=this.J.getVideoData())==null?0:g.TJ(d))||this.J.H6(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}};
  12437. g.Q.n2=function(){g.vW("iv-teaser-mouseover");this.G&&this.G.stop()};
  12438. g.Q.U3f=function(d){this.J.C().N("player_new_info_card_format")&&!g.dn(this.J.C())?this.x9.bF():this.J.C().N("enable_error_corrections_infocards_icon_web")&&this.x9.St();this.G||!d||this.J.D7()||this.U&&this.U.isActive()||(this.St(d),g.vW("iv-teaser-shown"))};
  12439. g.Q.St=function(d){this.onClickCommand=d.onClickCommand;this.updateValue("text",d.teaserText);this.element.setAttribute("dir",g.$G(d.teaserText));this.fade.show();if(this.J.C().N("player_new_info_card_format")){var q=this.Qv("ytp-cards-teaser-info-icon"),T=this.Qv("ytp-cards-teaser-channel-avatar");T&&d.IG&&g.fu(d.IG)&&(T.src=d.IG,T.style.display="block",q.style.display="none")}this.U=new g.f9(function(){g.d9(this.J.getRootNode(),"ytp-cards-teaser-shown");this.J.N("player_new_info_card_format")&&
  12440. !g.dn(this.J.C())&&this.x9.bF();this.R0()},0,this);
  12441. this.U.start();this.x9.VV(!1);this.G=new g.f9(this.bF,580+d.durationMs,this);this.G.start();this.T.push(this.listen("mouseover",this.v7,this));this.T.push(this.listen("mouseout",this.RM,this))};
  12442. g.Q.R0=function(){if(!this.J.C().N("player_new_info_card_format")&&g.dn(this.J.C())&&this.PF){var d=this.x9.element.offsetLeft,q=g.bY("ytp-cards-button-icon"),T=this.J.isFullscreen()?54:36;if(q){var Y=d+q.offsetLeft;this.element.style.marginRight=this.x9.element.offsetParent.offsetWidth-d-q.offsetLeft-T+"px";this.element.style.marginLeft=Y+"px"}}};
  12443. g.Q.Iq=function(){g.dn(this.J.C())&&this.J.Rl()&&this.PF&&this.B.start()};
  12444. g.Q.v7=function(){this.X.stop();this.G&&this.G.isActive()&&this.L.start()};
  12445. g.Q.RM=function(){this.L.stop();this.G&&!this.G.isActive()&&this.X.start()};
  12446. g.Q.HnO=function(){this.G&&this.G.stop()};
  12447. g.Q.sNv=function(){this.bF()};
  12448. g.Q.e7=function(){this.bF()};
  12449. g.Q.bF=function(){!this.G||this.j&&this.j.isActive()||(g.vW("iv-teaser-hidden"),this.fade.hide(),g.TR(this.J.getRootNode(),"ytp-cards-teaser-shown"),this.j=new g.f9(function(){for(var d=g.E(this.T),q=d.next();!q.done;q=d.next())this.t1(q.value);this.T=[];this.G&&(this.G.dispose(),this.G=null);this.x9.VV(!0);!this.J.Tv()&&this.J.C().N("enable_error_corrections_infocards_icon_web")&&this.x9.bF()},330,this),this.j.start())};
  12450. g.Q.vR=function(){return this.PF&&this.fade.state!==4};
  12451. g.Q.ir=function(){var d=this.J.getRootNode();d&&g.TR(d,"ytp-cards-teaser-shown");g.Yt(this.U,this.j,this.G);g.f.prototype.ir.call(this)};var Zo={},Xy=(Zo.BUTTON="ytp-button",Zo.TITLE_NOTIFICATIONS="ytp-title-notifications",Zo.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",Zo.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",Zo.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",Zo);g.M(ATg,g.f);
  12452. ATg.prototype.onClick=function(){this.api.logClick(this.element);var d=!this.G;this.updateValue("label",d?"\u505c\u6b62\u5728\u6bcf\u4e2a\u65b0\u89c6\u9891\u4e0a\u4f20\u65f6\u6536\u5230\u901a\u77e5":"\u5728\u6bcf\u4e2a\u65b0\u89c6\u9891\u4e0a\u4f20\u65f6\u6536\u5230\u901a\u77e5");this.updateValue("pressed",d);peD(this,d)};g.Vf("yt.pubsub.publish",g.vW);g.M(g.Jg,g.f);g.Jg.prototype.T=function(){window.location.reload()};
  12453. g.Jg.prototype.G=function(){g.d9(this.element,"ytp-sb-subscribed")};
  12454. g.Jg.prototype.U=function(){g.TR(this.element,"ytp-sb-subscribed")};g.M(ty2,g.f);g.Q=ty2.prototype;g.Q.Dkv=function(d){this.api.logClick(this.U);var q=this.api.C();q.U||q.qk?LOD(this)&&(this.isExpanded()?this.mx():this.h_()):g.Ry(window,rTf(this));d.preventDefault()};
  12455. g.Q.zZ=function(){G_I(this);this.channel.classList.remove("ytp-title-expanded")};
  12456. g.Q.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
  12457. g.Q.h_=function(){if(LOD(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y","false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.j&&this.j.stop();this.api.logVisibility(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.logVisibility(this.subscribeButton.element,!0));var d=this.api.getVideoData();this.G&&d.U5&&d.subscribed&&(this.G.show(),
  12458. this.api.logVisibility(this.G.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
  12459. g.Q.mx=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.j&&this.j.start()};
  12460. g.Q.S5=function(){var d=this.api.C();this.OM(!this.api.isEmbedsShortsMode());var q=this.api.getVideoData(),T=this.api.C(),Y=this.api.getVideoData();this.T=!1;var e=!!Y.videoId&&!!Y.wO&&!!Y.profilePicture;this.api.getPresentingPlayerType()===2?this.T=e&&!!Y.isListed&&!!Y.author:g.dn(T)&&(this.T=e&&!Y.kc&&!T.j&&!(T.L&&this.api.getPlayerSize().width<200));T=q.profilePicture;d=g.dn(d)?q.expandedTitle:q.author;T=T===void 0?"":T;d=d===void 0?"":d;this.T?(this.L!==T&&(this.U.style.backgroundImage="url("+
  12461. T+")",this.L=T),this.updateValue("channelLink",rTf(this)),this.updateValue("channelLogoLabel",g.bO("$CHANNEL_NAME\u7684\u7167\u7247",{CHANNEL_NAME:d})),g.d9(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.TR(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.U,this.T&&this.S);this.subscribeButton&&(this.subscribeButton.channelId=q.Gp);this.updateValue("expandedTitle",q.expandedTitle);this.updateValue("expandedSubtitle",q.expandedSubtitle)};
  12462. g.Q.N5=function(d){g.f.prototype.N5.call(this,d);this.api.logVisibility(this.U,this.T&&d)};g.M(sa,g.gR);sa.prototype.G=function(d){d.defaultPrevented||d.keyCode!==39||(this.element.click(),d.preventDefault())};g.M(k_Y,g.f);g.Q=k_Y.prototype;g.Q.show=function(){g.f.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")};
  12463. g.Q.hide=function(){g.f.prototype.hide.call(this);this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")};
  12464. g.Q.Nl=function(d){var q=Qi(d),T=g.HB(this.closeButton.element,q),Y=g.HB(this.element,q);d=this.G&&g.HB(this.G,q)&&g.cG(d);q&&(Y||d)&&!T||this.hide()};
  12465. g.Q.L2=function(){Or_(g.yv(this.mZ.C()),"user_info_panel",function(){window.location.reload()})};
  12466. g.Q.S5=function(){var d=this.mZ.C(),q={USER_NAME:d.userDisplayName,USER_EMAIL:d.E$};this.updateValue("icon",nOn());this.updateValue("watchingAsUsername",g.bO("\u6b63\u5728\u4ee5$USER_NAME\u7684\u8eab\u4efd\u89c2\u770b",q));d.E$?this.updateValue("watchingAsEmail",g.bO("($USER_EMAIL)",q)):this.updateValue("watchingAsEmail","")};g.M(CU2,g.rF);g.Q=CU2.prototype;g.Q.Yb=function(){this.TG.bF()};
  12467. g.Q.BOO=function(){nR(this.au.element)};
  12468. g.Q.jNv=function(){gr(this,this.J.getDebugText(!0))&&Ua(this.Jm,NP())};
  12469. g.Q.inD=function(){gr(this,this.J.getVideoEmbedCode())&&Ua(this.Jm,QYn());this.J.logClick(this.LS.element)};
  12470. g.Q.TzO=function(){gr(this,this.J.getVideoUrl(!0,!0))&&Ua(this.Jm,Hk());this.J.logClick(this.getVideoUrl.element)};
  12471. g.Q.yAw=function(){gr(this,this.J.getVideoUrl(!1,!0))&&Ua(this.Jm,Hk());this.J.logClick(this.W1.element)};
  12472. g.Q.onLoopChange=function(d){var q;(q=this.Lp)==null||az(q,d)};
  12473. g.Q.rA2=function(){this.J.setLoopVideo(this.Lp.getValue());this.TG.bF();this.J.logClick(this.Lp.element)};
  12474. g.Q.XG5=function(d){this.J.reportPlaybackIssue();if(g.AM(d,this.J,!HT(this.J.C()))){d=this.J;var q=d.app.getFeedbackProductData();d.US("onFeedbackStartRequest",q);d.isFullscreen()&&d.toggleFullscreen()}this.TG.bF()};
  12475. g.Q.Vtk=function(){g.OF(this.J,"isVideoInfoVisible",[])?g.OF(this.J,"hideVideoInfo",[]):g.OF(this.J,"showVideoInfo",[]);this.TG.bF()};
  12476. g.Q.kqg=function(){this.Vi&&(this.Si||(this.Si=new k_Y(this.J,this.Vi.element),g.C(this,this.Si),g.o6(this.J,this.Si.element,4)),this.Si.show(),this.TG.bF(),this.J.logClick(this.Vi.element))};
  12477. g.Q.onVideoDataChange=function(d,q){WOn(this,q)};
  12478. g.Q.N5=function(d){g.rF.prototype.N5.call(this,d);this.J.logVisibility(this.LS.element,d);this.J.logVisibility(this.getVideoUrl.element,d);this.J.logVisibility(this.W1.element,d);this.Lp&&this.J.logVisibility(this.Lp.element,d);this.Vi&&this.J.logVisibility(this.Vi.element,d)};g.M(weD,g.B$);g.Q=weD.prototype;g.Q.onTouchStart=function(d){var q=Qi(d);if(!(q&&(cB(q,"a")||cB(q,null,"ytp-no-contextmenu"))||this.PF)){var T;this.UD=(d=(T=d.touches)==null?void 0:T.item(0))?new g.wt(d.clientX,d.clientY):new g.wt(0,0);this.lr.start()}};
  12479. g.Q.dI=function(){this.lr.stop()};
  12480. g.Q.Qc2=function(){this.open(this.UD)};
  12481. g.Q.w7=function(){if(this.j&&uUH(this.j)){var d=uUH(this.j).element;d.tabIndex=-1;d.focus()}else this.element.tabIndex=-1,this.element.focus()};
  12482. g.Q.show=function(){this.j||(this.j=new CU2(this.J,this,this.Jm),g.C(this,this.j),g.Kc(this,this.j));this.j.onLoopChange(this.J.getLoopVideo());g.B$.prototype.show.call(this);this.J.logVisibility(this.element,!0);this.j.N5(!0)};
  12483. g.Q.hide=function(){Dkg(this);g.B$.prototype.hide.call(this);this.J.logVisibility(this.element,!1);this.j&&this.j.N5(!1)};
  12484. g.Q.gxf=function(d){var q=Qi(d);this.PF||q&&(cB(q,"a")||cB(q,null,"ytp-no-contextmenu"))||(d.preventDefault(),this.open(new g.wt(d.pageX,d.pageY)))};
  12485. g.Q.St=function(d){if(d){var q=d.getBoundingClientRect();this.open(new g.wt(q.x,q.y))}g.B$.prototype.St.call(this,d)};
  12486. g.Q.open=function(d){frQ(this);var q=this.J.getVideoData();g.ep(this.element,"ytp-dni",q.kc);this.element.style.left="";this.element.style.top="";d.x++;d.y++;g.B$.prototype.St.call(this);var T=Xp(this).body;q=new GO(0,Infinity,Infinity,0);var Y=VY(T);for(var e=Y.G.body,U=Y.G.documentElement,b=LqQ(Y.G);T=z7D(T);)if((!g.J4||T.clientHeight!=0||T!=e)&&T!=e&&T!=U&&iY(T,"overflow")!="visible"){var J=g.lY(T),F=new g.wt(T.clientLeft,T.clientTop);J.x+=F.x;J.y+=F.y;q.top=Math.max(q.top,J.y);q.right=Math.min(q.right,
  12487. J.x+T.clientWidth);q.bottom=Math.min(q.bottom,J.y+T.clientHeight);q.left=Math.max(q.left,J.x)}e=b.scrollLeft;b=b.scrollTop;q.left=Math.max(q.left,e);q.top=Math.max(q.top,b);Y=GlN(Y.G.defaultView||window);q.right=Math.min(q.right,e+Y.width);q.bottom=Math.min(q.bottom,b+Y.height);Y=q.top>=0&&q.left>=0&&q.bottom>q.top&&q.right>q.left?q:null;q=this.size;d=d.clone();q=q.clone();Y&&(b=q,e=5,(e&65)==65&&(d.x<Y.left||d.x>=Y.right)&&(e&=-2),(e&132)==132&&(d.y<Y.top||d.y>=Y.bottom)&&(e&=-5),d.x<Y.left&&e&1&&
  12488. (d.x=Y.left),e&16&&(U=d.x,d.x<Y.left&&(d.x=Y.left),d.x+b.width>Y.right&&(b.width=Math.min(Y.right-d.x,U+b.width-Y.left),b.width=Math.max(b.width,0))),d.x+b.width>Y.right&&e&1&&(d.x=Math.max(Y.right-b.width,Y.left)),d.y<Y.top&&e&4&&(d.y=Y.top),e&32&&(U=d.y,d.y<Y.top&&(d.y=Y.top),d.y+b.height>Y.bottom&&(b.height=Math.min(Y.bottom-d.y,U+b.height-Y.top),b.height=Math.max(b.height,0))),d.y+b.height>Y.bottom&&e&4&&(d.y=Math.max(Y.bottom-b.height,Y.top)));Y=new g.WB(0,0,0,0);Y.left=d.x;Y.top=d.y;Y.width=
  12489. q.width;Y.height=q.height;g.mZ(this.element,new g.wt(Y.left,Y.top));g.jX(this.T);this.T.W(Xp(this),"contextmenu",this.V5w);this.T.W(this.J,"fullscreentoggled",this.onFullscreenToggled);this.T.W(this.J,"pageTransition",this.Fr)};
  12490. g.Q.V5w=function(d){if(!d.defaultPrevented){var q=Qi(d);g.HB(this.element,q)||this.bF();this.J.C().disableNativeContextMenu&&d.preventDefault()}};
  12491. g.Q.onFullscreenToggled=function(){this.bF();frQ(this)};
  12492. g.Q.Fr=function(){this.bF()};g.M(Fy,g.f);Fy.prototype.onClick=function(){var d=this,q,T,Y,e;return g.G(function(U){if(U.U==1)return q=d.api.C(),T=d.api.getVideoData(),Y=d.api.getPlaylistId(),e=q.getVideoUrl(T.videoId,Y,void 0,!0),g.B(U,Ir7(d,e),2);U.G&&irD(d);d.api.logClick(d.element);g.E6(U)})};
  12493. Fy.prototype.S5=function(){this.updateValue("icon",{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",Z:{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","\u590d\u5236\u94fe\u63a5");this.updateValue("tooltip-title","\u590d\u5236\u94fe\u63a5");
  12494. this.visible=zzY(this);g.ep(this.element,"ytp-copylink-button-visible",this.visible);this.OM(this.visible);this.tooltip.U$();this.api.logVisibility(this.element,this.visible&&this.S)};
  12495. Fy.prototype.N5=function(d){g.f.prototype.N5.call(this,d);this.api.logVisibility(this.element,this.visible&&d)};
  12496. Fy.prototype.ir=function(){g.f.prototype.ir.call(this);g.TR(this.element,"ytp-copylink-button-visible")};g.M(mk1,g.f);g.Q=mk1.prototype;g.Q.show=function(){g.f.prototype.show.call(this);g.zh(this.U)};
  12497. g.Q.hide=function(){this.T.stop();this.j=0;this.Qv("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.TR(this.element,"ytp-chapter-seek");g.TR(this.element,"ytp-time-seeking");g.f.prototype.hide.call(this)};
  12498. g.Q.p5=function(d,q,T,Y){this.j=d===this.L?this.j+Y:Y;this.L=d;var e=d===-1?this.K:this.B;e&&this.J.logClick(e);this.X?this.U.stop():g.I1(this.U);this.T.start();this.element.setAttribute("data-side",d===-1?"back":"forward");var U=3*this.J.OD().getPlayerSize().height;e=this.J.OD().getPlayerSize();e=e.width/3-3*e.height;this.G.style.width=U+"px";this.G.style.height=U+"px";d===1?(this.G.style.left="",this.G.style.right=e+"px"):d===-1&&(this.G.style.right="",this.G.style.left=e+"px");var b=U*2.5;U=b/
  12499. 2;var J=this.Qv("ytp-doubletap-ripple");J.style.width=b+"px";J.style.height=b+"px";d===1?(d=this.J.OD().getPlayerSize().width-q+Math.abs(e),J.style.left="",J.style.right=d-U+"px"):d===-1&&(d=Math.abs(e)+q,J.style.right="",J.style.left=d-U+"px");J.style.top="calc((33% + "+Math.round(T)+"px) - "+U+"px)";if(T=this.Qv("ytp-doubletap-ripple"))T.classList.remove("ytp-doubletap-ripple"),T.classList.add("ytp-doubletap-ripple");SW1(this,this.X?this.j:Y)};
  12500. g.Q.ZX=function(d,q,T){if(T=T===void 0?null:T){var Y=d===-1?this.K.visualElement:this.B.visualElement;T={seekData:T};var e=g.Q0();e&&g.iF(I$)(void 0,e,Y,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",T,void 0)}this.j=d===this.L?this.j+q:q;this.L=d;Y=this.J.OD().getPlayerSize();this.X?this.U.stop():g.I1(this.U);this.T.start();this.element.setAttribute("data-side",d===-1?"back":"forward");g.d9(this.element,"ytp-time-seeking");this.G.style.width="110px";this.G.style.height="110px";T=Y.width*.1-15;d===
  12501. 1?this.lr?(this.G.style.right=T+"px",this.G.style.left=""):(this.G.style.right="",this.G.style.left=Y.width*.8-30+"px"):d===-1&&(this.lr?(this.G.style.right="",this.G.style.left=T+"px"):(this.G.style.right="",this.G.style.left=Y.width*.1-15+"px"));this.G.style.top=Y.height*.5+15+"px";SW1(this,this.X?this.j:q)};
  12502. g.Q.qL=function(d,q,T){T=T===void 0?null:T;g.I1(this.U);this.T.start();switch(d){case -1:d="back";break;case 1:d="forward";break;default:d=""}this.element.setAttribute("data-side",d);this.G.style.width="0";this.G.style.height="0";g.d9(this.element,"ytp-chapter-seek");this.updateValue("seekText",q);this.updateValue("seekTime","");q=this.Qv("ytp-seek-icon");if(T){a:if(T){switch(T){case "PREMIUM_STANDALONE":T=B8H();break a;case "PREMIUM_STANDALONE_CAIRO":T=K2D();break a}T=void 0}else T=null;this.updateValue("seekIcon",
  12503. T);q.style.display="inline-block"}else q.style.display="none"};g.M(lr2,O8);g.Q=lr2.prototype;g.Q.DJ=function(d){this.aU||(this.aU=new Lc(this.J),g.C(this,this.aU));var q,T;if((q=this.fn)==null?0:(T=q.menu)==null?0:T.menuRenderer)this.aU.open(this.fn.menu.menuRenderer,d.target),d.preventDefault()};
  12504. g.Q.Cy=function(){return!!this.G};
  12505. g.Q.To=function(){return!!this.G};
  12506. g.Q.Lm=function(d){d.target===this.overflowButton.element?d.preventDefault():(this.zq&&this.J.gO("innertubeCommand",this.zq),this.uA(!1))};
  12507. g.Q.aC=function(){this.uA(!0);var d,q;((d=this.G)==null?0:(q=d.bannerData)==null?0:q.dismissedStatusKey)&&this.vF.push(this.G.bannerData.dismissedStatusKey);this.vj()};
  12508. g.Q.aM=function(){this.vj();xB(this)};
  12509. g.Q.DUF=function(d){var q=this,T;if(d.id!==((T=this.G)==null?void 0:T.identifier)){this.vj();T=g.E(this.rO);for(var Y=T.next();!Y.done;Y=T.next()){var e=Y.value,U=void 0,b=void 0;if((Y=(U=e)==null?void 0:(b=U.bannerData)==null?void 0:b.itemData)&&e.identifier===d.id){b=U=void 0;var J=((U=e)==null?void 0:(b=U.bannerData)==null?void 0:b.dismissedStatusKey)||"";if(this.vF.includes(J))return;this.G=e;this.banner.element.setAttribute("aria-label",Y.accessibilityLabel||"");Y.trackingParams&&(this.T=!0,
  12510. this.J.setTrackingParams(this.badge.element,Y.trackingParams));this.show();this.K.show();Zt(this);this.z2.OM(!Y.stayInApp);JXj(this);o$D(this);RW(this);this.zq=g.D(Y.onTapCommand,ri);if(e=g.D(Y.menuOnTap,ri))this.fn=g.D(e,DXc);e=void 0;this.banner.update({thumbnail:(e=(Y.thumbnailSources||[])[0])==null?void 0:e.url,title:Y.productTitle,price:Y.priceReplacementText?Y.priceReplacementText:Y.price,salesOriginalPrice:qU_(this),priceDropReferencePrice:TAX(this),promotionText:dJD(this),priceA11yText:YUf(this),
  12511. affiliateDisclaimer:Y.affiliateDisclaimer,vendor:eMI(this)});J=b=U=e=void 0;((e=Y)==null?0:(U=e.hiddenProductOptions)==null?0:U.showDropCountdown)&&((b=Y)==null?0:(J=b.hiddenProductOptions)==null?0:J.dropTimestampMs)&&(this.Qp=new g.f9(function(){XyD(q)},1E3),this.z2.hide(),this.countdownTimer.show(),XyD(this));
  12512. this.J.N("web_player_enable_featured_product_banner_exclusives_on_desktop")&&v$1(this)&&(this.ev=new g.f9(function(){VyD(q)},1E3),VyD(this))}}this.J.getRootNode()&&g.d9(this.J.getRootNode(),"ytp-featured-product-shown")}};
  12513. g.Q.vj=function(){this.G&&(this.G=void 0,this.kq(),this.J.getRootNode()&&g.TR(this.J.getRootNode(),"ytp-featured-product-shown"))};
  12514. g.Q.onVideoDataChange=function(d,q){var T=this;d==="dataloaded"&&xB(this);var Y,e,U;d=g.D((Y=q.getWatchNextResponse())==null?void 0:(e=Y.playerOverlays)==null?void 0:(U=e.playerOverlayRenderer)==null?void 0:U.productsInVideoOverlayRenderer,C4I);this.overflowButton.show();this.dismissButton.hide();var b=d==null?void 0:d.featuredProductsEntityKey;this.trendingOfferEntityKey=d==null?void 0:d.trendingOfferEntityKey;this.rO.length||(b87(this,b),RW(this));var J;(J=this.pC)==null||J.call(this);this.pC=g.Aw.subscribe(function(){b87(T,
  12515. b);RW(T)})};
  12516. g.Q.ir=function(){xB(this);JXj(this);o$D(this);O8.prototype.ir.call(this)};g.M(NA2,g.f);NA2.prototype.onClick=function(){this.J.logClick(this.element,this.U)};g.M(RM7,g.bi);g.Q=RM7.prototype;g.Q.show=function(){g.bi.prototype.show.call(this);this.J.publish("infopaneldetailvisibilitychange",!0);this.J.logVisibility(this.element,!0);xJ7(this,!0)};
  12517. g.Q.hide=function(){g.bi.prototype.hide.call(this);this.J.publish("infopaneldetailvisibilitychange",!1);this.J.logVisibility(this.element,!1);xJ7(this,!1)};
  12518. g.Q.getId=function(){return this.T};
  12519. g.Q.G3=function(){return this.itemData.length};
  12520. g.Q.onVideoDataChange=function(d,q){if(q){var T,Y,e,U;this.update({title:((T=q.w4)==null?void 0:(Y=T.title)==null?void 0:Y.content)||"",body:((e=q.w4)==null?void 0:(U=e.bodyText)==null?void 0:U.content)||""});var b;d=((b=q.w4)==null?void 0:b.trackingParams)||null;this.J.setTrackingParams(this.element,d);b=g.E(this.itemData);for(d=b.next();!d.done;d=b.next())d.value.dispose();this.itemData=[];var J;if((J=q.w4)==null?0:J.ctaButtons)for(q=g.E(q.w4.ctaButtons),J=q.next();!J.done;J=q.next())if(J=g.D(J.value,
  12521. KnB))J=new NA2(this.J,J,this.G),J.LH&&(this.itemData.push(J),J.IU(this.items))}};
  12522. g.Q.ir=function(){this.hide();g.bi.prototype.ir.call(this)};g.M(H8I,g.f);g.Q=H8I.prototype;g.Q.onVideoDataChange=function(d,q){hMH(this,q);this.Fd&&MrH(this,this.Fd)};
  12523. g.Q.gT=function(d){var q=this.J.getVideoData();this.videoId!==q.videoId&&hMH(this,q);MrH(this,d.state);this.Fd=d.state};
  12524. g.Q.Ce=function(d){(this.j=d)?this.hide():this.G&&this.show()};
  12525. g.Q.Af=function(){this.U||this.St();this.showControls=!0};
  12526. g.Q.xO=function(){this.U||this.bF();this.showControls=!1};
  12527. g.Q.St=function(){var d,q=(d=this.J)==null?void 0:d.getPlayerSize();d=q.width<380;var T;q=q.height<(((T=this.J)==null?0:T.isEmbedsShortsMode())?400:280);var Y,e;(((Y=this.J)==null?0:Y.getPlayerStateObject().isCued())||((e=this.J)==null?0:g.I(e.getPlayerStateObject(),1024)))&&d&&q||!this.G||this.j||(this.fade.show(),this.J.publish("infopanelpreviewvisibilitychange",!0),this.J.logVisibility(this.element,!0))};
  12528. g.Q.bF=function(){this.G&&!this.j&&(this.fade.hide(),this.J.publish("infopanelpreviewvisibilitychange",!1),this.J.logVisibility(this.element,!1))};
  12529. g.Q.Zzk=function(){this.U=!1;this.showControls||this.bF()};var zkj={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(zkj).reduce(function(d,q){d[zkj[q]]=q;return d},{});
  12530. var ipL={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(ipL).reduce(function(d,q){d[ipL[q]]=q;return d},{});
  12531. var IVI={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(IVI).reduce(function(d,q){d[IVI[q]]=q;return d},{});var mqc,Sw_;mqc=[{option:"#fff",text:"\u767d\u8272"},{option:"#ff0",text:"\u9ec4\u8272"},{option:"#0f0",text:"\u7eff\u8272"},{option:"#0ff",text:"\u9752\u8272"},{option:"#00f",text:"\u84dd\u8272"},{option:"#f0f",text:"\u6d0b\u7ea2\u8272"},{option:"#f00",text:"\u7ea2\u8272"},{option:"#080808",text:"\u9ed1\u8272"}];Sw_=[{option:0,text:yr(0)},{option:.25,text:yr(.25)},{option:.5,text:yr(.5)},{option:.75,text:yr(.75)},{option:1,text:yr(1)}];
  12532. g.Ml=[{option:"fontFamily",text:"\u5b57\u4f53\u7cfb\u5217",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:"\u5b57\u4f53\u989c\u8272",options:mqc},{option:"fontSizeIncrement",text:"\u5b57\u53f7",options:[{option:-2,text:yr(.5)},{option:-1,text:yr(.75)},{option:0,text:yr(1)},{option:1,
  12533. text:yr(1.5)},{option:2,text:yr(2)},{option:3,text:yr(3)},{option:4,text:yr(4)}]},{option:"background",text:"\u80cc\u666f\u989c\u8272",options:mqc},{option:"backgroundOpacity",text:"\u80cc\u666f\u4e0d\u900f\u660e\u5ea6",options:Sw_},{option:"windowColor",text:"\u7a97\u53e3\u989c\u8272",options:mqc},{option:"windowOpacity",text:"\u7a97\u53e3\u4e0d\u900f\u660e\u5ea6",options:Sw_},{option:"charEdgeStyle",text:"\u5b57\u7b26\u8fb9\u7f18\u6837\u5f0f",options:[{option:0,text:"\u65e0"},{option:4,text:"\u9634\u5f71"},
  12534. {option:1,text:"\u51f8\u8d77"},{option:2,text:"\u4e0b\u6c89"},{option:3,text:"\u8fb9\u6846"}]},{option:"textOpacity",text:"\u5b57\u4f53\u4e0d\u900f\u660e\u5ea6",options:[{option:.25,text:yr(.25)},{option:.5,text:yr(.5)},{option:.75,text:yr(.75)},{option:1,text:yr(1)}]}];var lVI=[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.M(pyN,g.aI);g.Q=pyN.prototype;
  12535. g.Q.gN=function(d){d.repeat||(this.j.xD=!1);var q=!1,T=d.keyCode,Y=Qi(d),e=!d.altKey&&!d.ctrlKey&&!d.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||lVI.includes(T)),U=!1,b=!1,J=this.api.C();d.defaultPrevented?(e=!1,b=!0):J.V5&&!this.api.isMutedByEmbedsMutedAutoplay()&&(e=!1);if(T===9)q=!0;else{if(Y)switch(T){case 32:case 13:if(Y.tagName==="BUTTON"||Y.tagName==="A"||Y.tagName==="INPUT")q=!0,e=!1;else if(e){var F=Y.getAttribute("role");!F||F!=="option"&&F!=="button"&&F.indexOf("menuitem")!==0||
  12536. (q=!0,Y.click(),U=!0)}break;case 37:case 39:case 36:case 35:q=Y.getAttribute("role")==="slider";break;case 38:case 40:F=Y.getAttribute("role"),Y=T===38?Y.previousSibling:Y.nextSibling,F==="slider"?q=!0:e&&(F==="option"?(Y&&Y.getAttribute("role")==="option"&&Y.focus(),U=q=!0):F&&F.indexOf("menuitem")===0&&(Y&&Y.hasAttribute("role")&&Y.getAttribute("role").indexOf("menuitem")===0&&Y.focus(),U=q=!0))}if(e&&!U)switch(T){case 38:U=Math.min(this.api.getVolume()+5,100);bg(this.Jm,U,!1);this.api.setVolume(U);
  12537. b=U=!0;break;case 40:U=Math.max(this.api.getVolume()-5,0);bg(this.Jm,U,!0);this.api.setVolume(U);b=U=!0;break;case 36:this.api.Oc()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),b=U=!0);break;case 35:this.api.Oc()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),b=U=!0)}}q&&H9(this,!0);(q||b)&&this.QH.oZ();(U||e&&this.handleGlobalKeyDown(T,d.shiftKey,d.ctrlKey,d.altKey,d.metaKey,d.key,d.code,d.repeat))&&d.preventDefault();J.B&&(d={keyCode:d.keyCode,
  12538. altKey:d.altKey,ctrlKey:d.ctrlKey,metaKey:d.metaKey,shiftKey:d.shiftKey,handled:d.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.uv("onKeyPress",d))};
  12539. g.Q.WL=function(d){var q=d.keyCode;(!this.api.N("web_player_spacebar_control_bugfix")||this.api.N("web_player_spacebar_control_bugfix")&&!this.j.LO)&&this.handleGlobalKeyUp(q,d.shiftKey,d.ctrlKey,d.altKey,d.metaKey,d.key,d.code)&&d.preventDefault()};
  12540. g.Q.handleGlobalKeyUp=function(d,q,T,Y,e,U,b){this.api.publish("keyboardserviceglobalkeyup",{keyCode:d,shiftKey:q,ctrlKey:T,altKey:Y,metaKey:e,key:U,code:b});q=!1;if(this.j.xD)return q;(U=g.lH(this.api.M5()))&&(U=U.BW)&&U.PF&&(U.xn(d),q=!0);switch(d){case 9:H9(this,!0);q=!0;break;case 32:if(this.api.N("web_speedmaster_spacebar_control")&&(!this.api.N("web_player_spacebar_control_bugfix")&&!this.j.LO||this.api.N("web_player_spacebar_control_bugfix"))&&!this.api.C().V5){var J,F;d=(J=this.progressBar)==
  12541. null?void 0:(F=J.U)==null?void 0:F.isEnabled;q=this.cW(d)}break;case 39:(Ro?Y:T)&&!e&&this.api.Oc()&&this.api.N("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),J=(J=this.api.getVideoData())?J.lS:[],F=E01(J,this.api.getCurrentTime()*1E3),F!==-1&&this.G!=null&&(this.G.qL(1,J[F].title),this.api.seekTo(J[F].startTime/1E3,void 0,void 0,void 0,52),q=!0))}return q};
  12542. g.Q.handleGlobalKeyDown=function(d,q,T,Y,e,U,b,J){J||(this.j.xD=!1);var F=!1,N=this.api.C();if(N.V5&&!this.api.isMutedByEmbedsMutedAutoplay())return F;var R=g.lH(this.api.M5());if(R&&(R=R.BW)&&R.PF)switch(d){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:F=R.Dj(d)}N.X||F||(F=U||String.fromCharCode(d).toLowerCase(),this.U+=F,"awesome".indexOf(this.U)===0||this.api.N("web_player_rtr_ctrls")&&"bday".indexOf(this.U)===0?(F=!0,4===this.U.length&&this.U==="bday"&&this.api.N("web_player_rtr_ctrls")&&
  12543. (Ahf(this.S),this.QH.oZ()),7===this.U.length&&this.U==="awesome"&&t$7(this.api.getRootNode(),"ytp-color-party")):(this.U=F,F="awesome".indexOf(this.U)===0||"bday".indexOf(this.U)===0));if(!F&&(!this.api.isMutedByEmbedsMutedAutoplay()||lVI.includes(d))){var x=this.api.getVideoData(),y,h;R=(y=this.progressBar)==null?void 0:(h=y.U)==null?void 0:h.isEnabled;y=x?x.lS:[];h=Ro?Y:T;switch(d){case 80:q&&!N.RU&&(Ua(this.Jm,GyN(),"\u4e0a\u4e00\u4e2a"),this.api.previousVideo(),F=!0);break;case 78:q&&!N.RU&&(Ua(this.Jm,
  12544. Q9(),"\u4e0b\u4e00\u4e2a"),this.api.nextVideo(),F=!0);break;case 74:this.api.Oc()&&(this.api.startSeekCsiAction(),this.G?this.api.N("enable_key_press_seek_logging")?(F=Qr(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.G.ZX(-1,10,F)):this.G.ZX(-1,10):Ua(this.Jm,{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",Z:{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"}}]}),
  12545. this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),F=!0);break;case 76:this.api.Oc()&&(this.api.startSeekCsiAction(),this.G?this.api.N("enable_key_press_seek_logging")?(F=Qr(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.G.ZX(1,10,F)):this.G.ZX(1,10):Ua(this.Jm,{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",Z:{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"}}]}),
  12546. this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),F=!0);break;case 37:this.api.Oc()&&(this.api.startSeekCsiAction(),h?(h=jSg(y,this.api.getCurrentTime()*1E3),h!==-1&&this.G!=null&&(this.G.qL(-1,y[h].title),this.api.seekTo(y[h].startTime/1E3,void 0,void 0,void 0,53),F=!0)):(this.G?this.api.N("enable_key_press_seek_logging")?(F=Qr(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.G.ZX(-1,5,F)):this.G.ZX(-1,5):Ua(this.Jm,{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",
  12547. width:"100%"},V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",Z:{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"}}]}),
  12548. this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),F=!0));break;case 39:this.api.Oc()&&(this.api.startSeekCsiAction(),h?this.api.N("web_enable_keyboard_shortcut_for_timely_actions")||(h=E01(y,this.api.getCurrentTime()*1E3),h!==-1&&this.G!=null&&(this.G.qL(1,y[h].title),this.api.seekTo(y[h].startTime/1E3,void 0,void 0,void 0,52),F=!0)):(this.G!=null?this.api.N("enable_key_press_seek_logging")?(F=Qr(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.G.ZX(1,5,F)):this.G.ZX(1,
  12549. 5):Ua(this.Jm,{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",Z:{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"}}]}),
  12550. this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),F=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),bg(this.Jm,this.api.getVolume(),!1)):(this.api.mute(),bg(this.Jm,0,!0));F=!0;break;case 32:F=this.api.N("web_speedmaster_spacebar_control")?!this.api.C().RU:this.cW(R);break;case 75:F=this.cW(R);break;case 190:q?N.enableSpeedOptions&&O8n(this)&&(F=this.api.getPlaybackRate(),this.api.setPlaybackRate(F+.25,!0),cT2(this.Jm,!1),F=!0):this.api.Oc()&&(this.step(1),F=!0);break;case 188:q?
  12551. N.enableSpeedOptions&&O8n(this)&&(F=this.api.getPlaybackRate(),this.api.setPlaybackRate(F-.25,!0),cT2(this.Jm,!0),F=!0):this.api.Oc()&&(this.step(-1),F=!0);break;case 70:I4j(this.api)&&(this.api.toggleFullscreen().catch(function(){}),F=!0);
  12552. break;case 27:R?(this.progressBar.RI(),F=!0):this.X()&&(F=!0)}if(N.controlsType!=="3")switch(d){case 67:g.La(this.api.M5())&&(N=this.api.getOption("captions","track"),this.api.toggleSubtitles(),E$n(this.Jm,!N||N&&!N.displayName),F=!0);break;case 79:c9(this,"textOpacity");break;case 87:c9(this,"windowOpacity");break;case 187:case 61:c9(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:c9(this,"fontSizeIncrement",!0,!0)}var H;q||T||Y||(d>=48&&d<=57?H=d-48:d>=96&&d<=105&&(H=d-96));H!=null&&this.api.Oc()&&
  12553. !this.api.N("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),N=this.api.getProgressState(),this.api.seekTo(H/10*(N.seekableEnd-N.seekableStart)+N.seekableStart,void 0,void 0,void 0,81),F=!0);F&&this.QH.oZ()}this.j.aB=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:d,shiftKey:q,ctrlKey:T,altKey:Y,metaKey:e,key:U,code:b,repeat:J},this.j);this.j.aB&&(F=!0,this.QH.oZ());return F};
  12554. g.Q.step=function(d){this.api.Oc();if(this.api.getPlayerStateObject().isPaused()){var q=this.api.getVideoData().U;q&&(q=q.video)&&this.api.seekBy(d/(q.fps||30),void 0,void 0,d>0?77:78)}};
  12555. g.Q.cW=function(d){if(!this.api.C().RU){var q;var T,Y=(q=this.api.getVideoData())==null?void 0:(T=q.getPlayerResponse())==null?void 0:T.playabilityStatus;if(Y){var e;q=((e=g.D(Y.miniplayer,SDq))==null?void 0:e.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else q=!1;q&&this.api.gO("onExpandMiniplayer");d?this.progressBar.dG():(d=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.Jm.fY(d),d?this.api.playVideo():this.api.pauseVideo());return!0}return!1};
  12556. g.Q.ir=function(){g.I1(this.T);g.aI.prototype.ir.call(this)};g.M(Ea,g.f);Ea.prototype.S5=function(){var d=this.J.C(),q=d.j||this.J.N("web_player_hide_overflow_button_if_empty_menu")&&this.ag.isEmpty();d=g.dn(d)&&g.m7(this.J)&&g.I(this.J.getPlayerStateObject(),128);var T=this.J.getPlayerSize();this.visible=this.J.Rl()&&!d&&T.width>=240&&!this.J.getVideoData().kc&&!q&&!this.J.isEmbedsShortsMode();g.ep(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.J.U$();this.J.logVisibility(this.element,this.visible&&this.S)};
  12557. Ea.prototype.N5=function(d){g.f.prototype.N5.call(this,d);this.J.logVisibility(this.element,this.visible&&d)};
  12558. Ea.prototype.ir=function(){g.f.prototype.ir.call(this);g.TR(this.element,"ytp-overflow-button-visible")};g.M(n0_,g.bi);g.Q=n0_.prototype;g.Q.WB=function(d){d=Qi(d);g.HB(this.element,d)&&(g.HB(this.G,d)||g.HB(this.closeButton,d)||JM(this))};
  12559. g.Q.bF=function(){g.bi.prototype.bF.call(this);this.J.Jo(this.element)};
  12560. g.Q.show=function(){this.PF&&this.J.publish("OVERFLOW_PANEL_OPENED");g.bi.prototype.show.call(this);this.element.setAttribute("aria-modal","true");trQ(this,!0)};
  12561. g.Q.hide=function(){g.bi.prototype.hide.call(this);this.element.removeAttribute("aria-modal");trQ(this,!1)};
  12562. g.Q.onFullscreenToggled=function(d){!d&&this.vR()&&JM(this)};
  12563. g.Q.isEmpty=function(){return this.actionButtons.length===0};
  12564. g.Q.focus=function(){for(var d=g.E(this.actionButtons),q=d.next();!q.done;q=d.next())if(q=q.value,q.PF){q.focus();break}};g.M(BAD,g.f);BAD.prototype.onClick=function(d){g.AM(d,this.api)&&this.api.playVideoAt(this.index)};g.M(KyI,g.bi);g.Q=KyI.prototype;g.Q.show=function(){g.bi.prototype.show.call(this);this.G.W(this.api,"videodatachange",this.vU);this.G.W(this.api,"onPlaylistUpdate",this.vU);this.vU()};
  12565. g.Q.hide=function(){g.bi.prototype.hide.call(this);g.jX(this.G);this.updatePlaylist(null)};
  12566. g.Q.vU=function(){this.updatePlaylist(this.api.getPlaylist());this.api.C().j&&(this.Qv("ytp-playlist-menu-title-name").removeAttribute("href"),this.j&&(this.t1(this.j),this.j=null))};
  12567. g.Q.n0=function(){var d=this.playlist,q=d.author,T=q?"\u6765\u81ea$AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",Y={CURRENT_POSITION:String(d.index+1),PLAYLIST_LENGTH:String(d.length)};q&&(Y.AUTHOR=q);this.update({title:d.title,subtitle:g.bO(T,Y),playlisturl:this.api.getVideoUrl(!0)});q=d.U;if(q===this.T)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[d.index];else{T=g.E(this.playlistData);for(Y=T.next();!Y.done;Y=
  12568. T.next())Y.value.dispose();T=d.length;this.playlistData=[];for(Y=0;Y<T;Y++){var e=new BAD(this.api,d,Y);this.playlistData.push(e);e.IU(this.items)}this.selected=this.playlistData[d.index];this.T=q}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
  12569. g.Q.Tsf=function(d){var q=this.api.getVideoUrl(!0);g.pR(q,this.api,d)};
  12570. g.Q.updatePlaylist=function(d){this.playlist!==d?(this.playlist&&this.playlist.unsubscribe("shuffle",this.n0,this),this.playlist=d,this.T=null,d?(d.subscribe("shuffle",this.n0,this),this.n0()):this.PF&&this.hide()):this.playlist&&this.n0()};
  12571. g.Q.focus=function(){this.selected.focus()};
  12572. g.Q.ir=function(){this.hide();g.bi.prototype.ir.call(this)};g.M(jg,g.f);jg.prototype.hide=function(){g.f.prototype.hide.call(this);this.N5(!1);this.api.U$()};
  12573. jg.prototype.S5=function(){var d=g.dn(this.api.C());g.ep(this.element,"ytp-playlist-menu-button-tiny",this.api.OD().getPlayerSize().width<400&&!d);this.api.isEmbedsShortsMode()?this.hide():this.playlist&&this.api.getPresentingPlayerType()!==2?(this.update({text:g.bO("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.bO("\u64ad\u653e\u5217\u8868\uff1a$PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title}),"tooltip-title":g.bO("\u64ad\u653e\u5217\u8868\uff1a$PLAYLIST_NAME",
  12574. {PLAYLIST_NAME:this.playlist.title})}),this.api.N("delhi_modern_web_player")&&this.update({playlistTitle:g.bO("\u64ad\u653e\u5217\u8868\uff1a$PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.PF||(this.show(),this.api.U$()),this.visible=!0,this.N5(!0)):this.PF&&this.hide()};
  12575. jg.prototype.N5=function(d){g.f.prototype.N5.call(this,d);this.api.logVisibility(this.element,this.visible&&d)};
  12576. jg.prototype.G=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.S5,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.S5,this);this.S5()};g.M(Gon,g.f);g.Q=Gon.prototype;g.Q.ZJ=function(){this.T?Wyf(this):PK2(this)};
  12577. g.Q.BB=function(){this.T?(aW(this),this.L=!0):PK2(this)};
  12578. g.Q.hgZ=function(){this.X=!0;this.Zk(1);this.J.publish("promotooltipacceptbuttonclicked",this.acceptButton);aW(this);this.U&&this.J.logClick(this.acceptButton)};
  12579. g.Q.k2D=function(){this.X=!0;this.Zk(2);aW(this);this.U&&this.J.logClick(this.dismissButton)};
  12580. g.Q.OG=function(d){if(this.J.getPresentingPlayerType()===1||this.J.getPresentingPlayerType()===2&&this.B){var q=!0,T=g.bY("ytp-ad-overlay-ad-info-dialog-container"),Y=g.bY("ytp-ad-player-overlay-layout"),e=Qi(d);if(this.j&&e&&g.HB(this.j,e))this.j=null;else{this.J.getPresentingPlayerType()===1&&e&&Array.from(e.classList).forEach(function(F){if(F.startsWith("ytp-ad")||F.startsWith("ytp-skip-ad"))q=!1});
  12581. var U=CKD(this.tooltipRenderer),b;if(((b=this.tooltipRenderer.dismissStrategy)==null?void 0:b.type)==="TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE")U&&(q=q&&!g.HB(this.element,e));else{var J;((J=this.tooltipRenderer.dismissStrategy)==null?void 0:J.type)==="TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"&&(q=U?!1:q&&g.HB(this.element,e))}this.G&&this.PF&&!T&&!Y&&(!e||q&&g.cG(d))&&(this.X=!0,aW(this))}}};
  12582. g.Q.Zk=function(d){var q=this.tooltipRenderer.promoConfig;if(q){switch(d){case 0:var T;if((T=q.impressionEndpoints)==null?0:T.length)var Y=q.impressionEndpoints[0];break;case 1:Y=q.acceptCommand;break;case 2:Y=q.dismissCommand}var e;d=(e=g.D(Y,Btx))==null?void 0:e.feedbackToken;Y&&d&&(e={feedbackTokens:[d]},d=this.J.S0(),(d==null?0:BOI(Y,d.Me))&&KU(d,Y,e))}};
  12583. g.Q.gz=function(){this.L||(this.G||(this.G=LyY(this)),Wyf(this))};
  12584. var koI={"ytp-settings-button":g.Ai()};g.M(Ag,g.f);Ag.prototype.onStateChange=function(d){this.XC(d.state)};
  12585. Ag.prototype.XC=function(d){this.OM(g.I(d,2))};
  12586. Ag.prototype.onClick=function(){this.J.getPlayerStateObject().isOrWillBePlaying();this.J.playVideo()};g.M(pq,g.f);pq.prototype.onClick=function(d){this.api.logClick(this.element);var q=g.y6(this.api.C().XM,{focusSearch:"true"}),T={};g.OF(this.api,"addEmbedsConversionTrackingParams",[T]);q=g.y6(q,T);var Y;(T=(Y=this.api.getVideoData().ff5)==null?void 0:Y.params)&&(q=g.y6(q,{bp:T}));g.Ry(window,q);d.preventDefault()};
  12587. pq.prototype.G=function(){if(this.api.N("embeds_web_enable_search_button")){var d=this.api.C();var q=this.api.getVideoData(),T=this.api.OD().getPlayerSize().width;d=g.dn(d)&&T>=this.U&&!d.j&&!q.isAd()&&!this.api.isEmbedsShortsMode()}else d=!1;this.visible=d;this.OM(this.visible);g.ep(this.element,"ytp-search-button-visible",this.visible);g.ep(this.element,"ytp-show-search-title",!this.api.Rl());this.api.logVisibility(this.element,this.visible&&this.S)};
  12588. pq.prototype.N5=function(d){g.f.prototype.N5.call(this,d);this.api.logVisibility(this.element,this.visible&&d)};g.M(ZI,g.f);
  12589. ZI.prototype.trigger=function(d,q,T,Y){this.show();if(this.U&&d!==this.U){var e=1;this.j&&(e=i8D(this));uu7(this,e,!1);zM2(this)}this.U=d;this.T=this.U===-1?this.B:this.K;d="";q?(this.L+=q,d=(this.U===-1?"\u2212":"+")+" "+this.L):this.L=0;this.updateValue(this.U===-1?"durationBack":"durationForward",d);if(this.G==="hidden"||this.G==="fading-out")q=0,this.G==="fading-out"&&(q=i8D(this),fFH(this)),DJ6(this,q),this.G!=="fading-out"&&wy1(this,this.T.querySelector(".ytp-seek-overlay-arrow-persistent")),this.G=
  12590. "fading-in";else if(this.G==="fading-in"||this.G==="lingering")q=this.T.querySelector(".ytp-seek-overlay-duration"),d=g.Yv(this.J.C().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,q.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale(1)"},{offset:.64,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale("+d+")"},{offset:1,transform:"scale(1)"}],{duration:184}),fFH(this),this.G==="lingering"&&(this.X.stop(),this.X.start());T&&IF6(this,T,Y)};
  12591. ZI.prototype.p5=function(d,q,T,Y){this.trigger(d,Y)};
  12592. ZI.prototype.ZX=function(d,q,T){this.trigger(d,q);T&&(d=d===-1?this.K.visualElement:this.B.visualElement,T={seekData:T},(q=g.Q0())&&g.iF(I$)(void 0,q,d,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",T,void 0))};
  12593. ZI.prototype.qL=function(d,q,T){this.trigger(d,void 0,q,T)};g.M(Oa,g.f);Oa.prototype.onClick=function(){var d=this,q=this.api.C(),T=this.api.getVideoData(this.api.getPresentingPlayerType()),Y=this.api.getPlaylistId();q=this.api.N("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):q.getVideoUrl(T.videoId,Y,void 0,!0);if(navigator.share)try{var e=navigator.share({title:T.title,url:q});e instanceof Promise&&e.catch(function(U){SUQ(d,U)})}catch(U){U instanceof Error&&SUQ(this,U)}else this.G.LW(),JM(this.U,this.element,!1);
  12594. this.api.logClick(this.element)};
  12595. Oa.prototype.S5=function(){var d=this.api.C(),q=this.api.isEmbedsShortsMode();g.ep(this.element,"ytp-show-share-title",g.dn(d)&&!q);this.G.rU()&&q?(d=(this.api.OD().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Dv(this.element,"right",d+"px")):q&&g.Dv(this.element,"right","0px");this.updateValue("icon",{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",Z:{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"}}]});
  12596. this.visible=mJ7(this);g.ep(this.element,"ytp-share-button-visible",this.visible);this.OM(this.visible);this.tooltip.U$();this.api.logVisibility(this.element,mJ7(this)&&this.S)};
  12597. Oa.prototype.N5=function(d){g.f.prototype.N5.call(this,d);this.api.logVisibility(this.element,this.visible&&d)};
  12598. Oa.prototype.ir=function(){g.f.prototype.ir.call(this);g.TR(this.element,"ytp-share-button-visible")};g.M(v0X,g.bi);g.Q=v0X.prototype;g.Q.cB=function(d){d=Qi(d);g.HB(this.X,d)||g.HB(this.closeButton,d)||JM(this)};
  12599. g.Q.bF=function(){g.bi.prototype.bF.call(this);this.tooltip.Jo(this.element);this.api.logVisibility(this.G,!1);for(var d=g.E(this.j),q=d.next();!q.done;q=d.next())q=q.value,this.api.hasVe(q.element)&&this.api.logVisibility(q.element,!1)};
  12600. g.Q.show=function(){var d=this.PF;g.bi.prototype.show.call(this);this.S5();d||this.api.gO("onSharePanelOpened")};
  12601. g.Q.Zo=function(){this.PF&&this.S5()};
  12602. g.Q.S5=function(){var d=this;g.d9(this.element,"ytp-share-panel-loading");g.TR(this.element,"ytp-share-panel-fail");var q=this.api.getVideoData(),T=this.api.getPlaylistId()&&this.T.checked;q.getSharePanelCommand&&KU(this.api.S0(),q.getSharePanelCommand,{includeListId:T}).then(function(Y){d.JF()||(g.TR(d.element,"ytp-share-panel-loading"),dpf(d,Y))});
  12603. q=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",q);this.updateValue("linkText",q);this.updateValue("shareLinkWithUrl",g.bO("\u5206\u4eab\u94fe\u63a5 $URL",{URL:q}));nR(this.G);this.api.logVisibility(this.G,!0)};
  12604. g.Q.onFullscreenToggled=function(d){!d&&this.vR()&&JM(this)};
  12605. g.Q.focus=function(){this.G.focus()};
  12606. g.Q.ir=function(){g.bi.prototype.ir.call(this);o0Y(this)};g.M(YQf,O8);g.Q=YQf.prototype;g.Q.ir=function(){JN_(this);O8.prototype.ir.call(this)};
  12607. g.Q.Lm=function(d){d.target!==this.dismissButton.element&&(this.uA(!1),this.J.gO("innertubeCommand",this.onClickCommand))};
  12608. g.Q.aC=function(){this.AF=!0;this.uA(!0);this.kq()};
  12609. g.Q.y1w=function(d){this.L=d;this.kq()};
  12610. g.Q.onVideoDataChange=function(d,q){if(d=!!q.videoId&&this.videoId!==q.videoId)this.videoId=q.videoId,this.AF=!1,this.yv=!0,this.B=this.UD=!1,JN_(this),XS1(this,!1),this.U=this.G=!1,rr(this),eeQ(this);if(d||!q.videoId)this.lr=this.T=!1;var T,Y;if(q==null?0:(T=q.getPlayerResponse())==null?0:(Y=T.videoDetails)==null?0:Y.isLiveContent)this.nz(!1);else{var e,U,b;q=g.D((e=q.getWatchNextResponse())==null?void 0:(U=e.playerOverlays)==null?void 0:(b=U.playerOverlayRenderer)==null?void 0:b.productsInVideoOverlayRenderer,
  12611. C4I);this.L=this.enabled=!1;if(q){if(e=q==null?void 0:q.featuredProductsEntityKey){U=g.Aw.getState().entities;var J;if((J=VA(U,"featuredProductsEntity",e))==null?0:J.productsData){this.nz(!1);return}}if(!q.text||!q.onClickCommand||!q.timing){this.nz(!1);return}this.enabled=!0;if(!this.T){var F;J=(F=q.badgeInteractionLogging)==null?void 0:F.trackingParams;(this.T=!!J)&&this.J.setTrackingParams(this.badge.element,J||null)}if(!this.lr){var N;if(this.lr=!((N=q.dismissButton)==null||!N.trackingParams)){var R;
  12612. this.J.setTrackingParams(this.dismissButton.element,((R=q.dismissButton)==null?void 0:R.trackingParams)||null)}}q.isContentForward&&(F=q.productsData,XS1(this,!0),eeQ(this),F=bf_(this,F),N=[],F.length>0&&N.push(F[0]),F.length>1&&(R=new g.f({Y:"div",D:"ytp-suggested-action-more-products-icon"}),g.C(this,R),N.push(R),N.push.apply(N,g.RQ(F.slice(1)))),this.X=new g.f({Y:"div",V:N,D:"ytp-suggested-action-content-forward-container"}),g.C(this,this.X),this.dO.element.append(this.X.element));this.text=g.gx(q.text);
  12613. var x;if(F=(x=q.dismissButton)==null?void 0:x.a11yLabel)this.xx=g.gx(F);this.onClickCommand=q.onClickCommand;this.timing=q.timing;this.ES()}lI7(this);Zt(this);this.kq()}};
  12614. g.Q.Cy=function(){return!this.L&&this.enabled&&!this.AF&&!this.J.Rl()&&!this.lF&&(this.B||this.yv)};
  12615. g.Q.qH=function(d){O8.prototype.qH.call(this,d);if(this.G||this.U)this.timing&&nq(this.timing.preview)&&(this.G=!1,rr(this),this.U=!1,rr(this),this.J.hm("shopping_overlay_preview_collapsed"),this.J.hm("shopping_overlay_preview_expanded"),d=tg(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),nq(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.J.hm("shopping_overlay_expanded"),d.end=this.timing.expanded.endSec*1E3),this.J.ES([d])),
  12616. this.UD=!0,Zt(this);rr(this)};
  12617. g.Q.nz=function(d){(this.B=d)?(pc(this),Zt(this,!1)):(JN_(this),this.RU.start());this.kq()};
  12618. g.Q.ES=function(d){var q=this.timing;d=(d===void 0?0:d)+this.J.getCurrentTime();var T=[],Y=q.visible,e=q.preview;q=q.expanded;nq(Y)&&(qQf(Y,d),T.push(tg(Y.startSec,Y.endSec,"shopping_overlay_visible")));nq(e)&&(qQf(e,d),Y=e.startSec+1,T.push(tg(e.startSec,Y,"shopping_overlay_preview_collapsed")),T.push(tg(Y,e.endSec,"shopping_overlay_preview_expanded")));nq(q)&&(qQf(q,d),T.push(tg(q.startSec,q.endSec,"shopping_overlay_expanded")));this.J.ES(T)};
  12619. g.Q.kq=function(){O8.prototype.kq.call(this);this.J.getRootNode()&&g.ep(this.J.getRootNode(),"ytp-shopping-pill-shown",this.Cy())};g.M(gdN,g.f);
  12620. gdN.prototype.S5=function(){var d=this.api.C();this.OM(g.dn(d)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.PF);var q=this.api.getVideoData(),T=!1;this.api.getPresentingPlayerType()===2?T=!!q.videoId&&!!q.isListed&&!!q.author&&!!q.wO&&!!q.profilePicture:g.dn(d)&&(T=!!q.videoId&&!!q.wO&&!!q.profilePicture&&!q.kc&&!d.j&&!(d.L&&this.api.getPlayerSize().width<200));var Y=q.profilePicture;d=g.dn(d)?q.expandedTitle:q.author;Y=Y===void 0?
  12621. "":Y;d=d===void 0?"":d;T?(this.U!==Y&&(this.G.style.backgroundImage="url("+Y+")",this.U=Y),this.updateValue("channelLogoLabel",g.bO("$CHANNEL_NAME\u7684\u7167\u7247",{CHANNEL_NAME:d})),g.d9(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.TR(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.G,T&&this.S);this.api.logVisibility(this.channelName,T&&this.S);this.subscribeButton&&(this.subscribeButton.channelId=q.Gp);this.updateValue("expandedTitle",q.expandedTitle)};g.M(B9,g.bi);B9.prototype.show=function(){g.bi.prototype.show.call(this);this.G.start()};
  12622. B9.prototype.hide=function(){g.bi.prototype.hide.call(this);this.G.stop()};
  12623. B9.prototype.qF=function(d,q){d==="dataloaded"&&((this.Pf=q.Pf,this.Je=q.Je,isNaN(this.Pf)||isNaN(this.Je))?this.j&&(this.J.hm("intro"),this.J.removeEventListener(g.Sh("intro"),this.L),this.J.removeEventListener(g.lG("intro"),this.X),this.J.removeEventListener("onShowControls",this.T),this.hide(),this.j=!1):(this.J.addEventListener(g.Sh("intro"),this.L),this.J.addEventListener(g.lG("intro"),this.X),this.J.addEventListener("onShowControls",this.T),d=new g.Ij(this.Pf,this.Je,{priority:9,namespace:"intro"}),
  12624. this.J.ES([d]),this.j=!0))};g.M(Kq,g.f);Kq.prototype.onClick=function(){this.J.Yp()};
  12625. Kq.prototype.S5=function(){var d=!0;g.dn(this.J.C())&&(d=d&&this.J.OD().getPlayerSize().width>=480);this.OM(d);d=this.updateValue;var q=this.J.N("delhi_modern_web_player_icons"),T=q?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z",
  12626. fill:"white"}}]}:{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,Z:{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"}}]};q=q?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z",
  12627. fill:"white"}}]}:{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",Z:{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"}}]};d.call(this,"icon",this.J.pA()?T:q)};g.M(N$6,g.f);N$6.prototype.ir=function(){this.G=null;g.f.prototype.ir.call(this)};g.M(GZ,g.f);GZ.prototype.onClick=function(){this.J.gO("innertubeCommand",this.U)};
  12628. GZ.prototype.K=function(){if(this.J.N("delhi_modern_web_player")){var d=this.J.getPlayerSize();d.width&&(this.element.style.maxWidth=d.width*.25+"px")}};
  12629. GZ.prototype.UD=function(d){d!==this.L&&(this.update({chapterTitle:d,ariaLabel:d}),this.L=d);d?this.show():this.hide()};
  12630. GZ.prototype.lr=function(){this.G.disabled=this.U==null;g.ep(this.G,"ytp-chapter-container-disabled",this.G.disabled);this.Yc()};g.M(Lq,GZ);Lq.prototype.onClickCommand=function(d){g.D(d,af)&&this.Yc()};
  12631. Lq.prototype.updateVideoData=function(d,q){var T,Y,e;d=g.D((T=q.getWatchNextResponse())==null?void 0:(Y=T.playerOverlays)==null?void 0:(e=Y.playerOverlayRenderer)==null?void 0:e.decoratedPlayerBarRenderer,on);T=g.D(d==null?void 0:d.playerBarActionButton,g.q6);if(this.J.N("web_player_updated_entrypoint")){this.B=D4(T==null?void 0:T.text);var U;Y=(U=T==null?void 0:T.tooltip)!=null?U:"\u67e5\u770b\u7ae0\u8282";this.X.setAttribute("title",Y)}this.U=T==null?void 0:T.command;GZ.prototype.lr.call(this)};
  12632. Lq.prototype.Yc=function(){var d=this.B,q=this.T.G,T,Y=((T=this.J.getLoopRange())==null?void 0:T.type)==="clips";if(q.length>1&&!Y){d=this.J.getProgressState().current*1E3;T=hg(q,d);d=q[T].title||"\u7ae0\u8282";if(T!==this.currentIndex||this.j)this.J.gO("innertubeCommand",q[T].onActiveCommand),this.currentIndex=T;this.j=!1}else this.j=!0;GZ.prototype.UD.call(this,d)};g.M(kB,g.Ji);kB.prototype.U=function(){var d;(d=this.element.parentElement)==null||d.classList.contains("ytp-right-controls-left");(this.G=!this.G)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")};
  12633. kB.prototype.isExpanded=function(){return this.G};g.M(P9,g.f);P9.prototype.j=function(d){g.I(d.state,32)?xp6(this,this.api.TN()):this.PF&&(g.I(d.state,16)||g.I(d.state,1))||this.fade.hide()};
  12634. P9.prototype.S$=function(){var d=this.api.getPlayerStateObject();(g.I(d,32)||g.I(d,16))&&yND(this)};
  12635. P9.prototype.T=function(){this.frameIndex=NaN;yND(this)};
  12636. P9.prototype.hide=function(){this.G&&xp6(this,null);g.f.prototype.hide.call(this)};g.M(heQ,g.f);g.Q=heQ.prototype;g.Q.onClick=function(){var d=this;if(this.J.C().wO||this.J.C().L){this.J.logClick(this.element);try{this.J.toggleFullscreen().catch(function(q){d.n1(q)})}catch(q){this.n1(q)}}else JM(this.message,this.element,!0)};
  12637. g.Q.n1=function(d){String(d).includes("fullscreen error")?g.OL(d):g.Zz(d);this.j4()};
  12638. g.Q.j4=function(){this.disable();this.message.St(this.element,!0)};
  12639. g.Q.xX=function(){FH()===this.J.getRootNode()?this.j.start():(this.j.stop(),this.message&&this.message.hide())};
  12640. g.Q.tG=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var d=window.screen.width*.9,q=window.screen.height*.9,T=Math.max(window.outerWidth,window.innerWidth),Y=Math.max(window.outerHeight,window.innerHeight);if(T>Y!==d>q){var e=T;T=Y;Y=e}d>T&&q>Y&&this.j4()}};
  12641. g.Q.disable=function(){var d=this;if(!this.message){var q=(sd(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"\u65e0\u6cd5\u5168\u5c4f\u64ad\u653e\u3002$BEGIN_LINK\u4e86\u89e3\u8be6\u60c5$END_LINK":"\u4f60\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u5168\u5c4f\u6a21\u5f0f\u3002$BEGIN_LINK\u4e86\u89e3\u8be6\u60c5$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.bi(this.J,{Y:"div",hF:["ytp-popup","ytp-generic-popup"],Z:{role:"alert",
  12642. tabindex:"0"},V:[q[0],{Y:"a",Z:{href:"https://support.google.com/youtube/answer/6276924",target:this.J.C().K},j5:q[2]},q[4]]},100,!0);this.message.hide();g.C(this,this.message);this.message.subscribe("show",function(T){d.U.V8(d.message,T)});
  12643. g.o6(this.J,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.G)();this.G=null}};
  12644. g.Q.S5=function(){var d=I4j(this.J),q=this.J.C().L&&this.J.getPlayerSize().width<250;this.OM(d&&!q);var T;((T=this.J.C())==null?0:T.N("embeds_use_parent_visibility_in_ve_logging"))?this.J.logVisibility(this.element,this.PF&&this.S):this.J.logVisibility(this.element,this.PF)};
  12645. g.Q.Cp=function(d){if(d){var q=g.wm(this.J,"\u9000\u51fa\u5168\u5c4f","f");this.update({"data-title-no-tooltip":"\u9000\u51fa\u5168\u5c4f"});document.activeElement===this.element&&this.J.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(T){g.OL(T)})}else q=g.wm(this.J,"\u5168\u5c4f","f"),this.update({"data-title-no-tooltip":"\u5168\u5c4f"});
  12646. d=Hf_(this,d);q=this.message?null:q;this.J.C().N("player_tooltip_data_title_killswitch")?this.update({title:q,icon:d}):this.update({"tooltip-title":q,"aria-label":q,icon:d});this.U.nH().U$()};
  12647. g.Q.ir=function(){this.message||((0,this.G)(),this.G=null);g.f.prototype.ir.call(this)};
  12648. g.Q.N5=function(d){g.f.prototype.N5.call(this,d);var q;((q=this.J.C())==null?0:q.N("embeds_use_parent_visibility_in_ve_logging"))&&this.J.logVisibility(this.element,this.PF&&d)};g.M(W9,g.f);W9.prototype.onClick=function(){this.J.logClick(this.element);this.J.seekBy(this.G,!0);var d=this.G>0?1:-1,q=Math.abs(this.G),T=this.J.u1().HZ;T&&T.ZX(d,q);this.U.isActive()?this.j=!0:(d=["ytp-jump-spin"],this.G<0&&d.push("backwards"),this.element.classList.add.apply(this.element.classList,g.RQ(d)),g.zh(this.U))};g.M(Cq,GZ);Cq.prototype.onClickCommand=function(d){g.D(d,P47)&&this.Yc()};
  12649. Cq.prototype.updateVideoData=function(){var d,q;this.U=(d=MQ6(this))==null?void 0:(q=d.onTap)==null?void 0:q.innertubeCommand;GZ.prototype.lr.call(this)};
  12650. Cq.prototype.Yc=function(){var d="",q=this.T.L,T,Y=(T=MQ6(this))==null?void 0:T.headerTitle;T=Y?g.gx(Y):"";var e;Y=((e=this.J.getLoopRange())==null?void 0:e.type)==="clips";q.length>1&&!Y&&(d=this.J.getProgressState().current*1E3,e=cXQ(q,d),d=e!=null?q[e].title:T,e!=null&&e!==this.currentIndex&&(this.J.gO("innertubeCommand",q[e].onActiveCommand),this.currentIndex=e));GZ.prototype.UD.call(this,d)};g.M(ug,g.f);ug.prototype.onClick=function(){this.J.gO("onCollapseMiniplayer");this.J.logClick(this.element)};
  12651. ug.prototype.S5=function(){this.visible=!this.J.isFullscreen();this.OM(this.visible);this.J.logVisibility(this.element,this.visible&&this.S)};
  12652. ug.prototype.N5=function(d){g.f.prototype.N5.call(this,d);this.J.logVisibility(this.element,this.visible&&d)};g.M(DI,g.f);DI.prototype.init=function(){this.updateValue("minvalue",this.T);this.updateValue("maxvalue",this.X);this.updateValue("stepvalue",this.B);this.updateValue("slidervalue",this.G);EdY(this,this.G)};
  12653. DI.prototype.j=function(){wr(this,Number(this.U.value));this.U.focus()};
  12654. DI.prototype.L=function(d){if(!d.defaultPrevented){switch(d.code){case "ArrowDown":d=-this.B;break;case "ArrowUp":d=this.B;break;default:return}wr(this,Math.min(this.X,Math.max(Number((this.G+d).toFixed(2)),this.T)))}};g.M(fq,DI);fq.prototype.onVolumeChange=function(d){if(this.K)this.K=!1;else{var q=d.volume;q===0||d.muted?wr(this,0):wr(this,q)}};
  12655. fq.prototype.j=function(){DI.prototype.j.call(this);this.lr(this.G)};
  12656. fq.prototype.UD=function(d){var q=-d.deltaY;q=d.deltaMode===WheelEvent.DOM_DELTA_LINE||d.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.Cn(this.G+q,0,100):g.Cn(this.G+g.Cn(q/10,-10,10),0,100);q===0?wr(this,0):wr(this,q);this.lr(q);d.preventDefault();d.stopPropagation()};
  12657. fq.prototype.yv=function(d,q){this.K=!0;d===0||q?this.J.mute():(this.J.isMuted()&&this.J.unMute(),this.J.setVolume(d))};g.M(jKX,g.f);g.M(ig,g.f);g.Q=ig.prototype;g.Q.X8=function(){if(!this.J.qO()){this.updateValue("dataTooltipOffsetY",-120);var d;(d=this.G)!=null&&zZ(d,!0);var q;(q=this.G)!=null&&q.G.stop()}};
  12658. g.Q.oY=function(){var d;(d=this.G)!=null&&d.G.start()};
  12659. g.Q.mQ=function(d){this.visible=d.width>=300||this.aU;this.OM(this.visible);this.J.logVisibility(this.element,this.visible&&this.S)};
  12660. g.Q.hT=function(){this.J.C().dO?this.J.isMuted()?this.J.unMute():this.J.mute():JM(this.message,this.element,!0);this.J.logClick(this.element)};
  12661. g.Q.rmg=function(d){if(this.J.C().dO&&this.G)if(d.target===this.j){var q;if(!this.J.qO()||((q=this.G)==null?0:q.isVisible))this.hT();else{var T;(T=this.G)!=null&&zZ(T,!0)}}else{var Y;(Y=this.G)!=null&&zZ(Y,!0)}else this.hT()};
  12662. g.Q.onVolumeChange=function(d){this.setVolume(d.volume,d.muted)};
  12663. g.Q.setVolume=function(d,q){var T=this,Y=q?0:d/100;d=Y===0?1:d>50?1:0;if(this.K!==d){var e=this.B;isNaN(e)?OfN(this,d):GjX(this.dO,function(b){OfN(T,e+(T.K-e)*b)},250);
  12664. this.K=d}Y=Y===0?1:0;if(this.L!==Y){var U=this.yv;isNaN(U)?ndn(this,Y):GjX(this.rO,function(b){ndn(T,U+(T.L-U)*b)},250);
  12665. this.L=Y}ANQ(this,q)};
  12666. g.Q.N5=function(d){g.f.prototype.N5.call(this,d);this.J.logVisibility(this.element,this.visible&&d)};
  12667. var pSj=["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"],Zf6=["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," ",
  12668. 23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.M(g.IW,g.f);g.Q=g.IW.prototype;g.Q.onStateChange=function(d){this.XC(d.state);var q;((q=this.J.C())==null?0:q.N("embeds_use_parent_visibility_in_ve_logging"))&&this.J.logVisibility(this.element,this.PF&&this.S)};
  12669. g.Q.XC=function(d){var q=g.vr(this.J.getVideoData()),T=!1;d.isOrWillBePlaying()?d=q?4:2:g.I(d,2)?(d=3,T=q):d=1;this.element.disabled=T;if(this.G!==d){q=null;switch(d){case 2:q=g.wm(this.J,"\u6682\u505c","k");this.update({"data-title-no-tooltip":"\u6682\u505c"});break;case 3:q="\u91cd\u653e";this.update({"data-title-no-tooltip":"\u91cd\u653e"});break;case 1:q=g.wm(this.J,"\u64ad\u653e","k");this.update({"data-title-no-tooltip":"\u64ad\u653e"});break;case 4:q="\u505c\u6b62\u76f4\u64ad",this.update({"data-title-no-tooltip":"\u505c\u6b62\u76f4\u64ad"})}d===
  12670. 3?this.J.C().N("player_tooltip_data_title_killswitch")?this.update({title:q,icon:rN_(this,d)}):this.update({"tooltip-title":q,icon:rN_(this,d)}):(this.J.N("player_tooltip_data_title_killswitch")?this.update({title:q}):this.update({"tooltip-title":q}),(q=rN_(this,d))&&this.G&&this.G!==3?kjn(this.transition,this.element,q):this.updateValue("icon",q));this.tooltip.U$();this.G=d}};
  12671. g.Q.onVideoDataChange=function(){g.ep(this.element,"ytp-play-button-playlist",g.m7(this.J))};
  12672. g.Q.cW=function(d){this.J.logClick(this.element);if(this.J.getPlayerStateObject().isOrWillBePlaying())this.J.pauseVideo();else{if(this.J.isMinimized()&&this.J.getPlayerStateObject().isCued()){var q={},T;if((T=this.J.getVideoData())==null?0:T.X)q.cttAuthInfo={token:this.J.getVideoData().X,videoId:this.J.getVideoData().videoId};OG("direct_playback",q);this.J.GN().timerName="direct_playback"}this.J.playVideo()}this.J.isMinimized()&&(d==null?void 0:d.type)==="click"&&this.element.blur()};
  12673. g.Q.N5=function(d){g.f.prototype.N5.call(this,d);var q;((q=this.J.C())==null?0:q.N("embeds_use_parent_visibility_in_ve_logging"))&&this.J.logVisibility(this.element,this.PF&&d)};g.M(g.mG,g.f);g.Q=g.mG.prototype;g.Q.onVideoDataChange=function(){KkY(this);this.T&&(this.t1(this.T),this.T=null);this.videoData=this.J.getVideoData(1);if(this.playlist=this.J.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.T=this.W(this.J,"progresssync",this.C2);this.j=GwD(this);B$_(this);this.X6(this.J.OD().getPlayerSize())};
  12674. g.Q.X6=function(d){d=d===void 0?this.J.OD().getPlayerSize():d;var q,T=((q=this.J.getLoopRange())==null?void 0:q.type)==="clips";d=(g.m7(this.J)||this.G&&g.V2(this.J)&&!this.J.N("web_hide_next_button")||LkQ(this))&&!T&&(this.G||d.width>=400);this.OM(d);this.J.logVisibility(this.element,d)};
  12675. g.Q.onClick=function(d){this.J.logClick(this.element);var q=!0;this.L?q=g.AM(d,this.J):d.preventDefault();q&&(this.G&&this.J.getPresentingPlayerType()===5?this.J.publish("ytoprerollinternstitialnext"):this.G?(Ac(this.J.GN()),this.J.publish("playlistnextbuttonclicked",this.element),this.J.nextVideo(!0)):this.j?this.J.seekTo(0):(Ac(this.J.GN()),this.J.publish("playlistprevbuttonclicked",this.element),this.J.previousVideo(!0)))};
  12676. g.Q.C2=function(){var d=GwD(this);d!==this.j&&(this.j=d,B$_(this))};
  12677. g.Q.ir=function(){this.U&&(this.U(),this.U=null);KkY(this);g.f.prototype.ir.call(this)};g.M(PJn,g.f);g.Q=PJn.prototype;g.Q.VJ=function(d){this.m$(d.pageX);this.q_(d.pageX+d.deltaX);WkN(this)};
  12678. g.Q.m$=function(d){this.lr=d-this.aU};
  12679. g.Q.q_=function(d){d-=this.aU;!isNaN(this.lr)&&this.thumbnails.length>0&&(this.K=d-this.lr,this.thumbnails.length>0&&this.K!==0&&(this.j=this.B+this.K,d=foY(this,this.j),this.j<=this.G/2&&this.j>=wSD(this)?(this.api.seekTo(d,!1,void 0,void 0,25),g.Dv(this.yv,"transform","translateX("+(this.j-this.G/2)+"px)"),kw6(this,d)):this.j=this.B))};
  12680. g.Q.kO=function(){this.UD&&(this.UD.MG=!0);var d=(0,g.cj)()-this.qk<300;if(Math.abs(this.K)<5&&!d){this.qk=(0,g.cj)();d=this.lr+this.K;var q=this.G/2-d;this.m$(d);this.q_(d+q);WkN(this);this.api.logClick(this.X)}WkN(this)};
  12681. g.Q.K2=function(){Sg(this,this.api.getCurrentTime())};
  12682. g.Q.play=function(d){this.api.seekTo(foY(this,this.j),void 0,void 0,void 0,26);this.api.playVideo();d&&this.api.logClick(this.playButton)};
  12683. g.Q.onExit=function(d){this.api.seekTo(this.RU,void 0,void 0,void 0,63);this.api.playVideo();d&&this.api.logClick(this.dismissButton)};
  12684. g.Q.gz=function(d,q){this.aU=d;this.G=q;Sg(this,this.api.getCurrentTime())};
  12685. g.Q.enable=function(){this.isEnabled||(this.isEnabled=!0,this.RU=this.api.getCurrentTime(),kw6(this,this.RU),g.ep(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.dO=this.W(this.element,"wheel",this.VJ),this.logVisibility(this.isEnabled))};
  12686. g.Q.disable=function(){this.isEnabled=!1;this.hide();g.ep(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.dO&&this.t1(this.dO);this.logVisibility(this.isEnabled)};
  12687. g.Q.reset=function(){this.disable();this.T=[];this.z2=!1};
  12688. g.Q.logVisibility=function(d){this.api.logVisibility(this.element,d);this.api.logVisibility(this.X,d);this.api.logVisibility(this.dismissButton,d);this.api.logVisibility(this.playButton,d)};
  12689. g.Q.ir=function(){for(;this.U.length;){var d=void 0;(d=this.U.pop())==null||d.dispose()}g.f.prototype.ir.call(this)};
  12690. g.M(CJY,g.f);g.M(u5N,g.f);g.M(ze_,g.f);g.M(lg,g.f);lg.prototype.tA=function(d){return d==="PLAY_PROGRESS"?this.B:d==="LOAD_PROGRESS"?this.L:d==="LIVE_BUFFER"?this.X:this.j};mpf.prototype.update=function(d,q,T,Y){T=T===void 0?0:T;this.width=q;this.T=T;this.G=q-T-(Y===void 0?0:Y);this.position=g.Cn(d,T,T+this.G);this.j=this.position-T;this.U=this.j/this.G};g.M(SQn,g.f);g.M(g.Vr,g.Ji);g.Q=g.Vr.prototype;
  12691. g.Q.fG=function(){var d=!1,q=this.api.getVideoData();if(!q)return d;this.api.hm("timedMarkerCueRange");odg(this);for(var T=g.E(q.Fw),Y=T.next();!Y.done;Y=T.next()){Y=Y.value;var e=void 0,U=(e=this.xx[Y])==null?void 0:e.markerType,b=void 0;e=(b=this.xx[Y])==null?void 0:b.markers;if(!e)break;if(U==="MARKER_TYPE_TIMESTAMPS"){d=g.E(e);for(U=d.next();!U.done;U=d.next()){b=U.value;U=new SQn;var J=void 0;U.title=((J=b.title)==null?void 0:J.simpleText)||"";U.timeRangeStartMillis=Number(b.startMillis);U.G=
  12692. Number(b.durationMillis);var F=J=void 0;U.onActiveCommand=(F=(J=b.onActive)==null?void 0:J.innertubeCommand)!=null?F:void 0;ewN(this,U)}U2H(this,this.L);d=this.L;U=this.qU;b=[];J=null;for(F=0;F<d.length;F++){var N=d[F].timeRangeStartMillis;if(!isNaN(N)&&d[F].onActiveCommand){var R=void 0,x=(R=d[F].G)!=null?R:1E4;J&&J.end>N&&(J.end=N);N=aF7(N,N+x);b.push(N);J=N;U[N.id]=d[F].onActiveCommand}}this.api.ES(b);a:{d=g.E(e);for(e=d.next();!e.done;e=d.next())if(e.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){d=
  12693. !1;break a}d=!0}d&&(this.lS=this.xx[Y]);d=!0}else if(U==="MARKER_TYPE_HEATMAP"){Y=this.xx[Y];R=N=U=F=J=b=void 0;if(Y&&Y.markers){e=(U=(R=Y.markersMetadata)==null?void 0:(N=R.heatmapMetadata)==null?void 0:N.minHeightDp)!=null?U:0;U=(b=(F=Y.markersMetadata)==null?void 0:(J=F.heatmapMetadata)==null?void 0:J.maxHeightDp)!=null?b:60;b=this.G.length;J=null;for(F=0;F<b;F++){R=this.G[F].startTime;x=F===b-1?Infinity:this.G[F+1].startTime;F===this.T.length&&vd7(this);N=[];J&&N.push(J);for(var y=g.E(Y.markers),
  12694. h=y.next();!h.done;h=y.next()){h=h.value;var H=Number(h.startMillis);H>=R&&H<=x&&N.push(h)}U>0&&(this.UD.style.height=U+"px");R=this.T[F];x=N;h=e;var a=U,p=F===0;p=p===void 0?!1:p;ifQ(R,a);y=x;H=R.U;p=p===void 0?!1:p;var t=1E3/y.length,n=[];n.push({x:0,y:100});for(var K=0;K<y.length;K++){var P=(K+.5)*t,w=100-g.Cn((y[K].intensityScoreNormalized||0)*100,h/H*100,a/H*100);K!==0||p||n.push({x:0,y:w});n.push({x:P,y:w});K===y.length-1&&n.push({x:1E3,y:w})}n.push({x:1E3,y:100});y=n;x=x.length===0?"":x9f(y);
  12695. R.api.N("delhi_modern_web_player")?R.j.setAttribute("d",x):R.X.setAttribute("d",x);R.LH=x!=="";g.ep(R.api.getRootNode(),"ytp-heat-map",R.LH);R.api.N("delhi_modern_web_player")&&(R.j.style.display="block",R.T.style.display="none",R.G.style.display="none");N.length>0&&(J=N[N.length-1])}g.dl(this)}U=void 0;e=[];if(Y=(U=Y.markersDecoration)==null?void 0:U.timedMarkerDecorations)for(Y=g.E(Y),U=Y.next();!U.done;U=Y.next())U=U.value,F=J=b=void 0,e.push({visibleTimeRangeStartMillis:(b=U.visibleTimeRangeStartMillis)!=
  12696. null?b:-1,visibleTimeRangeEndMillis:(J=U.visibleTimeRangeEndMillis)!=null?J:-1,decorationTimeMillis:(F=U.decorationTimeMillis)!=null?F:NaN,label:U.label?g.gx(U.label):""});Y=e;this.heatMarkersDecorations=Y}}q.Mr=this.L;g.ep(this.element,"ytp-timed-markers-enabled",d);return d};
  12697. g.Q.gz=function(){g.dl(this);Yn(this);U2H(this,this.L);if(this.U){var d=g.lY(this.element).x||0;this.U.gz(d,this.X)}};
  12698. g.Q.SFw=function(){var d=this.api.getVideoData();d&&y27(this,d)};
  12699. g.Q.onClickCommand=function(d){if(d=g.D(d,af)){var q=d.key;d.isVisible&&q&&sX6(this,q)}};
  12700. g.Q.iHF=function(d){this.api.gO("innertubeCommand",this.qU[d.id])};
  12701. g.Q.Yc=function(){Yn(this);var d=this.api.getCurrentTime();(d<this.clipStart||d>this.clipEnd)&&this.v0()};
  12702. g.Q.wT=function(d){if(!d.defaultPrevented){var q=!1;switch(d.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);q=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);q=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);q=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);q=!0;break;case 38:this.api.N("enable_key_press_seek_logging")&&sk(this,this.api.getCurrentTime(),this.api.getCurrentTime()+5,"SEEK_SOURCE_SEEK_FORWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS");
  12703. this.api.seekBy(5,void 0,void 0,72);q=!0;break;case 40:this.api.N("enable_key_press_seek_logging")&&sk(this,this.api.getCurrentTime(),this.api.getCurrentTime()-5,"SEEK_SOURCE_SEEK_BACKWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"),this.api.seekBy(-5,void 0,void 0,71),q=!0}q&&d.preventDefault()}};
  12704. g.Q.qF=function(d,q){this.updateVideoData(q,d==="newdata")};
  12705. g.Q.LI=function(){this.qF("newdata",this.api.getVideoData())};
  12706. g.Q.updateVideoData=function(d,q){q=q===void 0?!1:q;var T=!!d&&d.LH();T&&(Q2(d)||RwH(this)?this.Kz=!1:this.Kz=d.allowLiveDvr,g.ep(this.api.getRootNode(),"ytp-enable-live-buffer",!(d==null||!Q2(d))),y27(this,d));r2_(this,this.api.Oc());if(q){if(T){q=d.clipEnd;this.clipStart=d.clipStart;this.clipEnd=q;$n(this);for(br(this,this.lr,this.fn);this.T.length>0;)this.T.pop().dispose();this.heatMarkersDecorations=[];this.Qp={};var Y;(Y=this.U)==null||Y.reset();xn(this);g.ep(this.api.getRootNode(),"ytp-fine-scrubbing-exp",
  12707. oW(this))}else this.v0();this.QS()}if(d){var e;Y=((e=this.IN)==null?void 0:e.type)==="clips";if(e=!d.isLivePlayback){e=this.api.getVideoData();q=g.Vv(e);T=d21(e);var U;e=q!=null||T!=null&&T.length>0||((U=e.WJ)==null?void 0:U.length)>0}if(e&&!Y){U=this.api.getVideoData();Y=g.Vv(U);e=!1;if(Y==null?0:Y.markersMap){e=this.api.getVideoData();var b;e.qj=((b=Y.visibleOnLoad)==null?void 0:b.key)||e.qj;b=g.E(Y.markersMap);for(Y=b.next();!Y.done;Y=b.next())Y=Y.value,Y.key&&Y.value&&(this.Qp[Y.key]=Y.value,
  12708. Y.value.onChapterRepeat&&(e.aYr=Y.value.onChapterRepeat));e.qj!=null&&sX6(this,e.qj);e=!0}var J;if(((J=U.WJ)==null?void 0:J.length)>0){J=g.Aw.getState().entities;b=g.E(U.WJ);for(Y=b.next();!Y.done;Y=b.next()){Y=Y.value;T=void 0;q=(T=VA(J,"macroMarkersListEntity",Y))==null?void 0:T.markersList;var F=T=void 0;if(((T=q)==null?void 0:T.markerType)==="MARKER_TYPE_TIMESTAMPS"||((F=q)==null?void 0:F.markerType)==="MARKER_TYPE_HEATMAP")this.xx[Y]=q}e=this.fG()||e}!e&&(J=d21(U))&&(Ty6(this,J),U.lS=this.G,
  12709. qhj(this));hw6(this,null);d.J$&&this.T.length===0&&(d=d.J$,J=d.key,d.isVisible&&J&&sX6(this,J))}else lof(this),odg(this)}Yn(this)};
  12710. g.Q.FS=function(d){this.B&&!g.I(d.state,32)&&this.api.getPresentingPlayerType()!==3&&this.B.cancel();var q;((q=this.U)==null?0:q.isEnabled)&&g.I(d.state,8)&&this.api.pauseVideo();d=this.api.getPresentingPlayerType()===2||!this.api.Oc()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.ep(this.vA,"ytp-hide-scrubber-button",d)};
  12711. g.Q.SG=function(d){var q=!!this.IN!==!!d,T=this.IN;this.IN=d;hw6(this,T);(d==null?void 0:d.type)!=="clips"&&d||(d?(this.updateValue("clipstarticon",puf()),this.updateValue("clipendicon",puf()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",HWN()),this.updateValue("clipendicon",hTj()),this.updateValue("clipstarttitle","\u89c2\u770b\u5b8c\u6574\u7248\u89c6\u9891"),this.updateValue("clipendtitle","\u89c2\u770b\u5b8c\u6574\u7248\u89c6\u9891")),
  12712. q&&(this.updateVideoData(this.api.getVideoData(),!0),g.dl(this)),$n(this));br(this,this.lr,this.fn)};
  12713. g.Q.Mtw=function(){this.api.publish("progressBarHoverStart")};
  12714. g.Q.zlO=function(d,q,T){var Y=g.lY(this.element),e=Tj(this).G,U=T?T.getAttribute("data-tooltip"):void 0,b=T?T.getAttribute("data-position"):void 0,J=T?T.getAttribute("data-offset-y"):void 0;J=J?Number(J):0;b&&(d=rs(this.j,Number(T.getAttribute("data-position")),0)*e+g.lY(this.progressBar).x);this.wO.x=d-Y.x;this.wO.y=q-Y.y;d=Tj(this);T=JZ(this,d);q=0;var F;if((F=this.api.getVideoData())==null?0:Q2(F))(F=this.api.getProgressState().seekableEnd)&&T>F&&(T=F,d.position=rs(this.j,F)*Tj(this).G),q=this.j.U;
  12715. RwH(this)&&(q=this.j.U);F=U||g.MY(this.Kz?T-this.j.G:T-q);q=d.position+this.t0;T-=this.api.mz();var N;if((N=this.U)==null||!N.isEnabled)if(this.api.TN()){if(this.G.length>1){N=X3(this,this.wO.x,!0);if(!this.IN)for(Y=0;Y<this.G.length;)g.ep(this.G[Y].G,"ytp-exp-chapter-hover-effect",Y===N),Y++;if(this.T.length>1)for(Y=0;Y<this.G.length;Y++)g.ep(this.T[Y].element,"ytp-heatmap-hover",Y===N)}if(this.L.length>0)for(N=this.wO.x,Y=g.E(this.L),e=Y.next();!e.done;e=Y.next())e=e.value,b=qN(this,e.timeRangeStartMillis/
  12716. (this.j.G*1E3),Tj(this)),g.ep(e.element,"ytp-timed-marker-hover",b<=N&&b+6>=N);Y=this.tooltip.scale;N=this.api.N("delhi_modern_web_player")?67:45;J=(isNaN(J)?0:J)-N*Y;this.api.N("web_key_moments_markers")?this.lS?(N=cXQ(this.L,T*1E3),N=N!=null?this.L[N].title:""):(N=hg(this.G,T*1E3),N=this.G[N].title):(N=hg(this.G,T*1E3),N=this.G[N].title);N||(J+=16*Y);this.tooltip.scale===.6&&(g.cT(this.api.C())?(J=this.api.OD().getPlayerSize().height-225,Y=this.api.N("delhi_modern_web_player")?70:110,J=N?J+Y:J+
  12717. Y+16):J=N?110:126);Y=hg(this.G,T*1E3);this.z2=QXj(this,T,Y)?Y:QXj(this,T,Y+1)?Y+1:-1;g.ep(this.api.getRootNode(),"ytp-progress-bar-snap",this.z2!==-1&&this.G.length>1);Y=!1;e=g.E(this.heatMarkersDecorations);for(b=e.next();!b.done;b=e.next()){b=b.value;var R=T*1E3;R>=b.visibleTimeRangeStartMillis&&R<=b.visibleTimeRangeEndMillis&&(N=b.label,F=g.MY(b.decorationTimeMillis/1E3),Y=!0)}this.dA!==Y&&(this.dA=Y,this.api.logVisibility(this.V5,this.dA));g.ep(this.api.getRootNode(),"ytp-progress-bar-decoration",
  12718. Y);Y=160*this.tooltip.scale*2;e=N.length*(this.K?8.55:5.7);e=e<=Y?e:Y;b=e<160*this.tooltip.scale;Y=3;!b&&e/2>d.position&&(Y=1);!b&&e/2>this.X-d.position&&(Y=2);this.api.C().L&&(J-=10);this.T.length&&this.T[0].LH&&(J-=14*(this.K?2:1),this.RU||(this.RU=!0,this.api.logVisibility(this.UD,this.RU)));var x;if(oW(this)&&(((x=this.U)==null?0:x.isEnabled)||this.Fw>0)){var y;J-=((y=this.U)==null?0:y.isEnabled)?F3(this):this.Fw}x=void 0;oW(this)&&!this.api.N("web_player_hide_fine_scrubbing_edu")&&(x="\u5411\u4e0a\u62c9\u4ee5\u7cbe\u786e\u5730\u8c03\u6574\u64ad\u653e\u8fdb\u5ea6",
  12719. this.aU||(this.aU=!0,this.api.logVisibility(this.ST,this.aU)));this.tooltip.MS(q,T,F,!!U,J,N,Y,x)}else this.tooltip.MS(q,T,F,!!U,J);g.d9(this.api.getRootNode(),"ytp-progress-bar-hover");NyX(this)};
  12720. g.Q.ttD=function(){this.QS();g.TR(this.api.getRootNode(),"ytp-progress-bar-hover");this.RU&&(this.RU=!1,this.api.logVisibility(this.UD,this.RU));this.aU&&(this.aU=!1,this.api.logVisibility(this.ST,this.aU));this.api.N("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")};
  12721. g.Q.QdZ=function(d,q){var T=g.lY(this.element);this.qC=d-T.x;oW(this)&&this.U&&(this.U.z2?Sg(this.U,this.api.getCurrentTime()):Dp7(this.U),this.U.show(),g.ep(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.U.isEnabled));this.FW&&(this.FW.dispose(),this.FW=null);this.Y1=q;this.R6=this.api.getCurrentTime();this.G.length>1&&this.z2!==-1?this.api.seekTo(this.G[this.z2].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(JZ(this,Tj(this)),!1,void 0,void 0,7);g.d9(this.element,"ytp-drag");(this.yH=
  12722. this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()};
  12723. g.Q.pGw=function(){if(oW(this)&&this.U){var d=F3(this);this.Fw>=d*.5?(this.U.enable(),Sg(this.U,this.api.getCurrentTime()),nFj(this,d)):xn(this)}if(g.I(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var q;if((q=this.U)==null?0:q.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.G.length>1&&this.z2!==-1)this.api.N("html5_enable_progress_bar_slide_seek_logging")&&sk(this,this.R6,this.G[this.z2].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER",
  12724. "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.G[this.z2].startTime/1E3,void 0,void 0,void 0,7);else{d=JZ(this,Tj(this));this.api.N("html5_enable_progress_bar_slide_seek_logging")&&sk(this,this.R6,d,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(d,void 0,void 0,void 0,7);q=g.E(this.heatMarkersDecorations);for(var T=q.next();!T.done;T=q.next())T=T.value,d*1E3>=T.visibleTimeRangeStartMillis&&d*1E3<=T.visibleTimeRangeEndMillis&&
  12725. this.api.logClick(this.V5)}g.TR(this.element,"ytp-drag");this.rO&&(this.yv.src=this.rO);this.yH&&!g.I(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}};
  12726. g.Q.r1O=function(d,q){var T=this,Y=Tj(this),e=JZ(this,Y);this.api.OD().po||(Y.position>this.qC+2?this.zq&&(this.yv.src=this.zq):Y.position<this.qC-2?this.pC&&(this.yv.src=this.pC):this.rO&&(this.yv.src=this.rO),setTimeout(function(){var b=g.lY(T.element).x||0;T.qC=d-b},150));
  12727. this.api.seekTo(e,!1,void 0,void 0,7);var U;oW(this)&&((U=this.U)==null?0:U.z2)&&(Sg(this.U,e),this.U.isEnabled||(Y=F3(this),this.Fw=g.Cn(this.Y1-q-10,0,Y),nFj(this,this.Fw)))};
  12728. g.Q.QS=function(){this.tooltip.La()};
  12729. g.Q.ZO=function(){this.IN||(this.updateValue("clipstarticon",yBf()),this.updateValue("clipendicon",yBf()),g.d9(this.element,"ytp-clip-hover"))};
  12730. g.Q.BY=function(){this.IN||(this.updateValue("clipstarticon",HWN()),this.updateValue("clipendicon",hTj()),g.TR(this.element,"ytp-clip-hover"))};
  12731. g.Q.v0=function(){this.clipStart=0;this.clipEnd=Infinity;$n(this);br(this,this.lr,this.fn)};
  12732. g.Q.OjF=function(d){d=g.E(d);for(var q=d.next();!q.done;q=d.next())if(q=q.value,q.visible){var T=q.getId();if(!this.qk[T]){var Y=g.FE("DIV");q.tooltip&&Y.setAttribute("data-tooltip",q.tooltip);this.qk[T]=q;this.Ln[T]=Y;g.o1(Y,q.style);MmQ(this,T);this.api.C().N("disable_ad_markers_on_content_progress_bar")||this.G[0].T.appendChild(Y)}}else O_I(this,q)};
  12733. g.Q.Q6Z=function(d){d=g.E(d);for(var q=d.next();!q.done;q=d.next())O_I(this,q.value)};
  12734. g.Q.RI=function(d){this.U&&(this.U.onExit(d!=null),xn(this))};
  12735. g.Q.dG=function(d){this.U&&(this.U.play(d!=null),xn(this))};
  12736. g.Q.cEO=function(){r2_(this,this.api.Oc())};
  12737. g.Q.ir=function(){r2_(this,!1);g.Ji.prototype.ir.call(this)};g.M(yW,g.f);yW.prototype.isActive=function(){return!!this.J.getOption("remote","casting")};
  12738. yW.prototype.S5=function(){var d=!1;this.J.getOptions().includes("remote")&&(d=this.J.getOption("remote","receivers").length>1);this.OM(d&&this.J.OD().getPlayerSize().width>=400);this.J.logVisibility(this.element,this.PF);var q=1;d&&this.isActive()&&(q=2);if(this.G!==q){this.G=q;d=this.J.N("delhi_modern_web_player_icons");switch(q){case 1:this.updateValue("icon",d?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V8C1.68 8.00 2.34 8.05 3 8.15V5H21V19H13.84C13.94 19.65 13.99 20.31 14 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z",
  12739. fill:"white"}}]}:{Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{Y:"path",Kn:!0,Z:{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",fill:"#fff"}}]});break;case 2:this.updateValue("icon",
  12740. d?{Y:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{Y:"path",Z:{d:"M21.20 3.01C21.69 3.06 22.15 3.29 22.48 3.65C22.81 4.02 23.00 4.50 23 5V19L22.99 19.20C22.94 19.66 22.73 20.08 22.41 20.41C22.08 20.73 21.66 20.94 21.20 20.98L21 21H14C13.99 20.31 13.94 19.65 13.84 19H21V5H3V8.15C2.34 8.05 1.68 8.00 1 8V5C0.99 4.50 1.18 4.02 1.51 3.65C1.84 3.29 2.30 3.06 2.79 3.01L3 3H21L21.20 3.01ZM19 17V7H5V8.62C6.95 9.26 8.73 10.35 10.19 11.80C11.64 13.26 12.73 15.04 13.37 17H19ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z",
  12741. fill:"white"}}]}:g.xs1())}g.ep(this.element,"ytp-remote-button-active",this.isActive())}};
  12742. yW.prototype.U=function(){if(this.J.getOption("remote","quickCast"))this.J.setOption("remote","quickCast",!0);else{var d=this.TG,q=this.element;if(d.vR())d.bF();else{d.initialize();a:{var T=g.E(d.ws.items);for(var Y=T.next();!Y.done;Y=T.next())if(Y=Y.value,Y.priority===1){T=Y;break a}T=null}T&&(T.open(),d.St(q));d.St(q)}}this.J.logClick(this.element)};g.M(hZ,g.f);hZ.prototype.G=function(d){var q=this.J.C(),T=400;this.J.N("web_player_small_hbp_settings_menu")&&q.X?T=300:q.L&&(T=200);d=this.U&&d.width>=T;this.OM(d);this.J.N("embeds_use_parent_visibility_in_ve_logging")?this.J.logVisibility(this.element,d&&this.S):this.J.logVisibility(this.element,d)};
  12743. hZ.prototype.j=function(){if(this.TG.PF)this.TG.bF();else{var d=g.La(this.J.M5());d&&!d.loaded&&(d.Vg("tracklist",{includeAsr:!0}).length||d.load());this.J.logClick(this.element);this.TG.St(this.element)}};
  12744. hZ.prototype.updateBadge=function(){var d=this.J.isHdr(),q=this.J.getPresentingPlayerType(),T=q!==2&&q!==3,Y=g.vU(this.J),e=T&&!!g.lH(this.J.M5());q=e&&Y.displayMode===1;Y=e&&Y.displayMode===2;T=(e=q||Y)||!T?null:this.J.getPlaybackQuality();g.ep(this.element,"ytp-hdr-quality-badge",d);g.ep(this.element,"ytp-hd-quality-badge",!d&&(T==="hd1080"||T==="hd1440"));g.ep(this.element,"ytp-4k-quality-badge",!d&&T==="hd2160");g.ep(this.element,"ytp-5k-quality-badge",!d&&T==="hd2880");g.ep(this.element,"ytp-8k-quality-badge",
  12745. !d&&T==="highres");g.ep(this.element,"ytp-3d-badge-grey",!d&&e&&q);g.ep(this.element,"ytp-3d-badge",!d&&e&&Y)};g.M(HF,jq);HF.prototype.isLoaded=function(){var d=g.Df(this.J.M5());return d!==void 0&&d.loaded};
  12746. HF.prototype.S5=function(){g.Df(this.J.M5())!==void 0&&this.J.getPresentingPlayerType()!==3?this.G||(this.TG.rk(this),this.G=!0):this.G&&(this.TG.e$(this),this.G=!1);az(this,this.isLoaded())};
  12747. HF.prototype.onSelect=function(d){this.isLoaded();d?this.J.loadModule("annotations_module"):this.J.unloadModule("annotations_module");this.J.publish("annotationvisibility",d)};
  12748. HF.prototype.ir=function(){this.G&&this.TG.e$(this);jq.prototype.ir.call(this)};g.M(QW,g.uf);QW.prototype.S5=function(){var d=this.J.getAvailableAudioTracks();d.length>1?(this.MF(g.yC(d,this.G)),this.tracks=g.lQ(d,this.G,this),this.countLabel.A1(d.length?" ("+d.length+")":""),this.publish("size-change"),this.kL(this.G(this.J.getAudioTrack())),this.enable(!0)):this.enable(!1)};
  12749. QW.prototype.GS=function(d){g.uf.prototype.GS.call(this,d);this.J.setAudioTrack(this.tracks[d]);this.TG.l1()};
  12750. QW.prototype.G=function(d){return d.toString()};g.M(MN,jq);
  12751. MN.prototype.U=function(){var d=this.J.getPresentingPlayerType();if(d!==2&&d!==3&&g.V2(this.J))this.G||(this.TG.rk(this),this.G=!0,this.j.push(this.W(this.J,"videodatachange",this.U)),this.j.push(this.W(this.J,"videoplayerreset",this.U)),this.j.push(this.W(this.J,"onPlaylistUpdate",this.U)),this.j.push(this.W(this.J,"autonavchange",this.T)),d=this.J.getVideoData(),this.T(d.autonavState),this.J.logVisibility(this.element,this.G));else if(this.G){this.TG.e$(this);this.G=!1;d=g.E(this.j);for(var q=d.next();!q.done;q=
  12752. d.next())this.t1(q.value)}};
  12753. MN.prototype.T=function(d){az(this,d!==1)};
  12754. MN.prototype.onSelect=function(d){this.J.Eh(d?2:1);this.G&&(this.J.logVisibility(this.element,this.G),this.J.logClick(this.element))};
  12755. MN.prototype.ir=function(){this.G&&this.TG.e$(this);jq.prototype.ir.call(this)};g.M(ByY,g.gR);ByY.prototype.onClick=function(d){d.preventDefault();var q,T;(q=g.KV(this.J))==null||(T=q.dB())==null||T.bF();var Y,e;(Y=g.KV(this.J))==null||(e=Y.UY())==null||e.St(d.target)};g.M(Ks7,g.uf);g.Q=Ks7.prototype;
  12756. g.Q.DD=function(){var d=this.J.getPresentingPlayerType();if(d!==2&&d!==3){this.yv=this.J.N4();var q=this.J.getAvailableQualityLevels();if(this.G){this.T={};d=g.OF(this.J,"getAvailableQualityData",[]);d=g.E(d);for(var T=d.next();!T.done;T=d.next())T=T.value,this.T[T.qualityLabel]=T;d=Object.keys(this.T);q[q.length-1]==="auto"&&d.push("auto");this.rO=new Set(q)}else if(this.X){T=g.OF(this.J,"getAvailableQualityData",[]);d=[];T=g.E(T);for(var Y=T.next();!Y.done;Y=T.next())Y=Y.value,this.K[Y.quality]=
  12757. Y,Y.quality&&d.push(Y.quality);q[q.length-1]==="auto"&&d.push("auto")}else d=q;g.tNf(this.J)&&this.J.xk()&&d.unshift("missing-qualities");q=this.J.app.Lf();T=q.getVideoData();if(!T.U||!T.U.video||T.U.video.qualityOrdinal<1080||T.Dd)q=!1;else{Y=/^qsa/.test(T.clientPlaybackNonce);var e="r";T.U.id.indexOf(";")>=0&&(Y=/^[a-p]/.test(T.clientPlaybackNonce),e="x");Y?(q.oU("iqss",{trigger:e},!0),q=!0):q=!1}q&&d.unshift("inline-survey");this.MF(d);q=this.J.getVideoData().cotn?!0:!1;T=this.UD.YL();T=!g.cT(this.J.C())||
  12758. !(q===void 0?0:q)||!(T===void 0||T);q=this.U;T=T===void 0?!1:T;q.V0&&g.ep(q.Qv("ytp-panel-footer"),"ytp-panel-hide-footer",T===void 0?!1:T);if(d.length){this.EB();this.enable(!0);return}}this.enable(!1)};
  12759. g.Q.EB=function(){if(this.G){var d=this.J.getPreferredQuality();this.rO.has(d)&&(this.L=this.J.getPlaybackQuality(),this.lr=this.J.getPlaybackQualityLabel(),d==="auto"?(this.kL(d),this.A1(this.Qi(d))):this.kL(this.lr))}else d=this.J.getPreferredQuality(),this.options[d]&&(this.L=this.J.getPlaybackQuality(),this.kL(d),d==="auto"&&this.A1(this.Qi(d)))};
  12760. g.Q.GS=function(d){if(d!=="missing-qualities"){g.uf.prototype.GS.call(this,d);var q=this.G?this.T[d]:this.K[d];var T=q==null?void 0:q.quality,Y=q==null?void 0:q.formatId,e=q==null?void 0:q.paygatedQualityDetails;q=e==null?void 0:e.endpoint;if(e){var U;e=(U=this.options[d])==null?void 0:U.element;this.J.logClick(e)}if(this.G){var b,J;if((b=g.D(q,g.tvE))==null?0:(J=b.popup)==null?0:J.notificationActionRenderer)this.J.gO("innertubeCommand",q);else if(q){this.J.gO("innertubeCommand",q);return}Y?this.J.setPlaybackQuality(T,
  12761. Y):this.J.setPlaybackQuality(T)}else{if(this.X){var F,N;if((F=g.D(q,g.tvE))==null?0:(N=F.popup)==null?0:N.notificationActionRenderer)this.J.gO("innertubeCommand",q);else if(q){this.J.gO("innertubeCommand",q);return}}this.J.setPlaybackQuality(d)}this.TG.bF();this.DD()}};
  12762. g.Q.open=function(){for(var d=g.E(Object.values(this.options)),q=d.next();!q.done;q=d.next()){q=q.value;var T=void 0;this.J.hasVe((T=q)==null?void 0:T.element)&&(T=void 0,this.J.logVisibility((T=q)==null?void 0:T.element,!0))}g.uf.prototype.open.call(this);this.J.logClick(this.element)};
  12763. g.Q.Q9=function(d,q,T){var Y=this;if(d==="missing-qualities")return new g.gR({Y:"a",hF:["ytp-menuitem"],Z:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.J.C().K,tabindex:"0",role:"menuitemradio"},V:[{Y:"div",hF:["ytp-menuitem-label"],j5:"{{label}}"}]},q,this.Qi(d));if(d!=="inline-survey"){var e,U=(e=this.G?this.T[d]:this.K[d])==null?void 0:e.paygatedQualityDetails;e=U==null?void 0:U.veType;U=U==null?void 0:U.trackingParams;q=g.uf.prototype.Q9.call(this,d,q,T);U?(this.J.createServerVe(q.element,
  12764. this,!0),this.J.setTrackingParams(q.element,U)):e&&this.J.createClientVe(q.element,this,e,!0);return q}d=[{Y:"span",j5:"\u6ee1\u610f\u5417\uff1f"}];T=g.E([!0,!1]);U=T.next();for(e={};!U.done;e={DH:void 0},U=T.next())e.DH=U.value,U=new g.f({Y:"span",D:"ytp-menuitem-inline-survey-response",V:[e.DH?AB7():MXj()],Z:{tabindex:"0",role:"button"}}),U.listen("click",function(b){return function(){var J=Y.J.app.Lf();J.oU("iqsr",{tu:b.DH});J.getVideoData().Dd=!0;Y.TG.bF();Y.DD()}}(e)),d.push(U);
  12765. return new g.gR({Y:"div",D:"ytp-menuitem",Z:{"aria-disabled":"true"},V:[{Y:"div",hF:["ytp-menuitem-label"],V:d}]},q)};
  12766. g.Q.Qi=function(d,q){q=q===void 0?!1:q;if(d==="missing-qualities")return{Y:"div",j5:"\u7f3a\u5c11\u9009\u9879\uff1f"};if(d==="inline-survey")return"";var T=this.X||this.G?[k9Y(this,d,q,!1)]:[Ls1(this,d)];var Y=this.J.getPreferredQuality();q||Y!=="auto"||d!=="auto"||(T.push(" "),this.G?T.push(k9Y(this,this.lr,q,!0,["ytp-menu-label-secondary"])):this.X?T.push(k9Y(this,this.L,q,!0,["ytp-menu-label-secondary"])):T.push(Ls1(this,this.L,["ytp-menu-label-secondary"])));return{Y:"div",V:T}};g.M(cF,DI);cF.prototype.j=function(){DI.prototype.j.call(this);this.K&&PX6(this)};
  12767. cF.prototype.rO=function(){this.lr()};
  12768. cF.prototype.yv=function(){this.J.setPlaybackRate(this.G,!0)};
  12769. cF.prototype.L=function(d){DI.prototype.L.call(this,d);this.lr();PX6(this);d.preventDefault()};g.M(Ek,g.f);g.Q=Ek.prototype;g.Q.init=function(){this.YU(this.G);this.updateValue("minvalue",this.U);this.updateValue("maxvalue",this.j)};
  12770. g.Q.fK=function(d){if(!d.defaultPrevented){switch(d.keyCode){case 37:case 40:var q=-this.B;break;case 39:case 38:q=this.B;break;default:return}this.YU(this.G+q);d.preventDefault()}};
  12771. g.Q.Pb=function(d){var q=this.G;q+=(d.deltaX||-d.deltaY)<0?-this.K:this.K;this.YU(q);d.preventDefault()};
  12772. g.Q.GQ=function(d){d=(d-g.lY(this.T).x)/this.lr*this.range+this.U;this.YU(d)};
  12773. g.Q.YU=function(d,q){q=q===void 0?"":q;d=g.Cn(d,this.U,this.j);q===""&&(q=d.toString());this.updateValue("valuenow",d);this.updateValue("valuetext",q);this.UD.style.left=(d-this.U)/this.range*(this.lr-this.z2)+"px";this.G=d};
  12774. g.Q.focus=function(){this.dO.focus()};g.M(jw,Ek);jw.prototype.yv=function(){this.J.setPlaybackRate(this.G,!0)};
  12775. jw.prototype.YU=function(d){Ek.prototype.YU.call(this,d,CX1(this,d).toString());this.X&&(Wsj(this),this.rO())};
  12776. jw.prototype.updateValues=function(){var d=this.J.getPlaybackRate();CX1(this,this.G)!==d&&(this.YU(d),Wsj(this))};g.M(uBY,g.Ji);uBY.prototype.focus=function(){this.G.focus()};g.M(D2g,nc);g.M(wwj,g.uf);g.Q=wwj.prototype;g.Q.Qi=function(d){return d==="1"?"\u6b63\u5e38":d.toLocaleString()};
  12777. g.Q.S5=function(){var d,q=(d=this.J.getVideoData())==null?void 0:d.y5();d=this.J.getPresentingPlayerType(q);this.enable(d!==2&&d!==3);i_7(this)};
  12778. g.Q.MF=function(d){g.uf.prototype.MF.call(this,d);this.L&&this.L.U.focus()};
  12779. g.Q.Ps=function(d){g.uf.prototype.Ps.call(this,d);d?(this.lr=this.W(this.J,"onPlaybackRateChange",this.onPlaybackRateChange),i_7(this),fR2(this,this.J.getPlaybackRate())):(this.t1(this.lr),this.lr=null)};
  12780. g.Q.onPlaybackRateChange=function(d){var q=this.J.getPlaybackRate();!this.T&&this.K.includes(q)||zwn(this,q);fR2(this,d)};
  12781. g.Q.Q9=function(d,q,T){return d===this.G&&IRX(this.J)?g.uf.prototype.Q9.call(this,d,q,T,{Y:"div",D:"ytp-speed-slider-menu-footer",V:[this.L]}):g.uf.prototype.Q9.call(this,d,q,T)};
  12782. g.Q.GS=function(d){g.uf.prototype.GS.call(this,d);d===this.G?this.J.setPlaybackRate(this.X,!0):this.J.setPlaybackRate(Number(d),!0);IRX(this.J)&&d===this.G||this.TG.l1()};
  12783. g.Q.ud=function(d){var q=d===this.G;this.T=!1;q&&ak(this.J)&&!IRX(this.J)?(d=new D2g(this.J),g.Kc(this.TG,d)):g.uf.prototype.ud.call(this,d)};g.M(ShD,g.uf);g.Q=ShD.prototype;g.Q.kL=function(d){g.uf.prototype.kL.call(this,d)};
  12784. g.Q.eG=function(d){return d.option.toString()};
  12785. g.Q.getOption=function(d){return this.settings[d]};
  12786. g.Q.Qi=function(d){return this.getOption(d).text||""};
  12787. g.Q.GS=function(d){g.uf.prototype.GS.call(this,d);this.publish("settingChange",this.setting,this.settings[d].option)};g.M(pA,g.rF);pA.prototype.dH=function(d){for(var q=g.E(Object.keys(d)),T=q.next();!T.done;T=q.next()){var Y=T.value;if(T=this.py[Y]){var e=d[Y].toString();Y=!!d[Y+"Override"];T.options[e]&&(T.kL(e),T.T.element.setAttribute("aria-checked",String(!Y)),T.G.element.setAttribute("aria-checked",String(Y)))}}};
  12788. pA.prototype.Lq=function(d,q){this.publish("settingChange",d,q)};g.M(Zk,g.uf);Zk.prototype.G=function(d){return d.languageCode};
  12789. Zk.prototype.Qi=function(d){return this.languages[d].languageName||""};
  12790. Zk.prototype.GS=function(d){this.publish("select",d);this.J.logClick(this.element);g.GQ(this.TG)};g.M(oFg,g.uf);g.Q=oFg.prototype;g.Q.Ag=function(d){return g.FV(d)?"__off__":d.displayName};
  12791. g.Q.Qi=function(d){return d==="__off__"?"\u5173\u95ed":d==="__translate__"?"\u81ea\u52a8\u7ffb\u8bd1":d==="__contribute__"?"\u6dfb\u52a0\u5b57\u5e55":d==="__correction__"?"\u5efa\u8bae\u66f4\u6b63\u5b57\u5e55":(d==="__off__"?{}:this.tracks[d]).displayName};
  12792. g.Q.GS=function(d){if(d==="__translate__")this.G.open();else if(d==="__contribute__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var q=g.Ye(this.J.C(),this.J.getVideoData());g.u2(q)}else if(d==="__correction__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var T=VmN(this);Ok(this,T);g.uf.prototype.GS.call(this,this.Ag(T));var Y,e;T=(q=this.J.getVideoData().getPlayerResponse())==null?void 0:(Y=q.captions)==null?void 0:(e=Y.playerCaptionsTracklistRenderer)==
  12793. null?void 0:e.openTranscriptCommand;this.J.gO("innertubeCommand",T);this.TG.l1();this.T&&this.J.logClick(this.T)}else{if(d==="__correction__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();q=VmN(this);Ok(this,q);g.uf.prototype.GS.call(this,this.Ag(q));var U,b;q=(T=this.J.getVideoData().getPlayerResponse())==null?void 0:(U=T.captions)==null?void 0:(b=U.playerCaptionsTracklistRenderer)==null?void 0:b.openTranscriptCommand;this.J.gO("innertubeCommand",q)}else this.J.logClick(this.element),
  12794. Ok(this,d==="__off__"?{}:this.tracks[d]),g.uf.prototype.GS.call(this,d);this.TG.l1()}};
  12795. g.Q.S5=function(){var d=this.J.getOptions();d=d&&d.indexOf("captions")!==-1;var q=this.J.getVideoData(),T=q&&q.IK,Y,e=!((Y=this.J.getVideoData())==null||!g.y2(Y));Y={};if(d||T){var U;if(d){var b=this.J.getOption("captions","track");Y=this.J.getOption("captions","tracklist",{includeAsr:!0});var J=e?[]:this.J.getOption("captions","translationLanguages");this.tracks=g.lQ(Y,this.Ag,this);e=g.yC(Y,this.Ag);var F,N;VmN(this)&&((U=q.getPlayerResponse())==null?0:(F=U.captions)==null?0:(N=F.playerCaptionsTracklistRenderer)==
  12796. null?0:N.openTranscriptCommand)&&e.push("__correction__");if(J.length&&!g.FV(b)){if((U=b.translationLanguage)&&U.languageName){var R=U.languageName;U=J.findIndex(function(x){return x.languageName===R});
  12797. rYI(J,U)}lRQ(this.G,J);e.push("__translate__")}U=this.Ag(b)}else this.tracks={},e=[],U="__off__";e.unshift("__off__");this.tracks.__off__={};T&&e.unshift("__contribute__");this.tracks[U]||(this.tracks[U]=b,e.push(U));this.MF(e);this.kL(U);b&&b.translationLanguage?this.G.kL(this.G.G(b.translationLanguage)):yZ1(this.G);d&&this.X.dH(this.J.getSubtitlesUserSettings());this.countLabel.A1(Y&&Y.length?" ("+Y.length+")":"");this.publish("size-change");this.J.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)};
  12798. g.Q.lf=function(d){var q=this.J.getOption("captions","track");q=g.x9(q);q.translationLanguage=this.G.languages[d];Ok(this,q)};
  12799. g.Q.Lq=function(d,q){if(d==="reset")this.J.resetSubtitlesUserSettings();else{var T={};T[d]=q;this.J.updateSubtitlesUserSettings(T)}vFn(this,!0);this.L.start();this.X.dH(this.J.getSubtitlesUserSettings())};
  12800. g.Q.C$D=function(d){d||g.I1(this.L)};
  12801. g.Q.ir=function(){g.I1(this.L);g.uf.prototype.ir.call(this)};
  12802. g.Q.open=function(){g.uf.prototype.open.call(this);this.options.__correction__&&!this.T&&(this.T=this.options.__correction__.element,this.J.createClientVe(this.T,this,167341),this.J.logVisibility(this.T,!0))};g.M(dD7,g.B$);g.Q=dD7.prototype;
  12803. g.Q.initialize=function(){if(!this.isInitialized){var d=this.J.C();this.isInitialized=!0;try{this.PT=new Ks7(this.J,this)}catch(T){g.OL(Error("QualityMenuItem creation failed"))}g.C(this,this.PT);var q=new oFg(this.J,this);g.C(this,q);d.j||(q=new HF(this.J,this),g.C(this,q));d.enableSpeedOptions&&(q=new wwj(this.J,this),g.C(this,q));(g.dn(d)||d.X)&&(d.U||d.qk)&&(q=new ByY(this.J,this),g.C(this,q));d.zX&&!d.N("web_player_move_autonav_toggle")&&(d=new MN(this.J,this),g.C(this,d));d=new QW(this.J,this);
  12804. g.C(this,d);this.J.publish("settingsMenuInitialized");tmn(this.settingsButton,this.ws.G3())}};
  12805. g.Q.rk=function(d){this.initialize();this.ws.rk(d);tmn(this.settingsButton,this.ws.G3())};
  12806. g.Q.e$=function(d){this.PF&&this.ws.G3()<=1&&this.hide();this.ws.e$(d);tmn(this.settingsButton,this.ws.G3())};
  12807. g.Q.St=function(d){this.initialize();this.ws.G3()>0&&g.B$.prototype.St.call(this,d)};
  12808. g.Q.bF=function(){this.P0?this.P0=!1:g.B$.prototype.bF.call(this)};
  12809. g.Q.show=function(){g.B$.prototype.show.call(this);g.d9(this.J.getRootNode(),"ytp-settings-shown")};
  12810. g.Q.hide=function(){g.B$.prototype.hide.call(this);g.TR(this.J.getRootNode(),"ytp-settings-shown")};
  12811. g.Q.nz=function(d){this.J.logVisibility(this.element,d);this.J.publish("settingsMenuVisibilityChanged",d)};g.M(YZX,g.f);g.Q=YZX.prototype;g.Q.onClick=function(){if(nA(this)&&(this.J.toggleSubtitles(),this.J.logClick(this.element),!this.isEnabled())){var d=!1,q=g.Gy(g.KW(),65);g.cT(this.J.C())&&q!=null&&(d=!q);d&&this.J.C().N("web_player_nitrate_promo_tooltip")&&this.J.publish("showpromotooltip",this.element)}};
  12812. g.Q.ymk=function(d){var q,T;(q=g.KV(this.J))==null||(T=q.dB())==null||T.St(d)};
  12813. g.Q.isEnabled=function(){var d=this.J.getOption("captions","track");return!(!d||!d.displayName)};
  12814. g.Q.S5=function(){var d=nA(this),q=300;this.J.C().L&&(q=480);this.J.N("delhi_modern_web_player_icons")&&this.updateValue("icon",T31(this));if(this.J.C().X){this.updateValue("title",g.wm(this.J,"\u5b57\u5e55","c"));this.update({"tooltip-title":g.wm(this.J,"\u5b57\u5e55","c")});this.update({"data-title-no-tooltip":"\u5b57\u5e55"});var T=d}else{if(d)(T=this.Qv("ytp-subtitles-button-icon"))==null||T.setAttribute("fill-opacity","1"),this.J.C().N("player_tooltip_data_title_killswitch")?this.updateValue("title",
  12815. g.wm(this.J,"\u5b57\u5e55","c")):this.update({"tooltip-title":g.wm(this.J,"\u5b57\u5e55","c")}),this.update({"data-title-no-tooltip":"\u5b57\u5e55"});else{if(this.J.N("delhi_modern_web_player_icons")){var Y;(Y=this.Qv("ytp-subtitles-button-icon"))==null||Y.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var e;(e=this.Qv("ytp-subtitles-button-icon"))==null||e.setAttribute("fill-opacity","0.3")}this.updateValue("title","\u65e0\u6cd5\u663e\u793a\u5b57\u5e55");this.update({"tooltip-title":"\u65e0\u6cd5\u663e\u793a\u5b57\u5e55"});
  12816. this.update({"data-title-no-tooltip":"\u65e0\u6cd5\u663e\u793a\u5b57\u5e55"})}T=!0}this.tooltip.U$();T=T&&this.J.OD().getPlayerSize().width>=q;this.OM(T);this.J.N("embeds_use_parent_visibility_in_ve_logging")?this.J.logVisibility(this.element,T&&this.S):this.J.logVisibility(this.element,T);d?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)};
  12817. g.Q.N5=function(d){g.f.prototype.N5.call(this,d);this.J.C().N("embeds_use_parent_visibility_in_ve_logging")&&this.J.logVisibility(this.element,this.PF&&d)};g.M(g.rl,g.f);g.Q=g.rl.prototype;g.Q.canShowCountdown=function(){return!BF(this)&&!tZ(this)};
  12818. g.Q.Yc=function(){var d=this.api.OD().getPlayerSize().width,q=this.K;this.api.C().L&&(q=400);q=d>=q&&(!tZ(this)||!g.I(this.api.getPlayerStateObject(),64));this.OM(q);g.ep(this.element,"ytp-time-display-allow-autohide",q&&d<400);d=this.api.getProgressState();if(q){var T=this.api.getPresentingPlayerType();q=this.api.getCurrentTime(T,!1);this.U&&(q-=d.airingStart);BF(this)&&(q-=this.IN.startTimeMs/1E3);this.canShowCountdown()&&this.j&&(q-=this.api.getDuration(T,!1));var Y=g.MY(q);this.T!==Y&&(this.updateValue("currenttime",
  12819. Y),this.T=Y);T=BF(this)?(this.IN.endTimeMs-this.IN.startTimeMs)/1E3:this.api.getDuration(T,!1);Y=g.MY(T);this.X!==Y&&(this.updateValue("duration",Y),this.X=Y,q&&(q=g.bO("$PLAY_PROGRESS/$DURATION",{PLAY_PROGRESS:g.MY(q,!0),DURATION:g.MY(T,!0)}),this.updateValue("timeDisplayAriaLabel",q)))}e_6(this,d.isAtLiveHead);UD2(this,this.api.getLoopRange())};
  12820. g.Q.onLoopRangeChange=function(d){var q=this.IN!==d;this.IN=d;q&&(this.Yc(),bQH(this))};
  12821. g.Q.Imk=function(){this.api.setLoopRange(null)};
  12822. g.Q.ZfD=function(){this.j=!this.j;this.Yc()};
  12823. g.Q.onVideoDataChange=function(d,q,T){this.updateVideoData((this.api.C().N("enable_topsoil_wta_for_halftime")||this.api.C().N("enable_topsoil_wta_for_halftime_live_infra"))&&T===2?this.api.getVideoData(1):q);this.Yc();bQH(this)};
  12824. g.Q.updateVideoData=function(d){this.cS=d.isLivePlayback&&!d.kx;this.U=Q2(d);this.isPremiere=d.isPremiere;g.ep(this.element,"ytp-live",tZ(this));this.api.N("delhi_modern_web_player")&&this.Qv("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())};
  12825. g.Q.onClick=function(d){d.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())};
  12826. g.Q.ir=function(){this.G&&this.G();g.f.prototype.ir.call(this)};g.M(J97,g.f);g.Q=J97.prototype;g.Q.xX=function(){var d=this.api.rU();this.j!==d&&(this.j=d,XCj(this,this.api.getVolume(),this.api.isMuted()))};
  12827. g.Q.nE=function(d){this.OM(d.width>=350)};
  12828. g.Q.jW=function(d){if(!d.defaultPrevented){var q=d.keyCode,T=null;q===37?T=this.volume-5:q===39?T=this.volume+5:q===36?T=0:q===35&&(T=100);T!==null&&(T=g.Cn(T,0,100),T===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(T)),d.preventDefault())}};
  12829. g.Q.Uf=function(d){var q=d.deltaX||-d.deltaY;d.deltaMode?this.api.setVolume(this.volume+(q<0?-10:10)):this.api.setVolume(this.volume+g.Cn(q/10,-10,10));d.preventDefault()};
  12830. g.Q.wGw=function(){KA(this,this.G,!0,this.U,this.api.qO());this.K=this.volume;this.api.isMuted()&&this.api.unMute()};
  12831. g.Q.oo=function(d){var q=this.j?78:52,T=this.j?18:12;d-=g.lY(this.B).x;this.api.setVolume(g.Cn((d-T/2)/(q-T),0,1)*100)};
  12832. g.Q.Kcw=function(){KA(this,this.G,!1,this.U,this.api.qO());this.volume===0&&(this.api.mute(),this.api.setVolume(this.K))};
  12833. g.Q.onVolumeChange=function(d){XCj(this,d.volume,d.muted)};
  12834. g.Q.f6=function(){KA(this,this.G,this.isDragging,this.U,this.api.qO())};
  12835. g.Q.ir=function(){g.f.prototype.ir.call(this);g.TR(this.L,"ytp-volume-slider-active")};g.M(Gj,g.f);
  12836. Gj.prototype.onVideoDataChange=function(){var d=this.api.C();this.gz();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).kc;this.OM(this.visible);this.api.logVisibility(this.element,this.visible&&this.S);if(this.visible){var q=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",q)}d.j&&(this.G&&(this.t1(this.G),this.G=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.d9(this.element,"no-link"));
  12837. q=this.api.C();d=this.api.getVideoData();var T="";q.j||(q=g.yv(q),q.indexOf("www.")===0&&(q=q.substring(4)),T=g.MC(d)?"\u5728 YouTube Music \u4e0a\u6b23\u8d4f":q==="youtube.com"?"\u5728 YouTube \u4e0a\u89c2\u770b":g.bO("\u5728 $WEBSITE \u4e0a\u89c2\u770b",{WEBSITE:q}));this.api.N("player_tooltip_data_title_killswitch")?this.updateValue("title",T):this.updateValue("tooltip-title",T)};
  12838. Gj.prototype.onClick=function(d){this.api.N("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var q=this.api.C(),T=this.api.getVideoUrl(!g.cG(d),!1,!0,!0);if(g.dn(q)){var Y={};g.dn(q)&&g.OF(this.api,"addEmbedsConversionTrackingParams",[Y]);T=g.y6(T,Y)}g.pR(T,this.api,d);this.api.N("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
  12839. Gj.prototype.gz=function(){var d={Y:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},V:[{Y:"path",Kn:!0,D:"ytp-svg-fill",Z:{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 "}}]},
  12840. q=28666,T=this.api.getVideoData();this.api.isEmbedsShortsMode()?d={Y:"svg",Z:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},V:[{Y:"path",Z:{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",
  12841. fill:"#fff"}}]}:g.MC(T)&&(d={Y:"svg",Z:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},V:[{Y:"path",Z:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{Y:"path",Z:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z",
  12842. fill:"white"}},{Y:"path",Z:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{Y:"path",Z:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{Y:"path",Z:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z",
  12843. fill:"white"}},{Y:"path",Z:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{Y:"path",Z:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z",
  12844. fill:"white"}},{Y:"path",Z:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{Y:"path",Z:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z",
  12845. fill:"white"}},{Y:"path",Z:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z",
  12846. fill:"white"}},{Y:"path",Z:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{Y:"path",Z:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z",
  12847. fill:"white"}}]},q=216163);g.MC(T)?g.d9(this.element,"ytp-youtube-music-button"):g.TR(this.element,"ytp-youtube-music-button");d.Z=Object.assign({},d.Z,{"aria-hidden":"true"});this.updateValue("logoSvg",d);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,q,!0)};
  12848. Gj.prototype.N5=function(d){g.f.prototype.N5.call(this,d);this.api.logVisibility(this.element,this.visible&&d)};g.M(g6D,g.aI);g.Q=g6D.prototype;g.Q.S$=function(){if(this.J.N("web_player_max_seekable_on_ended")||!g.I(this.J.getPlayerStateObject(),2))this.progressBar.Yc(),this.dO.Yc()};
  12849. g.Q.cE=function(){this.N8();this.QH.U?this.S$():this.progressBar.QS()};
  12850. g.Q.TQ=function(){this.S$();this.K.start()};
  12851. g.Q.N8=function(){var d;if(d=!this.J.C().U){d=this.progressBar;var q=2*g.Mi()*d.X,T=d.j;d=(T.G-T.U)*1E3/d.api.getPlaybackRate()/q<300}d=d&&this.J.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;q=!d;this.QH.U||(d=q=!1);q?this.yv||(this.yv=this.W(this.J,"progresssync",this.S$)):this.yv&&(this.t1(this.yv),this.yv=null);d?this.K.isActive()||this.K.start():this.K.stop()};
  12852. g.Q.gz=function(){var d=this.J.rU(),q=this.J.OD().getPlayerSize(),T=this.J.OD().po,Y=N3Q(this),e=R_n(this),U=Math.max(q.width-Y*2,100);if(this.fn!==q.width||this.wO!==d||this.J.N("web_player_rtr_ctrls")&&this.Tg!==T)this.fn=q.width,this.wO=d,this.Tg=T,this.U.element.style.width=e+"px",this.U.element.style.left=Y+"px",g.Z_Q(this.progressBar,Y,e,d),this.J.nH().Mt=e;T=this.T;U=Math.min(570*(d?1.5:1),U);d=Math.min(413*(d?1.5:1),Math.round((q.height-xDg(this))*.82));T.maxWidth=U;T.maxHeight=d;T.OJ();this.N8();
  12853. this.lF&&Fkf(this.kx,q.height)};
  12854. g.Q.onVideoDataChange=function(){var d=this.J.getVideoData();this.xx.style.background=d.kc?d.Co:"";this.UD&&QK_(this.UD,d.showSeekingControls);this.lr&&QK_(this.lr,d.showSeekingControls)};
  12855. g.Q.tA=function(){return this.U.element};g.M(y9N,O8);g.Q=y9N.prototype;g.Q.Lm=function(d){d.target!==this.dismissButton.element&&(this.onClickCommand&&this.J.gO("innertubeCommand",this.onClickCommand),this.aC())};
  12856. g.Q.aC=function(){this.enabled=!1;this.K.hide()};
  12857. g.Q.onVideoDataChange=function(d,q){d==="dataloaded"&&h__(this);d=[];var T,Y,e,U;if(q=(U=g.D((T=q.getWatchNextResponse())==null?void 0:(Y=T.playerOverlays)==null?void 0:(e=Y.playerOverlayRenderer)==null?void 0:e.suggestedActionsRenderer,bTI))==null?void 0:U.suggestedActions)for(T=g.E(q),Y=T.next();!Y.done;Y=T.next())(Y=g.D(Y.value,XBI))&&g.D(Y.trigger,UQx)&&d.push(Y);if(d.length!==0){T=[];d=g.E(d);for(Y=d.next();!Y.done;Y=d.next())if(Y=Y.value,e=g.D(Y.trigger,UQx))U=(U=Y.title)?g.gx(U):"View Chapters",
  12858. q=e.timeRangeStartMillis,e=e.timeRangeEndMillis,q!=null&&e!=null&&Y.tapCommand&&(T.push(new g.Ij(q,e,{priority:9,namespace:"suggested_action_button_visible",id:U})),this.suggestedActions[U]=Y.tapCommand);this.J.ES(T)}};
  12859. g.Q.Cy=function(){return this.enabled};
  12860. g.Q.nz=function(){this.enabled?this.RU.start():pc(this);this.kq()};
  12861. g.Q.ir=function(){h__(this);O8.prototype.ir.call(this)};var OQ={},PF=(OQ.CHANNEL_NAME="ytp-title-channel-name",OQ.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",OQ.LINK="ytp-title-link",OQ.SESSIONLINK="yt-uix-sessionlink",OQ.SUBTEXT="ytp-title-subtext",OQ.TEXT="ytp-title-text",OQ.TITLE="ytp-title",OQ);g.M(WF,g.f);WF.prototype.onClick=function(d){this.api.logClick(this.element);var q=this.api.C(),T=this.api.getVideoUrl(!g.cG(d),!1,!0);g.dn(q)&&(q={},g.OF(this.api,"addEmbedsConversionTrackingParams",[q]),T=g.y6(T,q));g.pR(T,this.api,d)};
  12862. WF.prototype.S5=function(){var d=this.api.getVideoData(),q=this.api.C();this.updateValue("title",d.title);var T={Y:"a",D:PF.CHANNEL_NAME,Z:{href:"{{channelLink}}",target:"_blank"},j5:"{{channelName}}"};this.api.C().j&&(T={Y:"span",D:PF.CHANNEL_NAME,j5:"{{channelName}}",Z:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",T);HQ6(this);this.api.getPresentingPlayerType()===2&&(T=this.api.getVideoData(),T.videoId&&T.isListed&&T.author&&T.wO&&T.profilePicture?(this.updateValue("channelLink",
  12863. T.wO),this.updateValue("channelName",T.author),this.updateValue("channelTitleFocusable","0")):HQ6(this));T=q.externalFullscreen||!this.api.isFullscreen()&&q.Vt;g.ep(this.link,PF.FULLERSCREEN_LINK,T);q.UD||!d.videoId||T||d.kc||q.j?this.G&&(this.updateValue("url",null),this.t1(this.G),this.G=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.G||(this.G=this.W(this.link,"click",this.onClick)));q.j&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.dn(q)?d.expandedTitle:
  12864. d.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.M(g.CA,g.f);g.Q=g.CA.prototype;g.Q.setEnabled=function(d){if(this.type!=null)if(d)switch(this.type){case 3:case 2:ur(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.L=d};
  12865. g.Q.MS=function(d,q,T,Y,e,U,b,J){if(!this.rO||this.env.L){this.type===3&&this.QS();this.type!==1&&(g.o1(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.L&&this.fade.show(),this.U&&this.U.dispose(),(this.U=this.api.TN())&&this.U.subscribe("l",this.Ke,this));if(J){var F=g.Vp(this.bg).height||141;this.z2.style.bottom=F+2+"px"}else this.z2.style.display="none";this.env.N("delhi_modern_web_player")?(this.update({pillTimeStamp:T,pillTitle:U!=null?U:"",eduText:J!=null?J:""}),g.d9(this.element,"ytp-tooltip-progress-bar-style")):
  12866. (this.update({text:T,title:U!=null?U:"",eduText:J!=null?J:""}),g.ep(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!U));this.api.isInline()&&g.d9(this.bottomText,"ytp-modern-tooltip-text");g.ep(this.element,"ytp-text-detail",!!Y);T=-1;this.U&&(T=Jw(this.U,243*this.scale),this.env.N("web_l3_storyboard")&&this.U.levels.length===4&&(T=this.U.levels.length-1),T=eyf(this.U,T,q));E6Y(this,T);if(b)switch(q=g.Vp(this.element).width,b){case 1:this.title.style.right="0";this.title.style.textAlign=
  12867. "left";break;case 2:this.title.style.right=q+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=q/2+"px",this.title.style.textAlign="center"}c9n(this,!!Y,d,e)}};
  12868. g.Q.La=function(){this.type===1&&this.QS()};
  12869. g.Q.lK=function(d,q){if(this.type)if(this.type===3)this.QS();else return;Qt7(this,d,3,q)};
  12870. g.Q.U$=function(){this.G&&!this.B&&(this.env.N("player_tooltip_data_title_killswitch")?this.G.hasAttribute("title")&&(this.j=this.G.getAttribute("title")||"",this.G.removeAttribute("title"),this.L&&ur(this)):this.G.hasAttribute("data-tooltip-title")&&(this.j=this.G.getAttribute("data-tooltip-title")||"",this.G.removeAttribute("data-tooltip-title"),this.L&&ur(this)))};
  12871. g.Q.Ke=function(d,q){d<=this.T&&this.T<=q&&(d=this.T,this.T=NaN,E6Y(this,d))};
  12872. g.Q.nV=function(){TNQ(this.U,this.T,243*this.scale)};
  12873. g.Q.QS=function(){switch(this.type){case 2:var d=this.G;d.removeEventListener("mouseout",this.K);d.addEventListener("mouseover",this.X);d.removeEventListener("blur",this.K);d.addEventListener("focus",this.X);jtH(this);break;case 3:jtH(this);break;case 1:this.U&&(this.U.unsubscribe("l",this.Ke,this),this.U=null),this.api.removeEventListener("videoready",this.lr),this.UD.stop()}this.type=null;this.L&&this.fade.hide()};
  12874. g.Q.Jo=function(){if(this.G)for(var d=0;d<arguments.length;d++)g.HB(arguments[d],this.G)&&this.QS()};
  12875. g.Q.ir=function(){this.type!=null&&this.QS();this.U&&this.U.dispose();g.f.prototype.ir.call(this)};g.M(A9j,g.f);g.Q=A9j.prototype;g.Q.bq=function(){this.visible=pC7(this);this.OM(this.visible);this.icon&&OQQ(this,this.icon);this.J.logVisibility(this.element,this.visible&&this.S)};
  12876. g.Q.Sh=function(){return this.J.getVideoData().videoId};
  12877. g.Q.onClick=function(){this.J.logClick(this.element);var d=this.J.C(),q=this.Sh();d.yv?aHD(this):ZQN(this,q)};
  12878. g.Q.onReset=function(){this.isRequestPending=this.G=!1;this.S5(2);this.bq()};
  12879. g.Q.S5=function(d,q){var T=this.J.C();OQQ(this,d);q?this.J.N("player_tooltip_data_title_killswitch")?this.update({title:q,image:null}):this.update({"tooltip-title":q,image:null}):T.userDisplayName?(d={USER_NAME:T.userDisplayName},this.J.N("player_tooltip_data_title_killswitch")?this.update({title:this.G?g.bO("\u5df2\u6dfb\u52a0\u5230\u4ee5\u4e0b\u8d26\u53f7\uff1a$USER_NAME",d):g.bO("\u7a0d\u540e\u4ee5$USER_NAME\u7684\u8eab\u4efd\u89c2\u770b",d),image:Om(T)}):this.update({"tooltip-title":this.G?g.bO("\u5df2\u6dfb\u52a0\u5230\u4ee5\u4e0b\u8d26\u53f7\uff1a$USER_NAME",
  12880. d):g.bO("\u7a0d\u540e\u4ee5$USER_NAME\u7684\u8eab\u4efd\u89c2\u770b",d),image:Om(T)})):this.J.N("player_tooltip_data_title_killswitch")?this.update({title:"\u7a0d\u540e\u89c2\u770b",image:null}):this.update({"tooltip-title":"\u7a0d\u540e\u89c2\u770b",image:null});this.J.U$()};
  12881. g.Q.N5=function(d){g.f.prototype.N5.call(this,d);this.J.logVisibility(this.element,this.visible&&d)};g.M(n61,g.ql);g.Q=n61.prototype;
  12882. g.Q.init=function(){var d=this;this.Jm=new g.eg(this.api);this.api.N("web_player_delhi_dtts")?this.HZ=new ZI(this.api):this.HZ=new mk1(this.api);this.J0=new g.f({Y:"div",D:"ytp-chrome-top"});this.tooltip=new g.CA(this.api,this);this.channelAvatar=new ty2(this.api);this.title=new WF(this.api);this.al=new g.Ux({Y:"div",D:"ytp-chrome-top-buttons"});this.x9=new jPQ(this.api,this.J0.element);this.nj=this.api.C().controlsType==="1"?new g6D(this.api,this,this.QH):null;this.contextMenu=new weD(this.api,this.Jm);
  12883. this.o7=new g.f({Y:"div",Z:{tabindex:"0"}});this.UE=new g.f({Y:"div",Z:{tabindex:"0"}});var q=this.api.OD(),T=this.api.C(),Y=this.api.getVideoData();this.PW&&(g.d9(this.api.getRootNode(),"ytp-embed"),g.d9(this.api.getRootNode(),"ytp-embed-playlist"),this.q9&&(g.d9(this.api.getRootNode(),"ytp-embed-overlays-autohide"),g.d9(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.JV=60,this.RJ=89);this.api.C().j&&g.d9(this.api.getRootNode(),"ytp-embed-pfl");this.api.C().U&&(g.d9(this.api.getRootNode(),
  12884. "ytp-mobile"),this.api.C().L&&g.d9(this.api.getRootNode(),"ytp-embed-mobile"));Y&&Y.videoId&&(this.mV=Y&&Y.getEmbeddedPlayerResponse());g.C(this,this.Jm);g.o6(this.api,this.Jm.element,4);g.C(this,this.HZ);g.o6(this.api,this.HZ.element,4);Y=new g.f({Y:"div",D:"ytp-gradient-top"});g.C(this,Y);g.o6(this.api,Y.element,1);this.dY=new g.oh(Y,250,!0,100);g.C(this,this.dY);g.C(this,this.J0);g.o6(this.api,this.J0.element,1);this.Hp=new g.oh(this.J0,250,!0,100);g.C(this,this.Hp);g.C(this,this.tooltip);g.o6(this.api,
  12885. this.tooltip.element,4);var e=new KyI(this.api);g.C(this,e);g.o6(this.api,e.element,5);e.subscribe("show",function(F){d.X4(e,F)});
  12886. this.sj.push(e);this.VW=new jg(this.api,e);g.C(this,this.VW);!this.PW&&(this.Fk&&this.api.N("delhi_modern_web_player")?this.Fk.A0(this.VW.element,2):this.VW.IU(this.J0.element));g.C(this,this.channelAvatar);this.channelAvatar.IU(this.J0.element);g.C(this,this.title);this.title.IU(this.J0.element);this.PW&&(Y=new gdN(this.api),g.C(this,Y),Y.IU(this.J0.element));g.C(this,this.al);this.Fk?(this.al.element.setAttribute("data-overlay-order","3"),this.Fk.A0(this.al.element,2)):this.al.IU(this.J0.element);
  12887. var U=new v0X(this.api,this);g.C(this,U);g.o6(this.api,U.element,5);U.subscribe("show",function(F){d.X4(U,F)});
  12888. this.sj.push(U);this.searchButton=new pq(this.api);g.C(this,this.searchButton);this.searchButton.IU(this.al.element);Y=this.api.C().getWebPlayerContextConfig();this.XU=new A9j(this.api);g.C(this,this.XU);(Y==null?0:Y.hideTopWatchNextButton)||this.XU.IU(this.al.element);this.shareButton=new Oa(this.api,this,U);g.C(this,this.shareButton);(Y==null?0:Y.hideTopShareButton)||this.shareButton.IU(this.al.element);this.copyLinkButton=new Fy(this.api,this);g.C(this,this.copyLinkButton);this.copyLinkButton.IU(this.al.element);
  12889. this.PW&&this.VW.IU(this.al.element);g.C(this,this.x9);this.x9.IU(this.al.element);T.tW&&(Y=new B9(this.api),g.C(this,Y),g.o6(this.api,Y.element,4));T.j||(Y=new ar_(this.api,this.x9),g.C(this,Y),Y.IU(this.al.element));this.ag=new n0_(this.api);g.C(this,this.ag);g.o6(this.api,this.ag.element,5);this.ag.subscribe("show",function(){d.X4(d.ag,d.ag.vR())});
  12890. this.sj.push(this.ag);this.overflowButton=new Ea(this.api,this.ag);g.C(this,this.overflowButton);this.overflowButton.IU(this.al.element);this.nj&&g.C(this,this.nj);T.controlsType==="3"&&(Y=new Ag(this.api),g.C(this,Y),g.o6(this.api,Y.element,9));g.C(this,this.contextMenu);this.contextMenu.subscribe("show",this.Tt,this);this.o7.listen("focus",this.E0,this);g.C(this,this.o7);this.UE.listen("focus",this.er,this);g.C(this,this.UE);var b;(this.yW=T.Gv?null:new pyN(this.api,q,this.contextMenu,this.QH,this.Jm,
  12891. this.HZ,function(){return d.LW()},(b=this.nj)==null?void 0:b.progressBar))&&g.C(this,this.yW);
  12892. this.PW||(this.Hm=new lr2(this.api),g.C(this,this.Hm),this.Fk?this.Fk.A0(this.Hm.element,3):g.o6(this.api,this.Hm.element,4),this.BT=new YQf(this.api),g.C(this,this.BT),this.Fk?this.Fk.A0(this.BT.element,3):g.o6(this.api,this.BT.element,4));this.QL=new y9N(this.api);g.C(this,this.QL);this.Fk?this.Fk.A0(this.QL.element,3):g.o6(this.api,this.QL.element,4);if(this.PW){var J=new RM7(this.api,this.api.C().qk);g.C(this,J);g.o6(this.api,J.element,5);J.subscribe("show",function(F){d.X4(J,F)});
  12893. q=new H8I(this.api,J);g.C(this,q);g.o6(this.api,q.element,4)}this.E2.push(this.Jm.element);this.W(this.api,"fullscreentoggled",this.xX);this.W(this.api,"offlineslatestatechange",function(){d.api.C1()&&fa(d.QH,128,!1)});
  12894. this.W(this.api,"cardstatechange",function(){d.TT()});
  12895. this.W(this.api,"resize",this.WZg);this.W(this.api,"videoplayerreset",this.onReset);this.W(this.api,"showpromotooltip",this.YMr);g.ql.prototype.init.call(this)};
  12896. g.Q.nH=function(){return this.tooltip};
  12897. g.Q.tD=function(){return this.nj};
  12898. g.Q.X4=function(d,q){q?this.FR=d:this.FR=null;this.TT()};
  12899. g.Q.V8=function(d,q){if(q)this.YI.push(d);else for(q=this.YI.length;q>=0;q--)if(this.YI[q]===d){this.YI.splice(q,1);break}fa(this.QH,64,this.YI.length>0)};
  12900. g.Q.EJ=function(){this.api.Tv()&&this.api.D7();return!!this.FR||r9j(this)||g.ql.prototype.EJ.call(this)};
  12901. g.Q.TT=function(){var d=!this.EJ(),q=d&&this.api.Tv()&&!g.I(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().kc&&!this.api.C().j&&!this.api.isEmbedsShortsMode(),T=this.PW&&g.m7(this.api)&&g.I(this.api.getPlayerStateObject(),128);d||T?(this.Hp.show(),this.dY.show()):(this.Hp.hide(),this.dY.hide(),this.api.Jo(this.J0.element));q?this.x9.St():this.x9.bF();this.nj&&FCH(this.nj,this.scv||!d);this.api.N("web_player_hide_overflow_button_if_empty_menu")&&tU1(this);g.ql.prototype.TT.call(this)};
  12902. g.Q.KZ=function(d,q,T,Y,e){d.style.left="";d.style.top="";d.style.bottom="";var U=g.Vp(d),b=Y||this.nj&&g.HB(this.nj.tA(),q),J=Y=null;T!=null&&b||(Y=g.Vp(q),J=g.vB(q,this.api.getRootNode()),T==null&&(T=J.x+Y.width/2));T-=U.width/2;b?(q=this.nj,Y=N3Q(q),J=R_n(q),b=this.api.OD().getPlayerSize().height,T=g.Cn(T,Y,Y+J-U.width),U=b-xDg(q)-U.height):g.HB(this.J0.element,q)?(q=this.api.OD().getPlayerSize().width,T=g.Cn(T,12,q-U.width-12),U=this.rU()?this.RJ:this.JV,this.api.C().playerStyle==="gvn"&&(U+=
  12903. 20),this.PW&&(U-=this.rU()?26:18)):(q=this.api.OD().getPlayerSize(),T=g.Cn(T,12,q.width-U.width-12),U=J.y>(q.height-Y.height)/2?J.y-U.height-12:J.y+Y.height+12);d.style.top=U+(e||0)+"px";d.style.left=T+"px"};
  12904. g.Q.cE=function(d){d&&(this.api.Jo(this.J0.element),this.nj&&this.api.Jo(this.nj.tA()));this.q9&&(g.ep(this.contextMenu.element,"ytp-autohide",d),g.ep(this.contextMenu.element,"ytp-autohide-active",!0));g.ql.prototype.cE.call(this,d)};
  12905. g.Q.Ob=function(){g.ql.prototype.Ob.call(this);this.q9&&(g.ep(this.contextMenu.element,"ytp-autohide-active",!1),this.q9&&(this.contextMenu.hide(),this.ag&&this.ag.hide()))};
  12906. g.Q.Xb=function(d,q){var T=this.api.OD().getPlayerSize();T=new g.WB(0,0,T.width,T.height);if(d||this.QH.U&&!this.EJ()){if(this.api.C().Y6||q)d=this.rU()?this.RJ:this.JV,T.top+=d,T.height-=d;this.nj&&(T.height-=xDg(this.nj))}return T};
  12907. g.Q.xX=function(d){var q=this.api.getRootNode();d?q.parentElement?(q.setAttribute("aria-label","\u5168\u5c4f\u6a21\u5f0f\u4e0b\u7684 YouTube \u89c6\u9891\u64ad\u653e\u5668"),this.api.C().externalFullscreen||(q.parentElement.insertBefore(this.o7.element,q),q.parentElement.insertBefore(this.UE.element,q.nextSibling))):g.Zz(Error("Player not in DOM.")):(q.setAttribute("aria-label","YouTube \u89c6\u9891\u64ad\u653e\u5668"),this.o7.detach(),this.UE.detach());this.gz();this.zB()};
  12908. g.Q.rU=function(){var d=this.api.C();return this.api.isFullscreen()&&!d.L||!1};
  12909. g.Q.showControls=function(d){this.DF=!d;this.TT()};
  12910. g.Q.gz=function(){var d=this.rU();this.tooltip.scale=d?1.5:1;this.contextMenu&&g.ep(this.contextMenu.element,"ytp-big-mode",d);this.TT();this.api.N("web_player_hide_overflow_button_if_empty_menu")||tU1(this);this.zB();var q=this.api.isEmbedsShortsMode();q&&d?(d=(this.api.OD().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Dv(this.J0.element,"padding-left",d+"px"),g.Dv(this.J0.element,"padding-right",d+"px")):q&&(g.Dv(this.J0.element,"padding-left",""),g.Dv(this.J0.element,"padding-right",
  12911. ""));g.ql.prototype.gz.call(this)};
  12912. g.Q.k8=function(){if(r9j(this)&&!g.m7(this.api))return!1;var d=this.api.getVideoData();return!g.dn(this.api.C())||this.api.getPresentingPlayerType()===2||!this.mV||((d=this.mV||d.mV)?(d=d.embedPreview)?(d=d.thumbnailPreviewRenderer,d=d.videoDetails&&g.D(d.videoDetails,Cv_)||null):d=null:d=null,d&&d.collapsedRenderer&&d.expandedRenderer)?g.ql.prototype.k8.call(this):!1};
  12913. g.Q.zB=function(){g.ql.prototype.zB.call(this);this.api.logVisibility(this.title.element,!!this.CS);this.VW&&this.VW.N5(!!this.CS);this.channelAvatar.N5(!!this.CS);this.overflowButton&&this.overflowButton.N5(this.Rl()&&!!this.CS);this.shareButton&&this.shareButton.N5(!this.Rl()&&!!this.CS);this.XU&&this.XU.N5(!this.Rl()&&!!this.CS);this.searchButton&&this.searchButton.N5(!this.Rl()&&!!this.CS);this.copyLinkButton&&this.copyLinkButton.N5(!this.Rl()&&!!this.CS);if(!this.CS){this.api.Jo(this.J0.element);
  12914. for(var d=0;d<this.sj.length;d++){var q=this.sj[d];q.vR()&&q.bF()}}};
  12915. g.Q.Vp=function(d){this.nj&&FCH(this.nj,this.EJ());this.TT();g.ql.prototype.Vp.call(this,d)};
  12916. g.Q.handleGlobalKeyDown=function(d,q,T,Y,e,U,b,J){return this.yW?this.yW.handleGlobalKeyDown(d,q,T,Y,e,U,b,J):!1};
  12917. g.Q.handleGlobalKeyUp=function(d,q,T,Y,e,U,b){return this.yW?this.yW.handleGlobalKeyUp(d,q,T,Y,e,U,b):!1};
  12918. g.Q.LW=function(){if(this.contextMenu.PF)return this.contextMenu.bF(),!0;if(this.YI.length)return this.YI[this.YI.length-1].bF(),!0;if(this.FR)return this.FR.bF(),!0;this.nj&&this.api.Jo(this.nj.tA());this.al&&this.api.Jo(this.al.element);return g.ql.prototype.LW.call(this)};
  12919. g.Q.n_=function(d,q){this.qA=q;this.V8(d,q);this.Tt()};
  12920. g.Q.Tt=function(){var d=this.qA||this.contextMenu.vR();this.oJ!==d&&(this.oJ=d,this.api.gO("onAutonavPauseRequest",this.oJ))};
  12921. g.Q.E0=function(){B3_(this,this.api.getRootNode(),!0).focus()};
  12922. g.Q.er=function(){B3_(this,this.api.getRootNode(),!1).focus()};
  12923. g.Q.dB=function(){return this.nj&&this.nj.T};
  12924. g.Q.oZ=function(){this.QH.oZ()};
  12925. g.Q.Nh=function(){this.Jm.hide()};
  12926. g.Q.fY=function(d){this.Jm.fY(!d.isOrWillBePlaying())};
  12927. g.Q.p5=function(d,q,T,Y){this.HZ.p5(d,q,T,Y)};
  12928. g.Q.renderChapterSeekingAnimation=function(d,q,T){this.HZ.qL(d,q,T)};
  12929. g.Q.WZg=function(){KCX(this,!0)};
  12930. g.Q.onReset=function(){tU1(this)};
  12931. g.Q.YMr=function(d){KCX(this,!1,d)};
  12932. g.Q.UY=function(){return this.contextMenu};
  12933. g.Q.j_=function(d,q){var T;if((T=this.nj)!=null){var Y=Number(d.element.getAttribute("data-priority"))||0,e=0,U=T.j.element;q&&T.J.N("delhi_modern_web_player")&&(U=T.j.Qv(LA[q]));q=g.E(U.children);for(T=q.next();!(T.done||Y<(Number(T.value.getAttribute("data-priority"))||0));T=q.next())e++;d.IU(U,e)}};
  12934. g.Q.RI=function(){var d,q=(d=this.nj)==null?void 0:d.progressBar;if(q){var T;((T=q.U)==null?0:T.isEnabled)&&q.RI()}};
  12935. g.Q.A0=function(d,q,T){var Y;(Y=this.Fk)==null||Y.A0(d,q,T)};g.M(g.Dk,g.na);g.Dk.prototype.Ux=function(){return!1};
  12936. g.Dk.prototype.create=function(){var d=this.player.C();g.KG(d)&&d.U||d.disableOrganicUi?this.chrome=new g.ql(this.player):this.chrome=new n61(this.player);g.C(this,this.chrome);this.chrome.init();this.player.Lz("ux")};
  12937. g.Dk.prototype.u1=function(){return this.chrome};var wl=[],Ox7=!1;g.M(fA,g.W);fA.prototype.L=function(){this.G!=null&&this.app.getVideoData()!==this.G&&hw(this.G)&&ThY(this.app,this.G,void 0,void 0,this.j)};
  12938. fA.prototype.X=function(){if(this.G!=null&&this.app.getVideoData()!==this.G&&this.U!=null&&this.T!=null&&this.S!=null&&hw(this.G)){var d=k42(this.U,this.T,this.S);d==null?ThY(this.app,this.G,void 0,void 0,this.j):(this.U.oU("sgap",d),this.U.getVideoData().L&&this.U.Lb(!1),this.app.C().N("html5_remove_loop_range_on_gapless_fallback")&&(ki(this.app,"gaplessshortslooprange"),this.app.setLoopRange(null)))}};
  12939. fA.prototype.B=function(d){var q=this.app.Lf();if(q){var T=this.app.getCurrentTime();Math.abs(T-d.end/1E3)>5&&q.oU("glrs",{cmt:T});q.seekTo(0,{seekSource:58});q.oU("glrre",{cmt:T})}};
  12940. fA.prototype.ir=function(){this.G=null;g.W.prototype.ir.call(this)};g.M(g.zj,he);g.Q=g.zj.prototype;g.Q.isView=function(){return!0};
  12941. g.Q.tX=function(){var d=this.mediaElement.getCurrentTime();if(d<this.start)try{var q=this.mediaElement.g1(),T=Vb(q,d);return!(this.start<T)}catch(Y){}return!1};
  12942. g.Q.NT=function(){return Yx(this.mediaElement.NT(),this.start,this.end)};
  12943. g.Q.g1=function(){return Yx(this.mediaElement.g1(),this.start,this.end)};
  12944. g.Q.kF=function(){return Yx(this.mediaElement.kF(),this.start,this.end)};
  12945. g.Q.getCurrentTime=function(){return this.mediaElement.getCurrentTime()-this.start};
  12946. g.Q.setCurrentTime=function(d){this.mediaElement.setCurrentTime(d+this.start)};
  12947. g.Q.getDuration=function(){return isFinite(this.end)&&!this.G?this.end-this.start:this.mediaElement.getDuration()-this.start};
  12948. g.Q.play=function(){if(this.tX()){this.mediaElement.getCurrentTime();try{this.mediaElement.setCurrentTime(this.start)}catch(d){}}return this.mediaElement.play()};
  12949. g.Q.BF=function(){var d=he.prototype.BF.call(this);d.view=this.start+"-"+this.end;return d};
  12950. g.Q.addEventListener=function(d,q){this.mediaElement.addEventListener(d,q)};
  12951. g.Q.removeEventListener=function(d,q){this.mediaElement.removeEventListener(d,q)};
  12952. g.Q.l_=function(){return this.mediaElement.l_()};
  12953. g.Q.activate=function(d){this.mediaElement.activate(d)};
  12954. g.Q.Eg=function(){return this.mediaElement.Eg()};
  12955. g.Q.playVideo=function(){return this.mediaElement.playVideo()};
  12956. g.Q.T6=function(){this.mediaElement.T6()};
  12957. g.Q.G6=function(){this.mediaElement.G6()};
  12958. g.Q.RK=function(){return this.mediaElement.RK()};
  12959. g.Q.tA=function(){return this.mediaElement.tA()};
  12960. g.Q.j0=function(){return this.mediaElement.j0()};
  12961. g.Q.Pp=function(d){this.mediaElement.Pp(d)};
  12962. g.Q.qZ=function(){this.mediaElement.qZ()};
  12963. g.Q.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
  12964. g.Q.setPlaybackRate=function(d){return this.mediaElement.setPlaybackRate(d)};
  12965. g.Q.AC=function(){return this.mediaElement.AC()};
  12966. g.Q.setLoop=function(d){this.mediaElement.setLoop(d)};
  12967. g.Q.canPlayType=function(d,q){return this.mediaElement.canPlayType(d,q)};
  12968. g.Q.isPaused=function(){return this.mediaElement.isPaused()};
  12969. g.Q.isSeeking=function(){return this.mediaElement.isSeeking()};
  12970. g.Q.isEnded=function(){return this.mediaElement.isEnded()};
  12971. g.Q.CB=function(){return this.mediaElement.CB()};
  12972. g.Q.J4=function(d){this.mediaElement.J4(d)};
  12973. g.Q.U1=function(){return this.mediaElement.U1()};
  12974. g.Q.load=function(){this.mediaElement.load()};
  12975. g.Q.pause=function(){this.mediaElement.pause()};
  12976. g.Q.Tr=function(){return this.mediaElement.Tr()};
  12977. g.Q.Va=function(){return this.mediaElement.Va()};
  12978. g.Q.nA=function(){return this.mediaElement.nA()};
  12979. g.Q.P4=function(){return this.mediaElement.P4()};
  12980. g.Q.getVideoPlaybackQuality=function(){return this.mediaElement.getVideoPlaybackQuality()};
  12981. g.Q.pA=function(){return this.mediaElement.pA()};
  12982. g.Q.Yp=function(){return this.mediaElement.Yp()};
  12983. g.Q.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
  12984. g.Q.eE=function(){return this.mediaElement.eE()};
  12985. g.Q.getSize=function(){return this.mediaElement.getSize()};
  12986. g.Q.setSize=function(d){this.mediaElement.setSize(d)};
  12987. g.Q.getVolume=function(){return this.mediaElement.getVolume()};
  12988. g.Q.setVolume=function(d){this.mediaElement.setVolume(d)};
  12989. g.Q.setAttribute=function(d,q){this.mediaElement.setAttribute(d,q)};
  12990. g.Q.removeAttribute=function(d){this.mediaElement.removeAttribute(d)};
  12991. g.Q.hasAttribute=function(d){return this.mediaElement.hasAttribute(d)};
  12992. g.Q.Yw=dI(60);g.Q.zi=dI(62);g.Q.pY=dI(64);g.Q.p9=dI(66);g.Q.Gf=function(){return this.mediaElement.Gf()};
  12993. g.Q.iG=function(d){this.mediaElement.iG(d)};
  12994. g.Q.X5=function(d){return this.mediaElement.X5(d)};
  12995. g.Q.wj=function(){return this.mediaElement.wj()};
  12996. g.Q.stopVideo=function(){this.mediaElement.stopVideo()};
  12997. g.Q.t_=function(d){this.mediaElement.t_(d)};
  12998. g.Q.audioTracks=function(){return this.mediaElement.audioTracks()};
  12999. g.Q.EV=function(d){this.mediaElement.EV(d)};g.M(CT6,g.W);g.Q=CT6.prototype;g.Q.getStatus=function(){return this.status};
  13000. g.Q.v1=function(){var d=this.G.getVideoData(),q=this.U.getVideoData(),T;if((T=d.j)&&!(T=!d.G)){T=d.G;for(var Y=!1,e=!1,U=g.E(Object.values(T.G)),b=U.next();!b.done;b=U.next())b=b.value,b.info.audio&&b.index.isLoaded()&&(Y=!0),b.info.video&&b.index.isLoaded()&&(e=!0);T.G["0"]&&(e=!0);T=Y&&e}if(T)if(this.G.WG()){U=LC6(this.policy,this.G,this.U,this.yP);b=ir(this);T=b.Xl;e=b.Iy;Y=b.vk;b=b.e3;if(!this.L){var J=this.U.tE()*1E3,F=this.G.tE();F=(Y-T-F)*1E3;U&&U.msg==="in-the-past"&&(F=0);d=d.isAd();this.U.Ly(J,
  13001. F,d);this.L=!0}U?(q="cannot_apply"+U.msg,delete U.msg,this.Kj(q,U)):this.status.status===2?iQ2(this):(d=this.G.Eg())&&NF(d)&&(!$x(d)&&g.WL()?this.Kj("mse_closed"):q.G&&WI(q.G)&&d.U&&!d.U.Wo()?this.Kj("encr_upgrade"):(q=this.G.WG(),q.isEnded()?this.Kj("elem_ended"):e<0?this.Kj("next_player_future"):(this.X=Y,this.currentVideoDuration=Y-T,this.j=fyD(d,T,Y,!0),this.T=fyD(d,e,b,!1),d=this.U.getVideoData().clientPlaybackNonce,this.G.oU("gaplessPrep",{cpn:d}),this.G.uY(this.j,!1,wCY(this),this.h1.C().N("html5_shorts_gapless_keep_pending_requests")&&
  13002. Zu(this.G.getVideoData())),this.G.setMediaElement(udg(q,T,Y,!this.G.getVideoData().isAd())),Ik(this,2),iQ2(this))))}else this.Kj("no-elem")};
  13003. g.Q.BV=function(d){var q=d===z_N(this).gg,T=q?this.j.G:this.j.U;q=q?this.T.G:this.T.U;if(T.isActive&&!q.isActive){var Y=this.X,e=this.h1.C().N("html5_gapless_disable_on_discontinuous_buffer")&&this.S!==0&&T.Zm().length>1;oI(d.Zm(),Y-.01)&&!e&&(Ik(this,4),T.isActive=!1,T.DZ=T.DZ||T.isActive,(this.S===1?this.G:this.U).oU("sbh",{}),q.isActive=!0,q.DZ=q.DZ||q.isActive,this.S!==0&&(this.G.getVideoData().pR=!0));d=this.T.U;if(this.T.G.isActive&&d.isActive&&(Ik(this,5),this.S!==0)){d=this.U.Ko();T=this.G.Ko();
  13004. this.G.oU("sbs",{citag:T==null?void 0:T.itag,nitag:d==null?void 0:d.itag});this.U.oU("gitags",{pitag:T==null?void 0:T.itag,citag:d==null?void 0:d.itag});var U;(U=this.U)==null||U.sU()}}};
  13005. g.Q.Pn=function(){this.GO()&&this.Kj("player-reload-after-handoff")};
  13006. g.Q.Kj=function(d,q){q=q===void 0?{}:q;if(!this.JF()&&this.status.status!==6){var T=this.status.status>=4&&d!=="player-reload-after-handoff";this.status={status:Infinity,error:d};if(this.G&&this.U){var Y=this.U.getVideoData().clientPlaybackNonce;this.G.jT(new g.xV("dai.transitionfailure",Object.assign(q,{cpn:Y,transitionTimeMs:this.yP,msg:d})));this.G.Lb(T)}this.l3.reject(d);this.dispose()}};
  13007. g.Q.GO=function(){return this.status.status>=4&&this.status.status<6};
  13008. g.Q.ir=function(){fH7(this);this.G.unsubscribe("newelementrequired",this.Pn,this);if(this.j){var d=this.j.U;this.j.G.KC.unsubscribe("updateend",this.BV,this);d.KC.unsubscribe("updateend",this.BV,this)}g.W.prototype.ir.call(this)};
  13009. g.Q.tH=function(d){g.gs(d,128)&&this.Kj("player-error-event")};g.M(mN,g.W);mN.prototype.clearQueue=function(d,q){d=d===void 0?!1:d;q=q===void 0?!1:q;this.T&&this.T.reject("Queue cleared");this.app.C().N("html5_gapless_fallback_on_qoe_restart_v2")||q&&this.U&&this.U.Lb(!1);Sw(this,d)};
  13010. mN.prototype.MN=function(){return!this.G};
  13011. mN.prototype.GO=function(){var d;return((d=this.j)==null?void 0:d.GO())||!1};
  13012. mN.prototype.ir=function(){Sw(this);g.W.prototype.ir.call(this)};g.M(o66,g.YP);g.Q=o66.prototype;g.Q.getVisibilityState=function(d,q,T,Y,e,U,b,J){return d?4:qVg()?3:q?2:T?1:Y?5:e?7:U?8:b?9:J?10:0};
  13013. g.Q.Cp=function(d){this.fullscreen!==d&&(this.fullscreen=d,this.nz())};
  13014. g.Q.setMinimized=function(d){this.U!==d&&(this.U=d,this.nz())};
  13015. g.Q.setInline=function(d){this.inline!==d&&(this.inline=d,this.nz())};
  13016. g.Q.Bx=function(d){this.pictureInPicture!==d&&(this.pictureInPicture=d,this.nz())};
  13017. g.Q.setSqueezeback=function(d){this.j!==d&&(this.j=d,this.nz())};
  13018. g.Q.mp=function(d){this.T!==d&&(this.T=d,this.nz())};
  13019. g.Q.pA=function(){return this.G};
  13020. g.Q.hW=function(){return this.fullscreen!==0};
  13021. g.Q.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4};
  13022. g.Q.I7=function(){return this.fullscreen};
  13023. g.Q.isMinimized=function(){return this.U};
  13024. g.Q.isInline=function(){return this.inline};
  13025. g.Q.isBackground=function(){return qVg()};
  13026. g.Q.Kx=function(){return this.pictureInPicture};
  13027. g.Q.YM=function(){return!1};
  13028. g.Q.vE=function(){return this.j};
  13029. g.Q.E6=function(){return this.T};
  13030. g.Q.nz=function(){this.publish("visibilitychange");var d=this.getVisibilityState(this.pA(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Kx(),this.YM(),this.vE(),this.E6());d!==this.X&&this.publish("visibilitystatechange");this.X=d};
  13031. g.Q.ir=function(){e5Q(this.S);g.YP.prototype.ir.call(this)};g.M(g.lr,g.W);g.Q=g.lr.prototype;g.Q.ir=function(){this.videoData=this.playerState=null;g.W.prototype.ir.call(this)};
  13032. g.Q.addCueRange=function(){};
  13033. g.Q.Td=function(){};
  13034. g.Q.vC=function(){};
  13035. g.Q.y4=function(){return!1};
  13036. g.Q.h7=function(){return!1};
  13037. g.Q.bX=function(){};
  13038. g.Q.pB=function(){};
  13039. g.Q.uX=function(){return[]};
  13040. g.Q.e_=function(){};
  13041. g.Q.getAudioTrack=function(){return this.getVideoData().Pa};
  13042. g.Q.n9=function(){return null};
  13043. g.Q.getAvailableAudioTracks=function(){return[]};
  13044. g.Q.N4=function(){return[]};
  13045. g.Q.SE=function(){return[]};
  13046. g.Q.aQ=function(){return""};
  13047. g.Q.lw=function(){return[]};
  13048. g.Q.F4=function(){};
  13049. g.Q.tE=function(){return 0};
  13050. g.Q.getCurrentTime=function(){return 0};
  13051. g.Q.D6=function(){};
  13052. g.Q.Ko=function(){};
  13053. g.Q.BF=function(){return{}};
  13054. g.Q.getDuration=function(){return 0};
  13055. g.Q.d4=function(){return 0};
  13056. g.Q.fH=function(){return 0};
  13057. g.Q.g_=function(){return!1};
  13058. g.Q.Jt=function(){return 0};
  13059. g.Q.sP=function(){return 0};
  13060. g.Q.x6=dI(7);g.Q.Rf=function(){return 0};
  13061. g.Q.AC=function(){return!1};
  13062. g.Q.Jq=function(){return 0};
  13063. g.Q.WG=function(){return null};
  13064. g.Q.Eg=function(){return null};
  13065. g.Q.BG=function(){return 0};
  13066. g.Q.g3=function(){return 0};
  13067. g.Q.U6=function(){return g.G(function(d){g.E6(d)})};
  13068. g.Q.UZ=dI(15);g.Q.getPlaybackQuality=function(){return"auto"};
  13069. g.Q.getPlaybackRate=function(){return 1};
  13070. g.Q.getPlayerState=function(){this.playerState||(this.playerState=new g.EX);return this.playerState};
  13071. g.Q.getPlayerType=function(){return 0};
  13072. g.Q.getPlaylistSequenceForTime=function(){return null};
  13073. g.Q.iS=function(){return function(){}};
  13074. g.Q.gK=function(){return""};
  13075. g.Q.getPreferredQuality=function(){return"unknown"};
  13076. g.Q.NI=function(){};
  13077. g.Q.getProximaLatencyPreference=function(){return 0};
  13078. g.Q.U9=function(){return xp};
  13079. g.Q.TN=function(){return null};
  13080. g.Q.getStoryboardFormat=function(){return null};
  13081. g.Q.getStreamTimeOffset=function(){return 0};
  13082. g.Q.il=function(){return 0};
  13083. g.Q.mz=function(){return 0};
  13084. g.Q.K9=function(){return{AJ:[],y9:[],currentTime:0,ZC:"",droppedVideoFrames:0,isGapless:!1,MN:!0,Xp:0,x$:0,AU:0,B2:0,Zz:0,Ve:[],En:[],Sf:null,playerState:this.getPlayerState(),gI:null,R2:"",totalVideoFrames:0}};
  13085. g.Q.getUserAudio51Preference=function(){return 0};
  13086. g.Q.getUserPlaybackQualityPreference=function(){return""};
  13087. g.Q.getVideoData=function(){this.videoData||(this.videoData=new g.yM(this.Pv),g.C(this,this.videoData));return this.videoData};
  13088. g.Q.I_=function(){return null};
  13089. g.Q.Av=function(){return null};
  13090. g.Q.Sh=function(){};
  13091. g.Q.getVideoLoadedFraction=function(){return 0};
  13092. g.Q.g9=function(){};
  13093. g.Q.handleError=function(){};
  13094. g.Q.Lb=function(){};
  13095. g.Q.rE=function(){};
  13096. g.Q.Qj=dI(40);g.Q.S8=function(){return!1};
  13097. g.Q.hasSupportedAudio51Tracks=function(){return!1};
  13098. g.Q.k6=function(){return!1};
  13099. g.Q.pA=function(){return!1};
  13100. g.Q.isAtLiveHead=function(){return!1};
  13101. g.Q.Kb=function(){return!0};
  13102. g.Q.isGapless=function(){return!1};
  13103. g.Q.isHdr=function(){return!1};
  13104. g.Q.Kl=function(){return!1};
  13105. g.Q.kD=function(){return!1};
  13106. g.Q.HE=function(){return!1};
  13107. g.Q.isProximaLatencyEligible=function(){return!1};
  13108. g.Q.MN=function(){return!0};
  13109. g.Q.JO=function(){return!1};
  13110. g.Q.jI=function(){return!1};
  13111. g.Q.V_=function(){};
  13112. g.Q.sO=function(){};
  13113. g.Q.sU=function(){};
  13114. g.Q.h3=function(){};
  13115. g.Q.eR=function(){};
  13116. g.Q.SB=function(){};
  13117. g.Q.EU=function(){};
  13118. g.Q.xz=dI(50);g.Q.Gz=dI(21);g.Q.Be=function(){};
  13119. g.Q.pauseVideo=function(){};
  13120. g.Q.prefetchKeyPlay=function(){};
  13121. g.Q.playVideo=function(){return g.G(function(d){return d.return()})};
  13122. g.Q.Xi=function(){};
  13123. g.Q.xL=dI(27);g.Q.Ak=dI(33);g.Q.a$=function(){};
  13124. g.Q.oU=function(){};
  13125. g.Q.WR=function(){};
  13126. g.Q.Nd=function(){};
  13127. g.Q.Ly=function(){};
  13128. g.Q.jT=function(){};
  13129. g.Q.uH=function(){};
  13130. g.Q.dn=function(){};
  13131. g.Q.JP=function(){};
  13132. g.Q.lM=function(){};
  13133. g.Q.J2=function(){};
  13134. g.Q.Zp=function(){};
  13135. g.Q.removeCueRange=function(){};
  13136. g.Q.TD=function(){};
  13137. g.Q.hm=function(){return[]};
  13138. g.Q.B$=function(){};
  13139. g.Q.Hf=function(){};
  13140. g.Q.zW=function(){};
  13141. g.Q.zm=function(){};
  13142. g.Q.L0=function(){};
  13143. g.Q.mN=function(){};
  13144. g.Q.seekTo=function(){};
  13145. g.Q.sendAbandonmentPing=function(){};
  13146. g.Q.sendVideoStatsEngageEvent=function(){};
  13147. g.Q.Wx=function(){};
  13148. g.Q.setLoop=function(){};
  13149. g.Q.kK=function(){};
  13150. g.Q.setMediaElement=function(){};
  13151. g.Q.uY=function(){};
  13152. g.Q.setPlaybackRate=function(){};
  13153. g.Q.o6=function(){};
  13154. g.Q.Z1=function(){};
  13155. g.Q.Lz=function(){};
  13156. g.Q.setProximaLatencyPreference=function(){};
  13157. g.Q.v6=function(){};
  13158. g.Q.XG=function(){};
  13159. g.Q.xG=function(){};
  13160. g.Q.Sb=function(){};
  13161. g.Q.Go=function(){};
  13162. g.Q.setUserAudio51Preference=function(){};
  13163. g.Q.KD=function(){};
  13164. g.Q.Tz=function(){return!1};
  13165. g.Q.Yp=function(){};
  13166. g.Q.oF=function(){return!1};
  13167. g.Q.Z8=function(){};
  13168. g.Q.n5=function(){};
  13169. g.Q.Nn=function(){};
  13170. g.Q.stopVideo=function(){};
  13171. g.Q.subscribe=function(){return NaN};
  13172. g.Q.Ts=function(){};
  13173. g.Q.togglePictureInPicture=function(){};
  13174. g.Q.lT=function(){return 0};
  13175. g.Q.unsubscribe=function(){return!1};
  13176. g.Q.jC=function(){};
  13177. g.Q.mG=function(){return!1};
  13178. g.Q.M2=function(){};
  13179. g.Q.eO=function(){};
  13180. g.Q.Ql=function(){};g.M(VW,g.W);g.Q=VW.prototype;g.Q.get=function(d){vF(this);var q=this.data.find(function(T){return T.key===d});
  13181. return q?q.value:null};
  13182. g.Q.set=function(d,q,T){this.remove(d,!0);vF(this);d={key:d,value:q,expire:Infinity};T&&isFinite(T)&&(T*=1E3,d.expire=(0,g.cj)()+T);for(this.data.push(d);this.data.length>this.j;)(T=this.data.shift())&&da(this,T,!0);ok(this)};
  13183. g.Q.remove=function(d,q){q=q===void 0?!1:q;var T=this.data.find(function(Y){return Y.key===d});
  13184. T&&(da(this,T,q),g.OI(this.data,function(Y){return Y.key===d}),ok(this))};
  13185. g.Q.removeAll=function(d){if(d=d===void 0?!1:d)for(var q=g.E(this.data),T=q.next();!T.done;T=q.next())da(this,T.value,d);this.data=[];ok(this)};
  13186. g.Q.ir=function(){var d=this;g.W.prototype.ir.call(this);this.data.forEach(function(q){da(d,q,!0)});
  13187. this.data=[]};g.M(g.qU,g.W);g.Q=g.qU.prototype;g.Q.ir=function(){for(var d=g.E(Object.values(this.j)),q=d.next();!q.done;q=d.next())q.value.dispose();VUj(this);this.G.dispose();g.W.prototype.ir.call(this)};
  13188. g.Q.YP=function(d){return d?d===1?this.B:this.U.getVideoData().enableServerStitchedDai&&d===2?this.U.getVideoData().nL?this.j[2]||this.U:this.U:this.j[d]||null:this.U};
  13189. g.Q.dk=function(d){var q=d.cpn;d=d.playerType;if(q)a:{d=g.E(Object.values(this.j));for(var T=d.next();!T.done;T=d.next())if(T=T.value,T.aQ()===q){q=T;break a}q=this.X[q]||null}else q=d?this.YP(d):this.U;return q};
  13190. g.Q.UM=function(){return this.B};
  13191. g.Q.Oh=function(d){this.B=d};
  13192. g.Q.Lf=function(){return this.U};
  13193. g.Q.D8=function(d){this.U=d;Tr(this)};
  13194. g.Q.CD=dI(46);g.Q.X_=dI(48);g.M(JO6,g.Uc);g.Q=JO6.prototype;g.Q.NR=function(){};
  13195. g.Q.aQ=function(){return this.videoData.clientPlaybackNonce};
  13196. g.Q.getVideoData=function(){if(g.Uc.prototype.getVideoData.call(this).N("html5_huli_ssdai_use_playback_state")){var d=rO1(this.Rd,g.Uc.prototype.getCurrentTime.call(this))||g.Uc.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==d.clientPlaybackNonce&&sv2(this.G,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:d.clientPlaybackNonce});return this.videoData}return rO1(this.Rd,g.Uc.prototype.getCurrentTime.call(this))||g.Uc.prototype.getVideoData.call(this)};
  13197. g.Q.getCurrentTime=function(d){var q=g.Uc.prototype.getCurrentTime.call(this);if(g.Uc.prototype.getVideoData.call(this).N("html5_huli_ssdai_use_playback_state")){this.endTime===0?d||(q-=this.startTime):d&&(q=this.endTime-this.startTime);var T=d?this.Rd.CZ||q:pQf(this.Rd,q);q!==T&&sv2(this.G,"time"+(d!=null?d:!1),{time:q,ref:T,ct:d!=null?d:!1})}else q=d?this.Rd.CZ||q:pQf(this.Rd,q);return q};
  13198. g.Q.getDuration=function(){if(g.Uc.prototype.getVideoData.call(this).N("html5_huli_ssdai_use_playback_state")){var d=OD_(this.Rd,g.Uc.prototype.getCurrentTime.call(this));this.duration!==d&&sv2(this.G,"duration",{dur:this.duration,ref:d});return this.duration}return OD_(this.Rd,g.Uc.prototype.getCurrentTime.call(this))};
  13199. g.Q.lV=function(d){this.duration=d};g.ek.prototype.V9=function(d,q){if(q===1)return this.G.get(d);if(q===2)return this.j.get(d);if(q===3)return this.U.get(d)};
  13200. g.ek.prototype.iT=dI(58);g.ek.prototype.wb=function(d,q,T,Y){T={aI:Y,lZ:T};q?this.j.set(d,T):this.G.set(d,T)};
  13201. g.ek.prototype.clearAll=function(){this.G.clear();this.j.clear();this.U.clear()};
  13202. ga2.prototype.clear=function(){this.G=[];this.j.clear();this.T.clear();this.U.clear()};
  13203. ga2.prototype.dk=function(d){var q=d.cpn;d=d.HG;if(q&&(q=this.j.get(q))||d&&(q=this.T.get(d)))return q};
  13204. g.M(g.Ue,g.W);g.Q=g.Ue.prototype;g.Q.onCueRangeEnter=function(d){var q=d.getId();this.oN({oncueEnter:1,cpn:q,start:d.start,end:d.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.tE()||0).toFixed(3)});var T=this.G.dk({cpn:q});this.oN({enterAdCueRange:1});var Y=this.Ae||this.D0().cpn,e;Y=(e=this.G.dk({cpn:Y}))!=null?e:this.D0();T&&(e=this.playback.getCurrentTime(),T={Y8:Y,z6:T,p7:e},lE7(this,q,d.start/1E3,e),Spf(this,T))};
  13205. g.Q.FZ=function(d,q){if(d===this.playback.aQ())Yi(this.app.v3(),this.playback,!1);else{var T=this.z2.get(d);T?(T.endTime=0,T.startTime=q,Yi(this.app.v3(),T,!0)):this.oN({nop_s:d})}};
  13206. g.Q.onCueRangeExit=function(d){for(var q=this.playback.getCurrentTime()*1E3,T=d.getId(),Y=g.E(this.U.values()),e=Y.next();!e.done;e=Y.next())if(e=e.value,e.getId()!==T&&q>=e.start&&q<=e.end)return;if(T=this.G.dk({cpn:T}))q=this.playback.getCurrentTime(),T={Y8:T,z6:this.D0(),p7:q},lE7(this,this.playback.aQ(),d.end/1E3,q),Spf(this,T)};
  13207. g.Q.D0=function(){return{cpn:this.playback.aQ(),durationMs:0,PG:0,playerType:1,lC:0,videoData:this.playback.getVideoData(),errorCount:0,UP:""}};
  13208. g.Q.seekTo=function(d,q,T,Y){d=d===void 0?0:d;q=q===void 0?{}:q;T=T===void 0?!1:T;Y=Y===void 0?null:Y;Fh(this,this.Ae);if(this.playback.getVideoData().y5()&&d<=this.CZ)this.playback.pauseVideo(),this.CZ=0,va2(this,d);else if(this.lr=!0,T)yOg(this,d,q);else{T=this.app.Lf();var e=T===this.rO?this.AF:null;se(this,!1);this.kx=d;this.Bv=q;Y!=null&&this.Fw.start(Y);T&&(this.AF=e||T.getPlayerState(),T.Nn(q),this.rO=T)}};
  13209. g.Q.ir=function(){se(this,!1);BH1(this);KmX(this);g.W.prototype.ir.call(this)};
  13210. g.Q.AX=function(d){this.fn=d;this.oN({swebm:d})};
  13211. g.Q.RQ=function(d,q,T){if(T&&q){var Y=this.S.get(d);if(Y){Y.locations||(Y.locations=new Map);var e=Number(q.split(";")[0]);T=new g.Ig(T);this.oN({hdlredir:1,itag:q,seg:d,hostport:SK(T)});Y.locations.set(e,T)}}};
  13212. g.Q.Ta=function(d,q,T,Y,e,U){var b=Y===3,J=kvn(this,d,q,Y,T,U);if(!J){$i(this,q,b);var F=g.GvD(this,q)?"undec":"ncp";this.oN({gvprp:F,mt:d,seg:q,tt:Y,itag:T,ce:U});return null}b||this.S.set(q,J);U=J.UP;var N;Y=((N=this.V9(q-1,Y,e))==null?void 0:N.aI)||"";Y===""&&this.oN({eds:1});N=Wmj(this,J.ssdaiAdsConfig);e=this.playback.getVideoData();var R;b=((R=e.U)==null?void 0:R.containerType)||0;R=e.Xc[b];J=J.WW&&q>=J.WW?J.WW:void 0;R={cJ:U?wQI(this,U):[],KU:N,aI:Y,zo:J,Ac:BZ(R.split(";")[0]),gM:R.split(";")[1]||
  13213. ""};J={Gs:R};this.aU&&(d={gvprpro:"v",sq:q,mt:d.toFixed(3),itag:T,acpns:((F=R.cJ)==null?void 0:F.join("_"))||"none",abid:U},this.oN(d));return J};
  13214. g.Q.Mh=function(d){a:{if(!this.q0){var q=Phf(this,d);if(!(this.playback.getVideoData().y5()&&(q==null?0:q.XD)))break a}q=void 0}var T=q;if(!T)return this.oN({gvprp:"ncp",mt:d}),null;q=T.UP;var Y=Wmj(this,T.ssdaiAdsConfig);T=T.WW&&T.lm&&d>=T.lm?T.WW:void 0;var e=this.playback.getVideoData(),U,b=((U=e.U)==null?void 0:U.containerType)||0;U=e.Xc[b];U={cJ:q?wQI(this,q):[],KU:Y,zo:T,Ac:BZ(U.split(";")[0]),gM:U.split(";")[1]||""};var J;d={gvprpro:"v",mt:d.toFixed(3),acpns:((J=U.cJ)==null?void 0:J.join("_"))||
  13215. "none",abid:q};this.oN(d);return U};
  13216. g.Q.xF=function(d,q,T,Y,e,U){var b=Number(T.split(";")[0]),J=Y===3;d=kvn(this,d,q,Y,T,U);this.oN({gdu:1,seg:q,itag:b,pb:""+!!d});if(!d)return $i(this,q,J),null;d.locations||(d.locations=new Map);if(!d.locations.has(b)){var F,N;U=(F=d.videoData.getPlayerResponse())==null?void 0:(N=F.streamingData)==null?void 0:N.adaptiveFormats;if(!U)return this.oN({gdu:"noadpfmts",seg:q,itag:b}),$i(this,q,J),null;F=U.find(function(y){return y.itag===b});
  13217. if(!F||!F.url){var R=d.videoData.videoId;d=[];var x=g.E(U);for(Y=x.next();!Y.done;Y=x.next())d.push(Y.value.itag);this.oN({gdu:"nofmt",seg:q,vid:R,itag:b,fullitag:T,itags:d.join(",")});$i(this,q,J);return null}d.locations.set(b,new g.Ig(F.url,!0))}U=d.locations.get(b);if(!U)return this.oN({gdu:"nourl",seg:q,itag:b}),$i(this,q,J),null;U=new Wt(U);this.fn&&(U.get("dvc")?this.oN({dvc:U.get("dvc")||""}):U.set("dvc","webm"));(Y=(x=this.V9(q-1,Y,e))==null?void 0:x.aI)&&U.set("daistate",Y);d.WW&&q>=d.WW&&
  13218. U.set("skipsq",""+d.WW);(x=this.playback.getVideoData().clientPlaybackNonce)&&U.set("cpn",x);x=[];d.UP&&(x=wQI(this,d.UP),x.length>0&&U.set("acpns",x.join(",")));J||this.S.set(q,d);J=null;J=U.get("aids");Y=U.Hl();(Y==null?void 0:Y.length)>2048&&this.oN({urltoolong:1,sq:q,itag:b,len:Y.length});this.aU&&(Y&&(U=d.cpn,e=d.UP,iDj(this,U,e),e&&!this.ev.has(e)&&(U=fEj(this,U,e),F=zLg(this,e),this.oN({iofa:U}),this.oN({noawnzd:F-U}),this.oN({acpns:x.join("."),aids:(R=J)==null?void 0:R.replace(/,/g,".")}),
  13219. this.ev.add(e))),this.oN({gdu:"v",seg:q,itag:T,ast:d.PG.toFixed(3),alen:d.durationMs.toFixed(3),acpn:d.cpn,avid:d.videoData.videoId}));return Y};
  13220. g.Q.gJ=function(d,q,T){T=T===void 0?!1:T;var Y=Lmn(this,d,q);if(Y){var e=void 0,U=Y.UP;if(U){this.oN({skipadonsq:q,sts:T,abid:U,acpn:Y.cpn,avid:Y.videoData.videoId});T=this.G.U.get(U);if(!T)return;T=g.E(T);for(U=T.next();!U.done;U=T.next())U=U.value,U.WW=q,U.lm=d,U.PG>Y.PG&&(e=U)}Fh(this,this.Ae);this.j=Y.cpn;ChX(this);d=this.playback.getCurrentTime();u9D(this,Y,e,d,d,!1,!0);mrf(this)}};
  13221. g.Q.LD=function(){for(var d=g.E(this.G.G),q=d.next();!q.done;q=d.next())q=q.value,q.WW=NaN,q.lm=NaN;ChX(this);this.oN({rsac:"resetSkipAd",sac:this.j});this.qk.delete(this.j);this.j=""};
  13222. g.Q.V9=function(d,q,T){return this.UD.V9(d,q,T)};
  13223. g.Q.iT=dI(57);
  13224. g.Q.wb=function(d,q,T,Y,e,U,b,J,F){Y.length>0&&this.oN({onssinfo:1,sq:d,start:q.toFixed(3),cpns:Y.join(","),ds:e.join(","),isVideo:b?1:0});F&&this.UD.wb(d,b,J,F);if(b){if(Y.length&&e.length)for(this.qk.has(Y[0])&&this.oN({skipfail:1,sq:d,acpn:Y[0]}),d=q+this.il(),T=0;T<Y.length;T++)if(F=Y[T],b=d,d=b+e[T],F=this.G.dk({cpn:F}))b-=U[T],F.ou=F.ou!=null?Math.min(F.ou,b):b;if(Y.length&&e.length)for(T=(q+this.il())*1E3,q=0;q<Y.length;q++)if(b=Y[q],F=e[q]*1E3,b===this.playback.getVideoData().clientPlaybackNonce)T+=F;
  13225. else{this.q5.has(b)||(this.oN({adCpnFromEmsg:1}),this.q5.add(b));var N=0;q<U.length&&(N=U[q]*1E3);if(d=this.U.get(b))d.start=T-N,d.end=T+F,q===Y.length-1&&(d.end+=Drg(this,b,J)),this.playback.SB();else for(d=new g.Ij(T-N,T+F,{id:b,namespace:"serverstitchedcuerange",priority:9}),this.U.set(b,d),this.oN({newAdCR:1,cpn:b,startTime:d.start,endTime:d.end}),q===Y.length-1&&(d.end+=Drg(this,b,J)),this.playback.addCueRange(d),T=this.playback.uX("serverstitchedcuerange",36E5),T=g.E(T),b=T.next();!b.done;b=
  13226. T.next())this.U.delete(b.value.getId());T=d.end}}};
  13227. g.Q.Mc=dI(55);g.Q.il=function(){return this.playback.il()};
  13228. g.Q.EP=function(d){this.playback.oU("timelineerror",{e:d})};
  13229. g.Q.g9=function(d){this.B&&this.X&&this.K.push(this.X);d&&this.X&&this.wO.push(this.X);this.X=null;this.playback.g9(d)};
  13230. g.Q.M9=function(d){if(this.q0||d.identifier&&this.xx.has(d.identifier))this.oN({startnoad:d.identifier}),Xh(this);else if(D7(this.K,function(T){return T.identifier===d.identifier}))this.oN({timedoutcp:1}),this.L.start(0);
  13231. else if(D7(this.wO,function(T){return T.identifier===d.identifier}))this.oN({fetchedcp:1}),Xh(this);
  13232. else if(this.L.isActive()){var q;this.oN({racingcp:((q=this.X)==null?void 0:q.identifier)+"_"+d.identifier})}else this.lF=(new Date).getTime()/1E3,this.oN({adf:1}),(q=5E3,d.event==="predictStart")&&(q-=d.G),this.RU=Math.max(q,15E3),this.B=!1,this.L.start(this.RU),this.X=d,this.UD.clearAll(),this.dO=[]};
  13233. g.Q.JI=function(d,q,T,Y){T=T||{reason:"disablessdai"};if(d&&q){if(!Lmn(this,d,q))return!1;T.sq=q}if(this.q0)return!1;this.q0=!0;this.Yk>0&&(this.Yk=0,this.Ae="",this.api.publish("serverstitchedvideochange"));this.playback.pB(T,Y);return!0};
  13234. g.Q.Dn=function(){this.oN({rstdaist:1});this.UD.clearAll()};
  13235. g.Q.uI=function(d){var q;if(d!==((q=this.X)==null?void 0:q.identifier))this.oN({ignorenoad:d});else{this.xx.add(d);this.oN({noadrcv:d});var T;((T=this.X)==null?void 0:T.identifier)===d&&Xh(this)}};
  13236. g.Q.sI=function(d){if(this.q0)return this.oN({dai_disabled:d.event}),!1;if(this.playback.getVideoData().y5()&&(this.Pv.N("html5_lifa_no_gab_on_predict_start")&&d.event==="predictStart"||d.event==="continue"||d.event==="stop"))return!1;var q=Wc(this.api.M5());if(q=q?q.sI(d):!1)this.T={mP:d.identifier,dR:d.startSecs};else if(this.T&&this.T.mP===d.identifier&&d.startSecs>this.T.dR+1){this.oN({cueStChg:d.identifier,oldSt:this.T.dR.toFixed(3),newSt:d.startSecs.toFixed(3),abid:this.T.u_});if(this.T.u_){var T=
  13237. d.startSecs-this.T.dR,Y=this.G.U.get(this.T.u_);if(Y){Y=g.E(Y);for(var e=Y.next();!e.done;e=Y.next())e=e.value,e.PG>=0&&(e.PG+=T*1E3,this.Pv.N("html5_ssdai_update_timeline_on_start_time_change")&&(e.lC+=T*1E3),this.oN({newApEt:e.PG,newApPrt:e.lC,acpn:e.cpn}))}}this.T.dR=d.startSecs}return q};
  13238. g.Q.jX=function(d){return this.q0?!1:!!Phf(this,d)};
  13239. g.Q.fN=function(d){var q=this;if(this.Pv.N("html5_lifa_ignore_multiple_skips")&&this.yv)return this.oN({ufs_ad:this.j,ufs_cur:this.Ae,ufs_cont:this.D0().cpn}),!1;Fh(this,this.Ae);this.playback.pauseVideo();var T=this.playback.getCurrentTime(),Y=this.G.dk({cpn:this.Ae});if(!Y)return this.oN({skipFail:T}),!1;this.j=this.Ae;this.lr=!1;IEn(this,Y.UP);oaN(this,Y,this.D0(),d);va2(this,T,{seekSource:89,b$:"lifa_skip"});this.yv||(this.yv=this.events.W(this.api,"progresssync",function(){aN(q.api.GN(),(0,g.cj)(),
  13240. "ad_to_video");q.yv&&(q.events.t1(q.yv),q.yv=null)}));
  13241. return!0};
  13242. g.Q.oN=function(d,q){((q===void 0?0:q)||this.aU||this.playback.getVideoData().y5())&&this.playback.oU("sdai",d)};
  13243. var McQ=0;g.M(dT_,g.W);g.Q=dT_.prototype;g.Q.onCueRangeEnter=function(d){if(this.G===this.app.Lf()){var q=this.S.get(d);q?bxj(this,q.target,q.yP,d):this.jT("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:d.toString()})}else if(q=this.U.find(function(e){return e.Jv.SF===d})){var T=q.Jv,Y=T.target;
  13244. T=T.yP;Y?bxj(this,Y,T,d):UT6(this,q.lC,T,d)}};
  13245. g.Q.onQueuedVideoLoaded=function(){var d=this.L;y3(this);if(d){if(!xi(this,d)){var q=this.app.Lf();this.jT("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:q==null?void 0:q.getVideoData().clientPlaybackNonce,ccpn:""+d.playerVars.cpn})}this.app.Lf().addCueRange(d.Jv.SF)}};
  13246. g.Q.seekTo=function(d,q,T,Y){d=d===void 0?0:d;q=q===void 0?{}:q;Y=Y===void 0?null:Y;if(T===void 0?0:T)VcX(this,d,q);else{T=this.app.Lf()||null;var e=T===this.T?this.X:null;ha(this,!1);this.lr=d;this.K=q;Y!=null&&this.B.start(Y);T&&(this.X=e||T.getPlayerState(),T.Nn(),this.T=T)}};
  13247. g.Q.h0=function(d){g.gs(d,128)&&gR7(this)};
  13248. g.Q.isManifestless=function(){return kp(this.G.getVideoData())};
  13249. g.Q.ir=function(){ha(this,!1);NoQ(this);g.W.prototype.ir.call(this)};
  13250. g.Q.jT=function(d,q){this.G.jT(new g.xV(d,q))};
  13251. var ql1=0;var RCD="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_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.M(H1,g.W);H1.prototype.x4=function(d){if(d)return this.U.get(d)};
  13252. H1.prototype.ir=function(){this.G.removeAll();this.U.removeAll();g.W.prototype.ir.call(this)};g.vQs=t4(function(){var d=window.AudioContext||window.webkitAudioContext;try{return new d}catch(q){return q.name}});g.M(QGg,g.f);g.Q=QGg.prototype;g.Q.iG=function(){g.qg(this.element,g.CN.apply(0,arguments))};
  13253. g.Q.Hf=function(){this.Cn&&(this.Cn.removeEventListener("focus",this.UL),g.h4(this.Cn),this.Cn=null)};
  13254. g.Q.Ku=function(){this.JF();var d=this.app.C();d.bV||this.iG("tag-pool-enabled");d.X&&this.iG(g.Eo.HOUSE_BRAND);d.playerStyle==="gvn"&&(this.iG("ytp-gvn"),this.element.style.backgroundColor="transparent");d.vF&&(this.Lu=g.ST("yt-dom-content-change",this.resize,this));this.W(window,"orientationchange",this.resize,this);this.W(window,"resize",this.resize,this)};
  13255. g.Q.C0=function(d){g.Um(this.app.C());this.aR=!d;Q3(this)};
  13256. g.Q.resize=function(){if(this.Cn){var d=this.yS();if(!d.isEmpty()){var q=g.Yv(this.app.C().experiments,"html5_android_mweb_resize_delay")>0,T=this.app.mZ.isFullscreen();if(q&&T&&PL()){var Y;(Y=this.RS)==null||Y.start()}q=!g.i4(d,this.iY.getSize());T=a1D(this);q&&(this.iY.width=d.width,this.iY.height=d.height);d=this.app.C();(T||q||this.rg||d.vF)&&this.app.mZ.publish("resize",this.getPlayerSize())}}};
  13257. g.Q.qF=function(d,q){this.updateVideoData(q)};
  13258. g.Q.updateVideoData=function(d){if(this.Cn){var q=this.app.C();uR&&(this.Cn.setAttribute("x-webkit-airplay","allow"),d.title?this.Cn.setAttribute("title",d.title):this.Cn.removeAttribute("title"));this.Cn.setAttribute("controlslist","nodownload");q.u3&&d.videoId&&(this.Cn.poster=d.Qg("default.jpg"))}q=g.If(d,"yt:bgcolor");this.t6.style.backgroundColor=q?q:"";this.Eb=qs(g.If(d,"yt:stretch"));this.ek=qs(g.If(d,"yt:crop"),!0);g.ep(this.element,"ytp-dni",d.kc);this.resize()};
  13259. g.Q.setGlobalCrop=function(d){this.hD=qs(d,!0);this.resize()};
  13260. g.Q.setCenterCrop=function(d){this.wu=d;this.resize()};
  13261. g.Q.Cp=function(){};
  13262. g.Q.getPlayerSize=function(){var d=this.app.C(),q=this.app.mZ.isFullscreen(),T=d.externalFullscreen&&g.dn(d);if(q&&PL()&&!T)return new g.zP(window.outerWidth,window.outerHeight);T=!isNaN(this.lE.width)&&!isNaN(this.lE.height);var Y=this.app.C().N("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.C().N("web_watch_enable_fs_squeezeback_panels");if(q&&!T&&Y)return new g.zP(this.element.clientWidth,this.element.clientHeight);if(q||d.sZ){if(window.matchMedia){d="(width: "+window.innerWidth+
  13263. "px) and (height: "+window.innerHeight+"px)";this.aE&&this.aE.media===d||(this.aE=window.matchMedia(d));var e=this.aE&&this.aE.matches}if(e)return new g.zP(window.innerWidth,window.innerHeight)}else if(T)return this.lE.clone();return new g.zP(this.element.clientWidth,this.element.clientHeight)};
  13264. g.Q.yS=function(){var d=this.app.C().N("enable_desktop_player_underlay"),q=this.getPlayerSize(),T=g.Yv(this.app.C().experiments,"player_underlay_min_player_width");return d&&this.Cg&&q.width>T?(d=g.Yv(this.app.C().experiments,"player_underlay_video_width_fraction"),new g.zP(Math.min(q.height*this.getVideoAspectRatio(),q.width*d),Math.min(q.height,q.width*d/this.getVideoAspectRatio()))):q};
  13265. g.Q.getVideoAspectRatio=function(){return isNaN(this.Eb)?chY(this):this.Eb};
  13266. g.Q.getVideoContentRect=function(d){var q=this.yS();d=ERj(this,q,this.getVideoAspectRatio(),d);return new g.WB((q.width-d.width)/2,(q.height-d.height)/2,d.width,d.height)};
  13267. g.Q.Kt=function(d){this.Cg=d;this.resize()};
  13268. g.Q.uB=function(){return this.Qc};
  13269. g.Q.onMutedAutoplayChange=function(){Q3(this)};
  13270. g.Q.setInternalSize=function(d){g.i4(this.lE,d)||(this.lE=d,this.resize())};
  13271. g.Q.ir=function(){this.Lu&&g.lI(this.Lu);this.Hf();g.f.prototype.ir.call(this)};g.Q=pfQ.prototype;g.Q.click=function(d,q){this.elements.has(d);this.G.has(d);var T=g.Q0();T&&d.visualElement&&g.dx(T,d.visualElement,q)};
  13272. g.Q.createClientVe=function(d,q,T,Y){var e=this;Y=Y===void 0?!1:Y;this.elements.has(d);this.elements.add(d);T=EAQ(T);d.visualElement=T;var U=g.Q0(),b=g.Ha();U&&b&&(g.RD("combine_ve_grafts")?lq(mx(),T,b):g.iF(g.un)(void 0,U,b,T));q.addOnDisposeCallback(function(){e.elements.has(d)&&e.destroyVe(d)});
  13273. Y&&this.U.add(d)};
  13274. g.Q.createServerVe=function(d,q,T){var Y=this;T=T===void 0?!1:T;this.elements.has(d);this.elements.add(d);q.addOnDisposeCallback(function(){Y.destroyVe(d)});
  13275. T&&this.U.add(d)};
  13276. g.Q.destroyVe=function(d){this.elements.has(d);this.elements.delete(d);this.j.delete(d);this.G.delete(d);this.U.delete(d)};
  13277. g.Q.uo=function(d,q){this.clientPlaybackNonce!==q&&(this.clientPlaybackNonce=q,SN(mx(),d),Zxf(this))};
  13278. g.Q.setTrackingParams=function(d,q){this.elements.has(d);q&&(d.visualElement=g.y0(q))};
  13279. g.Q.OM=function(d,q,T){this.elements.has(d);q?this.G.add(d):this.G.delete(d);var Y=g.Q0(),e=d.visualElement;this.U.has(d)?Y&&e&&(q?g.o$(Y,[e]):g.V0(Y,[e])):q&&!this.j.has(d)&&(Y&&e&&g.va(Y,e,void 0,T),this.j.add(d))};
  13280. g.Q.hasVe=function(d){return this.elements.has(d)};g.M(g.c1,g.W);g.c1.create=function(d,q,T,Y){try{var e=typeof d==="string"?d:"player"+g.X_(d),U=nf[e];if(U){try{U.dispose()}catch(J){g.Zz(J)}nf[e]=null}var b=new g.c1(d,q,T,Y);b.addOnDisposeCallback(function(){nf[e]=null;b.Cr&&b.Cr()});
  13281. return nf[e]=b}catch(J){throw g.Zz(J),(J&&J instanceof Error?J:Error(String(J))).stack;}};
  13282. g.Q=g.c1.prototype;g.Q.Jp=function(){return this.visibility};
  13283. g.Q.Oh=function(d){var q=this.UM();if(d!==q){d.getVideoData().autonavState=q.getVideoData().autonavState;q.jC(this.Pz,this);var T=q.getPlaybackRate();q.dispose();this.MC.Oh(d);d.setPlaybackRate(T);d.Ts(this.Pz,this);GfD(this)}};
  13284. g.Q.S0=function(){this.Ca||(this.Ca=g.i9(Tk(),Ge2()));return this.Ca};
  13285. g.Q.Hf=function(d){if(this.mediaElement){this.Vu&&(this.events.t1(this.Vu),this.Vu=null);g.jX(this.t3);this.Lf().Hf(!0,!1,d);this.template.Hf();try{this.N("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.qZ()}catch(q){g.OL(q)}this.mediaElement=null}};
  13286. g.Q.D8=function(d,q,T){T=T===void 0?!1:T;if(d!==this.Lf()){this.logger.debug(function(){return"start set presenting player, type "+d.getPlayerType()+", vid "+d.getVideoData().videoId});
  13287. var Y=null;T||(T=this.Lf(),Y=T.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),Pc(this.Am,3),fl(this,"cuerangesremoved",T.lw()),this.p8&&!d.isGapless()&&T.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),T=d.Tz()&&T.Tz(),this.rz.GT("iv_s"),wf2(this,T));d.getPlayerType()===1&&this.Oh(d);DT2(this,d);this.MC.D8(d);this.mediaElement&&d.setMediaElement(this.mediaElement);d.Ts(this.Op,this);d.jI()?xWH(this,"setPresenting",!1):(this.qF("newdata",d,d.getVideoData()),
  13288. Y&&!g.OX(Y,d.getPlayerState())&&this.T4(new g.sP(d.getPlayerState(),Y)),q=q&&d.getPlayerType()===1,d.kD()&&!q&&this.qF("dataloaded",d,d.getVideoData()),(q=(q=d.getVideoData().U)&&q.video)&&this.mZ.uv("onPlaybackQualityChange",q.quality),fl(this,"cuerangesadded",d.lw()),q=d.getPlayerState(),g.I(q,2)?ulQ(this):g.I(q,8)?d.playVideo():d.Kl()&&d.pauseVideo(),q=this.UM(),d.getPlayerType()===2&&(d.getVideoData().yM=q.getVideoData().clientPlaybackNonce),d.getPlayerType()!==2||this.ZY()||(Y=d.getVideoData(),
  13289. q.Xi(Y.clientPlaybackNonce,Y.R6||"",Y.breakType||0,Y.LC,Y.videoId||"")),this.logger.debug("finish set presenting player"))}};
  13290. g.Q.xI=function(){if(this.UM()!==this.Lf()){var d=this.Lf();this.logger.debug(function(){return"release presenting player, type "+d.getPlayerType()+", vid "+d.getVideoData().videoId});
  13291. this.D8(this.UM())}};
  13292. g.Q.v3=function(){return this.MC};
  13293. g.Q.dk=function(d){return this.MC.dk(d)};
  13294. g.Q.YP=function(d){return this.MC.YP(d)};
  13295. g.Q.UM=function(){return this.MC.UM()};
  13296. g.Q.Lf=function(){return this.MC.Lf()};
  13297. g.Q.Lk=dI(44);g.Q.vxr=function(){Zj(this)||(this.logger.debug("application playback ready"),this.Vj(5))};
  13298. g.Q.CFv=function(){if(!Zj(this)){this.logger.debug("playback ready");gZI(this);var d=this.Lf(),q=d.getPlayerState();d.Kl()?this.pauseVideo():q.isOrWillBePlaying()&&this.playVideo()}};
  13299. g.Q.canPlayType=function(d){return Qb(d)};
  13300. g.Q.C=function(){return this.Pv};
  13301. g.Q.getVideoData=function(){return this.Lf().getVideoData()};
  13302. g.Q.mA=dI(11);g.Q.GX=function(){return this.UM().getVideoData()};
  13303. g.Q.getVideoLoadedFraction=function(d){return(d=this.dk({playerType:d}))?d.getVideoLoadedFraction():this.MC.G.getVideoLoadedFraction()};
  13304. g.Q.OD=function(){return this.template};
  13305. g.Q.M5=function(){return this.Am};
  13306. g.Q.GN=function(){return this.rz};
  13307. g.Q.ri=function(d,q,T){(q=this.dk({playerType:q===void 0?1:q}))&&q.Wx(d,void 0,T)};
  13308. g.Q.B9=function(){var d=this.Am.B9();this.mZ.publish("videoStatsPingCreated",d);return d};
  13309. g.Q.getVolume=function(){return Math.round(this.mZ.getVolume())};
  13310. g.Q.isMuted=function(){return this.mZ.isMuted()};
  13311. g.Q.L9=function(){if(this.UM()===this.Lf()&&this.IN)return this.IN.postId};
  13312. g.Q.fYw=function(){var d=this;this.N("use_rta_for_player")||(g.ho(this.Pv)?g.rn(this.Pv,g.$4(this.getVideoData())).then(function(q){eq(Tk(),q);yHI(d.getVideoData(),d.Pv,d.S0())}):yHI(this.getVideoData(),this.Pv,this.S0()))};
  13313. g.Q.Sp=function(d){this.mZ.publish("poTokenVideoBindingChange",d)};
  13314. g.Q.d5=function(d){this.mZ.publish("d6de4videobindingchange",d)};
  13315. g.Q.nN=function(){this.Wn&&this.Wn.nN()};
  13316. g.Q.L_=function(d){this.Wn=d};
  13317. g.Q.r0=function(d){if(d===1){this.rz.tick("vr");var q=this.Lf();q.vC();Mkn(this.rz,q.getVideoData(),$WX(this));lj1(this.Am)}q=this.Pv;if(Zi(q)&&q.B||g.XW(q)){var T;(((T=this.Lf().getVideoData())==null?0:T.enableServerStitchedDai)||!this.ZY())&&this.mZ.uv("onAdStateChange",d)}};
  13318. g.Q.setLoopVideo=function(d){var q=this.Lf();q===this.UM()&&q.AC()!==d&&(q.setLoop(d),this.mZ.gO("onLoopChange",d))};
  13319. g.Q.getLoopVideo=function(){return this.Lf().AC()};
  13320. g.Q.setLoopRange=function(d){var q=!1;!!this.IN!==!!d?q=!0:this.IN&&d&&(q=this.IN.startTimeMs!==d.startTimeMs||this.IN.endTimeMs!==d.endTimeMs||this.IN.postId!==d.postId||this.IN.type!==d.type);if(q){q=this.Lf();Zu(q.getVideoData())&&q.oU("slr",{et:(d==null?void 0:d.endTimeMs)||-1});q=this.UM();q.hm("applooprange");if(d){var T=new g.Ij(d.startTimeMs,d.endTimeMs,{id:"looprange",namespace:"applooprange"});q.addCueRange(T)}else{this.GX().clipConfig=void 0;var Y;((T=this.IN)==null?void 0:T.type)!=="repeatChapter"||
  13321. isNaN(Number((Y=this.IN)==null?void 0:Y.loopCount))||(T={loopCount:String(this.IN.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.Ta("repeatChapterLoopEvent",T))}this.IN=d;this.mZ.gO("onLoopRangeChange",d||void 0);this.UM()===this.Lf()&&(this.A2(),q.bX())}};
  13322. g.Q.getLoopRange=function(){return this.IN};
  13323. g.Q.A2=function(){var d="",q=this.UM();this.IN?q!==this.Lf()?d="pnea":vR6(this,q.getCurrentTime())&&(this.IN.loopCount=0,d="ilr"):d="nlr";var T=this.Lf();if(Zu(T.getVideoData()))if(this.N("html5_gapless_log_loop_range_info")){var Y,e;T.oU("slrre",{rej:d,ct:q.getCurrentTime(),lst:(Y=this.IN)==null?void 0:Y.startTimeMs,let:(e=this.IN)==null?void 0:e.endTimeMs})}else T.oU("slrre",{});d||V3f(this)};
  13324. g.Q.setPlaybackRate=function(d,q){if(!isNaN(d)){d=P1_(this,d);var T=this.UM();T.getPlaybackRate()!==d&&(T.setPlaybackRate(d),q&&!this.Pv.T&&g.pW("yt-player-playback-rate",d),this.mZ.uv("onPlaybackRateChange",d))}};
  13325. g.Q.getCurrentTime=function(d,q){q=q===void 0?!0:q;var T=this.MC.Ig;if(T)return T.getCurrentTime();var Y=d===2&&this.getVideoData().enableServerStitchedDai;T=null;Y?T=this.Lf():T=this.dk({playerType:d});return T?Y&&this.gs?(d=this.MC.L)?d.getCurrentTime(q):T.getCurrentTime():q?(q=pl(this,T),P1(this,q.getCurrentTime(),q)):T.getCurrentTime():this.MC.G.getCurrentTime()};
  13326. g.Q.sP=function(){var d=this.dk({playerType:void 0});if(!d)return this.MC.G.sP();d=pl(this,d);return P1(this,d.sP(),d)};
  13327. g.Q.getDuration=function(d,q){q=q===void 0?!0:q;var T=this.MC.Ig;if(T)return T.getDuration();T=this.getVideoData();var Y=d===2&&T.enableServerStitchedDai,e=null;Y?e=this.Lf():e=this.dk({playerType:d});if(!e)return this.MC.G.getDuration();if(T.hasProgressBarBoundaries()&&!Y){var U,b=Number((U=T.progressBarStartPosition)==null?void 0:U.utcTimeMillis),J;U=Number((J=T.progressBarEndPosition)==null?void 0:J.utcTimeMillis);if(!isNaN(b)&&!isNaN(U))return(U-b)/1E3}if(Zu(T)&&!T.isLivePlayback)return Ll(this,
  13328. d);if(q)return d=Aa(this,e),P1(this,d.getDuration(),d);if(Y&&this.gs){if(this.N("html5_huli_ssdai_use_playback_state"))return d=this.MC,d=d.T===d.L?d.T:null,(d==null?void 0:d.getDuration())||0;var F;return((F=this.MC.L)==null?void 0:F.getDuration())||0}return e.getDuration()};
  13329. g.Q.fH=function(d){var q=this.dk({playerType:d});return q?this.ZY(q)?(q=Aa(this,q),q.fH()-q.getCurrentTime()+this.getCurrentTime(d)):q.fH():this.MC.G.fH()};
  13330. g.Q.finishSegmentByCpn=function(){return[]};
  13331. g.Q.Ku=function(){this.template.Ku();var d=this.mZ;d.state.element=this.template.element;var q=d.state.element,T;for(T in d.state.G)d.state.G.hasOwnProperty(T)&&(q[T]=d.state.G[T]);(d=uTY(this.template.element))&&this.events.W(this.template,d,this.onFullscreenChange)};
  13332. g.Q.getDebugText=function(d){var q=this.UM().BF(d),T=this.Lf();if(T!==this.UM()){T=T.BF(d);for(var Y=g.E(Object.keys(T)),e=Y.next();!e.done;e=Y.next())e=e.value,q["ad"+e]=T[e];if(d){T=q;Y={};if(e=TO(document,"movie_player"))Y.bounds=e.getBoundingClientRect(),Y["class"]=e.className;e={};var U=g.bY("video-ads");U?(HL6(U,e),e.html=U.outerHTML):e.missing=1;U={};var b=g.bY("videoAdUiSkipContainer"),J=g.bY("ytp-ad-skip-button-container"),F=g.bY("ytp-skip-ad-button"),N=b||J||F;N?(HL6(N,U),U.ima=b?1:0,U.bulleit=
  13333. J?1:0,U.component=F?1:0):U.missing=1;Y=JSON.stringify({player:Y,videoAds:e,skipButton:U});T.ad_skipBtnDbgInfo=Y}}d&&this.mediaElement&&(q["0sz"]=""+(+Iy(this.mediaElement.getSize())===0),q.op=this.mediaElement.X5("opacity"),T=this.mediaElement.eE().y+this.mediaElement.getSize().height,q.yof=""+(+T<=0),q.dis=this.mediaElement.X5("display"));d&&((d=(0,g.gk)())&&(q.gpu=d),(d=this.Pv.playerStyle)&&(q.ps=d),this.Pv.qk&&(q.webview=1),(d=this.webPlayerContextConfig.jsUrl)&&(q.js=d));q.debug_playbackQuality=
  13334. this.mZ.getPlaybackQuality(1);q.debug_date=(new Date).toString();q.origin=window.origin;q.timestamp=Date.now();delete q.uga;delete q.q;return JSON.stringify(q,null,2)};
  13335. g.Q.getFeedbackProductData=function(){var d={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.C().experiments.experimentIds.join(", "),player_release:X[40]},q=this.getPlayerStateObject().eF;q&&(d.player_error_code=q.errorCode,d.player_error_details=JSON.stringify(q.errorDetail));return d};
  13336. g.Q.getPresentingPlayerType=function(d){if(this.appState===1)return 1;if(Zj(this))return 3;var q;return d&&((q=this.gs)==null?0:naf(q,this.getCurrentTime()))?2:this.Lf().getPlayerType()};
  13337. g.Q.eA=function(){return!1};
  13338. g.Q.getPlayerStateObject=function(d){var q=this.MC.Ig;return q?q.getPlayerState():this.dk({playerType:d}).getPlayerState()};
  13339. g.Q.getAppState=function(){return this.appState};
  13340. g.Q.jdr=function(d){switch(d.type){case "loadedmetadata":this.NZ.start();d=g.E(this.h4);for(var q=d.next();!q.done;q=d.next())q=q.value,sAX(this,q.id,q.GSD,q.PSx,void 0,!1);this.h4=[];break;case "loadstart":this.rz.GT("gv");break;case "progress":case "timeupdate":dC(d.target.g1())>=2&&this.rz.GT("l2s");break;case "playing":g.AJ&&this.NZ.start();if(g.ho(this.Pv))d=!1;else{q=g.lH(this.M5());d=this.mediaElement.X5("display")==="none"||Iy(this.mediaElement.getSize())===0;var T=MU(this.template),Y=this.Lf().getVideoData(),
  13341. e=g.KG(this.Pv);Y=OB(Y);q=!T||q||e||Y||this.Pv.Bv;d=d&&!q}d&&(d=this.Lf(),d.V_(),this.getVideoData().q5||(this.getVideoData().q5=1,this.iR(),d.playVideo()))}};
  13342. g.Q.BzF=function(d){this.mZ.US("onLoadProgress",d)};
  13343. g.Q.UCf=function(){this.mZ.publish("playbackstalledatstart")};
  13344. g.Q.wFv=function(d,q){this.mZ.publish("sabrCaptionsDataLoaded",d,q)};
  13345. g.Q.A1w=function(d){this.Lf().XG(d)};
  13346. g.Q.xCr=function(d){this.Lf().v6(d)};
  13347. g.Q.TkD=function(d){d=pl(this,this.Lf());d=P1(this,d.getCurrentTime(),d);this.mZ.uv("onVideoProgress",d);this.Pv.zs&&UW1(this,this.visibility.Kx())&&this.pauseVideo()};
  13348. g.Q.Lzk=function(){this.mZ.uv("onAutoplayBlocked");var d=this.Lf().getVideoData();d&&(d.I1=!0);this.N("embeds_enable_autoplay_and_visibility_signals")&&g.dn(this.Pv)&&(d={autoplayBrowserPolicy:jK(),autoplayIntended:ag(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.Ta("embedsAutoplayStatusChanged",d))};
  13349. g.Q.Vvf=function(){this.mZ.publish("progresssync")};
  13350. g.Q.cA5=function(){this.mZ.US("onPlaybackPauseAtStart")};
  13351. g.Q.qDZ=function(d){if(this.getPresentingPlayerType()===1){g.gs(d,1)&&!g.I(d.state,64)&&this.GX().isLivePlayback&&this.UM().isAtLiveHead()&&this.mZ.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.gs(d,2)){if(this.IN&&this.IN.endTimeMs>=(this.getDuration()-1)*1E3){V3f(this);return}ulQ(this)}if(g.I(d.state,128)){var q=d.state;this.cancelPlayback(5);q=q.eF;JSON.stringify({errorData:q,debugInfo:this.getDebugText(!0)});this.mZ.uv("onError",O0Y(q.errorCode));this.mZ.US("onDetailedError",{errorCode:q.errorCode,
  13352. errorDetail:q.errorDetail,message:q.errorMessage,messageKey:q.rG,cpn:q.cpn});(0,g.cj)()-this.Pv.vA>6048E5&&this.mZ.US("onReloadRequired")}q={};if(d.state.isPlaying()&&!d.state.isBuffering()&&!nU("pbresume","ad_to_video")&&nU("_start","ad_to_video")){var T=this.getVideoData();q.clientPlaybackNonce=T.clientPlaybackNonce;T.videoId&&(q.videoId=T.videoId);g.ZO(q,"ad_to_video");pU("pbresume",void 0,"ad_to_video");lj1(this.Am)}this.mZ.publish("applicationplayerstatechange",d)}};
  13353. g.Q.T4=function(d){this.MC.Ig||this.mZ.publish("presentingplayerstatechange",d)};
  13354. g.Q.h0=function(d){aU(this,rC(d.state));g.I(d.state,1024)&&this.mZ.isMutedByMutedAutoplay()&&(Kl(this,{muted:!1,volume:this.FM.volume},!1),Gr(this,!1))};
  13355. g.Q.onPlayerRequestSent=function(d){this.mZ.gO("onPlayerRequestSent",d)};
  13356. g.Q.ZA=function(d,q){d==="newdata"&&GfD(this);this.mZ.publish("applicationvideodatachange",d,q)};
  13357. g.Q.NzO=function(d,q){this.N("html5_afmt_change_update_volume")&&gZI(this);this.mZ.US("onPlaybackAudioChange",this.mZ.getAudioTrack().DQ.name);this.mZ.publish("internalaudioformatchange",this.mZ.getAudioTrack().DQ.id,q)};
  13358. g.Q.iCO=function(d){var q=this.Lf().getVideoData();d===q&&this.mZ.uv("onPlaybackQualityChange",d.U.video.quality)};
  13359. g.Q.VM=function(){var d=this.MC.j[2]||null;d&&(d=d.getVideoData(),this.Lf().oU("ssdai",{cleanaply:1,acpn:d==null?void 0:d.clientPlaybackNonce,avid:d.videoId,isDai:this.GX().enableServerStitchedDai?1:0}),delete this.MC.j[2])};
  13360. g.Q.oc5=function(d,q){this.qF(d,this.Lf(),q)};
  13361. g.Q.qF=function(d,q,T){this.logger.debug(function(){return"on video data change "+d+", player type "+q.getPlayerType()+", vid "+T.videoId});
  13362. this.Pv.uF()&&q.oU("vdc",{type:d,vid:T.videoId||"",cpn:T.clientPlaybackNonce||""});q===this.UM()&&(this.Pv.Y1=T.oauthToken);q===this.UM()&&(this.getVideoData().enableServerStitchedDai&&!this.gs?(this.UM().oU("sdai",{initSstm:1}),this.gs=new g.Ue(this.mZ,this.Pv,this.UM(),this)):!this.getVideoData().enableServerStitchedDai&&this.gs&&(this.gs.dispose(),this.gs=null));if(d==="newdata")this.logger.debug("new video data, destroy modules"),Pc(this.Am,2),this.mZ.publish("videoplayerreset",q);else{if(!this.mediaElement)return;
  13363. d==="dataloaded"&&(this.UM()===this.Lf()?(FW(T.Mk,T.iP),I1Y(this)):zC6(this));q.getPlayerType()===1&&(this.Pv.dO&&hPf(this),this.getVideoData().isLivePlayback&&!this.Pv.aZ&&this.Kj("html5.unsupportedlive",2,"DEVICE_FALLBACK"),T.isLoaded()&&((Pvn(T)||this.getVideoData().aZ)&&this.mZ.publish("legacyadtrackingpingchange",this.getVideoData()),T.hasProgressBarBoundaries()&&q9X(this)));this.mZ.publish("videodatachange",d,T,q.getPlayerType())}this.mZ.uv("onVideoDataChange",{type:d,playertype:q.getPlayerType()});
  13364. this.A2();var Y=T.Dk;Y?this.KW.uo(Y,T.clientPlaybackNonce):Zxf(this.KW)};
  13365. g.Q.X$=function(){nl(this,null);this.mZ.US("onPlaylistUpdate")};
  13366. g.Q.I$D=function(d){delete this.YK[d.getId()];this.UM().removeCueRange(d);a:{d=this.getVideoData();var q,T,Y,e,U,b,J,F,N,R,x=((q=d.dO)==null?void 0:(T=q.contents)==null?void 0:(Y=T.singleColumnWatchNextResults)==null?void 0:(e=Y.autoplay)==null?void 0:(U=e.autoplay)==null?void 0:U.sets)||((b=d.dO)==null?void 0:(J=b.contents)==null?void 0:(F=J.twoColumnWatchNextResults)==null?void 0:(N=F.autoplay)==null?void 0:(R=N.autoplay)==null?void 0:R.sets);if(x)for(q=g.E(x),T=q.next();!T.done;T=q.next())if(T=
  13367. T.value,e=Y=void 0,T=T.autoplayVideo||((Y=T.autoplayVideoRenderer)==null?void 0:(e=Y.autoplayEndpointRenderer)==null?void 0:e.endpoint),Y=g.D(T,g.EB),U=e=void 0,T!=null&&((e=Y)==null?void 0:e.videoId)===d.videoId&&((U=Y)==null?0:U.continuePlayback)){d=T;break a}d=null}(q=g.D(d,g.EB))&&this.mZ.gO("onPlayVideo",{sessionData:{autonav:"1",itct:d==null?void 0:d.clickTrackingParams},videoId:q.videoId,watchEndpoint:q})};
  13368. g.Q.Vj=function(d){var q=this;d!==this.appState&&(this.logger.debug(function(){return"app state change "+q.appState+" -> "+d}),d===2&&this.getPresentingPlayerType()===1&&(aU(this,-1),aU(this,5)),this.appState=d,this.mZ.publish("appstatechange",d))};
  13369. g.Q.Kj=function(d,q,T,Y,e){this.UM().o6(d,q,T,Y,e)};
  13370. g.Q.P9=dI(13);g.Q.isAtLiveHead=function(d,q){q=q===void 0?!1:q;var T=this.dk({playerType:d});if(!T)return this.MC.G.isAtLiveHead();d=Aa(this,T);T=pl(this,T);return d!==T?d.isAtLiveHead(P1(this,T.getCurrentTime(),T),!0):d.isAtLiveHead(void 0,q)};
  13371. g.Q.Jt=function(){var d=this.dk({playerType:void 0});return d?Aa(this,d).Jt():this.MC.G.Jt()};
  13372. g.Q.seekTo=function(d,q,T,Y,e){q=q!==!1;if(Y=this.dk({playerType:Y}))this.appState===2&&ta(this),this.ZY(Y)?W1(this)?this.gs.seekTo(d,{seekSource:e},q,T):this.Rd.seekTo(d,{seekSource:e},q,T):Y.seekTo(d,{W6:!q,XL:T,b$:"application",seekSource:e})};
  13373. g.Q.seekBy=function(d,q,T,Y){this.seekTo(this.getCurrentTime()+d,q,T,Y)};
  13374. g.Q.P$U=function(){this.mZ.uv("SEEK_COMPLETE")};
  13375. g.Q.EBU=function(){this.mZ.gO("onAbnormalityDetected")};
  13376. g.Q.l$5=function(d){this.mZ.gO("onSnackbarMessage",d)};
  13377. g.Q.Gqg=function(d){var q=this.Lf(),T=q.getVideoData();if(this.appState===1||this.appState===2)T.startSeconds=d;this.appState===2?g.I(q.getPlayerState(),512)||ta(this):this.mZ.uv("SEEK_TO",d)};
  13378. g.Q.eYk=function(){this.mZ.publish("airplayactivechange")};
  13379. g.Q.nBU=function(){this.mZ.publish("airplayavailabilitychange")};
  13380. g.Q.showAirplayPicker=function(){this.Lf().Yp()};
  13381. g.Q.FzO=function(){this.mZ.publish("beginseeking")};
  13382. g.Q.x5O=function(){this.mZ.publish("endseeking")};
  13383. g.Q.getStoryboardFormat=function(d){return(d=this.dk({playerType:d}))?Aa(this,d).getStoryboardFormat():this.MC.G.getStoryboardFormat()};
  13384. g.Q.TN=function(d){return(d=this.dk({playerType:d}))?Aa(this,d).getVideoData().TN():this.MC.G.TN()};
  13385. g.Q.ZY=function(d){d=(d||this.Lf()).getVideoData();if(W1(this))d=d===this.gs.playback.getVideoData();else a:{var q=this.Rd;if(d===q.G.getVideoData()&&q.U.length)d=!0;else{q=g.E(q.U);for(var T=q.next();!T.done;T=q.next())if(d.HG===T.value.HG){d=!0;break a}d=!1}}return d};
  13386. g.Q.Iv=function(d,q,T,Y,e,U,b,J){this.logger.debug(function(){return"Adding video to timeline id="+d.video_id+"\n lengthMs="+Y+" enterTimeMs="+e});
  13387. var F="",N=W1(this);this.Lf().oU("appattl",{sstm:this.gs?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:N});N?(T=EaN(this.gs,d,q,T,Y,e,U,b,J),F=(T==null?void 0:T.HG)||"",this.N("html5_ssdai_new_decoration_logic")&&this.UM().xG(J||"",q,(T==null?void 0:T.clientPlaybackNonce)||"")):F=eCD(this.Rd,d,T,Y,e,U);this.logger.debug(function(){return"Video added to timeline id="+d.video_id+" timelinePlaybackId="+F});
  13388. return F};
  13389. g.Q.gm=function(d,q,T,Y,e,U,b,J){if(W1(this)){var F,N=(F=this.gs)==null?void 0:EaN(F,d,q,T,Y,e,U,b,J);this.logger.debug(function(){return"Remaining video added to timeline id="+d.video_id+" timelinePlaybackId="+((N==null?void 0:N.HG)||"")})}};
  13390. g.Q.uI=function(d){this.N("html5_ssdai_new_decoration_logic")&&this.UM().xG(d,"","");var q;(q=this.gs)==null||q.uI(d)};
  13391. g.Q.tI=function(d,q){d=d===void 0?-1:d;q=q===void 0?Infinity:q;W1(this)||NoQ(this.Rd,d,q)};
  13392. g.Q.Jh=function(d,q,T){if(W1(this)){var Y=this.gs,e=Y.G.dk({HG:d});e?(T===void 0&&(T=e.lC),tcY(Y,e,q,T)):Y.EP("Invalid_timelinePlaybackId_"+d+"_specified")}else{Y=this.Rd;e=null;for(var U=g.E(Y.U),b=U.next();!b.done;b=U.next())if(b=b.value,b.HG===d){e=b;break}e?(T===void 0&&(T=e.lC),FwD(Y,e,q,T)):NU(Y,"InvalidTimelinePlaybackId timelinePlaybackId="+d)}};
  13393. g.Q.enqueueVideoByPlayerVars=function(d,q,T,Y){T=T===void 0?Infinity:T;Y=Y===void 0?"":Y;this.ZY();d=new g.yM(this.Pv,d);Y&&(d.HG=Y);ThY(this,d,q,T)};
  13394. g.Q.queueNextVideo=function(d,q,T,Y,e){T=T===void 0?NaN:T;d=this.preloadVideoByPlayerVars(d,q===void 0?1:q,T,Y===void 0?"":Y,e===void 0?"":e);q=this.Lf();d&&(this.N("html5_check_queue_on_data_loaded")?this.C().supportsGaplessShorts()&&q.getVideoData().L&&(T=this.xe,Y=this.p8.S,T.T!==d&&(T.U=q,T.T=d,T.j=1,T.G=d.getVideoData(),T.S=Y,T.G.isLoaded()?T.X():T.G.subscribe("dataloaded",T.X,T))):(T=k42(q,d,this.p8.S),T!=null?(q.oU("sgap",T),q.getVideoData().L&&q.Lb(!1)):(d=d.getVideoData(),q=this.xe,q.G!==
  13395. d&&(q.G=d,q.j=1,d.isLoaded()?q.L():q.G.subscribe("dataloaded",q.L,q)))))};
  13396. g.Q.sH=function(d,q,T,Y){var e=this;T=T===void 0?0:T;Y=Y===void 0?0:Y;Aa(this,this.Lf()).kK();mD1(this.p8,d,q,T,Y).then(function(){e.mZ.US("onQueuedVideoLoaded")},function(){})};
  13397. g.Q.MN=function(){return this.p8.MN()};
  13398. g.Q.lj=function(d){var q=this.p8.G;return q?q.h7(d):!1};
  13399. g.Q.clearQueue=function(d,q){d=d===void 0?!1:d;q=q===void 0?!1:q;this.logger.debug("Clearing queue");this.p8.clearQueue(d,q)};
  13400. g.Q.loadVideoByPlayerVars=function(d,q,T,Y,e,U){q=q===void 0?1:q;var b=this.UM();if(q===2&&this.GX().enableServerStitchedDai&&b&&!b.k6())return b.oU("lvonss",{vid:(d==null?void 0:d.videoId)||"",ptype:q}),!1;var J=!1;b=new g.yM(this.Pv,d);b.H1=U;g.an(this.Pv)&&!b.k9&&Ac(this.rz);var F;U=this.rz;var N=(F=b.lr)!=null?F:"";U.timerName=N;this.rz.w1("pl_i");this.N("web_player_early_cpn")&&b.clientPlaybackNonce&&this.rz.infoGel({clientPlaybackNonce:b.clientPlaybackNonce});FxX(b).supportsVp9Encoding===!1&&
  13401. this.Lf().oU("noVp9enc",{});if(this.C().supportsGaplessShorts()){F=v6j(this.p8,b,q);if(F==null){aU(this,-1);var R;((R=this.p8.G)==null?0:R.getVideoData().isAd())||Cl(this);d=this.p8;d.app.C().N("html5_gapless_new_slr")?ki(d.app,"gaplessshortslooprange"):d.app.setLoopRange(null);d.app.getVideoData().PC=!0;var x;(x=d.G)==null||x.L0();var y;(y=d.G)==null||y.lM();T={b$:"gapless_to_next_video",seekSource:60,wg:d.S.G};Y=g.Yv(d.app.C().experiments,"html5_gapless_seek_offset");e=lH1(d);if(d.S.G){var h;b=
  13402. ((h=d.j)==null?void 0:ir(h))||{};h=b.Xl;b=b.Iy;b!=null&&h!=null&&(e=b-h+.001)}var H;(H=d.app.Lf())==null||H.seekTo(e+Y,T);if(!d.app.getPlayerStateObject(q).isPlaying()){var a;(a=d.app.Lf())==null||a.playVideo(!0)}var p;(p=d.app.Lf())==null||p.zW();d.L();return!0}H=this.N("html5_shorts_gapless_preload_fallback");a=this.p8.G;H&&a&&!a.JF()&&(p=a.getVideoData(),this.MC.S.set(u6(q,p),a,3600));this.p8.clearQueue(H);this.Lf().oU("sgap",{f:F})}if(e){for(;b.BK.length&&b.BK[0].isExpired();)b.BK.shift();H=b.BK.length-
  13403. 1;J=H>0&&e.U(b.BK[H])&&e.U(b.BK[H-1]);b.BK.push(e)}T||(d&&jUD(d)?(HT(this.Pv)&&!this.H3&&(d.fetch=0),nl(this,d)):this.playlist&&nl(this,null),d&&(this.H3=vL(!1,d.external_list)));this.mZ.publish("loadvideo");H=this.ym(b,q,Y);J&&this.Kj("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+b.BK.join()).replace(/[;:,]/g,"_"));return H};
  13404. g.Q.preloadVideoByPlayerVars=function(d,q,T,Y,e){q=q===void 0?1:q;T=T===void 0?NaN:T;Y=Y===void 0?"":Y;e=e===void 0?"":e;var U=ePH(q,d,e),b=this.MC.S.get(U)||null;if(b)return this.logger.debug(function(){return"already preloaded "+U}),this.N("html5_return_playback_if_already_preloaded")?b:null;
  13405. d=new g.yM(this.Pv,d);e&&(d.HG=e);return Y9j(this,d,q,T,Y)};
  13406. g.Q.setMinimized=function(d){this.visibility.setMinimized(d);(d=Vk6(this.Am))&&(this.isMinimized()?d.load():d.unload());this.mZ.publish("minimized")};
  13407. g.Q.setInline=function(d){this.visibility.setInline(d)};
  13408. g.Q.setInlinePreview=function(d){this.visibility.setInline(d)};
  13409. g.Q.Bx=function(d){bLj(this,d)||this.visibility.Bx(d)};
  13410. g.Q.setSqueezeback=function(d){this.visibility.setSqueezeback(d)};
  13411. g.Q.cN=function(){var d,q=(d=this.mediaElement)==null?void 0:d.tA();q&&(this.Pv.VY&&K0(rg(function(){return document.exitFullscreen()}),function(){}),K0(rg(function(){return Ns(q)}),function(){}))};
  13412. g.Q.WcO=function(){this.mediaElement.tA();this.mediaElement.tA().webkitPresentationMode==="picture-in-picture"?this.Bx(!0):this.Bx(!1)};
  13413. g.Q.togglePictureInPicture=function(){this.Lf().togglePictureInPicture()};
  13414. g.Q.ym=function(d,q,T){q=q===void 0?1:q;this.logger.debug(function(){return"start load video, id "+d.videoId+", type "+q});
  13415. nU("_start",this.rz.timerName)||g.iF(Qa)(void 0,this.rz.timerName);var Y=!1,e=l12(this,q,d,!1);e?(Y=!0,d.dispose()):(e=Ee(this,q,d,!0,T),(this.N("html5_onesie")||this.N("html5_load_before_stop"))&&e.y4()&&e.Z8(),this.NZ.stop(),q===1&&q!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,q),this.D8(e));e===this.UM()&&(this.Pv.Y1=d.oauthToken);if(!e.y4())return!1;if(e===this.UM())return this.Vj(1),T=ta(this),Y&&this.N("html5_player_preload_ad_fix")&&e.getPlayerType()===1&&
  13416. e.kD()&&this.qF("dataloaded",e,e.getVideoData()),T;e.n5();return!0};
  13417. g.Q.cueVideoByPlayerVars=function(d,q){var T=this;q=q===void 0?1:q;var Y=this.UM();if(this.GX().enableServerStitchedDai&&Y&&!Y.k6()&&d&&Object.keys(d).length>0)Y.oU("qvonss",{vid:(d==null?void 0:d.videoId)||"",ptype:q});else if(d&&jUD(d))if(this.lA=!0,nl(this,d),(d=g.pa(this.playlist))&&d.LH())wa(this,d,q);else this.playlist.onReady(function(){ra(T)});
  13418. else{q||(q=this.getPresentingPlayerType());q===1&&this.X$();Y=new g.yM(this.Pv,d);var e=g.dn(this.Pv)&&!this.Pv.UD&&q===1&&!Y.isAd()&&!Y.R6;this.mZ.publish("cuevideo");e?(this.Lf().getVideoData().loading=!0,raD(Y,d?d:{}).then(function(U){wa(T,U,q)}),Y.dispose()):wa(this,Y,q)}};
  13419. g.Q.tC=function(d,q,T,Y,e,U,b){if(!d&&!T)throw Error("Playback source is invalid");if(TF(this.Pv)||g.xv(this.Pv))return q=q||{},q.lact=QF(),q.vis=this.mZ.getVisibilityState(),this.mZ.gO("onPlayVideo",{videoId:d,watchEndpoint:U,sessionData:q,listId:T}),!1;caN(this.rz);this.rz.reset();d={video_id:d};Y&&(d.autoplay="1");Y&&(d.autonav="1");U&&(d.player_params=U.playerParams);b&&(d.oauth_token=b);T?(d.list=T,this.loadPlaylist(d)):this.loadVideoByPlayerVars(d,1);return!0};
  13420. g.Q.cuePlaylist=function(d,q,T,Y){this.lA=!0;XO7(this,d,q,T,Y)};
  13421. g.Q.loadPlaylist=function(d,q,T,Y){this.lA=!1;XO7(this,d,q,T,Y)};
  13422. g.Q.yN=function(){return this.mZ.isMutedByMutedAutoplay()?!1:this.MC.Ig?!0:!(!this.playlist||!this.playlist.mB())};
  13423. g.Q.qI=dI(5);
  13424. g.Q.nextVideo=function(d,q){var T=g.jH(this.UM().getVideoData());g.V2(this.mZ)&&T?this.tC(T.videoId,q?T.wS:T.sessionData,T.playlistId,q,void 0,T.Ny||void 0):this.H3?this.mZ.US("onPlaylistNext"):this.getPresentingPlayerType()===3?I6(this.Am).nextVideo():!this.playlist||HT(this.Pv)&&!this.mZ.isFullscreen()||(this.playlist.mB(d)&&p1H(this.playlist,ajn(this.playlist)),this.playlist.loaded?(d=q&&this.Pv.N("html5_player_autonav_logging"),q&&this.mZ.publish("playlistautonextvideo"),this.ym(g.pa(this.playlist,void 0,
  13425. q,d),1)):this.lA=!1)};
  13426. g.Q.previousVideo=function(d){this.H3?this.mZ.US("onPlaylistPrevious"):this.getPresentingPlayerType()===3?I6(this.Am).t2():!this.playlist||HT(this.Pv)&&!this.mZ.isFullscreen()||(this.playlist.M1(d)&&p1H(this.playlist,Aa2(this.playlist)),this.playlist.loaded?this.ym(g.pa(this.playlist),1):this.lA=!1)};
  13427. g.Q.playVideoAt=function(d){this.H3?this.mZ.US("onPlaylistIndex",d):this.playlist&&(this.playlist.loaded?this.ym(g.pa(this.playlist,d),1):this.lA=!1,p1H(this.playlist,d))};
  13428. g.Q.getPlaylist=function(){return this.playlist};
  13429. g.Q.HS=dI(19);g.Q.XA=function(d){this.h4=g.Zl(this.h4,function(U){return U.id!==d});
  13430. for(var q=this.UM(),T=q.lw(),Y=0;Y<T.length;Y++){var e=T[Y];if(e.getId()===d)return q.removeCueRange(e),fl(this,"cuerangesremoved",[e]),!0}return!1};
  13431. g.Q.dkf=function(d){this.mZ.uv("onCueRangeEnter",d.getId())};
  13432. g.Q.JFv=function(d){this.mZ.uv("onCueRangeExit",d.getId())};
  13433. g.Q.iy=function(){var d=g.La(this.M5());d&&d.iy()};
  13434. g.Q.Td=function(d,q,T){var Y=this.dk({playerType:q});if(Y){if(this.N("html5_ssdai_enable_media_end_cue_range")&&this.gs){Y.getPlayerType()===2&&naf(this.gs,this.getCurrentTime())&&(Y=this.UM());for(var e=g.E(d),U=e.next();!U.done;U=e.next())U.value.associatedClipId=this.gs.Ae}Y.Td(d,T);q&&this.getPresentingPlayerType()!==q||fl(this,"cuerangesadded",d)}};
  13435. g.Q.TD=function(d,q){var T=this.dk({playerType:q});T&&(T.TD(d),q&&this.getPresentingPlayerType()!==q||fl(this,"cuerangesremoved",d))};
  13436. g.Q.lT=function(d){return this.Lf().lT(d)};
  13437. g.Q.Xvg=function(){function d(){var Y=q.screenLayer||(q.isMinimized()?3:0),e=g.Q0(Y);if(e&&e!=="UNDEFINED_CSN"){var U=q.Pv.N("web_player_attach_player_response_ve"),b=q.Pv.N("web_playback_associated_ve");Y={cpn:q.getVideoData().clientPlaybackNonce,csn:e};q.getVideoData().aU&&(U||b)&&(U=g.y0(q.getVideoData().aU),g.va(e,U),b&&(Y.playbackVe=U.getAsJson()));q.getVideoData().queueInfo&&(Y.queueInfo=q.getVideoData().queueInfo);e={};q.N("web_playback_associated_log_ctt")&&q.getVideoData().X&&(e.cttAuthInfo=
  13438. {token:q.getVideoData().X,videoId:q.getVideoData().videoId});g.Ta("playbackAssociated",Y,e)}else g.OL(new g.CW("CSN Missing or undefined during playback association"))}
  13439. var q=this,T=this.Lf();this.getPresentingPlayerType();Mkn(this.rz,T.getVideoData(),$WX(this));Oe(this)&&this.Pv.T&&bH(this.GX())==="embedded"&&this.oL&&Math.random()<.01&&g.Ta("autoplayTriggered",{intentional:this.intentionalPlayback});this.oL=!1;lj1(this.Am);this.N("web_player_defer_ad")&&ixI(this);this.mZ.US("onPlaybackStartExternal");(this.Pv.N("mweb_client_log_screen_associated"),Ni(this.Pv))||d();T={};this.getVideoData().X&&(T.cttAuthInfo={token:this.getVideoData().X,videoId:this.getVideoData().videoId});
  13440. T.sampleRate=20;OG("player_att",T);if(this.getVideoData().botguardData||this.N("fetch_att_independently"))g.cT(this.Pv)||Hx(this.Pv)==="MWEB"?g.zy(g.IY(),function(){B1(q)}):B1(this);
  13441. this.A2();oRN(this);this.N("embeds_enable_autoplay_and_visibility_signals")&&g.dn(this.Pv)&&(T={autoplayBrowserPolicy:jK(),autoplayIntended:ag(this.getVideoData()),autoplayStatus:J8f(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.Ta("embedsAutoplayStatusChanged",T))};
  13442. g.Q.gBO=function(){this.mZ.publish("internalAbandon");Cl(this)};
  13443. g.Q.onApiChange=function(){var d=this.Lf();this.Pv.B?this.mZ.uv("onApiChange",d.getPlayerType()):this.mZ.uv("onApiChange")};
  13444. g.Q.aQZ=function(){var d=this.mediaElement;d={volume:g.Cn(Math.floor(d.getVolume()*100),0,100),muted:d.CB()};d.muted||Gr(this,!1);this.FM=g.x9(d);this.mZ.uv("onVolumeChange",d)};
  13445. g.Q.mutedAutoplay=function(d){var q=this.getVideoData().videoId;isNaN(this.DA)&&(this.DA=this.getVideoData().startSeconds);if((d==null?0:d.videoId)||q)this.loadVideoByPlayerVars({video_id:(d==null?0:d.videoId)?d==null?void 0:d.videoId:q,playmuted:!0,start:this.DA,muted_autoplay_duration_mode:d==null?void 0:d.durationMode}),this.mZ.US("onMutedAutoplayStarts")};
  13446. g.Q.onFullscreenChange=function(){var d=FQ7(this);this.Cp(d?1:0);RPY(this,!!d)};
  13447. g.Q.Cp=function(d){var q=!!d,T=!!this.I7()!==q;this.visibility.Cp(d);this.template.Cp(q);this.N("html5_media_fullscreen")&&!q&&this.mediaElement&&FQ7(this)===this.mediaElement.tA()&&this.mediaElement.Gf();this.template.resize();T&&this.rz.tick("fsc");T&&(this.mZ.publish("fullscreentoggled",q),d=this.GX(),q={fullscreen:q,videoId:d.wQ||d.videoId,time:this.getCurrentTime()},this.mZ.getPlaylistId()&&(q.listId=this.mZ.getPlaylistId()),this.mZ.uv("onFullscreenChange",q))};
  13448. g.Q.hW=function(){return this.visibility.hW()};
  13449. g.Q.isFullscreen=function(){return this.visibility.isFullscreen()};
  13450. g.Q.I7=function(){return this.visibility.I7()};
  13451. g.Q.mCk=function(){var d=this.I7();d!==0&&d!==1||this.Cp(FQ7(this)?1:0);d=window.screen.width*window.screen.height;var q=window.outerHeight*window.outerWidth;this.Pv.Kw?(this.dC=Math.max(this.dC,d,q),d=q/this.dC<this.Pv.wJ,this.visibility.Bx(d),this.Pv.M0&&bLj(this,d)):this.mediaElement&&UW1(this,q/d<.33)&&this.mediaElement.Gf()};
  13452. g.Q.Wz2=function(d){this.MC.Ig||this.mZ.publish("liveviewshift",d)};
  13453. g.Q.playVideo=function(d,q){this.logger.debug(function(){return"play video, player type "+d});
  13454. var T=this.dk({playerType:d});T?this.appState===2?(g.an(this.Pv)&&Ac(this.rz),ta(this)):g.I(T.getPlayerState(),2)?(q=36,this.getVideoData().mT()&&(q=37),this.seekTo(0,void 0,void 0,void 0,q)):T.playVideo(!1,q):this.MC.G.playVideo(!1,q)};
  13455. g.Q.pauseVideo=function(d,q){(d=this.dk({playerType:d}))?d.pauseVideo(q):this.MC.G.pauseVideo(q)};
  13456. g.Q.stopVideo=function(d){d=d===void 0?!1:d;this.logger.debug(function(){return"stop video"});
  13457. var q=this.UM().getVideoData(),T=new g.yM(this.Pv,{video_id:q.wQ||q.videoId,oauth_token:q.oauthToken});T.B=g.x9(q.B);d&&!this.webPlayerContextConfig.disableStaleness&&(T.QM=!0);this.cancelPlayback(6);wa(this,T,1)};
  13458. g.Q.cancelPlayback=function(d,q){var T=this;this.logger.debug(function(){return"start cancel playback, type "+q});
  13459. var Y=this.dk({playerType:q});Y?q===2&&Y.getPlayerType()===1&&R6(this.GX())?Y.oU("canclpb",{r:"no_adpb_ssdai"}):(this.Pv.uF()&&Y.oU("canclpb",{r:d}),this.appState===1||this.appState===2?this.logger.debug(function(){return"cancel playback end, app not started, state "+T.appState}):(Y===this.Lf()&&(this.logger.debug("cancel playback, destroy modules"),Pc(this.Am,d)),q===1&&(Y.stopVideo(),Cl(this)),Y.Zp(void 0,d!==6),fl(this,"cuerangesremoved",Y.lw()),Y.zm(),this.p8&&Y.isGapless()&&(Y.Hf(!0),Y.setMediaElement(this.mediaElement)))):
  13460. this.logger.debug("cancel playback end, no player to cancel")};
  13461. g.Q.sendVideoStatsEngageEvent=function(d,q,T){(q=this.dk({playerType:q}))&&lD_(this.Pv,d)?q.sendVideoStatsEngageEvent(d,T):T&&T()};
  13462. g.Q.iS=function(d){var q=this.dk({playerType:void 0});return q&&lD_(this.Pv,d)?q.iS(d):null};
  13463. g.Q.updatePlaylist=function(){!HT(this.Pv)&&g.dn(this.Pv)&&mTQ(this);this.mZ.US("onPlaylistUpdate")};
  13464. g.Q.setSizeStyle=function(d,q){this.Zv=d;this.N("web_log_theater_mode_visibility")?this.mp(q):this.ij=q;this.mZ.publish("sizestylechange",d,q);this.template.resize()};
  13465. g.Q.mp=function(d){this.visibility.mp(d)};
  13466. g.Q.E6=function(){return this.N("web_log_theater_mode_visibility")?this.visibility.E6():this.ij};
  13467. g.Q.isMinimized=function(){return this.visibility.isMinimized()};
  13468. g.Q.isInline=function(){return this.visibility.isInline()};
  13469. g.Q.Kx=function(){return this.visibility.Kx()};
  13470. g.Q.YM=function(){return this.visibility.YM()};
  13471. g.Q.vE=function(){return this.visibility.vE()};
  13472. g.Q.oT=function(){return this.Zv};
  13473. g.Q.getAdState=function(){if(this.getPresentingPlayerType()===3)return I6(this.Am).getAdState();if(!this.ZY()){var d=Wc(this.M5());if(d)return d.getAdState()}return-1};
  13474. g.Q.qFk=function(d){var q=this.template.getVideoContentRect();CT(this.FD,q)||(this.FD=q,this.Lf().M2(),(q=this.UM())&&q===this.Lf()&&q.M2(),this.I7()===1&&this.l0&&RPY(this,!0));q=this.OD().po!==this.Tg;this.Tg=this.OD().po;this.rC&&g.i4(this.rC,d)&&!q||(this.mZ.publish("appresize",d),this.rC=d)};
  13475. g.Q.Oc=function(){return this.mZ.Oc()};
  13476. g.Q.f$O=function(){this.getPresentingPlayerType()===2&&this.Rd.isManifestless()?gR7(this.Rd):(this.gs&&(BH1(this.gs),Cl(this)),xWH(this,"signature"))};
  13477. g.Q.KzU=function(d){d&&xWH(this,"reloadPlayerEvent",void 0,d)};
  13478. g.Q.iR=function(d){this.Hf(d);jk(this)};
  13479. g.Q.Onf=function(d){if(d.errorCode==="manifest.net.badstatus"){var q=this.Pv.experiments.Wv("html5_use_network_error_code_enums")?401:"401";d.details.rc===q&&this.mZ.gO("onPlayerRequestAuthFailed")}};
  13480. g.Q.AAZ=function(d){this.mZ.publish("heartbeatparams",d)};
  13481. g.Q.Eh=function(d){this.mZ.gO("onAutonavChangeRequest",d!==1)};
  13482. g.Q.WG=function(){return this.mediaElement};
  13483. g.Q.setBlackout=function(d){if(this.Pv.Bv!==d){this.Pv.Bv=d;var q=this.Lf();q.bX();this.Pv.dO&&hPf(this);q.WR(d)}};
  13484. g.Q.RYD=function(){var d=this.Lf(),q=!this.mZ.C1();d.eO(q)};
  13485. g.Q.Znk=function(){this.mZ.US("onLoadedMetadata")};
  13486. g.Q.D55=function(){this.mZ.US("onDrmOutputRestricted")};
  13487. g.Q.NG=function(){this.intentionalPlayback=!0};
  13488. g.Q.ir=function(){this.Am.dispose();this.JM.dispose();this.Rd.dispose();this.gs&&this.gs.dispose();this.UM().dispose();this.Hf();this.MC.dispose();g.Yt(this.playlist);g.W.prototype.ir.call(this)};
  13489. g.Q.N=function(d){return this.Pv.N(d)};
  13490. g.Q.setScreenLayer=function(d){this.screenLayer=d};
  13491. g.Q.getInternalApi=function(){return this.mZ.getInternalApi()};
  13492. g.Q.createSubtitlesModuleIfNeeded=function(){return this.Am.createSubtitlesModuleIfNeeded()};
  13493. g.Q.isOrchestrationLeader=function(){var d=u0(this.Am);return d?d.isOrchestrationLeader():!1};
  13494. g.Q.getVideoUrl=function(d,q,T,Y,e){if(this.IN&&this.IN.postId)return d=this.Pv.getVideoUrl(d),d=Eb(d,"v"),d.replace("/watch","/clip/"+this.IN.postId);var U=this.mZ.isEmbedsShortsMode()||this.Pv.z2==="shortspage",b=g.MC(this.getVideoData());return this.Pv.getVideoUrl(d,q,T,Y,e,U,b)};
  13495. g.Q.GO=function(){return this.p8.GO()};
  13496. g.Q.RX=function(d,q,T){this.mZ.publish("spsumpreject",d,q,T)};
  13497. g.Q.h3=function(){try{for(var d=g.E(Object.values(this.MC.j)),q=d.next();!q.done;q=d.next()){var T=q.value;T.JF()||T.h3()}if(this.N("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var Y=g.E(BgI(this.MC.S)),e=Y.next();!e.done;e=Y.next()){var U=e.value;U.JF()||U.h3()}this.UM().h3()}catch(b){g.OL(b)}};
  13498. g.Q.fN=function(){if(this.gs){var d=(0,g.cj)();return this.gs.fN(d)}return!1};
  13499. g.Q.x8=function(d){var q=this.UM();d&&(q=QAD(this,d));if(q){var T=q.getVideoData();d=new Map;T=g.E(T.sabrContextUpdates);for(var Y=T.next();!Y.done;Y=T.next()){var e=g.E(Y.value);Y=e.next().value;e=e.next().value;var U=void 0;e.scope===4&&((U=q)==null?0:U.JO(Y))&&d.set(Y,e)}return d}this.UM().oU("scuget",{ncpf:"1",ccpn:d})};
  13500. g.Q.lW=function(d,q){this.Xx.push({key:d,value:q})};
  13501. var nf={};var oQc={td:[{Ms:/Unable to load player module/,weight:20},{Ms:/Failed to fetch/,weight:500},{Ms:/XHR API fetch failed/,weight:10},{Ms:/JSON parsing failed after XHR fetch/,weight:10},{Ms:/Retrying OnePlatform request/,weight:10},{Ms:/CSN Missing or undefined during playback association/,weight:100},{Ms:/Non-recoverable error. Do not retry./,weight:0},{Ms:/Internal Error. Retry with an exponential backoff./,weight:0},{Ms:/API disabled by application./,weight:0}],EQ:[{callback:MSn,weight:500}]};var KQ2=/[&\?]action_proxy=1/,Bh1=/[&\?]token=([\w-]*)/,GKN=/[&\?]video_id=([\w-]*)/,LQ2=/[&\?]index=([\d-]*)/,kK_=/[&\?]m_pos_ms=([\d-]*)/,WQX=/[&\?]vvt=([\w-]*)/,aCf="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(" "),PAn="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(" "),ZLI={android:"ANDROID",
  13502. "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"},OLN={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},rv1={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};IU.prototype.eg=function(d){this.player.GN().tick(d)};
  13503. IU.prototype.fetch=function(d,q){var T=this;if(!d.match(/\[BISCOTTI_ID\]/g))return this.U(d,q);var Y=this.G===1;Y&&this.eg("a_bid_s");var e=EZf();if(e!==null)return Y&&this.eg("a_bid_f"),this.U(d,q,e);e=jAj();Y&&g.tK(e,function(){T.eg("a_bid_f")});
  13504. return e.then(function(U){return T.U(d,q,U)})};
  13505. IU.prototype.U=function(d,q,T){var Y=this,e=q===void 0?{}:q;q=e.II;var U=e.SF;var b=e.cueProcessedMs;T=T===void 0?"":T;var J=this.player.getVideoData(1);e=this.player.C().Dc;var F=0;if(b&&U&&!q){var N=U.end-U.start;N>0&&(F=Math.floor(N/1E3))}F=q?q.sS:F;var R={AD_BLOCK:this.G++,AD_BREAK_LENGTH:F,AUTONAV_STATE:i6(this.player.C()),CA_TYPE:"image",CPN:J.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.Jt()*1E3,LACT:QF(),LIVE_INDEX:q?this.j++:1,LIVE_TARGETING_CONTEXT:q&&q.context?q.context:"",MIDROLL_POS:U?
  13506. Math.round(U.start/1E3):0,MIDROLL_POS_MS:U?Math.round(U.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.OD().yS().height,P_W:this.player.OD().yS().width,YT_REMOTE:e?e.join(","):""},x=U3(ee);Object.keys(x).forEach(function(h){x[h]!=null&&(R[h.toUpperCase()]=x[h].toString())});
  13507. T!==""&&(R.BISCOTTI_ID=T);T={};YA(d)&&(T.sts="20291",(q=this.player.C().forcedExperiments)&&(T.forced_experiments=q));var y=d7(g.a1(d,R),T);return y.split("?").length!==2?nK(Error("Invalid AdBreakInfo URL")):g.rn(this.player.C(),J==null?void 0:J.oauthToken).then(function(h){if(h&&Tt()){var H=Tk();eq(H,h)}h=Y.player.S0(H);H=CA7(Y,y,R,J.isMdxPlayback,b);return g.GY(h,H,"/youtubei/v1/player/ad_break").then(function(a){return a})})};
  13508. IU.prototype.reset=function(){this.j=this.G=1};g.M(uSN,IU);
  13509. uSN.prototype.U=function(d,q,T){q=q===void 0?{}:q;var Y=q.II;var e=q.SF;var U=q.cueProcessedMs;T=T===void 0?"":T;q=this.G;this.G++;var b=this.player.C().N("h5_disable_macro_substitution_in_get_ad_break")?d:DW7(this,d,{II:Y,SF:e,cueProcessedMs:U},T,q);if(b.split("?").length!==2)return Math.random()<.1&&g.OL(Error("Invalid AdBreakInfo URL")),nK(Error("Invalid AdBreakInfo URL"));var J=this.player.getVideoData(1).isMdxPlayback,F=T;T=Bh1.exec(b);T=T!=null&&T.length>=2?T[1]:"";d=KQ2.test(b);var N=GKN.exec(b);
  13510. N=N!=null&&N.length>=2?N[1]:"";var R=LQ2.exec(b);R=R!=null&&R.length>=2&&!Number.isNaN(Number(R[1]))?Number(R[1]):1;var x=kK_.exec(b);x=x!=null&&x.length>=2?x[1]:"0";var y=gn(this.player.C().XM),h=g.mV(this.player.getVideoData(1).aU,!0);pOH(this,h,b,F===""?"":F,this.player.C(),this.player.getVideoData(1));F={splay:!1,lactMilliseconds:String(QF()),playerHeightPixels:Math.trunc(this.player.OD().yS().height),playerWidthPixels:Math.trunc(this.player.OD().yS().width),vis:Math.trunc(this.player.getVisibilityState()),
  13511. signatureTimestamp:20291,autonavState:i6(this.player.C())};if(J){J={};var H=this.player.C().Dc;nZ1(J,H?H.join(","):"")&&(F.mdxContext=J)}if(J=PAn.includes(y)?void 0:g.r7("PREF")){H=J.split(RegExp("[:&]"));for(var a=0,p=H.length;a<p;a++){var t=H[a].split("=");if((t[0].toUpperCase()==="SML"||t[0].toUpperCase()==="GSML")&&t.length>1&&t[1].toUpperCase()==="TRUE"){h.user.lockedSafetyMode=!0;break}}F.autoCaptionsDefaultOn=tS2(J)}b=WQX.exec(b);(b=b!=null&&b.length>=2?b[1]:"")&&N&&(h.user.credentialTransferTokens=
  13512. [{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:F};F=this.player.getVideoData(1).getGetAdBreakContext();J=this.player.getVideoData(1).clientPlaybackNonce;H=U!==void 0?Math.round(U).toString():void 0;a=(Y==null?0:Y.context)?Y.context:void 0;p=0;U&&e&&!Y&&(e=e.end-e.start,e>0&&(p=Math.floor(e/1E3)));Y=(Y=Math.trunc((Y?Y.sS:p)*1E3))?String(Y):void 0;e=this.player.Jt()*1E3;e=Number.isNaN(e)?0:Math.trunc(e);q={adBlock:q,params:T,breakIndex:R,breakPositionMs:x,clientPlaybackNonce:J,topLevelDomain:y,
  13513. isProxyAdTagRequest:d,context:h,overridePlaybackContext:b,cueProcessedMs:H,videoId:N?N:void 0,liveTargetingParams:a,breakLengthMs:Y,driftFromHeadMs:e?String(e):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:F?F:void 0};return wOg(this,q)};var V0j={b3g:"replaceUrlMacros",FB5:"onAboutThisAdPopupClosed",eLw:"executeCommand"};fC6.prototype.xH=function(){return"adPingingEndpoint"};
  13514. fC6.prototype.WZ=function(d,q,T){ZX1(this.Hv.get(),d,q,T)};zPD.prototype.xH=function(){return"changeEngagementPanelVisibilityAction"};
  13515. zPD.prototype.WZ=function(d){this.J.gO("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:d})};iL_.prototype.xH=function(){return"loggingUrls"};
  13516. iL_.prototype.WZ=function(d,q,T){d=g.E(d);for(var Y=d.next();!Y.done;Y=d.next())Y=Y.value,ZX1(this.Hv.get(),Y.baseUrl,q,T,Y.attributionSrcMode)};g.M(mWf,g.W);g.M(Sk,g.W);g.Q=Sk.prototype;g.Q.addListener=function(d){this.listeners.push(d)};
  13517. g.Q.removeListener=function(d){this.listeners=this.listeners.filter(function(q){return q!==d})};
  13518. g.Q.ej=function(d,q,T,Y,e,U,b,J){if(d==="")Jm("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(d!==this.G||T){this.G=d;this.Yx.get().ej(d,q,T,Y,e,U,b,J);this.Xw.get().ej(d,q,T,Y,e,U,b,J);var F;(F=this.eT)==null||F.get().ej(d,q,T,Y,e,U,b,J);this.U.ej(d,q,T,Y,e,U,b,J);F=g.E(this.listeners);for(var N=F.next();!N.done;N=F.next())N.value.ej(d,q,T,Y,e,U,b,J)}else Jm("Duplicate content video loaded signal")};
  13519. g.Q.QNU=function(){this.G&&this.Zt(this.G)};
  13520. g.Q.Zt=function(d){this.G=void 0;for(var q=g.E(this.listeners),T=q.next();!T.done;T=q.next())T.value.Zt(d)};l6.prototype.Nr=function(d,q,T,Y,e){S97(this);this.S=!q&&T===0;var U=this.J.getVideoData(1),b=this.J.getVideoData(2);U&&(this.contentCpn=U.clientPlaybackNonce,this.videoId=U.videoId,this.G=U.X);b&&(this.adCpn=b.clientPlaybackNonce,this.adVideoId=b.videoId,this.adFormat=b.adFormat);this.T=d;Y<=0?(S97(this),this.S=!q&&T===0):(this.actionType=this.S?q?"unknown_type":"video_to_ad":q?"ad_to_video":"ad_to_ad",this.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&&
  13521. (this.j=!0,nU("_start",this.actionType)&&oZ1(this)))};
  13522. l6.prototype.reset=function(){return new l6(this.J)};g.M(v1,g.W);v1.prototype.addCueRange=function(d,q,T,Y,e,U,b,J,F){U=U===void 0?3:U;b=b===void 0?1:b;this.G.has(d)?Jm("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:d}):(d=new VS1(d,q,T,Y,U,J,F),this.G.set(d.id,{SF:d,listener:e,f3:b}),this.J.ES([d],b))};
  13523. v1.prototype.removeCueRange=function(d){var q=this.G.get(d);q?(this.J.cR([q.SF],q.f3),this.G.delete(q.SF.id)):Jm("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:d})};
  13524. v1.prototype.onCueRangeEnter=function(d){if(this.G.has(d.id))this.G.get(d.id).listener.onCueRangeEnter(d.id)};
  13525. v1.prototype.onCueRangeExit=function(d){if(this.G.has(d.id))this.G.get(d.id).listener.onCueRangeExit(d.id)};
  13526. g.M(VS1,g.Ij);oU.prototype.addPlayerResponseForAssociation=function(d){this.J.addPlayerResponseForAssociation(d)};V3.prototype.r0=function(d){this.J.r0(d)};
  13527. V3.prototype.qd=function(d){var q=g.CN.apply(1,arguments);d==="onAdStart"||d==="onAdEnd"?this.J.uv.apply(this.J,[d].concat(g.RQ(q))):this.J.gO.apply(this.J,[d].concat(g.RQ(q)))};dB.prototype.pz=function(d){return d&&qk(this)};var gD_=null;g.M($u1,g.YP);$u1.prototype.Oy=function(d){return this.G.hasOwnProperty(d)?this.G[d].Oy():{}};
  13528. g.Vf("ytads.bulleit.getVideoMetadata",function(d){return T_().Oy(d)});
  13529. g.Vf("ytads.bulleit.triggerExternalActivityEvent",function(d,q,T){var Y=T_();T=sH1(T);T!==null&&Y.publish(T,{queryId:d,viewabilityString:q})});g.Q=Y$.prototype;g.Q.Wr=function(d,q){if(!this.G.has(d))return{};if(q==="seek"){q=!1;q=q===void 0?!1:q;var T=QC(i3).i4(d,{});T?Dl(T):q&&(d=QC(i3).R$(null,tq(),!1,d),d.eV=3,pVn([d]));return{}}q=NuQ(q);if(q===null)return{};var Y=this.J.Av();if(!Y)return{};var e=this.J.getPresentingPlayerType(!0);if((T=this.J.getVideoData(e))==null||!T.isAd())return{};T={opt_adElement:Y,opt_fullscreen:this.Yx.get().isFullscreen()};return p07(q,d,T)};
  13530. g.Q.yA=function(d,q,T,Y,e){this.G.has(d)&&(Y<=0||e<=0||QC(i3).yA(d,q,T,Y,e))};
  13531. g.Q.LZ=function(d){var q;(q=this.G.get(d.queryId))==null||q.LZ()};
  13532. g.Q.ND=function(d){var q;(q=this.G.get(d.queryId))==null||q.ND()};
  13533. g.Q.Ff=function(d){var q;(q=this.G.get(d.queryId))==null||q.Ff()};
  13534. g.Q.eI=function(d){var q;(q=this.G.get(d.queryId))==null||q.eI()};
  13535. g.Q.nZ=function(d){var q;(q=this.G.get(d.queryId))==null||q.nZ()};EDf.prototype.send=function(d,q,T,Y){try{jHY(this,d,q,T,Y===void 0?!1:Y)}catch(e){}};g.M(a82,EDf);A6f.prototype.send=function(d,q,T,Y){var e=!1;try{if(Y==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||Y==="ATTRIBUTION_SRC_MODE_XHR_OPTION")e=!0,d=FRH(d);Y=e;var U=g.Jq(d);if(U[1]==="https")var b=d;else U[1]="https",b=Xm("https",U[2],U[3],U[4],U[5],U[6],U[7]);var J=gm2(b);U=[];var F=V4H(b)&&this.T2.get().J.C().experiments.Wv("add_auth_headers_to_remarketing_google_dot_com_ping");if(YA(b)||F)U.push({headerType:"USER_AUTH"}),U.push({headerType:"PLUS_PAGE_ID"}),U.push({headerType:"VISITOR_ID"}),U.push({headerType:"EOM_VISITOR_ID"}),
  13536. U.push({headerType:"AUTH_USER"}),U.push({headerType:"DATASYNC_ID"});this.G.send({baseUrl:b,scrubReferrer:J,headers:U},q,T,Y)}catch(N){}};JT.prototype.iS=function(){return this.J.iS(1)};g.M(sW,g.W);g.Q=sW.prototype;g.Q.dc=function(){return this.J.getVideoData(1).clientPlaybackNonce};
  13537. g.Q.addListener=function(d){this.listeners.push(d)};
  13538. g.Q.removeListener=function(d){this.listeners=this.listeners.filter(function(q){return q!==d})};
  13539. g.Q.ej=function(){this.Oo.clear();this.aT=null;this.UQ.get().clear()};
  13540. g.Q.Zt=function(){};
  13541. g.Q.zUw=function(d,q,T,Y,e){q.videoId==="nPpU29QrbiU"&&this.J.oU("ads_ssm_vdc_s",{pt:T,dvt:d});uv(this.T2.get())&&d!=="dataloaded"||Gdg(this,q,T);if(qk(this.T2.get())&&d==="newdata"&&e!==void 0){d=this.dc();var U=q.clientPlaybackNonce,b={};$V(this,"rte",(b.ec=U,b.xc=Y==null?void 0:Y.clientPlaybackNonce,b.tr=e,b.pt=T,b.ia=U!==d,b.ctp=sJ(U),b));q=q.clientPlaybackNonce;Y=Y==null?void 0:Y.clientPlaybackNonce;e=LeD(e);if(e!==1)if(Y!==void 0)for(T=g.E(this.listeners),d=T.next();!d.done;d=T.next())d.value.xQ(Y,
  13542. q,e);else Jm("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:q,transitionReason:String(e)});e=g.E(this.listeners);for(Y=e.next();!Y.done;Y=e.next())Y.value.De(q)}};
  13543. g.Q.OCg=function(d,q){d!==void 0&&(this.aT=d,q===void 0?Jm("Expected ad video start time on SS video changed"):this.Oo.set(d,q));var T=this.J.getPresentingPlayerType(!0),Y=this.J.getVideoData(T),e;d===void 0?e=null:e=this.UQ.get().G.get(d)||null;this.J.getVideoData(1).oU("ads_ssvc",{pt:T,cpn:Y==null?void 0:Y.clientPlaybackNonce,crtt:this.J.getCurrentTime(1,!1),atlh:this.J.isAtLiveHead(),adstt:q,pid:d,slid:e==null?void 0:e.layoutId});Y?Gdg(this,Y,T):Jm("Expected video data on server stitched video changed",
  13544. void 0,void 0,{cpn:this.J.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:d})};
  13545. g.Q.LR=function(d,q){var T=d.author,Y=d.clientPlaybackNonce,e=d.isListed,U=d.HG,b=d.title,J=d.jj,F=d.OP,N=d.isMdxPlayback,R=d.M4,x=d.mdxEnvironment,y=d.isAutonav,h=d.Ct,H=d.k9,a=d.Uq,p=d.videoId||"",t=d.profilePicture||"",n=d.Gp||"",K=d.mT()||!1,P=d.y5()||!1;d=d.Eu||void 0;U=this.UQ.get().G.get(U)||{layoutId:null,slotId:null};var w=this.J.getVideoData(1),l=w.aN();w=w.getPlayerResponse();q=1E3*this.J.getDuration(q);var m=1E3*this.J.getDuration(1),b_,x2,JY=(w==null?void 0:(b_=w.playerConfig)==null?
  13546. void 0:(x2=b_.daiConfig)==null?void 0:x2.enableDai)||!1,s6,qH;b_=(w==null?void 0:(s6=w.playerConfig)==null?void 0:(qH=s6.daiConfig)==null?void 0:qH.enablePreroll)||!1;return Object.assign({},U,{videoId:p,author:T,clientPlaybackNonce:Y,L4:q,O6:m,daiEnabled:JY,qR:b_,isListed:e,aN:l,profilePicture:t,title:b,Gp:n,jj:J,OP:F,Eu:d,isMdxPlayback:N,M4:R,mdxEnvironment:x,isAutonav:y,Ct:h,k9:H,Uq:a,mT:K,y5:P})};
  13547. g.Q.ir=function(){this.listeners.length=0;this.h6=null;g.W.prototype.ir.call(this)};g.M($$,g.W);g.Q=$$.prototype;g.Q.ej=function(){var d=this;qk(this.T2.get())||(this.G=BB(function(){d.J.JF()||d.J.Lz("ad",1)}))};
  13548. g.Q.Zt=function(){};
  13549. g.Q.addListener=function(d){this.listeners.push(d)};
  13550. g.Q.removeListener=function(d){this.listeners=this.listeners.filter(function(q){return q!==d})};
  13551. g.Q.VB=function(){};
  13552. g.Q.playVideo=function(){this.J.playVideo()};
  13553. g.Q.pauseVideo=function(){this.J.pauseVideo()};
  13554. g.Q.resumeVideo=function(d){this.wK(d)&&this.J.playVideo()};
  13555. g.Q.wK=function(d){return this.J.getPlayerState(d)===2};
  13556. g.Q.getCurrentTimeSec=function(d,q,T){var Y=this.Xw.get().aT;if(d===2&&!q&&Y!==null)return Nk(this,Y);WA(this.T2.get(),"html5_ssap_use_cpn_to_get_time")||(T=void 0);return T!==void 0?this.J.getCurrentTime(d,q,T):this.J.getCurrentTime(d,q)};
  13557. g.Q.getVolume=function(){return this.J.getVolume()};
  13558. g.Q.isMuted=function(){return this.J.isMuted()};
  13559. g.Q.getPresentingPlayerType=function(){return this.J.getPresentingPlayerType(!0)};
  13560. g.Q.getPlayerState=function(d){return this.J.getPlayerState(d)};
  13561. g.Q.getGetAdBreakContext=function(){return this.J.getGetAdBreakContext()};
  13562. g.Q.isFullscreen=function(){return this.J.isFullscreen()};
  13563. g.Q.isAtLiveHead=function(){return this.J.isAtLiveHead()};
  13564. g.Q.Kt=function(d){this.J.Kt(d)};
  13565. g.Q.hlF=function(){var d=this.J.getPresentingPlayerType(!0),q=this.getCurrentTimeSec(d,!1);if(d===2){d=g.E(this.listeners);for(var T=d.next();!T.done;T=d.next())T.value.e0(q)}else if(d===1)for(d=g.E(this.N7),T=d.next();!T.done;T=d.next())T.value.VB(q)};
  13566. g.Q.kGw=function(d){for(var q=g.E(this.listeners),T=q.next();!T.done;T=q.next())T.value.mf(d,this.getPresentingPlayerType())};
  13567. g.Q.onFullscreenToggled=function(d){for(var q=g.E(this.listeners),T=q.next();!T.done;T=q.next())T.value.onFullscreenToggled(d)};
  13568. g.Q.onVolumeChange=function(){for(var d=g.E(this.listeners),q=d.next();!q.done;q=d.next())q.value.onVolumeChange()};
  13569. g.Q.bS=function(){for(var d=this.J.isMinimized(),q=g.E(this.listeners),T=q.next();!T.done;T=q.next())T.value.bS(d)};
  13570. g.Q.n8=function(d){for(var q=g.E(this.listeners),T=q.next();!T.done;T=q.next())T.value.n8(d)};
  13571. g.Q.gz=function(){for(var d=this.J.OD().yS(),q=g.E(this.listeners),T=q.next();!T.done;T=q.next())T.value.P3(d)};
  13572. g.Q.EN=function(d){for(var q=g.E(this.listeners),T=q.next();!T.done;T=q.next())T.value.EN(d)};
  13573. g.Q.L8=function(){for(var d=g.E(this.listeners),q=d.next();!q.done;q=d.next())q.value.L8()};g.M(Cdf,g.W);g.M(y_,g.W);y_.prototype.ir=function(){this.Ui.JF()||this.Ui.get().removeListener(this);g.W.prototype.ir.call(this)};hT.prototype.fetch=function(d){var q=d.cz;return this.G.fetch(d.FL,{II:d.II===void 0?void 0:d.II,SF:q,cueProcessedMs:d.cueProcessedMs===void 0?0:d.cueProcessedMs}).then(function(T){return uRI(T,q)})};g.M(He,g.W);g.Q=He.prototype;g.Q.addListener=function(d){this.listeners.push(d)};
  13574. g.Q.removeListener=function(d){this.listeners=this.listeners.filter(function(q){return q!==d})};
  13575. g.Q.QG=function(d){Du1(this,d,1)};
  13576. g.Q.onAdUxClicked=function(d,q){Q_(this,function(T){T.Gu(d,q)})};
  13577. g.Q.B5=function(d){Q_(this,function(q){q.Ht(d)})};
  13578. g.Q.W5=function(d){Q_(this,function(q){q.a_(d)})};
  13579. g.Q.sUZ=function(d){Q_(this,function(q){q.tS(d)})};Mk.prototype.reduce=function(d){switch(d.event){case "unknown":return}var q=d.identifier;var T=this.G[q];T?q=T:(T={DC:null,W2:-Infinity},q=this.G[q]=T);T=d.startSecs+d.G/1E3;if(!(T<q.W2))if(q.W2=T,q.DC){if(T<q.DC.end){a:{T=q.DC;switch(d.event){case "start":case "continue":case "stop":break;default:d=null;break a}d=T.start+d.sS;d=T.end<=d?null:d}if(d!==null)for(q.DC.end=d,q=this.U,g.mq(q.j.G,d*1E3),q=g.E(q.listeners),T=q.next();!T.done;T=q.next())T.value.KT(d)}}else if(d=wv1(d,this.j))T=d.pV,q.DC=
  13580. d.S6,zdD(this.U,T)};
  13581. Mk.prototype.updateTime=function(){};g.M(ce,g.W);g.Q=ce.prototype;
  13582. g.Q.ej=function(){this.S=new Mk(this,Y1D(this.T2.get()));this.j=new f8Q;var d=this.J.getVideoData(1);if(!d.enableServerStitchedDai){var q=this.J.getVideoData(1),T;((T=this.U)==null?void 0:T.clientPlaybackNonce)!==q.clientPlaybackNonce&&(this.U!=null&&this.U.unsubscribe("cuepointupdated",this.wC,this),q.subscribe("cuepointupdated",this.wC,this),this.U=q)}this.gp.length=0;var Y;q=((Y=d.G)==null?void 0:AeN(Y,0))||[];Y=g.E(q);for(q=Y.next();!q.done;q=Y.next())q=q.value,this.sI(q)&&(Dw(this.T2.get())&&
  13583. cn(this.Hv.get(),"ocvl","cpi."+q.identifier+";cpe."+q.event+";cps."+q.startSecs),Jm("Unexpected a GetAdBreak to go out without player waiting",void 0,void 0,{cuePointId:q.identifier,cuePointEvent:q.event,contentCpn:d.clientPlaybackNonce}))};
  13584. g.Q.Zt=function(){};
  13585. g.Q.addListener=function(d){this.listeners.push(d)};
  13586. g.Q.removeListener=function(d){this.listeners=this.listeners.filter(function(q){return q!==d})};
  13587. g.Q.sI=function(d){I8f(this,d);if(Uu1(this.T2.get())&&this.J.getCurrentTime(1)===0&&this.J.getVideoData(1).y5())return!1;this.S.reduce(d);d=this.T;this.T=!1;return d};
  13588. g.Q.wC=function(d){var q=this.J.getVideoData(1).isDaiEnabled();if(q||!g.xv(this.J.C())){d=g.E(d);for(var T=d.next();!T.done;T=d.next())if(T=T.value,I8f(this,T),Dw(this.T2.get())&&this.J.getCurrentTime(1)===0&&T.event==="start"&&cn(this.Hv.get(),"ocuz","cpi."+T.identifier+";cpe."+T.event+";cps."+T.startSecs+";cpd."+T.sS),q)Uu1(this.T2.get())&&this.J.getCurrentTime(1)===0&&this.J.getVideoData(1).y5()||this.S.reduce(T);else if(this.J.getCurrentTime(1)!==0&&T.event==="start")if(this.T2.get().J.C().experiments.Wv("ignore_overlapping_cue_points_on_endemic_live_html5")&&
  13589. (this.G==null||this.T2.get().J.C().experiments.Wv("enable_only_drop_overlapping_cuepoints_with_same_identifier")&&this.G.identifier!==T.identifier?0:T.startSecs+T.sS>=this.G.startSecs&&T.startSecs<=this.G.startSecs+this.G.sS)){var Y=void 0;if(Dw(this.T2.get())&&T.identifier!==((Y=this.G)==null?void 0:Y.identifier)){var e=Y=void 0,U=void 0,b=void 0;cn(this.Hv.get(),"ocud","ccpi."+T.identifier+";ccpe."+T.event+";ccps."+T.startSecs+";\n ccpd."+T.sS+";pcpi."+((Y=this.G)==null?void 0:Y.identifier)+
  13590. ";pcpe."+((e=this.G)==null?void 0:e.event)+";\n pcps."+((U=this.G)==null?void 0:U.startSecs)+";pcpd."+((b=this.G)==null?void 0:b.sS)+";")}Y=void 0;T.identifier!==((Y=this.G)==null?void 0:Y.identifier)&&Jm("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.G=T,zdD(this,T)}};
  13591. g.Q.ir=function(){this.U!=null&&(this.U.unsubscribe("cuepointupdated",this.wC,this),this.U=null);this.listeners.length=0;this.gp.length=0;g.W.prototype.ir.call(this)};g.Q=jy.prototype;g.Q.Iv=function(d,q,T,Y,e,U,b,J){return this.J.Iv(d,q,T,Y,e,U,b,J)};
  13592. g.Q.tI=function(d,q){this.J.tI(d,q)};
  13593. g.Q.Jh=function(d,q,T){this.J.Jh(d,q,T)};
  13594. g.Q.uI=function(d){this.J.uI(d)};
  13595. g.Q.gm=function(d,q,T,Y,e,U,b){this.J.gm(d,q,T,Y,e,U,b)};
  13596. g.Q.oF=function(d){return this.J.oF(d)};
  13597. g.Q.finishSegmentByCpn=function(d,q,T){T=muQ(T);this.J.finishSegmentByCpn(d,q,T)};g.M(aP,g.W);g.M(l8N,g.W);g.M(vDX,g.W);g.M(oD7,g.W);g.M(Vb1,g.W);g.M(dHN,g.W);g.M(TI_,g.W);TI_.prototype.j=function(){return this.U};g.M(Y6c,uE);
  13598. Y6c.prototype.j=function(d){var q=d.content;if(q.componentType==="shopping-companion")switch(d.actionType){case 1:case 2:d=this.G.getVideoData(1);this.G.gO("updateKevlarOrC3Companion",{contentVideoId:d&&d.videoId,shoppingCompanionCarouselRenderer:q.renderer,layoutId:q.layoutId,macros:q.macros,onLayoutVisibleCallback:q.G,interactionLoggingClientData:q.interactionLoggingClientData});break;case 3:this.G.gO("updateKevlarOrC3Companion",{})}else if(q.componentType==="action-companion")switch(d.actionType){case 1:case 2:d=this.G.getVideoData(1);
  13599. this.G.gO("updateKevlarOrC3Companion",{contentVideoId:d&&d.videoId,actionCompanionAdRenderer:q.renderer,layoutId:q.layoutId,macros:q.macros,onLayoutVisibleCallback:q.G,interactionLoggingClientData:q.interactionLoggingClientData});break;case 3:q.renderer&&(q=this.G.getVideoData(1),this.G.gO("updateKevlarOrC3Companion",{contentVideoId:q&&q.videoId})),this.G.gO("updateKevlarOrC3Companion",{})}else if(q.componentType==="image-companion")switch(d.actionType){case 1:case 2:d=this.G.getVideoData(1);this.G.gO("updateKevlarOrC3Companion",
  13600. {contentVideoId:d&&d.videoId,imageCompanionAdRenderer:q.renderer,layoutId:q.layoutId,macros:q.macros,onLayoutVisibleCallback:q.G,interactionLoggingClientData:q.interactionLoggingClientData});break;case 3:q=this.G.getVideoData(1),this.G.gO("updateKevlarOrC3Companion",{contentVideoId:q&&q.videoId}),this.G.gO("updateKevlarOrC3Companion",{})}else if(q.componentType==="top-banner-image-text-icon-buttoned")switch(d.actionType){case 1:case 2:d=this.G.getVideoData(1);this.G.gO("updateKevlarOrC3Companion",
  13601. {contentVideoId:d&&d.videoId,topBannerImageTextIconButtonedLayoutViewModel:q.renderer,layoutId:q.layoutId,macros:q.macros,onLayoutVisibleCallback:q.G,interactionLoggingClientData:q.interactionLoggingClientData});break;case 3:q.renderer&&(q=this.G.getVideoData(1),this.G.gO("updateKevlarOrC3Companion",{contentVideoId:q&&q.videoId})),this.G.gO("updateKevlarOrC3Companion",{})}else if(q.componentType==="banner-image")switch(d.actionType){case 1:case 2:d=this.G.getVideoData(1);this.G.gO("updateKevlarOrC3Companion",
  13602. {contentVideoId:d&&d.videoId,bannerImageLayoutViewModel:q.renderer,layoutId:q.layoutId,macros:q.macros,onLayoutVisibleCallback:q.G,interactionLoggingClientData:q.interactionLoggingClientData});break;case 3:q=this.G.getVideoData(1),this.G.gO("updateKevlarOrC3Companion",{contentVideoId:q&&q.videoId}),this.G.gO("updateKevlarOrC3Companion",{})}else if(q.componentType==="ads-engagement-panel")switch(q=q.renderer,d.actionType){case 1:case 2:this.G.gO("updateEngagementPanelAction",q.addAction);this.G.gO("changeEngagementPanelVisibility",
  13603. q.expandAction);break;case 3:this.G.gO("changeEngagementPanelVisibility",q.hideAction),this.G.gO("updateEngagementPanelAction",q.removeAction)}else if(q.componentType==="ads-engagement-panel-layout"){var T=q.renderer;switch(d.actionType){case 1:case 2:this.G.gO("updateEngagementPanelAction",{action:Ba(T.addAction),layoutId:q.layoutId,onLayoutVisibleCallback:q.G,interactionLoggingClientData:q.interactionLoggingClientData});this.G.gO("changeEngagementPanelVisibility",Ba(T.expandAction));break;case 3:this.G.gO("changeEngagementPanelVisibility",
  13604. Ba(T.hideAction)),this.G.gO("updateEngagementPanelAction",{action:Ba(T.removeAction)})}}};g.M(enE,Sx);g.Q=enE.prototype;g.Q.init=function(d,q,T){Sx.prototype.init.call(this,d,q,T);g.Dv(this.j,"stroke-dasharray","0 "+this.U);this.j.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.X.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.T.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()};
  13605. g.Q.clear=function(){this.hide()};
  13606. g.Q.hide=function(){vk(this);Sx.prototype.hide.call(this)};
  13607. g.Q.show=function(){lE(this);Sx.prototype.show.call(this)};
  13608. g.Q.K3=function(){this.hide()};
  13609. g.Q.Ba=function(){if(this.G){var d=this.G.getProgressState();d!=null&&d.current!=null&&g.Dv(this.j,"stroke-dasharray",d.current/d.seekableEnd*this.U+" "+this.U)}};g.M(UH7,sx);g.Q=UH7.prototype;
  13610. g.Q.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);if(q.image&&q.image.thumbnail)if(q.headline)if(q.description)if(q.backgroundImage&&q.backgroundImage.thumbnail)if(q.actionButton&&g.D(q.actionButton,g.q6))if(d=q.durationMilliseconds||0,typeof d!=="number"||d<=0)g.Zz(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+d));else if(q.navigationEndpoint){var Y=this.api.getVideoData(2);if(Y!=null){var e=q.image.thumbnail.thumbnails;e!=null&&
  13611. e.length>0&&g.nh(g.rt(e[0].url))&&(e[0].url=Y.profilePicture,g.nh(g.rt(Y.profilePicture))&&ieH("VideoPlayer",239976093,"Expected non-empty profile picture."));e=q.backgroundImage.thumbnail.thumbnails;e!=null&&e.length>0&&g.nh(g.rt(e[0].url))&&(e[0].url=Y.Qg());e=q.headline;e!=null&&g.nh(g.rt(e.text))&&(e.text=Y.author)}this.K.init(qP("ad-image"),q.image,T);this.X.init(qP("ad-text"),q.headline,T);this.j.init(qP("ad-text"),q.description,T);this.qk.init(qP("ad-image"),q.backgroundImage,T);Y=["ytp-ad-action-interstitial-action-button",
  13612. "ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.X.element.classList.add("ytp-ad-action-interstitial-headline-light");this.j.element.classList.add("ytp-ad-action-interstitial-description-light");Y.push("ytp-ad-action-interstitial-action-button-dark");this.api.C().U&&(Y.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),Y.push("ytp-ad-action-interstitial-action-button-dark"));this.api.C().N("enable_unified_action_endcap_on_web")&&
  13613. !this.api.C().U&&(Y.push("ytp-ad-action-interstitial-action-button-unified"),this.Fw.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.K.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.Bv.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.mj.classList.add("ytp-ad-action-interstitial-card-unified"),this.UD.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.j.element.classList.add("ytp-ad-action-interstitial-description-unified"),
  13614. this.z2.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.X.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.aU.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.RU.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new nM(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,Y);g.C(this,this.actionButton);this.actionButton.IU(this.Fw);
  13615. this.actionButton.init(qP("button"),g.D(q.actionButton,g.q6),T);kM(this.actionButton.element);Y=C9(this.actionButton.element);Wh(this.actionButton.element,Y+" This link opens in new tab");this.navigationEndpoint=q.navigationEndpoint;this.T.W(this.aU,"click",this.I3,this);this.T.W(this.UD,"click",this.I3,this);!this.api.C().N("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.C().U||this.T.W(this.z2,"click",this.I3,this);this.G=this.C_?new HG(this.api,d):new QZ(d);g.C(this,this.G);if(q.skipButton){(d=
  13616. g.D(q.skipButton,xXs))&&this.G&&(this.skipButton=new F$(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.G,this.jO),g.C(this,this.skipButton),this.skipButton.IU(this.element),this.skipButton.init(qP("skip-button"),d,T));if(T=q.adBadgeRenderer)if(T=g.D(T,RSs))d=new yZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,!0,!0),d.IU(this.RU),d.init(qP("simple-ad-badge"),T,this.macros),g.C(this,d);if(T=q.adInfoRenderer)if(T=g.D(T,VP))d=new iE(this.api,this.layoutId,this.interactionLoggingClientData,
  13617. this.Nk,this.element,void 0,!0),d.IU(this.RU),d.init(qP("ad-info-hover-text-button"),T,this.macros),g.C(this,d)}else q.nonskippableOverlayRenderer&&(d=g.D(q.nonskippableOverlayRenderer,dN))&&this.G&&(this.U=new ds(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.G,!1),g.C(this,this.U),this.U.IU(this.element),this.U.init(qP("ad-preview"),d,T));q.countdownRenderer&&(q=q.countdownRenderer,g.D(q,ynL)&&this.G&&(T=new enE(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,
  13618. this.G),g.C(this,T),T.IU(this.element),T.init(qP("timed-pie-countdown"),g.D(q,ynL),this.macros)));this.show();this.element.focus()}else g.Zz(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.Zz(Error("AdActionInterstitialRenderer has no button."));else g.Zz(Error("AdActionInterstitialRenderer has no background AdImage."));else g.Zz(Error("AdActionInterstitialRenderer has no description AdText."));else g.Zz(Error("AdActionInterstitialRenderer has no headline AdText."));else g.Zz(Error("AdActionInterstitialRenderer has no image."))};
  13619. g.Q.clear=function(){g.jX(this.T);this.hide()};
  13620. g.Q.show=function(){bNj(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.U&&this.U.show();sx.prototype.show.call(this)};
  13621. g.Q.hide=function(){bNj(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.U&&this.U.hide();sx.prototype.hide.call(this)};
  13622. g.Q.I3=function(){this.navigationEndpoint&&(this.layoutId?this.Nk.executeCommand(this.navigationEndpoint,this.layoutId):g.Zz(Error("Missing layoutId for ad action interstitial.")))};var g2N={iconType:"CLOSE"},OW=new g.zP(320,63);g.M($HB,sx);g.Q=$HB.prototype;
  13623. g.Q.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);this.T=q;this.K=g.rL(this.T.onClickCommands||[]);this.RU=this.T.onErrorCommand||null;if(d=this.T.contentSupportedRenderer)d=this.T.contentSupportedRenderer,q=this.T.adInfoRenderer||null,g.D(d,gSI)?(this.X=g.bY("ytp-ad-overlay-ad-info-button-container",this.j.element),FjN(this,q),d=RnE(this,g.D(d,gSI))):g.D(d,FnR)?(this.X=g.bY("ytp-ad-overlay-ad-info-button-container",this.U.element),FjN(this,q),d=xH7(this,g.D(d,FnR))):g.D(d,Nt7)?(this.X=
  13624. g.bY("ytp-ad-overlay-ad-info-button-container",this.G.element),FjN(this,q),d=yYn(this,g.D(d,Nt7))):(g.Zz(Error("InvideoOverlayAdRenderer content could not be initialized.")),d=!1);d&&(this.show(),hnj(this,!0))};
  13625. g.Q.clear=function(){hnj(this,!1);this.aU.reset();this.UD=0;this.j.hide();this.logVisibility(this.j.element,!1);this.U.hide();this.logVisibility(this.U.element,!1);this.G.hide();this.logVisibility(this.G.element,!1);this.hide();this.dispose()};
  13626. g.Q.oor=function(){this.Fw&&(this.layoutId?this.Nk.executeCommand(this.Fw,this.layoutId):g.Zz(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()};
  13627. g.Q.ZR=function(){a:{if(this.T&&this.T.closeButton&&this.T.closeButton.buttonRenderer){var d=this.T.closeButton.buttonRenderer;if(d.serviceEndpoint){d=[d.serviceEndpoint];break a}}d=[]}d=g.E(d);for(var q=d.next();!q.done;q=d.next())q=q.value,this.layoutId?this.Nk.executeCommand(q,this.layoutId):g.Zz(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
  13628. g.Q.bfr=function(){this.qk||this.api.getPlayerState(1)!==2||this.api.playVideo()};
  13629. g.Q.YC=function(){this.qk||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.YC("invideo-overlay")};
  13630. g.Q.awZ=function(d){d.target===this.X&&g.bY("ytp-ad-button",this.Bv.element).click()};g.M(HNR,Sx);g.Q=HNR.prototype;g.Q.init=function(d,q,T){Sx.prototype.init.call(this,d,q,T);d=q.durationMs;this.j=d==null||d===0?0:d+this.G.getProgressState().current*1E3;if(q.text)var Y=q.text.templatedAdText;else q.staticMessage&&(Y=q.staticMessage);this.messageText.init(qP("ad-text"),Y,T);this.messageText.IU(this.U.element);this.T.show(100);this.show()};
  13631. g.Q.clear=function(){this.hide()};
  13632. g.Q.hide=function(){QQE(this,!1);Sx.prototype.hide.call(this);this.U.hide();this.messageText.hide();vk(this)};
  13633. g.Q.show=function(){QQE(this,!0);Sx.prototype.show.call(this);lE(this);this.U.show();this.messageText.show()};
  13634. g.Q.K3=function(){this.hide()};
  13635. g.Q.Ba=function(){if(this.G!=null){var d=this.G.getProgressState();d!=null&&d.current!=null&&(d=1E3*d.current,!this.UD&&d>=this.j?(this.T.hide(),this.UD=!0):this.messageText&&this.messageText.isTemplated()&&(d=Math.max(0,Math.ceil((this.j-d)/1E3)),d!==this.X&&(mr(this.messageText,{TIME_REMAINING:String(d)}),this.X=d)))}};g.M(MDN,sx);g.Q=MDN.prototype;
  13636. g.Q.init=function(d,q,T){sx.prototype.init.call(this,d,q,{});q.image&&q.image.thumbnail?q.headline?q.description?q.actionButton&&g.D(q.actionButton,g.q6)?(this.j.init(qP("ad-image"),q.image,T),this.U.init(qP("ad-text"),q.headline,T),this.T.init(qP("ad-text"),q.description,T),this.actionButton=new nM(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,["ytp-ad-underlay-action-button"]),q.backgroundColor&&g.Dv(this.element,"background-color",g.Gc(q.backgroundColor)),g.C(this,this.actionButton),
  13637. this.actionButton.IU(this.X),this.actionButton.init(qP("button"),g.D(q.actionButton,g.q6),T),d=g.Yv(this.api.C().experiments,"player_underlay_video_width_fraction"),this.api.C().N("place_shrunken_video_on_left_of_player")?(q=this.G,g.TR(q,"ytp-ad-underlay-left-container"),g.d9(q,"ytp-ad-underlay-right-container"),g.Dv(this.G,"margin-left",Math.round((d+.02)*100)+"%")):(q=this.G,g.TR(q,"ytp-ad-underlay-right-container"),g.d9(q,"ytp-ad-underlay-left-container")),g.Dv(this.G,"width",Math.round((1-d-
  13638. .04)*100)+"%"),this.api.uB()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.p$.bind(this)),this.api.addEventListener("resize",this.z$.bind(this))):g.Zz(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.Zz(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.Zz(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.Zz(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
  13639. g.Q.show=function(){cYx(!0);this.actionButton&&this.actionButton.show();sx.prototype.show.call(this)};
  13640. g.Q.hide=function(){cYx(!1);this.actionButton&&this.actionButton.hide();sx.prototype.hide.call(this)};
  13641. g.Q.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.p$.bind(this));this.api.removeEventListener("resize",this.z$.bind(this));this.hide()};
  13642. g.Q.onClick=function(d){sx.prototype.onClick.call(this,d);this.actionButton&&g.HB(this.actionButton.element,d.target)&&this.api.pauseVideo()};
  13643. g.Q.p$=function(d){d==="transitioning"?(this.G.classList.remove("ytp-ad-underlay-clickable"),this.show()):d==="visible"?this.G.classList.add("ytp-ad-underlay-clickable"):d==="hidden"&&(this.hide(),this.G.classList.remove("ytp-ad-underlay-clickable"))};
  13644. g.Q.z$=function(d){d.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):d.width>875?(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"));
  13645. g.Dv(this.U.element,"font-size",d.width/40+"px")};g.M(nr,sx);
  13646. nr.prototype.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);q.toggledLoggingParams&&(this.toggledLoggingParams=q.toggledLoggingParams);q.answer&&g.D(q.answer,g.q6)?(d=new nM(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),d.IU(this.answer),d.init(qP("ytp-ad-survey-answer-button"),g.D(q.answer,g.q6),T),d.show()):q.answer&&g.D(q.answer,p8)&&(this.G=new Wk(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,
  13647. ["ytp-ad-survey-answer-toggle-button"]),this.G.IU(this.answer),g.C(this,this.G),this.G.init(qP("survey-answer-button"),g.D(q.answer,p8),T));this.show()};
  13648. nr.prototype.xm=function(d){this.layoutId?Lu(this.Nk,d,this.layoutId,this.macros):(d=new g.CW("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.Zz(d))};
  13649. nr.prototype.onClick=function(d){sx.prototype.onClick.call(this,d);if(this.api.C().N("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)};
  13650. nr.prototype.clear=function(){this.hide()};g.M(E2j,sx);E2j.prototype.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);q.answer&&g.D(q.answer,p8)&&(this.button=new Wk(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.IU(this.G),this.button.init(qP("survey-none-of-the-above-button"),g.D(q.answer,p8),T));this.show()};g.M(rB,nM);rB.prototype.init=function(d,q,T){nM.prototype.init.call(this,d,q,T);d=!1;q.text&&(q=g.gx(q.text),d=!g.nh(q));d||g.OL(Error("No submit text was present in the renderer."))};
  13651. rB.prototype.onClick=function(d){this.publish("l");nM.prototype.onClick.call(this,d)};g.M(tT,sx);
  13652. tT.prototype.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);if(d=q.skipOrPreviewRenderer)g.D(d,AP)?(d=g.D(d,AP),T=new Ru(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.T,!0),T.IU(this.skipOrPreview),T.init(qP("skip-button"),d,this.macros),g.C(this,T),this.G=T):g.D(d,dN)&&(d=g.D(d,dN),T=new ds(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.T,!1),T.IU(this.skipOrPreview),T.init(qP("ad-preview"),d,this.macros),T.UD.show(100),T.show(),g.C(this,T),
  13653. this.G=T);this.G==null&&(d=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(q)),g.Zz(d));q.submitButton&&(d=q.submitButton,g.D(d,g.q6)&&(d=g.D(d,g.q6),T=new rB(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),T.IU(this.submitButton),T.init(qP("survey-submit"),d,this.macros),g.C(this,T),this.U=T));if(d=q.adBadgeRenderer)d=g.D(d,RSs),T=new yZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,!0,!0,!0),T.IU(this.j),T.init(qP("simple-ad-badge"),
  13654. d,this.macros),this.adBadge=T.element,g.C(this,T);if(d=q.adDurationRemaining)d=g.D(d,Jnq),T=new EP(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.T,void 0,!0),T.IU(this.j),T.init(qP("ad-duration-remaining"),d,this.macros),g.C(this,T);(q=q.adInfoRenderer)&&g.D(q,VP)&&(d=new iE(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.element,void 0,!0),g.C(this,d),this.adBadge!==void 0?this.j.insertBefore(d.element,this.adBadge.nextSibling):d.IU(this.j),d.init(qP("ad-info-hover-text-button"),
  13655. g.D(q,VP),this.macros));this.show()};
  13656. tT.prototype.clear=function(){this.hide()};g.M(Be,sx);Be.prototype.init=function(d,q,T){sx.prototype.init.call(this,d,q,T);ZNj(this)};
  13657. Be.prototype.show=function(){this.j=Date.now();sx.prototype.show.call(this)};
  13658. Be.prototype.U8=function(){};g.M(ONj,Be);g.Q=ONj.prototype;g.Q.init=function(d,q,T){var Y=this;Be.prototype.init.call(this,d,q,T);q.questionText&&jQl(this,q.questionText);q.answers&&q.answers.forEach(function(e,U){g.D(e,aS)&&aXs(Y,g.D(e,aS),T,U)});
  13659. this.X=new Set(this.U.map(function(e){return e.G.G}));
  13660. (d=q.noneOfTheAbove)&&(d=g.D(d,$Xn))&&n2I(this,d,T);q.surveyAdQuestionCommon&&pgs(this,q.surveyAdQuestionCommon);q.submitEndpoints&&(this.submitEndpoints=q.submitEndpoints);this.W(this.element,"change",this.onChange);this.show()};
  13661. g.Q.U8=function(){rYL(this,!1);this.T.U.subscribe("l",this.lm5,this)};
  13662. g.Q.onChange=function(d){d.target===this.noneOfTheAbove.button.G?tD7(this):this.X.has(d.target)&&(this.noneOfTheAbove.button.toggleButton(!1),rYL(this,!0))};
  13663. g.Q.lm5=function(){var d=[],q=this.U.reduce(function(e,U,b){var J=U.toggledLoggingParams;U.G&&U.G.isToggled()&&J&&(e.push(J),d.push(b));return e},[]).join("&"),T=this.submitEndpoints.map(function(e){if(!e.loggingUrls)return e;
  13664. e=g.yl(e);e.loggingUrls=e.loggingUrls.map(function(U){U.baseUrl&&(U.baseUrl=hq(U.baseUrl,q));return U});
  13665. return e});
  13666. if(T){T=g.E(T);for(var Y=T.next();!Y.done;Y=T.next())Y=Y.value,this.layoutId?Lu(this.Nk,Y,this.layoutId,this.macros):g.Zz(Error("Missing layoutId for multi_select_question."))}this.api.C().N("supports_multi_step_on_desktop")&&this.UD(d)};
  13667. g.Q.clear=function(){this.api.C().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.M(Kr,Be);Kr.prototype.init=function(d,q,T){var Y=this;Be.prototype.init.call(this,d,q,T);q.questionText&&jQl(this,q.questionText);q.answers&&q.answers.forEach(function(e,U){g.D(e,aS)&&aXs(Y,g.D(e,aS),T,U)});
  13668. q.surveyAdQuestionCommon?pgs(this,q.surveyAdQuestionCommon):qw(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(q)));this.show()};
  13669. Kr.prototype.clear=function(){this.api.C().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.M(G_,sx);G_.prototype.init=function(d,q,T){var Y=this;sx.prototype.init.call(this,d,q,T);if(this.api.C().N("supports_multi_step_on_desktop")){var e;this.conditioningRules=(e=q.conditioningRules)!=null?e:[];var U;this.U=(U=q.questions)!=null?U:[];var b;((b=q.questions)==null?0:b.length)&&Ljj(this,0)}else(q.questions||[]).forEach(function(J){g.D(J,vY)?Kjx(Y,g.D(J,vY),T):g.D(J,lV)&&G7j(Y,g.D(J,lV),T)});
  13670. this.show()};
  13671. G_.prototype.clear=function(){this.api.C().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};
  13672. G_.prototype.T=function(d){var q=this;if(this.api.C().N("supports_multi_step_on_desktop")){var T;if((T=this.conditioningRules)==null?0:T.length){var Y;if(d.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(e){return e.questionIndex===q.G})==null)g.Zz(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);
  13673. else if(this.conditioningRules.forEach(function(e){if(e.questionIndex===q.G)switch(e.condition){case "CONDITION_ALL_OF":var U;if((U=e.answerIndices)==null?0:U.every(function(J){return d.includes(J)}))Y=e.nextQuestionIndex;
  13674. break;case "CONDITION_ANY_OF":var b;if((b=e.answerIndices)==null?0:b.some(function(J){return d.includes(J)}))Y=e.nextQuestionIndex;
  13675. break;default:g.Zz(Error("Expected specified condition in survey conditioning rules."))}}),Y!=null)Ljj(this,Y);
  13676. else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.Zz(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};g.M(Lr,sx);
  13677. Lr.prototype.init=function(d,q,T){var Y=this;sx.prototype.init.call(this,d,q,T);d=q.timeoutSeconds||0;if(typeof d!=="number"||d<0)g.Zz(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+d));else if(q.timeoutCommands)if(q.text)if(q.ctaButton&&g.D(q.ctaButton,g.q6))if(q.brandImage)if(q.backgroundImage&&g.D(q.backgroundImage,Tb)&&g.D(q.backgroundImage,Tb).landscape){this.layoutId||g.Zz(Error("Missing layoutId for survey interstitial."));k7L(this.interstitial,g.D(q.backgroundImage,
  13678. Tb).landscape);k7L(this.logoImage,q.brandImage);g.Qp(this.text,g.gx(q.text));var e=["ytp-ad-survey-interstitial-action-button"];e.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new nM(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,e);g.C(this,this.actionButton);this.actionButton.IU(this.U);this.actionButton.init(qP("button"),g.D(q.ctaButton,g.q6),T);this.actionButton.show();this.G=new HG(this.api,d*1E3);this.G.subscribe("g",function(){Y.transition.hide()});
  13679. g.C(this,this.G);this.W(this.element,"click",function(U){var b=U.target===Y.interstitial;U=Y.actionButton.element.contains(U.target);if(b||U)if(Y.transition.hide(),b)Y.api.onAdUxClicked(Y.componentType,Y.layoutId)});
  13680. this.transition.show(100)}else g.Zz(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.Zz(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.Zz(Error("SurveyTextInterstitialRenderer has no button."));else g.Zz(Error("SurveyTextInterstitialRenderer has no text."));else g.Zz(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
  13681. Lr.prototype.clear=function(){this.hide()};
  13682. Lr.prototype.show=function(){P_E(!0);sx.prototype.show.call(this)};
  13683. Lr.prototype.hide=function(){P_E(!1);sx.prototype.hide.call(this)};g.M(k$,Sx);g.Q=k$.prototype;
  13684. g.Q.init=function(d,q){Sx.prototype.init.call(this,d,q,{});if(q.durationMilliseconds){if(q.durationMilliseconds<0){g.Zz(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+q.durationMilliseconds));return}this.U=q.durationMilliseconds}else this.U=this.G.F0();var T;if((T=q.previewText)==null||!T.text||g.nh(q.previewText.text))g.Zz(Error("No text is returned for AdPreview."));else{this.X=q.previewText;q.previewText.isTemplated||g.Qp(this.j,q.previewText.text);var Y;
  13685. if(((Y=this.api.getVideoData(1))==null?0:Y.fp)&&q.previewImage){var e,U;(d=((U=xU(((e=q.previewImage)==null?void 0:e.sources)||[],52,!1))==null?void 0:U.url)||"")&&d.length?(this.previewImage=new g.Ji({Y:"img",D:"ytp-preview-ad__image",Z:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",d),g.C(this,this.previewImage),this.previewImage.IU(this.element)):g.Zz(Error("Failed to get imageUrl in AdPreview."))}else this.j.classList.add("ytp-preview-ad__text--padding--wide")}};
  13686. g.Q.clear=function(){this.hide()};
  13687. g.Q.hide=function(){vk(this);Sx.prototype.hide.call(this)};
  13688. g.Q.show=function(){lE(this);Sx.prototype.show.call(this)};
  13689. g.Q.K3=function(){this.hide()};
  13690. g.Q.Ba=function(){if(this.G){var d=this.G.getProgressState();if(d!=null&&d.current)if(d=1E3*d.current,d>=this.U)this.transition.hide();else{var q;if((q=this.X)==null?0:q.isTemplated)if(q=Math.max(0,Math.ceil((this.U-d)/1E3)),q!==this.T){var T,Y;(d=(T=this.X)==null?void 0:(Y=T.text)==null?void 0:Y.replace("{TIME_REMAINING}",String(q)))&&g.Qp(this.j,d);this.T=q}}}};g.M(Pe,sx);
  13691. Pe.prototype.init=function(d,q){sx.prototype.init.call(this,d,q,{});var T,Y;if((d=((Y=xU(((T=q.image)==null?void 0:T.sources)||[],WjR(q),!0))==null?void 0:Y.url)||"")&&d.length){T=this.Qv("ytp-ad-avatar");T.src=d;var e,U;if(Y=(e=q.interaction)==null?void 0:(U=e.accessibility)==null?void 0:U.label)T.alt=Y;switch(q.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");
  13692. 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;case "AD_AVATAR_SIZE_RESPONSIVE":this.element.classList.add("ytp-ad-avatar--size-responsive");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(q.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":this.element.classList.add("ytp-ad-avatar--rounded-corner");
  13693. break;default:this.element.classList.add("ytp-ad-avatar--circular")}}else g.Zz(Error("Failed to get imageUrl in AdAvatar."))};
  13694. Pe.prototype.clear=function(){this.hide()};
  13695. Pe.prototype.onClick=function(d){sx.prototype.onClick.call(this,d)};g.M(We,sx);
  13696. We.prototype.init=function(d,q){sx.prototype.init.call(this,d,q,{});var T;d=(T=q.label)==null?void 0:T.content;if((T=d!=null&&!g.nh(d))||q.iconImage){T&&(this.buttonText=new g.Ji({Y:"span",D:"ytp-ad-button-vm__text",j5:d}),g.C(this,this.buttonText),this.buttonText.IU(this.element));var Y,e,U=((Y=q.interaction)==null?0:(e=Y.accessibility)==null?0:e.label)||T?d:"";U&&Wh(this.element,U+" This link opens in new tab");kM(this.element);if(q.iconImage){Y=void 0;if(q.iconImage){a:{e=q.iconImage;if(e.sources)for(e=
  13697. g.E(e.sources),d=e.next();!d.done;d=e.next())if(d=d.value,U=void 0,(U=d.clientResource)==null?0:U.imageName){e=d;break a}e=void 0}if(e){var b;Y={iconType:(b=e.clientResource)==null?void 0:b.imageName}}}b=Ox(Y,!1,this.U);b!=null&&(this.buttonIcon=new g.Ji({Y:"span",D:"ytp-ad-button-vm__icon",V:[b]}),g.C(this,this.buttonIcon),q.iconLeading?(yp(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):T?(this.buttonIcon.IU(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")):
  13698. (this.buttonIcon.IU(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(q.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_FILLED":this.api.N("delhi_modern_web_player")?this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.G?"ytp-ad-button-vm--style-filled-dark":
  13699. "ytp-ad-button-vm--style-filled");break;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(q.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button-vm--size-compact");break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button-vm--size-large");break;default:this.element.classList.add("ytp-ad-button-vm--size-default")}}else g.OL(Error("AdButton does not have label or an icon."))};
  13700. We.prototype.clear=function(){this.hide()};
  13701. We.prototype.onClick=function(d){sx.prototype.onClick.call(this,d)};g.M(C_n,Sx);g.Q=C_n.prototype;
  13702. g.Q.init=function(d,q){Sx.prototype.init.call(this,d,q,{});this.api.C().N("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.Qv("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"),
  13703. this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),yp(this.Qv("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(d=g.D(q.avatar,mO)){var T=q.headline;if(T){var Y=q.description;if(Y){var e=g.D(q.button,lU);e?(this.adAvatar.init(qP("ad-avatar"),d),this.headline.init(qP("ad-simple-attributed-string"),new au(T)),this.description.init(qP("ad-simple-attributed-string"),new au(Y)),T.content&&T.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),
  13704. this.adButton.init(qP("ad-button"),e),this.startMilliseconds=q.startMs||0,this.api.uB()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.r8.bind(this)),lE(this)):g.Zz(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Zz(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Zz(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Zz(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))};
  13705. g.Q.Ba=function(){if(this.G){var d=this.G.getProgressState();d&&d.current&&1E3*d.current>=this.startMilliseconds&&(vk(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}};
  13706. g.Q.K3=function(){this.clear()};
  13707. g.Q.onClick=function(d){this.api.pauseVideo();Sx.prototype.onClick.call(this,d)};
  13708. g.Q.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.r8.bind(this))};
  13709. g.Q.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();Sx.prototype.show.call(this)};
  13710. g.Q.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();Sx.prototype.hide.call(this)};
  13711. g.Q.r8=function(d){d==="hidden"?this.show():this.hide()};g.M(Cr,sx);g.Q=Cr.prototype;
  13712. g.Q.init=function(d,q){sx.prototype.init.call(this,d,q,{});if(!q.label||g.nh(q.label))g.Zz(Error("No label is returned for SkipAdButton."));else if(g.Qp(this.T,q.label),d=Ox({iconType:"SKIP_NEXT_NEW"}),d==null)g.Zz(Error("Unable to retrieve icon for SkipAdButton"));else if(this.j=new g.Ji({Y:"span",D:"ytp-skip-ad-button__icon",V:[d]}),g.C(this,this.j),this.j.IU(this.element),this.api.C().experiments.Wv("enable_skip_to_next_messaging")&&(q=g.rt(q.targetId)))this.U=!0,this.element.setAttribute("data-tooltip-target-id",q),
  13713. this.element.setAttribute("data-tooltip-target-fixed","")};
  13714. g.Q.onClick=function(d){d&&d.preventDefault();var q,T;Xj_(d,{contentCpn:(T=(q=this.api.getVideoData(1))==null?void 0:q.clientPlaybackNonce)!=null?T:""})===0?this.api.gO("onAbnormalityDetected"):(sx.prototype.onClick.call(this,d),this.api.gO("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))};
  13715. g.Q.clear=function(){this.G.reset();this.hide()};
  13716. g.Q.hide=function(){sx.prototype.hide.call(this)};
  13717. g.Q.show=function(){this.G.start();sx.prototype.show.call(this);this.U&&this.api.C().experiments.Wv("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.M(u1L,Sx);g.Q=u1L.prototype;
  13718. g.Q.init=function(d,q){Sx.prototype.init.call(this,d,q,{});d=g.D(q.preskipState,jyl);var T;if((T=this.api.getVideoData())==null?0:T.isDaiEnabled()){if(!d){g.Zz(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.U=new k$(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.G);g.C(this,this.U);this.U.IU(this.element);var Y;(Y=this.U)==null||Y.init(qP("preview-ad"),d);(T=this.U)!=null&&(T.transition.show(100),T.show())}(T=g.D(q.skippableState,AnN))?(q.skipOffsetMilliseconds!=
  13719. null?this.skipOffsetMilliseconds=q.skipOffsetMilliseconds:(g.OL(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.j.init(qP("skip-button"),T),this.show()):g.Zz(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))};
  13720. g.Q.show=function(){lE(this);Sx.prototype.show.call(this)};
  13721. g.Q.hide=function(){!this.isSkippable&&this.U?this.U.hide():this.j&&this.j.hide();vk(this);Sx.prototype.hide.call(this)};
  13722. g.Q.clear=function(){var d;(d=this.U)==null||d.clear();this.j&&this.j.clear();vk(this);Sx.prototype.hide.call(this)};
  13723. g.Q.K3=function(){this.hide()};
  13724. g.Q.Ba=function(){if(1E3*this.G.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var d;(d=this.U)!=null&&d.transition.hide();(d=this.j)!=null&&(d.transition.show(),d.show())}};g.M(uU,sx);
  13725. uU.prototype.init=function(d,q){sx.prototype.init.call(this,d,q,{});if(q.label){var T;((T=q.label)==null?0:T.content)&&!g.nh(q.label.content)&&(this.linkText=new g.Ji({Y:"span",D:"ytp-visit-advertiser-link__text",j5:q.label.content}),g.C(this,this.linkText),this.linkText.IU(this.element));var Y,e;if((Y=q.interaction)==null?0:(e=Y.accessibility)==null?0:e.label)Wh(this.element,q.interaction.accessibility.label+" This link opens in new tab");else{var U;((U=q.label)==null?0:U.content)&&!g.nh(q.label.content)&&Wh(this.element,
  13726. q.label.content+" This link opens in new tab")}kM(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.Zz(Error("No label found in VisitAdvertiserLink."))};
  13727. uU.prototype.onClick=function(d){sx.prototype.onClick.call(this,d);this.api.onAdUxClicked(this.componentType,this.layoutId)};
  13728. uU.prototype.clear=function(){this.hide()};g.M(Dr,sx);
  13729. Dr.prototype.init=function(d,q,T,Y){sx.prototype.init.call(this,d,q,{});if(q.skipOrPreview){T=q.skipOrPreview;d=g.D(T,pZI);T=g.D(T,jyl);if(d)this.gJ=new u1L(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.U),g.C(this,this.gJ),this.gJ.IU(this.K),this.gJ.init(qP("skip-ad"),d);else{var e;T&&((e=this.api.getVideoData())==null?0:e.isDaiEnabled())&&(this.T=new k$(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.U,1),g.C(this,this.T),this.T.IU(this.K),this.T.init(qP("ad-preview"),
  13730. T),e=this.T,e.transition.show(100),e.show())}if(e=g.D(q.skipOrPreview,pZI))var U=e.skipOffsetMilliseconds}q.playerAdCard&&(e=g.D(q.playerAdCard,aGn))&&(this.playerAdCard=new C_n(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.U),g.C(this,this.playerAdCard),this.playerAdCard.IU(this.z2),this.playerAdCard.init(qP("ad-avatar-lockup-card"),e));q.adBadgeRenderer&&((e=g.D(q.adBadgeRenderer,Sy))?(this.j=new pG(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,!0),g.C(this,
  13731. this.j),this.j.IU(this.G),this.j.init(qP("ad-badge"),e)):g.Zz(Error("AdBadgeViewModel is not found in player overlay layout.")));q.adPodIndex&&(e=g.D(q.adPodIndex,Qyj))&&(this.adPodIndex=new Z0(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),g.C(this,this.adPodIndex),this.adPodIndex.IU(this.G),this.adPodIndex.init(qP("ad-pod-index"),e));q.adInfoRenderer&&((e=g.D(q.adInfoRenderer,VP))?(this.adInfoButton=new iE(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.element,
  13732. void 0,!0),g.C(this,this.adInfoButton),this.j!==void 0?this.G.insertBefore(this.adInfoButton.element,this.j.element.nextSibling):this.adInfoButton.IU(this.G),this.adInfoButton.init(qP("ad-info-hover-text-button"),e,this.macros)):g.OL(Error("AdInfoRenderer is not found in player overlay layout.")));var b;e=(b=this.api.getVideoData())==null?void 0:b.isDaiEnabled();q.adDurationRemaining&&e&&(b=g.D(q.adDurationRemaining,Jnq))&&(this.adDurationRemaining=new EP(this.api,this.layoutId,this.interactionLoggingClientData,
  13733. this.Nk,this.U,Y.videoAdDurationSeconds,!0),g.C(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.G.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.IU(this.G),this.adDurationRemaining.init(qP("ad-duration-remaining"),b,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));q.visitAdvertiserLink&&(Y=g.D(q.visitAdvertiserLink,OnB))&&(this.visitAdvertiserLink=new uU(this.api,this.layoutId,
  13734. this.interactionLoggingClientData,this.Nk),g.C(this,this.visitAdvertiserLink),this.visitAdvertiserLink.IU(this.G),this.visitAdvertiserLink.init(qP("visit-advertiser-link"),Y));q.adDisclosureBanner&&(q=g.D(q.adDisclosureBanner,HnL))&&(this.adDisclosureBanner=new OP(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),g.C(this,this.adDisclosureBanner),this.adDisclosureBanner.IU(this.UD),this.adDisclosureBanner.init(qP("ad-disclosure-banner"),q));this.X=new tm(this.api,this.U,U,!0);g.C(this,
  13735. this.X);g.o6(this.api,this.X.element,4);this.show()};
  13736. Dr.prototype.clear=function(){this.hide()};g.M(DHB,sx);g.Q=DHB.prototype;
  13737. g.Q.init=function(d,q){sx.prototype.init.call(this,d,q,{});if(q!=null&&q.title)if(d=q.title)if(this.headline.init(qP("ad-simple-attributed-string"),new au(d)),d=g.D(q.moreInfoButton,lU)){if(this.moreInfoButton.init(qP("ad-button"),d),q.descriptions)q.descriptions.length>0&&(d=q.descriptions[0])&&(this.G=new Am(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),g.C(this,this.G),this.G.IU(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.G.init(qP("ad-simple-attributed-string"),
  13738. new au(d))),q.descriptions.length>1&&(q=q.descriptions[1])&&(this.U=new Am(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),g.C(this,this.U),this.U.IU(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.U.init(qP("ad-simple-attributed-string"),new au(q)))}else g.Zz(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.Zz(Error("No headline found in AdGridCardText."));else g.Zz(Error("No headline found in AdGridCardText."))};
  13739. g.Q.onClick=function(d){sx.prototype.onClick.call(this,d);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)};
  13740. g.Q.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var d;(d=this.G)==null||d.clear();var q;(q=this.U)==null||q.clear()};
  13741. g.Q.hide=function(){this.headline.hide();this.moreInfoButton.hide();var d;(d=this.G)==null||d.hide();var q;(q=this.U)==null||q.hide();sx.prototype.hide.call(this)};
  13742. g.Q.show=function(){sx.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var d;(d=this.G)==null||d.show();var q;(q=this.U)==null||q.show()};g.M(wB,sx);wB.prototype.init=function(d,q){sx.prototype.init.call(this,d,q,{});if(q!=null&&q.gridCards)if(q.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.Zz(Error("Only single column style is currently supported in AdGridCardCollection."));else for(d=g.E(q.gridCards),q=d.next();!q.done;q=d.next()){if(q=g.D(q.value,ESN)){var T=new DHB(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk);g.C(this,T);T.IU(this.element);T.init(qP("ad-grid-card-text"),q);this.G.push(T)}}else g.Zz(Error("No grid cards found in AdGridCardCollection."))};
  13743. wB.prototype.show=function(){for(var d=g.E(this.G),q=d.next();!q.done;q=d.next())q.value.show();sx.prototype.show.call(this)};
  13744. wB.prototype.clear=function(){this.hide();for(var d=g.E(this.G),q=d.next();!q.done;q=d.next())q.value.clear()};
  13745. wB.prototype.hide=function(){for(var d=g.E(this.G),q=d.next();!q.done;q=d.next())q.value.hide();sx.prototype.hide.call(this)};g.M(fr,Sx);g.Q=fr.prototype;g.Q.init=function(d,q,T,Y,e){e=e===void 0?0:e;Sx.prototype.init.call(this,d,q,T,Y);this.playerProgressOffsetMs=e;lE(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.BL.bind(this));this.api.addEventListener("resize",this.Im.bind(this));this.api.uB()?(this.U=!0,this.api.Kt(!0),this.show()):this.hide()};
  13746. g.Q.Ba=function(){if(this.G){var d=this.G.getProgressState();d&&d.current&&!this.U&&1E3*d.current>=this.playerProgressOffsetMs&&(this.U=!0,this.api.Kt(!0),this.show())}};
  13747. g.Q.K3=function(){this.U&&this.api.Kt(!1);this.hide()};
  13748. g.Q.clear=function(){this.api.Kt(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.BL.bind(this));this.api.removeEventListener("resize",this.Im.bind(this));vk(this);this.hide()};
  13749. g.Q.hide=function(){wg7(!1);Sx.prototype.hide.call(this)};
  13750. g.Q.show=function(){wg7(!0);Sx.prototype.show.call(this)};g.M(fXc,fr);g.Q=fXc.prototype;
  13751. g.Q.init=function(d,q,T,Y){if(q!=null&&q.adGridCardCollection)if(q!=null&&q.adButton){var e=Number(q.playerProgressOffsetMs||"0");isNaN(e)?fr.prototype.init.call(this,d,q,T,Y):fr.prototype.init.call(this,d,q,T,Y,e);d=q.headline;T=g.D(q.adAvatar,mO);d&&T?(this.headline=new Am(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),g.C(this,this.headline),this.headline.IU(this.Qv("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(qP("ad-simple-attributed-string"),new au(d)),
  13752. this.adAvatar=new Pe(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),g.C(this,this.adAvatar),this.adAvatar.IU(this.Qv("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(qP("ad-avatar"),T)):this.T.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");d=g.D(q.adGridCardCollection,cnc);this.adGridCardCollection.init(qP("ad-grid-card-collection"),d);q=g.D(q.adButton,lU);this.adButton.init(qP("ad-button"),q);
  13753. this.hide()}else g.Zz(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.Zz(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))};
  13754. g.Q.onClick=function(d){(this.adButton&&g.HB(this.adButton.element,d.target)||this.adAvatar&&g.HB(this.adAvatar.element,d.target))&&this.api.pauseVideo();fr.prototype.onClick.call(this,d);this.api.onAdUxClicked(this.componentType,this.layoutId)};
  13755. g.Q.Im=function(){};
  13756. g.Q.clear=function(){this.hide();var d;(d=this.headline)==null||d.clear();var q;(q=this.adAvatar)==null||q.clear();this.adGridCardCollection.clear();this.adButton.clear();fr.prototype.clear.call(this)};
  13757. g.Q.show=function(){var d;(d=this.headline)==null||d.show();var q;(q=this.adAvatar)==null||q.show();this.adGridCardCollection.show();this.adButton.show();fr.prototype.show.call(this)};
  13758. g.Q.hide=function(){var d;(d=this.headline)==null||d.hide();var q;(q=this.adAvatar)==null||q.hide();this.adGridCardCollection.hide();this.adButton.hide();fr.prototype.hide.call(this)};
  13759. g.Q.BL=function(d){d==="transitioning"?(this.j.classList.remove("ytp-ad-underlay-clickable"),this.show()):d==="visible"?this.j.classList.add("ytp-ad-underlay-clickable"):d==="hidden"&&(this.hide(),this.j.classList.remove("ytp-ad-underlay-clickable"))};g.M(z_,sx);
  13760. z_.prototype.init=function(d,q){sx.prototype.init.call(this,d,q,{});if(q.attributes===void 0)g.Zz(Error("No attributes found in AdDetailsLineViewModel."));else if(q.style===void 0)g.Zz(Error("No style found in AdDetailsLineViewModel."));else{d=g.E(q.attributes);for(var T=d.next();!T.done;T=d.next())if(T=T.value,T.text!==void 0){T=T.text;var Y=q.style,e=new Am(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk);g.C(this,e);e.IU(this.element);a:switch(Y){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":Y="ytp-ad-details-line__text--style-responsive";
  13761. break a;default:Y="ytp-ad-details-line__text--style-standard"}e.element.classList.add(Y);e.init(qP("ad-simple-attributed-string"),new au(T));this.G.push(e)}this.show()}};
  13762. z_.prototype.show=function(){this.G.forEach(function(d){d.show()});
  13763. sx.prototype.show.call(this)};
  13764. z_.prototype.clear=function(){this.hide()};
  13765. z_.prototype.hide=function(){this.G.forEach(function(d){d.hide()});
  13766. sx.prototype.hide.call(this)};g.M(iU,sx);iU.prototype.init=function(d,q){sx.prototype.init.call(this,d,q,{});var T,Y;(d=((Y=xU(((T=q.image)==null?void 0:T.sources)||[]))==null?void 0:Y.url)||"")&&d.length?(T=this.Qv("ytp-image-background-image"),g.Dv(T,"backgroundImage","url("+d+")"),q.blurLevel!==void 0&&g.Dv(T,"filter","blur("+q.blurLevel+"px)"),q.gradient!==void 0&&(q=new g.f({Y:"div",hF:["ytp-image-background--gradient-vertical"]}),g.C(this,q),q.IU(this.element)),this.show()):g.Zz(Error("Failed to get imageUrl in ImageBackground."))};
  13767. iU.prototype.clear=function(){this.hide()};g.M(znB,Sx);g.Q=znB.prototype;g.Q.init=function(d,q){Sx.prototype.init.call(this,d,q,{});g.Dv(this.j,"stroke-dasharray","0 "+this.U);this.show()};
  13768. g.Q.clear=function(){this.hide()};
  13769. g.Q.hide=function(){vk(this);Sx.prototype.hide.call(this)};
  13770. g.Q.show=function(){lE(this);Sx.prototype.show.call(this)};
  13771. g.Q.K3=function(){this.hide()};
  13772. g.Q.Ba=function(){if(this.G){var d=this.G.getProgressState();d!=null&&d.current!=null&&g.Dv(this.j,"stroke-dasharray",d.current/d.seekableEnd*this.U+" "+this.U)}};g.M(IP,sx);
  13773. IP.prototype.init=function(d,q){sx.prototype.init.call(this,d,q,{});if(IXn(q)){this.adAvatar=new Pe(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk);g.C(this,this.adAvatar);this.adAvatar.IU(this.Qv("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(qP("ad-avatar"),g.D(q.adAvatar,mO));this.headline=new Am(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk);g.C(this,this.headline);this.headline.IU(this.Qv("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"));this.headline.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline");
  13774. this.headline.init(qP("ad-simple-attributed-string"),new au(q.headline));if(d=g.D(q.adDetailsLine,hSn))this.detailsLine=new z_(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),g.C(this,this.detailsLine),this.detailsLine.IU(this.Qv("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(qP("ad-details-line"),d);this.adButton=new We(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,!0);g.C(this,this.adButton);
  13775. this.adButton.IU(this.Qv("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(qP("ad-button"),g.D(q.adButton,lU));this.adBadge=new pG(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,!0);g.C(this,this.adBadge);this.adBadge.IU(this.T);this.adBadge.init(qP("ad-badge"),g.D(q.adBadge,Sy));this.adInfoButton=new iE(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.element,void 0,!0);g.C(this,this.adInfoButton);this.adInfoButton.IU(this.T);
  13776. this.adInfoButton.init(qP("ad-info-hover-text-button"),g.D(q.adInfoRenderer,VP),this.macros);if(d=g.D(q.skipAdButton,AnN))this.skipAdButton=new Cr(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),g.C(this,this.skipAdButton),this.skipAdButton.IU(this.element),this.skipAdButton.init(qP("skip-button"),d);this.U=new QZ(q.durationMilliseconds);g.C(this,this.U);if(d=g.D(q.countdownViewModel,Znx))this.G=new znB(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk,this.U),g.C(this,
  13777. this.G),this.G.IU(this.Qv("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.G.init(qP("timed-pie-countdown"),d);if(q=g.D(q.imageBackground,Mvq))this.imageBackground=new iU(this.api,this.layoutId,this.interactionLoggingClientData,this.Nk),g.C(this,this.imageBackground),this.imageBackground.IU(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(qP("image-background"),
  13778. q);this.show();this.element.focus()}};
  13779. IP.prototype.clear=function(){g.jX(this.j);this.hide()};
  13780. IP.prototype.show=function(){iNQ(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();sx.prototype.show.call(this)};
  13781. IP.prototype.hide=function(){iNQ(!1);this.adAvatar&&this.adAvatar.hide();this.headline&&this.headline.hide();this.adButton&&this.adButton.hide();this.detailsLine&&this.detailsLine.hide();this.adBadge&&this.adBadge.hide();this.adInfoButton&&this.adInfoButton.hide();this.skipAdButton&&this.skipAdButton.hide();this.G&&this.G.hide();this.imageBackground&&this.imageBackground.hide();sx.prototype.hide.call(this)};g.M(ve,g.YP);g.Q=ve.prototype;g.Q.F0=function(){return 1E3*this.api.getDuration(this.f3,!1)};
  13782. g.Q.stop=function(){this.G&&this.CC.t1(this.G)};
  13783. g.Q.Yc=function(){var d=this.api.getProgressState(this.f3);this.U={seekableStart:d.seekableStart,seekableEnd:d.seekableEnd,current:this.api.getCurrentTime(this.f3,!1)};this.publish("h")};
  13784. g.Q.getProgressState=function(){return this.U};
  13785. g.Q.w$=function(d){g.gs(d,2)&&this.publish("g")};var dbq="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 ads-engagement-panel-layout banner-image top-banner-image-text-icon-buttoned".split(" "));g.M(oP,uE);
  13786. oP.prototype.j=function(d){var q=d.id,T=d.content,Y=T.componentType;if(!dbq.includes(Y))switch(d.actionType){case 1:d=this.api;var e=this.Nk,U=T.layoutId,b=T.interactionLoggingClientData,J=T instanceof Pp?T.C_:!1,F=T instanceof Pp||T instanceof hm?T.jO:!1;b=b===void 0?{}:b;J=J===void 0?!1:J;F=F===void 0?!1:F;switch(Y){case "invideo-overlay":d=new $HB(d,U,b,e);break;case "player-overlay":d=new BG(d,U,b,e,new ve(d),F);break;case "player-overlay-layout":d=new Dr(d,U,b,e,new ve(d));break;case "survey":d=
  13787. new G_(d,U,b,e);break;case "ad-action-interstitial":d=new UH7(d,U,b,e,J,F);break;case "video-interstitial-buttoned-centered":d=new IP(d,U,b,e);break;case "survey-interstitial":d=new Lr(d,U,b,e);break;case "ad-message":d=new HNR(d,U,b,e,new ve(d,1));break;case "player-underlay":d=new MDN(d,U,b,e);break;case "display-underlay-text-grid-cards":d=new fXc(d,U,b,e,new ve(d));break;default:d=null}if(!d){g.OL(Error("No UI component returned from ComponentFactory for type: "+Y));break}g.sN(this.components,
  13788. q)?g.OL(Error("Ad UI component already registered: "+q)):this.components[q]=d;d.bind(T);T instanceof Lw?this.U?this.U.append(d.bW):g.OL(Error("Underlay view was not created but UnderlayRenderer was created")):this.T.append(d.bW);break;case 2:q=mHn(this,d);if(q==null)break;q.bind(T);break;case 3:T=mHn(this,d),T!=null&&(g.T1(T),g.sN(this.components,q)?(T=this.components,q in T&&delete T[q]):g.OL(Error("Ad UI component does not exist: "+q)))}};
  13789. oP.prototype.ir=function(){g.Yt(Object.values(this.components));this.components={};uE.prototype.ir.call(this)};g.M(S6j,g.na);g.Q=S6j.prototype;g.Q.create=function(){try{lXL(this),this.load(),this.created=!0,lXL(this)}catch(d){Jm(d instanceof Error?d:String(d))}};
  13790. g.Q.load=function(){try{VD7(this)}finally{qk(pr(this.G).u9)&&this.player.Lz("ad",1)}};
  13791. g.Q.destroy=function(){var d=this.player.getVideoData(1);this.G.G.Da.Zt(d&&d.clientPlaybackNonce||"");this.unload();this.created=!1};
  13792. g.Q.unload=function(){g.na.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(q){Jm(q instanceof Error?q:String(q))}if(this.U!=null){var d=this.U;this.U=null;d.dispose()}this.j.reset()};
  13793. g.Q.Ux=function(){return!1};
  13794. g.Q.getAdState=function(){return-1};
  13795. g.Q.getOptions=function(){return Object.values(V0j)};
  13796. g.Q.Vg=function(d,q){q=q===void 0?{}:q;switch(d){case "replaceUrlMacros":return d=q,d.url?(q=hdX(this.player),Object.assign(q,d.mfZ),d=g.a1(d.url,q)):d=null,d;case "onAboutThisAdPopupClosed":this.q1(q);break;case "executeCommand":d=q;d.command&&d.layoutId&&this.executeCommand(d);break;default:return null}};
  13797. g.Q.sI=function(d){var q;return!((q=this.G.G.eT)==null||!q.get().sI(d))};
  13798. g.Q.q1=function(d){d.isMuted&&ny6(pr(this.G).NF,pr(this.G).je,d.layoutId);this.o9&&this.o9.q1()};
  13799. g.Q.executeCommand=function(d){pr(this.G).Nk.executeCommand(d.command,d.layoutId)};g.Vf("yt.player.Application.create",g.c1.create);g.Vf("yt.player.Application.createAlternate",g.c1.create);CbN(jn(),oQc);var qSI=g.qx("ytcsi.tick");qSI&&qSI("pe");g.Oi("ad",S6j);g.M(g.qJ,g.W);g.qJ.prototype.start=function(d,q,T){this.config={from:d,to:q,duration:T,startTime:(0,g.cj)()};this.next()};
  13800. g.qJ.prototype.stop=function(){this.delay.stop();this.config=void 0};
  13801. g.qJ.prototype.next=function(){if(this.config){var d=this.config,q=d.from,T=d.to,Y=d.duration;d=d.startTime;var e=(0,g.cj)()-d;d=this.G;Y=mSH(d,e/Y);if(Y==0)d=d.L;else if(Y==1)d=d.B;else{e=DG(d.L,d.S,Y);var U=DG(d.S,d.X,Y);d=DG(d.X,d.B,Y);e=DG(e,U,Y);U=DG(U,d,Y);d=DG(e,U,Y)}d=g.Cn(d,0,1);this.callback(q+(T-q)*d);d<1&&this.delay.start()}};g.M(g.To,g.f);g.Q=g.To.prototype;g.Q.hasSuggestions=function(){return this.suggestionData.length>0};
  13802. g.Q.PX=function(){this.U&&this.scrollTo(this.scrollPosition-this.containerWidth)};
  13803. g.Q.show=function(){g.f.prototype.show.call(this);UxN(this)};
  13804. g.Q.G1=function(){this.U&&this.scrollTo(this.scrollPosition+this.containerWidth)};
  13805. g.Q.xX=function(){this.gz(this.api.OD().getPlayerSize())};
  13806. g.Q.gz=function(d){var q=this.api.isEmbedsShortsMode()?.5625:16/9,T=this.api.rU();d=d.width-(T?112:58);T=Math.ceil(d/(T?320:192));var Y=(d-T*8)/T;q=Math.floor(Y/q);for(var e=g.E(this.G),U=e.next();!U.done;U=e.next())U=U.value.Qv("ytp-suggestion-image"),U.style.width=Y+"px",U.style.height=q+"px";this.suggestions.element.style.height=q+"px";this.T=Y;this.B=q;this.containerWidth=d;this.columns=T;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.Y0(this)};
  13807. g.Q.onVideoDataChange=function(){var d=this.api.C(),q=this.api.getVideoData();this.X=q.kc?!1:d.T;this.suggestionData=q.suggestions?g.Zl(q.suggestions,function(T){return T&&!T.playlistId}):[];
  13808. XRq(this);q.kc?this.title.update({title:g.bO("\u6765\u81ea\u201c$DNI_RELATED_CHANNEL\u201d\u9891\u9053\u7684\u66f4\u591a\u89c6\u9891",{DNI_RELATED_CHANNEL:q.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"\u66f4\u591a\u77ed\u89c6\u9891":"\u66f4\u591a\u89c6\u9891"})};
  13809. g.Q.scrollTo=function(d){d=g.Cn(d,this.containerWidth-this.suggestionData.length*(this.T+8),0);this.L.start(this.scrollPosition,d,1E3);this.scrollPosition=d;g.Y0(this);UxN(this)};})(_yt_player);