react-dom-server-legacy.browser.production.js 232 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603
  1. /**
  2. * @license React
  3. * react-dom-server-legacy.browser.production.js
  4. *
  5. * Copyright (c) Meta Platforms, Inc. and affiliates.
  6. *
  7. * This source code is licensed under the MIT license found in the
  8. * LICENSE file in the root directory of this source tree.
  9. */
  10. /*
  11. JS Implementation of MurmurHash3 (r136) (as of May 20, 2011)
  12. Copyright (c) 2011 Gary Court
  13. Permission is hereby granted, free of charge, to any person obtaining a copy
  14. of this software and associated documentation files (the "Software"), to deal
  15. in the Software without restriction, including without limitation the rights
  16. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  17. copies of the Software, and to permit persons to whom the Software is
  18. furnished to do so, subject to the following conditions:
  19. The above copyright notice and this permission notice shall be included in
  20. all copies or substantial portions of the Software.
  21. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  22. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  23. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  24. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  25. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  26. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  27. SOFTWARE.
  28. */
  29. "use strict";
  30. var React = require("react"),
  31. ReactDOM = require("react-dom");
  32. function formatProdErrorMessage(code) {
  33. var url = "https://react.dev/errors/" + code;
  34. if (1 < arguments.length) {
  35. url += "?args[]=" + encodeURIComponent(arguments[1]);
  36. for (var i = 2; i < arguments.length; i++)
  37. url += "&args[]=" + encodeURIComponent(arguments[i]);
  38. }
  39. return (
  40. "Minified React error #" +
  41. code +
  42. "; visit " +
  43. url +
  44. " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
  45. );
  46. }
  47. var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
  48. REACT_PORTAL_TYPE = Symbol.for("react.portal"),
  49. REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
  50. REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
  51. REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
  52. REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
  53. REACT_CONTEXT_TYPE = Symbol.for("react.context"),
  54. REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
  55. REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
  56. REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
  57. REACT_MEMO_TYPE = Symbol.for("react.memo"),
  58. REACT_LAZY_TYPE = Symbol.for("react.lazy"),
  59. REACT_SCOPE_TYPE = Symbol.for("react.scope"),
  60. REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
  61. REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
  62. REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
  63. REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
  64. MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
  65. function getIteratorFn(maybeIterable) {
  66. if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
  67. maybeIterable =
  68. (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
  69. maybeIterable["@@iterator"];
  70. return "function" === typeof maybeIterable ? maybeIterable : null;
  71. }
  72. var isArrayImpl = Array.isArray;
  73. function murmurhash3_32_gc(key, seed) {
  74. var remainder = key.length & 3;
  75. var bytes = key.length - remainder;
  76. var h1 = seed;
  77. for (seed = 0; seed < bytes; ) {
  78. var k1 =
  79. (key.charCodeAt(seed) & 255) |
  80. ((key.charCodeAt(++seed) & 255) << 8) |
  81. ((key.charCodeAt(++seed) & 255) << 16) |
  82. ((key.charCodeAt(++seed) & 255) << 24);
  83. ++seed;
  84. k1 =
  85. (3432918353 * (k1 & 65535) +
  86. (((3432918353 * (k1 >>> 16)) & 65535) << 16)) &
  87. 4294967295;
  88. k1 = (k1 << 15) | (k1 >>> 17);
  89. k1 =
  90. (461845907 * (k1 & 65535) + (((461845907 * (k1 >>> 16)) & 65535) << 16)) &
  91. 4294967295;
  92. h1 ^= k1;
  93. h1 = (h1 << 13) | (h1 >>> 19);
  94. h1 = (5 * (h1 & 65535) + (((5 * (h1 >>> 16)) & 65535) << 16)) & 4294967295;
  95. h1 = (h1 & 65535) + 27492 + ((((h1 >>> 16) + 58964) & 65535) << 16);
  96. }
  97. k1 = 0;
  98. switch (remainder) {
  99. case 3:
  100. k1 ^= (key.charCodeAt(seed + 2) & 255) << 16;
  101. case 2:
  102. k1 ^= (key.charCodeAt(seed + 1) & 255) << 8;
  103. case 1:
  104. (k1 ^= key.charCodeAt(seed) & 255),
  105. (k1 =
  106. (3432918353 * (k1 & 65535) +
  107. (((3432918353 * (k1 >>> 16)) & 65535) << 16)) &
  108. 4294967295),
  109. (k1 = (k1 << 15) | (k1 >>> 17)),
  110. (h1 ^=
  111. (461845907 * (k1 & 65535) +
  112. (((461845907 * (k1 >>> 16)) & 65535) << 16)) &
  113. 4294967295);
  114. }
  115. h1 ^= key.length;
  116. h1 ^= h1 >>> 16;
  117. h1 =
  118. (2246822507 * (h1 & 65535) + (((2246822507 * (h1 >>> 16)) & 65535) << 16)) &
  119. 4294967295;
  120. h1 ^= h1 >>> 13;
  121. h1 =
  122. (3266489909 * (h1 & 65535) + (((3266489909 * (h1 >>> 16)) & 65535) << 16)) &
  123. 4294967295;
  124. return (h1 ^ (h1 >>> 16)) >>> 0;
  125. }
  126. var assign = Object.assign,
  127. hasOwnProperty = Object.prototype.hasOwnProperty,
  128. VALID_ATTRIBUTE_NAME_REGEX = RegExp(
  129. "^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"
  130. ),
  131. illegalAttributeNameCache = {},
  132. validatedAttributeNameCache = {};
  133. function isAttributeNameSafe(attributeName) {
  134. if (hasOwnProperty.call(validatedAttributeNameCache, attributeName))
  135. return !0;
  136. if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) return !1;
  137. if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName))
  138. return (validatedAttributeNameCache[attributeName] = !0);
  139. illegalAttributeNameCache[attributeName] = !0;
  140. return !1;
  141. }
  142. var unitlessNumbers = new Set(
  143. "animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(
  144. " "
  145. )
  146. ),
  147. aliases = new Map([
  148. ["acceptCharset", "accept-charset"],
  149. ["htmlFor", "for"],
  150. ["httpEquiv", "http-equiv"],
  151. ["crossOrigin", "crossorigin"],
  152. ["accentHeight", "accent-height"],
  153. ["alignmentBaseline", "alignment-baseline"],
  154. ["arabicForm", "arabic-form"],
  155. ["baselineShift", "baseline-shift"],
  156. ["capHeight", "cap-height"],
  157. ["clipPath", "clip-path"],
  158. ["clipRule", "clip-rule"],
  159. ["colorInterpolation", "color-interpolation"],
  160. ["colorInterpolationFilters", "color-interpolation-filters"],
  161. ["colorProfile", "color-profile"],
  162. ["colorRendering", "color-rendering"],
  163. ["dominantBaseline", "dominant-baseline"],
  164. ["enableBackground", "enable-background"],
  165. ["fillOpacity", "fill-opacity"],
  166. ["fillRule", "fill-rule"],
  167. ["floodColor", "flood-color"],
  168. ["floodOpacity", "flood-opacity"],
  169. ["fontFamily", "font-family"],
  170. ["fontSize", "font-size"],
  171. ["fontSizeAdjust", "font-size-adjust"],
  172. ["fontStretch", "font-stretch"],
  173. ["fontStyle", "font-style"],
  174. ["fontVariant", "font-variant"],
  175. ["fontWeight", "font-weight"],
  176. ["glyphName", "glyph-name"],
  177. ["glyphOrientationHorizontal", "glyph-orientation-horizontal"],
  178. ["glyphOrientationVertical", "glyph-orientation-vertical"],
  179. ["horizAdvX", "horiz-adv-x"],
  180. ["horizOriginX", "horiz-origin-x"],
  181. ["imageRendering", "image-rendering"],
  182. ["letterSpacing", "letter-spacing"],
  183. ["lightingColor", "lighting-color"],
  184. ["markerEnd", "marker-end"],
  185. ["markerMid", "marker-mid"],
  186. ["markerStart", "marker-start"],
  187. ["overlinePosition", "overline-position"],
  188. ["overlineThickness", "overline-thickness"],
  189. ["paintOrder", "paint-order"],
  190. ["panose-1", "panose-1"],
  191. ["pointerEvents", "pointer-events"],
  192. ["renderingIntent", "rendering-intent"],
  193. ["shapeRendering", "shape-rendering"],
  194. ["stopColor", "stop-color"],
  195. ["stopOpacity", "stop-opacity"],
  196. ["strikethroughPosition", "strikethrough-position"],
  197. ["strikethroughThickness", "strikethrough-thickness"],
  198. ["strokeDasharray", "stroke-dasharray"],
  199. ["strokeDashoffset", "stroke-dashoffset"],
  200. ["strokeLinecap", "stroke-linecap"],
  201. ["strokeLinejoin", "stroke-linejoin"],
  202. ["strokeMiterlimit", "stroke-miterlimit"],
  203. ["strokeOpacity", "stroke-opacity"],
  204. ["strokeWidth", "stroke-width"],
  205. ["textAnchor", "text-anchor"],
  206. ["textDecoration", "text-decoration"],
  207. ["textRendering", "text-rendering"],
  208. ["transformOrigin", "transform-origin"],
  209. ["underlinePosition", "underline-position"],
  210. ["underlineThickness", "underline-thickness"],
  211. ["unicodeBidi", "unicode-bidi"],
  212. ["unicodeRange", "unicode-range"],
  213. ["unitsPerEm", "units-per-em"],
  214. ["vAlphabetic", "v-alphabetic"],
  215. ["vHanging", "v-hanging"],
  216. ["vIdeographic", "v-ideographic"],
  217. ["vMathematical", "v-mathematical"],
  218. ["vectorEffect", "vector-effect"],
  219. ["vertAdvY", "vert-adv-y"],
  220. ["vertOriginX", "vert-origin-x"],
  221. ["vertOriginY", "vert-origin-y"],
  222. ["wordSpacing", "word-spacing"],
  223. ["writingMode", "writing-mode"],
  224. ["xmlnsXlink", "xmlns:xlink"],
  225. ["xHeight", "x-height"]
  226. ]),
  227. matchHtmlRegExp = /["'&<>]/;
  228. function escapeTextForBrowser(text) {
  229. if (
  230. "boolean" === typeof text ||
  231. "number" === typeof text ||
  232. "bigint" === typeof text
  233. )
  234. return "" + text;
  235. text = "" + text;
  236. var match = matchHtmlRegExp.exec(text);
  237. if (match) {
  238. var html = "",
  239. index,
  240. lastIndex = 0;
  241. for (index = match.index; index < text.length; index++) {
  242. switch (text.charCodeAt(index)) {
  243. case 34:
  244. match = "&quot;";
  245. break;
  246. case 38:
  247. match = "&amp;";
  248. break;
  249. case 39:
  250. match = "&#x27;";
  251. break;
  252. case 60:
  253. match = "&lt;";
  254. break;
  255. case 62:
  256. match = "&gt;";
  257. break;
  258. default:
  259. continue;
  260. }
  261. lastIndex !== index && (html += text.slice(lastIndex, index));
  262. lastIndex = index + 1;
  263. html += match;
  264. }
  265. text = lastIndex !== index ? html + text.slice(lastIndex, index) : html;
  266. }
  267. return text;
  268. }
  269. var uppercasePattern = /([A-Z])/g,
  270. msPattern = /^ms-/,
  271. isJavaScriptProtocol =
  272. /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;
  273. function sanitizeURL(url) {
  274. return isJavaScriptProtocol.test("" + url)
  275. ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')"
  276. : url;
  277. }
  278. var ReactSharedInternals =
  279. React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
  280. ReactDOMSharedInternals =
  281. ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
  282. sharedNotPendingObject = {
  283. pending: !1,
  284. data: null,
  285. method: null,
  286. action: null
  287. },
  288. previousDispatcher = ReactDOMSharedInternals.d;
  289. ReactDOMSharedInternals.d = {
  290. f: previousDispatcher.f,
  291. r: previousDispatcher.r,
  292. D: prefetchDNS,
  293. C: preconnect,
  294. L: preload,
  295. m: preloadModule,
  296. X: preinitScript,
  297. S: preinitStyle,
  298. M: preinitModuleScript
  299. };
  300. var PRELOAD_NO_CREDS = [],
  301. currentlyFlushingRenderState = null,
  302. scriptRegex = /(<\/|<)(s)(cript)/gi;
  303. function scriptReplacer(match, prefix, s, suffix) {
  304. return "" + prefix + ("s" === s ? "\\u0073" : "\\u0053") + suffix;
  305. }
  306. function createResumableState(
  307. identifierPrefix,
  308. externalRuntimeConfig,
  309. bootstrapScriptContent,
  310. bootstrapScripts,
  311. bootstrapModules
  312. ) {
  313. return {
  314. idPrefix: void 0 === identifierPrefix ? "" : identifierPrefix,
  315. nextFormID: 0,
  316. streamingFormat: 0,
  317. bootstrapScriptContent: bootstrapScriptContent,
  318. bootstrapScripts: bootstrapScripts,
  319. bootstrapModules: bootstrapModules,
  320. instructions: 0,
  321. hasBody: !1,
  322. hasHtml: !1,
  323. unknownResources: {},
  324. dnsResources: {},
  325. connectResources: { default: {}, anonymous: {}, credentials: {} },
  326. imageResources: {},
  327. styleResources: {},
  328. scriptResources: {},
  329. moduleUnknownResources: {},
  330. moduleScriptResources: {}
  331. };
  332. }
  333. function createFormatContext(
  334. insertionMode,
  335. selectedValue,
  336. tagScope,
  337. viewTransition
  338. ) {
  339. return {
  340. insertionMode: insertionMode,
  341. selectedValue: selectedValue,
  342. tagScope: tagScope,
  343. viewTransition: viewTransition
  344. };
  345. }
  346. function getChildFormatContext(parentContext, type, props) {
  347. var subtreeScope = parentContext.tagScope & -25;
  348. switch (type) {
  349. case "noscript":
  350. return createFormatContext(2, null, subtreeScope | 1, null);
  351. case "select":
  352. return createFormatContext(
  353. 2,
  354. null != props.value ? props.value : props.defaultValue,
  355. subtreeScope,
  356. null
  357. );
  358. case "svg":
  359. return createFormatContext(4, null, subtreeScope, null);
  360. case "picture":
  361. return createFormatContext(2, null, subtreeScope | 2, null);
  362. case "math":
  363. return createFormatContext(5, null, subtreeScope, null);
  364. case "foreignObject":
  365. return createFormatContext(2, null, subtreeScope, null);
  366. case "table":
  367. return createFormatContext(6, null, subtreeScope, null);
  368. case "thead":
  369. case "tbody":
  370. case "tfoot":
  371. return createFormatContext(7, null, subtreeScope, null);
  372. case "colgroup":
  373. return createFormatContext(9, null, subtreeScope, null);
  374. case "tr":
  375. return createFormatContext(8, null, subtreeScope, null);
  376. case "head":
  377. if (2 > parentContext.insertionMode)
  378. return createFormatContext(3, null, subtreeScope, null);
  379. break;
  380. case "html":
  381. if (0 === parentContext.insertionMode)
  382. return createFormatContext(1, null, subtreeScope, null);
  383. }
  384. return 6 <= parentContext.insertionMode || 2 > parentContext.insertionMode
  385. ? createFormatContext(2, null, subtreeScope, null)
  386. : parentContext.tagScope !== subtreeScope
  387. ? createFormatContext(
  388. parentContext.insertionMode,
  389. parentContext.selectedValue,
  390. subtreeScope,
  391. null
  392. )
  393. : parentContext;
  394. }
  395. function getSuspenseViewTransition(parentViewTransition) {
  396. return null === parentViewTransition
  397. ? null
  398. : {
  399. update: parentViewTransition.update,
  400. enter: "none",
  401. exit: "none",
  402. share: parentViewTransition.update,
  403. name: parentViewTransition.autoName,
  404. autoName: parentViewTransition.autoName,
  405. nameIdx: 0
  406. };
  407. }
  408. function getSuspenseFallbackFormatContext(resumableState, parentContext) {
  409. parentContext.tagScope & 32 && (resumableState.instructions |= 128);
  410. return createFormatContext(
  411. parentContext.insertionMode,
  412. parentContext.selectedValue,
  413. parentContext.tagScope | 12,
  414. getSuspenseViewTransition(parentContext.viewTransition)
  415. );
  416. }
  417. function getSuspenseContentFormatContext(resumableState, parentContext) {
  418. resumableState = getSuspenseViewTransition(parentContext.viewTransition);
  419. var subtreeScope = parentContext.tagScope | 16;
  420. null !== resumableState &&
  421. "none" !== resumableState.share &&
  422. (subtreeScope |= 64);
  423. return createFormatContext(
  424. parentContext.insertionMode,
  425. parentContext.selectedValue,
  426. subtreeScope,
  427. resumableState
  428. );
  429. }
  430. var styleNameCache = new Map();
  431. function pushStyleAttribute(target, style) {
  432. if ("object" !== typeof style) throw Error(formatProdErrorMessage(62));
  433. var isFirst = !0,
  434. styleName;
  435. for (styleName in style)
  436. if (hasOwnProperty.call(style, styleName)) {
  437. var styleValue = style[styleName];
  438. if (
  439. null != styleValue &&
  440. "boolean" !== typeof styleValue &&
  441. "" !== styleValue
  442. ) {
  443. if (0 === styleName.indexOf("--")) {
  444. var nameChunk = escapeTextForBrowser(styleName);
  445. styleValue = escapeTextForBrowser(("" + styleValue).trim());
  446. } else
  447. (nameChunk = styleNameCache.get(styleName)),
  448. void 0 === nameChunk &&
  449. ((nameChunk = escapeTextForBrowser(
  450. styleName
  451. .replace(uppercasePattern, "-$1")
  452. .toLowerCase()
  453. .replace(msPattern, "-ms-")
  454. )),
  455. styleNameCache.set(styleName, nameChunk)),
  456. (styleValue =
  457. "number" === typeof styleValue
  458. ? 0 === styleValue || unitlessNumbers.has(styleName)
  459. ? "" + styleValue
  460. : styleValue + "px"
  461. : escapeTextForBrowser(("" + styleValue).trim()));
  462. isFirst
  463. ? ((isFirst = !1),
  464. target.push(' style="', nameChunk, ":", styleValue))
  465. : target.push(";", nameChunk, ":", styleValue);
  466. }
  467. }
  468. isFirst || target.push('"');
  469. }
  470. function pushBooleanAttribute(target, name, value) {
  471. value &&
  472. "function" !== typeof value &&
  473. "symbol" !== typeof value &&
  474. target.push(" ", name, '=""');
  475. }
  476. function pushStringAttribute(target, name, value) {
  477. "function" !== typeof value &&
  478. "symbol" !== typeof value &&
  479. "boolean" !== typeof value &&
  480. target.push(" ", name, '="', escapeTextForBrowser(value), '"');
  481. }
  482. var actionJavaScriptURL = escapeTextForBrowser(
  483. "javascript:throw new Error('React form unexpectedly submitted.')"
  484. );
  485. function pushAdditionalFormField(value, key) {
  486. this.push('<input type="hidden"');
  487. validateAdditionalFormField(value);
  488. pushStringAttribute(this, "name", key);
  489. pushStringAttribute(this, "value", value);
  490. this.push("/>");
  491. }
  492. function validateAdditionalFormField(value) {
  493. if ("string" !== typeof value) throw Error(formatProdErrorMessage(480));
  494. }
  495. function getCustomFormFields(resumableState, formAction) {
  496. if ("function" === typeof formAction.$$FORM_ACTION) {
  497. var id = resumableState.nextFormID++;
  498. resumableState = resumableState.idPrefix + id;
  499. try {
  500. var customFields = formAction.$$FORM_ACTION(resumableState);
  501. if (customFields) {
  502. var formData = customFields.data;
  503. null != formData && formData.forEach(validateAdditionalFormField);
  504. }
  505. return customFields;
  506. } catch (x) {
  507. if ("object" === typeof x && null !== x && "function" === typeof x.then)
  508. throw x;
  509. }
  510. }
  511. return null;
  512. }
  513. function pushFormActionAttribute(
  514. target,
  515. resumableState,
  516. renderState,
  517. formAction,
  518. formEncType,
  519. formMethod,
  520. formTarget,
  521. name
  522. ) {
  523. var formData = null;
  524. if ("function" === typeof formAction) {
  525. var customFields = getCustomFormFields(resumableState, formAction);
  526. null !== customFields
  527. ? ((name = customFields.name),
  528. (formAction = customFields.action || ""),
  529. (formEncType = customFields.encType),
  530. (formMethod = customFields.method),
  531. (formTarget = customFields.target),
  532. (formData = customFields.data))
  533. : (target.push(" ", "formAction", '="', actionJavaScriptURL, '"'),
  534. (formTarget = formMethod = formEncType = formAction = name = null),
  535. injectFormReplayingRuntime(resumableState, renderState));
  536. }
  537. null != name && pushAttribute(target, "name", name);
  538. null != formAction && pushAttribute(target, "formAction", formAction);
  539. null != formEncType && pushAttribute(target, "formEncType", formEncType);
  540. null != formMethod && pushAttribute(target, "formMethod", formMethod);
  541. null != formTarget && pushAttribute(target, "formTarget", formTarget);
  542. return formData;
  543. }
  544. function pushAttribute(target, name, value) {
  545. switch (name) {
  546. case "className":
  547. pushStringAttribute(target, "class", value);
  548. break;
  549. case "tabIndex":
  550. pushStringAttribute(target, "tabindex", value);
  551. break;
  552. case "dir":
  553. case "role":
  554. case "viewBox":
  555. case "width":
  556. case "height":
  557. pushStringAttribute(target, name, value);
  558. break;
  559. case "style":
  560. pushStyleAttribute(target, value);
  561. break;
  562. case "src":
  563. case "href":
  564. if ("" === value) break;
  565. case "action":
  566. case "formAction":
  567. if (
  568. null == value ||
  569. "function" === typeof value ||
  570. "symbol" === typeof value ||
  571. "boolean" === typeof value
  572. )
  573. break;
  574. value = sanitizeURL("" + value);
  575. target.push(" ", name, '="', escapeTextForBrowser(value), '"');
  576. break;
  577. case "defaultValue":
  578. case "defaultChecked":
  579. case "innerHTML":
  580. case "suppressContentEditableWarning":
  581. case "suppressHydrationWarning":
  582. case "ref":
  583. break;
  584. case "autoFocus":
  585. case "multiple":
  586. case "muted":
  587. pushBooleanAttribute(target, name.toLowerCase(), value);
  588. break;
  589. case "xlinkHref":
  590. if (
  591. "function" === typeof value ||
  592. "symbol" === typeof value ||
  593. "boolean" === typeof value
  594. )
  595. break;
  596. value = sanitizeURL("" + value);
  597. target.push(" ", "xlink:href", '="', escapeTextForBrowser(value), '"');
  598. break;
  599. case "contentEditable":
  600. case "spellCheck":
  601. case "draggable":
  602. case "value":
  603. case "autoReverse":
  604. case "externalResourcesRequired":
  605. case "focusable":
  606. case "preserveAlpha":
  607. "function" !== typeof value &&
  608. "symbol" !== typeof value &&
  609. target.push(" ", name, '="', escapeTextForBrowser(value), '"');
  610. break;
  611. case "inert":
  612. case "allowFullScreen":
  613. case "async":
  614. case "autoPlay":
  615. case "controls":
  616. case "default":
  617. case "defer":
  618. case "disabled":
  619. case "disablePictureInPicture":
  620. case "disableRemotePlayback":
  621. case "formNoValidate":
  622. case "hidden":
  623. case "loop":
  624. case "noModule":
  625. case "noValidate":
  626. case "open":
  627. case "playsInline":
  628. case "readOnly":
  629. case "required":
  630. case "reversed":
  631. case "scoped":
  632. case "seamless":
  633. case "itemScope":
  634. value &&
  635. "function" !== typeof value &&
  636. "symbol" !== typeof value &&
  637. target.push(" ", name, '=""');
  638. break;
  639. case "capture":
  640. case "download":
  641. !0 === value
  642. ? target.push(" ", name, '=""')
  643. : !1 !== value &&
  644. "function" !== typeof value &&
  645. "symbol" !== typeof value &&
  646. target.push(" ", name, '="', escapeTextForBrowser(value), '"');
  647. break;
  648. case "cols":
  649. case "rows":
  650. case "size":
  651. case "span":
  652. "function" !== typeof value &&
  653. "symbol" !== typeof value &&
  654. !isNaN(value) &&
  655. 1 <= value &&
  656. target.push(" ", name, '="', escapeTextForBrowser(value), '"');
  657. break;
  658. case "rowSpan":
  659. case "start":
  660. "function" === typeof value ||
  661. "symbol" === typeof value ||
  662. isNaN(value) ||
  663. target.push(" ", name, '="', escapeTextForBrowser(value), '"');
  664. break;
  665. case "xlinkActuate":
  666. pushStringAttribute(target, "xlink:actuate", value);
  667. break;
  668. case "xlinkArcrole":
  669. pushStringAttribute(target, "xlink:arcrole", value);
  670. break;
  671. case "xlinkRole":
  672. pushStringAttribute(target, "xlink:role", value);
  673. break;
  674. case "xlinkShow":
  675. pushStringAttribute(target, "xlink:show", value);
  676. break;
  677. case "xlinkTitle":
  678. pushStringAttribute(target, "xlink:title", value);
  679. break;
  680. case "xlinkType":
  681. pushStringAttribute(target, "xlink:type", value);
  682. break;
  683. case "xmlBase":
  684. pushStringAttribute(target, "xml:base", value);
  685. break;
  686. case "xmlLang":
  687. pushStringAttribute(target, "xml:lang", value);
  688. break;
  689. case "xmlSpace":
  690. pushStringAttribute(target, "xml:space", value);
  691. break;
  692. default:
  693. if (
  694. !(2 < name.length) ||
  695. ("o" !== name[0] && "O" !== name[0]) ||
  696. ("n" !== name[1] && "N" !== name[1])
  697. )
  698. if (((name = aliases.get(name) || name), isAttributeNameSafe(name))) {
  699. switch (typeof value) {
  700. case "function":
  701. case "symbol":
  702. return;
  703. case "boolean":
  704. var prefix$8 = name.toLowerCase().slice(0, 5);
  705. if ("data-" !== prefix$8 && "aria-" !== prefix$8) return;
  706. }
  707. target.push(" ", name, '="', escapeTextForBrowser(value), '"');
  708. }
  709. }
  710. }
  711. function pushInnerHTML(target, innerHTML, children) {
  712. if (null != innerHTML) {
  713. if (null != children) throw Error(formatProdErrorMessage(60));
  714. if ("object" !== typeof innerHTML || !("__html" in innerHTML))
  715. throw Error(formatProdErrorMessage(61));
  716. innerHTML = innerHTML.__html;
  717. null !== innerHTML && void 0 !== innerHTML && target.push("" + innerHTML);
  718. }
  719. }
  720. function flattenOptionChildren(children) {
  721. var content = "";
  722. React.Children.forEach(children, function (child) {
  723. null != child && (content += child);
  724. });
  725. return content;
  726. }
  727. function injectFormReplayingRuntime(resumableState, renderState) {
  728. if (0 === (resumableState.instructions & 16)) {
  729. resumableState.instructions |= 16;
  730. var preamble = renderState.preamble,
  731. bootstrapChunks = renderState.bootstrapChunks;
  732. (preamble.htmlChunks || preamble.headChunks) && 0 === bootstrapChunks.length
  733. ? (bootstrapChunks.push(renderState.startInlineScript),
  734. pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
  735. bootstrapChunks.push(
  736. ">",
  737. 'addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});',
  738. "\x3c/script>"
  739. ))
  740. : bootstrapChunks.unshift(
  741. renderState.startInlineScript,
  742. ">",
  743. 'addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});',
  744. "\x3c/script>"
  745. );
  746. }
  747. }
  748. function pushLinkImpl(target, props) {
  749. target.push(startChunkForTag("link"));
  750. for (var propKey in props)
  751. if (hasOwnProperty.call(props, propKey)) {
  752. var propValue = props[propKey];
  753. if (null != propValue)
  754. switch (propKey) {
  755. case "children":
  756. case "dangerouslySetInnerHTML":
  757. throw Error(formatProdErrorMessage(399, "link"));
  758. default:
  759. pushAttribute(target, propKey, propValue);
  760. }
  761. }
  762. target.push("/>");
  763. return null;
  764. }
  765. var styleRegex = /(<\/|<)(s)(tyle)/gi;
  766. function styleReplacer(match, prefix, s, suffix) {
  767. return "" + prefix + ("s" === s ? "\\73 " : "\\53 ") + suffix;
  768. }
  769. function pushSelfClosing(target, props, tag) {
  770. target.push(startChunkForTag(tag));
  771. for (var propKey in props)
  772. if (hasOwnProperty.call(props, propKey)) {
  773. var propValue = props[propKey];
  774. if (null != propValue)
  775. switch (propKey) {
  776. case "children":
  777. case "dangerouslySetInnerHTML":
  778. throw Error(formatProdErrorMessage(399, tag));
  779. default:
  780. pushAttribute(target, propKey, propValue);
  781. }
  782. }
  783. target.push("/>");
  784. return null;
  785. }
  786. function pushTitleImpl(target, props) {
  787. target.push(startChunkForTag("title"));
  788. var children = null,
  789. innerHTML = null,
  790. propKey;
  791. for (propKey in props)
  792. if (hasOwnProperty.call(props, propKey)) {
  793. var propValue = props[propKey];
  794. if (null != propValue)
  795. switch (propKey) {
  796. case "children":
  797. children = propValue;
  798. break;
  799. case "dangerouslySetInnerHTML":
  800. innerHTML = propValue;
  801. break;
  802. default:
  803. pushAttribute(target, propKey, propValue);
  804. }
  805. }
  806. target.push(">");
  807. props = Array.isArray(children)
  808. ? 2 > children.length
  809. ? children[0]
  810. : null
  811. : children;
  812. "function" !== typeof props &&
  813. "symbol" !== typeof props &&
  814. null !== props &&
  815. void 0 !== props &&
  816. target.push(escapeTextForBrowser("" + props));
  817. pushInnerHTML(target, innerHTML, children);
  818. target.push(endChunkForTag("title"));
  819. return null;
  820. }
  821. function pushScriptImpl(target, props) {
  822. target.push(startChunkForTag("script"));
  823. var children = null,
  824. innerHTML = null,
  825. propKey;
  826. for (propKey in props)
  827. if (hasOwnProperty.call(props, propKey)) {
  828. var propValue = props[propKey];
  829. if (null != propValue)
  830. switch (propKey) {
  831. case "children":
  832. children = propValue;
  833. break;
  834. case "dangerouslySetInnerHTML":
  835. innerHTML = propValue;
  836. break;
  837. default:
  838. pushAttribute(target, propKey, propValue);
  839. }
  840. }
  841. target.push(">");
  842. pushInnerHTML(target, innerHTML, children);
  843. "string" === typeof children &&
  844. target.push(("" + children).replace(scriptRegex, scriptReplacer));
  845. target.push(endChunkForTag("script"));
  846. return null;
  847. }
  848. function pushStartSingletonElement(target, props, tag) {
  849. target.push(startChunkForTag(tag));
  850. var innerHTML = (tag = null),
  851. propKey;
  852. for (propKey in props)
  853. if (hasOwnProperty.call(props, propKey)) {
  854. var propValue = props[propKey];
  855. if (null != propValue)
  856. switch (propKey) {
  857. case "children":
  858. tag = propValue;
  859. break;
  860. case "dangerouslySetInnerHTML":
  861. innerHTML = propValue;
  862. break;
  863. default:
  864. pushAttribute(target, propKey, propValue);
  865. }
  866. }
  867. target.push(">");
  868. pushInnerHTML(target, innerHTML, tag);
  869. return tag;
  870. }
  871. function pushStartGenericElement(target, props, tag) {
  872. target.push(startChunkForTag(tag));
  873. var innerHTML = (tag = null),
  874. propKey;
  875. for (propKey in props)
  876. if (hasOwnProperty.call(props, propKey)) {
  877. var propValue = props[propKey];
  878. if (null != propValue)
  879. switch (propKey) {
  880. case "children":
  881. tag = propValue;
  882. break;
  883. case "dangerouslySetInnerHTML":
  884. innerHTML = propValue;
  885. break;
  886. default:
  887. pushAttribute(target, propKey, propValue);
  888. }
  889. }
  890. target.push(">");
  891. pushInnerHTML(target, innerHTML, tag);
  892. return "string" === typeof tag
  893. ? (target.push(escapeTextForBrowser(tag)), null)
  894. : tag;
  895. }
  896. var VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,
  897. validatedTagCache = new Map();
  898. function startChunkForTag(tag) {
  899. var tagStartChunk = validatedTagCache.get(tag);
  900. if (void 0 === tagStartChunk) {
  901. if (!VALID_TAG_REGEX.test(tag))
  902. throw Error(formatProdErrorMessage(65, tag));
  903. tagStartChunk = "<" + tag;
  904. validatedTagCache.set(tag, tagStartChunk);
  905. }
  906. return tagStartChunk;
  907. }
  908. function pushStartInstance(
  909. target$jscomp$0,
  910. type,
  911. props,
  912. resumableState,
  913. renderState,
  914. preambleState,
  915. hoistableState,
  916. formatContext,
  917. textEmbedded
  918. ) {
  919. switch (type) {
  920. case "div":
  921. case "span":
  922. case "svg":
  923. case "path":
  924. break;
  925. case "a":
  926. target$jscomp$0.push(startChunkForTag("a"));
  927. var children = null,
  928. innerHTML = null,
  929. propKey;
  930. for (propKey in props)
  931. if (hasOwnProperty.call(props, propKey)) {
  932. var propValue = props[propKey];
  933. if (null != propValue)
  934. switch (propKey) {
  935. case "children":
  936. children = propValue;
  937. break;
  938. case "dangerouslySetInnerHTML":
  939. innerHTML = propValue;
  940. break;
  941. case "href":
  942. "" === propValue
  943. ? pushStringAttribute(target$jscomp$0, "href", "")
  944. : pushAttribute(target$jscomp$0, propKey, propValue);
  945. break;
  946. default:
  947. pushAttribute(target$jscomp$0, propKey, propValue);
  948. }
  949. }
  950. target$jscomp$0.push(">");
  951. pushInnerHTML(target$jscomp$0, innerHTML, children);
  952. if ("string" === typeof children) {
  953. target$jscomp$0.push(escapeTextForBrowser(children));
  954. var JSCompiler_inline_result = null;
  955. } else JSCompiler_inline_result = children;
  956. return JSCompiler_inline_result;
  957. case "g":
  958. case "p":
  959. case "li":
  960. break;
  961. case "select":
  962. target$jscomp$0.push(startChunkForTag("select"));
  963. var children$jscomp$0 = null,
  964. innerHTML$jscomp$0 = null,
  965. propKey$jscomp$0;
  966. for (propKey$jscomp$0 in props)
  967. if (hasOwnProperty.call(props, propKey$jscomp$0)) {
  968. var propValue$jscomp$0 = props[propKey$jscomp$0];
  969. if (null != propValue$jscomp$0)
  970. switch (propKey$jscomp$0) {
  971. case "children":
  972. children$jscomp$0 = propValue$jscomp$0;
  973. break;
  974. case "dangerouslySetInnerHTML":
  975. innerHTML$jscomp$0 = propValue$jscomp$0;
  976. break;
  977. case "defaultValue":
  978. case "value":
  979. break;
  980. default:
  981. pushAttribute(
  982. target$jscomp$0,
  983. propKey$jscomp$0,
  984. propValue$jscomp$0
  985. );
  986. }
  987. }
  988. target$jscomp$0.push(">");
  989. pushInnerHTML(target$jscomp$0, innerHTML$jscomp$0, children$jscomp$0);
  990. return children$jscomp$0;
  991. case "option":
  992. var selectedValue = formatContext.selectedValue;
  993. target$jscomp$0.push(startChunkForTag("option"));
  994. var children$jscomp$1 = null,
  995. value = null,
  996. selected = null,
  997. innerHTML$jscomp$1 = null,
  998. propKey$jscomp$1;
  999. for (propKey$jscomp$1 in props)
  1000. if (hasOwnProperty.call(props, propKey$jscomp$1)) {
  1001. var propValue$jscomp$1 = props[propKey$jscomp$1];
  1002. if (null != propValue$jscomp$1)
  1003. switch (propKey$jscomp$1) {
  1004. case "children":
  1005. children$jscomp$1 = propValue$jscomp$1;
  1006. break;
  1007. case "selected":
  1008. selected = propValue$jscomp$1;
  1009. break;
  1010. case "dangerouslySetInnerHTML":
  1011. innerHTML$jscomp$1 = propValue$jscomp$1;
  1012. break;
  1013. case "value":
  1014. value = propValue$jscomp$1;
  1015. default:
  1016. pushAttribute(
  1017. target$jscomp$0,
  1018. propKey$jscomp$1,
  1019. propValue$jscomp$1
  1020. );
  1021. }
  1022. }
  1023. if (null != selectedValue) {
  1024. var stringValue =
  1025. null !== value
  1026. ? "" + value
  1027. : flattenOptionChildren(children$jscomp$1);
  1028. if (isArrayImpl(selectedValue))
  1029. for (var i = 0; i < selectedValue.length; i++) {
  1030. if ("" + selectedValue[i] === stringValue) {
  1031. target$jscomp$0.push(' selected=""');
  1032. break;
  1033. }
  1034. }
  1035. else
  1036. "" + selectedValue === stringValue &&
  1037. target$jscomp$0.push(' selected=""');
  1038. } else selected && target$jscomp$0.push(' selected=""');
  1039. target$jscomp$0.push(">");
  1040. pushInnerHTML(target$jscomp$0, innerHTML$jscomp$1, children$jscomp$1);
  1041. return children$jscomp$1;
  1042. case "textarea":
  1043. target$jscomp$0.push(startChunkForTag("textarea"));
  1044. var value$jscomp$0 = null,
  1045. defaultValue = null,
  1046. children$jscomp$2 = null,
  1047. propKey$jscomp$2;
  1048. for (propKey$jscomp$2 in props)
  1049. if (hasOwnProperty.call(props, propKey$jscomp$2)) {
  1050. var propValue$jscomp$2 = props[propKey$jscomp$2];
  1051. if (null != propValue$jscomp$2)
  1052. switch (propKey$jscomp$2) {
  1053. case "children":
  1054. children$jscomp$2 = propValue$jscomp$2;
  1055. break;
  1056. case "value":
  1057. value$jscomp$0 = propValue$jscomp$2;
  1058. break;
  1059. case "defaultValue":
  1060. defaultValue = propValue$jscomp$2;
  1061. break;
  1062. case "dangerouslySetInnerHTML":
  1063. throw Error(formatProdErrorMessage(91));
  1064. default:
  1065. pushAttribute(
  1066. target$jscomp$0,
  1067. propKey$jscomp$2,
  1068. propValue$jscomp$2
  1069. );
  1070. }
  1071. }
  1072. null === value$jscomp$0 &&
  1073. null !== defaultValue &&
  1074. (value$jscomp$0 = defaultValue);
  1075. target$jscomp$0.push(">");
  1076. if (null != children$jscomp$2) {
  1077. if (null != value$jscomp$0) throw Error(formatProdErrorMessage(92));
  1078. if (isArrayImpl(children$jscomp$2)) {
  1079. if (1 < children$jscomp$2.length)
  1080. throw Error(formatProdErrorMessage(93));
  1081. value$jscomp$0 = "" + children$jscomp$2[0];
  1082. }
  1083. value$jscomp$0 = "" + children$jscomp$2;
  1084. }
  1085. "string" === typeof value$jscomp$0 &&
  1086. "\n" === value$jscomp$0[0] &&
  1087. target$jscomp$0.push("\n");
  1088. null !== value$jscomp$0 &&
  1089. target$jscomp$0.push(escapeTextForBrowser("" + value$jscomp$0));
  1090. return null;
  1091. case "input":
  1092. target$jscomp$0.push(startChunkForTag("input"));
  1093. var name = null,
  1094. formAction = null,
  1095. formEncType = null,
  1096. formMethod = null,
  1097. formTarget = null,
  1098. value$jscomp$1 = null,
  1099. defaultValue$jscomp$0 = null,
  1100. checked = null,
  1101. defaultChecked = null,
  1102. propKey$jscomp$3;
  1103. for (propKey$jscomp$3 in props)
  1104. if (hasOwnProperty.call(props, propKey$jscomp$3)) {
  1105. var propValue$jscomp$3 = props[propKey$jscomp$3];
  1106. if (null != propValue$jscomp$3)
  1107. switch (propKey$jscomp$3) {
  1108. case "children":
  1109. case "dangerouslySetInnerHTML":
  1110. throw Error(formatProdErrorMessage(399, "input"));
  1111. case "name":
  1112. name = propValue$jscomp$3;
  1113. break;
  1114. case "formAction":
  1115. formAction = propValue$jscomp$3;
  1116. break;
  1117. case "formEncType":
  1118. formEncType = propValue$jscomp$3;
  1119. break;
  1120. case "formMethod":
  1121. formMethod = propValue$jscomp$3;
  1122. break;
  1123. case "formTarget":
  1124. formTarget = propValue$jscomp$3;
  1125. break;
  1126. case "defaultChecked":
  1127. defaultChecked = propValue$jscomp$3;
  1128. break;
  1129. case "defaultValue":
  1130. defaultValue$jscomp$0 = propValue$jscomp$3;
  1131. break;
  1132. case "checked":
  1133. checked = propValue$jscomp$3;
  1134. break;
  1135. case "value":
  1136. value$jscomp$1 = propValue$jscomp$3;
  1137. break;
  1138. default:
  1139. pushAttribute(
  1140. target$jscomp$0,
  1141. propKey$jscomp$3,
  1142. propValue$jscomp$3
  1143. );
  1144. }
  1145. }
  1146. var formData = pushFormActionAttribute(
  1147. target$jscomp$0,
  1148. resumableState,
  1149. renderState,
  1150. formAction,
  1151. formEncType,
  1152. formMethod,
  1153. formTarget,
  1154. name
  1155. );
  1156. null !== checked
  1157. ? pushBooleanAttribute(target$jscomp$0, "checked", checked)
  1158. : null !== defaultChecked &&
  1159. pushBooleanAttribute(target$jscomp$0, "checked", defaultChecked);
  1160. null !== value$jscomp$1
  1161. ? pushAttribute(target$jscomp$0, "value", value$jscomp$1)
  1162. : null !== defaultValue$jscomp$0 &&
  1163. pushAttribute(target$jscomp$0, "value", defaultValue$jscomp$0);
  1164. target$jscomp$0.push("/>");
  1165. null != formData &&
  1166. formData.forEach(pushAdditionalFormField, target$jscomp$0);
  1167. return null;
  1168. case "button":
  1169. target$jscomp$0.push(startChunkForTag("button"));
  1170. var children$jscomp$3 = null,
  1171. innerHTML$jscomp$2 = null,
  1172. name$jscomp$0 = null,
  1173. formAction$jscomp$0 = null,
  1174. formEncType$jscomp$0 = null,
  1175. formMethod$jscomp$0 = null,
  1176. formTarget$jscomp$0 = null,
  1177. propKey$jscomp$4;
  1178. for (propKey$jscomp$4 in props)
  1179. if (hasOwnProperty.call(props, propKey$jscomp$4)) {
  1180. var propValue$jscomp$4 = props[propKey$jscomp$4];
  1181. if (null != propValue$jscomp$4)
  1182. switch (propKey$jscomp$4) {
  1183. case "children":
  1184. children$jscomp$3 = propValue$jscomp$4;
  1185. break;
  1186. case "dangerouslySetInnerHTML":
  1187. innerHTML$jscomp$2 = propValue$jscomp$4;
  1188. break;
  1189. case "name":
  1190. name$jscomp$0 = propValue$jscomp$4;
  1191. break;
  1192. case "formAction":
  1193. formAction$jscomp$0 = propValue$jscomp$4;
  1194. break;
  1195. case "formEncType":
  1196. formEncType$jscomp$0 = propValue$jscomp$4;
  1197. break;
  1198. case "formMethod":
  1199. formMethod$jscomp$0 = propValue$jscomp$4;
  1200. break;
  1201. case "formTarget":
  1202. formTarget$jscomp$0 = propValue$jscomp$4;
  1203. break;
  1204. default:
  1205. pushAttribute(
  1206. target$jscomp$0,
  1207. propKey$jscomp$4,
  1208. propValue$jscomp$4
  1209. );
  1210. }
  1211. }
  1212. var formData$jscomp$0 = pushFormActionAttribute(
  1213. target$jscomp$0,
  1214. resumableState,
  1215. renderState,
  1216. formAction$jscomp$0,
  1217. formEncType$jscomp$0,
  1218. formMethod$jscomp$0,
  1219. formTarget$jscomp$0,
  1220. name$jscomp$0
  1221. );
  1222. target$jscomp$0.push(">");
  1223. null != formData$jscomp$0 &&
  1224. formData$jscomp$0.forEach(pushAdditionalFormField, target$jscomp$0);
  1225. pushInnerHTML(target$jscomp$0, innerHTML$jscomp$2, children$jscomp$3);
  1226. if ("string" === typeof children$jscomp$3) {
  1227. target$jscomp$0.push(escapeTextForBrowser(children$jscomp$3));
  1228. var JSCompiler_inline_result$jscomp$0 = null;
  1229. } else JSCompiler_inline_result$jscomp$0 = children$jscomp$3;
  1230. return JSCompiler_inline_result$jscomp$0;
  1231. case "form":
  1232. target$jscomp$0.push(startChunkForTag("form"));
  1233. var children$jscomp$4 = null,
  1234. innerHTML$jscomp$3 = null,
  1235. formAction$jscomp$1 = null,
  1236. formEncType$jscomp$1 = null,
  1237. formMethod$jscomp$1 = null,
  1238. formTarget$jscomp$1 = null,
  1239. propKey$jscomp$5;
  1240. for (propKey$jscomp$5 in props)
  1241. if (hasOwnProperty.call(props, propKey$jscomp$5)) {
  1242. var propValue$jscomp$5 = props[propKey$jscomp$5];
  1243. if (null != propValue$jscomp$5)
  1244. switch (propKey$jscomp$5) {
  1245. case "children":
  1246. children$jscomp$4 = propValue$jscomp$5;
  1247. break;
  1248. case "dangerouslySetInnerHTML":
  1249. innerHTML$jscomp$3 = propValue$jscomp$5;
  1250. break;
  1251. case "action":
  1252. formAction$jscomp$1 = propValue$jscomp$5;
  1253. break;
  1254. case "encType":
  1255. formEncType$jscomp$1 = propValue$jscomp$5;
  1256. break;
  1257. case "method":
  1258. formMethod$jscomp$1 = propValue$jscomp$5;
  1259. break;
  1260. case "target":
  1261. formTarget$jscomp$1 = propValue$jscomp$5;
  1262. break;
  1263. default:
  1264. pushAttribute(
  1265. target$jscomp$0,
  1266. propKey$jscomp$5,
  1267. propValue$jscomp$5
  1268. );
  1269. }
  1270. }
  1271. var formData$jscomp$1 = null,
  1272. formActionName = null;
  1273. if ("function" === typeof formAction$jscomp$1) {
  1274. var customFields = getCustomFormFields(
  1275. resumableState,
  1276. formAction$jscomp$1
  1277. );
  1278. null !== customFields
  1279. ? ((formAction$jscomp$1 = customFields.action || ""),
  1280. (formEncType$jscomp$1 = customFields.encType),
  1281. (formMethod$jscomp$1 = customFields.method),
  1282. (formTarget$jscomp$1 = customFields.target),
  1283. (formData$jscomp$1 = customFields.data),
  1284. (formActionName = customFields.name))
  1285. : (target$jscomp$0.push(
  1286. " ",
  1287. "action",
  1288. '="',
  1289. actionJavaScriptURL,
  1290. '"'
  1291. ),
  1292. (formTarget$jscomp$1 =
  1293. formMethod$jscomp$1 =
  1294. formEncType$jscomp$1 =
  1295. formAction$jscomp$1 =
  1296. null),
  1297. injectFormReplayingRuntime(resumableState, renderState));
  1298. }
  1299. null != formAction$jscomp$1 &&
  1300. pushAttribute(target$jscomp$0, "action", formAction$jscomp$1);
  1301. null != formEncType$jscomp$1 &&
  1302. pushAttribute(target$jscomp$0, "encType", formEncType$jscomp$1);
  1303. null != formMethod$jscomp$1 &&
  1304. pushAttribute(target$jscomp$0, "method", formMethod$jscomp$1);
  1305. null != formTarget$jscomp$1 &&
  1306. pushAttribute(target$jscomp$0, "target", formTarget$jscomp$1);
  1307. target$jscomp$0.push(">");
  1308. null !== formActionName &&
  1309. (target$jscomp$0.push('<input type="hidden"'),
  1310. pushStringAttribute(target$jscomp$0, "name", formActionName),
  1311. target$jscomp$0.push("/>"),
  1312. null != formData$jscomp$1 &&
  1313. formData$jscomp$1.forEach(pushAdditionalFormField, target$jscomp$0));
  1314. pushInnerHTML(target$jscomp$0, innerHTML$jscomp$3, children$jscomp$4);
  1315. if ("string" === typeof children$jscomp$4) {
  1316. target$jscomp$0.push(escapeTextForBrowser(children$jscomp$4));
  1317. var JSCompiler_inline_result$jscomp$1 = null;
  1318. } else JSCompiler_inline_result$jscomp$1 = children$jscomp$4;
  1319. return JSCompiler_inline_result$jscomp$1;
  1320. case "menuitem":
  1321. target$jscomp$0.push(startChunkForTag("menuitem"));
  1322. for (var propKey$jscomp$6 in props)
  1323. if (hasOwnProperty.call(props, propKey$jscomp$6)) {
  1324. var propValue$jscomp$6 = props[propKey$jscomp$6];
  1325. if (null != propValue$jscomp$6)
  1326. switch (propKey$jscomp$6) {
  1327. case "children":
  1328. case "dangerouslySetInnerHTML":
  1329. throw Error(formatProdErrorMessage(400));
  1330. default:
  1331. pushAttribute(
  1332. target$jscomp$0,
  1333. propKey$jscomp$6,
  1334. propValue$jscomp$6
  1335. );
  1336. }
  1337. }
  1338. target$jscomp$0.push(">");
  1339. return null;
  1340. case "object":
  1341. target$jscomp$0.push(startChunkForTag("object"));
  1342. var children$jscomp$5 = null,
  1343. innerHTML$jscomp$4 = null,
  1344. propKey$jscomp$7;
  1345. for (propKey$jscomp$7 in props)
  1346. if (hasOwnProperty.call(props, propKey$jscomp$7)) {
  1347. var propValue$jscomp$7 = props[propKey$jscomp$7];
  1348. if (null != propValue$jscomp$7)
  1349. switch (propKey$jscomp$7) {
  1350. case "children":
  1351. children$jscomp$5 = propValue$jscomp$7;
  1352. break;
  1353. case "dangerouslySetInnerHTML":
  1354. innerHTML$jscomp$4 = propValue$jscomp$7;
  1355. break;
  1356. case "data":
  1357. var sanitizedValue = sanitizeURL("" + propValue$jscomp$7);
  1358. if ("" === sanitizedValue) break;
  1359. target$jscomp$0.push(
  1360. " ",
  1361. "data",
  1362. '="',
  1363. escapeTextForBrowser(sanitizedValue),
  1364. '"'
  1365. );
  1366. break;
  1367. default:
  1368. pushAttribute(
  1369. target$jscomp$0,
  1370. propKey$jscomp$7,
  1371. propValue$jscomp$7
  1372. );
  1373. }
  1374. }
  1375. target$jscomp$0.push(">");
  1376. pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
  1377. if ("string" === typeof children$jscomp$5) {
  1378. target$jscomp$0.push(escapeTextForBrowser(children$jscomp$5));
  1379. var JSCompiler_inline_result$jscomp$2 = null;
  1380. } else JSCompiler_inline_result$jscomp$2 = children$jscomp$5;
  1381. return JSCompiler_inline_result$jscomp$2;
  1382. case "title":
  1383. var noscriptTagInScope = formatContext.tagScope & 1,
  1384. isFallback = formatContext.tagScope & 4;
  1385. if (
  1386. 4 === formatContext.insertionMode ||
  1387. noscriptTagInScope ||
  1388. null != props.itemProp
  1389. )
  1390. var JSCompiler_inline_result$jscomp$3 = pushTitleImpl(
  1391. target$jscomp$0,
  1392. props
  1393. );
  1394. else
  1395. isFallback
  1396. ? (JSCompiler_inline_result$jscomp$3 = null)
  1397. : (pushTitleImpl(renderState.hoistableChunks, props),
  1398. (JSCompiler_inline_result$jscomp$3 = void 0));
  1399. return JSCompiler_inline_result$jscomp$3;
  1400. case "link":
  1401. var noscriptTagInScope$jscomp$0 = formatContext.tagScope & 1,
  1402. isFallback$jscomp$0 = formatContext.tagScope & 4,
  1403. rel = props.rel,
  1404. href = props.href,
  1405. precedence = props.precedence;
  1406. if (
  1407. 4 === formatContext.insertionMode ||
  1408. noscriptTagInScope$jscomp$0 ||
  1409. null != props.itemProp ||
  1410. "string" !== typeof rel ||
  1411. "string" !== typeof href ||
  1412. "" === href
  1413. ) {
  1414. pushLinkImpl(target$jscomp$0, props);
  1415. var JSCompiler_inline_result$jscomp$4 = null;
  1416. } else if ("stylesheet" === props.rel)
  1417. if (
  1418. "string" !== typeof precedence ||
  1419. null != props.disabled ||
  1420. props.onLoad ||
  1421. props.onError
  1422. )
  1423. JSCompiler_inline_result$jscomp$4 = pushLinkImpl(
  1424. target$jscomp$0,
  1425. props
  1426. );
  1427. else {
  1428. var styleQueue = renderState.styles.get(precedence),
  1429. resourceState = resumableState.styleResources.hasOwnProperty(href)
  1430. ? resumableState.styleResources[href]
  1431. : void 0;
  1432. if (null !== resourceState) {
  1433. resumableState.styleResources[href] = null;
  1434. styleQueue ||
  1435. ((styleQueue = {
  1436. precedence: escapeTextForBrowser(precedence),
  1437. rules: [],
  1438. hrefs: [],
  1439. sheets: new Map()
  1440. }),
  1441. renderState.styles.set(precedence, styleQueue));
  1442. var resource = {
  1443. state: 0,
  1444. props: assign({}, props, {
  1445. "data-precedence": props.precedence,
  1446. precedence: null
  1447. })
  1448. };
  1449. if (resourceState) {
  1450. 2 === resourceState.length &&
  1451. adoptPreloadCredentials(resource.props, resourceState);
  1452. var preloadResource = renderState.preloads.stylesheets.get(href);
  1453. preloadResource && 0 < preloadResource.length
  1454. ? (preloadResource.length = 0)
  1455. : (resource.state = 1);
  1456. }
  1457. styleQueue.sheets.set(href, resource);
  1458. hoistableState && hoistableState.stylesheets.add(resource);
  1459. } else if (styleQueue) {
  1460. var resource$9 = styleQueue.sheets.get(href);
  1461. resource$9 &&
  1462. hoistableState &&
  1463. hoistableState.stylesheets.add(resource$9);
  1464. }
  1465. textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
  1466. JSCompiler_inline_result$jscomp$4 = null;
  1467. }
  1468. else
  1469. props.onLoad || props.onError
  1470. ? (JSCompiler_inline_result$jscomp$4 = pushLinkImpl(
  1471. target$jscomp$0,
  1472. props
  1473. ))
  1474. : (textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
  1475. (JSCompiler_inline_result$jscomp$4 = isFallback$jscomp$0
  1476. ? null
  1477. : pushLinkImpl(renderState.hoistableChunks, props)));
  1478. return JSCompiler_inline_result$jscomp$4;
  1479. case "script":
  1480. var noscriptTagInScope$jscomp$1 = formatContext.tagScope & 1,
  1481. asyncProp = props.async;
  1482. if (
  1483. "string" !== typeof props.src ||
  1484. !props.src ||
  1485. !asyncProp ||
  1486. "function" === typeof asyncProp ||
  1487. "symbol" === typeof asyncProp ||
  1488. props.onLoad ||
  1489. props.onError ||
  1490. 4 === formatContext.insertionMode ||
  1491. noscriptTagInScope$jscomp$1 ||
  1492. null != props.itemProp
  1493. )
  1494. var JSCompiler_inline_result$jscomp$5 = pushScriptImpl(
  1495. target$jscomp$0,
  1496. props
  1497. );
  1498. else {
  1499. var key = props.src;
  1500. if ("module" === props.type) {
  1501. var resources = resumableState.moduleScriptResources;
  1502. var preloads = renderState.preloads.moduleScripts;
  1503. } else
  1504. (resources = resumableState.scriptResources),
  1505. (preloads = renderState.preloads.scripts);
  1506. var resourceState$jscomp$0 = resources.hasOwnProperty(key)
  1507. ? resources[key]
  1508. : void 0;
  1509. if (null !== resourceState$jscomp$0) {
  1510. resources[key] = null;
  1511. var scriptProps = props;
  1512. if (resourceState$jscomp$0) {
  1513. 2 === resourceState$jscomp$0.length &&
  1514. ((scriptProps = assign({}, props)),
  1515. adoptPreloadCredentials(scriptProps, resourceState$jscomp$0));
  1516. var preloadResource$jscomp$0 = preloads.get(key);
  1517. preloadResource$jscomp$0 && (preloadResource$jscomp$0.length = 0);
  1518. }
  1519. var resource$jscomp$0 = [];
  1520. renderState.scripts.add(resource$jscomp$0);
  1521. pushScriptImpl(resource$jscomp$0, scriptProps);
  1522. }
  1523. textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
  1524. JSCompiler_inline_result$jscomp$5 = null;
  1525. }
  1526. return JSCompiler_inline_result$jscomp$5;
  1527. case "style":
  1528. var noscriptTagInScope$jscomp$2 = formatContext.tagScope & 1,
  1529. precedence$jscomp$0 = props.precedence,
  1530. href$jscomp$0 = props.href,
  1531. nonce = props.nonce;
  1532. if (
  1533. 4 === formatContext.insertionMode ||
  1534. noscriptTagInScope$jscomp$2 ||
  1535. null != props.itemProp ||
  1536. "string" !== typeof precedence$jscomp$0 ||
  1537. "string" !== typeof href$jscomp$0 ||
  1538. "" === href$jscomp$0
  1539. ) {
  1540. target$jscomp$0.push(startChunkForTag("style"));
  1541. var children$jscomp$6 = null,
  1542. innerHTML$jscomp$5 = null,
  1543. propKey$jscomp$8;
  1544. for (propKey$jscomp$8 in props)
  1545. if (hasOwnProperty.call(props, propKey$jscomp$8)) {
  1546. var propValue$jscomp$8 = props[propKey$jscomp$8];
  1547. if (null != propValue$jscomp$8)
  1548. switch (propKey$jscomp$8) {
  1549. case "children":
  1550. children$jscomp$6 = propValue$jscomp$8;
  1551. break;
  1552. case "dangerouslySetInnerHTML":
  1553. innerHTML$jscomp$5 = propValue$jscomp$8;
  1554. break;
  1555. default:
  1556. pushAttribute(
  1557. target$jscomp$0,
  1558. propKey$jscomp$8,
  1559. propValue$jscomp$8
  1560. );
  1561. }
  1562. }
  1563. target$jscomp$0.push(">");
  1564. var child = Array.isArray(children$jscomp$6)
  1565. ? 2 > children$jscomp$6.length
  1566. ? children$jscomp$6[0]
  1567. : null
  1568. : children$jscomp$6;
  1569. "function" !== typeof child &&
  1570. "symbol" !== typeof child &&
  1571. null !== child &&
  1572. void 0 !== child &&
  1573. target$jscomp$0.push(("" + child).replace(styleRegex, styleReplacer));
  1574. pushInnerHTML(target$jscomp$0, innerHTML$jscomp$5, children$jscomp$6);
  1575. target$jscomp$0.push(endChunkForTag("style"));
  1576. var JSCompiler_inline_result$jscomp$6 = null;
  1577. } else {
  1578. var styleQueue$jscomp$0 = renderState.styles.get(precedence$jscomp$0);
  1579. if (
  1580. null !==
  1581. (resumableState.styleResources.hasOwnProperty(href$jscomp$0)
  1582. ? resumableState.styleResources[href$jscomp$0]
  1583. : void 0)
  1584. ) {
  1585. resumableState.styleResources[href$jscomp$0] = null;
  1586. styleQueue$jscomp$0 ||
  1587. ((styleQueue$jscomp$0 = {
  1588. precedence: escapeTextForBrowser(precedence$jscomp$0),
  1589. rules: [],
  1590. hrefs: [],
  1591. sheets: new Map()
  1592. }),
  1593. renderState.styles.set(precedence$jscomp$0, styleQueue$jscomp$0));
  1594. var nonceStyle = renderState.nonce.style;
  1595. if (!nonceStyle || nonceStyle === nonce) {
  1596. styleQueue$jscomp$0.hrefs.push(escapeTextForBrowser(href$jscomp$0));
  1597. var target = styleQueue$jscomp$0.rules,
  1598. children$jscomp$7 = null,
  1599. innerHTML$jscomp$6 = null,
  1600. propKey$jscomp$9;
  1601. for (propKey$jscomp$9 in props)
  1602. if (hasOwnProperty.call(props, propKey$jscomp$9)) {
  1603. var propValue$jscomp$9 = props[propKey$jscomp$9];
  1604. if (null != propValue$jscomp$9)
  1605. switch (propKey$jscomp$9) {
  1606. case "children":
  1607. children$jscomp$7 = propValue$jscomp$9;
  1608. break;
  1609. case "dangerouslySetInnerHTML":
  1610. innerHTML$jscomp$6 = propValue$jscomp$9;
  1611. }
  1612. }
  1613. var child$jscomp$0 = Array.isArray(children$jscomp$7)
  1614. ? 2 > children$jscomp$7.length
  1615. ? children$jscomp$7[0]
  1616. : null
  1617. : children$jscomp$7;
  1618. "function" !== typeof child$jscomp$0 &&
  1619. "symbol" !== typeof child$jscomp$0 &&
  1620. null !== child$jscomp$0 &&
  1621. void 0 !== child$jscomp$0 &&
  1622. target.push(
  1623. ("" + child$jscomp$0).replace(styleRegex, styleReplacer)
  1624. );
  1625. pushInnerHTML(target, innerHTML$jscomp$6, children$jscomp$7);
  1626. }
  1627. }
  1628. styleQueue$jscomp$0 &&
  1629. hoistableState &&
  1630. hoistableState.styles.add(styleQueue$jscomp$0);
  1631. textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
  1632. JSCompiler_inline_result$jscomp$6 = void 0;
  1633. }
  1634. return JSCompiler_inline_result$jscomp$6;
  1635. case "meta":
  1636. var noscriptTagInScope$jscomp$3 = formatContext.tagScope & 1,
  1637. isFallback$jscomp$1 = formatContext.tagScope & 4;
  1638. if (
  1639. 4 === formatContext.insertionMode ||
  1640. noscriptTagInScope$jscomp$3 ||
  1641. null != props.itemProp
  1642. )
  1643. var JSCompiler_inline_result$jscomp$7 = pushSelfClosing(
  1644. target$jscomp$0,
  1645. props,
  1646. "meta"
  1647. );
  1648. else
  1649. textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
  1650. (JSCompiler_inline_result$jscomp$7 = isFallback$jscomp$1
  1651. ? null
  1652. : "string" === typeof props.charSet
  1653. ? pushSelfClosing(renderState.charsetChunks, props, "meta")
  1654. : "viewport" === props.name
  1655. ? pushSelfClosing(renderState.viewportChunks, props, "meta")
  1656. : pushSelfClosing(renderState.hoistableChunks, props, "meta"));
  1657. return JSCompiler_inline_result$jscomp$7;
  1658. case "listing":
  1659. case "pre":
  1660. target$jscomp$0.push(startChunkForTag(type));
  1661. var children$jscomp$8 = null,
  1662. innerHTML$jscomp$7 = null,
  1663. propKey$jscomp$10;
  1664. for (propKey$jscomp$10 in props)
  1665. if (hasOwnProperty.call(props, propKey$jscomp$10)) {
  1666. var propValue$jscomp$10 = props[propKey$jscomp$10];
  1667. if (null != propValue$jscomp$10)
  1668. switch (propKey$jscomp$10) {
  1669. case "children":
  1670. children$jscomp$8 = propValue$jscomp$10;
  1671. break;
  1672. case "dangerouslySetInnerHTML":
  1673. innerHTML$jscomp$7 = propValue$jscomp$10;
  1674. break;
  1675. default:
  1676. pushAttribute(
  1677. target$jscomp$0,
  1678. propKey$jscomp$10,
  1679. propValue$jscomp$10
  1680. );
  1681. }
  1682. }
  1683. target$jscomp$0.push(">");
  1684. if (null != innerHTML$jscomp$7) {
  1685. if (null != children$jscomp$8) throw Error(formatProdErrorMessage(60));
  1686. if (
  1687. "object" !== typeof innerHTML$jscomp$7 ||
  1688. !("__html" in innerHTML$jscomp$7)
  1689. )
  1690. throw Error(formatProdErrorMessage(61));
  1691. var html = innerHTML$jscomp$7.__html;
  1692. null !== html &&
  1693. void 0 !== html &&
  1694. ("string" === typeof html && 0 < html.length && "\n" === html[0]
  1695. ? target$jscomp$0.push("\n", html)
  1696. : target$jscomp$0.push("" + html));
  1697. }
  1698. "string" === typeof children$jscomp$8 &&
  1699. "\n" === children$jscomp$8[0] &&
  1700. target$jscomp$0.push("\n");
  1701. return children$jscomp$8;
  1702. case "img":
  1703. var pictureOrNoScriptTagInScope = formatContext.tagScope & 3,
  1704. src = props.src,
  1705. srcSet = props.srcSet;
  1706. if (
  1707. !(
  1708. "lazy" === props.loading ||
  1709. (!src && !srcSet) ||
  1710. ("string" !== typeof src && null != src) ||
  1711. ("string" !== typeof srcSet && null != srcSet) ||
  1712. "low" === props.fetchPriority ||
  1713. pictureOrNoScriptTagInScope
  1714. ) &&
  1715. ("string" !== typeof src ||
  1716. ":" !== src[4] ||
  1717. ("d" !== src[0] && "D" !== src[0]) ||
  1718. ("a" !== src[1] && "A" !== src[1]) ||
  1719. ("t" !== src[2] && "T" !== src[2]) ||
  1720. ("a" !== src[3] && "A" !== src[3])) &&
  1721. ("string" !== typeof srcSet ||
  1722. ":" !== srcSet[4] ||
  1723. ("d" !== srcSet[0] && "D" !== srcSet[0]) ||
  1724. ("a" !== srcSet[1] && "A" !== srcSet[1]) ||
  1725. ("t" !== srcSet[2] && "T" !== srcSet[2]) ||
  1726. ("a" !== srcSet[3] && "A" !== srcSet[3]))
  1727. ) {
  1728. null !== hoistableState &&
  1729. formatContext.tagScope & 64 &&
  1730. (hoistableState.suspenseyImages = !0);
  1731. var sizes = "string" === typeof props.sizes ? props.sizes : void 0,
  1732. key$jscomp$0 = srcSet ? srcSet + "\n" + (sizes || "") : src,
  1733. promotablePreloads = renderState.preloads.images,
  1734. resource$jscomp$1 = promotablePreloads.get(key$jscomp$0);
  1735. if (resource$jscomp$1) {
  1736. if (
  1737. "high" === props.fetchPriority ||
  1738. 10 > renderState.highImagePreloads.size
  1739. )
  1740. promotablePreloads.delete(key$jscomp$0),
  1741. renderState.highImagePreloads.add(resource$jscomp$1);
  1742. } else if (
  1743. !resumableState.imageResources.hasOwnProperty(key$jscomp$0)
  1744. ) {
  1745. resumableState.imageResources[key$jscomp$0] = PRELOAD_NO_CREDS;
  1746. var input = props.crossOrigin;
  1747. var JSCompiler_inline_result$jscomp$8 =
  1748. "string" === typeof input
  1749. ? "use-credentials" === input
  1750. ? input
  1751. : ""
  1752. : void 0;
  1753. var headers = renderState.headers,
  1754. header;
  1755. headers &&
  1756. 0 < headers.remainingCapacity &&
  1757. "string" !== typeof props.srcSet &&
  1758. ("high" === props.fetchPriority ||
  1759. 500 > headers.highImagePreloads.length) &&
  1760. ((header = getPreloadAsHeader(src, "image", {
  1761. imageSrcSet: props.srcSet,
  1762. imageSizes: props.sizes,
  1763. crossOrigin: JSCompiler_inline_result$jscomp$8,
  1764. integrity: props.integrity,
  1765. nonce: props.nonce,
  1766. type: props.type,
  1767. fetchPriority: props.fetchPriority,
  1768. referrerPolicy: props.refererPolicy
  1769. })),
  1770. 0 <= (headers.remainingCapacity -= header.length + 2))
  1771. ? ((renderState.resets.image[key$jscomp$0] = PRELOAD_NO_CREDS),
  1772. headers.highImagePreloads && (headers.highImagePreloads += ", "),
  1773. (headers.highImagePreloads += header))
  1774. : ((resource$jscomp$1 = []),
  1775. pushLinkImpl(resource$jscomp$1, {
  1776. rel: "preload",
  1777. as: "image",
  1778. href: srcSet ? void 0 : src,
  1779. imageSrcSet: srcSet,
  1780. imageSizes: sizes,
  1781. crossOrigin: JSCompiler_inline_result$jscomp$8,
  1782. integrity: props.integrity,
  1783. type: props.type,
  1784. fetchPriority: props.fetchPriority,
  1785. referrerPolicy: props.referrerPolicy
  1786. }),
  1787. "high" === props.fetchPriority ||
  1788. 10 > renderState.highImagePreloads.size
  1789. ? renderState.highImagePreloads.add(resource$jscomp$1)
  1790. : (renderState.bulkPreloads.add(resource$jscomp$1),
  1791. promotablePreloads.set(key$jscomp$0, resource$jscomp$1)));
  1792. }
  1793. }
  1794. return pushSelfClosing(target$jscomp$0, props, "img");
  1795. case "base":
  1796. case "area":
  1797. case "br":
  1798. case "col":
  1799. case "embed":
  1800. case "hr":
  1801. case "keygen":
  1802. case "param":
  1803. case "source":
  1804. case "track":
  1805. case "wbr":
  1806. return pushSelfClosing(target$jscomp$0, props, type);
  1807. case "annotation-xml":
  1808. case "color-profile":
  1809. case "font-face":
  1810. case "font-face-src":
  1811. case "font-face-uri":
  1812. case "font-face-format":
  1813. case "font-face-name":
  1814. case "missing-glyph":
  1815. break;
  1816. case "head":
  1817. if (2 > formatContext.insertionMode) {
  1818. var preamble = preambleState || renderState.preamble;
  1819. if (preamble.headChunks)
  1820. throw Error(formatProdErrorMessage(545, "`<head>`"));
  1821. null !== preambleState && target$jscomp$0.push("\x3c!--head--\x3e");
  1822. preamble.headChunks = [];
  1823. var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
  1824. preamble.headChunks,
  1825. props,
  1826. "head"
  1827. );
  1828. } else
  1829. JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
  1830. target$jscomp$0,
  1831. props,
  1832. "head"
  1833. );
  1834. return JSCompiler_inline_result$jscomp$9;
  1835. case "body":
  1836. if (2 > formatContext.insertionMode) {
  1837. var preamble$jscomp$0 = preambleState || renderState.preamble;
  1838. if (preamble$jscomp$0.bodyChunks)
  1839. throw Error(formatProdErrorMessage(545, "`<body>`"));
  1840. null !== preambleState && target$jscomp$0.push("\x3c!--body--\x3e");
  1841. preamble$jscomp$0.bodyChunks = [];
  1842. var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
  1843. preamble$jscomp$0.bodyChunks,
  1844. props,
  1845. "body"
  1846. );
  1847. } else
  1848. JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
  1849. target$jscomp$0,
  1850. props,
  1851. "body"
  1852. );
  1853. return JSCompiler_inline_result$jscomp$10;
  1854. case "html":
  1855. if (0 === formatContext.insertionMode) {
  1856. var preamble$jscomp$1 = preambleState || renderState.preamble;
  1857. if (preamble$jscomp$1.htmlChunks)
  1858. throw Error(formatProdErrorMessage(545, "`<html>`"));
  1859. null !== preambleState && target$jscomp$0.push("\x3c!--html--\x3e");
  1860. preamble$jscomp$1.htmlChunks = [""];
  1861. var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
  1862. preamble$jscomp$1.htmlChunks,
  1863. props,
  1864. "html"
  1865. );
  1866. } else
  1867. JSCompiler_inline_result$jscomp$11 = pushStartGenericElement(
  1868. target$jscomp$0,
  1869. props,
  1870. "html"
  1871. );
  1872. return JSCompiler_inline_result$jscomp$11;
  1873. default:
  1874. if (-1 !== type.indexOf("-")) {
  1875. target$jscomp$0.push(startChunkForTag(type));
  1876. var children$jscomp$9 = null,
  1877. innerHTML$jscomp$8 = null,
  1878. propKey$jscomp$11;
  1879. for (propKey$jscomp$11 in props)
  1880. if (hasOwnProperty.call(props, propKey$jscomp$11)) {
  1881. var propValue$jscomp$11 = props[propKey$jscomp$11];
  1882. if (null != propValue$jscomp$11) {
  1883. var attributeName = propKey$jscomp$11;
  1884. switch (propKey$jscomp$11) {
  1885. case "children":
  1886. children$jscomp$9 = propValue$jscomp$11;
  1887. break;
  1888. case "dangerouslySetInnerHTML":
  1889. innerHTML$jscomp$8 = propValue$jscomp$11;
  1890. break;
  1891. case "style":
  1892. pushStyleAttribute(target$jscomp$0, propValue$jscomp$11);
  1893. break;
  1894. case "suppressContentEditableWarning":
  1895. case "suppressHydrationWarning":
  1896. case "ref":
  1897. break;
  1898. case "className":
  1899. attributeName = "class";
  1900. default:
  1901. if (
  1902. isAttributeNameSafe(propKey$jscomp$11) &&
  1903. "function" !== typeof propValue$jscomp$11 &&
  1904. "symbol" !== typeof propValue$jscomp$11 &&
  1905. !1 !== propValue$jscomp$11
  1906. ) {
  1907. if (!0 === propValue$jscomp$11) propValue$jscomp$11 = "";
  1908. else if ("object" === typeof propValue$jscomp$11) continue;
  1909. target$jscomp$0.push(
  1910. " ",
  1911. attributeName,
  1912. '="',
  1913. escapeTextForBrowser(propValue$jscomp$11),
  1914. '"'
  1915. );
  1916. }
  1917. }
  1918. }
  1919. }
  1920. target$jscomp$0.push(">");
  1921. pushInnerHTML(target$jscomp$0, innerHTML$jscomp$8, children$jscomp$9);
  1922. return children$jscomp$9;
  1923. }
  1924. }
  1925. return pushStartGenericElement(target$jscomp$0, props, type);
  1926. }
  1927. var endTagCache = new Map();
  1928. function endChunkForTag(tag) {
  1929. var chunk = endTagCache.get(tag);
  1930. void 0 === chunk && ((chunk = "</" + tag + ">"), endTagCache.set(tag, chunk));
  1931. return chunk;
  1932. }
  1933. function hoistPreambleState(renderState, preambleState) {
  1934. renderState = renderState.preamble;
  1935. null === renderState.htmlChunks &&
  1936. preambleState.htmlChunks &&
  1937. (renderState.htmlChunks = preambleState.htmlChunks);
  1938. null === renderState.headChunks &&
  1939. preambleState.headChunks &&
  1940. (renderState.headChunks = preambleState.headChunks);
  1941. null === renderState.bodyChunks &&
  1942. preambleState.bodyChunks &&
  1943. (renderState.bodyChunks = preambleState.bodyChunks);
  1944. }
  1945. function writeBootstrap(destination, renderState) {
  1946. renderState = renderState.bootstrapChunks;
  1947. for (var i = 0; i < renderState.length - 1; i++)
  1948. destination.push(renderState[i]);
  1949. return i < renderState.length
  1950. ? ((i = renderState[i]), (renderState.length = 0), destination.push(i))
  1951. : !0;
  1952. }
  1953. function writeStartPendingSuspenseBoundary(destination, renderState, id) {
  1954. destination.push('\x3c!--$?--\x3e<template id="');
  1955. if (null === id) throw Error(formatProdErrorMessage(395));
  1956. destination.push(renderState.boundaryPrefix);
  1957. renderState = id.toString(16);
  1958. destination.push(renderState);
  1959. return destination.push('"></template>');
  1960. }
  1961. function writeStartSegment(destination, renderState, formatContext, id) {
  1962. switch (formatContext.insertionMode) {
  1963. case 0:
  1964. case 1:
  1965. case 3:
  1966. case 2:
  1967. return (
  1968. destination.push('<div hidden id="'),
  1969. destination.push(renderState.segmentPrefix),
  1970. (renderState = id.toString(16)),
  1971. destination.push(renderState),
  1972. destination.push('">')
  1973. );
  1974. case 4:
  1975. return (
  1976. destination.push('<svg aria-hidden="true" style="display:none" id="'),
  1977. destination.push(renderState.segmentPrefix),
  1978. (renderState = id.toString(16)),
  1979. destination.push(renderState),
  1980. destination.push('">')
  1981. );
  1982. case 5:
  1983. return (
  1984. destination.push('<math aria-hidden="true" style="display:none" id="'),
  1985. destination.push(renderState.segmentPrefix),
  1986. (renderState = id.toString(16)),
  1987. destination.push(renderState),
  1988. destination.push('">')
  1989. );
  1990. case 6:
  1991. return (
  1992. destination.push('<table hidden id="'),
  1993. destination.push(renderState.segmentPrefix),
  1994. (renderState = id.toString(16)),
  1995. destination.push(renderState),
  1996. destination.push('">')
  1997. );
  1998. case 7:
  1999. return (
  2000. destination.push('<table hidden><tbody id="'),
  2001. destination.push(renderState.segmentPrefix),
  2002. (renderState = id.toString(16)),
  2003. destination.push(renderState),
  2004. destination.push('">')
  2005. );
  2006. case 8:
  2007. return (
  2008. destination.push('<table hidden><tr id="'),
  2009. destination.push(renderState.segmentPrefix),
  2010. (renderState = id.toString(16)),
  2011. destination.push(renderState),
  2012. destination.push('">')
  2013. );
  2014. case 9:
  2015. return (
  2016. destination.push('<table hidden><colgroup id="'),
  2017. destination.push(renderState.segmentPrefix),
  2018. (renderState = id.toString(16)),
  2019. destination.push(renderState),
  2020. destination.push('">')
  2021. );
  2022. default:
  2023. throw Error(formatProdErrorMessage(397));
  2024. }
  2025. }
  2026. function writeEndSegment(destination, formatContext) {
  2027. switch (formatContext.insertionMode) {
  2028. case 0:
  2029. case 1:
  2030. case 3:
  2031. case 2:
  2032. return destination.push("</div>");
  2033. case 4:
  2034. return destination.push("</svg>");
  2035. case 5:
  2036. return destination.push("</math>");
  2037. case 6:
  2038. return destination.push("</table>");
  2039. case 7:
  2040. return destination.push("</tbody></table>");
  2041. case 8:
  2042. return destination.push("</tr></table>");
  2043. case 9:
  2044. return destination.push("</colgroup></table>");
  2045. default:
  2046. throw Error(formatProdErrorMessage(397));
  2047. }
  2048. }
  2049. var regexForJSStringsInInstructionScripts = /[<\u2028\u2029]/g;
  2050. function escapeJSStringsForInstructionScripts(input) {
  2051. return JSON.stringify(input).replace(
  2052. regexForJSStringsInInstructionScripts,
  2053. function (match) {
  2054. switch (match) {
  2055. case "<":
  2056. return "\\u003c";
  2057. case "\u2028":
  2058. return "\\u2028";
  2059. case "\u2029":
  2060. return "\\u2029";
  2061. default:
  2062. throw Error(
  2063. "escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React"
  2064. );
  2065. }
  2066. }
  2067. );
  2068. }
  2069. var regexForJSStringsInScripts = /[&><\u2028\u2029]/g;
  2070. function escapeJSObjectForInstructionScripts(input) {
  2071. return JSON.stringify(input).replace(
  2072. regexForJSStringsInScripts,
  2073. function (match) {
  2074. switch (match) {
  2075. case "&":
  2076. return "\\u0026";
  2077. case ">":
  2078. return "\\u003e";
  2079. case "<":
  2080. return "\\u003c";
  2081. case "\u2028":
  2082. return "\\u2028";
  2083. case "\u2029":
  2084. return "\\u2029";
  2085. default:
  2086. throw Error(
  2087. "escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React"
  2088. );
  2089. }
  2090. }
  2091. );
  2092. }
  2093. var currentlyRenderingBoundaryHasStylesToHoist = !1,
  2094. destinationHasCapacity = !0;
  2095. function flushStyleTagsLateForBoundary(styleQueue) {
  2096. var rules = styleQueue.rules,
  2097. hrefs = styleQueue.hrefs,
  2098. i = 0;
  2099. if (hrefs.length) {
  2100. this.push(currentlyFlushingRenderState.startInlineStyle);
  2101. this.push(' media="not all" data-precedence="');
  2102. this.push(styleQueue.precedence);
  2103. for (this.push('" data-href="'); i < hrefs.length - 1; i++)
  2104. this.push(hrefs[i]), this.push(" ");
  2105. this.push(hrefs[i]);
  2106. this.push('">');
  2107. for (i = 0; i < rules.length; i++) this.push(rules[i]);
  2108. destinationHasCapacity = this.push("</style>");
  2109. currentlyRenderingBoundaryHasStylesToHoist = !0;
  2110. rules.length = 0;
  2111. hrefs.length = 0;
  2112. }
  2113. }
  2114. function hasStylesToHoist(stylesheet) {
  2115. return 2 !== stylesheet.state
  2116. ? (currentlyRenderingBoundaryHasStylesToHoist = !0)
  2117. : !1;
  2118. }
  2119. function writeHoistablesForBoundary(destination, hoistableState, renderState) {
  2120. currentlyRenderingBoundaryHasStylesToHoist = !1;
  2121. destinationHasCapacity = !0;
  2122. currentlyFlushingRenderState = renderState;
  2123. hoistableState.styles.forEach(flushStyleTagsLateForBoundary, destination);
  2124. currentlyFlushingRenderState = null;
  2125. hoistableState.stylesheets.forEach(hasStylesToHoist);
  2126. currentlyRenderingBoundaryHasStylesToHoist &&
  2127. (renderState.stylesToHoist = !0);
  2128. return destinationHasCapacity;
  2129. }
  2130. function flushResource(resource) {
  2131. for (var i = 0; i < resource.length; i++) this.push(resource[i]);
  2132. resource.length = 0;
  2133. }
  2134. var stylesheetFlushingQueue = [];
  2135. function flushStyleInPreamble(stylesheet) {
  2136. pushLinkImpl(stylesheetFlushingQueue, stylesheet.props);
  2137. for (var i = 0; i < stylesheetFlushingQueue.length; i++)
  2138. this.push(stylesheetFlushingQueue[i]);
  2139. stylesheetFlushingQueue.length = 0;
  2140. stylesheet.state = 2;
  2141. }
  2142. function flushStylesInPreamble(styleQueue) {
  2143. var hasStylesheets = 0 < styleQueue.sheets.size;
  2144. styleQueue.sheets.forEach(flushStyleInPreamble, this);
  2145. styleQueue.sheets.clear();
  2146. var rules = styleQueue.rules,
  2147. hrefs = styleQueue.hrefs;
  2148. if (!hasStylesheets || hrefs.length) {
  2149. this.push(currentlyFlushingRenderState.startInlineStyle);
  2150. this.push(' data-precedence="');
  2151. this.push(styleQueue.precedence);
  2152. styleQueue = 0;
  2153. if (hrefs.length) {
  2154. for (
  2155. this.push('" data-href="');
  2156. styleQueue < hrefs.length - 1;
  2157. styleQueue++
  2158. )
  2159. this.push(hrefs[styleQueue]), this.push(" ");
  2160. this.push(hrefs[styleQueue]);
  2161. }
  2162. this.push('">');
  2163. for (styleQueue = 0; styleQueue < rules.length; styleQueue++)
  2164. this.push(rules[styleQueue]);
  2165. this.push("</style>");
  2166. rules.length = 0;
  2167. hrefs.length = 0;
  2168. }
  2169. }
  2170. function preloadLateStyle(stylesheet) {
  2171. if (0 === stylesheet.state) {
  2172. stylesheet.state = 1;
  2173. var props = stylesheet.props;
  2174. pushLinkImpl(stylesheetFlushingQueue, {
  2175. rel: "preload",
  2176. as: "style",
  2177. href: stylesheet.props.href,
  2178. crossOrigin: props.crossOrigin,
  2179. fetchPriority: props.fetchPriority,
  2180. integrity: props.integrity,
  2181. media: props.media,
  2182. hrefLang: props.hrefLang,
  2183. referrerPolicy: props.referrerPolicy
  2184. });
  2185. for (
  2186. stylesheet = 0;
  2187. stylesheet < stylesheetFlushingQueue.length;
  2188. stylesheet++
  2189. )
  2190. this.push(stylesheetFlushingQueue[stylesheet]);
  2191. stylesheetFlushingQueue.length = 0;
  2192. }
  2193. }
  2194. function preloadLateStyles(styleQueue) {
  2195. styleQueue.sheets.forEach(preloadLateStyle, this);
  2196. styleQueue.sheets.clear();
  2197. }
  2198. function pushCompletedShellIdAttribute(target, resumableState) {
  2199. 0 === (resumableState.instructions & 32) &&
  2200. ((resumableState.instructions |= 32),
  2201. target.push(
  2202. ' id="',
  2203. escapeTextForBrowser("_" + resumableState.idPrefix + "R_"),
  2204. '"'
  2205. ));
  2206. }
  2207. function writeStyleResourceDependenciesInJS(destination, hoistableState) {
  2208. destination.push("[");
  2209. var nextArrayOpenBrackChunk = "[";
  2210. hoistableState.stylesheets.forEach(function (resource) {
  2211. if (2 !== resource.state)
  2212. if (3 === resource.state)
  2213. destination.push(nextArrayOpenBrackChunk),
  2214. (resource = escapeJSObjectForInstructionScripts(
  2215. "" + resource.props.href
  2216. )),
  2217. destination.push(resource),
  2218. destination.push("]"),
  2219. (nextArrayOpenBrackChunk = ",[");
  2220. else {
  2221. destination.push(nextArrayOpenBrackChunk);
  2222. var precedence = resource.props["data-precedence"],
  2223. props = resource.props,
  2224. coercedHref = sanitizeURL("" + resource.props.href);
  2225. coercedHref = escapeJSObjectForInstructionScripts(coercedHref);
  2226. destination.push(coercedHref);
  2227. precedence = "" + precedence;
  2228. destination.push(",");
  2229. precedence = escapeJSObjectForInstructionScripts(precedence);
  2230. destination.push(precedence);
  2231. for (var propKey in props)
  2232. if (
  2233. hasOwnProperty.call(props, propKey) &&
  2234. ((precedence = props[propKey]), null != precedence)
  2235. )
  2236. switch (propKey) {
  2237. case "href":
  2238. case "rel":
  2239. case "precedence":
  2240. case "data-precedence":
  2241. break;
  2242. case "children":
  2243. case "dangerouslySetInnerHTML":
  2244. throw Error(formatProdErrorMessage(399, "link"));
  2245. default:
  2246. writeStyleResourceAttributeInJS(
  2247. destination,
  2248. propKey,
  2249. precedence
  2250. );
  2251. }
  2252. destination.push("]");
  2253. nextArrayOpenBrackChunk = ",[";
  2254. resource.state = 3;
  2255. }
  2256. });
  2257. destination.push("]");
  2258. }
  2259. function writeStyleResourceAttributeInJS(destination, name, value) {
  2260. var attributeName = name.toLowerCase();
  2261. switch (typeof value) {
  2262. case "function":
  2263. case "symbol":
  2264. return;
  2265. }
  2266. switch (name) {
  2267. case "innerHTML":
  2268. case "dangerouslySetInnerHTML":
  2269. case "suppressContentEditableWarning":
  2270. case "suppressHydrationWarning":
  2271. case "style":
  2272. case "ref":
  2273. return;
  2274. case "className":
  2275. attributeName = "class";
  2276. name = "" + value;
  2277. break;
  2278. case "hidden":
  2279. if (!1 === value) return;
  2280. name = "";
  2281. break;
  2282. case "src":
  2283. case "href":
  2284. value = sanitizeURL(value);
  2285. name = "" + value;
  2286. break;
  2287. default:
  2288. if (
  2289. (2 < name.length &&
  2290. ("o" === name[0] || "O" === name[0]) &&
  2291. ("n" === name[1] || "N" === name[1])) ||
  2292. !isAttributeNameSafe(name)
  2293. )
  2294. return;
  2295. name = "" + value;
  2296. }
  2297. destination.push(",");
  2298. attributeName = escapeJSObjectForInstructionScripts(attributeName);
  2299. destination.push(attributeName);
  2300. destination.push(",");
  2301. attributeName = escapeJSObjectForInstructionScripts(name);
  2302. destination.push(attributeName);
  2303. }
  2304. function createHoistableState() {
  2305. return { styles: new Set(), stylesheets: new Set(), suspenseyImages: !1 };
  2306. }
  2307. function prefetchDNS(href) {
  2308. var request = currentRequest ? currentRequest : null;
  2309. if (request) {
  2310. var resumableState = request.resumableState,
  2311. renderState = request.renderState;
  2312. if ("string" === typeof href && href) {
  2313. if (!resumableState.dnsResources.hasOwnProperty(href)) {
  2314. resumableState.dnsResources[href] = null;
  2315. resumableState = renderState.headers;
  2316. var header, JSCompiler_temp;
  2317. if (
  2318. (JSCompiler_temp =
  2319. resumableState && 0 < resumableState.remainingCapacity)
  2320. )
  2321. JSCompiler_temp =
  2322. ((header =
  2323. "<" +
  2324. ("" + href).replace(
  2325. regexForHrefInLinkHeaderURLContext,
  2326. escapeHrefForLinkHeaderURLContextReplacer
  2327. ) +
  2328. ">; rel=dns-prefetch"),
  2329. 0 <= (resumableState.remainingCapacity -= header.length + 2));
  2330. JSCompiler_temp
  2331. ? ((renderState.resets.dns[href] = null),
  2332. resumableState.preconnects && (resumableState.preconnects += ", "),
  2333. (resumableState.preconnects += header))
  2334. : ((header = []),
  2335. pushLinkImpl(header, { href: href, rel: "dns-prefetch" }),
  2336. renderState.preconnects.add(header));
  2337. }
  2338. enqueueFlush(request);
  2339. }
  2340. } else previousDispatcher.D(href);
  2341. }
  2342. function preconnect(href, crossOrigin) {
  2343. var request = currentRequest ? currentRequest : null;
  2344. if (request) {
  2345. var resumableState = request.resumableState,
  2346. renderState = request.renderState;
  2347. if ("string" === typeof href && href) {
  2348. var bucket =
  2349. "use-credentials" === crossOrigin
  2350. ? "credentials"
  2351. : "string" === typeof crossOrigin
  2352. ? "anonymous"
  2353. : "default";
  2354. if (!resumableState.connectResources[bucket].hasOwnProperty(href)) {
  2355. resumableState.connectResources[bucket][href] = null;
  2356. resumableState = renderState.headers;
  2357. var header, JSCompiler_temp;
  2358. if (
  2359. (JSCompiler_temp =
  2360. resumableState && 0 < resumableState.remainingCapacity)
  2361. ) {
  2362. JSCompiler_temp =
  2363. "<" +
  2364. ("" + href).replace(
  2365. regexForHrefInLinkHeaderURLContext,
  2366. escapeHrefForLinkHeaderURLContextReplacer
  2367. ) +
  2368. ">; rel=preconnect";
  2369. if ("string" === typeof crossOrigin) {
  2370. var escapedCrossOrigin = ("" + crossOrigin).replace(
  2371. regexForLinkHeaderQuotedParamValueContext,
  2372. escapeStringForLinkHeaderQuotedParamValueContextReplacer
  2373. );
  2374. JSCompiler_temp += '; crossorigin="' + escapedCrossOrigin + '"';
  2375. }
  2376. JSCompiler_temp =
  2377. ((header = JSCompiler_temp),
  2378. 0 <= (resumableState.remainingCapacity -= header.length + 2));
  2379. }
  2380. JSCompiler_temp
  2381. ? ((renderState.resets.connect[bucket][href] = null),
  2382. resumableState.preconnects && (resumableState.preconnects += ", "),
  2383. (resumableState.preconnects += header))
  2384. : ((bucket = []),
  2385. pushLinkImpl(bucket, {
  2386. rel: "preconnect",
  2387. href: href,
  2388. crossOrigin: crossOrigin
  2389. }),
  2390. renderState.preconnects.add(bucket));
  2391. }
  2392. enqueueFlush(request);
  2393. }
  2394. } else previousDispatcher.C(href, crossOrigin);
  2395. }
  2396. function preload(href, as, options) {
  2397. var request = currentRequest ? currentRequest : null;
  2398. if (request) {
  2399. var resumableState = request.resumableState,
  2400. renderState = request.renderState;
  2401. if (as && href) {
  2402. switch (as) {
  2403. case "image":
  2404. if (options) {
  2405. var imageSrcSet = options.imageSrcSet;
  2406. var imageSizes = options.imageSizes;
  2407. var fetchPriority = options.fetchPriority;
  2408. }
  2409. var key = imageSrcSet
  2410. ? imageSrcSet + "\n" + (imageSizes || "")
  2411. : href;
  2412. if (resumableState.imageResources.hasOwnProperty(key)) return;
  2413. resumableState.imageResources[key] = PRELOAD_NO_CREDS;
  2414. resumableState = renderState.headers;
  2415. var header;
  2416. resumableState &&
  2417. 0 < resumableState.remainingCapacity &&
  2418. "string" !== typeof imageSrcSet &&
  2419. "high" === fetchPriority &&
  2420. ((header = getPreloadAsHeader(href, as, options)),
  2421. 0 <= (resumableState.remainingCapacity -= header.length + 2))
  2422. ? ((renderState.resets.image[key] = PRELOAD_NO_CREDS),
  2423. resumableState.highImagePreloads &&
  2424. (resumableState.highImagePreloads += ", "),
  2425. (resumableState.highImagePreloads += header))
  2426. : ((resumableState = []),
  2427. pushLinkImpl(
  2428. resumableState,
  2429. assign(
  2430. { rel: "preload", href: imageSrcSet ? void 0 : href, as: as },
  2431. options
  2432. )
  2433. ),
  2434. "high" === fetchPriority
  2435. ? renderState.highImagePreloads.add(resumableState)
  2436. : (renderState.bulkPreloads.add(resumableState),
  2437. renderState.preloads.images.set(key, resumableState)));
  2438. break;
  2439. case "style":
  2440. if (resumableState.styleResources.hasOwnProperty(href)) return;
  2441. imageSrcSet = [];
  2442. pushLinkImpl(
  2443. imageSrcSet,
  2444. assign({ rel: "preload", href: href, as: as }, options)
  2445. );
  2446. resumableState.styleResources[href] =
  2447. !options ||
  2448. ("string" !== typeof options.crossOrigin &&
  2449. "string" !== typeof options.integrity)
  2450. ? PRELOAD_NO_CREDS
  2451. : [options.crossOrigin, options.integrity];
  2452. renderState.preloads.stylesheets.set(href, imageSrcSet);
  2453. renderState.bulkPreloads.add(imageSrcSet);
  2454. break;
  2455. case "script":
  2456. if (resumableState.scriptResources.hasOwnProperty(href)) return;
  2457. imageSrcSet = [];
  2458. renderState.preloads.scripts.set(href, imageSrcSet);
  2459. renderState.bulkPreloads.add(imageSrcSet);
  2460. pushLinkImpl(
  2461. imageSrcSet,
  2462. assign({ rel: "preload", href: href, as: as }, options)
  2463. );
  2464. resumableState.scriptResources[href] =
  2465. !options ||
  2466. ("string" !== typeof options.crossOrigin &&
  2467. "string" !== typeof options.integrity)
  2468. ? PRELOAD_NO_CREDS
  2469. : [options.crossOrigin, options.integrity];
  2470. break;
  2471. default:
  2472. if (resumableState.unknownResources.hasOwnProperty(as)) {
  2473. if (
  2474. ((imageSrcSet = resumableState.unknownResources[as]),
  2475. imageSrcSet.hasOwnProperty(href))
  2476. )
  2477. return;
  2478. } else
  2479. (imageSrcSet = {}),
  2480. (resumableState.unknownResources[as] = imageSrcSet);
  2481. imageSrcSet[href] = PRELOAD_NO_CREDS;
  2482. if (
  2483. (resumableState = renderState.headers) &&
  2484. 0 < resumableState.remainingCapacity &&
  2485. "font" === as &&
  2486. ((key = getPreloadAsHeader(href, as, options)),
  2487. 0 <= (resumableState.remainingCapacity -= key.length + 2))
  2488. )
  2489. (renderState.resets.font[href] = PRELOAD_NO_CREDS),
  2490. resumableState.fontPreloads &&
  2491. (resumableState.fontPreloads += ", "),
  2492. (resumableState.fontPreloads += key);
  2493. else
  2494. switch (
  2495. ((resumableState = []),
  2496. (href = assign({ rel: "preload", href: href, as: as }, options)),
  2497. pushLinkImpl(resumableState, href),
  2498. as)
  2499. ) {
  2500. case "font":
  2501. renderState.fontPreloads.add(resumableState);
  2502. break;
  2503. default:
  2504. renderState.bulkPreloads.add(resumableState);
  2505. }
  2506. }
  2507. enqueueFlush(request);
  2508. }
  2509. } else previousDispatcher.L(href, as, options);
  2510. }
  2511. function preloadModule(href, options) {
  2512. var request = currentRequest ? currentRequest : null;
  2513. if (request) {
  2514. var resumableState = request.resumableState,
  2515. renderState = request.renderState;
  2516. if (href) {
  2517. var as =
  2518. options && "string" === typeof options.as ? options.as : "script";
  2519. switch (as) {
  2520. case "script":
  2521. if (resumableState.moduleScriptResources.hasOwnProperty(href)) return;
  2522. as = [];
  2523. resumableState.moduleScriptResources[href] =
  2524. !options ||
  2525. ("string" !== typeof options.crossOrigin &&
  2526. "string" !== typeof options.integrity)
  2527. ? PRELOAD_NO_CREDS
  2528. : [options.crossOrigin, options.integrity];
  2529. renderState.preloads.moduleScripts.set(href, as);
  2530. break;
  2531. default:
  2532. if (resumableState.moduleUnknownResources.hasOwnProperty(as)) {
  2533. var resources = resumableState.unknownResources[as];
  2534. if (resources.hasOwnProperty(href)) return;
  2535. } else
  2536. (resources = {}),
  2537. (resumableState.moduleUnknownResources[as] = resources);
  2538. as = [];
  2539. resources[href] = PRELOAD_NO_CREDS;
  2540. }
  2541. pushLinkImpl(as, assign({ rel: "modulepreload", href: href }, options));
  2542. renderState.bulkPreloads.add(as);
  2543. enqueueFlush(request);
  2544. }
  2545. } else previousDispatcher.m(href, options);
  2546. }
  2547. function preinitStyle(href, precedence, options) {
  2548. var request = currentRequest ? currentRequest : null;
  2549. if (request) {
  2550. var resumableState = request.resumableState,
  2551. renderState = request.renderState;
  2552. if (href) {
  2553. precedence = precedence || "default";
  2554. var styleQueue = renderState.styles.get(precedence),
  2555. resourceState = resumableState.styleResources.hasOwnProperty(href)
  2556. ? resumableState.styleResources[href]
  2557. : void 0;
  2558. null !== resourceState &&
  2559. ((resumableState.styleResources[href] = null),
  2560. styleQueue ||
  2561. ((styleQueue = {
  2562. precedence: escapeTextForBrowser(precedence),
  2563. rules: [],
  2564. hrefs: [],
  2565. sheets: new Map()
  2566. }),
  2567. renderState.styles.set(precedence, styleQueue)),
  2568. (precedence = {
  2569. state: 0,
  2570. props: assign(
  2571. { rel: "stylesheet", href: href, "data-precedence": precedence },
  2572. options
  2573. )
  2574. }),
  2575. resourceState &&
  2576. (2 === resourceState.length &&
  2577. adoptPreloadCredentials(precedence.props, resourceState),
  2578. (renderState = renderState.preloads.stylesheets.get(href)) &&
  2579. 0 < renderState.length
  2580. ? (renderState.length = 0)
  2581. : (precedence.state = 1)),
  2582. styleQueue.sheets.set(href, precedence),
  2583. enqueueFlush(request));
  2584. }
  2585. } else previousDispatcher.S(href, precedence, options);
  2586. }
  2587. function preinitScript(src, options) {
  2588. var request = currentRequest ? currentRequest : null;
  2589. if (request) {
  2590. var resumableState = request.resumableState,
  2591. renderState = request.renderState;
  2592. if (src) {
  2593. var resourceState = resumableState.scriptResources.hasOwnProperty(src)
  2594. ? resumableState.scriptResources[src]
  2595. : void 0;
  2596. null !== resourceState &&
  2597. ((resumableState.scriptResources[src] = null),
  2598. (options = assign({ src: src, async: !0 }, options)),
  2599. resourceState &&
  2600. (2 === resourceState.length &&
  2601. adoptPreloadCredentials(options, resourceState),
  2602. (src = renderState.preloads.scripts.get(src))) &&
  2603. (src.length = 0),
  2604. (src = []),
  2605. renderState.scripts.add(src),
  2606. pushScriptImpl(src, options),
  2607. enqueueFlush(request));
  2608. }
  2609. } else previousDispatcher.X(src, options);
  2610. }
  2611. function preinitModuleScript(src, options) {
  2612. var request = currentRequest ? currentRequest : null;
  2613. if (request) {
  2614. var resumableState = request.resumableState,
  2615. renderState = request.renderState;
  2616. if (src) {
  2617. var resourceState = resumableState.moduleScriptResources.hasOwnProperty(
  2618. src
  2619. )
  2620. ? resumableState.moduleScriptResources[src]
  2621. : void 0;
  2622. null !== resourceState &&
  2623. ((resumableState.moduleScriptResources[src] = null),
  2624. (options = assign({ src: src, type: "module", async: !0 }, options)),
  2625. resourceState &&
  2626. (2 === resourceState.length &&
  2627. adoptPreloadCredentials(options, resourceState),
  2628. (src = renderState.preloads.moduleScripts.get(src))) &&
  2629. (src.length = 0),
  2630. (src = []),
  2631. renderState.scripts.add(src),
  2632. pushScriptImpl(src, options),
  2633. enqueueFlush(request));
  2634. }
  2635. } else previousDispatcher.M(src, options);
  2636. }
  2637. function adoptPreloadCredentials(target, preloadState) {
  2638. null == target.crossOrigin && (target.crossOrigin = preloadState[0]);
  2639. null == target.integrity && (target.integrity = preloadState[1]);
  2640. }
  2641. function getPreloadAsHeader(href, as, params) {
  2642. href = ("" + href).replace(
  2643. regexForHrefInLinkHeaderURLContext,
  2644. escapeHrefForLinkHeaderURLContextReplacer
  2645. );
  2646. as = ("" + as).replace(
  2647. regexForLinkHeaderQuotedParamValueContext,
  2648. escapeStringForLinkHeaderQuotedParamValueContextReplacer
  2649. );
  2650. as = "<" + href + '>; rel=preload; as="' + as + '"';
  2651. for (var paramName in params)
  2652. hasOwnProperty.call(params, paramName) &&
  2653. ((href = params[paramName]),
  2654. "string" === typeof href &&
  2655. (as +=
  2656. "; " +
  2657. paramName.toLowerCase() +
  2658. '="' +
  2659. ("" + href).replace(
  2660. regexForLinkHeaderQuotedParamValueContext,
  2661. escapeStringForLinkHeaderQuotedParamValueContextReplacer
  2662. ) +
  2663. '"'));
  2664. return as;
  2665. }
  2666. var regexForHrefInLinkHeaderURLContext = /[<>\r\n]/g;
  2667. function escapeHrefForLinkHeaderURLContextReplacer(match) {
  2668. switch (match) {
  2669. case "<":
  2670. return "%3C";
  2671. case ">":
  2672. return "%3E";
  2673. case "\n":
  2674. return "%0A";
  2675. case "\r":
  2676. return "%0D";
  2677. default:
  2678. throw Error(
  2679. "escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React"
  2680. );
  2681. }
  2682. }
  2683. var regexForLinkHeaderQuotedParamValueContext = /["';,\r\n]/g;
  2684. function escapeStringForLinkHeaderQuotedParamValueContextReplacer(match) {
  2685. switch (match) {
  2686. case '"':
  2687. return "%22";
  2688. case "'":
  2689. return "%27";
  2690. case ";":
  2691. return "%3B";
  2692. case ",":
  2693. return "%2C";
  2694. case "\n":
  2695. return "%0A";
  2696. case "\r":
  2697. return "%0D";
  2698. default:
  2699. throw Error(
  2700. "escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React"
  2701. );
  2702. }
  2703. }
  2704. function hoistStyleQueueDependency(styleQueue) {
  2705. this.styles.add(styleQueue);
  2706. }
  2707. function hoistStylesheetDependency(stylesheet) {
  2708. this.stylesheets.add(stylesheet);
  2709. }
  2710. function hoistHoistables(parentState, childState) {
  2711. childState.styles.forEach(hoistStyleQueueDependency, parentState);
  2712. childState.stylesheets.forEach(hoistStylesheetDependency, parentState);
  2713. childState.suspenseyImages && (parentState.suspenseyImages = !0);
  2714. }
  2715. function createRenderState(resumableState, generateStaticMarkup) {
  2716. var idPrefix = resumableState.idPrefix,
  2717. bootstrapChunks = [],
  2718. bootstrapScriptContent = resumableState.bootstrapScriptContent,
  2719. bootstrapScripts = resumableState.bootstrapScripts,
  2720. bootstrapModules = resumableState.bootstrapModules;
  2721. void 0 !== bootstrapScriptContent &&
  2722. (bootstrapChunks.push("<script"),
  2723. pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
  2724. bootstrapChunks.push(
  2725. ">",
  2726. ("" + bootstrapScriptContent).replace(scriptRegex, scriptReplacer),
  2727. "\x3c/script>"
  2728. ));
  2729. bootstrapScriptContent = idPrefix + "P:";
  2730. var JSCompiler_object_inline_segmentPrefix_1673 = idPrefix + "S:";
  2731. idPrefix += "B:";
  2732. var JSCompiler_object_inline_preconnects_1687 = new Set(),
  2733. JSCompiler_object_inline_fontPreloads_1688 = new Set(),
  2734. JSCompiler_object_inline_highImagePreloads_1689 = new Set(),
  2735. JSCompiler_object_inline_styles_1690 = new Map(),
  2736. JSCompiler_object_inline_bootstrapScripts_1691 = new Set(),
  2737. JSCompiler_object_inline_scripts_1692 = new Set(),
  2738. JSCompiler_object_inline_bulkPreloads_1693 = new Set(),
  2739. JSCompiler_object_inline_preloads_1694 = {
  2740. images: new Map(),
  2741. stylesheets: new Map(),
  2742. scripts: new Map(),
  2743. moduleScripts: new Map()
  2744. };
  2745. if (void 0 !== bootstrapScripts)
  2746. for (var i = 0; i < bootstrapScripts.length; i++) {
  2747. var scriptConfig = bootstrapScripts[i],
  2748. src,
  2749. crossOrigin = void 0,
  2750. integrity = void 0,
  2751. props = {
  2752. rel: "preload",
  2753. as: "script",
  2754. fetchPriority: "low",
  2755. nonce: void 0
  2756. };
  2757. "string" === typeof scriptConfig
  2758. ? (props.href = src = scriptConfig)
  2759. : ((props.href = src = scriptConfig.src),
  2760. (props.integrity = integrity =
  2761. "string" === typeof scriptConfig.integrity
  2762. ? scriptConfig.integrity
  2763. : void 0),
  2764. (props.crossOrigin = crossOrigin =
  2765. "string" === typeof scriptConfig || null == scriptConfig.crossOrigin
  2766. ? void 0
  2767. : "use-credentials" === scriptConfig.crossOrigin
  2768. ? "use-credentials"
  2769. : ""));
  2770. scriptConfig = resumableState;
  2771. var href = src;
  2772. scriptConfig.scriptResources[href] = null;
  2773. scriptConfig.moduleScriptResources[href] = null;
  2774. scriptConfig = [];
  2775. pushLinkImpl(scriptConfig, props);
  2776. JSCompiler_object_inline_bootstrapScripts_1691.add(scriptConfig);
  2777. bootstrapChunks.push('<script src="', escapeTextForBrowser(src), '"');
  2778. "string" === typeof integrity &&
  2779. bootstrapChunks.push(
  2780. ' integrity="',
  2781. escapeTextForBrowser(integrity),
  2782. '"'
  2783. );
  2784. "string" === typeof crossOrigin &&
  2785. bootstrapChunks.push(
  2786. ' crossorigin="',
  2787. escapeTextForBrowser(crossOrigin),
  2788. '"'
  2789. );
  2790. pushCompletedShellIdAttribute(bootstrapChunks, resumableState);
  2791. bootstrapChunks.push(' async="">\x3c/script>');
  2792. }
  2793. if (void 0 !== bootstrapModules)
  2794. for (
  2795. bootstrapScripts = 0;
  2796. bootstrapScripts < bootstrapModules.length;
  2797. bootstrapScripts++
  2798. )
  2799. (props = bootstrapModules[bootstrapScripts]),
  2800. (crossOrigin = src = void 0),
  2801. (integrity = {
  2802. rel: "modulepreload",
  2803. fetchPriority: "low",
  2804. nonce: void 0
  2805. }),
  2806. "string" === typeof props
  2807. ? (integrity.href = i = props)
  2808. : ((integrity.href = i = props.src),
  2809. (integrity.integrity = crossOrigin =
  2810. "string" === typeof props.integrity ? props.integrity : void 0),
  2811. (integrity.crossOrigin = src =
  2812. "string" === typeof props || null == props.crossOrigin
  2813. ? void 0
  2814. : "use-credentials" === props.crossOrigin
  2815. ? "use-credentials"
  2816. : "")),
  2817. (props = resumableState),
  2818. (scriptConfig = i),
  2819. (props.scriptResources[scriptConfig] = null),
  2820. (props.moduleScriptResources[scriptConfig] = null),
  2821. (props = []),
  2822. pushLinkImpl(props, integrity),
  2823. JSCompiler_object_inline_bootstrapScripts_1691.add(props),
  2824. bootstrapChunks.push(
  2825. '<script type="module" src="',
  2826. escapeTextForBrowser(i),
  2827. '"'
  2828. ),
  2829. "string" === typeof crossOrigin &&
  2830. bootstrapChunks.push(
  2831. ' integrity="',
  2832. escapeTextForBrowser(crossOrigin),
  2833. '"'
  2834. ),
  2835. "string" === typeof src &&
  2836. bootstrapChunks.push(
  2837. ' crossorigin="',
  2838. escapeTextForBrowser(src),
  2839. '"'
  2840. ),
  2841. pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
  2842. bootstrapChunks.push(' async="">\x3c/script>');
  2843. return {
  2844. placeholderPrefix: bootstrapScriptContent,
  2845. segmentPrefix: JSCompiler_object_inline_segmentPrefix_1673,
  2846. boundaryPrefix: idPrefix,
  2847. startInlineScript: "<script",
  2848. startInlineStyle: "<style",
  2849. preamble: { htmlChunks: null, headChunks: null, bodyChunks: null },
  2850. externalRuntimeScript: null,
  2851. bootstrapChunks: bootstrapChunks,
  2852. importMapChunks: [],
  2853. onHeaders: void 0,
  2854. headers: null,
  2855. resets: {
  2856. font: {},
  2857. dns: {},
  2858. connect: { default: {}, anonymous: {}, credentials: {} },
  2859. image: {},
  2860. style: {}
  2861. },
  2862. charsetChunks: [],
  2863. viewportChunks: [],
  2864. hoistableChunks: [],
  2865. preconnects: JSCompiler_object_inline_preconnects_1687,
  2866. fontPreloads: JSCompiler_object_inline_fontPreloads_1688,
  2867. highImagePreloads: JSCompiler_object_inline_highImagePreloads_1689,
  2868. styles: JSCompiler_object_inline_styles_1690,
  2869. bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1691,
  2870. scripts: JSCompiler_object_inline_scripts_1692,
  2871. bulkPreloads: JSCompiler_object_inline_bulkPreloads_1693,
  2872. preloads: JSCompiler_object_inline_preloads_1694,
  2873. nonce: { script: void 0, style: void 0 },
  2874. stylesToHoist: !1,
  2875. generateStaticMarkup: generateStaticMarkup
  2876. };
  2877. }
  2878. function pushTextInstance(target, text, renderState, textEmbedded) {
  2879. if (renderState.generateStaticMarkup)
  2880. return target.push(escapeTextForBrowser(text)), !1;
  2881. "" === text
  2882. ? (target = textEmbedded)
  2883. : (textEmbedded && target.push("\x3c!-- --\x3e"),
  2884. target.push(escapeTextForBrowser(text)),
  2885. (target = !0));
  2886. return target;
  2887. }
  2888. function pushSegmentFinale(target, renderState, lastPushedText, textEmbedded) {
  2889. renderState.generateStaticMarkup ||
  2890. (lastPushedText && textEmbedded && target.push("\x3c!-- --\x3e"));
  2891. }
  2892. var bind = Function.prototype.bind,
  2893. REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
  2894. function getComponentNameFromType(type) {
  2895. if (null == type) return null;
  2896. if ("function" === typeof type)
  2897. return type.$$typeof === REACT_CLIENT_REFERENCE
  2898. ? null
  2899. : type.displayName || type.name || null;
  2900. if ("string" === typeof type) return type;
  2901. switch (type) {
  2902. case REACT_FRAGMENT_TYPE:
  2903. return "Fragment";
  2904. case REACT_PROFILER_TYPE:
  2905. return "Profiler";
  2906. case REACT_STRICT_MODE_TYPE:
  2907. return "StrictMode";
  2908. case REACT_SUSPENSE_TYPE:
  2909. return "Suspense";
  2910. case REACT_SUSPENSE_LIST_TYPE:
  2911. return "SuspenseList";
  2912. case REACT_ACTIVITY_TYPE:
  2913. return "Activity";
  2914. }
  2915. if ("object" === typeof type)
  2916. switch (type.$$typeof) {
  2917. case REACT_PORTAL_TYPE:
  2918. return "Portal";
  2919. case REACT_CONTEXT_TYPE:
  2920. return type.displayName || "Context";
  2921. case REACT_CONSUMER_TYPE:
  2922. return (type._context.displayName || "Context") + ".Consumer";
  2923. case REACT_FORWARD_REF_TYPE:
  2924. var innerType = type.render;
  2925. type = type.displayName;
  2926. type ||
  2927. ((type = innerType.displayName || innerType.name || ""),
  2928. (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
  2929. return type;
  2930. case REACT_MEMO_TYPE:
  2931. return (
  2932. (innerType = type.displayName || null),
  2933. null !== innerType
  2934. ? innerType
  2935. : getComponentNameFromType(type.type) || "Memo"
  2936. );
  2937. case REACT_LAZY_TYPE:
  2938. innerType = type._payload;
  2939. type = type._init;
  2940. try {
  2941. return getComponentNameFromType(type(innerType));
  2942. } catch (x) {}
  2943. }
  2944. return null;
  2945. }
  2946. var emptyContextObject = {},
  2947. currentActiveSnapshot = null;
  2948. function popToNearestCommonAncestor(prev, next) {
  2949. if (prev !== next) {
  2950. prev.context._currentValue2 = prev.parentValue;
  2951. prev = prev.parent;
  2952. var parentNext = next.parent;
  2953. if (null === prev) {
  2954. if (null !== parentNext) throw Error(formatProdErrorMessage(401));
  2955. } else {
  2956. if (null === parentNext) throw Error(formatProdErrorMessage(401));
  2957. popToNearestCommonAncestor(prev, parentNext);
  2958. }
  2959. next.context._currentValue2 = next.value;
  2960. }
  2961. }
  2962. function popAllPrevious(prev) {
  2963. prev.context._currentValue2 = prev.parentValue;
  2964. prev = prev.parent;
  2965. null !== prev && popAllPrevious(prev);
  2966. }
  2967. function pushAllNext(next) {
  2968. var parentNext = next.parent;
  2969. null !== parentNext && pushAllNext(parentNext);
  2970. next.context._currentValue2 = next.value;
  2971. }
  2972. function popPreviousToCommonLevel(prev, next) {
  2973. prev.context._currentValue2 = prev.parentValue;
  2974. prev = prev.parent;
  2975. if (null === prev) throw Error(formatProdErrorMessage(402));
  2976. prev.depth === next.depth
  2977. ? popToNearestCommonAncestor(prev, next)
  2978. : popPreviousToCommonLevel(prev, next);
  2979. }
  2980. function popNextToCommonLevel(prev, next) {
  2981. var parentNext = next.parent;
  2982. if (null === parentNext) throw Error(formatProdErrorMessage(402));
  2983. prev.depth === parentNext.depth
  2984. ? popToNearestCommonAncestor(prev, parentNext)
  2985. : popNextToCommonLevel(prev, parentNext);
  2986. next.context._currentValue2 = next.value;
  2987. }
  2988. function switchContext(newSnapshot) {
  2989. var prev = currentActiveSnapshot;
  2990. prev !== newSnapshot &&
  2991. (null === prev
  2992. ? pushAllNext(newSnapshot)
  2993. : null === newSnapshot
  2994. ? popAllPrevious(prev)
  2995. : prev.depth === newSnapshot.depth
  2996. ? popToNearestCommonAncestor(prev, newSnapshot)
  2997. : prev.depth > newSnapshot.depth
  2998. ? popPreviousToCommonLevel(prev, newSnapshot)
  2999. : popNextToCommonLevel(prev, newSnapshot),
  3000. (currentActiveSnapshot = newSnapshot));
  3001. }
  3002. var classComponentUpdater = {
  3003. enqueueSetState: function (inst, payload) {
  3004. inst = inst._reactInternals;
  3005. null !== inst.queue && inst.queue.push(payload);
  3006. },
  3007. enqueueReplaceState: function (inst, payload) {
  3008. inst = inst._reactInternals;
  3009. inst.replace = !0;
  3010. inst.queue = [payload];
  3011. },
  3012. enqueueForceUpdate: function () {}
  3013. },
  3014. emptyTreeContext = { id: 1, overflow: "" };
  3015. function pushTreeContext(baseContext, totalChildren, index) {
  3016. var baseIdWithLeadingBit = baseContext.id;
  3017. baseContext = baseContext.overflow;
  3018. var baseLength = 32 - clz32(baseIdWithLeadingBit) - 1;
  3019. baseIdWithLeadingBit &= ~(1 << baseLength);
  3020. index += 1;
  3021. var length = 32 - clz32(totalChildren) + baseLength;
  3022. if (30 < length) {
  3023. var numberOfOverflowBits = baseLength - (baseLength % 5);
  3024. length = (
  3025. baseIdWithLeadingBit &
  3026. ((1 << numberOfOverflowBits) - 1)
  3027. ).toString(32);
  3028. baseIdWithLeadingBit >>= numberOfOverflowBits;
  3029. baseLength -= numberOfOverflowBits;
  3030. return {
  3031. id:
  3032. (1 << (32 - clz32(totalChildren) + baseLength)) |
  3033. (index << baseLength) |
  3034. baseIdWithLeadingBit,
  3035. overflow: length + baseContext
  3036. };
  3037. }
  3038. return {
  3039. id: (1 << length) | (index << baseLength) | baseIdWithLeadingBit,
  3040. overflow: baseContext
  3041. };
  3042. }
  3043. var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
  3044. log = Math.log,
  3045. LN2 = Math.LN2;
  3046. function clz32Fallback(x) {
  3047. x >>>= 0;
  3048. return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;
  3049. }
  3050. function noop() {}
  3051. var SuspenseException = Error(formatProdErrorMessage(460));
  3052. function trackUsedThenable(thenableState, thenable, index) {
  3053. index = thenableState[index];
  3054. void 0 === index
  3055. ? thenableState.push(thenable)
  3056. : index !== thenable && (thenable.then(noop, noop), (thenable = index));
  3057. switch (thenable.status) {
  3058. case "fulfilled":
  3059. return thenable.value;
  3060. case "rejected":
  3061. throw thenable.reason;
  3062. default:
  3063. "string" === typeof thenable.status
  3064. ? thenable.then(noop, noop)
  3065. : ((thenableState = thenable),
  3066. (thenableState.status = "pending"),
  3067. thenableState.then(
  3068. function (fulfilledValue) {
  3069. if ("pending" === thenable.status) {
  3070. var fulfilledThenable = thenable;
  3071. fulfilledThenable.status = "fulfilled";
  3072. fulfilledThenable.value = fulfilledValue;
  3073. }
  3074. },
  3075. function (error) {
  3076. if ("pending" === thenable.status) {
  3077. var rejectedThenable = thenable;
  3078. rejectedThenable.status = "rejected";
  3079. rejectedThenable.reason = error;
  3080. }
  3081. }
  3082. ));
  3083. switch (thenable.status) {
  3084. case "fulfilled":
  3085. return thenable.value;
  3086. case "rejected":
  3087. throw thenable.reason;
  3088. }
  3089. suspendedThenable = thenable;
  3090. throw SuspenseException;
  3091. }
  3092. }
  3093. var suspendedThenable = null;
  3094. function getSuspendedThenable() {
  3095. if (null === suspendedThenable) throw Error(formatProdErrorMessage(459));
  3096. var thenable = suspendedThenable;
  3097. suspendedThenable = null;
  3098. return thenable;
  3099. }
  3100. function is(x, y) {
  3101. return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
  3102. }
  3103. var objectIs = "function" === typeof Object.is ? Object.is : is,
  3104. currentlyRenderingComponent = null,
  3105. currentlyRenderingTask = null,
  3106. currentlyRenderingRequest = null,
  3107. currentlyRenderingKeyPath = null,
  3108. firstWorkInProgressHook = null,
  3109. workInProgressHook = null,
  3110. isReRender = !1,
  3111. didScheduleRenderPhaseUpdate = !1,
  3112. localIdCounter = 0,
  3113. actionStateCounter = 0,
  3114. actionStateMatchingIndex = -1,
  3115. thenableIndexCounter = 0,
  3116. thenableState = null,
  3117. renderPhaseUpdates = null,
  3118. numberOfReRenders = 0;
  3119. function resolveCurrentlyRenderingComponent() {
  3120. if (null === currentlyRenderingComponent)
  3121. throw Error(formatProdErrorMessage(321));
  3122. return currentlyRenderingComponent;
  3123. }
  3124. function createHook() {
  3125. if (0 < numberOfReRenders) throw Error(formatProdErrorMessage(312));
  3126. return { memoizedState: null, queue: null, next: null };
  3127. }
  3128. function createWorkInProgressHook() {
  3129. null === workInProgressHook
  3130. ? null === firstWorkInProgressHook
  3131. ? ((isReRender = !1),
  3132. (firstWorkInProgressHook = workInProgressHook = createHook()))
  3133. : ((isReRender = !0), (workInProgressHook = firstWorkInProgressHook))
  3134. : null === workInProgressHook.next
  3135. ? ((isReRender = !1),
  3136. (workInProgressHook = workInProgressHook.next = createHook()))
  3137. : ((isReRender = !0), (workInProgressHook = workInProgressHook.next));
  3138. return workInProgressHook;
  3139. }
  3140. function getThenableStateAfterSuspending() {
  3141. var state = thenableState;
  3142. thenableState = null;
  3143. return state;
  3144. }
  3145. function resetHooksState() {
  3146. currentlyRenderingKeyPath =
  3147. currentlyRenderingRequest =
  3148. currentlyRenderingTask =
  3149. currentlyRenderingComponent =
  3150. null;
  3151. didScheduleRenderPhaseUpdate = !1;
  3152. firstWorkInProgressHook = null;
  3153. numberOfReRenders = 0;
  3154. workInProgressHook = renderPhaseUpdates = null;
  3155. }
  3156. function basicStateReducer(state, action) {
  3157. return "function" === typeof action ? action(state) : action;
  3158. }
  3159. function useReducer(reducer, initialArg, init) {
  3160. currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
  3161. workInProgressHook = createWorkInProgressHook();
  3162. if (isReRender) {
  3163. var queue = workInProgressHook.queue;
  3164. initialArg = queue.dispatch;
  3165. if (
  3166. null !== renderPhaseUpdates &&
  3167. ((init = renderPhaseUpdates.get(queue)), void 0 !== init)
  3168. ) {
  3169. renderPhaseUpdates.delete(queue);
  3170. queue = workInProgressHook.memoizedState;
  3171. do (queue = reducer(queue, init.action)), (init = init.next);
  3172. while (null !== init);
  3173. workInProgressHook.memoizedState = queue;
  3174. return [queue, initialArg];
  3175. }
  3176. return [workInProgressHook.memoizedState, initialArg];
  3177. }
  3178. reducer =
  3179. reducer === basicStateReducer
  3180. ? "function" === typeof initialArg
  3181. ? initialArg()
  3182. : initialArg
  3183. : void 0 !== init
  3184. ? init(initialArg)
  3185. : initialArg;
  3186. workInProgressHook.memoizedState = reducer;
  3187. reducer = workInProgressHook.queue = { last: null, dispatch: null };
  3188. reducer = reducer.dispatch = dispatchAction.bind(
  3189. null,
  3190. currentlyRenderingComponent,
  3191. reducer
  3192. );
  3193. return [workInProgressHook.memoizedState, reducer];
  3194. }
  3195. function useMemo(nextCreate, deps) {
  3196. currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
  3197. workInProgressHook = createWorkInProgressHook();
  3198. deps = void 0 === deps ? null : deps;
  3199. if (null !== workInProgressHook) {
  3200. var prevState = workInProgressHook.memoizedState;
  3201. if (null !== prevState && null !== deps) {
  3202. var prevDeps = prevState[1];
  3203. a: if (null === prevDeps) prevDeps = !1;
  3204. else {
  3205. for (var i = 0; i < prevDeps.length && i < deps.length; i++)
  3206. if (!objectIs(deps[i], prevDeps[i])) {
  3207. prevDeps = !1;
  3208. break a;
  3209. }
  3210. prevDeps = !0;
  3211. }
  3212. if (prevDeps) return prevState[0];
  3213. }
  3214. }
  3215. nextCreate = nextCreate();
  3216. workInProgressHook.memoizedState = [nextCreate, deps];
  3217. return nextCreate;
  3218. }
  3219. function dispatchAction(componentIdentity, queue, action) {
  3220. if (25 <= numberOfReRenders) throw Error(formatProdErrorMessage(301));
  3221. if (componentIdentity === currentlyRenderingComponent)
  3222. if (
  3223. ((didScheduleRenderPhaseUpdate = !0),
  3224. (componentIdentity = { action: action, next: null }),
  3225. null === renderPhaseUpdates && (renderPhaseUpdates = new Map()),
  3226. (action = renderPhaseUpdates.get(queue)),
  3227. void 0 === action)
  3228. )
  3229. renderPhaseUpdates.set(queue, componentIdentity);
  3230. else {
  3231. for (queue = action; null !== queue.next; ) queue = queue.next;
  3232. queue.next = componentIdentity;
  3233. }
  3234. }
  3235. function throwOnUseEffectEventCall() {
  3236. throw Error(formatProdErrorMessage(440));
  3237. }
  3238. function unsupportedStartTransition() {
  3239. throw Error(formatProdErrorMessage(394));
  3240. }
  3241. function unsupportedSetOptimisticState() {
  3242. throw Error(formatProdErrorMessage(479));
  3243. }
  3244. function useActionState(action, initialState, permalink) {
  3245. resolveCurrentlyRenderingComponent();
  3246. var actionStateHookIndex = actionStateCounter++,
  3247. request = currentlyRenderingRequest;
  3248. if ("function" === typeof action.$$FORM_ACTION) {
  3249. var nextPostbackStateKey = null,
  3250. componentKeyPath = currentlyRenderingKeyPath;
  3251. request = request.formState;
  3252. var isSignatureEqual = action.$$IS_SIGNATURE_EQUAL;
  3253. if (null !== request && "function" === typeof isSignatureEqual) {
  3254. var postbackKey = request[1];
  3255. isSignatureEqual.call(action, request[2], request[3]) &&
  3256. ((nextPostbackStateKey =
  3257. void 0 !== permalink
  3258. ? "p" + permalink
  3259. : "k" +
  3260. murmurhash3_32_gc(
  3261. JSON.stringify([componentKeyPath, null, actionStateHookIndex]),
  3262. 0
  3263. )),
  3264. postbackKey === nextPostbackStateKey &&
  3265. ((actionStateMatchingIndex = actionStateHookIndex),
  3266. (initialState = request[0])));
  3267. }
  3268. var boundAction = action.bind(null, initialState);
  3269. action = function (payload) {
  3270. boundAction(payload);
  3271. };
  3272. "function" === typeof boundAction.$$FORM_ACTION &&
  3273. (action.$$FORM_ACTION = function (prefix) {
  3274. prefix = boundAction.$$FORM_ACTION(prefix);
  3275. void 0 !== permalink &&
  3276. ((permalink += ""), (prefix.action = permalink));
  3277. var formData = prefix.data;
  3278. formData &&
  3279. (null === nextPostbackStateKey &&
  3280. (nextPostbackStateKey =
  3281. void 0 !== permalink
  3282. ? "p" + permalink
  3283. : "k" +
  3284. murmurhash3_32_gc(
  3285. JSON.stringify([
  3286. componentKeyPath,
  3287. null,
  3288. actionStateHookIndex
  3289. ]),
  3290. 0
  3291. )),
  3292. formData.append("$ACTION_KEY", nextPostbackStateKey));
  3293. return prefix;
  3294. });
  3295. return [initialState, action, !1];
  3296. }
  3297. var boundAction$22 = action.bind(null, initialState);
  3298. return [
  3299. initialState,
  3300. function (payload) {
  3301. boundAction$22(payload);
  3302. },
  3303. !1
  3304. ];
  3305. }
  3306. function unwrapThenable(thenable) {
  3307. var index = thenableIndexCounter;
  3308. thenableIndexCounter += 1;
  3309. null === thenableState && (thenableState = []);
  3310. return trackUsedThenable(thenableState, thenable, index);
  3311. }
  3312. function unsupportedRefresh() {
  3313. throw Error(formatProdErrorMessage(393));
  3314. }
  3315. var HooksDispatcher = {
  3316. readContext: function (context) {
  3317. return context._currentValue2;
  3318. },
  3319. use: function (usable) {
  3320. if (null !== usable && "object" === typeof usable) {
  3321. if ("function" === typeof usable.then) return unwrapThenable(usable);
  3322. if (usable.$$typeof === REACT_CONTEXT_TYPE)
  3323. return usable._currentValue2;
  3324. }
  3325. throw Error(formatProdErrorMessage(438, String(usable)));
  3326. },
  3327. useContext: function (context) {
  3328. resolveCurrentlyRenderingComponent();
  3329. return context._currentValue2;
  3330. },
  3331. useMemo: useMemo,
  3332. useReducer: useReducer,
  3333. useRef: function (initialValue) {
  3334. currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
  3335. workInProgressHook = createWorkInProgressHook();
  3336. var previousRef = workInProgressHook.memoizedState;
  3337. return null === previousRef
  3338. ? ((initialValue = { current: initialValue }),
  3339. (workInProgressHook.memoizedState = initialValue))
  3340. : previousRef;
  3341. },
  3342. useState: function (initialState) {
  3343. return useReducer(basicStateReducer, initialState);
  3344. },
  3345. useInsertionEffect: noop,
  3346. useLayoutEffect: noop,
  3347. useCallback: function (callback, deps) {
  3348. return useMemo(function () {
  3349. return callback;
  3350. }, deps);
  3351. },
  3352. useImperativeHandle: noop,
  3353. useEffect: noop,
  3354. useDebugValue: noop,
  3355. useDeferredValue: function (value, initialValue) {
  3356. resolveCurrentlyRenderingComponent();
  3357. return void 0 !== initialValue ? initialValue : value;
  3358. },
  3359. useTransition: function () {
  3360. resolveCurrentlyRenderingComponent();
  3361. return [!1, unsupportedStartTransition];
  3362. },
  3363. useId: function () {
  3364. var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
  3365. var overflow = JSCompiler_inline_result.overflow;
  3366. JSCompiler_inline_result = JSCompiler_inline_result.id;
  3367. JSCompiler_inline_result =
  3368. (
  3369. JSCompiler_inline_result &
  3370. ~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
  3371. ).toString(32) + overflow;
  3372. var resumableState = currentResumableState;
  3373. if (null === resumableState) throw Error(formatProdErrorMessage(404));
  3374. overflow = localIdCounter++;
  3375. JSCompiler_inline_result =
  3376. "_" + resumableState.idPrefix + "R_" + JSCompiler_inline_result;
  3377. 0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
  3378. return JSCompiler_inline_result + "_";
  3379. },
  3380. useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
  3381. if (void 0 === getServerSnapshot)
  3382. throw Error(formatProdErrorMessage(407));
  3383. return getServerSnapshot();
  3384. },
  3385. useOptimistic: function (passthrough) {
  3386. resolveCurrentlyRenderingComponent();
  3387. return [passthrough, unsupportedSetOptimisticState];
  3388. },
  3389. useActionState: useActionState,
  3390. useFormState: useActionState,
  3391. useHostTransitionStatus: function () {
  3392. resolveCurrentlyRenderingComponent();
  3393. return sharedNotPendingObject;
  3394. },
  3395. useMemoCache: function (size) {
  3396. for (var data = Array(size), i = 0; i < size; i++)
  3397. data[i] = REACT_MEMO_CACHE_SENTINEL;
  3398. return data;
  3399. },
  3400. useCacheRefresh: function () {
  3401. return unsupportedRefresh;
  3402. },
  3403. useEffectEvent: function () {
  3404. return throwOnUseEffectEventCall;
  3405. }
  3406. },
  3407. currentResumableState = null,
  3408. DefaultAsyncDispatcher = {
  3409. getCacheForType: function () {
  3410. throw Error(formatProdErrorMessage(248));
  3411. },
  3412. cacheSignal: function () {
  3413. throw Error(formatProdErrorMessage(248));
  3414. }
  3415. },
  3416. prefix,
  3417. suffix;
  3418. function describeBuiltInComponentFrame(name) {
  3419. if (void 0 === prefix)
  3420. try {
  3421. throw Error();
  3422. } catch (x) {
  3423. var match = x.stack.trim().match(/\n( *(at )?)/);
  3424. prefix = (match && match[1]) || "";
  3425. suffix =
  3426. -1 < x.stack.indexOf("\n at")
  3427. ? " (<anonymous>)"
  3428. : -1 < x.stack.indexOf("@")
  3429. ? "@unknown:0:0"
  3430. : "";
  3431. }
  3432. return "\n" + prefix + name + suffix;
  3433. }
  3434. var reentry = !1;
  3435. function describeNativeComponentFrame(fn, construct) {
  3436. if (!fn || reentry) return "";
  3437. reentry = !0;
  3438. var previousPrepareStackTrace = Error.prepareStackTrace;
  3439. Error.prepareStackTrace = void 0;
  3440. try {
  3441. var RunInRootFrame = {
  3442. DetermineComponentFrameRoot: function () {
  3443. try {
  3444. if (construct) {
  3445. var Fake = function () {
  3446. throw Error();
  3447. };
  3448. Object.defineProperty(Fake.prototype, "props", {
  3449. set: function () {
  3450. throw Error();
  3451. }
  3452. });
  3453. if ("object" === typeof Reflect && Reflect.construct) {
  3454. try {
  3455. Reflect.construct(Fake, []);
  3456. } catch (x) {
  3457. var control = x;
  3458. }
  3459. Reflect.construct(fn, [], Fake);
  3460. } else {
  3461. try {
  3462. Fake.call();
  3463. } catch (x$24) {
  3464. control = x$24;
  3465. }
  3466. fn.call(Fake.prototype);
  3467. }
  3468. } else {
  3469. try {
  3470. throw Error();
  3471. } catch (x$25) {
  3472. control = x$25;
  3473. }
  3474. (Fake = fn()) &&
  3475. "function" === typeof Fake.catch &&
  3476. Fake.catch(function () {});
  3477. }
  3478. } catch (sample) {
  3479. if (sample && control && "string" === typeof sample.stack)
  3480. return [sample.stack, control.stack];
  3481. }
  3482. return [null, null];
  3483. }
  3484. };
  3485. RunInRootFrame.DetermineComponentFrameRoot.displayName =
  3486. "DetermineComponentFrameRoot";
  3487. var namePropDescriptor = Object.getOwnPropertyDescriptor(
  3488. RunInRootFrame.DetermineComponentFrameRoot,
  3489. "name"
  3490. );
  3491. namePropDescriptor &&
  3492. namePropDescriptor.configurable &&
  3493. Object.defineProperty(
  3494. RunInRootFrame.DetermineComponentFrameRoot,
  3495. "name",
  3496. { value: "DetermineComponentFrameRoot" }
  3497. );
  3498. var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(),
  3499. sampleStack = _RunInRootFrame$Deter[0],
  3500. controlStack = _RunInRootFrame$Deter[1];
  3501. if (sampleStack && controlStack) {
  3502. var sampleLines = sampleStack.split("\n"),
  3503. controlLines = controlStack.split("\n");
  3504. for (
  3505. namePropDescriptor = RunInRootFrame = 0;
  3506. RunInRootFrame < sampleLines.length &&
  3507. !sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot");
  3508. )
  3509. RunInRootFrame++;
  3510. for (
  3511. ;
  3512. namePropDescriptor < controlLines.length &&
  3513. !controlLines[namePropDescriptor].includes(
  3514. "DetermineComponentFrameRoot"
  3515. );
  3516. )
  3517. namePropDescriptor++;
  3518. if (
  3519. RunInRootFrame === sampleLines.length ||
  3520. namePropDescriptor === controlLines.length
  3521. )
  3522. for (
  3523. RunInRootFrame = sampleLines.length - 1,
  3524. namePropDescriptor = controlLines.length - 1;
  3525. 1 <= RunInRootFrame &&
  3526. 0 <= namePropDescriptor &&
  3527. sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor];
  3528. )
  3529. namePropDescriptor--;
  3530. for (
  3531. ;
  3532. 1 <= RunInRootFrame && 0 <= namePropDescriptor;
  3533. RunInRootFrame--, namePropDescriptor--
  3534. )
  3535. if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) {
  3536. if (1 !== RunInRootFrame || 1 !== namePropDescriptor) {
  3537. do
  3538. if (
  3539. (RunInRootFrame--,
  3540. namePropDescriptor--,
  3541. 0 > namePropDescriptor ||
  3542. sampleLines[RunInRootFrame] !==
  3543. controlLines[namePropDescriptor])
  3544. ) {
  3545. var frame =
  3546. "\n" +
  3547. sampleLines[RunInRootFrame].replace(" at new ", " at ");
  3548. fn.displayName &&
  3549. frame.includes("<anonymous>") &&
  3550. (frame = frame.replace("<anonymous>", fn.displayName));
  3551. return frame;
  3552. }
  3553. while (1 <= RunInRootFrame && 0 <= namePropDescriptor);
  3554. }
  3555. break;
  3556. }
  3557. }
  3558. } finally {
  3559. (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace);
  3560. }
  3561. return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "")
  3562. ? describeBuiltInComponentFrame(previousPrepareStackTrace)
  3563. : "";
  3564. }
  3565. function describeComponentStackByType(type) {
  3566. if ("string" === typeof type) return describeBuiltInComponentFrame(type);
  3567. if ("function" === typeof type)
  3568. return type.prototype && type.prototype.isReactComponent
  3569. ? describeNativeComponentFrame(type, !0)
  3570. : describeNativeComponentFrame(type, !1);
  3571. if ("object" === typeof type && null !== type) {
  3572. switch (type.$$typeof) {
  3573. case REACT_FORWARD_REF_TYPE:
  3574. return describeNativeComponentFrame(type.render, !1);
  3575. case REACT_MEMO_TYPE:
  3576. return describeNativeComponentFrame(type.type, !1);
  3577. case REACT_LAZY_TYPE:
  3578. var lazyComponent = type,
  3579. payload = lazyComponent._payload;
  3580. lazyComponent = lazyComponent._init;
  3581. try {
  3582. type = lazyComponent(payload);
  3583. } catch (x) {
  3584. return describeBuiltInComponentFrame("Lazy");
  3585. }
  3586. return describeComponentStackByType(type);
  3587. }
  3588. if ("string" === typeof type.name) {
  3589. a: {
  3590. payload = type.name;
  3591. lazyComponent = type.env;
  3592. var location = type.debugLocation;
  3593. if (
  3594. null != location &&
  3595. ((type = Error.prepareStackTrace),
  3596. (Error.prepareStackTrace = void 0),
  3597. (location = location.stack),
  3598. (Error.prepareStackTrace = type),
  3599. location.startsWith("Error: react-stack-top-frame\n") &&
  3600. (location = location.slice(29)),
  3601. (type = location.indexOf("\n")),
  3602. -1 !== type && (location = location.slice(type + 1)),
  3603. (type = location.indexOf("react_stack_bottom_frame")),
  3604. -1 !== type && (type = location.lastIndexOf("\n", type)),
  3605. (type = -1 !== type ? (location = location.slice(0, type)) : ""),
  3606. (location = type.lastIndexOf("\n")),
  3607. (type = -1 === location ? type : type.slice(location + 1)),
  3608. -1 !== type.indexOf(payload))
  3609. ) {
  3610. payload = "\n" + type;
  3611. break a;
  3612. }
  3613. payload = describeBuiltInComponentFrame(
  3614. payload + (lazyComponent ? " [" + lazyComponent + "]" : "")
  3615. );
  3616. }
  3617. return payload;
  3618. }
  3619. }
  3620. switch (type) {
  3621. case REACT_SUSPENSE_LIST_TYPE:
  3622. return describeBuiltInComponentFrame("SuspenseList");
  3623. case REACT_SUSPENSE_TYPE:
  3624. return describeBuiltInComponentFrame("Suspense");
  3625. }
  3626. return "";
  3627. }
  3628. function isEligibleForOutlining(request, boundary) {
  3629. return (500 < boundary.byteSize || !1) && null === boundary.contentPreamble;
  3630. }
  3631. function defaultErrorHandler(error) {
  3632. if (
  3633. "object" === typeof error &&
  3634. null !== error &&
  3635. "string" === typeof error.environmentName
  3636. ) {
  3637. var JSCompiler_inline_result = error.environmentName;
  3638. error = [error].slice(0);
  3639. "string" === typeof error[0]
  3640. ? error.splice(
  3641. 0,
  3642. 1,
  3643. "[%s] " + error[0],
  3644. " " + JSCompiler_inline_result + " "
  3645. )
  3646. : error.splice(0, 0, "[%s]", " " + JSCompiler_inline_result + " ");
  3647. error.unshift(console);
  3648. JSCompiler_inline_result = bind.apply(console.error, error);
  3649. JSCompiler_inline_result();
  3650. } else console.error(error);
  3651. return null;
  3652. }
  3653. function RequestInstance(
  3654. resumableState,
  3655. renderState,
  3656. rootFormatContext,
  3657. progressiveChunkSize,
  3658. onError,
  3659. onAllReady,
  3660. onShellReady,
  3661. onShellError,
  3662. onFatalError,
  3663. onPostpone,
  3664. formState
  3665. ) {
  3666. var abortSet = new Set();
  3667. this.destination = null;
  3668. this.flushScheduled = !1;
  3669. this.resumableState = resumableState;
  3670. this.renderState = renderState;
  3671. this.rootFormatContext = rootFormatContext;
  3672. this.progressiveChunkSize =
  3673. void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize;
  3674. this.status = 10;
  3675. this.fatalError = null;
  3676. this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
  3677. this.completedPreambleSegments = this.completedRootSegment = null;
  3678. this.byteSize = 0;
  3679. this.abortableTasks = abortSet;
  3680. this.pingedTasks = [];
  3681. this.clientRenderedBoundaries = [];
  3682. this.completedBoundaries = [];
  3683. this.partialBoundaries = [];
  3684. this.trackedPostpones = null;
  3685. this.onError = void 0 === onError ? defaultErrorHandler : onError;
  3686. this.onPostpone = void 0 === onPostpone ? noop : onPostpone;
  3687. this.onAllReady = void 0 === onAllReady ? noop : onAllReady;
  3688. this.onShellReady = void 0 === onShellReady ? noop : onShellReady;
  3689. this.onShellError = void 0 === onShellError ? noop : onShellError;
  3690. this.onFatalError = void 0 === onFatalError ? noop : onFatalError;
  3691. this.formState = void 0 === formState ? null : formState;
  3692. }
  3693. function createRequest(
  3694. children,
  3695. resumableState,
  3696. renderState,
  3697. rootFormatContext,
  3698. progressiveChunkSize,
  3699. onError,
  3700. onAllReady,
  3701. onShellReady,
  3702. onShellError,
  3703. onFatalError,
  3704. onPostpone,
  3705. formState
  3706. ) {
  3707. resumableState = new RequestInstance(
  3708. resumableState,
  3709. renderState,
  3710. rootFormatContext,
  3711. progressiveChunkSize,
  3712. onError,
  3713. onAllReady,
  3714. onShellReady,
  3715. onShellError,
  3716. onFatalError,
  3717. onPostpone,
  3718. formState
  3719. );
  3720. renderState = createPendingSegment(
  3721. resumableState,
  3722. 0,
  3723. null,
  3724. rootFormatContext,
  3725. !1,
  3726. !1
  3727. );
  3728. renderState.parentFlushed = !0;
  3729. children = createRenderTask(
  3730. resumableState,
  3731. null,
  3732. children,
  3733. -1,
  3734. null,
  3735. renderState,
  3736. null,
  3737. null,
  3738. resumableState.abortableTasks,
  3739. null,
  3740. rootFormatContext,
  3741. null,
  3742. emptyTreeContext,
  3743. null,
  3744. null
  3745. );
  3746. pushComponentStack(children);
  3747. resumableState.pingedTasks.push(children);
  3748. return resumableState;
  3749. }
  3750. var currentRequest = null;
  3751. function pingTask(request, task) {
  3752. request.pingedTasks.push(task);
  3753. 1 === request.pingedTasks.length &&
  3754. ((request.flushScheduled = null !== request.destination),
  3755. performWork(request));
  3756. }
  3757. function createSuspenseBoundary(
  3758. request,
  3759. row,
  3760. fallbackAbortableTasks,
  3761. contentPreamble,
  3762. fallbackPreamble
  3763. ) {
  3764. fallbackAbortableTasks = {
  3765. status: 0,
  3766. rootSegmentID: -1,
  3767. parentFlushed: !1,
  3768. pendingTasks: 0,
  3769. row: row,
  3770. completedSegments: [],
  3771. byteSize: 0,
  3772. fallbackAbortableTasks: fallbackAbortableTasks,
  3773. errorDigest: null,
  3774. contentState: createHoistableState(),
  3775. fallbackState: createHoistableState(),
  3776. contentPreamble: contentPreamble,
  3777. fallbackPreamble: fallbackPreamble,
  3778. trackedContentKeyPath: null,
  3779. trackedFallbackNode: null
  3780. };
  3781. null !== row &&
  3782. (row.pendingTasks++,
  3783. (contentPreamble = row.boundaries),
  3784. null !== contentPreamble &&
  3785. (request.allPendingTasks++,
  3786. fallbackAbortableTasks.pendingTasks++,
  3787. contentPreamble.push(fallbackAbortableTasks)),
  3788. (request = row.inheritedHoistables),
  3789. null !== request &&
  3790. hoistHoistables(fallbackAbortableTasks.contentState, request));
  3791. return fallbackAbortableTasks;
  3792. }
  3793. function createRenderTask(
  3794. request,
  3795. thenableState,
  3796. node,
  3797. childIndex,
  3798. blockedBoundary,
  3799. blockedSegment,
  3800. blockedPreamble,
  3801. hoistableState,
  3802. abortSet,
  3803. keyPath,
  3804. formatContext,
  3805. context,
  3806. treeContext,
  3807. row,
  3808. componentStack
  3809. ) {
  3810. request.allPendingTasks++;
  3811. null === blockedBoundary
  3812. ? request.pendingRootTasks++
  3813. : blockedBoundary.pendingTasks++;
  3814. null !== row && row.pendingTasks++;
  3815. var task = {
  3816. replay: null,
  3817. node: node,
  3818. childIndex: childIndex,
  3819. ping: function () {
  3820. return pingTask(request, task);
  3821. },
  3822. blockedBoundary: blockedBoundary,
  3823. blockedSegment: blockedSegment,
  3824. blockedPreamble: blockedPreamble,
  3825. hoistableState: hoistableState,
  3826. abortSet: abortSet,
  3827. keyPath: keyPath,
  3828. formatContext: formatContext,
  3829. context: context,
  3830. treeContext: treeContext,
  3831. row: row,
  3832. componentStack: componentStack,
  3833. thenableState: thenableState
  3834. };
  3835. abortSet.add(task);
  3836. return task;
  3837. }
  3838. function createReplayTask(
  3839. request,
  3840. thenableState,
  3841. replay,
  3842. node,
  3843. childIndex,
  3844. blockedBoundary,
  3845. hoistableState,
  3846. abortSet,
  3847. keyPath,
  3848. formatContext,
  3849. context,
  3850. treeContext,
  3851. row,
  3852. componentStack
  3853. ) {
  3854. request.allPendingTasks++;
  3855. null === blockedBoundary
  3856. ? request.pendingRootTasks++
  3857. : blockedBoundary.pendingTasks++;
  3858. null !== row && row.pendingTasks++;
  3859. replay.pendingTasks++;
  3860. var task = {
  3861. replay: replay,
  3862. node: node,
  3863. childIndex: childIndex,
  3864. ping: function () {
  3865. return pingTask(request, task);
  3866. },
  3867. blockedBoundary: blockedBoundary,
  3868. blockedSegment: null,
  3869. blockedPreamble: null,
  3870. hoistableState: hoistableState,
  3871. abortSet: abortSet,
  3872. keyPath: keyPath,
  3873. formatContext: formatContext,
  3874. context: context,
  3875. treeContext: treeContext,
  3876. row: row,
  3877. componentStack: componentStack,
  3878. thenableState: thenableState
  3879. };
  3880. abortSet.add(task);
  3881. return task;
  3882. }
  3883. function createPendingSegment(
  3884. request,
  3885. index,
  3886. boundary,
  3887. parentFormatContext,
  3888. lastPushedText,
  3889. textEmbedded
  3890. ) {
  3891. return {
  3892. status: 0,
  3893. parentFlushed: !1,
  3894. id: -1,
  3895. index: index,
  3896. chunks: [],
  3897. children: [],
  3898. preambleChildren: [],
  3899. parentFormatContext: parentFormatContext,
  3900. boundary: boundary,
  3901. lastPushedText: lastPushedText,
  3902. textEmbedded: textEmbedded
  3903. };
  3904. }
  3905. function pushComponentStack(task) {
  3906. var node = task.node;
  3907. if ("object" === typeof node && null !== node)
  3908. switch (node.$$typeof) {
  3909. case REACT_ELEMENT_TYPE:
  3910. task.componentStack = { parent: task.componentStack, type: node.type };
  3911. }
  3912. }
  3913. function replaceSuspenseComponentStackWithSuspenseFallbackStack(
  3914. componentStack
  3915. ) {
  3916. return null === componentStack
  3917. ? null
  3918. : { parent: componentStack.parent, type: "Suspense Fallback" };
  3919. }
  3920. function getThrownInfo(node$jscomp$0) {
  3921. var errorInfo = {};
  3922. node$jscomp$0 &&
  3923. Object.defineProperty(errorInfo, "componentStack", {
  3924. configurable: !0,
  3925. enumerable: !0,
  3926. get: function () {
  3927. try {
  3928. var info = "",
  3929. node = node$jscomp$0;
  3930. do
  3931. (info += describeComponentStackByType(node.type)),
  3932. (node = node.parent);
  3933. while (node);
  3934. var JSCompiler_inline_result = info;
  3935. } catch (x) {
  3936. JSCompiler_inline_result =
  3937. "\nError generating stack: " + x.message + "\n" + x.stack;
  3938. }
  3939. Object.defineProperty(errorInfo, "componentStack", {
  3940. value: JSCompiler_inline_result
  3941. });
  3942. return JSCompiler_inline_result;
  3943. }
  3944. });
  3945. return errorInfo;
  3946. }
  3947. function logRecoverableError(request, error, errorInfo) {
  3948. request = request.onError;
  3949. error = request(error, errorInfo);
  3950. if (null == error || "string" === typeof error) return error;
  3951. }
  3952. function fatalError(request, error) {
  3953. var onShellError = request.onShellError,
  3954. onFatalError = request.onFatalError;
  3955. onShellError(error);
  3956. onFatalError(error);
  3957. null !== request.destination
  3958. ? ((request.status = 14), request.destination.destroy(error))
  3959. : ((request.status = 13), (request.fatalError = error));
  3960. }
  3961. function finishSuspenseListRow(request, row) {
  3962. unblockSuspenseListRow(request, row.next, row.hoistables);
  3963. }
  3964. function unblockSuspenseListRow(request, unblockedRow, inheritedHoistables) {
  3965. for (; null !== unblockedRow; ) {
  3966. null !== inheritedHoistables &&
  3967. (hoistHoistables(unblockedRow.hoistables, inheritedHoistables),
  3968. (unblockedRow.inheritedHoistables = inheritedHoistables));
  3969. var unblockedBoundaries = unblockedRow.boundaries;
  3970. if (null !== unblockedBoundaries) {
  3971. unblockedRow.boundaries = null;
  3972. for (var i = 0; i < unblockedBoundaries.length; i++) {
  3973. var unblockedBoundary = unblockedBoundaries[i];
  3974. null !== inheritedHoistables &&
  3975. hoistHoistables(unblockedBoundary.contentState, inheritedHoistables);
  3976. finishedTask(request, unblockedBoundary, null, null);
  3977. }
  3978. }
  3979. unblockedRow.pendingTasks--;
  3980. if (0 < unblockedRow.pendingTasks) break;
  3981. inheritedHoistables = unblockedRow.hoistables;
  3982. unblockedRow = unblockedRow.next;
  3983. }
  3984. }
  3985. function tryToResolveTogetherRow(request, togetherRow) {
  3986. var boundaries = togetherRow.boundaries;
  3987. if (null !== boundaries && togetherRow.pendingTasks === boundaries.length) {
  3988. for (var allCompleteAndInlinable = !0, i = 0; i < boundaries.length; i++) {
  3989. var rowBoundary = boundaries[i];
  3990. if (
  3991. 1 !== rowBoundary.pendingTasks ||
  3992. rowBoundary.parentFlushed ||
  3993. isEligibleForOutlining(request, rowBoundary)
  3994. ) {
  3995. allCompleteAndInlinable = !1;
  3996. break;
  3997. }
  3998. }
  3999. allCompleteAndInlinable &&
  4000. unblockSuspenseListRow(request, togetherRow, togetherRow.hoistables);
  4001. }
  4002. }
  4003. function createSuspenseListRow(previousRow) {
  4004. var newRow = {
  4005. pendingTasks: 1,
  4006. boundaries: null,
  4007. hoistables: createHoistableState(),
  4008. inheritedHoistables: null,
  4009. together: !1,
  4010. next: null
  4011. };
  4012. null !== previousRow &&
  4013. 0 < previousRow.pendingTasks &&
  4014. (newRow.pendingTasks++,
  4015. (newRow.boundaries = []),
  4016. (previousRow.next = newRow));
  4017. return newRow;
  4018. }
  4019. function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
  4020. var prevKeyPath = task.keyPath,
  4021. prevTreeContext = task.treeContext,
  4022. prevRow = task.row;
  4023. task.keyPath = keyPath;
  4024. keyPath = rows.length;
  4025. var previousSuspenseListRow = null;
  4026. if (null !== task.replay) {
  4027. var resumeSlots = task.replay.slots;
  4028. if (null !== resumeSlots && "object" === typeof resumeSlots)
  4029. for (var n = 0; n < keyPath; n++) {
  4030. var i =
  4031. "backwards" !== revealOrder &&
  4032. "unstable_legacy-backwards" !== revealOrder
  4033. ? n
  4034. : keyPath - 1 - n,
  4035. node = rows[i];
  4036. task.row = previousSuspenseListRow = createSuspenseListRow(
  4037. previousSuspenseListRow
  4038. );
  4039. task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
  4040. var resumeSegmentID = resumeSlots[i];
  4041. "number" === typeof resumeSegmentID
  4042. ? (resumeNode(request, task, resumeSegmentID, node, i),
  4043. delete resumeSlots[i])
  4044. : renderNode(request, task, node, i);
  4045. 0 === --previousSuspenseListRow.pendingTasks &&
  4046. finishSuspenseListRow(request, previousSuspenseListRow);
  4047. }
  4048. else
  4049. for (resumeSlots = 0; resumeSlots < keyPath; resumeSlots++)
  4050. (n =
  4051. "backwards" !== revealOrder &&
  4052. "unstable_legacy-backwards" !== revealOrder
  4053. ? resumeSlots
  4054. : keyPath - 1 - resumeSlots),
  4055. (i = rows[n]),
  4056. (task.row = previousSuspenseListRow =
  4057. createSuspenseListRow(previousSuspenseListRow)),
  4058. (task.treeContext = pushTreeContext(prevTreeContext, keyPath, n)),
  4059. renderNode(request, task, i, n),
  4060. 0 === --previousSuspenseListRow.pendingTasks &&
  4061. finishSuspenseListRow(request, previousSuspenseListRow);
  4062. } else if (
  4063. "backwards" !== revealOrder &&
  4064. "unstable_legacy-backwards" !== revealOrder
  4065. )
  4066. for (revealOrder = 0; revealOrder < keyPath; revealOrder++)
  4067. (resumeSlots = rows[revealOrder]),
  4068. (task.row = previousSuspenseListRow =
  4069. createSuspenseListRow(previousSuspenseListRow)),
  4070. (task.treeContext = pushTreeContext(
  4071. prevTreeContext,
  4072. keyPath,
  4073. revealOrder
  4074. )),
  4075. renderNode(request, task, resumeSlots, revealOrder),
  4076. 0 === --previousSuspenseListRow.pendingTasks &&
  4077. finishSuspenseListRow(request, previousSuspenseListRow);
  4078. else {
  4079. revealOrder = task.blockedSegment;
  4080. resumeSlots = revealOrder.children.length;
  4081. n = revealOrder.chunks.length;
  4082. for (i = keyPath - 1; 0 <= i; i--) {
  4083. node = rows[i];
  4084. task.row = previousSuspenseListRow = createSuspenseListRow(
  4085. previousSuspenseListRow
  4086. );
  4087. task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
  4088. resumeSegmentID = createPendingSegment(
  4089. request,
  4090. n,
  4091. null,
  4092. task.formatContext,
  4093. 0 === i ? revealOrder.lastPushedText : !0,
  4094. !0
  4095. );
  4096. revealOrder.children.splice(resumeSlots, 0, resumeSegmentID);
  4097. task.blockedSegment = resumeSegmentID;
  4098. try {
  4099. renderNode(request, task, node, i),
  4100. pushSegmentFinale(
  4101. resumeSegmentID.chunks,
  4102. request.renderState,
  4103. resumeSegmentID.lastPushedText,
  4104. resumeSegmentID.textEmbedded
  4105. ),
  4106. (resumeSegmentID.status = 1),
  4107. 0 === --previousSuspenseListRow.pendingTasks &&
  4108. finishSuspenseListRow(request, previousSuspenseListRow);
  4109. } catch (thrownValue) {
  4110. throw (
  4111. ((resumeSegmentID.status = 12 === request.status ? 3 : 4),
  4112. thrownValue)
  4113. );
  4114. }
  4115. }
  4116. task.blockedSegment = revealOrder;
  4117. revealOrder.lastPushedText = !1;
  4118. }
  4119. null !== prevRow &&
  4120. null !== previousSuspenseListRow &&
  4121. 0 < previousSuspenseListRow.pendingTasks &&
  4122. (prevRow.pendingTasks++, (previousSuspenseListRow.next = prevRow));
  4123. task.treeContext = prevTreeContext;
  4124. task.row = prevRow;
  4125. task.keyPath = prevKeyPath;
  4126. }
  4127. function renderWithHooks(request, task, keyPath, Component, props, secondArg) {
  4128. var prevThenableState = task.thenableState;
  4129. task.thenableState = null;
  4130. currentlyRenderingComponent = {};
  4131. currentlyRenderingTask = task;
  4132. currentlyRenderingRequest = request;
  4133. currentlyRenderingKeyPath = keyPath;
  4134. actionStateCounter = localIdCounter = 0;
  4135. actionStateMatchingIndex = -1;
  4136. thenableIndexCounter = 0;
  4137. thenableState = prevThenableState;
  4138. for (request = Component(props, secondArg); didScheduleRenderPhaseUpdate; )
  4139. (didScheduleRenderPhaseUpdate = !1),
  4140. (actionStateCounter = localIdCounter = 0),
  4141. (actionStateMatchingIndex = -1),
  4142. (thenableIndexCounter = 0),
  4143. (numberOfReRenders += 1),
  4144. (workInProgressHook = null),
  4145. (request = Component(props, secondArg));
  4146. resetHooksState();
  4147. return request;
  4148. }
  4149. function finishFunctionComponent(
  4150. request,
  4151. task,
  4152. keyPath,
  4153. children,
  4154. hasId,
  4155. actionStateCount,
  4156. actionStateMatchingIndex
  4157. ) {
  4158. var didEmitActionStateMarkers = !1;
  4159. if (0 !== actionStateCount && null !== request.formState) {
  4160. var segment = task.blockedSegment;
  4161. if (null !== segment) {
  4162. didEmitActionStateMarkers = !0;
  4163. segment = segment.chunks;
  4164. for (var i = 0; i < actionStateCount; i++)
  4165. i === actionStateMatchingIndex
  4166. ? segment.push("\x3c!--F!--\x3e")
  4167. : segment.push("\x3c!--F--\x3e");
  4168. }
  4169. }
  4170. actionStateCount = task.keyPath;
  4171. task.keyPath = keyPath;
  4172. hasId
  4173. ? ((keyPath = task.treeContext),
  4174. (task.treeContext = pushTreeContext(keyPath, 1, 0)),
  4175. renderNode(request, task, children, -1),
  4176. (task.treeContext = keyPath))
  4177. : didEmitActionStateMarkers
  4178. ? renderNode(request, task, children, -1)
  4179. : renderNodeDestructive(request, task, children, -1);
  4180. task.keyPath = actionStateCount;
  4181. }
  4182. function renderElement(request, task, keyPath, type, props, ref) {
  4183. if ("function" === typeof type)
  4184. if (type.prototype && type.prototype.isReactComponent) {
  4185. var newProps = props;
  4186. if ("ref" in props) {
  4187. newProps = {};
  4188. for (var propName in props)
  4189. "ref" !== propName && (newProps[propName] = props[propName]);
  4190. }
  4191. var defaultProps = type.defaultProps;
  4192. if (defaultProps) {
  4193. newProps === props && (newProps = assign({}, newProps, props));
  4194. for (var propName$43 in defaultProps)
  4195. void 0 === newProps[propName$43] &&
  4196. (newProps[propName$43] = defaultProps[propName$43]);
  4197. }
  4198. props = newProps;
  4199. newProps = emptyContextObject;
  4200. defaultProps = type.contextType;
  4201. "object" === typeof defaultProps &&
  4202. null !== defaultProps &&
  4203. (newProps = defaultProps._currentValue2);
  4204. newProps = new type(props, newProps);
  4205. var initialState = void 0 !== newProps.state ? newProps.state : null;
  4206. newProps.updater = classComponentUpdater;
  4207. newProps.props = props;
  4208. newProps.state = initialState;
  4209. defaultProps = { queue: [], replace: !1 };
  4210. newProps._reactInternals = defaultProps;
  4211. ref = type.contextType;
  4212. newProps.context =
  4213. "object" === typeof ref && null !== ref
  4214. ? ref._currentValue2
  4215. : emptyContextObject;
  4216. ref = type.getDerivedStateFromProps;
  4217. "function" === typeof ref &&
  4218. ((ref = ref(props, initialState)),
  4219. (initialState =
  4220. null === ref || void 0 === ref
  4221. ? initialState
  4222. : assign({}, initialState, ref)),
  4223. (newProps.state = initialState));
  4224. if (
  4225. "function" !== typeof type.getDerivedStateFromProps &&
  4226. "function" !== typeof newProps.getSnapshotBeforeUpdate &&
  4227. ("function" === typeof newProps.UNSAFE_componentWillMount ||
  4228. "function" === typeof newProps.componentWillMount)
  4229. )
  4230. if (
  4231. ((type = newProps.state),
  4232. "function" === typeof newProps.componentWillMount &&
  4233. newProps.componentWillMount(),
  4234. "function" === typeof newProps.UNSAFE_componentWillMount &&
  4235. newProps.UNSAFE_componentWillMount(),
  4236. type !== newProps.state &&
  4237. classComponentUpdater.enqueueReplaceState(
  4238. newProps,
  4239. newProps.state,
  4240. null
  4241. ),
  4242. null !== defaultProps.queue && 0 < defaultProps.queue.length)
  4243. )
  4244. if (
  4245. ((type = defaultProps.queue),
  4246. (ref = defaultProps.replace),
  4247. (defaultProps.queue = null),
  4248. (defaultProps.replace = !1),
  4249. ref && 1 === type.length)
  4250. )
  4251. newProps.state = type[0];
  4252. else {
  4253. defaultProps = ref ? type[0] : newProps.state;
  4254. initialState = !0;
  4255. for (ref = ref ? 1 : 0; ref < type.length; ref++)
  4256. (propName$43 = type[ref]),
  4257. (propName$43 =
  4258. "function" === typeof propName$43
  4259. ? propName$43.call(newProps, defaultProps, props, void 0)
  4260. : propName$43),
  4261. null != propName$43 &&
  4262. (initialState
  4263. ? ((initialState = !1),
  4264. (defaultProps = assign({}, defaultProps, propName$43)))
  4265. : assign(defaultProps, propName$43));
  4266. newProps.state = defaultProps;
  4267. }
  4268. else defaultProps.queue = null;
  4269. type = newProps.render();
  4270. if (12 === request.status) throw null;
  4271. props = task.keyPath;
  4272. task.keyPath = keyPath;
  4273. renderNodeDestructive(request, task, type, -1);
  4274. task.keyPath = props;
  4275. } else {
  4276. type = renderWithHooks(request, task, keyPath, type, props, void 0);
  4277. if (12 === request.status) throw null;
  4278. finishFunctionComponent(
  4279. request,
  4280. task,
  4281. keyPath,
  4282. type,
  4283. 0 !== localIdCounter,
  4284. actionStateCounter,
  4285. actionStateMatchingIndex
  4286. );
  4287. }
  4288. else if ("string" === typeof type)
  4289. if (((newProps = task.blockedSegment), null === newProps))
  4290. (newProps = props.children),
  4291. (defaultProps = task.formatContext),
  4292. (initialState = task.keyPath),
  4293. (task.formatContext = getChildFormatContext(defaultProps, type, props)),
  4294. (task.keyPath = keyPath),
  4295. renderNode(request, task, newProps, -1),
  4296. (task.formatContext = defaultProps),
  4297. (task.keyPath = initialState);
  4298. else {
  4299. initialState = pushStartInstance(
  4300. newProps.chunks,
  4301. type,
  4302. props,
  4303. request.resumableState,
  4304. request.renderState,
  4305. task.blockedPreamble,
  4306. task.hoistableState,
  4307. task.formatContext,
  4308. newProps.lastPushedText
  4309. );
  4310. newProps.lastPushedText = !1;
  4311. defaultProps = task.formatContext;
  4312. ref = task.keyPath;
  4313. task.keyPath = keyPath;
  4314. if (
  4315. 3 ===
  4316. (task.formatContext = getChildFormatContext(defaultProps, type, props))
  4317. .insertionMode
  4318. ) {
  4319. keyPath = createPendingSegment(
  4320. request,
  4321. 0,
  4322. null,
  4323. task.formatContext,
  4324. !1,
  4325. !1
  4326. );
  4327. newProps.preambleChildren.push(keyPath);
  4328. task.blockedSegment = keyPath;
  4329. try {
  4330. (keyPath.status = 6),
  4331. renderNode(request, task, initialState, -1),
  4332. pushSegmentFinale(
  4333. keyPath.chunks,
  4334. request.renderState,
  4335. keyPath.lastPushedText,
  4336. keyPath.textEmbedded
  4337. ),
  4338. (keyPath.status = 1);
  4339. } finally {
  4340. task.blockedSegment = newProps;
  4341. }
  4342. } else renderNode(request, task, initialState, -1);
  4343. task.formatContext = defaultProps;
  4344. task.keyPath = ref;
  4345. a: {
  4346. task = newProps.chunks;
  4347. request = request.resumableState;
  4348. switch (type) {
  4349. case "title":
  4350. case "style":
  4351. case "script":
  4352. case "area":
  4353. case "base":
  4354. case "br":
  4355. case "col":
  4356. case "embed":
  4357. case "hr":
  4358. case "img":
  4359. case "input":
  4360. case "keygen":
  4361. case "link":
  4362. case "meta":
  4363. case "param":
  4364. case "source":
  4365. case "track":
  4366. case "wbr":
  4367. break a;
  4368. case "body":
  4369. if (1 >= defaultProps.insertionMode) {
  4370. request.hasBody = !0;
  4371. break a;
  4372. }
  4373. break;
  4374. case "html":
  4375. if (0 === defaultProps.insertionMode) {
  4376. request.hasHtml = !0;
  4377. break a;
  4378. }
  4379. break;
  4380. case "head":
  4381. if (1 >= defaultProps.insertionMode) break a;
  4382. }
  4383. task.push(endChunkForTag(type));
  4384. }
  4385. newProps.lastPushedText = !1;
  4386. }
  4387. else {
  4388. switch (type) {
  4389. case REACT_LEGACY_HIDDEN_TYPE:
  4390. case REACT_STRICT_MODE_TYPE:
  4391. case REACT_PROFILER_TYPE:
  4392. case REACT_FRAGMENT_TYPE:
  4393. type = task.keyPath;
  4394. task.keyPath = keyPath;
  4395. renderNodeDestructive(request, task, props.children, -1);
  4396. task.keyPath = type;
  4397. return;
  4398. case REACT_ACTIVITY_TYPE:
  4399. type = task.blockedSegment;
  4400. null === type
  4401. ? "hidden" !== props.mode &&
  4402. ((type = task.keyPath),
  4403. (task.keyPath = keyPath),
  4404. renderNode(request, task, props.children, -1),
  4405. (task.keyPath = type))
  4406. : "hidden" !== props.mode &&
  4407. (request.renderState.generateStaticMarkup ||
  4408. type.chunks.push("\x3c!--&--\x3e"),
  4409. (type.lastPushedText = !1),
  4410. (newProps = task.keyPath),
  4411. (task.keyPath = keyPath),
  4412. renderNode(request, task, props.children, -1),
  4413. (task.keyPath = newProps),
  4414. request.renderState.generateStaticMarkup ||
  4415. type.chunks.push("\x3c!--/&--\x3e"),
  4416. (type.lastPushedText = !1));
  4417. return;
  4418. case REACT_SUSPENSE_LIST_TYPE:
  4419. a: {
  4420. type = props.children;
  4421. props = props.revealOrder;
  4422. if (
  4423. "forwards" === props ||
  4424. "backwards" === props ||
  4425. "unstable_legacy-backwards" === props
  4426. ) {
  4427. if (isArrayImpl(type)) {
  4428. renderSuspenseListRows(request, task, keyPath, type, props);
  4429. break a;
  4430. }
  4431. if ((newProps = getIteratorFn(type)))
  4432. if ((newProps = newProps.call(type))) {
  4433. defaultProps = newProps.next();
  4434. if (!defaultProps.done) {
  4435. do defaultProps = newProps.next();
  4436. while (!defaultProps.done);
  4437. renderSuspenseListRows(request, task, keyPath, type, props);
  4438. }
  4439. break a;
  4440. }
  4441. }
  4442. "together" === props
  4443. ? ((props = task.keyPath),
  4444. (newProps = task.row),
  4445. (defaultProps = task.row = createSuspenseListRow(null)),
  4446. (defaultProps.boundaries = []),
  4447. (defaultProps.together = !0),
  4448. (task.keyPath = keyPath),
  4449. renderNodeDestructive(request, task, type, -1),
  4450. 0 === --defaultProps.pendingTasks &&
  4451. finishSuspenseListRow(request, defaultProps),
  4452. (task.keyPath = props),
  4453. (task.row = newProps),
  4454. null !== newProps &&
  4455. 0 < defaultProps.pendingTasks &&
  4456. (newProps.pendingTasks++, (defaultProps.next = newProps)))
  4457. : ((props = task.keyPath),
  4458. (task.keyPath = keyPath),
  4459. renderNodeDestructive(request, task, type, -1),
  4460. (task.keyPath = props));
  4461. }
  4462. return;
  4463. case REACT_VIEW_TRANSITION_TYPE:
  4464. case REACT_SCOPE_TYPE:
  4465. throw Error(formatProdErrorMessage(343));
  4466. case REACT_SUSPENSE_TYPE:
  4467. a: if (null !== task.replay) {
  4468. type = task.keyPath;
  4469. newProps = task.formatContext;
  4470. defaultProps = task.row;
  4471. task.keyPath = keyPath;
  4472. task.formatContext = getSuspenseContentFormatContext(
  4473. request.resumableState,
  4474. newProps
  4475. );
  4476. task.row = null;
  4477. keyPath = props.children;
  4478. try {
  4479. renderNode(request, task, keyPath, -1);
  4480. } finally {
  4481. (task.keyPath = type),
  4482. (task.formatContext = newProps),
  4483. (task.row = defaultProps);
  4484. }
  4485. } else {
  4486. type = task.keyPath;
  4487. ref = task.formatContext;
  4488. var prevRow = task.row,
  4489. parentBoundary = task.blockedBoundary;
  4490. propName$43 = task.blockedPreamble;
  4491. var parentHoistableState = task.hoistableState;
  4492. propName = task.blockedSegment;
  4493. var fallback = props.fallback;
  4494. props = props.children;
  4495. var fallbackAbortSet = new Set();
  4496. var newBoundary = createSuspenseBoundary(
  4497. request,
  4498. task.row,
  4499. fallbackAbortSet,
  4500. null,
  4501. null
  4502. );
  4503. null !== request.trackedPostpones &&
  4504. (newBoundary.trackedContentKeyPath = keyPath);
  4505. var boundarySegment = createPendingSegment(
  4506. request,
  4507. propName.chunks.length,
  4508. newBoundary,
  4509. task.formatContext,
  4510. !1,
  4511. !1
  4512. );
  4513. propName.children.push(boundarySegment);
  4514. propName.lastPushedText = !1;
  4515. var contentRootSegment = createPendingSegment(
  4516. request,
  4517. 0,
  4518. null,
  4519. task.formatContext,
  4520. !1,
  4521. !1
  4522. );
  4523. contentRootSegment.parentFlushed = !0;
  4524. if (null !== request.trackedPostpones) {
  4525. newProps = task.componentStack;
  4526. defaultProps = [keyPath[0], "Suspense Fallback", keyPath[2]];
  4527. initialState = [defaultProps[1], defaultProps[2], [], null];
  4528. request.trackedPostpones.workingMap.set(defaultProps, initialState);
  4529. newBoundary.trackedFallbackNode = initialState;
  4530. task.blockedSegment = boundarySegment;
  4531. task.blockedPreamble = newBoundary.fallbackPreamble;
  4532. task.keyPath = defaultProps;
  4533. task.formatContext = getSuspenseFallbackFormatContext(
  4534. request.resumableState,
  4535. ref
  4536. );
  4537. task.componentStack =
  4538. replaceSuspenseComponentStackWithSuspenseFallbackStack(newProps);
  4539. boundarySegment.status = 6;
  4540. try {
  4541. renderNode(request, task, fallback, -1),
  4542. pushSegmentFinale(
  4543. boundarySegment.chunks,
  4544. request.renderState,
  4545. boundarySegment.lastPushedText,
  4546. boundarySegment.textEmbedded
  4547. ),
  4548. (boundarySegment.status = 1);
  4549. } catch (thrownValue) {
  4550. throw (
  4551. ((boundarySegment.status = 12 === request.status ? 3 : 4),
  4552. thrownValue)
  4553. );
  4554. } finally {
  4555. (task.blockedSegment = propName),
  4556. (task.blockedPreamble = propName$43),
  4557. (task.keyPath = type),
  4558. (task.formatContext = ref);
  4559. }
  4560. task = createRenderTask(
  4561. request,
  4562. null,
  4563. props,
  4564. -1,
  4565. newBoundary,
  4566. contentRootSegment,
  4567. newBoundary.contentPreamble,
  4568. newBoundary.contentState,
  4569. task.abortSet,
  4570. keyPath,
  4571. getSuspenseContentFormatContext(
  4572. request.resumableState,
  4573. task.formatContext
  4574. ),
  4575. task.context,
  4576. task.treeContext,
  4577. null,
  4578. newProps
  4579. );
  4580. pushComponentStack(task);
  4581. request.pingedTasks.push(task);
  4582. } else {
  4583. task.blockedBoundary = newBoundary;
  4584. task.blockedPreamble = newBoundary.contentPreamble;
  4585. task.hoistableState = newBoundary.contentState;
  4586. task.blockedSegment = contentRootSegment;
  4587. task.keyPath = keyPath;
  4588. task.formatContext = getSuspenseContentFormatContext(
  4589. request.resumableState,
  4590. ref
  4591. );
  4592. task.row = null;
  4593. contentRootSegment.status = 6;
  4594. try {
  4595. if (
  4596. (renderNode(request, task, props, -1),
  4597. pushSegmentFinale(
  4598. contentRootSegment.chunks,
  4599. request.renderState,
  4600. contentRootSegment.lastPushedText,
  4601. contentRootSegment.textEmbedded
  4602. ),
  4603. (contentRootSegment.status = 1),
  4604. queueCompletedSegment(newBoundary, contentRootSegment),
  4605. 0 === newBoundary.pendingTasks && 0 === newBoundary.status)
  4606. ) {
  4607. if (
  4608. ((newBoundary.status = 1),
  4609. !isEligibleForOutlining(request, newBoundary))
  4610. ) {
  4611. null !== prevRow &&
  4612. 0 === --prevRow.pendingTasks &&
  4613. finishSuspenseListRow(request, prevRow);
  4614. 0 === request.pendingRootTasks &&
  4615. task.blockedPreamble &&
  4616. preparePreamble(request);
  4617. break a;
  4618. }
  4619. } else
  4620. null !== prevRow &&
  4621. prevRow.together &&
  4622. tryToResolveTogetherRow(request, prevRow);
  4623. } catch (thrownValue$30) {
  4624. (newBoundary.status = 4),
  4625. 12 === request.status
  4626. ? ((contentRootSegment.status = 3),
  4627. (newProps = request.fatalError))
  4628. : ((contentRootSegment.status = 4),
  4629. (newProps = thrownValue$30)),
  4630. (defaultProps = getThrownInfo(task.componentStack)),
  4631. (initialState = logRecoverableError(
  4632. request,
  4633. newProps,
  4634. defaultProps
  4635. )),
  4636. (newBoundary.errorDigest = initialState),
  4637. untrackBoundary(request, newBoundary);
  4638. } finally {
  4639. (task.blockedBoundary = parentBoundary),
  4640. (task.blockedPreamble = propName$43),
  4641. (task.hoistableState = parentHoistableState),
  4642. (task.blockedSegment = propName),
  4643. (task.keyPath = type),
  4644. (task.formatContext = ref),
  4645. (task.row = prevRow);
  4646. }
  4647. task = createRenderTask(
  4648. request,
  4649. null,
  4650. fallback,
  4651. -1,
  4652. parentBoundary,
  4653. boundarySegment,
  4654. newBoundary.fallbackPreamble,
  4655. newBoundary.fallbackState,
  4656. fallbackAbortSet,
  4657. [keyPath[0], "Suspense Fallback", keyPath[2]],
  4658. getSuspenseFallbackFormatContext(
  4659. request.resumableState,
  4660. task.formatContext
  4661. ),
  4662. task.context,
  4663. task.treeContext,
  4664. task.row,
  4665. replaceSuspenseComponentStackWithSuspenseFallbackStack(
  4666. task.componentStack
  4667. )
  4668. );
  4669. pushComponentStack(task);
  4670. request.pingedTasks.push(task);
  4671. }
  4672. }
  4673. return;
  4674. }
  4675. if ("object" === typeof type && null !== type)
  4676. switch (type.$$typeof) {
  4677. case REACT_FORWARD_REF_TYPE:
  4678. if ("ref" in props)
  4679. for (fallback in ((newProps = {}), props))
  4680. "ref" !== fallback && (newProps[fallback] = props[fallback]);
  4681. else newProps = props;
  4682. type = renderWithHooks(
  4683. request,
  4684. task,
  4685. keyPath,
  4686. type.render,
  4687. newProps,
  4688. ref
  4689. );
  4690. finishFunctionComponent(
  4691. request,
  4692. task,
  4693. keyPath,
  4694. type,
  4695. 0 !== localIdCounter,
  4696. actionStateCounter,
  4697. actionStateMatchingIndex
  4698. );
  4699. return;
  4700. case REACT_MEMO_TYPE:
  4701. renderElement(request, task, keyPath, type.type, props, ref);
  4702. return;
  4703. case REACT_CONTEXT_TYPE:
  4704. defaultProps = props.children;
  4705. newProps = task.keyPath;
  4706. props = props.value;
  4707. initialState = type._currentValue2;
  4708. type._currentValue2 = props;
  4709. ref = currentActiveSnapshot;
  4710. currentActiveSnapshot = type = {
  4711. parent: ref,
  4712. depth: null === ref ? 0 : ref.depth + 1,
  4713. context: type,
  4714. parentValue: initialState,
  4715. value: props
  4716. };
  4717. task.context = type;
  4718. task.keyPath = keyPath;
  4719. renderNodeDestructive(request, task, defaultProps, -1);
  4720. request = currentActiveSnapshot;
  4721. if (null === request) throw Error(formatProdErrorMessage(403));
  4722. request.context._currentValue2 = request.parentValue;
  4723. request = currentActiveSnapshot = request.parent;
  4724. task.context = request;
  4725. task.keyPath = newProps;
  4726. return;
  4727. case REACT_CONSUMER_TYPE:
  4728. props = props.children;
  4729. type = props(type._context._currentValue2);
  4730. props = task.keyPath;
  4731. task.keyPath = keyPath;
  4732. renderNodeDestructive(request, task, type, -1);
  4733. task.keyPath = props;
  4734. return;
  4735. case REACT_LAZY_TYPE:
  4736. newProps = type._init;
  4737. type = newProps(type._payload);
  4738. if (12 === request.status) throw null;
  4739. renderElement(request, task, keyPath, type, props, ref);
  4740. return;
  4741. }
  4742. throw Error(
  4743. formatProdErrorMessage(130, null == type ? type : typeof type, "")
  4744. );
  4745. }
  4746. }
  4747. function resumeNode(request, task, segmentId, node, childIndex) {
  4748. var prevReplay = task.replay,
  4749. blockedBoundary = task.blockedBoundary,
  4750. resumedSegment = createPendingSegment(
  4751. request,
  4752. 0,
  4753. null,
  4754. task.formatContext,
  4755. !1,
  4756. !1
  4757. );
  4758. resumedSegment.id = segmentId;
  4759. resumedSegment.parentFlushed = !0;
  4760. try {
  4761. (task.replay = null),
  4762. (task.blockedSegment = resumedSegment),
  4763. renderNode(request, task, node, childIndex),
  4764. (resumedSegment.status = 1),
  4765. null === blockedBoundary
  4766. ? (request.completedRootSegment = resumedSegment)
  4767. : (queueCompletedSegment(blockedBoundary, resumedSegment),
  4768. blockedBoundary.parentFlushed &&
  4769. request.partialBoundaries.push(blockedBoundary));
  4770. } finally {
  4771. (task.replay = prevReplay), (task.blockedSegment = null);
  4772. }
  4773. }
  4774. function renderNodeDestructive(request, task, node, childIndex) {
  4775. null !== task.replay && "number" === typeof task.replay.slots
  4776. ? resumeNode(request, task, task.replay.slots, node, childIndex)
  4777. : ((task.node = node),
  4778. (task.childIndex = childIndex),
  4779. (node = task.componentStack),
  4780. pushComponentStack(task),
  4781. retryNode(request, task),
  4782. (task.componentStack = node));
  4783. }
  4784. function retryNode(request, task) {
  4785. var node = task.node,
  4786. childIndex = task.childIndex;
  4787. if (null !== node) {
  4788. if ("object" === typeof node) {
  4789. switch (node.$$typeof) {
  4790. case REACT_ELEMENT_TYPE:
  4791. var type = node.type,
  4792. key = node.key,
  4793. props = node.props;
  4794. node = props.ref;
  4795. var ref = void 0 !== node ? node : null,
  4796. name = getComponentNameFromType(type),
  4797. keyOrIndex =
  4798. null == key ? (-1 === childIndex ? 0 : childIndex) : key;
  4799. key = [task.keyPath, name, keyOrIndex];
  4800. if (null !== task.replay)
  4801. a: {
  4802. var replay = task.replay;
  4803. childIndex = replay.nodes;
  4804. for (node = 0; node < childIndex.length; node++) {
  4805. var node$jscomp$0 = childIndex[node];
  4806. if (keyOrIndex === node$jscomp$0[1]) {
  4807. if (4 === node$jscomp$0.length) {
  4808. if (null !== name && name !== node$jscomp$0[0])
  4809. throw Error(
  4810. formatProdErrorMessage(490, node$jscomp$0[0], name)
  4811. );
  4812. var childNodes = node$jscomp$0[2];
  4813. name = node$jscomp$0[3];
  4814. keyOrIndex = task.node;
  4815. task.replay = {
  4816. nodes: childNodes,
  4817. slots: name,
  4818. pendingTasks: 1
  4819. };
  4820. try {
  4821. renderElement(request, task, key, type, props, ref);
  4822. if (
  4823. 1 === task.replay.pendingTasks &&
  4824. 0 < task.replay.nodes.length
  4825. )
  4826. throw Error(formatProdErrorMessage(488));
  4827. task.replay.pendingTasks--;
  4828. } catch (x) {
  4829. if (
  4830. "object" === typeof x &&
  4831. null !== x &&
  4832. (x === SuspenseException ||
  4833. "function" === typeof x.then)
  4834. )
  4835. throw (
  4836. (task.node === keyOrIndex
  4837. ? (task.replay = replay)
  4838. : childIndex.splice(node, 1),
  4839. x)
  4840. );
  4841. task.replay.pendingTasks--;
  4842. props = getThrownInfo(task.componentStack);
  4843. key = request;
  4844. request = task.blockedBoundary;
  4845. type = x;
  4846. props = logRecoverableError(key, type, props);
  4847. abortRemainingReplayNodes(
  4848. key,
  4849. request,
  4850. childNodes,
  4851. name,
  4852. type,
  4853. props
  4854. );
  4855. }
  4856. task.replay = replay;
  4857. } else {
  4858. if (type !== REACT_SUSPENSE_TYPE)
  4859. throw Error(
  4860. formatProdErrorMessage(
  4861. 490,
  4862. "Suspense",
  4863. getComponentNameFromType(type) || "Unknown"
  4864. )
  4865. );
  4866. b: {
  4867. replay = void 0;
  4868. type = node$jscomp$0[5];
  4869. ref = node$jscomp$0[2];
  4870. name = node$jscomp$0[3];
  4871. keyOrIndex =
  4872. null === node$jscomp$0[4] ? [] : node$jscomp$0[4][2];
  4873. node$jscomp$0 =
  4874. null === node$jscomp$0[4] ? null : node$jscomp$0[4][3];
  4875. var prevKeyPath = task.keyPath,
  4876. prevContext = task.formatContext,
  4877. prevRow = task.row,
  4878. previousReplaySet = task.replay,
  4879. parentBoundary = task.blockedBoundary,
  4880. parentHoistableState = task.hoistableState,
  4881. content = props.children,
  4882. fallback = props.fallback,
  4883. fallbackAbortSet = new Set();
  4884. props = createSuspenseBoundary(
  4885. request,
  4886. task.row,
  4887. fallbackAbortSet,
  4888. null,
  4889. null
  4890. );
  4891. props.parentFlushed = !0;
  4892. props.rootSegmentID = type;
  4893. task.blockedBoundary = props;
  4894. task.hoistableState = props.contentState;
  4895. task.keyPath = key;
  4896. task.formatContext = getSuspenseContentFormatContext(
  4897. request.resumableState,
  4898. prevContext
  4899. );
  4900. task.row = null;
  4901. task.replay = {
  4902. nodes: ref,
  4903. slots: name,
  4904. pendingTasks: 1
  4905. };
  4906. try {
  4907. renderNode(request, task, content, -1);
  4908. if (
  4909. 1 === task.replay.pendingTasks &&
  4910. 0 < task.replay.nodes.length
  4911. )
  4912. throw Error(formatProdErrorMessage(488));
  4913. task.replay.pendingTasks--;
  4914. if (0 === props.pendingTasks && 0 === props.status) {
  4915. props.status = 1;
  4916. request.completedBoundaries.push(props);
  4917. break b;
  4918. }
  4919. } catch (error) {
  4920. (props.status = 4),
  4921. (childNodes = getThrownInfo(task.componentStack)),
  4922. (replay = logRecoverableError(
  4923. request,
  4924. error,
  4925. childNodes
  4926. )),
  4927. (props.errorDigest = replay),
  4928. task.replay.pendingTasks--,
  4929. request.clientRenderedBoundaries.push(props);
  4930. } finally {
  4931. (task.blockedBoundary = parentBoundary),
  4932. (task.hoistableState = parentHoistableState),
  4933. (task.replay = previousReplaySet),
  4934. (task.keyPath = prevKeyPath),
  4935. (task.formatContext = prevContext),
  4936. (task.row = prevRow);
  4937. }
  4938. childNodes = createReplayTask(
  4939. request,
  4940. null,
  4941. {
  4942. nodes: keyOrIndex,
  4943. slots: node$jscomp$0,
  4944. pendingTasks: 0
  4945. },
  4946. fallback,
  4947. -1,
  4948. parentBoundary,
  4949. props.fallbackState,
  4950. fallbackAbortSet,
  4951. [key[0], "Suspense Fallback", key[2]],
  4952. getSuspenseFallbackFormatContext(
  4953. request.resumableState,
  4954. task.formatContext
  4955. ),
  4956. task.context,
  4957. task.treeContext,
  4958. task.row,
  4959. replaceSuspenseComponentStackWithSuspenseFallbackStack(
  4960. task.componentStack
  4961. )
  4962. );
  4963. pushComponentStack(childNodes);
  4964. request.pingedTasks.push(childNodes);
  4965. }
  4966. }
  4967. childIndex.splice(node, 1);
  4968. break a;
  4969. }
  4970. }
  4971. }
  4972. else renderElement(request, task, key, type, props, ref);
  4973. return;
  4974. case REACT_PORTAL_TYPE:
  4975. throw Error(formatProdErrorMessage(257));
  4976. case REACT_LAZY_TYPE:
  4977. childNodes = node._init;
  4978. node = childNodes(node._payload);
  4979. if (12 === request.status) throw null;
  4980. renderNodeDestructive(request, task, node, childIndex);
  4981. return;
  4982. }
  4983. if (isArrayImpl(node)) {
  4984. renderChildrenArray(request, task, node, childIndex);
  4985. return;
  4986. }
  4987. if ((childNodes = getIteratorFn(node)))
  4988. if ((childNodes = childNodes.call(node))) {
  4989. node = childNodes.next();
  4990. if (!node.done) {
  4991. props = [];
  4992. do props.push(node.value), (node = childNodes.next());
  4993. while (!node.done);
  4994. renderChildrenArray(request, task, props, childIndex);
  4995. }
  4996. return;
  4997. }
  4998. if ("function" === typeof node.then)
  4999. return (
  5000. (task.thenableState = null),
  5001. renderNodeDestructive(request, task, unwrapThenable(node), childIndex)
  5002. );
  5003. if (node.$$typeof === REACT_CONTEXT_TYPE)
  5004. return renderNodeDestructive(
  5005. request,
  5006. task,
  5007. node._currentValue2,
  5008. childIndex
  5009. );
  5010. childIndex = Object.prototype.toString.call(node);
  5011. throw Error(
  5012. formatProdErrorMessage(
  5013. 31,
  5014. "[object Object]" === childIndex
  5015. ? "object with keys {" + Object.keys(node).join(", ") + "}"
  5016. : childIndex
  5017. )
  5018. );
  5019. }
  5020. if ("string" === typeof node)
  5021. (childIndex = task.blockedSegment),
  5022. null !== childIndex &&
  5023. (childIndex.lastPushedText = pushTextInstance(
  5024. childIndex.chunks,
  5025. node,
  5026. request.renderState,
  5027. childIndex.lastPushedText
  5028. ));
  5029. else if ("number" === typeof node || "bigint" === typeof node)
  5030. (childIndex = task.blockedSegment),
  5031. null !== childIndex &&
  5032. (childIndex.lastPushedText = pushTextInstance(
  5033. childIndex.chunks,
  5034. "" + node,
  5035. request.renderState,
  5036. childIndex.lastPushedText
  5037. ));
  5038. }
  5039. }
  5040. function renderChildrenArray(request, task, children, childIndex) {
  5041. var prevKeyPath = task.keyPath;
  5042. if (
  5043. -1 !== childIndex &&
  5044. ((task.keyPath = [task.keyPath, "Fragment", childIndex]),
  5045. null !== task.replay)
  5046. ) {
  5047. for (
  5048. var replay = task.replay, replayNodes = replay.nodes, j = 0;
  5049. j < replayNodes.length;
  5050. j++
  5051. ) {
  5052. var node = replayNodes[j];
  5053. if (node[1] === childIndex) {
  5054. childIndex = node[2];
  5055. node = node[3];
  5056. task.replay = { nodes: childIndex, slots: node, pendingTasks: 1 };
  5057. try {
  5058. renderChildrenArray(request, task, children, -1);
  5059. if (1 === task.replay.pendingTasks && 0 < task.replay.nodes.length)
  5060. throw Error(formatProdErrorMessage(488));
  5061. task.replay.pendingTasks--;
  5062. } catch (x) {
  5063. if (
  5064. "object" === typeof x &&
  5065. null !== x &&
  5066. (x === SuspenseException || "function" === typeof x.then)
  5067. )
  5068. throw x;
  5069. task.replay.pendingTasks--;
  5070. children = getThrownInfo(task.componentStack);
  5071. var boundary = task.blockedBoundary,
  5072. error = x;
  5073. children = logRecoverableError(request, error, children);
  5074. abortRemainingReplayNodes(
  5075. request,
  5076. boundary,
  5077. childIndex,
  5078. node,
  5079. error,
  5080. children
  5081. );
  5082. }
  5083. task.replay = replay;
  5084. replayNodes.splice(j, 1);
  5085. break;
  5086. }
  5087. }
  5088. task.keyPath = prevKeyPath;
  5089. return;
  5090. }
  5091. replay = task.treeContext;
  5092. replayNodes = children.length;
  5093. if (
  5094. null !== task.replay &&
  5095. ((j = task.replay.slots), null !== j && "object" === typeof j)
  5096. ) {
  5097. for (childIndex = 0; childIndex < replayNodes; childIndex++)
  5098. (node = children[childIndex]),
  5099. (task.treeContext = pushTreeContext(replay, replayNodes, childIndex)),
  5100. (boundary = j[childIndex]),
  5101. "number" === typeof boundary
  5102. ? (resumeNode(request, task, boundary, node, childIndex),
  5103. delete j[childIndex])
  5104. : renderNode(request, task, node, childIndex);
  5105. task.treeContext = replay;
  5106. task.keyPath = prevKeyPath;
  5107. return;
  5108. }
  5109. for (j = 0; j < replayNodes; j++)
  5110. (childIndex = children[j]),
  5111. (task.treeContext = pushTreeContext(replay, replayNodes, j)),
  5112. renderNode(request, task, childIndex, j);
  5113. task.treeContext = replay;
  5114. task.keyPath = prevKeyPath;
  5115. }
  5116. function trackPostponedBoundary(request, trackedPostpones, boundary) {
  5117. boundary.status = 5;
  5118. boundary.rootSegmentID = request.nextSegmentId++;
  5119. request = boundary.trackedContentKeyPath;
  5120. if (null === request) throw Error(formatProdErrorMessage(486));
  5121. var fallbackReplayNode = boundary.trackedFallbackNode,
  5122. children = [],
  5123. boundaryNode = trackedPostpones.workingMap.get(request);
  5124. if (void 0 === boundaryNode)
  5125. return (
  5126. (boundary = [
  5127. request[1],
  5128. request[2],
  5129. children,
  5130. null,
  5131. fallbackReplayNode,
  5132. boundary.rootSegmentID
  5133. ]),
  5134. trackedPostpones.workingMap.set(request, boundary),
  5135. addToReplayParent(boundary, request[0], trackedPostpones),
  5136. boundary
  5137. );
  5138. boundaryNode[4] = fallbackReplayNode;
  5139. boundaryNode[5] = boundary.rootSegmentID;
  5140. return boundaryNode;
  5141. }
  5142. function trackPostpone(request, trackedPostpones, task, segment) {
  5143. segment.status = 5;
  5144. var keyPath = task.keyPath,
  5145. boundary = task.blockedBoundary;
  5146. if (null === boundary)
  5147. (segment.id = request.nextSegmentId++),
  5148. (trackedPostpones.rootSlots = segment.id),
  5149. null !== request.completedRootSegment &&
  5150. (request.completedRootSegment.status = 5);
  5151. else {
  5152. if (null !== boundary && 0 === boundary.status) {
  5153. var boundaryNode = trackPostponedBoundary(
  5154. request,
  5155. trackedPostpones,
  5156. boundary
  5157. );
  5158. if (
  5159. boundary.trackedContentKeyPath === keyPath &&
  5160. -1 === task.childIndex
  5161. ) {
  5162. -1 === segment.id &&
  5163. (segment.id = segment.parentFlushed
  5164. ? boundary.rootSegmentID
  5165. : request.nextSegmentId++);
  5166. boundaryNode[3] = segment.id;
  5167. return;
  5168. }
  5169. }
  5170. -1 === segment.id &&
  5171. (segment.id =
  5172. segment.parentFlushed && null !== boundary
  5173. ? boundary.rootSegmentID
  5174. : request.nextSegmentId++);
  5175. if (-1 === task.childIndex)
  5176. null === keyPath
  5177. ? (trackedPostpones.rootSlots = segment.id)
  5178. : ((task = trackedPostpones.workingMap.get(keyPath)),
  5179. void 0 === task
  5180. ? ((task = [keyPath[1], keyPath[2], [], segment.id]),
  5181. addToReplayParent(task, keyPath[0], trackedPostpones))
  5182. : (task[3] = segment.id));
  5183. else {
  5184. if (null === keyPath)
  5185. if (((request = trackedPostpones.rootSlots), null === request))
  5186. request = trackedPostpones.rootSlots = {};
  5187. else {
  5188. if ("number" === typeof request)
  5189. throw Error(formatProdErrorMessage(491));
  5190. }
  5191. else if (
  5192. ((boundary = trackedPostpones.workingMap),
  5193. (boundaryNode = boundary.get(keyPath)),
  5194. void 0 === boundaryNode)
  5195. )
  5196. (request = {}),
  5197. (boundaryNode = [keyPath[1], keyPath[2], [], request]),
  5198. boundary.set(keyPath, boundaryNode),
  5199. addToReplayParent(boundaryNode, keyPath[0], trackedPostpones);
  5200. else if (((request = boundaryNode[3]), null === request))
  5201. request = boundaryNode[3] = {};
  5202. else if ("number" === typeof request)
  5203. throw Error(formatProdErrorMessage(491));
  5204. request[task.childIndex] = segment.id;
  5205. }
  5206. }
  5207. }
  5208. function untrackBoundary(request, boundary) {
  5209. request = request.trackedPostpones;
  5210. null !== request &&
  5211. ((boundary = boundary.trackedContentKeyPath),
  5212. null !== boundary &&
  5213. ((boundary = request.workingMap.get(boundary)),
  5214. void 0 !== boundary &&
  5215. ((boundary.length = 4), (boundary[2] = []), (boundary[3] = null))));
  5216. }
  5217. function spawnNewSuspendedReplayTask(request, task, thenableState) {
  5218. return createReplayTask(
  5219. request,
  5220. thenableState,
  5221. task.replay,
  5222. task.node,
  5223. task.childIndex,
  5224. task.blockedBoundary,
  5225. task.hoistableState,
  5226. task.abortSet,
  5227. task.keyPath,
  5228. task.formatContext,
  5229. task.context,
  5230. task.treeContext,
  5231. task.row,
  5232. task.componentStack
  5233. );
  5234. }
  5235. function spawnNewSuspendedRenderTask(request, task, thenableState) {
  5236. var segment = task.blockedSegment,
  5237. newSegment = createPendingSegment(
  5238. request,
  5239. segment.chunks.length,
  5240. null,
  5241. task.formatContext,
  5242. segment.lastPushedText,
  5243. !0
  5244. );
  5245. segment.children.push(newSegment);
  5246. segment.lastPushedText = !1;
  5247. return createRenderTask(
  5248. request,
  5249. thenableState,
  5250. task.node,
  5251. task.childIndex,
  5252. task.blockedBoundary,
  5253. newSegment,
  5254. task.blockedPreamble,
  5255. task.hoistableState,
  5256. task.abortSet,
  5257. task.keyPath,
  5258. task.formatContext,
  5259. task.context,
  5260. task.treeContext,
  5261. task.row,
  5262. task.componentStack
  5263. );
  5264. }
  5265. function renderNode(request, task, node, childIndex) {
  5266. var previousFormatContext = task.formatContext,
  5267. previousContext = task.context,
  5268. previousKeyPath = task.keyPath,
  5269. previousTreeContext = task.treeContext,
  5270. previousComponentStack = task.componentStack,
  5271. segment = task.blockedSegment;
  5272. if (null === segment) {
  5273. segment = task.replay;
  5274. try {
  5275. return renderNodeDestructive(request, task, node, childIndex);
  5276. } catch (thrownValue) {
  5277. if (
  5278. (resetHooksState(),
  5279. (node =
  5280. thrownValue === SuspenseException
  5281. ? getSuspendedThenable()
  5282. : thrownValue),
  5283. 12 !== request.status && "object" === typeof node && null !== node)
  5284. ) {
  5285. if ("function" === typeof node.then) {
  5286. childIndex =
  5287. thrownValue === SuspenseException
  5288. ? getThenableStateAfterSuspending()
  5289. : null;
  5290. request = spawnNewSuspendedReplayTask(request, task, childIndex).ping;
  5291. node.then(request, request);
  5292. task.formatContext = previousFormatContext;
  5293. task.context = previousContext;
  5294. task.keyPath = previousKeyPath;
  5295. task.treeContext = previousTreeContext;
  5296. task.componentStack = previousComponentStack;
  5297. task.replay = segment;
  5298. switchContext(previousContext);
  5299. return;
  5300. }
  5301. if ("Maximum call stack size exceeded" === node.message) {
  5302. node =
  5303. thrownValue === SuspenseException
  5304. ? getThenableStateAfterSuspending()
  5305. : null;
  5306. node = spawnNewSuspendedReplayTask(request, task, node);
  5307. request.pingedTasks.push(node);
  5308. task.formatContext = previousFormatContext;
  5309. task.context = previousContext;
  5310. task.keyPath = previousKeyPath;
  5311. task.treeContext = previousTreeContext;
  5312. task.componentStack = previousComponentStack;
  5313. task.replay = segment;
  5314. switchContext(previousContext);
  5315. return;
  5316. }
  5317. }
  5318. }
  5319. } else {
  5320. var childrenLength = segment.children.length,
  5321. chunkLength = segment.chunks.length;
  5322. try {
  5323. return renderNodeDestructive(request, task, node, childIndex);
  5324. } catch (thrownValue$62) {
  5325. if (
  5326. (resetHooksState(),
  5327. (segment.children.length = childrenLength),
  5328. (segment.chunks.length = chunkLength),
  5329. (node =
  5330. thrownValue$62 === SuspenseException
  5331. ? getSuspendedThenable()
  5332. : thrownValue$62),
  5333. 12 !== request.status && "object" === typeof node && null !== node)
  5334. ) {
  5335. if ("function" === typeof node.then) {
  5336. segment = node;
  5337. node =
  5338. thrownValue$62 === SuspenseException
  5339. ? getThenableStateAfterSuspending()
  5340. : null;
  5341. request = spawnNewSuspendedRenderTask(request, task, node).ping;
  5342. segment.then(request, request);
  5343. task.formatContext = previousFormatContext;
  5344. task.context = previousContext;
  5345. task.keyPath = previousKeyPath;
  5346. task.treeContext = previousTreeContext;
  5347. task.componentStack = previousComponentStack;
  5348. switchContext(previousContext);
  5349. return;
  5350. }
  5351. if ("Maximum call stack size exceeded" === node.message) {
  5352. segment =
  5353. thrownValue$62 === SuspenseException
  5354. ? getThenableStateAfterSuspending()
  5355. : null;
  5356. segment = spawnNewSuspendedRenderTask(request, task, segment);
  5357. request.pingedTasks.push(segment);
  5358. task.formatContext = previousFormatContext;
  5359. task.context = previousContext;
  5360. task.keyPath = previousKeyPath;
  5361. task.treeContext = previousTreeContext;
  5362. task.componentStack = previousComponentStack;
  5363. switchContext(previousContext);
  5364. return;
  5365. }
  5366. }
  5367. }
  5368. }
  5369. task.formatContext = previousFormatContext;
  5370. task.context = previousContext;
  5371. task.keyPath = previousKeyPath;
  5372. task.treeContext = previousTreeContext;
  5373. switchContext(previousContext);
  5374. throw node;
  5375. }
  5376. function abortTaskSoft(task) {
  5377. var boundary = task.blockedBoundary,
  5378. segment = task.blockedSegment;
  5379. null !== segment &&
  5380. ((segment.status = 3), finishedTask(this, boundary, task.row, segment));
  5381. }
  5382. function abortRemainingReplayNodes(
  5383. request$jscomp$0,
  5384. boundary,
  5385. nodes,
  5386. slots,
  5387. error,
  5388. errorDigest$jscomp$0
  5389. ) {
  5390. for (var i = 0; i < nodes.length; i++) {
  5391. var node = nodes[i];
  5392. if (4 === node.length)
  5393. abortRemainingReplayNodes(
  5394. request$jscomp$0,
  5395. boundary,
  5396. node[2],
  5397. node[3],
  5398. error,
  5399. errorDigest$jscomp$0
  5400. );
  5401. else {
  5402. node = node[5];
  5403. var request = request$jscomp$0,
  5404. errorDigest = errorDigest$jscomp$0,
  5405. resumedBoundary = createSuspenseBoundary(
  5406. request,
  5407. null,
  5408. new Set(),
  5409. null,
  5410. null
  5411. );
  5412. resumedBoundary.parentFlushed = !0;
  5413. resumedBoundary.rootSegmentID = node;
  5414. resumedBoundary.status = 4;
  5415. resumedBoundary.errorDigest = errorDigest;
  5416. resumedBoundary.parentFlushed &&
  5417. request.clientRenderedBoundaries.push(resumedBoundary);
  5418. }
  5419. }
  5420. nodes.length = 0;
  5421. if (null !== slots) {
  5422. if (null === boundary) throw Error(formatProdErrorMessage(487));
  5423. 4 !== boundary.status &&
  5424. ((boundary.status = 4),
  5425. (boundary.errorDigest = errorDigest$jscomp$0),
  5426. boundary.parentFlushed &&
  5427. request$jscomp$0.clientRenderedBoundaries.push(boundary));
  5428. if ("object" === typeof slots) for (var index in slots) delete slots[index];
  5429. }
  5430. }
  5431. function abortTask(task, request, error) {
  5432. var boundary = task.blockedBoundary,
  5433. segment = task.blockedSegment;
  5434. if (null !== segment) {
  5435. if (6 === segment.status) return;
  5436. segment.status = 3;
  5437. }
  5438. var errorInfo = getThrownInfo(task.componentStack);
  5439. if (null === boundary) {
  5440. if (13 !== request.status && 14 !== request.status) {
  5441. boundary = task.replay;
  5442. if (null === boundary) {
  5443. null !== request.trackedPostpones && null !== segment
  5444. ? ((boundary = request.trackedPostpones),
  5445. logRecoverableError(request, error, errorInfo),
  5446. trackPostpone(request, boundary, task, segment),
  5447. finishedTask(request, null, task.row, segment))
  5448. : (logRecoverableError(request, error, errorInfo),
  5449. fatalError(request, error));
  5450. return;
  5451. }
  5452. boundary.pendingTasks--;
  5453. 0 === boundary.pendingTasks &&
  5454. 0 < boundary.nodes.length &&
  5455. ((segment = logRecoverableError(request, error, errorInfo)),
  5456. abortRemainingReplayNodes(
  5457. request,
  5458. null,
  5459. boundary.nodes,
  5460. boundary.slots,
  5461. error,
  5462. segment
  5463. ));
  5464. request.pendingRootTasks--;
  5465. 0 === request.pendingRootTasks && completeShell(request);
  5466. }
  5467. } else {
  5468. var trackedPostpones$63 = request.trackedPostpones;
  5469. if (4 !== boundary.status) {
  5470. if (null !== trackedPostpones$63 && null !== segment)
  5471. return (
  5472. logRecoverableError(request, error, errorInfo),
  5473. trackPostpone(request, trackedPostpones$63, task, segment),
  5474. boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
  5475. return abortTask(fallbackTask, request, error);
  5476. }),
  5477. boundary.fallbackAbortableTasks.clear(),
  5478. finishedTask(request, boundary, task.row, segment)
  5479. );
  5480. boundary.status = 4;
  5481. segment = logRecoverableError(request, error, errorInfo);
  5482. boundary.status = 4;
  5483. boundary.errorDigest = segment;
  5484. untrackBoundary(request, boundary);
  5485. boundary.parentFlushed && request.clientRenderedBoundaries.push(boundary);
  5486. }
  5487. boundary.pendingTasks--;
  5488. segment = boundary.row;
  5489. null !== segment &&
  5490. 0 === --segment.pendingTasks &&
  5491. finishSuspenseListRow(request, segment);
  5492. boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
  5493. return abortTask(fallbackTask, request, error);
  5494. });
  5495. boundary.fallbackAbortableTasks.clear();
  5496. }
  5497. task = task.row;
  5498. null !== task &&
  5499. 0 === --task.pendingTasks &&
  5500. finishSuspenseListRow(request, task);
  5501. request.allPendingTasks--;
  5502. 0 === request.allPendingTasks && completeAll(request);
  5503. }
  5504. function safelyEmitEarlyPreloads(request, shellComplete) {
  5505. try {
  5506. var renderState = request.renderState,
  5507. onHeaders = renderState.onHeaders;
  5508. if (onHeaders) {
  5509. var headers = renderState.headers;
  5510. if (headers) {
  5511. renderState.headers = null;
  5512. var linkHeader = headers.preconnects;
  5513. headers.fontPreloads &&
  5514. (linkHeader && (linkHeader += ", "),
  5515. (linkHeader += headers.fontPreloads));
  5516. headers.highImagePreloads &&
  5517. (linkHeader && (linkHeader += ", "),
  5518. (linkHeader += headers.highImagePreloads));
  5519. if (!shellComplete) {
  5520. var queueIter = renderState.styles.values(),
  5521. queueStep = queueIter.next();
  5522. b: for (
  5523. ;
  5524. 0 < headers.remainingCapacity && !queueStep.done;
  5525. queueStep = queueIter.next()
  5526. )
  5527. for (
  5528. var sheetIter = queueStep.value.sheets.values(),
  5529. sheetStep = sheetIter.next();
  5530. 0 < headers.remainingCapacity && !sheetStep.done;
  5531. sheetStep = sheetIter.next()
  5532. ) {
  5533. var sheet = sheetStep.value,
  5534. props = sheet.props,
  5535. key = props.href,
  5536. props$jscomp$0 = sheet.props,
  5537. header = getPreloadAsHeader(props$jscomp$0.href, "style", {
  5538. crossOrigin: props$jscomp$0.crossOrigin,
  5539. integrity: props$jscomp$0.integrity,
  5540. nonce: props$jscomp$0.nonce,
  5541. type: props$jscomp$0.type,
  5542. fetchPriority: props$jscomp$0.fetchPriority,
  5543. referrerPolicy: props$jscomp$0.referrerPolicy,
  5544. media: props$jscomp$0.media
  5545. });
  5546. if (0 <= (headers.remainingCapacity -= header.length + 2))
  5547. (renderState.resets.style[key] = PRELOAD_NO_CREDS),
  5548. linkHeader && (linkHeader += ", "),
  5549. (linkHeader += header),
  5550. (renderState.resets.style[key] =
  5551. "string" === typeof props.crossOrigin ||
  5552. "string" === typeof props.integrity
  5553. ? [props.crossOrigin, props.integrity]
  5554. : PRELOAD_NO_CREDS);
  5555. else break b;
  5556. }
  5557. }
  5558. linkHeader ? onHeaders({ Link: linkHeader }) : onHeaders({});
  5559. }
  5560. }
  5561. } catch (error) {
  5562. logRecoverableError(request, error, {});
  5563. }
  5564. }
  5565. function completeShell(request) {
  5566. null === request.trackedPostpones && safelyEmitEarlyPreloads(request, !0);
  5567. null === request.trackedPostpones && preparePreamble(request);
  5568. request.onShellError = noop;
  5569. request = request.onShellReady;
  5570. request();
  5571. }
  5572. function completeAll(request) {
  5573. safelyEmitEarlyPreloads(
  5574. request,
  5575. null === request.trackedPostpones
  5576. ? !0
  5577. : null === request.completedRootSegment ||
  5578. 5 !== request.completedRootSegment.status
  5579. );
  5580. preparePreamble(request);
  5581. request = request.onAllReady;
  5582. request();
  5583. }
  5584. function queueCompletedSegment(boundary, segment) {
  5585. if (
  5586. 0 === segment.chunks.length &&
  5587. 1 === segment.children.length &&
  5588. null === segment.children[0].boundary &&
  5589. -1 === segment.children[0].id
  5590. ) {
  5591. var childSegment = segment.children[0];
  5592. childSegment.id = segment.id;
  5593. childSegment.parentFlushed = !0;
  5594. (1 !== childSegment.status &&
  5595. 3 !== childSegment.status &&
  5596. 4 !== childSegment.status) ||
  5597. queueCompletedSegment(boundary, childSegment);
  5598. } else boundary.completedSegments.push(segment);
  5599. }
  5600. function finishedTask(request, boundary, row, segment) {
  5601. null !== row &&
  5602. (0 === --row.pendingTasks
  5603. ? finishSuspenseListRow(request, row)
  5604. : row.together && tryToResolveTogetherRow(request, row));
  5605. request.allPendingTasks--;
  5606. if (null === boundary) {
  5607. if (null !== segment && segment.parentFlushed) {
  5608. if (null !== request.completedRootSegment)
  5609. throw Error(formatProdErrorMessage(389));
  5610. request.completedRootSegment = segment;
  5611. }
  5612. request.pendingRootTasks--;
  5613. 0 === request.pendingRootTasks && completeShell(request);
  5614. } else if ((boundary.pendingTasks--, 4 !== boundary.status))
  5615. if (0 === boundary.pendingTasks)
  5616. if (
  5617. (0 === boundary.status && (boundary.status = 1),
  5618. null !== segment &&
  5619. segment.parentFlushed &&
  5620. (1 === segment.status || 3 === segment.status) &&
  5621. queueCompletedSegment(boundary, segment),
  5622. boundary.parentFlushed && request.completedBoundaries.push(boundary),
  5623. 1 === boundary.status)
  5624. )
  5625. (row = boundary.row),
  5626. null !== row &&
  5627. hoistHoistables(row.hoistables, boundary.contentState),
  5628. isEligibleForOutlining(request, boundary) ||
  5629. (boundary.fallbackAbortableTasks.forEach(abortTaskSoft, request),
  5630. boundary.fallbackAbortableTasks.clear(),
  5631. null !== row &&
  5632. 0 === --row.pendingTasks &&
  5633. finishSuspenseListRow(request, row)),
  5634. 0 === request.pendingRootTasks &&
  5635. null === request.trackedPostpones &&
  5636. null !== boundary.contentPreamble &&
  5637. preparePreamble(request);
  5638. else {
  5639. if (
  5640. 5 === boundary.status &&
  5641. ((boundary = boundary.row), null !== boundary)
  5642. ) {
  5643. if (null !== request.trackedPostpones) {
  5644. row = request.trackedPostpones;
  5645. var postponedRow = boundary.next;
  5646. if (
  5647. null !== postponedRow &&
  5648. ((segment = postponedRow.boundaries), null !== segment)
  5649. )
  5650. for (
  5651. postponedRow.boundaries = null, postponedRow = 0;
  5652. postponedRow < segment.length;
  5653. postponedRow++
  5654. ) {
  5655. var postponedBoundary = segment[postponedRow];
  5656. trackPostponedBoundary(request, row, postponedBoundary);
  5657. finishedTask(request, postponedBoundary, null, null);
  5658. }
  5659. }
  5660. 0 === --boundary.pendingTasks &&
  5661. finishSuspenseListRow(request, boundary);
  5662. }
  5663. }
  5664. else
  5665. null === segment ||
  5666. !segment.parentFlushed ||
  5667. (1 !== segment.status && 3 !== segment.status) ||
  5668. (queueCompletedSegment(boundary, segment),
  5669. 1 === boundary.completedSegments.length &&
  5670. boundary.parentFlushed &&
  5671. request.partialBoundaries.push(boundary)),
  5672. (boundary = boundary.row),
  5673. null !== boundary &&
  5674. boundary.together &&
  5675. tryToResolveTogetherRow(request, boundary);
  5676. 0 === request.allPendingTasks && completeAll(request);
  5677. }
  5678. function performWork(request$jscomp$2) {
  5679. if (14 !== request$jscomp$2.status && 13 !== request$jscomp$2.status) {
  5680. var prevContext = currentActiveSnapshot,
  5681. prevDispatcher = ReactSharedInternals.H;
  5682. ReactSharedInternals.H = HooksDispatcher;
  5683. var prevAsyncDispatcher = ReactSharedInternals.A;
  5684. ReactSharedInternals.A = DefaultAsyncDispatcher;
  5685. var prevRequest = currentRequest;
  5686. currentRequest = request$jscomp$2;
  5687. var prevResumableState = currentResumableState;
  5688. currentResumableState = request$jscomp$2.resumableState;
  5689. try {
  5690. var pingedTasks = request$jscomp$2.pingedTasks,
  5691. i;
  5692. for (i = 0; i < pingedTasks.length; i++) {
  5693. var task = pingedTasks[i],
  5694. request = request$jscomp$2,
  5695. segment = task.blockedSegment;
  5696. if (null === segment) {
  5697. var request$jscomp$0 = request;
  5698. if (0 !== task.replay.pendingTasks) {
  5699. switchContext(task.context);
  5700. try {
  5701. "number" === typeof task.replay.slots
  5702. ? resumeNode(
  5703. request$jscomp$0,
  5704. task,
  5705. task.replay.slots,
  5706. task.node,
  5707. task.childIndex
  5708. )
  5709. : retryNode(request$jscomp$0, task);
  5710. if (
  5711. 1 === task.replay.pendingTasks &&
  5712. 0 < task.replay.nodes.length
  5713. )
  5714. throw Error(formatProdErrorMessage(488));
  5715. task.replay.pendingTasks--;
  5716. task.abortSet.delete(task);
  5717. finishedTask(
  5718. request$jscomp$0,
  5719. task.blockedBoundary,
  5720. task.row,
  5721. null
  5722. );
  5723. } catch (thrownValue) {
  5724. resetHooksState();
  5725. var x =
  5726. thrownValue === SuspenseException
  5727. ? getSuspendedThenable()
  5728. : thrownValue;
  5729. if (
  5730. "object" === typeof x &&
  5731. null !== x &&
  5732. "function" === typeof x.then
  5733. ) {
  5734. var ping = task.ping;
  5735. x.then(ping, ping);
  5736. task.thenableState =
  5737. thrownValue === SuspenseException
  5738. ? getThenableStateAfterSuspending()
  5739. : null;
  5740. } else {
  5741. task.replay.pendingTasks--;
  5742. task.abortSet.delete(task);
  5743. var errorInfo = getThrownInfo(task.componentStack);
  5744. request = void 0;
  5745. var request$jscomp$1 = request$jscomp$0,
  5746. boundary = task.blockedBoundary,
  5747. error$jscomp$0 =
  5748. 12 === request$jscomp$0.status
  5749. ? request$jscomp$0.fatalError
  5750. : x,
  5751. replayNodes = task.replay.nodes,
  5752. resumeSlots = task.replay.slots;
  5753. request = logRecoverableError(
  5754. request$jscomp$1,
  5755. error$jscomp$0,
  5756. errorInfo
  5757. );
  5758. abortRemainingReplayNodes(
  5759. request$jscomp$1,
  5760. boundary,
  5761. replayNodes,
  5762. resumeSlots,
  5763. error$jscomp$0,
  5764. request
  5765. );
  5766. request$jscomp$0.pendingRootTasks--;
  5767. 0 === request$jscomp$0.pendingRootTasks &&
  5768. completeShell(request$jscomp$0);
  5769. request$jscomp$0.allPendingTasks--;
  5770. 0 === request$jscomp$0.allPendingTasks &&
  5771. completeAll(request$jscomp$0);
  5772. }
  5773. } finally {
  5774. }
  5775. }
  5776. } else if (
  5777. ((request$jscomp$0 = void 0),
  5778. (request$jscomp$1 = segment),
  5779. 0 === request$jscomp$1.status)
  5780. ) {
  5781. request$jscomp$1.status = 6;
  5782. switchContext(task.context);
  5783. var childrenLength = request$jscomp$1.children.length,
  5784. chunkLength = request$jscomp$1.chunks.length;
  5785. try {
  5786. retryNode(request, task),
  5787. pushSegmentFinale(
  5788. request$jscomp$1.chunks,
  5789. request.renderState,
  5790. request$jscomp$1.lastPushedText,
  5791. request$jscomp$1.textEmbedded
  5792. ),
  5793. task.abortSet.delete(task),
  5794. (request$jscomp$1.status = 1),
  5795. finishedTask(
  5796. request,
  5797. task.blockedBoundary,
  5798. task.row,
  5799. request$jscomp$1
  5800. );
  5801. } catch (thrownValue) {
  5802. resetHooksState();
  5803. request$jscomp$1.children.length = childrenLength;
  5804. request$jscomp$1.chunks.length = chunkLength;
  5805. var x$jscomp$0 =
  5806. thrownValue === SuspenseException
  5807. ? getSuspendedThenable()
  5808. : 12 === request.status
  5809. ? request.fatalError
  5810. : thrownValue;
  5811. if (12 === request.status && null !== request.trackedPostpones) {
  5812. var trackedPostpones = request.trackedPostpones,
  5813. thrownInfo = getThrownInfo(task.componentStack);
  5814. task.abortSet.delete(task);
  5815. logRecoverableError(request, x$jscomp$0, thrownInfo);
  5816. trackPostpone(request, trackedPostpones, task, request$jscomp$1);
  5817. finishedTask(
  5818. request,
  5819. task.blockedBoundary,
  5820. task.row,
  5821. request$jscomp$1
  5822. );
  5823. } else if (
  5824. "object" === typeof x$jscomp$0 &&
  5825. null !== x$jscomp$0 &&
  5826. "function" === typeof x$jscomp$0.then
  5827. ) {
  5828. request$jscomp$1.status = 0;
  5829. task.thenableState =
  5830. thrownValue === SuspenseException
  5831. ? getThenableStateAfterSuspending()
  5832. : null;
  5833. var ping$jscomp$0 = task.ping;
  5834. x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
  5835. } else {
  5836. var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
  5837. task.abortSet.delete(task);
  5838. request$jscomp$1.status = 4;
  5839. var boundary$jscomp$0 = task.blockedBoundary,
  5840. row = task.row;
  5841. null !== row &&
  5842. 0 === --row.pendingTasks &&
  5843. finishSuspenseListRow(request, row);
  5844. request.allPendingTasks--;
  5845. request$jscomp$0 = logRecoverableError(
  5846. request,
  5847. x$jscomp$0,
  5848. errorInfo$jscomp$0
  5849. );
  5850. if (null === boundary$jscomp$0) fatalError(request, x$jscomp$0);
  5851. else if (
  5852. (boundary$jscomp$0.pendingTasks--,
  5853. 4 !== boundary$jscomp$0.status)
  5854. ) {
  5855. boundary$jscomp$0.status = 4;
  5856. boundary$jscomp$0.errorDigest = request$jscomp$0;
  5857. untrackBoundary(request, boundary$jscomp$0);
  5858. var boundaryRow = boundary$jscomp$0.row;
  5859. null !== boundaryRow &&
  5860. 0 === --boundaryRow.pendingTasks &&
  5861. finishSuspenseListRow(request, boundaryRow);
  5862. boundary$jscomp$0.parentFlushed &&
  5863. request.clientRenderedBoundaries.push(boundary$jscomp$0);
  5864. 0 === request.pendingRootTasks &&
  5865. null === request.trackedPostpones &&
  5866. null !== boundary$jscomp$0.contentPreamble &&
  5867. preparePreamble(request);
  5868. }
  5869. 0 === request.allPendingTasks && completeAll(request);
  5870. }
  5871. } finally {
  5872. }
  5873. }
  5874. }
  5875. pingedTasks.splice(0, i);
  5876. null !== request$jscomp$2.destination &&
  5877. flushCompletedQueues(request$jscomp$2, request$jscomp$2.destination);
  5878. } catch (error) {
  5879. logRecoverableError(request$jscomp$2, error, {}),
  5880. fatalError(request$jscomp$2, error);
  5881. } finally {
  5882. (currentResumableState = prevResumableState),
  5883. (ReactSharedInternals.H = prevDispatcher),
  5884. (ReactSharedInternals.A = prevAsyncDispatcher),
  5885. prevDispatcher === HooksDispatcher && switchContext(prevContext),
  5886. (currentRequest = prevRequest);
  5887. }
  5888. }
  5889. }
  5890. function preparePreambleFromSubtree(
  5891. request,
  5892. segment,
  5893. collectedPreambleSegments
  5894. ) {
  5895. segment.preambleChildren.length &&
  5896. collectedPreambleSegments.push(segment.preambleChildren);
  5897. for (var pendingPreambles = !1, i = 0; i < segment.children.length; i++)
  5898. pendingPreambles =
  5899. preparePreambleFromSegment(
  5900. request,
  5901. segment.children[i],
  5902. collectedPreambleSegments
  5903. ) || pendingPreambles;
  5904. return pendingPreambles;
  5905. }
  5906. function preparePreambleFromSegment(
  5907. request,
  5908. segment,
  5909. collectedPreambleSegments
  5910. ) {
  5911. var boundary = segment.boundary;
  5912. if (null === boundary)
  5913. return preparePreambleFromSubtree(
  5914. request,
  5915. segment,
  5916. collectedPreambleSegments
  5917. );
  5918. var preamble = boundary.contentPreamble,
  5919. fallbackPreamble = boundary.fallbackPreamble;
  5920. if (null === preamble || null === fallbackPreamble) return !1;
  5921. switch (boundary.status) {
  5922. case 1:
  5923. hoistPreambleState(request.renderState, preamble);
  5924. request.byteSize += boundary.byteSize;
  5925. segment = boundary.completedSegments[0];
  5926. if (!segment) throw Error(formatProdErrorMessage(391));
  5927. return preparePreambleFromSubtree(
  5928. request,
  5929. segment,
  5930. collectedPreambleSegments
  5931. );
  5932. case 5:
  5933. if (null !== request.trackedPostpones) return !0;
  5934. case 4:
  5935. if (1 === segment.status)
  5936. return (
  5937. hoistPreambleState(request.renderState, fallbackPreamble),
  5938. preparePreambleFromSubtree(
  5939. request,
  5940. segment,
  5941. collectedPreambleSegments
  5942. )
  5943. );
  5944. default:
  5945. return !0;
  5946. }
  5947. }
  5948. function preparePreamble(request) {
  5949. if (
  5950. request.completedRootSegment &&
  5951. null === request.completedPreambleSegments
  5952. ) {
  5953. var collectedPreambleSegments = [],
  5954. originalRequestByteSize = request.byteSize,
  5955. hasPendingPreambles = preparePreambleFromSegment(
  5956. request,
  5957. request.completedRootSegment,
  5958. collectedPreambleSegments
  5959. ),
  5960. preamble = request.renderState.preamble;
  5961. !1 === hasPendingPreambles || (preamble.headChunks && preamble.bodyChunks)
  5962. ? (request.completedPreambleSegments = collectedPreambleSegments)
  5963. : (request.byteSize = originalRequestByteSize);
  5964. }
  5965. }
  5966. function flushSubtree(request, destination, segment, hoistableState) {
  5967. segment.parentFlushed = !0;
  5968. switch (segment.status) {
  5969. case 0:
  5970. segment.id = request.nextSegmentId++;
  5971. case 5:
  5972. return (
  5973. (hoistableState = segment.id),
  5974. (segment.lastPushedText = !1),
  5975. (segment.textEmbedded = !1),
  5976. (request = request.renderState),
  5977. destination.push('<template id="'),
  5978. destination.push(request.placeholderPrefix),
  5979. (request = hoistableState.toString(16)),
  5980. destination.push(request),
  5981. destination.push('"></template>')
  5982. );
  5983. case 1:
  5984. segment.status = 2;
  5985. var r = !0,
  5986. chunks = segment.chunks,
  5987. chunkIdx = 0;
  5988. segment = segment.children;
  5989. for (var childIdx = 0; childIdx < segment.length; childIdx++) {
  5990. for (r = segment[childIdx]; chunkIdx < r.index; chunkIdx++)
  5991. destination.push(chunks[chunkIdx]);
  5992. r = flushSegment(request, destination, r, hoistableState);
  5993. }
  5994. for (; chunkIdx < chunks.length - 1; chunkIdx++)
  5995. destination.push(chunks[chunkIdx]);
  5996. chunkIdx < chunks.length && (r = destination.push(chunks[chunkIdx]));
  5997. return r;
  5998. case 3:
  5999. return !0;
  6000. default:
  6001. throw Error(formatProdErrorMessage(390));
  6002. }
  6003. }
  6004. var flushedByteSize = 0;
  6005. function flushSegment(request, destination, segment, hoistableState) {
  6006. var boundary = segment.boundary;
  6007. if (null === boundary)
  6008. return flushSubtree(request, destination, segment, hoistableState);
  6009. boundary.parentFlushed = !0;
  6010. if (4 === boundary.status) {
  6011. var row = boundary.row;
  6012. null !== row &&
  6013. 0 === --row.pendingTasks &&
  6014. finishSuspenseListRow(request, row);
  6015. request.renderState.generateStaticMarkup ||
  6016. ((boundary = boundary.errorDigest),
  6017. destination.push("\x3c!--$!--\x3e"),
  6018. destination.push("<template"),
  6019. boundary &&
  6020. (destination.push(' data-dgst="'),
  6021. (boundary = escapeTextForBrowser(boundary)),
  6022. destination.push(boundary),
  6023. destination.push('"')),
  6024. destination.push("></template>"));
  6025. flushSubtree(request, destination, segment, hoistableState);
  6026. request = request.renderState.generateStaticMarkup
  6027. ? !0
  6028. : destination.push("\x3c!--/$--\x3e");
  6029. return request;
  6030. }
  6031. if (1 !== boundary.status)
  6032. return (
  6033. 0 === boundary.status &&
  6034. (boundary.rootSegmentID = request.nextSegmentId++),
  6035. 0 < boundary.completedSegments.length &&
  6036. request.partialBoundaries.push(boundary),
  6037. writeStartPendingSuspenseBoundary(
  6038. destination,
  6039. request.renderState,
  6040. boundary.rootSegmentID
  6041. ),
  6042. hoistableState && hoistHoistables(hoistableState, boundary.fallbackState),
  6043. flushSubtree(request, destination, segment, hoistableState),
  6044. destination.push("\x3c!--/$--\x3e")
  6045. );
  6046. if (
  6047. !flushingPartialBoundaries &&
  6048. isEligibleForOutlining(request, boundary) &&
  6049. flushedByteSize + boundary.byteSize > request.progressiveChunkSize
  6050. )
  6051. return (
  6052. (boundary.rootSegmentID = request.nextSegmentId++),
  6053. request.completedBoundaries.push(boundary),
  6054. writeStartPendingSuspenseBoundary(
  6055. destination,
  6056. request.renderState,
  6057. boundary.rootSegmentID
  6058. ),
  6059. flushSubtree(request, destination, segment, hoistableState),
  6060. destination.push("\x3c!--/$--\x3e")
  6061. );
  6062. flushedByteSize += boundary.byteSize;
  6063. hoistableState && hoistHoistables(hoistableState, boundary.contentState);
  6064. segment = boundary.row;
  6065. null !== segment &&
  6066. isEligibleForOutlining(request, boundary) &&
  6067. 0 === --segment.pendingTasks &&
  6068. finishSuspenseListRow(request, segment);
  6069. request.renderState.generateStaticMarkup ||
  6070. destination.push("\x3c!--$--\x3e");
  6071. segment = boundary.completedSegments;
  6072. if (1 !== segment.length) throw Error(formatProdErrorMessage(391));
  6073. flushSegment(request, destination, segment[0], hoistableState);
  6074. request = request.renderState.generateStaticMarkup
  6075. ? !0
  6076. : destination.push("\x3c!--/$--\x3e");
  6077. return request;
  6078. }
  6079. function flushSegmentContainer(request, destination, segment, hoistableState) {
  6080. writeStartSegment(
  6081. destination,
  6082. request.renderState,
  6083. segment.parentFormatContext,
  6084. segment.id
  6085. );
  6086. flushSegment(request, destination, segment, hoistableState);
  6087. return writeEndSegment(destination, segment.parentFormatContext);
  6088. }
  6089. function flushCompletedBoundary(request, destination, boundary) {
  6090. flushedByteSize = boundary.byteSize;
  6091. for (
  6092. var completedSegments = boundary.completedSegments, i = 0;
  6093. i < completedSegments.length;
  6094. i++
  6095. )
  6096. flushPartiallyCompletedSegment(
  6097. request,
  6098. destination,
  6099. boundary,
  6100. completedSegments[i]
  6101. );
  6102. completedSegments.length = 0;
  6103. completedSegments = boundary.row;
  6104. null !== completedSegments &&
  6105. isEligibleForOutlining(request, boundary) &&
  6106. 0 === --completedSegments.pendingTasks &&
  6107. finishSuspenseListRow(request, completedSegments);
  6108. writeHoistablesForBoundary(
  6109. destination,
  6110. boundary.contentState,
  6111. request.renderState
  6112. );
  6113. completedSegments = request.resumableState;
  6114. request = request.renderState;
  6115. i = boundary.rootSegmentID;
  6116. boundary = boundary.contentState;
  6117. var requiresStyleInsertion = request.stylesToHoist;
  6118. request.stylesToHoist = !1;
  6119. destination.push(request.startInlineScript);
  6120. destination.push(">");
  6121. requiresStyleInsertion
  6122. ? (0 === (completedSegments.instructions & 4) &&
  6123. ((completedSegments.instructions |= 4),
  6124. destination.push(
  6125. '$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};'
  6126. )),
  6127. 0 === (completedSegments.instructions & 2) &&
  6128. ((completedSegments.instructions |= 2),
  6129. destination.push(
  6130. '$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};\n$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};'
  6131. )),
  6132. 0 === (completedSegments.instructions & 8)
  6133. ? ((completedSegments.instructions |= 8),
  6134. destination.push(
  6135. '$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=\n"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=\n"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("'
  6136. ))
  6137. : destination.push('$RR("'))
  6138. : (0 === (completedSegments.instructions & 2) &&
  6139. ((completedSegments.instructions |= 2),
  6140. destination.push(
  6141. '$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};\n$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};'
  6142. )),
  6143. destination.push('$RC("'));
  6144. completedSegments = i.toString(16);
  6145. destination.push(request.boundaryPrefix);
  6146. destination.push(completedSegments);
  6147. destination.push('","');
  6148. destination.push(request.segmentPrefix);
  6149. destination.push(completedSegments);
  6150. requiresStyleInsertion
  6151. ? (destination.push('",'),
  6152. writeStyleResourceDependenciesInJS(destination, boundary))
  6153. : destination.push('"');
  6154. boundary = destination.push(")\x3c/script>");
  6155. return writeBootstrap(destination, request) && boundary;
  6156. }
  6157. function flushPartiallyCompletedSegment(
  6158. request,
  6159. destination,
  6160. boundary,
  6161. segment
  6162. ) {
  6163. if (2 === segment.status) return !0;
  6164. var hoistableState = boundary.contentState,
  6165. segmentID = segment.id;
  6166. if (-1 === segmentID) {
  6167. if (-1 === (segment.id = boundary.rootSegmentID))
  6168. throw Error(formatProdErrorMessage(392));
  6169. return flushSegmentContainer(request, destination, segment, hoistableState);
  6170. }
  6171. if (segmentID === boundary.rootSegmentID)
  6172. return flushSegmentContainer(request, destination, segment, hoistableState);
  6173. flushSegmentContainer(request, destination, segment, hoistableState);
  6174. boundary = request.resumableState;
  6175. request = request.renderState;
  6176. destination.push(request.startInlineScript);
  6177. destination.push(">");
  6178. 0 === (boundary.instructions & 1)
  6179. ? ((boundary.instructions |= 1),
  6180. destination.push(
  6181. '$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'
  6182. ))
  6183. : destination.push('$RS("');
  6184. destination.push(request.segmentPrefix);
  6185. segmentID = segmentID.toString(16);
  6186. destination.push(segmentID);
  6187. destination.push('","');
  6188. destination.push(request.placeholderPrefix);
  6189. destination.push(segmentID);
  6190. destination = destination.push('")\x3c/script>');
  6191. return destination;
  6192. }
  6193. var flushingPartialBoundaries = !1;
  6194. function flushCompletedQueues(request, destination) {
  6195. try {
  6196. if (!(0 < request.pendingRootTasks)) {
  6197. var i,
  6198. completedRootSegment = request.completedRootSegment;
  6199. if (null !== completedRootSegment) {
  6200. if (5 === completedRootSegment.status) return;
  6201. var completedPreambleSegments = request.completedPreambleSegments;
  6202. if (null === completedPreambleSegments) return;
  6203. flushedByteSize = request.byteSize;
  6204. var resumableState = request.resumableState,
  6205. renderState = request.renderState,
  6206. preamble = renderState.preamble,
  6207. htmlChunks = preamble.htmlChunks,
  6208. headChunks = preamble.headChunks,
  6209. i$jscomp$0;
  6210. if (htmlChunks) {
  6211. for (i$jscomp$0 = 0; i$jscomp$0 < htmlChunks.length; i$jscomp$0++)
  6212. destination.push(htmlChunks[i$jscomp$0]);
  6213. if (headChunks)
  6214. for (i$jscomp$0 = 0; i$jscomp$0 < headChunks.length; i$jscomp$0++)
  6215. destination.push(headChunks[i$jscomp$0]);
  6216. else {
  6217. var chunk = startChunkForTag("head");
  6218. destination.push(chunk);
  6219. destination.push(">");
  6220. }
  6221. } else if (headChunks)
  6222. for (i$jscomp$0 = 0; i$jscomp$0 < headChunks.length; i$jscomp$0++)
  6223. destination.push(headChunks[i$jscomp$0]);
  6224. var charsetChunks = renderState.charsetChunks;
  6225. for (i$jscomp$0 = 0; i$jscomp$0 < charsetChunks.length; i$jscomp$0++)
  6226. destination.push(charsetChunks[i$jscomp$0]);
  6227. charsetChunks.length = 0;
  6228. renderState.preconnects.forEach(flushResource, destination);
  6229. renderState.preconnects.clear();
  6230. var viewportChunks = renderState.viewportChunks;
  6231. for (i$jscomp$0 = 0; i$jscomp$0 < viewportChunks.length; i$jscomp$0++)
  6232. destination.push(viewportChunks[i$jscomp$0]);
  6233. viewportChunks.length = 0;
  6234. renderState.fontPreloads.forEach(flushResource, destination);
  6235. renderState.fontPreloads.clear();
  6236. renderState.highImagePreloads.forEach(flushResource, destination);
  6237. renderState.highImagePreloads.clear();
  6238. currentlyFlushingRenderState = renderState;
  6239. renderState.styles.forEach(flushStylesInPreamble, destination);
  6240. currentlyFlushingRenderState = null;
  6241. var importMapChunks = renderState.importMapChunks;
  6242. for (i$jscomp$0 = 0; i$jscomp$0 < importMapChunks.length; i$jscomp$0++)
  6243. destination.push(importMapChunks[i$jscomp$0]);
  6244. importMapChunks.length = 0;
  6245. renderState.bootstrapScripts.forEach(flushResource, destination);
  6246. renderState.scripts.forEach(flushResource, destination);
  6247. renderState.scripts.clear();
  6248. renderState.bulkPreloads.forEach(flushResource, destination);
  6249. renderState.bulkPreloads.clear();
  6250. resumableState.instructions |= 32;
  6251. var hoistableChunks = renderState.hoistableChunks;
  6252. for (i$jscomp$0 = 0; i$jscomp$0 < hoistableChunks.length; i$jscomp$0++)
  6253. destination.push(hoistableChunks[i$jscomp$0]);
  6254. for (
  6255. resumableState = hoistableChunks.length = 0;
  6256. resumableState < completedPreambleSegments.length;
  6257. resumableState++
  6258. ) {
  6259. var segments = completedPreambleSegments[resumableState];
  6260. for (renderState = 0; renderState < segments.length; renderState++)
  6261. flushSegment(request, destination, segments[renderState], null);
  6262. }
  6263. var preamble$jscomp$0 = request.renderState.preamble,
  6264. headChunks$jscomp$0 = preamble$jscomp$0.headChunks;
  6265. if (preamble$jscomp$0.htmlChunks || headChunks$jscomp$0) {
  6266. var chunk$jscomp$0 = endChunkForTag("head");
  6267. destination.push(chunk$jscomp$0);
  6268. }
  6269. var bodyChunks = preamble$jscomp$0.bodyChunks;
  6270. if (bodyChunks)
  6271. for (
  6272. completedPreambleSegments = 0;
  6273. completedPreambleSegments < bodyChunks.length;
  6274. completedPreambleSegments++
  6275. )
  6276. destination.push(bodyChunks[completedPreambleSegments]);
  6277. flushSegment(request, destination, completedRootSegment, null);
  6278. request.completedRootSegment = null;
  6279. var renderState$jscomp$0 = request.renderState;
  6280. if (
  6281. 0 !== request.allPendingTasks ||
  6282. 0 !== request.clientRenderedBoundaries.length ||
  6283. 0 !== request.completedBoundaries.length ||
  6284. (null !== request.trackedPostpones &&
  6285. (0 !== request.trackedPostpones.rootNodes.length ||
  6286. null !== request.trackedPostpones.rootSlots))
  6287. ) {
  6288. var resumableState$jscomp$0 = request.resumableState;
  6289. if (0 === (resumableState$jscomp$0.instructions & 64)) {
  6290. resumableState$jscomp$0.instructions |= 64;
  6291. destination.push(renderState$jscomp$0.startInlineScript);
  6292. if (0 === (resumableState$jscomp$0.instructions & 32)) {
  6293. resumableState$jscomp$0.instructions |= 32;
  6294. var shellId = "_" + resumableState$jscomp$0.idPrefix + "R_";
  6295. destination.push(' id="');
  6296. var chunk$jscomp$1 = escapeTextForBrowser(shellId);
  6297. destination.push(chunk$jscomp$1);
  6298. destination.push('"');
  6299. }
  6300. destination.push(">");
  6301. destination.push(
  6302. "requestAnimationFrame(function(){$RT=performance.now()});"
  6303. );
  6304. destination.push("\x3c/script>");
  6305. }
  6306. }
  6307. writeBootstrap(destination, renderState$jscomp$0);
  6308. }
  6309. var renderState$jscomp$1 = request.renderState;
  6310. completedRootSegment = 0;
  6311. var viewportChunks$jscomp$0 = renderState$jscomp$1.viewportChunks;
  6312. for (
  6313. completedRootSegment = 0;
  6314. completedRootSegment < viewportChunks$jscomp$0.length;
  6315. completedRootSegment++
  6316. )
  6317. destination.push(viewportChunks$jscomp$0[completedRootSegment]);
  6318. viewportChunks$jscomp$0.length = 0;
  6319. renderState$jscomp$1.preconnects.forEach(flushResource, destination);
  6320. renderState$jscomp$1.preconnects.clear();
  6321. renderState$jscomp$1.fontPreloads.forEach(flushResource, destination);
  6322. renderState$jscomp$1.fontPreloads.clear();
  6323. renderState$jscomp$1.highImagePreloads.forEach(
  6324. flushResource,
  6325. destination
  6326. );
  6327. renderState$jscomp$1.highImagePreloads.clear();
  6328. renderState$jscomp$1.styles.forEach(preloadLateStyles, destination);
  6329. renderState$jscomp$1.scripts.forEach(flushResource, destination);
  6330. renderState$jscomp$1.scripts.clear();
  6331. renderState$jscomp$1.bulkPreloads.forEach(flushResource, destination);
  6332. renderState$jscomp$1.bulkPreloads.clear();
  6333. var hoistableChunks$jscomp$0 = renderState$jscomp$1.hoistableChunks;
  6334. for (
  6335. completedRootSegment = 0;
  6336. completedRootSegment < hoistableChunks$jscomp$0.length;
  6337. completedRootSegment++
  6338. )
  6339. destination.push(hoistableChunks$jscomp$0[completedRootSegment]);
  6340. hoistableChunks$jscomp$0.length = 0;
  6341. var clientRenderedBoundaries = request.clientRenderedBoundaries;
  6342. for (i = 0; i < clientRenderedBoundaries.length; i++) {
  6343. var boundary = clientRenderedBoundaries[i];
  6344. renderState$jscomp$1 = destination;
  6345. var resumableState$jscomp$1 = request.resumableState,
  6346. renderState$jscomp$2 = request.renderState,
  6347. id = boundary.rootSegmentID,
  6348. errorDigest = boundary.errorDigest;
  6349. renderState$jscomp$1.push(renderState$jscomp$2.startInlineScript);
  6350. renderState$jscomp$1.push(">");
  6351. 0 === (resumableState$jscomp$1.instructions & 4)
  6352. ? ((resumableState$jscomp$1.instructions |= 4),
  6353. renderState$jscomp$1.push(
  6354. '$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'
  6355. ))
  6356. : renderState$jscomp$1.push('$RX("');
  6357. renderState$jscomp$1.push(renderState$jscomp$2.boundaryPrefix);
  6358. var chunk$jscomp$2 = id.toString(16);
  6359. renderState$jscomp$1.push(chunk$jscomp$2);
  6360. renderState$jscomp$1.push('"');
  6361. if (errorDigest) {
  6362. renderState$jscomp$1.push(",");
  6363. var chunk$jscomp$3 = escapeJSStringsForInstructionScripts(
  6364. errorDigest || ""
  6365. );
  6366. renderState$jscomp$1.push(chunk$jscomp$3);
  6367. }
  6368. var JSCompiler_inline_result =
  6369. renderState$jscomp$1.push(")\x3c/script>");
  6370. if (!JSCompiler_inline_result) {
  6371. request.destination = null;
  6372. i++;
  6373. clientRenderedBoundaries.splice(0, i);
  6374. return;
  6375. }
  6376. }
  6377. clientRenderedBoundaries.splice(0, i);
  6378. var completedBoundaries = request.completedBoundaries;
  6379. for (i = 0; i < completedBoundaries.length; i++)
  6380. if (
  6381. !flushCompletedBoundary(request, destination, completedBoundaries[i])
  6382. ) {
  6383. request.destination = null;
  6384. i++;
  6385. completedBoundaries.splice(0, i);
  6386. return;
  6387. }
  6388. completedBoundaries.splice(0, i);
  6389. flushingPartialBoundaries = !0;
  6390. var partialBoundaries = request.partialBoundaries;
  6391. for (i = 0; i < partialBoundaries.length; i++) {
  6392. var boundary$69 = partialBoundaries[i];
  6393. a: {
  6394. clientRenderedBoundaries = request;
  6395. boundary = destination;
  6396. flushedByteSize = boundary$69.byteSize;
  6397. var completedSegments = boundary$69.completedSegments;
  6398. for (
  6399. JSCompiler_inline_result = 0;
  6400. JSCompiler_inline_result < completedSegments.length;
  6401. JSCompiler_inline_result++
  6402. )
  6403. if (
  6404. !flushPartiallyCompletedSegment(
  6405. clientRenderedBoundaries,
  6406. boundary,
  6407. boundary$69,
  6408. completedSegments[JSCompiler_inline_result]
  6409. )
  6410. ) {
  6411. JSCompiler_inline_result++;
  6412. completedSegments.splice(0, JSCompiler_inline_result);
  6413. var JSCompiler_inline_result$jscomp$0 = !1;
  6414. break a;
  6415. }
  6416. completedSegments.splice(0, JSCompiler_inline_result);
  6417. var row = boundary$69.row;
  6418. null !== row &&
  6419. row.together &&
  6420. 1 === boundary$69.pendingTasks &&
  6421. (1 === row.pendingTasks
  6422. ? unblockSuspenseListRow(
  6423. clientRenderedBoundaries,
  6424. row,
  6425. row.hoistables
  6426. )
  6427. : row.pendingTasks--);
  6428. JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
  6429. boundary,
  6430. boundary$69.contentState,
  6431. clientRenderedBoundaries.renderState
  6432. );
  6433. }
  6434. if (!JSCompiler_inline_result$jscomp$0) {
  6435. request.destination = null;
  6436. i++;
  6437. partialBoundaries.splice(0, i);
  6438. return;
  6439. }
  6440. }
  6441. partialBoundaries.splice(0, i);
  6442. flushingPartialBoundaries = !1;
  6443. var largeBoundaries = request.completedBoundaries;
  6444. for (i = 0; i < largeBoundaries.length; i++)
  6445. if (!flushCompletedBoundary(request, destination, largeBoundaries[i])) {
  6446. request.destination = null;
  6447. i++;
  6448. largeBoundaries.splice(0, i);
  6449. return;
  6450. }
  6451. largeBoundaries.splice(0, i);
  6452. }
  6453. } finally {
  6454. (flushingPartialBoundaries = !1),
  6455. 0 === request.allPendingTasks &&
  6456. 0 === request.clientRenderedBoundaries.length &&
  6457. 0 === request.completedBoundaries.length &&
  6458. ((request.flushScheduled = !1),
  6459. (i = request.resumableState),
  6460. i.hasBody &&
  6461. ((partialBoundaries = endChunkForTag("body")),
  6462. destination.push(partialBoundaries)),
  6463. i.hasHtml && ((i = endChunkForTag("html")), destination.push(i)),
  6464. (request.status = 14),
  6465. destination.push(null),
  6466. (request.destination = null));
  6467. }
  6468. }
  6469. function enqueueFlush(request) {
  6470. if (
  6471. !1 === request.flushScheduled &&
  6472. 0 === request.pingedTasks.length &&
  6473. null !== request.destination
  6474. ) {
  6475. request.flushScheduled = !0;
  6476. var destination = request.destination;
  6477. destination
  6478. ? flushCompletedQueues(request, destination)
  6479. : (request.flushScheduled = !1);
  6480. }
  6481. }
  6482. function startFlowing(request, destination) {
  6483. if (13 === request.status)
  6484. (request.status = 14), destination.destroy(request.fatalError);
  6485. else if (14 !== request.status && null === request.destination) {
  6486. request.destination = destination;
  6487. try {
  6488. flushCompletedQueues(request, destination);
  6489. } catch (error) {
  6490. logRecoverableError(request, error, {}), fatalError(request, error);
  6491. }
  6492. }
  6493. }
  6494. function abort(request, reason) {
  6495. if (11 === request.status || 10 === request.status) request.status = 12;
  6496. try {
  6497. var abortableTasks = request.abortableTasks;
  6498. if (0 < abortableTasks.size) {
  6499. var error =
  6500. void 0 === reason
  6501. ? Error(formatProdErrorMessage(432))
  6502. : "object" === typeof reason &&
  6503. null !== reason &&
  6504. "function" === typeof reason.then
  6505. ? Error(formatProdErrorMessage(530))
  6506. : reason;
  6507. request.fatalError = error;
  6508. abortableTasks.forEach(function (task) {
  6509. return abortTask(task, request, error);
  6510. });
  6511. abortableTasks.clear();
  6512. }
  6513. null !== request.destination &&
  6514. flushCompletedQueues(request, request.destination);
  6515. } catch (error$71) {
  6516. logRecoverableError(request, error$71, {}), fatalError(request, error$71);
  6517. }
  6518. }
  6519. function addToReplayParent(node, parentKeyPath, trackedPostpones) {
  6520. if (null === parentKeyPath) trackedPostpones.rootNodes.push(node);
  6521. else {
  6522. var workingMap = trackedPostpones.workingMap,
  6523. parentNode = workingMap.get(parentKeyPath);
  6524. void 0 === parentNode &&
  6525. ((parentNode = [parentKeyPath[1], parentKeyPath[2], [], null]),
  6526. workingMap.set(parentKeyPath, parentNode),
  6527. addToReplayParent(parentNode, parentKeyPath[0], trackedPostpones));
  6528. parentNode[2].push(node);
  6529. }
  6530. }
  6531. function onError() {}
  6532. function renderToStringImpl(
  6533. children,
  6534. options,
  6535. generateStaticMarkup,
  6536. abortReason
  6537. ) {
  6538. var didFatal = !1,
  6539. fatalError = null,
  6540. result = "",
  6541. readyToStream = !1;
  6542. options = createResumableState(options ? options.identifierPrefix : void 0);
  6543. children = createRequest(
  6544. children,
  6545. options,
  6546. createRenderState(options, generateStaticMarkup),
  6547. createFormatContext(0, null, 0, null),
  6548. Infinity,
  6549. onError,
  6550. void 0,
  6551. function () {
  6552. readyToStream = !0;
  6553. },
  6554. void 0,
  6555. void 0,
  6556. void 0
  6557. );
  6558. children.flushScheduled = null !== children.destination;
  6559. performWork(children);
  6560. 10 === children.status && (children.status = 11);
  6561. null === children.trackedPostpones &&
  6562. safelyEmitEarlyPreloads(children, 0 === children.pendingRootTasks);
  6563. abort(children, abortReason);
  6564. startFlowing(children, {
  6565. push: function (chunk) {
  6566. null !== chunk && (result += chunk);
  6567. return !0;
  6568. },
  6569. destroy: function (error) {
  6570. didFatal = !0;
  6571. fatalError = error;
  6572. }
  6573. });
  6574. if (didFatal && fatalError !== abortReason) throw fatalError;
  6575. if (!readyToStream) throw Error(formatProdErrorMessage(426));
  6576. return result;
  6577. }
  6578. exports.renderToStaticMarkup = function (children, options) {
  6579. return renderToStringImpl(
  6580. children,
  6581. options,
  6582. !0,
  6583. 'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
  6584. );
  6585. };
  6586. exports.renderToString = function (children, options) {
  6587. return renderToStringImpl(
  6588. children,
  6589. options,
  6590. !1,
  6591. 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
  6592. );
  6593. };
  6594. exports.version = "19.2.4";