react-dom-server.edge.development.js 415 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620
  1. /**
  2. * @license React
  3. * react-dom-server.edge.development.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. "production" !== process.env.NODE_ENV &&
  31. (function () {
  32. function styleReplacer(match, prefix, s, suffix) {
  33. return "" + prefix + ("s" === s ? "\\73 " : "\\53 ") + suffix;
  34. }
  35. function scriptReplacer(match, prefix, s, suffix) {
  36. return "" + prefix + ("s" === s ? "\\u0073" : "\\u0053") + suffix;
  37. }
  38. function getIteratorFn(maybeIterable) {
  39. if (null === maybeIterable || "object" !== typeof maybeIterable)
  40. return null;
  41. maybeIterable =
  42. (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
  43. maybeIterable["@@iterator"];
  44. return "function" === typeof maybeIterable ? maybeIterable : null;
  45. }
  46. function objectName(object) {
  47. object = Object.prototype.toString.call(object);
  48. return object.slice(8, object.length - 1);
  49. }
  50. function describeKeyForErrorMessage(key) {
  51. var encodedKey = JSON.stringify(key);
  52. return '"' + key + '"' === encodedKey ? key : encodedKey;
  53. }
  54. function describeValueForErrorMessage(value) {
  55. switch (typeof value) {
  56. case "string":
  57. return JSON.stringify(
  58. 10 >= value.length ? value : value.slice(0, 10) + "..."
  59. );
  60. case "object":
  61. if (isArrayImpl(value)) return "[...]";
  62. if (null !== value && value.$$typeof === CLIENT_REFERENCE_TAG)
  63. return "client";
  64. value = objectName(value);
  65. return "Object" === value ? "{...}" : value;
  66. case "function":
  67. return value.$$typeof === CLIENT_REFERENCE_TAG
  68. ? "client"
  69. : (value = value.displayName || value.name)
  70. ? "function " + value
  71. : "function";
  72. default:
  73. return String(value);
  74. }
  75. }
  76. function describeElementType(type) {
  77. if ("string" === typeof type) return type;
  78. switch (type) {
  79. case REACT_SUSPENSE_TYPE:
  80. return "Suspense";
  81. case REACT_SUSPENSE_LIST_TYPE:
  82. return "SuspenseList";
  83. }
  84. if ("object" === typeof type)
  85. switch (type.$$typeof) {
  86. case REACT_FORWARD_REF_TYPE:
  87. return describeElementType(type.render);
  88. case REACT_MEMO_TYPE:
  89. return describeElementType(type.type);
  90. case REACT_LAZY_TYPE:
  91. var payload = type._payload;
  92. type = type._init;
  93. try {
  94. return describeElementType(type(payload));
  95. } catch (x) {}
  96. }
  97. return "";
  98. }
  99. function describeObjectForErrorMessage(objectOrArray, expandedName) {
  100. var objKind = objectName(objectOrArray);
  101. if ("Object" !== objKind && "Array" !== objKind) return objKind;
  102. var start = -1,
  103. length = 0;
  104. if (isArrayImpl(objectOrArray))
  105. if (jsxChildrenParents.has(objectOrArray)) {
  106. var type = jsxChildrenParents.get(objectOrArray);
  107. objKind = "<" + describeElementType(type) + ">";
  108. for (var i = 0; i < objectOrArray.length; i++) {
  109. var value = objectOrArray[i];
  110. value =
  111. "string" === typeof value
  112. ? value
  113. : "object" === typeof value && null !== value
  114. ? "{" + describeObjectForErrorMessage(value) + "}"
  115. : "{" + describeValueForErrorMessage(value) + "}";
  116. "" + i === expandedName
  117. ? ((start = objKind.length),
  118. (length = value.length),
  119. (objKind += value))
  120. : (objKind =
  121. 15 > value.length && 40 > objKind.length + value.length
  122. ? objKind + value
  123. : objKind + "{...}");
  124. }
  125. objKind += "</" + describeElementType(type) + ">";
  126. } else {
  127. objKind = "[";
  128. for (type = 0; type < objectOrArray.length; type++)
  129. 0 < type && (objKind += ", "),
  130. (i = objectOrArray[type]),
  131. (i =
  132. "object" === typeof i && null !== i
  133. ? describeObjectForErrorMessage(i)
  134. : describeValueForErrorMessage(i)),
  135. "" + type === expandedName
  136. ? ((start = objKind.length),
  137. (length = i.length),
  138. (objKind += i))
  139. : (objKind =
  140. 10 > i.length && 40 > objKind.length + i.length
  141. ? objKind + i
  142. : objKind + "...");
  143. objKind += "]";
  144. }
  145. else if (objectOrArray.$$typeof === REACT_ELEMENT_TYPE)
  146. objKind = "<" + describeElementType(objectOrArray.type) + "/>";
  147. else {
  148. if (objectOrArray.$$typeof === CLIENT_REFERENCE_TAG) return "client";
  149. if (jsxPropsParents.has(objectOrArray)) {
  150. objKind = jsxPropsParents.get(objectOrArray);
  151. objKind = "<" + (describeElementType(objKind) || "...");
  152. type = Object.keys(objectOrArray);
  153. for (i = 0; i < type.length; i++) {
  154. objKind += " ";
  155. value = type[i];
  156. objKind += describeKeyForErrorMessage(value) + "=";
  157. var _value2 = objectOrArray[value];
  158. var _substr2 =
  159. value === expandedName &&
  160. "object" === typeof _value2 &&
  161. null !== _value2
  162. ? describeObjectForErrorMessage(_value2)
  163. : describeValueForErrorMessage(_value2);
  164. "string" !== typeof _value2 && (_substr2 = "{" + _substr2 + "}");
  165. value === expandedName
  166. ? ((start = objKind.length),
  167. (length = _substr2.length),
  168. (objKind += _substr2))
  169. : (objKind =
  170. 10 > _substr2.length && 40 > objKind.length + _substr2.length
  171. ? objKind + _substr2
  172. : objKind + "...");
  173. }
  174. objKind += ">";
  175. } else {
  176. objKind = "{";
  177. type = Object.keys(objectOrArray);
  178. for (i = 0; i < type.length; i++)
  179. 0 < i && (objKind += ", "),
  180. (value = type[i]),
  181. (objKind += describeKeyForErrorMessage(value) + ": "),
  182. (_value2 = objectOrArray[value]),
  183. (_value2 =
  184. "object" === typeof _value2 && null !== _value2
  185. ? describeObjectForErrorMessage(_value2)
  186. : describeValueForErrorMessage(_value2)),
  187. value === expandedName
  188. ? ((start = objKind.length),
  189. (length = _value2.length),
  190. (objKind += _value2))
  191. : (objKind =
  192. 10 > _value2.length && 40 > objKind.length + _value2.length
  193. ? objKind + _value2
  194. : objKind + "...");
  195. objKind += "}";
  196. }
  197. }
  198. return void 0 === expandedName
  199. ? objKind
  200. : -1 < start && 0 < length
  201. ? ((objectOrArray = " ".repeat(start) + "^".repeat(length)),
  202. "\n " + objKind + "\n " + objectOrArray)
  203. : "\n " + objKind;
  204. }
  205. function murmurhash3_32_gc(key, seed) {
  206. var remainder = key.length & 3;
  207. var bytes = key.length - remainder;
  208. var h1 = seed;
  209. for (seed = 0; seed < bytes; ) {
  210. var k1 =
  211. (key.charCodeAt(seed) & 255) |
  212. ((key.charCodeAt(++seed) & 255) << 8) |
  213. ((key.charCodeAt(++seed) & 255) << 16) |
  214. ((key.charCodeAt(++seed) & 255) << 24);
  215. ++seed;
  216. k1 =
  217. (3432918353 * (k1 & 65535) +
  218. (((3432918353 * (k1 >>> 16)) & 65535) << 16)) &
  219. 4294967295;
  220. k1 = (k1 << 15) | (k1 >>> 17);
  221. k1 =
  222. (461845907 * (k1 & 65535) +
  223. (((461845907 * (k1 >>> 16)) & 65535) << 16)) &
  224. 4294967295;
  225. h1 ^= k1;
  226. h1 = (h1 << 13) | (h1 >>> 19);
  227. h1 =
  228. (5 * (h1 & 65535) + (((5 * (h1 >>> 16)) & 65535) << 16)) & 4294967295;
  229. h1 = (h1 & 65535) + 27492 + ((((h1 >>> 16) + 58964) & 65535) << 16);
  230. }
  231. k1 = 0;
  232. switch (remainder) {
  233. case 3:
  234. k1 ^= (key.charCodeAt(seed + 2) & 255) << 16;
  235. case 2:
  236. k1 ^= (key.charCodeAt(seed + 1) & 255) << 8;
  237. case 1:
  238. (k1 ^= key.charCodeAt(seed) & 255),
  239. (k1 =
  240. (3432918353 * (k1 & 65535) +
  241. (((3432918353 * (k1 >>> 16)) & 65535) << 16)) &
  242. 4294967295),
  243. (k1 = (k1 << 15) | (k1 >>> 17)),
  244. (h1 ^=
  245. (461845907 * (k1 & 65535) +
  246. (((461845907 * (k1 >>> 16)) & 65535) << 16)) &
  247. 4294967295);
  248. }
  249. h1 ^= key.length;
  250. h1 ^= h1 >>> 16;
  251. h1 =
  252. (2246822507 * (h1 & 65535) +
  253. (((2246822507 * (h1 >>> 16)) & 65535) << 16)) &
  254. 4294967295;
  255. h1 ^= h1 >>> 13;
  256. h1 =
  257. (3266489909 * (h1 & 65535) +
  258. (((3266489909 * (h1 >>> 16)) & 65535) << 16)) &
  259. 4294967295;
  260. return (h1 ^ (h1 >>> 16)) >>> 0;
  261. }
  262. function handleErrorInNextTick(error) {
  263. setTimeout(function () {
  264. throw error;
  265. });
  266. }
  267. function writeChunk(destination, chunk) {
  268. if (0 !== chunk.byteLength)
  269. if (2048 < chunk.byteLength)
  270. 0 < writtenBytes &&
  271. (destination.enqueue(
  272. new Uint8Array(currentView.buffer, 0, writtenBytes)
  273. ),
  274. (currentView = new Uint8Array(2048)),
  275. (writtenBytes = 0)),
  276. destination.enqueue(chunk);
  277. else {
  278. var allowableBytes = currentView.length - writtenBytes;
  279. allowableBytes < chunk.byteLength &&
  280. (0 === allowableBytes
  281. ? destination.enqueue(currentView)
  282. : (currentView.set(
  283. chunk.subarray(0, allowableBytes),
  284. writtenBytes
  285. ),
  286. destination.enqueue(currentView),
  287. (chunk = chunk.subarray(allowableBytes))),
  288. (currentView = new Uint8Array(2048)),
  289. (writtenBytes = 0));
  290. currentView.set(chunk, writtenBytes);
  291. writtenBytes += chunk.byteLength;
  292. }
  293. }
  294. function writeChunkAndReturn(destination, chunk) {
  295. writeChunk(destination, chunk);
  296. return !0;
  297. }
  298. function completeWriting(destination) {
  299. currentView &&
  300. 0 < writtenBytes &&
  301. (destination.enqueue(
  302. new Uint8Array(currentView.buffer, 0, writtenBytes)
  303. ),
  304. (currentView = null),
  305. (writtenBytes = 0));
  306. }
  307. function stringToChunk(content) {
  308. return textEncoder.encode(content);
  309. }
  310. function stringToPrecomputedChunk(content) {
  311. content = textEncoder.encode(content);
  312. 2048 < content.byteLength &&
  313. console.error(
  314. "precomputed chunks must be smaller than the view size configured for this host. This is a bug in React."
  315. );
  316. return content;
  317. }
  318. function byteLengthOfChunk(chunk) {
  319. return chunk.byteLength;
  320. }
  321. function closeWithError(destination, error) {
  322. "function" === typeof destination.error
  323. ? destination.error(error)
  324. : destination.close();
  325. }
  326. function typeName(value) {
  327. return (
  328. ("function" === typeof Symbol &&
  329. Symbol.toStringTag &&
  330. value[Symbol.toStringTag]) ||
  331. value.constructor.name ||
  332. "Object"
  333. );
  334. }
  335. function willCoercionThrow(value) {
  336. try {
  337. return testStringCoercion(value), !1;
  338. } catch (e) {
  339. return !0;
  340. }
  341. }
  342. function testStringCoercion(value) {
  343. return "" + value;
  344. }
  345. function checkAttributeStringCoercion(value, attributeName) {
  346. if (willCoercionThrow(value))
  347. return (
  348. console.error(
  349. "The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",
  350. attributeName,
  351. typeName(value)
  352. ),
  353. testStringCoercion(value)
  354. );
  355. }
  356. function checkCSSPropertyStringCoercion(value, propName) {
  357. if (willCoercionThrow(value))
  358. return (
  359. console.error(
  360. "The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",
  361. propName,
  362. typeName(value)
  363. ),
  364. testStringCoercion(value)
  365. );
  366. }
  367. function checkHtmlStringCoercion(value) {
  368. if (willCoercionThrow(value))
  369. return (
  370. console.error(
  371. "The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",
  372. typeName(value)
  373. ),
  374. testStringCoercion(value)
  375. );
  376. }
  377. function isAttributeNameSafe(attributeName) {
  378. if (hasOwnProperty.call(validatedAttributeNameCache, attributeName))
  379. return !0;
  380. if (hasOwnProperty.call(illegalAttributeNameCache, attributeName))
  381. return !1;
  382. if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName))
  383. return (validatedAttributeNameCache[attributeName] = !0);
  384. illegalAttributeNameCache[attributeName] = !0;
  385. console.error("Invalid attribute name: `%s`", attributeName);
  386. return !1;
  387. }
  388. function checkControlledValueProps(tagName, props) {
  389. hasReadOnlyValue[props.type] ||
  390. props.onChange ||
  391. props.onInput ||
  392. props.readOnly ||
  393. props.disabled ||
  394. null == props.value ||
  395. ("select" === tagName
  396. ? console.error(
  397. "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."
  398. )
  399. : console.error(
  400. "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."
  401. ));
  402. props.onChange ||
  403. props.readOnly ||
  404. props.disabled ||
  405. null == props.checked ||
  406. console.error(
  407. "You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`."
  408. );
  409. }
  410. function validateProperty$1(tagName, name) {
  411. if (
  412. hasOwnProperty.call(warnedProperties$1, name) &&
  413. warnedProperties$1[name]
  414. )
  415. return !0;
  416. if (rARIACamel$1.test(name)) {
  417. tagName = "aria-" + name.slice(4).toLowerCase();
  418. tagName = ariaProperties.hasOwnProperty(tagName) ? tagName : null;
  419. if (null == tagName)
  420. return (
  421. console.error(
  422. "Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",
  423. name
  424. ),
  425. (warnedProperties$1[name] = !0)
  426. );
  427. if (name !== tagName)
  428. return (
  429. console.error(
  430. "Invalid ARIA attribute `%s`. Did you mean `%s`?",
  431. name,
  432. tagName
  433. ),
  434. (warnedProperties$1[name] = !0)
  435. );
  436. }
  437. if (rARIA$1.test(name)) {
  438. tagName = name.toLowerCase();
  439. tagName = ariaProperties.hasOwnProperty(tagName) ? tagName : null;
  440. if (null == tagName) return (warnedProperties$1[name] = !0), !1;
  441. name !== tagName &&
  442. (console.error(
  443. "Unknown ARIA attribute `%s`. Did you mean `%s`?",
  444. name,
  445. tagName
  446. ),
  447. (warnedProperties$1[name] = !0));
  448. }
  449. return !0;
  450. }
  451. function validateProperties$2(type, props) {
  452. var invalidProps = [],
  453. key;
  454. for (key in props)
  455. validateProperty$1(type, key) || invalidProps.push(key);
  456. props = invalidProps
  457. .map(function (prop) {
  458. return "`" + prop + "`";
  459. })
  460. .join(", ");
  461. 1 === invalidProps.length
  462. ? console.error(
  463. "Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",
  464. props,
  465. type
  466. )
  467. : 1 < invalidProps.length &&
  468. console.error(
  469. "Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",
  470. props,
  471. type
  472. );
  473. }
  474. function validateProperty(tagName, name, value, eventRegistry) {
  475. if (hasOwnProperty.call(warnedProperties, name) && warnedProperties[name])
  476. return !0;
  477. var lowerCasedName = name.toLowerCase();
  478. if ("onfocusin" === lowerCasedName || "onfocusout" === lowerCasedName)
  479. return (
  480. console.error(
  481. "React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."
  482. ),
  483. (warnedProperties[name] = !0)
  484. );
  485. if (
  486. "function" === typeof value &&
  487. (("form" === tagName && "action" === name) ||
  488. ("input" === tagName && "formAction" === name) ||
  489. ("button" === tagName && "formAction" === name))
  490. )
  491. return !0;
  492. if (null != eventRegistry) {
  493. tagName = eventRegistry.possibleRegistrationNames;
  494. if (eventRegistry.registrationNameDependencies.hasOwnProperty(name))
  495. return !0;
  496. eventRegistry = tagName.hasOwnProperty(lowerCasedName)
  497. ? tagName[lowerCasedName]
  498. : null;
  499. if (null != eventRegistry)
  500. return (
  501. console.error(
  502. "Invalid event handler property `%s`. Did you mean `%s`?",
  503. name,
  504. eventRegistry
  505. ),
  506. (warnedProperties[name] = !0)
  507. );
  508. if (EVENT_NAME_REGEX.test(name))
  509. return (
  510. console.error(
  511. "Unknown event handler property `%s`. It will be ignored.",
  512. name
  513. ),
  514. (warnedProperties[name] = !0)
  515. );
  516. } else if (EVENT_NAME_REGEX.test(name))
  517. return (
  518. INVALID_EVENT_NAME_REGEX.test(name) &&
  519. console.error(
  520. "Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",
  521. name
  522. ),
  523. (warnedProperties[name] = !0)
  524. );
  525. if (rARIA.test(name) || rARIACamel.test(name)) return !0;
  526. if ("innerhtml" === lowerCasedName)
  527. return (
  528. console.error(
  529. "Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."
  530. ),
  531. (warnedProperties[name] = !0)
  532. );
  533. if ("aria" === lowerCasedName)
  534. return (
  535. console.error(
  536. "The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."
  537. ),
  538. (warnedProperties[name] = !0)
  539. );
  540. if (
  541. "is" === lowerCasedName &&
  542. null !== value &&
  543. void 0 !== value &&
  544. "string" !== typeof value
  545. )
  546. return (
  547. console.error(
  548. "Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",
  549. typeof value
  550. ),
  551. (warnedProperties[name] = !0)
  552. );
  553. if ("number" === typeof value && isNaN(value))
  554. return (
  555. console.error(
  556. "Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",
  557. name
  558. ),
  559. (warnedProperties[name] = !0)
  560. );
  561. if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
  562. if (
  563. ((lowerCasedName = possibleStandardNames[lowerCasedName]),
  564. lowerCasedName !== name)
  565. )
  566. return (
  567. console.error(
  568. "Invalid DOM property `%s`. Did you mean `%s`?",
  569. name,
  570. lowerCasedName
  571. ),
  572. (warnedProperties[name] = !0)
  573. );
  574. } else if (name !== lowerCasedName)
  575. return (
  576. console.error(
  577. "React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",
  578. name,
  579. lowerCasedName
  580. ),
  581. (warnedProperties[name] = !0)
  582. );
  583. switch (name) {
  584. case "dangerouslySetInnerHTML":
  585. case "children":
  586. case "style":
  587. case "suppressContentEditableWarning":
  588. case "suppressHydrationWarning":
  589. case "defaultValue":
  590. case "defaultChecked":
  591. case "innerHTML":
  592. case "ref":
  593. return !0;
  594. case "innerText":
  595. case "textContent":
  596. return !0;
  597. }
  598. switch (typeof value) {
  599. case "boolean":
  600. switch (name) {
  601. case "autoFocus":
  602. case "checked":
  603. case "multiple":
  604. case "muted":
  605. case "selected":
  606. case "contentEditable":
  607. case "spellCheck":
  608. case "draggable":
  609. case "value":
  610. case "autoReverse":
  611. case "externalResourcesRequired":
  612. case "focusable":
  613. case "preserveAlpha":
  614. case "allowFullScreen":
  615. case "async":
  616. case "autoPlay":
  617. case "controls":
  618. case "default":
  619. case "defer":
  620. case "disabled":
  621. case "disablePictureInPicture":
  622. case "disableRemotePlayback":
  623. case "formNoValidate":
  624. case "hidden":
  625. case "loop":
  626. case "noModule":
  627. case "noValidate":
  628. case "open":
  629. case "playsInline":
  630. case "readOnly":
  631. case "required":
  632. case "reversed":
  633. case "scoped":
  634. case "seamless":
  635. case "itemScope":
  636. case "capture":
  637. case "download":
  638. case "inert":
  639. return !0;
  640. default:
  641. lowerCasedName = name.toLowerCase().slice(0, 5);
  642. if ("data-" === lowerCasedName || "aria-" === lowerCasedName)
  643. return !0;
  644. value
  645. ? console.error(
  646. 'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',
  647. value,
  648. name,
  649. name,
  650. value,
  651. name
  652. )
  653. : console.error(
  654. 'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',
  655. value,
  656. name,
  657. name,
  658. value,
  659. name,
  660. name,
  661. name
  662. );
  663. return (warnedProperties[name] = !0);
  664. }
  665. case "function":
  666. case "symbol":
  667. return (warnedProperties[name] = !0), !1;
  668. case "string":
  669. if ("false" === value || "true" === value) {
  670. switch (name) {
  671. case "checked":
  672. case "selected":
  673. case "multiple":
  674. case "muted":
  675. case "allowFullScreen":
  676. case "async":
  677. case "autoPlay":
  678. case "controls":
  679. case "default":
  680. case "defer":
  681. case "disabled":
  682. case "disablePictureInPicture":
  683. case "disableRemotePlayback":
  684. case "formNoValidate":
  685. case "hidden":
  686. case "loop":
  687. case "noModule":
  688. case "noValidate":
  689. case "open":
  690. case "playsInline":
  691. case "readOnly":
  692. case "required":
  693. case "reversed":
  694. case "scoped":
  695. case "seamless":
  696. case "itemScope":
  697. case "inert":
  698. break;
  699. default:
  700. return !0;
  701. }
  702. console.error(
  703. "Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",
  704. value,
  705. name,
  706. "false" === value
  707. ? "The browser will interpret it as a truthy value."
  708. : 'Although this works, it will not work as expected if you pass the string "false".',
  709. name,
  710. value
  711. );
  712. warnedProperties[name] = !0;
  713. }
  714. }
  715. return !0;
  716. }
  717. function warnUnknownProperties(type, props, eventRegistry) {
  718. var unknownProps = [],
  719. key;
  720. for (key in props)
  721. validateProperty(type, key, props[key], eventRegistry) ||
  722. unknownProps.push(key);
  723. props = unknownProps
  724. .map(function (prop) {
  725. return "`" + prop + "`";
  726. })
  727. .join(", ");
  728. 1 === unknownProps.length
  729. ? console.error(
  730. "Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",
  731. props,
  732. type
  733. )
  734. : 1 < unknownProps.length &&
  735. console.error(
  736. "Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",
  737. props,
  738. type
  739. );
  740. }
  741. function camelize(string) {
  742. return string.replace(hyphenPattern, function (_, character) {
  743. return character.toUpperCase();
  744. });
  745. }
  746. function escapeTextForBrowser(text) {
  747. if (
  748. "boolean" === typeof text ||
  749. "number" === typeof text ||
  750. "bigint" === typeof text
  751. )
  752. return "" + text;
  753. checkHtmlStringCoercion(text);
  754. text = "" + text;
  755. var match = matchHtmlRegExp.exec(text);
  756. if (match) {
  757. var html = "",
  758. index,
  759. lastIndex = 0;
  760. for (index = match.index; index < text.length; index++) {
  761. switch (text.charCodeAt(index)) {
  762. case 34:
  763. match = "&quot;";
  764. break;
  765. case 38:
  766. match = "&amp;";
  767. break;
  768. case 39:
  769. match = "&#x27;";
  770. break;
  771. case 60:
  772. match = "&lt;";
  773. break;
  774. case 62:
  775. match = "&gt;";
  776. break;
  777. default:
  778. continue;
  779. }
  780. lastIndex !== index && (html += text.slice(lastIndex, index));
  781. lastIndex = index + 1;
  782. html += match;
  783. }
  784. text = lastIndex !== index ? html + text.slice(lastIndex, index) : html;
  785. }
  786. return text;
  787. }
  788. function sanitizeURL(url) {
  789. return isJavaScriptProtocol.test("" + url)
  790. ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')"
  791. : url;
  792. }
  793. function escapeEntireInlineScriptContent(scriptText) {
  794. checkHtmlStringCoercion(scriptText);
  795. return ("" + scriptText).replace(scriptRegex, scriptReplacer);
  796. }
  797. function createRenderState(
  798. resumableState,
  799. nonce,
  800. externalRuntimeConfig,
  801. importMap,
  802. onHeaders,
  803. maxHeadersLength
  804. ) {
  805. externalRuntimeConfig =
  806. "string" === typeof nonce ? nonce : nonce && nonce.script;
  807. var inlineScriptWithNonce =
  808. void 0 === externalRuntimeConfig
  809. ? startInlineScript
  810. : stringToPrecomputedChunk(
  811. '<script nonce="' +
  812. escapeTextForBrowser(externalRuntimeConfig) +
  813. '"'
  814. ),
  815. nonceStyle = "string" === typeof nonce ? void 0 : nonce && nonce.style,
  816. inlineStyleWithNonce =
  817. void 0 === nonceStyle
  818. ? startInlineStyle
  819. : stringToPrecomputedChunk(
  820. '<style nonce="' + escapeTextForBrowser(nonceStyle) + '"'
  821. ),
  822. idPrefix = resumableState.idPrefix,
  823. bootstrapChunks = [],
  824. bootstrapScriptContent = resumableState.bootstrapScriptContent,
  825. bootstrapScripts = resumableState.bootstrapScripts,
  826. bootstrapModules = resumableState.bootstrapModules;
  827. void 0 !== bootstrapScriptContent &&
  828. (bootstrapChunks.push(inlineScriptWithNonce),
  829. pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
  830. bootstrapChunks.push(
  831. endOfStartTag,
  832. stringToChunk(
  833. escapeEntireInlineScriptContent(bootstrapScriptContent)
  834. ),
  835. endInlineScript
  836. ));
  837. bootstrapScriptContent = [];
  838. void 0 !== importMap &&
  839. (bootstrapScriptContent.push(importMapScriptStart),
  840. bootstrapScriptContent.push(
  841. stringToChunk(
  842. escapeEntireInlineScriptContent(JSON.stringify(importMap))
  843. )
  844. ),
  845. bootstrapScriptContent.push(importMapScriptEnd));
  846. onHeaders &&
  847. "number" === typeof maxHeadersLength &&
  848. 0 >= maxHeadersLength &&
  849. console.error(
  850. "React expected a positive non-zero `maxHeadersLength` option but found %s instead. When using the `onHeaders` option you may supply an optional `maxHeadersLength` option as well however, when setting this value to zero or less no headers will be captured.",
  851. 0 === maxHeadersLength ? "zero" : maxHeadersLength
  852. );
  853. importMap = onHeaders
  854. ? {
  855. preconnects: "",
  856. fontPreloads: "",
  857. highImagePreloads: "",
  858. remainingCapacity:
  859. 2 +
  860. ("number" === typeof maxHeadersLength ? maxHeadersLength : 2e3)
  861. }
  862. : null;
  863. onHeaders = {
  864. placeholderPrefix: stringToPrecomputedChunk(idPrefix + "P:"),
  865. segmentPrefix: stringToPrecomputedChunk(idPrefix + "S:"),
  866. boundaryPrefix: stringToPrecomputedChunk(idPrefix + "B:"),
  867. startInlineScript: inlineScriptWithNonce,
  868. startInlineStyle: inlineStyleWithNonce,
  869. preamble: createPreambleState(),
  870. externalRuntimeScript: null,
  871. bootstrapChunks: bootstrapChunks,
  872. importMapChunks: bootstrapScriptContent,
  873. onHeaders: onHeaders,
  874. headers: importMap,
  875. resets: {
  876. font: {},
  877. dns: {},
  878. connect: { default: {}, anonymous: {}, credentials: {} },
  879. image: {},
  880. style: {}
  881. },
  882. charsetChunks: [],
  883. viewportChunks: [],
  884. hoistableChunks: [],
  885. preconnects: new Set(),
  886. fontPreloads: new Set(),
  887. highImagePreloads: new Set(),
  888. styles: new Map(),
  889. bootstrapScripts: new Set(),
  890. scripts: new Set(),
  891. bulkPreloads: new Set(),
  892. preloads: {
  893. images: new Map(),
  894. stylesheets: new Map(),
  895. scripts: new Map(),
  896. moduleScripts: new Map()
  897. },
  898. nonce: { script: externalRuntimeConfig, style: nonceStyle },
  899. hoistableState: null,
  900. stylesToHoist: !1
  901. };
  902. if (void 0 !== bootstrapScripts)
  903. for (importMap = 0; importMap < bootstrapScripts.length; importMap++)
  904. (maxHeadersLength = bootstrapScripts[importMap]),
  905. (inlineStyleWithNonce = nonceStyle = void 0),
  906. (idPrefix = {
  907. rel: "preload",
  908. as: "script",
  909. fetchPriority: "low",
  910. nonce: nonce
  911. }),
  912. "string" === typeof maxHeadersLength
  913. ? (idPrefix.href = inlineScriptWithNonce = maxHeadersLength)
  914. : ((idPrefix.href = inlineScriptWithNonce = maxHeadersLength.src),
  915. (idPrefix.integrity = inlineStyleWithNonce =
  916. "string" === typeof maxHeadersLength.integrity
  917. ? maxHeadersLength.integrity
  918. : void 0),
  919. (idPrefix.crossOrigin = nonceStyle =
  920. "string" === typeof maxHeadersLength ||
  921. null == maxHeadersLength.crossOrigin
  922. ? void 0
  923. : "use-credentials" === maxHeadersLength.crossOrigin
  924. ? "use-credentials"
  925. : "")),
  926. preloadBootstrapScriptOrModule(
  927. resumableState,
  928. onHeaders,
  929. inlineScriptWithNonce,
  930. idPrefix
  931. ),
  932. bootstrapChunks.push(
  933. startScriptSrc,
  934. stringToChunk(escapeTextForBrowser(inlineScriptWithNonce)),
  935. attributeEnd
  936. ),
  937. externalRuntimeConfig &&
  938. bootstrapChunks.push(
  939. scriptNonce,
  940. stringToChunk(escapeTextForBrowser(externalRuntimeConfig)),
  941. attributeEnd
  942. ),
  943. "string" === typeof inlineStyleWithNonce &&
  944. bootstrapChunks.push(
  945. scriptIntegirty,
  946. stringToChunk(escapeTextForBrowser(inlineStyleWithNonce)),
  947. attributeEnd
  948. ),
  949. "string" === typeof nonceStyle &&
  950. bootstrapChunks.push(
  951. scriptCrossOrigin,
  952. stringToChunk(escapeTextForBrowser(nonceStyle)),
  953. attributeEnd
  954. ),
  955. pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
  956. bootstrapChunks.push(endAsyncScript);
  957. if (void 0 !== bootstrapModules)
  958. for (nonce = 0; nonce < bootstrapModules.length; nonce++)
  959. (bootstrapScripts = bootstrapModules[nonce]),
  960. (inlineScriptWithNonce = maxHeadersLength = void 0),
  961. (nonceStyle = {
  962. rel: "modulepreload",
  963. fetchPriority: "low",
  964. nonce: externalRuntimeConfig
  965. }),
  966. "string" === typeof bootstrapScripts
  967. ? (nonceStyle.href = importMap = bootstrapScripts)
  968. : ((nonceStyle.href = importMap = bootstrapScripts.src),
  969. (nonceStyle.integrity = inlineScriptWithNonce =
  970. "string" === typeof bootstrapScripts.integrity
  971. ? bootstrapScripts.integrity
  972. : void 0),
  973. (nonceStyle.crossOrigin = maxHeadersLength =
  974. "string" === typeof bootstrapScripts ||
  975. null == bootstrapScripts.crossOrigin
  976. ? void 0
  977. : "use-credentials" === bootstrapScripts.crossOrigin
  978. ? "use-credentials"
  979. : "")),
  980. preloadBootstrapScriptOrModule(
  981. resumableState,
  982. onHeaders,
  983. importMap,
  984. nonceStyle
  985. ),
  986. bootstrapChunks.push(
  987. startModuleSrc,
  988. stringToChunk(escapeTextForBrowser(importMap)),
  989. attributeEnd
  990. ),
  991. externalRuntimeConfig &&
  992. bootstrapChunks.push(
  993. scriptNonce,
  994. stringToChunk(escapeTextForBrowser(externalRuntimeConfig)),
  995. attributeEnd
  996. ),
  997. "string" === typeof inlineScriptWithNonce &&
  998. bootstrapChunks.push(
  999. scriptIntegirty,
  1000. stringToChunk(escapeTextForBrowser(inlineScriptWithNonce)),
  1001. attributeEnd
  1002. ),
  1003. "string" === typeof maxHeadersLength &&
  1004. bootstrapChunks.push(
  1005. scriptCrossOrigin,
  1006. stringToChunk(escapeTextForBrowser(maxHeadersLength)),
  1007. attributeEnd
  1008. ),
  1009. pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
  1010. bootstrapChunks.push(endAsyncScript);
  1011. return onHeaders;
  1012. }
  1013. function createResumableState(
  1014. identifierPrefix,
  1015. externalRuntimeConfig,
  1016. bootstrapScriptContent,
  1017. bootstrapScripts,
  1018. bootstrapModules
  1019. ) {
  1020. return {
  1021. idPrefix: void 0 === identifierPrefix ? "" : identifierPrefix,
  1022. nextFormID: 0,
  1023. streamingFormat: 0,
  1024. bootstrapScriptContent: bootstrapScriptContent,
  1025. bootstrapScripts: bootstrapScripts,
  1026. bootstrapModules: bootstrapModules,
  1027. instructions: NothingSent,
  1028. hasBody: !1,
  1029. hasHtml: !1,
  1030. unknownResources: {},
  1031. dnsResources: {},
  1032. connectResources: { default: {}, anonymous: {}, credentials: {} },
  1033. imageResources: {},
  1034. styleResources: {},
  1035. scriptResources: {},
  1036. moduleUnknownResources: {},
  1037. moduleScriptResources: {}
  1038. };
  1039. }
  1040. function createPreambleState() {
  1041. return { htmlChunks: null, headChunks: null, bodyChunks: null };
  1042. }
  1043. function createFormatContext(
  1044. insertionMode,
  1045. selectedValue,
  1046. tagScope,
  1047. viewTransition
  1048. ) {
  1049. return {
  1050. insertionMode: insertionMode,
  1051. selectedValue: selectedValue,
  1052. tagScope: tagScope,
  1053. viewTransition: viewTransition
  1054. };
  1055. }
  1056. function createRootFormatContext(namespaceURI) {
  1057. return createFormatContext(
  1058. "http://www.w3.org/2000/svg" === namespaceURI
  1059. ? SVG_MODE
  1060. : "http://www.w3.org/1998/Math/MathML" === namespaceURI
  1061. ? MATHML_MODE
  1062. : ROOT_HTML_MODE,
  1063. null,
  1064. 0,
  1065. null
  1066. );
  1067. }
  1068. function getChildFormatContext(parentContext, type, props) {
  1069. var subtreeScope = parentContext.tagScope & -25;
  1070. switch (type) {
  1071. case "noscript":
  1072. return createFormatContext(HTML_MODE, null, subtreeScope | 1, null);
  1073. case "select":
  1074. return createFormatContext(
  1075. HTML_MODE,
  1076. null != props.value ? props.value : props.defaultValue,
  1077. subtreeScope,
  1078. null
  1079. );
  1080. case "svg":
  1081. return createFormatContext(SVG_MODE, null, subtreeScope, null);
  1082. case "picture":
  1083. return createFormatContext(HTML_MODE, null, subtreeScope | 2, null);
  1084. case "math":
  1085. return createFormatContext(MATHML_MODE, null, subtreeScope, null);
  1086. case "foreignObject":
  1087. return createFormatContext(HTML_MODE, null, subtreeScope, null);
  1088. case "table":
  1089. return createFormatContext(HTML_TABLE_MODE, null, subtreeScope, null);
  1090. case "thead":
  1091. case "tbody":
  1092. case "tfoot":
  1093. return createFormatContext(
  1094. HTML_TABLE_BODY_MODE,
  1095. null,
  1096. subtreeScope,
  1097. null
  1098. );
  1099. case "colgroup":
  1100. return createFormatContext(
  1101. HTML_COLGROUP_MODE,
  1102. null,
  1103. subtreeScope,
  1104. null
  1105. );
  1106. case "tr":
  1107. return createFormatContext(
  1108. HTML_TABLE_ROW_MODE,
  1109. null,
  1110. subtreeScope,
  1111. null
  1112. );
  1113. case "head":
  1114. if (parentContext.insertionMode < HTML_MODE)
  1115. return createFormatContext(
  1116. HTML_HEAD_MODE,
  1117. null,
  1118. subtreeScope,
  1119. null
  1120. );
  1121. break;
  1122. case "html":
  1123. if (parentContext.insertionMode === ROOT_HTML_MODE)
  1124. return createFormatContext(
  1125. HTML_HTML_MODE,
  1126. null,
  1127. subtreeScope,
  1128. null
  1129. );
  1130. }
  1131. return parentContext.insertionMode >= HTML_TABLE_MODE ||
  1132. parentContext.insertionMode < HTML_MODE
  1133. ? createFormatContext(HTML_MODE, null, subtreeScope, null)
  1134. : parentContext.tagScope !== subtreeScope
  1135. ? createFormatContext(
  1136. parentContext.insertionMode,
  1137. parentContext.selectedValue,
  1138. subtreeScope,
  1139. null
  1140. )
  1141. : parentContext;
  1142. }
  1143. function getSuspenseViewTransition(parentViewTransition) {
  1144. return null === parentViewTransition
  1145. ? null
  1146. : {
  1147. update: parentViewTransition.update,
  1148. enter: "none",
  1149. exit: "none",
  1150. share: parentViewTransition.update,
  1151. name: parentViewTransition.autoName,
  1152. autoName: parentViewTransition.autoName,
  1153. nameIdx: 0
  1154. };
  1155. }
  1156. function getSuspenseFallbackFormatContext(resumableState, parentContext) {
  1157. parentContext.tagScope & 32 && (resumableState.instructions |= 128);
  1158. return createFormatContext(
  1159. parentContext.insertionMode,
  1160. parentContext.selectedValue,
  1161. parentContext.tagScope | 12,
  1162. getSuspenseViewTransition(parentContext.viewTransition)
  1163. );
  1164. }
  1165. function getSuspenseContentFormatContext(resumableState, parentContext) {
  1166. resumableState = getSuspenseViewTransition(parentContext.viewTransition);
  1167. var subtreeScope = parentContext.tagScope | 16;
  1168. null !== resumableState &&
  1169. "none" !== resumableState.share &&
  1170. (subtreeScope |= 64);
  1171. return createFormatContext(
  1172. parentContext.insertionMode,
  1173. parentContext.selectedValue,
  1174. subtreeScope,
  1175. resumableState
  1176. );
  1177. }
  1178. function pushTextInstance(target, text, renderState, textEmbedded) {
  1179. if ("" === text) return textEmbedded;
  1180. textEmbedded && target.push(textSeparator);
  1181. target.push(stringToChunk(escapeTextForBrowser(text)));
  1182. return !0;
  1183. }
  1184. function pushStyleAttribute(target, style) {
  1185. if ("object" !== typeof style)
  1186. throw Error(
  1187. "The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX."
  1188. );
  1189. var isFirst = !0,
  1190. styleName;
  1191. for (styleName in style)
  1192. if (hasOwnProperty.call(style, styleName)) {
  1193. var styleValue = style[styleName];
  1194. if (
  1195. null != styleValue &&
  1196. "boolean" !== typeof styleValue &&
  1197. "" !== styleValue
  1198. ) {
  1199. if (0 === styleName.indexOf("--")) {
  1200. var nameChunk = stringToChunk(escapeTextForBrowser(styleName));
  1201. checkCSSPropertyStringCoercion(styleValue, styleName);
  1202. styleValue = stringToChunk(
  1203. escapeTextForBrowser(("" + styleValue).trim())
  1204. );
  1205. } else {
  1206. nameChunk = styleName;
  1207. var value = styleValue;
  1208. if (-1 < nameChunk.indexOf("-")) {
  1209. var name = nameChunk;
  1210. (warnedStyleNames.hasOwnProperty(name) &&
  1211. warnedStyleNames[name]) ||
  1212. ((warnedStyleNames[name] = !0),
  1213. console.error(
  1214. "Unsupported style property %s. Did you mean %s?",
  1215. name,
  1216. camelize(name.replace(msPattern$1, "ms-"))
  1217. ));
  1218. } else if (badVendoredStyleNamePattern.test(nameChunk))
  1219. (name = nameChunk),
  1220. (warnedStyleNames.hasOwnProperty(name) &&
  1221. warnedStyleNames[name]) ||
  1222. ((warnedStyleNames[name] = !0),
  1223. console.error(
  1224. "Unsupported vendor-prefixed style property %s. Did you mean %s?",
  1225. name,
  1226. name.charAt(0).toUpperCase() + name.slice(1)
  1227. ));
  1228. else if (badStyleValueWithSemicolonPattern.test(value)) {
  1229. name = nameChunk;
  1230. var value$jscomp$0 = value;
  1231. (warnedStyleValues.hasOwnProperty(value$jscomp$0) &&
  1232. warnedStyleValues[value$jscomp$0]) ||
  1233. ((warnedStyleValues[value$jscomp$0] = !0),
  1234. console.error(
  1235. 'Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.',
  1236. name,
  1237. value$jscomp$0.replace(
  1238. badStyleValueWithSemicolonPattern,
  1239. ""
  1240. )
  1241. ));
  1242. }
  1243. "number" === typeof value &&
  1244. (isNaN(value)
  1245. ? warnedForNaNValue ||
  1246. ((warnedForNaNValue = !0),
  1247. console.error(
  1248. "`NaN` is an invalid value for the `%s` css style property.",
  1249. nameChunk
  1250. ))
  1251. : isFinite(value) ||
  1252. warnedForInfinityValue ||
  1253. ((warnedForInfinityValue = !0),
  1254. console.error(
  1255. "`Infinity` is an invalid value for the `%s` css style property.",
  1256. nameChunk
  1257. )));
  1258. nameChunk = styleName;
  1259. value = styleNameCache.get(nameChunk);
  1260. void 0 !== value
  1261. ? (nameChunk = value)
  1262. : ((value = stringToPrecomputedChunk(
  1263. escapeTextForBrowser(
  1264. nameChunk
  1265. .replace(uppercasePattern, "-$1")
  1266. .toLowerCase()
  1267. .replace(msPattern, "-ms-")
  1268. )
  1269. )),
  1270. styleNameCache.set(nameChunk, value),
  1271. (nameChunk = value));
  1272. "number" === typeof styleValue
  1273. ? (styleValue =
  1274. 0 === styleValue || unitlessNumbers.has(styleName)
  1275. ? stringToChunk("" + styleValue)
  1276. : stringToChunk(styleValue + "px"))
  1277. : (checkCSSPropertyStringCoercion(styleValue, styleName),
  1278. (styleValue = stringToChunk(
  1279. escapeTextForBrowser(("" + styleValue).trim())
  1280. )));
  1281. }
  1282. isFirst
  1283. ? ((isFirst = !1),
  1284. target.push(
  1285. styleAttributeStart,
  1286. nameChunk,
  1287. styleAssign,
  1288. styleValue
  1289. ))
  1290. : target.push(styleSeparator, nameChunk, styleAssign, styleValue);
  1291. }
  1292. }
  1293. isFirst || target.push(attributeEnd);
  1294. }
  1295. function pushBooleanAttribute(target, name, value) {
  1296. value &&
  1297. "function" !== typeof value &&
  1298. "symbol" !== typeof value &&
  1299. target.push(
  1300. attributeSeparator,
  1301. stringToChunk(name),
  1302. attributeEmptyString
  1303. );
  1304. }
  1305. function pushStringAttribute(target, name, value) {
  1306. "function" !== typeof value &&
  1307. "symbol" !== typeof value &&
  1308. "boolean" !== typeof value &&
  1309. target.push(
  1310. attributeSeparator,
  1311. stringToChunk(name),
  1312. attributeAssign,
  1313. stringToChunk(escapeTextForBrowser(value)),
  1314. attributeEnd
  1315. );
  1316. }
  1317. function pushAdditionalFormField(value, key) {
  1318. this.push(startHiddenInputChunk);
  1319. validateAdditionalFormField(value);
  1320. pushStringAttribute(this, "name", key);
  1321. pushStringAttribute(this, "value", value);
  1322. this.push(endOfStartTagSelfClosing);
  1323. }
  1324. function validateAdditionalFormField(value) {
  1325. if ("string" !== typeof value)
  1326. throw Error(
  1327. "File/Blob fields are not yet supported in progressive forms. Will fallback to client hydration."
  1328. );
  1329. }
  1330. function getCustomFormFields(resumableState, formAction) {
  1331. if ("function" === typeof formAction.$$FORM_ACTION) {
  1332. var id = resumableState.nextFormID++;
  1333. resumableState = resumableState.idPrefix + id;
  1334. try {
  1335. var customFields = formAction.$$FORM_ACTION(resumableState);
  1336. if (customFields) {
  1337. var formData = customFields.data;
  1338. null != formData && formData.forEach(validateAdditionalFormField);
  1339. }
  1340. return customFields;
  1341. } catch (x) {
  1342. if (
  1343. "object" === typeof x &&
  1344. null !== x &&
  1345. "function" === typeof x.then
  1346. )
  1347. throw x;
  1348. console.error(
  1349. "Failed to serialize an action for progressive enhancement:\n%s",
  1350. x
  1351. );
  1352. }
  1353. }
  1354. return null;
  1355. }
  1356. function pushFormActionAttribute(
  1357. target,
  1358. resumableState,
  1359. renderState,
  1360. formAction,
  1361. formEncType,
  1362. formMethod,
  1363. formTarget,
  1364. name
  1365. ) {
  1366. var formData = null;
  1367. if ("function" === typeof formAction) {
  1368. null === name ||
  1369. didWarnFormActionName ||
  1370. ((didWarnFormActionName = !0),
  1371. console.error(
  1372. 'Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.'
  1373. ));
  1374. (null === formEncType && null === formMethod) ||
  1375. didWarnFormActionMethod ||
  1376. ((didWarnFormActionMethod = !0),
  1377. console.error(
  1378. "Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden."
  1379. ));
  1380. null === formTarget ||
  1381. didWarnFormActionTarget ||
  1382. ((didWarnFormActionTarget = !0),
  1383. console.error(
  1384. "Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."
  1385. ));
  1386. var customFields = getCustomFormFields(resumableState, formAction);
  1387. null !== customFields
  1388. ? ((name = customFields.name),
  1389. (formAction = customFields.action || ""),
  1390. (formEncType = customFields.encType),
  1391. (formMethod = customFields.method),
  1392. (formTarget = customFields.target),
  1393. (formData = customFields.data))
  1394. : (target.push(
  1395. attributeSeparator,
  1396. stringToChunk("formAction"),
  1397. attributeAssign,
  1398. actionJavaScriptURL,
  1399. attributeEnd
  1400. ),
  1401. (formTarget = formMethod = formEncType = formAction = name = null),
  1402. injectFormReplayingRuntime(resumableState, renderState));
  1403. }
  1404. null != name && pushAttribute(target, "name", name);
  1405. null != formAction && pushAttribute(target, "formAction", formAction);
  1406. null != formEncType && pushAttribute(target, "formEncType", formEncType);
  1407. null != formMethod && pushAttribute(target, "formMethod", formMethod);
  1408. null != formTarget && pushAttribute(target, "formTarget", formTarget);
  1409. return formData;
  1410. }
  1411. function pushAttribute(target, name, value) {
  1412. switch (name) {
  1413. case "className":
  1414. pushStringAttribute(target, "class", value);
  1415. break;
  1416. case "tabIndex":
  1417. pushStringAttribute(target, "tabindex", value);
  1418. break;
  1419. case "dir":
  1420. case "role":
  1421. case "viewBox":
  1422. case "width":
  1423. case "height":
  1424. pushStringAttribute(target, name, value);
  1425. break;
  1426. case "style":
  1427. pushStyleAttribute(target, value);
  1428. break;
  1429. case "src":
  1430. case "href":
  1431. if ("" === value) {
  1432. "src" === name
  1433. ? console.error(
  1434. 'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
  1435. name,
  1436. name
  1437. )
  1438. : console.error(
  1439. 'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
  1440. name,
  1441. name
  1442. );
  1443. break;
  1444. }
  1445. case "action":
  1446. case "formAction":
  1447. if (
  1448. null == value ||
  1449. "function" === typeof value ||
  1450. "symbol" === typeof value ||
  1451. "boolean" === typeof value
  1452. )
  1453. break;
  1454. checkAttributeStringCoercion(value, name);
  1455. value = sanitizeURL("" + value);
  1456. target.push(
  1457. attributeSeparator,
  1458. stringToChunk(name),
  1459. attributeAssign,
  1460. stringToChunk(escapeTextForBrowser(value)),
  1461. attributeEnd
  1462. );
  1463. break;
  1464. case "defaultValue":
  1465. case "defaultChecked":
  1466. case "innerHTML":
  1467. case "suppressContentEditableWarning":
  1468. case "suppressHydrationWarning":
  1469. case "ref":
  1470. break;
  1471. case "autoFocus":
  1472. case "multiple":
  1473. case "muted":
  1474. pushBooleanAttribute(target, name.toLowerCase(), value);
  1475. break;
  1476. case "xlinkHref":
  1477. if (
  1478. "function" === typeof value ||
  1479. "symbol" === typeof value ||
  1480. "boolean" === typeof value
  1481. )
  1482. break;
  1483. checkAttributeStringCoercion(value, name);
  1484. value = sanitizeURL("" + value);
  1485. target.push(
  1486. attributeSeparator,
  1487. stringToChunk("xlink:href"),
  1488. attributeAssign,
  1489. stringToChunk(escapeTextForBrowser(value)),
  1490. attributeEnd
  1491. );
  1492. break;
  1493. case "contentEditable":
  1494. case "spellCheck":
  1495. case "draggable":
  1496. case "value":
  1497. case "autoReverse":
  1498. case "externalResourcesRequired":
  1499. case "focusable":
  1500. case "preserveAlpha":
  1501. "function" !== typeof value &&
  1502. "symbol" !== typeof value &&
  1503. target.push(
  1504. attributeSeparator,
  1505. stringToChunk(name),
  1506. attributeAssign,
  1507. stringToChunk(escapeTextForBrowser(value)),
  1508. attributeEnd
  1509. );
  1510. break;
  1511. case "inert":
  1512. "" !== value ||
  1513. didWarnForNewBooleanPropsWithEmptyValue[name] ||
  1514. ((didWarnForNewBooleanPropsWithEmptyValue[name] = !0),
  1515. console.error(
  1516. "Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",
  1517. name
  1518. ));
  1519. case "allowFullScreen":
  1520. case "async":
  1521. case "autoPlay":
  1522. case "controls":
  1523. case "default":
  1524. case "defer":
  1525. case "disabled":
  1526. case "disablePictureInPicture":
  1527. case "disableRemotePlayback":
  1528. case "formNoValidate":
  1529. case "hidden":
  1530. case "loop":
  1531. case "noModule":
  1532. case "noValidate":
  1533. case "open":
  1534. case "playsInline":
  1535. case "readOnly":
  1536. case "required":
  1537. case "reversed":
  1538. case "scoped":
  1539. case "seamless":
  1540. case "itemScope":
  1541. value &&
  1542. "function" !== typeof value &&
  1543. "symbol" !== typeof value &&
  1544. target.push(
  1545. attributeSeparator,
  1546. stringToChunk(name),
  1547. attributeEmptyString
  1548. );
  1549. break;
  1550. case "capture":
  1551. case "download":
  1552. !0 === value
  1553. ? target.push(
  1554. attributeSeparator,
  1555. stringToChunk(name),
  1556. attributeEmptyString
  1557. )
  1558. : !1 !== value &&
  1559. "function" !== typeof value &&
  1560. "symbol" !== typeof value &&
  1561. target.push(
  1562. attributeSeparator,
  1563. stringToChunk(name),
  1564. attributeAssign,
  1565. stringToChunk(escapeTextForBrowser(value)),
  1566. attributeEnd
  1567. );
  1568. break;
  1569. case "cols":
  1570. case "rows":
  1571. case "size":
  1572. case "span":
  1573. "function" !== typeof value &&
  1574. "symbol" !== typeof value &&
  1575. !isNaN(value) &&
  1576. 1 <= value &&
  1577. target.push(
  1578. attributeSeparator,
  1579. stringToChunk(name),
  1580. attributeAssign,
  1581. stringToChunk(escapeTextForBrowser(value)),
  1582. attributeEnd
  1583. );
  1584. break;
  1585. case "rowSpan":
  1586. case "start":
  1587. "function" === typeof value ||
  1588. "symbol" === typeof value ||
  1589. isNaN(value) ||
  1590. target.push(
  1591. attributeSeparator,
  1592. stringToChunk(name),
  1593. attributeAssign,
  1594. stringToChunk(escapeTextForBrowser(value)),
  1595. attributeEnd
  1596. );
  1597. break;
  1598. case "xlinkActuate":
  1599. pushStringAttribute(target, "xlink:actuate", value);
  1600. break;
  1601. case "xlinkArcrole":
  1602. pushStringAttribute(target, "xlink:arcrole", value);
  1603. break;
  1604. case "xlinkRole":
  1605. pushStringAttribute(target, "xlink:role", value);
  1606. break;
  1607. case "xlinkShow":
  1608. pushStringAttribute(target, "xlink:show", value);
  1609. break;
  1610. case "xlinkTitle":
  1611. pushStringAttribute(target, "xlink:title", value);
  1612. break;
  1613. case "xlinkType":
  1614. pushStringAttribute(target, "xlink:type", value);
  1615. break;
  1616. case "xmlBase":
  1617. pushStringAttribute(target, "xml:base", value);
  1618. break;
  1619. case "xmlLang":
  1620. pushStringAttribute(target, "xml:lang", value);
  1621. break;
  1622. case "xmlSpace":
  1623. pushStringAttribute(target, "xml:space", value);
  1624. break;
  1625. default:
  1626. if (
  1627. !(2 < name.length) ||
  1628. ("o" !== name[0] && "O" !== name[0]) ||
  1629. ("n" !== name[1] && "N" !== name[1])
  1630. )
  1631. if (
  1632. ((name = aliases.get(name) || name), isAttributeNameSafe(name))
  1633. ) {
  1634. switch (typeof value) {
  1635. case "function":
  1636. case "symbol":
  1637. return;
  1638. case "boolean":
  1639. var prefix = name.toLowerCase().slice(0, 5);
  1640. if ("data-" !== prefix && "aria-" !== prefix) return;
  1641. }
  1642. target.push(
  1643. attributeSeparator,
  1644. stringToChunk(name),
  1645. attributeAssign,
  1646. stringToChunk(escapeTextForBrowser(value)),
  1647. attributeEnd
  1648. );
  1649. }
  1650. }
  1651. }
  1652. function pushInnerHTML(target, innerHTML, children) {
  1653. if (null != innerHTML) {
  1654. if (null != children)
  1655. throw Error(
  1656. "Can only set one of `children` or `props.dangerouslySetInnerHTML`."
  1657. );
  1658. if ("object" !== typeof innerHTML || !("__html" in innerHTML))
  1659. throw Error(
  1660. "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information."
  1661. );
  1662. innerHTML = innerHTML.__html;
  1663. null !== innerHTML &&
  1664. void 0 !== innerHTML &&
  1665. (checkHtmlStringCoercion(innerHTML),
  1666. target.push(stringToChunk("" + innerHTML)));
  1667. }
  1668. }
  1669. function checkSelectProp(props, propName) {
  1670. var value = props[propName];
  1671. null != value &&
  1672. ((value = isArrayImpl(value)),
  1673. props.multiple && !value
  1674. ? console.error(
  1675. "The `%s` prop supplied to <select> must be an array if `multiple` is true.",
  1676. propName
  1677. )
  1678. : !props.multiple &&
  1679. value &&
  1680. console.error(
  1681. "The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",
  1682. propName
  1683. ));
  1684. }
  1685. function flattenOptionChildren(children) {
  1686. var content = "";
  1687. React.Children.forEach(children, function (child) {
  1688. null != child &&
  1689. ((content += child),
  1690. didWarnInvalidOptionChildren ||
  1691. "string" === typeof child ||
  1692. "number" === typeof child ||
  1693. "bigint" === typeof child ||
  1694. ((didWarnInvalidOptionChildren = !0),
  1695. console.error(
  1696. "Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."
  1697. )));
  1698. });
  1699. return content;
  1700. }
  1701. function injectFormReplayingRuntime(resumableState, renderState) {
  1702. if ((resumableState.instructions & 16) === NothingSent) {
  1703. resumableState.instructions |= 16;
  1704. var preamble = renderState.preamble,
  1705. bootstrapChunks = renderState.bootstrapChunks;
  1706. (preamble.htmlChunks || preamble.headChunks) &&
  1707. 0 === bootstrapChunks.length
  1708. ? (bootstrapChunks.push(renderState.startInlineScript),
  1709. pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
  1710. bootstrapChunks.push(
  1711. endOfStartTag,
  1712. formReplayingRuntimeScript,
  1713. endInlineScript
  1714. ))
  1715. : bootstrapChunks.unshift(
  1716. renderState.startInlineScript,
  1717. endOfStartTag,
  1718. formReplayingRuntimeScript,
  1719. endInlineScript
  1720. );
  1721. }
  1722. }
  1723. function pushLinkImpl(target, props) {
  1724. target.push(startChunkForTag("link"));
  1725. for (var propKey in props)
  1726. if (hasOwnProperty.call(props, propKey)) {
  1727. var propValue = props[propKey];
  1728. if (null != propValue)
  1729. switch (propKey) {
  1730. case "children":
  1731. case "dangerouslySetInnerHTML":
  1732. throw Error(
  1733. "link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`."
  1734. );
  1735. default:
  1736. pushAttribute(target, propKey, propValue);
  1737. }
  1738. }
  1739. target.push(endOfStartTagSelfClosing);
  1740. return null;
  1741. }
  1742. function escapeStyleTextContent(styleText) {
  1743. checkHtmlStringCoercion(styleText);
  1744. return ("" + styleText).replace(styleRegex, styleReplacer);
  1745. }
  1746. function pushSelfClosing(target, props, tag) {
  1747. target.push(startChunkForTag(tag));
  1748. for (var propKey in props)
  1749. if (hasOwnProperty.call(props, propKey)) {
  1750. var propValue = props[propKey];
  1751. if (null != propValue)
  1752. switch (propKey) {
  1753. case "children":
  1754. case "dangerouslySetInnerHTML":
  1755. throw Error(
  1756. tag +
  1757. " is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`."
  1758. );
  1759. default:
  1760. pushAttribute(target, propKey, propValue);
  1761. }
  1762. }
  1763. target.push(endOfStartTagSelfClosing);
  1764. return null;
  1765. }
  1766. function pushTitleImpl(target, props) {
  1767. target.push(startChunkForTag("title"));
  1768. var children = null,
  1769. innerHTML = null,
  1770. propKey;
  1771. for (propKey in props)
  1772. if (hasOwnProperty.call(props, propKey)) {
  1773. var propValue = props[propKey];
  1774. if (null != propValue)
  1775. switch (propKey) {
  1776. case "children":
  1777. children = propValue;
  1778. break;
  1779. case "dangerouslySetInnerHTML":
  1780. innerHTML = propValue;
  1781. break;
  1782. default:
  1783. pushAttribute(target, propKey, propValue);
  1784. }
  1785. }
  1786. target.push(endOfStartTag);
  1787. props = Array.isArray(children)
  1788. ? 2 > children.length
  1789. ? children[0]
  1790. : null
  1791. : children;
  1792. "function" !== typeof props &&
  1793. "symbol" !== typeof props &&
  1794. null !== props &&
  1795. void 0 !== props &&
  1796. target.push(stringToChunk(escapeTextForBrowser("" + props)));
  1797. pushInnerHTML(target, innerHTML, children);
  1798. target.push(endChunkForTag("title"));
  1799. return null;
  1800. }
  1801. function pushScriptImpl(target, props) {
  1802. target.push(startChunkForTag("script"));
  1803. var children = null,
  1804. innerHTML = null,
  1805. propKey;
  1806. for (propKey in props)
  1807. if (hasOwnProperty.call(props, propKey)) {
  1808. var propValue = props[propKey];
  1809. if (null != propValue)
  1810. switch (propKey) {
  1811. case "children":
  1812. children = propValue;
  1813. break;
  1814. case "dangerouslySetInnerHTML":
  1815. innerHTML = propValue;
  1816. break;
  1817. default:
  1818. pushAttribute(target, propKey, propValue);
  1819. }
  1820. }
  1821. target.push(endOfStartTag);
  1822. null != children &&
  1823. "string" !== typeof children &&
  1824. ((props =
  1825. "number" === typeof children
  1826. ? "a number for children"
  1827. : Array.isArray(children)
  1828. ? "an array for children"
  1829. : "something unexpected for children"),
  1830. console.error(
  1831. "A script element was rendered with %s. If script element has children it must be a single string. Consider using dangerouslySetInnerHTML or passing a plain string as children.",
  1832. props
  1833. ));
  1834. pushInnerHTML(target, innerHTML, children);
  1835. "string" === typeof children &&
  1836. target.push(stringToChunk(escapeEntireInlineScriptContent(children)));
  1837. target.push(endChunkForTag("script"));
  1838. return null;
  1839. }
  1840. function pushStartSingletonElement(target, props, tag) {
  1841. target.push(startChunkForTag(tag));
  1842. var innerHTML = (tag = null),
  1843. propKey;
  1844. for (propKey in props)
  1845. if (hasOwnProperty.call(props, propKey)) {
  1846. var propValue = props[propKey];
  1847. if (null != propValue)
  1848. switch (propKey) {
  1849. case "children":
  1850. tag = propValue;
  1851. break;
  1852. case "dangerouslySetInnerHTML":
  1853. innerHTML = propValue;
  1854. break;
  1855. default:
  1856. pushAttribute(target, propKey, propValue);
  1857. }
  1858. }
  1859. target.push(endOfStartTag);
  1860. pushInnerHTML(target, innerHTML, tag);
  1861. return tag;
  1862. }
  1863. function pushStartGenericElement(target, props, tag) {
  1864. target.push(startChunkForTag(tag));
  1865. var innerHTML = (tag = null),
  1866. propKey;
  1867. for (propKey in props)
  1868. if (hasOwnProperty.call(props, propKey)) {
  1869. var propValue = props[propKey];
  1870. if (null != propValue)
  1871. switch (propKey) {
  1872. case "children":
  1873. tag = propValue;
  1874. break;
  1875. case "dangerouslySetInnerHTML":
  1876. innerHTML = propValue;
  1877. break;
  1878. default:
  1879. pushAttribute(target, propKey, propValue);
  1880. }
  1881. }
  1882. target.push(endOfStartTag);
  1883. pushInnerHTML(target, innerHTML, tag);
  1884. return "string" === typeof tag
  1885. ? (target.push(stringToChunk(escapeTextForBrowser(tag))), null)
  1886. : tag;
  1887. }
  1888. function startChunkForTag(tag) {
  1889. var tagStartChunk = validatedTagCache.get(tag);
  1890. if (void 0 === tagStartChunk) {
  1891. if (!VALID_TAG_REGEX.test(tag)) throw Error("Invalid tag: " + tag);
  1892. tagStartChunk = stringToPrecomputedChunk("<" + tag);
  1893. validatedTagCache.set(tag, tagStartChunk);
  1894. }
  1895. return tagStartChunk;
  1896. }
  1897. function pushStartInstance(
  1898. target$jscomp$0,
  1899. type,
  1900. props,
  1901. resumableState,
  1902. renderState,
  1903. preambleState,
  1904. hoistableState,
  1905. formatContext,
  1906. textEmbedded
  1907. ) {
  1908. validateProperties$2(type, props);
  1909. ("input" !== type && "textarea" !== type && "select" !== type) ||
  1910. null == props ||
  1911. null !== props.value ||
  1912. didWarnValueNull ||
  1913. ((didWarnValueNull = !0),
  1914. "select" === type && props.multiple
  1915. ? console.error(
  1916. "`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",
  1917. type
  1918. )
  1919. : console.error(
  1920. "`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",
  1921. type
  1922. ));
  1923. b: if (-1 === type.indexOf("-")) var JSCompiler_inline_result = !1;
  1924. else
  1925. switch (type) {
  1926. case "annotation-xml":
  1927. case "color-profile":
  1928. case "font-face":
  1929. case "font-face-src":
  1930. case "font-face-uri":
  1931. case "font-face-format":
  1932. case "font-face-name":
  1933. case "missing-glyph":
  1934. JSCompiler_inline_result = !1;
  1935. break b;
  1936. default:
  1937. JSCompiler_inline_result = !0;
  1938. }
  1939. JSCompiler_inline_result ||
  1940. "string" === typeof props.is ||
  1941. warnUnknownProperties(type, props, null);
  1942. !props.suppressContentEditableWarning &&
  1943. props.contentEditable &&
  1944. null != props.children &&
  1945. console.error(
  1946. "A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."
  1947. );
  1948. formatContext.insertionMode !== SVG_MODE &&
  1949. formatContext.insertionMode !== MATHML_MODE &&
  1950. -1 === type.indexOf("-") &&
  1951. type.toLowerCase() !== type &&
  1952. console.error(
  1953. "<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",
  1954. type
  1955. );
  1956. switch (type) {
  1957. case "div":
  1958. case "span":
  1959. case "svg":
  1960. case "path":
  1961. break;
  1962. case "a":
  1963. target$jscomp$0.push(startChunkForTag("a"));
  1964. var children = null,
  1965. innerHTML = null,
  1966. propKey;
  1967. for (propKey in props)
  1968. if (hasOwnProperty.call(props, propKey)) {
  1969. var propValue = props[propKey];
  1970. if (null != propValue)
  1971. switch (propKey) {
  1972. case "children":
  1973. children = propValue;
  1974. break;
  1975. case "dangerouslySetInnerHTML":
  1976. innerHTML = propValue;
  1977. break;
  1978. case "href":
  1979. "" === propValue
  1980. ? pushStringAttribute(target$jscomp$0, "href", "")
  1981. : pushAttribute(target$jscomp$0, propKey, propValue);
  1982. break;
  1983. default:
  1984. pushAttribute(target$jscomp$0, propKey, propValue);
  1985. }
  1986. }
  1987. target$jscomp$0.push(endOfStartTag);
  1988. pushInnerHTML(target$jscomp$0, innerHTML, children);
  1989. if ("string" === typeof children) {
  1990. target$jscomp$0.push(stringToChunk(escapeTextForBrowser(children)));
  1991. var JSCompiler_inline_result$jscomp$0 = null;
  1992. } else JSCompiler_inline_result$jscomp$0 = children;
  1993. return JSCompiler_inline_result$jscomp$0;
  1994. case "g":
  1995. case "p":
  1996. case "li":
  1997. break;
  1998. case "select":
  1999. checkControlledValueProps("select", props);
  2000. checkSelectProp(props, "value");
  2001. checkSelectProp(props, "defaultValue");
  2002. void 0 === props.value ||
  2003. void 0 === props.defaultValue ||
  2004. didWarnDefaultSelectValue ||
  2005. (console.error(
  2006. "Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"
  2007. ),
  2008. (didWarnDefaultSelectValue = !0));
  2009. target$jscomp$0.push(startChunkForTag("select"));
  2010. var children$jscomp$0 = null,
  2011. innerHTML$jscomp$0 = null,
  2012. propKey$jscomp$0;
  2013. for (propKey$jscomp$0 in props)
  2014. if (hasOwnProperty.call(props, propKey$jscomp$0)) {
  2015. var propValue$jscomp$0 = props[propKey$jscomp$0];
  2016. if (null != propValue$jscomp$0)
  2017. switch (propKey$jscomp$0) {
  2018. case "children":
  2019. children$jscomp$0 = propValue$jscomp$0;
  2020. break;
  2021. case "dangerouslySetInnerHTML":
  2022. innerHTML$jscomp$0 = propValue$jscomp$0;
  2023. break;
  2024. case "defaultValue":
  2025. case "value":
  2026. break;
  2027. default:
  2028. pushAttribute(
  2029. target$jscomp$0,
  2030. propKey$jscomp$0,
  2031. propValue$jscomp$0
  2032. );
  2033. }
  2034. }
  2035. target$jscomp$0.push(endOfStartTag);
  2036. pushInnerHTML(target$jscomp$0, innerHTML$jscomp$0, children$jscomp$0);
  2037. return children$jscomp$0;
  2038. case "option":
  2039. var selectedValue = formatContext.selectedValue;
  2040. target$jscomp$0.push(startChunkForTag("option"));
  2041. var children$jscomp$1 = null,
  2042. value = null,
  2043. selected = null,
  2044. innerHTML$jscomp$1 = null,
  2045. propKey$jscomp$1;
  2046. for (propKey$jscomp$1 in props)
  2047. if (hasOwnProperty.call(props, propKey$jscomp$1)) {
  2048. var propValue$jscomp$1 = props[propKey$jscomp$1];
  2049. if (null != propValue$jscomp$1)
  2050. switch (propKey$jscomp$1) {
  2051. case "children":
  2052. children$jscomp$1 = propValue$jscomp$1;
  2053. break;
  2054. case "selected":
  2055. selected = propValue$jscomp$1;
  2056. didWarnSelectedSetOnOption ||
  2057. (console.error(
  2058. "Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."
  2059. ),
  2060. (didWarnSelectedSetOnOption = !0));
  2061. break;
  2062. case "dangerouslySetInnerHTML":
  2063. innerHTML$jscomp$1 = propValue$jscomp$1;
  2064. break;
  2065. case "value":
  2066. value = propValue$jscomp$1;
  2067. default:
  2068. pushAttribute(
  2069. target$jscomp$0,
  2070. propKey$jscomp$1,
  2071. propValue$jscomp$1
  2072. );
  2073. }
  2074. }
  2075. if (null != selectedValue) {
  2076. if (null !== value) {
  2077. checkAttributeStringCoercion(value, "value");
  2078. var stringValue = "" + value;
  2079. } else
  2080. null === innerHTML$jscomp$1 ||
  2081. didWarnInvalidOptionInnerHTML ||
  2082. ((didWarnInvalidOptionInnerHTML = !0),
  2083. console.error(
  2084. "Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."
  2085. )),
  2086. (stringValue = flattenOptionChildren(children$jscomp$1));
  2087. if (isArrayImpl(selectedValue))
  2088. for (var i = 0; i < selectedValue.length; i++) {
  2089. if (
  2090. (checkAttributeStringCoercion(selectedValue[i], "value"),
  2091. "" + selectedValue[i] === stringValue)
  2092. ) {
  2093. target$jscomp$0.push(selectedMarkerAttribute);
  2094. break;
  2095. }
  2096. }
  2097. else
  2098. checkAttributeStringCoercion(selectedValue, "select.value"),
  2099. "" + selectedValue === stringValue &&
  2100. target$jscomp$0.push(selectedMarkerAttribute);
  2101. } else selected && target$jscomp$0.push(selectedMarkerAttribute);
  2102. target$jscomp$0.push(endOfStartTag);
  2103. pushInnerHTML(target$jscomp$0, innerHTML$jscomp$1, children$jscomp$1);
  2104. return children$jscomp$1;
  2105. case "textarea":
  2106. checkControlledValueProps("textarea", props);
  2107. void 0 === props.value ||
  2108. void 0 === props.defaultValue ||
  2109. didWarnDefaultTextareaValue ||
  2110. (console.error(
  2111. "Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components"
  2112. ),
  2113. (didWarnDefaultTextareaValue = !0));
  2114. target$jscomp$0.push(startChunkForTag("textarea"));
  2115. var value$jscomp$0 = null,
  2116. defaultValue = null,
  2117. children$jscomp$2 = null,
  2118. propKey$jscomp$2;
  2119. for (propKey$jscomp$2 in props)
  2120. if (hasOwnProperty.call(props, propKey$jscomp$2)) {
  2121. var propValue$jscomp$2 = props[propKey$jscomp$2];
  2122. if (null != propValue$jscomp$2)
  2123. switch (propKey$jscomp$2) {
  2124. case "children":
  2125. children$jscomp$2 = propValue$jscomp$2;
  2126. break;
  2127. case "value":
  2128. value$jscomp$0 = propValue$jscomp$2;
  2129. break;
  2130. case "defaultValue":
  2131. defaultValue = propValue$jscomp$2;
  2132. break;
  2133. case "dangerouslySetInnerHTML":
  2134. throw Error(
  2135. "`dangerouslySetInnerHTML` does not make sense on <textarea>."
  2136. );
  2137. default:
  2138. pushAttribute(
  2139. target$jscomp$0,
  2140. propKey$jscomp$2,
  2141. propValue$jscomp$2
  2142. );
  2143. }
  2144. }
  2145. null === value$jscomp$0 &&
  2146. null !== defaultValue &&
  2147. (value$jscomp$0 = defaultValue);
  2148. target$jscomp$0.push(endOfStartTag);
  2149. if (null != children$jscomp$2) {
  2150. console.error(
  2151. "Use the `defaultValue` or `value` props instead of setting children on <textarea>."
  2152. );
  2153. if (null != value$jscomp$0)
  2154. throw Error(
  2155. "If you supply `defaultValue` on a <textarea>, do not pass children."
  2156. );
  2157. if (isArrayImpl(children$jscomp$2)) {
  2158. if (1 < children$jscomp$2.length)
  2159. throw Error("<textarea> can only have at most one child.");
  2160. checkHtmlStringCoercion(children$jscomp$2[0]);
  2161. value$jscomp$0 = "" + children$jscomp$2[0];
  2162. }
  2163. checkHtmlStringCoercion(children$jscomp$2);
  2164. value$jscomp$0 = "" + children$jscomp$2;
  2165. }
  2166. "string" === typeof value$jscomp$0 &&
  2167. "\n" === value$jscomp$0[0] &&
  2168. target$jscomp$0.push(leadingNewline);
  2169. null !== value$jscomp$0 &&
  2170. (checkAttributeStringCoercion(value$jscomp$0, "value"),
  2171. target$jscomp$0.push(
  2172. stringToChunk(escapeTextForBrowser("" + value$jscomp$0))
  2173. ));
  2174. return null;
  2175. case "input":
  2176. checkControlledValueProps("input", props);
  2177. target$jscomp$0.push(startChunkForTag("input"));
  2178. var name = null,
  2179. formAction = null,
  2180. formEncType = null,
  2181. formMethod = null,
  2182. formTarget = null,
  2183. value$jscomp$1 = null,
  2184. defaultValue$jscomp$0 = null,
  2185. checked = null,
  2186. defaultChecked = null,
  2187. propKey$jscomp$3;
  2188. for (propKey$jscomp$3 in props)
  2189. if (hasOwnProperty.call(props, propKey$jscomp$3)) {
  2190. var propValue$jscomp$3 = props[propKey$jscomp$3];
  2191. if (null != propValue$jscomp$3)
  2192. switch (propKey$jscomp$3) {
  2193. case "children":
  2194. case "dangerouslySetInnerHTML":
  2195. throw Error(
  2196. "input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`."
  2197. );
  2198. case "name":
  2199. name = propValue$jscomp$3;
  2200. break;
  2201. case "formAction":
  2202. formAction = propValue$jscomp$3;
  2203. break;
  2204. case "formEncType":
  2205. formEncType = propValue$jscomp$3;
  2206. break;
  2207. case "formMethod":
  2208. formMethod = propValue$jscomp$3;
  2209. break;
  2210. case "formTarget":
  2211. formTarget = propValue$jscomp$3;
  2212. break;
  2213. case "defaultChecked":
  2214. defaultChecked = propValue$jscomp$3;
  2215. break;
  2216. case "defaultValue":
  2217. defaultValue$jscomp$0 = propValue$jscomp$3;
  2218. break;
  2219. case "checked":
  2220. checked = propValue$jscomp$3;
  2221. break;
  2222. case "value":
  2223. value$jscomp$1 = propValue$jscomp$3;
  2224. break;
  2225. default:
  2226. pushAttribute(
  2227. target$jscomp$0,
  2228. propKey$jscomp$3,
  2229. propValue$jscomp$3
  2230. );
  2231. }
  2232. }
  2233. null === formAction ||
  2234. "image" === props.type ||
  2235. "submit" === props.type ||
  2236. didWarnFormActionType ||
  2237. ((didWarnFormActionType = !0),
  2238. console.error(
  2239. 'An input can only specify a formAction along with type="submit" or type="image".'
  2240. ));
  2241. var formData = pushFormActionAttribute(
  2242. target$jscomp$0,
  2243. resumableState,
  2244. renderState,
  2245. formAction,
  2246. formEncType,
  2247. formMethod,
  2248. formTarget,
  2249. name
  2250. );
  2251. null === checked ||
  2252. null === defaultChecked ||
  2253. didWarnDefaultChecked ||
  2254. (console.error(
  2255. "%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",
  2256. "A component",
  2257. props.type
  2258. ),
  2259. (didWarnDefaultChecked = !0));
  2260. null === value$jscomp$1 ||
  2261. null === defaultValue$jscomp$0 ||
  2262. didWarnDefaultInputValue ||
  2263. (console.error(
  2264. "%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",
  2265. "A component",
  2266. props.type
  2267. ),
  2268. (didWarnDefaultInputValue = !0));
  2269. null !== checked
  2270. ? pushBooleanAttribute(target$jscomp$0, "checked", checked)
  2271. : null !== defaultChecked &&
  2272. pushBooleanAttribute(target$jscomp$0, "checked", defaultChecked);
  2273. null !== value$jscomp$1
  2274. ? pushAttribute(target$jscomp$0, "value", value$jscomp$1)
  2275. : null !== defaultValue$jscomp$0 &&
  2276. pushAttribute(target$jscomp$0, "value", defaultValue$jscomp$0);
  2277. target$jscomp$0.push(endOfStartTagSelfClosing);
  2278. null != formData &&
  2279. formData.forEach(pushAdditionalFormField, target$jscomp$0);
  2280. return null;
  2281. case "button":
  2282. target$jscomp$0.push(startChunkForTag("button"));
  2283. var children$jscomp$3 = null,
  2284. innerHTML$jscomp$2 = null,
  2285. name$jscomp$0 = null,
  2286. formAction$jscomp$0 = null,
  2287. formEncType$jscomp$0 = null,
  2288. formMethod$jscomp$0 = null,
  2289. formTarget$jscomp$0 = null,
  2290. propKey$jscomp$4;
  2291. for (propKey$jscomp$4 in props)
  2292. if (hasOwnProperty.call(props, propKey$jscomp$4)) {
  2293. var propValue$jscomp$4 = props[propKey$jscomp$4];
  2294. if (null != propValue$jscomp$4)
  2295. switch (propKey$jscomp$4) {
  2296. case "children":
  2297. children$jscomp$3 = propValue$jscomp$4;
  2298. break;
  2299. case "dangerouslySetInnerHTML":
  2300. innerHTML$jscomp$2 = propValue$jscomp$4;
  2301. break;
  2302. case "name":
  2303. name$jscomp$0 = propValue$jscomp$4;
  2304. break;
  2305. case "formAction":
  2306. formAction$jscomp$0 = propValue$jscomp$4;
  2307. break;
  2308. case "formEncType":
  2309. formEncType$jscomp$0 = propValue$jscomp$4;
  2310. break;
  2311. case "formMethod":
  2312. formMethod$jscomp$0 = propValue$jscomp$4;
  2313. break;
  2314. case "formTarget":
  2315. formTarget$jscomp$0 = propValue$jscomp$4;
  2316. break;
  2317. default:
  2318. pushAttribute(
  2319. target$jscomp$0,
  2320. propKey$jscomp$4,
  2321. propValue$jscomp$4
  2322. );
  2323. }
  2324. }
  2325. null === formAction$jscomp$0 ||
  2326. null == props.type ||
  2327. "submit" === props.type ||
  2328. didWarnFormActionType ||
  2329. ((didWarnFormActionType = !0),
  2330. console.error(
  2331. 'A button can only specify a formAction along with type="submit" or no type.'
  2332. ));
  2333. var formData$jscomp$0 = pushFormActionAttribute(
  2334. target$jscomp$0,
  2335. resumableState,
  2336. renderState,
  2337. formAction$jscomp$0,
  2338. formEncType$jscomp$0,
  2339. formMethod$jscomp$0,
  2340. formTarget$jscomp$0,
  2341. name$jscomp$0
  2342. );
  2343. target$jscomp$0.push(endOfStartTag);
  2344. null != formData$jscomp$0 &&
  2345. formData$jscomp$0.forEach(pushAdditionalFormField, target$jscomp$0);
  2346. pushInnerHTML(target$jscomp$0, innerHTML$jscomp$2, children$jscomp$3);
  2347. if ("string" === typeof children$jscomp$3) {
  2348. target$jscomp$0.push(
  2349. stringToChunk(escapeTextForBrowser(children$jscomp$3))
  2350. );
  2351. var JSCompiler_inline_result$jscomp$1 = null;
  2352. } else JSCompiler_inline_result$jscomp$1 = children$jscomp$3;
  2353. return JSCompiler_inline_result$jscomp$1;
  2354. case "form":
  2355. target$jscomp$0.push(startChunkForTag("form"));
  2356. var children$jscomp$4 = null,
  2357. innerHTML$jscomp$3 = null,
  2358. formAction$jscomp$1 = null,
  2359. formEncType$jscomp$1 = null,
  2360. formMethod$jscomp$1 = null,
  2361. formTarget$jscomp$1 = null,
  2362. propKey$jscomp$5;
  2363. for (propKey$jscomp$5 in props)
  2364. if (hasOwnProperty.call(props, propKey$jscomp$5)) {
  2365. var propValue$jscomp$5 = props[propKey$jscomp$5];
  2366. if (null != propValue$jscomp$5)
  2367. switch (propKey$jscomp$5) {
  2368. case "children":
  2369. children$jscomp$4 = propValue$jscomp$5;
  2370. break;
  2371. case "dangerouslySetInnerHTML":
  2372. innerHTML$jscomp$3 = propValue$jscomp$5;
  2373. break;
  2374. case "action":
  2375. formAction$jscomp$1 = propValue$jscomp$5;
  2376. break;
  2377. case "encType":
  2378. formEncType$jscomp$1 = propValue$jscomp$5;
  2379. break;
  2380. case "method":
  2381. formMethod$jscomp$1 = propValue$jscomp$5;
  2382. break;
  2383. case "target":
  2384. formTarget$jscomp$1 = propValue$jscomp$5;
  2385. break;
  2386. default:
  2387. pushAttribute(
  2388. target$jscomp$0,
  2389. propKey$jscomp$5,
  2390. propValue$jscomp$5
  2391. );
  2392. }
  2393. }
  2394. var formData$jscomp$1 = null,
  2395. formActionName = null;
  2396. if ("function" === typeof formAction$jscomp$1) {
  2397. (null === formEncType$jscomp$1 && null === formMethod$jscomp$1) ||
  2398. didWarnFormActionMethod ||
  2399. ((didWarnFormActionMethod = !0),
  2400. console.error(
  2401. "Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden."
  2402. ));
  2403. null === formTarget$jscomp$1 ||
  2404. didWarnFormActionTarget ||
  2405. ((didWarnFormActionTarget = !0),
  2406. console.error(
  2407. "Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."
  2408. ));
  2409. var customFields = getCustomFormFields(
  2410. resumableState,
  2411. formAction$jscomp$1
  2412. );
  2413. null !== customFields
  2414. ? ((formAction$jscomp$1 = customFields.action || ""),
  2415. (formEncType$jscomp$1 = customFields.encType),
  2416. (formMethod$jscomp$1 = customFields.method),
  2417. (formTarget$jscomp$1 = customFields.target),
  2418. (formData$jscomp$1 = customFields.data),
  2419. (formActionName = customFields.name))
  2420. : (target$jscomp$0.push(
  2421. attributeSeparator,
  2422. stringToChunk("action"),
  2423. attributeAssign,
  2424. actionJavaScriptURL,
  2425. attributeEnd
  2426. ),
  2427. (formTarget$jscomp$1 =
  2428. formMethod$jscomp$1 =
  2429. formEncType$jscomp$1 =
  2430. formAction$jscomp$1 =
  2431. null),
  2432. injectFormReplayingRuntime(resumableState, renderState));
  2433. }
  2434. null != formAction$jscomp$1 &&
  2435. pushAttribute(target$jscomp$0, "action", formAction$jscomp$1);
  2436. null != formEncType$jscomp$1 &&
  2437. pushAttribute(target$jscomp$0, "encType", formEncType$jscomp$1);
  2438. null != formMethod$jscomp$1 &&
  2439. pushAttribute(target$jscomp$0, "method", formMethod$jscomp$1);
  2440. null != formTarget$jscomp$1 &&
  2441. pushAttribute(target$jscomp$0, "target", formTarget$jscomp$1);
  2442. target$jscomp$0.push(endOfStartTag);
  2443. null !== formActionName &&
  2444. (target$jscomp$0.push(startHiddenInputChunk),
  2445. pushStringAttribute(target$jscomp$0, "name", formActionName),
  2446. target$jscomp$0.push(endOfStartTagSelfClosing),
  2447. null != formData$jscomp$1 &&
  2448. formData$jscomp$1.forEach(
  2449. pushAdditionalFormField,
  2450. target$jscomp$0
  2451. ));
  2452. pushInnerHTML(target$jscomp$0, innerHTML$jscomp$3, children$jscomp$4);
  2453. if ("string" === typeof children$jscomp$4) {
  2454. target$jscomp$0.push(
  2455. stringToChunk(escapeTextForBrowser(children$jscomp$4))
  2456. );
  2457. var JSCompiler_inline_result$jscomp$2 = null;
  2458. } else JSCompiler_inline_result$jscomp$2 = children$jscomp$4;
  2459. return JSCompiler_inline_result$jscomp$2;
  2460. case "menuitem":
  2461. target$jscomp$0.push(startChunkForTag("menuitem"));
  2462. for (var propKey$jscomp$6 in props)
  2463. if (hasOwnProperty.call(props, propKey$jscomp$6)) {
  2464. var propValue$jscomp$6 = props[propKey$jscomp$6];
  2465. if (null != propValue$jscomp$6)
  2466. switch (propKey$jscomp$6) {
  2467. case "children":
  2468. case "dangerouslySetInnerHTML":
  2469. throw Error(
  2470. "menuitems cannot have `children` nor `dangerouslySetInnerHTML`."
  2471. );
  2472. default:
  2473. pushAttribute(
  2474. target$jscomp$0,
  2475. propKey$jscomp$6,
  2476. propValue$jscomp$6
  2477. );
  2478. }
  2479. }
  2480. target$jscomp$0.push(endOfStartTag);
  2481. return null;
  2482. case "object":
  2483. target$jscomp$0.push(startChunkForTag("object"));
  2484. var children$jscomp$5 = null,
  2485. innerHTML$jscomp$4 = null,
  2486. propKey$jscomp$7;
  2487. for (propKey$jscomp$7 in props)
  2488. if (hasOwnProperty.call(props, propKey$jscomp$7)) {
  2489. var propValue$jscomp$7 = props[propKey$jscomp$7];
  2490. if (null != propValue$jscomp$7)
  2491. switch (propKey$jscomp$7) {
  2492. case "children":
  2493. children$jscomp$5 = propValue$jscomp$7;
  2494. break;
  2495. case "dangerouslySetInnerHTML":
  2496. innerHTML$jscomp$4 = propValue$jscomp$7;
  2497. break;
  2498. case "data":
  2499. checkAttributeStringCoercion(propValue$jscomp$7, "data");
  2500. var sanitizedValue = sanitizeURL("" + propValue$jscomp$7);
  2501. if ("" === sanitizedValue) {
  2502. console.error(
  2503. 'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
  2504. propKey$jscomp$7,
  2505. propKey$jscomp$7
  2506. );
  2507. break;
  2508. }
  2509. target$jscomp$0.push(
  2510. attributeSeparator,
  2511. stringToChunk("data"),
  2512. attributeAssign,
  2513. stringToChunk(escapeTextForBrowser(sanitizedValue)),
  2514. attributeEnd
  2515. );
  2516. break;
  2517. default:
  2518. pushAttribute(
  2519. target$jscomp$0,
  2520. propKey$jscomp$7,
  2521. propValue$jscomp$7
  2522. );
  2523. }
  2524. }
  2525. target$jscomp$0.push(endOfStartTag);
  2526. pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
  2527. if ("string" === typeof children$jscomp$5) {
  2528. target$jscomp$0.push(
  2529. stringToChunk(escapeTextForBrowser(children$jscomp$5))
  2530. );
  2531. var JSCompiler_inline_result$jscomp$3 = null;
  2532. } else JSCompiler_inline_result$jscomp$3 = children$jscomp$5;
  2533. return JSCompiler_inline_result$jscomp$3;
  2534. case "title":
  2535. var noscriptTagInScope = formatContext.tagScope & 1,
  2536. isFallback = formatContext.tagScope & 4;
  2537. if (hasOwnProperty.call(props, "children")) {
  2538. var children$jscomp$6 = props.children,
  2539. child = Array.isArray(children$jscomp$6)
  2540. ? 2 > children$jscomp$6.length
  2541. ? children$jscomp$6[0]
  2542. : null
  2543. : children$jscomp$6;
  2544. Array.isArray(children$jscomp$6) && 1 < children$jscomp$6.length
  2545. ? console.error(
  2546. "React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be common to combine text nodes and value nodes. For example: <title>hello {nameOfUser}</title>. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: <title>{`hello ${nameOfUser}`}</title>.",
  2547. children$jscomp$6.length
  2548. )
  2549. : "function" === typeof child || "symbol" === typeof child
  2550. ? console.error(
  2551. "React expect children of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value.",
  2552. "function" === typeof child ? "a Function" : "a Sybmol"
  2553. )
  2554. : child &&
  2555. child.toString === {}.toString &&
  2556. (null != child.$$typeof
  2557. ? console.error(
  2558. "React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that appears to be a React element which never implements a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value which is why rendering React elements is not supported. If the `children` of <title> is a React Component try moving the <title> tag into that component. If the `children` of <title> is some HTML markup change it to be Text only to be valid HTML."
  2559. )
  2560. : console.error(
  2561. "React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that does not implement a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value. Using the default `toString` method available on every object is almost certainly an error. Consider whether the `children` of this <title> is an object in error and change it to a string or number value if so. Otherwise implement a `toString` method that React can use to produce a valid <title>."
  2562. ));
  2563. }
  2564. if (
  2565. formatContext.insertionMode === SVG_MODE ||
  2566. noscriptTagInScope ||
  2567. null != props.itemProp
  2568. )
  2569. var JSCompiler_inline_result$jscomp$4 = pushTitleImpl(
  2570. target$jscomp$0,
  2571. props
  2572. );
  2573. else
  2574. isFallback
  2575. ? (JSCompiler_inline_result$jscomp$4 = null)
  2576. : (pushTitleImpl(renderState.hoistableChunks, props),
  2577. (JSCompiler_inline_result$jscomp$4 = void 0));
  2578. return JSCompiler_inline_result$jscomp$4;
  2579. case "link":
  2580. var noscriptTagInScope$jscomp$0 = formatContext.tagScope & 1,
  2581. isFallback$jscomp$0 = formatContext.tagScope & 4,
  2582. rel = props.rel,
  2583. href = props.href,
  2584. precedence = props.precedence;
  2585. if (
  2586. formatContext.insertionMode === SVG_MODE ||
  2587. noscriptTagInScope$jscomp$0 ||
  2588. null != props.itemProp ||
  2589. "string" !== typeof rel ||
  2590. "string" !== typeof href ||
  2591. "" === href
  2592. ) {
  2593. "stylesheet" === rel &&
  2594. "string" === typeof props.precedence &&
  2595. (("string" === typeof href && href) ||
  2596. console.error(
  2597. 'React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and expected the `href` prop to be a non-empty string but ecountered %s instead. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop ensure there is a non-empty string `href` prop as well, otherwise remove the `precedence` prop.',
  2598. null === href
  2599. ? "`null`"
  2600. : void 0 === href
  2601. ? "`undefined`"
  2602. : "" === href
  2603. ? "an empty string"
  2604. : 'something with type "' + typeof href + '"'
  2605. ));
  2606. pushLinkImpl(target$jscomp$0, props);
  2607. var JSCompiler_inline_result$jscomp$5 = null;
  2608. } else if ("stylesheet" === props.rel)
  2609. if (
  2610. "string" !== typeof precedence ||
  2611. null != props.disabled ||
  2612. props.onLoad ||
  2613. props.onError
  2614. ) {
  2615. if ("string" === typeof precedence)
  2616. if (null != props.disabled)
  2617. console.error(
  2618. 'React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and a `disabled` prop. The presence of the `disabled` prop indicates an intent to manage the stylesheet active state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the `disabled` prop, otherwise remove the `precedence` prop.'
  2619. );
  2620. else if (props.onLoad || props.onError) {
  2621. var propDescription =
  2622. props.onLoad && props.onError
  2623. ? "`onLoad` and `onError` props"
  2624. : props.onLoad
  2625. ? "`onLoad` prop"
  2626. : "`onError` prop";
  2627. console.error(
  2628. 'React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',
  2629. propDescription,
  2630. propDescription
  2631. );
  2632. }
  2633. JSCompiler_inline_result$jscomp$5 = pushLinkImpl(
  2634. target$jscomp$0,
  2635. props
  2636. );
  2637. } else {
  2638. var styleQueue = renderState.styles.get(precedence),
  2639. resourceState = resumableState.styleResources.hasOwnProperty(
  2640. href
  2641. )
  2642. ? resumableState.styleResources[href]
  2643. : void 0;
  2644. if (resourceState !== EXISTS) {
  2645. resumableState.styleResources[href] = EXISTS;
  2646. styleQueue ||
  2647. ((styleQueue = {
  2648. precedence: stringToChunk(escapeTextForBrowser(precedence)),
  2649. rules: [],
  2650. hrefs: [],
  2651. sheets: new Map()
  2652. }),
  2653. renderState.styles.set(precedence, styleQueue));
  2654. var resource = {
  2655. state: PENDING$1,
  2656. props: assign({}, props, {
  2657. "data-precedence": props.precedence,
  2658. precedence: null
  2659. })
  2660. };
  2661. if (resourceState) {
  2662. 2 === resourceState.length &&
  2663. adoptPreloadCredentials(resource.props, resourceState);
  2664. var preloadResource =
  2665. renderState.preloads.stylesheets.get(href);
  2666. preloadResource && 0 < preloadResource.length
  2667. ? (preloadResource.length = 0)
  2668. : (resource.state = PRELOADED);
  2669. }
  2670. styleQueue.sheets.set(href, resource);
  2671. hoistableState && hoistableState.stylesheets.add(resource);
  2672. } else if (styleQueue) {
  2673. var _resource = styleQueue.sheets.get(href);
  2674. _resource &&
  2675. hoistableState &&
  2676. hoistableState.stylesheets.add(_resource);
  2677. }
  2678. textEmbedded && target$jscomp$0.push(textSeparator);
  2679. JSCompiler_inline_result$jscomp$5 = null;
  2680. }
  2681. else
  2682. props.onLoad || props.onError
  2683. ? (JSCompiler_inline_result$jscomp$5 = pushLinkImpl(
  2684. target$jscomp$0,
  2685. props
  2686. ))
  2687. : (textEmbedded && target$jscomp$0.push(textSeparator),
  2688. (JSCompiler_inline_result$jscomp$5 = isFallback$jscomp$0
  2689. ? null
  2690. : pushLinkImpl(renderState.hoistableChunks, props)));
  2691. return JSCompiler_inline_result$jscomp$5;
  2692. case "script":
  2693. var noscriptTagInScope$jscomp$1 = formatContext.tagScope & 1,
  2694. asyncProp = props.async;
  2695. if (
  2696. "string" !== typeof props.src ||
  2697. !props.src ||
  2698. !asyncProp ||
  2699. "function" === typeof asyncProp ||
  2700. "symbol" === typeof asyncProp ||
  2701. props.onLoad ||
  2702. props.onError ||
  2703. formatContext.insertionMode === SVG_MODE ||
  2704. noscriptTagInScope$jscomp$1 ||
  2705. null != props.itemProp
  2706. )
  2707. var JSCompiler_inline_result$jscomp$6 = pushScriptImpl(
  2708. target$jscomp$0,
  2709. props
  2710. );
  2711. else {
  2712. var key = props.src;
  2713. if ("module" === props.type) {
  2714. var resources = resumableState.moduleScriptResources;
  2715. var preloads = renderState.preloads.moduleScripts;
  2716. } else
  2717. (resources = resumableState.scriptResources),
  2718. (preloads = renderState.preloads.scripts);
  2719. var resourceState$jscomp$0 = resources.hasOwnProperty(key)
  2720. ? resources[key]
  2721. : void 0;
  2722. if (resourceState$jscomp$0 !== EXISTS) {
  2723. resources[key] = EXISTS;
  2724. var scriptProps = props;
  2725. if (resourceState$jscomp$0) {
  2726. 2 === resourceState$jscomp$0.length &&
  2727. ((scriptProps = assign({}, props)),
  2728. adoptPreloadCredentials(scriptProps, resourceState$jscomp$0));
  2729. var preloadResource$jscomp$0 = preloads.get(key);
  2730. preloadResource$jscomp$0 &&
  2731. (preloadResource$jscomp$0.length = 0);
  2732. }
  2733. var resource$jscomp$0 = [];
  2734. renderState.scripts.add(resource$jscomp$0);
  2735. pushScriptImpl(resource$jscomp$0, scriptProps);
  2736. }
  2737. textEmbedded && target$jscomp$0.push(textSeparator);
  2738. JSCompiler_inline_result$jscomp$6 = null;
  2739. }
  2740. return JSCompiler_inline_result$jscomp$6;
  2741. case "style":
  2742. var noscriptTagInScope$jscomp$2 = formatContext.tagScope & 1;
  2743. if (hasOwnProperty.call(props, "children")) {
  2744. var children$jscomp$7 = props.children,
  2745. child$jscomp$0 = Array.isArray(children$jscomp$7)
  2746. ? 2 > children$jscomp$7.length
  2747. ? children$jscomp$7[0]
  2748. : null
  2749. : children$jscomp$7;
  2750. ("function" === typeof child$jscomp$0 ||
  2751. "symbol" === typeof child$jscomp$0 ||
  2752. Array.isArray(child$jscomp$0)) &&
  2753. console.error(
  2754. "React expect children of <style> tags to be a string, number, or object with a `toString` method but found %s instead. In browsers style Elements can only have `Text` Nodes as children.",
  2755. "function" === typeof child$jscomp$0
  2756. ? "a Function"
  2757. : "symbol" === typeof child$jscomp$0
  2758. ? "a Sybmol"
  2759. : "an Array"
  2760. );
  2761. }
  2762. var precedence$jscomp$0 = props.precedence,
  2763. href$jscomp$0 = props.href,
  2764. nonce = props.nonce;
  2765. if (
  2766. formatContext.insertionMode === SVG_MODE ||
  2767. noscriptTagInScope$jscomp$2 ||
  2768. null != props.itemProp ||
  2769. "string" !== typeof precedence$jscomp$0 ||
  2770. "string" !== typeof href$jscomp$0 ||
  2771. "" === href$jscomp$0
  2772. ) {
  2773. target$jscomp$0.push(startChunkForTag("style"));
  2774. var children$jscomp$8 = null,
  2775. innerHTML$jscomp$5 = null,
  2776. propKey$jscomp$8;
  2777. for (propKey$jscomp$8 in props)
  2778. if (hasOwnProperty.call(props, propKey$jscomp$8)) {
  2779. var propValue$jscomp$8 = props[propKey$jscomp$8];
  2780. if (null != propValue$jscomp$8)
  2781. switch (propKey$jscomp$8) {
  2782. case "children":
  2783. children$jscomp$8 = propValue$jscomp$8;
  2784. break;
  2785. case "dangerouslySetInnerHTML":
  2786. innerHTML$jscomp$5 = propValue$jscomp$8;
  2787. break;
  2788. default:
  2789. pushAttribute(
  2790. target$jscomp$0,
  2791. propKey$jscomp$8,
  2792. propValue$jscomp$8
  2793. );
  2794. }
  2795. }
  2796. target$jscomp$0.push(endOfStartTag);
  2797. var child$jscomp$1 = Array.isArray(children$jscomp$8)
  2798. ? 2 > children$jscomp$8.length
  2799. ? children$jscomp$8[0]
  2800. : null
  2801. : children$jscomp$8;
  2802. "function" !== typeof child$jscomp$1 &&
  2803. "symbol" !== typeof child$jscomp$1 &&
  2804. null !== child$jscomp$1 &&
  2805. void 0 !== child$jscomp$1 &&
  2806. target$jscomp$0.push(
  2807. stringToChunk(escapeStyleTextContent(child$jscomp$1))
  2808. );
  2809. pushInnerHTML(
  2810. target$jscomp$0,
  2811. innerHTML$jscomp$5,
  2812. children$jscomp$8
  2813. );
  2814. target$jscomp$0.push(endChunkForTag("style"));
  2815. var JSCompiler_inline_result$jscomp$7 = null;
  2816. } else {
  2817. href$jscomp$0.includes(" ") &&
  2818. console.error(
  2819. 'React expected the `href` prop for a <style> tag opting into hoisting semantics using the `precedence` prop to not have any spaces but ecountered spaces instead. using spaces in this prop will cause hydration of this style to fail on the client. The href for the <style> where this ocurred is "%s".',
  2820. href$jscomp$0
  2821. );
  2822. var styleQueue$jscomp$0 =
  2823. renderState.styles.get(precedence$jscomp$0),
  2824. resourceState$jscomp$1 =
  2825. resumableState.styleResources.hasOwnProperty(href$jscomp$0)
  2826. ? resumableState.styleResources[href$jscomp$0]
  2827. : void 0;
  2828. if (resourceState$jscomp$1 !== EXISTS) {
  2829. resumableState.styleResources[href$jscomp$0] = EXISTS;
  2830. resourceState$jscomp$1 &&
  2831. console.error(
  2832. 'React encountered a hoistable style tag for the same href as a preload: "%s". When using a style tag to inline styles you should not also preload it as a stylsheet.',
  2833. href$jscomp$0
  2834. );
  2835. styleQueue$jscomp$0 ||
  2836. ((styleQueue$jscomp$0 = {
  2837. precedence: stringToChunk(
  2838. escapeTextForBrowser(precedence$jscomp$0)
  2839. ),
  2840. rules: [],
  2841. hrefs: [],
  2842. sheets: new Map()
  2843. }),
  2844. renderState.styles.set(
  2845. precedence$jscomp$0,
  2846. styleQueue$jscomp$0
  2847. ));
  2848. var nonceStyle = renderState.nonce.style;
  2849. if (nonceStyle && nonceStyle !== nonce)
  2850. console.error(
  2851. 'React encountered a style tag with `precedence` "%s" and `nonce` "%s". When React manages style rules using `precedence` it will only include rules if the nonce matches the style nonce "%s" that was included with this render.',
  2852. precedence$jscomp$0,
  2853. nonce,
  2854. nonceStyle
  2855. );
  2856. else {
  2857. !nonceStyle &&
  2858. nonce &&
  2859. console.error(
  2860. 'React encountered a style tag with `precedence` "%s" and `nonce` "%s". When React manages style rules using `precedence` it will only include a nonce attributes if you also provide the same style nonce value as a render option.',
  2861. precedence$jscomp$0,
  2862. nonce
  2863. );
  2864. styleQueue$jscomp$0.hrefs.push(
  2865. stringToChunk(escapeTextForBrowser(href$jscomp$0))
  2866. );
  2867. var target = styleQueue$jscomp$0.rules,
  2868. children$jscomp$9 = null,
  2869. innerHTML$jscomp$6 = null,
  2870. propKey$jscomp$9;
  2871. for (propKey$jscomp$9 in props)
  2872. if (hasOwnProperty.call(props, propKey$jscomp$9)) {
  2873. var propValue$jscomp$9 = props[propKey$jscomp$9];
  2874. if (null != propValue$jscomp$9)
  2875. switch (propKey$jscomp$9) {
  2876. case "children":
  2877. children$jscomp$9 = propValue$jscomp$9;
  2878. break;
  2879. case "dangerouslySetInnerHTML":
  2880. innerHTML$jscomp$6 = propValue$jscomp$9;
  2881. }
  2882. }
  2883. var child$jscomp$2 = Array.isArray(children$jscomp$9)
  2884. ? 2 > children$jscomp$9.length
  2885. ? children$jscomp$9[0]
  2886. : null
  2887. : children$jscomp$9;
  2888. "function" !== typeof child$jscomp$2 &&
  2889. "symbol" !== typeof child$jscomp$2 &&
  2890. null !== child$jscomp$2 &&
  2891. void 0 !== child$jscomp$2 &&
  2892. target.push(
  2893. stringToChunk(escapeStyleTextContent(child$jscomp$2))
  2894. );
  2895. pushInnerHTML(target, innerHTML$jscomp$6, children$jscomp$9);
  2896. }
  2897. }
  2898. styleQueue$jscomp$0 &&
  2899. hoistableState &&
  2900. hoistableState.styles.add(styleQueue$jscomp$0);
  2901. textEmbedded && target$jscomp$0.push(textSeparator);
  2902. JSCompiler_inline_result$jscomp$7 = void 0;
  2903. }
  2904. return JSCompiler_inline_result$jscomp$7;
  2905. case "meta":
  2906. var noscriptTagInScope$jscomp$3 = formatContext.tagScope & 1,
  2907. isFallback$jscomp$1 = formatContext.tagScope & 4;
  2908. if (
  2909. formatContext.insertionMode === SVG_MODE ||
  2910. noscriptTagInScope$jscomp$3 ||
  2911. null != props.itemProp
  2912. )
  2913. var JSCompiler_inline_result$jscomp$8 = pushSelfClosing(
  2914. target$jscomp$0,
  2915. props,
  2916. "meta"
  2917. );
  2918. else
  2919. textEmbedded && target$jscomp$0.push(textSeparator),
  2920. (JSCompiler_inline_result$jscomp$8 = isFallback$jscomp$1
  2921. ? null
  2922. : "string" === typeof props.charSet
  2923. ? pushSelfClosing(renderState.charsetChunks, props, "meta")
  2924. : "viewport" === props.name
  2925. ? pushSelfClosing(renderState.viewportChunks, props, "meta")
  2926. : pushSelfClosing(
  2927. renderState.hoistableChunks,
  2928. props,
  2929. "meta"
  2930. ));
  2931. return JSCompiler_inline_result$jscomp$8;
  2932. case "listing":
  2933. case "pre":
  2934. target$jscomp$0.push(startChunkForTag(type));
  2935. var children$jscomp$10 = null,
  2936. innerHTML$jscomp$7 = null,
  2937. propKey$jscomp$10;
  2938. for (propKey$jscomp$10 in props)
  2939. if (hasOwnProperty.call(props, propKey$jscomp$10)) {
  2940. var propValue$jscomp$10 = props[propKey$jscomp$10];
  2941. if (null != propValue$jscomp$10)
  2942. switch (propKey$jscomp$10) {
  2943. case "children":
  2944. children$jscomp$10 = propValue$jscomp$10;
  2945. break;
  2946. case "dangerouslySetInnerHTML":
  2947. innerHTML$jscomp$7 = propValue$jscomp$10;
  2948. break;
  2949. default:
  2950. pushAttribute(
  2951. target$jscomp$0,
  2952. propKey$jscomp$10,
  2953. propValue$jscomp$10
  2954. );
  2955. }
  2956. }
  2957. target$jscomp$0.push(endOfStartTag);
  2958. if (null != innerHTML$jscomp$7) {
  2959. if (null != children$jscomp$10)
  2960. throw Error(
  2961. "Can only set one of `children` or `props.dangerouslySetInnerHTML`."
  2962. );
  2963. if (
  2964. "object" !== typeof innerHTML$jscomp$7 ||
  2965. !("__html" in innerHTML$jscomp$7)
  2966. )
  2967. throw Error(
  2968. "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information."
  2969. );
  2970. var html = innerHTML$jscomp$7.__html;
  2971. null !== html &&
  2972. void 0 !== html &&
  2973. ("string" === typeof html && 0 < html.length && "\n" === html[0]
  2974. ? target$jscomp$0.push(leadingNewline, stringToChunk(html))
  2975. : (checkHtmlStringCoercion(html),
  2976. target$jscomp$0.push(stringToChunk("" + html))));
  2977. }
  2978. "string" === typeof children$jscomp$10 &&
  2979. "\n" === children$jscomp$10[0] &&
  2980. target$jscomp$0.push(leadingNewline);
  2981. return children$jscomp$10;
  2982. case "img":
  2983. var pictureOrNoScriptTagInScope = formatContext.tagScope & 3,
  2984. src = props.src,
  2985. srcSet = props.srcSet;
  2986. if (
  2987. !(
  2988. "lazy" === props.loading ||
  2989. (!src && !srcSet) ||
  2990. ("string" !== typeof src && null != src) ||
  2991. ("string" !== typeof srcSet && null != srcSet) ||
  2992. "low" === props.fetchPriority ||
  2993. pictureOrNoScriptTagInScope
  2994. ) &&
  2995. ("string" !== typeof src ||
  2996. ":" !== src[4] ||
  2997. ("d" !== src[0] && "D" !== src[0]) ||
  2998. ("a" !== src[1] && "A" !== src[1]) ||
  2999. ("t" !== src[2] && "T" !== src[2]) ||
  3000. ("a" !== src[3] && "A" !== src[3])) &&
  3001. ("string" !== typeof srcSet ||
  3002. ":" !== srcSet[4] ||
  3003. ("d" !== srcSet[0] && "D" !== srcSet[0]) ||
  3004. ("a" !== srcSet[1] && "A" !== srcSet[1]) ||
  3005. ("t" !== srcSet[2] && "T" !== srcSet[2]) ||
  3006. ("a" !== srcSet[3] && "A" !== srcSet[3]))
  3007. ) {
  3008. null !== hoistableState &&
  3009. formatContext.tagScope & 64 &&
  3010. (hoistableState.suspenseyImages = !0);
  3011. var sizes = "string" === typeof props.sizes ? props.sizes : void 0,
  3012. key$jscomp$0 = srcSet ? srcSet + "\n" + (sizes || "") : src,
  3013. promotablePreloads = renderState.preloads.images,
  3014. resource$jscomp$1 = promotablePreloads.get(key$jscomp$0);
  3015. if (resource$jscomp$1) {
  3016. if (
  3017. "high" === props.fetchPriority ||
  3018. 10 > renderState.highImagePreloads.size
  3019. )
  3020. promotablePreloads.delete(key$jscomp$0),
  3021. renderState.highImagePreloads.add(resource$jscomp$1);
  3022. } else if (
  3023. !resumableState.imageResources.hasOwnProperty(key$jscomp$0)
  3024. ) {
  3025. resumableState.imageResources[key$jscomp$0] = PRELOAD_NO_CREDS;
  3026. var input = props.crossOrigin;
  3027. var crossOrigin =
  3028. "string" === typeof input
  3029. ? "use-credentials" === input
  3030. ? input
  3031. : ""
  3032. : void 0;
  3033. var headers = renderState.headers,
  3034. header;
  3035. headers &&
  3036. 0 < headers.remainingCapacity &&
  3037. "string" !== typeof props.srcSet &&
  3038. ("high" === props.fetchPriority ||
  3039. 500 > headers.highImagePreloads.length) &&
  3040. ((header = getPreloadAsHeader(src, "image", {
  3041. imageSrcSet: props.srcSet,
  3042. imageSizes: props.sizes,
  3043. crossOrigin: crossOrigin,
  3044. integrity: props.integrity,
  3045. nonce: props.nonce,
  3046. type: props.type,
  3047. fetchPriority: props.fetchPriority,
  3048. referrerPolicy: props.refererPolicy
  3049. })),
  3050. 0 <= (headers.remainingCapacity -= header.length + 2))
  3051. ? ((renderState.resets.image[key$jscomp$0] = PRELOAD_NO_CREDS),
  3052. headers.highImagePreloads &&
  3053. (headers.highImagePreloads += ", "),
  3054. (headers.highImagePreloads += header))
  3055. : ((resource$jscomp$1 = []),
  3056. pushLinkImpl(resource$jscomp$1, {
  3057. rel: "preload",
  3058. as: "image",
  3059. href: srcSet ? void 0 : src,
  3060. imageSrcSet: srcSet,
  3061. imageSizes: sizes,
  3062. crossOrigin: crossOrigin,
  3063. integrity: props.integrity,
  3064. type: props.type,
  3065. fetchPriority: props.fetchPriority,
  3066. referrerPolicy: props.referrerPolicy
  3067. }),
  3068. "high" === props.fetchPriority ||
  3069. 10 > renderState.highImagePreloads.size
  3070. ? renderState.highImagePreloads.add(resource$jscomp$1)
  3071. : (renderState.bulkPreloads.add(resource$jscomp$1),
  3072. promotablePreloads.set(key$jscomp$0, resource$jscomp$1)));
  3073. }
  3074. }
  3075. return pushSelfClosing(target$jscomp$0, props, "img");
  3076. case "base":
  3077. case "area":
  3078. case "br":
  3079. case "col":
  3080. case "embed":
  3081. case "hr":
  3082. case "keygen":
  3083. case "param":
  3084. case "source":
  3085. case "track":
  3086. case "wbr":
  3087. return pushSelfClosing(target$jscomp$0, props, type);
  3088. case "annotation-xml":
  3089. case "color-profile":
  3090. case "font-face":
  3091. case "font-face-src":
  3092. case "font-face-uri":
  3093. case "font-face-format":
  3094. case "font-face-name":
  3095. case "missing-glyph":
  3096. break;
  3097. case "head":
  3098. if (formatContext.insertionMode < HTML_MODE) {
  3099. var preamble = preambleState || renderState.preamble;
  3100. if (preamble.headChunks)
  3101. throw Error("The `<head>` tag may only be rendered once.");
  3102. null !== preambleState &&
  3103. target$jscomp$0.push(headPreambleContributionChunk);
  3104. preamble.headChunks = [];
  3105. var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
  3106. preamble.headChunks,
  3107. props,
  3108. "head"
  3109. );
  3110. } else
  3111. JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
  3112. target$jscomp$0,
  3113. props,
  3114. "head"
  3115. );
  3116. return JSCompiler_inline_result$jscomp$9;
  3117. case "body":
  3118. if (formatContext.insertionMode < HTML_MODE) {
  3119. var preamble$jscomp$0 = preambleState || renderState.preamble;
  3120. if (preamble$jscomp$0.bodyChunks)
  3121. throw Error("The `<body>` tag may only be rendered once.");
  3122. null !== preambleState &&
  3123. target$jscomp$0.push(bodyPreambleContributionChunk);
  3124. preamble$jscomp$0.bodyChunks = [];
  3125. var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
  3126. preamble$jscomp$0.bodyChunks,
  3127. props,
  3128. "body"
  3129. );
  3130. } else
  3131. JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
  3132. target$jscomp$0,
  3133. props,
  3134. "body"
  3135. );
  3136. return JSCompiler_inline_result$jscomp$10;
  3137. case "html":
  3138. if (formatContext.insertionMode === ROOT_HTML_MODE) {
  3139. var preamble$jscomp$1 = preambleState || renderState.preamble;
  3140. if (preamble$jscomp$1.htmlChunks)
  3141. throw Error("The `<html>` tag may only be rendered once.");
  3142. null !== preambleState &&
  3143. target$jscomp$0.push(htmlPreambleContributionChunk);
  3144. preamble$jscomp$1.htmlChunks = [doctypeChunk];
  3145. var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
  3146. preamble$jscomp$1.htmlChunks,
  3147. props,
  3148. "html"
  3149. );
  3150. } else
  3151. JSCompiler_inline_result$jscomp$11 = pushStartGenericElement(
  3152. target$jscomp$0,
  3153. props,
  3154. "html"
  3155. );
  3156. return JSCompiler_inline_result$jscomp$11;
  3157. default:
  3158. if (-1 !== type.indexOf("-")) {
  3159. target$jscomp$0.push(startChunkForTag(type));
  3160. var children$jscomp$11 = null,
  3161. innerHTML$jscomp$8 = null,
  3162. propKey$jscomp$11;
  3163. for (propKey$jscomp$11 in props)
  3164. if (hasOwnProperty.call(props, propKey$jscomp$11)) {
  3165. var propValue$jscomp$11 = props[propKey$jscomp$11];
  3166. if (null != propValue$jscomp$11) {
  3167. var attributeName = propKey$jscomp$11;
  3168. switch (propKey$jscomp$11) {
  3169. case "children":
  3170. children$jscomp$11 = propValue$jscomp$11;
  3171. break;
  3172. case "dangerouslySetInnerHTML":
  3173. innerHTML$jscomp$8 = propValue$jscomp$11;
  3174. break;
  3175. case "style":
  3176. pushStyleAttribute(target$jscomp$0, propValue$jscomp$11);
  3177. break;
  3178. case "suppressContentEditableWarning":
  3179. case "suppressHydrationWarning":
  3180. case "ref":
  3181. break;
  3182. case "className":
  3183. attributeName = "class";
  3184. default:
  3185. if (
  3186. isAttributeNameSafe(propKey$jscomp$11) &&
  3187. "function" !== typeof propValue$jscomp$11 &&
  3188. "symbol" !== typeof propValue$jscomp$11 &&
  3189. !1 !== propValue$jscomp$11
  3190. ) {
  3191. if (!0 === propValue$jscomp$11)
  3192. propValue$jscomp$11 = "";
  3193. else if ("object" === typeof propValue$jscomp$11)
  3194. continue;
  3195. target$jscomp$0.push(
  3196. attributeSeparator,
  3197. stringToChunk(attributeName),
  3198. attributeAssign,
  3199. stringToChunk(
  3200. escapeTextForBrowser(propValue$jscomp$11)
  3201. ),
  3202. attributeEnd
  3203. );
  3204. }
  3205. }
  3206. }
  3207. }
  3208. target$jscomp$0.push(endOfStartTag);
  3209. pushInnerHTML(
  3210. target$jscomp$0,
  3211. innerHTML$jscomp$8,
  3212. children$jscomp$11
  3213. );
  3214. return children$jscomp$11;
  3215. }
  3216. }
  3217. return pushStartGenericElement(target$jscomp$0, props, type);
  3218. }
  3219. function endChunkForTag(tag) {
  3220. var chunk = endTagCache.get(tag);
  3221. void 0 === chunk &&
  3222. ((chunk = stringToPrecomputedChunk("</" + tag + ">")),
  3223. endTagCache.set(tag, chunk));
  3224. return chunk;
  3225. }
  3226. function hoistPreambleState(renderState, preambleState) {
  3227. renderState = renderState.preamble;
  3228. null === renderState.htmlChunks &&
  3229. preambleState.htmlChunks &&
  3230. (renderState.htmlChunks = preambleState.htmlChunks);
  3231. null === renderState.headChunks &&
  3232. preambleState.headChunks &&
  3233. (renderState.headChunks = preambleState.headChunks);
  3234. null === renderState.bodyChunks &&
  3235. preambleState.bodyChunks &&
  3236. (renderState.bodyChunks = preambleState.bodyChunks);
  3237. }
  3238. function writeBootstrap(destination, renderState) {
  3239. renderState = renderState.bootstrapChunks;
  3240. for (var i = 0; i < renderState.length - 1; i++)
  3241. writeChunk(destination, renderState[i]);
  3242. return i < renderState.length
  3243. ? ((i = renderState[i]),
  3244. (renderState.length = 0),
  3245. writeChunkAndReturn(destination, i))
  3246. : !0;
  3247. }
  3248. function writeStartPendingSuspenseBoundary(destination, renderState, id) {
  3249. writeChunk(destination, startPendingSuspenseBoundary1);
  3250. if (null === id)
  3251. throw Error(
  3252. "An ID must have been assigned before we can complete the boundary."
  3253. );
  3254. writeChunk(destination, renderState.boundaryPrefix);
  3255. writeChunk(destination, stringToChunk(id.toString(16)));
  3256. return writeChunkAndReturn(destination, startPendingSuspenseBoundary2);
  3257. }
  3258. function writeStartSegment(destination, renderState, formatContext, id) {
  3259. switch (formatContext.insertionMode) {
  3260. case ROOT_HTML_MODE:
  3261. case HTML_HTML_MODE:
  3262. case HTML_HEAD_MODE:
  3263. case HTML_MODE:
  3264. return (
  3265. writeChunk(destination, startSegmentHTML),
  3266. writeChunk(destination, renderState.segmentPrefix),
  3267. writeChunk(destination, stringToChunk(id.toString(16))),
  3268. writeChunkAndReturn(destination, startSegmentHTML2)
  3269. );
  3270. case SVG_MODE:
  3271. return (
  3272. writeChunk(destination, startSegmentSVG),
  3273. writeChunk(destination, renderState.segmentPrefix),
  3274. writeChunk(destination, stringToChunk(id.toString(16))),
  3275. writeChunkAndReturn(destination, startSegmentSVG2)
  3276. );
  3277. case MATHML_MODE:
  3278. return (
  3279. writeChunk(destination, startSegmentMathML),
  3280. writeChunk(destination, renderState.segmentPrefix),
  3281. writeChunk(destination, stringToChunk(id.toString(16))),
  3282. writeChunkAndReturn(destination, startSegmentMathML2)
  3283. );
  3284. case HTML_TABLE_MODE:
  3285. return (
  3286. writeChunk(destination, startSegmentTable),
  3287. writeChunk(destination, renderState.segmentPrefix),
  3288. writeChunk(destination, stringToChunk(id.toString(16))),
  3289. writeChunkAndReturn(destination, startSegmentTable2)
  3290. );
  3291. case HTML_TABLE_BODY_MODE:
  3292. return (
  3293. writeChunk(destination, startSegmentTableBody),
  3294. writeChunk(destination, renderState.segmentPrefix),
  3295. writeChunk(destination, stringToChunk(id.toString(16))),
  3296. writeChunkAndReturn(destination, startSegmentTableBody2)
  3297. );
  3298. case HTML_TABLE_ROW_MODE:
  3299. return (
  3300. writeChunk(destination, startSegmentTableRow),
  3301. writeChunk(destination, renderState.segmentPrefix),
  3302. writeChunk(destination, stringToChunk(id.toString(16))),
  3303. writeChunkAndReturn(destination, startSegmentTableRow2)
  3304. );
  3305. case HTML_COLGROUP_MODE:
  3306. return (
  3307. writeChunk(destination, startSegmentColGroup),
  3308. writeChunk(destination, renderState.segmentPrefix),
  3309. writeChunk(destination, stringToChunk(id.toString(16))),
  3310. writeChunkAndReturn(destination, startSegmentColGroup2)
  3311. );
  3312. default:
  3313. throw Error("Unknown insertion mode. This is a bug in React.");
  3314. }
  3315. }
  3316. function writeEndSegment(destination, formatContext) {
  3317. switch (formatContext.insertionMode) {
  3318. case ROOT_HTML_MODE:
  3319. case HTML_HTML_MODE:
  3320. case HTML_HEAD_MODE:
  3321. case HTML_MODE:
  3322. return writeChunkAndReturn(destination, endSegmentHTML);
  3323. case SVG_MODE:
  3324. return writeChunkAndReturn(destination, endSegmentSVG);
  3325. case MATHML_MODE:
  3326. return writeChunkAndReturn(destination, endSegmentMathML);
  3327. case HTML_TABLE_MODE:
  3328. return writeChunkAndReturn(destination, endSegmentTable);
  3329. case HTML_TABLE_BODY_MODE:
  3330. return writeChunkAndReturn(destination, endSegmentTableBody);
  3331. case HTML_TABLE_ROW_MODE:
  3332. return writeChunkAndReturn(destination, endSegmentTableRow);
  3333. case HTML_COLGROUP_MODE:
  3334. return writeChunkAndReturn(destination, endSegmentColGroup);
  3335. default:
  3336. throw Error("Unknown insertion mode. This is a bug in React.");
  3337. }
  3338. }
  3339. function escapeJSStringsForInstructionScripts(input) {
  3340. return JSON.stringify(input).replace(
  3341. regexForJSStringsInInstructionScripts,
  3342. function (match) {
  3343. switch (match) {
  3344. case "<":
  3345. return "\\u003c";
  3346. case "\u2028":
  3347. return "\\u2028";
  3348. case "\u2029":
  3349. return "\\u2029";
  3350. default:
  3351. throw Error(
  3352. "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"
  3353. );
  3354. }
  3355. }
  3356. );
  3357. }
  3358. function escapeJSObjectForInstructionScripts(input) {
  3359. return JSON.stringify(input).replace(
  3360. regexForJSStringsInScripts,
  3361. function (match) {
  3362. switch (match) {
  3363. case "&":
  3364. return "\\u0026";
  3365. case ">":
  3366. return "\\u003e";
  3367. case "<":
  3368. return "\\u003c";
  3369. case "\u2028":
  3370. return "\\u2028";
  3371. case "\u2029":
  3372. return "\\u2029";
  3373. default:
  3374. throw Error(
  3375. "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"
  3376. );
  3377. }
  3378. }
  3379. );
  3380. }
  3381. function flushStyleTagsLateForBoundary(styleQueue) {
  3382. var rules = styleQueue.rules,
  3383. hrefs = styleQueue.hrefs;
  3384. 0 < rules.length &&
  3385. 0 === hrefs.length &&
  3386. console.error(
  3387. "React expected to have at least one href for an a hoistable style but found none. This is a bug in React."
  3388. );
  3389. var i = 0;
  3390. if (hrefs.length) {
  3391. writeChunk(this, currentlyFlushingRenderState.startInlineStyle);
  3392. writeChunk(this, lateStyleTagResourceOpen1);
  3393. writeChunk(this, styleQueue.precedence);
  3394. for (
  3395. writeChunk(this, lateStyleTagResourceOpen2);
  3396. i < hrefs.length - 1;
  3397. i++
  3398. )
  3399. writeChunk(this, hrefs[i]), writeChunk(this, spaceSeparator);
  3400. writeChunk(this, hrefs[i]);
  3401. writeChunk(this, lateStyleTagResourceOpen3);
  3402. for (i = 0; i < rules.length; i++) writeChunk(this, rules[i]);
  3403. destinationHasCapacity = writeChunkAndReturn(
  3404. this,
  3405. lateStyleTagTemplateClose
  3406. );
  3407. currentlyRenderingBoundaryHasStylesToHoist = !0;
  3408. rules.length = 0;
  3409. hrefs.length = 0;
  3410. }
  3411. }
  3412. function hasStylesToHoist(stylesheet) {
  3413. return stylesheet.state !== PREAMBLE
  3414. ? (currentlyRenderingBoundaryHasStylesToHoist = !0)
  3415. : !1;
  3416. }
  3417. function writeHoistablesForBoundary(
  3418. destination,
  3419. hoistableState,
  3420. renderState
  3421. ) {
  3422. currentlyRenderingBoundaryHasStylesToHoist = !1;
  3423. destinationHasCapacity = !0;
  3424. currentlyFlushingRenderState = renderState;
  3425. hoistableState.styles.forEach(flushStyleTagsLateForBoundary, destination);
  3426. currentlyFlushingRenderState = null;
  3427. hoistableState.stylesheets.forEach(hasStylesToHoist);
  3428. currentlyRenderingBoundaryHasStylesToHoist &&
  3429. (renderState.stylesToHoist = !0);
  3430. return destinationHasCapacity;
  3431. }
  3432. function flushResource(resource) {
  3433. for (var i = 0; i < resource.length; i++) writeChunk(this, resource[i]);
  3434. resource.length = 0;
  3435. }
  3436. function flushStyleInPreamble(stylesheet) {
  3437. pushLinkImpl(stylesheetFlushingQueue, stylesheet.props);
  3438. for (var i = 0; i < stylesheetFlushingQueue.length; i++)
  3439. writeChunk(this, stylesheetFlushingQueue[i]);
  3440. stylesheetFlushingQueue.length = 0;
  3441. stylesheet.state = PREAMBLE;
  3442. }
  3443. function flushStylesInPreamble(styleQueue) {
  3444. var hasStylesheets = 0 < styleQueue.sheets.size;
  3445. styleQueue.sheets.forEach(flushStyleInPreamble, this);
  3446. styleQueue.sheets.clear();
  3447. var rules = styleQueue.rules,
  3448. hrefs = styleQueue.hrefs;
  3449. if (!hasStylesheets || hrefs.length) {
  3450. writeChunk(this, currentlyFlushingRenderState.startInlineStyle);
  3451. writeChunk(this, styleTagResourceOpen1);
  3452. writeChunk(this, styleQueue.precedence);
  3453. styleQueue = 0;
  3454. if (hrefs.length) {
  3455. for (
  3456. writeChunk(this, styleTagResourceOpen2);
  3457. styleQueue < hrefs.length - 1;
  3458. styleQueue++
  3459. )
  3460. writeChunk(this, hrefs[styleQueue]),
  3461. writeChunk(this, spaceSeparator);
  3462. writeChunk(this, hrefs[styleQueue]);
  3463. }
  3464. writeChunk(this, styleTagResourceOpen3);
  3465. for (styleQueue = 0; styleQueue < rules.length; styleQueue++)
  3466. writeChunk(this, rules[styleQueue]);
  3467. writeChunk(this, styleTagResourceClose);
  3468. rules.length = 0;
  3469. hrefs.length = 0;
  3470. }
  3471. }
  3472. function preloadLateStyle(stylesheet) {
  3473. if (stylesheet.state === PENDING$1) {
  3474. stylesheet.state = PRELOADED;
  3475. var props = stylesheet.props;
  3476. pushLinkImpl(stylesheetFlushingQueue, {
  3477. rel: "preload",
  3478. as: "style",
  3479. href: stylesheet.props.href,
  3480. crossOrigin: props.crossOrigin,
  3481. fetchPriority: props.fetchPriority,
  3482. integrity: props.integrity,
  3483. media: props.media,
  3484. hrefLang: props.hrefLang,
  3485. referrerPolicy: props.referrerPolicy
  3486. });
  3487. for (
  3488. stylesheet = 0;
  3489. stylesheet < stylesheetFlushingQueue.length;
  3490. stylesheet++
  3491. )
  3492. writeChunk(this, stylesheetFlushingQueue[stylesheet]);
  3493. stylesheetFlushingQueue.length = 0;
  3494. }
  3495. }
  3496. function preloadLateStyles(styleQueue) {
  3497. styleQueue.sheets.forEach(preloadLateStyle, this);
  3498. styleQueue.sheets.clear();
  3499. }
  3500. function pushCompletedShellIdAttribute(target, resumableState) {
  3501. (resumableState.instructions & SentCompletedShellId) === NothingSent &&
  3502. ((resumableState.instructions |= SentCompletedShellId),
  3503. target.push(
  3504. completedShellIdAttributeStart,
  3505. stringToChunk(
  3506. escapeTextForBrowser("_" + resumableState.idPrefix + "R_")
  3507. ),
  3508. attributeEnd
  3509. ));
  3510. }
  3511. function writeStyleResourceDependenciesInJS(destination, hoistableState) {
  3512. writeChunk(destination, arrayFirstOpenBracket);
  3513. var nextArrayOpenBrackChunk = arrayFirstOpenBracket;
  3514. hoistableState.stylesheets.forEach(function (resource) {
  3515. if (resource.state !== PREAMBLE)
  3516. if (resource.state === LATE)
  3517. writeChunk(destination, nextArrayOpenBrackChunk),
  3518. (resource = resource.props.href),
  3519. checkAttributeStringCoercion(resource, "href"),
  3520. writeChunk(
  3521. destination,
  3522. stringToChunk(
  3523. escapeJSObjectForInstructionScripts("" + resource)
  3524. )
  3525. ),
  3526. writeChunk(destination, arrayCloseBracket),
  3527. (nextArrayOpenBrackChunk = arraySubsequentOpenBracket);
  3528. else {
  3529. writeChunk(destination, nextArrayOpenBrackChunk);
  3530. var precedence = resource.props["data-precedence"],
  3531. props = resource.props,
  3532. coercedHref = sanitizeURL("" + resource.props.href);
  3533. writeChunk(
  3534. destination,
  3535. stringToChunk(escapeJSObjectForInstructionScripts(coercedHref))
  3536. );
  3537. checkAttributeStringCoercion(precedence, "precedence");
  3538. precedence = "" + precedence;
  3539. writeChunk(destination, arrayInterstitial);
  3540. writeChunk(
  3541. destination,
  3542. stringToChunk(escapeJSObjectForInstructionScripts(precedence))
  3543. );
  3544. for (var propKey in props)
  3545. if (
  3546. hasOwnProperty.call(props, propKey) &&
  3547. ((precedence = props[propKey]), null != precedence)
  3548. )
  3549. switch (propKey) {
  3550. case "href":
  3551. case "rel":
  3552. case "precedence":
  3553. case "data-precedence":
  3554. break;
  3555. case "children":
  3556. case "dangerouslySetInnerHTML":
  3557. throw Error(
  3558. "link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`."
  3559. );
  3560. default:
  3561. writeStyleResourceAttributeInJS(
  3562. destination,
  3563. propKey,
  3564. precedence
  3565. );
  3566. }
  3567. writeChunk(destination, arrayCloseBracket);
  3568. nextArrayOpenBrackChunk = arraySubsequentOpenBracket;
  3569. resource.state = LATE;
  3570. }
  3571. });
  3572. writeChunk(destination, arrayCloseBracket);
  3573. }
  3574. function writeStyleResourceAttributeInJS(destination, name, value) {
  3575. var attributeName = name.toLowerCase();
  3576. switch (typeof value) {
  3577. case "function":
  3578. case "symbol":
  3579. return;
  3580. }
  3581. switch (name) {
  3582. case "innerHTML":
  3583. case "dangerouslySetInnerHTML":
  3584. case "suppressContentEditableWarning":
  3585. case "suppressHydrationWarning":
  3586. case "style":
  3587. case "ref":
  3588. return;
  3589. case "className":
  3590. attributeName = "class";
  3591. checkAttributeStringCoercion(value, attributeName);
  3592. name = "" + value;
  3593. break;
  3594. case "hidden":
  3595. if (!1 === value) return;
  3596. name = "";
  3597. break;
  3598. case "src":
  3599. case "href":
  3600. value = sanitizeURL(value);
  3601. checkAttributeStringCoercion(value, attributeName);
  3602. name = "" + value;
  3603. break;
  3604. default:
  3605. if (
  3606. (2 < name.length &&
  3607. ("o" === name[0] || "O" === name[0]) &&
  3608. ("n" === name[1] || "N" === name[1])) ||
  3609. !isAttributeNameSafe(name)
  3610. )
  3611. return;
  3612. checkAttributeStringCoercion(value, attributeName);
  3613. name = "" + value;
  3614. }
  3615. writeChunk(destination, arrayInterstitial);
  3616. writeChunk(
  3617. destination,
  3618. stringToChunk(escapeJSObjectForInstructionScripts(attributeName))
  3619. );
  3620. writeChunk(destination, arrayInterstitial);
  3621. writeChunk(
  3622. destination,
  3623. stringToChunk(escapeJSObjectForInstructionScripts(name))
  3624. );
  3625. }
  3626. function createHoistableState() {
  3627. return { styles: new Set(), stylesheets: new Set(), suspenseyImages: !1 };
  3628. }
  3629. function preloadBootstrapScriptOrModule(
  3630. resumableState,
  3631. renderState,
  3632. href,
  3633. props
  3634. ) {
  3635. (resumableState.scriptResources.hasOwnProperty(href) ||
  3636. resumableState.moduleScriptResources.hasOwnProperty(href)) &&
  3637. console.error(
  3638. 'Internal React Error: React expected bootstrap script or module with src "%s" to not have been preloaded already. please file an issue',
  3639. href
  3640. );
  3641. resumableState.scriptResources[href] = EXISTS;
  3642. resumableState.moduleScriptResources[href] = EXISTS;
  3643. resumableState = [];
  3644. pushLinkImpl(resumableState, props);
  3645. renderState.bootstrapScripts.add(resumableState);
  3646. }
  3647. function adoptPreloadCredentials(target, preloadState) {
  3648. null == target.crossOrigin && (target.crossOrigin = preloadState[0]);
  3649. null == target.integrity && (target.integrity = preloadState[1]);
  3650. }
  3651. function getPreloadAsHeader(href, as, params) {
  3652. href = escapeHrefForLinkHeaderURLContext(href);
  3653. as = escapeStringForLinkHeaderQuotedParamValueContext(as, "as");
  3654. as = "<" + href + '>; rel=preload; as="' + as + '"';
  3655. for (var paramName in params)
  3656. hasOwnProperty.call(params, paramName) &&
  3657. ((href = params[paramName]),
  3658. "string" === typeof href &&
  3659. (as +=
  3660. "; " +
  3661. paramName.toLowerCase() +
  3662. '="' +
  3663. escapeStringForLinkHeaderQuotedParamValueContext(
  3664. href,
  3665. paramName
  3666. ) +
  3667. '"'));
  3668. return as;
  3669. }
  3670. function escapeHrefForLinkHeaderURLContext(hrefInput) {
  3671. checkAttributeStringCoercion(hrefInput, "href");
  3672. return ("" + hrefInput).replace(
  3673. regexForHrefInLinkHeaderURLContext,
  3674. escapeHrefForLinkHeaderURLContextReplacer
  3675. );
  3676. }
  3677. function escapeHrefForLinkHeaderURLContextReplacer(match) {
  3678. switch (match) {
  3679. case "<":
  3680. return "%3C";
  3681. case ">":
  3682. return "%3E";
  3683. case "\n":
  3684. return "%0A";
  3685. case "\r":
  3686. return "%0D";
  3687. default:
  3688. throw Error(
  3689. "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"
  3690. );
  3691. }
  3692. }
  3693. function escapeStringForLinkHeaderQuotedParamValueContext(value, name) {
  3694. willCoercionThrow(value) &&
  3695. (console.error(
  3696. "The provided `%s` option is an unsupported type %s. This value must be coerced to a string before using it here.",
  3697. name,
  3698. typeName(value)
  3699. ),
  3700. testStringCoercion(value));
  3701. return ("" + value).replace(
  3702. regexForLinkHeaderQuotedParamValueContext,
  3703. escapeStringForLinkHeaderQuotedParamValueContextReplacer
  3704. );
  3705. }
  3706. function escapeStringForLinkHeaderQuotedParamValueContextReplacer(match) {
  3707. switch (match) {
  3708. case '"':
  3709. return "%22";
  3710. case "'":
  3711. return "%27";
  3712. case ";":
  3713. return "%3B";
  3714. case ",":
  3715. return "%2C";
  3716. case "\n":
  3717. return "%0A";
  3718. case "\r":
  3719. return "%0D";
  3720. default:
  3721. throw Error(
  3722. "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"
  3723. );
  3724. }
  3725. }
  3726. function hoistStyleQueueDependency(styleQueue) {
  3727. this.styles.add(styleQueue);
  3728. }
  3729. function hoistStylesheetDependency(stylesheet) {
  3730. this.stylesheets.add(stylesheet);
  3731. }
  3732. function hoistHoistables(parentState, childState) {
  3733. childState.styles.forEach(hoistStyleQueueDependency, parentState);
  3734. childState.stylesheets.forEach(hoistStylesheetDependency, parentState);
  3735. childState.suspenseyImages && (parentState.suspenseyImages = !0);
  3736. }
  3737. function hasSuspenseyContent(hoistableState) {
  3738. return (
  3739. 0 < hoistableState.stylesheets.size || hoistableState.suspenseyImages
  3740. );
  3741. }
  3742. function getComponentNameFromType(type) {
  3743. if (null == type) return null;
  3744. if ("function" === typeof type)
  3745. return type.$$typeof === REACT_CLIENT_REFERENCE
  3746. ? null
  3747. : type.displayName || type.name || null;
  3748. if ("string" === typeof type) return type;
  3749. switch (type) {
  3750. case REACT_FRAGMENT_TYPE:
  3751. return "Fragment";
  3752. case REACT_PROFILER_TYPE:
  3753. return "Profiler";
  3754. case REACT_STRICT_MODE_TYPE:
  3755. return "StrictMode";
  3756. case REACT_SUSPENSE_TYPE:
  3757. return "Suspense";
  3758. case REACT_SUSPENSE_LIST_TYPE:
  3759. return "SuspenseList";
  3760. case REACT_ACTIVITY_TYPE:
  3761. return "Activity";
  3762. }
  3763. if ("object" === typeof type)
  3764. switch (
  3765. ("number" === typeof type.tag &&
  3766. console.error(
  3767. "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
  3768. ),
  3769. type.$$typeof)
  3770. ) {
  3771. case REACT_PORTAL_TYPE:
  3772. return "Portal";
  3773. case REACT_CONTEXT_TYPE:
  3774. return type.displayName || "Context";
  3775. case REACT_CONSUMER_TYPE:
  3776. return (type._context.displayName || "Context") + ".Consumer";
  3777. case REACT_FORWARD_REF_TYPE:
  3778. var innerType = type.render;
  3779. type = type.displayName;
  3780. type ||
  3781. ((type = innerType.displayName || innerType.name || ""),
  3782. (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
  3783. return type;
  3784. case REACT_MEMO_TYPE:
  3785. return (
  3786. (innerType = type.displayName || null),
  3787. null !== innerType
  3788. ? innerType
  3789. : getComponentNameFromType(type.type) || "Memo"
  3790. );
  3791. case REACT_LAZY_TYPE:
  3792. innerType = type._payload;
  3793. type = type._init;
  3794. try {
  3795. return getComponentNameFromType(type(innerType));
  3796. } catch (x) {}
  3797. }
  3798. return null;
  3799. }
  3800. function popToNearestCommonAncestor(prev, next) {
  3801. if (prev !== next) {
  3802. prev.context._currentValue = prev.parentValue;
  3803. prev = prev.parent;
  3804. var parentNext = next.parent;
  3805. if (null === prev) {
  3806. if (null !== parentNext)
  3807. throw Error(
  3808. "The stacks must reach the root at the same time. This is a bug in React."
  3809. );
  3810. } else {
  3811. if (null === parentNext)
  3812. throw Error(
  3813. "The stacks must reach the root at the same time. This is a bug in React."
  3814. );
  3815. popToNearestCommonAncestor(prev, parentNext);
  3816. }
  3817. next.context._currentValue = next.value;
  3818. }
  3819. }
  3820. function popAllPrevious(prev) {
  3821. prev.context._currentValue = prev.parentValue;
  3822. prev = prev.parent;
  3823. null !== prev && popAllPrevious(prev);
  3824. }
  3825. function pushAllNext(next) {
  3826. var parentNext = next.parent;
  3827. null !== parentNext && pushAllNext(parentNext);
  3828. next.context._currentValue = next.value;
  3829. }
  3830. function popPreviousToCommonLevel(prev, next) {
  3831. prev.context._currentValue = prev.parentValue;
  3832. prev = prev.parent;
  3833. if (null === prev)
  3834. throw Error(
  3835. "The depth must equal at least at zero before reaching the root. This is a bug in React."
  3836. );
  3837. prev.depth === next.depth
  3838. ? popToNearestCommonAncestor(prev, next)
  3839. : popPreviousToCommonLevel(prev, next);
  3840. }
  3841. function popNextToCommonLevel(prev, next) {
  3842. var parentNext = next.parent;
  3843. if (null === parentNext)
  3844. throw Error(
  3845. "The depth must equal at least at zero before reaching the root. This is a bug in React."
  3846. );
  3847. prev.depth === parentNext.depth
  3848. ? popToNearestCommonAncestor(prev, parentNext)
  3849. : popNextToCommonLevel(prev, parentNext);
  3850. next.context._currentValue = next.value;
  3851. }
  3852. function switchContext(newSnapshot) {
  3853. var prev = currentActiveSnapshot;
  3854. prev !== newSnapshot &&
  3855. (null === prev
  3856. ? pushAllNext(newSnapshot)
  3857. : null === newSnapshot
  3858. ? popAllPrevious(prev)
  3859. : prev.depth === newSnapshot.depth
  3860. ? popToNearestCommonAncestor(prev, newSnapshot)
  3861. : prev.depth > newSnapshot.depth
  3862. ? popPreviousToCommonLevel(prev, newSnapshot)
  3863. : popNextToCommonLevel(prev, newSnapshot),
  3864. (currentActiveSnapshot = newSnapshot));
  3865. }
  3866. function warnOnInvalidCallback(callback) {
  3867. if (null !== callback && "function" !== typeof callback) {
  3868. var key = String(callback);
  3869. didWarnOnInvalidCallback.has(key) ||
  3870. (didWarnOnInvalidCallback.add(key),
  3871. console.error(
  3872. "Expected the last optional `callback` argument to be a function. Instead received: %s.",
  3873. callback
  3874. ));
  3875. }
  3876. }
  3877. function warnNoop(publicInstance, callerName) {
  3878. publicInstance =
  3879. ((publicInstance = publicInstance.constructor) &&
  3880. getComponentNameFromType(publicInstance)) ||
  3881. "ReactClass";
  3882. var warningKey = publicInstance + "." + callerName;
  3883. didWarnAboutNoopUpdateForComponent[warningKey] ||
  3884. (console.error(
  3885. "Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.\n\nPlease check the code for the %s component.",
  3886. callerName,
  3887. publicInstance
  3888. ),
  3889. (didWarnAboutNoopUpdateForComponent[warningKey] = !0));
  3890. }
  3891. function pushTreeContext(baseContext, totalChildren, index) {
  3892. var baseIdWithLeadingBit = baseContext.id;
  3893. baseContext = baseContext.overflow;
  3894. var baseLength = 32 - clz32(baseIdWithLeadingBit) - 1;
  3895. baseIdWithLeadingBit &= ~(1 << baseLength);
  3896. index += 1;
  3897. var length = 32 - clz32(totalChildren) + baseLength;
  3898. if (30 < length) {
  3899. var numberOfOverflowBits = baseLength - (baseLength % 5);
  3900. length = (
  3901. baseIdWithLeadingBit &
  3902. ((1 << numberOfOverflowBits) - 1)
  3903. ).toString(32);
  3904. baseIdWithLeadingBit >>= numberOfOverflowBits;
  3905. baseLength -= numberOfOverflowBits;
  3906. return {
  3907. id:
  3908. (1 << (32 - clz32(totalChildren) + baseLength)) |
  3909. (index << baseLength) |
  3910. baseIdWithLeadingBit,
  3911. overflow: length + baseContext
  3912. };
  3913. }
  3914. return {
  3915. id: (1 << length) | (index << baseLength) | baseIdWithLeadingBit,
  3916. overflow: baseContext
  3917. };
  3918. }
  3919. function clz32Fallback(x) {
  3920. x >>>= 0;
  3921. return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;
  3922. }
  3923. function noop() {}
  3924. function trackUsedThenable(thenableState, thenable, index) {
  3925. index = thenableState[index];
  3926. void 0 === index
  3927. ? thenableState.push(thenable)
  3928. : index !== thenable && (thenable.then(noop, noop), (thenable = index));
  3929. switch (thenable.status) {
  3930. case "fulfilled":
  3931. return thenable.value;
  3932. case "rejected":
  3933. throw thenable.reason;
  3934. default:
  3935. "string" === typeof thenable.status
  3936. ? thenable.then(noop, noop)
  3937. : ((thenableState = thenable),
  3938. (thenableState.status = "pending"),
  3939. thenableState.then(
  3940. function (fulfilledValue) {
  3941. if ("pending" === thenable.status) {
  3942. var fulfilledThenable = thenable;
  3943. fulfilledThenable.status = "fulfilled";
  3944. fulfilledThenable.value = fulfilledValue;
  3945. }
  3946. },
  3947. function (error) {
  3948. if ("pending" === thenable.status) {
  3949. var rejectedThenable = thenable;
  3950. rejectedThenable.status = "rejected";
  3951. rejectedThenable.reason = error;
  3952. }
  3953. }
  3954. ));
  3955. switch (thenable.status) {
  3956. case "fulfilled":
  3957. return thenable.value;
  3958. case "rejected":
  3959. throw thenable.reason;
  3960. }
  3961. suspendedThenable = thenable;
  3962. throw SuspenseException;
  3963. }
  3964. }
  3965. function getSuspendedThenable() {
  3966. if (null === suspendedThenable)
  3967. throw Error(
  3968. "Expected a suspended thenable. This is a bug in React. Please file an issue."
  3969. );
  3970. var thenable = suspendedThenable;
  3971. suspendedThenable = null;
  3972. return thenable;
  3973. }
  3974. function is(x, y) {
  3975. return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
  3976. }
  3977. function resolveCurrentlyRenderingComponent() {
  3978. if (null === currentlyRenderingComponent)
  3979. throw Error(
  3980. "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
  3981. );
  3982. isInHookUserCodeInDev &&
  3983. console.error(
  3984. "Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks"
  3985. );
  3986. return currentlyRenderingComponent;
  3987. }
  3988. function createHook() {
  3989. if (0 < numberOfReRenders)
  3990. throw Error("Rendered more hooks than during the previous render");
  3991. return { memoizedState: null, queue: null, next: null };
  3992. }
  3993. function createWorkInProgressHook() {
  3994. null === workInProgressHook
  3995. ? null === firstWorkInProgressHook
  3996. ? ((isReRender = !1),
  3997. (firstWorkInProgressHook = workInProgressHook = createHook()))
  3998. : ((isReRender = !0), (workInProgressHook = firstWorkInProgressHook))
  3999. : null === workInProgressHook.next
  4000. ? ((isReRender = !1),
  4001. (workInProgressHook = workInProgressHook.next = createHook()))
  4002. : ((isReRender = !0), (workInProgressHook = workInProgressHook.next));
  4003. return workInProgressHook;
  4004. }
  4005. function getThenableStateAfterSuspending() {
  4006. var state = thenableState;
  4007. thenableState = null;
  4008. return state;
  4009. }
  4010. function resetHooksState() {
  4011. isInHookUserCodeInDev = !1;
  4012. currentlyRenderingKeyPath =
  4013. currentlyRenderingRequest =
  4014. currentlyRenderingTask =
  4015. currentlyRenderingComponent =
  4016. null;
  4017. didScheduleRenderPhaseUpdate = !1;
  4018. firstWorkInProgressHook = null;
  4019. numberOfReRenders = 0;
  4020. workInProgressHook = renderPhaseUpdates = null;
  4021. }
  4022. function readContext(context) {
  4023. isInHookUserCodeInDev &&
  4024. console.error(
  4025. "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."
  4026. );
  4027. return context._currentValue;
  4028. }
  4029. function basicStateReducer(state, action) {
  4030. return "function" === typeof action ? action(state) : action;
  4031. }
  4032. function useReducer(reducer, initialArg, init) {
  4033. reducer !== basicStateReducer && (currentHookNameInDev = "useReducer");
  4034. currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
  4035. workInProgressHook = createWorkInProgressHook();
  4036. if (isReRender) {
  4037. init = workInProgressHook.queue;
  4038. initialArg = init.dispatch;
  4039. if (null !== renderPhaseUpdates) {
  4040. var firstRenderPhaseUpdate = renderPhaseUpdates.get(init);
  4041. if (void 0 !== firstRenderPhaseUpdate) {
  4042. renderPhaseUpdates.delete(init);
  4043. init = workInProgressHook.memoizedState;
  4044. do {
  4045. var action = firstRenderPhaseUpdate.action;
  4046. isInHookUserCodeInDev = !0;
  4047. init = reducer(init, action);
  4048. isInHookUserCodeInDev = !1;
  4049. firstRenderPhaseUpdate = firstRenderPhaseUpdate.next;
  4050. } while (null !== firstRenderPhaseUpdate);
  4051. workInProgressHook.memoizedState = init;
  4052. return [init, initialArg];
  4053. }
  4054. }
  4055. return [workInProgressHook.memoizedState, initialArg];
  4056. }
  4057. isInHookUserCodeInDev = !0;
  4058. reducer =
  4059. reducer === basicStateReducer
  4060. ? "function" === typeof initialArg
  4061. ? initialArg()
  4062. : initialArg
  4063. : void 0 !== init
  4064. ? init(initialArg)
  4065. : initialArg;
  4066. isInHookUserCodeInDev = !1;
  4067. workInProgressHook.memoizedState = reducer;
  4068. reducer = workInProgressHook.queue = { last: null, dispatch: null };
  4069. reducer = reducer.dispatch = dispatchAction.bind(
  4070. null,
  4071. currentlyRenderingComponent,
  4072. reducer
  4073. );
  4074. return [workInProgressHook.memoizedState, reducer];
  4075. }
  4076. function useMemo(nextCreate, deps) {
  4077. currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
  4078. workInProgressHook = createWorkInProgressHook();
  4079. deps = void 0 === deps ? null : deps;
  4080. if (null !== workInProgressHook) {
  4081. var prevState = workInProgressHook.memoizedState;
  4082. if (null !== prevState && null !== deps) {
  4083. a: {
  4084. var JSCompiler_inline_result = prevState[1];
  4085. if (null === JSCompiler_inline_result)
  4086. console.error(
  4087. "%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",
  4088. currentHookNameInDev
  4089. ),
  4090. (JSCompiler_inline_result = !1);
  4091. else {
  4092. deps.length !== JSCompiler_inline_result.length &&
  4093. console.error(
  4094. "The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s",
  4095. currentHookNameInDev,
  4096. "[" + deps.join(", ") + "]",
  4097. "[" + JSCompiler_inline_result.join(", ") + "]"
  4098. );
  4099. for (
  4100. var i = 0;
  4101. i < JSCompiler_inline_result.length && i < deps.length;
  4102. i++
  4103. )
  4104. if (!objectIs(deps[i], JSCompiler_inline_result[i])) {
  4105. JSCompiler_inline_result = !1;
  4106. break a;
  4107. }
  4108. JSCompiler_inline_result = !0;
  4109. }
  4110. }
  4111. if (JSCompiler_inline_result) return prevState[0];
  4112. }
  4113. }
  4114. isInHookUserCodeInDev = !0;
  4115. nextCreate = nextCreate();
  4116. isInHookUserCodeInDev = !1;
  4117. workInProgressHook.memoizedState = [nextCreate, deps];
  4118. return nextCreate;
  4119. }
  4120. function dispatchAction(componentIdentity, queue, action) {
  4121. if (25 <= numberOfReRenders)
  4122. throw Error(
  4123. "Too many re-renders. React limits the number of renders to prevent an infinite loop."
  4124. );
  4125. if (componentIdentity === currentlyRenderingComponent)
  4126. if (
  4127. ((didScheduleRenderPhaseUpdate = !0),
  4128. (componentIdentity = { action: action, next: null }),
  4129. null === renderPhaseUpdates && (renderPhaseUpdates = new Map()),
  4130. (action = renderPhaseUpdates.get(queue)),
  4131. void 0 === action)
  4132. )
  4133. renderPhaseUpdates.set(queue, componentIdentity);
  4134. else {
  4135. for (queue = action; null !== queue.next; ) queue = queue.next;
  4136. queue.next = componentIdentity;
  4137. }
  4138. }
  4139. function throwOnUseEffectEventCall() {
  4140. throw Error(
  4141. "A function wrapped in useEffectEvent can't be called during rendering."
  4142. );
  4143. }
  4144. function unsupportedStartTransition() {
  4145. throw Error("startTransition cannot be called during server rendering.");
  4146. }
  4147. function unsupportedSetOptimisticState() {
  4148. throw Error("Cannot update optimistic state while rendering.");
  4149. }
  4150. function useActionState(action, initialState, permalink) {
  4151. resolveCurrentlyRenderingComponent();
  4152. var actionStateHookIndex = actionStateCounter++,
  4153. request = currentlyRenderingRequest;
  4154. if ("function" === typeof action.$$FORM_ACTION) {
  4155. var nextPostbackStateKey = null,
  4156. componentKeyPath = currentlyRenderingKeyPath;
  4157. request = request.formState;
  4158. var isSignatureEqual = action.$$IS_SIGNATURE_EQUAL;
  4159. if (null !== request && "function" === typeof isSignatureEqual) {
  4160. var postbackKey = request[1];
  4161. isSignatureEqual.call(action, request[2], request[3]) &&
  4162. ((nextPostbackStateKey =
  4163. void 0 !== permalink
  4164. ? "p" + permalink
  4165. : "k" +
  4166. murmurhash3_32_gc(
  4167. JSON.stringify([
  4168. componentKeyPath,
  4169. null,
  4170. actionStateHookIndex
  4171. ]),
  4172. 0
  4173. )),
  4174. postbackKey === nextPostbackStateKey &&
  4175. ((actionStateMatchingIndex = actionStateHookIndex),
  4176. (initialState = request[0])));
  4177. }
  4178. var boundAction = action.bind(null, initialState);
  4179. action = function (payload) {
  4180. boundAction(payload);
  4181. };
  4182. "function" === typeof boundAction.$$FORM_ACTION &&
  4183. (action.$$FORM_ACTION = function (prefix) {
  4184. prefix = boundAction.$$FORM_ACTION(prefix);
  4185. void 0 !== permalink &&
  4186. (checkAttributeStringCoercion(permalink, "target"),
  4187. (permalink += ""),
  4188. (prefix.action = permalink));
  4189. var formData = prefix.data;
  4190. formData &&
  4191. (null === nextPostbackStateKey &&
  4192. (nextPostbackStateKey =
  4193. void 0 !== permalink
  4194. ? "p" + permalink
  4195. : "k" +
  4196. murmurhash3_32_gc(
  4197. JSON.stringify([
  4198. componentKeyPath,
  4199. null,
  4200. actionStateHookIndex
  4201. ]),
  4202. 0
  4203. )),
  4204. formData.append("$ACTION_KEY", nextPostbackStateKey));
  4205. return prefix;
  4206. });
  4207. return [initialState, action, !1];
  4208. }
  4209. var _boundAction = action.bind(null, initialState);
  4210. return [
  4211. initialState,
  4212. function (payload) {
  4213. _boundAction(payload);
  4214. },
  4215. !1
  4216. ];
  4217. }
  4218. function unwrapThenable(thenable) {
  4219. var index = thenableIndexCounter;
  4220. thenableIndexCounter += 1;
  4221. null === thenableState && (thenableState = []);
  4222. return trackUsedThenable(thenableState, thenable, index);
  4223. }
  4224. function unsupportedRefresh() {
  4225. throw Error("Cache cannot be refreshed during server rendering.");
  4226. }
  4227. function disabledLog() {}
  4228. function disableLogs() {
  4229. if (0 === disabledDepth) {
  4230. prevLog = console.log;
  4231. prevInfo = console.info;
  4232. prevWarn = console.warn;
  4233. prevError = console.error;
  4234. prevGroup = console.group;
  4235. prevGroupCollapsed = console.groupCollapsed;
  4236. prevGroupEnd = console.groupEnd;
  4237. var props = {
  4238. configurable: !0,
  4239. enumerable: !0,
  4240. value: disabledLog,
  4241. writable: !0
  4242. };
  4243. Object.defineProperties(console, {
  4244. info: props,
  4245. log: props,
  4246. warn: props,
  4247. error: props,
  4248. group: props,
  4249. groupCollapsed: props,
  4250. groupEnd: props
  4251. });
  4252. }
  4253. disabledDepth++;
  4254. }
  4255. function reenableLogs() {
  4256. disabledDepth--;
  4257. if (0 === disabledDepth) {
  4258. var props = { configurable: !0, enumerable: !0, writable: !0 };
  4259. Object.defineProperties(console, {
  4260. log: assign({}, props, { value: prevLog }),
  4261. info: assign({}, props, { value: prevInfo }),
  4262. warn: assign({}, props, { value: prevWarn }),
  4263. error: assign({}, props, { value: prevError }),
  4264. group: assign({}, props, { value: prevGroup }),
  4265. groupCollapsed: assign({}, props, { value: prevGroupCollapsed }),
  4266. groupEnd: assign({}, props, { value: prevGroupEnd })
  4267. });
  4268. }
  4269. 0 > disabledDepth &&
  4270. console.error(
  4271. "disabledDepth fell below zero. This is a bug in React. Please file an issue."
  4272. );
  4273. }
  4274. function prepareStackTrace(error, structuredStackTrace) {
  4275. error = (error.name || "Error") + ": " + (error.message || "");
  4276. for (var i = 0; i < structuredStackTrace.length; i++)
  4277. error += "\n at " + structuredStackTrace[i].toString();
  4278. return error;
  4279. }
  4280. function formatOwnerStack(error) {
  4281. var prevPrepareStackTrace = Error.prepareStackTrace;
  4282. Error.prepareStackTrace = prepareStackTrace;
  4283. error = error.stack;
  4284. Error.prepareStackTrace = prevPrepareStackTrace;
  4285. error.startsWith("Error: react-stack-top-frame\n") &&
  4286. (error = error.slice(29));
  4287. prevPrepareStackTrace = error.indexOf("\n");
  4288. -1 !== prevPrepareStackTrace &&
  4289. (error = error.slice(prevPrepareStackTrace + 1));
  4290. prevPrepareStackTrace = error.indexOf("react_stack_bottom_frame");
  4291. -1 !== prevPrepareStackTrace &&
  4292. (prevPrepareStackTrace = error.lastIndexOf(
  4293. "\n",
  4294. prevPrepareStackTrace
  4295. ));
  4296. if (-1 !== prevPrepareStackTrace)
  4297. error = error.slice(0, prevPrepareStackTrace);
  4298. else return "";
  4299. return error;
  4300. }
  4301. function describeBuiltInComponentFrame(name) {
  4302. if (void 0 === prefix)
  4303. try {
  4304. throw Error();
  4305. } catch (x) {
  4306. var match = x.stack.trim().match(/\n( *(at )?)/);
  4307. prefix = (match && match[1]) || "";
  4308. suffix =
  4309. -1 < x.stack.indexOf("\n at")
  4310. ? " (<anonymous>)"
  4311. : -1 < x.stack.indexOf("@")
  4312. ? "@unknown:0:0"
  4313. : "";
  4314. }
  4315. return "\n" + prefix + name + suffix;
  4316. }
  4317. function describeNativeComponentFrame(fn, construct) {
  4318. if (!fn || reentry) return "";
  4319. var frame = componentFrameCache.get(fn);
  4320. if (void 0 !== frame) return frame;
  4321. reentry = !0;
  4322. frame = Error.prepareStackTrace;
  4323. Error.prepareStackTrace = prepareStackTrace;
  4324. var previousDispatcher = null;
  4325. previousDispatcher = ReactSharedInternals.H;
  4326. ReactSharedInternals.H = null;
  4327. disableLogs();
  4328. try {
  4329. var RunInRootFrame = {
  4330. DetermineComponentFrameRoot: function () {
  4331. try {
  4332. if (construct) {
  4333. var Fake = function () {
  4334. throw Error();
  4335. };
  4336. Object.defineProperty(Fake.prototype, "props", {
  4337. set: function () {
  4338. throw Error();
  4339. }
  4340. });
  4341. if ("object" === typeof Reflect && Reflect.construct) {
  4342. try {
  4343. Reflect.construct(Fake, []);
  4344. } catch (x) {
  4345. var control = x;
  4346. }
  4347. Reflect.construct(fn, [], Fake);
  4348. } else {
  4349. try {
  4350. Fake.call();
  4351. } catch (x$0) {
  4352. control = x$0;
  4353. }
  4354. fn.call(Fake.prototype);
  4355. }
  4356. } else {
  4357. try {
  4358. throw Error();
  4359. } catch (x$1) {
  4360. control = x$1;
  4361. }
  4362. (Fake = fn()) &&
  4363. "function" === typeof Fake.catch &&
  4364. Fake.catch(function () {});
  4365. }
  4366. } catch (sample) {
  4367. if (sample && control && "string" === typeof sample.stack)
  4368. return [sample.stack, control.stack];
  4369. }
  4370. return [null, null];
  4371. }
  4372. };
  4373. RunInRootFrame.DetermineComponentFrameRoot.displayName =
  4374. "DetermineComponentFrameRoot";
  4375. var namePropDescriptor = Object.getOwnPropertyDescriptor(
  4376. RunInRootFrame.DetermineComponentFrameRoot,
  4377. "name"
  4378. );
  4379. namePropDescriptor &&
  4380. namePropDescriptor.configurable &&
  4381. Object.defineProperty(
  4382. RunInRootFrame.DetermineComponentFrameRoot,
  4383. "name",
  4384. { value: "DetermineComponentFrameRoot" }
  4385. );
  4386. var _RunInRootFrame$Deter =
  4387. RunInRootFrame.DetermineComponentFrameRoot(),
  4388. sampleStack = _RunInRootFrame$Deter[0],
  4389. controlStack = _RunInRootFrame$Deter[1];
  4390. if (sampleStack && controlStack) {
  4391. var sampleLines = sampleStack.split("\n"),
  4392. controlLines = controlStack.split("\n");
  4393. for (
  4394. _RunInRootFrame$Deter = namePropDescriptor = 0;
  4395. namePropDescriptor < sampleLines.length &&
  4396. !sampleLines[namePropDescriptor].includes(
  4397. "DetermineComponentFrameRoot"
  4398. );
  4399. )
  4400. namePropDescriptor++;
  4401. for (
  4402. ;
  4403. _RunInRootFrame$Deter < controlLines.length &&
  4404. !controlLines[_RunInRootFrame$Deter].includes(
  4405. "DetermineComponentFrameRoot"
  4406. );
  4407. )
  4408. _RunInRootFrame$Deter++;
  4409. if (
  4410. namePropDescriptor === sampleLines.length ||
  4411. _RunInRootFrame$Deter === controlLines.length
  4412. )
  4413. for (
  4414. namePropDescriptor = sampleLines.length - 1,
  4415. _RunInRootFrame$Deter = controlLines.length - 1;
  4416. 1 <= namePropDescriptor &&
  4417. 0 <= _RunInRootFrame$Deter &&
  4418. sampleLines[namePropDescriptor] !==
  4419. controlLines[_RunInRootFrame$Deter];
  4420. )
  4421. _RunInRootFrame$Deter--;
  4422. for (
  4423. ;
  4424. 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter;
  4425. namePropDescriptor--, _RunInRootFrame$Deter--
  4426. )
  4427. if (
  4428. sampleLines[namePropDescriptor] !==
  4429. controlLines[_RunInRootFrame$Deter]
  4430. ) {
  4431. if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) {
  4432. do
  4433. if (
  4434. (namePropDescriptor--,
  4435. _RunInRootFrame$Deter--,
  4436. 0 > _RunInRootFrame$Deter ||
  4437. sampleLines[namePropDescriptor] !==
  4438. controlLines[_RunInRootFrame$Deter])
  4439. ) {
  4440. var _frame =
  4441. "\n" +
  4442. sampleLines[namePropDescriptor].replace(
  4443. " at new ",
  4444. " at "
  4445. );
  4446. fn.displayName &&
  4447. _frame.includes("<anonymous>") &&
  4448. (_frame = _frame.replace("<anonymous>", fn.displayName));
  4449. "function" === typeof fn &&
  4450. componentFrameCache.set(fn, _frame);
  4451. return _frame;
  4452. }
  4453. while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter);
  4454. }
  4455. break;
  4456. }
  4457. }
  4458. } finally {
  4459. (reentry = !1),
  4460. (ReactSharedInternals.H = previousDispatcher),
  4461. reenableLogs(),
  4462. (Error.prepareStackTrace = frame);
  4463. }
  4464. sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "")
  4465. ? describeBuiltInComponentFrame(sampleLines)
  4466. : "";
  4467. "function" === typeof fn && componentFrameCache.set(fn, sampleLines);
  4468. return sampleLines;
  4469. }
  4470. function describeComponentStackByType(type) {
  4471. if ("string" === typeof type) return describeBuiltInComponentFrame(type);
  4472. if ("function" === typeof type)
  4473. return type.prototype && type.prototype.isReactComponent
  4474. ? describeNativeComponentFrame(type, !0)
  4475. : describeNativeComponentFrame(type, !1);
  4476. if ("object" === typeof type && null !== type) {
  4477. switch (type.$$typeof) {
  4478. case REACT_FORWARD_REF_TYPE:
  4479. return describeNativeComponentFrame(type.render, !1);
  4480. case REACT_MEMO_TYPE:
  4481. return describeNativeComponentFrame(type.type, !1);
  4482. case REACT_LAZY_TYPE:
  4483. var lazyComponent = type,
  4484. payload = lazyComponent._payload;
  4485. lazyComponent = lazyComponent._init;
  4486. try {
  4487. type = lazyComponent(payload);
  4488. } catch (x) {
  4489. return describeBuiltInComponentFrame("Lazy");
  4490. }
  4491. return describeComponentStackByType(type);
  4492. }
  4493. if ("string" === typeof type.name) {
  4494. a: {
  4495. payload = type.name;
  4496. lazyComponent = type.env;
  4497. type = type.debugLocation;
  4498. if (null != type) {
  4499. type = formatOwnerStack(type);
  4500. var idx = type.lastIndexOf("\n");
  4501. type = -1 === idx ? type : type.slice(idx + 1);
  4502. if (-1 !== type.indexOf(payload)) {
  4503. payload = "\n" + type;
  4504. break a;
  4505. }
  4506. }
  4507. payload = describeBuiltInComponentFrame(
  4508. payload + (lazyComponent ? " [" + lazyComponent + "]" : "")
  4509. );
  4510. }
  4511. return payload;
  4512. }
  4513. }
  4514. switch (type) {
  4515. case REACT_SUSPENSE_LIST_TYPE:
  4516. return describeBuiltInComponentFrame("SuspenseList");
  4517. case REACT_SUSPENSE_TYPE:
  4518. return describeBuiltInComponentFrame("Suspense");
  4519. }
  4520. return "";
  4521. }
  4522. function resetOwnerStackLimit() {
  4523. var now = getCurrentTime();
  4524. 1e3 < now - lastResetTime &&
  4525. ((ReactSharedInternals.recentlyCreatedOwnerStacks = 0),
  4526. (lastResetTime = now));
  4527. }
  4528. function isEligibleForOutlining(request, boundary) {
  4529. return (
  4530. (500 < boundary.byteSize ||
  4531. hasSuspenseyContent(boundary.contentState)) &&
  4532. null === boundary.contentPreamble
  4533. );
  4534. }
  4535. function defaultErrorHandler(error) {
  4536. if (
  4537. "object" === typeof error &&
  4538. null !== error &&
  4539. "string" === typeof error.environmentName
  4540. ) {
  4541. var JSCompiler_inline_result = error.environmentName;
  4542. error = [error].slice(0);
  4543. "string" === typeof error[0]
  4544. ? error.splice(
  4545. 0,
  4546. 1,
  4547. "\u001b[0m\u001b[7m%c%s\u001b[0m%c " + error[0],
  4548. "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
  4549. " " + JSCompiler_inline_result + " ",
  4550. ""
  4551. )
  4552. : error.splice(
  4553. 0,
  4554. 0,
  4555. "\u001b[0m\u001b[7m%c%s\u001b[0m%c",
  4556. "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
  4557. " " + JSCompiler_inline_result + " ",
  4558. ""
  4559. );
  4560. error.unshift(console);
  4561. JSCompiler_inline_result = bind.apply(console.error, error);
  4562. JSCompiler_inline_result();
  4563. } else console.error(error);
  4564. return null;
  4565. }
  4566. function RequestInstance(
  4567. resumableState,
  4568. renderState,
  4569. rootFormatContext,
  4570. progressiveChunkSize,
  4571. onError,
  4572. onAllReady,
  4573. onShellReady,
  4574. onShellError,
  4575. onFatalError,
  4576. onPostpone,
  4577. formState
  4578. ) {
  4579. var abortSet = new Set();
  4580. this.destination = null;
  4581. this.flushScheduled = !1;
  4582. this.resumableState = resumableState;
  4583. this.renderState = renderState;
  4584. this.rootFormatContext = rootFormatContext;
  4585. this.progressiveChunkSize =
  4586. void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize;
  4587. this.status = 10;
  4588. this.fatalError = null;
  4589. this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
  4590. this.completedPreambleSegments = this.completedRootSegment = null;
  4591. this.byteSize = 0;
  4592. this.abortableTasks = abortSet;
  4593. this.pingedTasks = [];
  4594. this.clientRenderedBoundaries = [];
  4595. this.completedBoundaries = [];
  4596. this.partialBoundaries = [];
  4597. this.trackedPostpones = null;
  4598. this.onError = void 0 === onError ? defaultErrorHandler : onError;
  4599. this.onPostpone = void 0 === onPostpone ? noop : onPostpone;
  4600. this.onAllReady = void 0 === onAllReady ? noop : onAllReady;
  4601. this.onShellReady = void 0 === onShellReady ? noop : onShellReady;
  4602. this.onShellError = void 0 === onShellError ? noop : onShellError;
  4603. this.onFatalError = void 0 === onFatalError ? noop : onFatalError;
  4604. this.formState = void 0 === formState ? null : formState;
  4605. this.didWarnForKey = null;
  4606. }
  4607. function createRequest(
  4608. children,
  4609. resumableState,
  4610. renderState,
  4611. rootFormatContext,
  4612. progressiveChunkSize,
  4613. onError,
  4614. onAllReady,
  4615. onShellReady,
  4616. onShellError,
  4617. onFatalError,
  4618. onPostpone,
  4619. formState
  4620. ) {
  4621. resetOwnerStackLimit();
  4622. resumableState = new RequestInstance(
  4623. resumableState,
  4624. renderState,
  4625. rootFormatContext,
  4626. progressiveChunkSize,
  4627. onError,
  4628. onAllReady,
  4629. onShellReady,
  4630. onShellError,
  4631. onFatalError,
  4632. onPostpone,
  4633. formState
  4634. );
  4635. renderState = createPendingSegment(
  4636. resumableState,
  4637. 0,
  4638. null,
  4639. rootFormatContext,
  4640. !1,
  4641. !1
  4642. );
  4643. renderState.parentFlushed = !0;
  4644. children = createRenderTask(
  4645. resumableState,
  4646. null,
  4647. children,
  4648. -1,
  4649. null,
  4650. renderState,
  4651. null,
  4652. null,
  4653. resumableState.abortableTasks,
  4654. null,
  4655. rootFormatContext,
  4656. null,
  4657. emptyTreeContext,
  4658. null,
  4659. null,
  4660. emptyContextObject,
  4661. null
  4662. );
  4663. pushComponentStack(children);
  4664. resumableState.pingedTasks.push(children);
  4665. return resumableState;
  4666. }
  4667. function createPrerenderRequest(
  4668. children,
  4669. resumableState,
  4670. renderState,
  4671. rootFormatContext,
  4672. progressiveChunkSize,
  4673. onError,
  4674. onAllReady,
  4675. onShellReady,
  4676. onShellError,
  4677. onFatalError,
  4678. onPostpone
  4679. ) {
  4680. children = createRequest(
  4681. children,
  4682. resumableState,
  4683. renderState,
  4684. rootFormatContext,
  4685. progressiveChunkSize,
  4686. onError,
  4687. onAllReady,
  4688. onShellReady,
  4689. onShellError,
  4690. onFatalError,
  4691. onPostpone,
  4692. void 0
  4693. );
  4694. children.trackedPostpones = {
  4695. workingMap: new Map(),
  4696. rootNodes: [],
  4697. rootSlots: null
  4698. };
  4699. return children;
  4700. }
  4701. function resumeRequest(
  4702. children,
  4703. postponedState,
  4704. renderState,
  4705. onError,
  4706. onAllReady,
  4707. onShellReady,
  4708. onShellError,
  4709. onFatalError,
  4710. onPostpone
  4711. ) {
  4712. resetOwnerStackLimit();
  4713. renderState = new RequestInstance(
  4714. postponedState.resumableState,
  4715. renderState,
  4716. postponedState.rootFormatContext,
  4717. postponedState.progressiveChunkSize,
  4718. onError,
  4719. onAllReady,
  4720. onShellReady,
  4721. onShellError,
  4722. onFatalError,
  4723. onPostpone,
  4724. null
  4725. );
  4726. renderState.nextSegmentId = postponedState.nextSegmentId;
  4727. if ("number" === typeof postponedState.replaySlots)
  4728. return (
  4729. (onError = createPendingSegment(
  4730. renderState,
  4731. 0,
  4732. null,
  4733. postponedState.rootFormatContext,
  4734. !1,
  4735. !1
  4736. )),
  4737. (onError.parentFlushed = !0),
  4738. (children = createRenderTask(
  4739. renderState,
  4740. null,
  4741. children,
  4742. -1,
  4743. null,
  4744. onError,
  4745. null,
  4746. null,
  4747. renderState.abortableTasks,
  4748. null,
  4749. postponedState.rootFormatContext,
  4750. null,
  4751. emptyTreeContext,
  4752. null,
  4753. null,
  4754. emptyContextObject,
  4755. null
  4756. )),
  4757. pushComponentStack(children),
  4758. renderState.pingedTasks.push(children),
  4759. renderState
  4760. );
  4761. children = createReplayTask(
  4762. renderState,
  4763. null,
  4764. {
  4765. nodes: postponedState.replayNodes,
  4766. slots: postponedState.replaySlots,
  4767. pendingTasks: 0
  4768. },
  4769. children,
  4770. -1,
  4771. null,
  4772. null,
  4773. renderState.abortableTasks,
  4774. null,
  4775. postponedState.rootFormatContext,
  4776. null,
  4777. emptyTreeContext,
  4778. null,
  4779. null,
  4780. emptyContextObject,
  4781. null
  4782. );
  4783. pushComponentStack(children);
  4784. renderState.pingedTasks.push(children);
  4785. return renderState;
  4786. }
  4787. function resumeAndPrerenderRequest(
  4788. children,
  4789. postponedState,
  4790. renderState,
  4791. onError,
  4792. onAllReady,
  4793. onShellReady,
  4794. onShellError,
  4795. onFatalError,
  4796. onPostpone
  4797. ) {
  4798. children = resumeRequest(
  4799. children,
  4800. postponedState,
  4801. renderState,
  4802. onError,
  4803. onAllReady,
  4804. onShellReady,
  4805. onShellError,
  4806. onFatalError,
  4807. onPostpone
  4808. );
  4809. children.trackedPostpones = {
  4810. workingMap: new Map(),
  4811. rootNodes: [],
  4812. rootSlots: null
  4813. };
  4814. return children;
  4815. }
  4816. function resolveRequest() {
  4817. if (currentRequest) return currentRequest;
  4818. if (supportsRequestStorage) {
  4819. var store = requestStorage.getStore();
  4820. if (store) return store;
  4821. }
  4822. return null;
  4823. }
  4824. function pingTask(request, task) {
  4825. request.pingedTasks.push(task);
  4826. 1 === request.pingedTasks.length &&
  4827. ((request.flushScheduled = null !== request.destination),
  4828. null !== request.trackedPostpones || 10 === request.status
  4829. ? scheduleMicrotask(function () {
  4830. return performWork(request);
  4831. })
  4832. : setTimeout(function () {
  4833. return performWork(request);
  4834. }, 0));
  4835. }
  4836. function createSuspenseBoundary(
  4837. request,
  4838. row,
  4839. fallbackAbortableTasks,
  4840. contentPreamble,
  4841. fallbackPreamble
  4842. ) {
  4843. fallbackAbortableTasks = {
  4844. status: PENDING,
  4845. rootSegmentID: -1,
  4846. parentFlushed: !1,
  4847. pendingTasks: 0,
  4848. row: row,
  4849. completedSegments: [],
  4850. byteSize: 0,
  4851. fallbackAbortableTasks: fallbackAbortableTasks,
  4852. errorDigest: null,
  4853. contentState: createHoistableState(),
  4854. fallbackState: createHoistableState(),
  4855. contentPreamble: contentPreamble,
  4856. fallbackPreamble: fallbackPreamble,
  4857. trackedContentKeyPath: null,
  4858. trackedFallbackNode: null,
  4859. errorMessage: null,
  4860. errorStack: null,
  4861. errorComponentStack: null
  4862. };
  4863. null !== row &&
  4864. (row.pendingTasks++,
  4865. (contentPreamble = row.boundaries),
  4866. null !== contentPreamble &&
  4867. (request.allPendingTasks++,
  4868. fallbackAbortableTasks.pendingTasks++,
  4869. contentPreamble.push(fallbackAbortableTasks)),
  4870. (request = row.inheritedHoistables),
  4871. null !== request &&
  4872. hoistHoistables(fallbackAbortableTasks.contentState, request));
  4873. return fallbackAbortableTasks;
  4874. }
  4875. function createRenderTask(
  4876. request,
  4877. thenableState,
  4878. node,
  4879. childIndex,
  4880. blockedBoundary,
  4881. blockedSegment,
  4882. blockedPreamble,
  4883. hoistableState,
  4884. abortSet,
  4885. keyPath,
  4886. formatContext,
  4887. context,
  4888. treeContext,
  4889. row,
  4890. componentStack,
  4891. legacyContext,
  4892. debugTask
  4893. ) {
  4894. request.allPendingTasks++;
  4895. null === blockedBoundary
  4896. ? request.pendingRootTasks++
  4897. : blockedBoundary.pendingTasks++;
  4898. null !== row && row.pendingTasks++;
  4899. var task = {
  4900. replay: null,
  4901. node: node,
  4902. childIndex: childIndex,
  4903. ping: function () {
  4904. return pingTask(request, task);
  4905. },
  4906. blockedBoundary: blockedBoundary,
  4907. blockedSegment: blockedSegment,
  4908. blockedPreamble: blockedPreamble,
  4909. hoistableState: hoistableState,
  4910. abortSet: abortSet,
  4911. keyPath: keyPath,
  4912. formatContext: formatContext,
  4913. context: context,
  4914. treeContext: treeContext,
  4915. row: row,
  4916. componentStack: componentStack,
  4917. thenableState: thenableState
  4918. };
  4919. task.debugTask = debugTask;
  4920. abortSet.add(task);
  4921. return task;
  4922. }
  4923. function createReplayTask(
  4924. request,
  4925. thenableState,
  4926. replay,
  4927. node,
  4928. childIndex,
  4929. blockedBoundary,
  4930. hoistableState,
  4931. abortSet,
  4932. keyPath,
  4933. formatContext,
  4934. context,
  4935. treeContext,
  4936. row,
  4937. componentStack,
  4938. legacyContext,
  4939. debugTask
  4940. ) {
  4941. request.allPendingTasks++;
  4942. null === blockedBoundary
  4943. ? request.pendingRootTasks++
  4944. : blockedBoundary.pendingTasks++;
  4945. null !== row && row.pendingTasks++;
  4946. replay.pendingTasks++;
  4947. var task = {
  4948. replay: replay,
  4949. node: node,
  4950. childIndex: childIndex,
  4951. ping: function () {
  4952. return pingTask(request, task);
  4953. },
  4954. blockedBoundary: blockedBoundary,
  4955. blockedSegment: null,
  4956. blockedPreamble: null,
  4957. hoistableState: hoistableState,
  4958. abortSet: abortSet,
  4959. keyPath: keyPath,
  4960. formatContext: formatContext,
  4961. context: context,
  4962. treeContext: treeContext,
  4963. row: row,
  4964. componentStack: componentStack,
  4965. thenableState: thenableState
  4966. };
  4967. task.debugTask = debugTask;
  4968. abortSet.add(task);
  4969. return task;
  4970. }
  4971. function createPendingSegment(
  4972. request,
  4973. index,
  4974. boundary,
  4975. parentFormatContext,
  4976. lastPushedText,
  4977. textEmbedded
  4978. ) {
  4979. return {
  4980. status: PENDING,
  4981. parentFlushed: !1,
  4982. id: -1,
  4983. index: index,
  4984. chunks: [],
  4985. children: [],
  4986. preambleChildren: [],
  4987. parentFormatContext: parentFormatContext,
  4988. boundary: boundary,
  4989. lastPushedText: lastPushedText,
  4990. textEmbedded: textEmbedded
  4991. };
  4992. }
  4993. function getCurrentStackInDEV() {
  4994. if (null === currentTaskInDEV || null === currentTaskInDEV.componentStack)
  4995. return "";
  4996. var componentStack = currentTaskInDEV.componentStack;
  4997. try {
  4998. var info = "";
  4999. if ("string" === typeof componentStack.type)
  5000. info += describeBuiltInComponentFrame(componentStack.type);
  5001. else if ("function" === typeof componentStack.type) {
  5002. if (!componentStack.owner) {
  5003. var JSCompiler_temp_const = info,
  5004. fn = componentStack.type,
  5005. name = fn ? fn.displayName || fn.name : "";
  5006. var JSCompiler_inline_result = name
  5007. ? describeBuiltInComponentFrame(name)
  5008. : "";
  5009. info = JSCompiler_temp_const + JSCompiler_inline_result;
  5010. }
  5011. } else
  5012. componentStack.owner ||
  5013. (info += describeComponentStackByType(componentStack.type));
  5014. for (; componentStack; )
  5015. (JSCompiler_temp_const = null),
  5016. null != componentStack.debugStack
  5017. ? (JSCompiler_temp_const = formatOwnerStack(
  5018. componentStack.debugStack
  5019. ))
  5020. : ((JSCompiler_inline_result = componentStack),
  5021. null != JSCompiler_inline_result.stack &&
  5022. (JSCompiler_temp_const =
  5023. "string" !== typeof JSCompiler_inline_result.stack
  5024. ? (JSCompiler_inline_result.stack = formatOwnerStack(
  5025. JSCompiler_inline_result.stack
  5026. ))
  5027. : JSCompiler_inline_result.stack)),
  5028. (componentStack = componentStack.owner) &&
  5029. JSCompiler_temp_const &&
  5030. (info += "\n" + JSCompiler_temp_const);
  5031. var JSCompiler_inline_result$jscomp$0 = info;
  5032. } catch (x) {
  5033. JSCompiler_inline_result$jscomp$0 =
  5034. "\nError generating stack: " + x.message + "\n" + x.stack;
  5035. }
  5036. return JSCompiler_inline_result$jscomp$0;
  5037. }
  5038. function pushHaltedAwaitOnComponentStack(task, debugInfo) {
  5039. if (null != debugInfo)
  5040. for (var i = debugInfo.length - 1; 0 <= i; i--) {
  5041. var info = debugInfo[i];
  5042. if ("string" === typeof info.name) break;
  5043. if ("number" === typeof info.time) break;
  5044. if (null != info.awaited) {
  5045. var bestStack = null == info.debugStack ? info.awaited : info;
  5046. if (void 0 !== bestStack.debugStack) {
  5047. task.componentStack = {
  5048. parent: task.componentStack,
  5049. type: info,
  5050. owner: bestStack.owner,
  5051. stack: bestStack.debugStack
  5052. };
  5053. task.debugTask = bestStack.debugTask;
  5054. break;
  5055. }
  5056. }
  5057. }
  5058. }
  5059. function pushServerComponentStack(task, debugInfo) {
  5060. if (null != debugInfo)
  5061. for (var i = 0; i < debugInfo.length; i++) {
  5062. var componentInfo = debugInfo[i];
  5063. "string" === typeof componentInfo.name &&
  5064. void 0 !== componentInfo.debugStack &&
  5065. ((task.componentStack = {
  5066. parent: task.componentStack,
  5067. type: componentInfo,
  5068. owner: componentInfo.owner,
  5069. stack: componentInfo.debugStack
  5070. }),
  5071. (task.debugTask = componentInfo.debugTask));
  5072. }
  5073. }
  5074. function pushComponentStack(task) {
  5075. var node = task.node;
  5076. if ("object" === typeof node && null !== node)
  5077. switch (node.$$typeof) {
  5078. case REACT_ELEMENT_TYPE:
  5079. var type = node.type,
  5080. owner = node._owner,
  5081. stack = node._debugStack;
  5082. pushServerComponentStack(task, node._debugInfo);
  5083. task.debugTask = node._debugTask;
  5084. task.componentStack = {
  5085. parent: task.componentStack,
  5086. type: type,
  5087. owner: owner,
  5088. stack: stack
  5089. };
  5090. break;
  5091. case REACT_LAZY_TYPE:
  5092. pushServerComponentStack(task, node._debugInfo);
  5093. break;
  5094. default:
  5095. "function" === typeof node.then &&
  5096. pushServerComponentStack(task, node._debugInfo);
  5097. }
  5098. }
  5099. function replaceSuspenseComponentStackWithSuspenseFallbackStack(
  5100. componentStack
  5101. ) {
  5102. return null === componentStack
  5103. ? null
  5104. : {
  5105. parent: componentStack.parent,
  5106. type: "Suspense Fallback",
  5107. owner: componentStack.owner,
  5108. stack: componentStack.stack
  5109. };
  5110. }
  5111. function getThrownInfo(node$jscomp$0) {
  5112. var errorInfo = {};
  5113. node$jscomp$0 &&
  5114. Object.defineProperty(errorInfo, "componentStack", {
  5115. configurable: !0,
  5116. enumerable: !0,
  5117. get: function () {
  5118. try {
  5119. var info = "",
  5120. node = node$jscomp$0;
  5121. do
  5122. (info += describeComponentStackByType(node.type)),
  5123. (node = node.parent);
  5124. while (node);
  5125. var stack = info;
  5126. } catch (x) {
  5127. stack = "\nError generating stack: " + x.message + "\n" + x.stack;
  5128. }
  5129. Object.defineProperty(errorInfo, "componentStack", {
  5130. value: stack
  5131. });
  5132. return stack;
  5133. }
  5134. });
  5135. return errorInfo;
  5136. }
  5137. function encodeErrorForBoundary(
  5138. boundary,
  5139. digest,
  5140. error,
  5141. thrownInfo,
  5142. wasAborted
  5143. ) {
  5144. boundary.errorDigest = digest;
  5145. error instanceof Error
  5146. ? ((digest = String(error.message)), (error = String(error.stack)))
  5147. : ((digest =
  5148. "object" === typeof error && null !== error
  5149. ? describeObjectForErrorMessage(error)
  5150. : String(error)),
  5151. (error = null));
  5152. wasAborted = wasAborted
  5153. ? "Switched to client rendering because the server rendering aborted due to:\n\n"
  5154. : "Switched to client rendering because the server rendering errored:\n\n";
  5155. boundary.errorMessage = wasAborted + digest;
  5156. boundary.errorStack = null !== error ? wasAborted + error : null;
  5157. boundary.errorComponentStack = thrownInfo.componentStack;
  5158. }
  5159. function logRecoverableError(request, error, errorInfo, debugTask) {
  5160. request = request.onError;
  5161. error = debugTask
  5162. ? debugTask.run(request.bind(null, error, errorInfo))
  5163. : request(error, errorInfo);
  5164. if (null != error && "string" !== typeof error)
  5165. console.error(
  5166. 'onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "%s" instead',
  5167. typeof error
  5168. );
  5169. else return error;
  5170. }
  5171. function fatalError(request, error, errorInfo, debugTask) {
  5172. errorInfo = request.onShellError;
  5173. var onFatalError = request.onFatalError;
  5174. debugTask
  5175. ? (debugTask.run(errorInfo.bind(null, error)),
  5176. debugTask.run(onFatalError.bind(null, error)))
  5177. : (errorInfo(error), onFatalError(error));
  5178. null !== request.destination
  5179. ? ((request.status = CLOSED),
  5180. closeWithError(request.destination, error))
  5181. : ((request.status = 13), (request.fatalError = error));
  5182. }
  5183. function finishSuspenseListRow(request, row) {
  5184. unblockSuspenseListRow(request, row.next, row.hoistables);
  5185. }
  5186. function unblockSuspenseListRow(
  5187. request,
  5188. unblockedRow,
  5189. inheritedHoistables
  5190. ) {
  5191. for (; null !== unblockedRow; ) {
  5192. null !== inheritedHoistables &&
  5193. (hoistHoistables(unblockedRow.hoistables, inheritedHoistables),
  5194. (unblockedRow.inheritedHoistables = inheritedHoistables));
  5195. var unblockedBoundaries = unblockedRow.boundaries;
  5196. if (null !== unblockedBoundaries) {
  5197. unblockedRow.boundaries = null;
  5198. for (var i = 0; i < unblockedBoundaries.length; i++) {
  5199. var unblockedBoundary = unblockedBoundaries[i];
  5200. null !== inheritedHoistables &&
  5201. hoistHoistables(
  5202. unblockedBoundary.contentState,
  5203. inheritedHoistables
  5204. );
  5205. finishedTask(request, unblockedBoundary, null, null);
  5206. }
  5207. }
  5208. unblockedRow.pendingTasks--;
  5209. if (0 < unblockedRow.pendingTasks) break;
  5210. inheritedHoistables = unblockedRow.hoistables;
  5211. unblockedRow = unblockedRow.next;
  5212. }
  5213. }
  5214. function tryToResolveTogetherRow(request, togetherRow) {
  5215. var boundaries = togetherRow.boundaries;
  5216. if (
  5217. null !== boundaries &&
  5218. togetherRow.pendingTasks === boundaries.length
  5219. ) {
  5220. for (
  5221. var allCompleteAndInlinable = !0, i = 0;
  5222. i < boundaries.length;
  5223. i++
  5224. ) {
  5225. var rowBoundary = boundaries[i];
  5226. if (
  5227. 1 !== rowBoundary.pendingTasks ||
  5228. rowBoundary.parentFlushed ||
  5229. isEligibleForOutlining(request, rowBoundary)
  5230. ) {
  5231. allCompleteAndInlinable = !1;
  5232. break;
  5233. }
  5234. }
  5235. allCompleteAndInlinable &&
  5236. unblockSuspenseListRow(request, togetherRow, togetherRow.hoistables);
  5237. }
  5238. }
  5239. function createSuspenseListRow(previousRow) {
  5240. var newRow = {
  5241. pendingTasks: 1,
  5242. boundaries: null,
  5243. hoistables: createHoistableState(),
  5244. inheritedHoistables: null,
  5245. together: !1,
  5246. next: null
  5247. };
  5248. null !== previousRow &&
  5249. 0 < previousRow.pendingTasks &&
  5250. (newRow.pendingTasks++,
  5251. (newRow.boundaries = []),
  5252. (previousRow.next = newRow));
  5253. return newRow;
  5254. }
  5255. function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
  5256. var prevKeyPath = task.keyPath,
  5257. prevTreeContext = task.treeContext,
  5258. prevRow = task.row,
  5259. previousComponentStack = task.componentStack;
  5260. var previousDebugTask = task.debugTask;
  5261. pushServerComponentStack(task, task.node.props.children._debugInfo);
  5262. task.keyPath = keyPath;
  5263. keyPath = rows.length;
  5264. var previousSuspenseListRow = null;
  5265. if (null !== task.replay) {
  5266. var resumeSlots = task.replay.slots;
  5267. if (null !== resumeSlots && "object" === typeof resumeSlots)
  5268. for (var n = 0; n < keyPath; n++) {
  5269. var i =
  5270. "backwards" !== revealOrder &&
  5271. "unstable_legacy-backwards" !== revealOrder
  5272. ? n
  5273. : keyPath - 1 - n,
  5274. node = rows[i];
  5275. task.row = previousSuspenseListRow = createSuspenseListRow(
  5276. previousSuspenseListRow
  5277. );
  5278. task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
  5279. var resumeSegmentID = resumeSlots[i];
  5280. "number" === typeof resumeSegmentID
  5281. ? (resumeNode(request, task, resumeSegmentID, node, i),
  5282. delete resumeSlots[i])
  5283. : renderNode(request, task, node, i);
  5284. 0 === --previousSuspenseListRow.pendingTasks &&
  5285. finishSuspenseListRow(request, previousSuspenseListRow);
  5286. }
  5287. else
  5288. for (resumeSlots = 0; resumeSlots < keyPath; resumeSlots++)
  5289. (n =
  5290. "backwards" !== revealOrder &&
  5291. "unstable_legacy-backwards" !== revealOrder
  5292. ? resumeSlots
  5293. : keyPath - 1 - resumeSlots),
  5294. (i = rows[n]),
  5295. warnForMissingKey(request, task, i),
  5296. (task.row = previousSuspenseListRow =
  5297. createSuspenseListRow(previousSuspenseListRow)),
  5298. (task.treeContext = pushTreeContext(prevTreeContext, keyPath, n)),
  5299. renderNode(request, task, i, n),
  5300. 0 === --previousSuspenseListRow.pendingTasks &&
  5301. finishSuspenseListRow(request, previousSuspenseListRow);
  5302. } else if (
  5303. "backwards" !== revealOrder &&
  5304. "unstable_legacy-backwards" !== revealOrder
  5305. )
  5306. for (revealOrder = 0; revealOrder < keyPath; revealOrder++)
  5307. (resumeSlots = rows[revealOrder]),
  5308. warnForMissingKey(request, task, resumeSlots),
  5309. (task.row = previousSuspenseListRow =
  5310. createSuspenseListRow(previousSuspenseListRow)),
  5311. (task.treeContext = pushTreeContext(
  5312. prevTreeContext,
  5313. keyPath,
  5314. revealOrder
  5315. )),
  5316. renderNode(request, task, resumeSlots, revealOrder),
  5317. 0 === --previousSuspenseListRow.pendingTasks &&
  5318. finishSuspenseListRow(request, previousSuspenseListRow);
  5319. else {
  5320. revealOrder = task.blockedSegment;
  5321. resumeSlots = revealOrder.children.length;
  5322. n = revealOrder.chunks.length;
  5323. for (i = keyPath - 1; 0 <= i; i--) {
  5324. node = rows[i];
  5325. task.row = previousSuspenseListRow = createSuspenseListRow(
  5326. previousSuspenseListRow
  5327. );
  5328. task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
  5329. resumeSegmentID = createPendingSegment(
  5330. request,
  5331. n,
  5332. null,
  5333. task.formatContext,
  5334. 0 === i ? revealOrder.lastPushedText : !0,
  5335. !0
  5336. );
  5337. revealOrder.children.splice(resumeSlots, 0, resumeSegmentID);
  5338. task.blockedSegment = resumeSegmentID;
  5339. warnForMissingKey(request, task, node);
  5340. try {
  5341. renderNode(request, task, node, i),
  5342. resumeSegmentID.lastPushedText &&
  5343. resumeSegmentID.textEmbedded &&
  5344. resumeSegmentID.chunks.push(textSeparator),
  5345. (resumeSegmentID.status = COMPLETED),
  5346. finishedSegment(request, task.blockedBoundary, resumeSegmentID),
  5347. 0 === --previousSuspenseListRow.pendingTasks &&
  5348. finishSuspenseListRow(request, previousSuspenseListRow);
  5349. } catch (thrownValue) {
  5350. throw (
  5351. ((resumeSegmentID.status =
  5352. 12 === request.status ? ABORTED : ERRORED),
  5353. thrownValue)
  5354. );
  5355. }
  5356. }
  5357. task.blockedSegment = revealOrder;
  5358. revealOrder.lastPushedText = !1;
  5359. }
  5360. null !== prevRow &&
  5361. null !== previousSuspenseListRow &&
  5362. 0 < previousSuspenseListRow.pendingTasks &&
  5363. (prevRow.pendingTasks++, (previousSuspenseListRow.next = prevRow));
  5364. task.treeContext = prevTreeContext;
  5365. task.row = prevRow;
  5366. task.keyPath = prevKeyPath;
  5367. task.componentStack = previousComponentStack;
  5368. task.debugTask = previousDebugTask;
  5369. }
  5370. function renderWithHooks(
  5371. request,
  5372. task,
  5373. keyPath,
  5374. Component,
  5375. props,
  5376. secondArg
  5377. ) {
  5378. var prevThenableState = task.thenableState;
  5379. task.thenableState = null;
  5380. currentlyRenderingComponent = {};
  5381. currentlyRenderingTask = task;
  5382. currentlyRenderingRequest = request;
  5383. currentlyRenderingKeyPath = keyPath;
  5384. isInHookUserCodeInDev = !1;
  5385. actionStateCounter = localIdCounter = 0;
  5386. actionStateMatchingIndex = -1;
  5387. thenableIndexCounter = 0;
  5388. thenableState = prevThenableState;
  5389. for (
  5390. request = callComponentInDEV(Component, props, secondArg);
  5391. didScheduleRenderPhaseUpdate;
  5392. )
  5393. (didScheduleRenderPhaseUpdate = !1),
  5394. (actionStateCounter = localIdCounter = 0),
  5395. (actionStateMatchingIndex = -1),
  5396. (thenableIndexCounter = 0),
  5397. (numberOfReRenders += 1),
  5398. (workInProgressHook = null),
  5399. (request = Component(props, secondArg));
  5400. resetHooksState();
  5401. return request;
  5402. }
  5403. function finishFunctionComponent(
  5404. request,
  5405. task,
  5406. keyPath,
  5407. children,
  5408. hasId,
  5409. actionStateCount,
  5410. actionStateMatchingIndex
  5411. ) {
  5412. var didEmitActionStateMarkers = !1;
  5413. if (0 !== actionStateCount && null !== request.formState) {
  5414. var segment = task.blockedSegment;
  5415. if (null !== segment) {
  5416. didEmitActionStateMarkers = !0;
  5417. segment = segment.chunks;
  5418. for (var i = 0; i < actionStateCount; i++)
  5419. i === actionStateMatchingIndex
  5420. ? segment.push(formStateMarkerIsMatching)
  5421. : segment.push(formStateMarkerIsNotMatching);
  5422. }
  5423. }
  5424. actionStateCount = task.keyPath;
  5425. task.keyPath = keyPath;
  5426. hasId
  5427. ? ((keyPath = task.treeContext),
  5428. (task.treeContext = pushTreeContext(keyPath, 1, 0)),
  5429. renderNode(request, task, children, -1),
  5430. (task.treeContext = keyPath))
  5431. : didEmitActionStateMarkers
  5432. ? renderNode(request, task, children, -1)
  5433. : renderNodeDestructive(request, task, children, -1);
  5434. task.keyPath = actionStateCount;
  5435. }
  5436. function renderElement(request, task, keyPath, type, props, ref) {
  5437. if ("function" === typeof type)
  5438. if (type.prototype && type.prototype.isReactComponent) {
  5439. var newProps = props;
  5440. if ("ref" in props) {
  5441. newProps = {};
  5442. for (var propName in props)
  5443. "ref" !== propName && (newProps[propName] = props[propName]);
  5444. }
  5445. var defaultProps = type.defaultProps;
  5446. if (defaultProps) {
  5447. newProps === props && (newProps = assign({}, newProps, props));
  5448. for (var _propName in defaultProps)
  5449. void 0 === newProps[_propName] &&
  5450. (newProps[_propName] = defaultProps[_propName]);
  5451. }
  5452. var resolvedProps = newProps;
  5453. var context = emptyContextObject,
  5454. contextType = type.contextType;
  5455. if (
  5456. "contextType" in type &&
  5457. null !== contextType &&
  5458. (void 0 === contextType ||
  5459. contextType.$$typeof !== REACT_CONTEXT_TYPE) &&
  5460. !didWarnAboutInvalidateContextType.has(type)
  5461. ) {
  5462. didWarnAboutInvalidateContextType.add(type);
  5463. var addendum =
  5464. void 0 === contextType
  5465. ? " However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file."
  5466. : "object" !== typeof contextType
  5467. ? " However, it is set to a " + typeof contextType + "."
  5468. : contextType.$$typeof === REACT_CONSUMER_TYPE
  5469. ? " Did you accidentally pass the Context.Consumer instead?"
  5470. : " However, it is set to an object with keys {" +
  5471. Object.keys(contextType).join(", ") +
  5472. "}.";
  5473. console.error(
  5474. "%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",
  5475. getComponentNameFromType(type) || "Component",
  5476. addendum
  5477. );
  5478. }
  5479. "object" === typeof contextType &&
  5480. null !== contextType &&
  5481. (context = contextType._currentValue);
  5482. var instance = new type(resolvedProps, context);
  5483. if (
  5484. "function" === typeof type.getDerivedStateFromProps &&
  5485. (null === instance.state || void 0 === instance.state)
  5486. ) {
  5487. var componentName = getComponentNameFromType(type) || "Component";
  5488. didWarnAboutUninitializedState.has(componentName) ||
  5489. (didWarnAboutUninitializedState.add(componentName),
  5490. console.error(
  5491. "`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",
  5492. componentName,
  5493. null === instance.state ? "null" : "undefined",
  5494. componentName
  5495. ));
  5496. }
  5497. if (
  5498. "function" === typeof type.getDerivedStateFromProps ||
  5499. "function" === typeof instance.getSnapshotBeforeUpdate
  5500. ) {
  5501. var foundWillMountName = null,
  5502. foundWillReceivePropsName = null,
  5503. foundWillUpdateName = null;
  5504. "function" === typeof instance.componentWillMount &&
  5505. !0 !== instance.componentWillMount.__suppressDeprecationWarning
  5506. ? (foundWillMountName = "componentWillMount")
  5507. : "function" === typeof instance.UNSAFE_componentWillMount &&
  5508. (foundWillMountName = "UNSAFE_componentWillMount");
  5509. "function" === typeof instance.componentWillReceiveProps &&
  5510. !0 !==
  5511. instance.componentWillReceiveProps.__suppressDeprecationWarning
  5512. ? (foundWillReceivePropsName = "componentWillReceiveProps")
  5513. : "function" ===
  5514. typeof instance.UNSAFE_componentWillReceiveProps &&
  5515. (foundWillReceivePropsName =
  5516. "UNSAFE_componentWillReceiveProps");
  5517. "function" === typeof instance.componentWillUpdate &&
  5518. !0 !== instance.componentWillUpdate.__suppressDeprecationWarning
  5519. ? (foundWillUpdateName = "componentWillUpdate")
  5520. : "function" === typeof instance.UNSAFE_componentWillUpdate &&
  5521. (foundWillUpdateName = "UNSAFE_componentWillUpdate");
  5522. if (
  5523. null !== foundWillMountName ||
  5524. null !== foundWillReceivePropsName ||
  5525. null !== foundWillUpdateName
  5526. ) {
  5527. var _componentName =
  5528. getComponentNameFromType(type) || "Component",
  5529. newApiName =
  5530. "function" === typeof type.getDerivedStateFromProps
  5531. ? "getDerivedStateFromProps()"
  5532. : "getSnapshotBeforeUpdate()";
  5533. didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName) ||
  5534. (didWarnAboutLegacyLifecyclesAndDerivedState.add(
  5535. _componentName
  5536. ),
  5537. console.error(
  5538. "Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://react.dev/link/unsafe-component-lifecycles",
  5539. _componentName,
  5540. newApiName,
  5541. null !== foundWillMountName
  5542. ? "\n " + foundWillMountName
  5543. : "",
  5544. null !== foundWillReceivePropsName
  5545. ? "\n " + foundWillReceivePropsName
  5546. : "",
  5547. null !== foundWillUpdateName
  5548. ? "\n " + foundWillUpdateName
  5549. : ""
  5550. ));
  5551. }
  5552. }
  5553. var name = getComponentNameFromType(type) || "Component";
  5554. instance.render ||
  5555. (type.prototype && "function" === typeof type.prototype.render
  5556. ? console.error(
  5557. "No `render` method found on the %s instance: did you accidentally return an object from the constructor?",
  5558. name
  5559. )
  5560. : console.error(
  5561. "No `render` method found on the %s instance: you may have forgotten to define `render`.",
  5562. name
  5563. ));
  5564. !instance.getInitialState ||
  5565. instance.getInitialState.isReactClassApproved ||
  5566. instance.state ||
  5567. console.error(
  5568. "getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",
  5569. name
  5570. );
  5571. instance.getDefaultProps &&
  5572. !instance.getDefaultProps.isReactClassApproved &&
  5573. console.error(
  5574. "getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",
  5575. name
  5576. );
  5577. instance.contextType &&
  5578. console.error(
  5579. "contextType was defined as an instance property on %s. Use a static property to define contextType instead.",
  5580. name
  5581. );
  5582. type.childContextTypes &&
  5583. !didWarnAboutChildContextTypes.has(type) &&
  5584. (didWarnAboutChildContextTypes.add(type),
  5585. console.error(
  5586. "%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",
  5587. name
  5588. ));
  5589. type.contextTypes &&
  5590. !didWarnAboutContextTypes$1.has(type) &&
  5591. (didWarnAboutContextTypes$1.add(type),
  5592. console.error(
  5593. "%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",
  5594. name
  5595. ));
  5596. "function" === typeof instance.componentShouldUpdate &&
  5597. console.error(
  5598. "%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",
  5599. name
  5600. );
  5601. type.prototype &&
  5602. type.prototype.isPureReactComponent &&
  5603. "undefined" !== typeof instance.shouldComponentUpdate &&
  5604. console.error(
  5605. "%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",
  5606. getComponentNameFromType(type) || "A pure component"
  5607. );
  5608. "function" === typeof instance.componentDidUnmount &&
  5609. console.error(
  5610. "%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",
  5611. name
  5612. );
  5613. "function" === typeof instance.componentDidReceiveProps &&
  5614. console.error(
  5615. "%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",
  5616. name
  5617. );
  5618. "function" === typeof instance.componentWillRecieveProps &&
  5619. console.error(
  5620. "%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",
  5621. name
  5622. );
  5623. "function" === typeof instance.UNSAFE_componentWillRecieveProps &&
  5624. console.error(
  5625. "%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",
  5626. name
  5627. );
  5628. var hasMutatedProps = instance.props !== resolvedProps;
  5629. void 0 !== instance.props &&
  5630. hasMutatedProps &&
  5631. console.error(
  5632. "When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",
  5633. name
  5634. );
  5635. instance.defaultProps &&
  5636. console.error(
  5637. "Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",
  5638. name,
  5639. name
  5640. );
  5641. "function" !== typeof instance.getSnapshotBeforeUpdate ||
  5642. "function" === typeof instance.componentDidUpdate ||
  5643. didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(type) ||
  5644. (didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(type),
  5645. console.error(
  5646. "%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",
  5647. getComponentNameFromType(type)
  5648. ));
  5649. "function" === typeof instance.getDerivedStateFromProps &&
  5650. console.error(
  5651. "%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",
  5652. name
  5653. );
  5654. "function" === typeof instance.getDerivedStateFromError &&
  5655. console.error(
  5656. "%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",
  5657. name
  5658. );
  5659. "function" === typeof type.getSnapshotBeforeUpdate &&
  5660. console.error(
  5661. "%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",
  5662. name
  5663. );
  5664. var state = instance.state;
  5665. state &&
  5666. ("object" !== typeof state || isArrayImpl(state)) &&
  5667. console.error("%s.state: must be set to an object or null", name);
  5668. "function" === typeof instance.getChildContext &&
  5669. "object" !== typeof type.childContextTypes &&
  5670. console.error(
  5671. "%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",
  5672. name
  5673. );
  5674. var initialState = void 0 !== instance.state ? instance.state : null;
  5675. instance.updater = classComponentUpdater;
  5676. instance.props = resolvedProps;
  5677. instance.state = initialState;
  5678. var internalInstance = { queue: [], replace: !1 };
  5679. instance._reactInternals = internalInstance;
  5680. var contextType$jscomp$0 = type.contextType;
  5681. instance.context =
  5682. "object" === typeof contextType$jscomp$0 &&
  5683. null !== contextType$jscomp$0
  5684. ? contextType$jscomp$0._currentValue
  5685. : emptyContextObject;
  5686. if (instance.state === resolvedProps) {
  5687. var componentName$jscomp$0 =
  5688. getComponentNameFromType(type) || "Component";
  5689. didWarnAboutDirectlyAssigningPropsToState.has(
  5690. componentName$jscomp$0
  5691. ) ||
  5692. (didWarnAboutDirectlyAssigningPropsToState.add(
  5693. componentName$jscomp$0
  5694. ),
  5695. console.error(
  5696. "%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",
  5697. componentName$jscomp$0
  5698. ));
  5699. }
  5700. var getDerivedStateFromProps = type.getDerivedStateFromProps;
  5701. if ("function" === typeof getDerivedStateFromProps) {
  5702. var partialState = getDerivedStateFromProps(
  5703. resolvedProps,
  5704. initialState
  5705. );
  5706. if (void 0 === partialState) {
  5707. var componentName$jscomp$1 =
  5708. getComponentNameFromType(type) || "Component";
  5709. didWarnAboutUndefinedDerivedState.has(componentName$jscomp$1) ||
  5710. (didWarnAboutUndefinedDerivedState.add(componentName$jscomp$1),
  5711. console.error(
  5712. "%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",
  5713. componentName$jscomp$1
  5714. ));
  5715. }
  5716. var JSCompiler_inline_result =
  5717. null === partialState || void 0 === partialState
  5718. ? initialState
  5719. : assign({}, initialState, partialState);
  5720. instance.state = JSCompiler_inline_result;
  5721. }
  5722. if (
  5723. "function" !== typeof type.getDerivedStateFromProps &&
  5724. "function" !== typeof instance.getSnapshotBeforeUpdate &&
  5725. ("function" === typeof instance.UNSAFE_componentWillMount ||
  5726. "function" === typeof instance.componentWillMount)
  5727. ) {
  5728. var oldState = instance.state;
  5729. if ("function" === typeof instance.componentWillMount) {
  5730. if (
  5731. !0 !== instance.componentWillMount.__suppressDeprecationWarning
  5732. ) {
  5733. var componentName$jscomp$2 =
  5734. getComponentNameFromType(type) || "Unknown";
  5735. didWarnAboutDeprecatedWillMount[componentName$jscomp$2] ||
  5736. (console.warn(
  5737. "componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.\n\nPlease update the following components: %s",
  5738. componentName$jscomp$2
  5739. ),
  5740. (didWarnAboutDeprecatedWillMount[componentName$jscomp$2] =
  5741. !0));
  5742. }
  5743. instance.componentWillMount();
  5744. }
  5745. "function" === typeof instance.UNSAFE_componentWillMount &&
  5746. instance.UNSAFE_componentWillMount();
  5747. oldState !== instance.state &&
  5748. (console.error(
  5749. "%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",
  5750. getComponentNameFromType(type) || "Component"
  5751. ),
  5752. classComponentUpdater.enqueueReplaceState(
  5753. instance,
  5754. instance.state,
  5755. null
  5756. ));
  5757. if (
  5758. null !== internalInstance.queue &&
  5759. 0 < internalInstance.queue.length
  5760. ) {
  5761. var oldQueue = internalInstance.queue,
  5762. oldReplace = internalInstance.replace;
  5763. internalInstance.queue = null;
  5764. internalInstance.replace = !1;
  5765. if (oldReplace && 1 === oldQueue.length)
  5766. instance.state = oldQueue[0];
  5767. else {
  5768. for (
  5769. var nextState = oldReplace ? oldQueue[0] : instance.state,
  5770. dontMutate = !0,
  5771. i = oldReplace ? 1 : 0;
  5772. i < oldQueue.length;
  5773. i++
  5774. ) {
  5775. var partial = oldQueue[i],
  5776. partialState$jscomp$0 =
  5777. "function" === typeof partial
  5778. ? partial.call(
  5779. instance,
  5780. nextState,
  5781. resolvedProps,
  5782. void 0
  5783. )
  5784. : partial;
  5785. null != partialState$jscomp$0 &&
  5786. (dontMutate
  5787. ? ((dontMutate = !1),
  5788. (nextState = assign(
  5789. {},
  5790. nextState,
  5791. partialState$jscomp$0
  5792. )))
  5793. : assign(nextState, partialState$jscomp$0));
  5794. }
  5795. instance.state = nextState;
  5796. }
  5797. } else internalInstance.queue = null;
  5798. }
  5799. var nextChildren = callRenderInDEV(instance);
  5800. if (12 === request.status) throw null;
  5801. instance.props !== resolvedProps &&
  5802. (didWarnAboutReassigningProps ||
  5803. console.error(
  5804. "It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",
  5805. getComponentNameFromType(type) || "a component"
  5806. ),
  5807. (didWarnAboutReassigningProps = !0));
  5808. var prevKeyPath = task.keyPath;
  5809. task.keyPath = keyPath;
  5810. renderNodeDestructive(request, task, nextChildren, -1);
  5811. task.keyPath = prevKeyPath;
  5812. } else {
  5813. if (type.prototype && "function" === typeof type.prototype.render) {
  5814. var componentName$jscomp$3 =
  5815. getComponentNameFromType(type) || "Unknown";
  5816. didWarnAboutBadClass[componentName$jscomp$3] ||
  5817. (console.error(
  5818. "The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",
  5819. componentName$jscomp$3,
  5820. componentName$jscomp$3
  5821. ),
  5822. (didWarnAboutBadClass[componentName$jscomp$3] = !0));
  5823. }
  5824. var value = renderWithHooks(
  5825. request,
  5826. task,
  5827. keyPath,
  5828. type,
  5829. props,
  5830. void 0
  5831. );
  5832. if (12 === request.status) throw null;
  5833. var hasId = 0 !== localIdCounter,
  5834. actionStateCount = actionStateCounter,
  5835. actionStateMatchingIndex$jscomp$0 = actionStateMatchingIndex;
  5836. if (type.contextTypes) {
  5837. var _componentName$jscomp$0 =
  5838. getComponentNameFromType(type) || "Unknown";
  5839. didWarnAboutContextTypes[_componentName$jscomp$0] ||
  5840. ((didWarnAboutContextTypes[_componentName$jscomp$0] = !0),
  5841. console.error(
  5842. "%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",
  5843. _componentName$jscomp$0
  5844. ));
  5845. }
  5846. type &&
  5847. type.childContextTypes &&
  5848. console.error(
  5849. "childContextTypes cannot be defined on a function component.\n %s.childContextTypes = ...",
  5850. type.displayName || type.name || "Component"
  5851. );
  5852. if ("function" === typeof type.getDerivedStateFromProps) {
  5853. var componentName$jscomp$4 =
  5854. getComponentNameFromType(type) || "Unknown";
  5855. didWarnAboutGetDerivedStateOnFunctionComponent[
  5856. componentName$jscomp$4
  5857. ] ||
  5858. (console.error(
  5859. "%s: Function components do not support getDerivedStateFromProps.",
  5860. componentName$jscomp$4
  5861. ),
  5862. (didWarnAboutGetDerivedStateOnFunctionComponent[
  5863. componentName$jscomp$4
  5864. ] = !0));
  5865. }
  5866. if (
  5867. "object" === typeof type.contextType &&
  5868. null !== type.contextType
  5869. ) {
  5870. var _componentName2 = getComponentNameFromType(type) || "Unknown";
  5871. didWarnAboutContextTypeOnFunctionComponent[_componentName2] ||
  5872. (console.error(
  5873. "%s: Function components do not support contextType.",
  5874. _componentName2
  5875. ),
  5876. (didWarnAboutContextTypeOnFunctionComponent[_componentName2] =
  5877. !0));
  5878. }
  5879. finishFunctionComponent(
  5880. request,
  5881. task,
  5882. keyPath,
  5883. value,
  5884. hasId,
  5885. actionStateCount,
  5886. actionStateMatchingIndex$jscomp$0
  5887. );
  5888. }
  5889. else if ("string" === typeof type) {
  5890. var segment = task.blockedSegment;
  5891. if (null === segment) {
  5892. var children = props.children,
  5893. prevContext = task.formatContext,
  5894. prevKeyPath$jscomp$0 = task.keyPath;
  5895. task.formatContext = getChildFormatContext(prevContext, type, props);
  5896. task.keyPath = keyPath;
  5897. renderNode(request, task, children, -1);
  5898. task.formatContext = prevContext;
  5899. task.keyPath = prevKeyPath$jscomp$0;
  5900. } else {
  5901. var _children = pushStartInstance(
  5902. segment.chunks,
  5903. type,
  5904. props,
  5905. request.resumableState,
  5906. request.renderState,
  5907. task.blockedPreamble,
  5908. task.hoistableState,
  5909. task.formatContext,
  5910. segment.lastPushedText
  5911. );
  5912. segment.lastPushedText = !1;
  5913. var _prevContext2 = task.formatContext,
  5914. _prevKeyPath3 = task.keyPath;
  5915. task.keyPath = keyPath;
  5916. if (
  5917. (task.formatContext = getChildFormatContext(
  5918. _prevContext2,
  5919. type,
  5920. props
  5921. )).insertionMode === HTML_HEAD_MODE
  5922. ) {
  5923. var preambleSegment = createPendingSegment(
  5924. request,
  5925. 0,
  5926. null,
  5927. task.formatContext,
  5928. !1,
  5929. !1
  5930. );
  5931. segment.preambleChildren.push(preambleSegment);
  5932. task.blockedSegment = preambleSegment;
  5933. try {
  5934. (preambleSegment.status = 6),
  5935. renderNode(request, task, _children, -1),
  5936. preambleSegment.lastPushedText &&
  5937. preambleSegment.textEmbedded &&
  5938. preambleSegment.chunks.push(textSeparator),
  5939. (preambleSegment.status = COMPLETED),
  5940. finishedSegment(request, task.blockedBoundary, preambleSegment);
  5941. } finally {
  5942. task.blockedSegment = segment;
  5943. }
  5944. } else renderNode(request, task, _children, -1);
  5945. task.formatContext = _prevContext2;
  5946. task.keyPath = _prevKeyPath3;
  5947. a: {
  5948. var target = segment.chunks,
  5949. resumableState = request.resumableState;
  5950. switch (type) {
  5951. case "title":
  5952. case "style":
  5953. case "script":
  5954. case "area":
  5955. case "base":
  5956. case "br":
  5957. case "col":
  5958. case "embed":
  5959. case "hr":
  5960. case "img":
  5961. case "input":
  5962. case "keygen":
  5963. case "link":
  5964. case "meta":
  5965. case "param":
  5966. case "source":
  5967. case "track":
  5968. case "wbr":
  5969. break a;
  5970. case "body":
  5971. if (_prevContext2.insertionMode <= HTML_HTML_MODE) {
  5972. resumableState.hasBody = !0;
  5973. break a;
  5974. }
  5975. break;
  5976. case "html":
  5977. if (_prevContext2.insertionMode === ROOT_HTML_MODE) {
  5978. resumableState.hasHtml = !0;
  5979. break a;
  5980. }
  5981. break;
  5982. case "head":
  5983. if (_prevContext2.insertionMode <= HTML_HTML_MODE) break a;
  5984. }
  5985. target.push(endChunkForTag(type));
  5986. }
  5987. segment.lastPushedText = !1;
  5988. }
  5989. } else {
  5990. switch (type) {
  5991. case REACT_LEGACY_HIDDEN_TYPE:
  5992. case REACT_STRICT_MODE_TYPE:
  5993. case REACT_PROFILER_TYPE:
  5994. case REACT_FRAGMENT_TYPE:
  5995. var prevKeyPath$jscomp$1 = task.keyPath;
  5996. task.keyPath = keyPath;
  5997. renderNodeDestructive(request, task, props.children, -1);
  5998. task.keyPath = prevKeyPath$jscomp$1;
  5999. return;
  6000. case REACT_ACTIVITY_TYPE:
  6001. var segment$jscomp$0 = task.blockedSegment;
  6002. if (null === segment$jscomp$0) {
  6003. if ("hidden" !== props.mode) {
  6004. var prevKeyPath$jscomp$2 = task.keyPath;
  6005. task.keyPath = keyPath;
  6006. renderNode(request, task, props.children, -1);
  6007. task.keyPath = prevKeyPath$jscomp$2;
  6008. }
  6009. } else if ("hidden" !== props.mode) {
  6010. segment$jscomp$0.chunks.push(startActivityBoundary);
  6011. segment$jscomp$0.lastPushedText = !1;
  6012. var _prevKeyPath4 = task.keyPath;
  6013. task.keyPath = keyPath;
  6014. renderNode(request, task, props.children, -1);
  6015. task.keyPath = _prevKeyPath4;
  6016. segment$jscomp$0.chunks.push(endActivityBoundary);
  6017. segment$jscomp$0.lastPushedText = !1;
  6018. }
  6019. return;
  6020. case REACT_SUSPENSE_LIST_TYPE:
  6021. a: {
  6022. var children$jscomp$0 = props.children,
  6023. revealOrder = props.revealOrder;
  6024. if (
  6025. "forwards" === revealOrder ||
  6026. "backwards" === revealOrder ||
  6027. "unstable_legacy-backwards" === revealOrder
  6028. ) {
  6029. if (isArrayImpl(children$jscomp$0)) {
  6030. renderSuspenseListRows(
  6031. request,
  6032. task,
  6033. keyPath,
  6034. children$jscomp$0,
  6035. revealOrder
  6036. );
  6037. break a;
  6038. }
  6039. var iteratorFn = getIteratorFn(children$jscomp$0);
  6040. if (iteratorFn) {
  6041. var iterator = iteratorFn.call(children$jscomp$0);
  6042. if (iterator) {
  6043. validateIterable(
  6044. task,
  6045. children$jscomp$0,
  6046. -1,
  6047. iterator,
  6048. iteratorFn
  6049. );
  6050. var step = iterator.next();
  6051. if (!step.done) {
  6052. var rows = [];
  6053. do rows.push(step.value), (step = iterator.next());
  6054. while (!step.done);
  6055. renderSuspenseListRows(
  6056. request,
  6057. task,
  6058. keyPath,
  6059. children$jscomp$0,
  6060. revealOrder
  6061. );
  6062. }
  6063. break a;
  6064. }
  6065. }
  6066. }
  6067. if ("together" === revealOrder) {
  6068. var _prevKeyPath2 = task.keyPath,
  6069. prevRow = task.row,
  6070. newRow = (task.row = createSuspenseListRow(null));
  6071. newRow.boundaries = [];
  6072. newRow.together = !0;
  6073. task.keyPath = keyPath;
  6074. renderNodeDestructive(request, task, children$jscomp$0, -1);
  6075. 0 === --newRow.pendingTasks &&
  6076. finishSuspenseListRow(request, newRow);
  6077. task.keyPath = _prevKeyPath2;
  6078. task.row = prevRow;
  6079. null !== prevRow &&
  6080. 0 < newRow.pendingTasks &&
  6081. (prevRow.pendingTasks++, (newRow.next = prevRow));
  6082. } else {
  6083. var prevKeyPath$jscomp$3 = task.keyPath;
  6084. task.keyPath = keyPath;
  6085. renderNodeDestructive(request, task, children$jscomp$0, -1);
  6086. task.keyPath = prevKeyPath$jscomp$3;
  6087. }
  6088. }
  6089. return;
  6090. case REACT_VIEW_TRANSITION_TYPE:
  6091. case REACT_SCOPE_TYPE:
  6092. throw Error(
  6093. "ReactDOMServer does not yet support scope components."
  6094. );
  6095. case REACT_SUSPENSE_TYPE:
  6096. a: if (null !== task.replay) {
  6097. var _prevKeyPath = task.keyPath,
  6098. _prevContext = task.formatContext,
  6099. _prevRow = task.row;
  6100. task.keyPath = keyPath;
  6101. task.formatContext = getSuspenseContentFormatContext(
  6102. request.resumableState,
  6103. _prevContext
  6104. );
  6105. task.row = null;
  6106. var _content = props.children;
  6107. try {
  6108. renderNode(request, task, _content, -1);
  6109. } finally {
  6110. (task.keyPath = _prevKeyPath),
  6111. (task.formatContext = _prevContext),
  6112. (task.row = _prevRow);
  6113. }
  6114. } else {
  6115. var prevKeyPath$jscomp$4 = task.keyPath,
  6116. prevContext$jscomp$0 = task.formatContext,
  6117. prevRow$jscomp$0 = task.row,
  6118. parentBoundary = task.blockedBoundary,
  6119. parentPreamble = task.blockedPreamble,
  6120. parentHoistableState = task.hoistableState,
  6121. parentSegment = task.blockedSegment,
  6122. fallback = props.fallback,
  6123. content = props.children,
  6124. fallbackAbortSet = new Set();
  6125. var newBoundary =
  6126. task.formatContext.insertionMode < HTML_MODE
  6127. ? createSuspenseBoundary(
  6128. request,
  6129. task.row,
  6130. fallbackAbortSet,
  6131. createPreambleState(),
  6132. createPreambleState()
  6133. )
  6134. : createSuspenseBoundary(
  6135. request,
  6136. task.row,
  6137. fallbackAbortSet,
  6138. null,
  6139. null
  6140. );
  6141. null !== request.trackedPostpones &&
  6142. (newBoundary.trackedContentKeyPath = keyPath);
  6143. var boundarySegment = createPendingSegment(
  6144. request,
  6145. parentSegment.chunks.length,
  6146. newBoundary,
  6147. task.formatContext,
  6148. !1,
  6149. !1
  6150. );
  6151. parentSegment.children.push(boundarySegment);
  6152. parentSegment.lastPushedText = !1;
  6153. var contentRootSegment = createPendingSegment(
  6154. request,
  6155. 0,
  6156. null,
  6157. task.formatContext,
  6158. !1,
  6159. !1
  6160. );
  6161. contentRootSegment.parentFlushed = !0;
  6162. if (null !== request.trackedPostpones) {
  6163. var suspenseComponentStack = task.componentStack,
  6164. fallbackKeyPath = [
  6165. keyPath[0],
  6166. "Suspense Fallback",
  6167. keyPath[2]
  6168. ],
  6169. fallbackReplayNode = [
  6170. fallbackKeyPath[1],
  6171. fallbackKeyPath[2],
  6172. [],
  6173. null
  6174. ];
  6175. request.trackedPostpones.workingMap.set(
  6176. fallbackKeyPath,
  6177. fallbackReplayNode
  6178. );
  6179. newBoundary.trackedFallbackNode = fallbackReplayNode;
  6180. task.blockedSegment = boundarySegment;
  6181. task.blockedPreamble = newBoundary.fallbackPreamble;
  6182. task.keyPath = fallbackKeyPath;
  6183. task.formatContext = getSuspenseFallbackFormatContext(
  6184. request.resumableState,
  6185. prevContext$jscomp$0
  6186. );
  6187. task.componentStack =
  6188. replaceSuspenseComponentStackWithSuspenseFallbackStack(
  6189. suspenseComponentStack
  6190. );
  6191. boundarySegment.status = 6;
  6192. try {
  6193. renderNode(request, task, fallback, -1),
  6194. boundarySegment.lastPushedText &&
  6195. boundarySegment.textEmbedded &&
  6196. boundarySegment.chunks.push(textSeparator),
  6197. (boundarySegment.status = COMPLETED),
  6198. finishedSegment(request, parentBoundary, boundarySegment);
  6199. } catch (thrownValue) {
  6200. throw (
  6201. ((boundarySegment.status =
  6202. 12 === request.status ? ABORTED : ERRORED),
  6203. thrownValue)
  6204. );
  6205. } finally {
  6206. (task.blockedSegment = parentSegment),
  6207. (task.blockedPreamble = parentPreamble),
  6208. (task.keyPath = prevKeyPath$jscomp$4),
  6209. (task.formatContext = prevContext$jscomp$0);
  6210. }
  6211. var suspendedPrimaryTask = createRenderTask(
  6212. request,
  6213. null,
  6214. content,
  6215. -1,
  6216. newBoundary,
  6217. contentRootSegment,
  6218. newBoundary.contentPreamble,
  6219. newBoundary.contentState,
  6220. task.abortSet,
  6221. keyPath,
  6222. getSuspenseContentFormatContext(
  6223. request.resumableState,
  6224. task.formatContext
  6225. ),
  6226. task.context,
  6227. task.treeContext,
  6228. null,
  6229. suspenseComponentStack,
  6230. emptyContextObject,
  6231. task.debugTask
  6232. );
  6233. pushComponentStack(suspendedPrimaryTask);
  6234. request.pingedTasks.push(suspendedPrimaryTask);
  6235. } else {
  6236. task.blockedBoundary = newBoundary;
  6237. task.blockedPreamble = newBoundary.contentPreamble;
  6238. task.hoistableState = newBoundary.contentState;
  6239. task.blockedSegment = contentRootSegment;
  6240. task.keyPath = keyPath;
  6241. task.formatContext = getSuspenseContentFormatContext(
  6242. request.resumableState,
  6243. prevContext$jscomp$0
  6244. );
  6245. task.row = null;
  6246. contentRootSegment.status = 6;
  6247. try {
  6248. if (
  6249. (renderNode(request, task, content, -1),
  6250. contentRootSegment.lastPushedText &&
  6251. contentRootSegment.textEmbedded &&
  6252. contentRootSegment.chunks.push(textSeparator),
  6253. (contentRootSegment.status = COMPLETED),
  6254. finishedSegment(request, newBoundary, contentRootSegment),
  6255. queueCompletedSegment(newBoundary, contentRootSegment),
  6256. 0 === newBoundary.pendingTasks &&
  6257. newBoundary.status === PENDING)
  6258. ) {
  6259. if (
  6260. ((newBoundary.status = COMPLETED),
  6261. !isEligibleForOutlining(request, newBoundary))
  6262. ) {
  6263. null !== prevRow$jscomp$0 &&
  6264. 0 === --prevRow$jscomp$0.pendingTasks &&
  6265. finishSuspenseListRow(request, prevRow$jscomp$0);
  6266. 0 === request.pendingRootTasks &&
  6267. task.blockedPreamble &&
  6268. preparePreamble(request);
  6269. break a;
  6270. }
  6271. } else
  6272. null !== prevRow$jscomp$0 &&
  6273. prevRow$jscomp$0.together &&
  6274. tryToResolveTogetherRow(request, prevRow$jscomp$0);
  6275. } catch (thrownValue$2) {
  6276. newBoundary.status = CLIENT_RENDERED;
  6277. if (12 === request.status) {
  6278. contentRootSegment.status = ABORTED;
  6279. var error = request.fatalError;
  6280. } else
  6281. (contentRootSegment.status = ERRORED),
  6282. (error = thrownValue$2);
  6283. var thrownInfo = getThrownInfo(task.componentStack);
  6284. var errorDigest = logRecoverableError(
  6285. request,
  6286. error,
  6287. thrownInfo,
  6288. task.debugTask
  6289. );
  6290. encodeErrorForBoundary(
  6291. newBoundary,
  6292. errorDigest,
  6293. error,
  6294. thrownInfo,
  6295. !1
  6296. );
  6297. untrackBoundary(request, newBoundary);
  6298. } finally {
  6299. (task.blockedBoundary = parentBoundary),
  6300. (task.blockedPreamble = parentPreamble),
  6301. (task.hoistableState = parentHoistableState),
  6302. (task.blockedSegment = parentSegment),
  6303. (task.keyPath = prevKeyPath$jscomp$4),
  6304. (task.formatContext = prevContext$jscomp$0),
  6305. (task.row = prevRow$jscomp$0);
  6306. }
  6307. var suspendedFallbackTask = createRenderTask(
  6308. request,
  6309. null,
  6310. fallback,
  6311. -1,
  6312. parentBoundary,
  6313. boundarySegment,
  6314. newBoundary.fallbackPreamble,
  6315. newBoundary.fallbackState,
  6316. fallbackAbortSet,
  6317. [keyPath[0], "Suspense Fallback", keyPath[2]],
  6318. getSuspenseFallbackFormatContext(
  6319. request.resumableState,
  6320. task.formatContext
  6321. ),
  6322. task.context,
  6323. task.treeContext,
  6324. task.row,
  6325. replaceSuspenseComponentStackWithSuspenseFallbackStack(
  6326. task.componentStack
  6327. ),
  6328. emptyContextObject,
  6329. task.debugTask
  6330. );
  6331. pushComponentStack(suspendedFallbackTask);
  6332. request.pingedTasks.push(suspendedFallbackTask);
  6333. }
  6334. }
  6335. return;
  6336. }
  6337. if ("object" === typeof type && null !== type)
  6338. switch (type.$$typeof) {
  6339. case REACT_FORWARD_REF_TYPE:
  6340. if ("ref" in props) {
  6341. var propsWithoutRef = {};
  6342. for (var key in props)
  6343. "ref" !== key && (propsWithoutRef[key] = props[key]);
  6344. } else propsWithoutRef = props;
  6345. var children$jscomp$1 = renderWithHooks(
  6346. request,
  6347. task,
  6348. keyPath,
  6349. type.render,
  6350. propsWithoutRef,
  6351. ref
  6352. );
  6353. finishFunctionComponent(
  6354. request,
  6355. task,
  6356. keyPath,
  6357. children$jscomp$1,
  6358. 0 !== localIdCounter,
  6359. actionStateCounter,
  6360. actionStateMatchingIndex
  6361. );
  6362. return;
  6363. case REACT_MEMO_TYPE:
  6364. renderElement(request, task, keyPath, type.type, props, ref);
  6365. return;
  6366. case REACT_CONTEXT_TYPE:
  6367. var value$jscomp$0 = props.value,
  6368. children$jscomp$2 = props.children;
  6369. var prevSnapshot = task.context;
  6370. var prevKeyPath$jscomp$5 = task.keyPath;
  6371. var prevValue = type._currentValue;
  6372. type._currentValue = value$jscomp$0;
  6373. void 0 !== type._currentRenderer &&
  6374. null !== type._currentRenderer &&
  6375. type._currentRenderer !== rendererSigil &&
  6376. console.error(
  6377. "Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."
  6378. );
  6379. type._currentRenderer = rendererSigil;
  6380. var prevNode = currentActiveSnapshot,
  6381. newNode = {
  6382. parent: prevNode,
  6383. depth: null === prevNode ? 0 : prevNode.depth + 1,
  6384. context: type,
  6385. parentValue: prevValue,
  6386. value: value$jscomp$0
  6387. };
  6388. currentActiveSnapshot = newNode;
  6389. task.context = newNode;
  6390. task.keyPath = keyPath;
  6391. renderNodeDestructive(request, task, children$jscomp$2, -1);
  6392. var prevSnapshot$jscomp$0 = currentActiveSnapshot;
  6393. if (null === prevSnapshot$jscomp$0)
  6394. throw Error(
  6395. "Tried to pop a Context at the root of the app. This is a bug in React."
  6396. );
  6397. prevSnapshot$jscomp$0.context !== type &&
  6398. console.error(
  6399. "The parent context is not the expected context. This is probably a bug in React."
  6400. );
  6401. prevSnapshot$jscomp$0.context._currentValue =
  6402. prevSnapshot$jscomp$0.parentValue;
  6403. void 0 !== type._currentRenderer &&
  6404. null !== type._currentRenderer &&
  6405. type._currentRenderer !== rendererSigil &&
  6406. console.error(
  6407. "Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."
  6408. );
  6409. type._currentRenderer = rendererSigil;
  6410. var JSCompiler_inline_result$jscomp$0 = (currentActiveSnapshot =
  6411. prevSnapshot$jscomp$0.parent);
  6412. task.context = JSCompiler_inline_result$jscomp$0;
  6413. task.keyPath = prevKeyPath$jscomp$5;
  6414. prevSnapshot !== task.context &&
  6415. console.error(
  6416. "Popping the context provider did not return back to the original snapshot. This is a bug in React."
  6417. );
  6418. return;
  6419. case REACT_CONSUMER_TYPE:
  6420. var context$jscomp$0 = type._context,
  6421. render = props.children;
  6422. "function" !== typeof render &&
  6423. console.error(
  6424. "A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."
  6425. );
  6426. var newChildren = render(context$jscomp$0._currentValue),
  6427. prevKeyPath$jscomp$6 = task.keyPath;
  6428. task.keyPath = keyPath;
  6429. renderNodeDestructive(request, task, newChildren, -1);
  6430. task.keyPath = prevKeyPath$jscomp$6;
  6431. return;
  6432. case REACT_LAZY_TYPE:
  6433. var Component = callLazyInitInDEV(type);
  6434. if (12 === request.status) throw null;
  6435. renderElement(request, task, keyPath, Component, props, ref);
  6436. return;
  6437. }
  6438. var info = "";
  6439. if (
  6440. void 0 === type ||
  6441. ("object" === typeof type &&
  6442. null !== type &&
  6443. 0 === Object.keys(type).length)
  6444. )
  6445. info +=
  6446. " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
  6447. throw Error(
  6448. "Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " +
  6449. ((null == type ? type : typeof type) + "." + info)
  6450. );
  6451. }
  6452. }
  6453. function resumeNode(request, task, segmentId, node, childIndex) {
  6454. var prevReplay = task.replay,
  6455. blockedBoundary = task.blockedBoundary,
  6456. resumedSegment = createPendingSegment(
  6457. request,
  6458. 0,
  6459. null,
  6460. task.formatContext,
  6461. !1,
  6462. !1
  6463. );
  6464. resumedSegment.id = segmentId;
  6465. resumedSegment.parentFlushed = !0;
  6466. try {
  6467. (task.replay = null),
  6468. (task.blockedSegment = resumedSegment),
  6469. renderNode(request, task, node, childIndex),
  6470. (resumedSegment.status = COMPLETED),
  6471. finishedSegment(request, blockedBoundary, resumedSegment),
  6472. null === blockedBoundary
  6473. ? (request.completedRootSegment = resumedSegment)
  6474. : (queueCompletedSegment(blockedBoundary, resumedSegment),
  6475. blockedBoundary.parentFlushed &&
  6476. request.partialBoundaries.push(blockedBoundary));
  6477. } finally {
  6478. (task.replay = prevReplay), (task.blockedSegment = null);
  6479. }
  6480. }
  6481. function replayElement(
  6482. request,
  6483. task,
  6484. keyPath,
  6485. name,
  6486. keyOrIndex,
  6487. childIndex,
  6488. type,
  6489. props,
  6490. ref,
  6491. replay
  6492. ) {
  6493. childIndex = replay.nodes;
  6494. for (var i = 0; i < childIndex.length; i++) {
  6495. var node = childIndex[i];
  6496. if (keyOrIndex === node[1]) {
  6497. if (4 === node.length) {
  6498. if (null !== name && name !== node[0])
  6499. throw Error(
  6500. "Expected the resume to render <" +
  6501. node[0] +
  6502. "> in this slot but instead it rendered <" +
  6503. name +
  6504. ">. The tree doesn't match so React will fallback to client rendering."
  6505. );
  6506. var childNodes = node[2];
  6507. name = node[3];
  6508. keyOrIndex = task.node;
  6509. task.replay = { nodes: childNodes, slots: name, pendingTasks: 1 };
  6510. try {
  6511. renderElement(request, task, keyPath, type, props, ref);
  6512. if (
  6513. 1 === task.replay.pendingTasks &&
  6514. 0 < task.replay.nodes.length
  6515. )
  6516. throw Error(
  6517. "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
  6518. );
  6519. task.replay.pendingTasks--;
  6520. } catch (x) {
  6521. if (
  6522. "object" === typeof x &&
  6523. null !== x &&
  6524. (x === SuspenseException || "function" === typeof x.then)
  6525. )
  6526. throw (
  6527. (task.node === keyOrIndex
  6528. ? (task.replay = replay)
  6529. : childIndex.splice(i, 1),
  6530. x)
  6531. );
  6532. task.replay.pendingTasks--;
  6533. type = getThrownInfo(task.componentStack);
  6534. props = request;
  6535. request = task.blockedBoundary;
  6536. keyPath = x;
  6537. ref = name;
  6538. name = logRecoverableError(props, keyPath, type, task.debugTask);
  6539. abortRemainingReplayNodes(
  6540. props,
  6541. request,
  6542. childNodes,
  6543. ref,
  6544. keyPath,
  6545. name,
  6546. type,
  6547. !1
  6548. );
  6549. }
  6550. task.replay = replay;
  6551. } else {
  6552. if (type !== REACT_SUSPENSE_TYPE)
  6553. throw Error(
  6554. "Expected the resume to render <Suspense> in this slot but instead it rendered <" +
  6555. (getComponentNameFromType(type) || "Unknown") +
  6556. ">. The tree doesn't match so React will fallback to client rendering."
  6557. );
  6558. a: {
  6559. replay = void 0;
  6560. name = node[5];
  6561. type = node[2];
  6562. ref = node[3];
  6563. keyOrIndex = null === node[4] ? [] : node[4][2];
  6564. node = null === node[4] ? null : node[4][3];
  6565. var prevKeyPath = task.keyPath,
  6566. prevContext = task.formatContext,
  6567. prevRow = task.row,
  6568. previousReplaySet = task.replay,
  6569. parentBoundary = task.blockedBoundary,
  6570. parentHoistableState = task.hoistableState,
  6571. content = props.children,
  6572. fallback = props.fallback,
  6573. fallbackAbortSet = new Set();
  6574. props =
  6575. task.formatContext.insertionMode < HTML_MODE
  6576. ? createSuspenseBoundary(
  6577. request,
  6578. task.row,
  6579. fallbackAbortSet,
  6580. createPreambleState(),
  6581. createPreambleState()
  6582. )
  6583. : createSuspenseBoundary(
  6584. request,
  6585. task.row,
  6586. fallbackAbortSet,
  6587. null,
  6588. null
  6589. );
  6590. props.parentFlushed = !0;
  6591. props.rootSegmentID = name;
  6592. task.blockedBoundary = props;
  6593. task.hoistableState = props.contentState;
  6594. task.keyPath = keyPath;
  6595. task.formatContext = getSuspenseContentFormatContext(
  6596. request.resumableState,
  6597. prevContext
  6598. );
  6599. task.row = null;
  6600. task.replay = { nodes: type, slots: ref, pendingTasks: 1 };
  6601. try {
  6602. renderNode(request, task, content, -1);
  6603. if (
  6604. 1 === task.replay.pendingTasks &&
  6605. 0 < task.replay.nodes.length
  6606. )
  6607. throw Error(
  6608. "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
  6609. );
  6610. task.replay.pendingTasks--;
  6611. if (0 === props.pendingTasks && props.status === PENDING) {
  6612. props.status = COMPLETED;
  6613. request.completedBoundaries.push(props);
  6614. break a;
  6615. }
  6616. } catch (error) {
  6617. (props.status = CLIENT_RENDERED),
  6618. (childNodes = getThrownInfo(task.componentStack)),
  6619. (replay = logRecoverableError(
  6620. request,
  6621. error,
  6622. childNodes,
  6623. task.debugTask
  6624. )),
  6625. encodeErrorForBoundary(props, replay, error, childNodes, !1),
  6626. task.replay.pendingTasks--,
  6627. request.clientRenderedBoundaries.push(props);
  6628. } finally {
  6629. (task.blockedBoundary = parentBoundary),
  6630. (task.hoistableState = parentHoistableState),
  6631. (task.replay = previousReplaySet),
  6632. (task.keyPath = prevKeyPath),
  6633. (task.formatContext = prevContext),
  6634. (task.row = prevRow);
  6635. }
  6636. props = createReplayTask(
  6637. request,
  6638. null,
  6639. { nodes: keyOrIndex, slots: node, pendingTasks: 0 },
  6640. fallback,
  6641. -1,
  6642. parentBoundary,
  6643. props.fallbackState,
  6644. fallbackAbortSet,
  6645. [keyPath[0], "Suspense Fallback", keyPath[2]],
  6646. getSuspenseFallbackFormatContext(
  6647. request.resumableState,
  6648. task.formatContext
  6649. ),
  6650. task.context,
  6651. task.treeContext,
  6652. task.row,
  6653. replaceSuspenseComponentStackWithSuspenseFallbackStack(
  6654. task.componentStack
  6655. ),
  6656. emptyContextObject,
  6657. task.debugTask
  6658. );
  6659. pushComponentStack(props);
  6660. request.pingedTasks.push(props);
  6661. }
  6662. }
  6663. childIndex.splice(i, 1);
  6664. break;
  6665. }
  6666. }
  6667. }
  6668. function validateIterable(
  6669. task,
  6670. iterable,
  6671. childIndex,
  6672. iterator,
  6673. iteratorFn
  6674. ) {
  6675. if (iterator === iterable) {
  6676. if (
  6677. -1 !== childIndex ||
  6678. null === task.componentStack ||
  6679. "function" !== typeof task.componentStack.type ||
  6680. "[object GeneratorFunction]" !==
  6681. Object.prototype.toString.call(task.componentStack.type) ||
  6682. "[object Generator]" !== Object.prototype.toString.call(iterator)
  6683. )
  6684. didWarnAboutGenerators ||
  6685. console.error(
  6686. "Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."
  6687. ),
  6688. (didWarnAboutGenerators = !0);
  6689. } else
  6690. iterable.entries !== iteratorFn ||
  6691. didWarnAboutMaps ||
  6692. (console.error(
  6693. "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
  6694. ),
  6695. (didWarnAboutMaps = !0));
  6696. }
  6697. function renderNodeDestructive(request, task, node, childIndex) {
  6698. null !== task.replay && "number" === typeof task.replay.slots
  6699. ? resumeNode(request, task, task.replay.slots, node, childIndex)
  6700. : ((task.node = node),
  6701. (task.childIndex = childIndex),
  6702. (node = task.componentStack),
  6703. (childIndex = task.debugTask),
  6704. pushComponentStack(task),
  6705. retryNode(request, task),
  6706. (task.componentStack = node),
  6707. (task.debugTask = childIndex));
  6708. }
  6709. function retryNode(request, task) {
  6710. var node = task.node,
  6711. childIndex = task.childIndex;
  6712. if (null !== node) {
  6713. if ("object" === typeof node) {
  6714. switch (node.$$typeof) {
  6715. case REACT_ELEMENT_TYPE:
  6716. var type = node.type,
  6717. key = node.key;
  6718. node = node.props;
  6719. var refProp = node.ref;
  6720. refProp = void 0 !== refProp ? refProp : null;
  6721. var debugTask = task.debugTask,
  6722. name = getComponentNameFromType(type);
  6723. key = null == key ? (-1 === childIndex ? 0 : childIndex) : key;
  6724. var keyPath = [task.keyPath, name, key];
  6725. null !== task.replay
  6726. ? debugTask
  6727. ? debugTask.run(
  6728. replayElement.bind(
  6729. null,
  6730. request,
  6731. task,
  6732. keyPath,
  6733. name,
  6734. key,
  6735. childIndex,
  6736. type,
  6737. node,
  6738. refProp,
  6739. task.replay
  6740. )
  6741. )
  6742. : replayElement(
  6743. request,
  6744. task,
  6745. keyPath,
  6746. name,
  6747. key,
  6748. childIndex,
  6749. type,
  6750. node,
  6751. refProp,
  6752. task.replay
  6753. )
  6754. : debugTask
  6755. ? debugTask.run(
  6756. renderElement.bind(
  6757. null,
  6758. request,
  6759. task,
  6760. keyPath,
  6761. type,
  6762. node,
  6763. refProp
  6764. )
  6765. )
  6766. : renderElement(request, task, keyPath, type, node, refProp);
  6767. return;
  6768. case REACT_PORTAL_TYPE:
  6769. throw Error(
  6770. "Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render."
  6771. );
  6772. case REACT_LAZY_TYPE:
  6773. type = callLazyInitInDEV(node);
  6774. if (12 === request.status) throw null;
  6775. renderNodeDestructive(request, task, type, childIndex);
  6776. return;
  6777. }
  6778. if (isArrayImpl(node)) {
  6779. renderChildrenArray(request, task, node, childIndex);
  6780. return;
  6781. }
  6782. if ((key = getIteratorFn(node)))
  6783. if ((type = key.call(node))) {
  6784. validateIterable(task, node, childIndex, type, key);
  6785. node = type.next();
  6786. if (!node.done) {
  6787. key = [];
  6788. do key.push(node.value), (node = type.next());
  6789. while (!node.done);
  6790. renderChildrenArray(request, task, key, childIndex);
  6791. }
  6792. return;
  6793. }
  6794. if ("function" === typeof node.then)
  6795. return (
  6796. (task.thenableState = null),
  6797. renderNodeDestructive(
  6798. request,
  6799. task,
  6800. unwrapThenable(node),
  6801. childIndex
  6802. )
  6803. );
  6804. if (node.$$typeof === REACT_CONTEXT_TYPE)
  6805. return renderNodeDestructive(
  6806. request,
  6807. task,
  6808. node._currentValue,
  6809. childIndex
  6810. );
  6811. request = Object.prototype.toString.call(node);
  6812. throw Error(
  6813. "Objects are not valid as a React child (found: " +
  6814. ("[object Object]" === request
  6815. ? "object with keys {" + Object.keys(node).join(", ") + "}"
  6816. : request) +
  6817. "). If you meant to render a collection of children, use an array instead."
  6818. );
  6819. }
  6820. "string" === typeof node
  6821. ? ((task = task.blockedSegment),
  6822. null !== task &&
  6823. (task.lastPushedText = pushTextInstance(
  6824. task.chunks,
  6825. node,
  6826. request.renderState,
  6827. task.lastPushedText
  6828. )))
  6829. : "number" === typeof node || "bigint" === typeof node
  6830. ? ((task = task.blockedSegment),
  6831. null !== task &&
  6832. (task.lastPushedText = pushTextInstance(
  6833. task.chunks,
  6834. "" + node,
  6835. request.renderState,
  6836. task.lastPushedText
  6837. )))
  6838. : ("function" === typeof node &&
  6839. ((request = node.displayName || node.name || "Component"),
  6840. console.error(
  6841. "Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.",
  6842. request,
  6843. request
  6844. )),
  6845. "symbol" === typeof node &&
  6846. console.error(
  6847. "Symbols are not valid as a React child.\n %s",
  6848. String(node)
  6849. ));
  6850. }
  6851. }
  6852. function warnForMissingKey(request, task, child) {
  6853. if (
  6854. null !== child &&
  6855. "object" === typeof child &&
  6856. (child.$$typeof === REACT_ELEMENT_TYPE ||
  6857. child.$$typeof === REACT_PORTAL_TYPE) &&
  6858. child._store &&
  6859. ((!child._store.validated && null == child.key) ||
  6860. 2 === child._store.validated)
  6861. ) {
  6862. if ("object" !== typeof child._store)
  6863. throw Error(
  6864. "React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue."
  6865. );
  6866. child._store.validated = 1;
  6867. var didWarnForKey = request.didWarnForKey;
  6868. null == didWarnForKey &&
  6869. (didWarnForKey = request.didWarnForKey = new WeakSet());
  6870. request = task.componentStack;
  6871. if (null !== request && !didWarnForKey.has(request)) {
  6872. didWarnForKey.add(request);
  6873. var componentName = getComponentNameFromType(child.type);
  6874. didWarnForKey = child._owner;
  6875. var parentOwner = request.owner;
  6876. request = "";
  6877. if (parentOwner && "undefined" !== typeof parentOwner.type) {
  6878. var name = getComponentNameFromType(parentOwner.type);
  6879. name &&
  6880. (request = "\n\nCheck the render method of `" + name + "`.");
  6881. }
  6882. request ||
  6883. (componentName &&
  6884. (request =
  6885. "\n\nCheck the top-level render call using <" +
  6886. componentName +
  6887. ">."));
  6888. componentName = "";
  6889. null != didWarnForKey &&
  6890. parentOwner !== didWarnForKey &&
  6891. ((parentOwner = null),
  6892. "undefined" !== typeof didWarnForKey.type
  6893. ? (parentOwner = getComponentNameFromType(didWarnForKey.type))
  6894. : "string" === typeof didWarnForKey.name &&
  6895. (parentOwner = didWarnForKey.name),
  6896. parentOwner &&
  6897. (componentName =
  6898. " It was passed a child from " + parentOwner + "."));
  6899. didWarnForKey = task.componentStack;
  6900. task.componentStack = {
  6901. parent: task.componentStack,
  6902. type: child.type,
  6903. owner: child._owner,
  6904. stack: child._debugStack
  6905. };
  6906. console.error(
  6907. 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
  6908. request,
  6909. componentName
  6910. );
  6911. task.componentStack = didWarnForKey;
  6912. }
  6913. }
  6914. }
  6915. function renderChildrenArray(request, task, children, childIndex) {
  6916. var prevKeyPath = task.keyPath,
  6917. previousComponentStack = task.componentStack;
  6918. var previousDebugTask = task.debugTask;
  6919. pushServerComponentStack(task, task.node._debugInfo);
  6920. if (
  6921. -1 !== childIndex &&
  6922. ((task.keyPath = [task.keyPath, "Fragment", childIndex]),
  6923. null !== task.replay)
  6924. ) {
  6925. for (
  6926. var replay = task.replay, replayNodes = replay.nodes, j = 0;
  6927. j < replayNodes.length;
  6928. j++
  6929. ) {
  6930. var node = replayNodes[j];
  6931. if (node[1] === childIndex) {
  6932. childIndex = node[2];
  6933. node = node[3];
  6934. task.replay = { nodes: childIndex, slots: node, pendingTasks: 1 };
  6935. try {
  6936. renderChildrenArray(request, task, children, -1);
  6937. if (
  6938. 1 === task.replay.pendingTasks &&
  6939. 0 < task.replay.nodes.length
  6940. )
  6941. throw Error(
  6942. "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
  6943. );
  6944. task.replay.pendingTasks--;
  6945. } catch (x) {
  6946. if (
  6947. "object" === typeof x &&
  6948. null !== x &&
  6949. (x === SuspenseException || "function" === typeof x.then)
  6950. )
  6951. throw x;
  6952. task.replay.pendingTasks--;
  6953. var thrownInfo = getThrownInfo(task.componentStack);
  6954. children = task.blockedBoundary;
  6955. var error = x,
  6956. resumeSlots = node;
  6957. node = logRecoverableError(
  6958. request,
  6959. error,
  6960. thrownInfo,
  6961. task.debugTask
  6962. );
  6963. abortRemainingReplayNodes(
  6964. request,
  6965. children,
  6966. childIndex,
  6967. resumeSlots,
  6968. error,
  6969. node,
  6970. thrownInfo,
  6971. !1
  6972. );
  6973. }
  6974. task.replay = replay;
  6975. replayNodes.splice(j, 1);
  6976. break;
  6977. }
  6978. }
  6979. task.keyPath = prevKeyPath;
  6980. task.componentStack = previousComponentStack;
  6981. task.debugTask = previousDebugTask;
  6982. return;
  6983. }
  6984. replay = task.treeContext;
  6985. replayNodes = children.length;
  6986. if (
  6987. null !== task.replay &&
  6988. ((j = task.replay.slots), null !== j && "object" === typeof j)
  6989. ) {
  6990. for (childIndex = 0; childIndex < replayNodes; childIndex++)
  6991. (node = children[childIndex]),
  6992. (task.treeContext = pushTreeContext(
  6993. replay,
  6994. replayNodes,
  6995. childIndex
  6996. )),
  6997. (error = j[childIndex]),
  6998. "number" === typeof error
  6999. ? (resumeNode(request, task, error, node, childIndex),
  7000. delete j[childIndex])
  7001. : renderNode(request, task, node, childIndex);
  7002. task.treeContext = replay;
  7003. task.keyPath = prevKeyPath;
  7004. task.componentStack = previousComponentStack;
  7005. task.debugTask = previousDebugTask;
  7006. return;
  7007. }
  7008. for (j = 0; j < replayNodes; j++)
  7009. (childIndex = children[j]),
  7010. warnForMissingKey(request, task, childIndex),
  7011. (task.treeContext = pushTreeContext(replay, replayNodes, j)),
  7012. renderNode(request, task, childIndex, j);
  7013. task.treeContext = replay;
  7014. task.keyPath = prevKeyPath;
  7015. task.componentStack = previousComponentStack;
  7016. task.debugTask = previousDebugTask;
  7017. }
  7018. function trackPostponedBoundary(request, trackedPostpones, boundary) {
  7019. boundary.status = POSTPONED;
  7020. boundary.rootSegmentID = request.nextSegmentId++;
  7021. request = boundary.trackedContentKeyPath;
  7022. if (null === request)
  7023. throw Error(
  7024. "It should not be possible to postpone at the root. This is a bug in React."
  7025. );
  7026. var fallbackReplayNode = boundary.trackedFallbackNode,
  7027. children = [],
  7028. boundaryNode = trackedPostpones.workingMap.get(request);
  7029. if (void 0 === boundaryNode)
  7030. return (
  7031. (boundary = [
  7032. request[1],
  7033. request[2],
  7034. children,
  7035. null,
  7036. fallbackReplayNode,
  7037. boundary.rootSegmentID
  7038. ]),
  7039. trackedPostpones.workingMap.set(request, boundary),
  7040. addToReplayParent(boundary, request[0], trackedPostpones),
  7041. boundary
  7042. );
  7043. boundaryNode[4] = fallbackReplayNode;
  7044. boundaryNode[5] = boundary.rootSegmentID;
  7045. return boundaryNode;
  7046. }
  7047. function trackPostpone(request, trackedPostpones, task, segment) {
  7048. segment.status = POSTPONED;
  7049. var keyPath = task.keyPath,
  7050. boundary = task.blockedBoundary;
  7051. if (null === boundary)
  7052. (segment.id = request.nextSegmentId++),
  7053. (trackedPostpones.rootSlots = segment.id),
  7054. null !== request.completedRootSegment &&
  7055. (request.completedRootSegment.status = POSTPONED);
  7056. else {
  7057. if (null !== boundary && boundary.status === PENDING) {
  7058. var boundaryNode = trackPostponedBoundary(
  7059. request,
  7060. trackedPostpones,
  7061. boundary
  7062. );
  7063. if (
  7064. boundary.trackedContentKeyPath === keyPath &&
  7065. -1 === task.childIndex
  7066. ) {
  7067. -1 === segment.id &&
  7068. (segment.id = segment.parentFlushed
  7069. ? boundary.rootSegmentID
  7070. : request.nextSegmentId++);
  7071. boundaryNode[3] = segment.id;
  7072. return;
  7073. }
  7074. }
  7075. -1 === segment.id &&
  7076. (segment.id =
  7077. segment.parentFlushed && null !== boundary
  7078. ? boundary.rootSegmentID
  7079. : request.nextSegmentId++);
  7080. if (-1 === task.childIndex)
  7081. null === keyPath
  7082. ? (trackedPostpones.rootSlots = segment.id)
  7083. : ((task = trackedPostpones.workingMap.get(keyPath)),
  7084. void 0 === task
  7085. ? ((task = [keyPath[1], keyPath[2], [], segment.id]),
  7086. addToReplayParent(task, keyPath[0], trackedPostpones))
  7087. : (task[3] = segment.id));
  7088. else {
  7089. if (null === keyPath)
  7090. if (((request = trackedPostpones.rootSlots), null === request))
  7091. request = trackedPostpones.rootSlots = {};
  7092. else {
  7093. if ("number" === typeof request)
  7094. throw Error(
  7095. "It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React."
  7096. );
  7097. }
  7098. else if (
  7099. ((boundary = trackedPostpones.workingMap),
  7100. (boundaryNode = boundary.get(keyPath)),
  7101. void 0 === boundaryNode)
  7102. )
  7103. (request = {}),
  7104. (boundaryNode = [keyPath[1], keyPath[2], [], request]),
  7105. boundary.set(keyPath, boundaryNode),
  7106. addToReplayParent(boundaryNode, keyPath[0], trackedPostpones);
  7107. else if (((request = boundaryNode[3]), null === request))
  7108. request = boundaryNode[3] = {};
  7109. else if ("number" === typeof request)
  7110. throw Error(
  7111. "It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React."
  7112. );
  7113. request[task.childIndex] = segment.id;
  7114. }
  7115. }
  7116. }
  7117. function untrackBoundary(request, boundary) {
  7118. request = request.trackedPostpones;
  7119. null !== request &&
  7120. ((boundary = boundary.trackedContentKeyPath),
  7121. null !== boundary &&
  7122. ((boundary = request.workingMap.get(boundary)),
  7123. void 0 !== boundary &&
  7124. ((boundary.length = 4), (boundary[2] = []), (boundary[3] = null))));
  7125. }
  7126. function spawnNewSuspendedReplayTask(request, task, thenableState) {
  7127. return createReplayTask(
  7128. request,
  7129. thenableState,
  7130. task.replay,
  7131. task.node,
  7132. task.childIndex,
  7133. task.blockedBoundary,
  7134. task.hoistableState,
  7135. task.abortSet,
  7136. task.keyPath,
  7137. task.formatContext,
  7138. task.context,
  7139. task.treeContext,
  7140. task.row,
  7141. task.componentStack,
  7142. emptyContextObject,
  7143. task.debugTask
  7144. );
  7145. }
  7146. function spawnNewSuspendedRenderTask(request, task, thenableState) {
  7147. var segment = task.blockedSegment,
  7148. newSegment = createPendingSegment(
  7149. request,
  7150. segment.chunks.length,
  7151. null,
  7152. task.formatContext,
  7153. segment.lastPushedText,
  7154. !0
  7155. );
  7156. segment.children.push(newSegment);
  7157. segment.lastPushedText = !1;
  7158. return createRenderTask(
  7159. request,
  7160. thenableState,
  7161. task.node,
  7162. task.childIndex,
  7163. task.blockedBoundary,
  7164. newSegment,
  7165. task.blockedPreamble,
  7166. task.hoistableState,
  7167. task.abortSet,
  7168. task.keyPath,
  7169. task.formatContext,
  7170. task.context,
  7171. task.treeContext,
  7172. task.row,
  7173. task.componentStack,
  7174. emptyContextObject,
  7175. task.debugTask
  7176. );
  7177. }
  7178. function renderNode(request, task, node, childIndex) {
  7179. var previousFormatContext = task.formatContext,
  7180. previousContext = task.context,
  7181. previousKeyPath = task.keyPath,
  7182. previousTreeContext = task.treeContext,
  7183. previousComponentStack = task.componentStack,
  7184. previousDebugTask = task.debugTask,
  7185. segment = task.blockedSegment;
  7186. if (null === segment) {
  7187. segment = task.replay;
  7188. try {
  7189. return renderNodeDestructive(request, task, node, childIndex);
  7190. } catch (thrownValue) {
  7191. if (
  7192. (resetHooksState(),
  7193. (node =
  7194. thrownValue === SuspenseException
  7195. ? getSuspendedThenable()
  7196. : thrownValue),
  7197. 12 !== request.status && "object" === typeof node && null !== node)
  7198. ) {
  7199. if ("function" === typeof node.then) {
  7200. childIndex =
  7201. thrownValue === SuspenseException
  7202. ? getThenableStateAfterSuspending()
  7203. : null;
  7204. request = spawnNewSuspendedReplayTask(
  7205. request,
  7206. task,
  7207. childIndex
  7208. ).ping;
  7209. node.then(request, request);
  7210. task.formatContext = previousFormatContext;
  7211. task.context = previousContext;
  7212. task.keyPath = previousKeyPath;
  7213. task.treeContext = previousTreeContext;
  7214. task.componentStack = previousComponentStack;
  7215. task.replay = segment;
  7216. task.debugTask = previousDebugTask;
  7217. switchContext(previousContext);
  7218. return;
  7219. }
  7220. if ("Maximum call stack size exceeded" === node.message) {
  7221. node =
  7222. thrownValue === SuspenseException
  7223. ? getThenableStateAfterSuspending()
  7224. : null;
  7225. node = spawnNewSuspendedReplayTask(request, task, node);
  7226. request.pingedTasks.push(node);
  7227. task.formatContext = previousFormatContext;
  7228. task.context = previousContext;
  7229. task.keyPath = previousKeyPath;
  7230. task.treeContext = previousTreeContext;
  7231. task.componentStack = previousComponentStack;
  7232. task.replay = segment;
  7233. task.debugTask = previousDebugTask;
  7234. switchContext(previousContext);
  7235. return;
  7236. }
  7237. }
  7238. }
  7239. } else {
  7240. var childrenLength = segment.children.length,
  7241. chunkLength = segment.chunks.length;
  7242. try {
  7243. return renderNodeDestructive(request, task, node, childIndex);
  7244. } catch (thrownValue$3) {
  7245. if (
  7246. (resetHooksState(),
  7247. (segment.children.length = childrenLength),
  7248. (segment.chunks.length = chunkLength),
  7249. (node =
  7250. thrownValue$3 === SuspenseException
  7251. ? getSuspendedThenable()
  7252. : thrownValue$3),
  7253. 12 !== request.status && "object" === typeof node && null !== node)
  7254. ) {
  7255. if ("function" === typeof node.then) {
  7256. segment = node;
  7257. node =
  7258. thrownValue$3 === SuspenseException
  7259. ? getThenableStateAfterSuspending()
  7260. : null;
  7261. request = spawnNewSuspendedRenderTask(request, task, node).ping;
  7262. segment.then(request, request);
  7263. task.formatContext = previousFormatContext;
  7264. task.context = previousContext;
  7265. task.keyPath = previousKeyPath;
  7266. task.treeContext = previousTreeContext;
  7267. task.componentStack = previousComponentStack;
  7268. task.debugTask = previousDebugTask;
  7269. switchContext(previousContext);
  7270. return;
  7271. }
  7272. if ("Maximum call stack size exceeded" === node.message) {
  7273. segment =
  7274. thrownValue$3 === SuspenseException
  7275. ? getThenableStateAfterSuspending()
  7276. : null;
  7277. segment = spawnNewSuspendedRenderTask(request, task, segment);
  7278. request.pingedTasks.push(segment);
  7279. task.formatContext = previousFormatContext;
  7280. task.context = previousContext;
  7281. task.keyPath = previousKeyPath;
  7282. task.treeContext = previousTreeContext;
  7283. task.componentStack = previousComponentStack;
  7284. task.debugTask = previousDebugTask;
  7285. switchContext(previousContext);
  7286. return;
  7287. }
  7288. }
  7289. }
  7290. }
  7291. task.formatContext = previousFormatContext;
  7292. task.context = previousContext;
  7293. task.keyPath = previousKeyPath;
  7294. task.treeContext = previousTreeContext;
  7295. switchContext(previousContext);
  7296. throw node;
  7297. }
  7298. function abortTaskSoft(task) {
  7299. var boundary = task.blockedBoundary,
  7300. segment = task.blockedSegment;
  7301. null !== segment &&
  7302. ((segment.status = ABORTED),
  7303. finishedTask(this, boundary, task.row, segment));
  7304. }
  7305. function abortRemainingReplayNodes(
  7306. request$jscomp$0,
  7307. boundary,
  7308. nodes,
  7309. slots,
  7310. error$jscomp$0,
  7311. errorDigest$jscomp$0,
  7312. errorInfo$jscomp$0,
  7313. aborted
  7314. ) {
  7315. for (var i = 0; i < nodes.length; i++) {
  7316. var node = nodes[i];
  7317. if (4 === node.length)
  7318. abortRemainingReplayNodes(
  7319. request$jscomp$0,
  7320. boundary,
  7321. node[2],
  7322. node[3],
  7323. error$jscomp$0,
  7324. errorDigest$jscomp$0,
  7325. errorInfo$jscomp$0,
  7326. aborted
  7327. );
  7328. else {
  7329. var request = request$jscomp$0;
  7330. node = node[5];
  7331. var error = error$jscomp$0,
  7332. errorDigest = errorDigest$jscomp$0,
  7333. errorInfo = errorInfo$jscomp$0,
  7334. wasAborted = aborted,
  7335. resumedBoundary = createSuspenseBoundary(
  7336. request,
  7337. null,
  7338. new Set(),
  7339. null,
  7340. null
  7341. );
  7342. resumedBoundary.parentFlushed = !0;
  7343. resumedBoundary.rootSegmentID = node;
  7344. resumedBoundary.status = CLIENT_RENDERED;
  7345. encodeErrorForBoundary(
  7346. resumedBoundary,
  7347. errorDigest,
  7348. error,
  7349. errorInfo,
  7350. wasAborted
  7351. );
  7352. resumedBoundary.parentFlushed &&
  7353. request.clientRenderedBoundaries.push(resumedBoundary);
  7354. }
  7355. }
  7356. nodes.length = 0;
  7357. if (null !== slots) {
  7358. if (null === boundary)
  7359. throw Error(
  7360. "We should not have any resumable nodes in the shell. This is a bug in React."
  7361. );
  7362. boundary.status !== CLIENT_RENDERED &&
  7363. ((boundary.status = CLIENT_RENDERED),
  7364. encodeErrorForBoundary(
  7365. boundary,
  7366. errorDigest$jscomp$0,
  7367. error$jscomp$0,
  7368. errorInfo$jscomp$0,
  7369. aborted
  7370. ),
  7371. boundary.parentFlushed &&
  7372. request$jscomp$0.clientRenderedBoundaries.push(boundary));
  7373. if ("object" === typeof slots)
  7374. for (var index in slots) delete slots[index];
  7375. }
  7376. }
  7377. function abortTask(task, request, error) {
  7378. var boundary = task.blockedBoundary,
  7379. segment = task.blockedSegment;
  7380. if (null !== segment) {
  7381. if (6 === segment.status) return;
  7382. segment.status = ABORTED;
  7383. }
  7384. var errorInfo = getThrownInfo(task.componentStack),
  7385. node = task.node;
  7386. null !== node &&
  7387. "object" === typeof node &&
  7388. pushHaltedAwaitOnComponentStack(task, node._debugInfo);
  7389. if (null === boundary) {
  7390. if (13 !== request.status && request.status !== CLOSED) {
  7391. boundary = task.replay;
  7392. if (null === boundary) {
  7393. null !== request.trackedPostpones && null !== segment
  7394. ? ((boundary = request.trackedPostpones),
  7395. logRecoverableError(request, error, errorInfo, task.debugTask),
  7396. trackPostpone(request, boundary, task, segment),
  7397. finishedTask(request, null, task.row, segment))
  7398. : (logRecoverableError(request, error, errorInfo, task.debugTask),
  7399. fatalError(request, error, errorInfo, task.debugTask));
  7400. return;
  7401. }
  7402. boundary.pendingTasks--;
  7403. 0 === boundary.pendingTasks &&
  7404. 0 < boundary.nodes.length &&
  7405. ((segment = logRecoverableError(request, error, errorInfo, null)),
  7406. abortRemainingReplayNodes(
  7407. request,
  7408. null,
  7409. boundary.nodes,
  7410. boundary.slots,
  7411. error,
  7412. segment,
  7413. errorInfo,
  7414. !0
  7415. ));
  7416. request.pendingRootTasks--;
  7417. 0 === request.pendingRootTasks && completeShell(request);
  7418. }
  7419. } else {
  7420. node = request.trackedPostpones;
  7421. if (boundary.status !== CLIENT_RENDERED) {
  7422. if (null !== node && null !== segment)
  7423. return (
  7424. logRecoverableError(request, error, errorInfo, task.debugTask),
  7425. trackPostpone(request, node, task, segment),
  7426. boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
  7427. return abortTask(fallbackTask, request, error);
  7428. }),
  7429. boundary.fallbackAbortableTasks.clear(),
  7430. finishedTask(request, boundary, task.row, segment)
  7431. );
  7432. boundary.status = CLIENT_RENDERED;
  7433. segment = logRecoverableError(
  7434. request,
  7435. error,
  7436. errorInfo,
  7437. task.debugTask
  7438. );
  7439. boundary.status = CLIENT_RENDERED;
  7440. encodeErrorForBoundary(boundary, segment, error, errorInfo, !0);
  7441. untrackBoundary(request, boundary);
  7442. boundary.parentFlushed &&
  7443. request.clientRenderedBoundaries.push(boundary);
  7444. }
  7445. boundary.pendingTasks--;
  7446. errorInfo = boundary.row;
  7447. null !== errorInfo &&
  7448. 0 === --errorInfo.pendingTasks &&
  7449. finishSuspenseListRow(request, errorInfo);
  7450. boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
  7451. return abortTask(fallbackTask, request, error);
  7452. });
  7453. boundary.fallbackAbortableTasks.clear();
  7454. }
  7455. task = task.row;
  7456. null !== task &&
  7457. 0 === --task.pendingTasks &&
  7458. finishSuspenseListRow(request, task);
  7459. request.allPendingTasks--;
  7460. 0 === request.allPendingTasks && completeAll(request);
  7461. }
  7462. function safelyEmitEarlyPreloads(request, shellComplete) {
  7463. try {
  7464. var renderState = request.renderState,
  7465. onHeaders = renderState.onHeaders;
  7466. if (onHeaders) {
  7467. var headers = renderState.headers;
  7468. if (headers) {
  7469. renderState.headers = null;
  7470. var linkHeader = headers.preconnects;
  7471. headers.fontPreloads &&
  7472. (linkHeader && (linkHeader += ", "),
  7473. (linkHeader += headers.fontPreloads));
  7474. headers.highImagePreloads &&
  7475. (linkHeader && (linkHeader += ", "),
  7476. (linkHeader += headers.highImagePreloads));
  7477. if (!shellComplete) {
  7478. var queueIter = renderState.styles.values(),
  7479. queueStep = queueIter.next();
  7480. b: for (
  7481. ;
  7482. 0 < headers.remainingCapacity && !queueStep.done;
  7483. queueStep = queueIter.next()
  7484. )
  7485. for (
  7486. var sheetIter = queueStep.value.sheets.values(),
  7487. sheetStep = sheetIter.next();
  7488. 0 < headers.remainingCapacity && !sheetStep.done;
  7489. sheetStep = sheetIter.next()
  7490. ) {
  7491. var sheet = sheetStep.value,
  7492. props = sheet.props,
  7493. key = props.href,
  7494. props$jscomp$0 = sheet.props;
  7495. var header = getPreloadAsHeader(
  7496. props$jscomp$0.href,
  7497. "style",
  7498. {
  7499. crossOrigin: props$jscomp$0.crossOrigin,
  7500. integrity: props$jscomp$0.integrity,
  7501. nonce: props$jscomp$0.nonce,
  7502. type: props$jscomp$0.type,
  7503. fetchPriority: props$jscomp$0.fetchPriority,
  7504. referrerPolicy: props$jscomp$0.referrerPolicy,
  7505. media: props$jscomp$0.media
  7506. }
  7507. );
  7508. if (0 <= (headers.remainingCapacity -= header.length + 2))
  7509. (renderState.resets.style[key] = PRELOAD_NO_CREDS),
  7510. linkHeader && (linkHeader += ", "),
  7511. (linkHeader += header),
  7512. (renderState.resets.style[key] =
  7513. "string" === typeof props.crossOrigin ||
  7514. "string" === typeof props.integrity
  7515. ? [props.crossOrigin, props.integrity]
  7516. : PRELOAD_NO_CREDS);
  7517. else break b;
  7518. }
  7519. }
  7520. linkHeader ? onHeaders({ Link: linkHeader }) : onHeaders({});
  7521. }
  7522. }
  7523. } catch (error) {
  7524. logRecoverableError(request, error, {}, null);
  7525. }
  7526. }
  7527. function completeShell(request) {
  7528. null === request.trackedPostpones && safelyEmitEarlyPreloads(request, !0);
  7529. null === request.trackedPostpones && preparePreamble(request);
  7530. request.onShellError = noop;
  7531. request = request.onShellReady;
  7532. request();
  7533. }
  7534. function completeAll(request) {
  7535. safelyEmitEarlyPreloads(
  7536. request,
  7537. null === request.trackedPostpones
  7538. ? !0
  7539. : null === request.completedRootSegment ||
  7540. request.completedRootSegment.status !== POSTPONED
  7541. );
  7542. preparePreamble(request);
  7543. request = request.onAllReady;
  7544. request();
  7545. }
  7546. function queueCompletedSegment(boundary, segment) {
  7547. if (
  7548. 0 === segment.chunks.length &&
  7549. 1 === segment.children.length &&
  7550. null === segment.children[0].boundary &&
  7551. -1 === segment.children[0].id
  7552. ) {
  7553. var childSegment = segment.children[0];
  7554. childSegment.id = segment.id;
  7555. childSegment.parentFlushed = !0;
  7556. (childSegment.status !== COMPLETED &&
  7557. childSegment.status !== ABORTED &&
  7558. childSegment.status !== ERRORED) ||
  7559. queueCompletedSegment(boundary, childSegment);
  7560. } else boundary.completedSegments.push(segment);
  7561. }
  7562. function finishedSegment(request, boundary, segment) {
  7563. if (null !== byteLengthOfChunk) {
  7564. segment = segment.chunks;
  7565. for (var segmentByteSize = 0, i = 0; i < segment.length; i++)
  7566. segmentByteSize += segment[i].byteLength;
  7567. null === boundary
  7568. ? (request.byteSize += segmentByteSize)
  7569. : (boundary.byteSize += segmentByteSize);
  7570. }
  7571. }
  7572. function finishedTask(request, boundary, row, segment) {
  7573. null !== row &&
  7574. (0 === --row.pendingTasks
  7575. ? finishSuspenseListRow(request, row)
  7576. : row.together && tryToResolveTogetherRow(request, row));
  7577. request.allPendingTasks--;
  7578. if (null === boundary) {
  7579. if (null !== segment && segment.parentFlushed) {
  7580. if (null !== request.completedRootSegment)
  7581. throw Error(
  7582. "There can only be one root segment. This is a bug in React."
  7583. );
  7584. request.completedRootSegment = segment;
  7585. }
  7586. request.pendingRootTasks--;
  7587. 0 === request.pendingRootTasks && completeShell(request);
  7588. } else if ((boundary.pendingTasks--, boundary.status !== CLIENT_RENDERED))
  7589. if (0 === boundary.pendingTasks)
  7590. if (
  7591. (boundary.status === PENDING && (boundary.status = COMPLETED),
  7592. null !== segment &&
  7593. segment.parentFlushed &&
  7594. (segment.status === COMPLETED || segment.status === ABORTED) &&
  7595. queueCompletedSegment(boundary, segment),
  7596. boundary.parentFlushed &&
  7597. request.completedBoundaries.push(boundary),
  7598. boundary.status === COMPLETED)
  7599. )
  7600. (row = boundary.row),
  7601. null !== row &&
  7602. hoistHoistables(row.hoistables, boundary.contentState),
  7603. isEligibleForOutlining(request, boundary) ||
  7604. (boundary.fallbackAbortableTasks.forEach(
  7605. abortTaskSoft,
  7606. request
  7607. ),
  7608. boundary.fallbackAbortableTasks.clear(),
  7609. null !== row &&
  7610. 0 === --row.pendingTasks &&
  7611. finishSuspenseListRow(request, row)),
  7612. 0 === request.pendingRootTasks &&
  7613. null === request.trackedPostpones &&
  7614. null !== boundary.contentPreamble &&
  7615. preparePreamble(request);
  7616. else {
  7617. if (
  7618. boundary.status === POSTPONED &&
  7619. ((boundary = boundary.row), null !== boundary)
  7620. ) {
  7621. if (null !== request.trackedPostpones) {
  7622. row = request.trackedPostpones;
  7623. var postponedRow = boundary.next;
  7624. if (
  7625. null !== postponedRow &&
  7626. ((segment = postponedRow.boundaries), null !== segment)
  7627. )
  7628. for (
  7629. postponedRow.boundaries = null, postponedRow = 0;
  7630. postponedRow < segment.length;
  7631. postponedRow++
  7632. ) {
  7633. var postponedBoundary = segment[postponedRow];
  7634. trackPostponedBoundary(request, row, postponedBoundary);
  7635. finishedTask(request, postponedBoundary, null, null);
  7636. }
  7637. }
  7638. 0 === --boundary.pendingTasks &&
  7639. finishSuspenseListRow(request, boundary);
  7640. }
  7641. }
  7642. else
  7643. null === segment ||
  7644. !segment.parentFlushed ||
  7645. (segment.status !== COMPLETED && segment.status !== ABORTED) ||
  7646. (queueCompletedSegment(boundary, segment),
  7647. 1 === boundary.completedSegments.length &&
  7648. boundary.parentFlushed &&
  7649. request.partialBoundaries.push(boundary)),
  7650. (boundary = boundary.row),
  7651. null !== boundary &&
  7652. boundary.together &&
  7653. tryToResolveTogetherRow(request, boundary);
  7654. 0 === request.allPendingTasks && completeAll(request);
  7655. }
  7656. function performWork(request$jscomp$2) {
  7657. if (
  7658. request$jscomp$2.status !== CLOSED &&
  7659. 13 !== request$jscomp$2.status
  7660. ) {
  7661. var prevContext = currentActiveSnapshot,
  7662. prevDispatcher = ReactSharedInternals.H;
  7663. ReactSharedInternals.H = HooksDispatcher;
  7664. var prevAsyncDispatcher = ReactSharedInternals.A;
  7665. ReactSharedInternals.A = DefaultAsyncDispatcher;
  7666. var prevRequest = currentRequest;
  7667. currentRequest = request$jscomp$2;
  7668. var prevGetCurrentStackImpl = ReactSharedInternals.getCurrentStack;
  7669. ReactSharedInternals.getCurrentStack = getCurrentStackInDEV;
  7670. var prevResumableState = currentResumableState;
  7671. currentResumableState = request$jscomp$2.resumableState;
  7672. try {
  7673. var pingedTasks = request$jscomp$2.pingedTasks,
  7674. i;
  7675. for (i = 0; i < pingedTasks.length; i++) {
  7676. var request = request$jscomp$2,
  7677. task = pingedTasks[i],
  7678. segment = task.blockedSegment;
  7679. if (null === segment) {
  7680. var prevTaskInDEV = void 0,
  7681. request$jscomp$0 = request;
  7682. request = task;
  7683. if (0 !== request.replay.pendingTasks) {
  7684. switchContext(request.context);
  7685. prevTaskInDEV = currentTaskInDEV;
  7686. currentTaskInDEV = request;
  7687. try {
  7688. "number" === typeof request.replay.slots
  7689. ? resumeNode(
  7690. request$jscomp$0,
  7691. request,
  7692. request.replay.slots,
  7693. request.node,
  7694. request.childIndex
  7695. )
  7696. : retryNode(request$jscomp$0, request);
  7697. if (
  7698. 1 === request.replay.pendingTasks &&
  7699. 0 < request.replay.nodes.length
  7700. )
  7701. throw Error(
  7702. "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
  7703. );
  7704. request.replay.pendingTasks--;
  7705. request.abortSet.delete(request);
  7706. finishedTask(
  7707. request$jscomp$0,
  7708. request.blockedBoundary,
  7709. request.row,
  7710. null
  7711. );
  7712. } catch (thrownValue) {
  7713. resetHooksState();
  7714. var x =
  7715. thrownValue === SuspenseException
  7716. ? getSuspendedThenable()
  7717. : thrownValue;
  7718. if (
  7719. "object" === typeof x &&
  7720. null !== x &&
  7721. "function" === typeof x.then
  7722. ) {
  7723. var ping = request.ping;
  7724. x.then(ping, ping);
  7725. request.thenableState =
  7726. thrownValue === SuspenseException
  7727. ? getThenableStateAfterSuspending()
  7728. : null;
  7729. } else {
  7730. request.replay.pendingTasks--;
  7731. request.abortSet.delete(request);
  7732. var errorInfo = getThrownInfo(request.componentStack),
  7733. errorDigest = void 0,
  7734. request$jscomp$1 = request$jscomp$0,
  7735. boundary = request.blockedBoundary,
  7736. error$jscomp$0 =
  7737. 12 === request$jscomp$0.status
  7738. ? request$jscomp$0.fatalError
  7739. : x,
  7740. errorInfo$jscomp$0 = errorInfo,
  7741. replayNodes = request.replay.nodes,
  7742. resumeSlots = request.replay.slots;
  7743. errorDigest = logRecoverableError(
  7744. request$jscomp$1,
  7745. error$jscomp$0,
  7746. errorInfo$jscomp$0,
  7747. request.debugTask
  7748. );
  7749. abortRemainingReplayNodes(
  7750. request$jscomp$1,
  7751. boundary,
  7752. replayNodes,
  7753. resumeSlots,
  7754. error$jscomp$0,
  7755. errorDigest,
  7756. errorInfo$jscomp$0,
  7757. !1
  7758. );
  7759. request$jscomp$0.pendingRootTasks--;
  7760. 0 === request$jscomp$0.pendingRootTasks &&
  7761. completeShell(request$jscomp$0);
  7762. request$jscomp$0.allPendingTasks--;
  7763. 0 === request$jscomp$0.allPendingTasks &&
  7764. completeAll(request$jscomp$0);
  7765. }
  7766. } finally {
  7767. currentTaskInDEV = prevTaskInDEV;
  7768. }
  7769. }
  7770. } else if (
  7771. ((request$jscomp$0 = prevTaskInDEV = void 0),
  7772. (errorDigest = task),
  7773. (request$jscomp$1 = segment),
  7774. request$jscomp$1.status === PENDING)
  7775. ) {
  7776. request$jscomp$1.status = 6;
  7777. switchContext(errorDigest.context);
  7778. request$jscomp$0 = currentTaskInDEV;
  7779. currentTaskInDEV = errorDigest;
  7780. var childrenLength = request$jscomp$1.children.length,
  7781. chunkLength = request$jscomp$1.chunks.length;
  7782. try {
  7783. retryNode(request, errorDigest),
  7784. request$jscomp$1.lastPushedText &&
  7785. request$jscomp$1.textEmbedded &&
  7786. request$jscomp$1.chunks.push(textSeparator),
  7787. errorDigest.abortSet.delete(errorDigest),
  7788. (request$jscomp$1.status = COMPLETED),
  7789. finishedSegment(
  7790. request,
  7791. errorDigest.blockedBoundary,
  7792. request$jscomp$1
  7793. ),
  7794. finishedTask(
  7795. request,
  7796. errorDigest.blockedBoundary,
  7797. errorDigest.row,
  7798. request$jscomp$1
  7799. );
  7800. } catch (thrownValue) {
  7801. resetHooksState();
  7802. request$jscomp$1.children.length = childrenLength;
  7803. request$jscomp$1.chunks.length = chunkLength;
  7804. var x$jscomp$0 =
  7805. thrownValue === SuspenseException
  7806. ? getSuspendedThenable()
  7807. : 12 === request.status
  7808. ? request.fatalError
  7809. : thrownValue;
  7810. if (
  7811. 12 === request.status &&
  7812. null !== request.trackedPostpones
  7813. ) {
  7814. var trackedPostpones = request.trackedPostpones,
  7815. thrownInfo = getThrownInfo(errorDigest.componentStack);
  7816. errorDigest.abortSet.delete(errorDigest);
  7817. logRecoverableError(
  7818. request,
  7819. x$jscomp$0,
  7820. thrownInfo,
  7821. errorDigest.debugTask
  7822. );
  7823. trackPostpone(
  7824. request,
  7825. trackedPostpones,
  7826. errorDigest,
  7827. request$jscomp$1
  7828. );
  7829. finishedTask(
  7830. request,
  7831. errorDigest.blockedBoundary,
  7832. errorDigest.row,
  7833. request$jscomp$1
  7834. );
  7835. } else if (
  7836. "object" === typeof x$jscomp$0 &&
  7837. null !== x$jscomp$0 &&
  7838. "function" === typeof x$jscomp$0.then
  7839. ) {
  7840. request$jscomp$1.status = PENDING;
  7841. errorDigest.thenableState =
  7842. thrownValue === SuspenseException
  7843. ? getThenableStateAfterSuspending()
  7844. : null;
  7845. var ping$jscomp$0 = errorDigest.ping;
  7846. x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
  7847. } else {
  7848. var errorInfo$jscomp$1 = getThrownInfo(
  7849. errorDigest.componentStack
  7850. );
  7851. errorDigest.abortSet.delete(errorDigest);
  7852. request$jscomp$1.status = ERRORED;
  7853. var boundary$jscomp$0 = errorDigest.blockedBoundary,
  7854. row = errorDigest.row,
  7855. debugTask = errorDigest.debugTask;
  7856. null !== row &&
  7857. 0 === --row.pendingTasks &&
  7858. finishSuspenseListRow(request, row);
  7859. request.allPendingTasks--;
  7860. prevTaskInDEV = logRecoverableError(
  7861. request,
  7862. x$jscomp$0,
  7863. errorInfo$jscomp$1,
  7864. debugTask
  7865. );
  7866. if (null === boundary$jscomp$0)
  7867. fatalError(
  7868. request,
  7869. x$jscomp$0,
  7870. errorInfo$jscomp$1,
  7871. debugTask
  7872. );
  7873. else if (
  7874. (boundary$jscomp$0.pendingTasks--,
  7875. boundary$jscomp$0.status !== CLIENT_RENDERED)
  7876. ) {
  7877. boundary$jscomp$0.status = CLIENT_RENDERED;
  7878. encodeErrorForBoundary(
  7879. boundary$jscomp$0,
  7880. prevTaskInDEV,
  7881. x$jscomp$0,
  7882. errorInfo$jscomp$1,
  7883. !1
  7884. );
  7885. untrackBoundary(request, boundary$jscomp$0);
  7886. var boundaryRow = boundary$jscomp$0.row;
  7887. null !== boundaryRow &&
  7888. 0 === --boundaryRow.pendingTasks &&
  7889. finishSuspenseListRow(request, boundaryRow);
  7890. boundary$jscomp$0.parentFlushed &&
  7891. request.clientRenderedBoundaries.push(boundary$jscomp$0);
  7892. 0 === request.pendingRootTasks &&
  7893. null === request.trackedPostpones &&
  7894. null !== boundary$jscomp$0.contentPreamble &&
  7895. preparePreamble(request);
  7896. }
  7897. 0 === request.allPendingTasks && completeAll(request);
  7898. }
  7899. } finally {
  7900. currentTaskInDEV = request$jscomp$0;
  7901. }
  7902. }
  7903. }
  7904. pingedTasks.splice(0, i);
  7905. null !== request$jscomp$2.destination &&
  7906. flushCompletedQueues(
  7907. request$jscomp$2,
  7908. request$jscomp$2.destination
  7909. );
  7910. } catch (error) {
  7911. (pingedTasks = {}),
  7912. logRecoverableError(request$jscomp$2, error, pingedTasks, null),
  7913. fatalError(request$jscomp$2, error, pingedTasks, null);
  7914. } finally {
  7915. (currentResumableState = prevResumableState),
  7916. (ReactSharedInternals.H = prevDispatcher),
  7917. (ReactSharedInternals.A = prevAsyncDispatcher),
  7918. (ReactSharedInternals.getCurrentStack = prevGetCurrentStackImpl),
  7919. prevDispatcher === HooksDispatcher && switchContext(prevContext),
  7920. (currentRequest = prevRequest);
  7921. }
  7922. }
  7923. }
  7924. function preparePreambleFromSubtree(
  7925. request,
  7926. segment,
  7927. collectedPreambleSegments
  7928. ) {
  7929. segment.preambleChildren.length &&
  7930. collectedPreambleSegments.push(segment.preambleChildren);
  7931. for (var pendingPreambles = !1, i = 0; i < segment.children.length; i++)
  7932. pendingPreambles =
  7933. preparePreambleFromSegment(
  7934. request,
  7935. segment.children[i],
  7936. collectedPreambleSegments
  7937. ) || pendingPreambles;
  7938. return pendingPreambles;
  7939. }
  7940. function preparePreambleFromSegment(
  7941. request,
  7942. segment,
  7943. collectedPreambleSegments
  7944. ) {
  7945. var boundary = segment.boundary;
  7946. if (null === boundary)
  7947. return preparePreambleFromSubtree(
  7948. request,
  7949. segment,
  7950. collectedPreambleSegments
  7951. );
  7952. var preamble = boundary.contentPreamble,
  7953. fallbackPreamble = boundary.fallbackPreamble;
  7954. if (null === preamble || null === fallbackPreamble) return !1;
  7955. switch (boundary.status) {
  7956. case COMPLETED:
  7957. hoistPreambleState(request.renderState, preamble);
  7958. request.byteSize += boundary.byteSize;
  7959. segment = boundary.completedSegments[0];
  7960. if (!segment)
  7961. throw Error(
  7962. "A previously unvisited boundary must have exactly one root segment. This is a bug in React."
  7963. );
  7964. return preparePreambleFromSubtree(
  7965. request,
  7966. segment,
  7967. collectedPreambleSegments
  7968. );
  7969. case POSTPONED:
  7970. if (null !== request.trackedPostpones) return !0;
  7971. case CLIENT_RENDERED:
  7972. if (segment.status === COMPLETED)
  7973. return (
  7974. hoistPreambleState(request.renderState, fallbackPreamble),
  7975. preparePreambleFromSubtree(
  7976. request,
  7977. segment,
  7978. collectedPreambleSegments
  7979. )
  7980. );
  7981. default:
  7982. return !0;
  7983. }
  7984. }
  7985. function preparePreamble(request) {
  7986. if (
  7987. request.completedRootSegment &&
  7988. null === request.completedPreambleSegments
  7989. ) {
  7990. var collectedPreambleSegments = [],
  7991. originalRequestByteSize = request.byteSize,
  7992. hasPendingPreambles = preparePreambleFromSegment(
  7993. request,
  7994. request.completedRootSegment,
  7995. collectedPreambleSegments
  7996. ),
  7997. preamble = request.renderState.preamble;
  7998. !1 === hasPendingPreambles ||
  7999. (preamble.headChunks && preamble.bodyChunks)
  8000. ? (request.completedPreambleSegments = collectedPreambleSegments)
  8001. : (request.byteSize = originalRequestByteSize);
  8002. }
  8003. }
  8004. function flushSubtree(request, destination, segment, hoistableState) {
  8005. segment.parentFlushed = !0;
  8006. switch (segment.status) {
  8007. case PENDING:
  8008. segment.id = request.nextSegmentId++;
  8009. case POSTPONED:
  8010. return (
  8011. (hoistableState = segment.id),
  8012. (segment.lastPushedText = !1),
  8013. (segment.textEmbedded = !1),
  8014. (request = request.renderState),
  8015. writeChunk(destination, placeholder1),
  8016. writeChunk(destination, request.placeholderPrefix),
  8017. (request = stringToChunk(hoistableState.toString(16))),
  8018. writeChunk(destination, request),
  8019. writeChunkAndReturn(destination, placeholder2)
  8020. );
  8021. case COMPLETED:
  8022. segment.status = FLUSHED;
  8023. var r = !0,
  8024. chunks = segment.chunks,
  8025. chunkIdx = 0;
  8026. segment = segment.children;
  8027. for (var childIdx = 0; childIdx < segment.length; childIdx++) {
  8028. for (r = segment[childIdx]; chunkIdx < r.index; chunkIdx++)
  8029. writeChunk(destination, chunks[chunkIdx]);
  8030. r = flushSegment(request, destination, r, hoistableState);
  8031. }
  8032. for (; chunkIdx < chunks.length - 1; chunkIdx++)
  8033. writeChunk(destination, chunks[chunkIdx]);
  8034. chunkIdx < chunks.length &&
  8035. (r = writeChunkAndReturn(destination, chunks[chunkIdx]));
  8036. return r;
  8037. case ABORTED:
  8038. return !0;
  8039. default:
  8040. throw Error(
  8041. "Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React."
  8042. );
  8043. }
  8044. }
  8045. function flushSegment(request, destination, segment, hoistableState) {
  8046. var boundary = segment.boundary;
  8047. if (null === boundary)
  8048. return flushSubtree(request, destination, segment, hoistableState);
  8049. boundary.parentFlushed = !0;
  8050. if (boundary.status === CLIENT_RENDERED) {
  8051. var row = boundary.row;
  8052. null !== row &&
  8053. 0 === --row.pendingTasks &&
  8054. finishSuspenseListRow(request, row);
  8055. row = boundary.errorDigest;
  8056. var errorMessage = boundary.errorMessage,
  8057. errorStack = boundary.errorStack;
  8058. boundary = boundary.errorComponentStack;
  8059. writeChunkAndReturn(destination, startClientRenderedSuspenseBoundary);
  8060. writeChunk(destination, clientRenderedSuspenseBoundaryError1);
  8061. row &&
  8062. (writeChunk(destination, clientRenderedSuspenseBoundaryError1A),
  8063. writeChunk(destination, stringToChunk(escapeTextForBrowser(row))),
  8064. writeChunk(
  8065. destination,
  8066. clientRenderedSuspenseBoundaryErrorAttrInterstitial
  8067. ));
  8068. errorMessage &&
  8069. (writeChunk(destination, clientRenderedSuspenseBoundaryError1B),
  8070. writeChunk(
  8071. destination,
  8072. stringToChunk(escapeTextForBrowser(errorMessage))
  8073. ),
  8074. writeChunk(
  8075. destination,
  8076. clientRenderedSuspenseBoundaryErrorAttrInterstitial
  8077. ));
  8078. errorStack &&
  8079. (writeChunk(destination, clientRenderedSuspenseBoundaryError1C),
  8080. writeChunk(
  8081. destination,
  8082. stringToChunk(escapeTextForBrowser(errorStack))
  8083. ),
  8084. writeChunk(
  8085. destination,
  8086. clientRenderedSuspenseBoundaryErrorAttrInterstitial
  8087. ));
  8088. boundary &&
  8089. (writeChunk(destination, clientRenderedSuspenseBoundaryError1D),
  8090. writeChunk(
  8091. destination,
  8092. stringToChunk(escapeTextForBrowser(boundary))
  8093. ),
  8094. writeChunk(
  8095. destination,
  8096. clientRenderedSuspenseBoundaryErrorAttrInterstitial
  8097. ));
  8098. writeChunkAndReturn(destination, clientRenderedSuspenseBoundaryError2);
  8099. flushSubtree(request, destination, segment, hoistableState);
  8100. } else if (boundary.status !== COMPLETED)
  8101. boundary.status === PENDING &&
  8102. (boundary.rootSegmentID = request.nextSegmentId++),
  8103. 0 < boundary.completedSegments.length &&
  8104. request.partialBoundaries.push(boundary),
  8105. writeStartPendingSuspenseBoundary(
  8106. destination,
  8107. request.renderState,
  8108. boundary.rootSegmentID
  8109. ),
  8110. hoistableState &&
  8111. hoistHoistables(hoistableState, boundary.fallbackState),
  8112. flushSubtree(request, destination, segment, hoistableState);
  8113. else if (
  8114. !flushingPartialBoundaries &&
  8115. isEligibleForOutlining(request, boundary) &&
  8116. (flushedByteSize + boundary.byteSize > request.progressiveChunkSize ||
  8117. hasSuspenseyContent(boundary.contentState))
  8118. )
  8119. (boundary.rootSegmentID = request.nextSegmentId++),
  8120. request.completedBoundaries.push(boundary),
  8121. writeStartPendingSuspenseBoundary(
  8122. destination,
  8123. request.renderState,
  8124. boundary.rootSegmentID
  8125. ),
  8126. flushSubtree(request, destination, segment, hoistableState);
  8127. else {
  8128. flushedByteSize += boundary.byteSize;
  8129. hoistableState &&
  8130. hoistHoistables(hoistableState, boundary.contentState);
  8131. segment = boundary.row;
  8132. null !== segment &&
  8133. isEligibleForOutlining(request, boundary) &&
  8134. 0 === --segment.pendingTasks &&
  8135. finishSuspenseListRow(request, segment);
  8136. writeChunkAndReturn(destination, startCompletedSuspenseBoundary);
  8137. segment = boundary.completedSegments;
  8138. if (1 !== segment.length)
  8139. throw Error(
  8140. "A previously unvisited boundary must have exactly one root segment. This is a bug in React."
  8141. );
  8142. flushSegment(request, destination, segment[0], hoistableState);
  8143. }
  8144. return writeChunkAndReturn(destination, endSuspenseBoundary);
  8145. }
  8146. function flushSegmentContainer(
  8147. request,
  8148. destination,
  8149. segment,
  8150. hoistableState
  8151. ) {
  8152. writeStartSegment(
  8153. destination,
  8154. request.renderState,
  8155. segment.parentFormatContext,
  8156. segment.id
  8157. );
  8158. flushSegment(request, destination, segment, hoistableState);
  8159. return writeEndSegment(destination, segment.parentFormatContext);
  8160. }
  8161. function flushCompletedBoundary(request, destination, boundary) {
  8162. flushedByteSize = boundary.byteSize;
  8163. for (
  8164. var completedSegments = boundary.completedSegments, i = 0;
  8165. i < completedSegments.length;
  8166. i++
  8167. )
  8168. flushPartiallyCompletedSegment(
  8169. request,
  8170. destination,
  8171. boundary,
  8172. completedSegments[i]
  8173. );
  8174. completedSegments.length = 0;
  8175. completedSegments = boundary.row;
  8176. null !== completedSegments &&
  8177. isEligibleForOutlining(request, boundary) &&
  8178. 0 === --completedSegments.pendingTasks &&
  8179. finishSuspenseListRow(request, completedSegments);
  8180. writeHoistablesForBoundary(
  8181. destination,
  8182. boundary.contentState,
  8183. request.renderState
  8184. );
  8185. completedSegments = request.resumableState;
  8186. request = request.renderState;
  8187. i = boundary.rootSegmentID;
  8188. boundary = boundary.contentState;
  8189. var requiresStyleInsertion = request.stylesToHoist;
  8190. request.stylesToHoist = !1;
  8191. writeChunk(destination, request.startInlineScript);
  8192. writeChunk(destination, endOfStartTag);
  8193. requiresStyleInsertion
  8194. ? ((completedSegments.instructions & SentClientRenderFunction) ===
  8195. NothingSent &&
  8196. ((completedSegments.instructions |= SentClientRenderFunction),
  8197. writeChunk(destination, clientRenderScriptFunctionOnly)),
  8198. (completedSegments.instructions & SentCompleteBoundaryFunction) ===
  8199. NothingSent &&
  8200. ((completedSegments.instructions |= SentCompleteBoundaryFunction),
  8201. writeChunk(destination, completeBoundaryScriptFunctionOnly)),
  8202. (completedSegments.instructions & SentStyleInsertionFunction) ===
  8203. NothingSent
  8204. ? ((completedSegments.instructions |= SentStyleInsertionFunction),
  8205. writeChunk(
  8206. destination,
  8207. completeBoundaryWithStylesScript1FullPartial
  8208. ))
  8209. : writeChunk(destination, completeBoundaryWithStylesScript1Partial))
  8210. : ((completedSegments.instructions & SentCompleteBoundaryFunction) ===
  8211. NothingSent &&
  8212. ((completedSegments.instructions |= SentCompleteBoundaryFunction),
  8213. writeChunk(destination, completeBoundaryScriptFunctionOnly)),
  8214. writeChunk(destination, completeBoundaryScript1Partial));
  8215. completedSegments = stringToChunk(i.toString(16));
  8216. writeChunk(destination, request.boundaryPrefix);
  8217. writeChunk(destination, completedSegments);
  8218. writeChunk(destination, completeBoundaryScript2);
  8219. writeChunk(destination, request.segmentPrefix);
  8220. writeChunk(destination, completedSegments);
  8221. requiresStyleInsertion
  8222. ? (writeChunk(destination, completeBoundaryScript3a),
  8223. writeStyleResourceDependenciesInJS(destination, boundary))
  8224. : writeChunk(destination, completeBoundaryScript3b);
  8225. boundary = writeChunkAndReturn(destination, completeBoundaryScriptEnd);
  8226. return writeBootstrap(destination, request) && boundary;
  8227. }
  8228. function flushPartiallyCompletedSegment(
  8229. request,
  8230. destination,
  8231. boundary,
  8232. segment
  8233. ) {
  8234. if (segment.status === FLUSHED) return !0;
  8235. var hoistableState = boundary.contentState,
  8236. segmentID = segment.id;
  8237. if (-1 === segmentID) {
  8238. if (-1 === (segment.id = boundary.rootSegmentID))
  8239. throw Error(
  8240. "A root segment ID must have been assigned by now. This is a bug in React."
  8241. );
  8242. return flushSegmentContainer(
  8243. request,
  8244. destination,
  8245. segment,
  8246. hoistableState
  8247. );
  8248. }
  8249. if (segmentID === boundary.rootSegmentID)
  8250. return flushSegmentContainer(
  8251. request,
  8252. destination,
  8253. segment,
  8254. hoistableState
  8255. );
  8256. flushSegmentContainer(request, destination, segment, hoistableState);
  8257. boundary = request.resumableState;
  8258. request = request.renderState;
  8259. writeChunk(destination, request.startInlineScript);
  8260. writeChunk(destination, endOfStartTag);
  8261. (boundary.instructions & SentCompleteSegmentFunction) === NothingSent
  8262. ? ((boundary.instructions |= SentCompleteSegmentFunction),
  8263. writeChunk(destination, completeSegmentScript1Full))
  8264. : writeChunk(destination, completeSegmentScript1Partial);
  8265. writeChunk(destination, request.segmentPrefix);
  8266. segmentID = stringToChunk(segmentID.toString(16));
  8267. writeChunk(destination, segmentID);
  8268. writeChunk(destination, completeSegmentScript2);
  8269. writeChunk(destination, request.placeholderPrefix);
  8270. writeChunk(destination, segmentID);
  8271. destination = writeChunkAndReturn(destination, completeSegmentScriptEnd);
  8272. return destination;
  8273. }
  8274. function flushCompletedQueues(request, destination) {
  8275. currentView = new Uint8Array(2048);
  8276. writtenBytes = 0;
  8277. try {
  8278. if (!(0 < request.pendingRootTasks)) {
  8279. var i,
  8280. completedRootSegment = request.completedRootSegment;
  8281. if (null !== completedRootSegment) {
  8282. if (completedRootSegment.status === POSTPONED) return;
  8283. var completedPreambleSegments = request.completedPreambleSegments;
  8284. if (null === completedPreambleSegments) return;
  8285. flushedByteSize = request.byteSize;
  8286. var resumableState = request.resumableState,
  8287. renderState = request.renderState,
  8288. preamble = renderState.preamble,
  8289. htmlChunks = preamble.htmlChunks,
  8290. headChunks = preamble.headChunks,
  8291. i$jscomp$0;
  8292. if (htmlChunks) {
  8293. for (i$jscomp$0 = 0; i$jscomp$0 < htmlChunks.length; i$jscomp$0++)
  8294. writeChunk(destination, htmlChunks[i$jscomp$0]);
  8295. if (headChunks)
  8296. for (
  8297. i$jscomp$0 = 0;
  8298. i$jscomp$0 < headChunks.length;
  8299. i$jscomp$0++
  8300. )
  8301. writeChunk(destination, headChunks[i$jscomp$0]);
  8302. else
  8303. writeChunk(destination, startChunkForTag("head")),
  8304. writeChunk(destination, endOfStartTag);
  8305. } else if (headChunks)
  8306. for (i$jscomp$0 = 0; i$jscomp$0 < headChunks.length; i$jscomp$0++)
  8307. writeChunk(destination, headChunks[i$jscomp$0]);
  8308. var charsetChunks = renderState.charsetChunks;
  8309. for (
  8310. i$jscomp$0 = 0;
  8311. i$jscomp$0 < charsetChunks.length;
  8312. i$jscomp$0++
  8313. )
  8314. writeChunk(destination, charsetChunks[i$jscomp$0]);
  8315. charsetChunks.length = 0;
  8316. renderState.preconnects.forEach(flushResource, destination);
  8317. renderState.preconnects.clear();
  8318. var viewportChunks = renderState.viewportChunks;
  8319. for (
  8320. i$jscomp$0 = 0;
  8321. i$jscomp$0 < viewportChunks.length;
  8322. i$jscomp$0++
  8323. )
  8324. writeChunk(destination, viewportChunks[i$jscomp$0]);
  8325. viewportChunks.length = 0;
  8326. renderState.fontPreloads.forEach(flushResource, destination);
  8327. renderState.fontPreloads.clear();
  8328. renderState.highImagePreloads.forEach(flushResource, destination);
  8329. renderState.highImagePreloads.clear();
  8330. currentlyFlushingRenderState = renderState;
  8331. renderState.styles.forEach(flushStylesInPreamble, destination);
  8332. currentlyFlushingRenderState = null;
  8333. var importMapChunks = renderState.importMapChunks;
  8334. for (
  8335. i$jscomp$0 = 0;
  8336. i$jscomp$0 < importMapChunks.length;
  8337. i$jscomp$0++
  8338. )
  8339. writeChunk(destination, importMapChunks[i$jscomp$0]);
  8340. importMapChunks.length = 0;
  8341. renderState.bootstrapScripts.forEach(flushResource, destination);
  8342. renderState.scripts.forEach(flushResource, destination);
  8343. renderState.scripts.clear();
  8344. renderState.bulkPreloads.forEach(flushResource, destination);
  8345. renderState.bulkPreloads.clear();
  8346. htmlChunks ||
  8347. headChunks ||
  8348. (resumableState.instructions |= SentCompletedShellId);
  8349. var hoistableChunks = renderState.hoistableChunks;
  8350. for (
  8351. i$jscomp$0 = 0;
  8352. i$jscomp$0 < hoistableChunks.length;
  8353. i$jscomp$0++
  8354. )
  8355. writeChunk(destination, hoistableChunks[i$jscomp$0]);
  8356. for (
  8357. resumableState = hoistableChunks.length = 0;
  8358. resumableState < completedPreambleSegments.length;
  8359. resumableState++
  8360. ) {
  8361. var segments = completedPreambleSegments[resumableState];
  8362. for (
  8363. renderState = 0;
  8364. renderState < segments.length;
  8365. renderState++
  8366. )
  8367. flushSegment(request, destination, segments[renderState], null);
  8368. }
  8369. var preamble$jscomp$0 = request.renderState.preamble,
  8370. headChunks$jscomp$0 = preamble$jscomp$0.headChunks;
  8371. (preamble$jscomp$0.htmlChunks || headChunks$jscomp$0) &&
  8372. writeChunk(destination, endChunkForTag("head"));
  8373. var bodyChunks = preamble$jscomp$0.bodyChunks;
  8374. if (bodyChunks)
  8375. for (
  8376. completedPreambleSegments = 0;
  8377. completedPreambleSegments < bodyChunks.length;
  8378. completedPreambleSegments++
  8379. )
  8380. writeChunk(destination, bodyChunks[completedPreambleSegments]);
  8381. flushSegment(request, destination, completedRootSegment, null);
  8382. request.completedRootSegment = null;
  8383. var renderState$jscomp$0 = request.renderState;
  8384. if (
  8385. 0 !== request.allPendingTasks ||
  8386. 0 !== request.clientRenderedBoundaries.length ||
  8387. 0 !== request.completedBoundaries.length ||
  8388. (null !== request.trackedPostpones &&
  8389. (0 !== request.trackedPostpones.rootNodes.length ||
  8390. null !== request.trackedPostpones.rootSlots))
  8391. ) {
  8392. var resumableState$jscomp$0 = request.resumableState;
  8393. if (
  8394. (resumableState$jscomp$0.instructions & SentMarkShellTime) ===
  8395. NothingSent
  8396. ) {
  8397. resumableState$jscomp$0.instructions |= SentMarkShellTime;
  8398. writeChunk(destination, renderState$jscomp$0.startInlineScript);
  8399. if (
  8400. (resumableState$jscomp$0.instructions &
  8401. SentCompletedShellId) ===
  8402. NothingSent
  8403. ) {
  8404. resumableState$jscomp$0.instructions |= SentCompletedShellId;
  8405. var shellId = "_" + resumableState$jscomp$0.idPrefix + "R_";
  8406. writeChunk(destination, completedShellIdAttributeStart);
  8407. writeChunk(
  8408. destination,
  8409. stringToChunk(escapeTextForBrowser(shellId))
  8410. );
  8411. writeChunk(destination, attributeEnd);
  8412. }
  8413. writeChunk(destination, endOfStartTag);
  8414. writeChunk(destination, shellTimeRuntimeScript);
  8415. writeChunkAndReturn(destination, endInlineScript);
  8416. }
  8417. }
  8418. writeBootstrap(destination, renderState$jscomp$0);
  8419. }
  8420. var renderState$jscomp$1 = request.renderState;
  8421. completedRootSegment = 0;
  8422. var viewportChunks$jscomp$0 = renderState$jscomp$1.viewportChunks;
  8423. for (
  8424. completedRootSegment = 0;
  8425. completedRootSegment < viewportChunks$jscomp$0.length;
  8426. completedRootSegment++
  8427. )
  8428. writeChunk(
  8429. destination,
  8430. viewportChunks$jscomp$0[completedRootSegment]
  8431. );
  8432. viewportChunks$jscomp$0.length = 0;
  8433. renderState$jscomp$1.preconnects.forEach(flushResource, destination);
  8434. renderState$jscomp$1.preconnects.clear();
  8435. renderState$jscomp$1.fontPreloads.forEach(flushResource, destination);
  8436. renderState$jscomp$1.fontPreloads.clear();
  8437. renderState$jscomp$1.highImagePreloads.forEach(
  8438. flushResource,
  8439. destination
  8440. );
  8441. renderState$jscomp$1.highImagePreloads.clear();
  8442. renderState$jscomp$1.styles.forEach(preloadLateStyles, destination);
  8443. renderState$jscomp$1.scripts.forEach(flushResource, destination);
  8444. renderState$jscomp$1.scripts.clear();
  8445. renderState$jscomp$1.bulkPreloads.forEach(flushResource, destination);
  8446. renderState$jscomp$1.bulkPreloads.clear();
  8447. var hoistableChunks$jscomp$0 = renderState$jscomp$1.hoistableChunks;
  8448. for (
  8449. completedRootSegment = 0;
  8450. completedRootSegment < hoistableChunks$jscomp$0.length;
  8451. completedRootSegment++
  8452. )
  8453. writeChunk(
  8454. destination,
  8455. hoistableChunks$jscomp$0[completedRootSegment]
  8456. );
  8457. hoistableChunks$jscomp$0.length = 0;
  8458. var clientRenderedBoundaries = request.clientRenderedBoundaries;
  8459. for (i = 0; i < clientRenderedBoundaries.length; i++) {
  8460. var boundary = clientRenderedBoundaries[i];
  8461. renderState$jscomp$1 = destination;
  8462. var resumableState$jscomp$1 = request.resumableState,
  8463. renderState$jscomp$2 = request.renderState,
  8464. id = boundary.rootSegmentID,
  8465. errorDigest = boundary.errorDigest,
  8466. errorMessage = boundary.errorMessage,
  8467. errorStack = boundary.errorStack,
  8468. errorComponentStack = boundary.errorComponentStack;
  8469. writeChunk(
  8470. renderState$jscomp$1,
  8471. renderState$jscomp$2.startInlineScript
  8472. );
  8473. writeChunk(renderState$jscomp$1, endOfStartTag);
  8474. (resumableState$jscomp$1.instructions &
  8475. SentClientRenderFunction) ===
  8476. NothingSent
  8477. ? ((resumableState$jscomp$1.instructions |=
  8478. SentClientRenderFunction),
  8479. writeChunk(renderState$jscomp$1, clientRenderScript1Full))
  8480. : writeChunk(renderState$jscomp$1, clientRenderScript1Partial);
  8481. writeChunk(
  8482. renderState$jscomp$1,
  8483. renderState$jscomp$2.boundaryPrefix
  8484. );
  8485. writeChunk(renderState$jscomp$1, stringToChunk(id.toString(16)));
  8486. writeChunk(renderState$jscomp$1, clientRenderScript1A);
  8487. if (
  8488. errorDigest ||
  8489. errorMessage ||
  8490. errorStack ||
  8491. errorComponentStack
  8492. )
  8493. writeChunk(
  8494. renderState$jscomp$1,
  8495. clientRenderErrorScriptArgInterstitial
  8496. ),
  8497. writeChunk(
  8498. renderState$jscomp$1,
  8499. stringToChunk(
  8500. escapeJSStringsForInstructionScripts(errorDigest || "")
  8501. )
  8502. );
  8503. if (errorMessage || errorStack || errorComponentStack)
  8504. writeChunk(
  8505. renderState$jscomp$1,
  8506. clientRenderErrorScriptArgInterstitial
  8507. ),
  8508. writeChunk(
  8509. renderState$jscomp$1,
  8510. stringToChunk(
  8511. escapeJSStringsForInstructionScripts(errorMessage || "")
  8512. )
  8513. );
  8514. if (errorStack || errorComponentStack)
  8515. writeChunk(
  8516. renderState$jscomp$1,
  8517. clientRenderErrorScriptArgInterstitial
  8518. ),
  8519. writeChunk(
  8520. renderState$jscomp$1,
  8521. stringToChunk(
  8522. escapeJSStringsForInstructionScripts(errorStack || "")
  8523. )
  8524. );
  8525. errorComponentStack &&
  8526. (writeChunk(
  8527. renderState$jscomp$1,
  8528. clientRenderErrorScriptArgInterstitial
  8529. ),
  8530. writeChunk(
  8531. renderState$jscomp$1,
  8532. stringToChunk(
  8533. escapeJSStringsForInstructionScripts(errorComponentStack)
  8534. )
  8535. ));
  8536. var JSCompiler_inline_result = writeChunkAndReturn(
  8537. renderState$jscomp$1,
  8538. clientRenderScriptEnd
  8539. );
  8540. if (!JSCompiler_inline_result) {
  8541. request.destination = null;
  8542. i++;
  8543. clientRenderedBoundaries.splice(0, i);
  8544. return;
  8545. }
  8546. }
  8547. clientRenderedBoundaries.splice(0, i);
  8548. var completedBoundaries = request.completedBoundaries;
  8549. for (i = 0; i < completedBoundaries.length; i++)
  8550. if (
  8551. !flushCompletedBoundary(
  8552. request,
  8553. destination,
  8554. completedBoundaries[i]
  8555. )
  8556. ) {
  8557. request.destination = null;
  8558. i++;
  8559. completedBoundaries.splice(0, i);
  8560. return;
  8561. }
  8562. completedBoundaries.splice(0, i);
  8563. completeWriting(destination);
  8564. currentView = new Uint8Array(2048);
  8565. writtenBytes = 0;
  8566. flushingPartialBoundaries = !0;
  8567. var partialBoundaries = request.partialBoundaries;
  8568. for (i = 0; i < partialBoundaries.length; i++) {
  8569. a: {
  8570. clientRenderedBoundaries = request;
  8571. boundary = destination;
  8572. var boundary$jscomp$0 = partialBoundaries[i];
  8573. flushedByteSize = boundary$jscomp$0.byteSize;
  8574. var completedSegments = boundary$jscomp$0.completedSegments;
  8575. for (
  8576. JSCompiler_inline_result = 0;
  8577. JSCompiler_inline_result < completedSegments.length;
  8578. JSCompiler_inline_result++
  8579. )
  8580. if (
  8581. !flushPartiallyCompletedSegment(
  8582. clientRenderedBoundaries,
  8583. boundary,
  8584. boundary$jscomp$0,
  8585. completedSegments[JSCompiler_inline_result]
  8586. )
  8587. ) {
  8588. JSCompiler_inline_result++;
  8589. completedSegments.splice(0, JSCompiler_inline_result);
  8590. var JSCompiler_inline_result$jscomp$0 = !1;
  8591. break a;
  8592. }
  8593. completedSegments.splice(0, JSCompiler_inline_result);
  8594. var row = boundary$jscomp$0.row;
  8595. null !== row &&
  8596. row.together &&
  8597. 1 === boundary$jscomp$0.pendingTasks &&
  8598. (1 === row.pendingTasks
  8599. ? unblockSuspenseListRow(
  8600. clientRenderedBoundaries,
  8601. row,
  8602. row.hoistables
  8603. )
  8604. : row.pendingTasks--);
  8605. JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
  8606. boundary,
  8607. boundary$jscomp$0.contentState,
  8608. clientRenderedBoundaries.renderState
  8609. );
  8610. }
  8611. if (!JSCompiler_inline_result$jscomp$0) {
  8612. request.destination = null;
  8613. i++;
  8614. partialBoundaries.splice(0, i);
  8615. return;
  8616. }
  8617. }
  8618. partialBoundaries.splice(0, i);
  8619. flushingPartialBoundaries = !1;
  8620. var largeBoundaries = request.completedBoundaries;
  8621. for (i = 0; i < largeBoundaries.length; i++)
  8622. if (
  8623. !flushCompletedBoundary(request, destination, largeBoundaries[i])
  8624. ) {
  8625. request.destination = null;
  8626. i++;
  8627. largeBoundaries.splice(0, i);
  8628. return;
  8629. }
  8630. largeBoundaries.splice(0, i);
  8631. }
  8632. } finally {
  8633. (flushingPartialBoundaries = !1),
  8634. 0 === request.allPendingTasks &&
  8635. 0 === request.clientRenderedBoundaries.length &&
  8636. 0 === request.completedBoundaries.length
  8637. ? ((request.flushScheduled = !1),
  8638. (i = request.resumableState),
  8639. i.hasBody && writeChunk(destination, endChunkForTag("body")),
  8640. i.hasHtml && writeChunk(destination, endChunkForTag("html")),
  8641. completeWriting(destination),
  8642. 0 !== request.abortableTasks.size &&
  8643. console.error(
  8644. "There was still abortable task at the root when we closed. This is a bug in React."
  8645. ),
  8646. (request.status = CLOSED),
  8647. destination.close(),
  8648. (request.destination = null))
  8649. : completeWriting(destination);
  8650. }
  8651. }
  8652. function startWork(request) {
  8653. request.flushScheduled = null !== request.destination;
  8654. supportsRequestStorage
  8655. ? scheduleMicrotask(function () {
  8656. return requestStorage.run(request, performWork, request);
  8657. })
  8658. : scheduleMicrotask(function () {
  8659. return performWork(request);
  8660. });
  8661. setTimeout(function () {
  8662. 10 === request.status && (request.status = 11);
  8663. null === request.trackedPostpones &&
  8664. (supportsRequestStorage
  8665. ? requestStorage.run(
  8666. request,
  8667. enqueueEarlyPreloadsAfterInitialWork,
  8668. request
  8669. )
  8670. : enqueueEarlyPreloadsAfterInitialWork(request));
  8671. }, 0);
  8672. }
  8673. function enqueueEarlyPreloadsAfterInitialWork(request) {
  8674. safelyEmitEarlyPreloads(request, 0 === request.pendingRootTasks);
  8675. }
  8676. function enqueueFlush(request) {
  8677. !1 === request.flushScheduled &&
  8678. 0 === request.pingedTasks.length &&
  8679. null !== request.destination &&
  8680. ((request.flushScheduled = !0),
  8681. setTimeout(function () {
  8682. var destination = request.destination;
  8683. destination
  8684. ? flushCompletedQueues(request, destination)
  8685. : (request.flushScheduled = !1);
  8686. }, 0));
  8687. }
  8688. function startFlowing(request, destination) {
  8689. if (13 === request.status)
  8690. (request.status = CLOSED),
  8691. closeWithError(destination, request.fatalError);
  8692. else if (request.status !== CLOSED && null === request.destination) {
  8693. request.destination = destination;
  8694. try {
  8695. flushCompletedQueues(request, destination);
  8696. } catch (error) {
  8697. (destination = {}),
  8698. logRecoverableError(request, error, destination, null),
  8699. fatalError(request, error, destination, null);
  8700. }
  8701. }
  8702. }
  8703. function abort(request, reason) {
  8704. if (11 === request.status || 10 === request.status) request.status = 12;
  8705. try {
  8706. var abortableTasks = request.abortableTasks;
  8707. if (0 < abortableTasks.size) {
  8708. var error =
  8709. void 0 === reason
  8710. ? Error("The render was aborted by the server without a reason.")
  8711. : "object" === typeof reason &&
  8712. null !== reason &&
  8713. "function" === typeof reason.then
  8714. ? Error("The render was aborted by the server with a promise.")
  8715. : reason;
  8716. request.fatalError = error;
  8717. abortableTasks.forEach(function (task) {
  8718. var prevTaskInDEV = currentTaskInDEV,
  8719. prevGetCurrentStackImpl = ReactSharedInternals.getCurrentStack;
  8720. currentTaskInDEV = task;
  8721. ReactSharedInternals.getCurrentStack = getCurrentStackInDEV;
  8722. try {
  8723. abortTask(task, request, error);
  8724. } finally {
  8725. (currentTaskInDEV = prevTaskInDEV),
  8726. (ReactSharedInternals.getCurrentStack =
  8727. prevGetCurrentStackImpl);
  8728. }
  8729. });
  8730. abortableTasks.clear();
  8731. }
  8732. null !== request.destination &&
  8733. flushCompletedQueues(request, request.destination);
  8734. } catch (error$4) {
  8735. (reason = {}),
  8736. logRecoverableError(request, error$4, reason, null),
  8737. fatalError(request, error$4, reason, null);
  8738. }
  8739. }
  8740. function addToReplayParent(node, parentKeyPath, trackedPostpones) {
  8741. if (null === parentKeyPath) trackedPostpones.rootNodes.push(node);
  8742. else {
  8743. var workingMap = trackedPostpones.workingMap,
  8744. parentNode = workingMap.get(parentKeyPath);
  8745. void 0 === parentNode &&
  8746. ((parentNode = [parentKeyPath[1], parentKeyPath[2], [], null]),
  8747. workingMap.set(parentKeyPath, parentNode),
  8748. addToReplayParent(parentNode, parentKeyPath[0], trackedPostpones));
  8749. parentNode[2].push(node);
  8750. }
  8751. }
  8752. function getPostponedState(request) {
  8753. var trackedPostpones = request.trackedPostpones;
  8754. if (
  8755. null === trackedPostpones ||
  8756. (0 === trackedPostpones.rootNodes.length &&
  8757. null === trackedPostpones.rootSlots)
  8758. )
  8759. return (request.trackedPostpones = null);
  8760. if (
  8761. null === request.completedRootSegment ||
  8762. (request.completedRootSegment.status !== POSTPONED &&
  8763. null !== request.completedPreambleSegments)
  8764. ) {
  8765. var nextSegmentId = request.nextSegmentId;
  8766. var replaySlots = trackedPostpones.rootSlots;
  8767. var resumableState = request.resumableState;
  8768. resumableState.bootstrapScriptContent = void 0;
  8769. resumableState.bootstrapScripts = void 0;
  8770. resumableState.bootstrapModules = void 0;
  8771. } else {
  8772. nextSegmentId = 0;
  8773. replaySlots = -1;
  8774. resumableState = request.resumableState;
  8775. var renderState = request.renderState;
  8776. resumableState.nextFormID = 0;
  8777. resumableState.hasBody = !1;
  8778. resumableState.hasHtml = !1;
  8779. resumableState.unknownResources = { font: renderState.resets.font };
  8780. resumableState.dnsResources = renderState.resets.dns;
  8781. resumableState.connectResources = renderState.resets.connect;
  8782. resumableState.imageResources = renderState.resets.image;
  8783. resumableState.styleResources = renderState.resets.style;
  8784. resumableState.scriptResources = {};
  8785. resumableState.moduleUnknownResources = {};
  8786. resumableState.moduleScriptResources = {};
  8787. resumableState.instructions = NothingSent;
  8788. }
  8789. return {
  8790. nextSegmentId: nextSegmentId,
  8791. rootFormatContext: request.rootFormatContext,
  8792. progressiveChunkSize: request.progressiveChunkSize,
  8793. resumableState: request.resumableState,
  8794. replayNodes: trackedPostpones.rootNodes,
  8795. replaySlots: replaySlots
  8796. };
  8797. }
  8798. function ensureCorrectIsomorphicReactVersion() {
  8799. var isomorphicReactPackageVersion = React.version;
  8800. if ("19.2.4" !== isomorphicReactPackageVersion)
  8801. throw Error(
  8802. 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
  8803. (isomorphicReactPackageVersion +
  8804. "\n - react-dom: 19.2.4\nLearn more: https://react.dev/warnings/version-mismatch")
  8805. );
  8806. }
  8807. var React = require("react"),
  8808. ReactDOM = require("react-dom"),
  8809. REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
  8810. REACT_PORTAL_TYPE = Symbol.for("react.portal"),
  8811. REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
  8812. REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
  8813. REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
  8814. REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
  8815. REACT_CONTEXT_TYPE = Symbol.for("react.context"),
  8816. REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
  8817. REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
  8818. REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
  8819. REACT_MEMO_TYPE = Symbol.for("react.memo"),
  8820. REACT_LAZY_TYPE = Symbol.for("react.lazy"),
  8821. REACT_SCOPE_TYPE = Symbol.for("react.scope"),
  8822. REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
  8823. REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
  8824. REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
  8825. REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
  8826. MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
  8827. isArrayImpl = Array.isArray,
  8828. jsxPropsParents = new WeakMap(),
  8829. jsxChildrenParents = new WeakMap(),
  8830. CLIENT_REFERENCE_TAG = Symbol.for("react.client.reference"),
  8831. LocalPromise = Promise,
  8832. scheduleMicrotask =
  8833. "function" === typeof queueMicrotask
  8834. ? queueMicrotask
  8835. : function (callback) {
  8836. LocalPromise.resolve(null)
  8837. .then(callback)
  8838. .catch(handleErrorInNextTick);
  8839. },
  8840. currentView = null,
  8841. writtenBytes = 0,
  8842. textEncoder = new TextEncoder(),
  8843. assign = Object.assign,
  8844. hasOwnProperty = Object.prototype.hasOwnProperty,
  8845. VALID_ATTRIBUTE_NAME_REGEX = RegExp(
  8846. "^[: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]*$"
  8847. ),
  8848. illegalAttributeNameCache = {},
  8849. validatedAttributeNameCache = {},
  8850. unitlessNumbers = new Set(
  8851. "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(
  8852. " "
  8853. )
  8854. ),
  8855. aliases = new Map([
  8856. ["acceptCharset", "accept-charset"],
  8857. ["htmlFor", "for"],
  8858. ["httpEquiv", "http-equiv"],
  8859. ["crossOrigin", "crossorigin"],
  8860. ["accentHeight", "accent-height"],
  8861. ["alignmentBaseline", "alignment-baseline"],
  8862. ["arabicForm", "arabic-form"],
  8863. ["baselineShift", "baseline-shift"],
  8864. ["capHeight", "cap-height"],
  8865. ["clipPath", "clip-path"],
  8866. ["clipRule", "clip-rule"],
  8867. ["colorInterpolation", "color-interpolation"],
  8868. ["colorInterpolationFilters", "color-interpolation-filters"],
  8869. ["colorProfile", "color-profile"],
  8870. ["colorRendering", "color-rendering"],
  8871. ["dominantBaseline", "dominant-baseline"],
  8872. ["enableBackground", "enable-background"],
  8873. ["fillOpacity", "fill-opacity"],
  8874. ["fillRule", "fill-rule"],
  8875. ["floodColor", "flood-color"],
  8876. ["floodOpacity", "flood-opacity"],
  8877. ["fontFamily", "font-family"],
  8878. ["fontSize", "font-size"],
  8879. ["fontSizeAdjust", "font-size-adjust"],
  8880. ["fontStretch", "font-stretch"],
  8881. ["fontStyle", "font-style"],
  8882. ["fontVariant", "font-variant"],
  8883. ["fontWeight", "font-weight"],
  8884. ["glyphName", "glyph-name"],
  8885. ["glyphOrientationHorizontal", "glyph-orientation-horizontal"],
  8886. ["glyphOrientationVertical", "glyph-orientation-vertical"],
  8887. ["horizAdvX", "horiz-adv-x"],
  8888. ["horizOriginX", "horiz-origin-x"],
  8889. ["imageRendering", "image-rendering"],
  8890. ["letterSpacing", "letter-spacing"],
  8891. ["lightingColor", "lighting-color"],
  8892. ["markerEnd", "marker-end"],
  8893. ["markerMid", "marker-mid"],
  8894. ["markerStart", "marker-start"],
  8895. ["overlinePosition", "overline-position"],
  8896. ["overlineThickness", "overline-thickness"],
  8897. ["paintOrder", "paint-order"],
  8898. ["panose-1", "panose-1"],
  8899. ["pointerEvents", "pointer-events"],
  8900. ["renderingIntent", "rendering-intent"],
  8901. ["shapeRendering", "shape-rendering"],
  8902. ["stopColor", "stop-color"],
  8903. ["stopOpacity", "stop-opacity"],
  8904. ["strikethroughPosition", "strikethrough-position"],
  8905. ["strikethroughThickness", "strikethrough-thickness"],
  8906. ["strokeDasharray", "stroke-dasharray"],
  8907. ["strokeDashoffset", "stroke-dashoffset"],
  8908. ["strokeLinecap", "stroke-linecap"],
  8909. ["strokeLinejoin", "stroke-linejoin"],
  8910. ["strokeMiterlimit", "stroke-miterlimit"],
  8911. ["strokeOpacity", "stroke-opacity"],
  8912. ["strokeWidth", "stroke-width"],
  8913. ["textAnchor", "text-anchor"],
  8914. ["textDecoration", "text-decoration"],
  8915. ["textRendering", "text-rendering"],
  8916. ["transformOrigin", "transform-origin"],
  8917. ["underlinePosition", "underline-position"],
  8918. ["underlineThickness", "underline-thickness"],
  8919. ["unicodeBidi", "unicode-bidi"],
  8920. ["unicodeRange", "unicode-range"],
  8921. ["unitsPerEm", "units-per-em"],
  8922. ["vAlphabetic", "v-alphabetic"],
  8923. ["vHanging", "v-hanging"],
  8924. ["vIdeographic", "v-ideographic"],
  8925. ["vMathematical", "v-mathematical"],
  8926. ["vectorEffect", "vector-effect"],
  8927. ["vertAdvY", "vert-adv-y"],
  8928. ["vertOriginX", "vert-origin-x"],
  8929. ["vertOriginY", "vert-origin-y"],
  8930. ["wordSpacing", "word-spacing"],
  8931. ["writingMode", "writing-mode"],
  8932. ["xmlnsXlink", "xmlns:xlink"],
  8933. ["xHeight", "x-height"]
  8934. ]),
  8935. hasReadOnlyValue = {
  8936. button: !0,
  8937. checkbox: !0,
  8938. image: !0,
  8939. hidden: !0,
  8940. radio: !0,
  8941. reset: !0,
  8942. submit: !0
  8943. },
  8944. ariaProperties = {
  8945. "aria-current": 0,
  8946. "aria-description": 0,
  8947. "aria-details": 0,
  8948. "aria-disabled": 0,
  8949. "aria-hidden": 0,
  8950. "aria-invalid": 0,
  8951. "aria-keyshortcuts": 0,
  8952. "aria-label": 0,
  8953. "aria-roledescription": 0,
  8954. "aria-autocomplete": 0,
  8955. "aria-checked": 0,
  8956. "aria-expanded": 0,
  8957. "aria-haspopup": 0,
  8958. "aria-level": 0,
  8959. "aria-modal": 0,
  8960. "aria-multiline": 0,
  8961. "aria-multiselectable": 0,
  8962. "aria-orientation": 0,
  8963. "aria-placeholder": 0,
  8964. "aria-pressed": 0,
  8965. "aria-readonly": 0,
  8966. "aria-required": 0,
  8967. "aria-selected": 0,
  8968. "aria-sort": 0,
  8969. "aria-valuemax": 0,
  8970. "aria-valuemin": 0,
  8971. "aria-valuenow": 0,
  8972. "aria-valuetext": 0,
  8973. "aria-atomic": 0,
  8974. "aria-busy": 0,
  8975. "aria-live": 0,
  8976. "aria-relevant": 0,
  8977. "aria-dropeffect": 0,
  8978. "aria-grabbed": 0,
  8979. "aria-activedescendant": 0,
  8980. "aria-colcount": 0,
  8981. "aria-colindex": 0,
  8982. "aria-colspan": 0,
  8983. "aria-controls": 0,
  8984. "aria-describedby": 0,
  8985. "aria-errormessage": 0,
  8986. "aria-flowto": 0,
  8987. "aria-labelledby": 0,
  8988. "aria-owns": 0,
  8989. "aria-posinset": 0,
  8990. "aria-rowcount": 0,
  8991. "aria-rowindex": 0,
  8992. "aria-rowspan": 0,
  8993. "aria-setsize": 0,
  8994. "aria-braillelabel": 0,
  8995. "aria-brailleroledescription": 0,
  8996. "aria-colindextext": 0,
  8997. "aria-rowindextext": 0
  8998. },
  8999. warnedProperties$1 = {},
  9000. rARIA$1 = RegExp(
  9001. "^(aria)-[: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]*$"
  9002. ),
  9003. rARIACamel$1 = RegExp(
  9004. "^(aria)[A-Z][: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]*$"
  9005. ),
  9006. didWarnValueNull = !1,
  9007. possibleStandardNames = {
  9008. accept: "accept",
  9009. acceptcharset: "acceptCharset",
  9010. "accept-charset": "acceptCharset",
  9011. accesskey: "accessKey",
  9012. action: "action",
  9013. allowfullscreen: "allowFullScreen",
  9014. alt: "alt",
  9015. as: "as",
  9016. async: "async",
  9017. autocapitalize: "autoCapitalize",
  9018. autocomplete: "autoComplete",
  9019. autocorrect: "autoCorrect",
  9020. autofocus: "autoFocus",
  9021. autoplay: "autoPlay",
  9022. autosave: "autoSave",
  9023. capture: "capture",
  9024. cellpadding: "cellPadding",
  9025. cellspacing: "cellSpacing",
  9026. challenge: "challenge",
  9027. charset: "charSet",
  9028. checked: "checked",
  9029. children: "children",
  9030. cite: "cite",
  9031. class: "className",
  9032. classid: "classID",
  9033. classname: "className",
  9034. cols: "cols",
  9035. colspan: "colSpan",
  9036. content: "content",
  9037. contenteditable: "contentEditable",
  9038. contextmenu: "contextMenu",
  9039. controls: "controls",
  9040. controlslist: "controlsList",
  9041. coords: "coords",
  9042. crossorigin: "crossOrigin",
  9043. dangerouslysetinnerhtml: "dangerouslySetInnerHTML",
  9044. data: "data",
  9045. datetime: "dateTime",
  9046. default: "default",
  9047. defaultchecked: "defaultChecked",
  9048. defaultvalue: "defaultValue",
  9049. defer: "defer",
  9050. dir: "dir",
  9051. disabled: "disabled",
  9052. disablepictureinpicture: "disablePictureInPicture",
  9053. disableremoteplayback: "disableRemotePlayback",
  9054. download: "download",
  9055. draggable: "draggable",
  9056. enctype: "encType",
  9057. enterkeyhint: "enterKeyHint",
  9058. fetchpriority: "fetchPriority",
  9059. for: "htmlFor",
  9060. form: "form",
  9061. formmethod: "formMethod",
  9062. formaction: "formAction",
  9063. formenctype: "formEncType",
  9064. formnovalidate: "formNoValidate",
  9065. formtarget: "formTarget",
  9066. frameborder: "frameBorder",
  9067. headers: "headers",
  9068. height: "height",
  9069. hidden: "hidden",
  9070. high: "high",
  9071. href: "href",
  9072. hreflang: "hrefLang",
  9073. htmlfor: "htmlFor",
  9074. httpequiv: "httpEquiv",
  9075. "http-equiv": "httpEquiv",
  9076. icon: "icon",
  9077. id: "id",
  9078. imagesizes: "imageSizes",
  9079. imagesrcset: "imageSrcSet",
  9080. inert: "inert",
  9081. innerhtml: "innerHTML",
  9082. inputmode: "inputMode",
  9083. integrity: "integrity",
  9084. is: "is",
  9085. itemid: "itemID",
  9086. itemprop: "itemProp",
  9087. itemref: "itemRef",
  9088. itemscope: "itemScope",
  9089. itemtype: "itemType",
  9090. keyparams: "keyParams",
  9091. keytype: "keyType",
  9092. kind: "kind",
  9093. label: "label",
  9094. lang: "lang",
  9095. list: "list",
  9096. loop: "loop",
  9097. low: "low",
  9098. manifest: "manifest",
  9099. marginwidth: "marginWidth",
  9100. marginheight: "marginHeight",
  9101. max: "max",
  9102. maxlength: "maxLength",
  9103. media: "media",
  9104. mediagroup: "mediaGroup",
  9105. method: "method",
  9106. min: "min",
  9107. minlength: "minLength",
  9108. multiple: "multiple",
  9109. muted: "muted",
  9110. name: "name",
  9111. nomodule: "noModule",
  9112. nonce: "nonce",
  9113. novalidate: "noValidate",
  9114. open: "open",
  9115. optimum: "optimum",
  9116. pattern: "pattern",
  9117. placeholder: "placeholder",
  9118. playsinline: "playsInline",
  9119. poster: "poster",
  9120. preload: "preload",
  9121. profile: "profile",
  9122. radiogroup: "radioGroup",
  9123. readonly: "readOnly",
  9124. referrerpolicy: "referrerPolicy",
  9125. rel: "rel",
  9126. required: "required",
  9127. reversed: "reversed",
  9128. role: "role",
  9129. rows: "rows",
  9130. rowspan: "rowSpan",
  9131. sandbox: "sandbox",
  9132. scope: "scope",
  9133. scoped: "scoped",
  9134. scrolling: "scrolling",
  9135. seamless: "seamless",
  9136. selected: "selected",
  9137. shape: "shape",
  9138. size: "size",
  9139. sizes: "sizes",
  9140. span: "span",
  9141. spellcheck: "spellCheck",
  9142. src: "src",
  9143. srcdoc: "srcDoc",
  9144. srclang: "srcLang",
  9145. srcset: "srcSet",
  9146. start: "start",
  9147. step: "step",
  9148. style: "style",
  9149. summary: "summary",
  9150. tabindex: "tabIndex",
  9151. target: "target",
  9152. title: "title",
  9153. type: "type",
  9154. usemap: "useMap",
  9155. value: "value",
  9156. width: "width",
  9157. wmode: "wmode",
  9158. wrap: "wrap",
  9159. about: "about",
  9160. accentheight: "accentHeight",
  9161. "accent-height": "accentHeight",
  9162. accumulate: "accumulate",
  9163. additive: "additive",
  9164. alignmentbaseline: "alignmentBaseline",
  9165. "alignment-baseline": "alignmentBaseline",
  9166. allowreorder: "allowReorder",
  9167. alphabetic: "alphabetic",
  9168. amplitude: "amplitude",
  9169. arabicform: "arabicForm",
  9170. "arabic-form": "arabicForm",
  9171. ascent: "ascent",
  9172. attributename: "attributeName",
  9173. attributetype: "attributeType",
  9174. autoreverse: "autoReverse",
  9175. azimuth: "azimuth",
  9176. basefrequency: "baseFrequency",
  9177. baselineshift: "baselineShift",
  9178. "baseline-shift": "baselineShift",
  9179. baseprofile: "baseProfile",
  9180. bbox: "bbox",
  9181. begin: "begin",
  9182. bias: "bias",
  9183. by: "by",
  9184. calcmode: "calcMode",
  9185. capheight: "capHeight",
  9186. "cap-height": "capHeight",
  9187. clip: "clip",
  9188. clippath: "clipPath",
  9189. "clip-path": "clipPath",
  9190. clippathunits: "clipPathUnits",
  9191. cliprule: "clipRule",
  9192. "clip-rule": "clipRule",
  9193. color: "color",
  9194. colorinterpolation: "colorInterpolation",
  9195. "color-interpolation": "colorInterpolation",
  9196. colorinterpolationfilters: "colorInterpolationFilters",
  9197. "color-interpolation-filters": "colorInterpolationFilters",
  9198. colorprofile: "colorProfile",
  9199. "color-profile": "colorProfile",
  9200. colorrendering: "colorRendering",
  9201. "color-rendering": "colorRendering",
  9202. contentscripttype: "contentScriptType",
  9203. contentstyletype: "contentStyleType",
  9204. cursor: "cursor",
  9205. cx: "cx",
  9206. cy: "cy",
  9207. d: "d",
  9208. datatype: "datatype",
  9209. decelerate: "decelerate",
  9210. descent: "descent",
  9211. diffuseconstant: "diffuseConstant",
  9212. direction: "direction",
  9213. display: "display",
  9214. divisor: "divisor",
  9215. dominantbaseline: "dominantBaseline",
  9216. "dominant-baseline": "dominantBaseline",
  9217. dur: "dur",
  9218. dx: "dx",
  9219. dy: "dy",
  9220. edgemode: "edgeMode",
  9221. elevation: "elevation",
  9222. enablebackground: "enableBackground",
  9223. "enable-background": "enableBackground",
  9224. end: "end",
  9225. exponent: "exponent",
  9226. externalresourcesrequired: "externalResourcesRequired",
  9227. fill: "fill",
  9228. fillopacity: "fillOpacity",
  9229. "fill-opacity": "fillOpacity",
  9230. fillrule: "fillRule",
  9231. "fill-rule": "fillRule",
  9232. filter: "filter",
  9233. filterres: "filterRes",
  9234. filterunits: "filterUnits",
  9235. floodopacity: "floodOpacity",
  9236. "flood-opacity": "floodOpacity",
  9237. floodcolor: "floodColor",
  9238. "flood-color": "floodColor",
  9239. focusable: "focusable",
  9240. fontfamily: "fontFamily",
  9241. "font-family": "fontFamily",
  9242. fontsize: "fontSize",
  9243. "font-size": "fontSize",
  9244. fontsizeadjust: "fontSizeAdjust",
  9245. "font-size-adjust": "fontSizeAdjust",
  9246. fontstretch: "fontStretch",
  9247. "font-stretch": "fontStretch",
  9248. fontstyle: "fontStyle",
  9249. "font-style": "fontStyle",
  9250. fontvariant: "fontVariant",
  9251. "font-variant": "fontVariant",
  9252. fontweight: "fontWeight",
  9253. "font-weight": "fontWeight",
  9254. format: "format",
  9255. from: "from",
  9256. fx: "fx",
  9257. fy: "fy",
  9258. g1: "g1",
  9259. g2: "g2",
  9260. glyphname: "glyphName",
  9261. "glyph-name": "glyphName",
  9262. glyphorientationhorizontal: "glyphOrientationHorizontal",
  9263. "glyph-orientation-horizontal": "glyphOrientationHorizontal",
  9264. glyphorientationvertical: "glyphOrientationVertical",
  9265. "glyph-orientation-vertical": "glyphOrientationVertical",
  9266. glyphref: "glyphRef",
  9267. gradienttransform: "gradientTransform",
  9268. gradientunits: "gradientUnits",
  9269. hanging: "hanging",
  9270. horizadvx: "horizAdvX",
  9271. "horiz-adv-x": "horizAdvX",
  9272. horizoriginx: "horizOriginX",
  9273. "horiz-origin-x": "horizOriginX",
  9274. ideographic: "ideographic",
  9275. imagerendering: "imageRendering",
  9276. "image-rendering": "imageRendering",
  9277. in2: "in2",
  9278. in: "in",
  9279. inlist: "inlist",
  9280. intercept: "intercept",
  9281. k1: "k1",
  9282. k2: "k2",
  9283. k3: "k3",
  9284. k4: "k4",
  9285. k: "k",
  9286. kernelmatrix: "kernelMatrix",
  9287. kernelunitlength: "kernelUnitLength",
  9288. kerning: "kerning",
  9289. keypoints: "keyPoints",
  9290. keysplines: "keySplines",
  9291. keytimes: "keyTimes",
  9292. lengthadjust: "lengthAdjust",
  9293. letterspacing: "letterSpacing",
  9294. "letter-spacing": "letterSpacing",
  9295. lightingcolor: "lightingColor",
  9296. "lighting-color": "lightingColor",
  9297. limitingconeangle: "limitingConeAngle",
  9298. local: "local",
  9299. markerend: "markerEnd",
  9300. "marker-end": "markerEnd",
  9301. markerheight: "markerHeight",
  9302. markermid: "markerMid",
  9303. "marker-mid": "markerMid",
  9304. markerstart: "markerStart",
  9305. "marker-start": "markerStart",
  9306. markerunits: "markerUnits",
  9307. markerwidth: "markerWidth",
  9308. mask: "mask",
  9309. maskcontentunits: "maskContentUnits",
  9310. maskunits: "maskUnits",
  9311. mathematical: "mathematical",
  9312. mode: "mode",
  9313. numoctaves: "numOctaves",
  9314. offset: "offset",
  9315. opacity: "opacity",
  9316. operator: "operator",
  9317. order: "order",
  9318. orient: "orient",
  9319. orientation: "orientation",
  9320. origin: "origin",
  9321. overflow: "overflow",
  9322. overlineposition: "overlinePosition",
  9323. "overline-position": "overlinePosition",
  9324. overlinethickness: "overlineThickness",
  9325. "overline-thickness": "overlineThickness",
  9326. paintorder: "paintOrder",
  9327. "paint-order": "paintOrder",
  9328. panose1: "panose1",
  9329. "panose-1": "panose1",
  9330. pathlength: "pathLength",
  9331. patterncontentunits: "patternContentUnits",
  9332. patterntransform: "patternTransform",
  9333. patternunits: "patternUnits",
  9334. pointerevents: "pointerEvents",
  9335. "pointer-events": "pointerEvents",
  9336. points: "points",
  9337. pointsatx: "pointsAtX",
  9338. pointsaty: "pointsAtY",
  9339. pointsatz: "pointsAtZ",
  9340. popover: "popover",
  9341. popovertarget: "popoverTarget",
  9342. popovertargetaction: "popoverTargetAction",
  9343. prefix: "prefix",
  9344. preservealpha: "preserveAlpha",
  9345. preserveaspectratio: "preserveAspectRatio",
  9346. primitiveunits: "primitiveUnits",
  9347. property: "property",
  9348. r: "r",
  9349. radius: "radius",
  9350. refx: "refX",
  9351. refy: "refY",
  9352. renderingintent: "renderingIntent",
  9353. "rendering-intent": "renderingIntent",
  9354. repeatcount: "repeatCount",
  9355. repeatdur: "repeatDur",
  9356. requiredextensions: "requiredExtensions",
  9357. requiredfeatures: "requiredFeatures",
  9358. resource: "resource",
  9359. restart: "restart",
  9360. result: "result",
  9361. results: "results",
  9362. rotate: "rotate",
  9363. rx: "rx",
  9364. ry: "ry",
  9365. scale: "scale",
  9366. security: "security",
  9367. seed: "seed",
  9368. shaperendering: "shapeRendering",
  9369. "shape-rendering": "shapeRendering",
  9370. slope: "slope",
  9371. spacing: "spacing",
  9372. specularconstant: "specularConstant",
  9373. specularexponent: "specularExponent",
  9374. speed: "speed",
  9375. spreadmethod: "spreadMethod",
  9376. startoffset: "startOffset",
  9377. stddeviation: "stdDeviation",
  9378. stemh: "stemh",
  9379. stemv: "stemv",
  9380. stitchtiles: "stitchTiles",
  9381. stopcolor: "stopColor",
  9382. "stop-color": "stopColor",
  9383. stopopacity: "stopOpacity",
  9384. "stop-opacity": "stopOpacity",
  9385. strikethroughposition: "strikethroughPosition",
  9386. "strikethrough-position": "strikethroughPosition",
  9387. strikethroughthickness: "strikethroughThickness",
  9388. "strikethrough-thickness": "strikethroughThickness",
  9389. string: "string",
  9390. stroke: "stroke",
  9391. strokedasharray: "strokeDasharray",
  9392. "stroke-dasharray": "strokeDasharray",
  9393. strokedashoffset: "strokeDashoffset",
  9394. "stroke-dashoffset": "strokeDashoffset",
  9395. strokelinecap: "strokeLinecap",
  9396. "stroke-linecap": "strokeLinecap",
  9397. strokelinejoin: "strokeLinejoin",
  9398. "stroke-linejoin": "strokeLinejoin",
  9399. strokemiterlimit: "strokeMiterlimit",
  9400. "stroke-miterlimit": "strokeMiterlimit",
  9401. strokewidth: "strokeWidth",
  9402. "stroke-width": "strokeWidth",
  9403. strokeopacity: "strokeOpacity",
  9404. "stroke-opacity": "strokeOpacity",
  9405. suppresscontenteditablewarning: "suppressContentEditableWarning",
  9406. suppresshydrationwarning: "suppressHydrationWarning",
  9407. surfacescale: "surfaceScale",
  9408. systemlanguage: "systemLanguage",
  9409. tablevalues: "tableValues",
  9410. targetx: "targetX",
  9411. targety: "targetY",
  9412. textanchor: "textAnchor",
  9413. "text-anchor": "textAnchor",
  9414. textdecoration: "textDecoration",
  9415. "text-decoration": "textDecoration",
  9416. textlength: "textLength",
  9417. textrendering: "textRendering",
  9418. "text-rendering": "textRendering",
  9419. to: "to",
  9420. transform: "transform",
  9421. transformorigin: "transformOrigin",
  9422. "transform-origin": "transformOrigin",
  9423. typeof: "typeof",
  9424. u1: "u1",
  9425. u2: "u2",
  9426. underlineposition: "underlinePosition",
  9427. "underline-position": "underlinePosition",
  9428. underlinethickness: "underlineThickness",
  9429. "underline-thickness": "underlineThickness",
  9430. unicode: "unicode",
  9431. unicodebidi: "unicodeBidi",
  9432. "unicode-bidi": "unicodeBidi",
  9433. unicoderange: "unicodeRange",
  9434. "unicode-range": "unicodeRange",
  9435. unitsperem: "unitsPerEm",
  9436. "units-per-em": "unitsPerEm",
  9437. unselectable: "unselectable",
  9438. valphabetic: "vAlphabetic",
  9439. "v-alphabetic": "vAlphabetic",
  9440. values: "values",
  9441. vectoreffect: "vectorEffect",
  9442. "vector-effect": "vectorEffect",
  9443. version: "version",
  9444. vertadvy: "vertAdvY",
  9445. "vert-adv-y": "vertAdvY",
  9446. vertoriginx: "vertOriginX",
  9447. "vert-origin-x": "vertOriginX",
  9448. vertoriginy: "vertOriginY",
  9449. "vert-origin-y": "vertOriginY",
  9450. vhanging: "vHanging",
  9451. "v-hanging": "vHanging",
  9452. videographic: "vIdeographic",
  9453. "v-ideographic": "vIdeographic",
  9454. viewbox: "viewBox",
  9455. viewtarget: "viewTarget",
  9456. visibility: "visibility",
  9457. vmathematical: "vMathematical",
  9458. "v-mathematical": "vMathematical",
  9459. vocab: "vocab",
  9460. widths: "widths",
  9461. wordspacing: "wordSpacing",
  9462. "word-spacing": "wordSpacing",
  9463. writingmode: "writingMode",
  9464. "writing-mode": "writingMode",
  9465. x1: "x1",
  9466. x2: "x2",
  9467. x: "x",
  9468. xchannelselector: "xChannelSelector",
  9469. xheight: "xHeight",
  9470. "x-height": "xHeight",
  9471. xlinkactuate: "xlinkActuate",
  9472. "xlink:actuate": "xlinkActuate",
  9473. xlinkarcrole: "xlinkArcrole",
  9474. "xlink:arcrole": "xlinkArcrole",
  9475. xlinkhref: "xlinkHref",
  9476. "xlink:href": "xlinkHref",
  9477. xlinkrole: "xlinkRole",
  9478. "xlink:role": "xlinkRole",
  9479. xlinkshow: "xlinkShow",
  9480. "xlink:show": "xlinkShow",
  9481. xlinktitle: "xlinkTitle",
  9482. "xlink:title": "xlinkTitle",
  9483. xlinktype: "xlinkType",
  9484. "xlink:type": "xlinkType",
  9485. xmlbase: "xmlBase",
  9486. "xml:base": "xmlBase",
  9487. xmllang: "xmlLang",
  9488. "xml:lang": "xmlLang",
  9489. xmlns: "xmlns",
  9490. "xml:space": "xmlSpace",
  9491. xmlnsxlink: "xmlnsXlink",
  9492. "xmlns:xlink": "xmlnsXlink",
  9493. xmlspace: "xmlSpace",
  9494. y1: "y1",
  9495. y2: "y2",
  9496. y: "y",
  9497. ychannelselector: "yChannelSelector",
  9498. z: "z",
  9499. zoomandpan: "zoomAndPan"
  9500. },
  9501. warnedProperties = {},
  9502. EVENT_NAME_REGEX = /^on./,
  9503. INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/,
  9504. rARIA = RegExp(
  9505. "^(aria)-[: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]*$"
  9506. ),
  9507. rARIACamel = RegExp(
  9508. "^(aria)[A-Z][: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]*$"
  9509. ),
  9510. badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/,
  9511. msPattern$1 = /^-ms-/,
  9512. hyphenPattern = /-(.)/g,
  9513. badStyleValueWithSemicolonPattern = /;\s*$/,
  9514. warnedStyleNames = {},
  9515. warnedStyleValues = {},
  9516. warnedForNaNValue = !1,
  9517. warnedForInfinityValue = !1,
  9518. matchHtmlRegExp = /["'&<>]/,
  9519. uppercasePattern = /([A-Z])/g,
  9520. msPattern = /^ms-/,
  9521. isJavaScriptProtocol =
  9522. /^[\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,
  9523. ReactSharedInternals =
  9524. React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
  9525. ReactDOMSharedInternals =
  9526. ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
  9527. NotPending = Object.freeze({
  9528. pending: !1,
  9529. data: null,
  9530. method: null,
  9531. action: null
  9532. }),
  9533. previousDispatcher = ReactDOMSharedInternals.d;
  9534. ReactDOMSharedInternals.d = {
  9535. f: previousDispatcher.f,
  9536. r: previousDispatcher.r,
  9537. D: function (href) {
  9538. var request = resolveRequest();
  9539. if (request) {
  9540. var resumableState = request.resumableState,
  9541. renderState = request.renderState;
  9542. if ("string" === typeof href && href) {
  9543. if (!resumableState.dnsResources.hasOwnProperty(href)) {
  9544. resumableState.dnsResources[href] = EXISTS;
  9545. resumableState = renderState.headers;
  9546. var header, JSCompiler_temp;
  9547. if (
  9548. (JSCompiler_temp =
  9549. resumableState && 0 < resumableState.remainingCapacity)
  9550. )
  9551. JSCompiler_temp =
  9552. ((header =
  9553. "<" +
  9554. escapeHrefForLinkHeaderURLContext(href) +
  9555. ">; rel=dns-prefetch"),
  9556. 0 <= (resumableState.remainingCapacity -= header.length + 2));
  9557. JSCompiler_temp
  9558. ? ((renderState.resets.dns[href] = EXISTS),
  9559. resumableState.preconnects &&
  9560. (resumableState.preconnects += ", "),
  9561. (resumableState.preconnects += header))
  9562. : ((header = []),
  9563. pushLinkImpl(header, { href: href, rel: "dns-prefetch" }),
  9564. renderState.preconnects.add(header));
  9565. }
  9566. enqueueFlush(request);
  9567. }
  9568. } else previousDispatcher.D(href);
  9569. },
  9570. C: function (href, crossOrigin) {
  9571. var request = resolveRequest();
  9572. if (request) {
  9573. var resumableState = request.resumableState,
  9574. renderState = request.renderState;
  9575. if ("string" === typeof href && href) {
  9576. var bucket =
  9577. "use-credentials" === crossOrigin
  9578. ? "credentials"
  9579. : "string" === typeof crossOrigin
  9580. ? "anonymous"
  9581. : "default";
  9582. if (!resumableState.connectResources[bucket].hasOwnProperty(href)) {
  9583. resumableState.connectResources[bucket][href] = EXISTS;
  9584. resumableState = renderState.headers;
  9585. var header, JSCompiler_temp;
  9586. if (
  9587. (JSCompiler_temp =
  9588. resumableState && 0 < resumableState.remainingCapacity)
  9589. ) {
  9590. JSCompiler_temp =
  9591. "<" +
  9592. escapeHrefForLinkHeaderURLContext(href) +
  9593. ">; rel=preconnect";
  9594. if ("string" === typeof crossOrigin) {
  9595. var escapedCrossOrigin =
  9596. escapeStringForLinkHeaderQuotedParamValueContext(
  9597. crossOrigin,
  9598. "crossOrigin"
  9599. );
  9600. JSCompiler_temp +=
  9601. '; crossorigin="' + escapedCrossOrigin + '"';
  9602. }
  9603. JSCompiler_temp =
  9604. ((header = JSCompiler_temp),
  9605. 0 <= (resumableState.remainingCapacity -= header.length + 2));
  9606. }
  9607. JSCompiler_temp
  9608. ? ((renderState.resets.connect[bucket][href] = EXISTS),
  9609. resumableState.preconnects &&
  9610. (resumableState.preconnects += ", "),
  9611. (resumableState.preconnects += header))
  9612. : ((bucket = []),
  9613. pushLinkImpl(bucket, {
  9614. rel: "preconnect",
  9615. href: href,
  9616. crossOrigin: crossOrigin
  9617. }),
  9618. renderState.preconnects.add(bucket));
  9619. }
  9620. enqueueFlush(request);
  9621. }
  9622. } else previousDispatcher.C(href, crossOrigin);
  9623. },
  9624. L: function (href, as, options) {
  9625. var request = resolveRequest();
  9626. if (request) {
  9627. var resumableState = request.resumableState,
  9628. renderState = request.renderState;
  9629. if (as && href) {
  9630. switch (as) {
  9631. case "image":
  9632. if (options) {
  9633. var imageSrcSet = options.imageSrcSet;
  9634. var imageSizes = options.imageSizes;
  9635. var fetchPriority = options.fetchPriority;
  9636. }
  9637. var key = imageSrcSet
  9638. ? imageSrcSet + "\n" + (imageSizes || "")
  9639. : href;
  9640. if (resumableState.imageResources.hasOwnProperty(key)) return;
  9641. resumableState.imageResources[key] = PRELOAD_NO_CREDS;
  9642. resumableState = renderState.headers;
  9643. var header;
  9644. resumableState &&
  9645. 0 < resumableState.remainingCapacity &&
  9646. "string" !== typeof imageSrcSet &&
  9647. "high" === fetchPriority &&
  9648. ((header = getPreloadAsHeader(href, as, options)),
  9649. 0 <= (resumableState.remainingCapacity -= header.length + 2))
  9650. ? ((renderState.resets.image[key] = PRELOAD_NO_CREDS),
  9651. resumableState.highImagePreloads &&
  9652. (resumableState.highImagePreloads += ", "),
  9653. (resumableState.highImagePreloads += header))
  9654. : ((resumableState = []),
  9655. pushLinkImpl(
  9656. resumableState,
  9657. assign(
  9658. {
  9659. rel: "preload",
  9660. href: imageSrcSet ? void 0 : href,
  9661. as: as
  9662. },
  9663. options
  9664. )
  9665. ),
  9666. "high" === fetchPriority
  9667. ? renderState.highImagePreloads.add(resumableState)
  9668. : (renderState.bulkPreloads.add(resumableState),
  9669. renderState.preloads.images.set(key, resumableState)));
  9670. break;
  9671. case "style":
  9672. if (resumableState.styleResources.hasOwnProperty(href)) return;
  9673. imageSrcSet = [];
  9674. pushLinkImpl(
  9675. imageSrcSet,
  9676. assign({ rel: "preload", href: href, as: as }, options)
  9677. );
  9678. resumableState.styleResources[href] =
  9679. !options ||
  9680. ("string" !== typeof options.crossOrigin &&
  9681. "string" !== typeof options.integrity)
  9682. ? PRELOAD_NO_CREDS
  9683. : [options.crossOrigin, options.integrity];
  9684. renderState.preloads.stylesheets.set(href, imageSrcSet);
  9685. renderState.bulkPreloads.add(imageSrcSet);
  9686. break;
  9687. case "script":
  9688. if (resumableState.scriptResources.hasOwnProperty(href)) return;
  9689. imageSrcSet = [];
  9690. renderState.preloads.scripts.set(href, imageSrcSet);
  9691. renderState.bulkPreloads.add(imageSrcSet);
  9692. pushLinkImpl(
  9693. imageSrcSet,
  9694. assign({ rel: "preload", href: href, as: as }, options)
  9695. );
  9696. resumableState.scriptResources[href] =
  9697. !options ||
  9698. ("string" !== typeof options.crossOrigin &&
  9699. "string" !== typeof options.integrity)
  9700. ? PRELOAD_NO_CREDS
  9701. : [options.crossOrigin, options.integrity];
  9702. break;
  9703. default:
  9704. if (resumableState.unknownResources.hasOwnProperty(as)) {
  9705. if (
  9706. ((imageSrcSet = resumableState.unknownResources[as]),
  9707. imageSrcSet.hasOwnProperty(href))
  9708. )
  9709. return;
  9710. } else
  9711. (imageSrcSet = {}),
  9712. (resumableState.unknownResources[as] = imageSrcSet);
  9713. imageSrcSet[href] = PRELOAD_NO_CREDS;
  9714. if (
  9715. (resumableState = renderState.headers) &&
  9716. 0 < resumableState.remainingCapacity &&
  9717. "font" === as &&
  9718. ((key = getPreloadAsHeader(href, as, options)),
  9719. 0 <= (resumableState.remainingCapacity -= key.length + 2))
  9720. )
  9721. (renderState.resets.font[href] = PRELOAD_NO_CREDS),
  9722. resumableState.fontPreloads &&
  9723. (resumableState.fontPreloads += ", "),
  9724. (resumableState.fontPreloads += key);
  9725. else
  9726. switch (
  9727. ((resumableState = []),
  9728. (href = assign(
  9729. { rel: "preload", href: href, as: as },
  9730. options
  9731. )),
  9732. pushLinkImpl(resumableState, href),
  9733. as)
  9734. ) {
  9735. case "font":
  9736. renderState.fontPreloads.add(resumableState);
  9737. break;
  9738. default:
  9739. renderState.bulkPreloads.add(resumableState);
  9740. }
  9741. }
  9742. enqueueFlush(request);
  9743. }
  9744. } else previousDispatcher.L(href, as, options);
  9745. },
  9746. m: function (href, options) {
  9747. var request = resolveRequest();
  9748. if (request) {
  9749. var resumableState = request.resumableState,
  9750. renderState = request.renderState;
  9751. if (href) {
  9752. var as =
  9753. options && "string" === typeof options.as ? options.as : "script";
  9754. switch (as) {
  9755. case "script":
  9756. if (resumableState.moduleScriptResources.hasOwnProperty(href))
  9757. return;
  9758. as = [];
  9759. resumableState.moduleScriptResources[href] =
  9760. !options ||
  9761. ("string" !== typeof options.crossOrigin &&
  9762. "string" !== typeof options.integrity)
  9763. ? PRELOAD_NO_CREDS
  9764. : [options.crossOrigin, options.integrity];
  9765. renderState.preloads.moduleScripts.set(href, as);
  9766. break;
  9767. default:
  9768. if (resumableState.moduleUnknownResources.hasOwnProperty(as)) {
  9769. var resources = resumableState.unknownResources[as];
  9770. if (resources.hasOwnProperty(href)) return;
  9771. } else
  9772. (resources = {}),
  9773. (resumableState.moduleUnknownResources[as] = resources);
  9774. as = [];
  9775. resources[href] = PRELOAD_NO_CREDS;
  9776. }
  9777. pushLinkImpl(
  9778. as,
  9779. assign({ rel: "modulepreload", href: href }, options)
  9780. );
  9781. renderState.bulkPreloads.add(as);
  9782. enqueueFlush(request);
  9783. }
  9784. } else previousDispatcher.m(href, options);
  9785. },
  9786. X: function (src, options) {
  9787. var request = resolveRequest();
  9788. if (request) {
  9789. var resumableState = request.resumableState,
  9790. renderState = request.renderState;
  9791. if (src) {
  9792. var resourceState = resumableState.scriptResources.hasOwnProperty(
  9793. src
  9794. )
  9795. ? resumableState.scriptResources[src]
  9796. : void 0;
  9797. resourceState !== EXISTS &&
  9798. ((resumableState.scriptResources[src] = EXISTS),
  9799. (options = assign({ src: src, async: !0 }, options)),
  9800. resourceState &&
  9801. (2 === resourceState.length &&
  9802. adoptPreloadCredentials(options, resourceState),
  9803. (src = renderState.preloads.scripts.get(src))) &&
  9804. (src.length = 0),
  9805. (src = []),
  9806. renderState.scripts.add(src),
  9807. pushScriptImpl(src, options),
  9808. enqueueFlush(request));
  9809. }
  9810. } else previousDispatcher.X(src, options);
  9811. },
  9812. S: function (href, precedence, options) {
  9813. var request = resolveRequest();
  9814. if (request) {
  9815. var resumableState = request.resumableState,
  9816. renderState = request.renderState;
  9817. if (href) {
  9818. precedence = precedence || "default";
  9819. var styleQueue = renderState.styles.get(precedence),
  9820. resourceState = resumableState.styleResources.hasOwnProperty(href)
  9821. ? resumableState.styleResources[href]
  9822. : void 0;
  9823. resourceState !== EXISTS &&
  9824. ((resumableState.styleResources[href] = EXISTS),
  9825. styleQueue ||
  9826. ((styleQueue = {
  9827. precedence: stringToChunk(escapeTextForBrowser(precedence)),
  9828. rules: [],
  9829. hrefs: [],
  9830. sheets: new Map()
  9831. }),
  9832. renderState.styles.set(precedence, styleQueue)),
  9833. (precedence = {
  9834. state: PENDING$1,
  9835. props: assign(
  9836. {
  9837. rel: "stylesheet",
  9838. href: href,
  9839. "data-precedence": precedence
  9840. },
  9841. options
  9842. )
  9843. }),
  9844. resourceState &&
  9845. (2 === resourceState.length &&
  9846. adoptPreloadCredentials(precedence.props, resourceState),
  9847. (renderState = renderState.preloads.stylesheets.get(href)) &&
  9848. 0 < renderState.length
  9849. ? (renderState.length = 0)
  9850. : (precedence.state = PRELOADED)),
  9851. styleQueue.sheets.set(href, precedence),
  9852. enqueueFlush(request));
  9853. }
  9854. } else previousDispatcher.S(href, precedence, options);
  9855. },
  9856. M: function (src, options) {
  9857. var request = resolveRequest();
  9858. if (request) {
  9859. var resumableState = request.resumableState,
  9860. renderState = request.renderState;
  9861. if (src) {
  9862. var resourceState =
  9863. resumableState.moduleScriptResources.hasOwnProperty(src)
  9864. ? resumableState.moduleScriptResources[src]
  9865. : void 0;
  9866. resourceState !== EXISTS &&
  9867. ((resumableState.moduleScriptResources[src] = EXISTS),
  9868. (options = assign(
  9869. { src: src, type: "module", async: !0 },
  9870. options
  9871. )),
  9872. resourceState &&
  9873. (2 === resourceState.length &&
  9874. adoptPreloadCredentials(options, resourceState),
  9875. (src = renderState.preloads.moduleScripts.get(src))) &&
  9876. (src.length = 0),
  9877. (src = []),
  9878. renderState.scripts.add(src),
  9879. pushScriptImpl(src, options),
  9880. enqueueFlush(request));
  9881. }
  9882. } else previousDispatcher.M(src, options);
  9883. }
  9884. };
  9885. var NothingSent = 0,
  9886. SentCompleteSegmentFunction = 1,
  9887. SentCompleteBoundaryFunction = 2,
  9888. SentClientRenderFunction = 4,
  9889. SentStyleInsertionFunction = 8,
  9890. SentCompletedShellId = 32,
  9891. SentMarkShellTime = 64,
  9892. EXISTS = null,
  9893. PRELOAD_NO_CREDS = [];
  9894. Object.freeze(PRELOAD_NO_CREDS);
  9895. var currentlyFlushingRenderState = null;
  9896. stringToPrecomputedChunk('"></template>');
  9897. var startInlineScript = stringToPrecomputedChunk("<script"),
  9898. endInlineScript = stringToPrecomputedChunk("\x3c/script>"),
  9899. startScriptSrc = stringToPrecomputedChunk('<script src="'),
  9900. startModuleSrc = stringToPrecomputedChunk('<script type="module" src="'),
  9901. scriptNonce = stringToPrecomputedChunk(' nonce="'),
  9902. scriptIntegirty = stringToPrecomputedChunk(' integrity="'),
  9903. scriptCrossOrigin = stringToPrecomputedChunk(' crossorigin="'),
  9904. endAsyncScript = stringToPrecomputedChunk(' async="">\x3c/script>'),
  9905. startInlineStyle = stringToPrecomputedChunk("<style"),
  9906. scriptRegex = /(<\/|<)(s)(cript)/gi,
  9907. importMapScriptStart = stringToPrecomputedChunk(
  9908. '<script type="importmap">'
  9909. ),
  9910. importMapScriptEnd = stringToPrecomputedChunk("\x3c/script>");
  9911. var didWarnForNewBooleanPropsWithEmptyValue = {};
  9912. var ROOT_HTML_MODE = 0,
  9913. HTML_HTML_MODE = 1,
  9914. HTML_MODE = 2,
  9915. HTML_HEAD_MODE = 3,
  9916. SVG_MODE = 4,
  9917. MATHML_MODE = 5,
  9918. HTML_TABLE_MODE = 6,
  9919. HTML_TABLE_BODY_MODE = 7,
  9920. HTML_TABLE_ROW_MODE = 8,
  9921. HTML_COLGROUP_MODE = 9,
  9922. textSeparator = stringToPrecomputedChunk("\x3c!-- --\x3e"),
  9923. styleNameCache = new Map(),
  9924. styleAttributeStart = stringToPrecomputedChunk(' style="'),
  9925. styleAssign = stringToPrecomputedChunk(":"),
  9926. styleSeparator = stringToPrecomputedChunk(";"),
  9927. attributeSeparator = stringToPrecomputedChunk(" "),
  9928. attributeAssign = stringToPrecomputedChunk('="'),
  9929. attributeEnd = stringToPrecomputedChunk('"'),
  9930. attributeEmptyString = stringToPrecomputedChunk('=""'),
  9931. actionJavaScriptURL = stringToPrecomputedChunk(
  9932. escapeTextForBrowser(
  9933. "javascript:throw new Error('React form unexpectedly submitted.')"
  9934. )
  9935. ),
  9936. startHiddenInputChunk = stringToPrecomputedChunk('<input type="hidden"'),
  9937. endOfStartTag = stringToPrecomputedChunk(">"),
  9938. endOfStartTagSelfClosing = stringToPrecomputedChunk("/>"),
  9939. didWarnDefaultInputValue = !1,
  9940. didWarnDefaultChecked = !1,
  9941. didWarnDefaultSelectValue = !1,
  9942. didWarnDefaultTextareaValue = !1,
  9943. didWarnInvalidOptionChildren = !1,
  9944. didWarnInvalidOptionInnerHTML = !1,
  9945. didWarnSelectedSetOnOption = !1,
  9946. didWarnFormActionType = !1,
  9947. didWarnFormActionName = !1,
  9948. didWarnFormActionTarget = !1,
  9949. didWarnFormActionMethod = !1,
  9950. selectedMarkerAttribute = stringToPrecomputedChunk(' selected=""'),
  9951. formReplayingRuntimeScript = stringToPrecomputedChunk(
  9952. '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))}});'
  9953. ),
  9954. formStateMarkerIsMatching = stringToPrecomputedChunk("\x3c!--F!--\x3e"),
  9955. formStateMarkerIsNotMatching = stringToPrecomputedChunk("\x3c!--F--\x3e"),
  9956. styleRegex = /(<\/|<)(s)(tyle)/gi,
  9957. headPreambleContributionChunk =
  9958. stringToPrecomputedChunk("\x3c!--head--\x3e"),
  9959. bodyPreambleContributionChunk =
  9960. stringToPrecomputedChunk("\x3c!--body--\x3e"),
  9961. htmlPreambleContributionChunk =
  9962. stringToPrecomputedChunk("\x3c!--html--\x3e"),
  9963. leadingNewline = stringToPrecomputedChunk("\n"),
  9964. VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,
  9965. validatedTagCache = new Map(),
  9966. doctypeChunk = stringToPrecomputedChunk("<!DOCTYPE html>"),
  9967. endTagCache = new Map(),
  9968. shellTimeRuntimeScript = stringToPrecomputedChunk(
  9969. "requestAnimationFrame(function(){$RT=performance.now()});"
  9970. ),
  9971. placeholder1 = stringToPrecomputedChunk('<template id="'),
  9972. placeholder2 = stringToPrecomputedChunk('"></template>'),
  9973. startActivityBoundary = stringToPrecomputedChunk("\x3c!--&--\x3e"),
  9974. endActivityBoundary = stringToPrecomputedChunk("\x3c!--/&--\x3e"),
  9975. startCompletedSuspenseBoundary =
  9976. stringToPrecomputedChunk("\x3c!--$--\x3e"),
  9977. startPendingSuspenseBoundary1 = stringToPrecomputedChunk(
  9978. '\x3c!--$?--\x3e<template id="'
  9979. ),
  9980. startPendingSuspenseBoundary2 = stringToPrecomputedChunk('"></template>'),
  9981. startClientRenderedSuspenseBoundary =
  9982. stringToPrecomputedChunk("\x3c!--$!--\x3e"),
  9983. endSuspenseBoundary = stringToPrecomputedChunk("\x3c!--/$--\x3e"),
  9984. clientRenderedSuspenseBoundaryError1 =
  9985. stringToPrecomputedChunk("<template"),
  9986. clientRenderedSuspenseBoundaryErrorAttrInterstitial =
  9987. stringToPrecomputedChunk('"'),
  9988. clientRenderedSuspenseBoundaryError1A =
  9989. stringToPrecomputedChunk(' data-dgst="'),
  9990. clientRenderedSuspenseBoundaryError1B =
  9991. stringToPrecomputedChunk(' data-msg="'),
  9992. clientRenderedSuspenseBoundaryError1C =
  9993. stringToPrecomputedChunk(' data-stck="'),
  9994. clientRenderedSuspenseBoundaryError1D =
  9995. stringToPrecomputedChunk(' data-cstck="'),
  9996. clientRenderedSuspenseBoundaryError2 =
  9997. stringToPrecomputedChunk("></template>"),
  9998. startSegmentHTML = stringToPrecomputedChunk('<div hidden id="'),
  9999. startSegmentHTML2 = stringToPrecomputedChunk('">'),
  10000. endSegmentHTML = stringToPrecomputedChunk("</div>"),
  10001. startSegmentSVG = stringToPrecomputedChunk(
  10002. '<svg aria-hidden="true" style="display:none" id="'
  10003. ),
  10004. startSegmentSVG2 = stringToPrecomputedChunk('">'),
  10005. endSegmentSVG = stringToPrecomputedChunk("</svg>"),
  10006. startSegmentMathML = stringToPrecomputedChunk(
  10007. '<math aria-hidden="true" style="display:none" id="'
  10008. ),
  10009. startSegmentMathML2 = stringToPrecomputedChunk('">'),
  10010. endSegmentMathML = stringToPrecomputedChunk("</math>"),
  10011. startSegmentTable = stringToPrecomputedChunk('<table hidden id="'),
  10012. startSegmentTable2 = stringToPrecomputedChunk('">'),
  10013. endSegmentTable = stringToPrecomputedChunk("</table>"),
  10014. startSegmentTableBody = stringToPrecomputedChunk(
  10015. '<table hidden><tbody id="'
  10016. ),
  10017. startSegmentTableBody2 = stringToPrecomputedChunk('">'),
  10018. endSegmentTableBody = stringToPrecomputedChunk("</tbody></table>"),
  10019. startSegmentTableRow = stringToPrecomputedChunk('<table hidden><tr id="'),
  10020. startSegmentTableRow2 = stringToPrecomputedChunk('">'),
  10021. endSegmentTableRow = stringToPrecomputedChunk("</tr></table>"),
  10022. startSegmentColGroup = stringToPrecomputedChunk(
  10023. '<table hidden><colgroup id="'
  10024. ),
  10025. startSegmentColGroup2 = stringToPrecomputedChunk('">'),
  10026. endSegmentColGroup = stringToPrecomputedChunk("</colgroup></table>"),
  10027. completeSegmentScript1Full = stringToPrecomputedChunk(
  10028. '$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("'
  10029. ),
  10030. completeSegmentScript1Partial = stringToPrecomputedChunk('$RS("'),
  10031. completeSegmentScript2 = stringToPrecomputedChunk('","'),
  10032. completeSegmentScriptEnd = stringToPrecomputedChunk('")\x3c/script>');
  10033. stringToPrecomputedChunk('<template data-rsi="" data-sid="');
  10034. stringToPrecomputedChunk('" data-pid="');
  10035. var completeBoundaryScriptFunctionOnly = stringToPrecomputedChunk(
  10036. '$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)};'
  10037. );
  10038. stringToChunk(
  10039. '$RV=function(A,g){function k(a,b){var e=a.getAttribute(b);e&&(b=a.style,l.push(a,b.viewTransitionName,b.viewTransitionClass),"auto"!==e&&(b.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+K++ +"_"),b.viewTransitionName=a,B=!0)}var B=!1,K=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var h=g[f].querySelectorAll("[vt-share]"),d=0;d<h.length;d++){var c=h[d];m.set(c.getAttribute("vt-name"),c)}var u=[];for(h=0;h<g.length;h+=2){var C=g[h],x=C.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){c=C;for(f=0;c;){if(8===c.nodeType){var r=c.data;if("/$"===r)if(0===f)break;else f--;else"$"!==r&&"$?"!==r&&"$~"!==r&&"$!"!==r||f++}else if(1===c.nodeType){d=c;var D=d.getAttribute("vt-name"),y=m.get(D);k(d,y?"vt-share":"vt-exit");y&&(k(y,"vt-share"),m.set(D,null));var E=d.querySelectorAll("[vt-share]");for(d=0;d<E.length;d++){var F=E[d],G=F.getAttribute("vt-name"),\nH=m.get(G);H&&(k(F,"vt-share"),k(H,"vt-share"),m.set(G,null))}}c=c.nextSibling}for(var I=g[h+1],t=I.firstElementChild;t;)null!==m.get(t.getAttribute("vt-name"))&&k(t,"vt-enter"),t=t.nextElementSibling;c=x;do for(var n=c.firstElementChild;n;){var J=n.getAttribute("vt-update");J&&"none"!==J&&!l.includes(n)&&k(n,"vt-update");n=n.nextElementSibling}while((c=c.parentNode)&&1===c.nodeType&&"none"!==c.getAttribute("vt-update"));u.push.apply(u,I.querySelectorAll(\'img[src]:not([loading="lazy"])\'))}}}if(B){var z=\ndocument.__reactViewTransition=document.startViewTransition({update:function(){A(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],b={},e=0;e<u.length;b={g:b.g},e++)if(b.g=u[e],!b.g.complete){var p=b.g.getBoundingClientRect();0<p.bottom&&0<p.right&&p.top<window.innerHeight&&p.left<window.innerWidth&&(p=new Promise(function(w){return function(q){w.g.addEventListener("load",q);w.g.addEventListener("error",q)}}(b)),a.push(p))}return Promise.race([Promise.all(a),new Promise(function(w){var q=\nperformance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var b=l[a],e=b.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===b.getAttribute("style")&&b.removeAttribute("style")}});z.finished.finally(function(){document.__reactViewTransition===z&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}A(g)}.bind(null,$RV);'
  10040. );
  10041. var completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("'),
  10042. completeBoundaryWithStylesScript1FullPartial = stringToPrecomputedChunk(
  10043. '$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("'
  10044. ),
  10045. completeBoundaryWithStylesScript1Partial =
  10046. stringToPrecomputedChunk('$RR("'),
  10047. completeBoundaryScript2 = stringToPrecomputedChunk('","'),
  10048. completeBoundaryScript3a = stringToPrecomputedChunk('",'),
  10049. completeBoundaryScript3b = stringToPrecomputedChunk('"'),
  10050. completeBoundaryScriptEnd = stringToPrecomputedChunk(")\x3c/script>");
  10051. stringToPrecomputedChunk('<template data-rci="" data-bid="');
  10052. stringToPrecomputedChunk('<template data-rri="" data-bid="');
  10053. stringToPrecomputedChunk('" data-sid="');
  10054. stringToPrecomputedChunk('" data-sty="');
  10055. var clientRenderScriptFunctionOnly = stringToPrecomputedChunk(
  10056. '$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())};'
  10057. ),
  10058. clientRenderScript1Full = stringToPrecomputedChunk(
  10059. '$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("'
  10060. ),
  10061. clientRenderScript1Partial = stringToPrecomputedChunk('$RX("'),
  10062. clientRenderScript1A = stringToPrecomputedChunk('"'),
  10063. clientRenderErrorScriptArgInterstitial = stringToPrecomputedChunk(","),
  10064. clientRenderScriptEnd = stringToPrecomputedChunk(")\x3c/script>");
  10065. stringToPrecomputedChunk('<template data-rxi="" data-bid="');
  10066. stringToPrecomputedChunk('" data-dgst="');
  10067. stringToPrecomputedChunk('" data-msg="');
  10068. stringToPrecomputedChunk('" data-stck="');
  10069. stringToPrecomputedChunk('" data-cstck="');
  10070. var regexForJSStringsInInstructionScripts = /[<\u2028\u2029]/g,
  10071. regexForJSStringsInScripts = /[&><\u2028\u2029]/g,
  10072. lateStyleTagResourceOpen1 = stringToPrecomputedChunk(
  10073. ' media="not all" data-precedence="'
  10074. ),
  10075. lateStyleTagResourceOpen2 = stringToPrecomputedChunk('" data-href="'),
  10076. lateStyleTagResourceOpen3 = stringToPrecomputedChunk('">'),
  10077. lateStyleTagTemplateClose = stringToPrecomputedChunk("</style>"),
  10078. currentlyRenderingBoundaryHasStylesToHoist = !1,
  10079. destinationHasCapacity = !0,
  10080. stylesheetFlushingQueue = [],
  10081. styleTagResourceOpen1 = stringToPrecomputedChunk(' data-precedence="'),
  10082. styleTagResourceOpen2 = stringToPrecomputedChunk('" data-href="'),
  10083. spaceSeparator = stringToPrecomputedChunk(" "),
  10084. styleTagResourceOpen3 = stringToPrecomputedChunk('">'),
  10085. styleTagResourceClose = stringToPrecomputedChunk("</style>");
  10086. stringToPrecomputedChunk('<link rel="expect" href="#');
  10087. stringToPrecomputedChunk('" blocking="render"/>');
  10088. var completedShellIdAttributeStart = stringToPrecomputedChunk(' id="'),
  10089. arrayFirstOpenBracket = stringToPrecomputedChunk("["),
  10090. arraySubsequentOpenBracket = stringToPrecomputedChunk(",["),
  10091. arrayInterstitial = stringToPrecomputedChunk(","),
  10092. arrayCloseBracket = stringToPrecomputedChunk("]"),
  10093. PENDING$1 = 0,
  10094. PRELOADED = 1,
  10095. PREAMBLE = 2,
  10096. LATE = 3,
  10097. regexForHrefInLinkHeaderURLContext = /[<>\r\n]/g,
  10098. regexForLinkHeaderQuotedParamValueContext = /["';,\r\n]/g,
  10099. bind = Function.prototype.bind,
  10100. supportsRequestStorage = "function" === typeof AsyncLocalStorage,
  10101. requestStorage = supportsRequestStorage ? new AsyncLocalStorage() : null,
  10102. REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
  10103. emptyContextObject = {};
  10104. Object.freeze(emptyContextObject);
  10105. var rendererSigil = {};
  10106. var currentActiveSnapshot = null,
  10107. didWarnAboutNoopUpdateForComponent = {},
  10108. didWarnAboutDeprecatedWillMount = {};
  10109. var didWarnAboutUninitializedState = new Set();
  10110. var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();
  10111. var didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
  10112. var didWarnAboutDirectlyAssigningPropsToState = new Set();
  10113. var didWarnAboutUndefinedDerivedState = new Set();
  10114. var didWarnAboutContextTypes$1 = new Set();
  10115. var didWarnAboutChildContextTypes = new Set();
  10116. var didWarnAboutInvalidateContextType = new Set();
  10117. var didWarnOnInvalidCallback = new Set();
  10118. var classComponentUpdater = {
  10119. enqueueSetState: function (inst, payload, callback) {
  10120. var internals = inst._reactInternals;
  10121. null === internals.queue
  10122. ? warnNoop(inst, "setState")
  10123. : (internals.queue.push(payload),
  10124. void 0 !== callback &&
  10125. null !== callback &&
  10126. warnOnInvalidCallback(callback));
  10127. },
  10128. enqueueReplaceState: function (inst, payload, callback) {
  10129. inst = inst._reactInternals;
  10130. inst.replace = !0;
  10131. inst.queue = [payload];
  10132. void 0 !== callback &&
  10133. null !== callback &&
  10134. warnOnInvalidCallback(callback);
  10135. },
  10136. enqueueForceUpdate: function (inst, callback) {
  10137. null === inst._reactInternals.queue
  10138. ? warnNoop(inst, "forceUpdate")
  10139. : void 0 !== callback &&
  10140. null !== callback &&
  10141. warnOnInvalidCallback(callback);
  10142. }
  10143. },
  10144. emptyTreeContext = { id: 1, overflow: "" },
  10145. clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
  10146. log = Math.log,
  10147. LN2 = Math.LN2,
  10148. SuspenseException = Error(
  10149. "Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."
  10150. ),
  10151. suspendedThenable = null,
  10152. objectIs = "function" === typeof Object.is ? Object.is : is,
  10153. currentlyRenderingComponent = null,
  10154. currentlyRenderingTask = null,
  10155. currentlyRenderingRequest = null,
  10156. currentlyRenderingKeyPath = null,
  10157. firstWorkInProgressHook = null,
  10158. workInProgressHook = null,
  10159. isReRender = !1,
  10160. didScheduleRenderPhaseUpdate = !1,
  10161. localIdCounter = 0,
  10162. actionStateCounter = 0,
  10163. actionStateMatchingIndex = -1,
  10164. thenableIndexCounter = 0,
  10165. thenableState = null,
  10166. renderPhaseUpdates = null,
  10167. numberOfReRenders = 0,
  10168. isInHookUserCodeInDev = !1,
  10169. currentHookNameInDev,
  10170. HooksDispatcher = {
  10171. readContext: readContext,
  10172. use: function (usable) {
  10173. if (null !== usable && "object" === typeof usable) {
  10174. if ("function" === typeof usable.then)
  10175. return unwrapThenable(usable);
  10176. if (usable.$$typeof === REACT_CONTEXT_TYPE)
  10177. return readContext(usable);
  10178. }
  10179. throw Error(
  10180. "An unsupported type was passed to use(): " + String(usable)
  10181. );
  10182. },
  10183. useContext: function (context) {
  10184. currentHookNameInDev = "useContext";
  10185. resolveCurrentlyRenderingComponent();
  10186. return context._currentValue;
  10187. },
  10188. useMemo: useMemo,
  10189. useReducer: useReducer,
  10190. useRef: function (initialValue) {
  10191. currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
  10192. workInProgressHook = createWorkInProgressHook();
  10193. var previousRef = workInProgressHook.memoizedState;
  10194. return null === previousRef
  10195. ? ((initialValue = { current: initialValue }),
  10196. Object.seal(initialValue),
  10197. (workInProgressHook.memoizedState = initialValue))
  10198. : previousRef;
  10199. },
  10200. useState: function (initialState) {
  10201. currentHookNameInDev = "useState";
  10202. return useReducer(basicStateReducer, initialState);
  10203. },
  10204. useInsertionEffect: noop,
  10205. useLayoutEffect: noop,
  10206. useCallback: function (callback, deps) {
  10207. return useMemo(function () {
  10208. return callback;
  10209. }, deps);
  10210. },
  10211. useImperativeHandle: noop,
  10212. useEffect: noop,
  10213. useDebugValue: noop,
  10214. useDeferredValue: function (value, initialValue) {
  10215. resolveCurrentlyRenderingComponent();
  10216. return void 0 !== initialValue ? initialValue : value;
  10217. },
  10218. useTransition: function () {
  10219. resolveCurrentlyRenderingComponent();
  10220. return [!1, unsupportedStartTransition];
  10221. },
  10222. useId: function () {
  10223. var treeId = currentlyRenderingTask.treeContext;
  10224. var overflow = treeId.overflow;
  10225. treeId = treeId.id;
  10226. treeId =
  10227. (treeId & ~(1 << (32 - clz32(treeId) - 1))).toString(32) + overflow;
  10228. var resumableState = currentResumableState;
  10229. if (null === resumableState)
  10230. throw Error(
  10231. "Invalid hook call. Hooks can only be called inside of the body of a function component."
  10232. );
  10233. overflow = localIdCounter++;
  10234. treeId = "_" + resumableState.idPrefix + "R_" + treeId;
  10235. 0 < overflow && (treeId += "H" + overflow.toString(32));
  10236. return treeId + "_";
  10237. },
  10238. useSyncExternalStore: function (
  10239. subscribe,
  10240. getSnapshot,
  10241. getServerSnapshot
  10242. ) {
  10243. if (void 0 === getServerSnapshot)
  10244. throw Error(
  10245. "Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering."
  10246. );
  10247. return getServerSnapshot();
  10248. },
  10249. useOptimistic: function (passthrough) {
  10250. resolveCurrentlyRenderingComponent();
  10251. return [passthrough, unsupportedSetOptimisticState];
  10252. },
  10253. useActionState: useActionState,
  10254. useFormState: useActionState,
  10255. useHostTransitionStatus: function () {
  10256. resolveCurrentlyRenderingComponent();
  10257. return NotPending;
  10258. },
  10259. useMemoCache: function (size) {
  10260. for (var data = Array(size), i = 0; i < size; i++)
  10261. data[i] = REACT_MEMO_CACHE_SENTINEL;
  10262. return data;
  10263. },
  10264. useCacheRefresh: function () {
  10265. return unsupportedRefresh;
  10266. },
  10267. useEffectEvent: function () {
  10268. return throwOnUseEffectEventCall;
  10269. }
  10270. },
  10271. currentResumableState = null,
  10272. currentTaskInDEV = null,
  10273. DefaultAsyncDispatcher = {
  10274. getCacheForType: function () {
  10275. throw Error("Not implemented.");
  10276. },
  10277. cacheSignal: function () {
  10278. throw Error("Not implemented.");
  10279. },
  10280. getOwner: function () {
  10281. return null === currentTaskInDEV
  10282. ? null
  10283. : currentTaskInDEV.componentStack;
  10284. }
  10285. },
  10286. disabledDepth = 0,
  10287. prevLog,
  10288. prevInfo,
  10289. prevWarn,
  10290. prevError,
  10291. prevGroup,
  10292. prevGroupCollapsed,
  10293. prevGroupEnd;
  10294. disabledLog.__reactDisabledLog = !0;
  10295. var prefix,
  10296. suffix,
  10297. reentry = !1;
  10298. var componentFrameCache = new (
  10299. "function" === typeof WeakMap ? WeakMap : Map
  10300. )();
  10301. var callComponent = {
  10302. react_stack_bottom_frame: function (Component, props, secondArg) {
  10303. return Component(props, secondArg);
  10304. }
  10305. },
  10306. callComponentInDEV =
  10307. callComponent.react_stack_bottom_frame.bind(callComponent),
  10308. callRender = {
  10309. react_stack_bottom_frame: function (instance) {
  10310. return instance.render();
  10311. }
  10312. },
  10313. callRenderInDEV = callRender.react_stack_bottom_frame.bind(callRender),
  10314. callLazyInit = {
  10315. react_stack_bottom_frame: function (lazy) {
  10316. var init = lazy._init;
  10317. return init(lazy._payload);
  10318. }
  10319. },
  10320. callLazyInitInDEV =
  10321. callLazyInit.react_stack_bottom_frame.bind(callLazyInit),
  10322. lastResetTime = 0;
  10323. if (
  10324. "object" === typeof performance &&
  10325. "function" === typeof performance.now
  10326. ) {
  10327. var localPerformance = performance;
  10328. var getCurrentTime = function () {
  10329. return localPerformance.now();
  10330. };
  10331. } else {
  10332. var localDate = Date;
  10333. getCurrentTime = function () {
  10334. return localDate.now();
  10335. };
  10336. }
  10337. var CLIENT_RENDERED = 4,
  10338. PENDING = 0,
  10339. COMPLETED = 1,
  10340. FLUSHED = 2,
  10341. ABORTED = 3,
  10342. ERRORED = 4,
  10343. POSTPONED = 5,
  10344. CLOSED = 14,
  10345. currentRequest = null,
  10346. didWarnAboutBadClass = {},
  10347. didWarnAboutContextTypes = {},
  10348. didWarnAboutContextTypeOnFunctionComponent = {},
  10349. didWarnAboutGetDerivedStateOnFunctionComponent = {},
  10350. didWarnAboutReassigningProps = !1,
  10351. didWarnAboutGenerators = !1,
  10352. didWarnAboutMaps = !1,
  10353. flushedByteSize = 0,
  10354. flushingPartialBoundaries = !1;
  10355. ensureCorrectIsomorphicReactVersion();
  10356. ensureCorrectIsomorphicReactVersion();
  10357. exports.prerender = function (children, options) {
  10358. return new Promise(function (resolve, reject) {
  10359. var onHeaders = options ? options.onHeaders : void 0,
  10360. onHeadersImpl;
  10361. onHeaders &&
  10362. (onHeadersImpl = function (headersDescriptor) {
  10363. onHeaders(new Headers(headersDescriptor));
  10364. });
  10365. var resources = createResumableState(
  10366. options ? options.identifierPrefix : void 0,
  10367. options ? options.unstable_externalRuntimeSrc : void 0,
  10368. options ? options.bootstrapScriptContent : void 0,
  10369. options ? options.bootstrapScripts : void 0,
  10370. options ? options.bootstrapModules : void 0
  10371. ),
  10372. request = createPrerenderRequest(
  10373. children,
  10374. resources,
  10375. createRenderState(
  10376. resources,
  10377. void 0,
  10378. options ? options.unstable_externalRuntimeSrc : void 0,
  10379. options ? options.importMap : void 0,
  10380. onHeadersImpl,
  10381. options ? options.maxHeadersLength : void 0
  10382. ),
  10383. createRootFormatContext(options ? options.namespaceURI : void 0),
  10384. options ? options.progressiveChunkSize : void 0,
  10385. options ? options.onError : void 0,
  10386. function () {
  10387. var stream = new ReadableStream(
  10388. {
  10389. type: "bytes",
  10390. pull: function (controller) {
  10391. startFlowing(request, controller);
  10392. },
  10393. cancel: function (reason) {
  10394. request.destination = null;
  10395. abort(request, reason);
  10396. }
  10397. },
  10398. { highWaterMark: 0 }
  10399. );
  10400. stream = {
  10401. postponed: getPostponedState(request),
  10402. prelude: stream
  10403. };
  10404. resolve(stream);
  10405. },
  10406. void 0,
  10407. void 0,
  10408. reject,
  10409. options ? options.onPostpone : void 0
  10410. );
  10411. if (options && options.signal) {
  10412. var signal = options.signal;
  10413. if (signal.aborted) abort(request, signal.reason);
  10414. else {
  10415. var listener = function () {
  10416. abort(request, signal.reason);
  10417. signal.removeEventListener("abort", listener);
  10418. };
  10419. signal.addEventListener("abort", listener);
  10420. }
  10421. }
  10422. startWork(request);
  10423. });
  10424. };
  10425. exports.renderToReadableStream = function (children, options) {
  10426. return new Promise(function (resolve, reject) {
  10427. var onFatalError,
  10428. onAllReady,
  10429. allReady = new Promise(function (res, rej) {
  10430. onAllReady = res;
  10431. onFatalError = rej;
  10432. }),
  10433. onHeaders = options ? options.onHeaders : void 0,
  10434. onHeadersImpl;
  10435. onHeaders &&
  10436. (onHeadersImpl = function (headersDescriptor) {
  10437. onHeaders(new Headers(headersDescriptor));
  10438. });
  10439. var resumableState = createResumableState(
  10440. options ? options.identifierPrefix : void 0,
  10441. options ? options.unstable_externalRuntimeSrc : void 0,
  10442. options ? options.bootstrapScriptContent : void 0,
  10443. options ? options.bootstrapScripts : void 0,
  10444. options ? options.bootstrapModules : void 0
  10445. ),
  10446. request = createRequest(
  10447. children,
  10448. resumableState,
  10449. createRenderState(
  10450. resumableState,
  10451. options ? options.nonce : void 0,
  10452. options ? options.unstable_externalRuntimeSrc : void 0,
  10453. options ? options.importMap : void 0,
  10454. onHeadersImpl,
  10455. options ? options.maxHeadersLength : void 0
  10456. ),
  10457. createRootFormatContext(options ? options.namespaceURI : void 0),
  10458. options ? options.progressiveChunkSize : void 0,
  10459. options ? options.onError : void 0,
  10460. onAllReady,
  10461. function () {
  10462. var stream = new ReadableStream(
  10463. {
  10464. type: "bytes",
  10465. pull: function (controller) {
  10466. startFlowing(request, controller);
  10467. },
  10468. cancel: function (reason) {
  10469. request.destination = null;
  10470. abort(request, reason);
  10471. }
  10472. },
  10473. { highWaterMark: 0 }
  10474. );
  10475. stream.allReady = allReady;
  10476. resolve(stream);
  10477. },
  10478. function (error) {
  10479. allReady.catch(function () {});
  10480. reject(error);
  10481. },
  10482. onFatalError,
  10483. options ? options.onPostpone : void 0,
  10484. options ? options.formState : void 0
  10485. );
  10486. if (options && options.signal) {
  10487. var signal = options.signal;
  10488. if (signal.aborted) abort(request, signal.reason);
  10489. else {
  10490. var listener = function () {
  10491. abort(request, signal.reason);
  10492. signal.removeEventListener("abort", listener);
  10493. };
  10494. signal.addEventListener("abort", listener);
  10495. }
  10496. }
  10497. startWork(request);
  10498. });
  10499. };
  10500. exports.resume = function (children, postponedState, options) {
  10501. return new Promise(function (resolve, reject) {
  10502. var onFatalError,
  10503. onAllReady,
  10504. allReady = new Promise(function (res, rej) {
  10505. onAllReady = res;
  10506. onFatalError = rej;
  10507. }),
  10508. request = resumeRequest(
  10509. children,
  10510. postponedState,
  10511. createRenderState(
  10512. postponedState.resumableState,
  10513. options ? options.nonce : void 0,
  10514. void 0,
  10515. void 0,
  10516. void 0,
  10517. void 0
  10518. ),
  10519. options ? options.onError : void 0,
  10520. onAllReady,
  10521. function () {
  10522. var stream = new ReadableStream(
  10523. {
  10524. type: "bytes",
  10525. pull: function (controller) {
  10526. startFlowing(request, controller);
  10527. },
  10528. cancel: function (reason) {
  10529. request.destination = null;
  10530. abort(request, reason);
  10531. }
  10532. },
  10533. { highWaterMark: 0 }
  10534. );
  10535. stream.allReady = allReady;
  10536. resolve(stream);
  10537. },
  10538. function (error) {
  10539. allReady.catch(function () {});
  10540. reject(error);
  10541. },
  10542. onFatalError,
  10543. options ? options.onPostpone : void 0
  10544. );
  10545. if (options && options.signal) {
  10546. var signal = options.signal;
  10547. if (signal.aborted) abort(request, signal.reason);
  10548. else {
  10549. var listener = function () {
  10550. abort(request, signal.reason);
  10551. signal.removeEventListener("abort", listener);
  10552. };
  10553. signal.addEventListener("abort", listener);
  10554. }
  10555. }
  10556. startWork(request);
  10557. });
  10558. };
  10559. exports.resumeAndPrerender = function (children, postponedState, options) {
  10560. return new Promise(function (resolve, reject) {
  10561. var request = resumeAndPrerenderRequest(
  10562. children,
  10563. postponedState,
  10564. createRenderState(
  10565. postponedState.resumableState,
  10566. void 0,
  10567. void 0,
  10568. void 0,
  10569. void 0,
  10570. void 0
  10571. ),
  10572. options ? options.onError : void 0,
  10573. function () {
  10574. var stream = new ReadableStream(
  10575. {
  10576. type: "bytes",
  10577. pull: function (controller) {
  10578. startFlowing(request, controller);
  10579. },
  10580. cancel: function (reason) {
  10581. request.destination = null;
  10582. abort(request, reason);
  10583. }
  10584. },
  10585. { highWaterMark: 0 }
  10586. );
  10587. stream = { postponed: getPostponedState(request), prelude: stream };
  10588. resolve(stream);
  10589. },
  10590. void 0,
  10591. void 0,
  10592. reject,
  10593. options ? options.onPostpone : void 0
  10594. );
  10595. if (options && options.signal) {
  10596. var signal = options.signal;
  10597. if (signal.aborted) abort(request, signal.reason);
  10598. else {
  10599. var listener = function () {
  10600. abort(request, signal.reason);
  10601. signal.removeEventListener("abort", listener);
  10602. };
  10603. signal.addEventListener("abort", listener);
  10604. }
  10605. }
  10606. startWork(request);
  10607. });
  10608. };
  10609. exports.version = "19.2.4";
  10610. })();