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

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