babylon.inspector.bundle.max.js 3.0 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580
  1. (function webpackUniversalModuleDefinition(root, factory) {
  2. if(typeof exports === 'object' && typeof module === 'object')
  3. module.exports = factory(require("babylonjs-gui"), require("babylonjs-loaders"), require("babylonjs-materials"), require("babylonjs-serializers"), require("babylonjs"));
  4. else if(typeof define === 'function' && define.amd)
  5. define("babylonjs-inspector", ["babylonjs-gui", "babylonjs-loaders", "babylonjs-materials", "babylonjs-serializers", "babylonjs"], factory);
  6. else if(typeof exports === 'object')
  7. exports["babylonjs-inspector"] = factory(require("babylonjs-gui"), require("babylonjs-loaders"), require("babylonjs-materials"), require("babylonjs-serializers"), require("babylonjs"));
  8. else
  9. root["INSPECTOR"] = factory(root["BABYLON"]["GUI"], root["BABYLON"], root["BABYLON"], root["BABYLON"], root["BABYLON"]);
  10. })((typeof self !== "undefined" ? self : typeof global !== "undefined" ? global : this), function(__WEBPACK_EXTERNAL_MODULE_babylonjs_gui_2D_adtInstrumentation__, __WEBPACK_EXTERNAL_MODULE_babylonjs_loaders_glTF_index__, __WEBPACK_EXTERNAL_MODULE_babylonjs_materials_grid_gridMaterial__, __WEBPACK_EXTERNAL_MODULE_babylonjs_serializers_glTF_2_0_index__, __WEBPACK_EXTERNAL_MODULE_babylonjs_Misc_observable__) {
  11. return /******/ (function(modules) { // webpackBootstrap
  12. /******/ // The module cache
  13. /******/ var installedModules = {};
  14. /******/
  15. /******/ // The require function
  16. /******/ function __webpack_require__(moduleId) {
  17. /******/
  18. /******/ // Check if module is in cache
  19. /******/ if(installedModules[moduleId]) {
  20. /******/ return installedModules[moduleId].exports;
  21. /******/ }
  22. /******/ // Create a new module (and put it into the cache)
  23. /******/ var module = installedModules[moduleId] = {
  24. /******/ i: moduleId,
  25. /******/ l: false,
  26. /******/ exports: {}
  27. /******/ };
  28. /******/
  29. /******/ // Execute the module function
  30. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  31. /******/
  32. /******/ // Flag the module as loaded
  33. /******/ module.l = true;
  34. /******/
  35. /******/ // Return the exports of the module
  36. /******/ return module.exports;
  37. /******/ }
  38. /******/
  39. /******/
  40. /******/ // expose the modules object (__webpack_modules__)
  41. /******/ __webpack_require__.m = modules;
  42. /******/
  43. /******/ // expose the module cache
  44. /******/ __webpack_require__.c = installedModules;
  45. /******/
  46. /******/ // define getter function for harmony exports
  47. /******/ __webpack_require__.d = function(exports, name, getter) {
  48. /******/ if(!__webpack_require__.o(exports, name)) {
  49. /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
  50. /******/ }
  51. /******/ };
  52. /******/
  53. /******/ // define __esModule on exports
  54. /******/ __webpack_require__.r = function(exports) {
  55. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  56. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  57. /******/ }
  58. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  59. /******/ };
  60. /******/
  61. /******/ // create a fake namespace object
  62. /******/ // mode & 1: value is a module id, require it
  63. /******/ // mode & 2: merge all properties of value into the ns
  64. /******/ // mode & 4: return value when already ns object
  65. /******/ // mode & 8|1: behave like require
  66. /******/ __webpack_require__.t = function(value, mode) {
  67. /******/ if(mode & 1) value = __webpack_require__(value);
  68. /******/ if(mode & 8) return value;
  69. /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  70. /******/ var ns = Object.create(null);
  71. /******/ __webpack_require__.r(ns);
  72. /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  73. /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  74. /******/ return ns;
  75. /******/ };
  76. /******/
  77. /******/ // getDefaultExport function for compatibility with non-harmony modules
  78. /******/ __webpack_require__.n = function(module) {
  79. /******/ var getter = module && module.__esModule ?
  80. /******/ function getDefault() { return module['default']; } :
  81. /******/ function getModuleExports() { return module; };
  82. /******/ __webpack_require__.d(getter, 'a', getter);
  83. /******/ return getter;
  84. /******/ };
  85. /******/
  86. /******/ // Object.prototype.hasOwnProperty.call
  87. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  88. /******/
  89. /******/ // __webpack_public_path__
  90. /******/ __webpack_require__.p = "";
  91. /******/
  92. /******/
  93. /******/ // Load entry module and return exports
  94. /******/ return __webpack_require__(__webpack_require__.s = "./legacy/legacy.ts");
  95. /******/ })
  96. /************************************************************************/
  97. /******/ ({
  98. /***/ "../../node_modules/@fortawesome/fontawesome-svg-core/index.es.js":
  99. /*!********************************************************************************************!*\
  100. !*** C:/Dev/Babylon/Babylon.js/node_modules/@fortawesome/fontawesome-svg-core/index.es.js ***!
  101. \********************************************************************************************/
  102. /*! exports provided: icon, noAuto, config, toHtml, layer, text, counter, library, dom, parse, findIconDefinition */
  103. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  104. "use strict";
  105. __webpack_require__.r(__webpack_exports__);
  106. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "icon", function() { return icon; });
  107. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "noAuto", function() { return noAuto; });
  108. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "config", function() { return config; });
  109. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toHtml", function() { return toHtml; });
  110. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "layer", function() { return layer; });
  111. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "text", function() { return text; });
  112. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "counter", function() { return counter; });
  113. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "library", function() { return library; });
  114. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dom", function() { return dom; });
  115. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parse", function() { return parse; });
  116. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findIconDefinition", function() { return findIconDefinition; });
  117. function _classCallCheck(instance, Constructor) {
  118. if (!(instance instanceof Constructor)) {
  119. throw new TypeError("Cannot call a class as a function");
  120. }
  121. }
  122. function _defineProperties(target, props) {
  123. for (var i = 0; i < props.length; i++) {
  124. var descriptor = props[i];
  125. descriptor.enumerable = descriptor.enumerable || false;
  126. descriptor.configurable = true;
  127. if ("value" in descriptor) descriptor.writable = true;
  128. Object.defineProperty(target, descriptor.key, descriptor);
  129. }
  130. }
  131. function _createClass(Constructor, protoProps, staticProps) {
  132. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  133. if (staticProps) _defineProperties(Constructor, staticProps);
  134. return Constructor;
  135. }
  136. function _defineProperty(obj, key, value) {
  137. if (key in obj) {
  138. Object.defineProperty(obj, key, {
  139. value: value,
  140. enumerable: true,
  141. configurable: true,
  142. writable: true
  143. });
  144. } else {
  145. obj[key] = value;
  146. }
  147. return obj;
  148. }
  149. function _objectSpread(target) {
  150. for (var i = 1; i < arguments.length; i++) {
  151. var source = arguments[i] != null ? arguments[i] : {};
  152. var ownKeys = Object.keys(source);
  153. if (typeof Object.getOwnPropertySymbols === 'function') {
  154. ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
  155. return Object.getOwnPropertyDescriptor(source, sym).enumerable;
  156. }));
  157. }
  158. ownKeys.forEach(function (key) {
  159. _defineProperty(target, key, source[key]);
  160. });
  161. }
  162. return target;
  163. }
  164. function _slicedToArray(arr, i) {
  165. return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
  166. }
  167. function _toConsumableArray(arr) {
  168. return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
  169. }
  170. function _arrayWithoutHoles(arr) {
  171. if (Array.isArray(arr)) {
  172. for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
  173. return arr2;
  174. }
  175. }
  176. function _arrayWithHoles(arr) {
  177. if (Array.isArray(arr)) return arr;
  178. }
  179. function _iterableToArray(iter) {
  180. if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
  181. }
  182. function _iterableToArrayLimit(arr, i) {
  183. var _arr = [];
  184. var _n = true;
  185. var _d = false;
  186. var _e = undefined;
  187. try {
  188. for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
  189. _arr.push(_s.value);
  190. if (i && _arr.length === i) break;
  191. }
  192. } catch (err) {
  193. _d = true;
  194. _e = err;
  195. } finally {
  196. try {
  197. if (!_n && _i["return"] != null) _i["return"]();
  198. } finally {
  199. if (_d) throw _e;
  200. }
  201. }
  202. return _arr;
  203. }
  204. function _nonIterableSpread() {
  205. throw new TypeError("Invalid attempt to spread non-iterable instance");
  206. }
  207. function _nonIterableRest() {
  208. throw new TypeError("Invalid attempt to destructure non-iterable instance");
  209. }
  210. var noop = function noop() {};
  211. var _WINDOW = {};
  212. var _DOCUMENT = {};
  213. var _MUTATION_OBSERVER = null;
  214. var _PERFORMANCE = {
  215. mark: noop,
  216. measure: noop
  217. };
  218. try {
  219. if (typeof window !== 'undefined') _WINDOW = window;
  220. if (typeof document !== 'undefined') _DOCUMENT = document;
  221. if (typeof MutationObserver !== 'undefined') _MUTATION_OBSERVER = MutationObserver;
  222. if (typeof performance !== 'undefined') _PERFORMANCE = performance;
  223. } catch (e) {}
  224. var _ref = _WINDOW.navigator || {},
  225. _ref$userAgent = _ref.userAgent,
  226. userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
  227. var WINDOW = _WINDOW;
  228. var DOCUMENT = _DOCUMENT;
  229. var MUTATION_OBSERVER = _MUTATION_OBSERVER;
  230. var PERFORMANCE = _PERFORMANCE;
  231. var IS_BROWSER = !!WINDOW.document;
  232. var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
  233. var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
  234. var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
  235. var UNITS_IN_GRID = 16;
  236. var DEFAULT_FAMILY_PREFIX = 'fa';
  237. var DEFAULT_REPLACEMENT_CLASS = 'svg-inline--fa';
  238. var DATA_FA_I2SVG = 'data-fa-i2svg';
  239. var DATA_FA_PSEUDO_ELEMENT = 'data-fa-pseudo-element';
  240. var DATA_PREFIX = 'data-prefix';
  241. var DATA_ICON = 'data-icon';
  242. var HTML_CLASS_I2SVG_BASE_CLASS = 'fontawesome-i2svg';
  243. var TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = ['HTML', 'HEAD', 'STYLE', 'SCRIPT'];
  244. var PRODUCTION = function () {
  245. try {
  246. return "development" === 'production';
  247. } catch (e) {
  248. return false;
  249. }
  250. }();
  251. var oneToTen = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
  252. var oneToTwenty = oneToTen.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]);
  253. var ATTRIBUTES_WATCHED_FOR_MUTATION = ['class', 'data-prefix', 'data-icon', 'data-fa-transform', 'data-fa-mask'];
  254. var RESERVED_CLASSES = ['xs', 'sm', 'lg', 'fw', 'ul', 'li', 'border', 'pull-left', 'pull-right', 'spin', 'pulse', 'rotate-90', 'rotate-180', 'rotate-270', 'flip-horizontal', 'flip-vertical', 'stack', 'stack-1x', 'stack-2x', 'inverse', 'layers', 'layers-text', 'layers-counter'].concat(oneToTen.map(function (n) {
  255. return "".concat(n, "x");
  256. })).concat(oneToTwenty.map(function (n) {
  257. return "w-".concat(n);
  258. }));
  259. var initial = WINDOW.FontAwesomeConfig || {};
  260. function getAttrConfig(attr) {
  261. var element = DOCUMENT.querySelector('script[' + attr + ']');
  262. if (element) {
  263. return element.getAttribute(attr);
  264. }
  265. }
  266. function coerce(val) {
  267. // Getting an empty string will occur if the attribute is set on the HTML tag but without a value
  268. // We'll assume that this is an indication that it should be toggled to true
  269. // For example <script data-search-pseudo-elements src="..."></script>
  270. if (val === '') return true;
  271. if (val === 'false') return false;
  272. if (val === 'true') return true;
  273. return val;
  274. }
  275. if (DOCUMENT && typeof DOCUMENT.querySelector === 'function') {
  276. var attrs = [['data-family-prefix', 'familyPrefix'], ['data-replacement-class', 'replacementClass'], ['data-auto-replace-svg', 'autoReplaceSvg'], ['data-auto-add-css', 'autoAddCss'], ['data-auto-a11y', 'autoA11y'], ['data-search-pseudo-elements', 'searchPseudoElements'], ['data-observe-mutations', 'observeMutations'], ['data-keep-original-source', 'keepOriginalSource'], ['data-measure-performance', 'measurePerformance'], ['data-show-missing-icons', 'showMissingIcons']];
  277. attrs.forEach(function (_ref) {
  278. var _ref2 = _slicedToArray(_ref, 2),
  279. attr = _ref2[0],
  280. key = _ref2[1];
  281. var val = coerce(getAttrConfig(attr));
  282. if (val !== undefined && val !== null) {
  283. initial[key] = val;
  284. }
  285. });
  286. }
  287. var _default = _objectSpread({
  288. familyPrefix: DEFAULT_FAMILY_PREFIX,
  289. replacementClass: DEFAULT_REPLACEMENT_CLASS,
  290. autoReplaceSvg: true,
  291. autoAddCss: true,
  292. autoA11y: true,
  293. searchPseudoElements: false,
  294. observeMutations: true,
  295. keepOriginalSource: true,
  296. measurePerformance: false,
  297. showMissingIcons: true
  298. }, initial);
  299. if (!_default.autoReplaceSvg) _default.observeMutations = false;
  300. var config = _objectSpread({}, _default);
  301. WINDOW.FontAwesomeConfig = config;
  302. var w = WINDOW || {};
  303. if (!w[NAMESPACE_IDENTIFIER]) w[NAMESPACE_IDENTIFIER] = {};
  304. if (!w[NAMESPACE_IDENTIFIER].styles) w[NAMESPACE_IDENTIFIER].styles = {};
  305. if (!w[NAMESPACE_IDENTIFIER].hooks) w[NAMESPACE_IDENTIFIER].hooks = {};
  306. if (!w[NAMESPACE_IDENTIFIER].shims) w[NAMESPACE_IDENTIFIER].shims = [];
  307. var namespace = w[NAMESPACE_IDENTIFIER];
  308. var functions = [];
  309. var listener = function listener() {
  310. DOCUMENT.removeEventListener('DOMContentLoaded', listener);
  311. loaded = 1;
  312. functions.map(function (fn) {
  313. return fn();
  314. });
  315. };
  316. var loaded = false;
  317. if (IS_DOM) {
  318. loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);
  319. if (!loaded) DOCUMENT.addEventListener('DOMContentLoaded', listener);
  320. }
  321. function domready (fn) {
  322. if (!IS_DOM) return;
  323. loaded ? setTimeout(fn, 0) : functions.push(fn);
  324. }
  325. var d = UNITS_IN_GRID;
  326. var meaninglessTransform = {
  327. size: 16,
  328. x: 0,
  329. y: 0,
  330. rotate: 0,
  331. flipX: false,
  332. flipY: false
  333. };
  334. function isReserved(name) {
  335. return ~RESERVED_CLASSES.indexOf(name);
  336. }
  337. function insertCss(css) {
  338. if (!css || !IS_DOM) {
  339. return;
  340. }
  341. var style = DOCUMENT.createElement('style');
  342. style.setAttribute('type', 'text/css');
  343. style.innerHTML = css;
  344. var headChildren = DOCUMENT.head.childNodes;
  345. var beforeChild = null;
  346. for (var i = headChildren.length - 1; i > -1; i--) {
  347. var child = headChildren[i];
  348. var tagName = (child.tagName || '').toUpperCase();
  349. if (['STYLE', 'LINK'].indexOf(tagName) > -1) {
  350. beforeChild = child;
  351. }
  352. }
  353. DOCUMENT.head.insertBefore(style, beforeChild);
  354. return css;
  355. }
  356. var idPool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
  357. function nextUniqueId() {
  358. var size = 12;
  359. var id = '';
  360. while (size-- > 0) {
  361. id += idPool[Math.random() * 62 | 0];
  362. }
  363. return id;
  364. }
  365. function toArray(obj) {
  366. var array = [];
  367. for (var i = (obj || []).length >>> 0; i--;) {
  368. array[i] = obj[i];
  369. }
  370. return array;
  371. }
  372. function classArray(node) {
  373. if (node.classList) {
  374. return toArray(node.classList);
  375. } else {
  376. return (node.getAttribute('class') || '').split(' ').filter(function (i) {
  377. return i;
  378. });
  379. }
  380. }
  381. function getIconName(familyPrefix, cls) {
  382. var parts = cls.split('-');
  383. var prefix = parts[0];
  384. var iconName = parts.slice(1).join('-');
  385. if (prefix === familyPrefix && iconName !== '' && !isReserved(iconName)) {
  386. return iconName;
  387. } else {
  388. return null;
  389. }
  390. }
  391. function htmlEscape(str) {
  392. return "".concat(str).replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/'/g, '&#39;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
  393. }
  394. function joinAttributes(attributes) {
  395. return Object.keys(attributes || {}).reduce(function (acc, attributeName) {
  396. return acc + "".concat(attributeName, "=\"").concat(htmlEscape(attributes[attributeName]), "\" ");
  397. }, '').trim();
  398. }
  399. function joinStyles(styles) {
  400. return Object.keys(styles || {}).reduce(function (acc, styleName) {
  401. return acc + "".concat(styleName, ": ").concat(styles[styleName], ";");
  402. }, '');
  403. }
  404. function transformIsMeaningful(transform) {
  405. return transform.size !== meaninglessTransform.size || transform.x !== meaninglessTransform.x || transform.y !== meaninglessTransform.y || transform.rotate !== meaninglessTransform.rotate || transform.flipX || transform.flipY;
  406. }
  407. function transformForSvg(_ref) {
  408. var transform = _ref.transform,
  409. containerWidth = _ref.containerWidth,
  410. iconWidth = _ref.iconWidth;
  411. var outer = {
  412. transform: "translate(".concat(containerWidth / 2, " 256)")
  413. };
  414. var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
  415. var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
  416. var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
  417. var inner = {
  418. transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
  419. };
  420. var path = {
  421. transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
  422. };
  423. return {
  424. outer: outer,
  425. inner: inner,
  426. path: path
  427. };
  428. }
  429. function transformForCss(_ref2) {
  430. var transform = _ref2.transform,
  431. _ref2$width = _ref2.width,
  432. width = _ref2$width === void 0 ? UNITS_IN_GRID : _ref2$width,
  433. _ref2$height = _ref2.height,
  434. height = _ref2$height === void 0 ? UNITS_IN_GRID : _ref2$height,
  435. _ref2$startCentered = _ref2.startCentered,
  436. startCentered = _ref2$startCentered === void 0 ? false : _ref2$startCentered;
  437. var val = '';
  438. if (startCentered && IS_IE) {
  439. val += "translate(".concat(transform.x / d - width / 2, "em, ").concat(transform.y / d - height / 2, "em) ");
  440. } else if (startCentered) {
  441. val += "translate(calc(-50% + ".concat(transform.x / d, "em), calc(-50% + ").concat(transform.y / d, "em)) ");
  442. } else {
  443. val += "translate(".concat(transform.x / d, "em, ").concat(transform.y / d, "em) ");
  444. }
  445. val += "scale(".concat(transform.size / d * (transform.flipX ? -1 : 1), ", ").concat(transform.size / d * (transform.flipY ? -1 : 1), ") ");
  446. val += "rotate(".concat(transform.rotate, "deg) ");
  447. return val;
  448. }
  449. var ALL_SPACE = {
  450. x: 0,
  451. y: 0,
  452. width: '100%',
  453. height: '100%'
  454. };
  455. function makeIconMasking (_ref) {
  456. var children = _ref.children,
  457. attributes = _ref.attributes,
  458. main = _ref.main,
  459. mask = _ref.mask,
  460. transform = _ref.transform;
  461. var mainWidth = main.width,
  462. mainPath = main.icon;
  463. var maskWidth = mask.width,
  464. maskPath = mask.icon;
  465. var trans = transformForSvg({
  466. transform: transform,
  467. containerWidth: maskWidth,
  468. iconWidth: mainWidth
  469. });
  470. var maskRect = {
  471. tag: 'rect',
  472. attributes: _objectSpread({}, ALL_SPACE, {
  473. fill: 'white'
  474. })
  475. };
  476. var maskInnerGroup = {
  477. tag: 'g',
  478. attributes: _objectSpread({}, trans.inner),
  479. children: [{
  480. tag: 'path',
  481. attributes: _objectSpread({}, mainPath.attributes, trans.path, {
  482. fill: 'black'
  483. })
  484. }]
  485. };
  486. var maskOuterGroup = {
  487. tag: 'g',
  488. attributes: _objectSpread({}, trans.outer),
  489. children: [maskInnerGroup]
  490. };
  491. var maskId = "mask-".concat(nextUniqueId());
  492. var clipId = "clip-".concat(nextUniqueId());
  493. var maskTag = {
  494. tag: 'mask',
  495. attributes: _objectSpread({}, ALL_SPACE, {
  496. id: maskId,
  497. maskUnits: 'userSpaceOnUse',
  498. maskContentUnits: 'userSpaceOnUse'
  499. }),
  500. children: [maskRect, maskOuterGroup]
  501. };
  502. var defs = {
  503. tag: 'defs',
  504. children: [{
  505. tag: 'clipPath',
  506. attributes: {
  507. id: clipId
  508. },
  509. children: [maskPath]
  510. }, maskTag]
  511. };
  512. children.push(defs, {
  513. tag: 'rect',
  514. attributes: _objectSpread({
  515. fill: 'currentColor',
  516. 'clip-path': "url(#".concat(clipId, ")"),
  517. mask: "url(#".concat(maskId, ")")
  518. }, ALL_SPACE)
  519. });
  520. return {
  521. children: children,
  522. attributes: attributes
  523. };
  524. }
  525. function makeIconStandard (_ref) {
  526. var children = _ref.children,
  527. attributes = _ref.attributes,
  528. main = _ref.main,
  529. transform = _ref.transform,
  530. styles = _ref.styles;
  531. var styleString = joinStyles(styles);
  532. if (styleString.length > 0) {
  533. attributes['style'] = styleString;
  534. }
  535. if (transformIsMeaningful(transform)) {
  536. var trans = transformForSvg({
  537. transform: transform,
  538. containerWidth: main.width,
  539. iconWidth: main.width
  540. });
  541. children.push({
  542. tag: 'g',
  543. attributes: _objectSpread({}, trans.outer),
  544. children: [{
  545. tag: 'g',
  546. attributes: _objectSpread({}, trans.inner),
  547. children: [{
  548. tag: main.icon.tag,
  549. children: main.icon.children,
  550. attributes: _objectSpread({}, main.icon.attributes, trans.path)
  551. }]
  552. }]
  553. });
  554. } else {
  555. children.push(main.icon);
  556. }
  557. return {
  558. children: children,
  559. attributes: attributes
  560. };
  561. }
  562. function asIcon (_ref) {
  563. var children = _ref.children,
  564. main = _ref.main,
  565. mask = _ref.mask,
  566. attributes = _ref.attributes,
  567. styles = _ref.styles,
  568. transform = _ref.transform;
  569. if (transformIsMeaningful(transform) && main.found && !mask.found) {
  570. var width = main.width,
  571. height = main.height;
  572. var offset = {
  573. x: width / height / 2,
  574. y: 0.5
  575. };
  576. attributes['style'] = joinStyles(_objectSpread({}, styles, {
  577. 'transform-origin': "".concat(offset.x + transform.x / 16, "em ").concat(offset.y + transform.y / 16, "em")
  578. }));
  579. }
  580. return [{
  581. tag: 'svg',
  582. attributes: attributes,
  583. children: children
  584. }];
  585. }
  586. function asSymbol (_ref) {
  587. var prefix = _ref.prefix,
  588. iconName = _ref.iconName,
  589. children = _ref.children,
  590. attributes = _ref.attributes,
  591. symbol = _ref.symbol;
  592. var id = symbol === true ? "".concat(prefix, "-").concat(config.familyPrefix, "-").concat(iconName) : symbol;
  593. return [{
  594. tag: 'svg',
  595. attributes: {
  596. style: 'display: none;'
  597. },
  598. children: [{
  599. tag: 'symbol',
  600. attributes: _objectSpread({}, attributes, {
  601. id: id
  602. }),
  603. children: children
  604. }]
  605. }];
  606. }
  607. function makeInlineSvgAbstract(params) {
  608. var _params$icons = params.icons,
  609. main = _params$icons.main,
  610. mask = _params$icons.mask,
  611. prefix = params.prefix,
  612. iconName = params.iconName,
  613. transform = params.transform,
  614. symbol = params.symbol,
  615. title = params.title,
  616. extra = params.extra,
  617. _params$watchable = params.watchable,
  618. watchable = _params$watchable === void 0 ? false : _params$watchable;
  619. var _ref = mask.found ? mask : main,
  620. width = _ref.width,
  621. height = _ref.height;
  622. var widthClass = "fa-w-".concat(Math.ceil(width / height * 16));
  623. var attrClass = [config.replacementClass, iconName ? "".concat(config.familyPrefix, "-").concat(iconName) : '', widthClass].filter(function (c) {
  624. return extra.classes.indexOf(c) === -1;
  625. }).concat(extra.classes).join(' ');
  626. var content = {
  627. children: [],
  628. attributes: _objectSpread({}, extra.attributes, {
  629. 'data-prefix': prefix,
  630. 'data-icon': iconName,
  631. 'class': attrClass,
  632. 'role': 'img',
  633. 'xmlns': 'http://www.w3.org/2000/svg',
  634. 'viewBox': "0 0 ".concat(width, " ").concat(height)
  635. })
  636. };
  637. if (watchable) {
  638. content.attributes[DATA_FA_I2SVG] = '';
  639. }
  640. if (title) content.children.push({
  641. tag: 'title',
  642. attributes: {
  643. id: content.attributes['aria-labelledby'] || "title-".concat(nextUniqueId())
  644. },
  645. children: [title]
  646. });
  647. var args = _objectSpread({}, content, {
  648. prefix: prefix,
  649. iconName: iconName,
  650. main: main,
  651. mask: mask,
  652. transform: transform,
  653. symbol: symbol,
  654. styles: extra.styles
  655. });
  656. var _ref2 = mask.found && main.found ? makeIconMasking(args) : makeIconStandard(args),
  657. children = _ref2.children,
  658. attributes = _ref2.attributes;
  659. args.children = children;
  660. args.attributes = attributes;
  661. if (symbol) {
  662. return asSymbol(args);
  663. } else {
  664. return asIcon(args);
  665. }
  666. }
  667. function makeLayersTextAbstract(params) {
  668. var content = params.content,
  669. width = params.width,
  670. height = params.height,
  671. transform = params.transform,
  672. title = params.title,
  673. extra = params.extra,
  674. _params$watchable2 = params.watchable,
  675. watchable = _params$watchable2 === void 0 ? false : _params$watchable2;
  676. var attributes = _objectSpread({}, extra.attributes, title ? {
  677. 'title': title
  678. } : {}, {
  679. 'class': extra.classes.join(' ')
  680. });
  681. if (watchable) {
  682. attributes[DATA_FA_I2SVG] = '';
  683. }
  684. var styles = _objectSpread({}, extra.styles);
  685. if (transformIsMeaningful(transform)) {
  686. styles['transform'] = transformForCss({
  687. transform: transform,
  688. startCentered: true,
  689. width: width,
  690. height: height
  691. });
  692. styles['-webkit-transform'] = styles['transform'];
  693. }
  694. var styleString = joinStyles(styles);
  695. if (styleString.length > 0) {
  696. attributes['style'] = styleString;
  697. }
  698. var val = [];
  699. val.push({
  700. tag: 'span',
  701. attributes: attributes,
  702. children: [content]
  703. });
  704. if (title) {
  705. val.push({
  706. tag: 'span',
  707. attributes: {
  708. class: 'sr-only'
  709. },
  710. children: [title]
  711. });
  712. }
  713. return val;
  714. }
  715. function makeLayersCounterAbstract(params) {
  716. var content = params.content,
  717. title = params.title,
  718. extra = params.extra;
  719. var attributes = _objectSpread({}, extra.attributes, title ? {
  720. 'title': title
  721. } : {}, {
  722. 'class': extra.classes.join(' ')
  723. });
  724. var styleString = joinStyles(extra.styles);
  725. if (styleString.length > 0) {
  726. attributes['style'] = styleString;
  727. }
  728. var val = [];
  729. val.push({
  730. tag: 'span',
  731. attributes: attributes,
  732. children: [content]
  733. });
  734. if (title) {
  735. val.push({
  736. tag: 'span',
  737. attributes: {
  738. class: 'sr-only'
  739. },
  740. children: [title]
  741. });
  742. }
  743. return val;
  744. }
  745. var noop$1 = function noop() {};
  746. var p = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {
  747. mark: noop$1,
  748. measure: noop$1
  749. };
  750. var preamble = "FA \"5.6.3\"";
  751. var begin = function begin(name) {
  752. p.mark("".concat(preamble, " ").concat(name, " begins"));
  753. return function () {
  754. return end(name);
  755. };
  756. };
  757. var end = function end(name) {
  758. p.mark("".concat(preamble, " ").concat(name, " ends"));
  759. p.measure("".concat(preamble, " ").concat(name), "".concat(preamble, " ").concat(name, " begins"), "".concat(preamble, " ").concat(name, " ends"));
  760. };
  761. var perf = {
  762. begin: begin,
  763. end: end
  764. };
  765. /**
  766. * Internal helper to bind a function known to have 4 arguments
  767. * to a given context.
  768. */
  769. var bindInternal4 = function bindInternal4(func, thisContext) {
  770. return function (a, b, c, d) {
  771. return func.call(thisContext, a, b, c, d);
  772. };
  773. };
  774. /**
  775. * # Reduce
  776. *
  777. * A fast object `.reduce()` implementation.
  778. *
  779. * @param {Object} subject The object to reduce over.
  780. * @param {Function} fn The reducer function.
  781. * @param {mixed} initialValue The initial value for the reducer, defaults to subject[0].
  782. * @param {Object} thisContext The context for the reducer.
  783. * @return {mixed} The final result.
  784. */
  785. var reduce = function fastReduceObject(subject, fn, initialValue, thisContext) {
  786. var keys = Object.keys(subject),
  787. length = keys.length,
  788. iterator = thisContext !== undefined ? bindInternal4(fn, thisContext) : fn,
  789. i,
  790. key,
  791. result;
  792. if (initialValue === undefined) {
  793. i = 1;
  794. result = subject[keys[0]];
  795. } else {
  796. i = 0;
  797. result = initialValue;
  798. }
  799. for (; i < length; i++) {
  800. key = keys[i];
  801. result = iterator(result, subject[key], key, subject);
  802. }
  803. return result;
  804. };
  805. var styles = namespace.styles,
  806. shims = namespace.shims;
  807. var _byUnicode = {};
  808. var _byLigature = {};
  809. var _byOldName = {};
  810. var build = function build() {
  811. var lookup = function lookup(reducer) {
  812. return reduce(styles, function (o, style, prefix) {
  813. o[prefix] = reduce(style, reducer, {});
  814. return o;
  815. }, {});
  816. };
  817. _byUnicode = lookup(function (acc, icon, iconName) {
  818. acc[icon[3]] = iconName;
  819. return acc;
  820. });
  821. _byLigature = lookup(function (acc, icon, iconName) {
  822. var ligatures = icon[2];
  823. acc[iconName] = iconName;
  824. ligatures.forEach(function (ligature) {
  825. acc[ligature] = iconName;
  826. });
  827. return acc;
  828. });
  829. var hasRegular = 'far' in styles;
  830. _byOldName = reduce(shims, function (acc, shim) {
  831. var oldName = shim[0];
  832. var prefix = shim[1];
  833. var iconName = shim[2];
  834. if (prefix === 'far' && !hasRegular) {
  835. prefix = 'fas';
  836. }
  837. acc[oldName] = {
  838. prefix: prefix,
  839. iconName: iconName
  840. };
  841. return acc;
  842. }, {});
  843. };
  844. build();
  845. function byUnicode(prefix, unicode) {
  846. return _byUnicode[prefix][unicode];
  847. }
  848. function byLigature(prefix, ligature) {
  849. return _byLigature[prefix][ligature];
  850. }
  851. function byOldName(name) {
  852. return _byOldName[name] || {
  853. prefix: null,
  854. iconName: null
  855. };
  856. }
  857. var styles$1 = namespace.styles;
  858. var emptyCanonicalIcon = function emptyCanonicalIcon() {
  859. return {
  860. prefix: null,
  861. iconName: null,
  862. rest: []
  863. };
  864. };
  865. function getCanonicalIcon(values) {
  866. return values.reduce(function (acc, cls) {
  867. var iconName = getIconName(config.familyPrefix, cls);
  868. if (styles$1[cls]) {
  869. acc.prefix = cls;
  870. } else if (iconName) {
  871. var shim = acc.prefix === 'fa' ? byOldName(iconName) : {};
  872. acc.iconName = shim.iconName || iconName;
  873. acc.prefix = shim.prefix || acc.prefix;
  874. } else if (cls !== config.replacementClass && cls.indexOf('fa-w-') !== 0) {
  875. acc.rest.push(cls);
  876. }
  877. return acc;
  878. }, emptyCanonicalIcon());
  879. }
  880. function iconFromMapping(mapping, prefix, iconName) {
  881. if (mapping && mapping[prefix] && mapping[prefix][iconName]) {
  882. return {
  883. prefix: prefix,
  884. iconName: iconName,
  885. icon: mapping[prefix][iconName]
  886. };
  887. }
  888. }
  889. function toHtml(abstractNodes) {
  890. var tag = abstractNodes.tag,
  891. _abstractNodes$attrib = abstractNodes.attributes,
  892. attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib,
  893. _abstractNodes$childr = abstractNodes.children,
  894. children = _abstractNodes$childr === void 0 ? [] : _abstractNodes$childr;
  895. if (typeof abstractNodes === 'string') {
  896. return htmlEscape(abstractNodes);
  897. } else {
  898. return "<".concat(tag, " ").concat(joinAttributes(attributes), ">").concat(children.map(toHtml).join(''), "</").concat(tag, ">");
  899. }
  900. }
  901. var noop$2 = function noop() {};
  902. function isWatched(node) {
  903. var i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;
  904. return typeof i2svg === 'string';
  905. }
  906. function getMutator() {
  907. if (config.autoReplaceSvg === true) {
  908. return mutators.replace;
  909. }
  910. var mutator = mutators[config.autoReplaceSvg];
  911. return mutator || mutators.replace;
  912. }
  913. var mutators = {
  914. replace: function replace(mutation) {
  915. var node = mutation[0];
  916. var abstract = mutation[1];
  917. var newOuterHTML = abstract.map(function (a) {
  918. return toHtml(a);
  919. }).join('\n');
  920. if (node.parentNode && node.outerHTML) {
  921. node.outerHTML = newOuterHTML + (config.keepOriginalSource && node.tagName.toLowerCase() !== 'svg' ? "<!-- ".concat(node.outerHTML, " -->") : '');
  922. } else if (node.parentNode) {
  923. var newNode = document.createElement('span');
  924. node.parentNode.replaceChild(newNode, node);
  925. newNode.outerHTML = newOuterHTML;
  926. }
  927. },
  928. nest: function nest(mutation) {
  929. var node = mutation[0];
  930. var abstract = mutation[1]; // If we already have a replaced node we do not want to continue nesting within it.
  931. // Short-circuit to the standard replacement
  932. if (~classArray(node).indexOf(config.replacementClass)) {
  933. return mutators.replace(mutation);
  934. }
  935. var forSvg = new RegExp("".concat(config.familyPrefix, "-.*"));
  936. delete abstract[0].attributes.style;
  937. var splitClasses = abstract[0].attributes.class.split(' ').reduce(function (acc, cls) {
  938. if (cls === config.replacementClass || cls.match(forSvg)) {
  939. acc.toSvg.push(cls);
  940. } else {
  941. acc.toNode.push(cls);
  942. }
  943. return acc;
  944. }, {
  945. toNode: [],
  946. toSvg: []
  947. });
  948. abstract[0].attributes.class = splitClasses.toSvg.join(' ');
  949. var newInnerHTML = abstract.map(function (a) {
  950. return toHtml(a);
  951. }).join('\n');
  952. node.setAttribute('class', splitClasses.toNode.join(' '));
  953. node.setAttribute(DATA_FA_I2SVG, '');
  954. node.innerHTML = newInnerHTML;
  955. }
  956. };
  957. function perform(mutations, callback) {
  958. var callbackFunction = typeof callback === 'function' ? callback : noop$2;
  959. if (mutations.length === 0) {
  960. callbackFunction();
  961. } else {
  962. var frame = WINDOW.requestAnimationFrame || function (op) {
  963. return op();
  964. };
  965. frame(function () {
  966. var mutator = getMutator();
  967. var mark = perf.begin('mutate');
  968. mutations.map(mutator);
  969. mark();
  970. callbackFunction();
  971. });
  972. }
  973. }
  974. var disabled = false;
  975. function disableObservation(operation) {
  976. disabled = true;
  977. operation();
  978. disabled = false;
  979. }
  980. var mo = null;
  981. function observe(options) {
  982. if (!MUTATION_OBSERVER) {
  983. return;
  984. }
  985. if (!config.observeMutations) {
  986. return;
  987. }
  988. var treeCallback = options.treeCallback,
  989. nodeCallback = options.nodeCallback,
  990. pseudoElementsCallback = options.pseudoElementsCallback,
  991. _options$observeMutat = options.observeMutationsRoot,
  992. observeMutationsRoot = _options$observeMutat === void 0 ? DOCUMENT.body : _options$observeMutat;
  993. mo = new MUTATION_OBSERVER(function (objects) {
  994. if (disabled) return;
  995. toArray(objects).forEach(function (mutationRecord) {
  996. if (mutationRecord.type === 'childList' && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {
  997. if (config.searchPseudoElements) {
  998. pseudoElementsCallback(mutationRecord.target);
  999. }
  1000. treeCallback(mutationRecord.target);
  1001. }
  1002. if (mutationRecord.type === 'attributes' && mutationRecord.target.parentNode && config.searchPseudoElements) {
  1003. pseudoElementsCallback(mutationRecord.target.parentNode);
  1004. }
  1005. if (mutationRecord.type === 'attributes' && isWatched(mutationRecord.target) && ~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)) {
  1006. if (mutationRecord.attributeName === 'class') {
  1007. var _getCanonicalIcon = getCanonicalIcon(classArray(mutationRecord.target)),
  1008. prefix = _getCanonicalIcon.prefix,
  1009. iconName = _getCanonicalIcon.iconName;
  1010. if (prefix) mutationRecord.target.setAttribute('data-prefix', prefix);
  1011. if (iconName) mutationRecord.target.setAttribute('data-icon', iconName);
  1012. } else {
  1013. nodeCallback(mutationRecord.target);
  1014. }
  1015. }
  1016. });
  1017. });
  1018. if (!IS_DOM) return;
  1019. mo.observe(observeMutationsRoot, {
  1020. childList: true,
  1021. attributes: true,
  1022. characterData: true,
  1023. subtree: true
  1024. });
  1025. }
  1026. function disconnect() {
  1027. if (!mo) return;
  1028. mo.disconnect();
  1029. }
  1030. function styleParser (node) {
  1031. var style = node.getAttribute('style');
  1032. var val = [];
  1033. if (style) {
  1034. val = style.split(';').reduce(function (acc, style) {
  1035. var styles = style.split(':');
  1036. var prop = styles[0];
  1037. var value = styles.slice(1);
  1038. if (prop && value.length > 0) {
  1039. acc[prop] = value.join(':').trim();
  1040. }
  1041. return acc;
  1042. }, {});
  1043. }
  1044. return val;
  1045. }
  1046. function toHex(unicode) {
  1047. var result = '';
  1048. for (var i = 0; i < unicode.length; i++) {
  1049. var hex = unicode.charCodeAt(i).toString(16);
  1050. result += ('000' + hex).slice(-4);
  1051. }
  1052. return result;
  1053. }
  1054. function classParser (node) {
  1055. var existingPrefix = node.getAttribute('data-prefix');
  1056. var existingIconName = node.getAttribute('data-icon');
  1057. var innerText = node.innerText !== undefined ? node.innerText.trim() : '';
  1058. var val = getCanonicalIcon(classArray(node));
  1059. if (existingPrefix && existingIconName) {
  1060. val.prefix = existingPrefix;
  1061. val.iconName = existingIconName;
  1062. }
  1063. if (val.prefix && innerText.length > 1) {
  1064. val.iconName = byLigature(val.prefix, node.innerText);
  1065. } else if (val.prefix && innerText.length === 1) {
  1066. val.iconName = byUnicode(val.prefix, toHex(node.innerText));
  1067. }
  1068. return val;
  1069. }
  1070. var parseTransformString = function parseTransformString(transformString) {
  1071. var transform = {
  1072. size: 16,
  1073. x: 0,
  1074. y: 0,
  1075. flipX: false,
  1076. flipY: false,
  1077. rotate: 0
  1078. };
  1079. if (!transformString) {
  1080. return transform;
  1081. } else {
  1082. return transformString.toLowerCase().split(' ').reduce(function (acc, n) {
  1083. var parts = n.toLowerCase().split('-');
  1084. var first = parts[0];
  1085. var rest = parts.slice(1).join('-');
  1086. if (first && rest === 'h') {
  1087. acc.flipX = true;
  1088. return acc;
  1089. }
  1090. if (first && rest === 'v') {
  1091. acc.flipY = true;
  1092. return acc;
  1093. }
  1094. rest = parseFloat(rest);
  1095. if (isNaN(rest)) {
  1096. return acc;
  1097. }
  1098. switch (first) {
  1099. case 'grow':
  1100. acc.size = acc.size + rest;
  1101. break;
  1102. case 'shrink':
  1103. acc.size = acc.size - rest;
  1104. break;
  1105. case 'left':
  1106. acc.x = acc.x - rest;
  1107. break;
  1108. case 'right':
  1109. acc.x = acc.x + rest;
  1110. break;
  1111. case 'up':
  1112. acc.y = acc.y - rest;
  1113. break;
  1114. case 'down':
  1115. acc.y = acc.y + rest;
  1116. break;
  1117. case 'rotate':
  1118. acc.rotate = acc.rotate + rest;
  1119. break;
  1120. }
  1121. return acc;
  1122. }, transform);
  1123. }
  1124. };
  1125. function transformParser (node) {
  1126. return parseTransformString(node.getAttribute('data-fa-transform'));
  1127. }
  1128. function symbolParser (node) {
  1129. var symbol = node.getAttribute('data-fa-symbol');
  1130. return symbol === null ? false : symbol === '' ? true : symbol;
  1131. }
  1132. function attributesParser (node) {
  1133. var extraAttributes = toArray(node.attributes).reduce(function (acc, attr) {
  1134. if (acc.name !== 'class' && acc.name !== 'style') {
  1135. acc[attr.name] = attr.value;
  1136. }
  1137. return acc;
  1138. }, {});
  1139. var title = node.getAttribute('title');
  1140. if (config.autoA11y) {
  1141. if (title) {
  1142. extraAttributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(nextUniqueId());
  1143. } else {
  1144. extraAttributes['aria-hidden'] = 'true';
  1145. }
  1146. }
  1147. return extraAttributes;
  1148. }
  1149. function maskParser (node) {
  1150. var mask = node.getAttribute('data-fa-mask');
  1151. if (!mask) {
  1152. return emptyCanonicalIcon();
  1153. } else {
  1154. return getCanonicalIcon(mask.split(' ').map(function (i) {
  1155. return i.trim();
  1156. }));
  1157. }
  1158. }
  1159. var blankMeta = {
  1160. iconName: null,
  1161. title: null,
  1162. prefix: null,
  1163. transform: meaninglessTransform,
  1164. symbol: false,
  1165. mask: null,
  1166. extra: {
  1167. classes: [],
  1168. styles: {},
  1169. attributes: {}
  1170. }
  1171. };
  1172. function parseMeta(node) {
  1173. var _classParser = classParser(node),
  1174. iconName = _classParser.iconName,
  1175. prefix = _classParser.prefix,
  1176. extraClasses = _classParser.rest;
  1177. var extraStyles = styleParser(node);
  1178. var transform = transformParser(node);
  1179. var symbol = symbolParser(node);
  1180. var extraAttributes = attributesParser(node);
  1181. var mask = maskParser(node);
  1182. return {
  1183. iconName: iconName,
  1184. title: node.getAttribute('title'),
  1185. prefix: prefix,
  1186. transform: transform,
  1187. symbol: symbol,
  1188. mask: mask,
  1189. extra: {
  1190. classes: extraClasses,
  1191. styles: extraStyles,
  1192. attributes: extraAttributes
  1193. }
  1194. };
  1195. }
  1196. function MissingIcon(error) {
  1197. this.name = 'MissingIcon';
  1198. this.message = error || 'Icon unavailable';
  1199. this.stack = new Error().stack;
  1200. }
  1201. MissingIcon.prototype = Object.create(Error.prototype);
  1202. MissingIcon.prototype.constructor = MissingIcon;
  1203. var FILL = {
  1204. fill: 'currentColor'
  1205. };
  1206. var ANIMATION_BASE = {
  1207. attributeType: 'XML',
  1208. repeatCount: 'indefinite',
  1209. dur: '2s'
  1210. };
  1211. var RING = {
  1212. tag: 'path',
  1213. attributes: _objectSpread({}, FILL, {
  1214. d: 'M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z'
  1215. })
  1216. };
  1217. var OPACITY_ANIMATE = _objectSpread({}, ANIMATION_BASE, {
  1218. attributeName: 'opacity'
  1219. });
  1220. var DOT = {
  1221. tag: 'circle',
  1222. attributes: _objectSpread({}, FILL, {
  1223. cx: '256',
  1224. cy: '364',
  1225. r: '28'
  1226. }),
  1227. children: [{
  1228. tag: 'animate',
  1229. attributes: _objectSpread({}, ANIMATION_BASE, {
  1230. attributeName: 'r',
  1231. values: '28;14;28;28;14;28;'
  1232. })
  1233. }, {
  1234. tag: 'animate',
  1235. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1236. values: '1;0;1;1;0;1;'
  1237. })
  1238. }]
  1239. };
  1240. var QUESTION = {
  1241. tag: 'path',
  1242. attributes: _objectSpread({}, FILL, {
  1243. opacity: '1',
  1244. d: 'M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z'
  1245. }),
  1246. children: [{
  1247. tag: 'animate',
  1248. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1249. values: '1;0;0;0;0;1;'
  1250. })
  1251. }]
  1252. };
  1253. var EXCLAMATION = {
  1254. tag: 'path',
  1255. attributes: _objectSpread({}, FILL, {
  1256. opacity: '0',
  1257. d: 'M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z'
  1258. }),
  1259. children: [{
  1260. tag: 'animate',
  1261. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1262. values: '0;0;1;1;0;0;'
  1263. })
  1264. }]
  1265. };
  1266. var missing = {
  1267. tag: 'g',
  1268. children: [RING, DOT, QUESTION, EXCLAMATION]
  1269. };
  1270. var styles$2 = namespace.styles;
  1271. var LAYERS_TEXT_CLASSNAME = 'fa-layers-text';
  1272. var FONT_FAMILY_PATTERN = /Font Awesome 5 (Solid|Regular|Light|Brands|Free|Pro)/;
  1273. var STYLE_TO_PREFIX = {
  1274. 'Solid': 'fas',
  1275. 'Regular': 'far',
  1276. 'Light': 'fal',
  1277. 'Brands': 'fab'
  1278. };
  1279. var FONT_WEIGHT_TO_PREFIX = {
  1280. '900': 'fas',
  1281. '400': 'far',
  1282. '300': 'fal'
  1283. };
  1284. function findIcon(iconName, prefix) {
  1285. var val = {
  1286. found: false,
  1287. width: 512,
  1288. height: 512,
  1289. icon: missing
  1290. };
  1291. if (iconName && prefix && styles$2[prefix] && styles$2[prefix][iconName]) {
  1292. var icon = styles$2[prefix][iconName];
  1293. var width = icon[0];
  1294. var height = icon[1];
  1295. var vectorData = icon.slice(4);
  1296. val = {
  1297. found: true,
  1298. width: width,
  1299. height: height,
  1300. icon: {
  1301. tag: 'path',
  1302. attributes: {
  1303. fill: 'currentColor',
  1304. d: vectorData[0]
  1305. }
  1306. }
  1307. };
  1308. } else if (iconName && prefix && !config.showMissingIcons) {
  1309. throw new MissingIcon("Icon is missing for prefix ".concat(prefix, " with icon name ").concat(iconName));
  1310. }
  1311. return val;
  1312. }
  1313. function generateSvgReplacementMutation(node, nodeMeta) {
  1314. var iconName = nodeMeta.iconName,
  1315. title = nodeMeta.title,
  1316. prefix = nodeMeta.prefix,
  1317. transform = nodeMeta.transform,
  1318. symbol = nodeMeta.symbol,
  1319. mask = nodeMeta.mask,
  1320. extra = nodeMeta.extra;
  1321. return [node, makeInlineSvgAbstract({
  1322. icons: {
  1323. main: findIcon(iconName, prefix),
  1324. mask: findIcon(mask.iconName, mask.prefix)
  1325. },
  1326. prefix: prefix,
  1327. iconName: iconName,
  1328. transform: transform,
  1329. symbol: symbol,
  1330. mask: mask,
  1331. title: title,
  1332. extra: extra,
  1333. watchable: true
  1334. })];
  1335. }
  1336. function generateLayersText(node, nodeMeta) {
  1337. var title = nodeMeta.title,
  1338. transform = nodeMeta.transform,
  1339. extra = nodeMeta.extra;
  1340. var width = null;
  1341. var height = null;
  1342. if (IS_IE) {
  1343. var computedFontSize = parseInt(getComputedStyle(node).fontSize, 10);
  1344. var boundingClientRect = node.getBoundingClientRect();
  1345. width = boundingClientRect.width / computedFontSize;
  1346. height = boundingClientRect.height / computedFontSize;
  1347. }
  1348. if (config.autoA11y && !title) {
  1349. extra.attributes['aria-hidden'] = 'true';
  1350. }
  1351. return [node, makeLayersTextAbstract({
  1352. content: node.innerHTML,
  1353. width: width,
  1354. height: height,
  1355. transform: transform,
  1356. title: title,
  1357. extra: extra,
  1358. watchable: true
  1359. })];
  1360. }
  1361. function generateMutation(node) {
  1362. var nodeMeta = parseMeta(node);
  1363. if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) {
  1364. return generateLayersText(node, nodeMeta);
  1365. } else {
  1366. return generateSvgReplacementMutation(node, nodeMeta);
  1367. }
  1368. }
  1369. function searchPseudoElements(root) {
  1370. if (!IS_DOM) return;
  1371. var end = perf.begin('searchPseudoElements');
  1372. disableObservation(function () {
  1373. toArray(root.querySelectorAll('*')).filter(function (n) {
  1374. return n.parentNode !== document.head && !~TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS.indexOf(n.tagName.toUpperCase()) && !n.getAttribute(DATA_FA_PSEUDO_ELEMENT) && (!n.parentNode || n.parentNode.tagName !== 'svg');
  1375. }).forEach(function (node) {
  1376. [':before', ':after'].forEach(function (pos) {
  1377. var children = toArray(node.children);
  1378. var alreadyProcessedPseudoElement = children.filter(function (c) {
  1379. return c.getAttribute(DATA_FA_PSEUDO_ELEMENT) === pos;
  1380. })[0];
  1381. var styles = WINDOW.getComputedStyle(node, pos);
  1382. var fontFamily = styles.getPropertyValue('font-family').match(FONT_FAMILY_PATTERN);
  1383. var fontWeight = styles.getPropertyValue('font-weight');
  1384. if (alreadyProcessedPseudoElement && !fontFamily) {
  1385. // If we've already processed it but the current computed style does not result in a font-family,
  1386. // that probably means that a class name that was previously present to make the icon has been
  1387. // removed. So we now should delete the icon.
  1388. node.removeChild(alreadyProcessedPseudoElement);
  1389. } else if (fontFamily) {
  1390. var content = styles.getPropertyValue('content');
  1391. var prefix = ~['Light', 'Regular', 'Solid', 'Brands'].indexOf(fontFamily[1]) ? STYLE_TO_PREFIX[fontFamily[1]] : FONT_WEIGHT_TO_PREFIX[fontWeight];
  1392. var iconName = byUnicode(prefix, toHex(content.length === 3 ? content.substr(1, 1) : content)); // Only convert the pseudo element in this :before/:after position into an icon if we haven't
  1393. // already done so with the same prefix and iconName
  1394. if (!alreadyProcessedPseudoElement || alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX) !== prefix || alreadyProcessedPseudoElement.getAttribute(DATA_ICON) !== iconName) {
  1395. if (alreadyProcessedPseudoElement) {
  1396. // Delete the old one, since we're replacing it with a new one
  1397. node.removeChild(alreadyProcessedPseudoElement);
  1398. }
  1399. var extra = blankMeta.extra;
  1400. extra.attributes[DATA_FA_PSEUDO_ELEMENT] = pos;
  1401. var abstract = makeInlineSvgAbstract(_objectSpread({}, blankMeta, {
  1402. icons: {
  1403. main: findIcon(iconName, prefix),
  1404. mask: emptyCanonicalIcon()
  1405. },
  1406. prefix: prefix,
  1407. iconName: iconName,
  1408. extra: extra,
  1409. watchable: true
  1410. }));
  1411. var element = DOCUMENT.createElement('svg');
  1412. if (pos === ':before') {
  1413. node.insertBefore(element, node.firstChild);
  1414. } else {
  1415. node.appendChild(element);
  1416. }
  1417. element.outerHTML = abstract.map(function (a) {
  1418. return toHtml(a);
  1419. }).join('\n');
  1420. }
  1421. }
  1422. });
  1423. });
  1424. });
  1425. end();
  1426. }
  1427. function onTree(root) {
  1428. var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  1429. if (!IS_DOM) return;
  1430. var htmlClassList = DOCUMENT.documentElement.classList;
  1431. var hclAdd = function hclAdd(suffix) {
  1432. return htmlClassList.add("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
  1433. };
  1434. var hclRemove = function hclRemove(suffix) {
  1435. return htmlClassList.remove("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
  1436. };
  1437. var prefixes = Object.keys(styles$2);
  1438. var prefixesDomQuery = [".".concat(LAYERS_TEXT_CLASSNAME, ":not([").concat(DATA_FA_I2SVG, "])")].concat(prefixes.map(function (p) {
  1439. return ".".concat(p, ":not([").concat(DATA_FA_I2SVG, "])");
  1440. })).join(', ');
  1441. if (prefixesDomQuery.length === 0) {
  1442. return;
  1443. }
  1444. var candidates = toArray(root.querySelectorAll(prefixesDomQuery));
  1445. if (candidates.length > 0) {
  1446. hclAdd('pending');
  1447. hclRemove('complete');
  1448. } else {
  1449. return;
  1450. }
  1451. var mark = perf.begin('onTree');
  1452. var mutations = candidates.reduce(function (acc, node) {
  1453. try {
  1454. var mutation = generateMutation(node);
  1455. if (mutation) {
  1456. acc.push(mutation);
  1457. }
  1458. } catch (e) {
  1459. if (!PRODUCTION) {
  1460. if (e instanceof MissingIcon) {
  1461. console.error(e);
  1462. }
  1463. }
  1464. }
  1465. return acc;
  1466. }, []);
  1467. mark();
  1468. perform(mutations, function () {
  1469. hclAdd('active');
  1470. hclAdd('complete');
  1471. hclRemove('pending');
  1472. if (typeof callback === 'function') callback();
  1473. });
  1474. }
  1475. function onNode(node) {
  1476. var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  1477. var mutation = generateMutation(node);
  1478. if (mutation) {
  1479. perform([mutation], callback);
  1480. }
  1481. }
  1482. var baseStyles = "svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}";
  1483. function css () {
  1484. var dfp = DEFAULT_FAMILY_PREFIX;
  1485. var drc = DEFAULT_REPLACEMENT_CLASS;
  1486. var fp = config.familyPrefix;
  1487. var rc = config.replacementClass;
  1488. var s = baseStyles;
  1489. if (fp !== dfp || rc !== drc) {
  1490. var dPatt = new RegExp("\\.".concat(dfp, "\\-"), 'g');
  1491. var rPatt = new RegExp("\\.".concat(drc), 'g');
  1492. s = s.replace(dPatt, ".".concat(fp, "-")).replace(rPatt, ".".concat(rc));
  1493. }
  1494. return s;
  1495. }
  1496. function define(prefix, icons) {
  1497. var normalized = Object.keys(icons).reduce(function (acc, iconName) {
  1498. var icon = icons[iconName];
  1499. var expanded = !!icon.icon;
  1500. if (expanded) {
  1501. acc[icon.iconName] = icon.icon;
  1502. } else {
  1503. acc[iconName] = icon;
  1504. }
  1505. return acc;
  1506. }, {});
  1507. if (typeof namespace.hooks.addPack === 'function') {
  1508. namespace.hooks.addPack(prefix, normalized);
  1509. } else {
  1510. namespace.styles[prefix] = _objectSpread({}, namespace.styles[prefix] || {}, normalized);
  1511. }
  1512. /**
  1513. * Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
  1514. * of new styles we needed to differentiate between them. Prefix `fa` is now an alias
  1515. * for `fas` so we'll easy the upgrade process for our users by automatically defining
  1516. * this as well.
  1517. */
  1518. if (prefix === 'fas') {
  1519. define('fa', icons);
  1520. }
  1521. }
  1522. var Library =
  1523. /*#__PURE__*/
  1524. function () {
  1525. function Library() {
  1526. _classCallCheck(this, Library);
  1527. this.definitions = {};
  1528. }
  1529. _createClass(Library, [{
  1530. key: "add",
  1531. value: function add() {
  1532. var _this = this;
  1533. for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {
  1534. definitions[_key] = arguments[_key];
  1535. }
  1536. var additions = definitions.reduce(this._pullDefinitions, {});
  1537. Object.keys(additions).forEach(function (key) {
  1538. _this.definitions[key] = _objectSpread({}, _this.definitions[key] || {}, additions[key]);
  1539. define(key, additions[key]);
  1540. build();
  1541. });
  1542. }
  1543. }, {
  1544. key: "reset",
  1545. value: function reset() {
  1546. this.definitions = {};
  1547. }
  1548. }, {
  1549. key: "_pullDefinitions",
  1550. value: function _pullDefinitions(additions, definition) {
  1551. var normalized = definition.prefix && definition.iconName && definition.icon ? {
  1552. 0: definition
  1553. } : definition;
  1554. Object.keys(normalized).map(function (key) {
  1555. var _normalized$key = normalized[key],
  1556. prefix = _normalized$key.prefix,
  1557. iconName = _normalized$key.iconName,
  1558. icon = _normalized$key.icon;
  1559. if (!additions[prefix]) additions[prefix] = {};
  1560. additions[prefix][iconName] = icon;
  1561. });
  1562. return additions;
  1563. }
  1564. }]);
  1565. return Library;
  1566. }();
  1567. function prepIcon(icon) {
  1568. var width = icon[0];
  1569. var height = icon[1];
  1570. var vectorData = icon.slice(4);
  1571. return {
  1572. found: true,
  1573. width: width,
  1574. height: height,
  1575. icon: {
  1576. tag: 'path',
  1577. attributes: {
  1578. fill: 'currentColor',
  1579. d: vectorData[0]
  1580. }
  1581. }
  1582. };
  1583. }
  1584. function ensureCss() {
  1585. if (config.autoAddCss && !_cssInserted) {
  1586. insertCss(css());
  1587. _cssInserted = true;
  1588. }
  1589. }
  1590. function apiObject(val, abstractCreator) {
  1591. Object.defineProperty(val, 'abstract', {
  1592. get: abstractCreator
  1593. });
  1594. Object.defineProperty(val, 'html', {
  1595. get: function get() {
  1596. return val.abstract.map(function (a) {
  1597. return toHtml(a);
  1598. });
  1599. }
  1600. });
  1601. Object.defineProperty(val, 'node', {
  1602. get: function get() {
  1603. if (!IS_DOM) return;
  1604. var container = DOCUMENT.createElement('div');
  1605. container.innerHTML = val.html;
  1606. return container.children;
  1607. }
  1608. });
  1609. return val;
  1610. }
  1611. function findIconDefinition(params) {
  1612. var _params$prefix = params.prefix,
  1613. prefix = _params$prefix === void 0 ? 'fa' : _params$prefix,
  1614. iconName = params.iconName;
  1615. if (!iconName) return;
  1616. return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);
  1617. }
  1618. function resolveIcons(next) {
  1619. return function (maybeIconDefinition) {
  1620. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  1621. var iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});
  1622. var mask = params.mask;
  1623. if (mask) {
  1624. mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});
  1625. }
  1626. return next(iconDefinition, _objectSpread({}, params, {
  1627. mask: mask
  1628. }));
  1629. };
  1630. }
  1631. var library = new Library();
  1632. var noAuto = function noAuto() {
  1633. config.autoReplaceSvg = false;
  1634. config.observeMutations = false;
  1635. disconnect();
  1636. };
  1637. var _cssInserted = false;
  1638. var dom = {
  1639. i2svg: function i2svg() {
  1640. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1641. if (IS_DOM) {
  1642. ensureCss();
  1643. var _params$node = params.node,
  1644. node = _params$node === void 0 ? DOCUMENT : _params$node,
  1645. _params$callback = params.callback,
  1646. callback = _params$callback === void 0 ? function () {} : _params$callback;
  1647. if (config.searchPseudoElements) {
  1648. searchPseudoElements(node);
  1649. }
  1650. onTree(node, callback);
  1651. }
  1652. },
  1653. css: css,
  1654. insertCss: function insertCss$$1() {
  1655. if (!_cssInserted) {
  1656. insertCss(css());
  1657. _cssInserted = true;
  1658. }
  1659. },
  1660. watch: function watch() {
  1661. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1662. var autoReplaceSvgRoot = params.autoReplaceSvgRoot,
  1663. observeMutationsRoot = params.observeMutationsRoot;
  1664. if (config.autoReplaceSvg === false) {
  1665. config.autoReplaceSvg = true;
  1666. }
  1667. config.observeMutations = true;
  1668. domready(function () {
  1669. autoReplace({
  1670. autoReplaceSvgRoot: autoReplaceSvgRoot
  1671. });
  1672. observe({
  1673. treeCallback: onTree,
  1674. nodeCallback: onNode,
  1675. pseudoElementsCallback: searchPseudoElements,
  1676. observeMutationsRoot: observeMutationsRoot
  1677. });
  1678. });
  1679. }
  1680. };
  1681. var parse = {
  1682. transform: function transform(transformString) {
  1683. return parseTransformString(transformString);
  1684. }
  1685. };
  1686. var icon = resolveIcons(function (iconDefinition) {
  1687. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  1688. var _params$transform = params.transform,
  1689. transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,
  1690. _params$symbol = params.symbol,
  1691. symbol = _params$symbol === void 0 ? false : _params$symbol,
  1692. _params$mask = params.mask,
  1693. mask = _params$mask === void 0 ? null : _params$mask,
  1694. _params$title = params.title,
  1695. title = _params$title === void 0 ? null : _params$title,
  1696. _params$classes = params.classes,
  1697. classes = _params$classes === void 0 ? [] : _params$classes,
  1698. _params$attributes = params.attributes,
  1699. attributes = _params$attributes === void 0 ? {} : _params$attributes,
  1700. _params$styles = params.styles,
  1701. styles = _params$styles === void 0 ? {} : _params$styles;
  1702. if (!iconDefinition) return;
  1703. var prefix = iconDefinition.prefix,
  1704. iconName = iconDefinition.iconName,
  1705. icon = iconDefinition.icon;
  1706. return apiObject(_objectSpread({
  1707. type: 'icon'
  1708. }, iconDefinition), function () {
  1709. ensureCss();
  1710. if (config.autoA11y) {
  1711. if (title) {
  1712. attributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(nextUniqueId());
  1713. } else {
  1714. attributes['aria-hidden'] = 'true';
  1715. }
  1716. }
  1717. return makeInlineSvgAbstract({
  1718. icons: {
  1719. main: prepIcon(icon),
  1720. mask: mask ? prepIcon(mask.icon) : {
  1721. found: false,
  1722. width: null,
  1723. height: null,
  1724. icon: {}
  1725. }
  1726. },
  1727. prefix: prefix,
  1728. iconName: iconName,
  1729. transform: _objectSpread({}, meaninglessTransform, transform),
  1730. symbol: symbol,
  1731. title: title,
  1732. extra: {
  1733. attributes: attributes,
  1734. styles: styles,
  1735. classes: classes
  1736. }
  1737. });
  1738. });
  1739. });
  1740. var text = function text(content) {
  1741. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  1742. var _params$transform2 = params.transform,
  1743. transform = _params$transform2 === void 0 ? meaninglessTransform : _params$transform2,
  1744. _params$title2 = params.title,
  1745. title = _params$title2 === void 0 ? null : _params$title2,
  1746. _params$classes2 = params.classes,
  1747. classes = _params$classes2 === void 0 ? [] : _params$classes2,
  1748. _params$attributes2 = params.attributes,
  1749. attributes = _params$attributes2 === void 0 ? {} : _params$attributes2,
  1750. _params$styles2 = params.styles,
  1751. styles = _params$styles2 === void 0 ? {} : _params$styles2;
  1752. return apiObject({
  1753. type: 'text',
  1754. content: content
  1755. }, function () {
  1756. ensureCss();
  1757. return makeLayersTextAbstract({
  1758. content: content,
  1759. transform: _objectSpread({}, meaninglessTransform, transform),
  1760. title: title,
  1761. extra: {
  1762. attributes: attributes,
  1763. styles: styles,
  1764. classes: ["".concat(config.familyPrefix, "-layers-text")].concat(_toConsumableArray(classes))
  1765. }
  1766. });
  1767. });
  1768. };
  1769. var counter = function counter(content) {
  1770. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  1771. var _params$title3 = params.title,
  1772. title = _params$title3 === void 0 ? null : _params$title3,
  1773. _params$classes3 = params.classes,
  1774. classes = _params$classes3 === void 0 ? [] : _params$classes3,
  1775. _params$attributes3 = params.attributes,
  1776. attributes = _params$attributes3 === void 0 ? {} : _params$attributes3,
  1777. _params$styles3 = params.styles,
  1778. styles = _params$styles3 === void 0 ? {} : _params$styles3;
  1779. return apiObject({
  1780. type: 'counter',
  1781. content: content
  1782. }, function () {
  1783. ensureCss();
  1784. return makeLayersCounterAbstract({
  1785. content: content.toString(),
  1786. title: title,
  1787. extra: {
  1788. attributes: attributes,
  1789. styles: styles,
  1790. classes: ["".concat(config.familyPrefix, "-layers-counter")].concat(_toConsumableArray(classes))
  1791. }
  1792. });
  1793. });
  1794. };
  1795. var layer = function layer(assembler) {
  1796. return apiObject({
  1797. type: 'layer'
  1798. }, function () {
  1799. ensureCss();
  1800. var children = [];
  1801. assembler(function (args) {
  1802. Array.isArray(args) ? args.map(function (a) {
  1803. children = children.concat(a.abstract);
  1804. }) : children = children.concat(args.abstract);
  1805. });
  1806. return [{
  1807. tag: 'span',
  1808. attributes: {
  1809. class: "".concat(config.familyPrefix, "-layers")
  1810. },
  1811. children: children
  1812. }];
  1813. });
  1814. };
  1815. var api = {
  1816. noAuto: noAuto,
  1817. config: config,
  1818. dom: dom,
  1819. library: library,
  1820. parse: parse,
  1821. findIconDefinition: findIconDefinition,
  1822. icon: icon,
  1823. text: text,
  1824. counter: counter,
  1825. layer: layer,
  1826. toHtml: toHtml
  1827. };
  1828. var autoReplace = function autoReplace() {
  1829. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1830. var _params$autoReplaceSv = params.autoReplaceSvgRoot,
  1831. autoReplaceSvgRoot = _params$autoReplaceSv === void 0 ? DOCUMENT : _params$autoReplaceSv;
  1832. if (Object.keys(namespace.styles).length > 0 && IS_DOM && config.autoReplaceSvg) api.dom.i2svg({
  1833. node: autoReplaceSvgRoot
  1834. });
  1835. };
  1836. /***/ }),
  1837. /***/ "../../node_modules/@fortawesome/free-regular-svg-icons/index.es.js":
  1838. /*!**********************************************************************************************!*\
  1839. !*** C:/Dev/Babylon/Babylon.js/node_modules/@fortawesome/free-regular-svg-icons/index.es.js ***!
  1840. \**********************************************************************************************/
  1841. /*! exports provided: far, prefix, faAddressBook, faAddressCard, faAngry, faArrowAltCircleDown, faArrowAltCircleLeft, faArrowAltCircleRight, faArrowAltCircleUp, faBell, faBellSlash, faBookmark, faBuilding, faCalendar, faCalendarAlt, faCalendarCheck, faCalendarMinus, faCalendarPlus, faCalendarTimes, faCaretSquareDown, faCaretSquareLeft, faCaretSquareRight, faCaretSquareUp, faChartBar, faCheckCircle, faCheckSquare, faCircle, faClipboard, faClock, faClone, faClosedCaptioning, faComment, faCommentAlt, faCommentDots, faComments, faCompass, faCopy, faCopyright, faCreditCard, faDizzy, faDotCircle, faEdit, faEnvelope, faEnvelopeOpen, faEye, faEyeSlash, faFile, faFileAlt, faFileArchive, faFileAudio, faFileCode, faFileExcel, faFileImage, faFilePdf, faFilePowerpoint, faFileVideo, faFileWord, faFlag, faFlushed, faFolder, faFolderOpen, faFontAwesomeLogoFull, faFrown, faFrownOpen, faFutbol, faGem, faGrimace, faGrin, faGrinAlt, faGrinBeam, faGrinBeamSweat, faGrinHearts, faGrinSquint, faGrinSquintTears, faGrinStars, faGrinTears, faGrinTongue, faGrinTongueSquint, faGrinTongueWink, faGrinWink, faHandLizard, faHandPaper, faHandPeace, faHandPointDown, faHandPointLeft, faHandPointRight, faHandPointUp, faHandPointer, faHandRock, faHandScissors, faHandSpock, faHandshake, faHdd, faHeart, faHospital, faHourglass, faIdBadge, faIdCard, faImage, faImages, faKeyboard, faKiss, faKissBeam, faKissWinkHeart, faLaugh, faLaughBeam, faLaughSquint, faLaughWink, faLemon, faLifeRing, faLightbulb, faListAlt, faMap, faMeh, faMehBlank, faMehRollingEyes, faMinusSquare, faMoneyBillAlt, faMoon, faNewspaper, faObjectGroup, faObjectUngroup, faPaperPlane, faPauseCircle, faPlayCircle, faPlusSquare, faQuestionCircle, faRegistered, faSadCry, faSadTear, faSave, faShareSquare, faSmile, faSmileBeam, faSmileWink, faSnowflake, faSquare, faStar, faStarHalf, faStickyNote, faStopCircle, faSun, faSurprise, faThumbsDown, faThumbsUp, faTimesCircle, faTired, faTrashAlt, faUser, faUserCircle, faWindowClose, faWindowMaximize, faWindowMinimize, faWindowRestore */
  1842. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1843. "use strict";
  1844. __webpack_require__.r(__webpack_exports__);
  1845. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "far", function() { return _iconsCache; });
  1846. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prefix", function() { return prefix; });
  1847. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAddressBook", function() { return faAddressBook; });
  1848. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAddressCard", function() { return faAddressCard; });
  1849. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngry", function() { return faAngry; });
  1850. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleDown", function() { return faArrowAltCircleDown; });
  1851. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleLeft", function() { return faArrowAltCircleLeft; });
  1852. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleRight", function() { return faArrowAltCircleRight; });
  1853. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleUp", function() { return faArrowAltCircleUp; });
  1854. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBell", function() { return faBell; });
  1855. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBellSlash", function() { return faBellSlash; });
  1856. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookmark", function() { return faBookmark; });
  1857. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBuilding", function() { return faBuilding; });
  1858. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendar", function() { return faCalendar; });
  1859. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarAlt", function() { return faCalendarAlt; });
  1860. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarCheck", function() { return faCalendarCheck; });
  1861. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarMinus", function() { return faCalendarMinus; });
  1862. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarPlus", function() { return faCalendarPlus; });
  1863. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarTimes", function() { return faCalendarTimes; });
  1864. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareDown", function() { return faCaretSquareDown; });
  1865. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareLeft", function() { return faCaretSquareLeft; });
  1866. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareRight", function() { return faCaretSquareRight; });
  1867. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareUp", function() { return faCaretSquareUp; });
  1868. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartBar", function() { return faChartBar; });
  1869. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckCircle", function() { return faCheckCircle; });
  1870. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckSquare", function() { return faCheckSquare; });
  1871. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCircle", function() { return faCircle; });
  1872. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboard", function() { return faClipboard; });
  1873. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClock", function() { return faClock; });
  1874. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClone", function() { return faClone; });
  1875. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClosedCaptioning", function() { return faClosedCaptioning; });
  1876. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faComment", function() { return faComment; });
  1877. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentAlt", function() { return faCommentAlt; });
  1878. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentDots", function() { return faCommentDots; });
  1879. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faComments", function() { return faComments; });
  1880. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompass", function() { return faCompass; });
  1881. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCopy", function() { return faCopy; });
  1882. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCopyright", function() { return faCopyright; });
  1883. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCreditCard", function() { return faCreditCard; });
  1884. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDizzy", function() { return faDizzy; });
  1885. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDotCircle", function() { return faDotCircle; });
  1886. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEdit", function() { return faEdit; });
  1887. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelope", function() { return faEnvelope; });
  1888. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeOpen", function() { return faEnvelopeOpen; });
  1889. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEye", function() { return faEye; });
  1890. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEyeSlash", function() { return faEyeSlash; });
  1891. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFile", function() { return faFile; });
  1892. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileAlt", function() { return faFileAlt; });
  1893. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileArchive", function() { return faFileArchive; });
  1894. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileAudio", function() { return faFileAudio; });
  1895. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileCode", function() { return faFileCode; });
  1896. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileExcel", function() { return faFileExcel; });
  1897. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileImage", function() { return faFileImage; });
  1898. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePdf", function() { return faFilePdf; });
  1899. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePowerpoint", function() { return faFilePowerpoint; });
  1900. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileVideo", function() { return faFileVideo; });
  1901. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileWord", function() { return faFileWord; });
  1902. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlag", function() { return faFlag; });
  1903. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlushed", function() { return faFlushed; });
  1904. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolder", function() { return faFolder; });
  1905. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderOpen", function() { return faFolderOpen; });
  1906. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFontAwesomeLogoFull", function() { return faFontAwesomeLogoFull; });
  1907. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrown", function() { return faFrown; });
  1908. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrownOpen", function() { return faFrownOpen; });
  1909. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFutbol", function() { return faFutbol; });
  1910. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGem", function() { return faGem; });
  1911. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrimace", function() { return faGrimace; });
  1912. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrin", function() { return faGrin; });
  1913. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinAlt", function() { return faGrinAlt; });
  1914. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinBeam", function() { return faGrinBeam; });
  1915. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinBeamSweat", function() { return faGrinBeamSweat; });
  1916. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinHearts", function() { return faGrinHearts; });
  1917. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinSquint", function() { return faGrinSquint; });
  1918. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinSquintTears", function() { return faGrinSquintTears; });
  1919. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinStars", function() { return faGrinStars; });
  1920. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTears", function() { return faGrinTears; });
  1921. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongue", function() { return faGrinTongue; });
  1922. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongueSquint", function() { return faGrinTongueSquint; });
  1923. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongueWink", function() { return faGrinTongueWink; });
  1924. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinWink", function() { return faGrinWink; });
  1925. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandLizard", function() { return faHandLizard; });
  1926. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPaper", function() { return faHandPaper; });
  1927. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPeace", function() { return faHandPeace; });
  1928. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointDown", function() { return faHandPointDown; });
  1929. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointLeft", function() { return faHandPointLeft; });
  1930. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointRight", function() { return faHandPointRight; });
  1931. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointUp", function() { return faHandPointUp; });
  1932. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointer", function() { return faHandPointer; });
  1933. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandRock", function() { return faHandRock; });
  1934. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandScissors", function() { return faHandScissors; });
  1935. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandSpock", function() { return faHandSpock; });
  1936. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandshake", function() { return faHandshake; });
  1937. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHdd", function() { return faHdd; });
  1938. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeart", function() { return faHeart; });
  1939. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospital", function() { return faHospital; });
  1940. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglass", function() { return faHourglass; });
  1941. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdBadge", function() { return faIdBadge; });
  1942. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdCard", function() { return faIdCard; });
  1943. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faImage", function() { return faImage; });
  1944. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faImages", function() { return faImages; });
  1945. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKeyboard", function() { return faKeyboard; });
  1946. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKiss", function() { return faKiss; });
  1947. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKissBeam", function() { return faKissBeam; });
  1948. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKissWinkHeart", function() { return faKissWinkHeart; });
  1949. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaugh", function() { return faLaugh; });
  1950. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughBeam", function() { return faLaughBeam; });
  1951. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughSquint", function() { return faLaughSquint; });
  1952. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughWink", function() { return faLaughWink; });
  1953. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLemon", function() { return faLemon; });
  1954. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLifeRing", function() { return faLifeRing; });
  1955. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLightbulb", function() { return faLightbulb; });
  1956. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListAlt", function() { return faListAlt; });
  1957. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMap", function() { return faMap; });
  1958. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMeh", function() { return faMeh; });
  1959. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMehBlank", function() { return faMehBlank; });
  1960. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMehRollingEyes", function() { return faMehRollingEyes; });
  1961. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinusSquare", function() { return faMinusSquare; });
  1962. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillAlt", function() { return faMoneyBillAlt; });
  1963. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoon", function() { return faMoon; });
  1964. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNewspaper", function() { return faNewspaper; });
  1965. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faObjectGroup", function() { return faObjectGroup; });
  1966. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faObjectUngroup", function() { return faObjectUngroup; });
  1967. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaperPlane", function() { return faPaperPlane; });
  1968. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPauseCircle", function() { return faPauseCircle; });
  1969. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlayCircle", function() { return faPlayCircle; });
  1970. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlusSquare", function() { return faPlusSquare; });
  1971. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuestionCircle", function() { return faQuestionCircle; });
  1972. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRegistered", function() { return faRegistered; });
  1973. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSadCry", function() { return faSadCry; });
  1974. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSadTear", function() { return faSadTear; });
  1975. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSave", function() { return faSave; });
  1976. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareSquare", function() { return faShareSquare; });
  1977. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmile", function() { return faSmile; });
  1978. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmileBeam", function() { return faSmileBeam; });
  1979. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmileWink", function() { return faSmileWink; });
  1980. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSnowflake", function() { return faSnowflake; });
  1981. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquare", function() { return faSquare; });
  1982. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStar", function() { return faStar; });
  1983. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarHalf", function() { return faStarHalf; });
  1984. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStickyNote", function() { return faStickyNote; });
  1985. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStopCircle", function() { return faStopCircle; });
  1986. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSun", function() { return faSun; });
  1987. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSurprise", function() { return faSurprise; });
  1988. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbsDown", function() { return faThumbsDown; });
  1989. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbsUp", function() { return faThumbsUp; });
  1990. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTimesCircle", function() { return faTimesCircle; });
  1991. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTired", function() { return faTired; });
  1992. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrashAlt", function() { return faTrashAlt; });
  1993. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUser", function() { return faUser; });
  1994. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCircle", function() { return faUserCircle; });
  1995. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowClose", function() { return faWindowClose; });
  1996. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowMaximize", function() { return faWindowMaximize; });
  1997. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowMinimize", function() { return faWindowMinimize; });
  1998. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowRestore", function() { return faWindowRestore; });
  1999. /*!
  2000. * Font Awesome Free 5.4.2 by @fontawesome - https://fontawesome.com
  2001. * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
  2002. */
  2003. var prefix = "far";
  2004. var faAddressBook = { prefix: 'far', iconName: 'address-book', icon: [448, 512, [], "f2b9", "M436 160c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h320c26.5 0 48-21.5 48-48v-48h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20zm-68 304H48V48h320v416zM208 256c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm-89.6 128h179.2c12.4 0 22.4-8.6 22.4-19.2v-19.2c0-31.8-30.1-57.6-67.2-57.6-10.8 0-18.7 8-44.8 8-26.9 0-33.4-8-44.8-8-37.1 0-67.2 25.8-67.2 57.6v19.2c0 10.6 10 19.2 22.4 19.2z"] };
  2005. var faAddressCard = { prefix: 'far', iconName: 'address-card', icon: [576, 512, [], "f2bb", "M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 400H48V80h480v352zM208 256c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm-89.6 128h179.2c12.4 0 22.4-8.6 22.4-19.2v-19.2c0-31.8-30.1-57.6-67.2-57.6-10.8 0-18.7 8-44.8 8-26.9 0-33.4-8-44.8-8-37.1 0-67.2 25.8-67.2 57.6v19.2c0 10.6 10 19.2 22.4 19.2zM360 320h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8z"] };
  2006. var faAngry = { prefix: 'far', iconName: 'angry', icon: [496, 512, [], "f556", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm0-144c-33.6 0-65.2 14.8-86.8 40.6-8.5 10.2-7.1 25.3 3.1 33.8s25.3 7.2 33.8-3c24.8-29.7 75-29.7 99.8 0 8.1 9.7 23.2 11.9 33.8 3 10.2-8.5 11.5-23.6 3.1-33.8-21.6-25.8-53.2-40.6-86.8-40.6zm-48-72c10.3 0 19.9-6.7 23-17.1 3.8-12.7-3.4-26.1-16.1-29.9l-80-24c-12.8-3.9-26.1 3.4-29.9 16.1-3.8 12.7 3.4 26.1 16.1 29.9l28.2 8.5c-3.1 4.9-5.3 10.4-5.3 16.6 0 17.7 14.3 32 32 32s32-14.4 32-32.1zm199-54.9c-3.8-12.7-17.1-19.9-29.9-16.1l-80 24c-12.7 3.8-19.9 17.2-16.1 29.9 3.1 10.4 12.7 17.1 23 17.1 0 17.7 14.3 32 32 32s32-14.3 32-32c0-6.2-2.2-11.7-5.3-16.6l28.2-8.5c12.7-3.7 19.9-17.1 16.1-29.8z"] };
  2007. var faArrowAltCircleDown = { prefix: 'far', iconName: 'arrow-alt-circle-down', icon: [512, 512, [], "f358", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm-32-316v116h-67c-10.7 0-16 12.9-8.5 20.5l99 99c4.7 4.7 12.3 4.7 17 0l99-99c7.6-7.6 2.2-20.5-8.5-20.5h-67V140c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12z"] };
  2008. var faArrowAltCircleLeft = { prefix: 'far', iconName: 'arrow-alt-circle-left', icon: [512, 512, [], "f359", "M8 256c0 137 111 248 248 248s248-111 248-248S393 8 256 8 8 119 8 256zm448 0c0 110.5-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56s200 89.5 200 200zm-72-20v40c0 6.6-5.4 12-12 12H256v67c0 10.7-12.9 16-20.5 8.5l-99-99c-4.7-4.7-4.7-12.3 0-17l99-99c7.6-7.6 20.5-2.2 20.5 8.5v67h116c6.6 0 12 5.4 12 12z"] };
  2009. var faArrowAltCircleRight = { prefix: 'far', iconName: 'arrow-alt-circle-right', icon: [512, 512, [], "f35a", "M504 256C504 119 393 8 256 8S8 119 8 256s111 248 248 248 248-111 248-248zm-448 0c0-110.5 89.5-200 200-200s200 89.5 200 200-89.5 200-200 200S56 366.5 56 256zm72 20v-40c0-6.6 5.4-12 12-12h116v-67c0-10.7 12.9-16 20.5-8.5l99 99c4.7 4.7 4.7 12.3 0 17l-99 99c-7.6 7.6-20.5 2.2-20.5-8.5v-67H140c-6.6 0-12-5.4-12-12z"] };
  2010. var faArrowAltCircleUp = { prefix: 'far', iconName: 'arrow-alt-circle-up', icon: [512, 512, [], "f35b", "M256 504c137 0 248-111 248-248S393 8 256 8 8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z"] };
  2011. var faBell = { prefix: 'far', iconName: 'bell', icon: [448, 512, [], "f0f3", "M439.39 362.29c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71zM67.53 368c21.22-27.97 44.42-74.33 44.53-159.42 0-.2-.06-.38-.06-.58 0-61.86 50.14-112 112-112s112 50.14 112 112c0 .2-.06.38-.06.58.11 85.1 23.31 131.46 44.53 159.42H67.53zM224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64z"] };
  2012. var faBellSlash = { prefix: 'far', iconName: 'bell-slash', icon: [640, 512, [], "f1f6", "M633.99 471.02L36 3.51C29.1-2.01 19.03-.9 13.51 6l-10 12.49C-2.02 25.39-.9 35.46 6 40.98l598 467.51c6.9 5.52 16.96 4.4 22.49-2.49l10-12.49c5.52-6.9 4.41-16.97-2.5-22.49zM163.53 368c16.71-22.03 34.48-55.8 41.4-110.58l-45.47-35.55c-3.27 90.73-36.47 120.68-54.84 140.42-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h279.66l-61.4-48H163.53zM320 96c61.86 0 112 50.14 112 112 0 .2-.06.38-.06.58.02 16.84 1.16 31.77 2.79 45.73l59.53 46.54c-8.31-22.13-14.34-51.49-14.34-92.85 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84c-26.02 5.41-49.45 16.94-69.13 32.72l38.17 29.84C275 103.18 296.65 96 320 96zm0 416c35.32 0 63.97-28.65 63.97-64H256.03c0 35.35 28.65 64 63.97 64z"] };
  2013. var faBookmark = { prefix: 'far', iconName: 'bookmark', icon: [384, 512, [], "f02e", "M336 0H48C21.49 0 0 21.49 0 48v464l192-112 192 112V48c0-26.51-21.49-48-48-48zm0 428.43l-144-84-144 84V54a6 6 0 0 1 6-6h276c3.314 0 6 2.683 6 5.996V428.43z"] };
  2014. var faBuilding = { prefix: 'far', iconName: 'building', icon: [448, 512, [], "f1ad", "M128 148v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12zm140 12h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm-128 96h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm128 0h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm-76 84v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm76 12h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm180 124v36H0v-36c0-6.6 5.4-12 12-12h19.5V24c0-13.3 10.7-24 24-24h337c13.3 0 24 10.7 24 24v440H436c6.6 0 12 5.4 12 12zM79.5 463H192v-67c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v67h112.5V49L80 48l-.5 415z"] };
  2015. var faCalendar = { prefix: 'far', iconName: 'calendar', icon: [448, 512, [], "f133", "M400 64h-48V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H160V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V160h352v298c0 3.3-2.7 6-6 6z"] };
  2016. var faCalendarAlt = { prefix: 'far', iconName: 'calendar-alt', icon: [448, 512, [], "f073", "M148 288h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm108-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 96v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96-260v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"] };
  2017. var faCalendarCheck = { prefix: 'far', iconName: 'calendar-check', icon: [448, 512, [], "f274", "M400 64h-48V12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v52H160V12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v52H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm-6 400H54a6 6 0 0 1-6-6V160h352v298a6 6 0 0 1-6 6zm-52.849-200.65L198.842 404.519c-4.705 4.667-12.303 4.637-16.971-.068l-75.091-75.699c-4.667-4.705-4.637-12.303.068-16.971l22.719-22.536c4.705-4.667 12.303-4.637 16.97.069l44.104 44.461 111.072-110.181c4.705-4.667 12.303-4.637 16.971.068l22.536 22.718c4.667 4.705 4.636 12.303-.069 16.97z"] };
  2018. var faCalendarMinus = { prefix: 'far', iconName: 'calendar-minus', icon: [448, 512, [], "f272", "M124 328c-6.6 0-12-5.4-12-12v-24c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v24c0 6.6-5.4 12-12 12H124zm324-216v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"] };
  2019. var faCalendarPlus = { prefix: 'far', iconName: 'calendar-plus', icon: [448, 512, [], "f271", "M336 292v24c0 6.6-5.4 12-12 12h-76v76c0 6.6-5.4 12-12 12h-24c-6.6 0-12-5.4-12-12v-76h-76c-6.6 0-12-5.4-12-12v-24c0-6.6 5.4-12 12-12h76v-76c0-6.6 5.4-12 12-12h24c6.6 0 12 5.4 12 12v76h76c6.6 0 12 5.4 12 12zm112-180v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"] };
  2020. var faCalendarTimes = { prefix: 'far', iconName: 'calendar-times', icon: [448, 512, [], "f273", "M311.7 374.7l-17 17c-4.7 4.7-12.3 4.7-17 0L224 337.9l-53.7 53.7c-4.7 4.7-12.3 4.7-17 0l-17-17c-4.7-4.7-4.7-12.3 0-17l53.7-53.7-53.7-53.7c-4.7-4.7-4.7-12.3 0-17l17-17c4.7-4.7 12.3-4.7 17 0l53.7 53.7 53.7-53.7c4.7-4.7 12.3-4.7 17 0l17 17c4.7 4.7 4.7 12.3 0 17L257.9 304l53.7 53.7c4.8 4.7 4.8 12.3.1 17zM448 112v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"] };
  2021. var faCaretSquareDown = { prefix: 'far', iconName: 'caret-square-down', icon: [448, 512, [], "f150", "M125.1 208h197.8c10.7 0 16.1 13 8.5 20.5l-98.9 98.3c-4.7 4.7-12.2 4.7-16.9 0l-98.9-98.3c-7.7-7.5-2.3-20.5 8.4-20.5zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"] };
  2022. var faCaretSquareLeft = { prefix: 'far', iconName: 'caret-square-left', icon: [448, 512, [], "f191", "M272 157.1v197.8c0 10.7-13 16.1-20.5 8.5l-98.3-98.9c-4.7-4.7-4.7-12.2 0-16.9l98.3-98.9c7.5-7.7 20.5-2.3 20.5 8.4zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"] };
  2023. var faCaretSquareRight = { prefix: 'far', iconName: 'caret-square-right', icon: [448, 512, [], "f152", "M176 354.9V157.1c0-10.7 13-16.1 20.5-8.5l98.3 98.9c4.7 4.7 4.7 12.2 0 16.9l-98.3 98.9c-7.5 7.7-20.5 2.3-20.5-8.4zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"] };
  2024. var faCaretSquareUp = { prefix: 'far', iconName: 'caret-square-up', icon: [448, 512, [], "f151", "M322.9 304H125.1c-10.7 0-16.1-13-8.5-20.5l98.9-98.3c4.7-4.7 12.2-4.7 16.9 0l98.9 98.3c7.7 7.5 2.3 20.5-8.4 20.5zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"] };
  2025. var faChartBar = { prefix: 'far', iconName: 'chart-bar', icon: [512, 512, [], "f080", "M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z"] };
  2026. var faCheckCircle = { prefix: 'far', iconName: 'check-circle', icon: [512, 512, [], "f058", "M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 48c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m140.204 130.267l-22.536-22.718c-4.667-4.705-12.265-4.736-16.97-.068L215.346 303.697l-59.792-60.277c-4.667-4.705-12.265-4.736-16.97-.069l-22.719 22.536c-4.705 4.667-4.736 12.265-.068 16.971l90.781 91.516c4.667 4.705 12.265 4.736 16.97.068l172.589-171.204c4.704-4.668 4.734-12.266.067-16.971z"] };
  2027. var faCheckSquare = { prefix: 'far', iconName: 'check-square', icon: [448, 512, [], "f14a", "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zm0 400H48V80h352v352zm-35.864-241.724L191.547 361.48c-4.705 4.667-12.303 4.637-16.97-.068l-90.781-91.516c-4.667-4.705-4.637-12.303.069-16.971l22.719-22.536c4.705-4.667 12.303-4.637 16.97.069l59.792 60.277 141.352-140.216c4.705-4.667 12.303-4.637 16.97.068l22.536 22.718c4.667 4.706 4.637 12.304-.068 16.971z"] };
  2028. var faCircle = { prefix: 'far', iconName: 'circle', icon: [512, 512, [], "f111", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200z"] };
  2029. var faClipboard = { prefix: 'far', iconName: 'clipboard', icon: [384, 512, [], "f328", "M336 64h-80c0-35.29-28.71-64-64-64s-64 28.71-64 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm-6 400H54a6 6 0 0 1-6-6V118a6 6 0 0 1 6-6h42v36c0 6.627 5.373 12 12 12h168c6.627 0 12-5.373 12-12v-36h42a6 6 0 0 1 6 6v340a6 6 0 0 1-6 6zM192 40c13.255 0 24 10.745 24 24s-10.745 24-24 24-24-10.745-24-24 10.745-24 24-24"] };
  2030. var faClock = { prefix: 'far', iconName: 'clock', icon: [512, 512, [], "f017", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z"] };
  2031. var faClone = { prefix: 'far', iconName: 'clone', icon: [512, 512, [], "f24d", "M464 0H144c-26.51 0-48 21.49-48 48v48H48c-26.51 0-48 21.49-48 48v320c0 26.51 21.49 48 48 48h320c26.51 0 48-21.49 48-48v-48h48c26.51 0 48-21.49 48-48V48c0-26.51-21.49-48-48-48zM362 464H54a6 6 0 0 1-6-6V150a6 6 0 0 1 6-6h42v224c0 26.51 21.49 48 48 48h224v42a6 6 0 0 1-6 6zm96-96H150a6 6 0 0 1-6-6V54a6 6 0 0 1 6-6h308a6 6 0 0 1 6 6v308a6 6 0 0 1-6 6z"] };
  2032. var faClosedCaptioning = { prefix: 'far', iconName: 'closed-captioning', icon: [512, 512, [], "f20a", "M464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zm-6 336H54c-3.3 0-6-2.7-6-6V118c0-3.3 2.7-6 6-6h404c3.3 0 6 2.7 6 6v276c0 3.3-2.7 6-6 6zm-211.1-85.7c1.7 2.4 1.5 5.6-.5 7.7-53.6 56.8-172.8 32.1-172.8-67.9 0-97.3 121.7-119.5 172.5-70.1 2.1 2 2.5 3.2 1 5.7l-17.5 30.5c-1.9 3.1-6.2 4-9.1 1.7-40.8-32-94.6-14.9-94.6 31.2 0 48 51 70.5 92.2 32.6 2.8-2.5 7.1-2.1 9.2.9l19.6 27.7zm190.4 0c1.7 2.4 1.5 5.6-.5 7.7-53.6 56.9-172.8 32.1-172.8-67.9 0-97.3 121.7-119.5 172.5-70.1 2.1 2 2.5 3.2 1 5.7L420 220.2c-1.9 3.1-6.2 4-9.1 1.7-40.8-32-94.6-14.9-94.6 31.2 0 48 51 70.5 92.2 32.6 2.8-2.5 7.1-2.1 9.2.9l19.6 27.7z"] };
  2033. var faComment = { prefix: 'far', iconName: 'comment', icon: [512, 512, [], "f075", "M256 32C114.6 32 0 125.1 0 240c0 47.6 19.9 91.2 52.9 126.3C38 405.7 7 439.1 6.5 439.5c-6.6 7-8.4 17.2-4.6 26S14.4 480 24 480c61.5 0 110-25.7 139.1-46.3C192 442.8 223.2 448 256 448c141.4 0 256-93.1 256-208S397.4 32 256 32zm0 368c-26.7 0-53.1-4.1-78.4-12.1l-22.7-7.2-19.5 13.8c-14.3 10.1-33.9 21.4-57.5 29 7.3-12.1 14.4-25.7 19.9-40.2l10.6-28.1-20.6-21.8C69.7 314.1 48 282.2 48 240c0-88.2 93.3-160 208-160s208 71.8 208 160-93.3 160-208 160z"] };
  2034. var faCommentAlt = { prefix: 'far', iconName: 'comment-alt', icon: [512, 512, [], "f27a", "M448 0H64C28.7 0 0 28.7 0 64v288c0 35.3 28.7 64 64 64h96v84c0 7.1 5.8 12 12 12 2.4 0 4.9-.7 7.1-2.4L304 416h144c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64zm16 352c0 8.8-7.2 16-16 16H288l-12.8 9.6L208 428v-60H64c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16h384c8.8 0 16 7.2 16 16v288z"] };
  2035. var faCommentDots = { prefix: 'far', iconName: 'comment-dots', icon: [512, 512, [], "f4ad", "M144 208c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm112 0c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm112 0c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zM256 32C114.6 32 0 125.1 0 240c0 47.6 19.9 91.2 52.9 126.3C38 405.7 7 439.1 6.5 439.5c-6.6 7-8.4 17.2-4.6 26S14.4 480 24 480c61.5 0 110-25.7 139.1-46.3C192 442.8 223.2 448 256 448c141.4 0 256-93.1 256-208S397.4 32 256 32zm0 368c-26.7 0-53.1-4.1-78.4-12.1l-22.7-7.2-19.5 13.8c-14.3 10.1-33.9 21.4-57.5 29 7.3-12.1 14.4-25.7 19.9-40.2l10.6-28.1-20.6-21.8C69.7 314.1 48 282.2 48 240c0-88.2 93.3-160 208-160s208 71.8 208 160-93.3 160-208 160z"] };
  2036. var faComments = { prefix: 'far', iconName: 'comments', icon: [576, 512, [], "f086", "M532 386.2c27.5-27.1 44-61.1 44-98.2 0-80-76.5-146.1-176.2-157.9C368.3 72.5 294.3 32 208 32 93.1 32 0 103.6 0 192c0 37 16.5 71 44 98.2-15.3 30.7-37.3 54.5-37.7 54.9-6.3 6.7-8.1 16.5-4.4 25 3.6 8.5 12 14 21.2 14 53.5 0 96.7-20.2 125.2-38.8 9.2 2.1 18.7 3.7 28.4 4.9C208.1 407.6 281.8 448 368 448c20.8 0 40.8-2.4 59.8-6.8C456.3 459.7 499.4 480 553 480c9.2 0 17.5-5.5 21.2-14 3.6-8.5 1.9-18.3-4.4-25-.4-.3-22.5-24.1-37.8-54.8zm-392.8-92.3L122.1 305c-14.1 9.1-28.5 16.3-43.1 21.4 2.7-4.7 5.4-9.7 8-14.8l15.5-31.1L77.7 256C64.2 242.6 48 220.7 48 192c0-60.7 73.3-112 160-112s160 51.3 160 112-73.3 112-160 112c-16.5 0-33-1.9-49-5.6l-19.8-4.5zM498.3 352l-24.7 24.4 15.5 31.1c2.6 5.1 5.3 10.1 8 14.8-14.6-5.1-29-12.3-43.1-21.4l-17.1-11.1-19.9 4.6c-16 3.7-32.5 5.6-49 5.6-54 0-102.2-20.1-131.3-49.7C338 339.5 416 272.9 416 192c0-3.4-.4-6.7-.7-10C479.7 196.5 528 238.8 528 288c0 28.7-16.2 50.6-29.7 64z"] };
  2037. var faCompass = { prefix: 'far', iconName: 'compass', icon: [496, 512, [], "f14e", "M347.94 129.86L203.6 195.83a31.938 31.938 0 0 0-15.77 15.77l-65.97 144.34c-7.61 16.65 9.54 33.81 26.2 26.2l144.34-65.97a31.938 31.938 0 0 0 15.77-15.77l65.97-144.34c7.61-16.66-9.54-33.81-26.2-26.2zm-77.36 148.72c-12.47 12.47-32.69 12.47-45.16 0-12.47-12.47-12.47-32.69 0-45.16 12.47-12.47 32.69-12.47 45.16 0 12.47 12.47 12.47 32.69 0 45.16zM248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm0 448c-110.28 0-200-89.72-200-200S137.72 56 248 56s200 89.72 200 200-89.72 200-200 200z"] };
  2038. var faCopy = { prefix: 'far', iconName: 'copy', icon: [448, 512, [], "f0c5", "M433.941 65.941l-51.882-51.882A48 48 0 0 0 348.118 0H176c-26.51 0-48 21.49-48 48v48H48c-26.51 0-48 21.49-48 48v320c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48v-48h80c26.51 0 48-21.49 48-48V99.882a48 48 0 0 0-14.059-33.941zM266 464H54a6 6 0 0 1-6-6V150a6 6 0 0 1 6-6h74v224c0 26.51 21.49 48 48 48h96v42a6 6 0 0 1-6 6zm128-96H182a6 6 0 0 1-6-6V54a6 6 0 0 1 6-6h106v88c0 13.255 10.745 24 24 24h88v202a6 6 0 0 1-6 6zm6-256h-64V48h9.632c1.591 0 3.117.632 4.243 1.757l48.368 48.368a6 6 0 0 1 1.757 4.243V112z"] };
  2039. var faCopyright = { prefix: 'far', iconName: 'copyright', icon: [512, 512, [], "f1f9", "M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 448c-110.532 0-200-89.451-200-200 0-110.531 89.451-200 200-200 110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200zm107.351-101.064c-9.614 9.712-45.53 41.396-104.065 41.396-82.43 0-140.484-61.425-140.484-141.567 0-79.152 60.275-139.401 139.762-139.401 55.531 0 88.738 26.62 97.593 34.779a11.965 11.965 0 0 1 1.936 15.322l-18.155 28.113c-3.841 5.95-11.966 7.282-17.499 2.921-8.595-6.776-31.814-22.538-61.708-22.538-48.303 0-77.916 35.33-77.916 80.082 0 41.589 26.888 83.692 78.277 83.692 32.657 0 56.843-19.039 65.726-27.225 5.27-4.857 13.596-4.039 17.82 1.738l19.865 27.17a11.947 11.947 0 0 1-1.152 15.518z"] };
  2040. var faCreditCard = { prefix: 'far', iconName: 'credit-card', icon: [576, 512, [], "f09d", "M527.9 32H48.1C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48.1 48h479.8c26.6 0 48.1-21.5 48.1-48V80c0-26.5-21.5-48-48.1-48zM54.1 80h467.8c3.3 0 6 2.7 6 6v42H48.1V86c0-3.3 2.7-6 6-6zm467.8 352H54.1c-3.3 0-6-2.7-6-6V256h479.8v170c0 3.3-2.7 6-6 6zM192 332v40c0 6.6-5.4 12-12 12h-72c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h72c6.6 0 12 5.4 12 12zm192 0v40c0 6.6-5.4 12-12 12H236c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h136c6.6 0 12 5.4 12 12z"] };
  2041. var faDizzy = { prefix: 'far', iconName: 'dizzy', icon: [496, 512, [], "f567", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-33.8-217.9c7.8-7.8 7.8-20.5 0-28.3L196.3 192l17.9-17.9c7.8-7.8 7.8-20.5 0-28.3-7.8-7.8-20.5-7.8-28.3 0L168 163.7l-17.8-17.8c-7.8-7.8-20.5-7.8-28.3 0-7.8 7.8-7.8 20.5 0 28.3l17.9 17.9-17.9 17.9c-7.8 7.8-7.8 20.5 0 28.3 7.8 7.8 20.5 7.8 28.3 0l17.8-17.8 17.8 17.8c7.9 7.7 20.5 7.7 28.4-.2zm160-92.2c-7.8-7.8-20.5-7.8-28.3 0L328 163.7l-17.8-17.8c-7.8-7.8-20.5-7.8-28.3 0-7.8 7.8-7.8 20.5 0 28.3l17.9 17.9-17.9 17.9c-7.8 7.8-7.8 20.5 0 28.3 7.8 7.8 20.5 7.8 28.3 0l17.8-17.8 17.8 17.8c7.8 7.8 20.5 7.8 28.3 0 7.8-7.8 7.8-20.5 0-28.3l-17.8-18 17.9-17.9c7.7-7.8 7.7-20.4 0-28.2zM248 272c-35.3 0-64 28.7-64 64s28.7 64 64 64 64-28.7 64-64-28.7-64-64-64z"] };
  2042. var faDotCircle = { prefix: 'far', iconName: 'dot-circle', icon: [512, 512, [], "f192", "M256 56c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m0-48C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 168c-44.183 0-80 35.817-80 80s35.817 80 80 80 80-35.817 80-80-35.817-80-80-80z"] };
  2043. var faEdit = { prefix: 'far', iconName: 'edit', icon: [576, 512, [], "f044", "M402.3 344.9l32-32c5-5 13.7-1.5 13.7 5.7V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h273.5c7.1 0 10.7 8.6 5.7 13.7l-32 32c-1.5 1.5-3.5 2.3-5.7 2.3H48v352h352V350.5c0-2.1.8-4.1 2.3-5.6zm156.6-201.8L296.3 405.7l-90.4 10c-26.2 2.9-48.5-19.2-45.6-45.6l10-90.4L432.9 17.1c22.9-22.9 59.9-22.9 82.7 0l43.2 43.2c22.9 22.9 22.9 60 .1 82.8zM460.1 174L402 115.9 216.2 301.8l-7.3 65.3 65.3-7.3L460.1 174zm64.8-79.7l-43.2-43.2c-4.1-4.1-10.8-4.1-14.8 0L436 82l58.1 58.1 30.9-30.9c4-4.2 4-10.8-.1-14.9z"] };
  2044. var faEnvelope = { prefix: 'far', iconName: 'envelope', icon: [512, 512, [], "f0e0", "M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"] };
  2045. var faEnvelopeOpen = { prefix: 'far', iconName: 'envelope-open', icon: [512, 512, [], "f2b6", "M494.586 164.516c-4.697-3.883-111.723-89.95-135.251-108.657C337.231 38.191 299.437 0 256 0c-43.205 0-80.636 37.717-103.335 55.859-24.463 19.45-131.07 105.195-135.15 108.549A48.004 48.004 0 0 0 0 201.485V464c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V201.509a48 48 0 0 0-17.414-36.993zM464 458a6 6 0 0 1-6 6H54a6 6 0 0 1-6-6V204.347c0-1.813.816-3.526 2.226-4.665 15.87-12.814 108.793-87.554 132.364-106.293C200.755 78.88 232.398 48 256 48c23.693 0 55.857 31.369 73.41 45.389 23.573 18.741 116.503 93.493 132.366 106.316a5.99 5.99 0 0 1 2.224 4.663V458zm-31.991-187.704c4.249 5.159 3.465 12.795-1.745 16.981-28.975 23.283-59.274 47.597-70.929 56.863C336.636 362.283 299.205 400 256 400c-43.452 0-81.287-38.237-103.335-55.86-11.279-8.967-41.744-33.413-70.927-56.865-5.21-4.187-5.993-11.822-1.745-16.981l15.258-18.528c4.178-5.073 11.657-5.843 16.779-1.726 28.618 23.001 58.566 47.035 70.56 56.571C200.143 320.631 232.307 352 256 352c23.602 0 55.246-30.88 73.41-45.389 11.994-9.535 41.944-33.57 70.563-56.568 5.122-4.116 12.601-3.346 16.778 1.727l15.258 18.526z"] };
  2046. var faEye = { prefix: 'far', iconName: 'eye', icon: [576, 512, [], "f06e", "M569.354 231.631C512.97 135.949 407.81 72 288 72 168.14 72 63.004 135.994 6.646 231.631a47.999 47.999 0 0 0 0 48.739C63.031 376.051 168.19 440 288 440c119.86 0 224.996-63.994 281.354-159.631a47.997 47.997 0 0 0 0-48.738zM288 392c-102.556 0-192.091-54.701-240-136 44.157-74.933 123.677-127.27 216.162-135.007C273.958 131.078 280 144.83 280 160c0 30.928-25.072 56-56 56s-56-25.072-56-56l.001-.042C157.794 179.043 152 200.844 152 224c0 75.111 60.889 136 136 136s136-60.889 136-136c0-31.031-10.4-59.629-27.895-82.515C451.704 164.638 498.009 205.106 528 256c-47.908 81.299-137.444 136-240 136z"] };
  2047. var faEyeSlash = { prefix: 'far', iconName: 'eye-slash', icon: [576, 512, [], "f070", "M272.702 359.139c-80.483-9.011-136.212-86.886-116.93-167.042l116.93 167.042zM288 392c-102.556 0-192.092-54.701-240-136 21.755-36.917 52.1-68.342 88.344-91.658l-27.541-39.343C67.001 152.234 31.921 188.741 6.646 231.631a47.999 47.999 0 0 0 0 48.739C63.004 376.006 168.14 440 288 440a332.89 332.89 0 0 0 39.648-2.367l-32.021-45.744A284.16 284.16 0 0 1 288 392zm281.354-111.631c-33.232 56.394-83.421 101.742-143.554 129.492l48.116 68.74c3.801 5.429 2.48 12.912-2.949 16.712L450.23 509.83c-5.429 3.801-12.912 2.48-16.712-2.949L102.084 33.399c-3.801-5.429-2.48-12.912 2.949-16.712L125.77 2.17c5.429-3.801 12.912-2.48 16.712 2.949l55.526 79.325C226.612 76.343 256.808 72 288 72c119.86 0 224.996 63.994 281.354 159.631a48.002 48.002 0 0 1 0 48.738zM528 256c-44.157-74.933-123.677-127.27-216.162-135.007C302.042 131.078 296 144.83 296 160c0 30.928 25.072 56 56 56s56-25.072 56-56l-.001-.042c30.632 57.277 16.739 130.26-36.928 171.719l26.695 38.135C452.626 346.551 498.308 306.386 528 256z"] };
  2048. var faFile = { prefix: 'far', iconName: 'file', icon: [384, 512, [], "f15b", "M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48z"] };
  2049. var faFileAlt = { prefix: 'far', iconName: 'file-alt', icon: [384, 512, [], "f15c", "M288 248v28c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-28c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm-12 72H108c-6.6 0-12 5.4-12 12v28c0 6.6 5.4 12 12 12h168c6.6 0 12-5.4 12-12v-28c0-6.6-5.4-12-12-12zm108-188.1V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V48C0 21.5 21.5 0 48 0h204.1C264.8 0 277 5.1 286 14.1L369.9 98c9 8.9 14.1 21.2 14.1 33.9zm-128-80V128h76.1L256 51.9zM336 464V176H232c-13.3 0-24-10.7-24-24V48H48v416h288z"] };
  2050. var faFileArchive = { prefix: 'far', iconName: 'file-archive', icon: [384, 512, [], "f1c6", "M369.941 97.941l-83.882-83.882A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v416c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48V131.882a48 48 0 0 0-14.059-33.941zM256 51.882L332.118 128H256V51.882zM336 464H48V48h79.714v16h32V48H208v104c0 13.255 10.745 24 24 24h104v288zM192.27 96h-32V64h32v32zm-32 0v32h-32V96h32zm0 64v32h-32v-32h32zm32 0h-32v-32h32v32zm1.909 105.678A12 12 0 0 0 182.406 256H160.27v-32h-32v32l-19.69 97.106C101.989 385.611 126.834 416 160 416c33.052 0 57.871-30.192 51.476-62.62l-17.297-87.702zM160.27 390.073c-17.918 0-32.444-12.105-32.444-27.036 0-14.932 14.525-27.036 32.444-27.036s32.444 12.105 32.444 27.036c0 14.931-14.526 27.036-32.444 27.036zm32-166.073h-32v-32h32v32z"] };
  2051. var faFileAudio = { prefix: 'far', iconName: 'file-audio', icon: [384, 512, [], "f1c7", "M369.941 97.941l-83.882-83.882A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v416c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48V131.882a48 48 0 0 0-14.059-33.941zM332.118 128H256V51.882L332.118 128zM48 464V48h160v104c0 13.255 10.745 24 24 24h104v288H48zm144-76.024c0 10.691-12.926 16.045-20.485 8.485L136 360.486h-28c-6.627 0-12-5.373-12-12v-56c0-6.627 5.373-12 12-12h28l35.515-36.947c7.56-7.56 20.485-2.206 20.485 8.485v135.952zm41.201-47.13c9.051-9.297 9.06-24.133.001-33.439-22.149-22.752 12.235-56.246 34.395-33.481 27.198 27.94 27.212 72.444.001 100.401-21.793 22.386-56.947-10.315-34.397-33.481z"] };
  2052. var faFileCode = { prefix: 'far', iconName: 'file-code', icon: [384, 512, [], "f1c9", "M369.941 97.941l-83.882-83.882A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v416c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48V131.882a48 48 0 0 0-14.059-33.941zM332.118 128H256V51.882L332.118 128zM48 464V48h160v104c0 13.255 10.745 24 24 24h104v288H48zm101.677-115.115L116.854 320l32.822-28.885a8.793 8.793 0 0 0 .605-12.624l-17.403-18.564c-3.384-3.613-8.964-3.662-12.438-.401L62.78 313.58c-3.703 3.474-3.704 9.367.001 12.84l57.659 54.055a8.738 8.738 0 0 0 6.012 2.381 8.746 8.746 0 0 0 6.427-2.782l17.403-18.563a8.795 8.795 0 0 0-.605-12.626zm84.284-127.85l-24.401-7.084a8.796 8.796 0 0 0-10.905 5.998L144.04 408.061c-1.353 4.66 1.338 9.552 5.998 10.905l24.403 7.084c4.68 1.355 9.557-1.354 10.905-5.998l54.612-188.112c1.354-4.66-1.337-9.552-5.997-10.905zm87.258 92.545l-57.658-54.055c-3.526-3.307-9.099-3.165-12.439.401l-17.403 18.563a8.795 8.795 0 0 0 .605 12.625L267.146 320l-32.822 28.885a8.793 8.793 0 0 0-.605 12.624l17.403 18.564a8.797 8.797 0 0 0 12.439.401h-.001l57.66-54.055c3.703-3.473 3.703-9.366-.001-12.839z"] };
  2053. var faFileExcel = { prefix: 'far', iconName: 'file-excel', icon: [384, 512, [], "f1c3", "M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm212-240h-28.8c-4.4 0-8.4 2.4-10.5 6.3-18 33.1-22.2 42.4-28.6 57.7-13.9-29.1-6.9-17.3-28.6-57.7-2.1-3.9-6.2-6.3-10.6-6.3H124c-9.3 0-15 10-10.4 18l46.3 78-46.3 78c-4.7 8 1.1 18 10.4 18h28.9c4.4 0 8.4-2.4 10.5-6.3 21.7-40 23-45 28.6-57.7 14.9 30.2 5.9 15.9 28.6 57.7 2.1 3.9 6.2 6.3 10.6 6.3H260c9.3 0 15-10 10.4-18L224 320c.7-1.1 30.3-50.5 46.3-78 4.7-8-1.1-18-10.3-18z"] };
  2054. var faFileImage = { prefix: 'far', iconName: 'file-image', icon: [384, 512, [], "f1c5", "M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm32-48h224V288l-23.5-23.5c-4.7-4.7-12.3-4.7-17 0L176 352l-39.5-39.5c-4.7-4.7-12.3-4.7-17 0L80 352v64zm48-240c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z"] };
  2055. var faFilePdf = { prefix: 'far', iconName: 'file-pdf', icon: [384, 512, [], "f1c1", "M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm250.2-143.7c-12.2-12-47-8.7-64.4-6.5-17.2-10.5-28.7-25-36.8-46.3 3.9-16.1 10.1-40.6 5.4-56-4.2-26.2-37.8-23.6-42.6-5.9-4.4 16.1-.4 38.5 7 67.1-10 23.9-24.9 56-35.4 74.4-20 10.3-47 26.2-51 46.2-3.3 15.8 26 55.2 76.1-31.2 22.4-7.4 46.8-16.5 68.4-20.1 18.9 10.2 41 17 55.8 17 25.5 0 28-28.2 17.5-38.7zm-198.1 77.8c5.1-13.7 24.5-29.5 30.4-35-19 30.3-30.4 35.7-30.4 35zm81.6-190.6c7.4 0 6.7 32.1 1.8 40.8-4.4-13.9-4.3-40.8-1.8-40.8zm-24.4 136.6c9.7-16.9 18-37 24.7-54.7 8.3 15.1 18.9 27.2 30.1 35.5-20.8 4.3-38.9 13.1-54.8 19.2zm131.6-5s-5 6-37.3-7.8c35.1-2.6 40.9 5.4 37.3 7.8z"] };
  2056. var faFilePowerpoint = { prefix: 'far', iconName: 'file-powerpoint', icon: [384, 512, [], "f1c4", "M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm72-60V236c0-6.6 5.4-12 12-12h69.2c36.7 0 62.8 27 62.8 66.3 0 74.3-68.7 66.5-95.5 66.5V404c0 6.6-5.4 12-12 12H132c-6.6 0-12-5.4-12-12zm48.5-87.4h23c7.9 0 13.9-2.4 18.1-7.2 8.5-9.8 8.4-28.5.1-37.8-4.1-4.6-9.9-7-17.4-7h-23.9v52z"] };
  2057. var faFileVideo = { prefix: 'far', iconName: 'file-video', icon: [384, 512, [], "f1c8", "M369.941 97.941l-83.882-83.882A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v416c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48V131.882a48 48 0 0 0-14.059-33.941zM332.118 128H256V51.882L332.118 128zM48 464V48h160v104c0 13.255 10.745 24 24 24h104v288H48zm228.687-211.303L224 305.374V268c0-11.046-8.954-20-20-20H100c-11.046 0-20 8.954-20 20v104c0 11.046 8.954 20 20 20h104c11.046 0 20-8.954 20-20v-37.374l52.687 52.674C286.704 397.318 304 390.28 304 375.986V264.011c0-14.311-17.309-21.319-27.313-11.314z"] };
  2058. var faFileWord = { prefix: 'far', iconName: 'file-word', icon: [384, 512, [], "f1c2", "M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm220.1-208c-5.7 0-10.6 4-11.7 9.5-20.6 97.7-20.4 95.4-21 103.5-.2-1.2-.4-2.6-.7-4.3-.8-5.1.3.2-23.6-99.5-1.3-5.4-6.1-9.2-11.7-9.2h-13.3c-5.5 0-10.3 3.8-11.7 9.1-24.4 99-24 96.2-24.8 103.7-.1-1.1-.2-2.5-.5-4.2-.7-5.2-14.1-73.3-19.1-99-1.1-5.6-6-9.7-11.8-9.7h-16.8c-7.8 0-13.5 7.3-11.7 14.8 8 32.6 26.7 109.5 33.2 136 1.3 5.4 6.1 9.1 11.7 9.1h25.2c5.5 0 10.3-3.7 11.6-9.1l17.9-71.4c1.5-6.2 2.5-12 3-17.3l2.9 17.3c.1.4 12.6 50.5 17.9 71.4 1.3 5.3 6.1 9.1 11.6 9.1h24.7c5.5 0 10.3-3.7 11.6-9.1 20.8-81.9 30.2-119 34.5-136 1.9-7.6-3.8-14.9-11.6-14.9h-15.8z"] };
  2059. var faFlag = { prefix: 'far', iconName: 'flag', icon: [512, 512, [], "f024", "M336.174 80c-49.132 0-93.305-32-161.913-32-31.301 0-58.303 6.482-80.721 15.168a48.04 48.04 0 0 0 2.142-20.727C93.067 19.575 74.167 1.594 51.201.104 23.242-1.71 0 20.431 0 48c0 17.764 9.657 33.262 24 41.562V496c0 8.837 7.163 16 16 16h16c8.837 0 16-7.163 16-16v-83.443C109.869 395.28 143.259 384 199.826 384c49.132 0 93.305 32 161.913 32 58.479 0 101.972-22.617 128.548-39.981C503.846 367.161 512 352.051 512 335.855V95.937c0-34.459-35.264-57.768-66.904-44.117C409.193 67.309 371.641 80 336.174 80zM464 336c-21.783 15.412-60.824 32-102.261 32-59.945 0-102.002-32-161.913-32-43.361 0-96.379 9.403-127.826 24V128c21.784-15.412 60.824-32 102.261-32 59.945 0 102.002 32 161.913 32 43.271 0 96.32-17.366 127.826-32v240z"] };
  2060. var faFlushed = { prefix: 'far', iconName: 'flushed', icon: [496, 512, [], "f579", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm96-312c-44.2 0-80 35.8-80 80s35.8 80 80 80 80-35.8 80-80-35.8-80-80-80zm0 128c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm0-72c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm-112 24c0-44.2-35.8-80-80-80s-80 35.8-80 80 35.8 80 80 80 80-35.8 80-80zm-80 48c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm0-72c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm160 144H184c-13.2 0-24 10.8-24 24s10.8 24 24 24h128c13.2 0 24-10.8 24-24s-10.8-24-24-24z"] };
  2061. var faFolder = { prefix: 'far', iconName: 'folder', icon: [512, 512, [], "f07b", "M464 128H272l-54.63-54.63c-6-6-14.14-9.37-22.63-9.37H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48zm0 272H48V112h140.12l54.63 54.63c6 6 14.14 9.37 22.63 9.37H464v224z"] };
  2062. var faFolderOpen = { prefix: 'far', iconName: 'folder-open', icon: [576, 512, [], "f07c", "M527.943 224H480v-48c0-26.51-21.49-48-48-48H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h400a48.001 48.001 0 0 0 40.704-22.56l79.942-128c19.948-31.917-3.038-73.44-40.703-73.44zM54 112h134.118l64 64H426a6 6 0 0 1 6 6v42H152a48 48 0 0 0-41.098 23.202L48 351.449V117.993A5.993 5.993 0 0 1 54 112zm394 288H72l77.234-128H528l-80 128z"] };
  2063. var faFontAwesomeLogoFull = { prefix: 'far', iconName: 'font-awesome-logo-full', icon: [3992, 512, ["Font Awesome"], "f4e6", "M454.6 0H57.4C25.9 0 0 25.9 0 57.4v397.3C0 486.1 25.9 512 57.4 512h397.3c31.4 0 57.4-25.9 57.4-57.4V57.4C512 25.9 486.1 0 454.6 0zm-58.9 324.9c0 4.8-4.1 6.9-8.9 8.9-19.2 8.1-39.7 15.7-61.5 15.7-40.5 0-68.7-44.8-163.2 2.5v51.8c0 30.3-45.7 30.2-45.7 0v-250c-9-7-15-17.9-15-30.3 0-21 17.1-38.2 38.2-38.2 21 0 38.2 17.1 38.2 38.2 0 12.2-5.8 23.2-14.9 30.2v21c37.1-12 65.5-34.4 146.1-3.4 26.6 11.4 68.7-15.7 76.5-15.7 5.5 0 10.3 4.1 10.3 8.9v160.4zm432.9-174.2h-137v70.1H825c39.8 0 40.4 62.2 0 62.2H691.6v105.6c0 45.5-70.7 46.4-70.7 0V128.3c0-22 18-39.8 39.8-39.8h167.8c39.6 0 40.5 62.2.1 62.2zm191.1 23.4c-169.3 0-169.1 252.4 0 252.4 169.9 0 169.9-252.4 0-252.4zm0 196.1c-81.6 0-82.1-139.8 0-139.8 82.5 0 82.4 139.8 0 139.8zm372.4 53.4c-17.5 0-31.4-13.9-31.4-31.4v-117c0-62.4-72.6-52.5-99.1-16.4v133.4c0 41.5-63.3 41.8-63.3 0V208c0-40 63.1-41.6 63.1 0v3.4c43.3-51.6 162.4-60.4 162.4 39.3v141.5c.3 30.4-31.5 31.4-31.7 31.4zm179.7 2.9c-44.3 0-68.3-22.9-68.3-65.8V235.2H1488c-35.6 0-36.7-55.3 0-55.3h15.5v-37.3c0-41.3 63.8-42.1 63.8 0v37.5h24.9c35.4 0 35.7 55.3 0 55.3h-24.9v108.5c0 29.6 26.1 26.3 27.4 26.3 31.4 0 52.6 56.3-22.9 56.3zM1992 123c-19.5-50.2-95.5-50-114.5 0-107.3 275.7-99.5 252.7-99.5 262.8 0 42.8 58.3 51.2 72.1 14.4l13.5-35.9H2006l13 35.9c14.2 37.7 72.1 27.2 72.1-14.4 0-10.1 5.3 6.8-99.1-262.8zm-108.9 179.1l51.7-142.9 51.8 142.9h-103.5zm591.3-85.6l-53.7 176.3c-12.4 41.2-72 41-84 0l-42.3-135.9-42.3 135.9c-12.4 40.9-72 41.2-84.5 0l-54.2-176.3c-12.5-39.4 49.8-56.1 60.2-16.9L2213 342l45.3-139.5c10.9-32.7 59.6-34.7 71.2 0l45.3 139.5 39.3-142.4c10.3-38.3 72.6-23.8 60.3 16.9zm275.4 75.1c0-42.4-33.9-117.5-119.5-117.5-73.2 0-124.4 56.3-124.4 126 0 77.2 55.3 126.4 128.5 126.4 31.7 0 93-11.5 93-39.8 0-18.3-21.1-31.5-39.3-22.4-49.4 26.2-109 8.4-115.9-43.8h148.3c16.3 0 29.3-13.4 29.3-28.9zM2571 277.7c9.5-73.4 113.9-68.6 118.6 0H2571zm316.7 148.8c-31.4 0-81.6-10.5-96.6-31.9-12.4-17 2.5-39.8 21.8-39.8 16.3 0 36.8 22.9 77.7 22.9 27.4 0 40.4-11 40.4-25.8 0-39.8-142.9-7.4-142.9-102 0-40.4 35.3-75.7 98.6-75.7 31.4 0 74.1 9.9 87.6 29.4 10.8 14.8-1.4 36.2-20.9 36.2-15.1 0-26.7-17.3-66.2-17.3-22.9 0-37.8 10.5-37.8 23.8 0 35.9 142.4 6 142.4 103.1-.1 43.7-37.4 77.1-104.1 77.1zm266.8-252.4c-169.3 0-169.1 252.4 0 252.4 170.1 0 169.6-252.4 0-252.4zm0 196.1c-81.8 0-82-139.8 0-139.8 82.5 0 82.4 139.8 0 139.8zm476.9 22V268.7c0-53.8-61.4-45.8-85.7-10.5v134c0 41.3-63.8 42.1-63.8 0V268.7c0-52.1-59.5-47.4-85.7-10.1v133.6c0 41.5-63.3 41.8-63.3 0V208c0-40 63.1-41.6 63.1 0v3.4c9.9-14.4 41.8-37.3 78.6-37.3 35.3 0 57.7 16.4 66.7 43.8 13.9-21.8 45.8-43.8 82.6-43.8 44.3 0 70.7 23.4 70.7 72.7v145.3c.5 17.3-13.5 31.4-31.9 31.4 3.5.1-31.3 1.1-31.3-31.3zM3992 291.6c0-42.4-32.4-117.5-117.9-117.5-73.2 0-127.5 56.3-127.5 126 0 77.2 58.3 126.4 131.6 126.4 31.7 0 91.5-11.5 91.5-39.8 0-18.3-21.1-31.5-39.3-22.4-49.4 26.2-110.5 8.4-117.5-43.8h149.8c16.3 0 29.1-13.4 29.3-28.9zm-180.5-13.9c9.7-74.4 115.9-68.3 120.1 0h-120.1z"] };
  2064. var faFrown = { prefix: 'far', iconName: 'frown', icon: [496, 512, [], "f119", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160-64c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm-80 128c-40.2 0-78 17.7-103.8 48.6-8.5 10.2-7.1 25.3 3.1 33.8 10.2 8.4 25.3 7.1 33.8-3.1 16.6-19.9 41-31.4 66.9-31.4s50.3 11.4 66.9 31.4c8.1 9.7 23.1 11.9 33.8 3.1 10.2-8.5 11.5-23.6 3.1-33.8C326 321.7 288.2 304 248 304z"] };
  2065. var faFrownOpen = { prefix: 'far', iconName: 'frown-open', icon: [496, 512, [], "f57a", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-48-248c0-17.7-14.3-32-32-32s-32 14.3-32 32 14.3 32 32 32 32-14.3 32-32zm128-32c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm-80 112c-35.6 0-88.8 21.3-95.8 61.2-2 11.8 9 21.5 20.5 18.1 31.2-9.6 59.4-15.3 75.3-15.3s44.1 5.7 75.3 15.3c11.4 3.5 22.5-6.3 20.5-18.1-7-39.9-60.2-61.2-95.8-61.2z"] };
  2066. var faFutbol = { prefix: 'far', iconName: 'futbol', icon: [496, 512, [], "f1e3", "M483.8 179.4C449.8 74.6 352.6 8 248.1 8c-25.4 0-51.2 3.9-76.7 12.2C41.2 62.5-30.1 202.4 12.2 332.6 46.2 437.4 143.4 504 247.9 504c25.4 0 51.2-3.9 76.7-12.2 130.2-42.3 201.5-182.2 159.2-312.4zm-74.5 193.7l-52.2 6.4-43.7-60.9 24.4-75.2 71.1-22.1 38.9 36.4c-.2 30.7-7.4 61.1-21.7 89.2-4.7 9.3-10.7 17.8-16.8 26.2zm0-235.4l-10.4 53.1-70.7 22-64.2-46.5V92.5l47.4-26.2c39.2 13 73.4 38 97.9 71.4zM184.9 66.4L232 92.5v73.8l-64.2 46.5-70.6-22-10.1-52.5c24.3-33.4 57.9-58.6 97.8-71.9zM139 379.5L85.9 373c-14.4-20.1-37.3-59.6-37.8-115.3l39-36.4 71.1 22.2 24.3 74.3-43.5 61.7zm48.2 67l-22.4-48.1 43.6-61.7H287l44.3 61.7-22.4 48.1c-6.2 1.8-57.6 20.4-121.7 0z"] };
  2067. var faGem = { prefix: 'far', iconName: 'gem', icon: [576, 512, [], "f3a5", "M464 0H112c-4 0-7.8 2-10 5.4L2 152.6c-2.9 4.4-2.6 10.2.7 14.2l276 340.8c4.8 5.9 13.8 5.9 18.6 0l276-340.8c3.3-4.1 3.6-9.8.7-14.2L474.1 5.4C471.8 2 468.1 0 464 0zm-19.3 48l63.3 96h-68.4l-51.7-96h56.8zm-202.1 0h90.7l51.7 96H191l51.6-96zm-111.3 0h56.8l-51.7 96H68l63.3-96zm-43 144h51.4L208 352 88.3 192zm102.9 0h193.6L288 435.3 191.2 192zM368 352l68.2-160h51.4L368 352z"] };
  2068. var faGrimace = { prefix: 'far', iconName: 'grimace', icon: [496, 512, [], "f57f", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm16 16H152c-26.5 0-48 21.5-48 48v32c0 26.5 21.5 48 48 48h192c26.5 0 48-21.5 48-48v-32c0-26.5-21.5-48-48-48zm-168 96h-24c-8.8 0-16-7.2-16-16v-8h40v24zm0-40h-40v-8c0-8.8 7.2-16 16-16h24v24zm64 40h-48v-24h48v24zm0-40h-48v-24h48v24zm64 40h-48v-24h48v24zm0-40h-48v-24h48v24zm56 24c0 8.8-7.2 16-16 16h-24v-24h40v8zm0-24h-40v-24h24c8.8 0 16 7.2 16 16v8z"] };
  2069. var faGrin = { prefix: 'far', iconName: 'grin', icon: [496, 512, [], "f580", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm105.6-151.4c-25.9 8.3-64.4 13.1-105.6 13.1s-79.6-4.8-105.6-13.1c-9.9-3.1-19.4 5.4-17.7 15.3 7.9 47.1 71.3 80 123.3 80s115.3-32.9 123.3-80c1.6-9.8-7.7-18.4-17.7-15.3zM168 240c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32z"] };
  2070. var faGrinAlt = { prefix: 'far', iconName: 'grin-alt', icon: [496, 512, [], "f581", "M200.3 248c12.4-18.7 15.1-37.3 15.7-56-.5-18.7-3.3-37.3-15.7-56-8-12-25.1-11.4-32.7 0-12.4 18.7-15.1 37.3-15.7 56 .5 18.7 3.3 37.3 15.7 56 8.1 12 25.2 11.4 32.7 0zm128 0c12.4-18.7 15.1-37.3 15.7-56-.5-18.7-3.3-37.3-15.7-56-8-12-25.1-11.4-32.7 0-12.4 18.7-15.1 37.3-15.7 56 .5 18.7 3.3 37.3 15.7 56 8.1 12 25.2 11.4 32.7 0zM248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm105.6-151.4c-25.9 8.3-64.4 13.1-105.6 13.1s-79.6-4.8-105.6-13.1c-9.9-3.1-19.4 5.3-17.7 15.3 7.9 47.2 71.3 80 123.3 80s115.3-32.9 123.3-80c1.6-9.8-7.7-18.4-17.7-15.3z"] };
  2071. var faGrinBeam = { prefix: 'far', iconName: 'grin-beam', icon: [496, 512, [], "f582", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm105.6-151.4c-25.9 8.3-64.4 13.1-105.6 13.1s-79.6-4.8-105.6-13.1c-9.8-3.1-19.4 5.3-17.7 15.3 7.9 47.1 71.3 80 123.3 80s115.3-32.9 123.3-80c1.6-9.8-7.7-18.4-17.7-15.3zm-235.9-72.9c3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3zm160 0c3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3z"] };
  2072. var faGrinBeamSweat = { prefix: 'far', iconName: 'grin-beam-sweat', icon: [496, 512, [], "f583", "M440 160c29.5 0 53.3-26.3 53.3-58.7 0-25-31.7-75.5-46.2-97.3-3.6-5.3-10.7-5.3-14.2 0-14.5 21.8-46.2 72.3-46.2 97.3 0 32.4 23.8 58.7 53.3 58.7zM248 400c51.9 0 115.3-32.9 123.3-80 1.7-9.9-7.7-18.5-17.7-15.3-25.9 8.3-64.4 13.1-105.6 13.1s-79.6-4.8-105.6-13.1c-9.8-3.1-19.4 5.3-17.7 15.3 8 47.1 71.4 80 123.3 80zm130.3-168.3c3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.6 6.2 4.6 9.3 3.7zm105.3-52.9c-24.6 15.7-46 12.9-46.4 12.9 6.9 20.2 10.8 41.8 10.8 64.3 0 110.3-89.7 200-200 200S48 366.3 48 256 137.7 56 248 56c39.8 0 76.8 11.8 108 31.9 1.7-9.5 6.3-24.1 17.2-45.7C336.4 20.6 293.7 8 248 8 111 8 0 119 0 256s111 248 248 248 248-111 248-248c0-27-4.4-52.9-12.4-77.2zM168 189.4c12.3 0 23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.8 19.2-21.6 31.5-21.6z"] };
  2073. var faGrinHearts = { prefix: 'far', iconName: 'grin-hearts', icon: [496, 512, [], "f584", "M353.6 304.6c-25.9 8.3-64.4 13.1-105.6 13.1s-79.6-4.8-105.6-13.1c-9.8-3.1-19.4 5.3-17.7 15.3 7.9 47.2 71.3 80 123.3 80s115.3-32.9 123.3-80c1.6-9.8-7.7-18.4-17.7-15.3zm-152.8-48.9c4.5 1.2 9.2-1.5 10.5-6l19.4-69.9c5.6-20.3-7.4-41.1-28.8-44.5-18.6-3-36.4 9.8-41.5 27.9l-2 7.1-7.1-1.9c-18.2-4.7-38.2 4.3-44.9 22-7.7 20.2 3.8 41.9 24.2 47.2l70.2 18.1zm188.8-65.3c-6.7-17.6-26.7-26.7-44.9-22l-7.1 1.9-2-7.1c-5-18.1-22.8-30.9-41.5-27.9-21.4 3.4-34.4 24.2-28.8 44.5l19.4 69.9c1.2 4.5 5.9 7.2 10.5 6l70.2-18.2c20.4-5.3 31.9-26.9 24.2-47.1zM248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200z"] };
  2074. var faGrinSquint = { prefix: 'far', iconName: 'grin-squint', icon: [496, 512, [], "f585", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm105.6-151.4c-25.9 8.3-64.4 13.1-105.6 13.1s-79.6-4.8-105.6-13.1c-9.9-3.1-19.4 5.4-17.7 15.3 7.9 47.1 71.3 80 123.3 80s115.3-32.9 123.3-80c1.6-9.8-7.7-18.4-17.7-15.3zm-234.7-40.8c3.6 4.2 9.9 5.7 15.3 2.5l80-48c3.6-2.2 5.8-6.1 5.8-10.3s-2.2-8.1-5.8-10.3l-80-48c-5.1-3-11.4-1.9-15.3 2.5-3.8 4.5-3.8 11-.1 15.5l33.6 40.3-33.6 40.3c-3.8 4.5-3.7 11.1.1 15.5zm242.9 2.5c5.4 3.2 11.7 1.7 15.3-2.5 3.8-4.5 3.8-11 .1-15.5L343.6 208l33.6-40.3c3.8-4.5 3.7-11-.1-15.5-3.8-4.4-10.2-5.4-15.3-2.5l-80 48c-3.6 2.2-5.8 6.1-5.8 10.3s2.2 8.1 5.8 10.3l80 48z"] };
  2075. var faGrinSquintTears = { prefix: 'far', iconName: 'grin-squint-tears', icon: [512, 512, [], "f586", "M117.1 384.1c-25.8 3.7-84 13.7-100.9 30.6-21.9 21.9-21.5 57.9.9 80.3s58.3 22.8 80.3.9C114.3 479 124.3 420.8 128 395c.8-6.4-4.6-11.8-10.9-10.9zm-41.2-41.7C40.3 268 53 176.1 114.6 114.6 152.4 76.8 202.6 56 256 56c36.2 0 70.8 9.8 101.2 27.7 3.8-20.3 8-36.1 12-48.3C333.8 17.2 294.9 8 256 8 192.5 8 129.1 32.2 80.6 80.6c-74.1 74.1-91.3 183.4-52 274 12.2-4.1 27.7-8.3 47.3-12.2zm352.3-187.6c45 76.6 34.9 176.9-30.8 242.6-37.8 37.8-88 58.6-141.4 58.6-30.5 0-59.8-7-86.4-19.8-3.9 19.5-8 35-12.2 47.2 31.4 13.6 65 20.6 98.7 20.6 63.5 0 126.9-24.2 175.4-72.6 78.1-78.1 93.1-195.4 45.2-288.6-12.3 4-28.2 8.1-48.5 12zm-33.3-26.9c25.8-3.7 84-13.7 100.9-30.6 21.9-21.9 21.5-57.9-.9-80.3s-58.3-22.8-80.3-.9C397.7 33 387.7 91.2 384 117c-.8 6.4 4.6 11.8 10.9 10.9zm-187 108.3c-3-3-7.2-4.2-11.4-3.2L106 255.7c-5.7 1.4-9.5 6.7-9.1 12.6.5 5.8 5.1 10.5 10.9 11l52.3 4.8 4.8 52.3c.5 5.8 5.2 10.4 11 10.9h.9c5.5 0 10.3-3.7 11.7-9.1l22.6-90.5c1-4.2-.2-8.5-3.2-11.5zm39.7-25.1l90.5-22.6c5.7-1.4 9.5-6.7 9.1-12.6-.5-5.8-5.1-10.5-10.9-11l-52.3-4.8-4.8-52.3c-.5-5.8-5.2-10.4-11-10.9-5.6-.1-11.2 3.4-12.6 9.1L233 196.5c-1 4.1.2 8.4 3.2 11.4 5 5 11.3 3.2 11.4 3.2zm52 88.5c-29.1 29.1-59.7 52.9-83.9 65.4-9.2 4.8-10 17.5-1.7 23.4 38.9 27.7 107 6.2 143.7-30.6S416 253 388.3 214.1c-5.8-8.2-18.5-7.6-23.4 1.7-12.3 24.2-36.2 54.7-65.3 83.8z"] };
  2076. var faGrinStars = { prefix: 'far', iconName: 'grin-stars', icon: [496, 512, [], "f587", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm105.6-151.4c-25.9 8.3-64.4 13.1-105.6 13.1s-79.6-4.8-105.6-13.1c-9.8-3.1-19.4 5.3-17.7 15.3 7.9 47.2 71.3 80 123.3 80s115.3-32.9 123.3-80c1.6-9.8-7.7-18.4-17.7-15.3zm-227.9-57.5c-1 6.2 5.4 11 11 7.9l31.3-16.3 31.3 16.3c5.6 3.1 12-1.7 11-7.9l-6-34.9 25.4-24.6c4.5-4.5 1.9-12.2-4.3-13.2l-34.9-5-15.5-31.6c-2.9-5.8-11-5.8-13.9 0l-15.5 31.6-34.9 5c-6.2.9-8.9 8.6-4.3 13.2l25.4 24.6-6.1 34.9zm259.7-72.7l-34.9-5-15.5-31.6c-2.9-5.8-11-5.8-13.9 0l-15.5 31.6-34.9 5c-6.2.9-8.9 8.6-4.3 13.2l25.4 24.6-6 34.9c-1 6.2 5.4 11 11 7.9l31.3-16.3 31.3 16.3c5.6 3.1 12-1.7 11-7.9l-6-34.9 25.4-24.6c4.5-4.6 1.8-12.2-4.4-13.2z"] };
  2077. var faGrinTears = { prefix: 'far', iconName: 'grin-tears', icon: [640, 512, [], "f588", "M117.1 256.1c-25.8 3.7-84 13.7-100.9 30.6-21.9 21.9-21.5 57.9.9 80.3s58.3 22.8 80.3.9C114.3 351 124.3 292.8 128 267c.8-6.4-4.6-11.8-10.9-10.9zm506.7 30.6c-16.9-16.9-75.1-26.9-100.9-30.6-6.3-.9-11.7 4.5-10.8 10.8 3.7 25.8 13.7 84 30.6 100.9 21.9 21.9 57.9 21.5 80.3-.9 22.3-22.3 22.7-58.3.8-80.2zm-126.6 61.7C463.8 412.3 396.9 456 320 456c-76.9 0-143.8-43.7-177.2-107.6-12.5 37.4-25.2 43.9-28.3 46.5C159.1 460.7 234.5 504 320 504s160.9-43.3 205.5-109.1c-3.2-2.7-15.9-9.2-28.3-46.5zM122.7 224.5C137.9 129.2 220.5 56 320 56c99.5 0 182.1 73.2 197.3 168.5 2.1-.2 5.2-2.4 49.5 7C554.4 106 448.7 8 320 8S85.6 106 73.2 231.4c44.5-9.4 47.1-7.2 49.5-6.9zM320 400c51.9 0 115.3-32.9 123.3-80 1.7-9.9-7.7-18.5-17.7-15.3-25.9 8.3-64.4 13.1-105.6 13.1s-79.6-4.8-105.6-13.1c-9.8-3.1-19.4 5.3-17.7 15.3 8 47.1 71.4 80 123.3 80zm130.3-168.3c3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.6 6.2 4.6 9.3 3.7zM240 189.4c12.3 0 23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.8 19.2-21.6 31.5-21.6z"] };
  2078. var faGrinTongue = { prefix: 'far', iconName: 'grin-tongue', icon: [496, 512, [], "f589", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm64 400c0 35.6-29.1 64.5-64.9 64-35.1-.5-63.1-29.8-63.1-65v-42.8l17.7-8.8c15-7.5 31.5 1.7 34.9 16.5l2.8 12.1c2.1 9.2 15.2 9.2 17.3 0l2.8-12.1c3.4-14.8 19.8-24.1 34.9-16.5l17.7 8.8V408zm28.2 25.3c2.2-8.1 3.8-16.5 3.8-25.3v-43.5c14.2-12.4 24.4-27.5 27.3-44.5 1.7-9.9-7.7-18.5-17.7-15.3-25.9 8.3-64.4 13.1-105.6 13.1s-79.6-4.8-105.6-13.1c-9.9-3.1-19.4 5.3-17.7 15.3 2.9 17 13.1 32.1 27.3 44.5V408c0 8.8 1.6 17.2 3.8 25.3C91.8 399.9 48 333 48 256c0-110.3 89.7-200 200-200s200 89.7 200 200c0 77-43.8 143.9-107.8 177.3zM168 176c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32z"] };
  2079. var faGrinTongueSquint = { prefix: 'far', iconName: 'grin-tongue-squint', icon: [496, 512, [], "f58a", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm64 400c0 35.6-29.1 64.5-64.9 64-35.1-.5-63.1-29.8-63.1-65v-42.8l17.7-8.8c15-7.5 31.5 1.7 34.9 16.5l2.8 12.1c2.1 9.2 15.2 9.2 17.3 0l2.8-12.1c3.4-14.8 19.8-24.1 34.9-16.5l17.7 8.8V408zm28.2 25.3c2.2-8.1 3.8-16.5 3.8-25.3v-43.5c14.2-12.4 24.4-27.5 27.3-44.5 1.7-9.9-7.7-18.5-17.7-15.3-25.9 8.3-64.4 13.1-105.6 13.1s-79.6-4.8-105.6-13.1c-9.9-3.1-19.4 5.3-17.7 15.3 2.9 17 13.1 32.1 27.3 44.5V408c0 8.8 1.6 17.2 3.8 25.3C91.8 399.9 48 333 48 256c0-110.3 89.7-200 200-200s200 89.7 200 200c0 77-43.8 143.9-107.8 177.3zm36.9-281.1c-3.8-4.4-10.3-5.5-15.3-2.5l-80 48c-3.6 2.2-5.8 6.1-5.8 10.3s2.2 8.1 5.8 10.3l80 48c5.4 3.2 11.7 1.7 15.3-2.5 3.8-4.5 3.8-11 .1-15.5L343.6 208l33.6-40.3c3.8-4.5 3.7-11.1-.1-15.5zm-162.9 45.5l-80-48c-5-3-11.4-2-15.3 2.5-3.8 4.5-3.8 11-.1 15.5l33.6 40.3-33.6 40.3c-3.8 4.5-3.7 11 .1 15.5 3.6 4.2 9.9 5.7 15.3 2.5l80-48c3.6-2.2 5.8-6.1 5.8-10.3s-2.2-8.1-5.8-10.3z"] };
  2080. var faGrinTongueWink = { prefix: 'far', iconName: 'grin-tongue-wink', icon: [496, 512, [], "f58b", "M152 180c-25.7 0-55.9 16.9-59.8 42.1-.8 5 1.7 10 6.1 12.4 4.4 2.4 9.9 1.8 13.7-1.6l9.5-8.5c14.8-13.2 46.2-13.2 61 0l9.5 8.5c2.5 2.2 8 4.7 13.7 1.6 4.4-2.4 6.9-7.4 6.1-12.4-3.9-25.2-34.1-42.1-59.8-42.1zm176-52c-44.2 0-80 35.8-80 80s35.8 80 80 80 80-35.8 80-80-35.8-80-80-80zm0 128c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm0-72c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zM248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm64 400c0 35.6-29.1 64.5-64.9 64-35.1-.5-63.1-29.8-63.1-65v-42.8l17.7-8.8c15-7.5 31.5 1.7 34.9 16.5l2.8 12.1c2.1 9.2 15.2 9.2 17.3 0l2.8-12.1c3.4-14.8 19.8-24.1 34.9-16.5l17.7 8.8V408zm28.2 25.3c2.2-8.1 3.8-16.5 3.8-25.3v-43.5c14.2-12.4 24.4-27.5 27.3-44.5 1.7-9.9-7.7-18.5-17.7-15.3-25.9 8.3-64.4 13.1-105.6 13.1s-79.6-4.8-105.6-13.1c-9.9-3.1-19.4 5.3-17.7 15.3 2.9 17 13.1 32.1 27.3 44.5V408c0 8.8 1.6 17.2 3.8 25.3C91.8 399.9 48 333 48 256c0-110.3 89.7-200 200-200s200 89.7 200 200c0 77-43.8 143.9-107.8 177.3z"] };
  2081. var faGrinWink = { prefix: 'far', iconName: 'grin-wink', icon: [496, 512, [], "f58c", "M328 180c-25.69 0-55.88 16.92-59.86 42.12-1.75 11.22 11.5 18.24 19.83 10.84l9.55-8.48c14.81-13.19 46.16-13.19 60.97 0l9.55 8.48c8.48 7.43 21.56.25 19.83-10.84C383.88 196.92 353.69 180 328 180zm-160 60c17.67 0 32-14.33 32-32s-14.33-32-32-32-32 14.33-32 32 14.33 32 32 32zm185.55 64.64c-25.93 8.3-64.4 13.06-105.55 13.06s-79.62-4.75-105.55-13.06c-9.94-3.13-19.4 5.37-17.71 15.34C132.67 367.13 196.06 400 248 400s115.33-32.87 123.26-80.02c1.68-9.89-7.67-18.48-17.71-15.34zM248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm0 448c-110.28 0-200-89.72-200-200S137.72 56 248 56s200 89.72 200 200-89.72 200-200 200z"] };
  2082. var faHandLizard = { prefix: 'far', iconName: 'hand-lizard', icon: [576, 512, [], "f258", "M556.686 290.542L410.328 64.829C397.001 44.272 374.417 32 349.917 32H56C25.121 32 0 57.122 0 88v8c0 44.112 35.888 80 80 80h196.042l-18.333 48H144c-48.523 0-88 39.477-88 88 0 30.879 25.121 56 56 56h131.552c2.987 0 5.914.549 8.697 1.631L352 408.418V480h224V355.829c0-23.225-6.679-45.801-19.314-65.287zM528 432H400v-23.582c0-19.948-12.014-37.508-30.604-44.736l-99.751-38.788A71.733 71.733 0 0 0 243.552 320H112c-4.411 0-8-3.589-8-8 0-22.056 17.944-40 40-40h113.709c19.767 0 37.786-12.407 44.84-30.873l24.552-64.281c8.996-23.553-8.428-48.846-33.63-48.846H80c-17.645 0-32-14.355-32-32v-8c0-4.411 3.589-8 8-8h293.917c8.166 0 15.693 4.09 20.137 10.942l146.358 225.715A71.84 71.84 0 0 1 528 355.829V432z"] };
  2083. var faHandPaper = { prefix: 'far', iconName: 'hand-paper', icon: [448, 512, [], "f256", "M372.57 112.641v-10.825c0-43.612-40.52-76.691-83.039-65.546-25.629-49.5-94.09-47.45-117.982.747C130.269 26.456 89.144 57.945 89.144 102v126.13c-19.953-7.427-43.308-5.068-62.083 8.871-29.355 21.796-35.794 63.333-14.55 93.153L132.48 498.569a32 32 0 0 0 26.062 13.432h222.897c14.904 0 27.835-10.289 31.182-24.813l30.184-130.958A203.637 203.637 0 0 0 448 310.564V179c0-40.62-35.523-71.992-75.43-66.359zm27.427 197.922c0 11.731-1.334 23.469-3.965 34.886L368.707 464h-201.92L51.591 302.303c-14.439-20.27 15.023-42.776 29.394-22.605l27.128 38.079c8.995 12.626 29.031 6.287 29.031-9.283V102c0-25.645 36.571-24.81 36.571.691V256c0 8.837 7.163 16 16 16h6.856c8.837 0 16-7.163 16-16V67c0-25.663 36.571-24.81 36.571.691V256c0 8.837 7.163 16 16 16h6.856c8.837 0 16-7.163 16-16V101.125c0-25.672 36.57-24.81 36.57.691V256c0 8.837 7.163 16 16 16h6.857c8.837 0 16-7.163 16-16v-76.309c0-26.242 36.57-25.64 36.57-.691v131.563z"] };
  2084. var faHandPeace = { prefix: 'far', iconName: 'hand-peace', icon: [448, 512, [], "f25b", "M362.146 191.976c-13.71-21.649-38.761-34.016-65.006-30.341V74c0-40.804-32.811-74-73.141-74-40.33 0-73.14 33.196-73.14 74L160 168l-18.679-78.85C126.578 50.843 83.85 32.11 46.209 47.208 8.735 62.238-9.571 104.963 5.008 142.85l55.757 144.927c-30.557 24.956-43.994 57.809-24.733 92.218l54.853 97.999C102.625 498.97 124.73 512 148.575 512h205.702c30.744 0 57.558-21.44 64.555-51.797l27.427-118.999a67.801 67.801 0 0 0 1.729-15.203L448 256c0-44.956-43.263-77.343-85.854-64.024zM399.987 326c0 1.488-.169 2.977-.502 4.423l-27.427 119.001c-1.978 8.582-9.29 14.576-17.782 14.576H148.575c-6.486 0-12.542-3.621-15.805-9.449l-54.854-98c-4.557-8.141-2.619-18.668 4.508-24.488l26.647-21.764a16 16 0 0 0 4.812-18.139l-64.09-166.549C37.226 92.956 84.37 74.837 96.51 106.389l59.784 155.357A16 16 0 0 0 171.227 272h11.632c8.837 0 16-7.163 16-16V74c0-34.375 50.281-34.43 50.281 0v182c0 8.837 7.163 16 16 16h6.856c8.837 0 16-7.163 16-16v-28c0-25.122 36.567-25.159 36.567 0v28c0 8.837 7.163 16 16 16h6.856c8.837 0 16-7.163 16-16 0-25.12 36.567-25.16 36.567 0v70z"] };
  2085. var faHandPointDown = { prefix: 'far', iconName: 'hand-point-down', icon: [448, 512, [], "f0a7", "M188.8 512c45.616 0 83.2-37.765 83.2-83.2v-35.647a93.148 93.148 0 0 0 22.064-7.929c22.006 2.507 44.978-3.503 62.791-15.985C409.342 368.1 448 331.841 448 269.299V248c0-60.063-40-98.512-40-127.2v-2.679c4.952-5.747 8-13.536 8-22.12V32c0-17.673-12.894-32-28.8-32H156.8C140.894 0 128 14.327 128 32v64c0 8.584 3.048 16.373 8 22.12v2.679c0 6.964-6.193 14.862-23.668 30.183l-.148.129-.146.131c-9.937 8.856-20.841 18.116-33.253 25.851C48.537 195.798 0 207.486 0 252.8c0 56.928 35.286 92 83.2 92 8.026 0 15.489-.814 22.4-2.176V428.8c0 45.099 38.101 83.2 83.2 83.2zm0-48c-18.7 0-35.2-16.775-35.2-35.2V270.4c-17.325 0-35.2 26.4-70.4 26.4-26.4 0-35.2-20.625-35.2-44 0-8.794 32.712-20.445 56.1-34.926 14.575-9.074 27.225-19.524 39.875-30.799 18.374-16.109 36.633-33.836 39.596-59.075h176.752C364.087 170.79 400 202.509 400 248v21.299c0 40.524-22.197 57.124-61.325 50.601-8.001 14.612-33.979 24.151-53.625 12.925-18.225 19.365-46.381 17.787-61.05 4.95V428.8c0 18.975-16.225 35.2-35.2 35.2zM328 64c0-13.255 10.745-24 24-24s24 10.745 24 24-10.745 24-24 24-24-10.745-24-24z"] };
  2086. var faHandPointLeft = { prefix: 'far', iconName: 'hand-point-left', icon: [512, 512, [], "f0a5", "M0 220.8C0 266.416 37.765 304 83.2 304h35.647a93.148 93.148 0 0 0 7.929 22.064c-2.507 22.006 3.503 44.978 15.985 62.791C143.9 441.342 180.159 480 242.701 480H264c60.063 0 98.512-40 127.2-40h2.679c5.747 4.952 13.536 8 22.12 8h64c17.673 0 32-12.894 32-28.8V188.8c0-15.906-14.327-28.8-32-28.8h-64c-8.584 0-16.373 3.048-22.12 8H391.2c-6.964 0-14.862-6.193-30.183-23.668l-.129-.148-.131-.146c-8.856-9.937-18.116-20.841-25.851-33.253C316.202 80.537 304.514 32 259.2 32c-56.928 0-92 35.286-92 83.2 0 8.026.814 15.489 2.176 22.4H83.2C38.101 137.6 0 175.701 0 220.8zm48 0c0-18.7 16.775-35.2 35.2-35.2h158.4c0-17.325-26.4-35.2-26.4-70.4 0-26.4 20.625-35.2 44-35.2 8.794 0 20.445 32.712 34.926 56.1 9.074 14.575 19.524 27.225 30.799 39.875 16.109 18.374 33.836 36.633 59.075 39.596v176.752C341.21 396.087 309.491 432 264 432h-21.299c-40.524 0-57.124-22.197-50.601-61.325-14.612-8.001-24.151-33.979-12.925-53.625-19.365-18.225-17.787-46.381-4.95-61.05H83.2C64.225 256 48 239.775 48 220.8zM448 360c13.255 0 24 10.745 24 24s-10.745 24-24 24-24-10.745-24-24 10.745-24 24-24z"] };
  2087. var faHandPointRight = { prefix: 'far', iconName: 'hand-point-right', icon: [512, 512, [], "f0a4", "M428.8 137.6h-86.177a115.52 115.52 0 0 0 2.176-22.4c0-47.914-35.072-83.2-92-83.2-45.314 0-57.002 48.537-75.707 78.784-7.735 12.413-16.994 23.317-25.851 33.253l-.131.146-.129.148C135.662 161.807 127.764 168 120.8 168h-2.679c-5.747-4.952-13.536-8-22.12-8H32c-17.673 0-32 12.894-32 28.8v230.4C0 435.106 14.327 448 32 448h64c8.584 0 16.373-3.048 22.12-8h2.679c28.688 0 67.137 40 127.2 40h21.299c62.542 0 98.8-38.658 99.94-91.145 12.482-17.813 18.491-40.785 15.985-62.791A93.148 93.148 0 0 0 393.152 304H428.8c45.435 0 83.2-37.584 83.2-83.2 0-45.099-38.101-83.2-83.2-83.2zm0 118.4h-91.026c12.837 14.669 14.415 42.825-4.95 61.05 11.227 19.646 1.687 45.624-12.925 53.625 6.524 39.128-10.076 61.325-50.6 61.325H248c-45.491 0-77.21-35.913-120-39.676V215.571c25.239-2.964 42.966-21.222 59.075-39.596 11.275-12.65 21.725-25.3 30.799-39.875C232.355 112.712 244.006 80 252.8 80c23.375 0 44 8.8 44 35.2 0 35.2-26.4 53.075-26.4 70.4h158.4c18.425 0 35.2 16.5 35.2 35.2 0 18.975-16.225 35.2-35.2 35.2zM88 384c0 13.255-10.745 24-24 24s-24-10.745-24-24 10.745-24 24-24 24 10.745 24 24z"] };
  2088. var faHandPointUp = { prefix: 'far', iconName: 'hand-point-up', icon: [448, 512, [], "f0a6", "M105.6 83.2v86.177a115.52 115.52 0 0 0-22.4-2.176c-47.914 0-83.2 35.072-83.2 92 0 45.314 48.537 57.002 78.784 75.707 12.413 7.735 23.317 16.994 33.253 25.851l.146.131.148.129C129.807 376.338 136 384.236 136 391.2v2.679c-4.952 5.747-8 13.536-8 22.12v64c0 17.673 12.894 32 28.8 32h230.4c15.906 0 28.8-14.327 28.8-32v-64c0-8.584-3.048-16.373-8-22.12V391.2c0-28.688 40-67.137 40-127.2v-21.299c0-62.542-38.658-98.8-91.145-99.94-17.813-12.482-40.785-18.491-62.791-15.985A93.148 93.148 0 0 0 272 118.847V83.2C272 37.765 234.416 0 188.8 0c-45.099 0-83.2 38.101-83.2 83.2zm118.4 0v91.026c14.669-12.837 42.825-14.415 61.05 4.95 19.646-11.227 45.624-1.687 53.625 12.925 39.128-6.524 61.325 10.076 61.325 50.6V264c0 45.491-35.913 77.21-39.676 120H183.571c-2.964-25.239-21.222-42.966-39.596-59.075-12.65-11.275-25.3-21.725-39.875-30.799C80.712 279.645 48 267.994 48 259.2c0-23.375 8.8-44 35.2-44 35.2 0 53.075 26.4 70.4 26.4V83.2c0-18.425 16.5-35.2 35.2-35.2 18.975 0 35.2 16.225 35.2 35.2zM352 424c13.255 0 24 10.745 24 24s-10.745 24-24 24-24-10.745-24-24 10.745-24 24-24z"] };
  2089. var faHandPointer = { prefix: 'far', iconName: 'hand-pointer', icon: [448, 512, [], "f25a", "M358.182 179.361c-19.493-24.768-52.679-31.945-79.872-19.098-15.127-15.687-36.182-22.487-56.595-19.629V67c0-36.944-29.736-67-66.286-67S89.143 30.056 89.143 67v161.129c-19.909-7.41-43.272-5.094-62.083 8.872-29.355 21.795-35.793 63.333-14.55 93.152l109.699 154.001C134.632 501.59 154.741 512 176 512h178.286c30.802 0 57.574-21.5 64.557-51.797l27.429-118.999A67.873 67.873 0 0 0 448 326v-84c0-46.844-46.625-79.273-89.818-62.639zM80.985 279.697l27.126 38.079c8.995 12.626 29.031 6.287 29.031-9.283V67c0-25.12 36.571-25.16 36.571 0v175c0 8.836 7.163 16 16 16h6.857c8.837 0 16-7.164 16-16v-35c0-25.12 36.571-25.16 36.571 0v35c0 8.836 7.163 16 16 16H272c8.837 0 16-7.164 16-16v-21c0-25.12 36.571-25.16 36.571 0v21c0 8.836 7.163 16 16 16h6.857c8.837 0 16-7.164 16-16 0-25.121 36.571-25.16 36.571 0v84c0 1.488-.169 2.977-.502 4.423l-27.43 119.001c-1.978 8.582-9.29 14.576-17.782 14.576H176c-5.769 0-11.263-2.878-14.697-7.697l-109.712-154c-14.406-20.223 14.994-42.818 29.394-22.606zM176.143 400v-96c0-8.837 6.268-16 14-16h6c7.732 0 14 7.163 14 16v96c0 8.837-6.268 16-14 16h-6c-7.733 0-14-7.163-14-16zm75.428 0v-96c0-8.837 6.268-16 14-16h6c7.732 0 14 7.163 14 16v96c0 8.837-6.268 16-14 16h-6c-7.732 0-14-7.163-14-16zM327 400v-96c0-8.837 6.268-16 14-16h6c7.732 0 14 7.163 14 16v96c0 8.837-6.268 16-14 16h-6c-7.732 0-14-7.163-14-16z"] };
  2090. var faHandRock = { prefix: 'far', iconName: 'hand-rock', icon: [512, 512, [], "f255", "M408.864 79.052c-22.401-33.898-66.108-42.273-98.813-23.588-29.474-31.469-79.145-31.093-108.334-.022-47.16-27.02-108.71 5.055-110.671 60.806C44.846 105.407 0 140.001 0 187.429v56.953c0 32.741 14.28 63.954 39.18 85.634l97.71 85.081c4.252 3.702 3.11 5.573 3.11 32.903 0 17.673 14.327 32 32 32h252c17.673 0 32-14.327 32-32 0-23.513-1.015-30.745 3.982-42.37l42.835-99.656c6.094-14.177 9.183-29.172 9.183-44.568V146.963c0-52.839-54.314-88.662-103.136-67.911zM464 261.406a64.505 64.505 0 0 1-5.282 25.613l-42.835 99.655c-5.23 12.171-7.883 25.04-7.883 38.25V432H188v-10.286c0-16.37-7.14-31.977-19.59-42.817l-97.71-85.08C56.274 281.255 48 263.236 48 244.381v-56.953c0-33.208 52-33.537 52 .677v41.228a16 16 0 0 0 5.493 12.067l7 6.095A16 16 0 0 0 139 235.429V118.857c0-33.097 52-33.725 52 .677v26.751c0 8.836 7.164 16 16 16h7c8.836 0 16-7.164 16-16v-41.143c0-33.134 52-33.675 52 .677v40.466c0 8.836 7.163 16 16 16h7c8.837 0 16-7.164 16-16v-27.429c0-33.03 52-33.78 52 .677v26.751c0 8.836 7.163 16 16 16h7c8.837 0 16-7.164 16-16 0-33.146 52-33.613 52 .677v114.445z"] };
  2091. var faHandScissors = { prefix: 'far', iconName: 'hand-scissors', icon: [512, 512, [], "f257", "M256 480l70-.013c5.114 0 10.231-.583 15.203-1.729l118.999-27.427C490.56 443.835 512 417.02 512 386.277V180.575c0-23.845-13.03-45.951-34.005-57.69l-97.999-54.853c-34.409-19.261-67.263-5.824-92.218 24.733L142.85 37.008c-37.887-14.579-80.612 3.727-95.642 41.201-15.098 37.642 3.635 80.37 41.942 95.112L168 192l-94-9.141c-40.804 0-74 32.811-74 73.14 0 40.33 33.196 73.141 74 73.141h87.635c-3.675 26.245 8.692 51.297 30.341 65.006C178.657 436.737 211.044 480 256 480zm0-48.013c-25.16 0-25.12-36.567 0-36.567 8.837 0 16-7.163 16-16v-6.856c0-8.837-7.163-16-16-16h-28c-25.159 0-25.122-36.567 0-36.567h28c8.837 0 16-7.163 16-16v-6.856c0-8.837-7.163-16-16-16H74c-34.43 0-34.375-50.281 0-50.281h182c8.837 0 16-7.163 16-16v-11.632a16 16 0 0 0-10.254-14.933L106.389 128.51c-31.552-12.14-13.432-59.283 19.222-46.717l166.549 64.091a16.001 16.001 0 0 0 18.139-4.812l21.764-26.647c5.82-7.127 16.348-9.064 24.488-4.508l98 54.854c5.828 3.263 9.449 9.318 9.449 15.805v205.701c0 8.491-5.994 15.804-14.576 17.782l-119.001 27.427a19.743 19.743 0 0 1-4.423.502h-70z"] };
  2092. var faHandSpock = { prefix: 'far', iconName: 'hand-spock', icon: [512, 512, [], "f259", "M21.096 381.79l129.092 121.513a32 32 0 0 0 21.932 8.698h237.6c14.17 0 26.653-9.319 30.68-22.904l31.815-107.313A115.955 115.955 0 0 0 477 348.811v-36.839c0-4.051.476-8.104 1.414-12.045l31.73-133.41c10.099-42.412-22.316-82.738-65.544-82.525-4.144-24.856-22.543-47.165-49.85-53.992-35.803-8.952-72.227 12.655-81.25 48.75L296.599 184 274.924 52.01c-8.286-36.07-44.303-58.572-80.304-50.296-29.616 6.804-50.138 32.389-51.882 61.295-42.637.831-73.455 40.563-64.071 81.844l31.04 136.508c-27.194-22.515-67.284-19.992-91.482 5.722-25.376 26.961-24.098 69.325 2.871 94.707zm32.068-61.811l.002-.001c7.219-7.672 19.241-7.98 26.856-.813l53.012 49.894C143.225 378.649 160 371.4 160 357.406v-69.479c0-1.193-.134-2.383-.397-3.546l-34.13-150.172c-5.596-24.617 31.502-32.86 37.054-8.421l30.399 133.757a16 16 0 0 0 15.603 12.454h8.604c10.276 0 17.894-9.567 15.594-19.583l-41.62-181.153c-5.623-24.469 31.39-33.076 37.035-8.508l45.22 196.828A16 16 0 0 0 288.956 272h13.217a16 16 0 0 0 15.522-12.119l42.372-169.49c6.104-24.422 42.962-15.159 36.865 9.217L358.805 252.12c-2.521 10.088 5.115 19.88 15.522 19.88h9.694a16 16 0 0 0 15.565-12.295L426.509 146.6c5.821-24.448 42.797-15.687 36.966 8.802L431.72 288.81a100.094 100.094 0 0 0-2.72 23.162v36.839c0 6.548-.943 13.051-2.805 19.328L397.775 464h-219.31L53.978 346.836c-7.629-7.18-7.994-19.229-.814-26.857z"] };
  2093. var faHandshake = { prefix: 'far', iconName: 'handshake', icon: [640, 512, [], "f2b5", "M519.2 127.9l-47.6-47.6A56.252 56.252 0 0 0 432 64H205.2c-14.8 0-29.1 5.9-39.6 16.3L118 127.9H0v255.7h64c17.6 0 31.8-14.2 31.9-31.7h9.1l84.6 76.4c30.9 25.1 73.8 25.7 105.6 3.8 12.5 10.8 26 15.9 41.1 15.9 18.2 0 35.3-7.4 48.8-24 22.1 8.7 48.2 2.6 64-16.8l26.2-32.3c5.6-6.9 9.1-14.8 10.9-23h57.9c.1 17.5 14.4 31.7 31.9 31.7h64V127.9H519.2zM48 351.6c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16c0 8.9-7.2 16-16 16zm390-6.9l-26.1 32.2c-2.8 3.4-7.8 4-11.3 1.2l-23.9-19.4-30 36.5c-6 7.3-15 4.8-18 2.4l-36.8-31.5-15.6 19.2c-13.9 17.1-39.2 19.7-55.3 6.6l-97.3-88H96V175.8h41.9l61.7-61.6c2-.8 3.7-1.5 5.7-2.3H262l-38.7 35.5c-29.4 26.9-31.1 72.3-4.4 101.3 14.8 16.2 61.2 41.2 101.5 4.4l8.2-7.5 108.2 87.8c3.4 2.8 3.9 7.9 1.2 11.3zm106-40.8h-69.2c-2.3-2.8-4.9-5.4-7.7-7.7l-102.7-83.4 12.5-11.4c6.5-6 7-16.1 1-22.6L367 167.1c-6-6.5-16.1-6.9-22.6-1l-55.2 50.6c-9.5 8.7-25.7 9.4-34.6 0-9.3-9.9-8.5-25.1 1.2-33.9l65.6-60.1c7.4-6.8 17-10.5 27-10.5l83.7-.2c2.1 0 4.1.8 5.5 2.3l61.7 61.6H544v128zm48 47.7c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16c0 8.9-7.2 16-16 16z"] };
  2094. var faHdd = { prefix: 'far', iconName: 'hdd', icon: [576, 512, [], "f0a0", "M567.403 235.642L462.323 84.589A48 48 0 0 0 422.919 64H153.081a48 48 0 0 0-39.404 20.589L8.597 235.642A48.001 48.001 0 0 0 0 263.054V400c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V263.054c0-9.801-3-19.366-8.597-27.412zM153.081 112h269.838l77.913 112H75.168l77.913-112zM528 400H48V272h480v128zm-32-64c0 17.673-14.327 32-32 32s-32-14.327-32-32 14.327-32 32-32 32 14.327 32 32zm-96 0c0 17.673-14.327 32-32 32s-32-14.327-32-32 14.327-32 32-32 32 14.327 32 32z"] };
  2095. var faHeart = { prefix: 'far', iconName: 'heart', icon: [512, 512, [], "f004", "M458.4 64.3C400.6 15.7 311.3 23 256 79.3 200.7 23 111.4 15.6 53.6 64.3-21.6 127.6-10.6 230.8 43 285.5l175.4 178.7c10 10.2 23.4 15.9 37.6 15.9 14.3 0 27.6-5.6 37.6-15.8L469 285.6c53.5-54.7 64.7-157.9-10.6-221.3zm-23.6 187.5L259.4 430.5c-2.4 2.4-4.4 2.4-6.8 0L77.2 251.8c-36.5-37.2-43.9-107.6 7.3-150.7 38.9-32.7 98.9-27.8 136.5 10.5l35 35.7 35-35.7c37.8-38.5 97.8-43.2 136.5-10.6 51.1 43.1 43.5 113.9 7.3 150.8z"] };
  2096. var faHospital = { prefix: 'far', iconName: 'hospital', icon: [448, 512, [], "f0f8", "M128 244v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12zm140 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12zm-76 84v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm76 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12zm180 124v36H0v-36c0-6.627 5.373-12 12-12h19.5V85.035C31.5 73.418 42.245 64 55.5 64H144V24c0-13.255 10.745-24 24-24h112c13.255 0 24 10.745 24 24v40h88.5c13.255 0 24 9.418 24 21.035V464H436c6.627 0 12 5.373 12 12zM79.5 463H192v-67c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v67h112.5V112H304v24c0 13.255-10.745 24-24 24H168c-13.255 0-24-10.745-24-24v-24H79.5v351zM266 64h-26V38a6 6 0 0 0-6-6h-20a6 6 0 0 0-6 6v26h-26a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6h26v26a6 6 0 0 0 6 6h20a6 6 0 0 0 6-6V96h26a6 6 0 0 0 6-6V70a6 6 0 0 0-6-6z"] };
  2097. var faHourglass = { prefix: 'far', iconName: 'hourglass', icon: [384, 512, [], "f254", "M368 48h4c6.627 0 12-5.373 12-12V12c0-6.627-5.373-12-12-12H12C5.373 0 0 5.373 0 12v24c0 6.627 5.373 12 12 12h4c0 80.564 32.188 165.807 97.18 208C47.899 298.381 16 383.9 16 464h-4c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h360c6.627 0 12-5.373 12-12v-24c0-6.627-5.373-12-12-12h-4c0-80.564-32.188-165.807-97.18-208C336.102 213.619 368 128.1 368 48zM64 48h256c0 101.62-57.307 184-128 184S64 149.621 64 48zm256 416H64c0-101.62 57.308-184 128-184s128 82.38 128 184z"] };
  2098. var faIdBadge = { prefix: 'far', iconName: 'id-badge', icon: [384, 512, [], "f2c1", "M336 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm0 464H48V48h288v416zM144 112h96c8.8 0 16-7.2 16-16s-7.2-16-16-16h-96c-8.8 0-16 7.2-16 16s7.2 16 16 16zm48 176c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm-89.6 128h179.2c12.4 0 22.4-8.6 22.4-19.2v-19.2c0-31.8-30.1-57.6-67.2-57.6-10.8 0-18.7 8-44.8 8-26.9 0-33.4-8-44.8-8-37.1 0-67.2 25.8-67.2 57.6v19.2c0 10.6 10 19.2 22.4 19.2z"] };
  2099. var faIdCard = { prefix: 'far', iconName: 'id-card', icon: [576, 512, [], "f2c2", "M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 400H303.2c.9-4.5.8 3.6.8-22.4 0-31.8-30.1-57.6-67.2-57.6-10.8 0-18.7 8-44.8 8-26.9 0-33.4-8-44.8-8-37.1 0-67.2 25.8-67.2 57.6 0 26-.2 17.9.8 22.4H48V144h480v288zm-168-80h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm-168 96c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64z"] };
  2100. var faImage = { prefix: 'far', iconName: 'image', icon: [512, 512, [], "f03e", "M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm-6 336H54a6 6 0 0 1-6-6V118a6 6 0 0 1 6-6h404a6 6 0 0 1 6 6v276a6 6 0 0 1-6 6zM128 152c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zM96 352h320v-80l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L192 304l-39.515-39.515c-4.686-4.686-12.284-4.686-16.971 0L96 304v48z"] };
  2101. var faImages = { prefix: 'far', iconName: 'images', icon: [576, 512, [], "f302", "M480 416v16c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V176c0-26.51 21.49-48 48-48h16v48H54a6 6 0 0 0-6 6v244a6 6 0 0 0 6 6h372a6 6 0 0 0 6-6v-10h48zm42-336H150a6 6 0 0 0-6 6v244a6 6 0 0 0 6 6h372a6 6 0 0 0 6-6V86a6 6 0 0 0-6-6zm6-48c26.51 0 48 21.49 48 48v256c0 26.51-21.49 48-48 48H144c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h384zM264 144c0 22.091-17.909 40-40 40s-40-17.909-40-40 17.909-40 40-40 40 17.909 40 40zm-72 96l39.515-39.515c4.686-4.686 12.284-4.686 16.971 0L288 240l103.515-103.515c4.686-4.686 12.284-4.686 16.971 0L480 208v80H192v-48z"] };
  2102. var faKeyboard = { prefix: 'far', iconName: 'keyboard', icon: [576, 512, [], "f11c", "M528 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm8 336c0 4.411-3.589 8-8 8H48c-4.411 0-8-3.589-8-8V112c0-4.411 3.589-8 8-8h480c4.411 0 8 3.589 8 8v288zM170 270v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm96 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm96 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm96 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm-336 82v-28c0-6.627-5.373-12-12-12H82c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm384 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zM122 188v-28c0-6.627-5.373-12-12-12H82c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm96 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm96 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm96 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm96 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm-98 158v-16c0-6.627-5.373-12-12-12H180c-6.627 0-12 5.373-12 12v16c0 6.627 5.373 12 12 12h216c6.627 0 12-5.373 12-12z"] };
  2103. var faKiss = { prefix: 'far', iconName: 'kiss', icon: [496, 512, [], "f596", "M168 176c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm136 132c0-19.2-28.8-41.5-71.5-44-3.8-.4-7.4 2.4-8.2 6.2-.9 3.8 1.1 7.7 4.7 9.2l16.9 7.2c13 5.5 20.8 13.5 20.8 21.5s-7.8 16-20.7 21.5l-17 7.2c-5.7 2.4-6 12.2 0 14.8l16.9 7.2c13 5.5 20.8 13.5 20.8 21.5s-7.8 16-20.7 21.5l-17 7.2c-3.6 1.5-5.6 5.4-4.7 9.2.8 3.6 4.1 6.2 7.8 6.2h.5c42.8-2.5 71.5-24.8 71.5-44 0-13-13.4-27.3-35.2-36C290.6 335.3 304 321 304 308zM248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm80-280c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32z"] };
  2104. var faKissBeam = { prefix: 'far', iconName: 'kiss-beam', icon: [496, 512, [], "f597", "M168 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2 7.2 5.6 8.3 3.5 1 7.5-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 5.9-4.5 5.6-8.3-3.1-42.1-32-71.4-55.8-71.4zM248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm56-148c0-19.2-28.8-41.5-71.5-44-3.8-.4-7.4 2.4-8.2 6.2-.9 3.8 1.1 7.7 4.7 9.2l16.9 7.2c13 5.5 20.8 13.5 20.8 21.5s-7.8 16-20.7 21.5l-17 7.2c-5.7 2.4-6 12.2 0 14.8l16.9 7.2c13 5.5 20.8 13.5 20.8 21.5s-7.8 16-20.7 21.5l-17 7.2c-3.6 1.5-5.6 5.4-4.7 9.2.8 3.6 4.1 6.2 7.8 6.2h.5c42.8-2.5 71.5-24.8 71.5-44 0-13-13.4-27.3-35.2-36C290.6 335.3 304 321 304 308zm24-156c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2 7.2 5.6 8.3 3.5 1 7.5-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 5.9-4.5 5.6-8.3-3.1-42.1-32-71.4-55.8-71.4z"] };
  2105. var faKissWinkHeart = { prefix: 'far', iconName: 'kiss-wink-heart', icon: [504, 512, [], "f598", "M304 308.5c0-19.2-28.8-41.5-71.5-44-3.8-.4-7.4 2.4-8.2 6.2-.9 3.8 1.1 7.7 4.7 9.2l16.9 7.2c13 5.5 20.8 13.5 20.8 21.5s-7.8 16-20.7 21.5l-17 7.2c-5.7 2.4-6 12.2 0 14.8l16.9 7.2c13 5.5 20.8 13.5 20.8 21.5s-7.8 16-20.7 21.5l-17 7.2c-3.6 1.5-5.6 5.4-4.7 9.2.8 3.6 4.1 6.2 7.8 6.2h.5c42.8-2.5 71.5-24.8 71.5-44 0-13-13.4-27.3-35.2-36 21.7-9.1 35.1-23.4 35.1-36.4zm70.5-83.5l9.5 8.5c3.8 3.3 9.3 4 13.7 1.6 4.4-2.4 6.9-7.4 6.1-12.4-4-25.2-34.2-42.1-59.8-42.1s-55.9 16.9-59.8 42.1c-.8 5 1.7 10 6.1 12.4 5.8 3.1 11.2.7 13.7-1.6l9.5-8.5c14.8-13.2 46.2-13.2 61 0zM136 208.5c0 17.7 14.3 32 32 32s32-14.3 32-32-14.3-32-32-32-32 14.3-32 32zm365.1 194c-8-20.8-31.5-31.5-53.1-25.9l-8.4 2.2-2.3-8.4c-5.9-21.4-27-36.5-49-33-25.2 4-40.6 28.6-34 52.6l22.9 82.6c1.5 5.3 7 8.5 12.4 7.1l83-21.5c24.1-6.3 37.7-31.8 28.5-55.7zM334 436.3c-26.1 12.5-55.2 19.7-86 19.7-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200c0 22.1-3.7 43.3-10.4 63.2 9 6.4 17 14.2 22.6 23.9 6.4.1 12.6 1.4 18.6 2.9 10.9-27.9 17.1-58.2 17.1-90C496 119 385 8 248 8S0 119 0 256s111 248 248 248c35.4 0 68.9-7.5 99.4-20.9-2.5-7.3 4.3 17.2-13.4-46.8z"] };
  2106. var faLaugh = { prefix: 'far', iconName: 'laugh', icon: [496, 512, [], "f599", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm141.4 389.4c-37.8 37.8-88 58.6-141.4 58.6s-103.6-20.8-141.4-58.6S48 309.4 48 256s20.8-103.6 58.6-141.4S194.6 56 248 56s103.6 20.8 141.4 58.6S448 202.6 448 256s-20.8 103.6-58.6 141.4zM328 224c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm-160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm194.4 64H133.6c-8.2 0-14.5 7-13.5 15 7.5 59.2 58.9 105 121.1 105h13.6c62.2 0 113.6-45.8 121.1-105 1-8-5.3-15-13.5-15z"] };
  2107. var faLaughBeam = { prefix: 'far', iconName: 'laugh-beam', icon: [496, 512, [], "f59a", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm141.4 389.4c-37.8 37.8-88 58.6-141.4 58.6s-103.6-20.8-141.4-58.6S48 309.4 48 256s20.8-103.6 58.6-141.4S194.6 56 248 56s103.6 20.8 141.4 58.6S448 202.6 448 256s-20.8 103.6-58.6 141.4zM328 152c-23.8 0-52.7 29.3-56 71.4-.7 8.6 10.8 11.9 14.9 4.5l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c4.1 7.4 15.6 4 14.9-4.5-3.1-42.1-32-71.4-55.8-71.4zm-201 75.9l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c4.1 7.4 15.6 4 14.9-4.5-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.6 8.5 10.9 11.9 15.1 4.5zM362.4 288H133.6c-8.2 0-14.5 7-13.5 15 7.5 59.2 58.9 105 121.1 105h13.6c62.2 0 113.6-45.8 121.1-105 1-8-5.3-15-13.5-15z"] };
  2108. var faLaughSquint = { prefix: 'far', iconName: 'laugh-squint', icon: [496, 512, [], "f59b", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm141.4 389.4c-37.8 37.8-88 58.6-141.4 58.6s-103.6-20.8-141.4-58.6S48 309.4 48 256s20.8-103.6 58.6-141.4S194.6 56 248 56s103.6 20.8 141.4 58.6S448 202.6 448 256s-20.8 103.6-58.6 141.4zM343.6 196l33.6-40.3c8.6-10.3-3.8-24.8-15.4-18l-80 48c-7.8 4.7-7.8 15.9 0 20.6l80 48c11.5 6.8 24-7.6 15.4-18L343.6 196zm-209.4 58.3l80-48c7.8-4.7 7.8-15.9 0-20.6l-80-48c-11.6-6.9-24 7.7-15.4 18l33.6 40.3-33.6 40.3c-8.7 10.4 3.8 24.8 15.4 18zM362.4 288H133.6c-8.2 0-14.5 7-13.5 15 7.5 59.2 58.9 105 121.1 105h13.6c62.2 0 113.6-45.8 121.1-105 1-8-5.3-15-13.5-15z"] };
  2109. var faLaughWink = { prefix: 'far', iconName: 'laugh-wink', icon: [496, 512, [], "f59c", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm141.4 389.4c-37.8 37.8-88 58.6-141.4 58.6s-103.6-20.8-141.4-58.6C68.8 359.6 48 309.4 48 256s20.8-103.6 58.6-141.4C144.4 76.8 194.6 56 248 56s103.6 20.8 141.4 58.6c37.8 37.8 58.6 88 58.6 141.4s-20.8 103.6-58.6 141.4zM328 164c-25.7 0-55.9 16.9-59.9 42.1-1.7 11.2 11.5 18.2 19.8 10.8l9.5-8.5c14.8-13.2 46.2-13.2 61 0l9.5 8.5c8.5 7.4 21.6.3 19.8-10.8-3.8-25.2-34-42.1-59.7-42.1zm-160 60c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm194.4 64H133.6c-8.2 0-14.5 7-13.5 15 7.5 59.2 58.9 105 121.1 105h13.6c62.2 0 113.6-45.8 121.1-105 1-8-5.3-15-13.5-15z"] };
  2110. var faLemon = { prefix: 'far', iconName: 'lemon', icon: [512, 512, [], "f094", "M484.112 27.889C455.989-.233 416.108-8.057 387.059 8.865 347.604 31.848 223.504-41.111 91.196 91.197-41.277 223.672 31.923 347.472 8.866 387.058c-16.922 29.051-9.1 68.932 19.022 97.054 28.135 28.135 68.011 35.938 97.057 19.021 39.423-22.97 163.557 49.969 295.858-82.329 132.474-132.477 59.273-256.277 82.331-295.861 16.922-29.05 9.1-68.931-19.022-97.054zm-22.405 72.894c-38.8 66.609 45.6 165.635-74.845 286.08-120.44 120.443-219.475 36.048-286.076 74.843-22.679 13.207-64.035-27.241-50.493-50.488 38.8-66.609-45.6-165.635 74.845-286.08C245.573 4.702 344.616 89.086 411.219 50.292c22.73-13.24 64.005 27.288 50.488 50.491zm-169.861 8.736c1.37 10.96-6.404 20.957-17.365 22.327-54.846 6.855-135.779 87.787-142.635 142.635-1.373 10.989-11.399 18.734-22.326 17.365-10.961-1.37-18.735-11.366-17.365-22.326 9.162-73.286 104.167-168.215 177.365-177.365 10.953-1.368 20.956 6.403 22.326 17.364z"] };
  2111. var faLifeRing = { prefix: 'far', iconName: 'life-ring', icon: [512, 512, [], "f1cd", "M256 504c136.967 0 248-111.033 248-248S392.967 8 256 8 8 119.033 8 256s111.033 248 248 248zm-103.398-76.72l53.411-53.411c31.806 13.506 68.128 13.522 99.974 0l53.411 53.411c-63.217 38.319-143.579 38.319-206.796 0zM336 256c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80zm91.28 103.398l-53.411-53.411c13.505-31.806 13.522-68.128 0-99.974l53.411-53.411c38.319 63.217 38.319 143.579 0 206.796zM359.397 84.72l-53.411 53.411c-31.806-13.505-68.128-13.522-99.973 0L152.602 84.72c63.217-38.319 143.579-38.319 206.795 0zM84.72 152.602l53.411 53.411c-13.506 31.806-13.522 68.128 0 99.974L84.72 359.398c-38.319-63.217-38.319-143.579 0-206.796z"] };
  2112. var faLightbulb = { prefix: 'far', iconName: 'lightbulb', icon: [352, 512, [], "f0eb", "M176 80c-52.94 0-96 43.06-96 96 0 8.84 7.16 16 16 16s16-7.16 16-16c0-35.3 28.72-64 64-64 8.84 0 16-7.16 16-16s-7.16-16-16-16zM96.06 459.17c0 3.15.93 6.22 2.68 8.84l24.51 36.84c2.97 4.46 7.97 7.14 13.32 7.14h78.85c5.36 0 10.36-2.68 13.32-7.14l24.51-36.84c1.74-2.62 2.67-5.7 2.68-8.84l.05-43.18H96.02l.04 43.18zM176 0C73.72 0 0 82.97 0 176c0 44.37 16.45 84.85 43.56 115.78 16.64 18.99 42.74 58.8 52.42 92.16v.06h48v-.12c-.01-4.77-.72-9.51-2.15-14.07-5.59-17.81-22.82-64.77-62.17-109.67-20.54-23.43-31.52-53.15-31.61-84.14-.2-73.64 59.67-128 127.95-128 70.58 0 128 57.42 128 128 0 30.97-11.24 60.85-31.65 84.14-39.11 44.61-56.42 91.47-62.1 109.46a47.507 47.507 0 0 0-2.22 14.3v.1h48v-.05c9.68-33.37 35.78-73.18 52.42-92.16C335.55 260.85 352 220.37 352 176 352 78.8 273.2 0 176 0z"] };
  2113. var faListAlt = { prefix: 'far', iconName: 'list-alt', icon: [512, 512, [], "f022", "M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zm-6 400H54a6 6 0 0 1-6-6V86a6 6 0 0 1 6-6h404a6 6 0 0 1 6 6v340a6 6 0 0 1-6 6zm-42-92v24c0 6.627-5.373 12-12 12H204c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h200c6.627 0 12 5.373 12 12zm0-96v24c0 6.627-5.373 12-12 12H204c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h200c6.627 0 12 5.373 12 12zm0-96v24c0 6.627-5.373 12-12 12H204c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h200c6.627 0 12 5.373 12 12zm-252 12c0 19.882-16.118 36-36 36s-36-16.118-36-36 16.118-36 36-36 36 16.118 36 36zm0 96c0 19.882-16.118 36-36 36s-36-16.118-36-36 16.118-36 36-36 36 16.118 36 36zm0 96c0 19.882-16.118 36-36 36s-36-16.118-36-36 16.118-36 36-36 36 16.118 36 36z"] };
  2114. var faMap = { prefix: 'far', iconName: 'map', icon: [576, 512, [], "f279", "M560.02 32c-1.96 0-3.98.37-5.96 1.16L384.01 96H384L212 35.28A64.252 64.252 0 0 0 191.76 32c-6.69 0-13.37 1.05-19.81 3.14L20.12 87.95A32.006 32.006 0 0 0 0 117.66v346.32C0 473.17 7.53 480 15.99 480c1.96 0 3.97-.37 5.96-1.16L192 416l172 60.71a63.98 63.98 0 0 0 40.05.15l151.83-52.81A31.996 31.996 0 0 0 576 394.34V48.02c0-9.19-7.53-16.02-15.98-16.02zM224 90.42l128 45.19v285.97l-128-45.19V90.42zM48 418.05V129.07l128-44.53v286.2l-.64.23L48 418.05zm480-35.13l-128 44.53V141.26l.64-.24L528 93.95v288.97z"] };
  2115. var faMeh = { prefix: 'far', iconName: 'meh', icon: [496, 512, [], "f11a", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160-64c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm8 144H160c-13.2 0-24 10.8-24 24s10.8 24 24 24h176c13.2 0 24-10.8 24-24s-10.8-24-24-24z"] };
  2116. var faMehBlank = { prefix: 'far', iconName: 'meh-blank', icon: [496, 512, [], "f5a4", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-280c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32z"] };
  2117. var faMehRollingEyes = { prefix: 'far', iconName: 'meh-rolling-eyes', icon: [496, 512, [], "f5a5", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm88-304c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm0 112c-22.1 0-40-17.9-40-40 0-13.6 7.3-25.1 17.7-32.3-1 2.6-1.7 5.3-1.7 8.3 0 13.3 10.7 24 24 24s24-10.7 24-24c0-2.9-.7-5.7-1.7-8.3 10.4 7.2 17.7 18.7 17.7 32.3 0 22.1-17.9 40-40 40zm-104-40c0-39.8-32.2-72-72-72s-72 32.2-72 72 32.2 72 72 72 72-32.2 72-72zm-112 0c0-13.6 7.3-25.1 17.7-32.3-1 2.6-1.7 5.3-1.7 8.3 0 13.3 10.7 24 24 24s24-10.7 24-24c0-2.9-.7-5.7-1.7-8.3 10.4 7.2 17.7 18.7 17.7 32.3 0 22.1-17.9 40-40 40s-40-17.9-40-40zm192 128H184c-13.2 0-24 10.8-24 24s10.8 24 24 24h128c13.2 0 24-10.8 24-24s-10.8-24-24-24z"] };
  2118. var faMinusSquare = { prefix: 'far', iconName: 'minus-square', icon: [448, 512, [], "f146", "M108 284c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h232c6.6 0 12 5.4 12 12v32c0 6.6-5.4 12-12 12H108zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"] };
  2119. var faMoneyBillAlt = { prefix: 'far', iconName: 'money-bill-alt', icon: [640, 512, [], "f3d1", "M320 144c-53.02 0-96 50.14-96 112 0 61.85 42.98 112 96 112 53 0 96-50.13 96-112 0-61.86-42.98-112-96-112zm40 168c0 4.42-3.58 8-8 8h-64c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h16v-55.44l-.47.31a7.992 7.992 0 0 1-11.09-2.22l-8.88-13.31a7.992 7.992 0 0 1 2.22-11.09l15.33-10.22a23.99 23.99 0 0 1 13.31-4.03H328c4.42 0 8 3.58 8 8v88h16c4.42 0 8 3.58 8 8v16zM608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zm-16 272c-35.35 0-64 28.65-64 64H112c0-35.35-28.65-64-64-64V176c35.35 0 64-28.65 64-64h416c0 35.35 28.65 64 64 64v160z"] };
  2120. var faMoon = { prefix: 'far', iconName: 'moon', icon: [512, 512, [], "f186", "M279.135 512c78.756 0 150.982-35.804 198.844-94.775 28.27-34.831-2.558-85.722-46.249-77.401-82.348 15.683-158.272-47.268-158.272-130.792 0-48.424 26.06-92.292 67.434-115.836 38.745-22.05 28.999-80.788-15.022-88.919A257.936 257.936 0 0 0 279.135 0c-141.36 0-256 114.575-256 256 0 141.36 114.576 256 256 256zm0-464c12.985 0 25.689 1.201 38.016 3.478-54.76 31.163-91.693 90.042-91.693 157.554 0 113.848 103.641 199.2 215.252 177.944C402.574 433.964 344.366 464 279.135 464c-114.875 0-208-93.125-208-208s93.125-208 208-208z"] };
  2121. var faNewspaper = { prefix: 'far', iconName: 'newspaper', icon: [576, 512, [], "f1ea", "M552 64H112c-20.858 0-38.643 13.377-45.248 32H24c-13.255 0-24 10.745-24 24v272c0 30.928 25.072 56 56 56h496c13.255 0 24-10.745 24-24V88c0-13.255-10.745-24-24-24zM48 392V144h16v248c0 4.411-3.589 8-8 8s-8-3.589-8-8zm480 8H111.422c.374-2.614.578-5.283.578-8V112h416v288zM172 280h136c6.627 0 12-5.373 12-12v-96c0-6.627-5.373-12-12-12H172c-6.627 0-12 5.373-12 12v96c0 6.627 5.373 12 12 12zm28-80h80v40h-80v-40zm-40 140v-24c0-6.627 5.373-12 12-12h136c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H172c-6.627 0-12-5.373-12-12zm192 0v-24c0-6.627 5.373-12 12-12h104c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H364c-6.627 0-12-5.373-12-12zm0-144v-24c0-6.627 5.373-12 12-12h104c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H364c-6.627 0-12-5.373-12-12zm0 72v-24c0-6.627 5.373-12 12-12h104c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H364c-6.627 0-12-5.373-12-12z"] };
  2122. var faObjectGroup = { prefix: 'far', iconName: 'object-group', icon: [512, 512, [], "f247", "M500 128c6.627 0 12-5.373 12-12V44c0-6.627-5.373-12-12-12h-72c-6.627 0-12 5.373-12 12v12H96V44c0-6.627-5.373-12-12-12H12C5.373 32 0 37.373 0 44v72c0 6.627 5.373 12 12 12h12v256H12c-6.627 0-12 5.373-12 12v72c0 6.627 5.373 12 12 12h72c6.627 0 12-5.373 12-12v-12h320v12c0 6.627 5.373 12 12 12h72c6.627 0 12-5.373 12-12v-72c0-6.627-5.373-12-12-12h-12V128h12zm-52-64h32v32h-32V64zM32 64h32v32H32V64zm32 384H32v-32h32v32zm416 0h-32v-32h32v32zm-40-64h-12c-6.627 0-12 5.373-12 12v12H96v-12c0-6.627-5.373-12-12-12H72V128h12c6.627 0 12-5.373 12-12v-12h320v12c0 6.627 5.373 12 12 12h12v256zm-36-192h-84v-52c0-6.628-5.373-12-12-12H108c-6.627 0-12 5.372-12 12v168c0 6.628 5.373 12 12 12h84v52c0 6.628 5.373 12 12 12h200c6.627 0 12-5.372 12-12V204c0-6.628-5.373-12-12-12zm-268-24h144v112H136V168zm240 176H232v-24h76c6.627 0 12-5.372 12-12v-76h56v112z"] };
  2123. var faObjectUngroup = { prefix: 'far', iconName: 'object-ungroup', icon: [576, 512, [], "f248", "M564 224c6.627 0 12-5.373 12-12v-72c0-6.627-5.373-12-12-12h-72c-6.627 0-12 5.373-12 12v12h-88v-24h12c6.627 0 12-5.373 12-12V44c0-6.627-5.373-12-12-12h-72c-6.627 0-12 5.373-12 12v12H96V44c0-6.627-5.373-12-12-12H12C5.373 32 0 37.373 0 44v72c0 6.627 5.373 12 12 12h12v160H12c-6.627 0-12 5.373-12 12v72c0 6.627 5.373 12 12 12h72c6.627 0 12-5.373 12-12v-12h88v24h-12c-6.627 0-12 5.373-12 12v72c0 6.627 5.373 12 12 12h72c6.627 0 12-5.373 12-12v-12h224v12c0 6.627 5.373 12 12 12h72c6.627 0 12-5.373 12-12v-72c0-6.627-5.373-12-12-12h-12V224h12zM352 64h32v32h-32V64zm0 256h32v32h-32v-32zM64 352H32v-32h32v32zm0-256H32V64h32v32zm32 216v-12c0-6.627-5.373-12-12-12H72V128h12c6.627 0 12-5.373 12-12v-12h224v12c0 6.627 5.373 12 12 12h12v160h-12c-6.627 0-12 5.373-12 12v12H96zm128 136h-32v-32h32v32zm280-64h-12c-6.627 0-12 5.373-12 12v12H256v-12c0-6.627-5.373-12-12-12h-12v-24h88v12c0 6.627 5.373 12 12 12h72c6.627 0 12-5.373 12-12v-72c0-6.627-5.373-12-12-12h-12v-88h88v12c0 6.627 5.373 12 12 12h12v160zm40 64h-32v-32h32v32zm0-256h-32v-32h32v32z"] };
  2124. var faPaperPlane = { prefix: 'far', iconName: 'paper-plane', icon: [512, 512, [], "f1d8", "M440 6.5L24 246.4c-34.4 19.9-31.1 70.8 5.7 85.9L144 379.6V464c0 46.4 59.2 65.5 86.6 28.6l43.8-59.1 111.9 46.2c5.9 2.4 12.1 3.6 18.3 3.6 8.2 0 16.3-2.1 23.6-6.2 12.8-7.2 21.6-20 23.9-34.5l59.4-387.2c6.1-40.1-36.9-68.8-71.5-48.9zM192 464v-64.6l36.6 15.1L192 464zm212.6-28.7l-153.8-63.5L391 169.5c10.7-15.5-9.5-33.5-23.7-21.2L155.8 332.6 48 288 464 48l-59.4 387.3z"] };
  2125. var faPauseCircle = { prefix: 'far', iconName: 'pause-circle', icon: [512, 512, [], "f28b", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm96-280v160c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16zm-112 0v160c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16z"] };
  2126. var faPlayCircle = { prefix: 'far', iconName: 'play-circle', icon: [512, 512, [], "f144", "M371.7 238l-176-107c-15.8-8.8-35.7 2.5-35.7 21v208c0 18.4 19.8 29.8 35.7 21l176-101c16.4-9.1 16.4-32.8 0-42zM504 256C504 119 393 8 256 8S8 119 8 256s111 248 248 248 248-111 248-248zm-448 0c0-110.5 89.5-200 200-200s200 89.5 200 200-89.5 200-200 200S56 366.5 56 256z"] };
  2127. var faPlusSquare = { prefix: 'far', iconName: 'plus-square', icon: [448, 512, [], "f0fe", "M352 240v32c0 6.6-5.4 12-12 12h-88v88c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-88h-88c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h88v-88c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v88h88c6.6 0 12 5.4 12 12zm96-160v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"] };
  2128. var faQuestionCircle = { prefix: 'far', iconName: 'question-circle', icon: [512, 512, [], "f059", "M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"] };
  2129. var faRegistered = { prefix: 'far', iconName: 'registered', icon: [512, 512, [], "f25d", "M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 448c-110.532 0-200-89.451-200-200 0-110.531 89.451-200 200-200 110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200zm110.442-81.791c-53.046-96.284-50.25-91.468-53.271-96.085 24.267-13.879 39.482-41.563 39.482-73.176 0-52.503-30.247-85.252-101.498-85.252h-78.667c-6.617 0-12 5.383-12 12V380c0 6.617 5.383 12 12 12h38.568c6.617 0 12-5.383 12-12v-83.663h31.958l47.515 89.303a11.98 11.98 0 0 0 10.593 6.36h42.81c9.14 0 14.914-9.799 10.51-17.791zM256.933 239.906h-33.875v-64.14h27.377c32.417 0 38.929 12.133 38.929 31.709-.001 20.913-11.518 32.431-32.431 32.431z"] };
  2130. var faSadCry = { prefix: 'far', iconName: 'sad-cry', icon: [496, 512, [], "f5b3", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm144 386.4V280c0-13.2-10.8-24-24-24s-24 10.8-24 24v151.4C315.5 447 282.8 456 248 456s-67.5-9-96-24.6V280c0-13.2-10.8-24-24-24s-24 10.8-24 24v114.4c-34.6-36-56-84.7-56-138.4 0-110.3 89.7-200 200-200s200 89.7 200 200c0 53.7-21.4 102.5-56 138.4zM205.8 234.5c4.4-2.4 6.9-7.4 6.1-12.4-4-25.2-34.2-42.1-59.8-42.1s-55.9 16.9-59.8 42.1c-.8 5 1.7 10 6.1 12.4 4.4 2.4 9.9 1.8 13.7-1.6l9.5-8.5c14.8-13.2 46.2-13.2 61 0l9.5 8.5c2.5 2.3 7.9 4.8 13.7 1.6zM344 180c-25.7 0-55.9 16.9-59.8 42.1-.8 5 1.7 10 6.1 12.4 4.5 2.4 9.9 1.8 13.7-1.6l9.5-8.5c14.8-13.2 46.2-13.2 61 0l9.5 8.5c2.5 2.2 8 4.7 13.7 1.6 4.4-2.4 6.9-7.4 6.1-12.4-3.9-25.2-34.1-42.1-59.8-42.1zm-96 92c-30.9 0-56 28.7-56 64s25.1 64 56 64 56-28.7 56-64-25.1-64-56-64z"] };
  2131. var faSadTear = { prefix: 'far', iconName: 'sad-tear', icon: [496, 512, [], "f5b4", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm8-152c-13.2 0-24 10.8-24 24s10.8 24 24 24c23.8 0 46.3 10.5 61.6 28.8 8.1 9.8 23.2 11.9 33.8 3.1 10.2-8.5 11.6-23.6 3.1-33.8C330 320.8 294.1 304 256 304zm-88-64c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160-64c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm-165.6 98.8C151 290.1 126 325.4 126 342.9c0 22.7 18.8 41.1 42 41.1s42-18.4 42-41.1c0-17.5-25-52.8-36.4-68.1-2.8-3.7-8.4-3.7-11.2 0z"] };
  2132. var faSave = { prefix: 'far', iconName: 'save', icon: [448, 512, [], "f0c7", "M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM272 80v80H144V80h128zm122 352H54a6 6 0 0 1-6-6V86a6 6 0 0 1 6-6h42v104c0 13.255 10.745 24 24 24h176c13.255 0 24-10.745 24-24V83.882l78.243 78.243a6 6 0 0 1 1.757 4.243V426a6 6 0 0 1-6 6zM224 232c-48.523 0-88 39.477-88 88s39.477 88 88 88 88-39.477 88-88-39.477-88-88-88zm0 128c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40z"] };
  2133. var faShareSquare = { prefix: 'far', iconName: 'share-square', icon: [576, 512, [], "f14d", "M561.938 158.06L417.94 14.092C387.926-15.922 336 5.097 336 48.032v57.198c-42.45 1.88-84.03 6.55-120.76 17.99-35.17 10.95-63.07 27.58-82.91 49.42C108.22 199.2 96 232.6 96 271.94c0 61.697 33.178 112.455 84.87 144.76 37.546 23.508 85.248-12.651 71.02-55.74-15.515-47.119-17.156-70.923 84.11-78.76V336c0 42.993 51.968 63.913 81.94 33.94l143.998-144c18.75-18.74 18.75-49.14 0-67.88zM384 336V232.16C255.309 234.082 166.492 255.35 206.31 376 176.79 357.55 144 324.08 144 271.94c0-109.334 129.14-118.947 240-119.85V48l144 144-144 144zm24.74 84.493a82.658 82.658 0 0 0 20.974-9.303c7.976-4.952 18.286.826 18.286 10.214V464c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h132c6.627 0 12 5.373 12 12v4.486c0 4.917-2.987 9.369-7.569 11.152-13.702 5.331-26.396 11.537-38.05 18.585a12.138 12.138 0 0 1-6.28 1.777H54a6 6 0 0 0-6 6v340a6 6 0 0 0 6 6h340a6 6 0 0 0 6-6v-25.966c0-5.37 3.579-10.059 8.74-11.541z"] };
  2134. var faSmile = { prefix: 'far', iconName: 'smile', icon: [496, 512, [], "f118", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm4 72.6c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.7-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.1-8.4-25.3-7.1-33.8 3.1z"] };
  2135. var faSmileBeam = { prefix: 'far', iconName: 'smile-beam', icon: [496, 512, [], "f5b8", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm84-143.4c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.6-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.2-8.4-25.3-7.1-33.8 3.1zM136.5 211c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4s-52.7 29.3-56 71.4c-.3 3.7 2.1 7.2 5.7 8.3 3.4 1.1 7.4-.5 9.3-3.7l9.5-17zM328 152c-23.8 0-52.7 29.3-56 71.4-.3 3.7 2.1 7.2 5.7 8.3 3.5 1.1 7.4-.5 9.3-3.7l9.5-17c7.7-13.7 19.2-21.6 31.5-21.6s23.8 7.9 31.5 21.6l9.5 17c2.1 3.7 6.2 4.7 9.3 3.7 3.6-1.1 6-4.5 5.7-8.3-3.3-42.1-32.2-71.4-56-71.4z"] };
  2136. var faSmileWink = { prefix: 'far', iconName: 'smile-wink', icon: [496, 512, [], "f4da", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm117.8-146.4c-10.2-8.5-25.3-7.1-33.8 3.1-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.7-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8zM168 240c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160-60c-25.7 0-55.9 16.9-59.9 42.1-1.7 11.2 11.5 18.2 19.8 10.8l9.5-8.5c14.8-13.2 46.2-13.2 61 0l9.5 8.5c8.5 7.4 21.6.3 19.8-10.8-3.8-25.2-34-42.1-59.7-42.1z"] };
  2137. var faSnowflake = { prefix: 'far', iconName: 'snowflake', icon: [448, 512, [], "f2dc", "M438.237 355.927l-66.574-38.54 59.448-10.327c5.846-1.375 10.609-5.183 13.458-10.13 2.48-4.307 3.506-9.478 2.524-14.651-2.11-11.115-12.686-18.039-23.621-15.467l-85.423 31.115L255.914 256l82.136-41.926 85.423 31.115c10.936 2.572 21.512-4.352 23.621-15.467 2.111-11.115-5.046-22.209-15.981-24.781l-59.448-10.327 66.573-38.54c9.54-5.523 12.615-18.092 6.867-28.074-5.748-9.982-18.14-13.596-27.68-8.074l-66.574 38.54 20.805-56.787c3.246-10.782-2.758-22.542-13.413-26.268-10.654-3.725-21.922 1.997-25.168 12.779l-15.838 89.735-72.423 41.926V136l69.585-58.621c7.689-8.21 6.997-20.856-1.548-28.245-8.545-7.391-21.705-6.723-29.394 1.486l-38.644 46.46V20c0-11.046-9.318-20-20.813-20s-20.813 8.954-20.813 20v77.08l-38.644-46.46c-7.689-8.21-20.849-8.876-29.394-1.486-8.544 7.389-9.236 20.035-1.547 28.245L203.187 136v83.853l-72.423-41.926-15.838-89.736c-3.247-10.782-14.515-16.504-25.169-12.779-10.656 3.725-16.659 15.486-13.413 26.268l20.805 56.787-66.573-38.54c-9.54-5.523-21.933-1.908-27.68 8.074s-2.673 22.551 6.867 28.074l66.574 38.54-59.449 10.328C5.953 207.515-1.202 218.609.907 229.724c2.11 11.114 12.686 18.038 23.622 15.466l85.422-31.115L192.086 256l-82.136 41.926-85.423-31.115c-10.936-2.572-21.511 4.352-23.622 15.466-2.109 11.113 5.046 22.209 15.981 24.781l59.449 10.328-66.574 38.54C.223 361.449-2.852 374.018 2.896 384s18.14 13.597 27.68 8.074l66.574-38.54-20.805 56.786c-1.735 5.764-.828 11.805 2.02 16.751 2.48 4.307 6.433 7.784 11.392 9.517 10.655 3.725 21.923-1.997 25.169-12.779l15.838-89.736 72.423-41.926V376l-69.585 58.621c-7.69 8.21-6.997 20.855 1.547 28.245 8.544 7.388 21.705 6.723 29.394-1.487l38.644-46.46V492c0 11.046 9.318 20 20.813 20s20.813-8.954 20.813-20v-77.081l38.644 46.46c4.111 4.389 9.782 6.621 15.478 6.621 4.96 0 9.939-1.694 13.916-5.134 8.545-7.39 9.237-20.035 1.548-28.245L244.813 376v-83.853l72.423 41.926 15.838 89.736c3.246 10.782 14.514 16.504 25.168 12.779 10.653-3.726 16.659-15.487 13.412-26.268l-20.805-56.787 66.574 38.54c9.54 5.523 21.933 1.908 27.68-8.074 5.749-9.981 2.675-22.55-6.866-28.072z"] };
  2138. var faSquare = { prefix: 'far', iconName: 'square', icon: [448, 512, [], "f0c8", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h340c3.3 0 6 2.7 6 6v340c0 3.3-2.7 6-6 6z"] };
  2139. var faStar = { prefix: 'far', iconName: 'star', icon: [576, 512, [], "f005", "M528.1 171.5L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6zM388.6 312.3l23.7 138.4L288 385.4l-124.3 65.3 23.7-138.4-100.6-98 139-20.2 62.2-126 62.2 126 139 20.2-100.6 98z"] };
  2140. var faStarHalf = { prefix: 'far', iconName: 'star-half', icon: [576, 512, [], "f089", "M288 385.3l-124.3 65.4 23.7-138.4-100.6-98 139-20.2 62.2-126V0c-11.4 0-22.8 5.9-28.7 17.8L194 150.2 47.9 171.4c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.1 23 46 46.4 33.7L288 439.6v-54.3z"] };
  2141. var faStickyNote = { prefix: 'far', iconName: 'sticky-note', icon: [448, 512, [], "f249", "M448 348.106V80c0-26.51-21.49-48-48-48H48C21.49 32 0 53.49 0 80v351.988c0 26.51 21.49 48 48 48h268.118a48 48 0 0 0 33.941-14.059l83.882-83.882A48 48 0 0 0 448 348.106zm-128 80v-76.118h76.118L320 428.106zM400 80v223.988H296c-13.255 0-24 10.745-24 24v104H48V80h352z"] };
  2142. var faStopCircle = { prefix: 'far', iconName: 'stop-circle', icon: [512, 512, [], "f28d", "M504 256C504 119 393 8 256 8S8 119 8 256s111 248 248 248 248-111 248-248zm-448 0c0-110.5 89.5-200 200-200s200 89.5 200 200-89.5 200-200 200S56 366.5 56 256zm296-80v160c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h160c8.8 0 16 7.2 16 16z"] };
  2143. var faSun = { prefix: 'far', iconName: 'sun', icon: [512, 512, [], "f185", "M220.116 487.936l-20.213-49.425a3.992 3.992 0 0 0-5.808-1.886l-45.404 28.104c-29.466 18.24-66.295-8.519-58.054-42.179l12.699-51.865a3.993 3.993 0 0 0-3.59-4.941l-53.251-3.951c-34.554-2.562-48.632-45.855-22.174-68.247L65.08 259.05a3.992 3.992 0 0 0 0-6.106l-40.76-34.497c-26.45-22.384-12.39-65.682 22.174-68.246l53.251-3.951a3.993 3.993 0 0 0 3.59-4.941L90.637 89.443c-8.239-33.656 28.581-60.42 58.054-42.179l45.403 28.104a3.993 3.993 0 0 0 5.808-1.887l20.213-49.425c13.116-32.071 58.638-32.081 71.758 0l20.212 49.424a3.994 3.994 0 0 0 5.809 1.887l45.403-28.104c29.464-18.236 66.297 8.513 58.054 42.179l-12.699 51.865a3.995 3.995 0 0 0 3.59 4.941l53.251 3.951c34.553 2.563 48.633 45.854 22.175 68.246l-40.76 34.497a3.993 3.993 0 0 0 0 6.107l40.76 34.496c26.511 22.441 12.322 65.689-22.175 68.247l-53.251 3.951a3.993 3.993 0 0 0-3.589 4.942l12.698 51.864c8.241 33.658-28.583 60.421-58.054 42.18l-45.403-28.104a3.994 3.994 0 0 0-5.809 1.887l-20.212 49.424c-13.159 32.178-58.675 31.993-71.757 0zm16.814-64.568l19.064 46.616 19.064-46.615c10.308-25.2 40.778-35.066 63.892-20.759l42.822 26.507-11.976-48.919c-6.475-26.444 12.38-52.339 39.487-54.349l50.226-3.726-38.444-32.536c-20.782-17.591-20.747-49.621.001-67.18l38.442-32.536-50.225-3.727c-27.151-2.015-45.95-27.948-39.488-54.349l11.978-48.919-42.823 26.507c-23.151 14.327-53.603 4.4-63.892-20.76l-19.064-46.615-19.064 46.617c-10.305 25.198-40.778 35.066-63.891 20.76l-42.823-26.508 11.977 48.918c6.474 26.446-12.381 52.338-39.488 54.35l-50.224 3.726 38.443 32.537c20.782 17.588 20.747 49.619 0 67.178L52.48 322.123l50.226 3.726c27.151 2.014 45.95 27.947 39.487 54.349l-11.977 48.919 42.823-26.507c23.188-14.355 53.622-4.352 63.891 20.758zM256 384c-70.58 0-128-57.421-128-128 0-70.58 57.42-128 128-128 70.579 0 128 57.42 128 128 0 70.579-57.421 128-128 128zm0-208c-44.112 0-80 35.888-80 80s35.888 80 80 80 80-35.888 80-80-35.888-80-80-80z"] };
  2144. var faSurprise = { prefix: 'far', iconName: 'surprise', icon: [496, 512, [], "f5c2", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm0-176c-35.3 0-64 28.7-64 64s28.7 64 64 64 64-28.7 64-64-28.7-64-64-64zm-48-72c0-17.7-14.3-32-32-32s-32 14.3-32 32 14.3 32 32 32 32-14.3 32-32zm128-32c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32z"] };
  2145. var faThumbsDown = { prefix: 'far', iconName: 'thumbs-down', icon: [512, 512, [], "f165", "M466.27 225.31c4.674-22.647.864-44.538-8.99-62.99 2.958-23.868-4.021-48.565-17.34-66.99C438.986 39.423 404.117 0 327 0c-7 0-15 .01-22.22.01C201.195.01 168.997 40 128 40h-10.845c-5.64-4.975-13.042-8-21.155-8H32C14.327 32 0 46.327 0 64v240c0 17.673 14.327 32 32 32h64c11.842 0 22.175-6.438 27.708-16h7.052c19.146 16.953 46.013 60.653 68.76 83.4 13.667 13.667 10.153 108.6 71.76 108.6 57.58 0 95.27-31.936 95.27-104.73 0-18.41-3.93-33.73-8.85-46.54h36.48c48.602 0 85.82-41.565 85.82-85.58 0-19.15-4.96-34.99-13.73-49.84zM64 296c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zm330.18 16.73H290.19c0 37.82 28.36 55.37 28.36 94.54 0 23.75 0 56.73-47.27 56.73-18.91-18.91-9.46-66.18-37.82-94.54C206.9 342.89 167.28 272 138.92 272H128V85.83c53.611 0 100.001-37.82 171.64-37.82h37.82c35.512 0 60.82 17.12 53.12 65.9 15.2 8.16 26.5 36.44 13.94 57.57 21.581 20.384 18.699 51.065 5.21 65.62 9.45 0 22.36 18.91 22.27 37.81-.09 18.91-16.71 37.82-37.82 37.82z"] };
  2146. var faThumbsUp = { prefix: 'far', iconName: 'thumbs-up', icon: [512, 512, [], "f164", "M466.27 286.69C475.04 271.84 480 256 480 236.85c0-44.015-37.218-85.58-85.82-85.58H357.7c4.92-12.81 8.85-28.13 8.85-46.54C366.55 31.936 328.86 0 271.28 0c-61.607 0-58.093 94.933-71.76 108.6-22.747 22.747-49.615 66.447-68.76 83.4H32c-17.673 0-32 14.327-32 32v240c0 17.673 14.327 32 32 32h64c14.893 0 27.408-10.174 30.978-23.95 44.509 1.001 75.06 39.94 177.802 39.94 7.22 0 15.22.01 22.22.01 77.117 0 111.986-39.423 112.94-95.33 13.319-18.425 20.299-43.122 17.34-66.99 9.854-18.452 13.664-40.343 8.99-62.99zm-61.75 53.83c12.56 21.13 1.26 49.41-13.94 57.57 7.7 48.78-17.608 65.9-53.12 65.9h-37.82c-71.639 0-118.029-37.82-171.64-37.82V240h10.92c28.36 0 67.98-70.89 94.54-97.46 28.36-28.36 18.91-75.63 37.82-94.54 47.27 0 47.27 32.98 47.27 56.73 0 39.17-28.36 56.72-28.36 94.54h103.99c21.11 0 37.73 18.91 37.82 37.82.09 18.9-12.82 37.81-22.27 37.81 13.489 14.555 16.371 45.236-5.21 65.62zM88 432c0 13.255-10.745 24-24 24s-24-10.745-24-24 10.745-24 24-24 24 10.745 24 24z"] };
  2147. var faTimesCircle = { prefix: 'far', iconName: 'times-circle', icon: [512, 512, [], "f057", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm101.8-262.2L295.6 256l62.2 62.2c4.7 4.7 4.7 12.3 0 17l-22.6 22.6c-4.7 4.7-12.3 4.7-17 0L256 295.6l-62.2 62.2c-4.7 4.7-12.3 4.7-17 0l-22.6-22.6c-4.7-4.7-4.7-12.3 0-17l62.2-62.2-62.2-62.2c-4.7-4.7-4.7-12.3 0-17l22.6-22.6c4.7-4.7 12.3-4.7 17 0l62.2 62.2 62.2-62.2c4.7-4.7 12.3-4.7 17 0l22.6 22.6c4.7 4.7 4.7 12.3 0 17z"] };
  2148. var faTired = { prefix: 'far', iconName: 'tired', icon: [496, 512, [], "f5c8", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm129.1-303.8c-3.8-4.4-10.3-5.4-15.3-2.5l-80 48c-3.6 2.2-5.8 6.1-5.8 10.3s2.2 8.1 5.8 10.3l80 48c5.4 3.2 11.8 1.6 15.3-2.5 3.8-4.5 3.9-11 .1-15.5L343.6 208l33.6-40.3c3.8-4.5 3.7-11.1-.1-15.5zM220 208c0-4.2-2.2-8.1-5.8-10.3l-80-48c-5-3-11.5-1.9-15.3 2.5-3.8 4.5-3.9 11-.1 15.5l33.6 40.3-33.6 40.3c-3.8 4.5-3.7 11 .1 15.5 3.5 4.1 9.9 5.7 15.3 2.5l80-48c3.6-2.2 5.8-6.1 5.8-10.3zm28 64c-45.4 0-100.9 38.3-107.8 93.3-1.5 11.8 6.9 21.6 15.5 17.9C178.4 373.5 212 368 248 368s69.6 5.5 92.3 15.2c8.5 3.7 17-6 15.5-17.9-6.9-55-62.4-93.3-107.8-93.3z"] };
  2149. var faTrashAlt = { prefix: 'far', iconName: 'trash-alt', icon: [448, 512, [], "f2ed", "M192 188v216c0 6.627-5.373 12-12 12h-24c-6.627 0-12-5.373-12-12V188c0-6.627 5.373-12 12-12h24c6.627 0 12 5.373 12 12zm100-12h-24c-6.627 0-12 5.373-12 12v216c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12V188c0-6.627-5.373-12-12-12zm132-96c13.255 0 24 10.745 24 24v12c0 6.627-5.373 12-12 12h-20v336c0 26.51-21.49 48-48 48H80c-26.51 0-48-21.49-48-48V128H12c-6.627 0-12-5.373-12-12v-12c0-13.255 10.745-24 24-24h74.411l34.018-56.696A48 48 0 0 1 173.589 0h100.823a48 48 0 0 1 41.16 23.304L349.589 80H424zm-269.611 0h139.223L276.16 50.913A6 6 0 0 0 271.015 48h-94.028a6 6 0 0 0-5.145 2.913L154.389 80zM368 128H80v330a6 6 0 0 0 6 6h276a6 6 0 0 0 6-6V128z"] };
  2150. var faUser = { prefix: 'far', iconName: 'user', icon: [448, 512, [], "f007", "M313.6 304c-28.7 0-42.5 16-89.6 16-47.1 0-60.8-16-89.6-16C60.2 304 0 364.2 0 438.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-25.6c0-74.2-60.2-134.4-134.4-134.4zM400 464H48v-25.6c0-47.6 38.8-86.4 86.4-86.4 14.6 0 38.3 16 89.6 16 51.7 0 74.9-16 89.6-16 47.6 0 86.4 38.8 86.4 86.4V464zM224 288c79.5 0 144-64.5 144-144S303.5 0 224 0 80 64.5 80 144s64.5 144 144 144zm0-240c52.9 0 96 43.1 96 96s-43.1 96-96 96-96-43.1-96-96 43.1-96 96-96z"] };
  2151. var faUserCircle = { prefix: 'far', iconName: 'user-circle', icon: [496, 512, [], "f2bd", "M248 104c-53 0-96 43-96 96s43 96 96 96 96-43 96-96-43-96-96-96zm0 144c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm0-240C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-49.7 0-95.1-18.3-130.1-48.4 14.9-23 40.4-38.6 69.6-39.5 20.8 6.4 40.6 9.6 60.5 9.6s39.7-3.1 60.5-9.6c29.2 1 54.7 16.5 69.6 39.5-35 30.1-80.4 48.4-130.1 48.4zm162.7-84.1c-24.4-31.4-62.1-51.9-105.1-51.9-10.2 0-26 9.6-57.6 9.6-31.5 0-47.4-9.6-57.6-9.6-42.9 0-80.6 20.5-105.1 51.9C61.9 339.2 48 299.2 48 256c0-110.3 89.7-200 200-200s200 89.7 200 200c0 43.2-13.9 83.2-37.3 115.9z"] };
  2152. var faWindowClose = { prefix: 'far', iconName: 'window-close', icon: [512, 512, [], "f410", "M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 394c0 3.3-2.7 6-6 6H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h404c3.3 0 6 2.7 6 6v340zM356.5 194.6L295.1 256l61.4 61.4c4.6 4.6 4.6 12.1 0 16.8l-22.3 22.3c-4.6 4.6-12.1 4.6-16.8 0L256 295.1l-61.4 61.4c-4.6 4.6-12.1 4.6-16.8 0l-22.3-22.3c-4.6-4.6-4.6-12.1 0-16.8l61.4-61.4-61.4-61.4c-4.6-4.6-4.6-12.1 0-16.8l22.3-22.3c4.6-4.6 12.1-4.6 16.8 0l61.4 61.4 61.4-61.4c4.6-4.6 12.1-4.6 16.8 0l22.3 22.3c4.7 4.6 4.7 12.1 0 16.8z"] };
  2153. var faWindowMaximize = { prefix: 'far', iconName: 'window-maximize', icon: [512, 512, [], "f2d0", "M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 394c0 3.3-2.7 6-6 6H54c-3.3 0-6-2.7-6-6V192h416v234z"] };
  2154. var faWindowMinimize = { prefix: 'far', iconName: 'window-minimize', icon: [512, 512, [], "f2d1", "M480 480H32c-17.7 0-32-14.3-32-32s14.3-32 32-32h448c17.7 0 32 14.3 32 32s-14.3 32-32 32z"] };
  2155. var faWindowRestore = { prefix: 'far', iconName: 'window-restore', icon: [512, 512, [], "f2d2", "M464 0H144c-26.5 0-48 21.5-48 48v48H48c-26.5 0-48 21.5-48 48v320c0 26.5 21.5 48 48 48h320c26.5 0 48-21.5 48-48v-48h48c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-96 464H48V256h320v208zm96-96h-48V144c0-26.5-21.5-48-48-48H144V48h320v320z"] };
  2156. var _iconsCache = {
  2157. faAddressBook: faAddressBook,
  2158. faAddressCard: faAddressCard,
  2159. faAngry: faAngry,
  2160. faArrowAltCircleDown: faArrowAltCircleDown,
  2161. faArrowAltCircleLeft: faArrowAltCircleLeft,
  2162. faArrowAltCircleRight: faArrowAltCircleRight,
  2163. faArrowAltCircleUp: faArrowAltCircleUp,
  2164. faBell: faBell,
  2165. faBellSlash: faBellSlash,
  2166. faBookmark: faBookmark,
  2167. faBuilding: faBuilding,
  2168. faCalendar: faCalendar,
  2169. faCalendarAlt: faCalendarAlt,
  2170. faCalendarCheck: faCalendarCheck,
  2171. faCalendarMinus: faCalendarMinus,
  2172. faCalendarPlus: faCalendarPlus,
  2173. faCalendarTimes: faCalendarTimes,
  2174. faCaretSquareDown: faCaretSquareDown,
  2175. faCaretSquareLeft: faCaretSquareLeft,
  2176. faCaretSquareRight: faCaretSquareRight,
  2177. faCaretSquareUp: faCaretSquareUp,
  2178. faChartBar: faChartBar,
  2179. faCheckCircle: faCheckCircle,
  2180. faCheckSquare: faCheckSquare,
  2181. faCircle: faCircle,
  2182. faClipboard: faClipboard,
  2183. faClock: faClock,
  2184. faClone: faClone,
  2185. faClosedCaptioning: faClosedCaptioning,
  2186. faComment: faComment,
  2187. faCommentAlt: faCommentAlt,
  2188. faCommentDots: faCommentDots,
  2189. faComments: faComments,
  2190. faCompass: faCompass,
  2191. faCopy: faCopy,
  2192. faCopyright: faCopyright,
  2193. faCreditCard: faCreditCard,
  2194. faDizzy: faDizzy,
  2195. faDotCircle: faDotCircle,
  2196. faEdit: faEdit,
  2197. faEnvelope: faEnvelope,
  2198. faEnvelopeOpen: faEnvelopeOpen,
  2199. faEye: faEye,
  2200. faEyeSlash: faEyeSlash,
  2201. faFile: faFile,
  2202. faFileAlt: faFileAlt,
  2203. faFileArchive: faFileArchive,
  2204. faFileAudio: faFileAudio,
  2205. faFileCode: faFileCode,
  2206. faFileExcel: faFileExcel,
  2207. faFileImage: faFileImage,
  2208. faFilePdf: faFilePdf,
  2209. faFilePowerpoint: faFilePowerpoint,
  2210. faFileVideo: faFileVideo,
  2211. faFileWord: faFileWord,
  2212. faFlag: faFlag,
  2213. faFlushed: faFlushed,
  2214. faFolder: faFolder,
  2215. faFolderOpen: faFolderOpen,
  2216. faFontAwesomeLogoFull: faFontAwesomeLogoFull,
  2217. faFrown: faFrown,
  2218. faFrownOpen: faFrownOpen,
  2219. faFutbol: faFutbol,
  2220. faGem: faGem,
  2221. faGrimace: faGrimace,
  2222. faGrin: faGrin,
  2223. faGrinAlt: faGrinAlt,
  2224. faGrinBeam: faGrinBeam,
  2225. faGrinBeamSweat: faGrinBeamSweat,
  2226. faGrinHearts: faGrinHearts,
  2227. faGrinSquint: faGrinSquint,
  2228. faGrinSquintTears: faGrinSquintTears,
  2229. faGrinStars: faGrinStars,
  2230. faGrinTears: faGrinTears,
  2231. faGrinTongue: faGrinTongue,
  2232. faGrinTongueSquint: faGrinTongueSquint,
  2233. faGrinTongueWink: faGrinTongueWink,
  2234. faGrinWink: faGrinWink,
  2235. faHandLizard: faHandLizard,
  2236. faHandPaper: faHandPaper,
  2237. faHandPeace: faHandPeace,
  2238. faHandPointDown: faHandPointDown,
  2239. faHandPointLeft: faHandPointLeft,
  2240. faHandPointRight: faHandPointRight,
  2241. faHandPointUp: faHandPointUp,
  2242. faHandPointer: faHandPointer,
  2243. faHandRock: faHandRock,
  2244. faHandScissors: faHandScissors,
  2245. faHandSpock: faHandSpock,
  2246. faHandshake: faHandshake,
  2247. faHdd: faHdd,
  2248. faHeart: faHeart,
  2249. faHospital: faHospital,
  2250. faHourglass: faHourglass,
  2251. faIdBadge: faIdBadge,
  2252. faIdCard: faIdCard,
  2253. faImage: faImage,
  2254. faImages: faImages,
  2255. faKeyboard: faKeyboard,
  2256. faKiss: faKiss,
  2257. faKissBeam: faKissBeam,
  2258. faKissWinkHeart: faKissWinkHeart,
  2259. faLaugh: faLaugh,
  2260. faLaughBeam: faLaughBeam,
  2261. faLaughSquint: faLaughSquint,
  2262. faLaughWink: faLaughWink,
  2263. faLemon: faLemon,
  2264. faLifeRing: faLifeRing,
  2265. faLightbulb: faLightbulb,
  2266. faListAlt: faListAlt,
  2267. faMap: faMap,
  2268. faMeh: faMeh,
  2269. faMehBlank: faMehBlank,
  2270. faMehRollingEyes: faMehRollingEyes,
  2271. faMinusSquare: faMinusSquare,
  2272. faMoneyBillAlt: faMoneyBillAlt,
  2273. faMoon: faMoon,
  2274. faNewspaper: faNewspaper,
  2275. faObjectGroup: faObjectGroup,
  2276. faObjectUngroup: faObjectUngroup,
  2277. faPaperPlane: faPaperPlane,
  2278. faPauseCircle: faPauseCircle,
  2279. faPlayCircle: faPlayCircle,
  2280. faPlusSquare: faPlusSquare,
  2281. faQuestionCircle: faQuestionCircle,
  2282. faRegistered: faRegistered,
  2283. faSadCry: faSadCry,
  2284. faSadTear: faSadTear,
  2285. faSave: faSave,
  2286. faShareSquare: faShareSquare,
  2287. faSmile: faSmile,
  2288. faSmileBeam: faSmileBeam,
  2289. faSmileWink: faSmileWink,
  2290. faSnowflake: faSnowflake,
  2291. faSquare: faSquare,
  2292. faStar: faStar,
  2293. faStarHalf: faStarHalf,
  2294. faStickyNote: faStickyNote,
  2295. faStopCircle: faStopCircle,
  2296. faSun: faSun,
  2297. faSurprise: faSurprise,
  2298. faThumbsDown: faThumbsDown,
  2299. faThumbsUp: faThumbsUp,
  2300. faTimesCircle: faTimesCircle,
  2301. faTired: faTired,
  2302. faTrashAlt: faTrashAlt,
  2303. faUser: faUser,
  2304. faUserCircle: faUserCircle,
  2305. faWindowClose: faWindowClose,
  2306. faWindowMaximize: faWindowMaximize,
  2307. faWindowMinimize: faWindowMinimize,
  2308. faWindowRestore: faWindowRestore
  2309. };
  2310. /***/ }),
  2311. /***/ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js":
  2312. /*!********************************************************************************************!*\
  2313. !*** C:/Dev/Babylon/Babylon.js/node_modules/@fortawesome/free-solid-svg-icons/index.es.js ***!
  2314. \********************************************************************************************/
  2315. /*! exports provided: fas, prefix, faAd, faAddressBook, faAddressCard, faAdjust, faAirFreshener, faAlignCenter, faAlignJustify, faAlignLeft, faAlignRight, faAllergies, faAmbulance, faAmericanSignLanguageInterpreting, faAnchor, faAngleDoubleDown, faAngleDoubleLeft, faAngleDoubleRight, faAngleDoubleUp, faAngleDown, faAngleLeft, faAngleRight, faAngleUp, faAngry, faAnkh, faAppleAlt, faArchive, faArchway, faArrowAltCircleDown, faArrowAltCircleLeft, faArrowAltCircleRight, faArrowAltCircleUp, faArrowCircleDown, faArrowCircleLeft, faArrowCircleRight, faArrowCircleUp, faArrowDown, faArrowLeft, faArrowRight, faArrowUp, faArrowsAlt, faArrowsAltH, faArrowsAltV, faAssistiveListeningSystems, faAsterisk, faAt, faAtlas, faAtom, faAudioDescription, faAward, faBackspace, faBackward, faBalanceScale, faBan, faBandAid, faBarcode, faBars, faBaseballBall, faBasketballBall, faBath, faBatteryEmpty, faBatteryFull, faBatteryHalf, faBatteryQuarter, faBatteryThreeQuarters, faBed, faBeer, faBell, faBellSlash, faBezierCurve, faBible, faBicycle, faBinoculars, faBirthdayCake, faBlender, faBlenderPhone, faBlind, faBold, faBolt, faBomb, faBone, faBong, faBook, faBookDead, faBookOpen, faBookReader, faBookmark, faBowlingBall, faBox, faBoxOpen, faBoxes, faBraille, faBrain, faBriefcase, faBriefcaseMedical, faBroadcastTower, faBroom, faBrush, faBug, faBuilding, faBullhorn, faBullseye, faBurn, faBus, faBusAlt, faBusinessTime, faCalculator, faCalendar, faCalendarAlt, faCalendarCheck, faCalendarMinus, faCalendarPlus, faCalendarTimes, faCamera, faCameraRetro, faCampground, faCannabis, faCapsules, faCar, faCarAlt, faCarBattery, faCarCrash, faCarSide, faCaretDown, faCaretLeft, faCaretRight, faCaretSquareDown, faCaretSquareLeft, faCaretSquareRight, faCaretSquareUp, faCaretUp, faCartArrowDown, faCartPlus, faCat, faCertificate, faChair, faChalkboard, faChalkboardTeacher, faChargingStation, faChartArea, faChartBar, faChartLine, faChartPie, faCheck, faCheckCircle, faCheckDouble, faCheckSquare, faChess, faChessBishop, faChessBoard, faChessKing, faChessKnight, faChessPawn, faChessQueen, faChessRook, faChevronCircleDown, faChevronCircleLeft, faChevronCircleRight, faChevronCircleUp, faChevronDown, faChevronLeft, faChevronRight, faChevronUp, faChild, faChurch, faCircle, faCircleNotch, faCity, faClipboard, faClipboardCheck, faClipboardList, faClock, faClone, faClosedCaptioning, faCloud, faCloudDownloadAlt, faCloudMoon, faCloudSun, faCloudUploadAlt, faCocktail, faCode, faCodeBranch, faCoffee, faCog, faCogs, faCoins, faColumns, faComment, faCommentAlt, faCommentDollar, faCommentDots, faCommentSlash, faComments, faCommentsDollar, faCompactDisc, faCompass, faCompress, faConciergeBell, faCookie, faCookieBite, faCopy, faCopyright, faCouch, faCreditCard, faCrop, faCropAlt, faCross, faCrosshairs, faCrow, faCrown, faCube, faCubes, faCut, faDatabase, faDeaf, faDesktop, faDharmachakra, faDiagnoses, faDice, faDiceD20, faDiceD6, faDiceFive, faDiceFour, faDiceOne, faDiceSix, faDiceThree, faDiceTwo, faDigitalTachograph, faDirections, faDivide, faDizzy, faDna, faDog, faDollarSign, faDolly, faDollyFlatbed, faDonate, faDoorClosed, faDoorOpen, faDotCircle, faDove, faDownload, faDraftingCompass, faDragon, faDrawPolygon, faDrum, faDrumSteelpan, faDrumstickBite, faDumbbell, faDungeon, faEdit, faEject, faEllipsisH, faEllipsisV, faEnvelope, faEnvelopeOpen, faEnvelopeOpenText, faEnvelopeSquare, faEquals, faEraser, faEuroSign, faExchangeAlt, faExclamation, faExclamationCircle, faExclamationTriangle, faExpand, faExpandArrowsAlt, faExternalLinkAlt, faExternalLinkSquareAlt, faEye, faEyeDropper, faEyeSlash, faFastBackward, faFastForward, faFax, faFeather, faFeatherAlt, faFemale, faFighterJet, faFile, faFileAlt, faFileArchive, faFileAudio, faFileCode, faFileContract, faFileCsv, faFileDownload, faFileExcel, faFileExport, faFileImage, faFileImport, faFileInvoice, faFileInvoiceDollar, faFileMedical, faFileMedicalAlt, faFilePdf, faFilePowerpoint, faFilePrescription, faFileSignature, faFileUpload, faFileVideo, faFileWord, faFill, faFillDrip, faFilm, faFilter, faFingerprint, faFire, faFireExtinguisher, faFirstAid, faFish, faFistRaised, faFlag, faFlagCheckered, faFlask, faFlushed, faFolder, faFolderMinus, faFolderOpen, faFolderPlus, faFont, faFontAwesomeLogoFull, faFootballBall, faForward, faFrog, faFrown, faFrownOpen, faFunnelDollar, faFutbol, faGamepad, faGasPump, faGavel, faGem, faGenderless, faGhost, faGift, faGlassMartini, faGlassMartiniAlt, faGlasses, faGlobe, faGlobeAfrica, faGlobeAmericas, faGlobeAsia, faGolfBall, faGopuram, faGraduationCap, faGreaterThan, faGreaterThanEqual, faGrimace, faGrin, faGrinAlt, faGrinBeam, faGrinBeamSweat, faGrinHearts, faGrinSquint, faGrinSquintTears, faGrinStars, faGrinTears, faGrinTongue, faGrinTongueSquint, faGrinTongueWink, faGrinWink, faGripHorizontal, faGripVertical, faHSquare, faHammer, faHamsa, faHandHolding, faHandHoldingHeart, faHandHoldingUsd, faHandLizard, faHandPaper, faHandPeace, faHandPointDown, faHandPointLeft, faHandPointRight, faHandPointUp, faHandPointer, faHandRock, faHandScissors, faHandSpock, faHands, faHandsHelping, faHandshake, faHanukiah, faHashtag, faHatWizard, faHaykal, faHdd, faHeading, faHeadphones, faHeadphonesAlt, faHeadset, faHeart, faHeartbeat, faHelicopter, faHighlighter, faHiking, faHippo, faHistory, faHockeyPuck, faHome, faHorse, faHospital, faHospitalAlt, faHospitalSymbol, faHotTub, faHotel, faHourglass, faHourglassEnd, faHourglassHalf, faHourglassStart, faHouseDamage, faHryvnia, faICursor, faIdBadge, faIdCard, faIdCardAlt, faImage, faImages, faInbox, faIndent, faIndustry, faInfinity, faInfo, faInfoCircle, faItalic, faJedi, faJoint, faJournalWhills, faKaaba, faKey, faKeyboard, faKhanda, faKiss, faKissBeam, faKissWinkHeart, faKiwiBird, faLandmark, faLanguage, faLaptop, faLaptopCode, faLaugh, faLaughBeam, faLaughSquint, faLaughWink, faLayerGroup, faLeaf, faLemon, faLessThan, faLessThanEqual, faLevelDownAlt, faLevelUpAlt, faLifeRing, faLightbulb, faLink, faLiraSign, faList, faListAlt, faListOl, faListUl, faLocationArrow, faLock, faLockOpen, faLongArrowAltDown, faLongArrowAltLeft, faLongArrowAltRight, faLongArrowAltUp, faLowVision, faLuggageCart, faMagic, faMagnet, faMailBulk, faMale, faMap, faMapMarked, faMapMarkedAlt, faMapMarker, faMapMarkerAlt, faMapPin, faMapSigns, faMarker, faMars, faMarsDouble, faMarsStroke, faMarsStrokeH, faMarsStrokeV, faMask, faMedal, faMedkit, faMeh, faMehBlank, faMehRollingEyes, faMemory, faMenorah, faMercury, faMicrochip, faMicrophone, faMicrophoneAlt, faMicrophoneAltSlash, faMicrophoneSlash, faMicroscope, faMinus, faMinusCircle, faMinusSquare, faMobile, faMobileAlt, faMoneyBill, faMoneyBillAlt, faMoneyBillWave, faMoneyBillWaveAlt, faMoneyCheck, faMoneyCheckAlt, faMonument, faMoon, faMortarPestle, faMosque, faMotorcycle, faMountain, faMousePointer, faMusic, faNetworkWired, faNeuter, faNewspaper, faNotEqual, faNotesMedical, faObjectGroup, faObjectUngroup, faOilCan, faOm, faOtter, faOutdent, faPaintBrush, faPaintRoller, faPalette, faPallet, faPaperPlane, faPaperclip, faParachuteBox, faParagraph, faParking, faPassport, faPastafarianism, faPaste, faPause, faPauseCircle, faPaw, faPeace, faPen, faPenAlt, faPenFancy, faPenNib, faPenSquare, faPencilAlt, faPencilRuler, faPeopleCarry, faPercent, faPercentage, faPhone, faPhoneSlash, faPhoneSquare, faPhoneVolume, faPiggyBank, faPills, faPlaceOfWorship, faPlane, faPlaneArrival, faPlaneDeparture, faPlay, faPlayCircle, faPlug, faPlus, faPlusCircle, faPlusSquare, faPodcast, faPoll, faPollH, faPoo, faPoop, faPortrait, faPoundSign, faPowerOff, faPray, faPrayingHands, faPrescription, faPrescriptionBottle, faPrescriptionBottleAlt, faPrint, faProcedures, faProjectDiagram, faPuzzlePiece, faQrcode, faQuestion, faQuestionCircle, faQuidditch, faQuoteLeft, faQuoteRight, faQuran, faRandom, faReceipt, faRecycle, faRedo, faRedoAlt, faRegistered, faReply, faReplyAll, faRetweet, faRibbon, faRing, faRoad, faRobot, faRocket, faRoute, faRss, faRssSquare, faRubleSign, faRuler, faRulerCombined, faRulerHorizontal, faRulerVertical, faRunning, faRupeeSign, faSadCry, faSadTear, faSave, faSchool, faScrewdriver, faScroll, faSearch, faSearchDollar, faSearchLocation, faSearchMinus, faSearchPlus, faSeedling, faServer, faShapes, faShare, faShareAlt, faShareAltSquare, faShareSquare, faShekelSign, faShieldAlt, faShip, faShippingFast, faShoePrints, faShoppingBag, faShoppingBasket, faShoppingCart, faShower, faShuttleVan, faSign, faSignInAlt, faSignLanguage, faSignOutAlt, faSignal, faSignature, faSitemap, faSkull, faSkullCrossbones, faSlash, faSlidersH, faSmile, faSmileBeam, faSmileWink, faSmoking, faSmokingBan, faSnowflake, faSocks, faSolarPanel, faSort, faSortAlphaDown, faSortAlphaUp, faSortAmountDown, faSortAmountUp, faSortDown, faSortNumericDown, faSortNumericUp, faSortUp, faSpa, faSpaceShuttle, faSpider, faSpinner, faSplotch, faSprayCan, faSquare, faSquareFull, faSquareRootAlt, faStamp, faStar, faStarAndCrescent, faStarHalf, faStarHalfAlt, faStarOfDavid, faStarOfLife, faStepBackward, faStepForward, faStethoscope, faStickyNote, faStop, faStopCircle, faStopwatch, faStore, faStoreAlt, faStream, faStreetView, faStrikethrough, faStroopwafel, faSubscript, faSubway, faSuitcase, faSuitcaseRolling, faSun, faSuperscript, faSurprise, faSwatchbook, faSwimmer, faSwimmingPool, faSynagogue, faSync, faSyncAlt, faSyringe, faTable, faTableTennis, faTablet, faTabletAlt, faTablets, faTachometerAlt, faTag, faTags, faTape, faTasks, faTaxi, faTeeth, faTeethOpen, faTerminal, faTextHeight, faTextWidth, faTh, faThLarge, faThList, faTheaterMasks, faThermometer, faThermometerEmpty, faThermometerFull, faThermometerHalf, faThermometerQuarter, faThermometerThreeQuarters, faThumbsDown, faThumbsUp, faThumbtack, faTicketAlt, faTimes, faTimesCircle, faTint, faTintSlash, faTired, faToggleOff, faToggleOn, faToiletPaper, faToolbox, faTooth, faTorah, faToriiGate, faTractor, faTrademark, faTrafficLight, faTrain, faTransgender, faTransgenderAlt, faTrash, faTrashAlt, faTree, faTrophy, faTruck, faTruckLoading, faTruckMonster, faTruckMoving, faTruckPickup, faTshirt, faTty, faTv, faUmbrella, faUmbrellaBeach, faUnderline, faUndo, faUndoAlt, faUniversalAccess, faUniversity, faUnlink, faUnlock, faUnlockAlt, faUpload, faUser, faUserAlt, faUserAltSlash, faUserAstronaut, faUserCheck, faUserCircle, faUserClock, faUserCog, faUserEdit, faUserFriends, faUserGraduate, faUserInjured, faUserLock, faUserMd, faUserMinus, faUserNinja, faUserPlus, faUserSecret, faUserShield, faUserSlash, faUserTag, faUserTie, faUserTimes, faUsers, faUsersCog, faUtensilSpoon, faUtensils, faVectorSquare, faVenus, faVenusDouble, faVenusMars, faVial, faVials, faVideo, faVideoSlash, faVihara, faVolleyballBall, faVolumeDown, faVolumeMute, faVolumeOff, faVolumeUp, faVrCardboard, faWalking, faWallet, faWarehouse, faWeight, faWeightHanging, faWheelchair, faWifi, faWind, faWindowClose, faWindowMaximize, faWindowMinimize, faWindowRestore, faWineBottle, faWineGlass, faWineGlassAlt, faWonSign, faWrench, faXRay, faYenSign, faYinYang */
  2316. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2317. "use strict";
  2318. __webpack_require__.r(__webpack_exports__);
  2319. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fas", function() { return _iconsCache; });
  2320. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prefix", function() { return prefix; });
  2321. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAd", function() { return faAd; });
  2322. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAddressBook", function() { return faAddressBook; });
  2323. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAddressCard", function() { return faAddressCard; });
  2324. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAdjust", function() { return faAdjust; });
  2325. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAirFreshener", function() { return faAirFreshener; });
  2326. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignCenter", function() { return faAlignCenter; });
  2327. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignJustify", function() { return faAlignJustify; });
  2328. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignLeft", function() { return faAlignLeft; });
  2329. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignRight", function() { return faAlignRight; });
  2330. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAllergies", function() { return faAllergies; });
  2331. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAmbulance", function() { return faAmbulance; });
  2332. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAmericanSignLanguageInterpreting", function() { return faAmericanSignLanguageInterpreting; });
  2333. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAnchor", function() { return faAnchor; });
  2334. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleDown", function() { return faAngleDoubleDown; });
  2335. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleLeft", function() { return faAngleDoubleLeft; });
  2336. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleRight", function() { return faAngleDoubleRight; });
  2337. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleUp", function() { return faAngleDoubleUp; });
  2338. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDown", function() { return faAngleDown; });
  2339. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleLeft", function() { return faAngleLeft; });
  2340. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleRight", function() { return faAngleRight; });
  2341. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleUp", function() { return faAngleUp; });
  2342. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngry", function() { return faAngry; });
  2343. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAnkh", function() { return faAnkh; });
  2344. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAppleAlt", function() { return faAppleAlt; });
  2345. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArchive", function() { return faArchive; });
  2346. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArchway", function() { return faArchway; });
  2347. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleDown", function() { return faArrowAltCircleDown; });
  2348. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleLeft", function() { return faArrowAltCircleLeft; });
  2349. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleRight", function() { return faArrowAltCircleRight; });
  2350. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleUp", function() { return faArrowAltCircleUp; });
  2351. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleDown", function() { return faArrowCircleDown; });
  2352. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleLeft", function() { return faArrowCircleLeft; });
  2353. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleRight", function() { return faArrowCircleRight; });
  2354. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleUp", function() { return faArrowCircleUp; });
  2355. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowDown", function() { return faArrowDown; });
  2356. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowLeft", function() { return faArrowLeft; });
  2357. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowRight", function() { return faArrowRight; });
  2358. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowUp", function() { return faArrowUp; });
  2359. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAlt", function() { return faArrowsAlt; });
  2360. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAltH", function() { return faArrowsAltH; });
  2361. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAltV", function() { return faArrowsAltV; });
  2362. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAssistiveListeningSystems", function() { return faAssistiveListeningSystems; });
  2363. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAsterisk", function() { return faAsterisk; });
  2364. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAt", function() { return faAt; });
  2365. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAtlas", function() { return faAtlas; });
  2366. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAtom", function() { return faAtom; });
  2367. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAudioDescription", function() { return faAudioDescription; });
  2368. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAward", function() { return faAward; });
  2369. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBackspace", function() { return faBackspace; });
  2370. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBackward", function() { return faBackward; });
  2371. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBalanceScale", function() { return faBalanceScale; });
  2372. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBan", function() { return faBan; });
  2373. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBandAid", function() { return faBandAid; });
  2374. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBarcode", function() { return faBarcode; });
  2375. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBars", function() { return faBars; });
  2376. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBaseballBall", function() { return faBaseballBall; });
  2377. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBasketballBall", function() { return faBasketballBall; });
  2378. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBath", function() { return faBath; });
  2379. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryEmpty", function() { return faBatteryEmpty; });
  2380. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryFull", function() { return faBatteryFull; });
  2381. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryHalf", function() { return faBatteryHalf; });
  2382. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryQuarter", function() { return faBatteryQuarter; });
  2383. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryThreeQuarters", function() { return faBatteryThreeQuarters; });
  2384. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBed", function() { return faBed; });
  2385. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBeer", function() { return faBeer; });
  2386. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBell", function() { return faBell; });
  2387. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBellSlash", function() { return faBellSlash; });
  2388. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBezierCurve", function() { return faBezierCurve; });
  2389. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBible", function() { return faBible; });
  2390. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBicycle", function() { return faBicycle; });
  2391. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBinoculars", function() { return faBinoculars; });
  2392. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBirthdayCake", function() { return faBirthdayCake; });
  2393. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlender", function() { return faBlender; });
  2394. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlenderPhone", function() { return faBlenderPhone; });
  2395. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlind", function() { return faBlind; });
  2396. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBold", function() { return faBold; });
  2397. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBolt", function() { return faBolt; });
  2398. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBomb", function() { return faBomb; });
  2399. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBone", function() { return faBone; });
  2400. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBong", function() { return faBong; });
  2401. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBook", function() { return faBook; });
  2402. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookDead", function() { return faBookDead; });
  2403. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookOpen", function() { return faBookOpen; });
  2404. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookReader", function() { return faBookReader; });
  2405. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookmark", function() { return faBookmark; });
  2406. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBowlingBall", function() { return faBowlingBall; });
  2407. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBox", function() { return faBox; });
  2408. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBoxOpen", function() { return faBoxOpen; });
  2409. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBoxes", function() { return faBoxes; });
  2410. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBraille", function() { return faBraille; });
  2411. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBrain", function() { return faBrain; });
  2412. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBriefcase", function() { return faBriefcase; });
  2413. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBriefcaseMedical", function() { return faBriefcaseMedical; });
  2414. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBroadcastTower", function() { return faBroadcastTower; });
  2415. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBroom", function() { return faBroom; });
  2416. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBrush", function() { return faBrush; });
  2417. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBug", function() { return faBug; });
  2418. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBuilding", function() { return faBuilding; });
  2419. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBullhorn", function() { return faBullhorn; });
  2420. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBullseye", function() { return faBullseye; });
  2421. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBurn", function() { return faBurn; });
  2422. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBus", function() { return faBus; });
  2423. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBusAlt", function() { return faBusAlt; });
  2424. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBusinessTime", function() { return faBusinessTime; });
  2425. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalculator", function() { return faCalculator; });
  2426. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendar", function() { return faCalendar; });
  2427. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarAlt", function() { return faCalendarAlt; });
  2428. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarCheck", function() { return faCalendarCheck; });
  2429. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarMinus", function() { return faCalendarMinus; });
  2430. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarPlus", function() { return faCalendarPlus; });
  2431. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarTimes", function() { return faCalendarTimes; });
  2432. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCamera", function() { return faCamera; });
  2433. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCameraRetro", function() { return faCameraRetro; });
  2434. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCampground", function() { return faCampground; });
  2435. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCannabis", function() { return faCannabis; });
  2436. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCapsules", function() { return faCapsules; });
  2437. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCar", function() { return faCar; });
  2438. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarAlt", function() { return faCarAlt; });
  2439. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarBattery", function() { return faCarBattery; });
  2440. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarCrash", function() { return faCarCrash; });
  2441. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarSide", function() { return faCarSide; });
  2442. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretDown", function() { return faCaretDown; });
  2443. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretLeft", function() { return faCaretLeft; });
  2444. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretRight", function() { return faCaretRight; });
  2445. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareDown", function() { return faCaretSquareDown; });
  2446. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareLeft", function() { return faCaretSquareLeft; });
  2447. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareRight", function() { return faCaretSquareRight; });
  2448. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareUp", function() { return faCaretSquareUp; });
  2449. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretUp", function() { return faCaretUp; });
  2450. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCartArrowDown", function() { return faCartArrowDown; });
  2451. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCartPlus", function() { return faCartPlus; });
  2452. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCat", function() { return faCat; });
  2453. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCertificate", function() { return faCertificate; });
  2454. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChair", function() { return faChair; });
  2455. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChalkboard", function() { return faChalkboard; });
  2456. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChalkboardTeacher", function() { return faChalkboardTeacher; });
  2457. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChargingStation", function() { return faChargingStation; });
  2458. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartArea", function() { return faChartArea; });
  2459. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartBar", function() { return faChartBar; });
  2460. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartLine", function() { return faChartLine; });
  2461. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartPie", function() { return faChartPie; });
  2462. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheck", function() { return faCheck; });
  2463. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckCircle", function() { return faCheckCircle; });
  2464. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckDouble", function() { return faCheckDouble; });
  2465. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckSquare", function() { return faCheckSquare; });
  2466. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChess", function() { return faChess; });
  2467. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessBishop", function() { return faChessBishop; });
  2468. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessBoard", function() { return faChessBoard; });
  2469. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessKing", function() { return faChessKing; });
  2470. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessKnight", function() { return faChessKnight; });
  2471. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessPawn", function() { return faChessPawn; });
  2472. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessQueen", function() { return faChessQueen; });
  2473. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessRook", function() { return faChessRook; });
  2474. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleDown", function() { return faChevronCircleDown; });
  2475. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleLeft", function() { return faChevronCircleLeft; });
  2476. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleRight", function() { return faChevronCircleRight; });
  2477. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleUp", function() { return faChevronCircleUp; });
  2478. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronDown", function() { return faChevronDown; });
  2479. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronLeft", function() { return faChevronLeft; });
  2480. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronRight", function() { return faChevronRight; });
  2481. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronUp", function() { return faChevronUp; });
  2482. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChild", function() { return faChild; });
  2483. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChurch", function() { return faChurch; });
  2484. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCircle", function() { return faCircle; });
  2485. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCircleNotch", function() { return faCircleNotch; });
  2486. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCity", function() { return faCity; });
  2487. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboard", function() { return faClipboard; });
  2488. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboardCheck", function() { return faClipboardCheck; });
  2489. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboardList", function() { return faClipboardList; });
  2490. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClock", function() { return faClock; });
  2491. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClone", function() { return faClone; });
  2492. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClosedCaptioning", function() { return faClosedCaptioning; });
  2493. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloud", function() { return faCloud; });
  2494. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudDownloadAlt", function() { return faCloudDownloadAlt; });
  2495. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudMoon", function() { return faCloudMoon; });
  2496. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudSun", function() { return faCloudSun; });
  2497. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudUploadAlt", function() { return faCloudUploadAlt; });
  2498. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCocktail", function() { return faCocktail; });
  2499. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCode", function() { return faCode; });
  2500. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCodeBranch", function() { return faCodeBranch; });
  2501. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCoffee", function() { return faCoffee; });
  2502. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCog", function() { return faCog; });
  2503. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCogs", function() { return faCogs; });
  2504. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCoins", function() { return faCoins; });
  2505. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faColumns", function() { return faColumns; });
  2506. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faComment", function() { return faComment; });
  2507. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentAlt", function() { return faCommentAlt; });
  2508. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentDollar", function() { return faCommentDollar; });
  2509. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentDots", function() { return faCommentDots; });
  2510. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentSlash", function() { return faCommentSlash; });
  2511. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faComments", function() { return faComments; });
  2512. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentsDollar", function() { return faCommentsDollar; });
  2513. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompactDisc", function() { return faCompactDisc; });
  2514. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompass", function() { return faCompass; });
  2515. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompress", function() { return faCompress; });
  2516. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faConciergeBell", function() { return faConciergeBell; });
  2517. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCookie", function() { return faCookie; });
  2518. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCookieBite", function() { return faCookieBite; });
  2519. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCopy", function() { return faCopy; });
  2520. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCopyright", function() { return faCopyright; });
  2521. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCouch", function() { return faCouch; });
  2522. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCreditCard", function() { return faCreditCard; });
  2523. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrop", function() { return faCrop; });
  2524. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCropAlt", function() { return faCropAlt; });
  2525. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCross", function() { return faCross; });
  2526. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrosshairs", function() { return faCrosshairs; });
  2527. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrow", function() { return faCrow; });
  2528. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrown", function() { return faCrown; });
  2529. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCube", function() { return faCube; });
  2530. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCubes", function() { return faCubes; });
  2531. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCut", function() { return faCut; });
  2532. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDatabase", function() { return faDatabase; });
  2533. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDeaf", function() { return faDeaf; });
  2534. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDesktop", function() { return faDesktop; });
  2535. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDharmachakra", function() { return faDharmachakra; });
  2536. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiagnoses", function() { return faDiagnoses; });
  2537. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDice", function() { return faDice; });
  2538. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceD20", function() { return faDiceD20; });
  2539. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceD6", function() { return faDiceD6; });
  2540. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceFive", function() { return faDiceFive; });
  2541. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceFour", function() { return faDiceFour; });
  2542. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceOne", function() { return faDiceOne; });
  2543. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceSix", function() { return faDiceSix; });
  2544. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceThree", function() { return faDiceThree; });
  2545. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceTwo", function() { return faDiceTwo; });
  2546. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDigitalTachograph", function() { return faDigitalTachograph; });
  2547. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDirections", function() { return faDirections; });
  2548. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDivide", function() { return faDivide; });
  2549. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDizzy", function() { return faDizzy; });
  2550. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDna", function() { return faDna; });
  2551. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDog", function() { return faDog; });
  2552. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDollarSign", function() { return faDollarSign; });
  2553. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDolly", function() { return faDolly; });
  2554. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDollyFlatbed", function() { return faDollyFlatbed; });
  2555. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDonate", function() { return faDonate; });
  2556. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDoorClosed", function() { return faDoorClosed; });
  2557. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDoorOpen", function() { return faDoorOpen; });
  2558. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDotCircle", function() { return faDotCircle; });
  2559. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDove", function() { return faDove; });
  2560. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDownload", function() { return faDownload; });
  2561. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDraftingCompass", function() { return faDraftingCompass; });
  2562. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDragon", function() { return faDragon; });
  2563. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrawPolygon", function() { return faDrawPolygon; });
  2564. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrum", function() { return faDrum; });
  2565. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrumSteelpan", function() { return faDrumSteelpan; });
  2566. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrumstickBite", function() { return faDrumstickBite; });
  2567. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDumbbell", function() { return faDumbbell; });
  2568. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDungeon", function() { return faDungeon; });
  2569. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEdit", function() { return faEdit; });
  2570. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEject", function() { return faEject; });
  2571. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEllipsisH", function() { return faEllipsisH; });
  2572. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEllipsisV", function() { return faEllipsisV; });
  2573. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelope", function() { return faEnvelope; });
  2574. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeOpen", function() { return faEnvelopeOpen; });
  2575. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeOpenText", function() { return faEnvelopeOpenText; });
  2576. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeSquare", function() { return faEnvelopeSquare; });
  2577. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEquals", function() { return faEquals; });
  2578. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEraser", function() { return faEraser; });
  2579. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEuroSign", function() { return faEuroSign; });
  2580. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExchangeAlt", function() { return faExchangeAlt; });
  2581. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamation", function() { return faExclamation; });
  2582. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamationCircle", function() { return faExclamationCircle; });
  2583. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamationTriangle", function() { return faExclamationTriangle; });
  2584. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExpand", function() { return faExpand; });
  2585. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExpandArrowsAlt", function() { return faExpandArrowsAlt; });
  2586. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExternalLinkAlt", function() { return faExternalLinkAlt; });
  2587. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExternalLinkSquareAlt", function() { return faExternalLinkSquareAlt; });
  2588. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEye", function() { return faEye; });
  2589. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEyeDropper", function() { return faEyeDropper; });
  2590. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEyeSlash", function() { return faEyeSlash; });
  2591. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFastBackward", function() { return faFastBackward; });
  2592. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFastForward", function() { return faFastForward; });
  2593. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFax", function() { return faFax; });
  2594. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFeather", function() { return faFeather; });
  2595. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFeatherAlt", function() { return faFeatherAlt; });
  2596. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFemale", function() { return faFemale; });
  2597. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFighterJet", function() { return faFighterJet; });
  2598. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFile", function() { return faFile; });
  2599. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileAlt", function() { return faFileAlt; });
  2600. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileArchive", function() { return faFileArchive; });
  2601. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileAudio", function() { return faFileAudio; });
  2602. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileCode", function() { return faFileCode; });
  2603. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileContract", function() { return faFileContract; });
  2604. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileCsv", function() { return faFileCsv; });
  2605. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileDownload", function() { return faFileDownload; });
  2606. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileExcel", function() { return faFileExcel; });
  2607. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileExport", function() { return faFileExport; });
  2608. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileImage", function() { return faFileImage; });
  2609. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileImport", function() { return faFileImport; });
  2610. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileInvoice", function() { return faFileInvoice; });
  2611. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileInvoiceDollar", function() { return faFileInvoiceDollar; });
  2612. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileMedical", function() { return faFileMedical; });
  2613. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileMedicalAlt", function() { return faFileMedicalAlt; });
  2614. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePdf", function() { return faFilePdf; });
  2615. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePowerpoint", function() { return faFilePowerpoint; });
  2616. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePrescription", function() { return faFilePrescription; });
  2617. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileSignature", function() { return faFileSignature; });
  2618. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileUpload", function() { return faFileUpload; });
  2619. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileVideo", function() { return faFileVideo; });
  2620. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileWord", function() { return faFileWord; });
  2621. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFill", function() { return faFill; });
  2622. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFillDrip", function() { return faFillDrip; });
  2623. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilm", function() { return faFilm; });
  2624. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilter", function() { return faFilter; });
  2625. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFingerprint", function() { return faFingerprint; });
  2626. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFire", function() { return faFire; });
  2627. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFireExtinguisher", function() { return faFireExtinguisher; });
  2628. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFirstAid", function() { return faFirstAid; });
  2629. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFish", function() { return faFish; });
  2630. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFistRaised", function() { return faFistRaised; });
  2631. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlag", function() { return faFlag; });
  2632. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlagCheckered", function() { return faFlagCheckered; });
  2633. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlask", function() { return faFlask; });
  2634. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlushed", function() { return faFlushed; });
  2635. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolder", function() { return faFolder; });
  2636. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderMinus", function() { return faFolderMinus; });
  2637. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderOpen", function() { return faFolderOpen; });
  2638. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderPlus", function() { return faFolderPlus; });
  2639. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFont", function() { return faFont; });
  2640. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFontAwesomeLogoFull", function() { return faFontAwesomeLogoFull; });
  2641. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFootballBall", function() { return faFootballBall; });
  2642. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faForward", function() { return faForward; });
  2643. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrog", function() { return faFrog; });
  2644. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrown", function() { return faFrown; });
  2645. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrownOpen", function() { return faFrownOpen; });
  2646. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFunnelDollar", function() { return faFunnelDollar; });
  2647. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFutbol", function() { return faFutbol; });
  2648. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGamepad", function() { return faGamepad; });
  2649. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGasPump", function() { return faGasPump; });
  2650. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGavel", function() { return faGavel; });
  2651. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGem", function() { return faGem; });
  2652. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGenderless", function() { return faGenderless; });
  2653. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGhost", function() { return faGhost; });
  2654. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGift", function() { return faGift; });
  2655. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlassMartini", function() { return faGlassMartini; });
  2656. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlassMartiniAlt", function() { return faGlassMartiniAlt; });
  2657. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlasses", function() { return faGlasses; });
  2658. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobe", function() { return faGlobe; });
  2659. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAfrica", function() { return faGlobeAfrica; });
  2660. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAmericas", function() { return faGlobeAmericas; });
  2661. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAsia", function() { return faGlobeAsia; });
  2662. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGolfBall", function() { return faGolfBall; });
  2663. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGopuram", function() { return faGopuram; });
  2664. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGraduationCap", function() { return faGraduationCap; });
  2665. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGreaterThan", function() { return faGreaterThan; });
  2666. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGreaterThanEqual", function() { return faGreaterThanEqual; });
  2667. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrimace", function() { return faGrimace; });
  2668. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrin", function() { return faGrin; });
  2669. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinAlt", function() { return faGrinAlt; });
  2670. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinBeam", function() { return faGrinBeam; });
  2671. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinBeamSweat", function() { return faGrinBeamSweat; });
  2672. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinHearts", function() { return faGrinHearts; });
  2673. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinSquint", function() { return faGrinSquint; });
  2674. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinSquintTears", function() { return faGrinSquintTears; });
  2675. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinStars", function() { return faGrinStars; });
  2676. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTears", function() { return faGrinTears; });
  2677. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongue", function() { return faGrinTongue; });
  2678. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongueSquint", function() { return faGrinTongueSquint; });
  2679. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongueWink", function() { return faGrinTongueWink; });
  2680. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinWink", function() { return faGrinWink; });
  2681. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGripHorizontal", function() { return faGripHorizontal; });
  2682. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGripVertical", function() { return faGripVertical; });
  2683. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHSquare", function() { return faHSquare; });
  2684. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHammer", function() { return faHammer; });
  2685. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHamsa", function() { return faHamsa; });
  2686. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHolding", function() { return faHandHolding; });
  2687. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHoldingHeart", function() { return faHandHoldingHeart; });
  2688. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHoldingUsd", function() { return faHandHoldingUsd; });
  2689. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandLizard", function() { return faHandLizard; });
  2690. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPaper", function() { return faHandPaper; });
  2691. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPeace", function() { return faHandPeace; });
  2692. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointDown", function() { return faHandPointDown; });
  2693. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointLeft", function() { return faHandPointLeft; });
  2694. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointRight", function() { return faHandPointRight; });
  2695. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointUp", function() { return faHandPointUp; });
  2696. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointer", function() { return faHandPointer; });
  2697. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandRock", function() { return faHandRock; });
  2698. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandScissors", function() { return faHandScissors; });
  2699. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandSpock", function() { return faHandSpock; });
  2700. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHands", function() { return faHands; });
  2701. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandsHelping", function() { return faHandsHelping; });
  2702. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandshake", function() { return faHandshake; });
  2703. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHanukiah", function() { return faHanukiah; });
  2704. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHashtag", function() { return faHashtag; });
  2705. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHatWizard", function() { return faHatWizard; });
  2706. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHaykal", function() { return faHaykal; });
  2707. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHdd", function() { return faHdd; });
  2708. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeading", function() { return faHeading; });
  2709. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadphones", function() { return faHeadphones; });
  2710. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadphonesAlt", function() { return faHeadphonesAlt; });
  2711. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadset", function() { return faHeadset; });
  2712. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeart", function() { return faHeart; });
  2713. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeartbeat", function() { return faHeartbeat; });
  2714. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHelicopter", function() { return faHelicopter; });
  2715. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHighlighter", function() { return faHighlighter; });
  2716. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHiking", function() { return faHiking; });
  2717. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHippo", function() { return faHippo; });
  2718. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHistory", function() { return faHistory; });
  2719. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHockeyPuck", function() { return faHockeyPuck; });
  2720. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHome", function() { return faHome; });
  2721. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHorse", function() { return faHorse; });
  2722. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospital", function() { return faHospital; });
  2723. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospitalAlt", function() { return faHospitalAlt; });
  2724. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospitalSymbol", function() { return faHospitalSymbol; });
  2725. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHotTub", function() { return faHotTub; });
  2726. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHotel", function() { return faHotel; });
  2727. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglass", function() { return faHourglass; });
  2728. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassEnd", function() { return faHourglassEnd; });
  2729. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassHalf", function() { return faHourglassHalf; });
  2730. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassStart", function() { return faHourglassStart; });
  2731. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHouseDamage", function() { return faHouseDamage; });
  2732. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHryvnia", function() { return faHryvnia; });
  2733. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faICursor", function() { return faICursor; });
  2734. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdBadge", function() { return faIdBadge; });
  2735. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdCard", function() { return faIdCard; });
  2736. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdCardAlt", function() { return faIdCardAlt; });
  2737. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faImage", function() { return faImage; });
  2738. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faImages", function() { return faImages; });
  2739. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInbox", function() { return faInbox; });
  2740. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIndent", function() { return faIndent; });
  2741. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIndustry", function() { return faIndustry; });
  2742. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfinity", function() { return faInfinity; });
  2743. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfo", function() { return faInfo; });
  2744. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfoCircle", function() { return faInfoCircle; });
  2745. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faItalic", function() { return faItalic; });
  2746. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJedi", function() { return faJedi; });
  2747. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJoint", function() { return faJoint; });
  2748. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJournalWhills", function() { return faJournalWhills; });
  2749. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKaaba", function() { return faKaaba; });
  2750. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKey", function() { return faKey; });
  2751. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKeyboard", function() { return faKeyboard; });
  2752. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKhanda", function() { return faKhanda; });
  2753. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKiss", function() { return faKiss; });
  2754. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKissBeam", function() { return faKissBeam; });
  2755. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKissWinkHeart", function() { return faKissWinkHeart; });
  2756. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKiwiBird", function() { return faKiwiBird; });
  2757. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLandmark", function() { return faLandmark; });
  2758. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLanguage", function() { return faLanguage; });
  2759. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaptop", function() { return faLaptop; });
  2760. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaptopCode", function() { return faLaptopCode; });
  2761. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaugh", function() { return faLaugh; });
  2762. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughBeam", function() { return faLaughBeam; });
  2763. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughSquint", function() { return faLaughSquint; });
  2764. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughWink", function() { return faLaughWink; });
  2765. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLayerGroup", function() { return faLayerGroup; });
  2766. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLeaf", function() { return faLeaf; });
  2767. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLemon", function() { return faLemon; });
  2768. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLessThan", function() { return faLessThan; });
  2769. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLessThanEqual", function() { return faLessThanEqual; });
  2770. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLevelDownAlt", function() { return faLevelDownAlt; });
  2771. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLevelUpAlt", function() { return faLevelUpAlt; });
  2772. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLifeRing", function() { return faLifeRing; });
  2773. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLightbulb", function() { return faLightbulb; });
  2774. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLink", function() { return faLink; });
  2775. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLiraSign", function() { return faLiraSign; });
  2776. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faList", function() { return faList; });
  2777. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListAlt", function() { return faListAlt; });
  2778. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListOl", function() { return faListOl; });
  2779. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListUl", function() { return faListUl; });
  2780. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLocationArrow", function() { return faLocationArrow; });
  2781. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLock", function() { return faLock; });
  2782. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLockOpen", function() { return faLockOpen; });
  2783. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltDown", function() { return faLongArrowAltDown; });
  2784. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltLeft", function() { return faLongArrowAltLeft; });
  2785. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltRight", function() { return faLongArrowAltRight; });
  2786. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltUp", function() { return faLongArrowAltUp; });
  2787. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLowVision", function() { return faLowVision; });
  2788. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLuggageCart", function() { return faLuggageCart; });
  2789. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMagic", function() { return faMagic; });
  2790. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMagnet", function() { return faMagnet; });
  2791. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMailBulk", function() { return faMailBulk; });
  2792. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMale", function() { return faMale; });
  2793. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMap", function() { return faMap; });
  2794. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarked", function() { return faMapMarked; });
  2795. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarkedAlt", function() { return faMapMarkedAlt; });
  2796. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarker", function() { return faMapMarker; });
  2797. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarkerAlt", function() { return faMapMarkerAlt; });
  2798. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapPin", function() { return faMapPin; });
  2799. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapSigns", function() { return faMapSigns; });
  2800. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarker", function() { return faMarker; });
  2801. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMars", function() { return faMars; });
  2802. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsDouble", function() { return faMarsDouble; });
  2803. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStroke", function() { return faMarsStroke; });
  2804. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStrokeH", function() { return faMarsStrokeH; });
  2805. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStrokeV", function() { return faMarsStrokeV; });
  2806. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMask", function() { return faMask; });
  2807. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMedal", function() { return faMedal; });
  2808. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMedkit", function() { return faMedkit; });
  2809. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMeh", function() { return faMeh; });
  2810. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMehBlank", function() { return faMehBlank; });
  2811. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMehRollingEyes", function() { return faMehRollingEyes; });
  2812. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMemory", function() { return faMemory; });
  2813. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMenorah", function() { return faMenorah; });
  2814. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMercury", function() { return faMercury; });
  2815. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrochip", function() { return faMicrochip; });
  2816. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophone", function() { return faMicrophone; });
  2817. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneAlt", function() { return faMicrophoneAlt; });
  2818. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneAltSlash", function() { return faMicrophoneAltSlash; });
  2819. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneSlash", function() { return faMicrophoneSlash; });
  2820. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicroscope", function() { return faMicroscope; });
  2821. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinus", function() { return faMinus; });
  2822. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinusCircle", function() { return faMinusCircle; });
  2823. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinusSquare", function() { return faMinusSquare; });
  2824. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMobile", function() { return faMobile; });
  2825. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMobileAlt", function() { return faMobileAlt; });
  2826. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBill", function() { return faMoneyBill; });
  2827. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillAlt", function() { return faMoneyBillAlt; });
  2828. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillWave", function() { return faMoneyBillWave; });
  2829. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillWaveAlt", function() { return faMoneyBillWaveAlt; });
  2830. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyCheck", function() { return faMoneyCheck; });
  2831. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyCheckAlt", function() { return faMoneyCheckAlt; });
  2832. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMonument", function() { return faMonument; });
  2833. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoon", function() { return faMoon; });
  2834. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMortarPestle", function() { return faMortarPestle; });
  2835. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMosque", function() { return faMosque; });
  2836. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMotorcycle", function() { return faMotorcycle; });
  2837. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMountain", function() { return faMountain; });
  2838. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMousePointer", function() { return faMousePointer; });
  2839. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMusic", function() { return faMusic; });
  2840. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNetworkWired", function() { return faNetworkWired; });
  2841. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNeuter", function() { return faNeuter; });
  2842. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNewspaper", function() { return faNewspaper; });
  2843. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNotEqual", function() { return faNotEqual; });
  2844. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNotesMedical", function() { return faNotesMedical; });
  2845. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faObjectGroup", function() { return faObjectGroup; });
  2846. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faObjectUngroup", function() { return faObjectUngroup; });
  2847. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOilCan", function() { return faOilCan; });
  2848. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOm", function() { return faOm; });
  2849. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOtter", function() { return faOtter; });
  2850. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOutdent", function() { return faOutdent; });
  2851. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaintBrush", function() { return faPaintBrush; });
  2852. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaintRoller", function() { return faPaintRoller; });
  2853. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPalette", function() { return faPalette; });
  2854. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPallet", function() { return faPallet; });
  2855. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaperPlane", function() { return faPaperPlane; });
  2856. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaperclip", function() { return faPaperclip; });
  2857. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParachuteBox", function() { return faParachuteBox; });
  2858. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParagraph", function() { return faParagraph; });
  2859. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParking", function() { return faParking; });
  2860. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPassport", function() { return faPassport; });
  2861. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPastafarianism", function() { return faPastafarianism; });
  2862. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaste", function() { return faPaste; });
  2863. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPause", function() { return faPause; });
  2864. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPauseCircle", function() { return faPauseCircle; });
  2865. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaw", function() { return faPaw; });
  2866. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPeace", function() { return faPeace; });
  2867. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPen", function() { return faPen; });
  2868. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenAlt", function() { return faPenAlt; });
  2869. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenFancy", function() { return faPenFancy; });
  2870. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenNib", function() { return faPenNib; });
  2871. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenSquare", function() { return faPenSquare; });
  2872. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPencilAlt", function() { return faPencilAlt; });
  2873. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPencilRuler", function() { return faPencilRuler; });
  2874. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPeopleCarry", function() { return faPeopleCarry; });
  2875. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPercent", function() { return faPercent; });
  2876. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPercentage", function() { return faPercentage; });
  2877. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhone", function() { return faPhone; });
  2878. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneSlash", function() { return faPhoneSlash; });
  2879. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneSquare", function() { return faPhoneSquare; });
  2880. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneVolume", function() { return faPhoneVolume; });
  2881. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPiggyBank", function() { return faPiggyBank; });
  2882. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPills", function() { return faPills; });
  2883. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaceOfWorship", function() { return faPlaceOfWorship; });
  2884. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlane", function() { return faPlane; });
  2885. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaneArrival", function() { return faPlaneArrival; });
  2886. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaneDeparture", function() { return faPlaneDeparture; });
  2887. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlay", function() { return faPlay; });
  2888. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlayCircle", function() { return faPlayCircle; });
  2889. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlug", function() { return faPlug; });
  2890. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlus", function() { return faPlus; });
  2891. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlusCircle", function() { return faPlusCircle; });
  2892. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlusSquare", function() { return faPlusSquare; });
  2893. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPodcast", function() { return faPodcast; });
  2894. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoll", function() { return faPoll; });
  2895. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPollH", function() { return faPollH; });
  2896. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoo", function() { return faPoo; });
  2897. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoop", function() { return faPoop; });
  2898. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPortrait", function() { return faPortrait; });
  2899. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoundSign", function() { return faPoundSign; });
  2900. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPowerOff", function() { return faPowerOff; });
  2901. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPray", function() { return faPray; });
  2902. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrayingHands", function() { return faPrayingHands; });
  2903. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescription", function() { return faPrescription; });
  2904. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescriptionBottle", function() { return faPrescriptionBottle; });
  2905. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescriptionBottleAlt", function() { return faPrescriptionBottleAlt; });
  2906. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrint", function() { return faPrint; });
  2907. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faProcedures", function() { return faProcedures; });
  2908. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faProjectDiagram", function() { return faProjectDiagram; });
  2909. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPuzzlePiece", function() { return faPuzzlePiece; });
  2910. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQrcode", function() { return faQrcode; });
  2911. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuestion", function() { return faQuestion; });
  2912. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuestionCircle", function() { return faQuestionCircle; });
  2913. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuidditch", function() { return faQuidditch; });
  2914. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuoteLeft", function() { return faQuoteLeft; });
  2915. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuoteRight", function() { return faQuoteRight; });
  2916. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuran", function() { return faQuran; });
  2917. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRandom", function() { return faRandom; });
  2918. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReceipt", function() { return faReceipt; });
  2919. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRecycle", function() { return faRecycle; });
  2920. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRedo", function() { return faRedo; });
  2921. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRedoAlt", function() { return faRedoAlt; });
  2922. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRegistered", function() { return faRegistered; });
  2923. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReply", function() { return faReply; });
  2924. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReplyAll", function() { return faReplyAll; });
  2925. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRetweet", function() { return faRetweet; });
  2926. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRibbon", function() { return faRibbon; });
  2927. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRing", function() { return faRing; });
  2928. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRoad", function() { return faRoad; });
  2929. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRobot", function() { return faRobot; });
  2930. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRocket", function() { return faRocket; });
  2931. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRoute", function() { return faRoute; });
  2932. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRss", function() { return faRss; });
  2933. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRssSquare", function() { return faRssSquare; });
  2934. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRubleSign", function() { return faRubleSign; });
  2935. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRuler", function() { return faRuler; });
  2936. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerCombined", function() { return faRulerCombined; });
  2937. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerHorizontal", function() { return faRulerHorizontal; });
  2938. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerVertical", function() { return faRulerVertical; });
  2939. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRunning", function() { return faRunning; });
  2940. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRupeeSign", function() { return faRupeeSign; });
  2941. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSadCry", function() { return faSadCry; });
  2942. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSadTear", function() { return faSadTear; });
  2943. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSave", function() { return faSave; });
  2944. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSchool", function() { return faSchool; });
  2945. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faScrewdriver", function() { return faScrewdriver; });
  2946. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faScroll", function() { return faScroll; });
  2947. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearch", function() { return faSearch; });
  2948. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchDollar", function() { return faSearchDollar; });
  2949. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchLocation", function() { return faSearchLocation; });
  2950. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchMinus", function() { return faSearchMinus; });
  2951. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchPlus", function() { return faSearchPlus; });
  2952. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSeedling", function() { return faSeedling; });
  2953. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faServer", function() { return faServer; });
  2954. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShapes", function() { return faShapes; });
  2955. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShare", function() { return faShare; });
  2956. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareAlt", function() { return faShareAlt; });
  2957. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareAltSquare", function() { return faShareAltSquare; });
  2958. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareSquare", function() { return faShareSquare; });
  2959. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShekelSign", function() { return faShekelSign; });
  2960. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShieldAlt", function() { return faShieldAlt; });
  2961. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShip", function() { return faShip; });
  2962. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShippingFast", function() { return faShippingFast; });
  2963. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoePrints", function() { return faShoePrints; });
  2964. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingBag", function() { return faShoppingBag; });
  2965. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingBasket", function() { return faShoppingBasket; });
  2966. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingCart", function() { return faShoppingCart; });
  2967. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShower", function() { return faShower; });
  2968. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShuttleVan", function() { return faShuttleVan; });
  2969. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSign", function() { return faSign; });
  2970. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignInAlt", function() { return faSignInAlt; });
  2971. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignLanguage", function() { return faSignLanguage; });
  2972. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignOutAlt", function() { return faSignOutAlt; });
  2973. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignal", function() { return faSignal; });
  2974. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignature", function() { return faSignature; });
  2975. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSitemap", function() { return faSitemap; });
  2976. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkull", function() { return faSkull; });
  2977. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkullCrossbones", function() { return faSkullCrossbones; });
  2978. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSlash", function() { return faSlash; });
  2979. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSlidersH", function() { return faSlidersH; });
  2980. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmile", function() { return faSmile; });
  2981. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmileBeam", function() { return faSmileBeam; });
  2982. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmileWink", function() { return faSmileWink; });
  2983. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmoking", function() { return faSmoking; });
  2984. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmokingBan", function() { return faSmokingBan; });
  2985. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSnowflake", function() { return faSnowflake; });
  2986. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSocks", function() { return faSocks; });
  2987. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSolarPanel", function() { return faSolarPanel; });
  2988. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSort", function() { return faSort; });
  2989. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAlphaDown", function() { return faSortAlphaDown; });
  2990. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAlphaUp", function() { return faSortAlphaUp; });
  2991. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAmountDown", function() { return faSortAmountDown; });
  2992. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAmountUp", function() { return faSortAmountUp; });
  2993. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortDown", function() { return faSortDown; });
  2994. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortNumericDown", function() { return faSortNumericDown; });
  2995. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortNumericUp", function() { return faSortNumericUp; });
  2996. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortUp", function() { return faSortUp; });
  2997. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpa", function() { return faSpa; });
  2998. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpaceShuttle", function() { return faSpaceShuttle; });
  2999. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpider", function() { return faSpider; });
  3000. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpinner", function() { return faSpinner; });
  3001. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSplotch", function() { return faSplotch; });
  3002. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSprayCan", function() { return faSprayCan; });
  3003. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquare", function() { return faSquare; });
  3004. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquareFull", function() { return faSquareFull; });
  3005. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquareRootAlt", function() { return faSquareRootAlt; });
  3006. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStamp", function() { return faStamp; });
  3007. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStar", function() { return faStar; });
  3008. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarAndCrescent", function() { return faStarAndCrescent; });
  3009. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarHalf", function() { return faStarHalf; });
  3010. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarHalfAlt", function() { return faStarHalfAlt; });
  3011. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarOfDavid", function() { return faStarOfDavid; });
  3012. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarOfLife", function() { return faStarOfLife; });
  3013. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStepBackward", function() { return faStepBackward; });
  3014. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStepForward", function() { return faStepForward; });
  3015. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStethoscope", function() { return faStethoscope; });
  3016. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStickyNote", function() { return faStickyNote; });
  3017. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStop", function() { return faStop; });
  3018. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStopCircle", function() { return faStopCircle; });
  3019. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStopwatch", function() { return faStopwatch; });
  3020. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStore", function() { return faStore; });
  3021. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStoreAlt", function() { return faStoreAlt; });
  3022. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStream", function() { return faStream; });
  3023. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStreetView", function() { return faStreetView; });
  3024. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStrikethrough", function() { return faStrikethrough; });
  3025. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStroopwafel", function() { return faStroopwafel; });
  3026. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSubscript", function() { return faSubscript; });
  3027. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSubway", function() { return faSubway; });
  3028. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuitcase", function() { return faSuitcase; });
  3029. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuitcaseRolling", function() { return faSuitcaseRolling; });
  3030. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSun", function() { return faSun; });
  3031. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuperscript", function() { return faSuperscript; });
  3032. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSurprise", function() { return faSurprise; });
  3033. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwatchbook", function() { return faSwatchbook; });
  3034. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwimmer", function() { return faSwimmer; });
  3035. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwimmingPool", function() { return faSwimmingPool; });
  3036. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSynagogue", function() { return faSynagogue; });
  3037. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSync", function() { return faSync; });
  3038. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSyncAlt", function() { return faSyncAlt; });
  3039. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSyringe", function() { return faSyringe; });
  3040. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTable", function() { return faTable; });
  3041. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTableTennis", function() { return faTableTennis; });
  3042. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTablet", function() { return faTablet; });
  3043. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTabletAlt", function() { return faTabletAlt; });
  3044. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTablets", function() { return faTablets; });
  3045. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTachometerAlt", function() { return faTachometerAlt; });
  3046. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTag", function() { return faTag; });
  3047. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTags", function() { return faTags; });
  3048. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTape", function() { return faTape; });
  3049. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTasks", function() { return faTasks; });
  3050. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTaxi", function() { return faTaxi; });
  3051. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTeeth", function() { return faTeeth; });
  3052. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTeethOpen", function() { return faTeethOpen; });
  3053. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTerminal", function() { return faTerminal; });
  3054. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTextHeight", function() { return faTextHeight; });
  3055. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTextWidth", function() { return faTextWidth; });
  3056. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTh", function() { return faTh; });
  3057. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThLarge", function() { return faThLarge; });
  3058. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThList", function() { return faThList; });
  3059. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTheaterMasks", function() { return faTheaterMasks; });
  3060. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometer", function() { return faThermometer; });
  3061. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerEmpty", function() { return faThermometerEmpty; });
  3062. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerFull", function() { return faThermometerFull; });
  3063. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerHalf", function() { return faThermometerHalf; });
  3064. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerQuarter", function() { return faThermometerQuarter; });
  3065. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerThreeQuarters", function() { return faThermometerThreeQuarters; });
  3066. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbsDown", function() { return faThumbsDown; });
  3067. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbsUp", function() { return faThumbsUp; });
  3068. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbtack", function() { return faThumbtack; });
  3069. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTicketAlt", function() { return faTicketAlt; });
  3070. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTimes", function() { return faTimes; });
  3071. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTimesCircle", function() { return faTimesCircle; });
  3072. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTint", function() { return faTint; });
  3073. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTintSlash", function() { return faTintSlash; });
  3074. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTired", function() { return faTired; });
  3075. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToggleOff", function() { return faToggleOff; });
  3076. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToggleOn", function() { return faToggleOn; });
  3077. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToiletPaper", function() { return faToiletPaper; });
  3078. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToolbox", function() { return faToolbox; });
  3079. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTooth", function() { return faTooth; });
  3080. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTorah", function() { return faTorah; });
  3081. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToriiGate", function() { return faToriiGate; });
  3082. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTractor", function() { return faTractor; });
  3083. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrademark", function() { return faTrademark; });
  3084. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrafficLight", function() { return faTrafficLight; });
  3085. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrain", function() { return faTrain; });
  3086. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTransgender", function() { return faTransgender; });
  3087. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTransgenderAlt", function() { return faTransgenderAlt; });
  3088. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrash", function() { return faTrash; });
  3089. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrashAlt", function() { return faTrashAlt; });
  3090. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTree", function() { return faTree; });
  3091. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrophy", function() { return faTrophy; });
  3092. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruck", function() { return faTruck; });
  3093. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckLoading", function() { return faTruckLoading; });
  3094. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckMonster", function() { return faTruckMonster; });
  3095. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckMoving", function() { return faTruckMoving; });
  3096. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckPickup", function() { return faTruckPickup; });
  3097. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTshirt", function() { return faTshirt; });
  3098. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTty", function() { return faTty; });
  3099. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTv", function() { return faTv; });
  3100. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUmbrella", function() { return faUmbrella; });
  3101. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUmbrellaBeach", function() { return faUmbrellaBeach; });
  3102. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnderline", function() { return faUnderline; });
  3103. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUndo", function() { return faUndo; });
  3104. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUndoAlt", function() { return faUndoAlt; });
  3105. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUniversalAccess", function() { return faUniversalAccess; });
  3106. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUniversity", function() { return faUniversity; });
  3107. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlink", function() { return faUnlink; });
  3108. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlock", function() { return faUnlock; });
  3109. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlockAlt", function() { return faUnlockAlt; });
  3110. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUpload", function() { return faUpload; });
  3111. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUser", function() { return faUser; });
  3112. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAlt", function() { return faUserAlt; });
  3113. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAltSlash", function() { return faUserAltSlash; });
  3114. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAstronaut", function() { return faUserAstronaut; });
  3115. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCheck", function() { return faUserCheck; });
  3116. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCircle", function() { return faUserCircle; });
  3117. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserClock", function() { return faUserClock; });
  3118. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCog", function() { return faUserCog; });
  3119. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserEdit", function() { return faUserEdit; });
  3120. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserFriends", function() { return faUserFriends; });
  3121. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserGraduate", function() { return faUserGraduate; });
  3122. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserInjured", function() { return faUserInjured; });
  3123. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserLock", function() { return faUserLock; });
  3124. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserMd", function() { return faUserMd; });
  3125. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserMinus", function() { return faUserMinus; });
  3126. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserNinja", function() { return faUserNinja; });
  3127. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserPlus", function() { return faUserPlus; });
  3128. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserSecret", function() { return faUserSecret; });
  3129. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserShield", function() { return faUserShield; });
  3130. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserSlash", function() { return faUserSlash; });
  3131. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTag", function() { return faUserTag; });
  3132. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTie", function() { return faUserTie; });
  3133. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTimes", function() { return faUserTimes; });
  3134. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUsers", function() { return faUsers; });
  3135. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUsersCog", function() { return faUsersCog; });
  3136. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUtensilSpoon", function() { return faUtensilSpoon; });
  3137. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUtensils", function() { return faUtensils; });
  3138. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVectorSquare", function() { return faVectorSquare; });
  3139. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenus", function() { return faVenus; });
  3140. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenusDouble", function() { return faVenusDouble; });
  3141. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenusMars", function() { return faVenusMars; });
  3142. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVial", function() { return faVial; });
  3143. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVials", function() { return faVials; });
  3144. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVideo", function() { return faVideo; });
  3145. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVideoSlash", function() { return faVideoSlash; });
  3146. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVihara", function() { return faVihara; });
  3147. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolleyballBall", function() { return faVolleyballBall; });
  3148. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeDown", function() { return faVolumeDown; });
  3149. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeMute", function() { return faVolumeMute; });
  3150. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeOff", function() { return faVolumeOff; });
  3151. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeUp", function() { return faVolumeUp; });
  3152. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVrCardboard", function() { return faVrCardboard; });
  3153. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWalking", function() { return faWalking; });
  3154. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWallet", function() { return faWallet; });
  3155. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWarehouse", function() { return faWarehouse; });
  3156. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWeight", function() { return faWeight; });
  3157. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWeightHanging", function() { return faWeightHanging; });
  3158. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWheelchair", function() { return faWheelchair; });
  3159. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWifi", function() { return faWifi; });
  3160. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWind", function() { return faWind; });
  3161. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowClose", function() { return faWindowClose; });
  3162. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowMaximize", function() { return faWindowMaximize; });
  3163. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowMinimize", function() { return faWindowMinimize; });
  3164. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowRestore", function() { return faWindowRestore; });
  3165. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineBottle", function() { return faWineBottle; });
  3166. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineGlass", function() { return faWineGlass; });
  3167. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineGlassAlt", function() { return faWineGlassAlt; });
  3168. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWonSign", function() { return faWonSign; });
  3169. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWrench", function() { return faWrench; });
  3170. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faXRay", function() { return faXRay; });
  3171. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faYenSign", function() { return faYenSign; });
  3172. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faYinYang", function() { return faYinYang; });
  3173. /*!
  3174. * Font Awesome Free 5.4.2 by @fontawesome - https://fontawesome.com
  3175. * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
  3176. */
  3177. var prefix = "fas";
  3178. var faAd = { prefix: 'fas', iconName: 'ad', icon: [512, 512, [], "f641", "M157.52 272h36.96L176 218.78 157.52 272zM352 256c-13.23 0-24 10.77-24 24s10.77 24 24 24 24-10.77 24-24-10.77-24-24-24zM464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM250.58 352h-16.94c-6.81 0-12.88-4.32-15.12-10.75L211.15 320h-70.29l-7.38 21.25A16 16 0 0 1 118.36 352h-16.94c-11.01 0-18.73-10.85-15.12-21.25L140 176.12A23.995 23.995 0 0 1 162.67 160h26.66A23.99 23.99 0 0 1 212 176.13l53.69 154.62c3.61 10.4-4.11 21.25-15.11 21.25zM424 336c0 8.84-7.16 16-16 16h-16c-4.85 0-9.04-2.27-11.98-5.68-8.62 3.66-18.09 5.68-28.02 5.68-39.7 0-72-32.3-72-72s32.3-72 72-72c8.46 0 16.46 1.73 24 4.42V176c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v160z"] };
  3179. var faAddressBook = { prefix: 'fas', iconName: 'address-book', icon: [448, 512, [], "f2b9", "M436 160c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h320c26.5 0 48-21.5 48-48v-48h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20zm-228-32c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H118.4C106 384 96 375.4 96 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"] };
  3180. var faAddressCard = { prefix: 'fas', iconName: 'address-card', icon: [576, 512, [], "f2bb", "M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-352 96c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H86.4C74 384 64 375.4 64 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2zM512 312c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-64c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-64c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16z"] };
  3181. var faAdjust = { prefix: 'fas', iconName: 'adjust', icon: [512, 512, [], "f042", "M8 256c0 136.966 111.033 248 248 248s248-111.034 248-248S392.966 8 256 8 8 119.033 8 256zm248 184V72c101.705 0 184 82.311 184 184 0 101.705-82.311 184-184 184z"] };
  3182. var faAirFreshener = { prefix: 'fas', iconName: 'air-freshener', icon: [384, 512, [], "f5d0", "M378.94 321.41L284.7 224h49.22c15.3 0 23.66-16.6 13.86-27.53L234.45 69.96c3.43-6.61 5.55-14 5.55-21.96 0-26.51-21.49-48-48-48s-48 21.49-48 48c0 7.96 2.12 15.35 5.55 21.96L36.22 196.47C26.42 207.4 34.78 224 50.08 224H99.3L5.06 321.41C-6.69 333.56 3.34 352 21.7 352H160v32H48c-8.84 0-16 7.16-16 16v96c0 8.84 7.16 16 16 16h288c8.84 0 16-7.16 16-16v-96c0-8.84-7.16-16-16-16H224v-32h138.3c18.36 0 28.39-18.44 16.64-30.59zM192 31.98c8.85 0 16.02 7.17 16.02 16.02 0 8.84-7.17 16.02-16.02 16.02S175.98 56.84 175.98 48c0-8.85 7.17-16.02 16.02-16.02zM304 432v32H80v-32h224z"] };
  3183. var faAlignCenter = { prefix: 'fas', iconName: 'align-center', icon: [448, 512, [], "f037", "M352 44v40c0 8.837-7.163 16-16 16H112c-8.837 0-16-7.163-16-16V44c0-8.837 7.163-16 16-16h224c8.837 0 16 7.163 16 16zM16 228h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 256h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm320-200H112c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16z"] };
  3184. var faAlignJustify = { prefix: 'fas', iconName: 'align-justify', icon: [448, 512, [], "f039", "M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm16 144h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 256h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0-128h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"] };
  3185. var faAlignLeft = { prefix: 'fas', iconName: 'align-left', icon: [448, 512, [], "f036", "M288 44v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16V44c0-8.837 7.163-16 16-16h256c8.837 0 16 7.163 16 16zM0 172v40c0 8.837 7.163 16 16 16h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16zm16 312h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm256-200H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16z"] };
  3186. var faAlignRight = { prefix: 'fas', iconName: 'align-right', icon: [448, 512, [], "f038", "M160 84V44c0-8.837 7.163-16 16-16h256c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H176c-8.837 0-16-7.163-16-16zM16 228h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 256h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm160-128h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H176c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"] };
  3187. var faAllergies = { prefix: 'fas', iconName: 'allergies', icon: [448, 512, [], "f461", "M416 112c-17.6 0-32 14.4-32 32v72c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V64c0-17.6-14.4-32-32-32s-32 14.4-32 32v152c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V32c0-17.6-14.4-32-32-32s-32 14.4-32 32v184c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V64c0-17.6-14.4-32-32-32S96 46.4 96 64v241l-23.6-32.5c-13-17.9-38-21.8-55.9-8.8s-21.8 38-8.8 55.9l125.6 172.7c9 12.4 23.5 19.8 38.8 19.8h197.6c22.3 0 41.6-15.3 46.7-37l26.5-112.7c3.2-13.7 4.9-28.3 5.1-42.3V144c0-17.6-14.4-32-32-32zM176 416c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm0-96c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm64 128c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm0-96c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm64 32c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm32 64c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm32-128c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"] };
  3188. var faAmbulance = { prefix: 'fas', iconName: 'ambulance', icon: [640, 512, [], "f0f9", "M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h16c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm144-248c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48zm176 248c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"] };
  3189. var faAmericanSignLanguageInterpreting = { prefix: 'fas', iconName: 'american-sign-language-interpreting', icon: [640, 512, [], "f2a3", "M290.547 189.039c-20.295-10.149-44.147-11.199-64.739-3.89 42.606 0 71.208 20.475 85.578 50.576 8.576 17.899-5.148 38.071-23.617 38.071 18.429 0 32.211 20.136 23.617 38.071-14.725 30.846-46.123 50.854-80.298 50.854-.557 0-94.471-8.615-94.471-8.615l-66.406 33.347c-9.384 4.693-19.815.379-23.895-7.781L1.86 290.747c-4.167-8.615-1.111-18.897 6.946-23.621l58.072-33.069L108 159.861c6.39-57.245 34.731-109.767 79.743-146.726 11.391-9.448 28.341-7.781 37.51 3.613 9.446 11.394 7.78 28.067-3.612 37.516-12.503 10.559-23.618 22.509-32.509 35.57 21.672-14.729 46.679-24.732 74.186-28.067 14.725-1.945 28.063 8.336 29.73 23.065 1.945 14.728-8.336 28.067-23.062 29.734-16.116 1.945-31.12 7.503-44.178 15.284 26.114-5.713 58.712-3.138 88.079 11.115 13.336 6.669 18.893 22.509 12.224 35.848-6.389 13.06-22.504 18.617-35.564 12.226zm-27.229 69.472c-6.112-12.505-18.338-20.286-32.231-20.286a35.46 35.46 0 0 0-35.565 35.57c0 21.428 17.808 35.57 35.565 35.57 13.893 0 26.119-7.781 32.231-20.286 4.446-9.449 13.614-15.006 23.339-15.284-9.725-.277-18.893-5.835-23.339-15.284zm374.821-37.237c4.168 8.615 1.111 18.897-6.946 23.621l-58.071 33.069L532 352.16c-6.39 57.245-34.731 109.767-79.743 146.726-10.932 9.112-27.799 8.144-37.51-3.613-9.446-11.394-7.78-28.067 3.613-37.516 12.503-10.559 23.617-22.509 32.508-35.57-21.672 14.729-46.679 24.732-74.186 28.067-10.021 2.506-27.552-5.643-29.73-23.065-1.945-14.728 8.336-28.067 23.062-29.734 16.116-1.946 31.12-7.503 44.178-15.284-26.114 5.713-58.712 3.138-88.079-11.115-13.336-6.669-18.893-22.509-12.224-35.848 6.389-13.061 22.505-18.619 35.565-12.227 20.295 10.149 44.147 11.199 64.739 3.89-42.606 0-71.208-20.475-85.578-50.576-8.576-17.899 5.148-38.071 23.617-38.071-18.429 0-32.211-20.136-23.617-38.071 14.033-29.396 44.039-50.887 81.966-50.854l92.803 8.615 66.406-33.347c9.408-4.704 19.828-.354 23.894 7.781l44.455 88.926zm-229.227-18.618c-13.893 0-26.119 7.781-32.231 20.286-4.446 9.449-13.614 15.006-23.339 15.284 9.725.278 18.893 5.836 23.339 15.284 6.112 12.505 18.338 20.286 32.231 20.286a35.46 35.46 0 0 0 35.565-35.57c0-21.429-17.808-35.57-35.565-35.57z"] };
  3190. var faAnchor = { prefix: 'fas', iconName: 'anchor', icon: [576, 512, [], "f13d", "M12.971 352h32.394C67.172 454.735 181.944 512 288 512c106.229 0 220.853-57.38 242.635-160h32.394c10.691 0 16.045-12.926 8.485-20.485l-67.029-67.029c-4.686-4.686-12.284-4.686-16.971 0l-67.029 67.029c-7.56 7.56-2.206 20.485 8.485 20.485h35.146c-20.29 54.317-84.963 86.588-144.117 94.015V256h52c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-52v-5.47c37.281-13.178 63.995-48.725 64-90.518C384.005 43.772 341.605.738 289.37.01 235.723-.739 192 42.525 192 96c0 41.798 26.716 77.35 64 90.53V192h-52c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h52v190.015c-58.936-7.399-123.82-39.679-144.117-94.015h35.146c10.691 0 16.045-12.926 8.485-20.485l-67.029-67.029c-4.686-4.686-12.284-4.686-16.971 0L4.485 331.515C-3.074 339.074 2.28 352 12.971 352zM288 64c17.645 0 32 14.355 32 32s-14.355 32-32 32-32-14.355-32-32 14.355-32 32-32z"] };
  3191. var faAngleDoubleDown = { prefix: 'fas', iconName: 'angle-double-down', icon: [320, 512, [], "f103", "M143 256.3L7 120.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0L313 86.3c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.4 9.5-24.6 9.5-34 .1zm34 192l136-136c9.4-9.4 9.4-24.6 0-33.9l-22.6-22.6c-9.4-9.4-24.6-9.4-33.9 0L160 352.1l-96.4-96.4c-9.4-9.4-24.6-9.4-33.9 0L7 278.3c-9.4 9.4-9.4 24.6 0 33.9l136 136c9.4 9.5 24.6 9.5 34 .1z"] };
  3192. var faAngleDoubleLeft = { prefix: 'fas', iconName: 'angle-double-left', icon: [448, 512, [], "f100", "M223.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L319.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L393.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34zm-192 34l136 136c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9L127.9 256l96.4-96.4c9.4-9.4 9.4-24.6 0-33.9L201.7 103c-9.4-9.4-24.6-9.4-33.9 0l-136 136c-9.5 9.4-9.5 24.6-.1 34z"] };
  3193. var faAngleDoubleRight = { prefix: 'fas', iconName: 'angle-double-right', icon: [448, 512, [], "f101", "M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34zm192-34l-136-136c-9.4-9.4-24.6-9.4-33.9 0l-22.6 22.6c-9.4 9.4-9.4 24.6 0 33.9l96.4 96.4-96.4 96.4c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l136-136c9.4-9.2 9.4-24.4 0-33.8z"] };
  3194. var faAngleDoubleUp = { prefix: 'fas', iconName: 'angle-double-up', icon: [320, 512, [], "f102", "M177 255.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 351.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 425.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1zm-34-192L7 199.7c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l96.4-96.4 96.4 96.4c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9l-136-136c-9.2-9.4-24.4-9.4-33.8 0z"] };
  3195. var faAngleDown = { prefix: 'fas', iconName: 'angle-down', icon: [320, 512, [], "f107", "M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z"] };
  3196. var faAngleLeft = { prefix: 'fas', iconName: 'angle-left', icon: [256, 512, [], "f104", "M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"] };
  3197. var faAngleRight = { prefix: 'fas', iconName: 'angle-right', icon: [256, 512, [], "f105", "M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"] };
  3198. var faAngleUp = { prefix: 'fas', iconName: 'angle-up', icon: [320, 512, [], "f106", "M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z"] };
  3199. var faAngry = { prefix: 'fas', iconName: 'angry', icon: [496, 512, [], "f556", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM136 240c0-9.3 4.1-17.5 10.5-23.4l-31-9.3c-8.5-2.5-13.3-11.5-10.7-19.9 2.5-8.5 11.4-13.2 19.9-10.7l80 24c8.5 2.5 13.3 11.5 10.7 19.9-2.1 6.9-8.4 11.4-15.3 11.4-.5 0-1.1-.2-1.7-.2.7 2.7 1.7 5.3 1.7 8.2 0 17.7-14.3 32-32 32S136 257.7 136 240zm168 154.2c-27.8-33.4-84.2-33.4-112.1 0-13.5 16.3-38.2-4.2-24.6-20.5 20-24 49.4-37.8 80.6-37.8s60.6 13.8 80.6 37.8c13.8 16.5-11.1 36.6-24.5 20.5zm76.6-186.9l-31 9.3c6.3 5.8 10.5 14.1 10.5 23.4 0 17.7-14.3 32-32 32s-32-14.3-32-32c0-2.9.9-5.6 1.7-8.2-.6.1-1.1.2-1.7.2-6.9 0-13.2-4.5-15.3-11.4-2.5-8.5 2.3-17.4 10.7-19.9l80-24c8.4-2.5 17.4 2.3 19.9 10.7 2.5 8.5-2.3 17.4-10.8 19.9z"] };
  3200. var faAnkh = { prefix: 'fas', iconName: 'ankh', icon: [320, 512, [], "f644", "M296 256h-44.62C272.46 222.01 288 181.65 288 144 288 55.63 230.69 0 160 0S32 55.63 32 144c0 37.65 15.54 78.01 36.62 112H24c-13.25 0-24 10.74-24 24v32c0 13.25 10.75 24 24 24h96v152c0 13.25 10.75 24 24 24h32c13.25 0 24-10.75 24-24V336h96c13.25 0 24-10.75 24-24v-32c0-13.26-10.75-24-24-24zM160 80c29.61 0 48 24.52 48 64 0 34.66-27.14 78.14-48 100.87-20.86-22.72-48-66.21-48-100.87 0-39.48 18.39-64 48-64z"] };
  3201. var faAppleAlt = { prefix: 'fas', iconName: 'apple-alt', icon: [448, 512, [], "f5d1", "M350.85 129c25.97 4.67 47.27 18.67 63.92 42 14.65 20.67 24.64 46.67 29.96 78 4.67 28.67 4.32 57.33-1 86-7.99 47.33-23.97 87-47.94 119-28.64 38.67-64.59 58-107.87 58-10.66 0-22.3-3.33-34.96-10-8.66-5.33-18.31-8-28.97-8s-20.3 2.67-28.97 8c-12.66 6.67-24.3 10-34.96 10-43.28 0-79.23-19.33-107.87-58-23.97-32-39.95-71.67-47.94-119-5.32-28.67-5.67-57.33-1-86 5.32-31.33 15.31-57.33 29.96-78 16.65-23.33 37.95-37.33 63.92-42 15.98-2.67 37.95-.33 65.92 7 23.97 6.67 44.28 14.67 60.93 24 16.65-9.33 36.96-17.33 60.93-24 27.98-7.33 49.96-9.67 65.94-7zm-54.94-41c-9.32 8.67-21.65 15-36.96 19-10.66 3.33-22.3 5-34.96 5l-14.98-1c-1.33-9.33-1.33-20 0-32 2.67-24 10.32-42.33 22.97-55 9.32-8.67 21.65-15 36.96-19 10.66-3.33 22.3-5 34.96-5l14.98 1 1 15c0 12.67-1.67 24.33-4.99 35-3.99 15.33-10.31 27.67-18.98 37z"] };
  3202. var faArchive = { prefix: 'fas', iconName: 'archive', icon: [512, 512, [], "f187", "M32 448c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V160H32v288zm160-212c0-6.6 5.4-12 12-12h104c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-8zM480 32H32C14.3 32 0 46.3 0 64v48c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16V64c0-17.7-14.3-32-32-32z"] };
  3203. var faArchway = { prefix: 'fas', iconName: 'archway', icon: [576, 512, [], "f557", "M560 448h-16V96H32v352H16.02c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16H176c8.84 0 16-7.16 16-16V320c0-53.02 42.98-96 96-96s96 42.98 96 96l.02 160v16c0 8.84 7.16 16 16 16H560c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm0-448H16C7.16 0 0 7.16 0 16v32c0 8.84 7.16 16 16 16h544c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16z"] };
  3204. var faArrowAltCircleDown = { prefix: 'fas', iconName: 'arrow-alt-circle-down', icon: [512, 512, [], "f358", "M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zM212 140v116h-70.9c-10.7 0-16.1 13-8.5 20.5l114.9 114.3c4.7 4.7 12.2 4.7 16.9 0l114.9-114.3c7.6-7.6 2.2-20.5-8.5-20.5H300V140c0-6.6-5.4-12-12-12h-64c-6.6 0-12 5.4-12 12z"] };
  3205. var faArrowAltCircleLeft = { prefix: 'fas', iconName: 'arrow-alt-circle-left', icon: [512, 512, [], "f359", "M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zm116-292H256v-70.9c0-10.7-13-16.1-20.5-8.5L121.2 247.5c-4.7 4.7-4.7 12.2 0 16.9l114.3 114.9c7.6 7.6 20.5 2.2 20.5-8.5V300h116c6.6 0 12-5.4 12-12v-64c0-6.6-5.4-12-12-12z"] };
  3206. var faArrowAltCircleRight = { prefix: 'fas', iconName: 'arrow-alt-circle-right', icon: [512, 512, [], "f35a", "M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zM140 300h116v70.9c0 10.7 13 16.1 20.5 8.5l114.3-114.9c4.7-4.7 4.7-12.2 0-16.9l-114.3-115c-7.6-7.6-20.5-2.2-20.5 8.5V212H140c-6.6 0-12 5.4-12 12v64c0 6.6 5.4 12 12 12z"] };
  3207. var faArrowAltCircleUp = { prefix: 'fas', iconName: 'arrow-alt-circle-up', icon: [512, 512, [], "f35b", "M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm292 116V256h70.9c10.7 0 16.1-13 8.5-20.5L264.5 121.2c-4.7-4.7-12.2-4.7-16.9 0l-115 114.3c-7.6 7.6-2.2 20.5 8.5 20.5H212v116c0 6.6 5.4 12 12 12h64c6.6 0 12-5.4 12-12z"] };
  3208. var faArrowCircleDown = { prefix: 'fas', iconName: 'arrow-circle-down', icon: [512, 512, [], "f0ab", "M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-143.6-28.9L288 302.6V120c0-13.3-10.7-24-24-24h-16c-13.3 0-24 10.7-24 24v182.6l-72.4-75.5c-9.3-9.7-24.8-9.9-34.3-.4l-10.9 11c-9.4 9.4-9.4 24.6 0 33.9L239 404.3c9.4 9.4 24.6 9.4 33.9 0l132.7-132.7c9.4-9.4 9.4-24.6 0-33.9l-10.9-11c-9.5-9.5-25-9.3-34.3.4z"] };
  3209. var faArrowCircleLeft = { prefix: 'fas', iconName: 'arrow-circle-left', icon: [512, 512, [], "f0a8", "M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zm28.9-143.6L209.4 288H392c13.3 0 24-10.7 24-24v-16c0-13.3-10.7-24-24-24H209.4l75.5-72.4c9.7-9.3 9.9-24.8.4-34.3l-11-10.9c-9.4-9.4-24.6-9.4-33.9 0L107.7 239c-9.4 9.4-9.4 24.6 0 33.9l132.7 132.7c9.4 9.4 24.6 9.4 33.9 0l11-10.9c9.5-9.5 9.3-25-.4-34.3z"] };
  3210. var faArrowCircleRight = { prefix: 'fas', iconName: 'arrow-circle-right', icon: [512, 512, [], "f0a9", "M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm-28.9 143.6l75.5 72.4H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h182.6l-75.5 72.4c-9.7 9.3-9.9 24.8-.4 34.3l11 10.9c9.4 9.4 24.6 9.4 33.9 0L404.3 273c9.4-9.4 9.4-24.6 0-33.9L271.6 106.3c-9.4-9.4-24.6-9.4-33.9 0l-11 10.9c-9.5 9.6-9.3 25.1.4 34.4z"] };
  3211. var faArrowCircleUp = { prefix: 'fas', iconName: 'arrow-circle-up', icon: [512, 512, [], "f0aa", "M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm143.6 28.9l72.4-75.5V392c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24V209.4l72.4 75.5c9.3 9.7 24.8 9.9 34.3.4l10.9-11c9.4-9.4 9.4-24.6 0-33.9L273 107.7c-9.4-9.4-24.6-9.4-33.9 0L106.3 240.4c-9.4 9.4-9.4 24.6 0 33.9l10.9 11c9.6 9.5 25.1 9.3 34.4-.4z"] };
  3212. var faArrowDown = { prefix: 'fas', iconName: 'arrow-down', icon: [448, 512, [], "f063", "M413.1 222.5l22.2 22.2c9.4 9.4 9.4 24.6 0 33.9L241 473c-9.4 9.4-24.6 9.4-33.9 0L12.7 278.6c-9.4-9.4-9.4-24.6 0-33.9l22.2-22.2c9.5-9.5 25-9.3 34.3.4L184 343.4V56c0-13.3 10.7-24 24-24h32c13.3 0 24 10.7 24 24v287.4l114.8-120.5c9.3-9.8 24.8-10 34.3-.4z"] };
  3213. var faArrowLeft = { prefix: 'fas', iconName: 'arrow-left', icon: [448, 512, [], "f060", "M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"] };
  3214. var faArrowRight = { prefix: 'fas', iconName: 'arrow-right', icon: [448, 512, [], "f061", "M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"] };
  3215. var faArrowUp = { prefix: 'fas', iconName: 'arrow-up', icon: [448, 512, [], "f062", "M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"] };
  3216. var faArrowsAlt = { prefix: 'fas', iconName: 'arrows-alt', icon: [512, 512, [], "f0b2", "M352.201 425.775l-79.196 79.196c-9.373 9.373-24.568 9.373-33.941 0l-79.196-79.196c-15.119-15.119-4.411-40.971 16.971-40.97h51.162L228 284H127.196v51.162c0 21.382-25.851 32.09-40.971 16.971L7.029 272.937c-9.373-9.373-9.373-24.569 0-33.941L86.225 159.8c15.119-15.119 40.971-4.411 40.971 16.971V228H228V127.196h-51.23c-21.382 0-32.09-25.851-16.971-40.971l79.196-79.196c9.373-9.373 24.568-9.373 33.941 0l79.196 79.196c15.119 15.119 4.411 40.971-16.971 40.971h-51.162V228h100.804v-51.162c0-21.382 25.851-32.09 40.97-16.971l79.196 79.196c9.373 9.373 9.373 24.569 0 33.941L425.773 352.2c-15.119 15.119-40.971 4.411-40.97-16.971V284H284v100.804h51.23c21.382 0 32.09 25.851 16.971 40.971z"] };
  3217. var faArrowsAltH = { prefix: 'fas', iconName: 'arrows-alt-h', icon: [512, 512, [], "f337", "M377.941 169.941V216H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.568 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296h243.882v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.568 0-33.941l-86.059-86.059c-15.119-15.12-40.971-4.412-40.971 16.97z"] };
  3218. var faArrowsAltV = { prefix: 'fas', iconName: 'arrows-alt-v', icon: [256, 512, [], "f338", "M214.059 377.941H168V134.059h46.059c21.382 0 32.09-25.851 16.971-40.971L144.971 7.029c-9.373-9.373-24.568-9.373-33.941 0L24.971 93.088c-15.119 15.119-4.411 40.971 16.971 40.971H88v243.882H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.568 9.373 33.941 0l86.059-86.059c15.12-15.119 4.412-40.971-16.97-40.971z"] };
  3219. var faAssistiveListeningSystems = { prefix: 'fas', iconName: 'assistive-listening-systems', icon: [512, 512, [], "f2a2", "M216 260c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-44.112 35.888-80 80-80s80 35.888 80 80c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-13.234-10.767-24-24-24s-24 10.766-24 24zm24-176c-97.047 0-176 78.953-176 176 0 15.464 12.536 28 28 28s28-12.536 28-28c0-66.168 53.832-120 120-120s120 53.832 120 120c0 75.164-71.009 70.311-71.997 143.622L288 404c0 28.673-23.327 52-52 52-15.464 0-28 12.536-28 28s12.536 28 28 28c59.475 0 107.876-48.328 108-107.774.595-34.428 72-48.24 72-144.226 0-97.047-78.953-176-176-176zm-80 236c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zM32 448c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm480-187.993c0-1.518-.012-3.025-.045-4.531C510.076 140.525 436.157 38.47 327.994 1.511c-14.633-4.998-30.549 2.809-35.55 17.442-5 14.633 2.81 30.549 17.442 35.55 85.906 29.354 144.61 110.513 146.077 201.953l.003.188c.026 1.118.033 2.236.033 3.363 0 15.464 12.536 28 28 28s28.001-12.536 28.001-28zM152.971 439.029l-80-80L39.03 392.97l80 80 33.941-33.941z"] };
  3220. var faAsterisk = { prefix: 'fas', iconName: 'asterisk', icon: [512, 512, [], "f069", "M478.21 334.093L336 256l142.21-78.093c11.795-6.477 15.961-21.384 9.232-33.037l-19.48-33.741c-6.728-11.653-21.72-15.499-33.227-8.523L296 186.718l3.475-162.204C299.763 11.061 288.937 0 275.48 0h-38.96c-13.456 0-24.283 11.061-23.994 24.514L216 186.718 77.265 102.607c-11.506-6.976-26.499-3.13-33.227 8.523l-19.48 33.741c-6.728 11.653-2.562 26.56 9.233 33.037L176 256 33.79 334.093c-11.795 6.477-15.961 21.384-9.232 33.037l19.48 33.741c6.728 11.653 21.721 15.499 33.227 8.523L216 325.282l-3.475 162.204C212.237 500.939 223.064 512 236.52 512h38.961c13.456 0 24.283-11.061 23.995-24.514L296 325.282l138.735 84.111c11.506 6.976 26.499 3.13 33.227-8.523l19.48-33.741c6.728-11.653 2.563-26.559-9.232-33.036z"] };
  3221. var faAt = { prefix: 'fas', iconName: 'at', icon: [512, 512, [], "f1fa", "M256 8C118.941 8 8 118.919 8 256c0 137.059 110.919 248 248 248 48.154 0 95.342-14.14 135.408-40.223 12.005-7.815 14.625-24.288 5.552-35.372l-10.177-12.433c-7.671-9.371-21.179-11.667-31.373-5.129C325.92 429.757 291.314 440 256 440c-101.458 0-184-82.542-184-184S154.542 72 256 72c100.139 0 184 57.619 184 160 0 38.786-21.093 79.742-58.17 83.693-17.349-.454-16.91-12.857-13.476-30.024l23.433-121.11C394.653 149.75 383.308 136 368.225 136h-44.981a13.518 13.518 0 0 0-13.432 11.993l-.01.092c-14.697-17.901-40.448-21.775-59.971-21.775-74.58 0-137.831 62.234-137.831 151.46 0 65.303 36.785 105.87 96 105.87 26.984 0 57.369-15.637 74.991-38.333 9.522 34.104 40.613 34.103 70.71 34.103C462.609 379.41 504 307.798 504 232 504 95.653 394.023 8 256 8zm-21.68 304.43c-22.249 0-36.07-15.623-36.07-40.771 0-44.993 30.779-72.729 58.63-72.729 22.292 0 35.601 15.241 35.601 40.77 0 45.061-33.875 72.73-58.161 72.73z"] };
  3222. var faAtlas = { prefix: 'fas', iconName: 'atlas', icon: [448, 512, [], "f558", "M318.38 208h-39.09c-1.49 27.03-6.54 51.35-14.21 70.41 27.71-13.24 48.02-39.19 53.3-70.41zm0-32c-5.29-31.22-25.59-57.17-53.3-70.41 7.68 19.06 12.72 43.38 14.21 70.41h39.09zM224 97.31c-7.69 7.45-20.77 34.42-23.43 78.69h46.87c-2.67-44.26-15.75-71.24-23.44-78.69zm-41.08 8.28c-27.71 13.24-48.02 39.19-53.3 70.41h39.09c1.49-27.03 6.53-51.35 14.21-70.41zm0 172.82c-7.68-19.06-12.72-43.38-14.21-70.41h-39.09c5.28 31.22 25.59 57.17 53.3 70.41zM247.43 208h-46.87c2.66 44.26 15.74 71.24 23.43 78.69 7.7-7.45 20.78-34.43 23.44-78.69zM448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM224 64c70.69 0 128 57.31 128 128s-57.31 128-128 128S96 262.69 96 192 153.31 64 224 64zm160 384H96c-19.2 0-32-12.8-32-32s16-32 32-32h288v64z"] };
  3223. var faAtom = { prefix: 'fas', iconName: 'atom', icon: [448, 512, [], "f5d2", "M413.03 256c40.13-54.89 41.51-98.62 25.14-128-10.91-19.52-40.54-50.73-116.33-41.88C300.36 34.89 267.64 0 224 0s-76.36 34.89-97.84 86.12C50.43 77.34 20.73 108.48 9.83 128c-16.38 29.4-15 73.09 25.14 128-40.13 54.89-41.51 98.62-25.14 128 29.21 52.34 101.68 43.58 116.33 41.88C147.63 477.1 180.36 512 224 512s76.37-34.9 97.84-86.12c14.64 1.7 87.11 10.46 116.33-41.88 16.38-29.4 15-73.09-25.14-128zM63.38 352c-4.03-7.21-.19-24.8 14.95-48.29 6.96 6.53 14.2 12.89 21.87 19.18 1.71 13.71 4 27.08 6.76 40.08-24.56.89-39.89-4.37-43.58-10.97zm36.82-162.88c-7.66 6.29-14.9 12.65-21.87 19.18-15.13-23.5-18.97-41.09-14.95-48.3 3.41-6.14 16.39-11.47 37.92-11.47 1.71 0 3.87.3 5.69.37a472.191 472.191 0 0 0-6.79 40.22zM224 64c9.47 0 22.2 13.52 33.86 37.26-11.19 3.7-22.44 8-33.86 12.86-11.42-4.86-22.67-9.16-33.86-12.86C201.8 77.52 214.53 64 224 64zm0 384c-9.47 0-22.2-13.52-33.86-37.26 11.19-3.7 22.44-8 33.86-12.86 11.42 4.86 22.67 9.16 33.86 12.86C246.2 434.48 233.47 448 224 448zm62.5-157.33c-26.7 19.08-46.14 29.33-62.5 37.48-16.35-8.14-35.8-18.41-62.5-37.48-1.99-27.79-1.99-41.54 0-69.33 26.67-19.05 46.13-29.32 62.5-37.48 16.39 8.17 35.86 18.44 62.5 37.48 1.98 27.78 1.99 41.53 0 69.33zM384.62 352c-3.67 6.62-19 11.82-43.58 10.95 2.76-13 5.05-26.37 6.76-40.06 7.66-6.29 14.9-12.65 21.87-19.18 15.13 23.49 18.97 41.08 14.95 48.29zm-14.95-143.71c-6.96-6.53-14.2-12.89-21.87-19.18a473.535 473.535 0 0 0-6.79-40.22c1.82-.07 3.97-.37 5.69-.37 21.52 0 34.51 5.34 37.92 11.47 4.02 7.22.18 24.81-14.95 48.3zM224 224c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"] };
  3224. var faAudioDescription = { prefix: 'fas', iconName: 'audio-description', icon: [512, 512, [], "f29e", "M162.925 238.709l8.822 30.655h-25.606l9.041-30.652c1.277-4.421 2.651-9.994 3.872-15.245 1.22 5.251 2.594 10.823 3.871 15.242zm166.474-32.099h-14.523v98.781h14.523c29.776 0 46.175-17.678 46.175-49.776 0-32.239-17.49-49.005-46.175-49.005zM512 112v288c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48zM245.459 336.139l-57.097-168A12.001 12.001 0 0 0 177 160h-35.894a12.001 12.001 0 0 0-11.362 8.139l-57.097 168C70.003 343.922 75.789 352 84.009 352h29.133a12 12 0 0 0 11.535-8.693l8.574-29.906h51.367l8.793 29.977A12 12 0 0 0 204.926 352h29.172c8.22 0 14.006-8.078 11.361-15.861zm184.701-80.525c0-58.977-37.919-95.614-98.96-95.614h-57.366c-6.627 0-12 5.373-12 12v168c0 6.627 5.373 12 12 12H331.2c61.041 0 98.96-36.933 98.96-96.386z"] };
  3225. var faAward = { prefix: 'fas', iconName: 'award', icon: [384, 512, [], "f559", "M97.12 362.63c-8.69-8.69-4.16-6.24-25.12-11.85-9.51-2.55-17.87-7.45-25.43-13.32L1.2 448.7c-4.39 10.77 3.81 22.47 15.43 22.03l52.69-2.01L105.56 507c8 8.44 22.04 5.81 26.43-4.96l52.05-127.62c-10.84 6.04-22.87 9.58-35.31 9.58-19.5 0-37.82-7.59-51.61-21.37zM382.8 448.7l-45.37-111.24c-7.56 5.88-15.92 10.77-25.43 13.32-21.07 5.64-16.45 3.18-25.12 11.85-13.79 13.78-32.12 21.37-51.62 21.37-12.44 0-24.47-3.55-35.31-9.58L252 502.04c4.39 10.77 18.44 13.4 26.43 4.96l36.25-38.28 52.69 2.01c11.62.44 19.82-11.27 15.43-22.03zM263 340c15.28-15.55 17.03-14.21 38.79-20.14 13.89-3.79 24.75-14.84 28.47-28.98 7.48-28.4 5.54-24.97 25.95-45.75 10.17-10.35 14.14-25.44 10.42-39.58-7.47-28.38-7.48-24.42 0-52.83 3.72-14.14-.25-29.23-10.42-39.58-20.41-20.78-18.47-17.36-25.95-45.75-3.72-14.14-14.58-25.19-28.47-28.98-27.88-7.61-24.52-5.62-44.95-26.41-10.17-10.35-25-14.4-38.89-10.61-27.87 7.6-23.98 7.61-51.9 0-13.89-3.79-28.72.25-38.89 10.61-20.41 20.78-17.05 18.8-44.94 26.41-13.89 3.79-24.75 14.84-28.47 28.98-7.47 28.39-5.54 24.97-25.95 45.75-10.17 10.35-14.15 25.44-10.42 39.58 7.47 28.36 7.48 24.4 0 52.82-3.72 14.14.25 29.23 10.42 39.59 20.41 20.78 18.47 17.35 25.95 45.75 3.72 14.14 14.58 25.19 28.47 28.98C104.6 325.96 106.27 325 121 340c13.23 13.47 33.84 15.88 49.74 5.82a39.676 39.676 0 0 1 42.53 0c15.89 10.06 36.5 7.65 49.73-5.82zM97.66 175.96c0-53.03 42.24-96.02 94.34-96.02s94.34 42.99 94.34 96.02-42.24 96.02-94.34 96.02-94.34-42.99-94.34-96.02z"] };
  3226. var faBackspace = { prefix: 'fas', iconName: 'backspace', icon: [640, 512, [], "f55a", "M576 64H205.26A63.97 63.97 0 0 0 160 82.75L9.37 233.37c-12.5 12.5-12.5 32.76 0 45.25L160 429.25c12 12 28.28 18.75 45.25 18.75H576c35.35 0 64-28.65 64-64V128c0-35.35-28.65-64-64-64zm-84.69 254.06c6.25 6.25 6.25 16.38 0 22.63l-22.62 22.62c-6.25 6.25-16.38 6.25-22.63 0L384 301.25l-62.06 62.06c-6.25 6.25-16.38 6.25-22.63 0l-22.62-22.62c-6.25-6.25-6.25-16.38 0-22.63L338.75 256l-62.06-62.06c-6.25-6.25-6.25-16.38 0-22.63l22.62-22.62c6.25-6.25 16.38-6.25 22.63 0L384 210.75l62.06-62.06c6.25-6.25 16.38-6.25 22.63 0l22.62 22.62c6.25 6.25 6.25 16.38 0 22.63L429.25 256l62.06 62.06z"] };
  3227. var faBackward = { prefix: 'fas', iconName: 'backward', icon: [512, 512, [], "f04a", "M11.5 280.6l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2zm256 0l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2z"] };
  3228. var faBalanceScale = { prefix: 'fas', iconName: 'balance-scale', icon: [640, 512, [], "f24e", "M256 336h-.02c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0C-2.06 328.75.02 320.33.02 336H0c0 44.18 57.31 80 128 80s128-35.82 128-80zM128 176l72 144H56l72-144zm511.98 160c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 320l72-144 72 144H440zm88 128H352V153.25c23.51-10.29 41.16-31.48 46.39-57.25H528c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H383.64C369.04 12.68 346.09 0 320 0s-49.04 12.68-63.64 32H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h129.61c5.23 25.76 22.87 46.96 46.39 57.25V448H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  3229. var faBan = { prefix: 'fas', iconName: 'ban', icon: [512, 512, [], "f05e", "M256 8C119.034 8 8 119.033 8 256s111.034 248 248 248 248-111.034 248-248S392.967 8 256 8zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676zM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676z"] };
  3230. var faBandAid = { prefix: 'fas', iconName: 'band-aid', icon: [640, 512, [], "f462", "M0 160v192c0 35.3 28.7 64 64 64h96V96H64c-35.3 0-64 28.7-64 64zm576-64h-96v320h96c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64zM192 416h256V96H192v320zm176-232c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm0 96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm-96-96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm0 96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24z"] };
  3231. var faBarcode = { prefix: 'fas', iconName: 'barcode', icon: [512, 512, [], "f02a", "M0 448V64h18v384H0zm26.857-.273V64H36v383.727h-9.143zm27.143 0V64h8.857v383.727H54zm44.857 0V64h8.857v383.727h-8.857zm36 0V64h17.714v383.727h-17.714zm44.857 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm35.715 0V64h18v383.727h-18zm44.857 0V64h18v383.727h-18zm35.999 0V64h18.001v383.727h-18.001zm36.001 0V64h18.001v383.727h-18.001zm26.857 0V64h18v383.727h-18zm45.143 0V64h26.857v383.727h-26.857zm35.714 0V64h9.143v383.727H476zm18 .273V64h18v384h-18z"] };
  3232. var faBars = { prefix: 'fas', iconName: 'bars', icon: [448, 512, [], "f0c9", "M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"] };
  3233. var faBaseballBall = { prefix: 'fas', iconName: 'baseball-ball', icon: [496, 512, [], "f433", "M368.5 363.9l28.8-13.9c11.1 22.9 26 43.2 44.1 60.9 34-42.5 54.5-96.3 54.5-154.9 0-58.5-20.4-112.2-54.2-154.6-17.8 17.3-32.6 37.1-43.6 59.5l-28.7-14.1c12.8-26 30-49 50.8-69C375.6 34.7 315 8 248 8 181.1 8 120.5 34.6 75.9 77.7c20.7 19.9 37.9 42.9 50.7 68.8l-28.7 14.1c-11-22.3-25.7-42.1-43.5-59.4C20.4 143.7 0 197.4 0 256c0 58.6 20.4 112.3 54.4 154.7 18.2-17.7 33.2-38 44.3-61l28.8 13.9c-12.9 26.7-30.3 50.3-51.5 70.7 44.5 43.1 105.1 69.7 172 69.7 66.8 0 127.3-26.5 171.9-69.5-21.1-20.4-38.5-43.9-51.4-70.6zm-228.3-32l-30.5-9.8c14.9-46.4 12.7-93.8-.6-134l30.4-10c15 45.6 18 99.9.7 153.8zm216.3-153.4l30.4 10c-13.2 40.1-15.5 87.5-.6 134l-30.5 9.8c-17.3-54-14.3-108.3.7-153.8z"] };
  3234. var faBasketballBall = { prefix: 'fas', iconName: 'basketball-ball', icon: [496, 512, [], "f434", "M212.3 10.3c-43.8 6.3-86.2 24.1-122.2 53.8l77.4 77.4c27.8-35.8 43.3-81.2 44.8-131.2zM248 222L405.9 64.1c-42.4-35-93.6-53.5-145.5-56.1-1.2 63.9-21.5 122.3-58.7 167.7L248 222zM56.1 98.1c-29.7 36-47.5 78.4-53.8 122.2 50-1.5 95.5-17 131.2-44.8L56.1 98.1zm272.2 204.2c45.3-37.1 103.7-57.4 167.7-58.7-2.6-51.9-21.1-103.1-56.1-145.5L282 256l46.3 46.3zM248 290L90.1 447.9c42.4 34.9 93.6 53.5 145.5 56.1 1.3-64 21.6-122.4 58.7-167.7L248 290zm191.9 123.9c29.7-36 47.5-78.4 53.8-122.2-50.1 1.6-95.5 17.1-131.2 44.8l77.4 77.4zM167.7 209.7C122.3 246.9 63.9 267.3 0 268.4c2.6 51.9 21.1 103.1 56.1 145.5L214 256l-46.3-46.3zm116 292c43.8-6.3 86.2-24.1 122.2-53.8l-77.4-77.4c-27.7 35.7-43.2 81.2-44.8 131.2z"] };
  3235. var faBath = { prefix: 'fas', iconName: 'bath', icon: [512, 512, [], "f2cd", "M488 256H80V112c0-17.645 14.355-32 32-32 11.351 0 21.332 5.945 27.015 14.88-16.492 25.207-14.687 59.576 6.838 83.035-4.176 4.713-4.021 11.916.491 16.428l11.314 11.314c4.686 4.686 12.284 4.686 16.971 0l95.03-95.029c4.686-4.686 4.686-12.284 0-16.971l-11.314-11.314c-4.512-4.512-11.715-4.666-16.428-.491-17.949-16.469-42.294-21.429-64.178-15.365C163.281 45.667 139.212 32 112 32c-44.112 0-80 35.888-80 80v144h-8c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h8v32c0 28.43 12.362 53.969 32 71.547V456c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-8h256v8c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-32.453c19.638-17.578 32-43.117 32-71.547v-32h8c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"] };
  3236. var faBatteryEmpty = { prefix: 'fas', iconName: 'battery-empty', icon: [640, 512, [], "f244", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48z"] };
  3237. var faBatteryFull = { prefix: 'fas', iconName: 'battery-full', icon: [640, 512, [], "f240", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-48 96H96v128h416V192z"] };
  3238. var faBatteryHalf = { prefix: 'fas', iconName: 'battery-half', icon: [640, 512, [], "f242", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-240 96H96v128h224V192z"] };
  3239. var faBatteryQuarter = { prefix: 'fas', iconName: 'battery-quarter', icon: [640, 512, [], "f243", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-336 96H96v128h128V192z"] };
  3240. var faBatteryThreeQuarters = { prefix: 'fas', iconName: 'battery-three-quarters', icon: [640, 512, [], "f241", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-144 96H96v128h320V192z"] };
  3241. var faBed = { prefix: 'fas', iconName: 'bed', icon: [640, 512, [], "f236", "M176 256c44.11 0 80-35.89 80-80s-35.89-80-80-80-80 35.89-80 80 35.89 80 80 80zm352-128H304c-8.84 0-16 7.16-16 16v144H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v352c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48h512v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V240c0-61.86-50.14-112-112-112z"] };
  3242. var faBeer = { prefix: 'fas', iconName: 'beer', icon: [448, 512, [], "f0fc", "M368 96h-48V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56v400c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24v-42.11l80.606-35.977C429.396 365.063 448 336.388 448 304.86V176c0-44.112-35.888-80-80-80zm16 208.86a16.018 16.018 0 0 1-9.479 14.611L320 343.805V160h48c8.822 0 16 7.178 16 16v128.86zM208 384c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16zm-96 0c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16z"] };
  3243. var faBell = { prefix: 'fas', iconName: 'bell', icon: [448, 512, [], "f0f3", "M224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64zm215.39-149.71c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71z"] };
  3244. var faBellSlash = { prefix: 'fas', iconName: 'bell-slash', icon: [640, 512, [], "f1f6", "M633.82 458.1l-90.62-70.05c.19-1.38.8-2.66.8-4.06.05-7.55-2.61-15.27-8.61-21.71-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84c-40.33 8.38-74.66 31.07-97.59 62.57L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.35 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.42-6.97 4.17-17.02-2.81-22.45zM157.23 251.54c-8.61 67.96-36.41 93.33-52.62 110.75-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h241.92L157.23 251.54zM320 512c35.32 0 63.97-28.65 63.97-64H256.03c0 35.35 28.65 64 63.97 64z"] };
  3245. var faBezierCurve = { prefix: 'fas', iconName: 'bezier-curve', icon: [640, 512, [], "f55b", "M368 32h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zM208 88h-84.75C113.75 64.56 90.84 48 64 48 28.66 48 0 76.65 0 112s28.66 64 64 64c26.84 0 49.75-16.56 59.25-40h79.73c-55.37 32.52-95.86 87.32-109.54 152h49.4c11.3-41.61 36.77-77.21 71.04-101.56-3.7-8.08-5.88-16.99-5.88-26.44V88zm-48 232H64c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zM576 48c-26.84 0-49.75 16.56-59.25 40H432v72c0 9.45-2.19 18.36-5.88 26.44 34.27 24.35 59.74 59.95 71.04 101.56h49.4c-13.68-64.68-54.17-119.48-109.54-152h79.73c9.5 23.44 32.41 40 59.25 40 35.34 0 64-28.65 64-64s-28.66-64-64-64zm0 272h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"] };
  3246. var faBible = { prefix: 'fas', iconName: 'bible', icon: [448, 512, [], "f647", "M448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM144 144c0-8.84 7.16-16 16-16h48V80c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v48h48c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16h-48v112c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16V192h-48c-8.84 0-16-7.16-16-16v-32zm236.8 304H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64z"] };
  3247. var faBicycle = { prefix: 'fas', iconName: 'bicycle', icon: [640, 512, [], "f206", "M512.509 192.001c-16.373-.064-32.03 2.955-46.436 8.495l-77.68-125.153A24 24 0 0 0 368.001 64h-64c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h50.649l14.896 24H256.002v-16c0-8.837-7.163-16-16-16h-87.459c-13.441 0-24.777 10.999-24.536 24.437.232 13.044 10.876 23.563 23.995 23.563h48.726l-29.417 47.52c-13.433-4.83-27.904-7.483-42.992-7.52C58.094 191.83.412 249.012.002 319.236-.413 390.279 57.055 448 128.002 448c59.642 0 109.758-40.793 123.967-96h52.033a24 24 0 0 0 20.406-11.367L410.37 201.77l14.938 24.067c-25.455 23.448-41.385 57.081-41.307 94.437.145 68.833 57.899 127.051 126.729 127.719 70.606.685 128.181-55.803 129.255-125.996 1.086-70.941-56.526-129.72-127.476-129.996zM186.75 265.772c9.727 10.529 16.673 23.661 19.642 38.228h-43.306l23.664-38.228zM128.002 400c-44.112 0-80-35.888-80-80s35.888-80 80-80c5.869 0 11.586.653 17.099 1.859l-45.505 73.509C89.715 331.327 101.213 352 120.002 352h81.3c-12.37 28.225-40.562 48-73.3 48zm162.63-96h-35.624c-3.96-31.756-19.556-59.894-42.383-80.026L237.371 184h127.547l-74.286 120zm217.057 95.886c-41.036-2.165-74.049-35.692-75.627-76.755-.812-21.121 6.633-40.518 19.335-55.263l44.433 71.586c4.66 7.508 14.524 9.816 22.032 5.156l13.594-8.437c7.508-4.66 9.817-14.524 5.156-22.032l-44.468-71.643a79.901 79.901 0 0 1 19.858-2.497c44.112 0 80 35.888 80 80-.001 45.54-38.252 82.316-84.313 79.885z"] };
  3248. var faBinoculars = { prefix: 'fas', iconName: 'binoculars', icon: [512, 512, [], "f1e5", "M416 48c0-8.84-7.16-16-16-16h-64c-8.84 0-16 7.16-16 16v48h96V48zM63.91 159.99C61.4 253.84 3.46 274.22 0 404v44c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32V288h32V128H95.84c-17.63 0-31.45 14.37-31.93 31.99zm384.18 0c-.48-17.62-14.3-31.99-31.93-31.99H320v160h32v160c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-44c-3.46-129.78-61.4-150.16-63.91-244.01zM176 32h-64c-8.84 0-16 7.16-16 16v48h96V48c0-8.84-7.16-16-16-16zm48 256h64V128h-64v160z"] };
  3249. var faBirthdayCake = { prefix: 'fas', iconName: 'birthday-cake', icon: [448, 512, [], "f1fd", "M448 384c-28.02 0-31.26-32-74.5-32-43.43 0-46.825 32-74.75 32-27.695 0-31.454-32-74.75-32-42.842 0-47.218 32-74.5 32-28.148 0-31.202-32-74.75-32-43.547 0-46.653 32-74.75 32v-80c0-26.5 21.5-48 48-48h16V112h64v144h64V112h64v144h64V112h64v144h16c26.5 0 48 21.5 48 48v80zm0 128H0v-96c43.356 0 46.767-32 74.75-32 27.951 0 31.253 32 74.75 32 42.843 0 47.217-32 74.5-32 28.148 0 31.201 32 74.75 32 43.357 0 46.767-32 74.75-32 27.488 0 31.252 32 74.5 32v96zM96 96c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40z"] };
  3250. var faBlender = { prefix: 'fas', iconName: 'blender', icon: [512, 512, [], "f517", "M416 384H160c-35.35 0-64 28.65-64 64v32c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-32c0-35.35-28.65-64-64-64zm-128 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm40-416h166.54L512 0H48C21.49 0 0 21.49 0 48v160c0 26.51 21.49 48 48 48h103.27l8.73 96h256l17.46-64H328c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h114.18l17.46-64H328c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h140.36l17.46-64H328c-4.42 0-8-3.58-8-8V72c0-4.42 3.58-8 8-8zM64 192V64h69.82l11.64 128H64z"] };
  3251. var faBlenderPhone = { prefix: 'fas', iconName: 'blender-phone', icon: [576, 512, [], "f6b6", "M392 64h166.54L576 0H192v352h288l17.46-64H392c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h114.18l17.46-64H392c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h140.36l17.46-64H392c-4.42 0-8-3.58-8-8V72c0-4.42 3.58-8 8-8zM158.8 335.01l-25.78-63.26c-2.78-6.81-9.8-10.99-17.24-10.26l-45.03 4.42c-17.28-46.94-17.65-99.78 0-147.72l45.03 4.42c7.43.73 14.46-3.46 17.24-10.26l25.78-63.26c3.02-7.39.2-15.85-6.68-20.07l-39.28-24.1C98.51-3.87 80.09-.5 68.95 11.97c-92.57 103.6-92 259.55 2.1 362.49 9.87 10.8 29.12 12.48 41.65 4.8l39.41-24.18c6.89-4.22 9.7-12.67 6.69-20.07zM480 384H192c-35.35 0-64 28.65-64 64v32c0 17.67 14.33 32 32 32h352c17.67 0 32-14.33 32-32v-32c0-35.35-28.65-64-64-64zm-144 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3252. var faBlind = { prefix: 'fas', iconName: 'blind', icon: [384, 512, [], "f29d", "M380.15 510.837a8 8 0 0 1-10.989-2.687l-125.33-206.427a31.923 31.923 0 0 0 12.958-9.485l126.048 207.608a8 8 0 0 1-2.687 10.991zM142.803 314.338l-32.54 89.485 36.12 88.285c6.693 16.36 25.377 24.192 41.733 17.501 16.357-6.692 24.193-25.376 17.501-41.734l-62.814-153.537zM96 88c24.301 0 44-19.699 44-44S120.301 0 96 0 52 19.699 52 44s19.699 44 44 44zm154.837 169.128l-120-152c-4.733-5.995-11.75-9.108-18.837-9.112V96H80v.026c-7.146.003-14.217 3.161-18.944 9.24L0 183.766v95.694c0 13.455 11.011 24.791 24.464 24.536C37.505 303.748 48 293.1 48 280v-79.766l16-20.571v140.698L9.927 469.055c-6.04 16.609 2.528 34.969 19.138 41.009 16.602 6.039 34.968-2.524 41.009-19.138L136 309.638V202.441l-31.406-39.816a4 4 0 1 1 6.269-4.971l102.3 129.217c9.145 11.584 24.368 11.339 33.708 3.965 10.41-8.216 12.159-23.334 3.966-33.708z"] };
  3253. var faBold = { prefix: 'fas', iconName: 'bold', icon: [384, 512, [], "f032", "M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"] };
  3254. var faBolt = { prefix: 'fas', iconName: 'bolt', icon: [320, 512, [], "f0e7", "M295.973 160H180.572L215.19 30.184C219.25 14.956 207.756 0 192 0H56C43.971 0 33.8 8.905 32.211 20.828l-31.996 240C-1.704 275.217 9.504 288 24.004 288h118.701L96.646 482.466C93.05 497.649 104.659 512 119.992 512c8.35 0 16.376-4.374 20.778-11.978l175.973-303.997c9.244-15.967-2.288-36.025-20.77-36.025z"] };
  3255. var faBomb = { prefix: 'fas', iconName: 'bomb', icon: [512, 512, [], "f1e2", "M440.5 88.5l-52 52L415 167c9.4 9.4 9.4 24.6 0 33.9l-17.4 17.4c11.8 26.1 18.4 55.1 18.4 85.6 0 114.9-93.1 208-208 208S0 418.9 0 304 93.1 96 208 96c30.5 0 59.5 6.6 85.6 18.4L311 97c9.4-9.4 24.6-9.4 33.9 0l26.5 26.5 52-52 17.1 17zM500 60h-24c-6.6 0-12 5.4-12 12s5.4 12 12 12h24c6.6 0 12-5.4 12-12s-5.4-12-12-12zM440 0c-6.6 0-12 5.4-12 12v24c0 6.6 5.4 12 12 12s12-5.4 12-12V12c0-6.6-5.4-12-12-12zm33.9 55l17-17c4.7-4.7 4.7-12.3 0-17-4.7-4.7-12.3-4.7-17 0l-17 17c-4.7 4.7-4.7 12.3 0 17 4.8 4.7 12.4 4.7 17 0zm-67.8 0c4.7 4.7 12.3 4.7 17 0 4.7-4.7 4.7-12.3 0-17l-17-17c-4.7-4.7-12.3-4.7-17 0-4.7 4.7-4.7 12.3 0 17l17 17zm67.8 34c-4.7-4.7-12.3-4.7-17 0-4.7 4.7-4.7 12.3 0 17l17 17c4.7 4.7 12.3 4.7 17 0 4.7-4.7 4.7-12.3 0-17l-17-17zM112 272c0-35.3 28.7-64 64-64 8.8 0 16-7.2 16-16s-7.2-16-16-16c-52.9 0-96 43.1-96 96 0 8.8 7.2 16 16 16s16-7.2 16-16z"] };
  3256. var faBone = { prefix: 'fas', iconName: 'bone', icon: [640, 512, [], "f5d7", "M598.88 244.56c25.2-12.6 41.12-38.36 41.12-66.53v-7.64C640 129.3 606.7 96 565.61 96c-32.02 0-60.44 20.49-70.57 50.86-7.68 23.03-11.6 45.14-38.11 45.14H183.06c-27.38 0-31.58-25.54-38.11-45.14C134.83 116.49 106.4 96 74.39 96 33.3 96 0 129.3 0 170.39v7.64c0 28.17 15.92 53.93 41.12 66.53 9.43 4.71 9.43 18.17 0 22.88C15.92 280.04 0 305.8 0 333.97v7.64C0 382.7 33.3 416 74.38 416c32.02 0 60.44-20.49 70.57-50.86 7.68-23.03 11.6-45.14 38.11-45.14h273.87c27.38 0 31.58 25.54 38.11 45.14C505.17 395.51 533.6 416 565.61 416c41.08 0 74.38-33.3 74.38-74.39v-7.64c0-28.18-15.92-53.93-41.12-66.53-9.42-4.71-9.42-18.17.01-22.88z"] };
  3257. var faBong = { prefix: 'fas', iconName: 'bong', icon: [448, 512, [], "f55c", "M302.5 512c23.18 0 44.43-12.58 56-32.66C374.69 451.26 384 418.75 384 384c0-36.12-10.08-69.81-27.44-98.62L400 241.94l9.38 9.38c6.25 6.25 16.38 6.25 22.63 0l11.3-11.32c6.25-6.25 6.25-16.38 0-22.63l-52.69-52.69c-6.25-6.25-16.38-6.25-22.63 0l-11.31 11.31c-6.25 6.25-6.25 16.38 0 22.63l9.38 9.38-39.41 39.41c-11.56-11.37-24.53-21.33-38.65-29.51V63.74l15.97-.02c8.82-.01 15.97-7.16 15.98-15.98l.04-31.72C320 7.17 312.82-.01 303.97 0L80.03.26c-8.82.01-15.97 7.16-15.98 15.98l-.04 31.73c-.01 8.85 7.17 16.02 16.02 16.01L96 63.96v153.93C38.67 251.1 0 312.97 0 384c0 34.75 9.31 67.27 25.5 95.34C37.08 499.42 58.33 512 81.5 512h221zM120.06 259.43L144 245.56V63.91l96-.11v181.76l23.94 13.87c24.81 14.37 44.12 35.73 56.56 60.57h-257c12.45-24.84 31.75-46.2 56.56-60.57z"] };
  3258. var faBook = { prefix: 'fas', iconName: 'book', icon: [448, 512, [], "f02d", "M448 360V24c0-13.3-10.7-24-24-24H96C43 0 0 43 0 96v320c0 53 43 96 96 96h328c13.3 0 24-10.7 24-24v-16c0-7.5-3.5-14.3-8.9-18.7-4.2-15.4-4.2-59.3 0-74.7 5.4-4.3 8.9-11.1 8.9-18.6zM128 134c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm0 64c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm253.4 250H96c-17.7 0-32-14.3-32-32 0-17.6 14.4-32 32-32h285.4c-1.9 17.1-1.9 46.9 0 64z"] };
  3259. var faBookDead = { prefix: 'fas', iconName: 'book-dead', icon: [448, 512, [], "f6b7", "M272 136c8.84 0 16-7.16 16-16s-7.16-16-16-16-16 7.16-16 16 7.16 16 16 16zm176 222.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM240 56c44.18 0 80 28.65 80 64 0 20.87-12.68 39.23-32 50.91V184c0 8.84-7.16 16-16 16h-64c-8.84 0-16-7.16-16-16v-13.09c-19.32-11.68-32-30.04-32-50.91 0-35.35 35.82-64 80-64zM129.05 233.85a7.996 7.996 0 0 1-4.2-10.5l6.29-14.7a7.995 7.995 0 0 1 10.51-4.2L240 246.6l98.35-42.15c4.06-1.74 8.77.14 10.51 4.2l6.29 14.7a7.996 7.996 0 0 1-4.2 10.5L280.6 264l70.34 30.15a7.996 7.996 0 0 1 4.2 10.5l-6.29 14.7a8.008 8.008 0 0 1-10.51 4.21L240 281.4l-98.35 42.15a8.003 8.003 0 0 1-10.51-4.21l-6.29-14.7a7.996 7.996 0 0 1 4.2-10.5L199.4 264l-70.35-30.15zM380.8 448H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64zM208 136c8.84 0 16-7.16 16-16s-7.16-16-16-16-16 7.16-16 16 7.16 16 16 16z"] };
  3260. var faBookOpen = { prefix: 'fas', iconName: 'book-open', icon: [576, 512, [], "f518", "M542.22 32.05c-54.8 3.11-163.72 14.43-230.96 55.59-4.64 2.84-7.27 7.89-7.27 13.17v363.87c0 11.55 12.63 18.85 23.28 13.49 69.18-34.82 169.23-44.32 218.7-46.92 16.89-.89 30.02-14.43 30.02-30.66V62.75c.01-17.71-15.35-31.74-33.77-30.7zM264.73 87.64C197.5 46.48 88.58 35.17 33.78 32.05 15.36 31.01 0 45.04 0 62.75V400.6c0 16.24 13.13 29.78 30.02 30.66 49.49 2.6 149.59 12.11 218.77 46.95 10.62 5.35 23.21-1.94 23.21-13.46V100.63c0-5.29-2.62-10.14-7.27-12.99z"] };
  3261. var faBookReader = { prefix: 'fas', iconName: 'book-reader', icon: [512, 512, [], "f5da", "M352 96c0-53.02-42.98-96-96-96s-96 42.98-96 96 42.98 96 96 96 96-42.98 96-96zM233.59 241.1c-59.33-36.32-155.43-46.3-203.79-49.05C13.55 191.13 0 203.51 0 219.14v222.8c0 14.33 11.59 26.28 26.49 27.05 43.66 2.29 131.99 10.68 193.04 41.43 9.37 4.72 20.48-1.71 20.48-11.87V252.56c-.01-4.67-2.32-8.95-6.42-11.46zm248.61-49.05c-48.35 2.74-144.46 12.73-203.78 49.05-4.1 2.51-6.41 6.96-6.41 11.63v245.79c0 10.19 11.14 16.63 20.54 11.9 61.04-30.72 149.32-39.11 192.97-41.4 14.9-.78 26.49-12.73 26.49-27.06V219.14c-.01-15.63-13.56-28.01-29.81-27.09z"] };
  3262. var faBookmark = { prefix: 'fas', iconName: 'bookmark', icon: [384, 512, [], "f02e", "M0 512V48C0 21.49 21.49 0 48 0h288c26.51 0 48 21.49 48 48v464L192 400 0 512z"] };
  3263. var faBowlingBall = { prefix: 'fas', iconName: 'bowling-ball', icon: [496, 512, [], "f436", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM120 192c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm64-96c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm48 144c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3264. var faBox = { prefix: 'fas', iconName: 'box', icon: [512, 512, [], "f466", "M509.5 184.6L458.9 32.8C452.4 13.2 434.1 0 413.4 0H272v192h238.7c-.4-2.5-.4-5-1.2-7.4zM240 0H98.6c-20.7 0-39 13.2-45.5 32.8L2.5 184.6c-.8 2.4-.8 4.9-1.2 7.4H240V0zM0 224v240c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V224H0z"] };
  3265. var faBoxOpen = { prefix: 'fas', iconName: 'box-open', icon: [640, 512, [], "f49e", "M53.2 41L1.7 143.8c-4.6 9.2.3 20.2 10.1 23l197.9 56.5c7.1 2 14.7-1 18.5-7.3L320 64 69.8 32.1c-6.9-.8-13.5 2.7-16.6 8.9zm585.1 102.8L586.8 41c-3.1-6.2-9.8-9.8-16.7-8.9L320 64l91.7 152.1c3.8 6.3 11.4 9.3 18.5 7.3l197.9-56.5c9.9-2.9 14.7-13.9 10.2-23.1zM425.7 256c-16.9 0-32.8-9-41.4-23.4L320 126l-64.2 106.6c-8.7 14.5-24.6 23.5-41.5 23.5-4.5 0-9-.6-13.3-1.9L64 215v178c0 14.7 10 27.5 24.2 31l216.2 54.1c10.2 2.5 20.9 2.5 31 0L551.8 424c14.2-3.6 24.2-16.4 24.2-31V215l-137 39.1c-4.3 1.3-8.8 1.9-13.3 1.9z"] };
  3266. var faBoxes = { prefix: 'fas', iconName: 'boxes', icon: [576, 512, [], "f468", "M560 288h-80v96l-32-21.3-32 21.3v-96h-80c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16h224c8.8 0 16-7.2 16-16V304c0-8.8-7.2-16-16-16zm-384-64h224c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16h-80v96l-32-21.3L256 96V0h-80c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16zm64 64h-80v96l-32-21.3L96 384v-96H16c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16h224c8.8 0 16-7.2 16-16V304c0-8.8-7.2-16-16-16z"] };
  3267. var faBraille = { prefix: 'fas', iconName: 'braille', icon: [640, 512, [], "f2a1", "M128 256c0 35.346-28.654 64-64 64S0 291.346 0 256s28.654-64 64-64 64 28.654 64 64zM64 384c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352C28.654 32 0 60.654 0 96s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm160 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm224 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm160 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-320c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32z"] };
  3268. var faBrain = { prefix: 'fas', iconName: 'brain', icon: [576, 512, [], "f5dc", "M208 0c-29.87 0-54.74 20.55-61.8 48.22-.75-.02-1.45-.22-2.2-.22-35.34 0-64 28.65-64 64 0 4.84.64 9.51 1.66 14.04C52.54 138 32 166.57 32 200c0 12.58 3.16 24.32 8.34 34.91C16.34 248.72 0 274.33 0 304c0 33.34 20.42 61.88 49.42 73.89-.9 4.57-1.42 9.28-1.42 14.11 0 39.76 32.23 72 72 72 4.12 0 8.1-.55 12.03-1.21C141.61 491.31 168.25 512 200 512c39.77 0 72-32.24 72-72V205.45c-10.91 8.98-23.98 15.45-38.36 18.39-4.97 1.02-9.64-2.82-9.64-7.89v-16.18c0-3.57 2.35-6.78 5.8-7.66 24.2-6.16 42.2-27.95 42.2-54.04V64c0-35.35-28.66-64-64-64zm368 304c0-29.67-16.34-55.28-40.34-69.09 5.17-10.59 8.34-22.33 8.34-34.91 0-33.43-20.54-62-49.66-73.96 1.02-4.53 1.66-9.2 1.66-14.04 0-35.35-28.66-64-64-64-.75 0-1.45.2-2.2.22C422.74 20.55 397.87 0 368 0c-35.34 0-64 28.65-64 64v74.07c0 26.09 17.99 47.88 42.2 54.04 3.46.88 5.8 4.09 5.8 7.66v16.18c0 5.07-4.68 8.91-9.64 7.89-14.38-2.94-27.44-9.41-38.36-18.39V440c0 39.76 32.23 72 72 72 31.75 0 58.39-20.69 67.97-49.21 3.93.67 7.91 1.21 12.03 1.21 39.77 0 72-32.24 72-72 0-4.83-.52-9.54-1.42-14.11 29-12.01 49.42-40.55 49.42-73.89z"] };
  3269. var faBriefcase = { prefix: 'fas', iconName: 'briefcase', icon: [512, 512, [], "f0b1", "M320 336c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h416c25.6 0 48-22.4 48-48V288H320v48zm144-208h-80V80c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h512v-80c0-25.6-22.4-48-48-48zm-144 0H192V96h128v32z"] };
  3270. var faBriefcaseMedical = { prefix: 'fas', iconName: 'briefcase-medical', icon: [512, 512, [], "f469", "M464 128h-80V80c0-26.5-21.5-48-48-48H176c-26.5 0-48 21.5-48 48v48H48c-26.5 0-48 21.5-48 48v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V176c0-26.5-21.5-48-48-48zM192 96h128v32H192V96zm160 248c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48z"] };
  3271. var faBroadcastTower = { prefix: 'fas', iconName: 'broadcast-tower', icon: [640, 512, [], "f519", "M150.94 192h33.73c11.01 0 18.61-10.83 14.86-21.18-4.93-13.58-7.55-27.98-7.55-42.82s2.62-29.24 7.55-42.82C203.29 74.83 195.68 64 184.67 64h-33.73c-7.01 0-13.46 4.49-15.41 11.23C130.64 92.21 128 109.88 128 128c0 18.12 2.64 35.79 7.54 52.76 1.94 6.74 8.39 11.24 15.4 11.24zM89.92 23.34C95.56 12.72 87.97 0 75.96 0H40.63c-6.27 0-12.14 3.59-14.74 9.31C9.4 45.54 0 85.65 0 128c0 24.75 3.12 68.33 26.69 118.86 2.62 5.63 8.42 9.14 14.61 9.14h34.84c12.02 0 19.61-12.74 13.95-23.37-49.78-93.32-16.71-178.15-.17-209.29zM614.06 9.29C611.46 3.58 605.6 0 599.33 0h-35.42c-11.98 0-19.66 12.66-14.02 23.25 18.27 34.29 48.42 119.42.28 209.23-5.72 10.68 1.8 23.52 13.91 23.52h35.23c6.27 0 12.13-3.58 14.73-9.29C630.57 210.48 640 170.36 640 128s-9.42-82.48-25.94-118.71zM489.06 64h-33.73c-11.01 0-18.61 10.83-14.86 21.18 4.93 13.58 7.55 27.98 7.55 42.82s-2.62 29.24-7.55 42.82c-3.76 10.35 3.85 21.18 14.86 21.18h33.73c7.02 0 13.46-4.49 15.41-11.24 4.9-16.97 7.53-34.64 7.53-52.76 0-18.12-2.64-35.79-7.54-52.76-1.94-6.75-8.39-11.24-15.4-11.24zm-116.3 100.12c7.05-10.29 11.2-22.71 11.2-36.12 0-35.35-28.63-64-63.96-64-35.32 0-63.96 28.65-63.96 64 0 13.41 4.15 25.83 11.2 36.12l-130.5 313.41c-3.4 8.15.46 17.52 8.61 20.92l29.51 12.31c8.15 3.4 17.52-.46 20.91-8.61L244.96 384h150.07l49.2 118.15c3.4 8.16 12.76 12.01 20.91 8.61l29.51-12.31c8.15-3.4 12-12.77 8.61-20.92l-130.5-313.41zM271.62 320L320 203.81 368.38 320h-96.76z"] };
  3272. var faBroom = { prefix: 'fas', iconName: 'broom', icon: [640, 512, [], "f51a", "M256.47 216.77l86.73 109.18s-16.6 102.36-76.57 150.12C206.66 523.85 0 510.19 0 510.19s3.8-23.14 11-55.43l94.62-112.17c3.97-4.7-.87-11.62-6.65-9.5l-60.4 22.09c14.44-41.66 32.72-80.04 54.6-97.47 59.97-47.76 163.3-40.94 163.3-40.94zM636.53 31.03l-19.86-25c-5.49-6.9-15.52-8.05-22.41-2.56l-232.48 177.8-34.14-42.97c-5.09-6.41-15.14-5.21-18.59 2.21l-25.33 54.55 86.73 109.18 58.8-12.45c8-1.69 11.42-11.2 6.34-17.6l-34.09-42.92 232.48-177.8c6.89-5.48 8.04-15.53 2.55-22.44z"] };
  3273. var faBrush = { prefix: 'fas', iconName: 'brush', icon: [384, 512, [], "f55d", "M352 0H32C14.33 0 0 14.33 0 32v224h384V32c0-17.67-14.33-32-32-32zM0 320c0 35.35 28.66 64 64 64h64v64c0 35.35 28.66 64 64 64s64-28.65 64-64v-64h64c35.34 0 64-28.65 64-64v-32H0v32zm192 104c13.25 0 24 10.74 24 24 0 13.25-10.75 24-24 24s-24-10.75-24-24c0-13.26 10.75-24 24-24z"] };
  3274. var faBug = { prefix: 'fas', iconName: 'bug', icon: [512, 512, [], "f188", "M511.988 288.9c-.478 17.43-15.217 31.1-32.653 31.1H424v16c0 21.864-4.882 42.584-13.6 61.145l60.228 60.228c12.496 12.497 12.496 32.758 0 45.255-12.498 12.497-32.759 12.496-45.256 0l-54.736-54.736C345.886 467.965 314.351 480 280 480V236c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v244c-34.351 0-65.886-12.035-90.636-32.108l-54.736 54.736c-12.498 12.497-32.759 12.496-45.256 0-12.496-12.497-12.496-32.758 0-45.255l60.228-60.228C92.882 378.584 88 357.864 88 336v-16H32.666C15.23 320 .491 306.33.013 288.9-.484 270.816 14.028 256 32 256h56v-58.745l-46.628-46.628c-12.496-12.497-12.496-32.758 0-45.255 12.498-12.497 32.758-12.497 45.256 0L141.255 160h229.489l54.627-54.627c12.498-12.497 32.758-12.497 45.256 0 12.496 12.497 12.496 32.758 0 45.255L424 197.255V256h56c17.972 0 32.484 14.816 31.988 32.9zM257 0c-61.856 0-112 50.144-112 112h224C369 50.144 318.856 0 257 0z"] };
  3275. var faBuilding = { prefix: 'fas', iconName: 'building', icon: [448, 512, [], "f1ad", "M436 480h-20V24c0-13.255-10.745-24-24-24H56C42.745 0 32 10.745 32 24v456H12c-6.627 0-12 5.373-12 12v20h448v-20c0-6.627-5.373-12-12-12zM128 76c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12V76zm0 96c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40zm52 148h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12zm76 160h-64v-84c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v84zm64-172c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40zm0-96c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40zm0-96c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12V76c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40z"] };
  3276. var faBullhorn = { prefix: 'fas', iconName: 'bullhorn', icon: [576, 512, [], "f0a1", "M576 240c0-23.63-12.95-44.04-32-55.12V32.01C544 23.26 537.02 0 512 0c-7.12 0-14.19 2.38-19.98 7.02l-85.03 68.03C364.28 109.19 310.66 128 256 128H64c-35.35 0-64 28.65-64 64v96c0 35.35 28.65 64 64 64h33.7c-1.39 10.48-2.18 21.14-2.18 32 0 39.77 9.26 77.35 25.56 110.94 5.19 10.69 16.52 17.06 28.4 17.06h74.28c26.05 0 41.69-29.84 25.9-50.56-16.4-21.52-26.15-48.36-26.15-77.44 0-11.11 1.62-21.79 4.41-32H256c54.66 0 108.28 18.81 150.98 52.95l85.03 68.03a32.023 32.023 0 0 0 19.98 7.02c24.92 0 32-22.78 32-32V295.13C563.05 284.04 576 263.63 576 240zm-96 141.42l-33.05-26.44C392.95 311.78 325.12 288 256 288v-96c69.12 0 136.95-23.78 190.95-66.98L480 98.58v282.84z"] };
  3277. var faBullseye = { prefix: 'fas', iconName: 'bullseye', icon: [496, 512, [], "f140", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm0 432c-101.69 0-184-82.29-184-184 0-101.69 82.29-184 184-184 101.69 0 184 82.29 184 184 0 101.69-82.29 184-184 184zm0-312c-70.69 0-128 57.31-128 128s57.31 128 128 128 128-57.31 128-128-57.31-128-128-128zm0 192c-35.29 0-64-28.71-64-64s28.71-64 64-64 64 28.71 64 64-28.71 64-64 64z"] };
  3278. var faBurn = { prefix: 'fas', iconName: 'burn', icon: [384, 512, [], "f46a", "M192 0C79.7 101.3 0 220.9 0 300.5 0 425 79 512 192 512s192-87 192-211.5c0-79.9-80.2-199.6-192-300.5zm0 448c-56.5 0-96-39-96-94.8 0-13.5 4.6-61.5 96-161.2 91.4 99.7 96 147.7 96 161.2 0 55.8-39.5 94.8-96 94.8z"] };
  3279. var faBus = { prefix: 'fas', iconName: 'bus', icon: [512, 512, [], "f207", "M488 128h-8V80c0-44.8-99.2-80-224-80S32 35.2 32 80v48h-8c-13.25 0-24 10.74-24 24v80c0 13.25 10.75 24 24 24h8v160c0 17.67 14.33 32 32 32v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h192v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h6.4c16 0 25.6-12.8 25.6-25.6V256h8c13.25 0 24-10.75 24-24v-80c0-13.26-10.75-24-24-24zM112 400c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm16-112c-17.67 0-32-14.33-32-32V128c0-17.67 14.33-32 32-32h256c17.67 0 32 14.33 32 32v128c0 17.67-14.33 32-32 32H128zm272 112c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3280. var faBusAlt = { prefix: 'fas', iconName: 'bus-alt', icon: [512, 512, [], "f55e", "M488 128h-8V80c0-44.8-99.2-80-224-80S32 35.2 32 80v48h-8c-13.25 0-24 10.74-24 24v80c0 13.25 10.75 24 24 24h8v160c0 17.67 14.33 32 32 32v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h192v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h6.4c16 0 25.6-12.8 25.6-25.6V256h8c13.25 0 24-10.75 24-24v-80c0-13.26-10.75-24-24-24zM160 72c0-4.42 3.58-8 8-8h176c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H168c-4.42 0-8-3.58-8-8V72zm-48 328c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm128-112H128c-17.67 0-32-14.33-32-32v-96c0-17.67 14.33-32 32-32h112v160zm32 0V128h112c17.67 0 32 14.33 32 32v96c0 17.67-14.33 32-32 32H272zm128 112c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3281. var faBusinessTime = { prefix: 'fas', iconName: 'business-time', icon: [640, 512, [], "f64a", "M496 224c-79.59 0-144 64.41-144 144s64.41 144 144 144 144-64.41 144-144-64.41-144-144-144zm64 150.29c0 5.34-4.37 9.71-9.71 9.71h-60.57c-5.34 0-9.71-4.37-9.71-9.71v-76.57c0-5.34 4.37-9.71 9.71-9.71h12.57c5.34 0 9.71 4.37 9.71 9.71V352h38.29c5.34 0 9.71 4.37 9.71 9.71v12.58zM496 192c5.4 0 10.72.33 16 .81V144c0-25.6-22.4-48-48-48h-80V48c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h395.12c28.6-20.09 63.35-32 100.88-32zM320 96H192V64h128v32zm6.82 224H208c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h291.43C327.1 423.96 320 396.82 320 368c0-16.66 2.48-32.72 6.82-48z"] };
  3282. var faCalculator = { prefix: 'fas', iconName: 'calculator', icon: [448, 512, [], "f1ec", "M400 0H48C22.4 0 0 22.4 0 48v416c0 25.6 22.4 48 48 48h352c25.6 0 48-22.4 48-48V48c0-25.6-22.4-48-48-48zM128 435.2c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-128c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm128 128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm128 128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8V268.8c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v166.4zm0-256c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8V76.8C64 70.4 70.4 64 76.8 64h294.4c6.4 0 12.8 6.4 12.8 12.8v102.4z"] };
  3283. var faCalendar = { prefix: 'fas', iconName: 'calendar', icon: [448, 512, [], "f133", "M12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm436-44v-36c0-26.5-21.5-48-48-48h-48V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H160V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v36c0 6.6 5.4 12 12 12h424c6.6 0 12-5.4 12-12z"] };
  3284. var faCalendarAlt = { prefix: 'fas', iconName: 'calendar-alt', icon: [448, 512, [], "f073", "M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm116 204c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm0-128c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm128 128c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm0-128c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm128 128c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm0-128c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40z"] };
  3285. var faCalendarCheck = { prefix: 'fas', iconName: 'calendar-check', icon: [448, 512, [], "f274", "M436 160H12c-6.627 0-12-5.373-12-12v-36c0-26.51 21.49-48 48-48h48V12c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v52h128V12c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v52h48c26.51 0 48 21.49 48 48v36c0 6.627-5.373 12-12 12zM12 192h424c6.627 0 12 5.373 12 12v260c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V204c0-6.627 5.373-12 12-12zm333.296 95.947l-28.169-28.398c-4.667-4.705-12.265-4.736-16.97-.068L194.12 364.665l-45.98-46.352c-4.667-4.705-12.266-4.736-16.971-.068l-28.397 28.17c-4.705 4.667-4.736 12.265-.068 16.97l82.601 83.269c4.667 4.705 12.265 4.736 16.97.068l142.953-141.805c4.705-4.667 4.736-12.265.068-16.97z"] };
  3286. var faCalendarMinus = { prefix: 'fas', iconName: 'calendar-minus', icon: [448, 512, [], "f272", "M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm304 192c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12H132c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h184z"] };
  3287. var faCalendarPlus = { prefix: 'fas', iconName: 'calendar-plus', icon: [448, 512, [], "f271", "M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm316 140c0-6.6-5.4-12-12-12h-60v-60c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v60h-60c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h60v60c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-60h60c6.6 0 12-5.4 12-12v-40z"] };
  3288. var faCalendarTimes = { prefix: 'fas', iconName: 'calendar-times', icon: [448, 512, [], "f273", "M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm257.3 160l48.1-48.1c4.7-4.7 4.7-12.3 0-17l-28.3-28.3c-4.7-4.7-12.3-4.7-17 0L224 306.7l-48.1-48.1c-4.7-4.7-12.3-4.7-17 0l-28.3 28.3c-4.7 4.7-4.7 12.3 0 17l48.1 48.1-48.1 48.1c-4.7 4.7-4.7 12.3 0 17l28.3 28.3c4.7 4.7 12.3 4.7 17 0l48.1-48.1 48.1 48.1c4.7 4.7 12.3 4.7 17 0l28.3-28.3c4.7-4.7 4.7-12.3 0-17L269.3 352z"] };
  3289. var faCamera = { prefix: 'fas', iconName: 'camera', icon: [512, 512, [], "f030", "M512 144v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h88l12.3-32.9c7-18.7 24.9-31.1 44.9-31.1h125.5c20 0 37.9 12.4 44.9 31.1L376 96h88c26.5 0 48 21.5 48 48zM376 288c0-66.2-53.8-120-120-120s-120 53.8-120 120 53.8 120 120 120 120-53.8 120-120zm-32 0c0 48.5-39.5 88-88 88s-88-39.5-88-88 39.5-88 88-88 88 39.5 88 88z"] };
  3290. var faCameraRetro = { prefix: 'fas', iconName: 'camera-retro', icon: [512, 512, [], "f083", "M48 32C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48H48zm0 32h106c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H38c-3.3 0-6-2.7-6-6V80c0-8.8 7.2-16 16-16zm426 96H38c-3.3 0-6-2.7-6-6v-36c0-3.3 2.7-6 6-6h138l30.2-45.3c1.1-1.7 3-2.7 5-2.7H464c8.8 0 16 7.2 16 16v74c0 3.3-2.7 6-6 6zM256 424c-66.2 0-120-53.8-120-120s53.8-120 120-120 120 53.8 120 120-53.8 120-120 120zm0-208c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm-48 104c-8.8 0-16-7.2-16-16 0-35.3 28.7-64 64-64 8.8 0 16 7.2 16 16s-7.2 16-16 16c-17.6 0-32 14.4-32 32 0 8.8-7.2 16-16 16z"] };
  3291. var faCampground = { prefix: 'fas', iconName: 'campground', icon: [640, 512, [], "f6bb", "M624 448h-24.68L359.54 117.75l53.41-73.55c5.19-7.15 3.61-17.16-3.54-22.35l-25.9-18.79c-7.15-5.19-17.15-3.61-22.35 3.55L320 63.3 278.83 6.6c-5.19-7.15-15.2-8.74-22.35-3.55l-25.88 18.8c-7.15 5.19-8.74 15.2-3.54 22.35l53.41 73.55L40.68 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM320 288l116.36 160H203.64L320 288z"] };
  3292. var faCannabis = { prefix: 'fas', iconName: 'cannabis', icon: [512, 512, [], "f55f", "M503.47 360.25c-1.56-.82-32.39-16.89-76.78-25.81 64.25-75.12 84.05-161.67 84.93-165.64 1.18-5.33-.44-10.9-4.3-14.77-3.03-3.04-7.12-4.7-11.32-4.7-1.14 0-2.29.12-3.44.38-3.88.85-86.54 19.59-160.58 79.76.01-1.46.01-2.93.01-4.4 0-118.79-59.98-213.72-62.53-217.7A15.973 15.973 0 0 0 256 0c-5.45 0-10.53 2.78-13.47 7.37-2.55 3.98-62.53 98.91-62.53 217.7 0 1.47.01 2.94.01 4.4-74.03-60.16-156.69-78.9-160.58-79.76-1.14-.25-2.29-.38-3.44-.38-4.2 0-8.29 1.66-11.32 4.7A15.986 15.986 0 0 0 .38 168.8c.88 3.97 20.68 90.52 84.93 165.64-44.39 8.92-75.21 24.99-76.78 25.81a16.003 16.003 0 0 0-.02 28.29c2.45 1.29 60.76 31.72 133.49 31.72 6.14 0 11.96-.1 17.5-.31-11.37 22.23-16.52 38.31-16.81 39.22-1.8 5.68-.29 11.89 3.91 16.11a16.019 16.019 0 0 0 16.1 3.99c1.83-.57 37.72-11.99 77.3-39.29V504c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8v-64.01c39.58 27.3 75.47 38.71 77.3 39.29a16.019 16.019 0 0 0 16.1-3.99c4.2-4.22 5.71-10.43 3.91-16.11-.29-.91-5.45-16.99-16.81-39.22 5.54.21 11.37.31 17.5.31 72.72 0 131.04-30.43 133.49-31.72 5.24-2.78 8.52-8.22 8.51-14.15-.01-5.94-3.29-11.39-8.53-14.15z"] };
  3293. var faCapsules = { prefix: 'fas', iconName: 'capsules', icon: [576, 512, [], "f46b", "M555.3 300.1L424.2 112.8C401.9 81 366.4 64 330.4 64c-22.6 0-45.5 6.7-65.5 20.7-19.7 13.8-33.7 32.8-41.5 53.8C220.5 79.2 172 32 112 32 50.1 32 0 82.1 0 144v224c0 61.9 50.1 112 112 112s112-50.1 112-112V218.9c3.3 8.6 7.3 17.1 12.8 25L368 431.2c22.2 31.8 57.7 48.8 93.8 48.8 22.7 0 45.5-6.7 65.5-20.7 51.7-36.2 64.2-107.5 28-159.2zM160 256H64V144c0-26.5 21.5-48 48-48s48 21.5 48 48v112zm194.8 44.9l-65.6-93.7c-7.7-11-10.7-24.4-8.3-37.6 2.3-13.2 9.7-24.8 20.7-32.5 8.5-6 18.5-9.1 28.8-9.1 16.5 0 31.9 8 41.3 21.5l65.6 93.7-82.5 57.7z"] };
  3294. var faCar = { prefix: 'fas', iconName: 'car', icon: [512, 512, [], "f1b9", "M499.99 176h-59.87l-16.64-41.6C406.38 91.63 365.57 64 319.5 64h-127c-46.06 0-86.88 27.63-103.99 70.4L71.87 176H12.01C4.2 176-1.53 183.34.37 190.91l6 24C7.7 220.25 12.5 224 18.01 224h20.07C24.65 235.73 16 252.78 16 272v48c0 16.12 6.16 30.67 16 41.93V416c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-54.07c9.84-11.25 16-25.8 16-41.93v-48c0-19.22-8.65-36.27-22.07-48H494c5.51 0 10.31-3.75 11.64-9.09l6-24c1.89-7.57-3.84-14.91-11.65-14.91zm-352.06-17.83c7.29-18.22 24.94-30.17 44.57-30.17h127c19.63 0 37.28 11.95 44.57 30.17L384 208H128l19.93-49.83zM96 319.8c-19.2 0-32-12.76-32-31.9S76.8 256 96 256s48 28.71 48 47.85-28.8 15.95-48 15.95zm320 0c-19.2 0-48 3.19-48-15.95S396.8 256 416 256s32 12.76 32 31.9-12.8 31.9-32 31.9z"] };
  3295. var faCarAlt = { prefix: 'fas', iconName: 'car-alt', icon: [480, 512, [], "f5de", "M438.66 212.33l-11.24-28.1-19.93-49.83C390.38 91.63 349.57 64 303.5 64h-127c-46.06 0-86.88 27.63-103.99 70.4l-19.93 49.83-11.24 28.1C17.22 221.5 0 244.66 0 272v48c0 16.12 6.16 30.67 16 41.93V416c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-54.07c9.84-11.25 16-25.8 16-41.93v-48c0-27.34-17.22-50.5-41.34-59.67zm-306.73-54.16c7.29-18.22 24.94-30.17 44.57-30.17h127c19.63 0 37.28 11.95 44.57 30.17L368 208H112l19.93-49.83zM80 319.8c-19.2 0-32-12.76-32-31.9S60.8 256 80 256s48 28.71 48 47.85-28.8 15.95-48 15.95zm320 0c-19.2 0-48 3.19-48-15.95S380.8 256 400 256s32 12.76 32 31.9-12.8 31.9-32 31.9z"] };
  3296. var faCarBattery = { prefix: 'fas', iconName: 'car-battery', icon: [512, 512, [], "f5df", "M480 128h-32V80c0-8.84-7.16-16-16-16h-96c-8.84 0-16 7.16-16 16v48H192V80c0-8.84-7.16-16-16-16H80c-8.84 0-16 7.16-16 16v48H32c-17.67 0-32 14.33-32 32v256c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32V160c0-17.67-14.33-32-32-32zM192 264c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h112c4.42 0 8 3.58 8 8v16zm256 0c0 4.42-3.58 8-8 8h-40v40c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-40h-40c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h40v-40c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v40h40c4.42 0 8 3.58 8 8v16z"] };
  3297. var faCarCrash = { prefix: 'fas', iconName: 'car-crash', icon: [640, 512, [], "f5e1", "M143.25 220.81l-12.42 46.37c-3.01 11.25-3.63 22.89-2.41 34.39l-35.2 28.98c-6.57 5.41-16.31-.43-14.62-8.77l15.44-76.68c1.06-5.26-2.66-10.28-8-10.79l-77.86-7.55c-8.47-.82-11.23-11.83-4.14-16.54l65.15-43.3c4.46-2.97 5.38-9.15 1.98-13.29L21.46 93.22c-5.41-6.57.43-16.3 8.78-14.62l76.68 15.44c5.26 1.06 10.28-2.66 10.8-8l7.55-77.86c.82-8.48 11.83-11.23 16.55-4.14l43.3 65.14c2.97 4.46 9.15 5.38 13.29 1.98l60.4-49.71c6.57-5.41 16.3.43 14.62 8.77L262.1 86.38c-2.71 3.05-5.43 6.09-7.91 9.4l-32.15 42.97-10.71 14.32c-32.73 8.76-59.18 34.53-68.08 67.74zm494.57 132.51l-12.42 46.36c-3.13 11.68-9.38 21.61-17.55 29.36a66.876 66.876 0 0 1-8.76 7l-13.99 52.23c-1.14 4.27-3.1 8.1-5.65 11.38-7.67 9.84-20.74 14.68-33.54 11.25L515 502.62c-17.07-4.57-27.2-22.12-22.63-39.19l8.28-30.91-247.28-66.26-8.28 30.91c-4.57 17.07-22.12 27.2-39.19 22.63l-30.91-8.28c-12.8-3.43-21.7-14.16-23.42-26.51-.57-4.12-.35-8.42.79-12.68l13.99-52.23a66.62 66.62 0 0 1-4.09-10.45c-3.2-10.79-3.65-22.52-.52-34.2l12.42-46.37c5.31-19.8 19.36-34.83 36.89-42.21a64.336 64.336 0 0 1 18.49-4.72l18.13-24.23 32.15-42.97c3.45-4.61 7.19-8.9 11.2-12.84 8-7.89 17.03-14.44 26.74-19.51 4.86-2.54 9.89-4.71 15.05-6.49 10.33-3.58 21.19-5.63 32.24-6.04 11.05-.41 22.31.82 33.43 3.8l122.68 32.87c11.12 2.98 21.48 7.54 30.85 13.43a111.11 111.11 0 0 1 34.69 34.5c8.82 13.88 14.64 29.84 16.68 46.99l6.36 53.29 3.59 30.05a64.49 64.49 0 0 1 22.74 29.93c4.39 11.88 5.29 25.19 1.75 38.39zM255.58 234.34c-18.55-4.97-34.21 4.04-39.17 22.53-4.96 18.49 4.11 34.12 22.65 39.09 18.55 4.97 45.54 15.51 50.49-2.98 4.96-18.49-15.43-53.67-33.97-58.64zm290.61 28.17l-6.36-53.29c-.58-4.87-1.89-9.53-3.82-13.86-5.8-12.99-17.2-23.01-31.42-26.82l-122.68-32.87a48.008 48.008 0 0 0-50.86 17.61l-32.15 42.97 172 46.08 75.29 20.18zm18.49 54.65c-18.55-4.97-53.8 15.31-58.75 33.79-4.95 18.49 23.69 22.86 42.24 27.83 18.55 4.97 34.21-4.04 39.17-22.53 4.95-18.48-4.11-34.12-22.66-39.09z"] };
  3298. var faCarSide = { prefix: 'fas', iconName: 'car-side', icon: [640, 512, [], "f5e4", "M544 192h-16L419.22 56.02A64.025 64.025 0 0 0 369.24 32H155.33c-26.17 0-49.7 15.93-59.42 40.23L48 194.26C20.44 201.4 0 226.21 0 256v112c0 8.84 7.16 16 16 16h48c0 53.02 42.98 96 96 96s96-42.98 96-96h128c0 53.02 42.98 96 96 96s96-42.98 96-96h48c8.84 0 16-7.16 16-16v-80c0-53.02-42.98-96-96-96zM160 432c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48zm72-240H116.93l38.4-96H232v96zm48 0V96h89.24l76.8 96H280zm200 240c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48z"] };
  3299. var faCaretDown = { prefix: 'fas', iconName: 'caret-down', icon: [320, 512, [], "f0d7", "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"] };
  3300. var faCaretLeft = { prefix: 'fas', iconName: 'caret-left', icon: [192, 512, [], "f0d9", "M192 127.338v257.324c0 17.818-21.543 26.741-34.142 14.142L29.196 270.142c-7.81-7.81-7.81-20.474 0-28.284l128.662-128.662c12.599-12.6 34.142-3.676 34.142 14.142z"] };
  3301. var faCaretRight = { prefix: 'fas', iconName: 'caret-right', icon: [192, 512, [], "f0da", "M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z"] };
  3302. var faCaretSquareDown = { prefix: 'fas', iconName: 'caret-square-down', icon: [448, 512, [], "f150", "M448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zM92.5 220.5l123 123c4.7 4.7 12.3 4.7 17 0l123-123c7.6-7.6 2.2-20.5-8.5-20.5H101c-10.7 0-16.1 12.9-8.5 20.5z"] };
  3303. var faCaretSquareLeft = { prefix: 'fas', iconName: 'caret-square-left', icon: [448, 512, [], "f191", "M400 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zM259.515 124.485l-123.03 123.03c-4.686 4.686-4.686 12.284 0 16.971l123.029 123.029c7.56 7.56 20.485 2.206 20.485-8.485V132.971c.001-10.691-12.925-16.045-20.484-8.486z"] };
  3304. var faCaretSquareRight = { prefix: 'fas', iconName: 'caret-square-right', icon: [448, 512, [], "f152", "M48 32h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48zm140.485 355.515l123.029-123.029c4.686-4.686 4.686-12.284 0-16.971l-123.029-123.03c-7.56-7.56-20.485-2.206-20.485 8.485v246.059c0 10.691 12.926 16.045 20.485 8.486z"] };
  3305. var faCaretSquareUp = { prefix: 'fas', iconName: 'caret-square-up', icon: [448, 512, [], "f151", "M0 432V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48zm355.515-140.485l-123.03-123.03c-4.686-4.686-12.284-4.686-16.971 0L92.485 291.515c-7.56 7.56-2.206 20.485 8.485 20.485h246.059c10.691 0 16.045-12.926 8.486-20.485z"] };
  3306. var faCaretUp = { prefix: 'fas', iconName: 'caret-up', icon: [320, 512, [], "f0d8", "M288.662 352H31.338c-17.818 0-26.741-21.543-14.142-34.142l128.662-128.662c7.81-7.81 20.474-7.81 28.284 0l128.662 128.662c12.6 12.599 3.676 34.142-14.142 34.142z"] };
  3307. var faCartArrowDown = { prefix: 'fas', iconName: 'cart-arrow-down', icon: [576, 512, [], "f218", "M504.717 320H211.572l6.545 32h268.418c15.401 0 26.816 14.301 23.403 29.319l-5.517 24.276C523.112 414.668 536 433.828 536 456c0 31.202-25.519 56.444-56.824 55.994-29.823-.429-54.35-24.631-55.155-54.447-.44-16.287 6.085-31.049 16.803-41.548H231.176C241.553 426.165 248 440.326 248 456c0 31.813-26.528 57.431-58.67 55.938-28.54-1.325-51.751-24.385-53.251-52.917-1.158-22.034 10.436-41.455 28.051-51.586L93.883 64H24C10.745 64 0 53.255 0 40V24C0 10.745 10.745 0 24 0h102.529c11.401 0 21.228 8.021 23.513 19.19L159.208 64H551.99c15.401 0 26.816 14.301 23.403 29.319l-47.273 208C525.637 312.246 515.923 320 504.717 320zM403.029 192H360v-60c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v60h-43.029c-10.691 0-16.045 12.926-8.485 20.485l67.029 67.029c4.686 4.686 12.284 4.686 16.971 0l67.029-67.029c7.559-7.559 2.205-20.485-8.486-20.485z"] };
  3308. var faCartPlus = { prefix: 'fas', iconName: 'cart-plus', icon: [576, 512, [], "f217", "M504.717 320H211.572l6.545 32h268.418c15.401 0 26.816 14.301 23.403 29.319l-5.517 24.276C523.112 414.668 536 433.828 536 456c0 31.202-25.519 56.444-56.824 55.994-29.823-.429-54.35-24.631-55.155-54.447-.44-16.287 6.085-31.049 16.803-41.548H231.176C241.553 426.165 248 440.326 248 456c0 31.813-26.528 57.431-58.67 55.938-28.54-1.325-51.751-24.385-53.251-52.917-1.158-22.034 10.436-41.455 28.051-51.586L93.883 64H24C10.745 64 0 53.255 0 40V24C0 10.745 10.745 0 24 0h102.529c11.401 0 21.228 8.021 23.513 19.19L159.208 64H551.99c15.401 0 26.816 14.301 23.403 29.319l-47.273 208C525.637 312.246 515.923 320 504.717 320zM408 168h-48v-40c0-8.837-7.163-16-16-16h-16c-8.837 0-16 7.163-16 16v40h-48c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h48v40c0 8.837 7.163 16 16 16h16c8.837 0 16-7.163 16-16v-40h48c8.837 0 16-7.163 16-16v-16c0-8.837-7.163-16-16-16z"] };
  3309. var faCat = { prefix: 'fas', iconName: 'cat', icon: [512, 512, [], "f6be", "M290.59 192c-20.18 0-106.82 1.98-162.59 85.95V192c0-52.94-43.06-96-96-96-17.67 0-32 14.33-32 32s14.33 32 32 32c17.64 0 32 14.36 32 32v256c0 35.3 28.7 64 64 64h176c8.84 0 16-7.16 16-16v-16c0-17.67-14.33-32-32-32h-32l128-96v144c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V289.86c-10.29 2.67-20.89 4.54-32 4.54-61.81 0-113.52-44.05-125.41-102.4zM448 96h-64l-64-64v134.4c0 53.02 42.98 96 96 96s96-42.98 96-96V32l-64 64zm-72 80c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm80 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16z"] };
  3310. var faCertificate = { prefix: 'fas', iconName: 'certificate', icon: [512, 512, [], "f0a3", "M458.622 255.92l45.985-45.005c13.708-12.977 7.316-36.039-10.664-40.339l-62.65-15.99 17.661-62.015c4.991-17.838-11.829-34.663-29.661-29.671l-61.994 17.667-15.984-62.671C337.085.197 313.765-6.276 300.99 7.228L256 53.57 211.011 7.229c-12.63-13.351-36.047-7.234-40.325 10.668l-15.984 62.671-61.995-17.667C74.87 57.907 58.056 74.738 63.046 92.572l17.661 62.015-62.65 15.99C.069 174.878-6.31 197.944 7.392 210.915l45.985 45.005-45.985 45.004c-13.708 12.977-7.316 36.039 10.664 40.339l62.65 15.99-17.661 62.015c-4.991 17.838 11.829 34.663 29.661 29.671l61.994-17.667 15.984 62.671c4.439 18.575 27.696 24.018 40.325 10.668L256 458.61l44.989 46.001c12.5 13.488 35.987 7.486 40.325-10.668l15.984-62.671 61.994 17.667c17.836 4.994 34.651-11.837 29.661-29.671l-17.661-62.015 62.65-15.99c17.987-4.302 24.366-27.367 10.664-40.339l-45.984-45.004z"] };
  3311. var faChair = { prefix: 'fas', iconName: 'chair', icon: [448, 512, [], "f6c0", "M446.33 341.88l-10.67-32A31.996 31.996 0 0 0 405.3 288H42.69c-13.77 0-26 8.81-30.36 21.88l-10.67 32C-5.24 362.6 10.18 384 32.03 384H32v112c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h256v112c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h-.03c21.85 0 37.27-21.4 30.36-42.12zM112 128c0-29.48 16.2-54.99 40-68.87V256h48V48h48v208h48V59.13c23.8 13.88 40 39.39 40 68.87v128h48V128C384 57.31 326.69 0 256 0h-64C121.31 0 64 57.31 64 128v128h48V128z"] };
  3312. var faChalkboard = { prefix: 'fas', iconName: 'chalkboard', icon: [640, 512, [], "f51b", "M96 64h448v352h64V40c0-22.06-17.94-40-40-40H72C49.94 0 32 17.94 32 40v376h64V64zm528 384H480v-64H288v64H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  3313. var faChalkboardTeacher = { prefix: 'fas', iconName: 'chalkboard-teacher', icon: [640, 512, [], "f51c", "M208 352c-2.39 0-4.78.35-7.06 1.09C187.98 357.3 174.35 360 160 360c-14.35 0-27.98-2.7-40.95-6.91-2.28-.74-4.66-1.09-7.05-1.09C49.94 352-.33 402.48 0 464.62.14 490.88 21.73 512 48 512h224c26.27 0 47.86-21.12 48-47.38.33-62.14-49.94-112.62-112-112.62zm-48-32c53.02 0 96-42.98 96-96s-42.98-96-96-96-96 42.98-96 96 42.98 96 96 96zM592 0H208c-26.47 0-48 22.25-48 49.59V96c23.42 0 45.1 6.78 64 17.8V64h352v288h-64v-64H384v64h-76.24c19.1 16.69 33.12 38.73 39.69 64H592c26.47 0 48-22.25 48-49.59V49.59C640 22.25 618.47 0 592 0z"] };
  3314. var faChargingStation = { prefix: 'fas', iconName: 'charging-station', icon: [576, 512, [], "f5e7", "M336 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h320c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm208-320V80c0-8.84-7.16-16-16-16s-16 7.16-16 16v48h-32V80c0-8.84-7.16-16-16-16s-16 7.16-16 16v48h-16c-8.84 0-16 7.16-16 16v32c0 35.76 23.62 65.69 56 75.93v118.49c0 13.95-9.5 26.92-23.26 29.19C431.22 402.5 416 388.99 416 372v-28c0-48.6-39.4-88-88-88h-8V64c0-35.35-28.65-64-64-64H96C60.65 0 32 28.65 32 64v352h288V304h8c22.09 0 40 17.91 40 40v24.61c0 39.67 28.92 75.16 68.41 79.01C481.71 452.05 520 416.41 520 372V251.93c32.38-10.24 56-40.17 56-75.93v-32c0-8.84-7.16-16-16-16h-16zm-283.91 47.76l-93.7 139c-2.2 3.33-6.21 5.24-10.39 5.24-7.67 0-13.47-6.28-11.67-12.92L167.35 224H108c-7.25 0-12.85-5.59-11.89-11.89l16-107C112.9 99.9 117.98 96 124 96h68c7.88 0 13.62 6.54 11.6 13.21L192 160h57.7c9.24 0 15.01 8.78 10.39 15.76z"] };
  3315. var faChartArea = { prefix: 'fas', iconName: 'chart-area', icon: [512, 512, [], "f1fe", "M500 384c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v308h436zM372.7 159.5L288 216l-85.3-113.7c-5.1-6.8-15.5-6.3-19.9 1L96 248v104h384l-89.9-187.8c-3.2-6.5-11.4-8.7-17.4-4.7z"] };
  3316. var faChartBar = { prefix: 'fas', iconName: 'chart-bar', icon: [512, 512, [], "f080", "M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  3317. var faChartLine = { prefix: 'fas', iconName: 'chart-line', icon: [512, 512, [], "f201", "M496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM464 96H345.94c-21.38 0-32.09 25.85-16.97 40.97l32.4 32.4L288 242.75l-73.37-73.37c-12.5-12.5-32.76-12.5-45.25 0l-68.69 68.69c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L192 237.25l73.37 73.37c12.5 12.5 32.76 12.5 45.25 0l96-96 32.4 32.4c15.12 15.12 40.97 4.41 40.97-16.97V112c.01-8.84-7.15-16-15.99-16z"] };
  3318. var faChartPie = { prefix: 'fas', iconName: 'chart-pie', icon: [544, 512, [], "f200", "M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z"] };
  3319. var faCheck = { prefix: 'fas', iconName: 'check', icon: [512, 512, [], "f00c", "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"] };
  3320. var faCheckCircle = { prefix: 'fas', iconName: 'check-circle', icon: [512, 512, [], "f058", "M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"] };
  3321. var faCheckDouble = { prefix: 'fas', iconName: 'check-double', icon: [512, 512, [], "f560", "M504.5 171.95l-36.2-36.41c-10-10.05-26.21-10.05-36.2 0L192 377.02 79.9 264.28c-10-10.06-26.21-10.06-36.2 0L7.5 300.69c-10 10.05-10 26.36 0 36.41l166.4 167.36c10 10.06 26.21 10.06 36.2 0l294.4-296.09c10-10.06 10-26.36 0-36.42zM166.57 282.71c6.84 7.02 18.18 7.02 25.21.18L403.85 72.62c7.02-6.84 7.02-18.18.18-25.21L362.08 5.29c-6.84-7.02-18.18-7.02-25.21-.18L179.71 161.19l-68.23-68.77c-6.84-7.02-18.18-7.02-25.2-.18l-42.13 41.77c-7.02 6.84-7.02 18.18-.18 25.2l122.6 123.5z"] };
  3322. var faCheckSquare = { prefix: 'fas', iconName: 'check-square', icon: [448, 512, [], "f14a", "M400 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zm-204.686-98.059l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.248-16.379-6.249-22.628 0L184 302.745l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.25 16.379 6.25 22.628.001z"] };
  3323. var faChess = { prefix: 'fas', iconName: 'chess', icon: [512, 512, [], "f439", "M199.821 217.633a6 6 0 0 1 6 6l-.001 20.766a6 6 0 0 1-6 6h-25.805c0 31.715-2.153 96.201 17.398 153.229H64.597C84.54 345.452 82.02 279.245 82.02 250.399H56.183a6 6 0 0 1-6-6l.002-20.766a6 6 0 0 1 6-6h143.636zM41.554 115.088l34.58 95.071h103.734l34.572-95.072c2.846-7.826-2.95-16.101-11.278-16.101H152v-30.22h21.57a6 6 0 0 0 6-6V40.383a6 6 0 0 0-6-6h-28.367V6a6 6 0 0 0-6-6H116.82a6 6 0 0 0-6 6v28.383H82.421a6 6 0 0 0-6 6v22.383a6 6 0 0 0 6 6H104v30.219H52.831c-8.328.001-14.124 8.276-11.277 16.103zM222.678 445.17v-28.067a6 6 0 0 0-6-6H39.322a6 6 0 0 0-6 6v28.067l-22.148 14.164a6 6 0 0 0-2.767 5.055V506a6 6 0 0 0 6 6h227.187a6 6 0 0 0 6-6v-41.612a6 6 0 0 0-2.767-5.055l-22.149-14.163zm90.578-144.225l24.88 16.963c.09 18.124-.167 63.904-11.905 114.522h147.526c-11.713-50.475-11.969-96.324-11.882-114.537l24.859-16.949a3.856 3.856 0 0 0 1.684-3.187v-69.901a3.857 3.857 0 0 0-3.857-3.857h-27.655a3.857 3.857 0 0 0-3.857 3.857v31.514h-22.737v-31.514a3.857 3.857 0 0 0-3.858-3.857h-52.918a3.857 3.857 0 0 0-3.857 3.857v31.514h-22.737v-31.514a3.857 3.857 0 0 0-3.857-3.857H315.43a3.857 3.857 0 0 0-3.857 3.857v69.901a3.855 3.855 0 0 0 1.683 3.188zm71.585 51.906c0-8.372 6.787-15.158 15.159-15.158s15.158 6.787 15.158 15.158v30.318h-30.317v-30.318zM504.62 470.059l-13.664-10.639v-15.552a3.857 3.857 0 0 0-3.857-3.857H312.915a3.857 3.857 0 0 0-3.857 3.857v15.552l-13.677 10.639a3.857 3.857 0 0 0-1.488 3.044v35.039a3.857 3.857 0 0 0 3.857 3.857h204.5a3.857 3.857 0 0 0 3.857-3.857v-35.04a3.859 3.859 0 0 0-1.487-3.043z"] };
  3324. var faChessBishop = { prefix: 'fas', iconName: 'chess-bishop', icon: [320, 512, [], "f43a", "M123.158 77.881C107.369 72.53 96 57.597 96 40c0-22.091 17.909-40 40-40h47.796c22.091 0 40 17.909 40 40 0 17.541-11.295 32.434-27.005 37.829 23.993 16.657 48.577 46.839 68.703 82.05L144.929 280.443a6 6 0 0 0 0 8.485l14.142 14.142a6 6 0 0 0 8.485 0L280.9 189.726c17.758 38.297 29.371 79.443 29.371 114.273 0 53.786-22.897 75.788-58.446 86.033V448H68.174v-57.97C32.631 379.784 9.739 357.781 9.739 304c0-78.029 58.281-187.766 113.419-226.119zM320 500v-24c0-6.627-5.373-12-12-12H12c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h296c6.627 0 12-5.373 12-12z"] };
  3325. var faChessBoard = { prefix: 'fas', iconName: 'chess-board', icon: [512, 512, [], "f43c", "M256 256v64h-64v-64h64zm0-256h-64v64h64V0zm0 256h64v-64h-64v64zM384 0h-64v64h64V0zm0 512h64v-64h-64v64zm128-64v-64h-64v64h64zm-384 64h64v-64h-64v64zm0-512H64v64h64V0zm384 192v-64h-64v64h64zm0 128v-64h-64v64h64zM0 512h64v-64H0v64zM0 64v64h64V64H0zm0 128v64h64v-64H0zm0 128v64h64v-64H0zm256 192h64v-64h-64v64zm-64-128v64h64v-64h-64zm64-192v-64h-64v64h64zM64 384v64h64v-64H64zm64-128H64v64h64v-64zm256 128h64v-64h-64v64zM512 0h-64v64h64V0zM384 256h64v-64h-64v64zm0-192v64h64V64h-64zm-64 320v64h64v-64h-64zm-192-64v64h64v-64h-64zm128 0v64h64v-64h-64zm-64-128h-64v64h64v-64zm-64-64H64v64h64v-64zm192 192h64v-64h-64v64zM192 128V64h-64v64h64zm128 0V64h-64v64h64zm0 64h64v-64h-64v64z"] };
  3326. var faChessKing = { prefix: 'fas', iconName: 'chess-king', icon: [448, 512, [], "f43f", "M416 476v24c0 6.627-5.373 12-12 12H44c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12zm-8.033-324H248v-48h50a6 6 0 0 0 6-6V62a6 6 0 0 0-6-6h-50V6a6 6 0 0 0-6-6h-36a6 6 0 0 0-6 6v50h-50a6 6 0 0 0-6 6v36a6 6 0 0 0 6 6h50v48H40.033c-27.574 0-46.879 27.244-37.738 53.259L87.582 448h272.836l85.287-242.741C454.846 179.244 435.541 152 407.967 152z"] };
  3327. var faChessKnight = { prefix: 'fas', iconName: 'chess-knight', icon: [384, 512, [], "f441", "M352 224v224H32v-46.557c0-30.302 17.12-58.003 44.223-71.554l57.243-28.622A48 48 0 0 0 160 258.334V208l-22.127 11.063a23.996 23.996 0 0 0-12.55 15.645l-11.835 47.338a12 12 0 0 1-7.185 8.231l-29.601 11.84a11.998 11.998 0 0 1-9.33-.176L7.126 275.167A12 12 0 0 1 0 264.201v-158.26c0-6.365 2.529-12.47 7.03-16.971L16 80 1.789 51.578A16.937 16.937 0 0 1 0 44c0-6.627 5.373-12 12-12h148c106.039 0 192 85.961 192 192zm20 240H12c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h360c6.627 0 12-5.373 12-12v-24c0-6.627-5.373-12-12-12zM52 128c-11.046 0-20 8.954-20 20s8.954 20 20 20 20-8.954 20-20-8.954-20-20-20z"] };
  3328. var faChessPawn = { prefix: 'fas', iconName: 'chess-pawn', icon: [320, 512, [], "f443", "M264 448H56s60-42.743 60-176H84c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h40.209C95.721 210.56 76 181.588 76 148c0-46.392 37.608-84 84-84s84 37.608 84 84c0 33.588-19.721 62.56-48.209 76H236c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12h-32c0 133.257 60 176 60 176zm28 16H28c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h264c6.627 0 12-5.373 12-12v-24c0-6.627-5.373-12-12-12z"] };
  3329. var faChessQueen = { prefix: 'fas', iconName: 'chess-queen', icon: [512, 512, [], "f445", "M436 512H76c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12zM255.579 0c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zm204.568 154.634c-5.768-3.045-12.916-.932-16.082 4.77-8.616 15.516-22.747 37.801-44.065 37.801-28.714 0-30.625-19.804-31.686-57.542-.183-6.492-5.501-11.664-11.995-11.664h-41.006c-5.175 0-9.754 3.328-11.388 8.238-8.89 26.709-26.073 40.992-47.925 40.992s-39.034-14.283-47.925-40.992c-1.634-4.91-6.213-8.238-11.388-8.238h-41.005c-6.495 0-11.813 5.174-11.995 11.667-1.052 37.642-2.934 57.539-31.688 57.539-20.691 0-33.817-20.224-44.425-38.025-3.266-5.48-10.258-7.431-15.899-4.453l-39.179 20.679a12 12 0 0 0-5.51 15.145L112 448h288l105.014-257.448a12 12 0 0 0-5.51-15.145l-39.357-20.773z"] };
  3330. var faChessRook = { prefix: 'fas', iconName: 'chess-rook', icon: [384, 512, [], "f447", "M81.241 215.027C80.957 258.92 77.411 348.076 48 448h287.982c-29.4-99.604-32.936-188.912-33.221-232.975l45.418-42.312a11.998 11.998 0 0 0 3.82-8.78V44c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v44h-48V44c0-6.627-5.373-12-12-12h-72c-6.627 0-12 5.373-12 12v44H96V44c0-6.627-5.373-12-12-12H44c-6.627 0-12 5.373-12 12v119.932c0 3.33 1.384 6.51 3.82 8.78l45.421 42.315zM160 256c0-17.673 14.327-32 32-32 17.673 0 32 14.327 32 32v64.004h-64V256zm224 220v24c0 6.627-5.373 12-12 12H12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12z"] };
  3331. var faChevronCircleDown = { prefix: 'fas', iconName: 'chevron-circle-down', icon: [512, 512, [], "f13a", "M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zM273 369.9l135.5-135.5c9.4-9.4 9.4-24.6 0-33.9l-17-17c-9.4-9.4-24.6-9.4-33.9 0L256 285.1 154.4 183.5c-9.4-9.4-24.6-9.4-33.9 0l-17 17c-9.4 9.4-9.4 24.6 0 33.9L239 369.9c9.4 9.4 24.6 9.4 34 0z"] };
  3332. var faChevronCircleLeft = { prefix: 'fas', iconName: 'chevron-circle-left', icon: [512, 512, [], "f137", "M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zM142.1 273l135.5 135.5c9.4 9.4 24.6 9.4 33.9 0l17-17c9.4-9.4 9.4-24.6 0-33.9L226.9 256l101.6-101.6c9.4-9.4 9.4-24.6 0-33.9l-17-17c-9.4-9.4-24.6-9.4-33.9 0L142.1 239c-9.4 9.4-9.4 24.6 0 34z"] };
  3333. var faChevronCircleRight = { prefix: 'fas', iconName: 'chevron-circle-right', icon: [512, 512, [], "f138", "M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm113.9 231L234.4 103.5c-9.4-9.4-24.6-9.4-33.9 0l-17 17c-9.4 9.4-9.4 24.6 0 33.9L285.1 256 183.5 357.6c-9.4 9.4-9.4 24.6 0 33.9l17 17c9.4 9.4 24.6 9.4 33.9 0L369.9 273c9.4-9.4 9.4-24.6 0-34z"] };
  3334. var faChevronCircleUp = { prefix: 'fas', iconName: 'chevron-circle-up', icon: [512, 512, [], "f139", "M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm231-113.9L103.5 277.6c-9.4 9.4-9.4 24.6 0 33.9l17 17c9.4 9.4 24.6 9.4 33.9 0L256 226.9l101.6 101.6c9.4 9.4 24.6 9.4 33.9 0l17-17c9.4-9.4 9.4-24.6 0-33.9L273 142.1c-9.4-9.4-24.6-9.4-34 0z"] };
  3335. var faChevronDown = { prefix: 'fas', iconName: 'chevron-down', icon: [448, 512, [], "f078", "M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"] };
  3336. var faChevronLeft = { prefix: 'fas', iconName: 'chevron-left', icon: [320, 512, [], "f053", "M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"] };
  3337. var faChevronRight = { prefix: 'fas', iconName: 'chevron-right', icon: [320, 512, [], "f054", "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"] };
  3338. var faChevronUp = { prefix: 'fas', iconName: 'chevron-up', icon: [448, 512, [], "f077", "M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"] };
  3339. var faChild = { prefix: 'fas', iconName: 'child', icon: [384, 512, [], "f1ae", "M120 72c0-39.765 32.235-72 72-72s72 32.235 72 72c0 39.764-32.235 72-72 72s-72-32.236-72-72zm254.627 1.373c-12.496-12.497-32.758-12.497-45.254 0L242.745 160H141.254L54.627 73.373c-12.496-12.497-32.758-12.497-45.254 0-12.497 12.497-12.497 32.758 0 45.255L104 213.254V480c0 17.673 14.327 32 32 32h16c17.673 0 32-14.327 32-32V368h16v112c0 17.673 14.327 32 32 32h16c17.673 0 32-14.327 32-32V213.254l94.627-94.627c12.497-12.497 12.497-32.757 0-45.254z"] };
  3340. var faChurch = { prefix: 'fas', iconName: 'church', icon: [640, 512, [], "f51d", "M464.46 246.68L352 179.2V128h48c8.84 0 16-7.16 16-16V80c0-8.84-7.16-16-16-16h-48V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v48h-48c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h48v51.2l-112.46 67.48A31.997 31.997 0 0 0 160 274.12V512h96v-96c0-35.35 28.65-64 64-64s64 28.65 64 64v96h96V274.12c0-11.24-5.9-21.66-15.54-27.44zM0 395.96V496c0 8.84 7.16 16 16 16h112V320L19.39 366.54A32.024 32.024 0 0 0 0 395.96zm620.61-29.42L512 320v192h112c8.84 0 16-7.16 16-16V395.96c0-12.8-7.63-24.37-19.39-29.42z"] };
  3341. var faCircle = { prefix: 'fas', iconName: 'circle', icon: [512, 512, [], "f111", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"] };
  3342. var faCircleNotch = { prefix: 'fas', iconName: 'circle-notch', icon: [512, 512, [], "f1ce", "M288 39.056v16.659c0 10.804 7.281 20.159 17.686 23.066C383.204 100.434 440 171.518 440 256c0 101.689-82.295 184-184 184-101.689 0-184-82.295-184-184 0-84.47 56.786-155.564 134.312-177.219C216.719 75.874 224 66.517 224 55.712V39.064c0-15.709-14.834-27.153-30.046-23.234C86.603 43.482 7.394 141.206 8.003 257.332c.72 137.052 111.477 246.956 248.531 246.667C393.255 503.711 504 392.788 504 256c0-115.633-79.14-212.779-186.211-240.236C302.678 11.889 288 23.456 288 39.056z"] };
  3343. var faCity = { prefix: 'fas', iconName: 'city', icon: [640, 512, [], "f64f", "M616 192H480V24c0-13.26-10.74-24-24-24H312c-13.26 0-24 10.74-24 24v72h-64V16c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v80h-64V16c0-8.84-7.16-16-16-16H80c-8.84 0-16 7.16-16 16v80H24c-13.26 0-24 10.74-24 24v360c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V216c0-13.26-10.75-24-24-24zM128 404c0 6.63-5.37 12-12 12H76c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12H76c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12H76c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm128 192c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm160 96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12V76c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm160 288c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40z"] };
  3344. var faClipboard = { prefix: 'fas', iconName: 'clipboard', icon: [384, 512, [], "f328", "M384 112v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h80c0-35.29 28.71-64 64-64s64 28.71 64 64h80c26.51 0 48 21.49 48 48zM192 40c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24m96 114v-20a6 6 0 0 0-6-6H102a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6h180a6 6 0 0 0 6-6z"] };
  3345. var faClipboardCheck = { prefix: 'fas', iconName: 'clipboard-check', icon: [384, 512, [], "f46c", "M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 40c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm121.2 231.8l-143 141.8c-4.7 4.7-12.3 4.6-17-.1l-82.6-83.3c-4.7-4.7-4.6-12.3.1-17L99.1 285c4.7-4.7 12.3-4.6 17 .1l46 46.4 106-105.2c4.7-4.7 12.3-4.6 17 .1l28.2 28.4c4.7 4.8 4.6 12.3-.1 17z"] };
  3346. var faClipboardList = { prefix: 'fas', iconName: 'clipboard-list', icon: [384, 512, [], "f46d", "M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM96 424c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm0-96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm0-96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm96-192c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm128 368c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16z"] };
  3347. var faClock = { prefix: 'fas', iconName: 'clock', icon: [512, 512, [], "f017", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm57.1 350.1L224.9 294c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12v137.7l63.5 46.2c5.4 3.9 6.5 11.4 2.6 16.8l-28.2 38.8c-3.9 5.3-11.4 6.5-16.8 2.6z"] };
  3348. var faClone = { prefix: 'fas', iconName: 'clone', icon: [512, 512, [], "f24d", "M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z"] };
  3349. var faClosedCaptioning = { prefix: 'fas', iconName: 'closed-captioning', icon: [512, 512, [], "f20a", "M464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM218.1 287.7c2.8-2.5 7.1-2.1 9.2.9l19.5 27.7c1.7 2.4 1.5 5.6-.5 7.7-53.6 56.8-172.8 32.1-172.8-67.9 0-97.3 121.7-119.5 172.5-70.1 2.1 2 2.5 3.2 1 5.7l-17.5 30.5c-1.9 3.1-6.2 4-9.1 1.7-40.8-32-94.6-14.9-94.6 31.2.1 48 51.1 70.5 92.3 32.6zm190.4 0c2.8-2.5 7.1-2.1 9.2.9l19.5 27.7c1.7 2.4 1.5 5.6-.5 7.7-53.5 56.9-172.7 32.1-172.7-67.9 0-97.3 121.7-119.5 172.5-70.1 2.1 2 2.5 3.2 1 5.7L420 222.2c-1.9 3.1-6.2 4-9.1 1.7-40.8-32-94.6-14.9-94.6 31.2 0 48 51 70.5 92.2 32.6z"] };
  3350. var faCloud = { prefix: 'fas', iconName: 'cloud', icon: [640, 512, [], "f0c2", "M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4z"] };
  3351. var faCloudDownloadAlt = { prefix: 'fas', iconName: 'cloud-download-alt', icon: [640, 512, [], "f381", "M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zm-132.9 88.7L299.3 420.7c-6.2 6.2-16.4 6.2-22.6 0L171.3 315.3c-10.1-10.1-2.9-27.3 11.3-27.3H248V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v112h65.4c14.2 0 21.4 17.2 11.3 27.3z"] };
  3352. var faCloudMoon = { prefix: 'fas', iconName: 'cloud-moon', icon: [640, 512, [], "f6c3", "M342.75 352.68c5.74-9.59 9.25-20.69 9.25-32.68 0-35.35-28.65-64-64-64-17.21 0-32.77 6.88-44.27 17.93C227.39 244.3 196.23 224 160 224c-53.02 0-96 42.98-96 96 0 1.95.46 3.78.57 5.7C27.08 338.77 0 374.05 0 416c0 53.02 42.98 96 96 96h240c44.18 0 80-35.82 80-80 0-41.87-32.28-75.84-73.25-79.32zm285.26-29.42c-104.23 19.22-199.95-58.16-199.95-160.03 0-58.68 32.45-112.64 85.18-141.7 8.13-4.48 6.08-16.41-3.15-18.06C497.14 1.17 484 0 470.84 0 352.25 0 256 93.04 256 208c0 7.26.4 14.44 1.15 21.51 9.87-3.38 20.18-5.51 30.85-5.51 52.94 0 96 43.06 96 96 0 3.59-.21 7.17-.63 10.73 33.49 15.39 57.47 46.55 63.24 83.86 7.96.87 16.03 1.41 24.23 1.41 66.26 0 126.79-29.19 166.88-77.02 5.93-7.07-.54-17.41-9.71-15.72z"] };
  3353. var faCloudSun = { prefix: 'fas', iconName: 'cloud-sun', icon: [640, 512, [], "f6c4", "M342.75 352.68c5.74-9.59 9.25-20.69 9.25-32.68 0-35.35-28.65-64-64-64-17.21 0-32.77 6.88-44.27 17.93C227.39 244.31 196.23 224 160 224c-53.02 0-96 42.98-96 96 0 1.95.46 3.78.57 5.7C27.08 338.77 0 374.05 0 416c0 53.02 42.98 96 96 96h240c44.18 0 80-35.82 80-80 0-41.87-32.28-75.84-73.25-79.32zm243.19-99.8c-7.85-6.79-7.85-18.97 0-25.76L633.41 186c12.76-11.05 5.84-32.02-11-33.3l-61.59-4.67c-10.19-.78-17.28-10.49-14.9-20.43l14.95-62.48c3.89-16.26-13.96-29.02-28.08-20.07l-52.51 33.26c-8.61 5.46-20.06 1.75-23.85-7.72l-23.47-58.74c-6.32-15.81-28.19-15.81-34.51 0l-23.38 58.49c-3.83 9.59-15.44 13.35-24.17 7.82l-52.29-33.12c-14.13-8.95-31.98 3.81-28.08 20.07l14.95 62.48c2.38 9.94-4.7 19.65-14.9 20.43l-61.15 4.64c-17 1.29-23.99 22.46-11.1 33.62l31.23 27.05c7.82 5.17 15.21 11.01 21.78 17.84 11.42-4.71 23.73-7.18 36.37-7.18 5.97 0 11.77.71 17.44 1.76 7.09-54.98 53.68-97.76 110.56-97.76 61.76 0 112 50.24 112 112s-50.24 112-112 112c-.95 0-1.83-.26-2.77-.28 13.83 13.2 24.61 29.47 30.16 48.28h27.02c6.25 0 12.37 1.83 17.6 5.27l45.08 29.68c14.19 8.99 31.89-4.17 27.92-20.76l-14.69-61.38c-2.43-10.16 4.8-20.08 15.22-20.87l61.16-4.64c16.84-1.28 23.76-22.25 11-33.3l-47.47-41.11zm-202.66 59.94C393.3 317.34 404.32 320 416 320c44.11 0 80-35.89 80-80s-35.89-80-80-80c-43.25 0-78.39 34.56-79.75 77.49 26.44 15.53 44.59 43.13 47.03 75.33z"] };
  3354. var faCloudUploadAlt = { prefix: 'fas', iconName: 'cloud-upload-alt', icon: [640, 512, [], "f382", "M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zM393.4 288H328v112c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V288h-65.4c-14.3 0-21.4-17.2-11.3-27.3l105.4-105.4c6.2-6.2 16.4-6.2 22.6 0l105.4 105.4c10.1 10.1 2.9 27.3-11.3 27.3z"] };
  3355. var faCocktail = { prefix: 'fas', iconName: 'cocktail', icon: [576, 512, [], "f561", "M296 464h-56V338.78l168.74-168.73c15.52-15.52 4.53-42.05-17.42-42.05H24.68c-21.95 0-32.94 26.53-17.42 42.05L176 338.78V464h-56c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h240c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40zM432 0c-62.61 0-115.35 40.2-135.18 96h52.54c16.65-28.55 47.27-48 82.64-48 52.93 0 96 43.06 96 96s-43.07 96-96 96c-14.04 0-27.29-3.2-39.32-8.64l-35.26 35.26C379.23 279.92 404.59 288 432 288c79.53 0 144-64.47 144-144S511.53 0 432 0z"] };
  3356. var faCode = { prefix: 'fas', iconName: 'code', icon: [640, 512, [], "f121", "M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"] };
  3357. var faCodeBranch = { prefix: 'fas', iconName: 'code-branch', icon: [384, 512, [], "f126", "M384 144c0-44.2-35.8-80-80-80s-80 35.8-80 80c0 36.4 24.3 67.1 57.5 76.8-.6 16.1-4.2 28.5-11 36.9-15.4 19.2-49.3 22.4-85.2 25.7-28.2 2.6-57.4 5.4-81.3 16.9v-144c32.5-10.2 56-40.5 56-76.3 0-44.2-35.8-80-80-80S0 35.8 0 80c0 35.8 23.5 66.1 56 76.3v199.3C23.5 365.9 0 396.2 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-34-21.2-63.1-51.2-74.6 3.1-5.2 7.8-9.8 14.9-13.4 16.2-8.2 40.4-10.4 66.1-12.8 42.2-3.9 90-8.4 118.2-43.4 14-17.4 21.1-39.8 21.6-67.9 31.6-10.8 54.4-40.7 54.4-75.9zM80 64c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm0 384c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm224-320c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16z"] };
  3358. var faCoffee = { prefix: 'fas', iconName: 'coffee', icon: [640, 512, [], "f0f4", "M192 384h192c53 0 96-43 96-96h32c70.6 0 128-57.4 128-128S582.6 32 512 32H120c-13.3 0-24 10.7-24 24v232c0 53 43 96 96 96zM512 96c35.3 0 64 28.7 64 64s-28.7 64-64 64h-32V96h32zm47.7 384H48.3c-47.6 0-61-64-36-64h583.3c25 0 11.8 64-35.9 64z"] };
  3359. var faCog = { prefix: 'fas', iconName: 'cog', icon: [512, 512, [], "f013", "M444.788 291.1l42.616 24.599c4.867 2.809 7.126 8.618 5.459 13.985-11.07 35.642-29.97 67.842-54.689 94.586a12.016 12.016 0 0 1-14.832 2.254l-42.584-24.595a191.577 191.577 0 0 1-60.759 35.13v49.182a12.01 12.01 0 0 1-9.377 11.718c-34.956 7.85-72.499 8.256-109.219.007-5.49-1.233-9.403-6.096-9.403-11.723v-49.184a191.555 191.555 0 0 1-60.759-35.13l-42.584 24.595a12.016 12.016 0 0 1-14.832-2.254c-24.718-26.744-43.619-58.944-54.689-94.586-1.667-5.366.592-11.175 5.459-13.985L67.212 291.1a193.48 193.48 0 0 1 0-70.199l-42.616-24.599c-4.867-2.809-7.126-8.618-5.459-13.985 11.07-35.642 29.97-67.842 54.689-94.586a12.016 12.016 0 0 1 14.832-2.254l42.584 24.595a191.577 191.577 0 0 1 60.759-35.13V25.759a12.01 12.01 0 0 1 9.377-11.718c34.956-7.85 72.499-8.256 109.219-.007 5.49 1.233 9.403 6.096 9.403 11.723v49.184a191.555 191.555 0 0 1 60.759 35.13l42.584-24.595a12.016 12.016 0 0 1 14.832 2.254c24.718 26.744 43.619 58.944 54.689 94.586 1.667 5.366-.592 11.175-5.459 13.985L444.788 220.9a193.485 193.485 0 0 1 0 70.2zM336 256c0-44.112-35.888-80-80-80s-80 35.888-80 80 35.888 80 80 80 80-35.888 80-80z"] };
  3360. var faCogs = { prefix: 'fas', iconName: 'cogs', icon: [640, 512, [], "f085", "M512.1 191l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0L552 6.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zm-10.5-58.8c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.7-82.4 14.3-52.8 52.8zM386.3 286.1l33.7 16.8c10.1 5.8 14.5 18.1 10.5 29.1-8.9 24.2-26.4 46.4-42.6 65.8-7.4 8.9-20.2 11.1-30.3 5.3l-29.1-16.8c-16 13.7-34.6 24.6-54.9 31.7v33.6c0 11.6-8.3 21.6-19.7 23.6-24.6 4.2-50.4 4.4-75.9 0-11.5-2-20-11.9-20-23.6V418c-20.3-7.2-38.9-18-54.9-31.7L74 403c-10 5.8-22.9 3.6-30.3-5.3-16.2-19.4-33.3-41.6-42.2-65.7-4-10.9.4-23.2 10.5-29.1l33.3-16.8c-3.9-20.9-3.9-42.4 0-63.4L12 205.8c-10.1-5.8-14.6-18.1-10.5-29 8.9-24.2 26-46.4 42.2-65.8 7.4-8.9 20.2-11.1 30.3-5.3l29.1 16.8c16-13.7 34.6-24.6 54.9-31.7V57.1c0-11.5 8.2-21.5 19.6-23.5 24.6-4.2 50.5-4.4 76-.1 11.5 2 20 11.9 20 23.6v33.6c20.3 7.2 38.9 18 54.9 31.7l29.1-16.8c10-5.8 22.9-3.6 30.3 5.3 16.2 19.4 33.2 41.6 42.1 65.8 4 10.9.1 23.2-10 29.1l-33.7 16.8c3.9 21 3.9 42.5 0 63.5zm-117.6 21.1c59.2-77-28.7-164.9-105.7-105.7-59.2 77 28.7 164.9 105.7 105.7zm243.4 182.7l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0l8.2-14.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zM501.6 431c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.6-82.4 14.3-52.8 52.8z"] };
  3361. var faCoins = { prefix: 'fas', iconName: 'coins', icon: [512, 512, [], "f51e", "M0 405.3V448c0 35.3 86 64 192 64s192-28.7 192-64v-42.7C342.7 434.4 267.2 448 192 448S41.3 434.4 0 405.3zM320 128c106 0 192-28.7 192-64S426 0 320 0 128 28.7 128 64s86 64 192 64zM0 300.4V352c0 35.3 86 64 192 64s192-28.7 192-64v-51.6c-41.3 34-116.9 51.6-192 51.6S41.3 334.4 0 300.4zm416 11c57.3-11.1 96-31.7 96-55.4v-42.7c-23.2 16.4-57.3 27.6-96 34.5v63.6zM192 160C86 160 0 195.8 0 240s86 80 192 80 192-35.8 192-80-86-80-192-80zm219.3 56.3c60-10.8 100.7-32 100.7-56.3v-42.7c-35.5 25.1-96.5 38.6-160.7 41.8 29.5 14.3 51.2 33.5 60 57.2z"] };
  3362. var faColumns = { prefix: 'fas', iconName: 'columns', icon: [512, 512, [], "f0db", "M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64V160h160v256zm224 0H288V160h160v256z"] };
  3363. var faComment = { prefix: 'fas', iconName: 'comment', icon: [512, 512, [], "f075", "M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32z"] };
  3364. var faCommentAlt = { prefix: 'fas', iconName: 'comment-alt', icon: [512, 512, [], "f27a", "M448 0H64C28.7 0 0 28.7 0 64v288c0 35.3 28.7 64 64 64h96v84c0 9.8 11.2 15.5 19.1 9.7L304 416h144c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64z"] };
  3365. var faCommentDollar = { prefix: 'fas', iconName: 'comment-dollar', icon: [512, 512, [], "f651", "M256 32C114.62 32 0 125.12 0 240c0 49.56 21.41 95.01 57.02 130.74C44.46 421.05 2.7 465.97 2.2 466.5A7.995 7.995 0 0 0 8 480c66.26 0 115.99-31.75 140.6-51.38C181.29 440.93 217.59 448 256 448c141.38 0 256-93.12 256-208S397.38 32 256 32zm24 302.44V352c0 8.84-7.16 16-16 16h-16c-8.84 0-16-7.16-16-16v-17.73c-11.42-1.35-22.28-5.19-31.78-11.46-6.22-4.11-6.82-13.11-1.55-18.38l17.52-17.52c3.74-3.74 9.31-4.24 14.11-2.03 3.18 1.46 6.66 2.22 10.26 2.22h32.78c4.66 0 8.44-3.78 8.44-8.42 0-3.75-2.52-7.08-6.12-8.11l-50.07-14.3c-22.25-6.35-40.01-24.71-42.91-47.67-4.05-32.07 19.03-59.43 49.32-63.05V128c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v17.73c11.42 1.35 22.28 5.19 31.78 11.46 6.22 4.11 6.82 13.11 1.55 18.38l-17.52 17.52c-3.74 3.74-9.31 4.24-14.11 2.03a24.516 24.516 0 0 0-10.26-2.22h-32.78c-4.66 0-8.44 3.78-8.44 8.42 0 3.75 2.52 7.08 6.12 8.11l50.07 14.3c22.25 6.36 40.01 24.71 42.91 47.67 4.05 32.06-19.03 59.42-49.32 63.04z"] };
  3366. var faCommentDots = { prefix: 'fas', iconName: 'comment-dots', icon: [512, 512, [], "f4ad", "M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32zM128 272c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3367. var faCommentSlash = { prefix: 'fas', iconName: 'comment-slash', icon: [640, 512, [], "f4b3", "M64 240c0 49.6 21.4 95 57 130.7-12.6 50.3-54.3 95.2-54.8 95.8-2.2 2.3-2.8 5.7-1.5 8.7 1.3 2.9 4.1 4.8 7.3 4.8 66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 27.4 0 53.7-3.6 78.4-10L72.9 186.4c-5.6 17.1-8.9 35-8.9 53.6zm569.8 218.1l-114.4-88.4C554.6 334.1 576 289.2 576 240c0-114.9-114.6-208-256-208-65.1 0-124.2 20.1-169.4 52.7L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3z"] };
  3368. var faComments = { prefix: 'fas', iconName: 'comments', icon: [576, 512, [], "f086", "M416 192c0-88.4-93.1-160-208-160S0 103.6 0 192c0 34.3 14.1 65.9 38 92-13.4 30.2-35.5 54.2-35.8 54.5-2.2 2.3-2.8 5.7-1.5 8.7S4.8 352 8 352c36.6 0 66.9-12.3 88.7-25 32.2 15.7 70.3 25 111.3 25 114.9 0 208-71.6 208-160zm122 220c23.9-26 38-57.7 38-92 0-66.9-53.5-124.2-129.3-148.1.9 6.6 1.3 13.3 1.3 20.1 0 105.9-107.7 192-240 192-10.8 0-21.3-.8-31.7-1.9C207.8 439.6 281.8 480 368 480c41 0 79.1-9.2 111.3-25 21.8 12.7 52.1 25 88.7 25 3.2 0 6.1-1.9 7.3-4.8 1.3-2.9.7-6.3-1.5-8.7-.3-.3-22.4-24.2-35.8-54.5z"] };
  3369. var faCommentsDollar = { prefix: 'fas', iconName: 'comments-dollar', icon: [576, 512, [], "f653", "M416 192c0-88.37-93.12-160-208-160S0 103.63 0 192c0 34.27 14.13 65.95 37.97 91.98C24.61 314.22 2.52 338.16 2.2 338.5A7.995 7.995 0 0 0 8 352c36.58 0 66.93-12.25 88.73-24.98C128.93 342.76 167.02 352 208 352c114.88 0 208-71.63 208-160zm-224 96v-16.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V96c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.05 44.44-42.67 45.07V288c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8zm346.01 123.99C561.87 385.96 576 354.27 576 320c0-66.94-53.49-124.2-129.33-148.07.86 6.6 1.33 13.29 1.33 20.07 0 105.87-107.66 192-240 192-10.78 0-21.32-.77-31.73-1.88C207.8 439.63 281.77 480 368 480c40.98 0 79.07-9.24 111.27-24.98C501.07 467.75 531.42 480 568 480c3.2 0 6.09-1.91 7.34-4.84 1.27-2.94.66-6.34-1.55-8.67-.31-.33-22.42-24.24-35.78-54.5z"] };
  3370. var faCompactDisc = { prefix: 'fas', iconName: 'compact-disc', icon: [496, 512, [], "f51f", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM88 256H56c0-105.9 86.1-192 192-192v32c-88.2 0-160 71.8-160 160zm160 96c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96zm0-128c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32z"] };
  3371. var faCompass = { prefix: 'fas', iconName: 'compass', icon: [496, 512, [], "f14e", "M225.38 233.37c-12.5 12.5-12.5 32.76 0 45.25 12.49 12.5 32.76 12.5 45.25 0 12.5-12.5 12.5-32.76 0-45.25-12.5-12.49-32.76-12.49-45.25 0zM248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm126.14 148.05L308.17 300.4a31.938 31.938 0 0 1-15.77 15.77l-144.34 65.97c-16.65 7.61-33.81-9.55-26.2-26.2l65.98-144.35a31.938 31.938 0 0 1 15.77-15.77l144.34-65.97c16.65-7.6 33.8 9.55 26.19 26.2z"] };
  3372. var faCompress = { prefix: 'fas', iconName: 'compress', icon: [448, 512, [], "f066", "M436 192H312c-13.3 0-24-10.7-24-24V44c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v84h84c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-276-24V44c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v84H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24zm0 300V344c0-13.3-10.7-24-24-24H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-84h84c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12H312c-13.3 0-24 10.7-24 24v124c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12z"] };
  3373. var faConciergeBell = { prefix: 'fas', iconName: 'concierge-bell', icon: [512, 512, [], "f562", "M288 130.54V112h16c8.84 0 16-7.16 16-16V80c0-8.84-7.16-16-16-16h-96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h16v18.54C115.49 146.11 32 239.18 32 352h448c0-112.82-83.49-205.89-192-221.46zM496 384H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  3374. var faCookie = { prefix: 'fas', iconName: 'cookie', icon: [512, 512, [], "f563", "M510.37 254.79l-12.08-76.26a132.493 132.493 0 0 0-37.16-72.95l-54.76-54.75c-19.73-19.72-45.18-32.7-72.71-37.05l-76.7-12.15c-27.51-4.36-55.69.11-80.52 12.76L107.32 49.6a132.25 132.25 0 0 0-57.79 57.8l-35.1 68.88a132.602 132.602 0 0 0-12.82 80.94l12.08 76.27a132.493 132.493 0 0 0 37.16 72.95l54.76 54.75a132.087 132.087 0 0 0 72.71 37.05l76.7 12.14c27.51 4.36 55.69-.11 80.52-12.75l69.12-35.21a132.302 132.302 0 0 0 57.79-57.8l35.1-68.87c12.71-24.96 17.2-53.3 12.82-80.96zM176 368c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm32-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm160 128c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3375. var faCookieBite = { prefix: 'fas', iconName: 'cookie-bite', icon: [512, 512, [], "f564", "M510.52 255.82c-69.97-.85-126.47-57.69-126.47-127.86-70.17 0-127-56.49-127.86-126.45-27.26-4.14-55.13.3-79.72 12.82l-69.13 35.22a132.221 132.221 0 0 0-57.79 57.81l-35.1 68.88a132.645 132.645 0 0 0-12.82 80.95l12.08 76.27a132.521 132.521 0 0 0 37.16 72.96l54.77 54.76a132.036 132.036 0 0 0 72.71 37.06l76.71 12.15c27.51 4.36 55.7-.11 80.53-12.76l69.13-35.21a132.273 132.273 0 0 0 57.79-57.81l35.1-68.88c12.56-24.64 17.01-52.58 12.91-79.91zM176 368c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm32-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm160 128c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3376. var faCopy = { prefix: 'fas', iconName: 'copy', icon: [448, 512, [], "f0c5", "M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"] };
  3377. var faCopyright = { prefix: 'fas', iconName: 'copyright', icon: [512, 512, [], "f1f9", "M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm117.134 346.753c-1.592 1.867-39.776 45.731-109.851 45.731-84.692 0-144.484-63.26-144.484-145.567 0-81.303 62.004-143.401 143.762-143.401 66.957 0 101.965 37.315 103.422 38.904a12 12 0 0 1 1.238 14.623l-22.38 34.655c-4.049 6.267-12.774 7.351-18.234 2.295-.233-.214-26.529-23.88-61.88-23.88-46.116 0-73.916 33.575-73.916 76.082 0 39.602 25.514 79.692 74.277 79.692 38.697 0 65.28-28.338 65.544-28.625 5.132-5.565 14.059-5.033 18.508 1.053l24.547 33.572a12.001 12.001 0 0 1-.553 14.866z"] };
  3378. var faCouch = { prefix: 'fas', iconName: 'couch', icon: [640, 512, [], "f4b8", "M160 224v64h320v-64c0-35.3 28.7-64 64-64h32c0-53-43-96-96-96H160c-53 0-96 43-96 96h32c35.3 0 64 28.7 64 64zm416-32h-32c-17.7 0-32 14.3-32 32v96H128v-96c0-17.7-14.3-32-32-32H64c-35.3 0-64 28.7-64 64 0 23.6 13 44 32 55.1V432c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-16h384v16c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16V311.1c19-11.1 32-31.5 32-55.1 0-35.3-28.7-64-64-64z"] };
  3379. var faCreditCard = { prefix: 'fas', iconName: 'credit-card', icon: [576, 512, [], "f09d", "M0 432c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V256H0v176zm192-68c0-6.6 5.4-12 12-12h136c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-40zm-128 0c0-6.6 5.4-12 12-12h72c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM576 80v48H0V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48z"] };
  3380. var faCrop = { prefix: 'fas', iconName: 'crop', icon: [512, 512, [], "f125", "M488 352h-40V109.25l59.31-59.31c6.25-6.25 6.25-16.38 0-22.63L484.69 4.69c-6.25-6.25-16.38-6.25-22.63 0L402.75 64H192v96h114.75L160 306.75V24c0-13.26-10.75-24-24-24H88C74.75 0 64 10.74 64 24v40H24C10.75 64 0 74.74 0 88v48c0 13.25 10.75 24 24 24h40v264c0 13.25 10.75 24 24 24h232v-96H205.25L352 205.25V488c0 13.25 10.75 24 24 24h48c13.25 0 24-10.75 24-24v-40h40c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24z"] };
  3381. var faCropAlt = { prefix: 'fas', iconName: 'crop-alt', icon: [512, 512, [], "f565", "M488 352h-40V96c0-17.67-14.33-32-32-32H192v96h160v328c0 13.25 10.75 24 24 24h48c13.25 0 24-10.75 24-24v-40h40c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24zM160 24c0-13.26-10.75-24-24-24H88C74.75 0 64 10.74 64 24v40H24C10.75 64 0 74.74 0 88v48c0 13.25 10.75 24 24 24h40v256c0 17.67 14.33 32 32 32h224v-96H160V24z"] };
  3382. var faCross = { prefix: 'fas', iconName: 'cross', icon: [384, 512, [], "f654", "M352 128h-96V32c0-17.67-14.33-32-32-32h-64c-17.67 0-32 14.33-32 32v96H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h96v224c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V256h96c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z"] };
  3383. var faCrosshairs = { prefix: 'fas', iconName: 'crosshairs', icon: [512, 512, [], "f05b", "M500 224h-30.364C455.724 130.325 381.675 56.276 288 42.364V12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v30.364C130.325 56.276 56.276 130.325 42.364 224H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h30.364C56.276 381.675 130.325 455.724 224 469.636V500c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-30.364C381.675 455.724 455.724 381.675 469.636 288H500c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12zM288 404.634V364c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40.634C165.826 392.232 119.783 346.243 107.366 288H148c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40.634C119.768 165.826 165.757 119.783 224 107.366V148c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40.634C346.174 119.768 392.217 165.757 404.634 224H364c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40.634C392.232 346.174 346.243 392.217 288 404.634zM288 256c0 17.673-14.327 32-32 32s-32-14.327-32-32c0-17.673 14.327-32 32-32s32 14.327 32 32z"] };
  3384. var faCrow = { prefix: 'fas', iconName: 'crow', icon: [640, 512, [], "f520", "M544 32h-16.36C513.04 12.68 490.09 0 464 0c-44.18 0-80 35.82-80 80v20.98L12.09 393.57A30.216 30.216 0 0 0 0 417.74c0 22.46 23.64 37.07 43.73 27.03L165.27 384h96.49l44.41 120.1c2.27 6.23 9.15 9.44 15.38 7.17l22.55-8.21c6.23-2.27 9.44-9.15 7.17-15.38L312.94 384H352c1.91 0 3.76-.23 5.66-.29l44.51 120.38c2.27 6.23 9.15 9.44 15.38 7.17l22.55-8.21c6.23-2.27 9.44-9.15 7.17-15.38l-41.24-111.53C485.74 352.8 544 279.26 544 192v-80l96-16c0-35.35-42.98-64-96-64zm-80 72c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"] };
  3385. var faCrown = { prefix: 'fas', iconName: 'crown', icon: [640, 512, [], "f521", "M528 448H112c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h416c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm64-320c-26.5 0-48 21.5-48 48 0 7.1 1.6 13.7 4.4 19.8L476 239.2c-15.4 9.2-35.3 4-44.2-11.6L350.3 85C361 76.2 368 63 368 48c0-26.5-21.5-48-48-48s-48 21.5-48 48c0 15 7 28.2 17.7 37l-81.5 142.6c-8.9 15.6-28.9 20.8-44.2 11.6l-72.3-43.4c2.7-6 4.4-12.7 4.4-19.8 0-26.5-21.5-48-48-48S0 149.5 0 176s21.5 48 48 48c2.6 0 5.2-.4 7.7-.8L128 416h384l72.3-192.8c2.5.4 5.1.8 7.7.8 26.5 0 48-21.5 48-48s-21.5-48-48-48z"] };
  3386. var faCube = { prefix: 'fas', iconName: 'cube', icon: [512, 512, [], "f1b2", "M239.1 6.3l-208 78c-18.7 7-31.1 25-31.1 45v225.1c0 18.2 10.3 34.8 26.5 42.9l208 104c13.5 6.8 29.4 6.8 42.9 0l208-104c16.3-8.1 26.5-24.8 26.5-42.9V129.3c0-20-12.4-37.9-31.1-44.9l-208-78C262 2.2 250 2.2 239.1 6.3zM256 68.4l192 72v1.1l-192 78-192-78v-1.1l192-72zm32 356V275.5l160-65v133.9l-160 80z"] };
  3387. var faCubes = { prefix: 'fas', iconName: 'cubes', icon: [512, 512, [], "f1b3", "M488.6 250.2L392 214V105.5c0-15-9.3-28.4-23.4-33.7l-100-37.5c-8.1-3.1-17.1-3.1-25.3 0l-100 37.5c-14.1 5.3-23.4 18.7-23.4 33.7V214l-96.6 36.2C9.3 255.5 0 268.9 0 283.9V394c0 13.6 7.7 26.1 19.9 32.2l100 50c10.1 5.1 22.1 5.1 32.2 0l103.9-52 103.9 52c10.1 5.1 22.1 5.1 32.2 0l100-50c12.2-6.1 19.9-18.6 19.9-32.2V283.9c0-15-9.3-28.4-23.4-33.7zM358 214.8l-85 31.9v-68.2l85-37v73.3zM154 104.1l102-38.2 102 38.2v.6l-102 41.4-102-41.4v-.6zm84 291.1l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6zm240 112l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6z"] };
  3388. var faCut = { prefix: 'fas', iconName: 'cut', icon: [448, 512, [], "f0c4", "M278.06 256L444.48 89.57c4.69-4.69 4.69-12.29 0-16.97-32.8-32.8-85.99-32.8-118.79 0L210.18 188.12l-24.86-24.86c4.31-10.92 6.68-22.81 6.68-35.26 0-53.02-42.98-96-96-96S0 74.98 0 128s42.98 96 96 96c4.54 0 8.99-.32 13.36-.93L142.29 256l-32.93 32.93c-4.37-.61-8.83-.93-13.36-.93-53.02 0-96 42.98-96 96s42.98 96 96 96 96-42.98 96-96c0-12.45-2.37-24.34-6.68-35.26l24.86-24.86L325.69 439.4c32.8 32.8 85.99 32.8 118.79 0 4.69-4.68 4.69-12.28 0-16.97L278.06 256zM96 160c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32zm0 256c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32z"] };
  3389. var faDatabase = { prefix: 'fas', iconName: 'database', icon: [448, 512, [], "f1c0", "M448 73.143v45.714C448 159.143 347.667 192 224 192S0 159.143 0 118.857V73.143C0 32.857 100.333 0 224 0s224 32.857 224 73.143zM448 176v102.857C448 319.143 347.667 352 224 352S0 319.143 0 278.857V176c48.125 33.143 136.208 48.572 224 48.572S399.874 209.143 448 176zm0 160v102.857C448 479.143 347.667 512 224 512S0 479.143 0 438.857V336c48.125 33.143 136.208 48.572 224 48.572S399.874 369.143 448 336z"] };
  3390. var faDeaf = { prefix: 'fas', iconName: 'deaf', icon: [512, 512, [], "f2a4", "M216 260c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-44.112 35.888-80 80-80s80 35.888 80 80c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-13.234-10.767-24-24-24s-24 10.766-24 24zm24-176c-97.047 0-176 78.953-176 176 0 15.464 12.536 28 28 28s28-12.536 28-28c0-66.168 53.832-120 120-120s120 53.832 120 120c0 75.164-71.009 70.311-71.997 143.622L288 404c0 28.673-23.327 52-52 52-15.464 0-28 12.536-28 28s12.536 28 28 28c59.475 0 107.876-48.328 108-107.774.595-34.428 72-48.24 72-144.226 0-97.047-78.953-176-176-176zm268.485-52.201L480.2 3.515c-4.687-4.686-12.284-4.686-16.971 0L376.2 90.544c-4.686 4.686-4.686 12.284 0 16.971l28.285 28.285c4.686 4.686 12.284 4.686 16.97 0l87.03-87.029c4.687-4.688 4.687-12.286 0-16.972zM168.97 314.745c-4.686-4.686-12.284-4.686-16.97 0L3.515 463.23c-4.686 4.686-4.686 12.284 0 16.971L31.8 508.485c4.687 4.686 12.284 4.686 16.971 0L197.256 360c4.686-4.686 4.686-12.284 0-16.971l-28.286-28.284z"] };
  3391. var faDesktop = { prefix: 'fas', iconName: 'desktop', icon: [576, 512, [], "f108", "M528 0H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h192l-16 48h-72c-13.3 0-24 10.7-24 24s10.7 24 24 24h272c13.3 0 24-10.7 24-24s-10.7-24-24-24h-72l-16-48h192c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-16 352H64V64h448v288z"] };
  3392. var faDharmachakra = { prefix: 'fas', iconName: 'dharmachakra', icon: [512, 512, [], "f655", "M495 225.06l-17.22 1.08c-5.27-39.49-20.79-75.64-43.86-105.84l12.95-11.43c6.92-6.11 7.25-16.79.73-23.31L426.44 64.4c-6.53-6.53-17.21-6.19-23.31.73L391.7 78.07c-30.2-23.06-66.35-38.58-105.83-43.86L286.94 17c.58-9.21-6.74-17-15.97-17h-29.94c-9.23 0-16.54 7.79-15.97 17l1.08 17.22c-39.49 5.27-75.64 20.79-105.83 43.86l-11.43-12.95c-6.11-6.92-16.79-7.25-23.31-.73L64.4 85.56c-6.53 6.53-6.19 17.21.73 23.31l12.95 11.43c-23.06 30.2-38.58 66.35-43.86 105.84L17 225.06c-9.21-.58-17 6.74-17 15.97v29.94c0 9.23 7.79 16.54 17 15.97l17.22-1.08c5.27 39.49 20.79 75.64 43.86 105.83l-12.95 11.43c-6.92 6.11-7.25 16.79-.73 23.31l21.17 21.17c6.53 6.53 17.21 6.19 23.31-.73l11.43-12.95c30.2 23.06 66.35 38.58 105.84 43.86L225.06 495c-.58 9.21 6.74 17 15.97 17h29.94c9.23 0 16.54-7.79 15.97-17l-1.08-17.22c39.49-5.27 75.64-20.79 105.84-43.86l11.43 12.95c6.11 6.92 16.79 7.25 23.31.73l21.17-21.17c6.53-6.53 6.19-17.21-.73-23.31l-12.95-11.43c23.06-30.2 38.58-66.35 43.86-105.83l17.22 1.08c9.21.58 17-6.74 17-15.97v-29.94c-.01-9.23-7.8-16.54-17.01-15.97zM281.84 98.61c24.81 4.07 47.63 13.66 67.23 27.78l-42.62 48.29c-8.73-5.44-18.32-9.54-28.62-11.95l4.01-64.12zm-51.68 0l4.01 64.12c-10.29 2.41-19.89 6.52-28.62 11.95l-42.62-48.29c19.6-14.12 42.42-23.71 67.23-27.78zm-103.77 64.33l48.3 42.61c-5.44 8.73-9.54 18.33-11.96 28.62l-64.12-4.01c4.07-24.81 13.66-47.62 27.78-67.22zm-27.78 118.9l64.12-4.01c2.41 10.29 6.52 19.89 11.95 28.62l-48.29 42.62c-14.12-19.6-23.71-42.42-27.78-67.23zm131.55 131.55c-24.81-4.07-47.63-13.66-67.23-27.78l42.61-48.3c8.73 5.44 18.33 9.54 28.62 11.96l-4 64.12zM256 288c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm25.84 125.39l-4.01-64.12c10.29-2.41 19.89-6.52 28.62-11.96l42.61 48.3c-19.6 14.12-42.41 23.71-67.22 27.78zm103.77-64.33l-48.29-42.62c5.44-8.73 9.54-18.32 11.95-28.62l64.12 4.01c-4.07 24.82-13.66 47.64-27.78 67.23zm-36.34-114.89c-2.41-10.29-6.52-19.89-11.96-28.62l48.3-42.61c14.12 19.6 23.71 42.42 27.78 67.23l-64.12 4z"] };
  3393. var faDiagnoses = { prefix: 'fas', iconName: 'diagnoses', icon: [640, 512, [], "f470", "M496 256c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 16 16 16zm-176-80c48.5 0 88-39.5 88-88S368.5 0 320 0s-88 39.5-88 88 39.5 88 88 88zM59.8 364c10.2 15.3 29.3 17.8 42.9 9.8 16.2-9.6 56.2-31.7 105.3-48.6V416h224v-90.7c49.1 16.8 89.1 39 105.3 48.6 13.6 8 32.7 5.3 42.9-9.8l17.8-26.7c8.8-13.2 7.6-34.6-10-45.1-11.9-7.1-29.7-17-51.1-27.4-28.1 46.1-99.4 17.8-87.7-35.1C409.3 217.2 365.1 208 320 208c-57 0-112.9 14.5-160 32.2-.2 40.2-47.6 63.3-79.2 36-11.2 6-21.3 11.6-28.7 16-17.6 10.5-18.8 31.8-10 45.1L59.8 364zM368 344c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm-96-96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm-160 8c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 16 16 16zm512 192H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16z"] };
  3394. var faDice = { prefix: 'fas', iconName: 'dice', icon: [640, 512, [], "f522", "M592 192H473.26c12.69 29.59 7.12 65.2-17 89.32L320 417.58V464c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48V240c0-26.51-21.49-48-48-48zM480 376c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm-46.37-186.7L258.7 14.37c-19.16-19.16-50.23-19.16-69.39 0L14.37 189.3c-19.16 19.16-19.16 50.23 0 69.39L189.3 433.63c19.16 19.16 50.23 19.16 69.39 0L433.63 258.7c19.16-19.17 19.16-50.24 0-69.4zM96 248c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm128 128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm0-128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm0-128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm128 128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"] };
  3395. var faDiceD20 = { prefix: 'fas', iconName: 'dice-d20', icon: [480, 512, [], "f6cf", "M106.75 215.06L1.2 370.95c-3.08 5 .1 11.5 5.93 12.14l208.26 22.07-108.64-190.1zM7.41 315.43L82.7 193.08 6.06 147.1c-2.67-1.6-6.06.32-6.06 3.43v162.81c0 4.03 5.29 5.53 7.41 2.09zM18.25 423.6l194.4 87.66c5.3 2.45 11.35-1.43 11.35-7.26v-65.67l-203.55-22.3c-4.45-.5-6.23 5.59-2.2 7.57zm81.22-257.78L179.4 22.88c4.34-7.06-3.59-15.25-10.78-11.14L17.81 110.35c-2.47 1.62-2.39 5.26.13 6.78l81.53 48.69zM240 176h109.21L253.63 7.62C250.5 2.54 245.25 0 240 0s-10.5 2.54-13.63 7.62L130.79 176H240zm233.94-28.9l-76.64 45.99 75.29 122.35c2.11 3.44 7.41 1.94 7.41-2.1V150.53c0-3.11-3.39-5.03-6.06-3.43zm-93.41 18.72l81.53-48.7c2.53-1.52 2.6-5.16.13-6.78l-150.81-98.6c-7.19-4.11-15.12 4.08-10.78 11.14l79.93 142.94zm79.02 250.21L256 438.32v65.67c0 5.84 6.05 9.71 11.35 7.26l194.4-87.66c4.03-1.97 2.25-8.06-2.2-7.56zm-86.3-200.97l-108.63 190.1 208.26-22.07c5.83-.65 9.01-7.14 5.93-12.14L373.25 215.06zM240 208H139.57L240 383.75 340.43 208H240z"] };
  3396. var faDiceD6 = { prefix: 'fas', iconName: 'dice-d6', icon: [448, 512, [], "f6d1", "M422.19 109.95L256.21 9.07c-19.91-12.1-44.52-12.1-64.43 0L25.81 109.95c-5.32 3.23-5.29 11.27.06 14.46L224 242.55l198.14-118.14c5.35-3.19 5.38-11.22.05-14.46zm13.84 44.63L240 271.46v223.82c0 12.88 13.39 20.91 24.05 14.43l152.16-92.48c19.68-11.96 31.79-33.94 31.79-57.7v-197.7c0-6.41-6.64-10.43-11.97-7.25zM0 161.83v197.7c0 23.77 12.11 45.74 31.79 57.7l152.16 92.47c10.67 6.48 24.05-1.54 24.05-14.43V271.46L11.97 154.58C6.64 151.4 0 155.42 0 161.83z"] };
  3397. var faDiceFive = { prefix: 'fas', iconName: 'dice-five', icon: [448, 512, [], "f523", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm96 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm96 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3398. var faDiceFour = { prefix: 'fas', iconName: 'dice-four', icon: [448, 512, [], "f524", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm192 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3399. var faDiceOne = { prefix: 'fas', iconName: 'dice-one', icon: [448, 512, [], "f525", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM224 288c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3400. var faDiceSix = { prefix: 'fas', iconName: 'dice-six', icon: [448, 512, [], "f526", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm192 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3401. var faDiceThree = { prefix: 'fas', iconName: 'dice-three', icon: [448, 512, [], "f527", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm96 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm96 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3402. var faDiceTwo = { prefix: 'fas', iconName: 'dice-two', icon: [448, 512, [], "f528", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm192 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3403. var faDigitalTachograph = { prefix: 'fas', iconName: 'digital-tachograph', icon: [640, 512, [], "f566", "M608 96H32c-17.67 0-32 14.33-32 32v256c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V128c0-17.67-14.33-32-32-32zM304 352c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-8c0-4.42 3.58-8 8-8h224c4.42 0 8 3.58 8 8v8zM72 288v-16c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H80c-4.42 0-8-3.58-8-8zm64 0v-16c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8zm64 0v-16c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8zm64 0v-16c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8zm40-64c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-48c0-8.84 7.16-16 16-16h208c8.84 0 16 7.16 16 16v48zm272 128c0 4.42-3.58 8-8 8H344c-4.42 0-8-3.58-8-8v-8c0-4.42 3.58-8 8-8h224c4.42 0 8 3.58 8 8v8z"] };
  3404. var faDirections = { prefix: 'fas', iconName: 'directions', icon: [512, 512, [], "f5eb", "M502.61 233.32L278.68 9.39c-12.52-12.52-32.83-12.52-45.36 0L9.39 233.32c-12.52 12.53-12.52 32.83 0 45.36l223.93 223.93c12.52 12.53 32.83 12.53 45.36 0l223.93-223.93c12.52-12.53 12.52-32.83 0-45.36zm-100.98 12.56l-84.21 77.73c-5.12 4.73-13.43 1.1-13.43-5.88V264h-96v64c0 4.42-3.58 8-8 8h-32c-4.42 0-8-3.58-8-8v-80c0-17.67 14.33-32 32-32h112v-53.73c0-6.97 8.3-10.61 13.43-5.88l84.21 77.73c3.43 3.17 3.43 8.59 0 11.76z"] };
  3405. var faDivide = { prefix: 'fas', iconName: 'divide', icon: [448, 512, [], "f529", "M224 352c-35.35 0-64 28.65-64 64s28.65 64 64 64 64-28.65 64-64-28.65-64-64-64zm0-192c35.35 0 64-28.65 64-64s-28.65-64-64-64-64 28.65-64 64 28.65 64 64 64zm192 48H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"] };
  3406. var faDizzy = { prefix: 'fas', iconName: 'dizzy', icon: [496, 512, [], "f567", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-96 206.6l-28.7 28.7c-14.8 14.8-37.8-7.5-22.6-22.6l28.7-28.7-28.7-28.7c-15-15 7.7-37.6 22.6-22.6l28.7 28.7 28.7-28.7c15-15 37.6 7.7 22.6 22.6L174.6 192l28.7 28.7c15.2 15.2-7.9 37.4-22.6 22.6L152 214.6zM248 416c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm147.3-195.3c15.2 15.2-7.9 37.4-22.6 22.6L344 214.6l-28.7 28.7c-14.8 14.8-37.8-7.5-22.6-22.6l28.7-28.7-28.7-28.7c-15-15 7.7-37.6 22.6-22.6l28.7 28.7 28.7-28.7c15-15 37.6 7.7 22.6 22.6L366.6 192l28.7 28.7z"] };
  3407. var faDna = { prefix: 'fas', iconName: 'dna', icon: [448, 512, [], "f471", "M.1 494.1c-1.1 9.5 6.3 17.8 15.9 17.8l32.3.1c8.1 0 14.9-5.9 16-13.9.7-4.9 1.8-11.1 3.4-18.1H380c1.6 6.9 2.9 13.2 3.5 18.1 1.1 8 7.9 14 16 13.9l32.3-.1c9.6 0 17.1-8.3 15.9-17.8-4.6-37.9-25.6-129-118.9-207.7-17.6 12.4-37.1 24.2-58.5 35.4 6.2 4.6 11.4 9.4 17 14.2H159.7c21.3-18.1 47-35.6 78.7-51.4C410.5 199.1 442.1 65.8 447.9 17.9 449 8.4 441.6.1 432 .1L399.6 0c-8.1 0-14.9 5.9-16 13.9-.7 4.9-1.8 11.1-3.4 18.1H67.8c-1.6-7-2.7-13.1-3.4-18.1-1.1-8-7.9-14-16-13.9L16.1.1C6.5.1-1 8.4.1 17.9 5.3 60.8 31.4 171.8 160 256 31.5 340.2 5.3 451.2.1 494.1zM224 219.6c-25.1-13.7-46.4-28.4-64.3-43.6h128.5c-17.8 15.2-39.1 30-64.2 43.6zM355.1 96c-5.8 10.4-12.8 21.1-21 32H114c-8.3-10.9-15.3-21.6-21-32h262.1zM92.9 416c5.8-10.4 12.8-21.1 21-32h219.4c8.3 10.9 15.4 21.6 21.2 32H92.9z"] };
  3408. var faDog = { prefix: 'fas', iconName: 'dog', icon: [512, 512, [], "f6d3", "M496 96h-64l-7.16-14.31A32 32 0 0 0 396.22 64H342.6l-27.28-27.28C305.23 26.64 288 33.78 288 48.03v149.84l128 45.71V208h32c35.35 0 64-28.65 64-64v-32c0-8.84-7.16-16-16-16zm-112 48c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zM96 224c-17.64 0-32-14.36-32-32 0-17.67-14.33-32-32-32S0 174.33 0 192c0 41.66 26.83 76.85 64 90.1V496c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V384h160v112c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V277.55L266.05 224H96z"] };
  3409. var faDollarSign = { prefix: 'fas', iconName: 'dollar-sign', icon: [288, 512, [], "f155", "M209.2 233.4l-108-31.6C88.7 198.2 80 186.5 80 173.5c0-16.3 13.2-29.5 29.5-29.5h66.3c12.2 0 24.2 3.7 34.2 10.5 6.1 4.1 14.3 3.1 19.5-2l34.8-34c7.1-6.9 6.1-18.4-1.8-24.5C238 74.8 207.4 64.1 176 64V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48h-2.5C45.8 64-5.4 118.7.5 183.6c4.2 46.1 39.4 83.6 83.8 96.6l102.5 30c12.5 3.7 21.2 15.3 21.2 28.3 0 16.3-13.2 29.5-29.5 29.5h-66.3C100 368 88 364.3 78 357.5c-6.1-4.1-14.3-3.1-19.5 2l-34.8 34c-7.1 6.9-6.1 18.4 1.8 24.5 24.5 19.2 55.1 29.9 86.5 30v48c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-48.2c46.6-.9 90.3-28.6 105.7-72.7 21.5-61.6-14.6-124.8-72.5-141.7z"] };
  3410. var faDolly = { prefix: 'fas', iconName: 'dolly', icon: [576, 512, [], "f472", "M294.2 277.7c18 5 34.7 13.4 49.5 24.7l161.5-53.8c8.4-2.8 12.9-11.9 10.1-20.2L454.9 47.2c-2.8-8.4-11.9-12.9-20.2-10.1l-61.1 20.4 33.1 99.4L346 177l-33.1-99.4-61.6 20.5c-8.4 2.8-12.9 11.9-10.1 20.2l53 159.4zm281 48.7L565 296c-2.8-8.4-11.9-12.9-20.2-10.1l-213.5 71.2c-17.2-22-43.6-36.4-73.5-37L158.4 21.9C154 8.8 141.8 0 128 0H16C7.2 0 0 7.2 0 16v32c0 8.8 7.2 16 16 16h88.9l92.2 276.7c-26.1 20.4-41.7 53.6-36 90.5 6.1 39.4 37.9 72.3 77.3 79.2 60.2 10.7 112.3-34.8 113.4-92.6l213.3-71.2c8.3-2.8 12.9-11.8 10.1-20.2zM256 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"] };
  3411. var faDollyFlatbed = { prefix: 'fas', iconName: 'dolly-flatbed', icon: [640, 512, [], "f474", "M208 320h384c8.8 0 16-7.2 16-16V48c0-8.8-7.2-16-16-16H448v128l-48-32-48 32V32H208c-8.8 0-16 7.2-16 16v256c0 8.8 7.2 16 16 16zm416 64H128V16c0-8.8-7.2-16-16-16H16C7.2 0 0 7.2 0 16v32c0 8.8 7.2 16 16 16h48v368c0 8.8 7.2 16 16 16h82.9c-1.8 5-2.9 10.4-2.9 16 0 26.5 21.5 48 48 48s48-21.5 48-48c0-5.6-1.2-11-2.9-16H451c-1.8 5-2.9 10.4-2.9 16 0 26.5 21.5 48 48 48s48-21.5 48-48c0-5.6-1.2-11-2.9-16H624c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16z"] };
  3412. var faDonate = { prefix: 'fas', iconName: 'donate', icon: [512, 512, [], "f4b9", "M256 416c114.9 0 208-93.1 208-208S370.9 0 256 0 48 93.1 48 208s93.1 208 208 208zM233.8 97.4V80.6c0-9.2 7.4-16.6 16.6-16.6h11.1c9.2 0 16.6 7.4 16.6 16.6v17c15.5.8 30.5 6.1 43 15.4 5.6 4.1 6.2 12.3 1.2 17.1L306 145.6c-3.8 3.7-9.5 3.8-14 1-5.4-3.4-11.4-5.1-17.8-5.1h-38.9c-9 0-16.3 8.2-16.3 18.3 0 8.2 5 15.5 12.1 17.6l62.3 18.7c25.7 7.7 43.7 32.4 43.7 60.1 0 34-26.4 61.5-59.1 62.4v16.8c0 9.2-7.4 16.6-16.6 16.6h-11.1c-9.2 0-16.6-7.4-16.6-16.6v-17c-15.5-.8-30.5-6.1-43-15.4-5.6-4.1-6.2-12.3-1.2-17.1l16.3-15.5c3.8-3.7 9.5-3.8 14-1 5.4 3.4 11.4 5.1 17.8 5.1h38.9c9 0 16.3-8.2 16.3-18.3 0-8.2-5-15.5-12.1-17.6l-62.3-18.7c-25.7-7.7-43.7-32.4-43.7-60.1.1-34 26.4-61.5 59.1-62.4zM480 352h-32.5c-19.6 26-44.6 47.7-73 64h63.8c5.3 0 9.6 3.6 9.6 8v16c0 4.4-4.3 8-9.6 8H73.6c-5.3 0-9.6-3.6-9.6-8v-16c0-4.4 4.3-8 9.6-8h63.8c-28.4-16.3-53.3-38-73-64H32c-17.7 0-32 14.3-32 32v96c0 17.7 14.3 32 32 32h448c17.7 0 32-14.3 32-32v-96c0-17.7-14.3-32-32-32z"] };
  3413. var faDoorClosed = { prefix: 'fas', iconName: 'door-closed', icon: [640, 512, [], "f52a", "M624 448H512V50.8C512 22.78 490.47 0 464 0H175.99c-26.47 0-48 22.78-48 50.8V448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM415.99 288c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32c.01 17.67-14.32 32-32 32z"] };
  3414. var faDoorOpen = { prefix: 'fas', iconName: 'door-open', icon: [640, 512, [], "f52b", "M624 448h-80V113.45C544 86.19 522.47 64 496 64H384v64h96v384h144c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM312.24 1.01l-192 49.74C105.99 54.44 96 67.7 96 82.92V448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h336V33.18c0-21.58-19.56-37.41-39.76-32.17zM264 288c-13.25 0-24-14.33-24-32s10.75-32 24-32 24 14.33 24 32-10.75 32-24 32z"] };
  3415. var faDotCircle = { prefix: 'fas', iconName: 'dot-circle', icon: [512, 512, [], "f192", "M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"] };
  3416. var faDove = { prefix: 'fas', iconName: 'dove', icon: [512, 512, [], "f4ba", "M288 167.2v-28.1c-28.2-36.3-47.1-79.3-54.1-125.2-2.1-13.5-19-18.8-27.8-8.3-21.1 24.9-37.7 54.1-48.9 86.5 34.2 38.3 80 64.6 130.8 75.1zM400 64c-44.2 0-80 35.9-80 80.1v59.4C215.6 197.3 127 133 87 41.8c-5.5-12.5-23.2-13.2-29-.9C41.4 76 32 115.2 32 156.6c0 70.8 34.1 136.9 85.1 185.9 13.2 12.7 26.1 23.2 38.9 32.8l-143.9 36C1.4 414-3.4 426.4 2.6 435.7 20 462.6 63 508.2 155.8 512c8 .3 16-2.6 22.1-7.9l65.2-56.1H320c88.4 0 160-71.5 160-159.9V128l32-64H400zm0 96.1c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"] };
  3417. var faDownload = { prefix: 'fas', iconName: 'download', icon: [512, 512, [], "f019", "M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"] };
  3418. var faDraftingCompass = { prefix: 'fas', iconName: 'drafting-compass', icon: [512, 512, [], "f568", "M457.01 344.42c-25.05 20.33-52.63 37.18-82.54 49.05l54.38 94.19 53.95 23.04c9.81 4.19 20.89-2.21 22.17-12.8l7.02-58.25-54.98-95.23zm42.49-94.56c4.86-7.67 1.89-17.99-6.05-22.39l-28.07-15.57c-7.48-4.15-16.61-1.46-21.26 5.72C403.01 281.15 332.25 320 256 320c-23.93 0-47.23-4.25-69.41-11.53l67.36-116.68c.7.02 1.34.21 2.04.21s1.35-.19 2.04-.21l51.09 88.5c31.23-8.96 59.56-25.75 82.61-48.92l-51.79-89.71C347.39 128.03 352 112.63 352 96c0-53.02-42.98-96-96-96s-96 42.98-96 96c0 16.63 4.61 32.03 12.05 45.66l-68.3 118.31c-12.55-11.61-23.96-24.59-33.68-39-4.79-7.1-13.97-9.62-21.38-5.33l-27.75 16.07c-7.85 4.54-10.63 14.9-5.64 22.47 15.57 23.64 34.69 44.21 55.98 62.02L0 439.66l7.02 58.25c1.28 10.59 12.36 16.99 22.17 12.8l53.95-23.04 70.8-122.63C186.13 377.28 220.62 384 256 384c99.05 0 190.88-51.01 243.5-134.14zM256 64c17.67 0 32 14.33 32 32s-14.33 32-32 32-32-14.33-32-32 14.33-32 32-32z"] };
  3419. var faDragon = { prefix: 'fas', iconName: 'dragon', icon: [640, 512, [], "f6d5", "M18.32 255.78L192 223.96l-91.28 68.69c-10.08 10.08-2.94 27.31 11.31 27.31h222.7c-9.44-26.4-14.73-54.47-14.73-83.38v-42.27l-119.73-87.6c-23.82-15.88-55.29-14.01-77.06 4.59L5.81 227.64c-12.38 10.33-3.45 30.42 12.51 28.14zm556.87 34.1l-100.66-50.31A47.992 47.992 0 0 1 448 196.65v-36.69h64l28.09 22.63c6 6 14.14 9.37 22.63 9.37h30.97a32 32 0 0 0 28.62-17.69l14.31-28.62a32.005 32.005 0 0 0-3.02-33.51l-74.53-99.38C553.02 4.7 543.54 0 533.47 0H296.02c-7.13 0-10.7 8.57-5.66 13.61L352 63.96 292.42 88.8c-5.9 2.95-5.9 11.36 0 14.31L352 127.96v108.62c0 72.08 36.03 139.39 96 179.38-195.59 6.81-344.56 41.01-434.1 60.91C5.78 478.67 0 485.88 0 494.2 0 504 7.95 512 17.76 512h499.08c63.29.01 119.61-47.56 122.99-110.76 2.52-47.28-22.73-90.4-64.64-111.36zM489.18 66.25l45.65 11.41c-2.75 10.91-12.47 18.89-24.13 18.26-12.96-.71-25.85-12.53-21.52-29.67z"] };
  3420. var faDrawPolygon = { prefix: 'fas', iconName: 'draw-polygon', icon: [448, 512, [], "f5ee", "M384 352c-.35 0-.67.1-1.02.1l-39.2-65.32c5.07-9.17 8.22-19.56 8.22-30.78s-3.14-21.61-8.22-30.78l39.2-65.32c.35.01.67.1 1.02.1 35.35 0 64-28.65 64-64s-28.65-64-64-64c-23.63 0-44.04 12.95-55.12 32H119.12C108.04 44.95 87.63 32 64 32 28.65 32 0 60.65 0 96c0 23.63 12.95 44.04 32 55.12v209.75C12.95 371.96 0 392.37 0 416c0 35.35 28.65 64 64 64 23.63 0 44.04-12.95 55.12-32h209.75c11.09 19.05 31.49 32 55.12 32 35.35 0 64-28.65 64-64 .01-35.35-28.64-64-63.99-64zm-288 8.88V151.12A63.825 63.825 0 0 0 119.12 128h208.36l-38.46 64.1c-.35-.01-.67-.1-1.02-.1-35.35 0-64 28.65-64 64s28.65 64 64 64c.35 0 .67-.1 1.02-.1l38.46 64.1H119.12A63.748 63.748 0 0 0 96 360.88zM272 256c0-8.82 7.18-16 16-16s16 7.18 16 16-7.18 16-16 16-16-7.18-16-16zM400 96c0 8.82-7.18 16-16 16s-16-7.18-16-16 7.18-16 16-16 16 7.18 16 16zM64 80c8.82 0 16 7.18 16 16s-7.18 16-16 16-16-7.18-16-16 7.18-16 16-16zM48 416c0-8.82 7.18-16 16-16s16 7.18 16 16-7.18 16-16 16-16-7.18-16-16zm336 16c-8.82 0-16-7.18-16-16s7.18-16 16-16 16 7.18 16 16-7.18 16-16 16z"] };
  3421. var faDrum = { prefix: 'fas', iconName: 'drum', icon: [576, 512, [], "f569", "M458.08 120.88l102.39-61.43c15.16-9.09 20.06-28.75 10.97-43.91C562.34.39 542.7-4.53 527.53 4.57l-160.69 96.41A629.32 629.32 0 0 0 288 96C128.94 96 0 153.31 0 224v160.83c0 30.46 24.03 58.4 64 80.37v-96.37c0-17.6 14.4-32 32-32s32 14.4 32 32v122.41c37.4 11.13 81 18.44 128 20.75V400.84c0-17.6 14.4-32 32-32s32 14.4 32 32V512c47-2.31 90.6-9.62 128-20.75V368.84c0-17.6 14.4-32 32-32s32 14.4 32 32v96.37c39.97-21.97 64-49.91 64-80.37V224.01c-.01-42.38-46.54-79.84-117.92-103.13zM288 304c-132.55 0-240-35.82-240-80s107.45-80 240-80c2.34 0 4.62.1 6.94.12l-87.41 52.44c-15.16 9.09-20.06 28.75-10.97 43.91 9.56 15.93 29.51 19.61 43.91 10.97l162.71-97.62C477.55 167.41 528 193.74 528 224.01 528 268.19 420.54 304 288 304z"] };
  3422. var faDrumSteelpan = { prefix: 'fas', iconName: 'drum-steelpan', icon: [576, 512, [], "f56a", "M288 32C128.94 32 0 89.31 0 160v192c0 70.69 128.94 128 288 128s288-57.31 288-128V160c0-70.69-128.94-128-288-128zm-82.99 158.36c-4.45 16.61-14.54 30.57-28.31 40.48C100.23 217.46 48 190.78 48 160c0-30.16 50.11-56.39 124.04-70.03l25.6 44.34c9.86 17.09 12.48 36.99 7.37 56.05zM288 240c-21.08 0-41.41-1-60.89-2.7 8.06-26.13 32.15-45.3 60.89-45.3s52.83 19.17 60.89 45.3C329.41 239 309.08 240 288 240zm64-144c0 35.29-28.71 64-64 64s-64-28.71-64-64V82.96c20.4-1.88 41.8-2.96 64-2.96s43.6 1.08 64 2.96V96zm46.93 134.9c-13.81-9.91-23.94-23.9-28.4-40.54-5.11-19.06-2.49-38.96 7.38-56.04l25.65-44.42C477.72 103.5 528 129.79 528 160c0 30.83-52.4 57.54-129.07 70.9z"] };
  3423. var faDrumstickBite = { prefix: 'fas', iconName: 'drumstick-bite', icon: [512, 512, [], "f6d7", "M462.79 49.57c-66.14-66.09-173.36-66.09-239.5 0C187.81 85.02 160.12 128 160.12 192v85.83l-40.62 40.59c-9.7 9.69-24.04 11.07-36.78 5.98-21.72-8.68-47.42-4.29-65.02 13.29-23.61 23.59-23.61 61.84 0 85.43 15.28 15.27 36.53 19.58 56.14 15.09-4.5 19.6-.18 40.83 15.1 56.1 23.61 23.59 61.88 23.59 85.49 0 17.6-17.58 21.99-43.26 13.31-64.97-5.09-12.73-3.72-27.05 5.99-36.75L234.35 352h85.89c23.2 0 43.57-3.72 61.89-10.03-39.64-43.89-39.83-110.23 1.05-151.07 34.38-34.36 86.76-39.46 128.74-16.8 1.3-44.93-14.81-90.25-49.13-124.53z"] };
  3424. var faDumbbell = { prefix: 'fas', iconName: 'dumbbell', icon: [640, 512, [], "f44b", "M104 96H56c-13.3 0-24 10.7-24 24v104H8c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h24v104c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24zm528 128h-24V120c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h24c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM456 32h-48c-13.3 0-24 10.7-24 24v168H256V56c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v400c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h128v168c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24z"] };
  3425. var faDungeon = { prefix: 'fas', iconName: 'dungeon', icon: [512, 512, [], "f6d9", "M128.73 195.32l-82.81-51.76c-8.04-5.02-18.99-2.17-22.93 6.45A254.19 254.19 0 0 0 .54 239.28C-.05 248.37 7.59 256 16.69 256h97.13c7.96 0 14.08-6.25 15.01-14.16 1.09-9.33 3.24-18.33 6.24-26.94 2.56-7.34.25-15.46-6.34-19.58zM319.03 8C298.86 2.82 277.77 0 256 0s-42.86 2.82-63.03 8c-9.17 2.35-13.91 12.6-10.39 21.39l37.47 104.03A16.003 16.003 0 0 0 235.1 144h41.8c6.75 0 12.77-4.23 15.05-10.58l37.47-104.03c3.52-8.79-1.22-19.03-10.39-21.39zM112 288H16c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h96c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm0 128H16c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h96c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm77.31-283.67l-36.32-90.8c-3.53-8.83-14.13-12.99-22.42-8.31a257.308 257.308 0 0 0-71.61 59.89c-6.06 7.32-3.85 18.48 4.22 23.52l82.93 51.83c6.51 4.07 14.66 2.62 20.11-2.79 5.18-5.15 10.79-9.85 16.79-14.05 6.28-4.41 9.15-12.17 6.3-19.29zM398.18 256h97.13c9.1 0 16.74-7.63 16.15-16.72a254.135 254.135 0 0 0-22.45-89.27c-3.94-8.62-14.89-11.47-22.93-6.45l-82.81 51.76c-6.59 4.12-8.9 12.24-6.34 19.58 3.01 8.61 5.15 17.62 6.24 26.94.93 7.91 7.05 14.16 15.01 14.16zm54.85-162.89a257.308 257.308 0 0 0-71.61-59.89c-8.28-4.68-18.88-.52-22.42 8.31l-36.32 90.8c-2.85 7.12.02 14.88 6.3 19.28 6 4.2 11.61 8.9 16.79 14.05 5.44 5.41 13.6 6.86 20.11 2.79l82.93-51.83c8.07-5.03 10.29-16.19 4.22-23.51zM496 288h-96c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h96c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm0 128h-96c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h96c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zM240 177.62V472c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8V177.62c-5.23-.89-10.52-1.62-16-1.62s-10.77.73-16 1.62zm-64 41.51V472c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8V189.36c-12.78 7.45-23.84 17.47-32 29.77zm128-29.77V472c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8V219.13c-8.16-12.3-19.22-22.32-32-29.77z"] };
  3426. var faEdit = { prefix: 'fas', iconName: 'edit', icon: [576, 512, [], "f044", "M402.6 83.2l90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z"] };
  3427. var faEject = { prefix: 'fas', iconName: 'eject', icon: [448, 512, [], "f052", "M448 384v64c0 17.673-14.327 32-32 32H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h384c17.673 0 32 14.327 32 32zM48.053 320h351.886c41.651 0 63.581-49.674 35.383-80.435L259.383 47.558c-19.014-20.743-51.751-20.744-70.767 0L12.67 239.565C-15.475 270.268 6.324 320 48.053 320z"] };
  3428. var faEllipsisH = { prefix: 'fas', iconName: 'ellipsis-h', icon: [512, 512, [], "f141", "M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z"] };
  3429. var faEllipsisV = { prefix: 'fas', iconName: 'ellipsis-v', icon: [192, 512, [], "f142", "M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"] };
  3430. var faEnvelope = { prefix: 'fas', iconName: 'envelope', icon: [512, 512, [], "f0e0", "M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"] };
  3431. var faEnvelopeOpen = { prefix: 'fas', iconName: 'envelope-open', icon: [512, 512, [], "f2b6", "M512 464c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V200.724a48 48 0 0 1 18.387-37.776c24.913-19.529 45.501-35.365 164.2-121.511C199.412 29.17 232.797-.347 256 .003c23.198-.354 56.596 29.172 73.413 41.433 118.687 86.137 139.303 101.995 164.2 121.512A48 48 0 0 1 512 200.724V464zm-65.666-196.605c-2.563-3.728-7.7-4.595-11.339-1.907-22.845 16.873-55.462 40.705-105.582 77.079-16.825 12.266-50.21 41.781-73.413 41.43-23.211.344-56.559-29.143-73.413-41.43-50.114-36.37-82.734-60.204-105.582-77.079-3.639-2.688-8.776-1.821-11.339 1.907l-9.072 13.196a7.998 7.998 0 0 0 1.839 10.967c22.887 16.899 55.454 40.69 105.303 76.868 20.274 14.781 56.524 47.813 92.264 47.573 35.724.242 71.961-32.771 92.263-47.573 49.85-36.179 82.418-59.97 105.303-76.868a7.998 7.998 0 0 0 1.839-10.967l-9.071-13.196z"] };
  3432. var faEnvelopeOpenText = { prefix: 'fas', iconName: 'envelope-open-text', icon: [512, 512, [], "f658", "M176 216h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16H176c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16zm-16 80c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16H176c-8.84 0-16 7.16-16 16v16zm96 121.13c-16.42 0-32.84-5.06-46.86-15.19L0 250.86V464c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V250.86L302.86 401.94c-14.02 10.12-30.44 15.19-46.86 15.19zm237.61-254.18c-8.85-6.94-17.24-13.47-29.61-22.81V96c0-26.51-21.49-48-48-48h-77.55c-3.04-2.2-5.87-4.26-9.04-6.56C312.6 29.17 279.2-.35 256 0c-23.2-.35-56.59 29.17-73.41 41.44-3.17 2.3-6 4.36-9.04 6.56H96c-26.51 0-48 21.49-48 48v44.14c-12.37 9.33-20.76 15.87-29.61 22.81A47.995 47.995 0 0 0 0 200.72v10.65l96 69.35V96h320v184.72l96-69.35v-10.65c0-14.74-6.78-28.67-18.39-37.77z"] };
  3433. var faEnvelopeSquare = { prefix: 'fas', iconName: 'envelope-square', icon: [448, 512, [], "f199", "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM178.117 262.104C87.429 196.287 88.353 196.121 64 177.167V152c0-13.255 10.745-24 24-24h272c13.255 0 24 10.745 24 24v25.167c-24.371 18.969-23.434 19.124-114.117 84.938-10.5 7.655-31.392 26.12-45.883 25.894-14.503.218-35.367-18.227-45.883-25.895zM384 217.775V360c0 13.255-10.745 24-24 24H88c-13.255 0-24-10.745-24-24V217.775c13.958 10.794 33.329 25.236 95.303 70.214 14.162 10.341 37.975 32.145 64.694 32.01 26.887.134 51.037-22.041 64.72-32.025 61.958-44.965 81.325-59.406 95.283-70.199z"] };
  3434. var faEquals = { prefix: 'fas', iconName: 'equals', icon: [448, 512, [], "f52c", "M416 304H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32zm0-192H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"] };
  3435. var faEraser = { prefix: 'fas', iconName: 'eraser', icon: [512, 512, [], "f12d", "M497.941 273.941c18.745-18.745 18.745-49.137 0-67.882l-160-160c-18.745-18.745-49.136-18.746-67.883 0l-256 256c-18.745 18.745-18.745 49.137 0 67.882l96 96A48.004 48.004 0 0 0 144 480h356c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12H355.883l142.058-142.059zm-302.627-62.627l137.373 137.373L265.373 416H150.628l-80-80 124.686-124.686z"] };
  3436. var faEuroSign = { prefix: 'fas', iconName: 'euro-sign', icon: [320, 512, [], "f153", "M310.706 413.765c-1.314-6.63-7.835-10.872-14.424-9.369-10.692 2.439-27.422 5.413-45.426 5.413-56.763 0-101.929-34.79-121.461-85.449h113.689a12 12 0 0 0 11.708-9.369l6.373-28.36c1.686-7.502-4.019-14.631-11.708-14.631H115.22c-1.21-14.328-1.414-28.287.137-42.245H261.95a12 12 0 0 0 11.723-9.434l6.512-29.755c1.638-7.484-4.061-14.566-11.723-14.566H130.184c20.633-44.991 62.69-75.03 117.619-75.03 14.486 0 28.564 2.25 37.851 4.145 6.216 1.268 12.347-2.498 14.002-8.623l11.991-44.368c1.822-6.741-2.465-13.616-9.326-14.917C290.217 34.912 270.71 32 249.635 32 152.451 32 74.03 92.252 45.075 176H12c-6.627 0-12 5.373-12 12v29.755c0 6.627 5.373 12 12 12h21.569c-1.009 13.607-1.181 29.287-.181 42.245H12c-6.627 0-12 5.373-12 12v28.36c0 6.627 5.373 12 12 12h30.114C67.139 414.692 145.264 480 249.635 480c26.301 0 48.562-4.544 61.101-7.788 6.167-1.595 10.027-7.708 8.788-13.957l-8.818-44.49z"] };
  3437. var faExchangeAlt = { prefix: 'fas', iconName: 'exchange-alt', icon: [512, 512, [], "f362", "M0 168v-16c0-13.255 10.745-24 24-24h360V80c0-21.367 25.899-32.042 40.971-16.971l80 80c9.372 9.373 9.372 24.569 0 33.941l-80 80C409.956 271.982 384 261.456 384 240v-48H24c-13.255 0-24-10.745-24-24zm488 152H128v-48c0-21.314-25.862-32.08-40.971-16.971l-80 80c-9.372 9.373-9.372 24.569 0 33.941l80 80C102.057 463.997 128 453.437 128 432v-48h360c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"] };
  3438. var faExclamation = { prefix: 'fas', iconName: 'exclamation', icon: [192, 512, [], "f12a", "M176 432c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80zM25.26 25.199l13.6 272C39.499 309.972 50.041 320 62.83 320h66.34c12.789 0 23.331-10.028 23.97-22.801l13.6-272C167.425 11.49 156.496 0 142.77 0H49.23C35.504 0 24.575 11.49 25.26 25.199z"] };
  3439. var faExclamationCircle = { prefix: 'fas', iconName: 'exclamation-circle', icon: [512, 512, [], "f06a", "M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"] };
  3440. var faExclamationTriangle = { prefix: 'fas', iconName: 'exclamation-triangle', icon: [576, 512, [], "f071", "M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"] };
  3441. var faExpand = { prefix: 'fas', iconName: 'expand', icon: [448, 512, [], "f065", "M0 180V56c0-13.3 10.7-24 24-24h124c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H64v84c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12zM288 44v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V56c0-13.3-10.7-24-24-24H300c-6.6 0-12 5.4-12 12zm148 276h-40c-6.6 0-12 5.4-12 12v84h-84c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24V332c0-6.6-5.4-12-12-12zM160 468v-40c0-6.6-5.4-12-12-12H64v-84c0-6.6-5.4-12-12-12H12c-6.6 0-12 5.4-12 12v124c0 13.3 10.7 24 24 24h124c6.6 0 12-5.4 12-12z"] };
  3442. var faExpandArrowsAlt = { prefix: 'fas', iconName: 'expand-arrows-alt', icon: [448, 512, [], "f31e", "M448.1 344v112c0 13.3-10.7 24-24 24h-112c-21.4 0-32.1-25.9-17-41l36.2-36.2L224 295.6 116.8 402.9 153 439c15.1 15.1 4.4 41-17 41H24c-13.3 0-24-10.7-24-24V344c0-21.4 25.9-32.1 41-17l36.2 36.2L184.5 256 77.2 148.7 41 185c-15.1 15.1-41 4.4-41-17V56c0-13.3 10.7-24 24-24h112c21.4 0 32.1 25.9 17 41l-36.2 36.2L224 216.4l107.3-107.3L295.1 73c-15.1-15.1-4.4-41 17-41h112c13.3 0 24 10.7 24 24v112c0 21.4-25.9 32.1-41 17l-36.2-36.2L263.6 256l107.3 107.3 36.2-36.2c15.1-15.2 41-4.5 41 16.9z"] };
  3443. var faExternalLinkAlt = { prefix: 'fas', iconName: 'external-link-alt', icon: [576, 512, [], "f35d", "M576 24v127.984c0 21.461-25.96 31.98-40.971 16.971l-35.707-35.709-243.523 243.523c-9.373 9.373-24.568 9.373-33.941 0l-22.627-22.627c-9.373-9.373-9.373-24.569 0-33.941L442.756 76.676l-35.703-35.705C391.982 25.9 402.656 0 424.024 0H552c13.255 0 24 10.745 24 24zM407.029 270.794l-16 16A23.999 23.999 0 0 0 384 303.765V448H64V128h264a24.003 24.003 0 0 0 16.97-7.029l16-16C376.089 89.851 365.381 64 344 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V287.764c0-21.382-25.852-32.09-40.971-16.97z"] };
  3444. var faExternalLinkSquareAlt = { prefix: 'fas', iconName: 'external-link-square-alt', icon: [448, 512, [], "f360", "M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zm-88 16H248.029c-21.313 0-32.08 25.861-16.971 40.971l31.984 31.987L67.515 364.485c-4.686 4.686-4.686 12.284 0 16.971l31.029 31.029c4.687 4.686 12.285 4.686 16.971 0l195.526-195.526 31.988 31.991C358.058 263.977 384 253.425 384 231.979V120c0-13.255-10.745-24-24-24z"] };
  3445. var faEye = { prefix: 'fas', iconName: 'eye', icon: [576, 512, [], "f06e", "M569.354 231.631C512.969 135.949 407.81 72 288 72 168.14 72 63.004 135.994 6.646 231.631a47.999 47.999 0 0 0 0 48.739C63.031 376.051 168.19 440 288 440c119.86 0 224.996-63.994 281.354-159.631a47.997 47.997 0 0 0 0-48.738zM288 392c-75.162 0-136-60.827-136-136 0-75.162 60.826-136 136-136 75.162 0 136 60.826 136 136 0 75.162-60.826 136-136 136zm104-136c0 57.438-46.562 104-104 104s-104-46.562-104-104c0-17.708 4.431-34.379 12.236-48.973l-.001.032c0 23.651 19.173 42.823 42.824 42.823s42.824-19.173 42.824-42.823c0-23.651-19.173-42.824-42.824-42.824l-.032.001C253.621 156.431 270.292 152 288 152c57.438 0 104 46.562 104 104z"] };
  3446. var faEyeDropper = { prefix: 'fas', iconName: 'eye-dropper', icon: [512, 512, [], "f1fb", "M50.75 333.25c-12 12-18.75 28.28-18.75 45.26V424L0 480l32 32 56-32h45.49c16.97 0 33.25-6.74 45.25-18.74l126.64-126.62-128-128L50.75 333.25zM483.88 28.12c-37.47-37.5-98.28-37.5-135.75 0l-77.09 77.09-13.1-13.1c-9.44-9.44-24.65-9.31-33.94 0l-40.97 40.97c-9.37 9.37-9.37 24.57 0 33.94l161.94 161.94c9.44 9.44 24.65 9.31 33.94 0L419.88 288c9.37-9.37 9.37-24.57 0-33.94l-13.1-13.1 77.09-77.09c37.51-37.48 37.51-98.26.01-135.75z"] };
  3447. var faEyeSlash = { prefix: 'fas', iconName: 'eye-slash', icon: [576, 512, [], "f070", "M286.693 391.984l32.579 46.542A333.958 333.958 0 0 1 288 440C168.19 440 63.031 376.051 6.646 280.369a47.999 47.999 0 0 1 0-48.739c24.023-40.766 56.913-75.775 96.024-102.537l57.077 81.539C154.736 224.82 152 240.087 152 256c0 74.736 60.135 135.282 134.693 135.984zm282.661-111.615c-31.667 53.737-78.747 97.46-135.175 125.475l.011.015 41.47 59.2c7.6 10.86 4.96 25.82-5.9 33.42l-13.11 9.18c-10.86 7.6-25.82 4.96-33.42-5.9L100.34 46.94c-7.6-10.86-4.96-25.82 5.9-33.42l13.11-9.18c10.86-7.6 25.82-4.96 33.42 5.9l51.038 72.617C230.68 75.776 258.905 72 288 72c119.81 0 224.969 63.949 281.354 159.631a48.002 48.002 0 0 1 0 48.738zM424 256c0-75.174-60.838-136-136-136-17.939 0-35.056 3.473-50.729 9.772l19.299 27.058c25.869-8.171 55.044-6.163 80.4 7.41h-.03c-23.65 0-42.82 19.17-42.82 42.82 0 23.626 19.147 42.82 42.82 42.82 23.65 0 42.82-19.17 42.82-42.82v-.03c18.462 34.49 16.312 77.914-8.25 110.95v.01l19.314 27.061C411.496 321.2 424 290.074 424 256zM262.014 356.727l-77.53-110.757c-5.014 52.387 29.314 98.354 77.53 110.757z"] };
  3448. var faFastBackward = { prefix: 'fas', iconName: 'fast-backward', icon: [512, 512, [], "f049", "M0 436V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v151.9L235.5 71.4C256.1 54.3 288 68.6 288 96v131.9L459.5 71.4C480.1 54.3 512 68.6 512 96v320c0 27.4-31.9 41.7-52.5 24.6L288 285.3V416c0 27.4-31.9 41.7-52.5 24.6L64 285.3V436c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12z"] };
  3449. var faFastForward = { prefix: 'fas', iconName: 'fast-forward', icon: [512, 512, [], "f050", "M512 76v360c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V284.1L276.5 440.6c-20.6 17.2-52.5 2.8-52.5-24.6V284.1L52.5 440.6C31.9 457.8 0 443.4 0 416V96c0-27.4 31.9-41.7 52.5-24.6L224 226.8V96c0-27.4 31.9-41.7 52.5-24.6L448 226.8V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12z"] };
  3450. var faFax = { prefix: 'fas', iconName: 'fax', icon: [512, 512, [], "f1ac", "M64 128H32c-17.67 0-32 14.33-32 32v320c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V160c0-17.67-14.33-32-32-32zm416 32V77.25c0-8.49-3.37-16.62-9.37-22.63L425.37 9.37c-6-6-14.14-9.37-22.63-9.37H160c-17.67 0-32 14.33-32 32v448c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32V192c0-17.67-14.33-32-32-32zM288 432c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm0-128c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm128 128c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm0-128c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm16-112H176V48h208v32c0 8.84 7.16 16 16 16h32v96z"] };
  3451. var faFeather = { prefix: 'fas', iconName: 'feather', icon: [512, 512, [], "f52d", "M467.14 44.84c-62.55-62.48-161.67-64.78-252.28 25.73-78.61 78.52-60.98 60.92-85.75 85.66-60.46 60.39-70.39 150.83-63.64 211.17l178.44-178.25c6.26-6.25 16.4-6.25 22.65 0s6.25 16.38 0 22.63L7.04 471.03c-9.38 9.37-9.38 24.57 0 33.94 9.38 9.37 24.6 9.37 33.98 0l66.1-66.03C159.42 454.65 279 457.11 353.95 384h-98.19l147.57-49.14c49.99-49.93 36.38-36.18 46.31-46.86h-97.78l131.54-43.8c45.44-74.46 34.31-148.84-16.26-199.36z"] };
  3452. var faFeatherAlt = { prefix: 'fas', iconName: 'feather-alt', icon: [512, 512, [], "f56b", "M512 0C460.22 3.56 96.44 38.2 71.01 287.61c-3.09 26.66-4.84 53.44-5.99 80.24l178.87-178.69c6.25-6.25 16.4-6.25 22.65 0s6.25 16.38 0 22.63L7.04 471.03c-9.38 9.37-9.38 24.57 0 33.94 9.38 9.37 24.59 9.37 33.98 0l57.13-57.07c42.09-.14 84.15-2.53 125.96-7.36 53.48-5.44 97.02-26.47 132.58-56.54H255.74l146.79-48.88c11.25-14.89 21.37-30.71 30.45-47.12h-81.14l106.54-53.21C500.29 132.86 510.19 26.26 512 0z"] };
  3453. var faFemale = { prefix: 'fas', iconName: 'female', icon: [256, 512, [], "f182", "M128 0c35.346 0 64 28.654 64 64s-28.654 64-64 64c-35.346 0-64-28.654-64-64S92.654 0 128 0m119.283 354.179l-48-192A24 24 0 0 0 176 144h-11.36c-22.711 10.443-49.59 10.894-73.28 0H80a24 24 0 0 0-23.283 18.179l-48 192C4.935 369.305 16.383 384 32 384h56v104c0 13.255 10.745 24 24 24h32c13.255 0 24-10.745 24-24V384h56c15.591 0 27.071-14.671 23.283-29.821z"] };
  3454. var faFighterJet = { prefix: 'fas', iconName: 'fighter-jet', icon: [640, 512, [], "f0fb", "M544 224l-128-16-48-16h-24L227.158 44h39.509C278.333 44 288 41.375 288 38s-9.667-6-21.333-6H152v12h16v164h-48l-66.667-80H18.667L8 138.667V208h8v16h48v2.666l-64 8v42.667l64 8V288H16v16H8v69.333L18.667 384h34.667L120 304h48v164h-16v12h114.667c11.667 0 21.333-2.625 21.333-6s-9.667-6-21.333-6h-39.509L344 320h24l48-16 128-16c96-21.333 96-26.583 96-32 0-5.417 0-10.667-96-32z"] };
  3455. var faFile = { prefix: 'fas', iconName: 'file', icon: [384, 512, [], "f15b", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  3456. var faFileAlt = { prefix: 'fas', iconName: 'file-alt', icon: [384, 512, [], "f15c", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 236c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-64c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-72v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm96-114.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  3457. var faFileArchive = { prefix: 'fas', iconName: 'file-archive', icon: [384, 512, [], "f1c6", "M224 136V0h-63.6v32h-32V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM95.9 32h32v32h-32V32zm32.3 384c-33.2 0-58-30.4-51.4-62.9L96.4 256v-32h32v-32h-32v-32h32v-32h-32V96h32V64h32v32h-32v32h32v32h-32v32h32v32h-32v32h22.1c5.7 0 10.7 4.1 11.8 9.7l17.3 87.7c6.4 32.4-18.4 62.6-51.4 62.6zm32.7-53c0 14.9-14.5 27-32.4 27S96 378 96 363c0-14.9 14.5-27 32.4-27s32.5 12.1 32.5 27zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  3458. var faFileAudio = { prefix: 'fas', iconName: 'file-audio', icon: [384, 512, [], "f1c7", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm-64 268c0 10.7-12.9 16-20.5 8.5L104 376H76c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h28l35.5-36.5c7.6-7.6 20.5-2.2 20.5 8.5v136zm33.2-47.6c9.1-9.3 9.1-24.1 0-33.4-22.1-22.8 12.2-56.2 34.4-33.5 27.2 27.9 27.2 72.4 0 100.4-21.8 22.3-56.9-10.4-34.4-33.5zm86-117.1c54.4 55.9 54.4 144.8 0 200.8-21.8 22.4-57-10.3-34.4-33.5 36.2-37.2 36.3-96.5 0-133.8-22.1-22.8 12.3-56.3 34.4-33.5zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  3459. var faFileCode = { prefix: 'fas', iconName: 'file-code', icon: [384, 512, [], "f1c9", "M384 121.941V128H256V0h6.059c6.365 0 12.47 2.529 16.971 7.029l97.941 97.941A24.005 24.005 0 0 1 384 121.941zM248 160c-13.2 0-24-10.8-24-24V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248zM123.206 400.505a5.4 5.4 0 0 1-7.633.246l-64.866-60.812a5.4 5.4 0 0 1 0-7.879l64.866-60.812a5.4 5.4 0 0 1 7.633.246l19.579 20.885a5.4 5.4 0 0 1-.372 7.747L101.65 336l40.763 35.874a5.4 5.4 0 0 1 .372 7.747l-19.579 20.884zm51.295 50.479l-27.453-7.97a5.402 5.402 0 0 1-3.681-6.692l61.44-211.626a5.402 5.402 0 0 1 6.692-3.681l27.452 7.97a5.4 5.4 0 0 1 3.68 6.692l-61.44 211.626a5.397 5.397 0 0 1-6.69 3.681zm160.792-111.045l-64.866 60.812a5.4 5.4 0 0 1-7.633-.246l-19.58-20.885a5.4 5.4 0 0 1 .372-7.747L284.35 336l-40.763-35.874a5.4 5.4 0 0 1-.372-7.747l19.58-20.885a5.4 5.4 0 0 1 7.633-.246l64.866 60.812a5.4 5.4 0 0 1-.001 7.879z"] };
  3460. var faFileContract = { prefix: 'fas', iconName: 'file-contract', icon: [384, 512, [], "f56c", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM64 72c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8V72zm0 64c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zm192.81 248H304c8.84 0 16 7.16 16 16s-7.16 16-16 16h-47.19c-16.45 0-31.27-9.14-38.64-23.86-2.95-5.92-8.09-6.52-10.17-6.52s-7.22.59-10.02 6.19l-7.67 15.34a15.986 15.986 0 0 1-14.31 8.84c-.38 0-.75-.02-1.14-.05-6.45-.45-12-4.75-14.03-10.89L144 354.59l-10.61 31.88c-5.89 17.66-22.38 29.53-41 29.53H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h12.39c4.83 0 9.11-3.08 10.64-7.66l18.19-54.64c3.3-9.81 12.44-16.41 22.78-16.41s19.48 6.59 22.77 16.41l13.88 41.64c19.77-16.19 54.05-9.7 66 14.16 2.02 4.06 5.96 6.5 10.16 6.5zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  3461. var faFileCsv = { prefix: 'fas', iconName: 'file-csv', icon: [384, 512, [], "f6dd", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm-96 144c0 4.42-3.58 8-8 8h-8c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h8c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-8c-26.51 0-48-21.49-48-48v-32c0-26.51 21.49-48 48-48h8c4.42 0 8 3.58 8 8v16zm44.27 104H160c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h12.27c5.95 0 10.41-3.5 10.41-6.62 0-1.3-.75-2.66-2.12-3.84l-21.89-18.77c-8.47-7.22-13.33-17.48-13.33-28.14 0-21.3 19.02-38.62 42.41-38.62H200c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-12.27c-5.95 0-10.41 3.5-10.41 6.62 0 1.3.75 2.66 2.12 3.84l21.89 18.77c8.47 7.22 13.33 17.48 13.33 28.14.01 21.29-19 38.62-42.39 38.62zM256 264v20.8c0 20.27 5.7 40.17 16 56.88 10.3-16.7 16-36.61 16-56.88V264c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v20.8c0 35.48-12.88 68.89-36.28 94.09-3.02 3.25-7.27 5.11-11.72 5.11s-8.7-1.86-11.72-5.11c-23.4-25.2-36.28-58.61-36.28-94.09V264c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8zm121-159L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  3462. var faFileDownload = { prefix: 'fas', iconName: 'file-download', icon: [384, 512, [], "f56d", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm76.45 211.36l-96.42 95.7c-6.65 6.61-17.39 6.61-24.04 0l-96.42-95.7C73.42 337.29 80.54 320 94.82 320H160v-80c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v80h65.18c14.28 0 21.4 17.29 11.27 27.36zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  3463. var faFileExcel = { prefix: 'fas', iconName: 'file-excel', icon: [384, 512, [], "f1c3", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm60.1 106.5L224 336l60.1 93.5c5.1 8-.6 18.5-10.1 18.5h-34.9c-4.4 0-8.5-2.4-10.6-6.3C208.9 405.5 192 373 192 373c-6.4 14.8-10 20-36.6 68.8-2.1 3.9-6.1 6.3-10.5 6.3H110c-9.5 0-15.2-10.5-10.1-18.5l60.3-93.5-60.3-93.5c-5.2-8 .6-18.5 10.1-18.5h34.8c4.4 0 8.5 2.4 10.6 6.3 26.1 48.8 20 33.6 36.6 68.5 0 0 6.1-11.7 36.6-68.5 2.1-3.9 6.2-6.3 10.6-6.3H274c9.5-.1 15.2 10.4 10.1 18.4zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  3464. var faFileExport = { prefix: 'fas', iconName: 'file-export', icon: [576, 512, [], "f56e", "M384 121.9c0-6.3-2.5-12.4-7-16.9L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1zM192 336v-32c0-8.84 7.16-16 16-16h176V160H248c-13.2 0-24-10.8-24-24V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V352H208c-8.84 0-16-7.16-16-16zm379.05-28.02l-95.7-96.43c-10.06-10.14-27.36-3.01-27.36 11.27V288H384v64h63.99v65.18c0 14.28 17.29 21.41 27.36 11.27l95.7-96.42c6.6-6.66 6.6-17.4 0-24.05z"] };
  3465. var faFileImage = { prefix: 'fas', iconName: 'file-image', icon: [384, 512, [], "f1c5", "M384 121.941V128H256V0h6.059a24 24 0 0 1 16.97 7.029l97.941 97.941a24.002 24.002 0 0 1 7.03 16.971zM248 160c-13.2 0-24-10.8-24-24V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248zm-135.455 16c26.51 0 48 21.49 48 48s-21.49 48-48 48-48-21.49-48-48 21.491-48 48-48zm208 240h-256l.485-48.485L104.545 328c4.686-4.686 11.799-4.201 16.485.485L160.545 368 264.06 264.485c4.686-4.686 12.284-4.686 16.971 0L320.545 304v112z"] };
  3466. var faFileImport = { prefix: 'fas', iconName: 'file-import', icon: [512, 512, [], "f56f", "M16 288c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h112v-64H16zm336-152V0H152c-13.3 0-24 10.7-24 24v264h127.99v-65.18c0-14.28 17.29-21.41 27.36-11.27l95.7 96.43c6.6 6.65 6.6 17.39 0 24.04l-95.7 96.42c-10.06 10.14-27.36 3.01-27.36-11.27V352H128v136c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H376c-13.2 0-24-10.8-24-24zm153-31L407.1 7c-4.5-4.5-10.6-7-17-7H384v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  3467. var faFileInvoice = { prefix: 'fas', iconName: 'file-invoice', icon: [384, 512, [], "f570", "M288 256H96v64h192v-64zm89-151L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM64 72c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8V72zm0 64c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zm256 304c0 4.42-3.58 8-8 8h-80c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16zm0-200v96c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-96c0-8.84 7.16-16 16-16h224c8.84 0 16 7.16 16 16z"] };
  3468. var faFileInvoiceDollar = { prefix: 'fas', iconName: 'file-invoice-dollar', icon: [384, 512, [], "f571", "M377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM64 72c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8V72zm0 80v-16c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8zm144 263.88V440c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-24.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V232c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v24.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.05 44.44-42.67 45.07z"] };
  3469. var faFileMedical = { prefix: 'fas', iconName: 'file-medical', icon: [384, 512, [], "f477", "M377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 160v48c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8z"] };
  3470. var faFileMedicalAlt = { prefix: 'fas', iconName: 'file-medical-alt', icon: [448, 512, [], "f478", "M288 136V0H88C74.7 0 64 10.7 64 24v232H8c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h140.9c3 0 5.8 1.7 7.2 4.4l19.9 39.8 56.8-113.7c2.9-5.9 11.4-5.9 14.3 0l34.7 69.5H352c8.8 0 16 7.2 16 16s-7.2 16-16 16h-89.9L240 275.8l-56.8 113.7c-2.9 5.9-11.4 5.9-14.3 0L134.1 320H64v168c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H312c-13.2 0-24-10.8-24-24zm153-31L343.1 7c-4.5-4.5-10.6-7-17-7H320v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  3471. var faFilePdf = { prefix: 'fas', iconName: 'file-pdf', icon: [384, 512, [], "f1c1", "M181.9 256.1c-5-16-4.9-46.9-2-46.9 8.4 0 7.6 36.9 2 46.9zm-1.7 47.2c-7.7 20.2-17.3 43.3-28.4 62.7 18.3-7 39-17.2 62.9-21.9-12.7-9.6-24.9-23.4-34.5-40.8zM86.1 428.1c0 .8 13.2-5.4 34.9-40.2-6.7 6.3-29.1 24.5-34.9 40.2zM248 160h136v328c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V24C0 10.7 10.7 0 24 0h200v136c0 13.2 10.8 24 24 24zm-8 171.8c-20-12.2-33.3-29-42.7-53.8 4.5-18.5 11.6-46.6 6.2-64.2-4.7-29.4-42.4-26.5-47.8-6.8-5 18.3-.4 44.1 8.1 77-11.6 27.6-28.7 64.6-40.8 85.8-.1 0-.1.1-.2.1-27.1 13.9-73.6 44.5-54.5 68 5.6 6.9 16 10 21.5 10 17.9 0 35.7-18 61.1-61.8 25.8-8.5 54.1-19.1 79-23.2 21.7 11.8 47.1 19.5 64 19.5 29.2 0 31.2-32 19.7-43.4-13.9-13.6-54.3-9.7-73.6-7.2zM377 105L279 7c-4.5-4.5-10.6-7-17-7h-6v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-74.1 255.3c4.1-2.7-2.5-11.9-42.8-9 37.1 15.8 42.8 9 42.8 9z"] };
  3472. var faFilePowerpoint = { prefix: 'fas', iconName: 'file-powerpoint', icon: [384, 512, [], "f1c4", "M193.7 271.2c8.8 0 15.5 2.7 20.3 8.1 9.6 10.9 9.8 32.7-.2 44.1-4.9 5.6-11.9 8.5-21.1 8.5h-26.9v-60.7h27.9zM377 105L279 7c-4.5-4.5-10.6-7-17-7h-6v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm53 165.2c0 90.3-88.8 77.6-111.1 77.6V436c0 6.6-5.4 12-12 12h-30.8c-6.6 0-12-5.4-12-12V236.2c0-6.6 5.4-12 12-12h81c44.5 0 72.9 32.8 72.9 77z"] };
  3473. var faFilePrescription = { prefix: 'fas', iconName: 'file-prescription', icon: [384, 512, [], "f572", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm68.53 179.48l11.31 11.31c6.25 6.25 6.25 16.38 0 22.63l-29.9 29.9L304 409.38c6.25 6.25 6.25 16.38 0 22.63l-11.31 11.31c-6.25 6.25-16.38 6.25-22.63 0L240 413.25l-30.06 30.06c-6.25 6.25-16.38 6.25-22.63 0L176 432c-6.25-6.25-6.25-16.38 0-22.63l30.06-30.06L146.74 320H128v48c0 8.84-7.16 16-16 16H96c-8.84 0-16-7.16-16-16V208c0-8.84 7.16-16 16-16h80c35.35 0 64 28.65 64 64 0 24.22-13.62 45.05-33.46 55.92L240 345.38l29.9-29.9c6.25-6.25 16.38-6.25 22.63 0zM176 272h-48v-32h48c8.82 0 16 7.18 16 16s-7.18 16-16 16zm208-150.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  3474. var faFileSignature = { prefix: 'fas', iconName: 'file-signature', icon: [576, 512, [], "f573", "M218.17 424.14c-2.95-5.92-8.09-6.52-10.17-6.52s-7.22.59-10.02 6.19l-7.67 15.34c-6.37 12.78-25.03 11.37-29.48-2.09L144 386.59l-10.61 31.88c-5.89 17.66-22.38 29.53-41 29.53H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h12.39c4.83 0 9.11-3.08 10.64-7.66l18.19-54.64c3.3-9.81 12.44-16.41 22.78-16.41s19.48 6.59 22.77 16.41l13.88 41.64c19.75-16.19 54.06-9.7 66 14.16 1.89 3.78 5.49 5.95 9.36 6.26v-82.12l128-127.09V160H248c-13.2 0-24-10.8-24-24V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24v-40l-128-.11c-16.12-.31-30.58-9.28-37.83-23.75zM384 121.9c0-6.3-2.5-12.4-7-16.9L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1zm-96 225.06V416h68.99l161.68-162.78-67.88-67.88L288 346.96zm280.54-179.63l-31.87-31.87c-9.94-9.94-26.07-9.94-36.01 0l-27.25 27.25 67.88 67.88 27.25-27.25c9.95-9.94 9.95-26.07 0-36.01z"] };
  3475. var faFileUpload = { prefix: 'fas', iconName: 'file-upload', icon: [384, 512, [], "f574", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm65.18 216.01H224v80c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-80H94.82c-14.28 0-21.41-17.29-11.27-27.36l96.42-95.7c6.65-6.61 17.39-6.61 24.04 0l96.42 95.7c10.15 10.07 3.03 27.36-11.25 27.36zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  3476. var faFileVideo = { prefix: 'fas', iconName: 'file-video', icon: [384, 512, [], "f1c8", "M384 121.941V128H256V0h6.059c6.365 0 12.47 2.529 16.971 7.029l97.941 97.941A24.005 24.005 0 0 1 384 121.941zM224 136V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248c-13.2 0-24-10.8-24-24zm96 144.016v111.963c0 21.445-25.943 31.998-40.971 16.971L224 353.941V392c0 13.255-10.745 24-24 24H88c-13.255 0-24-10.745-24-24V280c0-13.255 10.745-24 24-24h112c13.255 0 24 10.745 24 24v38.059l55.029-55.013c15.011-15.01 40.971-4.491 40.971 16.97z"] };
  3477. var faFileWord = { prefix: 'fas', iconName: 'file-word', icon: [384, 512, [], "f1c2", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm57.1 120H305c7.7 0 13.4 7.1 11.7 14.7l-38 168c-1.2 5.5-6.1 9.3-11.7 9.3h-38c-5.5 0-10.3-3.8-11.6-9.1-25.8-103.5-20.8-81.2-25.6-110.5h-.5c-1.1 14.3-2.4 17.4-25.6 110.5-1.3 5.3-6.1 9.1-11.6 9.1H117c-5.6 0-10.5-3.9-11.7-9.4l-37.8-168c-1.7-7.5 4-14.6 11.7-14.6h24.5c5.7 0 10.7 4 11.8 9.7 15.6 78 20.1 109.5 21 122.2 1.6-10.2 7.3-32.7 29.4-122.7 1.3-5.4 6.1-9.1 11.7-9.1h29.1c5.6 0 10.4 3.8 11.7 9.2 24 100.4 28.8 124 29.6 129.4-.2-11.2-2.6-17.8 21.6-129.2 1-5.6 5.9-9.5 11.5-9.5zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  3478. var faFill = { prefix: 'fas', iconName: 'fill', icon: [512, 512, [], "f575", "M502.63 217.06L294.94 9.37C288.69 3.12 280.5 0 272.31 0s-16.38 3.12-22.62 9.37l-81.58 81.58L81.93 4.77c-6.24-6.25-16.38-6.25-22.62 0L36.69 27.38c-6.24 6.25-6.24 16.38 0 22.63l86.19 86.18-94.76 94.76c-37.49 37.49-37.49 98.26 0 135.75l117.19 117.19c18.75 18.74 43.31 28.12 67.87 28.12 24.57 0 49.13-9.37 67.88-28.12l221.57-221.57c12.49-12.5 12.49-32.76 0-45.26zm-116.22 70.97H65.93c1.36-3.84 3.57-7.98 7.43-11.83l13.15-13.15 81.61-81.61 58.61 58.6c12.49 12.49 32.75 12.49 45.24 0 12.49-12.49 12.49-32.75 0-45.24l-58.61-58.6 58.95-58.95 162.45 162.44-48.35 48.34z"] };
  3479. var faFillDrip = { prefix: 'fas', iconName: 'fill-drip', icon: [576, 512, [], "f576", "M512 320s-64 92.65-64 128c0 35.35 28.66 64 64 64s64-28.65 64-64-64-128-64-128zm-9.37-102.94L294.94 9.37C288.69 3.12 280.5 0 272.31 0s-16.38 3.12-22.62 9.37l-81.58 81.58L81.93 4.76c-6.25-6.25-16.38-6.25-22.62 0L36.69 27.38c-6.24 6.25-6.24 16.38 0 22.62l86.19 86.18-94.76 94.76c-37.49 37.48-37.49 98.26 0 135.75l117.19 117.19c18.74 18.74 43.31 28.12 67.87 28.12 24.57 0 49.13-9.37 67.87-28.12l221.57-221.57c12.5-12.5 12.5-32.75.01-45.25zm-116.22 70.97H65.93c1.36-3.84 3.57-7.98 7.43-11.83l13.15-13.15 81.61-81.61 58.6 58.6c12.49 12.49 32.75 12.49 45.24 0s12.49-32.75 0-45.24l-58.6-58.6 58.95-58.95 162.44 162.44-48.34 48.34z"] };
  3480. var faFilm = { prefix: 'fas', iconName: 'film', icon: [512, 512, [], "f008", "M488 64h-8v20c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V64H96v20c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12V64h-8C10.7 64 0 74.7 0 88v336c0 13.3 10.7 24 24 24h8v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h320v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h8c13.3 0 24-10.7 24-24V88c0-13.3-10.7-24-24-24zM96 372c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm272 208c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm0-168c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm112 152c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40z"] };
  3481. var faFilter = { prefix: 'fas', iconName: 'filter', icon: [512, 512, [], "f0b0", "M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z"] };
  3482. var faFingerprint = { prefix: 'fas', iconName: 'fingerprint', icon: [512, 512, [], "f577", "M256.12 245.96c-13.25 0-24 10.74-24 24 1.14 72.25-8.14 141.9-27.7 211.55-2.73 9.72 2.15 30.49 23.12 30.49 10.48 0 20.11-6.92 23.09-17.52 13.53-47.91 31.04-125.41 29.48-224.52.01-13.25-10.73-24-23.99-24zm-.86-81.73C194 164.16 151.25 211.3 152.1 265.32c.75 47.94-3.75 95.91-13.37 142.55-2.69 12.98 5.67 25.69 18.64 28.36 13.05 2.67 25.67-5.66 28.36-18.64 10.34-50.09 15.17-101.58 14.37-153.02-.41-25.95 19.92-52.49 54.45-52.34 31.31.47 57.15 25.34 57.62 55.47.77 48.05-2.81 96.33-10.61 143.55-2.17 13.06 6.69 25.42 19.76 27.58 19.97 3.33 26.81-15.1 27.58-19.77 8.28-50.03 12.06-101.21 11.27-152.11-.88-55.8-47.94-101.88-104.91-102.72zm-110.69-19.78c-10.3-8.34-25.37-6.8-33.76 3.48-25.62 31.5-39.39 71.28-38.75 112 .59 37.58-2.47 75.27-9.11 112.05-2.34 13.05 6.31 25.53 19.36 27.89 20.11 3.5 27.07-14.81 27.89-19.36 7.19-39.84 10.5-80.66 9.86-121.33-.47-29.88 9.2-57.88 28-80.97 8.35-10.28 6.79-25.39-3.49-33.76zm109.47-62.33c-15.41-.41-30.87 1.44-45.78 4.97-12.89 3.06-20.87 15.98-17.83 28.89 3.06 12.89 16 20.83 28.89 17.83 11.05-2.61 22.47-3.77 34-3.69 75.43 1.13 137.73 61.5 138.88 134.58.59 37.88-1.28 76.11-5.58 113.63-1.5 13.17 7.95 25.08 21.11 26.58 16.72 1.95 25.51-11.88 26.58-21.11a929.06 929.06 0 0 0 5.89-119.85c-1.56-98.75-85.07-180.33-186.16-181.83zm252.07 121.45c-2.86-12.92-15.51-21.2-28.61-18.27-12.94 2.86-21.12 15.66-18.26 28.61 4.71 21.41 4.91 37.41 4.7 61.6-.11 13.27 10.55 24.09 23.8 24.2h.2c13.17 0 23.89-10.61 24-23.8.18-22.18.4-44.11-5.83-72.34zm-40.12-90.72C417.29 43.46 337.6 1.29 252.81.02 183.02-.82 118.47 24.91 70.46 72.94 24.09 119.37-.9 181.04.14 246.65l-.12 21.47c-.39 13.25 10.03 24.31 23.28 24.69.23.02.48.02.72.02 12.92 0 23.59-10.3 23.97-23.3l.16-23.64c-.83-52.5 19.16-101.86 56.28-139 38.76-38.8 91.34-59.67 147.68-58.86 69.45 1.03 134.73 35.56 174.62 92.39 7.61 10.86 22.56 13.45 33.42 5.86 10.84-7.62 13.46-22.59 5.84-33.43z"] };
  3483. var faFire = { prefix: 'fas', iconName: 'fire', icon: [384, 512, [], "f06d", "M216 23.858c0-23.802-30.653-32.765-44.149-13.038C48 191.851 224 200 224 288c0 35.629-29.114 64.458-64.85 63.994C123.98 351.538 96 322.22 96 287.046v-85.51c0-21.703-26.471-32.225-41.432-16.504C27.801 213.158 0 261.332 0 320c0 105.869 86.131 192 192 192s192-86.131 192-192c0-170.29-168-193.003-168-296.142z"] };
  3484. var faFireExtinguisher = { prefix: 'fas', iconName: 'fire-extinguisher', icon: [448, 512, [], "f134", "M434.027 26.329l-168 28C254.693 56.218 256 67.8 256 72h-58.332C208.353 36.108 181.446 0 144 0c-39.435 0-66.368 39.676-52.228 76.203-52.039 13.051-75.381 54.213-90.049 90.884-4.923 12.307 1.063 26.274 13.37 31.197 12.317 4.926 26.279-1.075 31.196-13.37C75.058 112.99 106.964 120 168 120v27.076c-41.543 10.862-72 49.235-72 94.129V488c0 13.255 10.745 24 24 24h144c13.255 0 24-10.745 24-24V240c0-44.731-30.596-82.312-72-92.97V120h40c0 2.974-1.703 15.716 10.027 17.671l168 28C441.342 166.89 448 161.25 448 153.834V38.166c0-7.416-6.658-13.056-13.973-11.837zM144 72c-8.822 0-16-7.178-16-16s7.178-16 16-16 16 7.178 16 16-7.178 16-16 16z"] };
  3485. var faFirstAid = { prefix: 'fas', iconName: 'first-aid', icon: [576, 512, [], "f479", "M0 80v352c0 26.5 21.5 48 48 48h48V32H48C21.5 32 0 53.5 0 80zm128 400h320V32H128v448zm64-248c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48zM528 32h-48v448h48c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"] };
  3486. var faFish = { prefix: 'fas', iconName: 'fish', icon: [576, 512, [], "f578", "M327.1 96c-89.97 0-168.54 54.77-212.27 101.63L27.5 131.58c-12.13-9.18-30.24.6-27.14 14.66L24.54 256 .35 365.77c-3.1 14.06 15.01 23.83 27.14 14.66l87.33-66.05C158.55 361.23 237.13 416 327.1 416 464.56 416 576 288 576 256S464.56 96 327.1 96zm87.43 184c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24 13.26 0 24 10.74 24 24 0 13.25-10.75 24-24 24z"] };
  3487. var faFistRaised = { prefix: 'fas', iconName: 'fist-raised', icon: [384, 512, [], "f6de", "M255.98 160V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v146.93c5.02-1.78 10.34-2.93 15.97-2.93h48.03zm128 95.99c-.01-35.34-28.66-63.99-63.99-63.99H207.85c-8.78 0-15.9 7.07-15.9 15.85v.56c0 26.27 21.3 47.59 47.57 47.59h35.26c9.68 0 13.2 3.58 13.2 8v16.2c0 4.29-3.59 7.78-7.88 8-44.52 2.28-64.16 24.71-96.05 72.55l-6.31 9.47a7.994 7.994 0 0 1-11.09 2.22l-13.31-8.88a7.994 7.994 0 0 1-2.22-11.09l6.31-9.47c15.73-23.6 30.2-43.26 47.31-58.08-17.27-5.51-31.4-18.12-38.87-34.45-6.59 3.41-13.96 5.52-21.87 5.52h-32c-12.34 0-23.49-4.81-32-12.48C71.48 251.19 60.33 256 48 256H16c-5.64 0-10.97-1.15-16-2.95v77.93c0 33.95 13.48 66.5 37.49 90.51L63.99 448v64h255.98v-63.96l35.91-35.92A96.035 96.035 0 0 0 384 344.21l-.02-88.22zm-32.01-90.09V48c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v112h32c11.28 0 21.94 2.31 32 5.9zM16 224h32c8.84 0 16-7.16 16-16V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v128c0 8.84 7.16 16 16 16zm95.99 0h32c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v160c0 8.84 7.16 16 16 16z"] };
  3488. var faFlag = { prefix: 'fas', iconName: 'flag', icon: [512, 512, [], "f024", "M349.565 98.783C295.978 98.783 251.721 64 184.348 64c-24.955 0-47.309 4.384-68.045 12.013a55.947 55.947 0 0 0 3.586-23.562C118.117 24.015 94.806 1.206 66.338.048 34.345-1.254 8 24.296 8 56c0 19.026 9.497 35.825 24 45.945V488c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-94.4c28.311-12.064 63.582-22.122 114.435-22.122 53.588 0 97.844 34.783 165.217 34.783 48.169 0 86.667-16.294 122.505-40.858C506.84 359.452 512 349.571 512 339.045v-243.1c0-23.393-24.269-38.87-45.485-29.016-34.338 15.948-76.454 31.854-116.95 31.854z"] };
  3489. var faFlagCheckered = { prefix: 'fas', iconName: 'flag-checkered', icon: [512, 512, [], "f11e", "M466.515 66.928C487.731 57.074 512 72.551 512 95.944v243.1c0 10.526-5.161 20.407-13.843 26.358-35.837 24.564-74.335 40.858-122.505 40.858-67.373 0-111.63-34.783-165.217-34.783-50.853 0-86.124 10.058-114.435 22.122V488c0 13.255-10.745 24-24 24H56c-13.255 0-24-10.745-24-24V101.945C17.497 91.825 8 75.026 8 56 8 24.296 34.345-1.254 66.338.048c28.468 1.158 51.779 23.968 53.551 52.404.52 8.342-.81 16.31-3.586 23.562C137.039 68.384 159.393 64 184.348 64c67.373 0 111.63 34.783 165.217 34.783 40.496 0 82.612-15.906 116.95-31.855zM96 134.63v70.49c29-10.67 51.18-17.83 73.6-20.91v-71.57c-23.5 2.17-40.44 9.79-73.6 21.99zm220.8 9.19c-26.417-4.672-49.886-13.979-73.6-21.34v67.42c24.175 6.706 47.566 16.444 73.6 22.31v-68.39zm-147.2 40.39v70.04c32.796-2.978 53.91-.635 73.6 3.8V189.9c-25.247-7.035-46.581-9.423-73.6-5.69zm73.6 142.23c26.338 4.652 49.732 13.927 73.6 21.34v-67.41c-24.277-6.746-47.54-16.45-73.6-22.32v68.39zM96 342.1c23.62-8.39 47.79-13.84 73.6-16.56v-71.29c-26.11 2.35-47.36 8.04-73.6 17.36v70.49zm368-221.6c-21.3 8.85-46.59 17.64-73.6 22.47v71.91c27.31-4.36 50.03-14.1 73.6-23.89V120.5zm0 209.96v-70.49c-22.19 14.2-48.78 22.61-73.6 26.02v71.58c25.07-2.38 48.49-11.04 73.6-27.11zM316.8 212.21v68.16c25.664 7.134 46.616 9.342 73.6 5.62v-71.11c-25.999 4.187-49.943 2.676-73.6-2.67z"] };
  3490. var faFlask = { prefix: 'fas', iconName: 'flask', icon: [448, 512, [], "f0c3", "M437.2 403.5L320 215V64h8c13.3 0 24-10.7 24-24V24c0-13.3-10.7-24-24-24H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h8v151L10.8 403.5C-18.5 450.6 15.3 512 70.9 512h306.2c55.7 0 89.4-61.5 60.1-108.5zM137.9 320l48.2-77.6c3.7-5.2 5.8-11.6 5.8-18.4V64h64v160c0 6.9 2.2 13.2 5.8 18.4l48.2 77.6h-172z"] };
  3491. var faFlushed = { prefix: 'fas', iconName: 'flushed', icon: [496, 512, [], "f579", "M344 200c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm-192 0c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zM248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM80 224c0-39.8 32.2-72 72-72s72 32.2 72 72-32.2 72-72 72-72-32.2-72-72zm232 176H184c-21.2 0-21.2-32 0-32h128c21.2 0 21.2 32 0 32zm32-104c-39.8 0-72-32.2-72-72s32.2-72 72-72 72 32.2 72 72-32.2 72-72 72z"] };
  3492. var faFolder = { prefix: 'fas', iconName: 'folder', icon: [512, 512, [], "f07b", "M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48z"] };
  3493. var faFolderMinus = { prefix: 'fas', iconName: 'folder-minus', icon: [512, 512, [], "f65d", "M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48zm-96 168c0 8.84-7.16 16-16 16H160c-8.84 0-16-7.16-16-16v-16c0-8.84 7.16-16 16-16h192c8.84 0 16 7.16 16 16v16z"] };
  3494. var faFolderOpen = { prefix: 'fas', iconName: 'folder-open', icon: [576, 512, [], "f07c", "M572.694 292.093L500.27 416.248A63.997 63.997 0 0 1 444.989 448H45.025c-18.523 0-30.064-20.093-20.731-36.093l72.424-124.155A64 64 0 0 1 152 256h399.964c18.523 0 30.064 20.093 20.73 36.093zM152 224h328v-48c0-26.51-21.49-48-48-48H272l-64-64H48C21.49 64 0 85.49 0 112v278.046l69.077-118.418C86.214 242.25 117.989 224 152 224z"] };
  3495. var faFolderPlus = { prefix: 'fas', iconName: 'folder-plus', icon: [512, 512, [], "f65e", "M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48zm-96 168c0 8.84-7.16 16-16 16h-72v72c0 8.84-7.16 16-16 16h-16c-8.84 0-16-7.16-16-16v-72h-72c-8.84 0-16-7.16-16-16v-16c0-8.84 7.16-16 16-16h72v-72c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v72h72c8.84 0 16 7.16 16 16v16z"] };
  3496. var faFont = { prefix: 'fas', iconName: 'font', icon: [448, 512, [], "f031", "M152 416h-24.013l26.586-80.782H292.8L319.386 416H296c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h136c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-26.739L275.495 42.746A16 16 0 0 0 260.382 32h-72.766a16 16 0 0 0-15.113 10.746L42.739 416H16c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h136c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm64.353-271.778c4.348-15.216 6.61-28.156 7.586-34.644.839 6.521 2.939 19.476 7.727 34.706l41.335 124.006h-98.619l41.971-124.068z"] };
  3497. var faFontAwesomeLogoFull = { prefix: 'fas', iconName: 'font-awesome-logo-full', icon: [3992, 512, ["Font Awesome"], "f4e6", "M454.6 0H57.4C25.9 0 0 25.9 0 57.4v397.3C0 486.1 25.9 512 57.4 512h397.3c31.4 0 57.4-25.9 57.4-57.4V57.4C512 25.9 486.1 0 454.6 0zm-58.9 324.9c0 4.8-4.1 6.9-8.9 8.9-19.2 8.1-39.7 15.7-61.5 15.7-40.5 0-68.7-44.8-163.2 2.5v51.8c0 30.3-45.7 30.2-45.7 0v-250c-9-7-15-17.9-15-30.3 0-21 17.1-38.2 38.2-38.2 21 0 38.2 17.1 38.2 38.2 0 12.2-5.8 23.2-14.9 30.2v21c37.1-12 65.5-34.4 146.1-3.4 26.6 11.4 68.7-15.7 76.5-15.7 5.5 0 10.3 4.1 10.3 8.9v160.4zm432.9-174.2h-137v70.1H825c39.8 0 40.4 62.2 0 62.2H691.6v105.6c0 45.5-70.7 46.4-70.7 0V128.3c0-22 18-39.8 39.8-39.8h167.8c39.6 0 40.5 62.2.1 62.2zm191.1 23.4c-169.3 0-169.1 252.4 0 252.4 169.9 0 169.9-252.4 0-252.4zm0 196.1c-81.6 0-82.1-139.8 0-139.8 82.5 0 82.4 139.8 0 139.8zm372.4 53.4c-17.5 0-31.4-13.9-31.4-31.4v-117c0-62.4-72.6-52.5-99.1-16.4v133.4c0 41.5-63.3 41.8-63.3 0V208c0-40 63.1-41.6 63.1 0v3.4c43.3-51.6 162.4-60.4 162.4 39.3v141.5c.3 30.4-31.5 31.4-31.7 31.4zm179.7 2.9c-44.3 0-68.3-22.9-68.3-65.8V235.2H1488c-35.6 0-36.7-55.3 0-55.3h15.5v-37.3c0-41.3 63.8-42.1 63.8 0v37.5h24.9c35.4 0 35.7 55.3 0 55.3h-24.9v108.5c0 29.6 26.1 26.3 27.4 26.3 31.4 0 52.6 56.3-22.9 56.3zM1992 123c-19.5-50.2-95.5-50-114.5 0-107.3 275.7-99.5 252.7-99.5 262.8 0 42.8 58.3 51.2 72.1 14.4l13.5-35.9H2006l13 35.9c14.2 37.7 72.1 27.2 72.1-14.4 0-10.1 5.3 6.8-99.1-262.8zm-108.9 179.1l51.7-142.9 51.8 142.9h-103.5zm591.3-85.6l-53.7 176.3c-12.4 41.2-72 41-84 0l-42.3-135.9-42.3 135.9c-12.4 40.9-72 41.2-84.5 0l-54.2-176.3c-12.5-39.4 49.8-56.1 60.2-16.9L2213 342l45.3-139.5c10.9-32.7 59.6-34.7 71.2 0l45.3 139.5 39.3-142.4c10.3-38.3 72.6-23.8 60.3 16.9zm275.4 75.1c0-42.4-33.9-117.5-119.5-117.5-73.2 0-124.4 56.3-124.4 126 0 77.2 55.3 126.4 128.5 126.4 31.7 0 93-11.5 93-39.8 0-18.3-21.1-31.5-39.3-22.4-49.4 26.2-109 8.4-115.9-43.8h148.3c16.3 0 29.3-13.4 29.3-28.9zM2571 277.7c9.5-73.4 113.9-68.6 118.6 0H2571zm316.7 148.8c-31.4 0-81.6-10.5-96.6-31.9-12.4-17 2.5-39.8 21.8-39.8 16.3 0 36.8 22.9 77.7 22.9 27.4 0 40.4-11 40.4-25.8 0-39.8-142.9-7.4-142.9-102 0-40.4 35.3-75.7 98.6-75.7 31.4 0 74.1 9.9 87.6 29.4 10.8 14.8-1.4 36.2-20.9 36.2-15.1 0-26.7-17.3-66.2-17.3-22.9 0-37.8 10.5-37.8 23.8 0 35.9 142.4 6 142.4 103.1-.1 43.7-37.4 77.1-104.1 77.1zm266.8-252.4c-169.3 0-169.1 252.4 0 252.4 170.1 0 169.6-252.4 0-252.4zm0 196.1c-81.8 0-82-139.8 0-139.8 82.5 0 82.4 139.8 0 139.8zm476.9 22V268.7c0-53.8-61.4-45.8-85.7-10.5v134c0 41.3-63.8 42.1-63.8 0V268.7c0-52.1-59.5-47.4-85.7-10.1v133.6c0 41.5-63.3 41.8-63.3 0V208c0-40 63.1-41.6 63.1 0v3.4c9.9-14.4 41.8-37.3 78.6-37.3 35.3 0 57.7 16.4 66.7 43.8 13.9-21.8 45.8-43.8 82.6-43.8 44.3 0 70.7 23.4 70.7 72.7v145.3c.5 17.3-13.5 31.4-31.9 31.4 3.5.1-31.3 1.1-31.3-31.3zM3992 291.6c0-42.4-32.4-117.5-117.9-117.5-73.2 0-127.5 56.3-127.5 126 0 77.2 58.3 126.4 131.6 126.4 31.7 0 91.5-11.5 91.5-39.8 0-18.3-21.1-31.5-39.3-22.4-49.4 26.2-110.5 8.4-117.5-43.8h149.8c16.3 0 29.1-13.4 29.3-28.9zm-180.5-13.9c9.7-74.4 115.9-68.3 120.1 0h-120.1z"] };
  3498. var faFootballBall = { prefix: 'fas', iconName: 'football-ball', icon: [496, 512, [], "f44e", "M481.5 60.3c-4.8-18.2-19.1-32.5-37.3-37.4C420.3 16.5 383 8.9 339.4 8L496 164.8c-.8-43.5-8.2-80.6-14.5-104.5zm-467 391.4c4.8 18.2 19.1 32.5 37.3 37.4 23.9 6.4 61.2 14 104.8 14.9L0 347.2c.8 43.5 8.2 80.6 14.5 104.5zM4.2 283.4L220.4 500c132.5-19.4 248.8-118.7 271.5-271.4L275.6 12C143.1 31.4 26.8 130.7 4.2 283.4zm317.3-123.6c3.1-3.1 8.2-3.1 11.3 0l11.3 11.3c3.1 3.1 3.1 8.2 0 11.3l-28.3 28.3 28.3 28.3c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-28.3-28.3-22.6 22.7 28.3 28.3c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0L248 278.6l-22.6 22.6 28.3 28.3c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-28.3-28.3-28.3 28.3c-3.1 3.1-8.2 3.1-11.3 0l-11.3-11.3c-3.1-3.1-3.1-8.2 0-11.3l28.3-28.3-28.3-28.2c-3.1-3.1-3.1-8.2 0-11.3l11.3-11.3c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3 22.6-22.6-28.3-28.3c-3.1-3.1-3.1-8.2 0-11.3l11.3-11.3c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3 22.6-22.6-28.3-28.3c-3.1-3.1-3.1-8.2 0-11.3l11.3-11.3c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3 28.3-28.5z"] };
  3499. var faForward = { prefix: 'fas', iconName: 'forward', icon: [512, 512, [], "f04e", "M500.5 231.4l-192-160C287.9 54.3 256 68.6 256 96v320c0 27.4 31.9 41.8 52.5 24.6l192-160c15.3-12.8 15.3-36.4 0-49.2zm-256 0l-192-160C31.9 54.3 0 68.6 0 96v320c0 27.4 31.9 41.8 52.5 24.6l192-160c15.3-12.8 15.3-36.4 0-49.2z"] };
  3500. var faFrog = { prefix: 'fas', iconName: 'frog', icon: [576, 512, [], "f52e", "M446.53 97.43C439.67 60.23 407.19 32 368 32c-39.23 0-71.72 28.29-78.54 65.54C126.75 112.96-.5 250.12 0 416.98.11 451.9 29.08 480 64 480h304c8.84 0 16-7.16 16-16 0-17.67-14.33-32-32-32h-79.49l35.8-48.33c24.14-36.23 10.35-88.28-33.71-106.6-23.89-9.93-51.55-4.65-72.24 10.88l-32.76 24.59c-7.06 5.31-17.09 3.91-22.41-3.19-5.3-7.08-3.88-17.11 3.19-22.41l34.78-26.09c36.84-27.66 88.28-27.62 125.13 0 10.87 8.15 45.87 39.06 40.8 93.21L469.62 480H560c8.84 0 16-7.16 16-16 0-17.67-14.33-32-32-32h-53.63l-98.52-104.68 154.44-86.65A58.16 58.16 0 0 0 576 189.94c0-21.4-11.72-40.95-30.48-51.23-40.56-22.22-98.99-41.28-98.99-41.28zM368 136c-13.26 0-24-10.75-24-24 0-13.26 10.74-24 24-24 13.25 0 24 10.74 24 24 0 13.25-10.75 24-24 24z"] };
  3501. var faFrown = { prefix: 'fas', iconName: 'frown', icon: [496, 512, [], "f119", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm170.2 218.2C315.8 367.4 282.9 352 248 352s-67.8 15.4-90.2 42.2c-13.5 16.3-38.1-4.2-24.6-20.5C161.7 339.6 203.6 320 248 320s86.3 19.6 114.7 53.8c13.6 16.2-11 36.7-24.5 20.4z"] };
  3502. var faFrownOpen = { prefix: 'fas', iconName: 'frown-open', icon: [496, 512, [], "f57a", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM136 208c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm187.3 183.3c-31.2-9.6-59.4-15.3-75.3-15.3s-44.1 5.7-75.3 15.3c-11.5 3.5-22.5-6.3-20.5-18.1 7-40 60.1-61.2 95.8-61.2s88.8 21.3 95.8 61.2c2 11.9-9.1 21.6-20.5 18.1zM328 240c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3503. var faFunnelDollar = { prefix: 'fas', iconName: 'funnel-dollar', icon: [640, 512, [], "f662", "M433.46 165.94l101.2-111.87C554.61 34.12 540.48 0 512.26 0H31.74C3.52 0-10.61 34.12 9.34 54.07L192 256v155.92c0 12.59 5.93 24.44 16 32l79.99 60c20.86 15.64 48.47 6.97 59.22-13.57C310.8 455.38 288 406.35 288 352c0-89.79 62.05-165.17 145.46-186.06zM480 192c-88.37 0-160 71.63-160 160s71.63 160 160 160 160-71.63 160-160-71.63-160-160-160zm16 239.88V448c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-16.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V256c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.04 44.44-42.67 45.07z"] };
  3504. var faFutbol = { prefix: 'fas', iconName: 'futbol', icon: [512, 512, [], "f1e3", "M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zm-48 0l-.003-.282-26.064 22.741-62.679-58.5 16.454-84.355 34.303 3.072c-24.889-34.216-60.004-60.089-100.709-73.141l13.651 31.939L256 139l-74.953-41.525 13.651-31.939c-40.631 13.028-75.78 38.87-100.709 73.141l34.565-3.073 16.192 84.355-62.678 58.5-26.064-22.741-.003.282c0 43.015 13.497 83.952 38.472 117.991l7.704-33.897 85.138 10.447 36.301 77.826-29.902 17.786c40.202 13.122 84.29 13.148 124.572 0l-29.902-17.786 36.301-77.826 85.138-10.447 7.704 33.897C442.503 339.952 456 299.015 456 256zm-248.102 69.571l-29.894-91.312L256 177.732l77.996 56.527-29.622 91.312h-96.476z"] };
  3505. var faGamepad = { prefix: 'fas', iconName: 'gamepad', icon: [640, 512, [], "f11b", "M480 96H160C71.6 96 0 167.6 0 256s71.6 160 160 160c44.8 0 85.2-18.4 114.2-48h91.5c29 29.6 69.5 48 114.2 48 88.4 0 160-71.6 160-160S568.4 96 480 96zM256 276c0 6.6-5.4 12-12 12h-52v52c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-52H76c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h52v-52c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h52c6.6 0 12 5.4 12 12v40zm184 68c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-80c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"] };
  3506. var faGasPump = { prefix: 'fas', iconName: 'gas-pump', icon: [512, 512, [], "f52f", "M336 448H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h320c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm157.2-340.7l-81-81c-6.2-6.2-16.4-6.2-22.6 0l-11.3 11.3c-6.2 6.2-6.2 16.4 0 22.6L416 97.9V160c0 28.1 20.9 51.3 48 55.2V376c0 13.2-10.8 24-24 24s-24-10.8-24-24v-32c0-48.6-39.4-88-88-88h-8V64c0-35.3-28.7-64-64-64H96C60.7 0 32 28.7 32 64v352h288V304h8c22.1 0 40 17.9 40 40v27.8c0 37.7 27 72 64.5 75.9 43 4.3 79.5-29.5 79.5-71.7V152.6c0-17-6.8-33.3-18.8-45.3zM256 192H96V64h160v128z"] };
  3507. var faGavel = { prefix: 'fas', iconName: 'gavel', icon: [512, 512, [], "f0e3", "M504.971 199.362l-22.627-22.627c-9.373-9.373-24.569-9.373-33.941 0l-5.657 5.657L329.608 69.255l5.657-5.657c9.373-9.373 9.373-24.569 0-33.941L312.638 7.029c-9.373-9.373-24.569-9.373-33.941 0L154.246 131.48c-9.373 9.373-9.373 24.569 0 33.941l22.627 22.627c9.373 9.373 24.569 9.373 33.941 0l5.657-5.657 39.598 39.598-81.04 81.04-5.657-5.657c-12.497-12.497-32.758-12.497-45.255 0L9.373 412.118c-12.497 12.497-12.497 32.758 0 45.255l45.255 45.255c12.497 12.497 32.758 12.497 45.255 0l114.745-114.745c12.497-12.497 12.497-32.758 0-45.255l-5.657-5.657 81.04-81.04 39.598 39.598-5.657 5.657c-9.373 9.373-9.373 24.569 0 33.941l22.627 22.627c9.373 9.373 24.569 9.373 33.941 0l124.451-124.451c9.372-9.372 9.372-24.568 0-33.941z"] };
  3508. var faGem = { prefix: 'fas', iconName: 'gem', icon: [576, 512, [], "f3a5", "M485.5 0L576 160H474.9L405.7 0h79.8zm-128 0l69.2 160H149.3L218.5 0h139zm-267 0h79.8l-69.2 160H0L90.5 0zM0 192h100.7l123 251.7c1.5 3.1-2.7 5.9-5 3.3L0 192zm148.2 0h279.6l-137 318.2c-1 2.4-4.5 2.4-5.5 0L148.2 192zm204.1 251.7l123-251.7H576L357.3 446.9c-2.3 2.7-6.5-.1-5-3.2z"] };
  3509. var faGenderless = { prefix: 'fas', iconName: 'genderless', icon: [288, 512, [], "f22d", "M144 176c44.1 0 80 35.9 80 80s-35.9 80-80 80-80-35.9-80-80 35.9-80 80-80m0-64C64.5 112 0 176.5 0 256s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144z"] };
  3510. var faGhost = { prefix: 'fas', iconName: 'ghost', icon: [384, 512, [], "f6e2", "M186.1.09C81.01 3.24 0 94.92 0 200.05v263.92c0 14.26 17.23 21.39 27.31 11.31l24.92-18.53c6.66-4.95 16-3.99 21.51 2.21l42.95 48.35c6.25 6.25 16.38 6.25 22.63 0l40.72-45.85c6.37-7.17 17.56-7.17 23.92 0l40.72 45.85c6.25 6.25 16.38 6.25 22.63 0l42.95-48.35c5.51-6.2 14.85-7.17 21.51-2.21l24.92 18.53c10.08 10.08 27.31 2.94 27.31-11.31V192C384 84 294.83-3.17 186.1.09zM128 224c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm128 0c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3511. var faGift = { prefix: 'fas', iconName: 'gift', icon: [512, 512, [], "f06b", "M32 448c0 17.7 14.3 32 32 32h160V320H32v128zm448-288h-42.1c6.2-12.1 10.1-25.5 10.1-40 0-48.5-39.5-88-88-88-41.6 0-68.5 21.3-103 68.3-34.5-47-61.4-68.3-103-68.3-48.5 0-88 39.5-88 88 0 14.5 3.8 27.9 10.1 40H32c-17.7 0-32 14.3-32 32v80c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-80c0-17.7-14.3-32-32-32zm-326.1 0c-22.1 0-40-17.9-40-40s17.9-40 40-40c19.9 0 34.6 3.3 86.1 80h-86.1zm206.1 0h-86.1c51.4-76.5 65.7-80 86.1-80 22.1 0 40 17.9 40 40s-17.9 40-40 40zm-72 320h160c17.7 0 32-14.3 32-32V320H288v160z"] };
  3512. var faGlassMartini = { prefix: 'fas', iconName: 'glass-martini', icon: [512, 512, [], "f000", "M502.05 57.6C523.3 36.34 508.25 0 478.2 0H33.8C3.75 0-11.3 36.34 9.95 57.6L224 271.64V464h-56c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h240c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40h-56V271.64L502.05 57.6z"] };
  3513. var faGlassMartiniAlt = { prefix: 'fas', iconName: 'glass-martini-alt', icon: [512, 512, [], "f57b", "M502.05 57.6C523.3 36.34 508.25 0 478.2 0H33.8C3.75 0-11.3 36.34 9.95 57.6L224 271.64V464h-56c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h240c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40h-56V271.64L502.05 57.6zM443.77 48l-48 48H116.24l-48-48h375.53z"] };
  3514. var faGlasses = { prefix: 'fas', iconName: 'glasses', icon: [576, 512, [], "f530", "M574.1 280.37L528.75 98.66c-5.91-23.7-21.59-44.05-43-55.81-21.44-11.73-46.97-14.11-70.19-6.33l-15.25 5.08c-8.39 2.79-12.92 11.86-10.12 20.24l5.06 15.18c2.79 8.38 11.85 12.91 20.23 10.12l13.18-4.39c10.87-3.62 23-3.57 33.16 1.73 10.29 5.37 17.57 14.56 20.37 25.82l38.46 153.82c-22.19-6.81-49.79-12.46-81.2-12.46-34.77 0-73.98 7.02-114.85 26.74h-73.18c-40.87-19.74-80.08-26.75-114.86-26.75-31.42 0-59.02 5.65-81.21 12.46l38.46-153.83c2.79-11.25 10.09-20.45 20.38-25.81 10.16-5.3 22.28-5.35 33.15-1.73l13.17 4.39c8.38 2.79 17.44-1.74 20.23-10.12l5.06-15.18c2.8-8.38-1.73-17.45-10.12-20.24l-15.25-5.08c-23.22-7.78-48.75-5.41-70.19 6.33-21.41 11.77-37.09 32.11-43 55.8L1.9 280.37A64.218 64.218 0 0 0 0 295.86v70.25C0 429.01 51.58 480 115.2 480h37.12c60.28 0 110.37-45.94 114.88-105.37l2.93-38.63h35.75l2.93 38.63C313.31 434.06 363.4 480 423.68 480h37.12c63.62 0 115.2-50.99 115.2-113.88v-70.25c0-5.23-.64-10.43-1.9-15.5zm-370.72 89.42c-1.97 25.91-24.4 46.21-51.06 46.21H115.2C86.97 416 64 393.62 64 366.11v-37.54c18.12-6.49 43.42-12.92 72.58-12.92 23.86 0 47.26 4.33 69.93 12.92l-3.13 41.22zM512 366.12c0 27.51-22.97 49.88-51.2 49.88h-37.12c-26.67 0-49.1-20.3-51.06-46.21l-3.13-41.22c22.67-8.59 46.08-12.92 69.95-12.92 29.12 0 54.43 6.44 72.55 12.93v37.54z"] };
  3515. var faGlobe = { prefix: 'fas', iconName: 'globe', icon: [496, 512, [], "f0ac", "M336.5 160C322 70.7 287.8 8 248 8s-74 62.7-88.5 152h177zM152 256c0 22.2 1.2 43.5 3.3 64h185.3c2.1-20.5 3.3-41.8 3.3-64s-1.2-43.5-3.3-64H155.3c-2.1 20.5-3.3 41.8-3.3 64zm324.7-96c-28.6-67.9-86.5-120.4-158-141.6 24.4 33.8 41.2 84.7 50 141.6h108zM177.2 18.4C105.8 39.6 47.8 92.1 19.3 160h108c8.7-56.9 25.5-107.8 49.9-141.6zM487.4 192H372.7c2.1 21 3.3 42.5 3.3 64s-1.2 43-3.3 64h114.6c5.5-20.5 8.6-41.8 8.6-64s-3.1-43.5-8.5-64zM120 256c0-21.5 1.2-43 3.3-64H8.6C3.2 212.5 0 233.8 0 256s3.2 43.5 8.6 64h114.6c-2-21-3.2-42.5-3.2-64zm39.5 96c14.5 89.3 48.7 152 88.5 152s74-62.7 88.5-152h-177zm159.3 141.6c71.4-21.2 129.4-73.7 158-141.6h-108c-8.8 56.9-25.6 107.8-50 141.6zM19.3 352c28.6 67.9 86.5 120.4 158 141.6-24.4-33.8-41.2-84.7-50-141.6h-108z"] };
  3516. var faGlobeAfrica = { prefix: 'fas', iconName: 'globe-africa', icon: [496, 512, [], "f57c", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm160 215.5v6.93c0 5.87-3.32 11.24-8.57 13.86l-15.39 7.7a15.485 15.485 0 0 1-15.53-.97l-18.21-12.14a15.52 15.52 0 0 0-13.5-1.81l-2.65.88c-9.7 3.23-13.66 14.79-7.99 23.3l13.24 19.86c2.87 4.31 7.71 6.9 12.89 6.9h8.21c8.56 0 15.5 6.94 15.5 15.5v11.34c0 3.35-1.09 6.62-3.1 9.3l-18.74 24.98c-1.42 1.9-2.39 4.1-2.83 6.43l-4.3 22.83c-.62 3.29-2.29 6.29-4.76 8.56a159.608 159.608 0 0 0-25 29.16l-13.03 19.55a27.756 27.756 0 0 1-23.09 12.36c-10.51 0-20.12-5.94-24.82-15.34a78.902 78.902 0 0 1-8.33-35.29V367.5c0-8.56-6.94-15.5-15.5-15.5h-25.88c-14.49 0-28.38-5.76-38.63-16a54.659 54.659 0 0 1-16-38.63v-14.06c0-17.19 8.1-33.38 21.85-43.7l27.58-20.69a54.663 54.663 0 0 1 32.78-10.93h.89c8.48 0 16.85 1.97 24.43 5.77l14.72 7.36c3.68 1.84 7.93 2.14 11.83.84l47.31-15.77c6.33-2.11 10.6-8.03 10.6-14.7 0-8.56-6.94-15.5-15.5-15.5h-10.09c-4.11 0-8.05-1.63-10.96-4.54l-6.92-6.92a15.493 15.493 0 0 0-10.96-4.54H199.5c-8.56 0-15.5-6.94-15.5-15.5v-4.4c0-7.11 4.84-13.31 11.74-15.04l14.45-3.61c3.74-.94 7-3.23 9.14-6.44l8.08-12.11c2.87-4.31 7.71-6.9 12.89-6.9h24.21c8.56 0 15.5-6.94 15.5-15.5v-21.7C359.23 71.63 422.86 131.02 441.93 208H423.5c-8.56 0-15.5 6.94-15.5 15.5z"] };
  3517. var faGlobeAmericas = { prefix: 'fas', iconName: 'globe-americas', icon: [496, 512, [], "f57d", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm82.29 357.6c-3.9 3.88-7.99 7.95-11.31 11.28-2.99 3-5.1 6.7-6.17 10.71-1.51 5.66-2.73 11.38-4.77 16.87l-17.39 46.85c-13.76 3-28 4.69-42.65 4.69v-27.38c1.69-12.62-7.64-36.26-22.63-51.25-6-6-9.37-14.14-9.37-22.63v-32.01c0-11.64-6.27-22.34-16.46-27.97-14.37-7.95-34.81-19.06-48.81-26.11-11.48-5.78-22.1-13.14-31.65-21.75l-.8-.72a114.792 114.792 0 0 1-18.06-20.74c-9.38-13.77-24.66-36.42-34.59-51.14 20.47-45.5 57.36-82.04 103.2-101.89l24.01 12.01C203.48 89.74 216 82.01 216 70.11v-11.3c7.99-1.29 16.12-2.11 24.39-2.42l28.3 28.3c6.25 6.25 6.25 16.38 0 22.63L264 112l-10.34 10.34c-3.12 3.12-3.12 8.19 0 11.31l4.69 4.69c3.12 3.12 3.12 8.19 0 11.31l-8 8a8.008 8.008 0 0 1-5.66 2.34h-8.99c-2.08 0-4.08.81-5.58 2.27l-9.92 9.65a8.008 8.008 0 0 0-1.58 9.31l15.59 31.19c2.66 5.32-1.21 11.58-7.15 11.58h-5.64c-1.93 0-3.79-.7-5.24-1.96l-9.28-8.06a16.017 16.017 0 0 0-15.55-3.1l-31.17 10.39a11.95 11.95 0 0 0-8.17 11.34c0 4.53 2.56 8.66 6.61 10.69l11.08 5.54c9.41 4.71 19.79 7.16 30.31 7.16s22.59 27.29 32 32h66.75c8.49 0 16.62 3.37 22.63 9.37l13.69 13.69a30.503 30.503 0 0 1 8.93 21.57 46.536 46.536 0 0 1-13.72 32.98zM417 274.25c-5.79-1.45-10.84-5-14.15-9.97l-17.98-26.97a23.97 23.97 0 0 1 0-26.62l19.59-29.38c2.32-3.47 5.5-6.29 9.24-8.15l12.98-6.49C440.2 193.59 448 223.87 448 256c0 8.67-.74 17.16-1.82 25.54L417 274.25z"] };
  3518. var faGlobeAsia = { prefix: 'fas', iconName: 'globe-asia', icon: [496, 512, [], "f57e", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm-11.34 240.23c-2.89 4.82-8.1 7.77-13.72 7.77h-.31c-4.24 0-8.31 1.69-11.31 4.69l-5.66 5.66c-3.12 3.12-3.12 8.19 0 11.31l5.66 5.66c3 3 4.69 7.07 4.69 11.31V304c0 8.84-7.16 16-16 16h-6.11c-6.06 0-11.6-3.42-14.31-8.85l-22.62-45.23c-2.44-4.88-8.95-5.94-12.81-2.08l-19.47 19.46c-3 3-7.07 4.69-11.31 4.69H50.81C49.12 277.55 48 266.92 48 256c0-110.28 89.72-200 200-200 21.51 0 42.2 3.51 61.63 9.82l-50.16 38.53c-5.11 3.41-4.63 11.06.86 13.81l10.83 5.41c5.42 2.71 8.84 8.25 8.84 14.31V216c0 4.42-3.58 8-8 8h-3.06c-3.03 0-5.8-1.71-7.15-4.42-1.56-3.12-5.96-3.29-7.76-.3l-17.37 28.95zM408 358.43c0 4.24-1.69 8.31-4.69 11.31l-9.57 9.57c-3 3-7.07 4.69-11.31 4.69h-15.16c-4.24 0-8.31-1.69-11.31-4.69l-13.01-13.01a26.767 26.767 0 0 0-25.42-7.04l-21.27 5.32c-1.27.32-2.57.48-3.88.48h-10.34c-4.24 0-8.31-1.69-11.31-4.69l-11.91-11.91a8.008 8.008 0 0 1-2.34-5.66v-10.2c0-3.27 1.99-6.21 5.03-7.43l39.34-15.74c1.98-.79 3.86-1.82 5.59-3.05l23.71-16.89a7.978 7.978 0 0 1 4.64-1.48h12.09c3.23 0 6.15 1.94 7.39 4.93l5.35 12.85a4 4 0 0 0 3.69 2.46h3.8c1.78 0 3.35-1.18 3.84-2.88l4.2-14.47c.5-1.71 2.06-2.88 3.84-2.88h6.06c2.21 0 4 1.79 4 4v12.93c0 2.12.84 4.16 2.34 5.66l11.91 11.91c3 3 4.69 7.07 4.69 11.31v24.6z"] };
  3519. var faGolfBall = { prefix: 'fas', iconName: 'golf-ball', icon: [416, 512, [], "f450", "M96 416h224c0 17.7-14.3 32-32 32h-16c-17.7 0-32 14.3-32 32v20c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-20c0-17.7-14.3-32-32-32h-16c-17.7 0-32-14.3-32-32zm320-208c0 74.2-39 139.2-97.5 176h-221C39 347.2 0 282.2 0 208 0 93.1 93.1 0 208 0s208 93.1 208 208zm-180.1 43.9c18.3 0 33.1-14.8 33.1-33.1 0-14.4-9.3-26.3-22.1-30.9 9.6 26.8-15.6 51.3-41.9 41.9 4.6 12.8 16.5 22.1 30.9 22.1zm49.1 46.9c0-14.4-9.3-26.3-22.1-30.9 9.6 26.8-15.6 51.3-41.9 41.9 4.6 12.8 16.5 22.1 30.9 22.1 18.3 0 33.1-14.9 33.1-33.1zm64-64c0-14.4-9.3-26.3-22.1-30.9 9.6 26.8-15.6 51.3-41.9 41.9 4.6 12.8 16.5 22.1 30.9 22.1 18.3 0 33.1-14.9 33.1-33.1z"] };
  3520. var faGopuram = { prefix: 'fas', iconName: 'gopuram', icon: [512, 512, [], "f664", "M496 352h-16V240c0-8.84-7.16-16-16-16h-16v-80c0-8.84-7.16-16-16-16h-16V16c0-8.84-7.16-16-16-16s-16 7.16-16 16v16h-64V16c0-8.84-7.16-16-16-16s-16 7.16-16 16v16h-64V16c0-8.84-7.16-16-16-16s-16 7.16-16 16v16h-64V16c0-8.84-7.16-16-16-16S96 7.16 96 16v112H80c-8.84 0-16 7.16-16 16v80H48c-8.84 0-16 7.16-16 16v112H16c-8.84 0-16 7.16-16 16v128c0 8.84 7.16 16 16 16h80V352h32V224h32v-96h32v96h-32v128h-32v160h80v-80c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v80h80V352h-32V224h-32v-96h32v96h32v128h32v160h80c8.84 0 16-7.16 16-16V368c0-8.84-7.16-16-16-16zm-272 0v-64c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v64h-64zm8-128v-48c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v48h-48z"] };
  3521. var faGraduationCap = { prefix: 'fas', iconName: 'graduation-cap', icon: [640, 512, [], "f19d", "M622.34 153.2L343.4 67.5c-15.2-4.67-31.6-4.67-46.79 0L17.66 153.2c-23.54 7.23-23.54 38.36 0 45.59l48.63 14.94c-10.67 13.19-17.23 29.28-17.88 46.9C38.78 266.15 32 276.11 32 288c0 10.78 5.68 19.85 13.86 25.65L20.33 428.53C18.11 438.52 25.71 448 35.94 448h56.11c10.24 0 17.84-9.48 15.62-19.47L82.14 313.65C90.32 307.85 96 298.78 96 288c0-11.57-6.47-21.25-15.66-26.87.76-15.02 8.44-28.3 20.69-36.72L296.6 284.5c9.06 2.78 26.44 6.25 46.79 0l278.95-85.7c23.55-7.24 23.55-38.36 0-45.6zM352.79 315.09c-28.53 8.76-52.84 3.92-65.59 0l-145.02-44.55L128 384c0 35.35 85.96 64 192 64s192-28.65 192-64l-14.18-113.47-145.03 44.56z"] };
  3522. var faGreaterThan = { prefix: 'fas', iconName: 'greater-than', icon: [384, 512, [], "f531", "M365.52 209.85L59.22 67.01c-16.06-7.49-35.15-.54-42.64 15.52L3.01 111.61c-7.49 16.06-.54 35.15 15.52 42.64L236.96 256.1 18.49 357.99C2.47 365.46-4.46 384.5 3.01 400.52l13.52 29C24 445.54 43.04 452.47 59.06 445l306.47-142.91a32.003 32.003 0 0 0 18.48-29v-34.23c-.01-12.45-7.21-23.76-18.49-29.01z"] };
  3523. var faGreaterThanEqual = { prefix: 'fas', iconName: 'greater-than-equal', icon: [448, 512, [], "f532", "M55.22 107.69l175.56 68.09-175.44 68.05c-18.39 6.03-27.88 24.39-21.2 41l12.09 30.08c6.68 16.61 26.99 25.19 45.38 19.15L393.02 214.2c13.77-4.52 22.98-16.61 22.98-30.17v-15.96c0-13.56-9.21-25.65-22.98-30.17L91.3 17.92c-18.29-6-38.51 2.53-45.15 19.06L34.12 66.9c-6.64 16.53 2.81 34.79 21.1 40.79zM424 400H24c-13.25 0-24 10.74-24 24v48c0 13.25 10.75 24 24 24h400c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24z"] };
  3524. var faGrimace = { prefix: 'fas', iconName: 'grimace', icon: [496, 512, [], "f57f", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM144 400h-8c-17.7 0-32-14.3-32-32v-8h40v40zm0-56h-40v-8c0-17.7 14.3-32 32-32h8v40zm-8-136c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm72 192h-48v-40h48v40zm0-56h-48v-40h48v40zm64 56h-48v-40h48v40zm0-56h-48v-40h48v40zm64 56h-48v-40h48v40zm0-56h-48v-40h48v40zm-8-104c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm64 128c0 17.7-14.3 32-32 32h-8v-40h40v8zm0-24h-40v-40h8c17.7 0 32 14.3 32 32v8z"] };
  3525. var faGrin = { prefix: 'fas', iconName: 'grin', icon: [496, 512, [], "f580", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm80 256c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.3-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3526. var faGrinAlt = { prefix: 'fas', iconName: 'grin-alt', icon: [496, 512, [], "f581", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm63.7 128.7c7.6-11.4 24.7-11.7 32.7 0 12.4 18.4 15.1 36.9 15.7 55.3-.5 18.4-3.3 36.9-15.7 55.3-7.6 11.4-24.7 11.7-32.7 0-12.4-18.4-15.1-36.9-15.7-55.3.5-18.4 3.3-36.9 15.7-55.3zm-160 0c7.6-11.4 24.7-11.7 32.7 0 12.4 18.4 15.1 36.9 15.7 55.3-.5 18.4-3.3 36.9-15.7 55.3-7.6 11.4-24.7 11.7-32.7 0-12.4-18.4-15.1-36.9-15.7-55.3.5-18.4 3.3-36.9 15.7-55.3zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3527. var faGrinBeam = { prefix: 'fas', iconName: 'grin-beam', icon: [496, 512, [], "f582", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 144c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.1 7.3-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm-160 0c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm80 280c-60.6 0-134.5-38.3-143.8-93.3-2-11.9 9.4-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3528. var faGrinBeamSweat = { prefix: 'fas', iconName: 'grin-beam-sweat', icon: [504, 512, [], "f583", "M456 128c26.5 0 48-21 48-47 0-20-28.5-60.4-41.6-77.8-3.2-4.3-9.6-4.3-12.8 0C436.5 20.6 408 61 408 81c0 26 21.5 47 48 47zm0 32c-44.1 0-80-35.4-80-79 0-4.4.3-14.2 8.1-32.2C345 23.1 298.3 8 248 8 111 8 0 119 0 256s111 248 248 248 248-111 248-248c0-35.1-7.4-68.4-20.5-98.6-6.3 1.5-12.7 2.6-19.5 2.6zm-128-8c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 12-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.1 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm-160 0c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 12-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm80 280c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.2 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3529. var faGrinHearts = { prefix: 'fas', iconName: 'grin-hearts', icon: [496, 512, [], "f584", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM90.4 183.6c6.7-17.6 26.7-26.7 44.9-21.9l7.1 1.9 2-7.1c5-18.1 22.8-30.9 41.5-27.9 21.4 3.4 34.4 24.2 28.8 44.5L195.3 243c-1.2 4.5-5.9 7.2-10.5 6l-70.2-18.2c-20.4-5.4-31.9-27-24.2-47.2zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.2-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.6 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3zm133.4-201.3l-70.2 18.2c-4.5 1.2-9.2-1.5-10.5-6L281.3 173c-5.6-20.3 7.4-41.1 28.8-44.5 18.6-3 36.4 9.8 41.5 27.9l2 7.1 7.1-1.9c18.2-4.7 38.2 4.3 44.9 21.9 7.7 20.3-3.8 41.9-24.2 47.2z"] };
  3530. var faGrinSquint = { prefix: 'fas', iconName: 'grin-squint', icon: [496, 512, [], "f585", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm33.8 189.7l80-48c11.6-6.9 24 7.7 15.4 18L343.6 208l33.6 40.3c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.7-4.7-7.7-15.9 0-20.6zm-163-30c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.8 4.7 7.8 15.9 0 20.6l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.9 9.4-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.2 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3531. var faGrinSquintTears = { prefix: 'fas', iconName: 'grin-squint-tears', icon: [512, 512, [], "f586", "M409.6 111.9c22.6-3.2 73.5-12 88.3-26.8 19.2-19.2 18.9-50.6-.7-70.2S446-5 426.9 14.2c-14.8 14.8-23.5 65.7-26.8 88.3-.8 5.5 3.9 10.2 9.5 9.4zM102.4 400.1c-22.6 3.2-73.5 12-88.3 26.8-19.1 19.1-18.8 50.6.8 70.2s51 19.9 70.2.7c14.8-14.8 23.5-65.7 26.8-88.3.8-5.5-3.9-10.2-9.5-9.4zm311.7-256.5c-33 3.9-48.6-25.1-45.7-45.7 3.4-24 7.4-42.1 11.5-56.5C285.1-13.4 161.8-.5 80.6 80.6-.5 161.7-13.4 285 41.4 379.9c14.4-4.1 32.4-8 56.5-11.5 33.2-3.9 48.6 25.2 45.7 45.7-3.4 24-7.4 42.1-11.5 56.5 94.8 54.8 218.1 41.9 299.3-39.2s94-204.4 39.2-299.3c-14.4 4.1-32.5 8-56.5 11.5zM255.7 106c3.3-13.2 22.4-11.5 23.6 1.8l4.8 52.3 52.3 4.8c13.4 1.2 14.9 20.3 1.8 23.6l-90.5 22.6c-8.9 2.2-16.7-5.9-14.5-14.5l22.5-90.6zm-90.9 230.3L160 284l-52.3-4.8c-13.4-1.2-14.9-20.3-1.8-23.6l90.5-22.6c8.8-2.2 16.7 5.8 14.5 14.5L188.3 338c-3.1 13.2-22.2 11.7-23.5-1.7zm215.7 44.2c-29.3 29.3-75.7 50.4-116.7 50.4-18.9 0-36.6-4.5-51-14.7-9.8-6.9-8.7-21.8 2-27.2 28.3-14.6 63.9-42.4 97.8-76.3s61.7-69.6 76.3-97.8c5.4-10.5 20.2-11.9 27.3-2 32.3 45.3 7.1 124.7-35.7 167.6z"] };
  3532. var faGrinStars = { prefix: 'fas', iconName: 'grin-stars', icon: [496, 512, [], "f587", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM94.6 168.9l34.9-5 15.5-31.6c2.9-5.8 11-5.8 13.9 0l15.5 31.6 34.9 5c6.2 1 8.9 8.6 4.3 13.2l-25.4 24.6 6 34.9c1 6.2-5.3 11-11 7.9L152 233.3l-31.3 16.3c-5.7 3.1-12-1.7-11-7.9l6-34.9-25.4-24.6c-4.6-4.7-1.9-12.3 4.3-13.3zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3zm157.7-249.9l-25.4 24.6 6 34.9c1 6.2-5.3 11-11 7.9L344 233.3l-31.3 16.3c-5.7 3.1-12-1.7-11-7.9l6-34.9-25.4-24.6c-4.5-4.6-1.9-12.2 4.3-13.2l34.9-5 15.5-31.6c2.9-5.8 11-5.8 13.9 0l15.5 31.6 34.9 5c6.3.9 9 8.5 4.4 13.1z"] };
  3533. var faGrinTears = { prefix: 'fas', iconName: 'grin-tears', icon: [640, 512, [], "f588", "M102.4 256.1c-22.6 3.2-73.5 12-88.3 26.8-19.1 19.1-18.8 50.6.8 70.2s51 19.9 70.2.7c14.8-14.8 23.5-65.7 26.8-88.3.8-5.5-3.9-10.2-9.5-9.4zm523.4 26.8c-14.8-14.8-65.7-23.5-88.3-26.8-5.5-.8-10.3 3.9-9.5 9.5 3.2 22.6 12 73.5 26.8 88.3 19.2 19.2 50.6 18.9 70.2-.7s20-51.2.8-70.3zm-129.4-12.8c-3.8-26.6 19.1-49.5 45.7-45.7 8.9 1.3 16.8 2.7 24.3 4.1C552.7 104.5 447.7 8 320 8S87.3 104.5 73.6 228.5c7.5-1.4 15.4-2.8 24.3-4.1 33.2-3.9 48.6 25.3 45.7 45.7-11.8 82.3-29.9 100.4-35.8 106.4-.9.9-2 1.6-3 2.5 42.7 74.6 123 125 215.2 125s172.5-50.4 215.2-125.1c-1-.9-2.1-1.5-3-2.5-5.9-5.9-24-24-35.8-106.3zM400 152c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 12-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm-160 0c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 12-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm80 280c-60.6 0-134.5-38.3-143.8-93.3-2-11.7 9.2-21.6 20.7-17.9C227.1 330.5 272 336 320 336s92.9-5.5 123.1-15.2c11.4-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3534. var faGrinTongue = { prefix: 'fas', iconName: 'grin-tongue', icon: [496, 512, [], "f589", "M248 8C111 8 0 119 0 256c0 106.3 67 196.7 161 232-5.6-12.2-9-25.7-9-40v-45.5c-24.7-16.2-43.5-38.1-47.8-63.8-2-11.8 9.3-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.6 22.6 6.1 20.7 17.9-4.3 25.7-23.1 47.6-47.8 63.8V448c0 14.3-3.4 27.8-9 40 94-35.3 161-125.7 161-232C496 119 385 8 248 8zm-80 232c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm160 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm-34.9 134.6c-14.4-6.5-31.1 2.2-34.6 17.6l-1.8 7.8c-2.1 9.2-15.2 9.2-17.3 0l-1.8-7.8c-3.5-15.4-20.2-24.1-34.6-17.6-.9.4.3-.2-18.9 9.4v63c0 35.2 28 64.5 63.1 64.9 35.7.5 64.9-28.4 64.9-64v-64c-19.5-9.6-18.2-8.9-19-9.3z"] };
  3535. var faGrinTongueSquint = { prefix: 'fas', iconName: 'grin-tongue-squint', icon: [496, 512, [], "f58a", "M293.1 374.6c-14.4-6.5-31.1 2.2-34.6 17.6l-1.8 7.8c-2.1 9.2-15.2 9.2-17.3 0l-1.8-7.8c-3.5-15.4-20.2-24.1-34.6-17.6-.9.4.3-.2-18.9 9.4v63c0 35.2 28 64.5 63.1 64.9 35.7.5 64.9-28.4 64.9-64v-64c-19.5-9.6-18.2-8.9-19-9.3zM248 8C111 8 0 119 0 256c0 106.3 67 196.7 161 232-5.6-12.2-9-25.7-9-40v-45.5c-24.7-16.2-43.5-38.1-47.8-63.8-2-11.8 9.2-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.7 22.6 6.1 20.7 17.9-4.3 25.7-23.1 47.6-47.8 63.8V448c0 14.3-3.4 27.8-9 40 94-35.3 161-125.7 161-232C496 119 385 8 248 8zm-33.8 210.3l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.7 4.7 7.7 15.9 0 20.6zm163 30c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.8-4.7-7.8-15.9 0-20.6l80-48c11.7-6.9 23.9 7.7 15.4 18L343.6 208l33.6 40.3z"] };
  3536. var faGrinTongueWink = { prefix: 'fas', iconName: 'grin-tongue-wink', icon: [496, 512, [], "f58b", "M344 184c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zM248 8C111 8 0 119 0 256c0 106.3 67 196.7 161 232-5.6-12.2-9-25.7-9-40v-45.5c-24.7-16.2-43.5-38.1-47.8-63.8-2-11.8 9.3-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.1 20.7 17.9-4.3 25.7-23.1 47.6-47.8 63.8V448c0 14.3-3.4 27.8-9 40 94-35.3 161-125.7 161-232C496 119 385 8 248 8zm-56 225l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L112 233c-8.5 7.4-21.6.3-19.8-10.8 4-25.2 34.2-42.1 59.9-42.1S208 197 212 222.2c1.6 11.1-11.6 18.2-20 10.8zm152 39c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm-50.9 102.6c-14.4-6.5-31.1 2.2-34.6 17.6l-1.8 7.8c-2.1 9.2-15.2 9.2-17.3 0l-1.8-7.8c-3.5-15.4-20.2-24.1-34.6-17.6-.9.4.3-.2-18.9 9.4v63c0 35.2 28 64.5 63.1 64.9 35.7.5 64.9-28.4 64.9-64v-64c-19.5-9.6-18.2-8.9-19-9.3z"] };
  3537. var faGrinWink = { prefix: 'fas', iconName: 'grin-wink', icon: [496, 512, [], "f58c", "M0 256c0 137 111 248 248 248s248-111 248-248S385 8 248 8 0 119 0 256zm200-48c0 17.7-14.3 32-32 32s-32-14.3-32-32 14.3-32 32-32 32 14.3 32 32zm168 25l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L288 233c-8.3 7.4-21.6.4-19.8-10.8 4-25.2 34.2-42.1 59.9-42.1S384 197 388 222.2c1.6 11-11.5 18.2-20 10.8zm-243.1 87.8C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.3-3.7 22.6 6 20.7 17.9-9.2 55-83.2 93.3-143.8 93.3s-134.5-38.3-143.8-93.3c-2-11.9 9.3-21.6 20.7-17.9z"] };
  3538. var faGripHorizontal = { prefix: 'fas', iconName: 'grip-horizontal', icon: [448, 512, [], "f58d", "M96 288H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm160 0h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm160 0h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zM96 96H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm160 0h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm160 0h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z"] };
  3539. var faGripVertical = { prefix: 'fas', iconName: 'grip-vertical', icon: [320, 512, [], "f58e", "M96 32H32C14.33 32 0 46.33 0 64v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zM288 32h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z"] };
  3540. var faHSquare = { prefix: 'fas', iconName: 'h-square', icon: [448, 512, [], "f0fd", "M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zm-112 48h-32c-8.837 0-16 7.163-16 16v80H160v-80c0-8.837-7.163-16-16-16h-32c-8.837 0-16 7.163-16 16v224c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16v-80h128v80c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16V144c0-8.837-7.163-16-16-16z"] };
  3541. var faHammer = { prefix: 'fas', iconName: 'hammer', icon: [576, 512, [], "f6e3", "M571.31 193.94l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0l-11.31 11.31-28.9-28.9c5.63-21.31.36-44.9-16.35-61.61l-45.25-45.25c-62.48-62.48-163.79-62.48-226.28 0l90.51 45.25v18.75c0 16.97 6.74 33.25 18.75 45.25l49.14 49.14c16.71 16.71 40.3 21.98 61.61 16.35l28.9 28.9-11.31 11.31c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l90.51-90.51c6.23-6.24 6.23-16.37-.02-22.62zm-286.72-15.2c-3.7-3.7-6.84-7.79-9.85-11.95L19.64 404.96c-25.57 23.88-26.26 64.19-1.53 88.93s65.05 24.05 88.93-1.53l238.13-255.07c-3.96-2.91-7.9-5.87-11.44-9.41l-49.14-49.14z"] };
  3542. var faHamsa = { prefix: 'fas', iconName: 'hamsa', icon: [512, 512, [], "f665", "M509.34 307.25C504.28 295.56 492.75 288 480 288h-64V80c0-22-18-40-40-40s-40 18-40 40v134c0 5.52-4.48 10-10 10h-20c-5.52 0-10-4.48-10-10V40c0-22-18-40-40-40s-40 18-40 40v174c0 5.52-4.48 10-10 10h-20c-5.52 0-10-4.48-10-10V80c0-22-18-40-40-40S96 58 96 80v208H32c-12.75 0-24.28 7.56-29.34 19.25a31.966 31.966 0 0 0 5.94 34.58l102.69 110.03C146.97 490.08 199.69 512 256 512s109.03-21.92 144.72-60.14L503.4 341.83a31.966 31.966 0 0 0 5.94-34.58zM256 416c-53.02 0-96-64-96-64s42.98-64 96-64 96 64 96 64-42.98 64-96 64zm0-96c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"] };
  3543. var faHandHolding = { prefix: 'fas', iconName: 'hand-holding', icon: [576, 512, [], "f4bd", "M565.3 328.1c-11.8-10.7-30.2-10-42.6 0L430.3 402c-11.3 9.1-25.4 14-40 14H272c-8.8 0-16-7.2-16-16s7.2-16 16-16h78.3c15.9 0 30.7-10.9 33.3-26.6 3.3-20-12.1-37.4-31.6-37.4H192c-27 0-53.1 9.3-74.1 26.3L71.4 384H16c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16h356.8c14.5 0 28.6-4.9 40-14L564 377c15.2-12.1 16.4-35.3 1.3-48.9z"] };
  3544. var faHandHoldingHeart = { prefix: 'fas', iconName: 'hand-holding-heart', icon: [576, 512, [], "f4be", "M275.3 250.5c7 7.4 18.4 7.4 25.5 0l108.9-114.2c31.6-33.2 29.8-88.2-5.6-118.8-30.8-26.7-76.7-21.9-104.9 7.7L288 36.9l-11.1-11.6C248.7-4.4 202.8-9.2 172 17.5c-35.3 30.6-37.2 85.6-5.6 118.8l108.9 114.2zm290 77.6c-11.8-10.7-30.2-10-42.6 0L430.3 402c-11.3 9.1-25.4 14-40 14H272c-8.8 0-16-7.2-16-16s7.2-16 16-16h78.3c15.9 0 30.7-10.9 33.3-26.6 3.3-20-12.1-37.4-31.6-37.4H192c-27 0-53.1 9.3-74.1 26.3L71.4 384H16c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16h356.8c14.5 0 28.6-4.9 40-14L564 377c15.2-12.1 16.4-35.3 1.3-48.9z"] };
  3545. var faHandHoldingUsd = { prefix: 'fas', iconName: 'hand-holding-usd', icon: [544, 512, [], "f4c0", "M257.6 144.3l50 14.3c3.6 1 6.1 4.4 6.1 8.1 0 4.6-3.8 8.4-8.4 8.4h-32.8c-3.6 0-7.1-.8-10.3-2.2-4.8-2.2-10.4-1.7-14.1 2l-17.5 17.5c-5.3 5.3-4.7 14.3 1.5 18.4 9.5 6.3 20.3 10.1 31.8 11.5V240c0 8.8 7.2 16 16 16h16c8.8 0 16-7.2 16-16v-17.6c30.3-3.6 53.3-31 49.3-63-2.9-23-20.7-41.3-42.9-47.7l-50-14.3c-3.6-1-6.1-4.4-6.1-8.1 0-4.6 3.8-8.4 8.4-8.4h32.8c3.6 0 7.1.8 10.3 2.2 4.8 2.2 10.4 1.7 14.1-2l17.5-17.5c5.3-5.3 4.7-14.3-1.5-18.4-9.5-6.3-20.3-10.1-31.8-11.5V16c0-8.8-7.2-16-16-16h-16c-8.8 0-16 7.2-16 16v17.6c-30.3 3.6-53.3 31-49.3 63 2.9 23 20.7 41.3 42.9 47.7zm276.3 183.8c-11.2-10.7-28.5-10-40.3 0L406.4 402c-10.7 9.1-24 14-37.8 14H256.9c-8.3 0-15.1-7.2-15.1-16s6.8-16 15.1-16h73.9c15.1 0 29-10.9 31.4-26.6 3.1-20-11.5-37.4-29.8-37.4H181.3c-25.5 0-50.2 9.3-69.9 26.3L67.5 384H15.1C6.8 384 0 391.2 0 400v96c0 8.8 6.8 16 15.1 16H352c13.7 0 27-4.9 37.8-14l142.8-121c14.4-12.1 15.5-35.3 1.3-48.9z"] };
  3546. var faHandLizard = { prefix: 'fas', iconName: 'hand-lizard', icon: [576, 512, [], "f258", "M384 480h192V363.778a95.998 95.998 0 0 0-14.833-51.263L398.127 54.368A48 48 0 0 0 357.544 32H24C10.745 32 0 42.745 0 56v16c0 30.928 25.072 56 56 56h229.981c12.844 0 21.556 13.067 16.615 24.923l-21.41 51.385A32 32 0 0 1 251.648 224H128c-35.346 0-64 28.654-64 64v8c0 13.255 10.745 24 24 24h147.406a47.995 47.995 0 0 1 25.692 7.455l111.748 70.811A24.001 24.001 0 0 1 384 418.539V480z"] };
  3547. var faHandPaper = { prefix: 'fas', iconName: 'hand-paper', icon: [448, 512, [], "f256", "M408.781 128.007C386.356 127.578 368 146.36 368 168.79V256h-8V79.79c0-22.43-18.356-41.212-40.781-40.783C297.488 39.423 280 57.169 280 79v177h-8V40.79C272 18.36 253.644-.422 231.219.007 209.488.423 192 18.169 192 40v216h-8V80.79c0-22.43-18.356-41.212-40.781-40.783C121.488 40.423 104 58.169 104 80v235.992l-31.648-43.519c-12.993-17.866-38.009-21.817-55.877-8.823-17.865 12.994-21.815 38.01-8.822 55.877l125.601 172.705A48 48 0 0 0 172.073 512h197.59c22.274 0 41.622-15.324 46.724-37.006l26.508-112.66a192.011 192.011 0 0 0 5.104-43.975V168c.001-21.831-17.487-39.577-39.218-39.993z"] };
  3548. var faHandPeace = { prefix: 'fas', iconName: 'hand-peace', icon: [448, 512, [], "f25b", "M408 216c-22.092 0-40 17.909-40 40h-8v-32c0-22.091-17.908-40-40-40s-40 17.909-40 40v32h-8V48c0-26.51-21.49-48-48-48s-48 21.49-48 48v208h-13.572L92.688 78.449C82.994 53.774 55.134 41.63 30.461 51.324 5.787 61.017-6.356 88.877 3.337 113.551l74.765 190.342-31.09 24.872c-15.381 12.306-19.515 33.978-9.741 51.081l64 112A39.998 39.998 0 0 0 136 512h240c18.562 0 34.686-12.77 38.937-30.838l32-136A39.97 39.97 0 0 0 448 336v-80c0-22.091-17.908-40-40-40z"] };
  3549. var faHandPointDown = { prefix: 'fas', iconName: 'hand-point-down', icon: [384, 512, [], "f0a7", "M91.826 467.2V317.966c-8.248 5.841-16.558 10.57-24.918 14.153C35.098 345.752-.014 322.222 0 288c.008-18.616 10.897-32.203 29.092-40 28.286-12.122 64.329-78.648 77.323-107.534 7.956-17.857 25.479-28.453 43.845-28.464l.001-.002h171.526c11.812 0 21.897 8.596 23.703 20.269 7.25 46.837 38.483 61.76 38.315 123.731-.007 2.724.195 13.254.195 16 0 50.654-22.122 81.574-71.263 72.6-9.297 18.597-39.486 30.738-62.315 16.45-21.177 24.645-53.896 22.639-70.944 6.299V467.2c0 24.15-20.201 44.8-43.826 44.8-23.283 0-43.826-21.35-43.826-44.8zM112 72V24c0-13.255 10.745-24 24-24h192c13.255 0 24 10.745 24 24v48c0 13.255-10.745 24-24 24H136c-13.255 0-24-10.745-24-24zm212-24c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z"] };
  3550. var faHandPointLeft = { prefix: 'fas', iconName: 'hand-point-left', icon: [512, 512, [], "f0a5", "M44.8 155.826h149.234c-5.841-8.248-10.57-16.558-14.153-24.918C166.248 99.098 189.778 63.986 224 64c18.616.008 32.203 10.897 40 29.092 12.122 28.286 78.648 64.329 107.534 77.323 17.857 7.956 28.453 25.479 28.464 43.845l.002.001v171.526c0 11.812-8.596 21.897-20.269 23.703-46.837 7.25-61.76 38.483-123.731 38.315-2.724-.007-13.254.195-16 .195-50.654 0-81.574-22.122-72.6-71.263-18.597-9.297-30.738-39.486-16.45-62.315-24.645-21.177-22.639-53.896-6.299-70.944H44.8c-24.15 0-44.8-20.201-44.8-43.826 0-23.283 21.35-43.826 44.8-43.826zM440 176h48c13.255 0 24 10.745 24 24v192c0 13.255-10.745 24-24 24h-48c-13.255 0-24-10.745-24-24V200c0-13.255 10.745-24 24-24zm24 212c11.046 0 20-8.954 20-20s-8.954-20-20-20-20 8.954-20 20 8.954 20 20 20z"] };
  3551. var faHandPointRight = { prefix: 'fas', iconName: 'hand-point-right', icon: [512, 512, [], "f0a4", "M512 199.652c0 23.625-20.65 43.826-44.8 43.826h-99.851c16.34 17.048 18.346 49.766-6.299 70.944 14.288 22.829 2.147 53.017-16.45 62.315C353.574 425.878 322.654 448 272 448c-2.746 0-13.276-.203-16-.195-61.971.168-76.894-31.065-123.731-38.315C120.596 407.683 112 397.599 112 385.786V214.261l.002-.001c.011-18.366 10.607-35.889 28.464-43.845 28.886-12.994 95.413-49.038 107.534-77.323 7.797-18.194 21.384-29.084 40-29.092 34.222-.014 57.752 35.098 44.119 66.908-3.583 8.359-8.312 16.67-14.153 24.918H467.2c23.45 0 44.8 20.543 44.8 43.826zM96 200v192c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V200c0-13.255 10.745-24 24-24h48c13.255 0 24 10.745 24 24zM68 368c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z"] };
  3552. var faHandPointUp = { prefix: 'fas', iconName: 'hand-point-up', icon: [384, 512, [], "f0a6", "M135.652 0c23.625 0 43.826 20.65 43.826 44.8v99.851c17.048-16.34 49.766-18.346 70.944 6.299 22.829-14.288 53.017-2.147 62.315 16.45C361.878 158.426 384 189.346 384 240c0 2.746-.203 13.276-.195 16 .168 61.971-31.065 76.894-38.315 123.731C343.683 391.404 333.599 400 321.786 400H150.261l-.001-.002c-18.366-.011-35.889-10.607-43.845-28.464C93.421 342.648 57.377 276.122 29.092 264 10.897 256.203.008 242.616 0 224c-.014-34.222 35.098-57.752 66.908-44.119 8.359 3.583 16.67 8.312 24.918 14.153V44.8c0-23.45 20.543-44.8 43.826-44.8zM136 416h192c13.255 0 24 10.745 24 24v48c0 13.255-10.745 24-24 24H136c-13.255 0-24-10.745-24-24v-48c0-13.255 10.745-24 24-24zm168 28c-11.046 0-20 8.954-20 20s8.954 20 20 20 20-8.954 20-20-8.954-20-20-20z"] };
  3553. var faHandPointer = { prefix: 'fas', iconName: 'hand-pointer', icon: [448, 512, [], "f25a", "M448 240v96c0 3.084-.356 6.159-1.063 9.162l-32 136C410.686 499.23 394.562 512 376 512H168a40.004 40.004 0 0 1-32.35-16.473l-127.997-176c-12.993-17.866-9.043-42.883 8.822-55.876 17.867-12.994 42.884-9.043 55.877 8.823L104 315.992V40c0-22.091 17.908-40 40-40s40 17.909 40 40v200h8v-40c0-22.091 17.908-40 40-40s40 17.909 40 40v40h8v-24c0-22.091 17.908-40 40-40s40 17.909 40 40v24h8c0-22.091 17.908-40 40-40s40 17.909 40 40zm-256 80h-8v96h8v-96zm88 0h-8v96h8v-96zm88 0h-8v96h8v-96z"] };
  3554. var faHandRock = { prefix: 'fas', iconName: 'hand-rock', icon: [512, 512, [], "f255", "M512 128.79c0-26.322-20.861-48.344-47.18-48.783C437.935 79.558 416 101.217 416 128h-8V96.79c0-26.322-20.861-48.344-47.18-48.783C333.935 47.558 312 69.217 312 96v32h-8V80.79c0-26.322-20.861-48.344-47.18-48.783C229.935 31.558 208 53.217 208 80v48h-8V96.79c0-26.322-20.861-48.344-47.18-48.783C125.935 47.558 104 69.217 104 96v136l-8-7.111V176.79c0-26.322-20.861-48.344-47.18-48.783C21.935 127.558 0 149.217 0 176v66.445a95.998 95.998 0 0 0 32.221 71.751l111.668 99.261A47.999 47.999 0 0 1 160 449.333V456c0 13.255 10.745 24 24 24h240c13.255 0 24-10.745 24-24v-2.921a96.01 96.01 0 0 1 7.523-37.254l48.954-116.265A96.002 96.002 0 0 0 512 262.306V128.79z"] };
  3555. var faHandScissors = { prefix: 'fas', iconName: 'hand-scissors', icon: [512, 512, [], "f257", "M216 440c0-22.092 17.909-40 40-40v-8h-32c-22.091 0-40-17.908-40-40s17.909-40 40-40h32v-8H48c-26.51 0-48-21.49-48-48s21.49-48 48-48h208v-13.572l-177.551-69.74c-24.674-9.694-36.818-37.555-27.125-62.228 9.693-24.674 37.554-36.817 62.228-27.124l190.342 74.765 24.872-31.09c12.306-15.381 33.978-19.515 51.081-9.741l112 64A40.002 40.002 0 0 1 512 168v240c0 18.562-12.77 34.686-30.838 38.937l-136 32A39.982 39.982 0 0 1 336 480h-80c-22.091 0-40-17.908-40-40z"] };
  3556. var faHandSpock = { prefix: 'fas', iconName: 'hand-spock', icon: [512, 512, [], "f259", "M10.872 316.585c15.139-16.086 40.454-16.854 56.543-1.713L128 371.893v-79.405L88.995 120.865c-4.896-21.542 8.598-42.974 30.14-47.87 21.549-4.894 42.975 8.599 47.87 30.141L201.747 256h9.833L164.016 48.966c-4.946-21.531 8.498-42.994 30.028-47.94 21.532-4.95 42.994 8.498 47.94 30.028L293.664 256h15.105l48.425-193.702c5.357-21.432 27.075-34.462 48.507-29.104 21.432 5.358 34.463 27.075 29.104 48.507L391.231 256h11.08l30.768-129.265c5.117-21.491 26.685-34.768 48.177-29.647 21.491 5.117 34.765 26.686 29.647 48.177l-36.292 152.467A96.024 96.024 0 0 0 472 319.967v42.102a96.002 96.002 0 0 1-3.96 27.287l-26.174 88.287C435.825 498.022 417.101 512 395.846 512H179.172a48.002 48.002 0 0 1-32.898-13.046L12.585 373.128c-16.087-15.141-16.853-40.456-1.713-56.543z"] };
  3557. var faHands = { prefix: 'fas', iconName: 'hands', icon: [640, 512, [], "f4c2", "M204.8 230.4c-10.6-14.1-30.7-17-44.8-6.4-14.1 10.6-17 30.7-6.4 44.8l38.1 50.8c4.8 6.4 4.1 15.3-1.5 20.9l-12.8 12.8c-6.7 6.7-17.6 6.2-23.6-1.1L64 244.4V96c0-17.7-14.3-32-32-32S0 78.3 0 96v218.4c0 10.9 3.7 21.5 10.5 30l104.1 134.3c5 6.5 8.4 13.9 10.4 21.7 1.8 6.9 8.1 11.6 15.3 11.6H272c8.8 0 16-7.2 16-16V384c0-27.7-9-54.6-25.6-76.8l-57.6-76.8zM608 64c-17.7 0-32 14.3-32 32v148.4l-89.8 107.8c-6 7.2-17 7.7-23.6 1.1l-12.8-12.8c-5.6-5.6-6.3-14.5-1.5-20.9l38.1-50.8c10.6-14.1 7.7-34.2-6.4-44.8-14.1-10.6-34.2-7.7-44.8 6.4l-57.6 76.8C361 329.4 352 356.3 352 384v112c0 8.8 7.2 16 16 16h131.7c7.1 0 13.5-4.7 15.3-11.6 2-7.8 5.4-15.2 10.4-21.7l104.1-134.3c6.8-8.5 10.5-19.1 10.5-30V96c0-17.7-14.3-32-32-32z"] };
  3558. var faHandsHelping = { prefix: 'fas', iconName: 'hands-helping', icon: [640, 512, [], "f4c4", "M488 192H336v56c0 39.7-32.3 72-72 72s-72-32.3-72-72V126.4l-64.9 39C107.8 176.9 96 197.8 96 220.2v47.3l-80 46.2C.7 322.5-4.6 342.1 4.3 357.4l80 138.6c8.8 15.3 28.4 20.5 43.7 11.7L231.4 448H368c35.3 0 64-28.7 64-64h16c17.7 0 32-14.3 32-32v-64h8c13.3 0 24-10.7 24-24v-48c0-13.3-10.7-24-24-24zm147.7-37.4L555.7 16C546.9.7 527.3-4.5 512 4.3L408.6 64H306.4c-12 0-23.7 3.4-33.9 9.7L239 94.6c-9.4 5.8-15 16.1-15 27.1V248c0 22.1 17.9 40 40 40s40-17.9 40-40v-88h184c30.9 0 56 25.1 56 56v28.5l80-46.2c15.3-8.9 20.5-28.4 11.7-43.7z"] };
  3559. var faHandshake = { prefix: 'fas', iconName: 'handshake', icon: [640, 512, [], "f2b5", "M434.7 64h-85.9c-8 0-15.7 3-21.6 8.4l-98.3 90c-.1.1-.2.3-.3.4-16.6 15.6-16.3 40.5-2.1 56 12.7 13.9 39.4 17.6 56.1 2.7.1-.1.3-.1.4-.2l79.9-73.2c6.5-5.9 16.7-5.5 22.6 1 6 6.5 5.5 16.6-1 22.6l-26.1 23.9L504 313.8c2.9 2.4 5.5 5 7.9 7.7V128l-54.6-54.6c-5.9-6-14.1-9.4-22.6-9.4zM544 128.2v223.9c0 17.7 14.3 32 32 32h64V128.2h-96zm48 223.9c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zM0 384h64c17.7 0 32-14.3 32-32V128.2H0V384zm48-63.9c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16c0-8.9 7.2-16 16-16zm435.9 18.6L334.6 217.5l-30 27.5c-29.7 27.1-75.2 24.5-101.7-4.4-26.9-29.4-24.8-74.9 4.4-101.7L289.1 64h-83.8c-8.5 0-16.6 3.4-22.6 9.4L128 128v223.9h18.3l90.5 81.9c27.4 22.3 67.7 18.1 90-9.3l.2-.2 17.9 15.5c15.9 13 39.4 10.5 52.3-5.4l31.4-38.6 5.4 4.4c13.7 11.1 33.9 9.1 45-4.7l9.5-11.7c11.2-13.8 9.1-33.9-4.6-45.1z"] };
  3560. var faHanukiah = { prefix: 'fas', iconName: 'hanukiah', icon: [640, 512, [], "f6e6", "M232 160c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm-64 0c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm224 0c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm64 0c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm88 8c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v120h32V168zm-440-8c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm520 0h-32c-8.84 0-16 7.16-16 16v112c0 17.67-14.33 32-32 32H352V128c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v192H96c-17.67 0-32-14.33-32-32V176c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v112c0 53.02 42.98 96 96 96h192v64H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16H352v-64h192c53.02 0 96-42.98 96-96V176c0-8.84-7.16-16-16-16zm-16-32c13.25 0 24-11.94 24-26.67S608 48 608 48s-24 38.61-24 53.33S594.75 128 608 128zm-576 0c13.25 0 24-11.94 24-26.67S32 48 32 48 8 86.61 8 101.33 18.75 128 32 128zm288-48c13.25 0 24-11.94 24-26.67S320 0 320 0s-24 38.61-24 53.33S306.75 80 320 80zm-208 48c13.25 0 24-11.94 24-26.67S112 48 112 48s-24 38.61-24 53.33S98.75 128 112 128zm64 0c13.25 0 24-11.94 24-26.67S176 48 176 48s-24 38.61-24 53.33S162.75 128 176 128zm64 0c13.25 0 24-11.94 24-26.67S240 48 240 48s-24 38.61-24 53.33S226.75 128 240 128zm160 0c13.25 0 24-11.94 24-26.67S400 48 400 48s-24 38.61-24 53.33S386.75 128 400 128zm64 0c13.25 0 24-11.94 24-26.67S464 48 464 48s-24 38.61-24 53.33S450.75 128 464 128zm64 0c13.25 0 24-11.94 24-26.67S528 48 528 48s-24 38.61-24 53.33S514.75 128 528 128z"] };
  3561. var faHashtag = { prefix: 'fas', iconName: 'hashtag', icon: [448, 512, [], "f292", "M440.667 182.109l7.143-40c1.313-7.355-4.342-14.109-11.813-14.109h-74.81l14.623-81.891C377.123 38.754 371.468 32 363.997 32h-40.632a12 12 0 0 0-11.813 9.891L296.175 128H197.54l14.623-81.891C213.477 38.754 207.822 32 200.35 32h-40.632a12 12 0 0 0-11.813 9.891L132.528 128H53.432a12 12 0 0 0-11.813 9.891l-7.143 40C33.163 185.246 38.818 192 46.289 192h74.81L98.242 320H19.146a12 12 0 0 0-11.813 9.891l-7.143 40C-1.123 377.246 4.532 384 12.003 384h74.81L72.19 465.891C70.877 473.246 76.532 480 84.003 480h40.632a12 12 0 0 0 11.813-9.891L151.826 384h98.634l-14.623 81.891C234.523 473.246 240.178 480 247.65 480h40.632a12 12 0 0 0 11.813-9.891L315.472 384h79.096a12 12 0 0 0 11.813-9.891l7.143-40c1.313-7.355-4.342-14.109-11.813-14.109h-74.81l22.857-128h79.096a12 12 0 0 0 11.813-9.891zM261.889 320h-98.634l22.857-128h98.634l-22.857 128z"] };
  3562. var faHatWizard = { prefix: 'fas', iconName: 'hat-wizard', icon: [512, 512, [], "f6e8", "M496 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-304-64l-64-32 64-32 32-64 32 64 64 32-64 32-16 32h208l-86.41-201.63a63.955 63.955 0 0 1-1.89-45.45L416 0 228.42 107.19a127.989 127.989 0 0 0-53.46 59.15L64 416h144l-16-32zm64-224l16-32 16 32 32 16-32 16-16 32-16-32-32-16 32-16z"] };
  3563. var faHaykal = { prefix: 'fas', iconName: 'haykal', icon: [512, 512, [], "f666", "M496.25 202.52l-110-15.44 41.82-104.34c6.67-16.64-11.6-32.18-26.59-22.63L307.44 120 273.35 12.82C270.64 4.27 263.32 0 256 0c-7.32 0-14.64 4.27-17.35 12.82l-34.09 107.19-94.04-59.89c-14.99-9.55-33.25 5.99-26.59 22.63l41.82 104.34-110 15.43c-17.54 2.46-21.68 26.27-6.03 34.67l98.16 52.66-74.48 83.54c-10.92 12.25-1.72 30.93 13.29 30.93 1.31 0 2.67-.14 4.07-.45l108.57-23.65-4.11 112.55c-.43 11.65 8.87 19.22 18.41 19.22 5.15 0 10.39-2.21 14.2-7.18l68.18-88.9 68.18 88.9c3.81 4.97 9.04 7.18 14.2 7.18 9.54 0 18.84-7.57 18.41-19.22l-4.11-112.55 108.57 23.65c17.36 3.76 29.21-17.2 17.35-30.49l-74.48-83.54 98.16-52.66c15.64-8.39 11.5-32.2-6.04-34.66zM338.51 311.68l-51.89-11.3 1.97 53.79L256 311.68l-32.59 42.49 1.96-53.79-51.89 11.3 35.6-39.93-46.92-25.17 52.57-7.38-19.99-49.87 44.95 28.62L256 166.72l16.29 51.23 44.95-28.62-19.99 49.87 52.57 7.38-46.92 25.17 35.61 39.93z"] };
  3564. var faHdd = { prefix: 'fas', iconName: 'hdd', icon: [576, 512, [], "f0a0", "M576 304v96c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48v-96c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48zm-48-80a79.557 79.557 0 0 1 30.777 6.165L462.25 85.374A48.003 48.003 0 0 0 422.311 64H153.689a48 48 0 0 0-39.938 21.374L17.223 230.165A79.557 79.557 0 0 1 48 224h480zm-48 96c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm-96 0c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32z"] };
  3565. var faHeading = { prefix: 'fas', iconName: 'heading', icon: [512, 512, [], "f1dc", "M496 80V48c0-8.837-7.163-16-16-16H320c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h37.621v128H154.379V96H192c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H32c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h37.275v320H32c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h160c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-37.621V288H357.62v128H320c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h160c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-37.275V96H480c8.837 0 16-7.163 16-16z"] };
  3566. var faHeadphones = { prefix: 'fas', iconName: 'headphones', icon: [512, 512, [], "f025", "M256 32C114.52 32 0 146.496 0 288v48a32 32 0 0 0 17.689 28.622l14.383 7.191C34.083 431.903 83.421 480 144 480h24c13.255 0 24-10.745 24-24V280c0-13.255-10.745-24-24-24h-24c-31.342 0-59.671 12.879-80 33.627V288c0-105.869 86.131-192 192-192s192 86.131 192 192v1.627C427.671 268.879 399.342 256 368 256h-24c-13.255 0-24 10.745-24 24v176c0 13.255 10.745 24 24 24h24c60.579 0 109.917-48.098 111.928-108.187l14.382-7.191A32 32 0 0 0 512 336v-48c0-141.479-114.496-256-256-256z"] };
  3567. var faHeadphonesAlt = { prefix: 'fas', iconName: 'headphones-alt', icon: [512, 512, [], "f58f", "M160 288h-16c-35.35 0-64 28.7-64 64.12v63.76c0 35.41 28.65 64.12 64 64.12h16c17.67 0 32-14.36 32-32.06V320.06c0-17.71-14.33-32.06-32-32.06zm208 0h-16c-17.67 0-32 14.35-32 32.06v127.88c0 17.7 14.33 32.06 32 32.06h16c35.35 0 64-28.71 64-64.12v-63.76c0-35.41-28.65-64.12-64-64.12zM256 32C112.91 32 4.57 151.13 0 288v112c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16V288c0-114.67 93.33-207.8 208-207.82 114.67.02 208 93.15 208 207.82v112c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16V288C507.43 151.13 399.09 32 256 32z"] };
  3568. var faHeadset = { prefix: 'fas', iconName: 'headset', icon: [512, 512, [], "f590", "M192 208c0-17.67-14.33-32-32-32h-16c-35.35 0-64 28.65-64 64v48c0 35.35 28.65 64 64 64h16c17.67 0 32-14.33 32-32V208zm176 144c35.35 0 64-28.65 64-64v-48c0-35.35-28.65-64-64-64h-16c-17.67 0-32 14.33-32 32v112c0 17.67 14.33 32 32 32h16zM256 0C113.18 0 4.58 118.83 0 256v16c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-16c0-114.69 93.31-208 208-208s208 93.31 208 208h-.12c.08 2.43.12 165.72.12 165.72 0 23.35-18.93 42.28-42.28 42.28H320c0-26.51-21.49-48-48-48h-32c-26.51 0-48 21.49-48 48s21.49 48 48 48h181.72c49.86 0 90.28-40.42 90.28-90.28V256C507.42 118.83 398.82 0 256 0z"] };
  3569. var faHeart = { prefix: 'fas', iconName: 'heart', icon: [512, 512, [], "f004", "M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"] };
  3570. var faHeartbeat = { prefix: 'fas', iconName: 'heartbeat', icon: [512, 512, [], "f21e", "M320.2 243.8l-49.7 99.4c-6 12.1-23.4 11.7-28.9-.6l-56.9-126.3-30 71.7H60.6l182.5 186.5c7.1 7.3 18.6 7.3 25.7 0L451.4 288H342.3l-22.1-44.2zM473.7 73.9l-2.4-2.5c-51.5-52.6-135.8-52.6-187.4 0L256 100l-27.9-28.5c-51.5-52.7-135.9-52.7-187.4 0l-2.4 2.4C-10.4 123.7-12.5 203 31 256h102.4l35.9-86.2c5.4-12.9 23.6-13.2 29.4-.4l58.2 129.3 49-97.9c5.9-11.8 22.7-11.8 28.6 0l27.6 55.2H481c43.5-53 41.4-132.3-7.3-182.1z"] };
  3571. var faHelicopter = { prefix: 'fas', iconName: 'helicopter', icon: [640, 512, [], "f533", "M304 384h272c17.67 0 32-14.33 32-32 0-123.71-100.29-224-224-224V64h176c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16H144c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h176v64H112L68.8 70.4C65.78 66.37 61.03 64 56 64H16.01C5.6 64-2.04 73.78.49 83.88L32 192l160 64 86.4 115.2A31.992 31.992 0 0 0 304 384zm112-188.49C478.55 208.3 528.03 257.44 540.79 320H416V195.51zm219.37 263.3l-22.15-22.2c-6.25-6.26-16.24-6.1-22.64.01-7.09 6.77-13.84 11.25-24.64 11.25H240c-8.84 0-16 7.18-16 16.03v32.06c0 8.85 7.16 16.03 16 16.03h325.94c14.88 0 35.3-.47 68.45-29.52 7.02-6.14 7.57-17.05.98-23.66z"] };
  3572. var faHighlighter = { prefix: 'fas', iconName: 'highlighter', icon: [544, 512, [], "f591", "M0 479.98L99.92 512l35.45-35.45-67.04-67.04L0 479.98zm124.61-240.01a36.592 36.592 0 0 0-10.79 38.1l13.05 42.83-50.93 50.94 96.23 96.23 50.86-50.86 42.74 13.08c13.73 4.2 28.65-.01 38.15-10.78l35.55-41.64-173.34-173.34-41.52 35.44zm403.31-160.7l-63.2-63.2c-20.49-20.49-53.38-21.52-75.12-2.35L190.55 183.68l169.77 169.78L530.27 154.4c19.18-21.74 18.15-54.63-2.35-75.13z"] };
  3573. var faHiking = { prefix: 'fas', iconName: 'hiking', icon: [384, 512, [], "f6ec", "M80.95 472.23c-4.28 17.16 6.14 34.53 23.28 38.81 2.61.66 5.22.95 7.8.95 14.33 0 27.37-9.7 31.02-24.23l25.24-100.97-52.78-52.78-34.56 138.22zm14.89-196.12L137 117c2.19-8.42-3.14-16.95-11.92-19.06-43.88-10.52-88.35 15.07-99.32 57.17L.49 253.24c-2.19 8.42 3.14 16.95 11.92 19.06l63.56 15.25c8.79 2.1 17.68-3.02 19.87-11.44zM368 160h-16c-8.84 0-16 7.16-16 16v16h-34.75l-46.78-46.78C243.38 134.11 228.61 128 212.91 128c-27.02 0-50.47 18.3-57.03 44.52l-26.92 107.72a32.012 32.012 0 0 0 8.42 30.39L224 397.25V480c0 17.67 14.33 32 32 32s32-14.33 32-32v-82.75c0-17.09-6.66-33.16-18.75-45.25l-46.82-46.82c.15-.5.49-.89.62-1.41l19.89-79.57 22.43 22.43c6 6 14.14 9.38 22.62 9.38h48v240c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16V176c.01-8.84-7.15-16-15.99-16zM240 96c26.51 0 48-21.49 48-48S266.51 0 240 0s-48 21.49-48 48 21.49 48 48 48z"] };
  3574. var faHippo = { prefix: 'fas', iconName: 'hippo', icon: [640, 512, [], "f6ed", "M581.12 96.2c-27.67-.15-52.5 17.58-76.6 26.62C489.98 88.27 455.83 64 416 64c-11.28 0-21.95 2.3-32 5.88V56c0-13.26-10.75-24-24-24h-16c-13.25 0-24 10.74-24 24v48.98C286.01 79.58 241.24 64 192 64 85.96 64 0 135.64 0 224v240c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16v-70.79C128.35 407.57 166.72 416 208 416s79.65-8.43 112-22.79V464c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V288h128v32c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-32c17.67 0 32-14.33 32-32v-92.02c0-34.09-24.79-67.59-58.88-67.78zM448 176c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16z"] };
  3575. var faHistory = { prefix: 'fas', iconName: 'history', icon: [512, 512, [], "f1da", "M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z"] };
  3576. var faHockeyPuck = { prefix: 'fas', iconName: 'hockey-puck', icon: [512, 512, [], "f453", "M0 160c0-53 114.6-96 256-96s256 43 256 96-114.6 96-256 96S0 213 0 160zm0 82.2V352c0 53 114.6 96 256 96s256-43 256-96V242.2c-113.4 82.3-398.5 82.4-512 0z"] };
  3577. var faHome = { prefix: 'fas', iconName: 'home', icon: [576, 512, [], "f015", "M488 312.7V456c0 13.3-10.7 24-24 24H348c-6.6 0-12-5.4-12-12V356c0-6.6-5.4-12-12-12h-72c-6.6 0-12 5.4-12 12v112c0 6.6-5.4 12-12 12H112c-13.3 0-24-10.7-24-24V312.7c0-3.6 1.6-7 4.4-9.3l188-154.8c4.4-3.6 10.8-3.6 15.3 0l188 154.8c2.7 2.3 4.3 5.7 4.3 9.3zm83.6-60.9L488 182.9V44.4c0-6.6-5.4-12-12-12h-56c-6.6 0-12 5.4-12 12V117l-89.5-73.7c-17.7-14.6-43.3-14.6-61 0L4.4 251.8c-5.1 4.2-5.8 11.8-1.6 16.9l25.5 31c4.2 5.1 11.8 5.8 16.9 1.6l235.2-193.7c4.4-3.6 10.8-3.6 15.3 0l235.2 193.7c5.1 4.2 12.7 3.5 16.9-1.6l25.5-31c4.2-5.2 3.4-12.7-1.7-16.9z"] };
  3578. var faHorse = { prefix: 'fas', iconName: 'horse', icon: [576, 512, [], "f6f0", "M575.92 76.6c-.01-8.13-3.02-15.87-8.58-21.8-3.78-4.03-8.58-9.12-13.69-14.5 11.06-6.84 19.5-17.49 22.18-30.66C576.85 4.68 572.96 0 567.9 0H447.92c-70.69 0-128 57.31-128 128H160c-28.84 0-54.4 12.98-72 33.11V160c-48.53 0-88 39.47-88 88v56c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-56c0-13.22 6.87-24.39 16.78-31.68-.21 2.58-.78 5.05-.78 7.68 0 27.64 11.84 52.36 30.54 69.88l-25.72 68.6a63.945 63.945 0 0 0-2.16 37.99l24.85 99.41A15.982 15.982 0 0 0 107.02 512h65.96c10.41 0 18.05-9.78 15.52-19.88l-26.31-105.26 23.84-63.59L320 345.6V496c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V318.22c19.74-20.19 32-47.75 32-78.22 0-.22-.07-.42-.08-.64V136.89l16 7.11 18.9 37.7c7.45 14.87 25.05 21.55 40.49 15.37l32.55-13.02a31.997 31.997 0 0 0 20.12-29.74l-.06-77.71zm-64 19.4c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16z"] };
  3579. var faHospital = { prefix: 'fas', iconName: 'hospital', icon: [448, 512, [], "f0f8", "M448 492v20H0v-20c0-6.627 5.373-12 12-12h20V120c0-13.255 10.745-24 24-24h88V24c0-13.255 10.745-24 24-24h112c13.255 0 24 10.745 24 24v72h88c13.255 0 24 10.745 24 24v360h20c6.627 0 12 5.373 12 12zM308 192h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12zm-168 64h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12zm104 128h-40c-6.627 0-12 5.373-12 12v84h64v-84c0-6.627-5.373-12-12-12zm64-96h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12zm-116 12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40zM182 96h26v26a6 6 0 0 0 6 6h20a6 6 0 0 0 6-6V96h26a6 6 0 0 0 6-6V70a6 6 0 0 0-6-6h-26V38a6 6 0 0 0-6-6h-20a6 6 0 0 0-6 6v26h-26a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6z"] };
  3580. var faHospitalAlt = { prefix: 'fas', iconName: 'hospital-alt', icon: [576, 512, [], "f47d", "M544 96H416V32c0-17.7-14.3-32-32-32H192c-17.7 0-32 14.3-32 32v64H32c-17.7 0-32 14.3-32 32v368c0 8.8 7.2 16 16 16h544c8.8 0 16-7.2 16-16V128c0-17.7-14.3-32-32-32zM160 436c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm160 128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm16-170c0 3.3-2.7 6-6 6h-26v26c0 3.3-2.7 6-6 6h-20c-3.3 0-6-2.7-6-6v-26h-26c-3.3 0-6-2.7-6-6v-20c0-3.3 2.7-6 6-6h26V86c0-3.3 2.7-6 6-6h20c3.3 0 6 2.7 6 6v26h26c3.3 0 6 2.7 6 6v20zm144 298c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40z"] };
  3581. var faHospitalSymbol = { prefix: 'fas', iconName: 'hospital-symbol', icon: [512, 512, [], "f47e", "M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm112 376c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-88h-96v88c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V136c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v88h96v-88c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v240z"] };
  3582. var faHotTub = { prefix: 'fas', iconName: 'hot-tub', icon: [512, 512, [], "f593", "M414.21 177.65c1.02 8.21 7.75 14.35 15.75 14.35h16.12c9.51 0 17.08-8.57 16-18.35-4.34-39.11-22.4-74.53-50.13-97.16-17.37-14.17-28.82-36.75-31.98-62.15C378.96 6.14 372.22 0 364.23 0h-16.12c-9.51 0-17.09 8.57-16 18.35 4.34 39.11 22.4 74.53 50.13 97.16 17.36 14.17 28.82 36.75 31.97 62.14zm-108 0c1.02 8.21 7.75 14.35 15.75 14.35h16.12c9.51 0 17.08-8.57 16-18.35-4.34-39.11-22.4-74.53-50.13-97.16-17.37-14.17-28.82-36.75-31.98-62.15C270.96 6.14 264.22 0 256.23 0h-16.12c-9.51 0-17.09 8.57-16 18.35 4.34 39.11 22.4 74.53 50.13 97.16 17.36 14.17 28.82 36.75 31.97 62.14zM480 256H256l-110.93-83.2a63.99 63.99 0 0 0-38.4-12.8H64c-35.35 0-64 28.65-64 64v224c0 35.35 28.65 64 64 64h384c35.35 0 64-28.65 64-64V288c0-17.67-14.33-32-32-32zM128 440c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8V328c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v112zm96 0c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8V328c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v112zm96 0c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8V328c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v112zm96 0c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8V328c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v112zM64 128c35.35 0 64-28.65 64-64S99.35 0 64 0 0 28.65 0 64s28.65 64 64 64z"] };
  3583. var faHotel = { prefix: 'fas', iconName: 'hotel', icon: [576, 512, [], "f594", "M560 64c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16H16C7.16 0 0 7.16 0 16v32c0 8.84 7.16 16 16 16h15.98v384H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h240v-80c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v80h240c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16h-16V64h16zm-304 44.8c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4zm0 96c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4zm-128-96c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4zM179.2 256h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4c0 6.4-6.4 12.8-12.8 12.8zM192 384c0-53.02 42.98-96 96-96s96 42.98 96 96H192zm256-140.8c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-96c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4z"] };
  3584. var faHourglass = { prefix: 'fas', iconName: 'hourglass', icon: [384, 512, [], "f254", "M360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64z"] };
  3585. var faHourglassEnd = { prefix: 'fas', iconName: 'hourglass-end', icon: [384, 512, [], "f253", "M360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64zM192 208c-57.787 0-104-66.518-104-144h208c0 77.945-46.51 144-104 144z"] };
  3586. var faHourglassHalf = { prefix: 'fas', iconName: 'hourglass-half', icon: [384, 512, [], "f252", "M360 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24zm-75.078 384H99.08c17.059-46.797 52.096-80 92.92-80 40.821 0 75.862 33.196 92.922 80zm.019-256H99.078C91.988 108.548 88 86.748 88 64h208c0 22.805-3.987 44.587-11.059 64z"] };
  3587. var faHourglassStart = { prefix: 'fas', iconName: 'hourglass-start', icon: [384, 512, [], "f251", "M360 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24zm-64 448H88c0-77.458 46.204-144 104-144 57.786 0 104 66.517 104 144z"] };
  3588. var faHouseDamage = { prefix: 'fas', iconName: 'house-damage', icon: [576, 512, [], "f6f1", "M288 114.96L69.47 307.71c-1.62 1.46-3.69 2.14-5.47 3.35V496c0 8.84 7.16 16 16 16h149.23L192 439.19l104.11-64-60.16-119.22L384 392.75l-104.11 64L319.81 512H496c8.84 0 16-7.16 16-16V311.1c-1.7-1.16-3.72-1.82-5.26-3.2L288 114.96zm282.69 121.32L512 184.45V48c0-8.84-7.16-16-16-16h-64c-8.84 0-16 7.16-16 16v51.69L314.75 10.31C307.12 3.45 297.56.01 288 0s-19.1 3.41-26.7 10.27L5.31 236.28c-6.57 5.91-7.12 16.02-1.21 22.6l21.4 23.82c5.9 6.57 16.02 7.12 22.6 1.21L277.42 81.63c6.05-5.33 15.12-5.33 21.17 0L527.91 283.9c6.57 5.9 16.69 5.36 22.6-1.21l21.4-23.82c5.9-6.57 5.36-16.69-1.22-22.59z"] };
  3589. var faHryvnia = { prefix: 'fas', iconName: 'hryvnia', icon: [384, 512, [], "f6f2", "M368 240c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16h-41.86c13.41-28.63 13.74-63.33-4.13-94.05C303.34 49.84 267.1 32 229.96 32h-78.82c-24.32 0-47.86 8.53-66.54 24.09L72.83 65.9c-10.18 8.49-11.56 23.62-3.07 33.8l20.49 24.59c8.49 10.19 23.62 11.56 33.81 3.07l11.73-9.78c4.32-3.6 9.77-5.57 15.39-5.57h83.62c11.69 0 21.2 9.52 21.2 21.2 0 5.91-2.48 11.58-6.81 15.58L219.7 176H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h134.37l-34.67 32H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h41.86c-13.41 28.63-13.74 63.33 4.13 94.05C80.66 462.15 116.9 480 154.04 480h78.82c24.32 0 47.86-8.53 66.54-24.09l11.77-9.81c10.18-8.49 11.56-23.62 3.07-33.8l-20.49-24.59c-8.49-10.19-23.62-11.56-33.81-3.07l-11.75 9.8a23.992 23.992 0 0 1-15.36 5.56H149.2c-11.69 0-21.2-9.52-21.2-21.2 0-5.91 2.48-11.58 6.81-15.58L164.3 336H368c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16H233.63l34.67-32H368z"] };
  3590. var faICursor = { prefix: 'fas', iconName: 'i-cursor', icon: [256, 512, [], "f246", "M256 52.048V12.065C256 5.496 250.726.148 244.158.066 211.621-.344 166.469.011 128 37.959 90.266.736 46.979-.114 11.913.114 5.318.157 0 5.519 0 12.114v39.645c0 6.687 5.458 12.078 12.145 11.998C38.111 63.447 96 67.243 96 112.182V224H60c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h36v112c0 44.932-56.075 48.031-83.95 47.959C5.404 447.942 0 453.306 0 459.952v39.983c0 6.569 5.274 11.917 11.842 11.999 32.537.409 77.689.054 116.158-37.894 37.734 37.223 81.021 38.073 116.087 37.845 6.595-.043 11.913-5.405 11.913-12V460.24c0-6.687-5.458-12.078-12.145-11.998C217.889 448.553 160 444.939 160 400V288h36c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-36V112.182c0-44.932 56.075-48.213 83.95-48.142 6.646.018 12.05-5.346 12.05-11.992z"] };
  3591. var faIdBadge = { prefix: 'fas', iconName: 'id-badge', icon: [384, 512, [], "f2c1", "M336 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM144 32h96c8.8 0 16 7.2 16 16s-7.2 16-16 16h-96c-8.8 0-16-7.2-16-16s7.2-16 16-16zm48 128c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H102.4C90 416 80 407.4 80 396.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"] };
  3592. var faIdCard = { prefix: 'fas', iconName: 'id-card', icon: [576, 512, [], "f2c2", "M528 32H48C21.5 32 0 53.5 0 80v16h576V80c0-26.5-21.5-48-48-48zM0 432c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V128H0v304zm352-232c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zm0 64c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zm0 64c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zM176 192c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zM67.1 396.2C75.5 370.5 99.6 352 128 352h8.2c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h8.2c28.4 0 52.5 18.5 60.9 44.2 3.2 9.9-5.2 19.8-15.6 19.8H82.7c-10.4 0-18.8-10-15.6-19.8z"] };
  3593. var faIdCardAlt = { prefix: 'fas', iconName: 'id-card-alt', icon: [576, 512, [], "f47f", "M528 64H384v96H192V64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM288 224c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm93.3 224H194.7c-10.4 0-18.8-10-15.6-19.8 8.3-25.6 32.4-44.2 60.9-44.2h8.2c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h8.2c28.4 0 52.5 18.5 60.9 44.2 3.2 9.8-5.2 19.8-15.6 19.8zM352 32c0-17.7-14.3-32-32-32h-64c-17.7 0-32 14.3-32 32v96h128V32z"] };
  3594. var faImage = { prefix: 'fas', iconName: 'image', icon: [512, 512, [], "f03e", "M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"] };
  3595. var faImages = { prefix: 'fas', iconName: 'images', icon: [576, 512, [], "f302", "M480 416v16c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V176c0-26.51 21.49-48 48-48h16v208c0 44.112 35.888 80 80 80h336zm96-80V80c0-26.51-21.49-48-48-48H144c-26.51 0-48 21.49-48 48v256c0 26.51 21.49 48 48 48h384c26.51 0 48-21.49 48-48zM256 128c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-96 144l55.515-55.515c4.686-4.686 12.284-4.686 16.971 0L272 256l135.515-135.515c4.686-4.686 12.284-4.686 16.971 0L512 208v112H160v-48z"] };
  3596. var faInbox = { prefix: 'fas', iconName: 'inbox', icon: [576, 512, [], "f01c", "M567.938 243.908L462.25 85.374A48.003 48.003 0 0 0 422.311 64H153.689a48 48 0 0 0-39.938 21.374L8.062 243.908A47.994 47.994 0 0 0 0 270.533V400c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V270.533a47.994 47.994 0 0 0-8.062-26.625zM162.252 128h251.497l85.333 128H376l-32 64H232l-32-64H76.918l85.334-128z"] };
  3597. var faIndent = { prefix: 'fas', iconName: 'indent', icon: [448, 512, [], "f03c", "M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm176 144h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H176c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM16 484h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm160-128h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H176c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm-52.687-111.313l-96-95.984C17.266 138.652 0 145.776 0 160.016v191.975c0 14.329 17.325 21.304 27.313 11.313l96-95.992c6.249-6.247 6.249-16.377 0-22.625z"] };
  3598. var faIndustry = { prefix: 'fas', iconName: 'industry', icon: [512, 512, [], "f275", "M475.115 163.781L336 252.309v-68.28c0-18.916-20.931-30.399-36.885-20.248L160 252.309V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56v400c0 13.255 10.745 24 24 24h464c13.255 0 24-10.745 24-24V184.029c0-18.917-20.931-30.399-36.885-20.248z"] };
  3599. var faInfinity = { prefix: 'fas', iconName: 'infinity', icon: [640, 512, [], "f534", "M471.1 96C405 96 353.3 137.3 320 174.6 286.7 137.3 235 96 168.9 96 75.8 96 0 167.8 0 256s75.8 160 168.9 160c66.1 0 117.8-41.3 151.1-78.6 33.3 37.3 85 78.6 151.1 78.6 93.1 0 168.9-71.8 168.9-160S564.2 96 471.1 96zM168.9 320c-40.2 0-72.9-28.7-72.9-64s32.7-64 72.9-64c38.2 0 73.4 36.1 94 64-20.4 27.6-55.9 64-94 64zm302.2 0c-38.2 0-73.4-36.1-94-64 20.4-27.6 55.9-64 94-64 40.2 0 72.9 28.7 72.9 64s-32.7 64-72.9 64z"] };
  3600. var faInfo = { prefix: 'fas', iconName: 'info', icon: [192, 512, [], "f129", "M20 424.229h20V279.771H20c-11.046 0-20-8.954-20-20V212c0-11.046 8.954-20 20-20h112c11.046 0 20 8.954 20 20v212.229h20c11.046 0 20 8.954 20 20V492c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20v-47.771c0-11.046 8.954-20 20-20zM96 0C56.235 0 24 32.235 24 72s32.235 72 72 72 72-32.235 72-72S135.764 0 96 0z"] };
  3601. var faInfoCircle = { prefix: 'fas', iconName: 'info-circle', icon: [512, 512, [], "f05a", "M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"] };
  3602. var faItalic = { prefix: 'fas', iconName: 'italic', icon: [320, 512, [], "f033", "M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"] };
  3603. var faJedi = { prefix: 'fas', iconName: 'jedi', icon: [544, 512, [], "f669", "M479.99 352l58.88-58.87c3.29-16.8 5.13-34.12 5.13-51.86 0-5.81-.68-11.51-1.05-17.27H496l41.25-41.24c-14.5-64.79-52.43-123.05-107.91-162.27-2.77-1.96-5.97-2.99-9.25-2.99-5.37 0-10.41 2.71-13.49 7.24-3.05 4.49-3.64 9.99-1.61 15.09 6.55 16.46 9.86 33.73 9.86 51.31 0 45.12-21.03 86.57-57.69 113.73-4.02 2.98-6.46 7.5-6.7 12.4-.24 4.92 1.76 9.66 5.49 13.03 32.93 29.75 47.35 73.51 38.57 117.07-9.74 48.35-48.84 87.1-97.31 96.5l-2.5-65.34L321.88 397c2.98 2.06 7.39 1.69 10.02-.8a8.002 8.002 0 0 0 1.34-9.92l-20.11-33.73 42.07-8.72c3.7-.75 6.38-4.05 6.38-7.83 0-3.77-2.69-7.06-6.38-7.83l-42.07-8.73 20.13-33.77c1.92-3.23 1.34-7.31-1.38-9.91-2.7-2.55-6.97-2.89-10-.8l-30.39 20.67L279.96 7.7a7.964 7.964 0 0 0-8-7.7c-4.33 0-7.84 3.38-8 7.67l-11.52 287.97-30.39-20.66c-3.14-2.12-7.27-1.83-10 .78-2.72 2.59-3.3 6.67-1.36 9.94l20.11 33.73-42.07 8.73c-3.7.75-6.38 4.05-6.38 7.83s2.67 7.08 6.38 7.83l42.07 8.72-20.13 33.77c-1.92 3.23-1.34 7.33 1.39 9.94 2.59 2.45 7.03 2.75 10 .75l27.16-18.48-2.5 65.26c-56.94-11.64-99.89-61.89-99.89-121.92 0-35.08 14.62-67.6 41.17-91.58 3.72-3.36 5.72-8.11 5.48-13.01-.24-4.9-2.68-9.41-6.69-12.38-36.67-27.16-57.71-68.62-57.71-113.74 0-17.56 3.31-34.81 9.84-51.26 2.02-5.09 1.43-10.59-1.62-15.09-3.08-4.54-8.13-7.25-13.51-7.25-3.3 0-6.5 1.04-9.27 3-55.87 39.52-93.6 97.37-107.97 162.07L47.93 224H.72c-.63 9.92-.97 19.91-.5 29.99.62 13.43 2.54 26.53 5.11 39.41l58.6 58.6H24.02c41.25 90.23 131.13 154.94 235.1 159.71 4.3.2 8.59.29 12.85.29 110.34 0 205.35-65.83 247.98-160h-39.96z"] };
  3604. var faJoint = { prefix: 'fas', iconName: 'joint', icon: [640, 512, [], "f595", "M444.34 181.1c22.38 15.68 35.66 41.16 35.66 68.59V280c0 4.42 3.58 8 8 8h48c4.42 0 8-3.58 8-8v-30.31c0-43.24-21.01-83.41-56.34-108.06C463.85 125.02 448 99.34 448 70.31V8c0-4.42-3.58-8-8-8h-48c-4.42 0-8 3.58-8 8v66.4c0 43.69 24.56 81.63 60.34 106.7zM194.97 358.98C126.03 370.07 59.69 394.69 0 432c83.65 52.28 180.3 80 278.94 80h88.57L254.79 380.49c-14.74-17.2-37.45-25.11-59.82-21.51zM553.28 87.09c-5.67-3.8-9.28-9.96-9.28-16.78V8c0-4.42-3.58-8-8-8h-48c-4.42 0-8 3.58-8 8v62.31c0 22.02 10.17 43.41 28.64 55.39C550.79 153.04 576 199.54 576 249.69V280c0 4.42 3.58 8 8 8h48c4.42 0 8-3.58 8-8v-30.31c0-65.44-32.41-126.19-86.72-162.6zM360.89 352.05c-34.4.06-86.81.15-88.21.17l117.8 137.43A63.987 63.987 0 0 0 439.07 512h88.45L409.57 374.4a63.955 63.955 0 0 0-48.68-22.35zM616 352H432l117.99 137.65A63.987 63.987 0 0 0 598.58 512H616c13.25 0 24-10.75 24-24V376c0-13.26-10.75-24-24-24z"] };
  3605. var faJournalWhills = { prefix: 'fas', iconName: 'journal-whills', icon: [448, 512, [], "f66a", "M448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM133.08 144.39l21.26 21.26c1.56 1.56 3.61 2.34 5.66 2.34s4.09-.78 5.66-2.34c3.12-3.12 3.12-8.19 0-11.31l-26.42-26.42c10-20.9 26.24-37.97 46.37-49.26C179.62 88.4 176 99.74 176 112c0 19.96 9.33 37.57 23.66 49.31C190.01 171.37 184 184.96 184 200c0 26.94 19.04 49.4 44.38 54.76l1.36-32.71-10.37 7.04c-.69.45-1.47.69-2.25.69-1 0-1.98-.38-2.75-1.09a4.006 4.006 0 0 1-.69-4.95l8.54-14.31-17.91-3.72c-1.86-.39-3.19-2.03-3.19-3.92s1.33-3.53 3.19-3.92l17.91-3.72-8.54-14.31c-.95-1.61-.67-3.67.69-4.95 1.36-1.3 3.44-1.44 5-.41l12.01 8.16L236 71.83c.09-2.14 1.86-3.83 4-3.83s3.91 1.69 4 3.83l4.68 112.29 14.2-9.65a4.067 4.067 0 0 1 5 .41 4.006 4.006 0 0 1 .69 4.95l-8.54 14.31 17.91 3.72c1.86.39 3.19 2.03 3.19 3.92s-1.33 3.53-3.19 3.92l-17.91 3.72 8.54 14.31c.95 1.61.67 3.67-.69 4.95-.77.72-1.77 1.09-2.75 1.09-.78 0-1.56-.23-2.25-.69l-12.68-8.62 1.43 34.28C276.96 249.4 296 226.94 296 200c0-15.04-6.01-28.63-15.66-38.69C294.67 149.57 304 131.96 304 112c0-12.26-3.62-23.6-9.6-33.33 20.13 11.28 36.37 28.36 46.37 49.26l-26.42 26.42c-3.12 3.12-3.12 8.19 0 11.31 1.56 1.56 3.61 2.34 5.66 2.34s4.09-.78 5.66-2.34l21.26-21.26c2.97 10.08 5.07 20.55 5.07 31.6 0 .52-.14.99-.15 1.51l-37.11 32.47a7.975 7.975 0 0 0-.75 11.28 7.97 7.97 0 0 0 6.02 2.73c1.88 0 3.75-.66 5.27-1.98l23.59-20.64C337.32 250.96 293.09 288 240 288s-97.32-37.04-108.86-86.62l23.59 20.64A7.957 7.957 0 0 0 160 224c2.22 0 4.44-.92 6.02-2.73 2.92-3.33 2.58-8.38-.75-11.28l-37.11-32.47c-.01-.52-.15-.99-.15-1.51-.01-11.06 2.09-21.53 5.07-31.62zM380.8 448H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64z"] };
  3606. var faKaaba = { prefix: 'fas', iconName: 'kaaba', icon: [576, 512, [], "f66b", "M554.12 83.51L318.36 4.93a95.962 95.962 0 0 0-60.71 0L21.88 83.51A32.006 32.006 0 0 0 0 113.87v49.01l265.02-79.51c15.03-4.5 30.92-4.5 45.98 0l265 79.51v-49.01c0-13.77-8.81-26-21.88-30.36zm-279.9 30.52L0 196.3v228.38c0 15 10.42 27.98 25.06 31.24l242.12 53.8a95.937 95.937 0 0 0 41.65 0l242.12-53.8c14.64-3.25 25.06-16.24 25.06-31.24V196.29l-274.2-82.26c-9.04-2.72-18.59-2.72-27.59 0zM128 230.11c0 3.61-2.41 6.77-5.89 7.72l-80 21.82C37.02 261.03 32 257.2 32 251.93v-16.58c0-3.61 2.41-6.77 5.89-7.72l80-21.82c5.09-1.39 10.11 2.44 10.11 7.72v16.58zm144-39.28c0 3.61-2.41 6.77-5.89 7.72l-96 26.18c-5.09 1.39-10.11-2.44-10.11-7.72v-16.58c0-3.61 2.41-6.77 5.89-7.72l96-26.18c5.09-1.39 10.11 2.44 10.11 7.72v16.58zm176 22.7c0-5.28 5.02-9.11 10.11-7.72l80 21.82c3.48.95 5.89 4.11 5.89 7.72v16.58c0 5.28-5.02 9.11-10.11 7.72l-80-21.82a7.997 7.997 0 0 1-5.89-7.72v-16.58zm-144-39.27c0-5.28 5.02-9.11 10.11-7.72l96 26.18c3.48.95 5.89 4.11 5.89 7.72v16.58c0 5.28-5.02 9.11-10.11 7.72l-96-26.18a7.997 7.997 0 0 1-5.89-7.72v-16.58z"] };
  3607. var faKey = { prefix: 'fas', iconName: 'key', icon: [512, 512, [], "f084", "M512 176.001C512 273.203 433.202 352 336 352c-11.22 0-22.19-1.062-32.827-3.069l-24.012 27.014A23.999 23.999 0 0 1 261.223 384H224v40c0 13.255-10.745 24-24 24h-40v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24v-78.059c0-6.365 2.529-12.47 7.029-16.971l161.802-161.802C163.108 213.814 160 195.271 160 176 160 78.798 238.797.001 335.999 0 433.488-.001 512 78.511 512 176.001zM336 128c0 26.51 21.49 48 48 48s48-21.49 48-48-21.49-48-48-48-48 21.49-48 48z"] };
  3608. var faKeyboard = { prefix: 'fas', iconName: 'keyboard', icon: [576, 512, [], "f11c", "M528 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM128 180v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm288 0v-40c0-6.627-5.373-12-12-12H172c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h232c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12z"] };
  3609. var faKhanda = { prefix: 'fas', iconName: 'khanda', icon: [512, 512, [], "f66d", "M415.81 66c-6.37-3.5-14.37-2.33-19.36 3.02a15.974 15.974 0 0 0-1.91 19.52c16.49 26.16 25.2 56.39 25.2 87.41-.19 53.25-26.77 102.69-71.27 132.41l-76.63 53.35v-20.1l44.05-36.09c3.92-4.2 5-10.09 2.81-15.28L310.85 273c33.84-19.26 56.94-55.25 56.94-96.99 0-40.79-22.02-76.13-54.59-95.71l5.22-11.44c2.34-5.53.93-11.83-3.57-16.04L255.86 0l-58.99 52.81c-4.5 4.21-5.9 10.51-3.57 16.04l5.22 11.44c-32.57 19.58-54.59 54.93-54.59 95.72 0 41.75 23.09 77.73 56.94 96.99l-7.85 17.24c-2.19 5.18-1.1 11.07 2.81 15.28l44.05 36.09v19.9l-76.59-53.33C119.02 278.62 92.44 229.19 92.26 176c0-31.08 8.71-61.31 25.2-87.47 3.87-6.16 2.4-13.77-2.59-19.08-5-5.34-13.68-6.2-20.02-2.7C16.32 109.6-22.3 205.3 13.36 295.99c7.07 17.99 17.89 34.38 30.46 49.06l55.97 65.36c4.87 5.69 13.04 7.24 19.65 3.72l79.35-42.23L228 392.23l-47.08 32.78c-1.67-.37-3.23-1.01-5.01-1.01-13.25 0-23.99 10.74-23.99 24 0 13.25 10.74 24 23.99 24 12.1 0 21.69-9.11 23.33-20.76l40.63-28.28v29.95c-9.39 5.57-15.99 15.38-15.99 27.1 0 17.67 14.32 32 31.98 32s31.98-14.33 31.98-32c0-11.71-6.61-21.52-15.99-27.1v-30.15l40.91 28.48C314.41 462.89 324 472 336.09 472c13.25 0 23.99-10.75 23.99-24 0-13.26-10.74-24-23.99-24-1.78 0-3.34.64-5.01 1.01L284 392.23l29.21-20.34 79.35 42.23c6.61 3.52 14.78 1.97 19.65-3.71l52.51-61.31c18.87-22.02 34-47.5 41.25-75.59 21.62-83.66-16.45-167.27-90.16-207.51zm-95.99 110c0 22.3-11.49 41.92-28.83 53.38l-5.65-12.41c-8.75-24.52-8.75-51.04 0-75.56l7.83-17.18c16.07 11.65 26.65 30.45 26.65 51.77zm-127.93 0c0-21.32 10.58-40.12 26.66-51.76l7.83 17.18c8.75 24.52 8.75 51.03 0 75.56l-5.65 12.41c-17.34-11.46-28.84-31.09-28.84-53.39z"] };
  3610. var faKiss = { prefix: 'fas', iconName: 'kiss', icon: [496, 512, [], "f596", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-80 232c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm136 156c0 19.2-28.7 41.5-71.5 44-8.5.8-12.1-11.8-3.6-15.4l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-6-2.5-6.1-12.2 0-14.8l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-8.6-3.6-4.8-16.5 3.6-15.4 42.8 2.5 71.5 24.8 71.5 44 0 13-13.4 27.3-35.2 36C290.6 368.7 304 383 304 396zm24-156c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3611. var faKissBeam = { prefix: 'fas', iconName: 'kiss-beam', icon: [496, 512, [], "f597", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-39 219.9l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.5 8.5-10.9 12-15.1 4.5zM304 396c0 19.2-28.7 41.5-71.5 44-8.5.8-12.1-11.8-3.6-15.4l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-6-2.5-6.1-12.2 0-14.8l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-8.6-3.6-4.8-16.5 3.6-15.4 42.8 2.5 71.5 24.8 71.5 44 0 13-13.4 27.3-35.2 36C290.6 368.7 304 383 304 396zm65-168.1l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.1 7.3-15.6 4-14.9-4.5 3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.5 8.5-10.9 12-15.1 4.5z"] };
  3612. var faKissWinkHeart = { prefix: 'fas', iconName: 'kiss-wink-heart', icon: [504, 512, [], "f598", "M501.1 402.5c-8-20.8-31.5-31.5-53.1-25.9l-8.4 2.2-2.3-8.4c-5.9-21.4-27-36.5-49-33-25.2 4-40.6 28.6-34 52.6l22.9 82.6c1.5 5.3 7 8.5 12.4 7.1l83-21.5c24.1-6.3 37.7-31.8 28.5-55.7zm-177.6-4c-5.6-20.3-2.3-42 9-59.7 29.7-46.3 98.7-45.5 127.8 4.3 6.4.1 12.6 1.4 18.6 2.9 10.9-27.9 17.1-58.2 17.1-90C496 119 385 8 248 8S0 119 0 256s111 248 248 248c35.4 0 68.9-7.5 99.4-20.9-.3-.7-23.9-84.6-23.9-84.6zM168 240c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm120 156c0 19.2-28.7 41.5-71.5 44-8.5.8-12.1-11.8-3.6-15.4l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-6-2.5-5.7-12.3 0-14.8l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-8.8-3.7-4.6-16.6 3.6-15.4 42.8 2.5 71.5 24.8 71.5 44 0 13-13.4 27.3-35.2 36C274.6 368.7 288 383 288 396zm16-179c-8.3 7.4-21.6.4-19.8-10.8 4-25.2 34.2-42.1 59.9-42.1S400 181 404 206.2c1.7 11.1-11.3 18.3-19.8 10.8l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L304 217z"] };
  3613. var faKiwiBird = { prefix: 'fas', iconName: 'kiwi-bird', icon: [576, 512, [], "f535", "M575.81 217.98C572.64 157.41 518.28 112 457.63 112h-9.37c-52.82 0-104.25-16.25-147.74-46.24-41.99-28.96-96.04-41.62-153.21-28.7C129.3 41.12-.08 78.24 0 224c.04 70.95 38.68 132.8 95.99 166.01V464c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-54.26c15.36 3.96 31.4 6.26 48 6.26 5.44 0 10.68-.73 16-1.18V464c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-59.43c14.24-5.06 27.88-11.39 40.34-19.51C342.07 355.25 393.86 336 448.46 336c25.48 0 16.01-.31 23.05-.78l74.41 136.44c2.86 5.23 8.3 8.34 14.05 8.34 1.31 0 2.64-.16 3.95-.5 7.09-1.8 12.05-8.19 12.05-15.5 0 0 .14-240.24-.16-246.02zM463.97 248c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm80 153.25l-39.86-73.08c15.12-5.83 28.73-14.6 39.86-25.98v99.06z"] };
  3614. var faLandmark = { prefix: 'fas', iconName: 'landmark', icon: [512, 512, [], "f66f", "M501.62 92.11L267.24 2.04a31.958 31.958 0 0 0-22.47 0L10.38 92.11A16.001 16.001 0 0 0 0 107.09V144c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-36.91c0-6.67-4.14-12.64-10.38-14.98zM64 192v160H48c-8.84 0-16 7.16-16 16v48h448v-48c0-8.84-7.16-16-16-16h-16V192h-64v160h-96V192h-64v160h-96V192H64zm432 256H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  3615. var faLanguage = { prefix: 'fas', iconName: 'language', icon: [640, 512, [], "f1ab", "M304 416H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h280v320zm-120.676-72.622A12 12 0 0 0 194.839 352h22.863c8.22 0 14.007-8.078 11.362-15.861L171.61 167.085a12 12 0 0 0-11.362-8.139h-32.489a12.001 12.001 0 0 0-11.362 8.139L58.942 336.139C56.297 343.922 62.084 352 70.304 352h22.805a12 12 0 0 0 11.535-8.693l9.118-31.807h60.211l9.351 31.878zm-39.051-140.42s4.32 21.061 7.83 33.21l10.8 37.531h-38.07l11.07-37.531c3.51-12.15 7.83-33.21 7.83-33.21h.54zM616 416H336V96h280c13.255 0 24 10.745 24 24v272c0 13.255-10.745 24-24 24zm-36-228h-64v-16c0-6.627-5.373-12-12-12h-16c-6.627 0-12 5.373-12 12v16h-64c-6.627 0-12 5.373-12 12v16c0 6.627 5.373 12 12 12h114.106c-6.263 14.299-16.518 28.972-30.023 43.206-6.56-6.898-12.397-13.91-17.365-20.933-3.639-5.144-10.585-6.675-15.995-3.446l-7.28 4.346-6.498 3.879c-5.956 3.556-7.693 11.421-3.735 17.117 6.065 8.729 13.098 17.336 20.984 25.726-8.122 6.226-16.841 12.244-26.103 17.964-5.521 3.41-7.381 10.556-4.162 16.19l7.941 13.896c3.362 5.883 10.935 7.826 16.706 4.276 12.732-7.831 24.571-16.175 35.443-24.891 10.917 8.761 22.766 17.102 35.396 24.881 5.774 3.556 13.353 1.618 16.717-4.27l7.944-13.903c3.213-5.623 1.37-12.76-4.135-16.171a312.737 312.737 0 0 1-26.06-18.019c21.024-22.425 35.768-46.289 42.713-69.85H580c6.627 0 12-5.373 12-12v-16c0-6.625-5.373-11.998-12-11.998z"] };
  3616. var faLaptop = { prefix: 'fas', iconName: 'laptop', icon: [640, 512, [], "f109", "M624 416H381.54c-.74 19.81-14.71 32-32.74 32H288c-18.69 0-33.02-17.47-32.77-32H16c-8.8 0-16 7.2-16 16v16c0 35.2 28.8 64 64 64h512c35.2 0 64-28.8 64-64v-16c0-8.8-7.2-16-16-16zM576 48c0-26.4-21.6-48-48-48H112C85.6 0 64 21.6 64 48v336h512V48zm-64 272H128V64h384v256z"] };
  3617. var faLaptopCode = { prefix: 'fas', iconName: 'laptop-code', icon: [640, 512, [], "f5fc", "M255.03 261.65c6.25 6.25 16.38 6.25 22.63 0l11.31-11.31c6.25-6.25 6.25-16.38 0-22.63L253.25 192l35.71-35.72c6.25-6.25 6.25-16.38 0-22.63l-11.31-11.31c-6.25-6.25-16.38-6.25-22.63 0l-58.34 58.34c-6.25 6.25-6.25 16.38 0 22.63l58.35 58.34zm96.01-11.3l11.31 11.31c6.25 6.25 16.38 6.25 22.63 0l58.34-58.34c6.25-6.25 6.25-16.38 0-22.63l-58.34-58.34c-6.25-6.25-16.38-6.25-22.63 0l-11.31 11.31c-6.25 6.25-6.25 16.38 0 22.63L386.75 192l-35.71 35.72c-6.25 6.25-6.25 16.38 0 22.63zM624 416H381.54c-.74 19.81-14.71 32-32.74 32H288c-18.69 0-33.02-17.47-32.77-32H16c-8.8 0-16 7.2-16 16v16c0 35.2 28.8 64 64 64h512c35.2 0 64-28.8 64-64v-16c0-8.8-7.2-16-16-16zM576 48c0-26.4-21.6-48-48-48H112C85.6 0 64 21.6 64 48v336h512V48zm-64 272H128V64h384v256z"] };
  3618. var faLaugh = { prefix: 'fas', iconName: 'laugh', icon: [496, 512, [], "f599", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 152c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm88 272h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18-8.9 71-69.5 126-142.9 126z"] };
  3619. var faLaughBeam = { prefix: 'fas', iconName: 'laugh-beam', icon: [496, 512, [], "f59a", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm24 199.4c3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.8 4.1-15.1-4.5zm-160 0c3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.3 7.4-15.8 4-15.1-4.5zM398.9 306C390 377 329.4 432 256 432h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18z"] };
  3620. var faLaughSquint = { prefix: 'fas', iconName: 'laugh-squint', icon: [496, 512, [], "f59b", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm33.8 161.7l80-48c11.6-6.9 24 7.7 15.4 18L343.6 180l33.6 40.3c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.7-4.7-7.7-15.9 0-20.6zm-163-30c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.8 4.7 7.8 15.9 0 20.6l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3zM398.9 306C390 377 329.4 432 256 432h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18z"] };
  3621. var faLaughWink = { prefix: 'fas', iconName: 'laugh-wink', icon: [496, 512, [], "f59c", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm20.1 198.1c4-25.2 34.2-42.1 59.9-42.1s55.9 16.9 59.9 42.1c1.7 11.1-11.4 18.3-19.8 10.8l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L288 217c-8.4 7.4-21.6.3-19.9-10.9zM168 160c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm230.9 146C390 377 329.4 432 256 432h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18z"] };
  3622. var faLayerGroup = { prefix: 'fas', iconName: 'layer-group', icon: [512, 512, [], "f5fd", "M12.41 148.02l232.94 105.67c6.8 3.09 14.49 3.09 21.29 0l232.94-105.67c16.55-7.51 16.55-32.52 0-40.03L266.65 2.31a25.607 25.607 0 0 0-21.29 0L12.41 107.98c-16.55 7.51-16.55 32.53 0 40.04zm487.18 88.28l-58.09-26.33-161.64 73.27c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.51 209.97l-58.1 26.33c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 276.3c16.55-7.5 16.55-32.5 0-40zm0 127.8l-57.87-26.23-161.86 73.37c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.29 337.87 12.41 364.1c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 404.1c16.55-7.5 16.55-32.5 0-40z"] };
  3623. var faLeaf = { prefix: 'fas', iconName: 'leaf', icon: [576, 512, [], "f06c", "M546.2 9.7c-5.6-12.5-21.6-13-28.3-1.2C486.9 62.4 431.4 96 368 96h-80C182 96 96 182 96 288c0 7 .8 13.7 1.5 20.5C161.3 262.8 253.4 224 384 224c8.8 0 16 7.2 16 16s-7.2 16-16 16C132.6 256 26 410.1 2.4 468c-6.6 16.3 1.2 34.9 17.5 41.6 16.4 6.8 35-1.1 41.8-17.3 1.5-3.6 20.9-47.9 71.9-90.6 32.4 43.9 94 85.8 174.9 77.2C465.5 467.5 576 326.7 576 154.3c0-50.2-10.8-102.2-29.8-144.6z"] };
  3624. var faLemon = { prefix: 'fas', iconName: 'lemon', icon: [512, 512, [], "f094", "M489.038 22.963C465.944-.13 434.648-5.93 413.947 6.129c-58.906 34.312-181.25-53.077-321.073 86.746S40.441 355.041 6.129 413.945c-12.059 20.702-6.26 51.999 16.833 75.093 23.095 23.095 54.392 28.891 75.095 16.832 58.901-34.31 181.246 53.079 321.068-86.743S471.56 156.96 505.871 98.056c12.059-20.702 6.261-51.999-16.833-75.093zM243.881 95.522c-58.189 14.547-133.808 90.155-148.358 148.358-1.817 7.27-8.342 12.124-15.511 12.124-1.284 0-2.59-.156-3.893-.481-8.572-2.144-13.784-10.83-11.642-19.403C81.901 166.427 166.316 81.93 236.119 64.478c8.575-2.143 17.261 3.069 19.403 11.642s-3.069 17.259-11.641 19.402z"] };
  3625. var faLessThan = { prefix: 'fas', iconName: 'less-than', icon: [384, 512, [], "f536", "M365.46 357.74L147.04 255.89l218.47-101.88c16.02-7.47 22.95-26.51 15.48-42.53l-13.52-29C360 66.46 340.96 59.53 324.94 67L18.48 209.91a32.014 32.014 0 0 0-18.48 29v34.24c0 12.44 7.21 23.75 18.48 29l306.31 142.83c16.06 7.49 35.15.54 42.64-15.52l13.56-29.08c7.49-16.06.54-35.15-15.53-42.64z"] };
  3626. var faLessThanEqual = { prefix: 'fas', iconName: 'less-than-equal', icon: [448, 512, [], "f537", "M54.98 214.2l301.41 119.87c18.39 6.03 38.71-2.54 45.38-19.15l12.09-30.08c6.68-16.61-2.82-34.97-21.21-41l-175.44-68.05 175.56-68.09c18.29-6 27.74-24.27 21.1-40.79l-12.03-29.92c-6.64-16.53-26.86-25.06-45.15-19.06L54.98 137.89C41.21 142.41 32 154.5 32 168.07v15.96c0 13.56 9.21 25.65 22.98 30.17zM424 400H24c-13.25 0-24 10.74-24 24v48c0 13.25 10.75 24 24 24h400c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24z"] };
  3627. var faLevelDownAlt = { prefix: 'fas', iconName: 'level-down-alt', icon: [320, 512, [], "f3be", "M313.553 392.331L209.587 504.334c-9.485 10.214-25.676 10.229-35.174 0L70.438 392.331C56.232 377.031 67.062 352 88.025 352H152V80H68.024a11.996 11.996 0 0 1-8.485-3.515l-56-56C-4.021 12.926 1.333 0 12.024 0H208c13.255 0 24 10.745 24 24v328h63.966c20.878 0 31.851 24.969 17.587 40.331z"] };
  3628. var faLevelUpAlt = { prefix: 'fas', iconName: 'level-up-alt', icon: [320, 512, [], "f3bf", "M313.553 119.669L209.587 7.666c-9.485-10.214-25.676-10.229-35.174 0L70.438 119.669C56.232 134.969 67.062 160 88.025 160H152v272H68.024a11.996 11.996 0 0 0-8.485 3.515l-56 56C-4.021 499.074 1.333 512 12.024 512H208c13.255 0 24-10.745 24-24V160h63.966c20.878 0 31.851-24.969 17.587-40.331z"] };
  3629. var faLifeRing = { prefix: 'fas', iconName: 'life-ring', icon: [512, 512, [], "f1cd", "M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm173.696 119.559l-63.399 63.399c-10.987-18.559-26.67-34.252-45.255-45.255l63.399-63.399a218.396 218.396 0 0 1 45.255 45.255zM256 352c-53.019 0-96-42.981-96-96s42.981-96 96-96 96 42.981 96 96-42.981 96-96 96zM127.559 82.304l63.399 63.399c-18.559 10.987-34.252 26.67-45.255 45.255l-63.399-63.399a218.372 218.372 0 0 1 45.255-45.255zM82.304 384.441l63.399-63.399c10.987 18.559 26.67 34.252 45.255 45.255l-63.399 63.399a218.396 218.396 0 0 1-45.255-45.255zm302.137 45.255l-63.399-63.399c18.559-10.987 34.252-26.67 45.255-45.255l63.399 63.399a218.403 218.403 0 0 1-45.255 45.255z"] };
  3630. var faLightbulb = { prefix: 'fas', iconName: 'lightbulb', icon: [352, 512, [], "f0eb", "M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z"] };
  3631. var faLink = { prefix: 'fas', iconName: 'link', icon: [512, 512, [], "f0c1", "M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"] };
  3632. var faLiraSign = { prefix: 'fas', iconName: 'lira-sign', icon: [384, 512, [], "f195", "M371.994 256h-48.019C317.64 256 312 260.912 312 267.246 312 368 230.179 416 144 416V256.781l134.603-29.912A12 12 0 0 0 288 215.155v-40.976c0-7.677-7.109-13.38-14.603-11.714L144 191.219V160.78l134.603-29.912A12 12 0 0 0 288 119.154V78.179c0-7.677-7.109-13.38-14.603-11.714L144 95.219V44c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v68.997L9.397 125.131A12 12 0 0 0 0 136.845v40.976c0 7.677 7.109 13.38 14.603 11.714L64 178.558v30.439L9.397 221.131A12 12 0 0 0 0 232.845v40.976c0 7.677 7.109 13.38 14.603 11.714L64 274.558V468c0 6.627 5.373 12 12 12h79.583c134.091 0 223.255-77.834 228.408-211.592.261-6.782-5.211-12.408-11.997-12.408z"] };
  3633. var faList = { prefix: 'fas', iconName: 'list', icon: [512, 512, [], "f03a", "M128 116V76c0-8.837 7.163-16 16-16h352c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H144c-8.837 0-16-7.163-16-16zm16 176h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM16 144h64c8.837 0 16-7.163 16-16V64c0-8.837-7.163-16-16-16H16C7.163 48 0 55.163 0 64v64c0 8.837 7.163 16 16 16zm0 160h64c8.837 0 16-7.163 16-16v-64c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v64c0 8.837 7.163 16 16 16zm0 160h64c8.837 0 16-7.163 16-16v-64c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v64c0 8.837 7.163 16 16 16z"] };
  3634. var faListAlt = { prefix: 'fas', iconName: 'list-alt', icon: [512, 512, [], "f022", "M464 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zM128 120c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm288-136v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12z"] };
  3635. var faListOl = { prefix: 'fas', iconName: 'list-ol', icon: [512, 512, [], "f0cb", "M3.263 139.527c0-7.477 3.917-11.572 11.573-11.572h15.131V88.078c0-5.163.534-10.503.534-10.503h-.356s-1.779 2.67-2.848 3.738c-4.451 4.273-10.504 4.451-15.666-1.068l-5.518-6.231c-5.342-5.341-4.984-11.216.534-16.379l21.72-19.938C32.815 33.602 36.732 32 42.785 32H54.89c7.656 0 11.749 3.916 11.749 11.572v84.384h15.488c7.655 0 11.572 4.094 11.572 11.572v8.901c0 7.477-3.917 11.572-11.572 11.572H14.836c-7.656 0-11.573-4.095-11.573-11.572v-8.902zM2.211 304.591c0-47.278 50.955-56.383 50.955-69.165 0-7.18-5.954-8.755-9.28-8.755-3.153 0-6.479 1.051-9.455 3.852-5.079 4.903-10.507 7.004-16.111 2.451l-8.579-6.829c-5.779-4.553-7.18-9.805-2.803-15.409C13.592 201.981 26.025 192 47.387 192c19.437 0 44.476 10.506 44.476 39.573 0 38.347-46.753 46.402-48.679 56.909h39.049c7.529 0 11.557 4.027 11.557 11.382v8.755c0 7.354-4.028 11.382-11.557 11.382h-67.94c-7.005 0-12.083-4.028-12.083-11.382v-4.028zM5.654 454.61l5.603-9.28c3.853-6.654 9.105-7.004 15.584-3.152 4.903 2.101 9.63 3.152 14.359 3.152 10.155 0 14.358-3.502 14.358-8.23 0-6.654-5.604-9.106-15.934-9.106h-4.728c-5.954 0-9.28-2.101-12.258-7.88l-1.05-1.926c-2.451-4.728-1.226-9.806 2.801-14.884l5.604-7.004c6.829-8.405 12.257-13.483 12.257-13.483v-.35s-4.203 1.051-12.608 1.051H16.685c-7.53 0-11.383-4.028-11.383-11.382v-8.755c0-7.53 3.853-11.382 11.383-11.382h58.484c7.529 0 11.382 4.027 11.382 11.382v3.327c0 5.778-1.401 9.806-5.079 14.183l-17.509 20.137c19.611 5.078 28.716 20.487 28.716 34.845 0 21.363-14.358 44.126-48.503 44.126-16.636 0-28.192-4.728-35.896-9.455-5.779-4.202-6.304-9.805-2.626-15.934zM144 132h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"] };
  3636. var faListUl = { prefix: 'fas', iconName: 'list-ul', icon: [512, 512, [], "f0ca", "M96 96c0 26.51-21.49 48-48 48S0 122.51 0 96s21.49-48 48-48 48 21.49 48 48zM48 208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm0 160c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm96-236h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"] };
  3637. var faLocationArrow = { prefix: 'fas', iconName: 'location-arrow', icon: [512, 512, [], "f124", "M444.52 3.52L28.74 195.42c-47.97 22.39-31.98 92.75 19.19 92.75h175.91v175.91c0 51.17 70.36 67.17 92.75 19.19l191.9-415.78c15.99-38.39-25.59-79.97-63.97-63.97z"] };
  3638. var faLock = { prefix: 'fas', iconName: 'lock', icon: [448, 512, [], "f023", "M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"] };
  3639. var faLockOpen = { prefix: 'fas', iconName: 'lock-open', icon: [576, 512, [], "f3c1", "M423.5 0C339.5.3 272 69.5 272 153.5V224H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48h-48v-71.1c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v80c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-80C576 68 507.5-.3 423.5 0z"] };
  3640. var faLongArrowAltDown = { prefix: 'fas', iconName: 'long-arrow-alt-down', icon: [256, 512, [], "f309", "M168 345.941V44c0-6.627-5.373-12-12-12h-56c-6.627 0-12 5.373-12 12v301.941H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.569 9.373 33.941 0l86.059-86.059c15.119-15.119 4.411-40.971-16.971-40.971H168z"] };
  3641. var faLongArrowAltLeft = { prefix: 'fas', iconName: 'long-arrow-alt-left', icon: [448, 512, [], "f30a", "M134.059 296H436c6.627 0 12-5.373 12-12v-56c0-6.627-5.373-12-12-12H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.569 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296z"] };
  3642. var faLongArrowAltRight = { prefix: 'fas', iconName: 'long-arrow-alt-right', icon: [448, 512, [], "f30b", "M313.941 216H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h301.941v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.569 0-33.941l-86.059-86.059c-15.119-15.119-40.971-4.411-40.971 16.971V216z"] };
  3643. var faLongArrowAltUp = { prefix: 'fas', iconName: 'long-arrow-alt-up', icon: [256, 512, [], "f30c", "M88 166.059V468c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12V166.059h46.059c21.382 0 32.09-25.851 16.971-40.971l-86.059-86.059c-9.373-9.373-24.569-9.373-33.941 0l-86.059 86.059c-15.119 15.119-4.411 40.971 16.971 40.971H88z"] };
  3644. var faLowVision = { prefix: 'fas', iconName: 'low-vision', icon: [576, 512, [], "f2a8", "M569.344 231.631C512.96 135.949 407.81 72 288 72c-28.468 0-56.102 3.619-82.451 10.409L152.778 10.24c-7.601-10.858-22.564-13.5-33.423-5.9l-13.114 9.178c-10.86 7.601-13.502 22.566-5.9 33.426l43.131 58.395C89.449 131.73 40.228 174.683 6.682 231.581c-.01.017-.023.033-.034.05-8.765 14.875-8.964 33.528 0 48.739 38.5 65.332 99.742 115.862 172.859 141.349L55.316 244.302A272.194 272.194 0 0 1 83.61 208.39l119.4 170.58h.01l40.63 58.04a330.055 330.055 0 0 0 78.94 1.17l-189.98-271.4a277.628 277.628 0 0 1 38.777-21.563l251.836 356.544c7.601 10.858 22.564 13.499 33.423 5.9l13.114-9.178c10.86-7.601 13.502-22.567 5.9-33.426l-43.12-58.377-.007-.009c57.161-27.978 104.835-72.04 136.81-126.301a47.938 47.938 0 0 0 .001-48.739zM390.026 345.94l-19.066-27.23c24.682-32.567 27.711-76.353 8.8-111.68v.03c0 23.65-19.17 42.82-42.82 42.82-23.828 0-42.82-19.349-42.82-42.82 0-23.65 19.17-42.82 42.82-42.82h.03c-24.75-13.249-53.522-15.643-79.51-7.68l-19.068-27.237C253.758 123.306 270.488 120 288 120c75.162 0 136 60.826 136 136 0 34.504-12.833 65.975-33.974 89.94z"] };
  3645. var faLuggageCart = { prefix: 'fas', iconName: 'luggage-cart', icon: [640, 512, [], "f59d", "M224 320h32V96h-32c-17.67 0-32 14.33-32 32v160c0 17.67 14.33 32 32 32zm352-32V128c0-17.67-14.33-32-32-32h-32v224h32c17.67 0 32-14.33 32-32zm48 96H128V16c0-8.84-7.16-16-16-16H16C7.16 0 0 7.16 0 16v32c0 8.84 7.16 16 16 16h48v368c0 8.84 7.16 16 16 16h82.94c-1.79 5.03-2.94 10.36-2.94 16 0 26.51 21.49 48 48 48s48-21.49 48-48c0-5.64-1.15-10.97-2.94-16h197.88c-1.79 5.03-2.94 10.36-2.94 16 0 26.51 21.49 48 48 48s48-21.49 48-48c0-5.64-1.15-10.97-2.94-16H624c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM480 96V48c0-26.51-21.49-48-48-48h-96c-26.51 0-48 21.49-48 48v272h192V96zm-48 0h-96V48h96v48z"] };
  3646. var faMagic = { prefix: 'fas', iconName: 'magic', icon: [512, 512, [], "f0d0", "M224 96l16-32 32-16-32-16-16-32-16 32-32 16 32 16 16 32zM80 160l26.66-53.33L160 80l-53.34-26.67L80 0 53.34 53.33 0 80l53.34 26.67L80 160zm352 128l-26.66 53.33L352 368l53.34 26.67L432 448l26.66-53.33L512 368l-53.34-26.67L432 288zm70.62-193.77L417.77 9.38C411.53 3.12 403.34 0 395.15 0c-8.19 0-16.38 3.12-22.63 9.38L9.38 372.52c-12.5 12.5-12.5 32.76 0 45.25l84.85 84.85c6.25 6.25 14.44 9.37 22.62 9.37 8.19 0 16.38-3.12 22.63-9.37l363.14-363.15c12.5-12.48 12.5-32.75 0-45.24zM359.45 203.46l-50.91-50.91 86.6-86.6 50.91 50.91-86.6 86.6z"] };
  3647. var faMagnet = { prefix: 'fas', iconName: 'magnet', icon: [512, 512, [], "f076", "M164.1 160H12c-6.6 0-12-5.4-12-12V68c0-19.9 16.1-36 36-36h104c19.9 0 36 16.1 36 36v80c.1 6.6-5.3 12-11.9 12zm348-12V67.9c0-19.9-16.1-36-36-36h-104c-19.9 0-36 16.1-36 36v80c0 6.6 5.4 12 12 12h152c6.6.1 12-5.3 12-11.9zm-164 44c-6.6 0-12 5.4-12 12v52c0 128.1-160 127.9-160 0v-52c0-6.6-5.4-12-12-12h-152c-6.7 0-12 5.4-12 12.1.1 21.4.6 40.3 0 53.3C.1 408 136.3 504 256.9 504 377.5 504 512 408 512 257.3c-.6-12.8-.2-33 0-53.2 0-6.7-5.3-12.1-12-12.1H348.1z"] };
  3648. var faMailBulk = { prefix: 'fas', iconName: 'mail-bulk', icon: [576, 512, [], "f674", "M160 448c-25.6 0-51.2-22.4-64-32-64-44.8-83.2-60.8-96-70.4V480c0 17.67 14.33 32 32 32h256c17.67 0 32-14.33 32-32V345.6c-12.8 9.6-32 25.6-96 70.4-12.8 9.6-38.4 32-64 32zm128-192H32c-17.67 0-32 14.33-32 32v16c25.6 19.2 22.4 19.2 115.2 86.4 9.6 6.4 28.8 25.6 44.8 25.6s35.2-19.2 44.8-22.4c92.8-67.2 89.6-67.2 115.2-86.4V288c0-17.67-14.33-32-32-32zm256-96H224c-17.67 0-32 14.33-32 32v32h96c33.21 0 60.59 25.42 63.71 57.82l.29-.22V416h192c17.67 0 32-14.33 32-32V192c0-17.67-14.33-32-32-32zm-32 128h-64v-64h64v64zm-352-96c0-35.29 28.71-64 64-64h224V32c0-17.67-14.33-32-32-32H96C78.33 0 64 14.33 64 32v192h96v-32z"] };
  3649. var faMale = { prefix: 'fas', iconName: 'male', icon: [192, 512, [], "f183", "M96 0c35.346 0 64 28.654 64 64s-28.654 64-64 64-64-28.654-64-64S60.654 0 96 0m48 144h-11.36c-22.711 10.443-49.59 10.894-73.28 0H48c-26.51 0-48 21.49-48 48v136c0 13.255 10.745 24 24 24h16v136c0 13.255 10.745 24 24 24h64c13.255 0 24-10.745 24-24V352h16c13.255 0 24-10.745 24-24V192c0-26.51-21.49-48-48-48z"] };
  3650. var faMap = { prefix: 'fas', iconName: 'map', icon: [576, 512, [], "f279", "M0 117.66v346.32c0 11.32 11.43 19.06 21.94 14.86L160 416V32L20.12 87.95A32.006 32.006 0 0 0 0 117.66zM192 416l192 64V96L192 32v384zM554.06 33.16L416 96v384l139.88-55.95A31.996 31.996 0 0 0 576 394.34V48.02c0-11.32-11.43-19.06-21.94-14.86z"] };
  3651. var faMapMarked = { prefix: 'fas', iconName: 'map-marked', icon: [576, 512, [], "f59f", "M288 0c-69.59 0-126 56.41-126 126 0 56.26 82.35 158.8 113.9 196.02 6.39 7.54 17.82 7.54 24.2 0C331.65 284.8 414 182.26 414 126 414 56.41 357.59 0 288 0zM20.12 215.95A32.006 32.006 0 0 0 0 245.66v250.32c0 11.32 11.43 19.06 21.94 14.86L160 448V214.92c-8.84-15.98-16.07-31.54-21.25-46.42L20.12 215.95zM288 359.67c-14.07 0-27.38-6.18-36.51-16.96-19.66-23.2-40.57-49.62-59.49-76.72v182l192 64V266c-18.92 27.09-39.82 53.52-59.49 76.72-9.13 10.77-22.44 16.95-36.51 16.95zm266.06-198.51L416 224v288l139.88-55.95A31.996 31.996 0 0 0 576 426.34V176.02c0-11.32-11.43-19.06-21.94-14.86z"] };
  3652. var faMapMarkedAlt = { prefix: 'fas', iconName: 'map-marked-alt', icon: [576, 512, [], "f5a0", "M288 0c-69.59 0-126 56.41-126 126 0 56.26 82.35 158.8 113.9 196.02 6.39 7.54 17.82 7.54 24.2 0C331.65 284.8 414 182.26 414 126 414 56.41 357.59 0 288 0zm0 168c-23.2 0-42-18.8-42-42s18.8-42 42-42 42 18.8 42 42-18.8 42-42 42zM20.12 215.95A32.006 32.006 0 0 0 0 245.66v250.32c0 11.32 11.43 19.06 21.94 14.86L160 448V214.92c-8.84-15.98-16.07-31.54-21.25-46.42L20.12 215.95zM288 359.67c-14.07 0-27.38-6.18-36.51-16.96-19.66-23.2-40.57-49.62-59.49-76.72v182l192 64V266c-18.92 27.09-39.82 53.52-59.49 76.72-9.13 10.77-22.44 16.95-36.51 16.95zm266.06-198.51L416 224v288l139.88-55.95A31.996 31.996 0 0 0 576 426.34V176.02c0-11.32-11.43-19.06-21.94-14.86z"] };
  3653. var faMapMarker = { prefix: 'fas', iconName: 'map-marker', icon: [384, 512, [], "f041", "M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0z"] };
  3654. var faMapMarkerAlt = { prefix: 'fas', iconName: 'map-marker-alt', icon: [384, 512, [], "f3c5", "M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"] };
  3655. var faMapPin = { prefix: 'fas', iconName: 'map-pin', icon: [288, 512, [], "f276", "M112 316.94v156.69l22.02 33.02c4.75 7.12 15.22 7.12 19.97 0L176 473.63V316.94c-10.39 1.92-21.06 3.06-32 3.06s-21.61-1.14-32-3.06zM144 0C64.47 0 0 64.47 0 144s64.47 144 144 144 144-64.47 144-144S223.53 0 144 0zm0 76c-37.5 0-68 30.5-68 68 0 6.62-5.38 12-12 12s-12-5.38-12-12c0-50.73 41.28-92 92-92 6.62 0 12 5.38 12 12s-5.38 12-12 12z"] };
  3656. var faMapSigns = { prefix: 'fas', iconName: 'map-signs', icon: [512, 512, [], "f277", "M507.31 84.69L464 41.37c-6-6-14.14-9.37-22.63-9.37H288V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v16H56c-13.25 0-24 10.75-24 24v80c0 13.25 10.75 24 24 24h385.37c8.49 0 16.62-3.37 22.63-9.37l43.31-43.31c6.25-6.26 6.25-16.38 0-22.63zM224 496c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h-64v112zm232-272H288v-32h-64v32H70.63c-8.49 0-16.62 3.37-22.63 9.37L4.69 276.69c-6.25 6.25-6.25 16.38 0 22.63L48 342.63c6 6 14.14 9.37 22.63 9.37H456c13.25 0 24-10.75 24-24v-80c0-13.25-10.75-24-24-24z"] };
  3657. var faMarker = { prefix: 'fas', iconName: 'marker', icon: [512, 512, [], "f5a1", "M93.95 290.03A327.038 327.038 0 0 0 .17 485.11l-.03.23c-1.7 15.28 11.21 28.2 26.49 26.51a327.02 327.02 0 0 0 195.34-93.8l75.4-75.4-128.02-128.02-75.4 75.4zM485.49 26.51c-35.35-35.35-92.67-35.35-128.02 0l-21.76 21.76-36.56-36.55c-15.62-15.62-40.95-15.62-56.56 0L138.47 115.84c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0l87.15-87.15 19.59 19.59L191.98 192 320 320.02l165.49-165.49c35.35-35.35 35.35-92.66 0-128.02z"] };
  3658. var faMars = { prefix: 'fas', iconName: 'mars', icon: [384, 512, [], "f222", "M372 64h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7c-22.2-14-48.5-22.1-76.7-22.1C64.5 160 0 224.5 0 304s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V76c0-6.6-5.4-12-12-12zM144 384c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3659. var faMarsDouble = { prefix: 'fas', iconName: 'mars-double', icon: [512, 512, [], "f227", "M340 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7C198.5 72.1 172.2 64 144 64 64.5 64 0 128.5 0 208s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.5 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12V12c0-6.6-5.4-12-12-12zM144 288c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80zm356-128.1h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7c-18.2-11.4-39-18.9-61.5-21.3-2.1 21.8-8.2 43.3-18.4 63.3 1.1 0 2.2-.1 3.2-.1 44.1 0 80 35.9 80 80s-35.9 80-80 80-80-35.9-80-80c0-1.1 0-2.2.1-3.2-20 10.2-41.5 16.4-63.3 18.4C168.4 455.6 229.6 512 304 512c79.5 0 144-64.5 144-144 0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.4 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12v-79c0-6.7-5.4-12.1-12-12.1z"] };
  3660. var faMarsStroke = { prefix: 'fas', iconName: 'mars-stroke', icon: [384, 512, [], "f229", "M372 64h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-17.5 17.5-14.1-14.1c-4.7-4.7-12.3-4.7-17 0L224.5 133c-4.7 4.7-4.7 12.3 0 17l14.1 14.1-18 18c-22.2-14-48.5-22.1-76.7-22.1C64.5 160 0 224.5 0 304s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l18-18 14.1 14.1c4.7 4.7 12.3 4.7 17 0l28.3-28.3c4.7-4.7 4.7-12.3 0-17L329.2 164l17.5-17.5 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V76c-.1-6.6-5.5-12-12.1-12zM144 384c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3661. var faMarsStrokeH = { prefix: 'fas', iconName: 'mars-stroke-h', icon: [480, 512, [], "f22b", "M476.2 247.5l-55.9-55.9c-7.6-7.6-20.5-2.2-20.5 8.5V224H376v-20c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v20h-27.6c-5.8-25.6-18.7-49.9-38.6-69.8C189.6 98 98.4 98 42.2 154.2c-56.2 56.2-56.2 147.4 0 203.6 56.2 56.2 147.4 56.2 203.6 0 19.9-19.9 32.8-44.2 38.6-69.8H312v20c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-20h23.9v23.9c0 10.7 12.9 16 20.5 8.5l55.9-55.9c4.6-4.7 4.6-12.3-.1-17zm-275.6 65.1c-31.2 31.2-81.9 31.2-113.1 0-31.2-31.2-31.2-81.9 0-113.1 31.2-31.2 81.9-31.2 113.1 0 31.2 31.1 31.2 81.9 0 113.1z"] };
  3662. var faMarsStrokeV = { prefix: 'fas', iconName: 'mars-stroke-v', icon: [288, 512, [], "f22a", "M245.8 234.2c-19.9-19.9-44.2-32.8-69.8-38.6v-25.4h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V81.4h23.9c10.7 0 16-12.9 8.5-20.5L152.5 5.1c-4.7-4.7-12.3-4.7-17 0L79.6 61c-7.6 7.6-2.2 20.5 8.5 20.5H112v24.7H92c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h20v25.4c-25.6 5.8-49.9 18.7-69.8 38.6-56.2 56.2-56.2 147.4 0 203.6 56.2 56.2 147.4 56.2 203.6 0 56.3-56.2 56.3-147.4 0-203.6zm-45.2 158.4c-31.2 31.2-81.9 31.2-113.1 0-31.2-31.2-31.2-81.9 0-113.1 31.2-31.2 81.9-31.2 113.1 0 31.2 31.1 31.2 81.9 0 113.1z"] };
  3663. var faMask = { prefix: 'fas', iconName: 'mask', icon: [640, 512, [], "f6fa", "M320.67 64c-442.6 0-357.57 384-158.46 384 39.9 0 77.47-20.69 101.42-55.86l25.73-37.79c15.66-22.99 46.97-22.99 62.63 0l25.73 37.79C401.66 427.31 439.23 448 479.13 448c189.86 0 290.63-384-158.46-384zM184 308.36c-41.06 0-67.76-25.66-80.08-41.05-5.23-6.53-5.23-16.09 0-22.63 12.32-15.4 39.01-41.05 80.08-41.05s67.76 25.66 80.08 41.05c5.23 6.53 5.23 16.09 0 22.63-12.32 15.4-39.02 41.05-80.08 41.05zm272 0c-41.06 0-67.76-25.66-80.08-41.05-5.23-6.53-5.23-16.09 0-22.63 12.32-15.4 39.01-41.05 80.08-41.05s67.76 25.66 80.08 41.05c5.23 6.53 5.23 16.09 0 22.63-12.32 15.4-39.02 41.05-80.08 41.05z"] };
  3664. var faMedal = { prefix: 'fas', iconName: 'medal', icon: [512, 512, [], "f5a2", "M223.75 130.75L154.62 15.54A31.997 31.997 0 0 0 127.18 0H16.03C3.08 0-4.5 14.57 2.92 25.18l111.27 158.96c29.72-27.77 67.52-46.83 109.56-53.39zM495.97 0H384.82c-11.24 0-21.66 5.9-27.44 15.54l-69.13 115.21c42.04 6.56 79.84 25.62 109.56 53.38L509.08 25.18C516.5 14.57 508.92 0 495.97 0zM256 160c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm92.52 157.26l-37.93 36.96 8.97 52.22c1.6 9.36-8.26 16.51-16.65 12.09L256 393.88l-46.9 24.65c-8.4 4.45-18.25-2.74-16.65-12.09l8.97-52.22-37.93-36.96c-6.82-6.64-3.05-18.23 6.35-19.59l52.43-7.64 23.43-47.52c2.11-4.28 6.19-6.39 10.28-6.39 4.11 0 8.22 2.14 10.33 6.39l23.43 47.52 52.43 7.64c9.4 1.36 13.17 12.95 6.35 19.59z"] };
  3665. var faMedkit = { prefix: 'fas', iconName: 'medkit', icon: [512, 512, [], "f0fa", "M96 480h320V128h-32V80c0-26.51-21.49-48-48-48H176c-26.51 0-48 21.49-48 48v48H96v352zm96-384h128v32H192V96zm320 80v256c0 26.51-21.49 48-48 48h-16V128h16c26.51 0 48 21.49 48 48zM64 480H48c-26.51 0-48-21.49-48-48V176c0-26.51 21.49-48 48-48h16v352zm288-208v32c0 8.837-7.163 16-16 16h-48v48c0 8.837-7.163 16-16 16h-32c-8.837 0-16-7.163-16-16v-48h-48c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h48v-48c0-8.837 7.163-16 16-16h32c8.837 0 16 7.163 16 16v48h48c8.837 0 16 7.163 16 16z"] };
  3666. var faMeh = { prefix: 'fas', iconName: 'meh', icon: [496, 512, [], "f11a", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm176 192H152c-21.2 0-21.2-32 0-32h192c21.2 0 21.2 32 0 32zm-16-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3667. var faMehBlank = { prefix: 'fas', iconName: 'meh-blank', icon: [496, 512, [], "f5a4", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-80 232c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm160 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3668. var faMehRollingEyes = { prefix: 'fas', iconName: 'meh-rolling-eyes', icon: [496, 512, [], "f5a5", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM88 224c0-24.3 13.7-45.2 33.6-56-.7 2.6-1.6 5.2-1.6 8 0 17.7 14.3 32 32 32s32-14.3 32-32c0-2.8-.9-5.4-1.6-8 19.9 10.8 33.6 31.7 33.6 56 0 35.3-28.7 64-64 64s-64-28.7-64-64zm224 176H184c-21.2 0-21.2-32 0-32h128c21.2 0 21.2 32 0 32zm32-112c-35.3 0-64-28.7-64-64 0-24.3 13.7-45.2 33.6-56-.7 2.6-1.6 5.2-1.6 8 0 17.7 14.3 32 32 32s32-14.3 32-32c0-2.8-.9-5.4-1.6-8 19.9 10.8 33.6 31.7 33.6 56 0 35.3-28.7 64-64 64z"] };
  3669. var faMemory = { prefix: 'fas', iconName: 'memory', icon: [640, 512, [], "f538", "M640 130.94V96c0-17.67-14.33-32-32-32H32C14.33 64 0 78.33 0 96v34.94c18.6 6.61 32 24.19 32 45.06s-13.4 38.45-32 45.06V320h640v-98.94c-18.6-6.61-32-24.19-32-45.06s13.4-38.45 32-45.06zM224 256h-64V128h64v128zm128 0h-64V128h64v128zm128 0h-64V128h64v128zM0 448h64v-26.67c0-8.84 7.16-16 16-16s16 7.16 16 16V448h128v-26.67c0-8.84 7.16-16 16-16s16 7.16 16 16V448h128v-26.67c0-8.84 7.16-16 16-16s16 7.16 16 16V448h128v-26.67c0-8.84 7.16-16 16-16s16 7.16 16 16V448h64v-96H0v96z"] };
  3670. var faMenorah = { prefix: 'fas', iconName: 'menorah', icon: [640, 512, [], "f676", "M144 128h-32c-8.84 0-16 7.16-16 16v144h64V144c0-8.84-7.16-16-16-16zm96 0h-32c-8.84 0-16 7.16-16 16v144h64V144c0-8.84-7.16-16-16-16zm192 0h-32c-8.84 0-16 7.16-16 16v144h64V144c0-8.84-7.16-16-16-16zm96 0h-32c-8.84 0-16 7.16-16 16v144h64V144c0-8.84-7.16-16-16-16zm80-32c17.67 0 32-14.33 32-32S608 0 608 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S512 0 512 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S416 0 416 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S320 0 320 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S224 0 224 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S128 0 128 0 96 46.33 96 64s14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S32 0 32 0 0 46.33 0 64s14.33 32 32 32zm544 192c0 17.67-14.33 32-32 32H352V144c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v176H96c-17.67 0-32-14.33-32-32V144c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v144c0 53.02 42.98 96 96 96h192v64H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16H352v-64h192c53.02 0 96-42.98 96-96V144c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v144z"] };
  3671. var faMercury = { prefix: 'fas', iconName: 'mercury', icon: [288, 512, [], "f223", "M288 208c0-44.2-19.9-83.7-51.2-110.1 2.5-1.8 4.9-3.8 7.2-5.8 24.7-21.2 39.8-48.8 43.2-78.8.9-7.1-4.7-13.3-11.9-13.3h-40.5C229 0 224.1 4.1 223 9.8c-2.4 12.5-9.6 24.3-20.7 33.8C187 56.8 166.3 64 144 64s-43-7.2-58.4-20.4C74.5 34.1 67.4 22.3 64.9 9.8 63.8 4.1 58.9 0 53.2 0H12.7C5.5 0-.1 6.2.8 13.3 4.2 43.4 19.2 71 44 92.2c2.3 2 4.7 3.9 7.2 5.8C19.9 124.3 0 163.8 0 208c0 68.5 47.9 125.9 112 140.4V400H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80z"] };
  3672. var faMicrochip = { prefix: 'fas', iconName: 'microchip', icon: [512, 512, [], "f2db", "M416 48v416c0 26.51-21.49 48-48 48H144c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h224c26.51 0 48 21.49 48 48zm96 58v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42V88h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zM30 376h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6z"] };
  3673. var faMicrophone = { prefix: 'fas', iconName: 'microphone', icon: [352, 512, [], "f130", "M176 352c53.02 0 96-42.98 96-96V96c0-53.02-42.98-96-96-96S80 42.98 80 96v160c0 53.02 42.98 96 96 96zm160-160h-16c-8.84 0-16 7.16-16 16v48c0 74.8-64.49 134.82-140.79 127.38C96.71 376.89 48 317.11 48 250.3V208c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v40.16c0 89.64 63.97 169.55 152 181.69V464H96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16h-56v-33.77C285.71 418.47 352 344.9 352 256v-48c0-8.84-7.16-16-16-16z"] };
  3674. var faMicrophoneAlt = { prefix: 'fas', iconName: 'microphone-alt', icon: [352, 512, [], "f3c9", "M336 192h-16c-8.84 0-16 7.16-16 16v48c0 74.8-64.49 134.82-140.79 127.38C96.71 376.89 48 317.11 48 250.3V208c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v40.16c0 89.64 63.97 169.55 152 181.69V464H96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16h-56v-33.77C285.71 418.47 352 344.9 352 256v-48c0-8.84-7.16-16-16-16zM176 352c53.02 0 96-42.98 96-96h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H272v-32h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H272v-32h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H272c0-53.02-42.98-96-96-96S80 42.98 80 96v160c0 53.02 42.98 96 96 96z"] };
  3675. var faMicrophoneAltSlash = { prefix: 'fas', iconName: 'microphone-alt-slash', icon: [640, 512, [], "f539", "M633.82 458.1L476.26 336.33C488.74 312.21 496 284.98 496 256v-48c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v48c0 17.92-3.96 34.8-10.72 50.2l-26.55-20.52c3.1-9.4 5.28-19.22 5.28-29.67h-43.67l-41.4-32H416v-32h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H416v-32h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H416c0-53.02-42.98-96-96-96s-96 42.98-96 96v45.36L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.36 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.41-6.97 4.16-17.02-2.82-22.45zM400 464h-56v-33.78c11.71-1.62 23.1-4.28 33.96-8.08l-50.4-38.96c-6.71.4-13.41.87-20.35.2-55.85-5.45-98.74-48.63-111.18-101.85L144 241.31v6.85c0 89.64 63.97 169.55 152 181.69V464h-56c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16z"] };
  3676. var faMicrophoneSlash = { prefix: 'fas', iconName: 'microphone-slash', icon: [640, 512, [], "f131", "M633.82 458.1l-157.8-121.96C488.61 312.13 496 285.01 496 256v-48c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v48c0 17.92-3.96 34.8-10.72 50.2l-26.55-20.52c3.1-9.4 5.28-19.22 5.28-29.67V96c0-53.02-42.98-96-96-96s-96 42.98-96 96v45.36L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.36 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.41-6.97 4.16-17.02-2.82-22.45zM400 464h-56v-33.77c11.66-1.6 22.85-4.54 33.67-8.31l-50.11-38.73c-6.71.4-13.41.87-20.35.2-55.85-5.45-98.74-48.63-111.18-101.85L144 241.31v6.85c0 89.64 63.97 169.55 152 181.69V464h-56c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16z"] };
  3677. var faMicroscope = { prefix: 'fas', iconName: 'microscope', icon: [512, 512, [], "f610", "M160 320h12v16c0 8.84 7.16 16 16 16h40c8.84 0 16-7.16 16-16v-16h12c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32V16c0-8.84-7.16-16-16-16h-64c-8.84 0-16 7.16-16 16v16c-17.67 0-32 14.33-32 32v224c0 17.67 14.33 32 32 32zm304 128h-1.29C493.24 413.99 512 369.2 512 320c0-105.88-86.12-192-192-192v64c70.58 0 128 57.42 128 128s-57.42 128-128 128H48c-26.51 0-48 21.49-48 48 0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16 0-26.51-21.49-48-48-48zm-360-32h208c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8H104c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8z"] };
  3678. var faMinus = { prefix: 'fas', iconName: 'minus', icon: [448, 512, [], "f068", "M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"] };
  3679. var faMinusCircle = { prefix: 'fas', iconName: 'minus-circle', icon: [512, 512, [], "f056", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zM124 296c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h264c6.6 0 12 5.4 12 12v56c0 6.6-5.4 12-12 12H124z"] };
  3680. var faMinusSquare = { prefix: 'fas', iconName: 'minus-square', icon: [448, 512, [], "f146", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM92 296c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h264c6.6 0 12 5.4 12 12v56c0 6.6-5.4 12-12 12H92z"] };
  3681. var faMobile = { prefix: 'fas', iconName: 'mobile', icon: [320, 512, [], "f10b", "M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3682. var faMobileAlt = { prefix: 'fas', iconName: 'mobile-alt', icon: [320, 512, [], "f3cd", "M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm112-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v312z"] };
  3683. var faMoneyBill = { prefix: 'fas', iconName: 'money-bill', icon: [640, 512, [], "f0d6", "M608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 176c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96zm272 48h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"] };
  3684. var faMoneyBillAlt = { prefix: 'fas', iconName: 'money-bill-alt', icon: [640, 512, [], "f3d1", "M352 288h-16v-88c0-4.42-3.58-8-8-8h-13.58c-4.74 0-9.37 1.4-13.31 4.03l-15.33 10.22a7.994 7.994 0 0 0-2.22 11.09l8.88 13.31a7.994 7.994 0 0 0 11.09 2.22l.47-.31V288h-16c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8h64c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zM608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 192c-53.02 0-96-50.15-96-112 0-61.86 42.98-112 96-112s96 50.14 96 112c0 61.87-43 112-96 112zm272 32h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"] };
  3685. var faMoneyBillWave = { prefix: 'fas', iconName: 'money-bill-wave', icon: [640, 512, [], "f53a", "M621.16 54.46C582.37 38.19 543.55 32 504.75 32c-123.17-.01-246.33 62.34-369.5 62.34-30.89 0-61.76-3.92-92.65-13.72-3.47-1.1-6.95-1.62-10.35-1.62C15.04 79 0 92.32 0 110.81v317.26c0 12.63 7.23 24.6 18.84 29.46C57.63 473.81 96.45 480 135.25 480c123.17 0 246.34-62.35 369.51-62.35 30.89 0 61.76 3.92 92.65 13.72 3.47 1.1 6.95 1.62 10.35 1.62 17.21 0 32.25-13.32 32.25-31.81V83.93c-.01-12.64-7.24-24.6-18.85-29.47zM48 132.22c20.12 5.04 41.12 7.57 62.72 8.93C104.84 170.54 79 192.69 48 192.69v-60.47zm0 285v-47.78c34.37 0 62.18 27.27 63.71 61.4-22.53-1.81-43.59-6.31-63.71-13.62zM320 352c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96zm272 27.78c-17.52-4.39-35.71-6.85-54.32-8.44 5.87-26.08 27.5-45.88 54.32-49.28v57.72zm0-236.11c-30.89-3.91-54.86-29.7-55.81-61.55 19.54 2.17 38.09 6.23 55.81 12.66v48.89z"] };
  3686. var faMoneyBillWaveAlt = { prefix: 'fas', iconName: 'money-bill-wave-alt', icon: [640, 512, [], "f53b", "M621.16 54.46C582.37 38.19 543.55 32 504.75 32c-123.17-.01-246.33 62.34-369.5 62.34-30.89 0-61.76-3.92-92.65-13.72-3.47-1.1-6.95-1.62-10.35-1.62C15.04 79 0 92.32 0 110.81v317.26c0 12.63 7.23 24.6 18.84 29.46C57.63 473.81 96.45 480 135.25 480c123.17 0 246.34-62.35 369.51-62.35 30.89 0 61.76 3.92 92.65 13.72 3.47 1.1 6.95 1.62 10.35 1.62 17.21 0 32.25-13.32 32.25-31.81V83.93c-.01-12.64-7.24-24.6-18.85-29.47zM320 352c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96z"] };
  3687. var faMoneyCheck = { prefix: 'fas', iconName: 'money-check', icon: [640, 512, [], "f53c", "M0 448c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V128H0v320zm448-208c0-8.84 7.16-16 16-16h96c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-32zm0 120c0-4.42 3.58-8 8-8h112c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H456c-4.42 0-8-3.58-8-8v-16zM64 264c0-4.42 3.58-8 8-8h304c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zm0 96c0-4.42 3.58-8 8-8h176c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zM624 32H16C7.16 32 0 39.16 0 48v48h640V48c0-8.84-7.16-16-16-16z"] };
  3688. var faMoneyCheckAlt = { prefix: 'fas', iconName: 'money-check-alt', icon: [640, 512, [], "f53d", "M608 32H32C14.33 32 0 46.33 0 64v384c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zM176 327.88V344c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-16.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V152c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.05 44.44-42.67 45.07zM416 312c0 4.42-3.58 8-8 8H296c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h112c4.42 0 8 3.58 8 8v16zm160 0c0 4.42-3.58 8-8 8h-80c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16zm0-96c0 4.42-3.58 8-8 8H296c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h272c4.42 0 8 3.58 8 8v16z"] };
  3689. var faMonument = { prefix: 'fas', iconName: 'monument', icon: [384, 512, [], "f5a6", "M368 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h352c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-78.86-347.26a31.97 31.97 0 0 0-9.21-19.44L203.31 4.69c-6.25-6.25-16.38-6.25-22.63 0l-76.6 76.61a31.97 31.97 0 0 0-9.21 19.44L64 416h256l-30.86-315.26zM240 307.2c0 6.4-6.4 12.8-12.8 12.8h-70.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h70.4c6.4 0 12.8 6.4 12.8 12.8v38.4z"] };
  3690. var faMoon = { prefix: 'fas', iconName: 'moon', icon: [512, 512, [], "f186", "M283.211 512c78.962 0 151.079-35.925 198.857-94.792 7.068-8.708-.639-21.43-11.562-19.35-124.203 23.654-238.262-71.576-238.262-196.954 0-72.222 38.662-138.635 101.498-174.394 9.686-5.512 7.25-20.197-3.756-22.23A258.156 258.156 0 0 0 283.211 0c-141.309 0-256 114.511-256 256 0 141.309 114.511 256 256 256z"] };
  3691. var faMortarPestle = { prefix: 'fas', iconName: 'mortar-pestle', icon: [512, 512, [], "f5a7", "M501.54 60.91c17.22-17.22 12.51-46.25-9.27-57.14a35.696 35.696 0 0 0-37.37 3.37L251.09 160h151.37l99.08-99.09zM496 192H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16c0 80.98 50.2 150.11 121.13 178.32-12.76 16.87-21.72 36.8-24.95 58.69-1.46 9.92 6.04 18.98 16.07 18.98h223.5c10.03 0 17.53-9.06 16.07-18.98-3.22-21.89-12.18-41.82-24.95-58.69C429.8 406.11 480 336.98 480 256h16c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  3692. var faMosque = { prefix: 'fas', iconName: 'mosque', icon: [640, 512, [], "f678", "M0 480c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V160H0v320zm579.16-192c17.86-17.39 28.84-37.34 28.84-58.91 0-52.86-41.79-93.79-87.92-122.9-41.94-26.47-80.63-57.77-111.96-96.22L400 0l-8.12 9.97c-31.33 38.45-70.01 69.76-111.96 96.22C233.79 135.3 192 176.23 192 229.09c0 21.57 10.98 41.52 28.84 58.91h358.32zM608 320H192c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h32v-64c0-17.67 14.33-32 32-32s32 14.33 32 32v64h64v-72c0-48 48-72 48-72s48 24 48 72v72h64v-64c0-17.67 14.33-32 32-32s32 14.33 32 32v64h32c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32zM64 0S0 32 0 96v32h128V96c0-64-64-96-64-96z"] };
  3693. var faMotorcycle = { prefix: 'fas', iconName: 'motorcycle', icon: [640, 512, [], "f21c", "M512.949 192.003c-14.862-.108-29.14 2.322-42.434 6.874L437.589 144H520c13.255 0 24-10.745 24-24V88c0-13.255-10.745-24-24-24h-45.311a24 24 0 0 0-17.839 7.945l-37.496 41.663-22.774-37.956A24 24 0 0 0 376 64h-80c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h66.411l19.2 32H227.904c-17.727-23.073-44.924-40-99.904-40H72.54c-13.455 0-24.791 11.011-24.536 24.464C48.252 141.505 58.9 152 72 152h56c24.504 0 38.686 10.919 47.787 24.769l-11.291 20.529c-13.006-3.865-26.871-5.736-41.251-5.21C55.857 194.549 1.565 249.605.034 317.021-1.603 389.076 56.317 448 128 448c59.642 0 109.744-40.794 123.953-96h84.236c13.673 0 24.589-11.421 23.976-25.077-2.118-47.12 17.522-93.665 56.185-125.026l12.485 20.808c-27.646 23.654-45.097 58.88-44.831 98.179.47 69.556 57.203 126.452 126.758 127.11 71.629.678 129.839-57.487 129.234-129.099-.588-69.591-57.455-126.386-127.047-126.892zM128 400c-44.112 0-80-35.888-80-80s35.888-80 80-80c4.242 0 8.405.341 12.469.982L98.97 316.434C90.187 332.407 101.762 352 120 352h81.297c-12.37 28.225-40.56 48-73.297 48zm388.351-.116C470.272 402.337 432 365.554 432 320c0-21.363 8.434-40.781 22.125-55.144l49.412 82.352c4.546 7.577 14.375 10.034 21.952 5.488l13.72-8.232c7.577-4.546 10.034-14.375 5.488-21.952l-48.556-80.927A80.005 80.005 0 0 1 512 240c45.554 0 82.338 38.273 79.884 84.352-2.16 40.558-34.974 73.372-75.533 75.532z"] };
  3694. var faMountain = { prefix: 'fas', iconName: 'mountain', icon: [640, 512, [], "f6fc", "M634.92 462.7l-288-448C341.03 5.54 330.89 0 320 0s-21.03 5.54-26.92 14.7l-288 448a32.001 32.001 0 0 0-1.17 32.64A32.004 32.004 0 0 0 32 512h576c11.71 0 22.48-6.39 28.09-16.67a31.983 31.983 0 0 0-1.17-32.63zM320 91.18L405.39 224H320l-64 64-38.06-38.06L320 91.18z"] };
  3695. var faMousePointer = { prefix: 'fas', iconName: 'mouse-pointer', icon: [320, 512, [], "f245", "M302.189 329.126H196.105l55.831 135.993c3.889 9.428-.555 19.999-9.444 23.999l-49.165 21.427c-9.165 4-19.443-.571-23.332-9.714l-53.053-129.136-86.664 89.138C18.729 472.71 0 463.554 0 447.977V18.299C0 1.899 19.921-6.096 30.277 5.443l284.412 292.542c11.472 11.179 3.007 31.141-12.5 31.141z"] };
  3696. var faMusic = { prefix: 'fas', iconName: 'music', icon: [512, 512, [], "f001", "M511.99 32.01c0-21.71-21.1-37.01-41.6-30.51L150.4 96c-13.3 4.2-22.4 16.5-22.4 30.5v261.42c-10.05-2.38-20.72-3.92-32-3.92-53.02 0-96 28.65-96 64s42.98 64 96 64 96-28.65 96-64V214.31l256-75.02v184.63c-10.05-2.38-20.72-3.92-32-3.92-53.02 0-96 28.65-96 64s42.98 64 96 64 96-28.65 96-64l-.01-351.99z"] };
  3697. var faNetworkWired = { prefix: 'fas', iconName: 'network-wired', icon: [640, 512, [], "f6ff", "M640 264v-16c0-8.84-7.16-16-16-16H344v-40h72c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H224c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h72v40H16c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h104v40H64c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h304v40h-56c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h104c8.84 0 16-7.16 16-16zM256 128V64h128v64H256zm-64 320H96v-64h96v64zm352 0h-96v-64h96v64z"] };
  3698. var faNeuter = { prefix: 'fas', iconName: 'neuter', icon: [288, 512, [], "f22c", "M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V468c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V316.4c64.1-14.5 112-71.9 112-140.4zm-144 80c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3699. var faNewspaper = { prefix: 'fas', iconName: 'newspaper', icon: [576, 512, [], "f1ea", "M552 64H88c-13.255 0-24 10.745-24 24v8H24c-13.255 0-24 10.745-24 24v272c0 30.928 25.072 56 56 56h472c26.51 0 48-21.49 48-48V88c0-13.255-10.745-24-24-24zM56 400a8 8 0 0 1-8-8V144h16v248a8 8 0 0 1-8 8zm236-16H140c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm208 0H348c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm-208-96H140c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm208 0H348c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm0-96H140c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12z"] };
  3700. var faNotEqual = { prefix: 'fas', iconName: 'not-equal', icon: [448, 512, [], "f53e", "M416 208c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32h-23.88l51.87-66.81c5.37-7.02 4.04-17.06-2.97-22.43L415.61 3.3c-7.02-5.38-17.06-4.04-22.44 2.97L311.09 112H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h204.56l-74.53 96H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h55.49l-51.87 66.81c-5.37 7.01-4.04 17.05 2.97 22.43L64 508.7c7.02 5.38 17.06 4.04 22.43-2.97L168.52 400H416c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32H243.05l74.53-96H416z"] };
  3701. var faNotesMedical = { prefix: 'fas', iconName: 'notes-medical', icon: [384, 512, [], "f481", "M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 40c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm96 304c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48zm0-192c0 4.4-3.6 8-8 8H104c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h176c4.4 0 8 3.6 8 8v16z"] };
  3702. var faObjectGroup = { prefix: 'fas', iconName: 'object-group', icon: [512, 512, [], "f247", "M480 128V96h20c6.627 0 12-5.373 12-12V44c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v20H64V44c0-6.627-5.373-12-12-12H12C5.373 32 0 37.373 0 44v40c0 6.627 5.373 12 12 12h20v320H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-20h384v20c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-20V128zM96 276V140c0-6.627 5.373-12 12-12h168c6.627 0 12 5.373 12 12v136c0 6.627-5.373 12-12 12H108c-6.627 0-12-5.373-12-12zm320 96c0 6.627-5.373 12-12 12H236c-6.627 0-12-5.373-12-12v-52h72c13.255 0 24-10.745 24-24v-72h84c6.627 0 12 5.373 12 12v136z"] };
  3703. var faObjectUngroup = { prefix: 'fas', iconName: 'object-ungroup', icon: [576, 512, [], "f248", "M64 320v26a6 6 0 0 1-6 6H6a6 6 0 0 1-6-6v-52a6 6 0 0 1 6-6h26V96H6a6 6 0 0 1-6-6V38a6 6 0 0 1 6-6h52a6 6 0 0 1 6 6v26h288V38a6 6 0 0 1 6-6h52a6 6 0 0 1 6 6v52a6 6 0 0 1-6 6h-26v192h26a6 6 0 0 1 6 6v52a6 6 0 0 1-6 6h-52a6 6 0 0 1-6-6v-26H64zm480-64v-32h26a6 6 0 0 0 6-6v-52a6 6 0 0 0-6-6h-52a6 6 0 0 0-6 6v26H408v72h8c13.255 0 24 10.745 24 24v64c0 13.255-10.745 24-24 24h-64c-13.255 0-24-10.745-24-24v-8H192v72h-26a6 6 0 0 0-6 6v52a6 6 0 0 0 6 6h52a6 6 0 0 0 6-6v-26h288v26a6 6 0 0 0 6 6h52a6 6 0 0 0 6-6v-52a6 6 0 0 0-6-6h-26V256z"] };
  3704. var faOilCan = { prefix: 'fas', iconName: 'oil-can', icon: [640, 512, [], "f613", "M629.8 160.31L416 224l-50.49-25.24a64.07 64.07 0 0 0-28.62-6.76H280v-48h56c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16H176c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h56v48h-56L37.72 166.86a31.9 31.9 0 0 0-5.79-.53C14.67 166.33 0 180.36 0 198.34v94.95c0 15.46 11.06 28.72 26.28 31.48L96 337.46V384c0 17.67 14.33 32 32 32h274.63c8.55 0 16.75-3.42 22.76-9.51l212.26-214.75c1.5-1.5 2.34-3.54 2.34-5.66V168c.01-5.31-5.08-9.15-10.19-7.69zM96 288.67l-48-8.73v-62.43l48 8.73v62.43zm453.33 84.66c0 23.56 19.1 42.67 42.67 42.67s42.67-19.1 42.67-42.67S592 288 592 288s-42.67 61.77-42.67 85.33z"] };
  3705. var faOm = { prefix: 'fas', iconName: 'om', icon: [512, 512, [], "f679", "M360.6 60.94a10.43 10.43 0 0 0 14.76 0l21.57-21.56a10.43 10.43 0 0 0 0-14.76L375.35 3.06c-4.08-4.07-10.68-4.07-14.76 0l-21.57 21.56a10.43 10.43 0 0 0 0 14.76l21.58 21.56zM412.11 192c-26.69 0-51.77 10.39-70.64 29.25l-24.25 24.25c-6.78 6.77-15.78 10.5-25.38 10.5H245c10.54-22.1 14.17-48.11 7.73-75.23-10.1-42.55-46.36-76.11-89.52-83.19-36.15-5.93-70.9 5.04-96.01 28.78-7.36 6.96-6.97 18.85 1.12 24.93l26.15 19.63c5.72 4.3 13.66 4.32 19.2-.21 8.45-6.9 19.02-10.71 30.27-10.71 26.47 0 48.01 21.53 48.01 48s-21.54 48-48.01 48h-31.9c-11.96 0-19.74 12.58-14.39 23.28l16.09 32.17c2.53 5.06 7.6 8.1 13.17 8.55h33.03c35.3 0 64.01 28.7 64.01 64s-28.71 64-64.01 64c-96.02 0-122.35-54.02-145.15-92.03-4.53-7.55-14.77-3.58-14.79 5.22C-.09 416 41.13 512 159.94 512c70.59 0 128.02-57.42 128.02-128 0-23.42-6.78-45.1-17.81-64h21.69c26.69 0 51.77-10.39 70.64-29.25l24.25-24.25c6.78-6.77 15.78-10.5 25.38-10.5 19.78 0 35.88 16.09 35.88 35.88V392c0 13.23-18.77 24-32.01 24-39.4 0-66.67-24.24-81.82-42.89-4.77-5.87-14.2-2.54-14.2 5.02V416s0 64 96.02 64c48.54 0 96.02-39.47 96.02-88V291.88c0-55.08-44.8-99.88-99.89-99.88zm42.18-124.73c-85.55 65.12-169.05 2.75-172.58.05-6.02-4.62-14.44-4.38-20.14.55-5.74 4.92-7.27 13.17-3.66 19.8 1.61 2.95 40.37 72.34 118.8 72.34 79.92 0 98.78-31.36 101.75-37.66 1.02-2.12 1.53-4.47 1.53-6.83V80c0-13.22-15.14-20.69-25.7-12.73z"] };
  3706. var faOtter = { prefix: 'fas', iconName: 'otter', icon: [640, 512, [], "f700", "M608 32h-32l-13.25-13.25A63.97 63.97 0 0 0 517.49 0H497c-11.14 0-22.08 2.91-31.75 8.43L312 96h-56C149.96 96 64 181.96 64 288v1.61c0 32.75-16 62.14-39.56 84.89-18.19 17.58-28.1 43.68-23.19 71.8 6.76 38.8 42.9 65.7 82.28 65.7H192c17.67 0 32-14.33 32-32s-14.33-32-32-32H80c-8.83 0-16-7.17-16-16s7.17-16 16-16h224c8.84 0 16-7.16 16-16v-16c0-17.67-14.33-32-32-32h-64l149.49-80.5L448 416h80c8.84 0 16-7.16 16-16v-16c0-17.67-14.33-32-32-32h-28.22l-55.11-110.21L521.14 192H544c53.02 0 96-42.98 96-96V64c0-17.67-14.33-32-32-32zm-96 16c8.84 0 16 7.16 16 16s-7.16 16-16 16-16-7.16-16-16 7.16-16 16-16zm32 96h-34.96L407.2 198.84l-13.77-27.55L512 112h77.05c-6.62 18.58-24.22 32-45.05 32z"] };
  3707. var faOutdent = { prefix: 'fas', iconName: 'outdent', icon: [448, 512, [], "f03b", "M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm208 144h224c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H208c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM16 484h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm192-128h224c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H208c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM4.687 267.313l96 95.984C110.734 373.348 128 366.224 128 351.984V160.008c0-14.329-17.325-21.304-27.313-11.313l-96 95.992c-6.249 6.248-6.249 16.378 0 22.626z"] };
  3708. var faPaintBrush = { prefix: 'fas', iconName: 'paint-brush', icon: [512, 512, [], "f1fc", "M167.02 309.34c-40.12 2.58-76.53 17.86-97.19 72.3-2.35 6.21-8 9.98-14.59 9.98-11.11 0-45.46-27.67-55.25-34.35C0 439.62 37.93 512 128 512c75.86 0 128-43.77 128-120.19 0-3.11-.65-6.08-.97-9.13l-88.01-73.34zM457.89 0c-15.16 0-29.37 6.71-40.21 16.45C213.27 199.05 192 203.34 192 257.09c0 13.7 3.25 26.76 8.73 38.7l63.82 53.18c7.21 1.8 14.64 3.03 22.39 3.03 62.11 0 98.11-45.47 211.16-256.46 7.38-14.35 13.9-29.85 13.9-45.99C512 20.64 486 0 457.89 0z"] };
  3709. var faPaintRoller = { prefix: 'fas', iconName: 'paint-roller', icon: [512, 512, [], "f5aa", "M416 128V32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v96c0 17.67 14.33 32 32 32h352c17.67 0 32-14.33 32-32zm32-64v128c0 17.67-14.33 32-32 32H256c-35.35 0-64 28.65-64 64v32c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32v-32h160c53.02 0 96-42.98 96-96v-64c0-35.35-28.65-64-64-64z"] };
  3710. var faPalette = { prefix: 'fas', iconName: 'palette', icon: [512, 512, [], "f53f", "M204.3 5C104.9 24.4 24.8 104.3 5.2 203.4c-37 187 131.7 326.4 258.8 306.7 41.2-6.4 61.4-54.6 42.5-91.7-23.1-45.4 9.9-98.4 60.9-98.4h79.7c35.8 0 64.8-29.6 64.9-65.3C511.5 97.1 368.1-26.9 204.3 5zM96 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm32-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128-64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3711. var faPallet = { prefix: 'fas', iconName: 'pallet', icon: [640, 512, [], "f482", "M144 256h352c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16H384v128l-64-32-64 32V0H144c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16zm480 128c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h48v64H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16h-48v-64h48zm-336 64H128v-64h160v64zm224 0H352v-64h160v64z"] };
  3712. var faPaperPlane = { prefix: 'fas', iconName: 'paper-plane', icon: [512, 512, [], "f1d8", "M476 3.2L12.5 270.6c-18.1 10.4-15.8 35.6 2.2 43.2L121 358.4l287.3-253.2c5.5-4.9 13.3 2.6 8.6 8.3L176 407v80.5c0 23.6 28.5 32.9 42.5 15.8L282 426l124.6 52.2c14.2 6 30.4-2.9 33-18.2l72-432C515 7.8 493.3-6.8 476 3.2z"] };
  3713. var faPaperclip = { prefix: 'fas', iconName: 'paperclip', icon: [448, 512, [], "f0c6", "M43.246 466.142c-58.43-60.289-57.341-157.511 1.386-217.581L254.392 34c44.316-45.332 116.351-45.336 160.671 0 43.89 44.894 43.943 117.329 0 162.276L232.214 383.128c-29.855 30.537-78.633 30.111-107.982-.998-28.275-29.97-27.368-77.473 1.452-106.953l143.743-146.835c6.182-6.314 16.312-6.422 22.626-.241l22.861 22.379c6.315 6.182 6.422 16.312.241 22.626L171.427 319.927c-4.932 5.045-5.236 13.428-.648 18.292 4.372 4.634 11.245 4.711 15.688.165l182.849-186.851c19.613-20.062 19.613-52.725-.011-72.798-19.189-19.627-49.957-19.637-69.154 0L90.39 293.295c-34.763 35.56-35.299 93.12-1.191 128.313 34.01 35.093 88.985 35.137 123.058.286l172.06-175.999c6.177-6.319 16.307-6.433 22.626-.256l22.877 22.364c6.319 6.177 6.434 16.307.256 22.626l-172.06 175.998c-59.576 60.938-155.943 60.216-214.77-.485z"] };
  3714. var faParachuteBox = { prefix: 'fas', iconName: 'parachute-box', icon: [512, 512, [], "f4cd", "M511.9 175c-9.1-75.6-78.4-132.4-158.3-158.7C390 55.7 416 116.9 416 192h28.1L327.5 321.5c-2.5-.6-4.8-1.5-7.5-1.5h-48V192h112C384 76.8 315.1 0 256 0S128 76.8 128 192h112v128h-48c-2.7 0-5 .9-7.5 1.5L67.9 192H96c0-75.1 26-136.3 62.4-175.7C78.5 42.7 9.2 99.5.1 175c-1.1 9.1 6.8 17 16 17h8.7l136.7 151.9c-.7 2.6-1.6 5.2-1.6 8.1v128c0 17.7 14.3 32 32 32h128c17.7 0 32-14.3 32-32V352c0-2.9-.9-5.4-1.6-8.1L487.1 192h8.7c9.3 0 17.2-7.8 16.1-17z"] };
  3715. var faParagraph = { prefix: 'fas', iconName: 'paragraph', icon: [448, 512, [], "f1dd", "M408 32H177.531C88.948 32 16.045 103.335 16 191.918 15.956 280.321 87.607 352 176 352v104c0 13.255 10.745 24 24 24h32c13.255 0 24-10.745 24-24V112h32v344c0 13.255 10.745 24 24 24h32c13.255 0 24-10.745 24-24V112h40c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24z"] };
  3716. var faParking = { prefix: 'fas', iconName: 'parking', icon: [448, 512, [], "f540", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM240 320h-48v48c0 8.8-7.2 16-16 16h-32c-8.8 0-16-7.2-16-16V144c0-8.8 7.2-16 16-16h96c52.9 0 96 43.1 96 96s-43.1 96-96 96zm0-128h-48v64h48c17.6 0 32-14.4 32-32s-14.4-32-32-32z"] };
  3717. var faPassport = { prefix: 'fas', iconName: 'passport', icon: [448, 512, [], "f5ab", "M129.62 176h39.09c1.49-27.03 6.54-51.35 14.21-70.41-27.71 13.24-48.02 39.19-53.3 70.41zm0 32c5.29 31.22 25.59 57.17 53.3 70.41-7.68-19.06-12.72-43.38-14.21-70.41h-39.09zM224 286.69c7.69-7.45 20.77-34.42 23.43-78.69h-46.87c2.67 44.26 15.75 71.24 23.44 78.69zM200.57 176h46.87c-2.66-44.26-15.74-71.24-23.43-78.69-7.7 7.45-20.78 34.43-23.44 78.69zm64.51 102.41c27.71-13.24 48.02-39.19 53.3-70.41h-39.09c-1.49 27.03-6.53 51.35-14.21 70.41zM416 0H64C28.65 0 0 28.65 0 64v384c0 35.35 28.65 64 64 64h352c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32zm-80 416H112c-8.8 0-16-7.2-16-16s7.2-16 16-16h224c8.8 0 16 7.2 16 16s-7.2 16-16 16zm-112-96c-70.69 0-128-57.31-128-128S153.31 64 224 64s128 57.31 128 128-57.31 128-128 128zm41.08-214.41c7.68 19.06 12.72 43.38 14.21 70.41h39.09c-5.28-31.22-25.59-57.17-53.3-70.41z"] };
  3718. var faPastafarianism = { prefix: 'fas', iconName: 'pastafarianism', icon: [640, 512, [], "f67b", "M624.54 347.67c-32.7-12.52-57.36 4.25-75.37 16.45-17.06 11.53-23.25 14.42-31.41 11.36-8.12-3.09-10.83-9.38-15.89-29.38-3.33-13.15-7.44-29.32-17.95-42.65 2.24-2.91 4.43-5.79 6.38-8.57C500.47 304.45 513.71 312 532 312c33.95 0 50.87-25.78 62.06-42.83 10.59-16.14 15-21.17 21.94-21.17 13.25 0 24-10.75 24-24s-10.75-24-24-24c-33.95 0-50.87 25.78-62.06 42.83-10.6 16.14-15 21.17-21.94 21.17-17.31 0-37.48-61.43-97.26-101.91l17.25-34.5C485.43 125.5 512 97.98 512 64c0-35.35-28.65-64-64-64s-64 28.65-64 64c0 13.02 3.94 25.1 10.62 35.21l-18.15 36.3c-16.98-4.6-35.6-7.51-56.46-7.51s-39.49 2.91-56.46 7.51l-18.15-36.3C252.06 89.1 256 77.02 256 64c0-35.35-28.65-64-64-64s-64 28.65-64 64c0 33.98 26.56 61.5 60.02 63.6l17.25 34.5C145.68 202.44 125.15 264 108 264c-6.94 0-11.34-5.03-21.94-21.17C74.88 225.78 57.96 200 24 200c-13.25 0-24 10.75-24 24s10.75 24 24 24c6.94 0 11.34 5.03 21.94 21.17C57.13 286.22 74.05 312 108 312c18.29 0 31.53-7.55 41.7-17.11 1.95 2.79 4.14 5.66 6.38 8.57-10.51 13.33-14.62 29.5-17.95 42.65-5.06 20-7.77 26.28-15.89 29.38-8.11 3.06-14.33.17-31.41-11.36-18.03-12.2-42.72-28.92-75.37-16.45-12.39 4.72-18.59 18.58-13.87 30.97 4.72 12.41 18.61 18.61 30.97 13.88 8.16-3.09 14.34-.19 31.39 11.36 13.55 9.16 30.83 20.86 52.42 20.84 7.17 0 14.83-1.28 22.97-4.39 32.66-12.44 39.98-41.33 45.33-62.44 2.21-8.72 3.99-14.49 5.95-18.87 16.62 13.61 36.95 25.88 61.64 34.17-9.96 37-32.18 90.8-60.26 90.8-13.25 0-24 10.75-24 24s10.75 24 24 24c66.74 0 97.05-88.63 107.42-129.14 6.69.6 13.42 1.14 20.58 1.14s13.89-.54 20.58-1.14C350.95 423.37 381.26 512 448 512c13.25 0 24-10.75 24-24s-10.75-24-24-24c-27.94 0-50.21-53.81-60.22-90.81 24.69-8.29 45-20.56 61.62-34.16 1.96 4.38 3.74 10.15 5.95 18.87 5.34 21.11 12.67 50 45.33 62.44 8.14 3.11 15.8 4.39 22.97 4.39 21.59 0 38.87-11.69 52.42-20.84 17.05-11.55 23.28-14.45 31.39-11.36 12.39 4.75 26.27-1.47 30.97-13.88 4.71-12.4-1.49-26.26-13.89-30.98zM448 48c8.82 0 16 7.18 16 16s-7.18 16-16 16-16-7.18-16-16 7.18-16 16-16zm-256 0c8.82 0 16 7.18 16 16s-7.18 16-16 16-16-7.18-16-16 7.18-16 16-16z"] };
  3719. var faPaste = { prefix: 'fas', iconName: 'paste', icon: [448, 512, [], "f0ea", "M128 184c0-30.879 25.122-56 56-56h136V56c0-13.255-10.745-24-24-24h-80.61C204.306 12.89 183.637 0 160 0s-44.306 12.89-55.39 32H24C10.745 32 0 42.745 0 56v336c0 13.255 10.745 24 24 24h104V184zm32-144c13.255 0 24 10.745 24 24s-10.745 24-24 24-24-10.745-24-24 10.745-24 24-24zm184 248h104v200c0 13.255-10.745 24-24 24H184c-13.255 0-24-10.745-24-24V184c0-13.255 10.745-24 24-24h136v104c0 13.2 10.8 24 24 24zm104-38.059V256h-96v-96h6.059a24 24 0 0 1 16.97 7.029l65.941 65.941a24.002 24.002 0 0 1 7.03 16.971z"] };
  3720. var faPause = { prefix: 'fas', iconName: 'pause', icon: [448, 512, [], "f04c", "M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"] };
  3721. var faPauseCircle = { prefix: 'fas', iconName: 'pause-circle', icon: [512, 512, [], "f28b", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm-16 328c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v160zm112 0c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v160z"] };
  3722. var faPaw = { prefix: 'fas', iconName: 'paw', icon: [512, 512, [], "f1b0", "M256 224c-79.41 0-192 122.76-192 200.25 0 34.9 26.81 55.75 71.74 55.75 48.84 0 81.09-25.08 120.26-25.08 39.51 0 71.85 25.08 120.26 25.08 44.93 0 71.74-20.85 71.74-55.75C448 346.76 335.41 224 256 224zm-147.28-12.61c-10.4-34.65-42.44-57.09-71.56-50.13-29.12 6.96-44.29 40.69-33.89 75.34 10.4 34.65 42.44 57.09 71.56 50.13 29.12-6.96 44.29-40.69 33.89-75.34zm84.72-20.78c30.94-8.14 46.42-49.94 34.58-93.36s-46.52-72.01-77.46-63.87-46.42 49.94-34.58 93.36c11.84 43.42 46.53 72.02 77.46 63.87zm281.39-29.34c-29.12-6.96-61.15 15.48-71.56 50.13-10.4 34.65 4.77 68.38 33.89 75.34 29.12 6.96 61.15-15.48 71.56-50.13 10.4-34.65-4.77-68.38-33.89-75.34zm-156.27 29.34c30.94 8.14 65.62-20.45 77.46-63.87 11.84-43.42-3.64-85.21-34.58-93.36s-65.62 20.45-77.46 63.87c-11.84 43.42 3.64 85.22 34.58 93.36z"] };
  3723. var faPeace = { prefix: 'fas', iconName: 'peace', icon: [496, 512, [], "f67c", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm184 248c0 31.93-8.2 61.97-22.57 88.17L280 240.63V74.97c86.23 15.21 152 90.5 152 181.03zM216 437.03c-33.86-5.97-64.49-21.2-89.29-43.02L216 322.57v114.46zm64-114.46L369.29 394c-24.8 21.82-55.43 37.05-89.29 43.02V322.57zm-64-247.6v165.66L86.57 344.17C72.2 317.97 64 287.93 64 256c0-90.53 65.77-165.82 152-181.03z"] };
  3724. var faPen = { prefix: 'fas', iconName: 'pen', icon: [512, 512, [], "f304", "M290.74 93.24l128.02 128.02-277.99 277.99-114.14 12.6C11.35 513.54-1.56 500.62.14 485.34l12.7-114.22 277.9-277.88zm207.2-19.06l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.76 18.75-49.16 0-67.91z"] };
  3725. var faPenAlt = { prefix: 'fas', iconName: 'pen-alt', icon: [512, 512, [], "f305", "M497.94 74.17l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.75 18.75-49.15 0-67.91zm-246.8-20.53c-15.62-15.62-40.94-15.62-56.56 0L75.8 172.43c-6.25 6.25-6.25 16.38 0 22.62l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l101.82-101.82 22.63 22.62L93.95 290.03A327.038 327.038 0 0 0 .17 485.11l-.03.23c-1.7 15.28 11.21 28.2 26.49 26.51a327.02 327.02 0 0 0 195.34-93.8l196.79-196.79-82.77-82.77-84.85-84.85z"] };
  3726. var faPenFancy = { prefix: 'fas', iconName: 'pen-fancy', icon: [512, 512, [], "f5ac", "M79.18 282.94a32.005 32.005 0 0 0-20.24 20.24L0 480l4.69 4.69 92.89-92.89c-.66-2.56-1.57-5.03-1.57-7.8 0-17.67 14.33-32 32-32s32 14.33 32 32-14.33 32-32 32c-2.77 0-5.24-.91-7.8-1.57l-92.89 92.89L32 512l176.82-58.94a31.983 31.983 0 0 0 20.24-20.24l33.07-84.07-98.88-98.88-84.07 33.07zM369.25 28.32L186.14 227.81l97.85 97.85 199.49-183.11C568.4 67.48 443.73-55.94 369.25 28.32z"] };
  3727. var faPenNib = { prefix: 'fas', iconName: 'pen-nib', icon: [512, 512, [], "f5ad", "M136.6 138.79a64.003 64.003 0 0 0-43.31 41.35L0 460l14.69 14.69L164.8 324.58c-2.99-6.26-4.8-13.18-4.8-20.58 0-26.51 21.49-48 48-48s48 21.49 48 48-21.49 48-48 48c-7.4 0-14.32-1.81-20.58-4.8L37.31 497.31 52 512l279.86-93.29a64.003 64.003 0 0 0 41.35-43.31L416 224 288 96l-151.4 42.79zm361.34-64.62l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.75 18.75-49.15 0-67.91z"] };
  3728. var faPenSquare = { prefix: 'fas', iconName: 'pen-square', icon: [448, 512, [], "f14b", "M400 480H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zM238.1 177.9L102.4 313.6l-6.3 57.1c-.8 7.6 5.6 14.1 13.3 13.3l57.1-6.3L302.2 242c2.3-2.3 2.3-6.1 0-8.5L246.7 178c-2.5-2.4-6.3-2.4-8.6-.1zM345 165.1L314.9 135c-9.4-9.4-24.6-9.4-33.9 0l-23.1 23.1c-2.3 2.3-2.3 6.1 0 8.5l55.5 55.5c2.3 2.3 6.1 2.3 8.5 0L345 199c9.3-9.3 9.3-24.5 0-33.9z"] };
  3729. var faPencilAlt = { prefix: 'fas', iconName: 'pencil-alt', icon: [512, 512, [], "f303", "M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z"] };
  3730. var faPencilRuler = { prefix: 'fas', iconName: 'pencil-ruler', icon: [512, 512, [], "f5ae", "M109.46 244.04l134.58-134.56-44.12-44.12-61.68 61.68a7.919 7.919 0 0 1-11.21 0l-11.21-11.21c-3.1-3.1-3.1-8.12 0-11.21l61.68-61.68-33.64-33.65C131.47-3.1 111.39-3.1 99 9.29L9.29 99c-12.38 12.39-12.39 32.47 0 44.86l100.17 100.18zm388.47-116.8c18.76-18.76 18.75-49.17 0-67.93l-45.25-45.25c-18.76-18.76-49.18-18.76-67.95 0l-46.02 46.01 113.2 113.2 46.02-46.03zM316.08 82.71l-297 296.96L.32 487.11c-2.53 14.49 10.09 27.11 24.59 24.56l107.45-18.84L429.28 195.9 316.08 82.71zm186.63 285.43l-33.64-33.64-61.68 61.68c-3.1 3.1-8.12 3.1-11.21 0l-11.21-11.21c-3.09-3.1-3.09-8.12 0-11.21l61.68-61.68-44.14-44.14L267.93 402.5l100.21 100.2c12.39 12.39 32.47 12.39 44.86 0l89.71-89.7c12.39-12.39 12.39-32.47 0-44.86z"] };
  3731. var faPeopleCarry = { prefix: 'fas', iconName: 'people-carry', icon: [640, 512, [], "f4ce", "M128 96c26.5 0 48-21.5 48-48S154.5 0 128 0 80 21.5 80 48s21.5 48 48 48zm384 0c26.5 0 48-21.5 48-48S538.5 0 512 0s-48 21.5-48 48 21.5 48 48 48zm125.7 372.1l-44-110-41.1 46.4-2 18.2 27.7 69.2c5 12.5 17 20.1 29.7 20.1 4 0 8-.7 11.9-2.3 16.4-6.6 24.4-25.2 17.8-41.6zm-34.2-209.8L585 178.1c-4.6-20-18.6-36.8-37.5-44.9-18.5-8-39-6.7-56.1 3.3-22.7 13.4-39.7 34.5-48.1 59.4L432 229.8 416 240v-96c0-8.8-7.2-16-16-16H240c-8.8 0-16 7.2-16 16v96l-16.1-10.2-11.3-33.9c-8.3-25-25.4-46-48.1-59.4-17.2-10-37.6-11.3-56.1-3.3-18.9 8.1-32.9 24.9-37.5 44.9l-18.4 80.2c-4.6 20 .7 41.2 14.4 56.7l67.2 75.9 10.1 92.6C130 499.8 143.8 512 160 512c1.2 0 2.3-.1 3.5-.2 17.6-1.9 30.2-17.7 28.3-35.3l-10.1-92.8c-1.5-13-6.9-25.1-15.6-35l-43.3-49 17.6-70.3 6.8 20.4c4.1 12.5 11.9 23.4 24.5 32.6l51.1 32.5c4.6 2.9 12.1 4.6 17.2 5h160c5.1-.4 12.6-2.1 17.2-5l51.1-32.5c12.6-9.2 20.4-20 24.5-32.6l6.8-20.4 17.6 70.3-43.3 49c-8.7 9.9-14.1 22-15.6 35l-10.1 92.8c-1.9 17.6 10.8 33.4 28.3 35.3 1.2.1 2.3.2 3.5.2 16.1 0 30-12.1 31.8-28.5l10.1-92.6 67.2-75.9c13.6-15.5 19-36.7 14.4-56.7zM46.3 358.1l-44 110c-6.6 16.4 1.4 35 17.8 41.6 16.8 6.6 35.1-1.7 41.6-17.8l27.7-69.2-2-18.2-41.1-46.4z"] };
  3732. var faPercent = { prefix: 'fas', iconName: 'percent', icon: [448, 512, [], "f295", "M112 224c61.9 0 112-50.1 112-112S173.9 0 112 0 0 50.1 0 112s50.1 112 112 112zm0-160c26.5 0 48 21.5 48 48s-21.5 48-48 48-48-21.5-48-48 21.5-48 48-48zm224 224c-61.9 0-112 50.1-112 112s50.1 112 112 112 112-50.1 112-112-50.1-112-112-112zm0 160c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zM392.3.2l31.6-.1c19.4-.1 30.9 21.8 19.7 37.8L77.4 501.6a23.95 23.95 0 0 1-19.6 10.2l-33.4.1c-19.5 0-30.9-21.9-19.7-37.8l368-463.7C377.2 4 384.5.2 392.3.2z"] };
  3733. var faPercentage = { prefix: 'fas', iconName: 'percentage', icon: [384, 512, [], "f541", "M109.25 173.25c24.99-24.99 24.99-65.52 0-90.51-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 25 25 65.52 25 90.51 0zm256 165.49c-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 24.99 24.99 65.52 24.99 90.51 0 25-24.99 25-65.51 0-90.51zm-1.94-231.43l-22.62-22.62c-12.5-12.5-32.76-12.5-45.25 0L20.69 359.44c-12.5 12.5-12.5 32.76 0 45.25l22.62 22.62c12.5 12.5 32.76 12.5 45.25 0l274.75-274.75c12.5-12.49 12.5-32.75 0-45.25z"] };
  3734. var faPhone = { prefix: 'fas', iconName: 'phone', icon: [512, 512, [], "f095", "M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z"] };
  3735. var faPhoneSlash = { prefix: 'fas', iconName: 'phone-slash', icon: [640, 512, [], "f3dd", "M268.2 381.4l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48c-10.7 4.6-16.5 16.1-13.9 27.5l24 104c2.5 10.8 12.1 18.6 23.4 18.6 100.7 0 193.7-32.4 269.7-86.9l-80-61.8c-10.9 6.5-22.1 12.7-33.6 18.1zm365.6 76.7L475.1 335.5C537.9 256.4 576 156.9 576 48c0-11.2-7.7-20.9-18.6-23.4l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-12.2 26.1-27.9 50.3-46 72.8L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3z"] };
  3736. var faPhoneSquare = { prefix: 'fas', iconName: 'phone-square', icon: [448, 512, [], "f098", "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM94 416c-7.033 0-13.057-4.873-14.616-11.627l-14.998-65a15 15 0 0 1 8.707-17.16l69.998-29.999a15 15 0 0 1 17.518 4.289l30.997 37.885c48.944-22.963 88.297-62.858 110.781-110.78l-37.886-30.997a15.001 15.001 0 0 1-4.289-17.518l30-69.998a15 15 0 0 1 17.16-8.707l65 14.998A14.997 14.997 0 0 1 384 126c0 160.292-129.945 290-290 290z"] };
  3737. var faPhoneVolume = { prefix: 'fas', iconName: 'phone-volume', icon: [384, 512, [], "f2a0", "M97.333 506.966c-129.874-129.874-129.681-340.252 0-469.933 5.698-5.698 14.527-6.632 21.263-2.422l64.817 40.513a17.187 17.187 0 0 1 6.849 20.958l-32.408 81.021a17.188 17.188 0 0 1-17.669 10.719l-55.81-5.58c-21.051 58.261-20.612 122.471 0 179.515l55.811-5.581a17.188 17.188 0 0 1 17.669 10.719l32.408 81.022a17.188 17.188 0 0 1-6.849 20.958l-64.817 40.513a17.19 17.19 0 0 1-21.264-2.422zM247.126 95.473c11.832 20.047 11.832 45.008 0 65.055-3.95 6.693-13.108 7.959-18.718 2.581l-5.975-5.726c-3.911-3.748-4.793-9.622-2.261-14.41a32.063 32.063 0 0 0 0-29.945c-2.533-4.788-1.65-10.662 2.261-14.41l5.975-5.726c5.61-5.378 14.768-4.112 18.718 2.581zm91.787-91.187c60.14 71.604 60.092 175.882 0 247.428-4.474 5.327-12.53 5.746-17.552.933l-5.798-5.557c-4.56-4.371-4.977-11.529-.93-16.379 49.687-59.538 49.646-145.933 0-205.422-4.047-4.85-3.631-12.008.93-16.379l5.798-5.557c5.022-4.813 13.078-4.394 17.552.933zm-45.972 44.941c36.05 46.322 36.108 111.149 0 157.546-4.39 5.641-12.697 6.251-17.856 1.304l-5.818-5.579c-4.4-4.219-4.998-11.095-1.285-15.931 26.536-34.564 26.534-82.572 0-117.134-3.713-4.836-3.115-11.711 1.285-15.931l5.818-5.579c5.159-4.947 13.466-4.337 17.856 1.304z"] };
  3738. var faPiggyBank = { prefix: 'fas', iconName: 'piggy-bank', icon: [576, 512, [], "f4d3", "M560 224h-29.5c-8.8-20-21.6-37.7-37.4-52.5L512 96h-32c-29.4 0-55.4 13.5-73 34.3-7.6-1.1-15.1-2.3-23-2.3H256c-77.4 0-141.9 55-156.8 128H56c-14.8 0-26.5-13.5-23.5-28.8C34.7 215.8 45.4 208 57 208h1c3.3 0 6-2.7 6-6v-20c0-3.3-2.7-6-6-6-28.5 0-53.9 20.4-57.5 48.6C-3.9 258.8 22.7 288 56 288h40c0 52.2 25.4 98.1 64 127.3V496c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-48h128v48c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-80.7c11.8-8.9 22.3-19.4 31.3-31.3H560c8.8 0 16-7.2 16-16V240c0-8.8-7.2-16-16-16zm-128 64c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zM256 96h128c5.4 0 10.7.4 15.9.8 0-.3.1-.5.1-.8 0-53-43-96-96-96s-96 43-96 96c0 2.1.5 4.1.6 6.2 15.2-3.9 31-6.2 47.4-6.2z"] };
  3739. var faPills = { prefix: 'fas', iconName: 'pills', icon: [576, 512, [], "f484", "M112 32C50.1 32 0 82.1 0 144v224c0 61.9 50.1 112 112 112s112-50.1 112-112V144c0-61.9-50.1-112-112-112zm48 224H64V144c0-26.5 21.5-48 48-48s48 21.5 48 48v112zm139.7-29.7c-3.5-3.5-9.4-3.1-12.3.8-45.3 62.5-40.4 150.1 15.9 206.4 56.3 56.3 143.9 61.2 206.4 15.9 4-2.9 4.3-8.8.8-12.3L299.7 226.3zm229.8-19c-56.3-56.3-143.9-61.2-206.4-15.9-4 2.9-4.3 8.8-.8 12.3l210.8 210.8c3.5 3.5 9.4 3.1 12.3-.8 45.3-62.6 40.5-150.1-15.9-206.4z"] };
  3740. var faPlaceOfWorship = { prefix: 'fas', iconName: 'place-of-worship', icon: [640, 512, [], "f67f", "M620.61 366.55L512 320v192h112c8.84 0 16-7.16 16-16V395.96a32 32 0 0 0-19.39-29.41zM0 395.96V496c0 8.84 7.16 16 16 16h112V320L19.39 366.55A32 32 0 0 0 0 395.96zm464.46-149.28L416 217.6V102.63c0-8.49-3.37-16.62-9.38-22.63L331.31 4.69c-6.25-6.25-16.38-6.25-22.62 0L233.38 80c-6 6-9.38 14.14-9.38 22.63V217.6l-48.46 29.08A31.997 31.997 0 0 0 160 274.12V512h96v-96c0-35.35 28.66-64 64-64s64 28.65 64 64v96h96V274.12c0-11.24-5.9-21.66-15.54-27.44z"] };
  3741. var faPlane = { prefix: 'fas', iconName: 'plane', icon: [576, 512, [], "f072", "M480 192H365.71L260.61 8.06A16.014 16.014 0 0 0 246.71 0h-65.5c-10.63 0-18.3 10.17-15.38 20.39L214.86 192H112l-43.2-57.6c-3.02-4.03-7.77-6.4-12.8-6.4H16.01C5.6 128-2.04 137.78.49 147.88L32 256 .49 364.12C-2.04 374.22 5.6 384 16.01 384H56c5.04 0 9.78-2.37 12.8-6.4L112 320h102.86l-49.03 171.6c-2.92 10.22 4.75 20.4 15.38 20.4h65.5c5.74 0 11.04-3.08 13.89-8.06L365.71 320H480c35.35 0 96-28.65 96-64s-60.65-64-96-64z"] };
  3742. var faPlaneArrival = { prefix: 'fas', iconName: 'plane-arrival', icon: [640, 512, [], "f5af", "M624 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM44.81 205.66l88.74 80a62.607 62.607 0 0 0 25.47 13.93l287.6 78.35c26.48 7.21 54.56 8.72 81 1.36 29.67-8.27 43.44-21.21 47.25-35.71 3.83-14.5-1.73-32.71-23.37-54.96-19.28-19.82-44.35-32.79-70.83-40l-97.51-26.56L282.8 30.22c-1.51-5.81-5.95-10.35-11.66-11.91L206.05.58c-10.56-2.88-20.9 5.32-20.71 16.44l47.92 164.21-102.2-27.84-27.59-67.88c-1.93-4.89-6.01-8.57-11.02-9.93L52.72 64.75c-10.34-2.82-20.53 5-20.72 15.88l.23 101.78c.19 8.91 6.03 17.34 12.58 23.25z"] };
  3743. var faPlaneDeparture = { prefix: 'fas', iconName: 'plane-departure', icon: [640, 512, [], "f5b0", "M624 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM80.55 341.27c6.28 6.84 15.1 10.72 24.33 10.71l130.54-.18a65.62 65.62 0 0 0 29.64-7.12l290.96-147.65c26.74-13.57 50.71-32.94 67.02-58.31 18.31-28.48 20.3-49.09 13.07-63.65-7.21-14.57-24.74-25.27-58.25-27.45-29.85-1.94-59.54 5.92-86.28 19.48l-98.51 49.99-218.7-82.06a17.799 17.799 0 0 0-18-1.11L90.62 67.29c-10.67 5.41-13.25 19.65-5.17 28.53l156.22 98.1-103.21 52.38-72.35-36.47a17.804 17.804 0 0 0-16.07.02L9.91 230.22c-10.44 5.3-13.19 19.12-5.57 28.08l76.21 82.97z"] };
  3744. var faPlay = { prefix: 'fas', iconName: 'play', icon: [448, 512, [], "f04b", "M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"] };
  3745. var faPlayCircle = { prefix: 'fas', iconName: 'play-circle', icon: [512, 512, [], "f144", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm115.7 272l-176 101c-15.8 8.8-35.7-2.5-35.7-21V152c0-18.4 19.8-29.8 35.7-21l176 107c16.4 9.2 16.4 32.9 0 42z"] };
  3746. var faPlug = { prefix: 'fas', iconName: 'plug', icon: [384, 512, [], "f1e6", "M256 144V32c0-17.673 14.327-32 32-32s32 14.327 32 32v112h-64zm112 16H16c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h16v32c0 77.406 54.969 141.971 128 156.796V512h64v-99.204c73.031-14.825 128-79.39 128-156.796v-32h16c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm-240-16V32c0-17.673-14.327-32-32-32S64 14.327 64 32v112h64z"] };
  3747. var faPlus = { prefix: 'fas', iconName: 'plus', icon: [448, 512, [], "f067", "M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"] };
  3748. var faPlusCircle = { prefix: 'fas', iconName: 'plus-circle', icon: [512, 512, [], "f055", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"] };
  3749. var faPlusSquare = { prefix: 'fas', iconName: 'plus-square', icon: [448, 512, [], "f0fe", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-32 252c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92H92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"] };
  3750. var faPodcast = { prefix: 'fas', iconName: 'podcast', icon: [448, 512, [], "f2ce", "M267.429 488.563C262.286 507.573 242.858 512 224 512c-18.857 0-38.286-4.427-43.428-23.437C172.927 460.134 160 388.898 160 355.75c0-35.156 31.142-43.75 64-43.75s64 8.594 64 43.75c0 32.949-12.871 104.179-20.571 132.813zM156.867 288.554c-18.693-18.308-29.958-44.173-28.784-72.599 2.054-49.724 42.395-89.956 92.124-91.881C274.862 121.958 320 165.807 320 220c0 26.827-11.064 51.116-28.866 68.552-2.675 2.62-2.401 6.986.628 9.187 9.312 6.765 16.46 15.343 21.234 25.363 1.741 3.654 6.497 4.66 9.449 1.891 28.826-27.043 46.553-65.783 45.511-108.565-1.855-76.206-63.595-138.208-139.793-140.369C146.869 73.753 80 139.215 80 220c0 41.361 17.532 78.7 45.55 104.989 2.953 2.771 7.711 1.77 9.453-1.887 4.774-10.021 11.923-18.598 21.235-25.363 3.029-2.2 3.304-6.566.629-9.185zM224 0C100.204 0 0 100.185 0 224c0 89.992 52.602 165.647 125.739 201.408 4.333 2.118 9.267-1.544 8.535-6.31-2.382-15.512-4.342-30.946-5.406-44.339-.146-1.836-1.149-3.486-2.678-4.512-47.4-31.806-78.564-86.016-78.187-147.347.592-96.237 79.29-174.648 175.529-174.899C320.793 47.747 400 126.797 400 224c0 61.932-32.158 116.49-80.65 147.867-.999 14.037-3.069 30.588-5.624 47.23-.732 4.767 4.203 8.429 8.535 6.31C395.227 389.727 448 314.187 448 224 448 100.205 347.815 0 224 0zm0 160c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64z"] };
  3751. var faPoll = { prefix: 'fas', iconName: 'poll', icon: [448, 512, [], "f681", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM160 368c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16V240c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v128zm96 0c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16V144c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v224zm96 0c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-64c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v64z"] };
  3752. var faPollH = { prefix: 'fas', iconName: 'poll-h', icon: [448, 512, [], "f682", "M448 432V80c0-26.5-21.5-48-48-48H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48zM112 192c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h128c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16H112zm0 96c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h224c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16H112zm0 96c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16h-64z"] };
  3753. var faPoo = { prefix: 'fas', iconName: 'poo', icon: [512, 512, [], "f2fe", "M451.4 369.1C468.7 356 480 335.4 480 312c0-39.8-32.2-72-72-72h-14.1c13.4-11.7 22.1-28.8 22.1-48 0-35.3-28.7-64-64-64h-5.9c3.6-10.1 5.9-20.7 5.9-32 0-53-43-96-96-96-5.2 0-10.2.7-15.1 1.5C250.3 14.6 256 30.6 256 48c0 44.2-35.8 80-80 80h-16c-35.3 0-64 28.7-64 64 0 19.2 8.7 36.3 22.1 48H104c-39.8 0-72 32.2-72 72 0 23.4 11.3 44 28.6 57.1C26.3 374.6 0 404.1 0 440c0 39.8 32.2 72 72 72h368c39.8 0 72-32.2 72-72 0-35.9-26.3-65.4-60.6-70.9zM192 256c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm159.5 139C341 422.9 293 448 256 448s-85-25.1-95.5-53c-2-5.3 2-11 7.8-11h175.4c5.8 0 9.8 5.7 7.8 11zM320 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3754. var faPoop = { prefix: 'fas', iconName: 'poop', icon: [512, 512, [], "f619", "M451.36 369.14C468.66 355.99 480 335.41 480 312c0-39.77-32.24-72-72-72h-14.07c13.42-11.73 22.07-28.78 22.07-48 0-35.35-28.65-64-64-64h-5.88c3.57-10.05 5.88-20.72 5.88-32 0-53.02-42.98-96-96-96-5.17 0-10.15.74-15.11 1.52C250.31 14.64 256 30.62 256 48c0 44.18-35.82 80-80 80h-16c-35.35 0-64 28.65-64 64 0 19.22 8.65 36.27 22.07 48H104c-39.76 0-72 32.23-72 72 0 23.41 11.34 43.99 28.64 57.14C26.31 374.62 0 404.12 0 440c0 39.76 32.24 72 72 72h368c39.76 0 72-32.24 72-72 0-35.88-26.31-65.38-60.64-70.86z"] };
  3755. var faPortrait = { prefix: 'fas', iconName: 'portrait', icon: [384, 512, [], "f3e0", "M336 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM192 128c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H102.4C90 384 80 375.4 80 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"] };
  3756. var faPoundSign = { prefix: 'fas', iconName: 'pound-sign', icon: [320, 512, [], "f154", "M308 352h-45.495c-6.627 0-12 5.373-12 12v50.848H128V288h84c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-84v-63.556c0-32.266 24.562-57.086 61.792-57.086 23.658 0 45.878 11.505 57.652 18.849 5.151 3.213 11.888 2.051 15.688-2.685l28.493-35.513c4.233-5.276 3.279-13.005-2.119-17.081C273.124 54.56 236.576 32 187.931 32 106.026 32 48 84.742 48 157.961V224H20c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h28v128H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h296c6.627 0 12-5.373 12-12V364c0-6.627-5.373-12-12-12z"] };
  3757. var faPowerOff = { prefix: 'fas', iconName: 'power-off', icon: [512, 512, [], "f011", "M400 54.1c63 45 104 118.6 104 201.9 0 136.8-110.8 247.7-247.5 248C120 504.3 8.2 393 8 256.4 7.9 173.1 48.9 99.3 111.8 54.2c11.7-8.3 28-4.8 35 7.7L162.6 90c5.9 10.5 3.1 23.8-6.6 31-41.5 30.8-68 79.6-68 134.9-.1 92.3 74.5 168.1 168 168.1 91.6 0 168.6-74.2 168-169.1-.3-51.8-24.7-101.8-68.1-134-9.7-7.2-12.4-20.5-6.5-30.9l15.8-28.1c7-12.4 23.2-16.1 34.8-7.8zM296 264V24c0-13.3-10.7-24-24-24h-32c-13.3 0-24 10.7-24 24v240c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24z"] };
  3758. var faPray = { prefix: 'fas', iconName: 'pray', icon: [384, 512, [], "f683", "M256 128c35.35 0 64-28.65 64-64S291.35 0 256 0s-64 28.65-64 64 28.65 64 64 64zm-30.63 169.75c14.06 16.72 39 19.09 55.97 5.22l88-72.02c17.09-13.98 19.59-39.19 5.62-56.28-13.97-17.11-39.19-19.59-56.31-5.62l-57.44 47-38.91-46.31c-15.44-18.39-39.22-27.92-64-25.33-24.19 2.48-45.25 16.27-56.37 36.92l-49.37 92.03c-23.4 43.64-8.69 96.37 34.19 123.75L131.56 432H40c-22.09 0-40 17.91-40 40s17.91 40 40 40h208c34.08 0 53.77-42.79 28.28-68.28L166.42 333.86l34.8-64.87 24.15 28.76z"] };
  3759. var faPrayingHands = { prefix: 'fas', iconName: 'praying-hands', icon: [640, 512, [], "f684", "M272 191.91c-17.6 0-32 14.4-32 32v80c0 8.84-7.16 16-16 16s-16-7.16-16-16v-76.55c0-17.39 4.72-34.47 13.69-49.39l77.75-129.59c9.09-15.16 4.19-34.81-10.97-43.91-14.45-8.67-32.72-4.3-42.3 9.21-.2.23-.62.21-.79.48l-117.26 175.9C117.56 205.9 112 224.31 112 243.29v80.23l-90.12 30.04A31.974 31.974 0 0 0 0 383.91v96c0 10.82 8.52 32 32 32 2.69 0 5.41-.34 8.06-1.03l179.19-46.62C269.16 449.99 304 403.8 304 351.91v-128c0-17.6-14.4-32-32-32zm346.12 161.73L528 323.6v-80.23c0-18.98-5.56-37.39-16.12-53.23L394.62 14.25c-.18-.27-.59-.24-.79-.48-9.58-13.51-27.85-17.88-42.3-9.21-15.16 9.09-20.06 28.75-10.97 43.91l77.75 129.59c8.97 14.92 13.69 32 13.69 49.39V304c0 8.84-7.16 16-16 16s-16-7.16-16-16v-80c0-17.6-14.4-32-32-32s-32 14.4-32 32v128c0 51.89 34.84 98.08 84.75 112.34l179.19 46.62c2.66.69 5.38 1.03 8.06 1.03 23.48 0 32-21.18 32-32v-96c0-13.77-8.81-25.99-21.88-30.35z"] };
  3760. var faPrescription = { prefix: 'fas', iconName: 'prescription', icon: [384, 512, [], "f5b1", "M301.26 352l78.06-78.06c6.25-6.25 6.25-16.38 0-22.63l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0L256 306.74l-83.96-83.96C219.31 216.8 256 176.89 256 128c0-53.02-42.98-96-96-96H16C7.16 32 0 39.16 0 48v256c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-80h18.75l128 128-78.06 78.06c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0L256 397.25l78.06 78.06c6.25 6.25 16.38 6.25 22.63 0l22.63-22.63c6.25-6.25 6.25-16.38 0-22.63L301.26 352zM64 96h96c17.64 0 32 14.36 32 32s-14.36 32-32 32H64V96z"] };
  3761. var faPrescriptionBottle = { prefix: 'fas', iconName: 'prescription-bottle', icon: [384, 512, [], "f485", "M32 192h120c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H32v64h120c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H32v64h120c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H32v64c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32V128H32v64zM360 0H24C10.8 0 0 10.8 0 24v48c0 13.2 10.8 24 24 24h336c13.2 0 24-10.8 24-24V24c0-13.2-10.8-24-24-24z"] };
  3762. var faPrescriptionBottleAlt = { prefix: 'fas', iconName: 'prescription-bottle-alt', icon: [384, 512, [], "f486", "M360 0H24C10.8 0 0 10.8 0 24v48c0 13.2 10.8 24 24 24h336c13.2 0 24-10.8 24-24V24c0-13.2-10.8-24-24-24zM32 480c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32V128H32v352zm64-184c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48z"] };
  3763. var faPrint = { prefix: 'fas', iconName: 'print', icon: [512, 512, [], "f02f", "M448 192V77.25c0-8.49-3.37-16.62-9.37-22.63L393.37 9.37c-6-6-14.14-9.37-22.63-9.37H96C78.33 0 64 14.33 64 32v160c-35.35 0-64 28.65-64 64v112c0 8.84 7.16 16 16 16h48v96c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-96h48c8.84 0 16-7.16 16-16V256c0-35.35-28.65-64-64-64zm-64 256H128v-96h256v96zm0-224H128V64h192v48c0 8.84 7.16 16 16 16h48v96zm48 72c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"] };
  3764. var faProcedures = { prefix: 'fas', iconName: 'procedures', icon: [640, 512, [], "f487", "M528 224H272c-8.8 0-16 7.2-16 16v144H64V144c0-8.8-7.2-16-16-16H16c-8.8 0-16 7.2-16 16v352c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-48h512v48c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V336c0-61.9-50.1-112-112-112zM136 96h126.1l27.6 55.2c5.9 11.8 22.7 11.8 28.6 0L368 51.8 390.1 96H512c8.8 0 16-7.2 16-16s-7.2-16-16-16H409.9L382.3 8.8C376.4-3 359.6-3 353.7 8.8L304 108.2l-19.9-39.8c-1.4-2.7-4.1-4.4-7.2-4.4H136c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm24 256c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64z"] };
  3765. var faProjectDiagram = { prefix: 'fas', iconName: 'project-diagram', icon: [640, 512, [], "f542", "M384 320H256c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32zM192 32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v128c0 17.67 14.33 32 32 32h95.72l73.16 128.04C211.98 300.98 232.4 288 256 288h.28L192 175.51V128h224V64H192V32zM608 0H480c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32z"] };
  3766. var faPuzzlePiece = { prefix: 'fas', iconName: 'puzzle-piece', icon: [576, 512, [], "f12e", "M519.442 288.651c-41.519 0-59.5 31.593-82.058 31.593C377.409 320.244 432 144 432 144s-196.288 80-196.288-3.297c0-35.827 36.288-46.25 36.288-85.985C272 19.216 243.885 0 210.539 0c-34.654 0-66.366 18.891-66.366 56.346 0 41.364 31.711 59.277 31.711 81.75C175.885 207.719 0 166.758 0 166.758v333.237s178.635 41.047 178.635-28.662c0-22.473-40-40.107-40-81.471 0-37.456 29.25-56.346 63.577-56.346 33.673 0 61.788 19.216 61.788 54.717 0 39.735-36.288 50.158-36.288 85.985 0 60.803 129.675 25.73 181.23 25.73 0 0-34.725-120.101 25.827-120.101 35.962 0 46.423 36.152 86.308 36.152C556.712 416 576 387.99 576 354.443c0-34.199-18.962-65.792-56.558-65.792z"] };
  3767. var faQrcode = { prefix: 'fas', iconName: 'qrcode', icon: [448, 512, [], "f029", "M0 224h192V32H0v192zM64 96h64v64H64V96zm192-64v192h192V32H256zm128 128h-64V96h64v64zM0 480h192V288H0v192zm64-128h64v64H64v-64zm352-64h32v128h-96v-32h-32v96h-64V288h96v32h64v-32zm0 160h32v32h-32v-32zm-64 0h32v32h-32v-32z"] };
  3768. var faQuestion = { prefix: 'fas', iconName: 'question', icon: [384, 512, [], "f128", "M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"] };
  3769. var faQuestionCircle = { prefix: 'fas', iconName: 'question-circle', icon: [512, 512, [], "f059", "M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z"] };
  3770. var faQuidditch = { prefix: 'fas', iconName: 'quidditch', icon: [640, 512, [], "f458", "M256.5 216.8L343.2 326s-16.6 102.4-76.6 150.1C206.7 523.8 0 510.2 0 510.2s3.8-23.1 11-55.4l94.6-112.2c4-4.7-.9-11.6-6.6-9.5l-60.4 22.1c14.4-41.7 32.7-80 54.6-97.5 59.9-47.8 163.3-40.9 163.3-40.9zm238 135c-44 0-79.8 35.8-79.8 79.9 0 44.1 35.7 79.9 79.8 79.9 44.1 0 79.8-35.8 79.8-79.9 0-44.2-35.8-79.9-79.8-79.9zM636.5 31L616.7 6c-5.5-6.9-15.5-8-22.4-2.6L361.8 181.3l-34.1-43c-5.1-6.4-15.1-5.2-18.6 2.2l-25.3 54.6 86.7 109.2 58.8-12.4c8-1.7 11.4-11.2 6.3-17.6l-34.1-42.9L634 53.5c6.9-5.5 8-15.6 2.5-22.5z"] };
  3771. var faQuoteLeft = { prefix: 'fas', iconName: 'quote-left', icon: [512, 512, [], "f10d", "M464 256h-80v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8c-88.4 0-160 71.6-160 160v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zm-288 0H96v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8C71.6 32 0 103.6 0 192v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z"] };
  3772. var faQuoteRight = { prefix: 'fas', iconName: 'quote-right', icon: [512, 512, [], "f10e", "M464 32H336c-26.5 0-48 21.5-48 48v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48zm-288 0H48C21.5 32 0 53.5 0 80v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48z"] };
  3773. var faQuran = { prefix: 'fas', iconName: 'quran', icon: [448, 512, [], "f687", "M448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM301.08 145.82c.6-1.21 1.76-1.82 2.92-1.82s2.32.61 2.92 1.82l11.18 22.65 25 3.63c2.67.39 3.74 3.67 1.81 5.56l-18.09 17.63 4.27 24.89c.36 2.11-1.31 3.82-3.21 3.82-.5 0-1.02-.12-1.52-.38L304 211.87l-22.36 11.75c-.5.26-1.02.38-1.52.38-1.9 0-3.57-1.71-3.21-3.82l4.27-24.89-18.09-17.63c-1.94-1.89-.87-5.17 1.81-5.56l24.99-3.63 11.19-22.65zm-57.89-69.01c13.67 0 27.26 2.49 40.38 7.41a6.775 6.775 0 1 1-2.38 13.12c-.67 0-3.09-.21-4.13-.21-52.31 0-94.86 42.55-94.86 94.86 0 52.3 42.55 94.86 94.86 94.86 1.03 0 3.48-.21 4.13-.21 3.93 0 6.8 3.14 6.8 6.78 0 2.98-1.94 5.51-4.62 6.42-13.07 4.87-26.59 7.34-40.19 7.34C179.67 307.19 128 255.51 128 192c0-63.52 51.67-115.19 115.19-115.19zM380.8 448H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64z"] };
  3774. var faRandom = { prefix: 'fas', iconName: 'random', icon: [512, 512, [], "f074", "M504.971 359.029c9.373 9.373 9.373 24.569 0 33.941l-80 79.984c-15.01 15.01-40.971 4.49-40.971-16.971V416h-58.785a12.004 12.004 0 0 1-8.773-3.812l-70.556-75.596 53.333-57.143L352 336h32v-39.981c0-21.438 25.943-31.998 40.971-16.971l80 79.981zM12 176h84l52.781 56.551 53.333-57.143-70.556-75.596A11.999 11.999 0 0 0 122.785 96H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12zm372 0v39.984c0 21.46 25.961 31.98 40.971 16.971l80-79.984c9.373-9.373 9.373-24.569 0-33.941l-80-79.981C409.943 24.021 384 34.582 384 56.019V96h-58.785a12.004 12.004 0 0 0-8.773 3.812L96 336H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h110.785c3.326 0 6.503-1.381 8.773-3.812L352 176h32z"] };
  3775. var faReceipt = { prefix: 'fas', iconName: 'receipt', icon: [384, 512, [], "f543", "M358.4 3.2L320 48 265.6 3.2a15.9 15.9 0 0 0-19.2 0L192 48 137.6 3.2a15.9 15.9 0 0 0-19.2 0L64 48 25.6 3.2C15-4.7 0 2.8 0 16v480c0 13.2 15 20.7 25.6 12.8L64 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L192 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L320 464l38.4 44.8c10.5 7.9 25.6.4 25.6-12.8V16c0-13.2-15-20.7-25.6-12.8zM320 360c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16z"] };
  3776. var faRecycle = { prefix: 'fas', iconName: 'recycle', icon: [512, 512, [], "f1b8", "M184.561 261.903c3.232 13.997-12.123 24.635-24.068 17.168l-40.736-25.455-50.867 81.402C55.606 356.273 70.96 384 96.012 384H148c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12H96.115c-75.334 0-121.302-83.048-81.408-146.88l50.822-81.388-40.725-25.448c-12.081-7.547-8.966-25.961 4.879-29.158l110.237-25.45c8.611-1.988 17.201 3.381 19.189 11.99l25.452 110.237zm98.561-182.915l41.289 66.076-40.74 25.457c-12.051 7.528-9 25.953 4.879 29.158l110.237 25.45c8.672 1.999 17.215-3.438 19.189-11.99l25.45-110.237c3.197-13.844-11.99-24.719-24.068-17.168l-40.687 25.424-41.263-66.082c-37.521-60.033-125.209-60.171-162.816 0l-17.963 28.766c-3.51 5.62-1.8 13.021 3.82 16.533l33.919 21.195c5.62 3.512 13.024 1.803 16.536-3.817l17.961-28.743c12.712-20.341 41.973-19.676 54.257-.022zM497.288 301.12l-27.515-44.065c-3.511-5.623-10.916-7.334-16.538-3.821l-33.861 21.159c-5.62 3.512-7.33 10.915-3.818 16.536l27.564 44.112c13.257 21.211-2.057 48.96-27.136 48.96H320V336.02c0-14.213-17.242-21.383-27.313-11.313l-80 79.981c-6.249 6.248-6.249 16.379 0 22.627l80 79.989C302.689 517.308 320 510.3 320 495.989V448h95.88c75.274 0 121.335-82.997 81.408-146.88z"] };
  3777. var faRedo = { prefix: 'fas', iconName: 'redo', icon: [512, 512, [], "f01e", "M500.333 0h-47.411c-6.853 0-12.314 5.729-11.986 12.574l3.966 82.759C399.416 41.899 331.672 8 256.001 8 119.34 8 7.899 119.526 8 256.187 8.101 393.068 119.096 504 256 504c63.926 0 122.202-24.187 166.178-63.908 5.113-4.618 5.354-12.561.482-17.433l-33.971-33.971c-4.466-4.466-11.64-4.717-16.38-.543C341.308 415.448 300.606 432 256 432c-97.267 0-176-78.716-176-176 0-97.267 78.716-176 176-176 60.892 0 114.506 30.858 146.099 77.8l-101.525-4.865c-6.845-.328-12.574 5.133-12.574 11.986v47.411c0 6.627 5.373 12 12 12h200.333c6.627 0 12-5.373 12-12V12c0-6.627-5.373-12-12-12z"] };
  3778. var faRedoAlt = { prefix: 'fas', iconName: 'redo-alt', icon: [512, 512, [], "f2f9", "M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"] };
  3779. var faRegistered = { prefix: 'fas', iconName: 'registered', icon: [512, 512, [], "f25d", "M285.363 207.475c0 18.6-9.831 28.431-28.431 28.431h-29.876v-56.14h23.378c28.668 0 34.929 8.773 34.929 27.709zM504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM363.411 360.414c-46.729-84.825-43.299-78.636-44.702-80.98 23.432-15.172 37.945-42.979 37.945-74.486 0-54.244-31.5-89.252-105.498-89.252h-70.667c-13.255 0-24 10.745-24 24V372c0 13.255 10.745 24 24 24h22.567c13.255 0 24-10.745 24-24v-71.663h25.556l44.129 82.937a24.001 24.001 0 0 0 21.188 12.727h24.464c18.261-.001 29.829-19.591 21.018-35.587z"] };
  3780. var faReply = { prefix: 'fas', iconName: 'reply', icon: [512, 512, [], "f3e5", "M8.309 189.836L184.313 37.851C199.719 24.546 224 35.347 224 56.015v80.053c160.629 1.839 288 34.032 288 186.258 0 61.441-39.581 122.309-83.333 154.132-13.653 9.931-33.111-2.533-28.077-18.631 45.344-145.012-21.507-183.51-176.59-185.742V360c0 20.7-24.3 31.453-39.687 18.164l-176.004-152c-11.071-9.562-11.086-26.753 0-36.328z"] };
  3781. var faReplyAll = { prefix: 'fas', iconName: 'reply-all', icon: [576, 512, [], "f122", "M136.309 189.836L312.313 37.851C327.72 24.546 352 35.348 352 56.015v82.763c129.182 10.231 224 52.212 224 183.548 0 61.441-39.582 122.309-83.333 154.132-13.653 9.931-33.111-2.533-28.077-18.631 38.512-123.162-3.922-169.482-112.59-182.015v84.175c0 20.701-24.3 31.453-39.687 18.164L136.309 226.164c-11.071-9.561-11.086-26.753 0-36.328zm-128 36.328L184.313 378.15C199.7 391.439 224 380.687 224 359.986v-15.818l-108.606-93.785A55.96 55.96 0 0 1 96 207.998a55.953 55.953 0 0 1 19.393-42.38L224 71.832V56.015c0-20.667-24.28-31.469-39.687-18.164L8.309 189.836c-11.086 9.575-11.071 26.767 0 36.328z"] };
  3782. var faRetweet = { prefix: 'fas', iconName: 'retweet', icon: [640, 512, [], "f079", "M629.657 343.598L528.971 444.284c-9.373 9.372-24.568 9.372-33.941 0L394.343 343.598c-9.373-9.373-9.373-24.569 0-33.941l10.823-10.823c9.562-9.562 25.133-9.34 34.419.492L480 342.118V160H292.451a24.005 24.005 0 0 1-16.971-7.029l-16-16C244.361 121.851 255.069 96 276.451 96H520c13.255 0 24 10.745 24 24v222.118l40.416-42.792c9.285-9.831 24.856-10.054 34.419-.492l10.823 10.823c9.372 9.372 9.372 24.569-.001 33.941zm-265.138 15.431A23.999 23.999 0 0 0 347.548 352H160V169.881l40.416 42.792c9.286 9.831 24.856 10.054 34.419.491l10.822-10.822c9.373-9.373 9.373-24.569 0-33.941L144.971 67.716c-9.373-9.373-24.569-9.373-33.941 0L10.343 168.402c-9.373 9.373-9.373 24.569 0 33.941l10.822 10.822c9.562 9.562 25.133 9.34 34.419-.491L96 169.881V392c0 13.255 10.745 24 24 24h243.549c21.382 0 32.09-25.851 16.971-40.971l-16.001-16z"] };
  3783. var faRibbon = { prefix: 'fas', iconName: 'ribbon', icon: [448, 512, [], "f4d6", "M6.1 444.3c-9.6 10.8-7.5 27.6 4.5 35.7l68.8 27.9c9.9 6.7 23.3 5 31.3-3.8l91.8-101.9-79.2-87.9-117.2 130zm435.8 0s-292-324.6-295.4-330.1c15.4-8.4 40.2-17.9 77.5-17.9s62.1 9.5 77.5 17.9c-3.3 5.6-56 64.6-56 64.6l79.1 87.7 34.2-38c28.7-31.9 33.3-78.6 11.4-115.5l-43.7-73.5c-4.3-7.2-9.9-13.3-16.8-18-40.7-27.6-127.4-29.7-171.4 0-6.9 4.7-12.5 10.8-16.8 18l-43.6 73.2c-1.5 2.5-37.1 62.2 11.5 116L337.5 504c8 8.9 21.4 10.5 31.3 3.8l68.8-27.9c11.9-8 14-24.8 4.3-35.6z"] };
  3784. var faRing = { prefix: 'fas', iconName: 'ring', icon: [512, 512, [], "f70b", "M256 64C110.06 64 0 125.91 0 208v98.13C0 384.48 114.62 448 256 448s256-63.52 256-141.87V208c0-82.09-110.06-144-256-144zm0 64c106.04 0 192 35.82 192 80 0 9.26-3.97 18.12-10.91 26.39C392.15 208.21 328.23 192 256 192s-136.15 16.21-181.09 42.39C67.97 226.12 64 217.26 64 208c0-44.18 85.96-80 192-80zM120.43 264.64C155.04 249.93 201.64 240 256 240s100.96 9.93 135.57 24.64C356.84 279.07 308.93 288 256 288s-100.84-8.93-135.57-23.36z"] };
  3785. var faRoad = { prefix: 'fas', iconName: 'road', icon: [576, 512, [], "f018", "M573.19 402.67l-139.79-320C428.43 71.29 417.6 64 405.68 64h-97.59l2.45 23.16c.5 4.72-3.21 8.84-7.96 8.84h-29.16c-4.75 0-8.46-4.12-7.96-8.84L267.91 64h-97.59c-11.93 0-22.76 7.29-27.73 18.67L2.8 402.67C-6.45 423.86 8.31 448 30.54 448h196.84l10.31-97.68c.86-8.14 7.72-14.32 15.91-14.32h68.8c8.19 0 15.05 6.18 15.91 14.32L348.62 448h196.84c22.23 0 36.99-24.14 27.73-45.33zM260.4 135.16a8 8 0 0 1 7.96-7.16h39.29c4.09 0 7.53 3.09 7.96 7.16l4.6 43.58c.75 7.09-4.81 13.26-11.93 13.26h-40.54c-7.13 0-12.68-6.17-11.93-13.26l4.59-43.58zM315.64 304h-55.29c-9.5 0-16.91-8.23-15.91-17.68l5.07-48c.86-8.14 7.72-14.32 15.91-14.32h45.15c8.19 0 15.05 6.18 15.91 14.32l5.07 48c1 9.45-6.41 17.68-15.91 17.68z"] };
  3786. var faRobot = { prefix: 'fas', iconName: 'robot', icon: [640, 512, [], "f544", "M0 256v128c0 17.7 14.3 32 32 32h32V224H32c-17.7 0-32 14.3-32 32zM464 96H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32v64H176c-44.2 0-80 35.8-80 80v272c0 35.3 28.7 64 64 64h320c35.3 0 64-28.7 64-64V176c0-44.2-35.8-80-80-80zM256 416h-64v-32h64v32zm-32-120c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm128 120h-64v-32h64v32zm96 0h-64v-32h64v32zm-32-120c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm192-72h-32v192h32c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32z"] };
  3787. var faRocket = { prefix: 'fas', iconName: 'rocket', icon: [512, 512, [], "f135", "M505.1 19.1C503.8 13 499 8.2 492.9 6.9 460.7 0 435.5 0 410.4 0 307.2 0 245.3 55.2 199.1 128H94.9c-18.2 0-34.8 10.3-42.9 26.5L2.6 253.3c-8 16 3.6 34.7 21.5 34.7h95.1c-5.9 12.8-11.9 25.5-18 37.7-3.1 6.2-1.9 13.6 3 18.5l63.6 63.6c4.9 4.9 12.3 6.1 18.5 3 12.2-6.1 24.9-12 37.7-17.9V488c0 17.8 18.8 29.4 34.7 21.5l98.7-49.4c16.3-8.1 26.5-24.8 26.5-42.9V312.8c72.6-46.3 128-108.4 128-211.1.1-25.2.1-50.4-6.8-82.6zM400 160c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"] };
  3788. var faRoute = { prefix: 'fas', iconName: 'route', icon: [512, 512, [], "f4d7", "M416 320h-96c-17.6 0-32-14.4-32-32s14.4-32 32-32h96s96-107 96-160-43-96-96-96-96 43-96 96c0 25.5 22.2 63.4 45.3 96H320c-52.9 0-96 43.1-96 96s43.1 96 96 96h96c17.6 0 32 14.4 32 32s-14.4 32-32 32H185.5c-16 24.8-33.8 47.7-47.3 64H416c52.9 0 96-43.1 96-96s-43.1-96-96-96zm0-256c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM96 256c-53 0-96 43-96 96s96 160 96 160 96-107 96-160-43-96-96-96zm0 128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3789. var faRss = { prefix: 'fas', iconName: 'rss', icon: [448, 512, [], "f09e", "M128.081 415.959c0 35.369-28.672 64.041-64.041 64.041S0 451.328 0 415.959s28.672-64.041 64.041-64.041 64.04 28.673 64.04 64.041zm175.66 47.25c-8.354-154.6-132.185-278.587-286.95-286.95C7.656 175.765 0 183.105 0 192.253v48.069c0 8.415 6.49 15.472 14.887 16.018 111.832 7.284 201.473 96.702 208.772 208.772.547 8.397 7.604 14.887 16.018 14.887h48.069c9.149.001 16.489-7.655 15.995-16.79zm144.249.288C439.596 229.677 251.465 40.445 16.503 32.01 7.473 31.686 0 38.981 0 48.016v48.068c0 8.625 6.835 15.645 15.453 15.999 191.179 7.839 344.627 161.316 352.465 352.465.353 8.618 7.373 15.453 15.999 15.453h48.068c9.034-.001 16.329-7.474 16.005-16.504z"] };
  3790. var faRssSquare = { prefix: 'fas', iconName: 'rss-square', icon: [448, 512, [], "f143", "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM112 416c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm157.533 0h-34.335c-6.011 0-11.051-4.636-11.442-10.634-5.214-80.05-69.243-143.92-149.123-149.123-5.997-.39-10.633-5.431-10.633-11.441v-34.335c0-6.535 5.468-11.777 11.994-11.425 110.546 5.974 198.997 94.536 204.964 204.964.352 6.526-4.89 11.994-11.425 11.994zm103.027 0h-34.334c-6.161 0-11.175-4.882-11.427-11.038-5.598-136.535-115.204-246.161-251.76-251.76C68.882 152.949 64 147.935 64 141.774V107.44c0-6.454 5.338-11.664 11.787-11.432 167.83 6.025 302.21 141.191 308.205 308.205.232 6.449-4.978 11.787-11.432 11.787z"] };
  3791. var faRubleSign = { prefix: 'fas', iconName: 'ruble-sign', icon: [384, 512, [], "f158", "M239.36 320C324.48 320 384 260.542 384 175.071S324.48 32 239.36 32H76c-6.627 0-12 5.373-12 12v206.632H12c-6.627 0-12 5.373-12 12V308c0 6.627 5.373 12 12 12h52v32H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h52v52c0 6.627 5.373 12 12 12h58.56c6.627 0 12-5.373 12-12v-52H308c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12H146.56v-32h92.8zm-92.8-219.252h78.72c46.72 0 74.88 29.11 74.88 74.323 0 45.832-28.16 75.561-76.16 75.561h-77.44V100.748z"] };
  3792. var faRuler = { prefix: 'fas', iconName: 'ruler', icon: [640, 512, [], "f545", "M635.7 167.2L556.1 31.7c-8.8-15-28.3-20.1-43.5-11.5l-69 39.1L503.3 161c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L416 75l-55.2 31.3 27.9 47.4c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L333.2 122 278 153.3 337.8 255c2.2 3.7.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9l-59.7-101.7-55.2 31.3 27.9 47.4c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9l-27.9-47.5-55.2 31.3 59.7 101.7c2.2 3.7.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L84.9 262.9l-69 39.1C.7 310.7-4.6 329.8 4.2 344.8l79.6 135.6c8.8 15 28.3 20.1 43.5 11.5L624.1 210c15.2-8.6 20.4-27.8 11.6-42.8z"] };
  3793. var faRulerCombined = { prefix: 'fas', iconName: 'ruler-combined', icon: [512, 512, [], "f546", "M160 288h-56c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h56v-64h-56c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h56V96h-56c-4.42 0-8-3.58-8-8V72c0-4.42 3.58-8 8-8h56V32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v448c0 2.77.91 5.24 1.57 7.8L160 329.38V288zm320 64h-32v56c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-56h-64v56c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-56h-64v56c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-56h-41.37L24.2 510.43c2.56.66 5.04 1.57 7.8 1.57h448c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"] };
  3794. var faRulerHorizontal = { prefix: 'fas', iconName: 'ruler-horizontal', icon: [576, 512, [], "f547", "M544 128h-48v88c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-88h-64v88c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-88h-64v88c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-88h-64v88c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-88h-64v88c0 4.42-3.58 8-8 8H88c-4.42 0-8-3.58-8-8v-88H32c-17.67 0-32 14.33-32 32v192c0 17.67 14.33 32 32 32h512c17.67 0 32-14.33 32-32V160c0-17.67-14.33-32-32-32z"] };
  3795. var faRulerVertical = { prefix: 'fas', iconName: 'ruler-vertical', icon: [256, 512, [], "f548", "M168 416c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h88v-64h-88c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h88v-64h-88c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h88v-64h-88c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h88V32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v448c0 17.67 14.33 32 32 32h192c17.67 0 32-14.33 32-32v-64h-88z"] };
  3796. var faRunning = { prefix: 'fas', iconName: 'running', icon: [416, 512, [], "f70c", "M272 96c26.51 0 48-21.49 48-48S298.51 0 272 0s-48 21.49-48 48 21.49 48 48 48zM113.69 317.47l-14.8 34.52H32c-17.67 0-32 14.33-32 32s14.33 32 32 32h77.45c19.25 0 36.58-11.44 44.11-29.09l8.79-20.52-10.67-6.3c-17.32-10.23-30.06-25.37-37.99-42.61zM384 223.99h-44.03l-26.06-53.25c-12.5-25.55-35.45-44.23-61.78-50.94l-71.08-21.14c-28.3-6.8-57.77-.55-80.84 17.14l-39.67 30.41c-14.03 10.75-16.69 30.83-5.92 44.86s30.84 16.66 44.86 5.92l39.69-30.41c7.67-5.89 17.44-8 25.27-6.14l14.7 4.37-37.46 87.39c-12.62 29.48-1.31 64.01 26.3 80.31l84.98 50.17-27.47 87.73c-5.28 16.86 4.11 34.81 20.97 40.09 3.19 1 6.41 1.48 9.58 1.48 13.61 0 26.23-8.77 30.52-22.45l31.64-101.06c5.91-20.77-2.89-43.08-21.64-54.39l-61.24-36.14 31.31-78.28 20.27 41.43c8 16.34 24.92 26.89 43.11 26.89H384c17.67 0 32-14.33 32-32s-14.33-31.99-32-31.99z"] };
  3797. var faRupeeSign = { prefix: 'fas', iconName: 'rupee-sign', icon: [320, 512, [], "f156", "M308 96c6.627 0 12-5.373 12-12V44c0-6.627-5.373-12-12-12H12C5.373 32 0 37.373 0 44v44.748c0 6.627 5.373 12 12 12h85.28c27.308 0 48.261 9.958 60.97 27.252H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h158.757c-6.217 36.086-32.961 58.632-74.757 58.632H12c-6.627 0-12 5.373-12 12v53.012c0 3.349 1.4 6.546 3.861 8.818l165.052 152.356a12.001 12.001 0 0 0 8.139 3.182h82.562c10.924 0 16.166-13.408 8.139-20.818L116.871 319.906c76.499-2.34 131.144-53.395 138.318-127.906H308c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-58.69c-3.486-11.541-8.28-22.246-14.252-32H308z"] };
  3798. var faSadCry = { prefix: 'fas', iconName: 'sad-cry', icon: [496, 512, [], "f5b3", "M248 8C111 8 0 119 0 256c0 90.1 48.2 168.7 120 212.1V288c0-8.8 7.2-16 16-16s16 7.2 16 16v196.7c29.5 12.4 62 19.3 96 19.3s66.5-6.9 96-19.3V288c0-8.8 7.2-16 16-16s16 7.2 16 16v180.1C447.8 424.7 496 346 496 256 496 119 385 8 248 8zm-65.5 216.5c-14.8-13.2-46.2-13.2-61 0L112 233c-3.8 3.3-9.3 4-13.7 1.6-4.4-2.4-6.9-7.4-6.1-12.4 4-25.2 34.2-42.1 59.9-42.1S208 197 212 222.2c.8 5-1.7 10-6.1 12.4-5.8 3.1-11.2.7-13.7-1.6l-9.7-8.5zM248 416c-26.5 0-48-28.7-48-64s21.5-64 48-64 48 28.7 48 64-21.5 64-48 64zm149.8-181.5c-5.8 3.1-11.2.7-13.7-1.6l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L304 233c-3.8 3.3-9.3 4-13.7 1.6-4.4-2.4-6.9-7.4-6.1-12.4 4-25.2 34.2-42.1 59.9-42.1S400 197 404 222.2c.6 4.9-1.8 9.9-6.2 12.3z"] };
  3799. var faSadTear = { prefix: 'fas', iconName: 'sad-tear', icon: [496, 512, [], "f5b4", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM152 416c-26.5 0-48-21-48-47 0-20 28.5-60.4 41.6-77.8 3.2-4.3 9.6-4.3 12.8 0C171.5 308.6 200 349 200 369c0 26-21.5 47-48 47zm16-176c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm170.2 154.2C315.8 367.4 282.9 352 248 352c-21.2 0-21.2-32 0-32 44.4 0 86.3 19.6 114.7 53.8 13.8 16.4-11.2 36.5-24.5 20.4z"] };
  3800. var faSave = { prefix: 'fas', iconName: 'save', icon: [448, 512, [], "f0c7", "M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z"] };
  3801. var faSchool = { prefix: 'fas', iconName: 'school', icon: [640, 512, [], "f549", "M0 224v272c0 8.84 7.16 16 16 16h80V192H32c-17.67 0-32 14.33-32 32zm360-48h-24v-40c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v64c0 4.42 3.58 8 8 8h48c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zm137.75-63.96l-160-106.67a32.02 32.02 0 0 0-35.5 0l-160 106.67A32.002 32.002 0 0 0 128 138.66V512h128V368c0-8.84 7.16-16 16-16h96c8.84 0 16 7.16 16 16v144h128V138.67c0-10.7-5.35-20.7-14.25-26.63zM320 256c-44.18 0-80-35.82-80-80s35.82-80 80-80 80 35.82 80 80-35.82 80-80 80zm288-64h-64v320h80c8.84 0 16-7.16 16-16V224c0-17.67-14.33-32-32-32z"] };
  3802. var faScrewdriver = { prefix: 'fas', iconName: 'screwdriver', icon: [512, 512, [], "f54a", "M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z"] };
  3803. var faScroll = { prefix: 'fas', iconName: 'scroll', icon: [640, 512, [], "f70e", "M48 0C21.53 0 0 21.53 0 48v64c0 8.84 7.16 16 16 16h80V48C96 21.53 74.47 0 48 0zm208 412.57V352h288V96c0-52.94-43.06-96-96-96H111.59C121.74 13.41 128 29.92 128 48v368c0 38.87 34.65 69.65 74.75 63.12C234.22 474 256 444.46 256 412.57zM288 384v32c0 52.93-43.06 96-96 96h336c61.86 0 112-50.14 112-112 0-8.84-7.16-16-16-16H288z"] };
  3804. var faSearch = { prefix: 'fas', iconName: 'search', icon: [512, 512, [], "f002", "M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"] };
  3805. var faSearchDollar = { prefix: 'fas', iconName: 'search-dollar', icon: [512, 512, [], "f688", "M505.04 442.66l-99.71-99.69c-4.5-4.5-10.6-7-17-7h-16.3c27.6-35.3 44-79.69 44-127.99C416.03 93.09 322.92 0 208.02 0S0 93.09 0 207.98s93.11 207.98 208.02 207.98c48.3 0 92.71-16.4 128.01-44v16.3c0 6.4 2.5 12.5 7 17l99.71 99.69c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.59.1-33.99zm-297.02-90.7c-79.54 0-144-64.34-144-143.98 0-79.53 64.35-143.98 144-143.98 79.54 0 144 64.34 144 143.98 0 79.53-64.35 143.98-144 143.98zm27.11-152.54l-45.01-13.5c-5.16-1.55-8.77-6.78-8.77-12.73 0-7.27 5.3-13.19 11.8-13.19h28.11c4.56 0 8.96 1.29 12.82 3.72 3.24 2.03 7.36 1.91 10.13-.73l11.75-11.21c3.53-3.37 3.33-9.21-.57-12.14-9.1-6.83-20.08-10.77-31.37-11.35V112c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v16.12c-23.63.63-42.68 20.55-42.68 45.07 0 19.97 12.99 37.81 31.58 43.39l45.01 13.5c5.16 1.55 8.77 6.78 8.77 12.73 0 7.27-5.3 13.19-11.8 13.19h-28.1c-4.56 0-8.96-1.29-12.82-3.72-3.24-2.03-7.36-1.91-10.13.73l-11.75 11.21c-3.53 3.37-3.33 9.21.57 12.14 9.1 6.83 20.08 10.77 31.37 11.35V304c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8v-16.12c23.63-.63 42.68-20.54 42.68-45.07 0-19.97-12.99-37.81-31.59-43.39z"] };
  3806. var faSearchLocation = { prefix: 'fas', iconName: 'search-location', icon: [512, 512, [], "f689", "M505.04 442.66l-99.71-99.69c-4.5-4.5-10.6-7-17-7h-16.3c27.6-35.3 44-79.69 44-127.99C416.03 93.09 322.92 0 208.02 0S0 93.09 0 207.98s93.11 207.98 208.02 207.98c48.3 0 92.71-16.4 128.01-44v16.3c0 6.4 2.5 12.5 7 17l99.71 99.69c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.59.1-33.99zm-297.02-90.7c-79.54 0-144-64.34-144-143.98 0-79.53 64.35-143.98 144-143.98 79.54 0 144 64.34 144 143.98 0 79.53-64.35 143.98-144 143.98zm.02-239.96c-40.78 0-73.84 33.05-73.84 73.83 0 32.96 48.26 93.05 66.75 114.86a9.24 9.24 0 0 0 14.18 0c18.49-21.81 66.75-81.89 66.75-114.86 0-40.78-33.06-73.83-73.84-73.83zm0 96c-13.26 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"] };
  3807. var faSearchMinus = { prefix: 'fas', iconName: 'search-minus', icon: [512, 512, [], "f010", "M304 192v32c0 6.6-5.4 12-12 12H124c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"] };
  3808. var faSearchPlus = { prefix: 'fas', iconName: 'search-plus', icon: [512, 512, [], "f00e", "M304 192v32c0 6.6-5.4 12-12 12h-56v56c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-56h-56c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h56v-56c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v56h56c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"] };
  3809. var faSeedling = { prefix: 'fas', iconName: 'seedling', icon: [512, 512, [], "f4d8", "M64 96H0c0 123.7 100.3 224 224 224v144c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320C288 196.3 187.7 96 64 96zm384-64c-84.2 0-157.4 46.5-195.7 115.2 27.7 30.2 48.2 66.9 59 107.6C424 243.1 512 147.9 512 32h-64z"] };
  3810. var faServer = { prefix: 'fas', iconName: 'server', icon: [512, 512, [], "f233", "M480 160H32c-17.673 0-32-14.327-32-32V64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24z"] };
  3811. var faShapes = { prefix: 'fas', iconName: 'shapes', icon: [512, 512, [], "f61f", "M512 320v160c0 17.67-14.33 32-32 32H320c-17.67 0-32-14.33-32-32V320c0-17.67 14.33-32 32-32h160c17.67 0 32 14.33 32 32zm-384-64C57.31 256 0 313.31 0 384s57.31 128 128 128 128-57.31 128-128-57.31-128-128-128zm351.03-32c25.34 0 41.18-26.67 28.51-48L412.51 16c-12.67-21.33-44.35-21.33-57.02 0l-95.03 160c-12.67 21.33 3.17 48 28.51 48h190.06z"] };
  3812. var faShare = { prefix: 'fas', iconName: 'share', icon: [512, 512, [], "f064", "M503.691 189.836L327.687 37.851C312.281 24.546 288 35.347 288 56.015v80.053C127.371 137.907 0 170.1 0 322.326c0 61.441 39.581 122.309 83.333 154.132 13.653 9.931 33.111-2.533 28.077-18.631C66.066 312.814 132.917 274.316 288 272.085V360c0 20.7 24.3 31.453 39.687 18.164l176.004-152c11.071-9.562 11.086-26.753 0-36.328z"] };
  3813. var faShareAlt = { prefix: 'fas', iconName: 'share-alt', icon: [448, 512, [], "f1e0", "M352 320c-22.608 0-43.387 7.819-59.79 20.895l-102.486-64.054a96.551 96.551 0 0 0 0-41.683l102.486-64.054C308.613 184.181 329.392 192 352 192c53.019 0 96-42.981 96-96S405.019 0 352 0s-96 42.981-96 96c0 7.158.79 14.13 2.276 20.841L155.79 180.895C139.387 167.819 118.608 160 96 160c-53.019 0-96 42.981-96 96s42.981 96 96 96c22.608 0 43.387-7.819 59.79-20.895l102.486 64.054A96.301 96.301 0 0 0 256 416c0 53.019 42.981 96 96 96s96-42.981 96-96-42.981-96-96-96z"] };
  3814. var faShareAltSquare = { prefix: 'fas', iconName: 'share-alt-square', icon: [448, 512, [], "f1e1", "M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zM304 296c-14.562 0-27.823 5.561-37.783 14.671l-67.958-40.775a56.339 56.339 0 0 0 0-27.793l67.958-40.775C276.177 210.439 289.438 216 304 216c30.928 0 56-25.072 56-56s-25.072-56-56-56-56 25.072-56 56c0 4.797.605 9.453 1.74 13.897l-67.958 40.775C171.823 205.561 158.562 200 144 200c-30.928 0-56 25.072-56 56s25.072 56 56 56c14.562 0 27.823-5.561 37.783-14.671l67.958 40.775a56.088 56.088 0 0 0-1.74 13.897c0 30.928 25.072 56 56 56s56-25.072 56-56C360 321.072 334.928 296 304 296z"] };
  3815. var faShareSquare = { prefix: 'fas', iconName: 'share-square', icon: [576, 512, [], "f14d", "M568.482 177.448L424.479 313.433C409.3 327.768 384 317.14 384 295.985v-71.963c-144.575.97-205.566 35.113-164.775 171.353 4.483 14.973-12.846 26.567-25.006 17.33C155.252 383.105 120 326.488 120 269.339c0-143.937 117.599-172.5 264-173.312V24.012c0-21.174 25.317-31.768 40.479-17.448l144.003 135.988c10.02 9.463 10.028 25.425 0 34.896zM384 379.128V448H64V128h50.916a11.99 11.99 0 0 0 8.648-3.693c14.953-15.568 32.237-27.89 51.014-37.676C185.708 80.83 181.584 64 169.033 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48v-88.806c0-8.288-8.197-14.066-16.011-11.302a71.83 71.83 0 0 1-34.189 3.377c-7.27-1.046-13.8 4.514-13.8 11.859z"] };
  3816. var faShekelSign = { prefix: 'fas', iconName: 'shekel-sign', icon: [448, 512, [], "f20b", "M248 168v168c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V168c0-75.11-60.89-136-136-136H24C10.75 32 0 42.74 0 56v408c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V112h112c30.93 0 56 25.07 56 56zM432 32h-48c-8.84 0-16 7.16-16 16v296c0 30.93-25.07 56-56 56H200V176c0-8.84-7.16-16-16-16h-48c-8.84 0-16 7.16-16 16v280c0 13.25 10.75 24 24 24h168c75.11 0 136-60.89 136-136V48c0-8.84-7.16-16-16-16z"] };
  3817. var faShieldAlt = { prefix: 'fas', iconName: 'shield-alt', icon: [512, 512, [], "f3ed", "M496 128c0 221.282-135.934 344.645-221.539 380.308a48 48 0 0 1-36.923 0C130.495 463.713 16 326.487 16 128a48 48 0 0 1 29.539-44.308l192-80a48 48 0 0 1 36.923 0l192 80A48 48 0 0 1 496 128zM256 446.313l.066.034c93.735-46.689 172.497-156.308 175.817-307.729L256 65.333v380.98z"] };
  3818. var faShip = { prefix: 'fas', iconName: 'ship', icon: [640, 512, [], "f21a", "M496.616 372.639l70.012-70.012c16.899-16.9 9.942-45.771-12.836-53.092L512 236.102V96c0-17.673-14.327-32-32-32h-64V24c0-13.255-10.745-24-24-24H248c-13.255 0-24 10.745-24 24v40h-64c-17.673 0-32 14.327-32 32v140.102l-41.792 13.433c-22.753 7.313-29.754 36.173-12.836 53.092l70.012 70.012C125.828 416.287 85.587 448 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24 61.023 0 107.499-20.61 143.258-59.396C181.677 487.432 216.021 512 256 512h128c39.979 0 74.323-24.568 88.742-59.396C508.495 491.384 554.968 512 616 512c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24-60.817 0-101.542-31.001-119.384-75.361zM192 128h256v87.531l-118.208-37.995a31.995 31.995 0 0 0-19.584 0L192 215.531V128z"] };
  3819. var faShippingFast = { prefix: 'fas', iconName: 'shipping-fast', icon: [640, 512, [], "f48b", "M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H112C85.5 0 64 21.5 64 48v48H8c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h272c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H40c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h208c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H8c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h208c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H64v128c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm320 0c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"] };
  3820. var faShoePrints = { prefix: 'fas', iconName: 'shoe-prints', icon: [640, 512, [], "f54b", "M192 160h32V32h-32c-35.35 0-64 28.65-64 64s28.65 64 64 64zM0 416c0 35.35 28.65 64 64 64h32V352H64c-35.35 0-64 28.65-64 64zm337.46-128c-34.91 0-76.16 13.12-104.73 32-24.79 16.38-44.52 32-104.73 32v128l57.53 15.97c26.21 7.28 53.01 13.12 80.31 15.05 32.69 2.31 65.6.67 97.58-6.2C472.9 481.3 512 429.22 512 384c0-64-84.18-96-174.54-96zM491.42 7.19C459.44.32 426.53-1.33 393.84.99c-27.3 1.93-54.1 7.77-80.31 15.04L256 32v128c60.2 0 79.94 15.62 104.73 32 28.57 18.88 69.82 32 104.73 32C555.82 224 640 192 640 128c0-45.22-39.1-97.3-148.58-120.81z"] };
  3821. var faShoppingBag = { prefix: 'fas', iconName: 'shopping-bag', icon: [448, 512, [], "f290", "M352 160v-32C352 57.42 294.579 0 224 0 153.42 0 96 57.42 96 128v32H0v272c0 44.183 35.817 80 80 80h288c44.183 0 80-35.817 80-80V160h-96zm-192-32c0-35.29 28.71-64 64-64s64 28.71 64 64v32H160v-32zm160 120c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zm-192 0c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24z"] };
  3822. var faShoppingBasket = { prefix: 'fas', iconName: 'shopping-basket', icon: [576, 512, [], "f291", "M576 216v16c0 13.255-10.745 24-24 24h-8l-26.113 182.788C514.509 462.435 494.257 480 470.37 480H105.63c-23.887 0-44.139-17.565-47.518-41.212L32 256h-8c-13.255 0-24-10.745-24-24v-16c0-13.255 10.745-24 24-24h67.341l106.78-146.821c10.395-14.292 30.407-17.453 44.701-7.058 14.293 10.395 17.453 30.408 7.058 44.701L170.477 192h235.046L326.12 82.821c-10.395-14.292-7.234-34.306 7.059-44.701 14.291-10.395 34.306-7.235 44.701 7.058L484.659 192H552c13.255 0 24 10.745 24 24zM312 392V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24zm112 0V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24zm-224 0V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24z"] };
  3823. var faShoppingCart = { prefix: 'fas', iconName: 'shopping-cart', icon: [576, 512, [], "f07a", "M528.12 301.319l47.273-208C578.806 78.301 567.391 64 551.99 64H159.208l-9.166-44.81C147.758 8.021 137.93 0 126.529 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24h69.883l70.248 343.435C147.325 417.1 136 435.222 136 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-15.674-6.447-29.835-16.824-40h209.647C430.447 426.165 424 440.326 424 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-22.172-12.888-41.332-31.579-50.405l5.517-24.276c3.413-15.018-8.002-29.319-23.403-29.319H218.117l-6.545-32h293.145c11.206 0 20.92-7.754 23.403-18.681z"] };
  3824. var faShower = { prefix: 'fas', iconName: 'shower', icon: [512, 512, [], "f2cc", "M389.66 135.6L231.6 293.66c-9.37 9.37-24.57 9.37-33.94 0l-11.32-11.32c-9.37-9.37-9.37-24.57 0-33.94l.11-.11c-34.03-40.21-35.16-98.94-3.39-140.38-11.97-7.55-26.14-11.91-41.3-11.91C98.88 96 64 130.88 64 173.76V480H0V173.76C0 95.59 63.59 32 141.76 32c36.93 0 70.61 14.2 95.86 37.42 35.9-11.51 76.5-4.5 106.67 21.03l.11-.11c9.37-9.37 24.57-9.37 33.94 0l11.32 11.32c9.37 9.37 9.37 24.57 0 33.94zM384 208c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm32 0c0-8.837 7.163-16 16-16s16 7.163 16 16-7.163 16-16 16-16-7.163-16-16zm96 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-160 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm48-16c8.837 0 16 7.163 16 16s-7.163 16-16 16-16-7.163-16-16 7.163-16 16-16zm80 16c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-160 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm32 0c0-8.837 7.163-16 16-16s16 7.163 16 16-7.163 16-16 16-16-7.163-16-16zm96 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-128 32c0-8.837 7.163-16 16-16s16 7.163 16 16-7.163 16-16 16-16-7.163-16-16zm96 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-96 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm64 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-32 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-32 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16z"] };
  3825. var faShuttleVan = { prefix: 'fas', iconName: 'shuttle-van', icon: [640, 512, [], "f5b6", "M628.88 210.65L494.39 49.27A48.01 48.01 0 0 0 457.52 32H32C14.33 32 0 46.33 0 64v288c0 17.67 14.33 32 32 32h32c0 53.02 42.98 96 96 96s96-42.98 96-96h128c0 53.02 42.98 96 96 96s96-42.98 96-96h32c17.67 0 32-14.33 32-32V241.38c0-11.23-3.94-22.1-11.12-30.73zM64 192V96h96v96H64zm96 240c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm160-240h-96V96h96v96zm160 240c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm-96-240V96h66.02l80 96H384z"] };
  3826. var faSign = { prefix: 'fas', iconName: 'sign', icon: [512, 512, [], "f4d9", "M496 64H128V16c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16v48H16C7.2 64 0 71.2 0 80v32c0 8.8 7.2 16 16 16h48v368c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V128h368c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16zM160 384h320V160H160v224z"] };
  3827. var faSignInAlt = { prefix: 'fas', iconName: 'sign-in-alt', icon: [512, 512, [], "f2f6", "M416 448h-84c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h84c17.7 0 32-14.3 32-32V160c0-17.7-14.3-32-32-32h-84c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h84c53 0 96 43 96 96v192c0 53-43 96-96 96zm-47-201L201 79c-15-15-41-4.5-41 17v96H24c-13.3 0-24 10.7-24 24v96c0 13.3 10.7 24 24 24h136v96c0 21.5 26 32 41 17l168-168c9.3-9.4 9.3-24.6 0-34z"] };
  3828. var faSignLanguage = { prefix: 'fas', iconName: 'sign-language', icon: [448, 512, [], "f2a7", "M91.434 483.987c-.307-16.018 13.109-29.129 29.13-29.129h62.293v-5.714H56.993c-16.021 0-29.437-13.111-29.13-29.129C28.16 404.491 40.835 392 56.428 392h126.429v-5.714H29.136c-16.021 0-29.437-13.111-29.13-29.129.297-15.522 12.973-28.013 28.566-28.013h154.286v-5.714H57.707c-16.021 0-29.437-13.111-29.13-29.129.297-15.522 12.973-28.013 28.566-28.013h168.566l-31.085-22.606c-12.762-9.281-15.583-27.149-6.302-39.912 9.281-12.761 27.15-15.582 39.912-6.302l123.361 89.715a34.287 34.287 0 0 1 14.12 27.728v141.136c0 15.91-10.946 29.73-26.433 33.374l-80.471 18.934a137.16 137.16 0 0 1-31.411 3.646H120c-15.593-.001-28.269-12.492-28.566-28.014zm73.249-225.701h36.423l-11.187-8.136c-18.579-13.511-20.313-40.887-3.17-56.536l-13.004-16.7c-9.843-12.641-28.43-15.171-40.88-5.088-12.065 9.771-14.133 27.447-4.553 39.75l36.371 46.71zm283.298-2.103l-5.003-152.452c-.518-15.771-13.722-28.136-29.493-27.619-15.773.518-28.137 13.722-27.619 29.493l1.262 38.415L283.565 11.019c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l76.889 98.745-4.509 3.511-94.79-121.734c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l94.443 121.288-4.509 3.511-77.675-99.754c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l52.053 66.849c12.497-8.257 29.055-8.285 41.69.904l123.36 89.714c10.904 7.93 17.415 20.715 17.415 34.198v16.999l61.064-47.549a34.285 34.285 0 0 0 13.202-28.177z"] };
  3829. var faSignOutAlt = { prefix: 'fas', iconName: 'sign-out-alt', icon: [512, 512, [], "f2f5", "M497 273L329 441c-15 15-41 4.5-41-17v-96H152c-13.3 0-24-10.7-24-24v-96c0-13.3 10.7-24 24-24h136V88c0-21.4 25.9-32 41-17l168 168c9.3 9.4 9.3 24.6 0 34zM192 436v-40c0-6.6-5.4-12-12-12H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h84c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12H96c-53 0-96 43-96 96v192c0 53 43 96 96 96h84c6.6 0 12-5.4 12-12z"] };
  3830. var faSignal = { prefix: 'fas', iconName: 'signal', icon: [640, 512, [], "f012", "M216 288h-48c-8.84 0-16 7.16-16 16v192c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V304c0-8.84-7.16-16-16-16zM88 384H40c-8.84 0-16 7.16-16 16v96c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16v-96c0-8.84-7.16-16-16-16zm256-192h-48c-8.84 0-16 7.16-16 16v288c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V208c0-8.84-7.16-16-16-16zm128-96h-48c-8.84 0-16 7.16-16 16v384c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V112c0-8.84-7.16-16-16-16zM600 0h-48c-8.84 0-16 7.16-16 16v480c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16z"] };
  3831. var faSignature = { prefix: 'fas', iconName: 'signature', icon: [512, 512, [], "f5b7", "M496 320h-91.86c-9.27 0-19.72-11.31-25.78-28.52-15.23-43.36-48.11-70.3-85.8-70.3-30.84 0-58.47 18.05-76.11 49.23L194.8 106.5C188.84 81.08 169.34 64 146.28 64c-23.05 0-42.55 17.08-48.5 42.5L56.16 284.2C50.7 307.45 37.75 320 28.33 320H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h12.33c41.97 0 78.19-34.23 90.14-85.2l23.84-101.78 29.25 222.11c1.98 15.05 13.82 27.45 28.94 28.75.99.09 1.96.13 2.93.13 14.08 0 26.64-9.27 30.69-22.95l33.03-112.34c5.88-16.72 15.84-27.52 25.41-27.52 9.58 0 19.55 10.8 25.78 28.52 15.23 43.36 48.11 70.3 85.8 70.3H496c8.84 0 16-7.16 16-16v-32c0-8.86-7.16-16.02-16-16.02z"] };
  3832. var faSitemap = { prefix: 'fas', iconName: 'sitemap', icon: [640, 512, [], "f0e8", "M128 352H32c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zm-24-80h192v48h48v-48h192v48h48v-57.59c0-21.17-17.23-38.41-38.41-38.41H344v-64h40c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H256c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h40v64H94.41C73.23 224 56 241.23 56 262.41V320h48v-48zm264 80h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zm240 0h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"] };
  3833. var faSkull = { prefix: 'fas', iconName: 'skull', icon: [512, 512, [], "f54c", "M256 0C114.6 0 0 100.3 0 224c0 70.1 36.9 132.6 94.5 173.7 9.6 6.9 15.2 18.1 13.5 29.9l-9.4 66.2c-1.4 9.6 6 18.2 15.7 18.2H192v-56c0-4.4 3.6-8 8-8h16c4.4 0 8 3.6 8 8v56h64v-56c0-4.4 3.6-8 8-8h16c4.4 0 8 3.6 8 8v56h77.7c9.7 0 17.1-8.6 15.7-18.2l-9.4-66.2c-1.7-11.7 3.8-23 13.5-29.9C475.1 356.6 512 294.1 512 224 512 100.3 397.4 0 256 0zm-96 320c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm192 0c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64z"] };
  3834. var faSkullCrossbones = { prefix: 'fas', iconName: 'skull-crossbones', icon: [448, 512, [], "f714", "M439.15 453.06L297.17 384l141.99-69.06c7.9-3.95 11.11-13.56 7.15-21.46L432 264.85c-3.95-7.9-13.56-11.11-21.47-7.16L224 348.41 37.47 257.69c-7.9-3.95-17.51-.75-21.47 7.16L1.69 293.48c-3.95 7.9-.75 17.51 7.15 21.46L150.83 384 8.85 453.06c-7.9 3.95-11.11 13.56-7.15 21.47l14.31 28.63c3.95 7.9 13.56 11.11 21.47 7.15L224 419.59l186.53 90.72c7.9 3.95 17.51.75 21.47-7.15l14.31-28.63c3.95-7.91.74-17.52-7.16-21.47zM150 237.28l-5.48 25.87c-2.67 12.62 5.42 24.85 16.45 24.85h126.08c11.03 0 19.12-12.23 16.45-24.85l-5.5-25.87c41.78-22.41 70-62.75 70-109.28C368 57.31 303.53 0 224 0S80 57.31 80 128c0 46.53 28.22 86.87 70 109.28zM280 112c17.65 0 32 14.35 32 32s-14.35 32-32 32-32-14.35-32-32 14.35-32 32-32zm-112 0c17.65 0 32 14.35 32 32s-14.35 32-32 32-32-14.35-32-32 14.35-32 32-32z"] };
  3835. var faSlash = { prefix: 'fas', iconName: 'slash', icon: [640, 512, [], "f715", "M594.53 508.63L6.18 53.9c-6.97-5.42-8.23-15.47-2.81-22.45L23.01 6.18C28.43-.8 38.49-2.06 45.47 3.37L633.82 458.1c6.97 5.42 8.23 15.47 2.81 22.45l-19.64 25.27c-5.42 6.98-15.48 8.23-22.46 2.81z"] };
  3836. var faSlidersH = { prefix: 'fas', iconName: 'sliders-h', icon: [512, 512, [], "f1de", "M496 384H160v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h80v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h336c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160h-80v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h336v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h80c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160H288V48c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16C7.2 64 0 71.2 0 80v32c0 8.8 7.2 16 16 16h208v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h208c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16z"] };
  3837. var faSmile = { prefix: 'fas', iconName: 'smile', icon: [496, 512, [], "f118", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm194.8 170.2C334.3 380.4 292.5 400 248 400s-86.3-19.6-114.8-53.8c-13.6-16.3 11-36.7 24.6-20.5 22.4 26.9 55.2 42.2 90.2 42.2s67.8-15.4 90.2-42.2c13.4-16.2 38.1 4.2 24.6 20.5z"] };
  3838. var faSmileBeam = { prefix: 'fas', iconName: 'smile-beam', icon: [496, 512, [], "f5b8", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM112 223.4c3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.3 7.4-15.8 4-15.1-4.5zm250.8 122.8C334.3 380.4 292.5 400 248 400s-86.3-19.6-114.8-53.8c-13.5-16.3 11-36.7 24.6-20.5 22.4 26.9 55.2 42.2 90.2 42.2s67.8-15.4 90.2-42.2c13.6-16.2 38.1 4.3 24.6 20.5zm6.2-118.3l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.1 7.3-15.6 4-14.9-4.5 3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.6 8.6-11 11.9-15.1 4.5z"] };
  3839. var faSmileWink = { prefix: 'fas', iconName: 'smile-wink', icon: [496, 512, [], "f4da", "M0 256c0 137 111 248 248 248s248-111 248-248S385 8 248 8 0 119 0 256zm200-48c0 17.7-14.3 32-32 32s-32-14.3-32-32 14.3-32 32-32 32 14.3 32 32zm158.5 16.5c-14.8-13.2-46.2-13.2-61 0L288 233c-8.3 7.4-21.6.4-19.8-10.8 4-25.2 34.2-42.1 59.9-42.1S384 197 388 222.2c1.7 11.1-11.4 18.3-19.8 10.8l-9.7-8.5zM157.8 325.8C180.2 352.7 213 368 248 368s67.8-15.4 90.2-42.2c13.6-16.2 38.1 4.2 24.6 20.5C334.3 380.4 292.5 400 248 400s-86.3-19.6-114.8-53.8c-13.5-16.3 11.2-36.7 24.6-20.4z"] };
  3840. var faSmoking = { prefix: 'fas', iconName: 'smoking', icon: [640, 512, [], "f48d", "M632 352h-48c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zM553.3 87.1c-5.7-3.8-9.3-10-9.3-16.8V8c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v62.3c0 22 10.2 43.4 28.6 55.4 42.2 27.3 67.4 73.8 67.4 124V280c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-30.3c0-65.5-32.4-126.2-86.7-162.6zM432 352H48c-26.5 0-48 21.5-48 48v64c0 26.5 21.5 48 48 48h384c8.8 0 16-7.2 16-16V368c0-8.8-7.2-16-16-16zm-32 112H224v-64h176v64zm87.7-322.4C463.8 125 448 99.3 448 70.3V8c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v66.4c0 43.7 24.6 81.6 60.3 106.7 22.4 15.7 35.7 41.2 35.7 68.6V280c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-30.3c0-43.3-21-83.4-56.3-108.1zM536 352h-48c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"] };
  3841. var faSmokingBan = { prefix: 'fas', iconName: 'smoking-ban', icon: [512, 512, [], "f54d", "M96 304c0 8.8 7.2 16 16 16h117.5l-96-96H112c-8.8 0-16 7.2-16 16v64zM256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm0 448c-105.9 0-192-86.1-192-192 0-41.4 13.3-79.7 35.7-111.1l267.4 267.4C335.7 434.7 297.4 448 256 448zm45.2-192H384v32h-50.8l-32-32zm111.1 111.1L365.2 320H400c8.8 0 16-7.2 16-16v-64c0-8.8-7.2-16-16-16H269.2L144.9 99.7C176.3 77.3 214.6 64 256 64c105.9 0 192 86.1 192 192 0 41.4-13.3 79.7-35.7 111.1zM320.6 128c-15.6 0-28.6-11.2-31.4-25.9-.7-3.6-4-6.1-7.7-6.1h-16.2c-5 0-8.7 4.5-8 9.4 4.6 30.9 31.2 54.6 63.3 54.6 15.6 0 28.6 11.2 31.4 25.9.7 3.6 4 6.1 7.7 6.1h16.2c5 0 8.7-4.5 8-9.4-4.6-30.9-31.2-54.6-63.3-54.6z"] };
  3842. var faSnowflake = { prefix: 'fas', iconName: 'snowflake', icon: [448, 512, [], "f2dc", "M444.816 301.639a24.12 24.12 0 0 0 2.661-16.978c-2.725-12.966-15.339-21.245-28.174-18.492l-87.407 25.046L264 256l67.896-35.215 87.407 25.046c12.835 2.753 25.449-5.526 28.174-18.492 2.725-12.966-5.471-25.708-18.305-28.461l-47.477-7.137 53.077-30.956c11.363-6.627 15.257-21.306 8.696-32.785-6.561-11.479-21.091-15.412-32.454-8.785l-53.077 30.956 17.621-45.104c4.057-12.606-2.768-26.146-15.247-30.245-12.478-4.099-25.883 2.797-29.94 15.402l-22.232 88.99-60.38 35.215V144l65.175-63.945c8.778-9.852 7.987-25.027-1.766-33.894-9.753-8.867-24.775-8.068-33.552 1.784l-29.857 37.967V24c0-13.255-10.637-24-23.758-24s-23.758 10.745-23.758 24v61.912l-29.857-37.967c-8.779-9.852-23.799-10.652-33.552-1.784-9.753 8.867-10.543 24.042-1.766 33.894L200.242 144v70.431l-60.38-35.215-22.232-88.99c-4.057-12.605-17.462-19.501-29.94-15.402-12.478 4.099-19.304 17.64-15.247 30.245l17.62 45.104-53.077-30.956c-11.363-6.627-25.893-2.694-32.454 8.785s-2.667 26.157 8.696 32.785l53.077 30.956-47.477 7.137C5.993 201.634-2.203 214.375.523 227.341c2.725 12.965 15.339 21.245 28.174 18.492l87.407-25.046L184 256l-67.896 35.215-87.406-25.045c-12.835-2.753-25.449 5.526-28.174 18.492-2.725 12.967 5.47 25.708 18.305 28.461l47.477 7.137-53.077 30.956C1.866 357.843-2.027 372.521 4.533 384s21.091 15.412 32.454 8.785l53.077-30.956-17.62 45.104a24.157 24.157 0 0 0 2.022 19.428c2.831 4.953 7.416 8.909 13.224 10.816 12.478 4.099 25.883-2.797 29.94-15.402l22.232-88.99 60.38-35.215V368l-65.175 63.945c-8.778 9.852-7.987 25.027 1.766 33.894 9.754 8.868 24.774 8.068 33.552-1.784l29.857-37.967V488c0 13.255 10.637 24 23.758 24s23.758-10.745 23.758-24v-61.912l29.857 37.967A23.59 23.59 0 0 0 295.282 472a23.534 23.534 0 0 0 15.885-6.161c9.753-8.867 10.544-24.042 1.766-33.894L247.758 368v-70.431l60.38 35.215 22.232 88.99c4.057 12.605 17.462 19.501 29.94 15.402 12.479-4.099 19.304-17.64 15.247-30.245l-17.621-45.104 53.077 30.956c11.363 6.627 25.893 2.694 32.454-8.785s2.667-26.157-8.696-32.785l-53.077-30.956 47.477-7.137c6.86-1.469 12.394-5.793 15.645-11.481z"] };
  3843. var faSocks = { prefix: 'fas', iconName: 'socks', icon: [512, 512, [], "f696", "M214.66 311.01L288 256V96H128v176l-86.65 64.61c-39.4 29.56-53.86 84.42-29.21 127.06C30.39 495.25 63.27 512 96.08 512c20.03 0 40.25-6.25 57.52-19.2l21.86-16.39c-29.85-55.38-13.54-125.84 39.2-165.4zM288 32c0-11.05 3.07-21.3 8.02-30.38C293.4.92 290.85 0 288 0H160c-17.67 0-32 14.33-32 32v32h160V32zM480 0H352c-17.67 0-32 14.33-32 32v32h192V32c0-17.67-14.33-32-32-32zM320 272l-86.13 64.61c-39.4 29.56-53.86 84.42-29.21 127.06 18.25 31.58 50.61 48.33 83.42 48.33 20.03 0 40.25-6.25 57.52-19.2l115.2-86.4A127.997 127.997 0 0 0 512 304V96H320v176z"] };
  3844. var faSolarPanel = { prefix: 'fas', iconName: 'solar-panel', icon: [640, 512, [], "f5ba", "M431.98 448.01l-47.97.05V416h-128v32.21l-47.98.05c-8.82.01-15.97 7.16-15.98 15.99l-.05 31.73c-.01 8.85 7.17 16.03 16.02 16.02l223.96-.26c8.82-.01 15.97-7.16 15.98-15.98l.04-31.73c.01-8.85-7.17-16.03-16.02-16.02zM585.2 26.74C582.58 11.31 568.99 0 553.06 0H86.93C71 0 57.41 11.31 54.79 26.74-3.32 369.16.04 348.08.03 352c-.03 17.32 14.29 32 32.6 32h574.74c18.23 0 32.51-14.56 32.59-31.79.02-4.08 3.35 16.95-54.76-325.47zM259.83 64h120.33l9.77 96H250.06l9.77-96zm-75.17 256H71.09L90.1 208h105.97l-11.41 112zm16.29-160H98.24l16.29-96h96.19l-9.77 96zm32.82 160l11.4-112h149.65l11.4 112H233.77zm195.5-256h96.19l16.29 96H439.04l-9.77-96zm26.06 256l-11.4-112H549.9l19.01 112H455.33z"] };
  3845. var faSort = { prefix: 'fas', iconName: 'sort', icon: [320, 512, [], "f0dc", "M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z"] };
  3846. var faSortAlphaDown = { prefix: 'fas', iconName: 'sort-alpha-down', icon: [448, 512, [], "f15d", "M187.298 395.314l-79.984 80.002c-6.248 6.247-16.383 6.245-22.627 0L4.705 395.314C-5.365 385.244 1.807 368 16.019 368H64V48c0-8.837 7.163-16 16-16h32c8.837 0 16 7.163 16 16v320h47.984c14.241 0 21.363 17.264 11.314 27.314zm119.075-180.007A12 12 0 0 1 294.838 224h-35.717c-8.22 0-14.007-8.078-11.362-15.861l57.096-168A12 12 0 0 1 316.217 32h39.566c5.139 0 9.708 3.273 11.362 8.139l57.096 168C426.886 215.922 421.1 224 412.879 224h-35.735a12 12 0 0 1-11.515-8.622l-8.301-28.299h-42.863l-8.092 28.228zm22.857-78.697h13.367l-6.6-22.937-6.767 22.937zm12.575 287.323l67.451-95.698a12 12 0 0 0 2.192-6.913V300c0-6.627-5.373-12-12-12H274.522c-6.627 0-12 5.373-12 12v28.93c0 6.627 5.373 12 12 12h56.469c-.739.991-1.497 2.036-2.27 3.133l-67.203 95.205a12.001 12.001 0 0 0-2.196 6.92V468c0 6.627 5.373 12 12 12h129.355c6.627 0 12-5.373 12-12v-28.93c0-6.627-5.373-12-12-12h-61.146c.74-.993 1.5-2.039 2.274-3.137z"] };
  3847. var faSortAlphaUp = { prefix: 'fas', iconName: 'sort-alpha-up', icon: [448, 512, [], "f15e", "M4.702 116.686l79.984-80.002c6.248-6.247 16.383-6.245 22.627 0l79.981 80.002c10.07 10.07 2.899 27.314-11.314 27.314H128v320c0 8.837-7.163 16-16 16H80c-8.837 0-16-7.163-16-16V144H16.016c-14.241 0-21.363-17.264-11.314-27.314zm301.671 98.621A12 12 0 0 1 294.838 224h-35.717c-8.22 0-14.007-8.078-11.362-15.861l57.096-168A12 12 0 0 1 316.217 32h39.566c5.139 0 9.708 3.273 11.362 8.139l57.096 168C426.886 215.922 421.1 224 412.879 224h-35.735a12 12 0 0 1-11.515-8.622l-8.301-28.299h-42.863l-8.092 28.228zm22.857-78.697h13.367l-6.6-22.937-6.767 22.937zm12.575 287.323l67.451-95.698a12 12 0 0 0 2.192-6.913V300c0-6.627-5.373-12-12-12H274.522c-6.627 0-12 5.373-12 12v28.93c0 6.627 5.373 12 12 12h56.469c-.739.991-1.497 2.036-2.27 3.133l-67.203 95.205a12.001 12.001 0 0 0-2.196 6.92V468c0 6.627 5.373 12 12 12h129.355c6.627 0 12-5.373 12-12v-28.93c0-6.627-5.373-12-12-12h-61.146c.74-.993 1.5-2.039 2.274-3.137z"] };
  3848. var faSortAmountDown = { prefix: 'fas', iconName: 'sort-amount-down', icon: [512, 512, [], "f160", "M187.298 395.314l-79.984 80.002c-6.248 6.247-16.383 6.245-22.627 0L4.705 395.314C-5.365 385.244 1.807 368 16.019 368H64V48c0-8.837 7.163-16 16-16h32c8.837 0 16 7.163 16 16v320h47.984c14.241 0 21.363 17.264 11.314 27.314zM240 96h256c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H240c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16zm-16 112v-32c0-8.837 7.163-16 16-16h192c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16zm0 256v-32c0-8.837 7.163-16 16-16h64c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-64c-8.837 0-16-7.163-16-16zm0-128v-32c0-8.837 7.163-16 16-16h128c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16z"] };
  3849. var faSortAmountUp = { prefix: 'fas', iconName: 'sort-amount-up', icon: [512, 512, [], "f161", "M4.702 116.686l79.984-80.002c6.248-6.247 16.383-6.245 22.627 0l79.981 80.002c10.07 10.07 2.899 27.314-11.314 27.314H128v320c0 8.837-7.163 16-16 16H80c-8.837 0-16-7.163-16-16V144H16.016c-14.241 0-21.363-17.264-11.314-27.314zM240 96h256c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H240c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16zm-16 112v-32c0-8.837 7.163-16 16-16h192c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16zm0 256v-32c0-8.837 7.163-16 16-16h64c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-64c-8.837 0-16-7.163-16-16zm0-128v-32c0-8.837 7.163-16 16-16h128c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16z"] };
  3850. var faSortDown = { prefix: 'fas', iconName: 'sort-down', icon: [320, 512, [], "f0dd", "M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z"] };
  3851. var faSortNumericDown = { prefix: 'fas', iconName: 'sort-numeric-down', icon: [448, 512, [], "f162", "M308.811 113.787l-19.448-20.795c-4.522-4.836-4.274-12.421.556-16.95l43.443-40.741a11.999 11.999 0 0 1 8.209-3.247h31.591c6.627 0 12 5.373 12 12v127.07h25.66c6.627 0 12 5.373 12 12v28.93c0 6.627-5.373 12-12 12H301.649c-6.627 0-12-5.373-12-12v-28.93c0-6.627 5.373-12 12-12h25.414v-57.938c-7.254 6.58-14.211 4.921-18.252.601zm-30.57 238.569c0-32.653 23.865-67.356 68.094-67.356 38.253 0 79.424 28.861 79.424 92.228 0 51.276-32.237 105.772-91.983 105.772-17.836 0-30.546-3.557-38.548-6.781-5.79-2.333-8.789-8.746-6.922-14.703l9.237-29.48c2.035-6.496 9.049-9.983 15.467-7.716 13.029 4.602 27.878 5.275 38.103-4.138-38.742 5.072-72.872-25.36-72.872-67.826zm92.273 19.338c0-22.285-15.302-36.505-25.835-36.505-8.642 0-13.164 7.965-13.164 15.832 0 5.669 1.815 24.168 25.168 24.168 9.973 0 13.377-2.154 13.744-2.731.021-.046.087-.291.087-.764zM175.984 368H128V48c0-8.837-7.163-16-16-16H80c-8.837 0-16 7.163-16 16v320H16.019c-14.212 0-21.384 17.244-11.314 27.314l79.981 80.002c6.245 6.245 16.38 6.247 22.627 0l79.984-80.002c10.05-10.05 2.928-27.314-11.313-27.314z"] };
  3852. var faSortNumericUp = { prefix: 'fas', iconName: 'sort-numeric-up', icon: [448, 512, [], "f163", "M308.811 113.787l-19.448-20.795c-4.522-4.836-4.274-12.421.556-16.95l43.443-40.741a11.999 11.999 0 0 1 8.209-3.247h31.591c6.627 0 12 5.373 12 12v127.07h25.66c6.627 0 12 5.373 12 12v28.93c0 6.627-5.373 12-12 12H301.649c-6.627 0-12-5.373-12-12v-28.93c0-6.627 5.373-12 12-12h25.414v-57.938c-7.254 6.58-14.211 4.921-18.252.601zm-30.57 238.569c0-32.653 23.865-67.356 68.094-67.356 38.253 0 79.424 28.861 79.424 92.228 0 51.276-32.237 105.772-91.983 105.772-17.836 0-30.546-3.557-38.548-6.781-5.79-2.333-8.789-8.746-6.922-14.703l9.237-29.48c2.035-6.496 9.049-9.983 15.467-7.716 13.029 4.602 27.878 5.275 38.103-4.138-38.742 5.072-72.872-25.36-72.872-67.826zm92.273 19.338c0-22.285-15.302-36.505-25.835-36.505-8.642 0-13.164 7.965-13.164 15.832 0 5.669 1.815 24.168 25.168 24.168 9.973 0 13.377-2.154 13.744-2.731.021-.046.087-.291.087-.764zM16.016 144H64v320c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16V144h47.981c14.212 0 21.384-17.244 11.314-27.314l-79.981-80.002c-6.245-6.245-16.38-6.247-22.627 0L4.702 116.686C-5.347 126.736 1.775 144 16.016 144z"] };
  3853. var faSortUp = { prefix: 'fas', iconName: 'sort-up', icon: [320, 512, [], "f0de", "M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z"] };
  3854. var faSpa = { prefix: 'fas', iconName: 'spa', icon: [576, 512, [], "f5bb", "M568.25 192c-29.04.13-135.01 6.16-213.84 83-33.12 29.63-53.36 63.3-66.41 94.86-13.05-31.56-33.29-65.23-66.41-94.86-78.83-76.84-184.8-82.87-213.84-83-4.41-.02-7.79 3.4-7.75 7.82.23 27.92 7.14 126.14 88.77 199.3C172.79 480.94 256 480 288 480s115.19.95 199.23-80.88c81.64-73.17 88.54-171.38 88.77-199.3.04-4.42-3.34-7.84-7.75-7.82zM287.98 302.6c12.82-18.85 27.6-35.78 44.09-50.52 19.09-18.61 39.58-33.3 60.26-45.18-16.44-70.5-51.72-133.05-96.73-172.22-4.11-3.58-11.02-3.58-15.14 0-44.99 39.14-80.27 101.63-96.74 172.07 20.37 11.7 40.5 26.14 59.22 44.39a282.768 282.768 0 0 1 45.04 51.46z"] };
  3855. var faSpaceShuttle = { prefix: 'fas', iconName: 'space-shuttle', icon: [640, 512, [], "f197", "M592.604 208.244C559.735 192.836 515.777 184 472 184H186.327c-4.952-6.555-10.585-11.978-16.72-16H376C229.157 137.747 219.403 32 96.003 32H96v128H80V32c-26.51 0-48 28.654-48 64v64c-23.197 0-32 10.032-32 24v40c0 13.983 8.819 24 32 24v16c-23.197 0-32 10.032-32 24v40c0 13.983 8.819 24 32 24v64c0 35.346 21.49 64 48 64V352h16v128h.003c123.4 0 133.154-105.747 279.997-136H169.606c6.135-4.022 11.768-9.445 16.72-16H472c43.777 0 87.735-8.836 120.604-24.244C622.282 289.845 640 271.992 640 256s-17.718-33.845-47.396-47.756zM488 296a8 8 0 0 1-8-8v-64a8 8 0 0 1 8-8c31.909 0 31.942 80 0 80z"] };
  3856. var faSpider = { prefix: 'fas', iconName: 'spider', icon: [576, 512, [], "f717", "M151.17 167.35L177.1 176h4.67l5.22-26.12c.72-3.58 1.8-7.58 3.21-11.79l-20.29-40.58 23.8-71.39c2.79-8.38-1.73-17.44-10.12-20.24L168.42.82c-8.38-2.8-17.45 1.73-20.24 10.12l-25.89 77.68a32.04 32.04 0 0 0 1.73 24.43l27.15 54.3zm422.14 182.03l-52.75-79.12a32.002 32.002 0 0 0-26.62-14.25H416l68.99-24.36a32.03 32.03 0 0 0 16.51-12.61l53.6-80.41c4.9-7.35 2.91-17.29-4.44-22.19l-13.31-8.88c-7.35-4.9-17.29-2.91-22.19 4.44l-50.56 75.83L404.1 208H368l-10.37-51.85C355.44 145.18 340.26 96 288 96c-52.26 0-67.44 49.18-69.63 60.15L208 208h-36.1l-60.49-20.17L60.84 112c-4.9-7.35-14.83-9.34-22.19-4.44l-13.31 8.88c-7.35 4.9-9.34 14.83-4.44 22.19l53.6 80.41a32.03 32.03 0 0 0 16.51 12.61L160 256H82.06a32.02 32.02 0 0 0-26.63 14.25L2.69 349.38c-4.9 7.35-2.92 17.29 4.44 22.19l13.31 8.88c7.35 4.9 17.29 2.91 22.19-4.44l48-72h47.06l-60.83 97.33A31.988 31.988 0 0 0 72 418.3V496c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-73.11l74.08-118.53c-1.01 14.05-2.08 28.11-2.08 42.21C192 399.64 232.76 448 288 448s96-48.36 96-101.43c0-14.1-1.08-28.16-2.08-42.21L456 422.89V496c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-77.71c0-6-1.69-11.88-4.86-16.96L438.31 304h47.06l48 72c4.9 7.35 14.84 9.34 22.19 4.44l13.31-8.88c7.36-4.9 9.34-14.83 4.44-22.18zM406.09 97.51l-20.29 40.58c1.41 4.21 2.49 8.21 3.21 11.79l5.22 26.12h4.67l25.93-8.65 27.15-54.3a31.995 31.995 0 0 0 1.73-24.43l-25.89-77.68C425.03 2.56 415.96-1.98 407.58.82l-15.17 5.06c-8.38 2.8-12.91 11.86-10.12 20.24l23.8 71.39z"] };
  3857. var faSpinner = { prefix: 'fas', iconName: 'spinner', icon: [512, 512, [], "f110", "M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z"] };
  3858. var faSplotch = { prefix: 'fas', iconName: 'splotch', icon: [512, 512, [], "f5bc", "M472.29 195.89l-67.06-22.95c-19.28-6.6-33.54-20.92-38.14-38.3L351.1 74.19c-11.58-43.77-76.57-57.13-109.98-22.62l-46.14 47.67c-13.26 13.71-33.54 20.93-54.2 19.31l-71.88-5.62c-52.05-4.07-86.93 44.88-59.03 82.83l38.54 52.42c11.08 15.07 12.82 33.86 4.64 50.24L24.62 355.4c-20.59 41.25 22.84 84.87 73.49 73.81l69.96-15.28c20.11-4.39 41.45 0 57.07 11.73l54.32 40.83c39.32 29.56 101.04 7.57 104.45-37.22l4.7-61.86c1.35-17.79 12.8-33.86 30.63-42.99l62-31.74c44.88-22.96 39.59-80.17-8.95-96.79z"] };
  3859. var faSprayCan = { prefix: 'fas', iconName: 'spray-can', icon: [512, 512, [], "f5bd", "M224 32c0-17.67-14.33-32-32-32h-64c-17.67 0-32 14.33-32 32v96h128V32zm256 96c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm-256 32H96c-53.02 0-96 42.98-96 96v224c0 17.67 14.33 32 32 32h256c17.67 0 32-14.33 32-32V256c0-53.02-42.98-96-96-96zm-64 256c-44.18 0-80-35.82-80-80s35.82-80 80-80 80 35.82 80 80-35.82 80-80 80zM480 96c17.67 0 32-14.33 32-32s-14.33-32-32-32-32 14.33-32 32 14.33 32 32 32zm-96 32c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm-96-96c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm96 0c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm96 192c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"] };
  3860. var faSquare = { prefix: 'fas', iconName: 'square', icon: [448, 512, [], "f0c8", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"] };
  3861. var faSquareFull = { prefix: 'fas', iconName: 'square-full', icon: [512, 512, [], "f45c", "M512 512H0V0h512v512z"] };
  3862. var faSquareRootAlt = { prefix: 'fas', iconName: 'square-root-alt', icon: [576, 512, [], "f698", "M571.31 251.31l-22.62-22.62c-6.25-6.25-16.38-6.25-22.63 0L480 274.75l-46.06-46.06c-6.25-6.25-16.38-6.25-22.63 0l-22.62 22.62c-6.25 6.25-6.25 16.38 0 22.63L434.75 320l-46.06 46.06c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L480 365.25l46.06 46.06c6.25 6.25 16.38 6.25 22.63 0l22.62-22.62c6.25-6.25 6.25-16.38 0-22.63L525.25 320l46.06-46.06c6.25-6.25 6.25-16.38 0-22.63zM552 0H307.65c-14.54 0-27.26 9.8-30.95 23.87l-84.79 322.8-58.41-106.1A32.008 32.008 0 0 0 105.47 224H24c-13.25 0-24 10.74-24 24v48c0 13.25 10.75 24 24 24h43.62l88.88 163.73C168.99 503.5 186.3 512 204.94 512c17.27 0 44.44-9 54.28-41.48L357.03 96H552c13.25 0 24-10.75 24-24V24c0-13.26-10.75-24-24-24z"] };
  3863. var faStamp = { prefix: 'fas', iconName: 'stamp', icon: [512, 512, [], "f5bf", "M32 512h448v-64H32v64zm384-256h-66.56c-16.26 0-29.44-13.18-29.44-29.44v-9.46c0-27.37 8.88-53.41 21.46-77.72 9.11-17.61 12.9-38.39 9.05-60.42-6.77-38.78-38.47-70.7-77.26-77.45C212.62-9.04 160 37.33 160 96c0 14.16 3.12 27.54 8.69 39.58C182.02 164.43 192 194.7 192 226.49v.07c0 16.26-13.18 29.44-29.44 29.44H96c-53.02 0-96 42.98-96 96v32c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-32c0-53.02-42.98-96-96-96z"] };
  3864. var faStar = { prefix: 'fas', iconName: 'star', icon: [576, 512, [], "f005", "M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"] };
  3865. var faStarAndCrescent = { prefix: 'fas', iconName: 'star-and-crescent', icon: [512, 512, [], "f699", "M340.47 466.36c-1.45 0-6.89.46-9.18.46-116.25 0-210.82-94.57-210.82-210.82S215.04 45.18 331.29 45.18c2.32 0 7.7.46 9.18.46 7.13 0 13.33-5.03 14.75-12.07 1.46-7.25-2.55-14.49-9.47-17.09C316.58 5.54 286.39 0 256 0 114.84 0 0 114.84 0 256s114.84 256 256 256c30.23 0 60.28-5.49 89.32-16.32 5.96-2.02 10.28-7.64 10.28-14.26 0-8.09-6.39-15.06-15.13-15.06zm162.99-252.5l-76.38-11.1-34.16-69.21c-1.83-3.7-5.38-5.55-8.93-5.55s-7.1 1.85-8.93 5.55l-34.16 69.21-76.38 11.1c-8.17 1.18-11.43 11.22-5.52 16.99l55.27 53.87-13.05 76.07c-1.11 6.44 4.01 11.66 9.81 11.66 1.53 0 3.11-.36 4.64-1.17L384 335.37l68.31 35.91c1.53.8 3.11 1.17 4.64 1.17 5.8 0 10.92-5.23 9.81-11.66l-13.05-76.07 55.27-53.87c5.91-5.77 2.65-15.81-5.52-16.99z"] };
  3866. var faStarHalf = { prefix: 'fas', iconName: 'star-half', icon: [576, 512, [], "f089", "M288 0c-11.4 0-22.8 5.9-28.7 17.8L194 150.2 47.9 171.4c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.1 23 46 46.4 33.7L288 439.6V0z"] };
  3867. var faStarHalfAlt = { prefix: 'fas', iconName: 'star-half-alt', icon: [536, 512, [], "f5c0", "M508.55 171.51L362.18 150.2 296.77 17.81C290.89 5.98 279.42 0 267.95 0c-11.4 0-22.79 5.9-28.69 17.81l-65.43 132.38-146.38 21.29c-26.25 3.8-36.77 36.09-17.74 54.59l105.89 103-25.06 145.48C86.98 495.33 103.57 512 122.15 512c4.93 0 10-1.17 14.87-3.75l130.95-68.68 130.94 68.7c4.86 2.55 9.92 3.71 14.83 3.71 18.6 0 35.22-16.61 31.66-37.4l-25.03-145.49 105.91-102.98c19.04-18.5 8.52-50.8-17.73-54.6zm-121.74 123.2l-18.12 17.62 4.28 24.88 19.52 113.45-102.13-53.59-22.38-11.74.03-317.19 51.03 103.29 11.18 22.63 25.01 3.64 114.23 16.63-82.65 80.38z"] };
  3868. var faStarOfDavid = { prefix: 'fas', iconName: 'star-of-david', icon: [464, 512, [], "f69a", "M405.68 256l53.21-89.39C473.3 142.4 455.48 112 426.88 112H319.96l-55.95-93.98C256.86 6.01 244.43 0 232 0s-24.86 6.01-32.01 18.02L144.04 112H37.11c-28.6 0-46.42 30.4-32.01 54.61L58.32 256 5.1 345.39C-9.31 369.6 8.51 400 37.11 400h106.93l55.95 93.98C207.14 505.99 219.57 512 232 512s24.86-6.01 32.01-18.02L319.96 400h106.93c28.6 0 46.42-30.4 32.01-54.61L405.68 256zm-12.78-88l-19.8 33.26L353.3 168h39.6zm-52.39 88l-52.39 88H175.88l-52.39-88 52.38-88h112.25l52.39 88zM232 73.72L254.79 112h-45.57L232 73.72zM71.1 168h39.6l-19.8 33.26L71.1 168zm0 176l19.8-33.26L110.7 344H71.1zM232 438.28L209.21 400h45.57L232 438.28zM353.29 344l19.8-33.26L392.9 344h-39.61z"] };
  3869. var faStarOfLife = { prefix: 'fas', iconName: 'star-of-life', icon: [480, 512, [], "f621", "M471.99 334.43L336.06 256l135.93-78.43c7.66-4.42 10.28-14.2 5.86-21.86l-32.02-55.43c-4.42-7.65-14.21-10.28-21.87-5.86l-135.93 78.43V16c0-8.84-7.17-16-16.01-16h-64.04c-8.84 0-16.01 7.16-16.01 16v156.86L56.04 94.43c-7.66-4.42-17.45-1.79-21.87 5.86L2.15 155.71c-4.42 7.65-1.8 17.44 5.86 21.86L143.94 256 8.01 334.43c-7.66 4.42-10.28 14.21-5.86 21.86l32.02 55.43c4.42 7.65 14.21 10.27 21.87 5.86l135.93-78.43V496c0 8.84 7.17 16 16.01 16h64.04c8.84 0 16.01-7.16 16.01-16V339.14l135.93 78.43c7.66 4.42 17.45 1.8 21.87-5.86l32.02-55.43c4.42-7.65 1.8-17.43-5.86-21.85z"] };
  3870. var faStepBackward = { prefix: 'fas', iconName: 'step-backward', icon: [448, 512, [], "f048", "M64 468V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12v176.4l195.5-181C352.1 22.3 384 36.6 384 64v384c0 27.4-31.9 41.7-52.5 24.6L136 292.7V468c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12z"] };
  3871. var faStepForward = { prefix: 'fas', iconName: 'step-forward', icon: [448, 512, [], "f051", "M384 44v424c0 6.6-5.4 12-12 12h-48c-6.6 0-12-5.4-12-12V291.6l-195.5 181C95.9 489.7 64 475.4 64 448V64c0-27.4 31.9-41.7 52.5-24.6L312 219.3V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12z"] };
  3872. var faStethoscope = { prefix: 'fas', iconName: 'stethoscope', icon: [512, 512, [], "f0f1", "M447.1 112c-34.2.5-62.3 28.4-63 62.6-.5 24.3 12.5 45.6 32 56.8V344c0 57.3-50.2 104-112 104-60 0-109.2-44.1-111.9-99.2C265 333.8 320 269.2 320 192V36.6c0-11.4-8.1-21.3-19.3-23.5L237.8.5c-13-2.6-25.6 5.8-28.2 18.8L206.4 35c-2.6 13 5.8 25.6 18.8 28.2l30.7 6.1v121.4c0 52.9-42.2 96.7-95.1 97.2-53.4.5-96.9-42.7-96.9-96V69.4l30.7-6.1c13-2.6 21.4-15.2 18.8-28.2l-3.1-15.7C107.7 6.4 95.1-2 82.1.6L19.3 13C8.1 15.3 0 25.1 0 36.6V192c0 77.3 55.1 142 128.1 156.8C130.7 439.2 208.6 512 304 512c97 0 176-75.4 176-168V231.4c19.1-11.1 32-31.7 32-55.4 0-35.7-29.2-64.5-64.9-64zm.9 80c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"] };
  3873. var faStickyNote = { prefix: 'fas', iconName: 'sticky-note', icon: [448, 512, [], "f249", "M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"] };
  3874. var faStop = { prefix: 'fas', iconName: 'stop', icon: [448, 512, [], "f04d", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"] };
  3875. var faStopCircle = { prefix: 'fas', iconName: 'stop-circle', icon: [512, 512, [], "f28d", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm96 328c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h160c8.8 0 16 7.2 16 16v160z"] };
  3876. var faStopwatch = { prefix: 'fas', iconName: 'stopwatch', icon: [448, 512, [], "f2f2", "M432 304c0 114.9-93.1 208-208 208S16 418.9 16 304c0-104 76.3-190.2 176-205.5V64h-28c-6.6 0-12-5.4-12-12V12c0-6.6 5.4-12 12-12h120c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-28v34.5c37.5 5.8 71.7 21.6 99.7 44.6l27.5-27.5c4.7-4.7 12.3-4.7 17 0l28.3 28.3c4.7 4.7 4.7 12.3 0 17l-29.4 29.4-.6.6C419.7 223.3 432 262.2 432 304zm-176 36V188.5c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12V340c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12z"] };
  3877. var faStore = { prefix: 'fas', iconName: 'store', icon: [616, 512, [], "f54e", "M602 118.6L537.1 15C531.3 5.7 521 0 510 0H106C95 0 84.7 5.7 78.9 15L14 118.6c-33.5 53.5-3.8 127.9 58.8 136.4 4.5.6 9.1.9 13.7.9 29.6 0 55.8-13 73.8-33.1 18 20.1 44.3 33.1 73.8 33.1 29.6 0 55.8-13 73.8-33.1 18 20.1 44.3 33.1 73.8 33.1 29.6 0 55.8-13 73.8-33.1 18.1 20.1 44.3 33.1 73.8 33.1 4.7 0 9.2-.3 13.7-.9 62.8-8.4 92.6-82.8 59-136.4zM529.5 288c-10 0-19.9-1.5-29.5-3.8V384H116v-99.8c-9.6 2.2-19.5 3.8-29.5 3.8-6 0-12.1-.4-18-1.2-5.6-.8-11.1-2.1-16.4-3.6V480c0 17.7 14.3 32 32 32h448c17.7 0 32-14.3 32-32V283.2c-5.4 1.6-10.8 2.9-16.4 3.6-6.1.8-12.1 1.2-18.2 1.2z"] };
  3878. var faStoreAlt = { prefix: 'fas', iconName: 'store-alt', icon: [640, 512, [], "f54f", "M320 384H128V224H64v256c0 17.7 14.3 32 32 32h256c17.7 0 32-14.3 32-32V224h-64v160zm314.6-241.8l-85.3-128c-6-8.9-16-14.2-26.7-14.2H117.4c-10.7 0-20.7 5.3-26.6 14.2l-85.3 128c-14.2 21.3 1 49.8 26.6 49.8H608c25.5 0 40.7-28.5 26.6-49.8zM512 496c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V224h-64v272z"] };
  3879. var faStream = { prefix: 'fas', iconName: 'stream', icon: [512, 512, [], "f550", "M16 128h416c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H16C7.16 32 0 39.16 0 48v64c0 8.84 7.16 16 16 16zm480 80H80c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm-64 176H16c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16z"] };
  3880. var faStreetView = { prefix: 'fas', iconName: 'street-view', icon: [512, 512, [], "f21d", "M367.9 329.76c-4.62 5.3-9.78 10.1-15.9 13.65v22.94c66.52 9.34 112 28.05 112 49.65 0 30.93-93.12 56-208 56S48 446.93 48 416c0-21.6 45.48-40.3 112-49.65v-22.94c-6.12-3.55-11.28-8.35-15.9-13.65C58.87 345.34 0 378.05 0 416c0 53.02 114.62 96 256 96s256-42.98 256-96c0-37.95-58.87-70.66-144.1-86.24zM256 128c35.35 0 64-28.65 64-64S291.35 0 256 0s-64 28.65-64 64 28.65 64 64 64zm-64 192v96c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-96c17.67 0 32-14.33 32-32v-96c0-26.51-21.49-48-48-48h-11.8c-11.07 5.03-23.26 8-36.2 8s-25.13-2.97-36.2-8H208c-26.51 0-48 21.49-48 48v96c0 17.67 14.33 32 32 32z"] };
  3881. var faStrikethrough = { prefix: 'fas', iconName: 'strikethrough', icon: [512, 512, [], "f0cc", "M496 288H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h480c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16zm-214.666 16c27.258 12.937 46.524 28.683 46.524 56.243 0 33.108-28.977 53.676-75.621 53.676-32.325 0-76.874-12.08-76.874-44.271V368c0-8.837-7.164-16-16-16H113.75c-8.836 0-16 7.163-16 16v19.204c0 66.845 77.717 101.82 154.487 101.82 88.578 0 162.013-45.438 162.013-134.424 0-19.815-3.618-36.417-10.143-50.6H281.334zm-30.952-96c-32.422-13.505-56.836-28.946-56.836-59.683 0-33.92 30.901-47.406 64.962-47.406 42.647 0 64.962 16.593 64.962 32.985V136c0 8.837 7.164 16 16 16h45.613c8.836 0 16-7.163 16-16v-30.318c0-52.438-71.725-79.875-142.575-79.875-85.203 0-150.726 40.972-150.726 125.646 0 22.71 4.665 41.176 12.777 56.547h129.823z"] };
  3882. var faStroopwafel = { prefix: 'fas', iconName: 'stroopwafel', icon: [512, 512, [], "f551", "M188.12 210.74L142.86 256l45.25 45.25L233.37 256l-45.25-45.26zm113.13-22.62L256 142.86l-45.25 45.25L256 233.37l45.25-45.25zm-90.5 135.76L256 369.14l45.26-45.26L256 278.63l-45.25 45.25zM256 0C114.62 0 0 114.62 0 256s114.62 256 256 256 256-114.62 256-256S397.38 0 256 0zm186.68 295.6l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0l-28.29-28.29-45.25 45.25 33.94 33.94 16.97-16.97c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31l-16.97 16.97 16.97 16.97c3.12 3.12 3.12 8.19 0 11.31l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0l-16.97-16.97-16.97 16.97c-3.12 3.12-8.19 3.12-11.31 0l-11.31-11.31c-3.12-3.12-3.12-8.19 0-11.31l16.97-16.97-33.94-33.94-45.26 45.26 28.29 28.29c3.12 3.12 3.12 8.19 0 11.31l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0L256 414.39l-28.29 28.29c-3.12 3.12-8.19 3.12-11.31 0l-11.31-11.31c-3.12-3.12-3.12-8.19 0-11.31l28.29-28.29-45.25-45.26-33.94 33.94 16.97 16.97c3.12 3.12 3.12 8.19 0 11.31l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0l-16.97-16.97-16.97 16.97c-3.12 3.12-8.19 3.12-11.31 0l-11.31-11.31c-3.12-3.12-3.12-8.19 0-11.31l16.97-16.97-16.97-16.97c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0l16.97 16.97 33.94-33.94-45.25-45.25-28.29 28.29c-3.12 3.12-8.19 3.12-11.31 0L69.32 295.6c-3.12-3.12-3.12-8.19 0-11.31L97.61 256l-28.29-28.29c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0l28.29 28.29 45.25-45.26-33.94-33.94-16.97 16.97c-3.12 3.12-8.19 3.12-11.31 0l-11.31-11.31c-3.12-3.12-3.12-8.19 0-11.31l16.97-16.97-16.97-16.97c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0l16.97 16.97 16.97-16.97c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31l-16.97 16.97 33.94 33.94 45.26-45.25-28.29-28.29c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0L256 97.61l28.29-28.29c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31l-28.29 28.29 45.26 45.25 33.94-33.94-16.97-16.97c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0l16.97 16.97 16.97-16.97c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31l-16.97 16.97 16.97 16.97c3.12 3.12 3.12 8.19 0 11.31l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0l-16.97-16.97-33.94 33.94 45.25 45.26 28.29-28.29c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31L414.39 256l28.29 28.28a8.015 8.015 0 0 1 0 11.32zM278.63 256l45.26 45.25L369.14 256l-45.25-45.26L278.63 256z"] };
  3883. var faSubscript = { prefix: 'fas', iconName: 'subscript', icon: [512, 512, [], "f12c", "M395.198 416c3.461-10.526 18.796-21.28 36.265-32.425 16.625-10.605 35.467-22.626 50.341-38.862 17.458-19.054 25.944-40.175 25.944-64.567 0-60.562-50.702-88.146-97.81-88.146-42.491 0-76.378 22.016-94.432 50.447-4.654 7.329-2.592 17.036 4.623 21.865l30.328 20.296c7.032 4.706 16.46 3.084 21.63-3.614 8.022-10.394 18.818-18.225 31.667-18.225 19.387 0 26.266 12.901 26.266 23.948 0 36.159-119.437 57.023-119.437 160.024 0 6.654.561 13.014 1.415 19.331 1.076 7.964 7.834 13.928 15.87 13.928H496c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16H395.198zM272 256c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-62.399a16 16 0 0 1-13.541-7.478l-45.701-72.615c-2.297-3.352-4.422-6.969-6.195-10.209-1.65 3.244-3.647 6.937-5.874 10.582l-44.712 72.147a15.999 15.999 0 0 1-13.6 7.572H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h26.325l56.552-82.709L46.111 96H16C7.163 96 0 88.837 0 80V48c0-8.837 7.163-16 16-16h68.806a16 16 0 0 1 13.645 7.644l39.882 65.126c2.072 3.523 4.053 7.171 5.727 10.37 1.777-3.244 3.92-6.954 6.237-10.537l40.332-65.035A15.999 15.999 0 0 1 204.226 32H272c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-27.979l-52.69 75.671L249.974 256H272z"] };
  3884. var faSubway = { prefix: 'fas', iconName: 'subway', icon: [448, 512, [], "f239", "M448 96v256c0 51.815-61.624 96-130.022 96l62.98 49.721C386.905 502.417 383.562 512 376 512H72c-7.578 0-10.892-9.594-4.957-14.279L130.022 448C61.82 448 0 403.954 0 352V96C0 42.981 64 0 128 0h192c65 0 128 42.981 128 96zM200 232V120c0-13.255-10.745-24-24-24H72c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h104c13.255 0 24-10.745 24-24zm200 0V120c0-13.255-10.745-24-24-24H272c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h104c13.255 0 24-10.745 24-24zm-48 56c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm-256 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z"] };
  3885. var faSuitcase = { prefix: 'fas', iconName: 'suitcase', icon: [512, 512, [], "f0f2", "M128 480h256V80c0-26.5-21.5-48-48-48H176c-26.5 0-48 21.5-48 48v400zm64-384h128v32H192V96zm320 80v256c0 26.5-21.5 48-48 48h-48V128h48c26.5 0 48 21.5 48 48zM96 480H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h48v352z"] };
  3886. var faSuitcaseRolling = { prefix: 'fas', iconName: 'suitcase-rolling', icon: [384, 512, [], "f5c1", "M336 160H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h16v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16h128v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16h16c26.51 0 48-21.49 48-48V208c0-26.51-21.49-48-48-48zm-16 216c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h240c4.42 0 8 3.58 8 8v16zm0-96c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h240c4.42 0 8 3.58 8 8v16zM144 48h96v80h48V48c0-26.51-21.49-48-48-48h-96c-26.51 0-48 21.49-48 48v80h48V48z"] };
  3887. var faSun = { prefix: 'fas', iconName: 'sun', icon: [512, 512, [], "f185", "M274.835 12.646l25.516 62.393c4.213 10.301 16.671 14.349 26.134 8.492l57.316-35.479c15.49-9.588 34.808 4.447 30.475 22.142l-16.03 65.475c-2.647 10.81 5.053 21.408 16.152 22.231l67.224 4.987c18.167 1.348 25.546 24.057 11.641 35.826L441.81 242.26c-8.495 7.19-8.495 20.289 0 27.479l51.454 43.548c13.906 11.769 6.527 34.478-11.641 35.826l-67.224 4.987c-11.099.823-18.799 11.421-16.152 22.231l16.03 65.475c4.332 17.695-14.986 31.73-30.475 22.142l-57.316-35.479c-9.463-5.858-21.922-1.81-26.134 8.492l-25.516 62.393c-6.896 16.862-30.774 16.862-37.67 0l-25.516-62.393c-4.213-10.301-16.671-14.349-26.134-8.492l-57.317 35.479c-15.49 9.588-34.808-4.447-30.475-22.142l16.03-65.475c2.647-10.81-5.053-21.408-16.152-22.231l-67.224-4.987c-18.167-1.348-25.546-24.057-11.641-35.826L70.19 269.74c8.495-7.19 8.495-20.289 0-27.479l-51.454-43.548c-13.906-11.769-6.527-34.478 11.641-35.826l67.224-4.987c11.099-.823 18.799-11.421 16.152-22.231l-16.03-65.475c-4.332-17.695 14.986-31.73 30.475-22.142l57.317 35.479c9.463 5.858 21.921 1.81 26.134-8.492l25.516-62.393c6.896-16.861 30.774-16.861 37.67 0zM392 256c0-74.991-61.01-136-136-136-74.991 0-136 61.009-136 136s61.009 136 136 136c74.99 0 136-61.009 136-136zm-32 0c0 57.346-46.654 104-104 104s-104-46.654-104-104 46.654-104 104-104 104 46.654 104 104z"] };
  3888. var faSuperscript = { prefix: 'fas', iconName: 'superscript', icon: [512, 512, [], "f12b", "M395.198 256c3.461-10.526 18.796-21.28 36.265-32.425 16.625-10.605 35.467-22.626 50.341-38.862 17.458-19.054 25.944-40.175 25.944-64.567 0-60.562-50.702-88.146-97.81-88.146-42.491 0-76.378 22.016-94.432 50.447-4.654 7.329-2.592 17.036 4.623 21.865l30.328 20.296c7.032 4.706 16.46 3.084 21.63-3.614 8.022-10.394 18.818-18.225 31.667-18.225 19.387 0 26.266 12.901 26.266 23.948 0 36.159-119.437 57.023-119.437 160.024 0 6.654.561 13.014 1.415 19.331 1.076 7.964 7.834 13.928 15.87 13.928H496c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16H395.198zM272 416c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-62.399a16 16 0 0 1-13.541-7.478l-45.701-72.615c-2.297-3.352-4.422-6.969-6.195-10.209-1.65 3.244-3.647 6.937-5.874 10.582l-44.712 72.147a15.999 15.999 0 0 1-13.6 7.572H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h26.325l56.552-82.709L46.111 256H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h68.806a16 16 0 0 1 13.645 7.644l39.882 65.126c2.072 3.523 4.053 7.171 5.727 10.37 1.777-3.244 3.92-6.954 6.237-10.537l40.332-65.035a16 16 0 0 1 13.598-7.567H272c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-27.979l-52.69 75.671L249.974 416H272z"] };
  3889. var faSurprise = { prefix: 'fas', iconName: 'surprise', icon: [496, 512, [], "f5c2", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM136 208c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm112 208c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm80-176c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3890. var faSwatchbook = { prefix: 'fas', iconName: 'swatchbook', icon: [511, 512, [], "f5c3", "M479.06 320H372.29L186.15 506.51c-2.06 2.07-4.49 3.58-6.67 5.49h299.58c17.64 0 31.94-14.33 31.94-32V352c0-17.67-14.3-32-31.94-32zm-44.5-152.9l-90.33-90.51c-12.47-12.5-32.69-12.5-45.17 0l-75.5 75.65V416c0 2.96-.67 5.73-.87 8.64l211.87-212.28c12.47-12.5 12.47-32.77 0-45.26zM191.62 32c0-17.67-14.3-32-31.94-32H31.94C14.3 0 0 14.33 0 32v384c0 53.02 42.9 96 95.81 96s95.81-42.98 95.81-96V32zM95.81 440c-13.23 0-23.95-10.75-23.95-24 0-13.26 10.73-24 23.95-24s23.95 10.74 23.95 24c.01 13.25-10.72 24-23.95 24zm31.94-184H63.88v-64h63.88v64zm0-128H63.88V64h63.88v64z"] };
  3891. var faSwimmer = { prefix: 'fas', iconName: 'swimmer', icon: [640, 512, [], "f5c4", "M189.61 310.58c3.54 3.26 15.27 9.42 34.39 9.42s30.86-6.16 34.39-9.42c16.02-14.77 34.5-22.58 53.46-22.58h16.3c18.96 0 37.45 7.81 53.46 22.58 3.54 3.26 15.27 9.42 34.39 9.42s30.86-6.16 34.39-9.42c14.86-13.71 31.88-21.12 49.39-22.16l-112.84-80.6 18-12.86c3.64-2.58 8.28-3.52 12.62-2.61l100.35 21.53c25.91 5.53 51.44-10.97 57-36.88 5.55-25.92-10.95-51.44-36.88-57L437.68 98.47c-30.73-6.58-63.02.12-88.56 18.38l-80.02 57.17c-10.38 7.39-19.36 16.44-26.72 26.94L173.75 299c5.47 3.23 10.82 6.93 15.86 11.58zM624 352h-16c-26.04 0-45.8-8.42-56.09-17.9-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C461.8 343.58 442.04 352 416 352s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C269.8 343.58 250.04 352 224 352s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C77.8 343.58 58.04 352 32 352H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16c38.62 0 72.72-12.19 96-31.84 23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84h16c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-512-96c44.18 0 80-35.82 80-80s-35.82-80-80-80-80 35.82-80 80 35.82 80 80 80z"] };
  3892. var faSwimmingPool = { prefix: 'fas', iconName: 'swimming-pool', icon: [640, 512, [], "f5c5", "M624 416h-16c-26.04 0-45.8-8.42-56.09-17.9-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C461.8 407.58 442.04 416 416 416s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C269.8 407.58 250.04 416 224 416s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C77.8 407.58 58.04 416 32 416H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16c38.62 0 72.72-12.19 96-31.84 23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84h16c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-400-32v-96h192v96c19.12 0 30.86-6.16 34.39-9.42 9.17-8.46 19.2-14.34 29.61-18.07V128c0-17.64 14.36-32 32-32s32 14.36 32 32v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16c0-52.94-43.06-96-96-96s-96 43.06-96 96v96H224v-96c0-17.64 14.36-32 32-32s32 14.36 32 32v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16c0-52.94-43.06-96-96-96s-96 43.06-96 96v228.5c10.41 3.73 20.44 9.62 29.61 18.07 3.53 3.27 15.27 9.43 34.39 9.43z"] };
  3893. var faSynagogue = { prefix: 'fas', iconName: 'synagogue', icon: [640, 512, [], "f69b", "M70 196.51L6.67 268.29A26.643 26.643 0 0 0 0 285.93V512h128V239.58l-38-43.07c-5.31-6.01-14.69-6.01-20 0zm563.33 71.78L570 196.51c-5.31-6.02-14.69-6.02-20 0l-38 43.07V512h128V285.93c0-6.5-2.37-12.77-6.67-17.64zM339.99 7.01c-11.69-9.35-28.29-9.35-39.98 0l-128 102.4A32.005 32.005 0 0 0 160 134.4V512h96v-92.57c0-31.88 21.78-61.43 53.25-66.55C349.34 346.35 384 377.13 384 416v96h96V134.4c0-9.72-4.42-18.92-12.01-24.99l-128-102.4zm52.07 215.55c1.98 3.15-.29 7.24-4 7.24h-38.94L324 269.79c-1.85 2.95-6.15 2.95-8 0l-25.12-39.98h-38.94c-3.72 0-5.98-4.09-4-7.24l19.2-30.56-19.2-30.56c-1.98-3.15.29-7.24 4-7.24h38.94l25.12-40c1.85-2.95 6.15-2.95 8 0l25.12 39.98h38.95c3.71 0 5.98 4.09 4 7.24L372.87 192l19.19 30.56z"] };
  3894. var faSync = { prefix: 'fas', iconName: 'sync', icon: [512, 512, [], "f021", "M440.935 12.574l3.966 82.766C399.416 41.904 331.674 8 256 8 134.813 8 33.933 94.924 12.296 209.824 10.908 217.193 16.604 224 24.103 224h49.084c5.57 0 10.377-3.842 11.676-9.259C103.407 137.408 172.931 80 256 80c60.893 0 114.512 30.856 146.104 77.801l-101.53-4.865c-6.845-.328-12.574 5.133-12.574 11.986v47.411c0 6.627 5.373 12 12 12h200.333c6.627 0 12-5.373 12-12V12c0-6.627-5.373-12-12-12h-47.411c-6.853 0-12.315 5.729-11.987 12.574zM256 432c-60.895 0-114.517-30.858-146.109-77.805l101.868 4.871c6.845.327 12.573-5.134 12.573-11.986v-47.412c0-6.627-5.373-12-12-12H12c-6.627 0-12 5.373-12 12V500c0 6.627 5.373 12 12 12h47.385c6.863 0 12.328-5.745 11.985-12.599l-4.129-82.575C112.725 470.166 180.405 504 256 504c121.187 0 222.067-86.924 243.704-201.824 1.388-7.369-4.308-14.176-11.807-14.176h-49.084c-5.57 0-10.377 3.842-11.676 9.259C408.593 374.592 339.069 432 256 432z"] };
  3895. var faSyncAlt = { prefix: 'fas', iconName: 'sync-alt', icon: [512, 512, [], "f2f1", "M370.72 133.28C339.458 104.008 298.888 87.962 255.848 88c-77.458.068-144.328 53.178-162.791 126.85-1.344 5.363-6.122 9.15-11.651 9.15H24.103c-7.498 0-13.194-6.807-11.807-14.176C33.933 94.924 134.813 8 256 8c66.448 0 126.791 26.136 171.315 68.685L463.03 40.97C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.749zM32 296h134.059c21.382 0 32.09 25.851 16.971 40.971l-41.75 41.75c31.262 29.273 71.835 45.319 114.876 45.28 77.418-.07 144.315-53.144 162.787-126.849 1.344-5.363 6.122-9.15 11.651-9.15h57.304c7.498 0 13.194 6.807 11.807 14.176C478.067 417.076 377.187 504 256 504c-66.448 0-126.791-26.136-171.315-68.685L48.97 471.03C33.851 486.149 8 475.441 8 454.059V320c0-13.255 10.745-24 24-24z"] };
  3896. var faSyringe = { prefix: 'fas', iconName: 'syringe', icon: [512, 512, [], "f48e", "M201.5 174.8l55.7 55.8c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-55.7-55.8-45.3 45.3 55.8 55.8c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0L111 265.2l-26.4 26.4c-17.3 17.3-25.6 41.1-23 65.4l7.1 63.6L2.3 487c-3.1 3.1-3.1 8.2 0 11.3l11.3 11.3c3.1 3.1 8.2 3.1 11.3 0l66.3-66.3 63.6 7.1c23.9 2.6 47.9-5.4 65.4-23l181.9-181.9-135.7-135.7-64.9 65zm308.2-93.3L430.5 2.3c-3.1-3.1-8.2-3.1-11.3 0l-11.3 11.3c-3.1 3.1-3.1 8.2 0 11.3l28.3 28.3-45.3 45.3-56.6-56.6-17-17c-3.1-3.1-8.2-3.1-11.3 0l-33.9 33.9c-3.1 3.1-3.1 8.2 0 11.3l17 17L424.8 223l17 17c3.1 3.1 8.2 3.1 11.3 0l33.9-34c3.1-3.1 3.1-8.2 0-11.3l-73.5-73.5 45.3-45.3 28.3 28.3c3.1 3.1 8.2 3.1 11.3 0l11.3-11.3c3.1-3.2 3.1-8.2 0-11.4z"] };
  3897. var faTable = { prefix: 'fas', iconName: 'table', icon: [512, 512, [], "f0ce", "M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64v-96h160v96zm0-160H64v-96h160v96zm224 160H288v-96h160v96zm0-160H288v-96h160v96z"] };
  3898. var faTableTennis = { prefix: 'fas', iconName: 'table-tennis', icon: [512, 512, [], "f45d", "M496.2 296.5C527.7 218.7 512 126.2 449 63.1 365.1-21 229-21 145.1 63.1l-56 56.1 211.5 211.5c46.1-62.1 131.5-77.4 195.6-34.2zm-217.9 79.7L57.9 155.9c-27.3 45.3-21.7 105 17.3 144.1l34.5 34.6L6.7 424c-8.6 7.5-9.1 20.7-1 28.8l53.4 53.5c8 8.1 21.2 7.6 28.7-1L177.1 402l35.7 35.7c19.7 19.7 44.6 30.5 70.3 33.3-7.1-17-11-35.6-11-55.1-.1-13.8 2.5-27 6.2-39.7zM416 320c-53 0-96 43-96 96s43 96 96 96 96-43 96-96-43-96-96-96z"] };
  3899. var faTablet = { prefix: 'fas', iconName: 'tablet', icon: [448, 512, [], "f10a", "M400 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM224 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3900. var faTabletAlt = { prefix: 'fas', iconName: 'tablet-alt', icon: [448, 512, [], "f3fa", "M400 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM224 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm176-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h328c6.6 0 12 5.4 12 12v312z"] };
  3901. var faTablets = { prefix: 'fas', iconName: 'tablets', icon: [640, 512, [], "f490", "M160 192C78.9 192 12.5 250.5.1 326.7c-.8 4.8 3.3 9.3 8.3 9.3h303.3c5 0 9.1-4.5 8.3-9.3C307.5 250.5 241.1 192 160 192zm151.6 176H8.4c-5 0-9.1 4.5-8.3 9.3C12.5 453.5 78.9 512 160 512s147.5-58.5 159.9-134.7c.8-4.8-3.3-9.3-8.3-9.3zM593.4 46.6c-56.5-56.5-144.2-61.4-206.9-16-4 2.9-4.3 8.9-.8 12.3L597 254.3c3.5 3.5 9.5 3.2 12.3-.8 45.5-62.7 40.6-150.4-15.9-206.9zM363 65.7c-3.5-3.5-9.5-3.2-12.3.8-45.4 62.7-40.5 150.4 15.9 206.9 56.5 56.5 144.2 61.4 206.9 15.9 4-2.9 4.3-8.9.8-12.3L363 65.7z"] };
  3902. var faTachometerAlt = { prefix: 'fas', iconName: 'tachometer-alt', icon: [576, 512, [], "f3fd", "M288 32C128.94 32 0 160.94 0 320c0 52.8 14.25 102.26 39.06 144.8 5.61 9.62 16.3 15.2 27.44 15.2h443c11.14 0 21.83-5.58 27.44-15.2C561.75 422.26 576 372.8 576 320c0-159.06-128.94-288-288-288zm0 64c14.71 0 26.58 10.13 30.32 23.65-1.11 2.26-2.64 4.23-3.45 6.67l-9.22 27.67c-5.13 3.49-10.97 6.01-17.64 6.01-17.67 0-32-14.33-32-32S270.33 96 288 96zM96 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm48-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm246.77-72.41l-61.33 184C343.13 347.33 352 364.54 352 384c0 11.72-3.38 22.55-8.88 32H232.88c-5.5-9.45-8.88-20.28-8.88-32 0-33.94 26.5-61.43 59.9-63.59l61.34-184.01c4.17-12.56 17.73-19.45 30.36-15.17 12.57 4.19 19.35 17.79 15.17 30.36zm14.66 57.2l15.52-46.55c3.47-1.29 7.13-2.23 11.05-2.23 17.67 0 32 14.33 32 32s-14.33 32-32 32c-11.38-.01-20.89-6.28-26.57-15.22zM480 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3903. var faTag = { prefix: 'fas', iconName: 'tag', icon: [512, 512, [], "f02b", "M0 252.118V48C0 21.49 21.49 0 48 0h204.118a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882L293.823 497.941c-18.745 18.745-49.137 18.745-67.882 0L14.059 286.059A48 48 0 0 1 0 252.118zM112 64c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z"] };
  3904. var faTags = { prefix: 'fas', iconName: 'tags', icon: [640, 512, [], "f02c", "M497.941 225.941L286.059 14.059A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v204.118a48 48 0 0 0 14.059 33.941l211.882 211.882c18.744 18.745 49.136 18.746 67.882 0l204.118-204.118c18.745-18.745 18.745-49.137 0-67.882zM112 160c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm513.941 133.823L421.823 497.941c-18.745 18.745-49.137 18.745-67.882 0l-.36-.36L527.64 323.522c16.999-16.999 26.36-39.6 26.36-63.64s-9.362-46.641-26.36-63.64L331.397 0h48.721a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882z"] };
  3905. var faTape = { prefix: 'fas', iconName: 'tape', icon: [640, 512, [], "f4db", "M224 192c-35.3 0-64 28.7-64 64s28.7 64 64 64 64-28.7 64-64-28.7-64-64-64zm400 224H380.6c41.5-40.7 67.4-97.3 67.4-160 0-123.7-100.3-224-224-224S0 132.3 0 256s100.3 224 224 224h400c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400-64c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z"] };
  3906. var faTasks = { prefix: 'fas', iconName: 'tasks', icon: [512, 512, [], "f0ae", "M208 132h288c8.8 0 16-7.2 16-16V76c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zM64 368c-26.5 0-48.6 21.5-48.6 48s22.1 48 48.6 48 48-21.5 48-48-21.5-48-48-48zm92.5-299l-72.2 72.2-15.6 15.6c-4.7 4.7-12.9 4.7-17.6 0L3.5 109.4c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.3c4.7-4.7 12.3-4.7 17 0l17 16.5c4.6 4.7 4.6 12.3-.1 17zm0 159.6l-72.2 72.2-15.7 15.7c-4.7 4.7-12.9 4.7-17.6 0L3.5 269c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.7c4.7-4.7 12.3-4.7 17 0l17 17c4.6 4.6 4.6 12.2-.1 16.9z"] };
  3907. var faTaxi = { prefix: 'fas', iconName: 'taxi', icon: [512, 512, [], "f1ba", "M462 241.64l-22-84.84c-9.6-35.2-41.6-60.8-76.8-60.8H352V64c0-17.67-14.33-32-32-32H192c-17.67 0-32 14.33-32 32v32h-11.2c-35.2 0-67.2 25.6-76.8 60.8l-22 84.84C21.41 248.04 0 273.47 0 304v48c0 23.63 12.95 44.04 32 55.12V448c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-40.88c19.05-11.09 32-31.5 32-55.12v-48c0-30.53-21.41-55.96-50-62.36zM96 352c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm20.55-112l17.2-66.36c2.23-8.16 9.59-13.64 15.06-13.64h214.4c5.47 0 12.83 5.48 14.85 12.86L395.45 240h-278.9zM416 352c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3908. var faTeeth = { prefix: 'fas', iconName: 'teeth', icon: [640, 512, [], "f62e", "M544 0H96C42.98 0 0 42.98 0 96v320c0 53.02 42.98 96 96 96h448c53.02 0 96-42.98 96-96V96c0-53.02-42.98-96-96-96zM160 368c0 26.51-21.49 48-48 48s-48-21.49-48-48v-64c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v64zm0-128c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-64c0-26.51 21.49-48 48-48s48 21.49 48 48v64zm144 120c0 30.93-25.07 56-56 56s-56-25.07-56-56v-56c0-8.84 7.16-16 16-16h80c8.84 0 16 7.16 16 16v56zm0-120c0 8.84-7.16 16-16 16h-80c-8.84 0-16-7.16-16-16v-88c0-30.93 25.07-56 56-56s56 25.07 56 56v88zm144 120c0 30.93-25.07 56-56 56s-56-25.07-56-56v-56c0-8.84 7.16-16 16-16h80c8.84 0 16 7.16 16 16v56zm0-120c0 8.84-7.16 16-16 16h-80c-8.84 0-16-7.16-16-16v-88c0-30.93 25.07-56 56-56s56 25.07 56 56v88zm128 128c0 26.51-21.49 48-48 48s-48-21.49-48-48v-64c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v64zm0-128c0 8.84-7.16 16-16 16h-64c-8.84 0-16-7.16-16-16v-64c0-26.51 21.49-48 48-48s48 21.49 48 48v64z"] };
  3909. var faTeethOpen = { prefix: 'fas', iconName: 'teeth-open', icon: [640, 512, [], "f62f", "M544 0H96C42.98 0 0 42.98 0 96v64c0 35.35 28.66 64 64 64h512c35.34 0 64-28.65 64-64V96c0-53.02-42.98-96-96-96zM160 176c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-32c0-26.51 21.49-48 48-48s48 21.49 48 48v32zm144 0c0 8.84-7.16 16-16 16h-80c-8.84 0-16-7.16-16-16v-56c0-30.93 25.07-56 56-56s56 25.07 56 56v56zm144 0c0 8.84-7.16 16-16 16h-80c-8.84 0-16-7.16-16-16v-56c0-30.93 25.07-56 56-56s56 25.07 56 56v56zm128 0c0 8.84-7.16 16-16 16h-64c-8.84 0-16-7.16-16-16v-32c0-26.51 21.49-48 48-48s48 21.49 48 48v32zm0 144H64c-35.34 0-64 28.65-64 64v32c0 53.02 42.98 96 96 96h448c53.02 0 96-42.98 96-96v-32c0-35.35-28.66-64-64-64zm-416 80c0 26.51-21.49 48-48 48s-48-21.49-48-48v-32c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v32zm144-8c0 30.93-25.07 56-56 56s-56-25.07-56-56v-24c0-8.84 7.16-16 16-16h80c8.84 0 16 7.16 16 16v24zm144 0c0 30.93-25.07 56-56 56s-56-25.07-56-56v-24c0-8.84 7.16-16 16-16h80c8.84 0 16 7.16 16 16v24zm128 8c0 26.51-21.49 48-48 48s-48-21.49-48-48v-32c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v32z"] };
  3910. var faTerminal = { prefix: 'fas', iconName: 'terminal', icon: [640, 512, [], "f120", "M257.981 272.971L63.638 467.314c-9.373 9.373-24.569 9.373-33.941 0L7.029 444.647c-9.357-9.357-9.375-24.522-.04-33.901L161.011 256 6.99 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L257.981 239.03c9.373 9.372 9.373 24.568 0 33.941zM640 456v-32c0-13.255-10.745-24-24-24H312c-13.255 0-24 10.745-24 24v32c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24z"] };
  3911. var faTextHeight = { prefix: 'fas', iconName: 'text-height', icon: [576, 512, [], "f034", "M16 32h288c8.837 0 16 7.163 16 16v96c0 8.837-7.163 16-16 16h-35.496c-8.837 0-16-7.163-16-16V96h-54.761v320H232c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H88c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h34.257V96H67.496v48c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16V48c0-8.837 7.163-16 16-16zm475.308 4.685l79.995 80.001C581.309 126.693 574.297 144 559.99 144H512v224h48c15.639 0 20.635 17.991 11.313 27.314l-79.995 80.001c-6.247 6.247-16.381 6.245-22.626 0l-79.995-80.001C378.691 385.307 385.703 368 400.01 368H448V144h-48c-15.639 0-20.635-17.991-11.313-27.314l79.995-80.001c6.247-6.248 16.381-6.245 22.626 0z"] };
  3912. var faTextWidth = { prefix: 'fas', iconName: 'text-width', icon: [448, 512, [], "f035", "M16 32h416c8.837 0 16 7.163 16 16v96c0 8.837-7.163 16-16 16h-35.496c-8.837 0-16-7.163-16-16V96H261.743v128H296c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H152c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h34.257V96H67.496v48c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16V48c0-8.837 7.163-16 16-16zm427.315 340.682l-80.001-79.995C353.991 283.365 336 288.362 336 304v48H112v-47.99c0-14.307-17.307-21.319-27.314-11.313L4.685 372.692c-6.245 6.245-6.247 16.379 0 22.626l80.001 79.995C94.009 484.635 112 479.638 112 464v-48h224v47.99c0 14.307 17.307 21.319 27.314 11.313l80.001-79.995c6.245-6.245 6.248-16.379 0-22.626z"] };
  3913. var faTh = { prefix: 'fas', iconName: 'th', icon: [512, 512, [], "f00a", "M149.333 56v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zm181.334 240v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm32-240v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24zm-32 80V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm-205.334 56H24c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm386.667-56H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm0 160H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zM181.333 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24z"] };
  3914. var faThLarge = { prefix: 'fas', iconName: 'th-large', icon: [512, 512, [], "f009", "M296 32h192c13.255 0 24 10.745 24 24v160c0 13.255-10.745 24-24 24H296c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24zm-80 0H24C10.745 32 0 42.745 0 56v160c0 13.255 10.745 24 24 24h192c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24zM0 296v160c0 13.255 10.745 24 24 24h192c13.255 0 24-10.745 24-24V296c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm296 184h192c13.255 0 24-10.745 24-24V296c0-13.255-10.745-24-24-24H296c-13.255 0-24 10.745-24 24v160c0 13.255 10.745 24 24 24z"] };
  3915. var faThList = { prefix: 'fas', iconName: 'th-list', icon: [512, 512, [], "f00b", "M149.333 216v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24v-80c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zM125.333 32H24C10.745 32 0 42.745 0 56v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24zm80 448H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm-24-424v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24zm24 264H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24z"] };
  3916. var faTheaterMasks = { prefix: 'fas', iconName: 'theater-masks', icon: [640, 512, [], "f630", "M206.86 245.15c-35.88 10.45-59.95 41.2-57.53 74.1 11.4-12.72 28.81-23.7 49.9-30.92l7.63-43.18zM95.81 295L64.08 115.49c-.29-1.62.28-2.62.24-2.65 57.76-32.06 123.12-49.01 189.01-49.01 1.61 0 3.23.17 4.85.19 13.95-13.47 31.73-22.83 51.59-26 18.89-3.02 38.05-4.55 57.18-5.32-9.99-13.95-24.48-24.23-41.77-27C301.27 1.89 277.24 0 253.32 0 176.66 0 101.02 19.42 33.2 57.06 9.03 70.48-3.92 98.48 1.05 126.58l31.73 179.51c14.23 80.52 136.33 142.08 204.45 142.08 3.59 0 6.75-.46 10.01-.8-13.52-17.08-28.94-40.48-39.5-67.58-47.61-12.98-106.06-51.62-111.93-84.79zm97.55-137.46c-.73-4.12-2.23-7.87-4.07-11.4-8.25 8.91-20.67 15.75-35.32 18.32-14.65 2.58-28.67.4-39.48-5.17-.52 3.94-.64 7.98.09 12.1 3.84 21.7 24.58 36.19 46.34 32.37 21.75-3.82 36.28-24.52 32.44-46.22zM606.8 120.9c-88.98-49.38-191.43-67.41-291.98-51.35-27.31 4.36-49.08 26.26-54.04 54.36l-31.73 179.51c-15.39 87.05 95.28 196.27 158.31 207.35 63.03 11.09 204.47-53.79 219.86-140.84l31.73-179.51c4.97-28.11-7.98-56.11-32.15-69.52zm-273.24 96.8c3.84-21.7 24.58-36.19 46.34-32.36 21.76 3.83 36.28 24.52 32.45 46.22-.73 4.12-2.23 7.87-4.07 11.4-8.25-8.91-20.67-15.75-35.32-18.32-14.65-2.58-28.67-.4-39.48 5.17-.53-3.95-.65-7.99.08-12.11zm70.47 198.76c-55.68-9.79-93.52-59.27-89.04-112.9 20.6 25.54 56.21 46.17 99.49 53.78 43.28 7.61 83.82.37 111.93-16.6-14.18 51.94-66.71 85.51-122.38 75.72zm130.3-151.34c-8.25-8.91-20.68-15.75-35.33-18.32-14.65-2.58-28.67-.4-39.48 5.17-.52-3.94-.64-7.98.09-12.1 3.84-21.7 24.58-36.19 46.34-32.37 21.75 3.83 36.28 24.52 32.45 46.22-.73 4.13-2.23 7.88-4.07 11.4z"] };
  3917. var faThermometer = { prefix: 'fas', iconName: 'thermometer', icon: [512, 512, [], "f491", "M476.8 20.4c-37.5-30.7-95.5-26.3-131.9 10.2l-45.7 46 50.5 50.5c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-50.4-50.5-45.1 45.4 50.3 50.4c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0L209 167.4l-45.1 45.4L214 263c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-50.1-50.2L96 281.1V382L7 471c-9.4 9.4-9.4 24.6 0 33.9 9.4 9.4 24.6 9.4 33.9 0l89-89h99.9L484 162.6c34.9-34.9 42.2-101.5-7.2-142.2z"] };
  3918. var faThermometerEmpty = { prefix: 'fas', iconName: 'thermometer-empty', icon: [256, 512, [], "f2cb", "M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-35.346 28.654-64 64-64s64 28.654 64 64zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"] };
  3919. var faThermometerFull = { prefix: 'fas', iconName: 'thermometer-full', icon: [256, 512, [], "f2c7", "M224 96c0-53.019-42.981-96-96-96S32 42.981 32 96v203.347C12.225 321.756.166 351.136.002 383.333c-.359 70.303 56.787 128.176 127.089 128.664.299.002.61.003.909.003 70.698 0 128-57.304 128-128 0-32.459-12.088-62.09-32-84.653V96zm-96 368l-.576-.002c-43.86-.304-79.647-36.544-79.423-80.42.173-33.98 19.266-51.652 31.999-66.08V96c0-26.467 21.533-48 48-48s48 21.533 48 48v221.498c12.63 14.312 32 32.164 32 66.502 0 44.112-35.888 80-80 80zm64-80c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V96c0-17.673 14.327-32 32-32s32 14.327 32 32v232.583c19.124 11.068 32 31.732 32 55.417z"] };
  3920. var faThermometerHalf = { prefix: 'fas', iconName: 'thermometer-half', icon: [256, 512, [], "f2c9", "M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V224c0-17.673 14.327-32 32-32s32 14.327 32 32v104.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"] };
  3921. var faThermometerQuarter = { prefix: 'fas', iconName: 'thermometer-quarter', icon: [256, 512, [], "f2ca", "M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V288c0-17.673 14.327-32 32-32s32 14.327 32 32v40.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"] };
  3922. var faThermometerThreeQuarters = { prefix: 'fas', iconName: 'thermometer-three-quarters', icon: [256, 512, [], "f2c8", "M192 384c0 35.346-28.654 64-64 64-35.346 0-64-28.654-64-64 0-23.685 12.876-44.349 32-55.417V160c0-17.673 14.327-32 32-32s32 14.327 32 32v168.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"] };
  3923. var faThumbsDown = { prefix: 'fas', iconName: 'thumbs-down', icon: [512, 512, [], "f165", "M0 56v240c0 13.255 10.745 24 24 24h80c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56zm40 200c0-13.255 10.745-24 24-24s24 10.745 24 24-10.745 24-24 24-24-10.745-24-24zm272 256c-20.183 0-29.485-39.293-33.931-57.795-5.206-21.666-10.589-44.07-25.393-58.902-32.469-32.524-49.503-73.967-89.117-113.111a11.98 11.98 0 0 1-3.558-8.521V59.901c0-6.541 5.243-11.878 11.783-11.998 15.831-.29 36.694-9.079 52.651-16.178C256.189 17.598 295.709.017 343.995 0h2.844c42.777 0 93.363.413 113.774 29.737 8.392 12.057 10.446 27.034 6.148 44.632 16.312 17.053 25.063 48.863 16.382 74.757 17.544 23.432 19.143 56.132 9.308 79.469l.11.11c11.893 11.949 19.523 31.259 19.439 49.197-.156 30.352-26.157 58.098-59.553 58.098H350.723C358.03 364.34 384 388.132 384 430.548 384 504 336 512 312 512z"] };
  3924. var faThumbsUp = { prefix: 'fas', iconName: 'thumbs-up', icon: [512, 512, [], "f164", "M104 224H24c-13.255 0-24 10.745-24 24v240c0 13.255 10.745 24 24 24h80c13.255 0 24-10.745 24-24V248c0-13.255-10.745-24-24-24zM64 472c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zM384 81.452c0 42.416-25.97 66.208-33.277 94.548h101.723c33.397 0 59.397 27.746 59.553 58.098.084 17.938-7.546 37.249-19.439 49.197l-.11.11c9.836 23.337 8.237 56.037-9.308 79.469 8.681 25.895-.069 57.704-16.382 74.757 4.298 17.598 2.244 32.575-6.148 44.632C440.202 511.587 389.616 512 346.839 512l-2.845-.001c-48.287-.017-87.806-17.598-119.56-31.725-15.957-7.099-36.821-15.887-52.651-16.178-6.54-.12-11.783-5.457-11.783-11.998v-213.77c0-3.2 1.282-6.271 3.558-8.521 39.614-39.144 56.648-80.587 89.117-113.111 14.804-14.832 20.188-37.236 25.393-58.902C282.515 39.293 291.817 0 312 0c24 0 72 8 72 81.452z"] };
  3925. var faThumbtack = { prefix: 'fas', iconName: 'thumbtack', icon: [384, 512, [], "f08d", "M298.028 214.267L285.793 96H328c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H56C42.745 0 32 10.745 32 24v48c0 13.255 10.745 24 24 24h42.207L85.972 214.267C37.465 236.82 0 277.261 0 328c0 13.255 10.745 24 24 24h136v104.007c0 1.242.289 2.467.845 3.578l24 48c2.941 5.882 11.364 5.893 14.311 0l24-48a8.008 8.008 0 0 0 .845-3.578V352h136c13.255 0 24-10.745 24-24-.001-51.183-37.983-91.42-85.973-113.733z"] };
  3926. var faTicketAlt = { prefix: 'fas', iconName: 'ticket-alt', icon: [576, 512, [], "f3ff", "M128 160h320v192H128V160zm400 96c0 26.51 21.49 48 48 48v96c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48v-96c26.51 0 48-21.49 48-48s-21.49-48-48-48v-96c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48v96c-26.51 0-48 21.49-48 48zm-48-104c0-13.255-10.745-24-24-24H120c-13.255 0-24 10.745-24 24v208c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V152z"] };
  3927. var faTimes = { prefix: 'fas', iconName: 'times', icon: [352, 512, [], "f00d", "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"] };
  3928. var faTimesCircle = { prefix: 'fas', iconName: 'times-circle', icon: [512, 512, [], "f057", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"] };
  3929. var faTint = { prefix: 'fas', iconName: 'tint', icon: [352, 512, [], "f043", "M205.22 22.09c-7.94-28.78-49.44-30.12-58.44 0C100.01 179.85 0 222.72 0 333.91 0 432.35 78.72 512 176 512s176-79.65 176-178.09c0-111.75-99.79-153.34-146.78-311.82zM176 448c-61.75 0-112-50.25-112-112 0-8.84 7.16-16 16-16s16 7.16 16 16c0 44.11 35.89 80 80 80 8.84 0 16 7.16 16 16s-7.16 16-16 16z"] };
  3930. var faTintSlash = { prefix: 'fas', iconName: 'tint-slash', icon: [640, 512, [], "f5c7", "M633.82 458.1L494.97 350.78c.52-5.57 1.03-11.16 1.03-16.87 0-111.76-99.79-153.34-146.78-311.82-7.94-28.78-49.44-30.12-58.44 0-15.52 52.34-36.87 91.96-58.49 125.68L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.36 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.41-6.97 4.16-17.02-2.82-22.45zM144 333.91C144 432.35 222.72 512 320 512c44.71 0 85.37-16.96 116.4-44.7L162.72 255.78c-11.41 23.5-18.72 48.35-18.72 78.13z"] };
  3931. var faTired = { prefix: 'fas', iconName: 'tired', icon: [496, 512, [], "f5c8", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm33.8 189.7l80-48c11.6-6.9 24 7.7 15.4 18L343.6 208l33.6 40.3c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.7-4.7-7.7-15.9 0-20.6zm-163-30c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.8 4.7 7.8 15.9 0 20.6l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3zM248 288c51.9 0 115.3 43.8 123.2 106.7 1.7 13.6-8 24.6-17.7 20.4-25.9-11.1-64.4-17.4-105.5-17.4s-79.6 6.3-105.5 17.4c-9.8 4.2-19.4-7-17.7-20.4C132.7 331.8 196.1 288 248 288z"] };
  3932. var faToggleOff = { prefix: 'fas', iconName: 'toggle-off', icon: [576, 512, [], "f204", "M384 64H192C85.961 64 0 149.961 0 256s85.961 192 192 192h192c106.039 0 192-85.961 192-192S490.039 64 384 64zM64 256c0-70.741 57.249-128 128-128 70.741 0 128 57.249 128 128 0 70.741-57.249 128-128 128-70.741 0-128-57.249-128-128zm320 128h-48.905c65.217-72.858 65.236-183.12 0-256H384c70.741 0 128 57.249 128 128 0 70.74-57.249 128-128 128z"] };
  3933. var faToggleOn = { prefix: 'fas', iconName: 'toggle-on', icon: [576, 512, [], "f205", "M576 256c0 106.039-85.961 192-192 192H192C85.961 448 0 362.039 0 256S85.961 64 192 64h192c106.039 0 192 85.961 192 192zM384 128c-70.741 0-128 57.249-128 128 0 70.741 57.249 128 128 128 70.741 0 128-57.249 128-128 0-70.741-57.249-128-128-128"] };
  3934. var faToiletPaper = { prefix: 'fas', iconName: 'toilet-paper', icon: [576, 512, [], "f71e", "M128 0C74.98 0 32 85.96 32 192v172.07c0 41.12-9.8 62.77-31.17 126.87C-2.62 501.3 5.09 512 16.01 512h280.92c13.77 0 26-8.81 30.36-21.88 12.83-38.48 24.71-72.4 24.71-126.05V192c0-83.6 23.67-153.52 60.44-192H128zM96 224c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm64 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm64 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm64 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zM480 0c-53.02 0-96 85.96-96 192s42.98 192 96 192 96-85.96 96-192S533.02 0 480 0zm0 256c-17.67 0-32-28.65-32-64s14.33-64 32-64 32 28.65 32 64-14.33 64-32 64z"] };
  3935. var faToolbox = { prefix: 'fas', iconName: 'toolbox', icon: [512, 512, [], "f552", "M502.63 214.63l-45.25-45.25c-6-6-14.14-9.37-22.63-9.37H384V80c0-26.51-21.49-48-48-48H176c-26.51 0-48 21.49-48 48v80H77.25c-8.49 0-16.62 3.37-22.63 9.37L9.37 214.63c-6 6-9.37 14.14-9.37 22.63V320h128v-16c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v16h128v-16c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v16h128v-82.75c0-8.48-3.37-16.62-9.37-22.62zM320 160H192V96h128v64zm64 208c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-16H192v16c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-16H0v96c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-96H384v16z"] };
  3936. var faTooth = { prefix: 'fas', iconName: 'tooth', icon: [448, 512, [], "f5c9", "M443.98 96.25c-11.01-45.22-47.11-82.06-92.01-93.72-32.19-8.36-63 5.1-89.14 24.33-3.25 2.39-6.96 3.73-10.5 5.48l28.32 18.21c7.42 4.77 9.58 14.67 4.8 22.11-4.46 6.95-14.27 9.86-22.11 4.8L162.83 12.84c-20.7-10.85-43.38-16.4-66.81-10.31-44.9 11.67-81 48.5-92.01 93.72-10.13 41.62-.42 80.81 21.5 110.43 23.36 31.57 32.68 68.66 36.29 107.35 4.4 47.16 10.33 94.16 20.94 140.32l7.8 33.95c3.19 13.87 15.49 23.7 29.67 23.7 13.97 0 26.15-9.55 29.54-23.16l34.47-138.42c4.56-18.32 20.96-31.16 39.76-31.16s35.2 12.85 39.76 31.16l34.47 138.42c3.39 13.61 15.57 23.16 29.54 23.16 14.18 0 26.48-9.83 29.67-23.7l7.8-33.95c10.61-46.15 16.53-93.16 20.94-140.32 3.61-38.7 12.93-75.78 36.29-107.35 21.95-29.61 31.66-68.8 21.53-110.43z"] };
  3937. var faTorah = { prefix: 'fas', iconName: 'torah', icon: [448, 512, [], "f6a0", "M448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM139.11 141.21c-2.77-4.41.4-10.14 5.6-10.14h53.08c.9 0 1.73-.46 2.21-1.22l34.4-54.76c2.6-4.13 8.61-4.13 11.21 0l34.4 54.76a2.61 2.61 0 0 0 2.21 1.22h53.08c5.2 0 8.37 5.73 5.6 10.14L314.01 184l26.88 42.79c2.77 4.4-.4 10.13-5.6 10.13h-53.08c-.9 0-1.73.46-2.21 1.22l-34.4 54.76c-2.6 4.13-8.61 4.13-11.21 0L200 238.15a2.61 2.61 0 0 0-2.21-1.22h-53.08c-5.2 0-8.37-5.73-5.6-10.13l26.88-42.8-26.88-42.79zM380.8 448H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64z"] };
  3938. var faToriiGate = { prefix: 'fas', iconName: 'torii-gate', icon: [512, 512, [], "f6a1", "M376.45 32h-240.9A303.17 303.17 0 0 1 0 0v96c0 17.67 14.33 32 32 32h32v64H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h48v240c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V256h256v240c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V256h48c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16h-48v-64h32c17.67 0 32-14.33 32-32V0a303.17 303.17 0 0 1-135.55 32zM128 128h96v64h-96v-64zm256 64h-96v-64h96v64z"] };
  3939. var faTractor = { prefix: 'fas', iconName: 'tractor', icon: [640, 512, [], "f722", "M528 336c-48.6 0-88 39.4-88 88s39.4 88 88 88 88-39.4 88-88-39.4-88-88-88zm0 112c-13.23 0-24-10.77-24-24s10.77-24 24-24 24 10.77 24 24-10.77 24-24 24zm80-288h-64v-40.2c0-14.12 4.7-27.76 13.15-38.84 4.42-5.8 3.55-14.06-1.32-19.49L534.2 37.3c-6.66-7.45-18.32-6.92-24.7.78C490.58 60.9 480 89.81 480 119.8V160H377.67L321.58 29.14A47.914 47.914 0 0 0 277.45 0H144c-26.47 0-48 21.53-48 48v146.52c-8.63-6.73-20.96-6.46-28.89 1.47L36 227.1c-8.59 8.59-8.59 22.52 0 31.11l5.06 5.06c-4.99 9.26-8.96 18.82-11.91 28.72H22c-12.15 0-22 9.85-22 22v44c0 12.15 9.85 22 22 22h7.14c2.96 9.91 6.92 19.46 11.91 28.73l-5.06 5.06c-8.59 8.59-8.59 22.52 0 31.11L67.1 476c8.59 8.59 22.52 8.59 31.11 0l5.06-5.06c9.26 4.99 18.82 8.96 28.72 11.91V490c0 12.15 9.85 22 22 22h44c12.15 0 22-9.85 22-22v-7.14c9.9-2.95 19.46-6.92 28.72-11.91l5.06 5.06c8.59 8.59 22.52 8.59 31.11 0l31.11-31.11c8.59-8.59 8.59-22.52 0-31.11l-5.06-5.06c4.99-9.26 8.96-18.82 11.91-28.72H330c12.15 0 22-9.85 22-22v-6h80.54c21.91-28.99 56.32-48 95.46-48 18.64 0 36.07 4.61 51.8 12.2l50.82-50.82c6-6 9.37-14.14 9.37-22.63V192c.01-17.67-14.32-32-31.99-32zM176 416c-44.18 0-80-35.82-80-80s35.82-80 80-80 80 35.82 80 80-35.82 80-80 80zm22-256h-38V64h106.89l41.15 96H198z"] };
  3940. var faTrademark = { prefix: 'fas', iconName: 'trademark', icon: [640, 512, [], "f25c", "M97.119 163.133H12c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h248.559c6.627 0 12 5.373 12 12v43.133c0 6.627-5.373 12-12 12H175.44V404c0 6.627-5.373 12-12 12h-54.322c-6.627 0-12-5.373-12-12V163.133zM329.825 96h65.425a12 12 0 0 1 11.346 8.093l43.759 127.068c7.161 20.588 16.111 52.812 16.111 52.812h.896s8.95-32.224 16.111-52.812l43.758-127.068A12 12 0 0 1 538.577 96h65.41a12 12 0 0 1 11.961 11.03l24.012 296c.567 6.987-4.951 12.97-11.961 12.97h-54.101a12 12 0 0 1-11.972-11.182l-9.082-132.93c-1.79-24.168 0-53.706 0-53.706h-.896s-10.741 33.566-17.902 53.706l-30.7 84.731a12 12 0 0 1-11.282 7.912h-50.302a12 12 0 0 1-11.282-7.912l-30.7-84.731c-7.161-20.14-17.903-53.706-17.903-53.706h-.895s1.79 29.538 0 53.706l-9.082 132.93c-.428 6.295-5.66 11.182-11.97 11.182H305.4c-7.017 0-12.536-5.994-11.959-12.987l24.425-296A11.999 11.999 0 0 1 329.825 96z"] };
  3941. var faTrafficLight = { prefix: 'fas', iconName: 'traffic-light', icon: [384, 512, [], "f637", "M384 192h-64v-37.88c37.2-13.22 64-48.38 64-90.12h-64V32c0-17.67-14.33-32-32-32H96C78.33 0 64 14.33 64 32v32H0c0 41.74 26.8 76.9 64 90.12V192H0c0 41.74 26.8 76.9 64 90.12V320H0c0 42.84 28.25 78.69 66.99 91.05C79.42 468.72 130.6 512 192 512s112.58-43.28 125.01-100.95C355.75 398.69 384 362.84 384 320h-64v-37.88c37.2-13.22 64-48.38 64-90.12zM192 416c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm0-128c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm0-128c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48z"] };
  3942. var faTrain = { prefix: 'fas', iconName: 'train', icon: [448, 512, [], "f238", "M448 96v256c0 51.815-61.624 96-130.022 96l62.98 49.721C386.905 502.417 383.562 512 376 512H72c-7.578 0-10.892-9.594-4.957-14.279L130.022 448C61.82 448 0 403.954 0 352V96C0 42.981 64 0 128 0h192c65 0 128 42.981 128 96zm-48 136V120c0-13.255-10.745-24-24-24H72c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24zm-176 64c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56z"] };
  3943. var faTransgender = { prefix: 'fas', iconName: 'transgender', icon: [384, 512, [], "f224", "M372 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7C198.5 104.1 172.2 96 144 96 64.5 96 0 160.5 0 240c0 68.5 47.9 125.9 112 140.4V408H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v28c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-28h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-27.6c64.1-14.6 112-71.9 112-140.4 0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V12c0-6.6-5.4-12-12-12zM144 320c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3944. var faTransgenderAlt = { prefix: 'fas', iconName: 'transgender-alt', icon: [480, 512, [], "f225", "M468 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7C294.5 104.1 268.2 96 240 96c-28.2 0-54.5 8.1-76.7 22.1l-16.5-16.5 19.8-19.8c4.7-4.7 4.7-12.3 0-17l-28.3-28.3c-4.7-4.7-12.3-4.7-17 0l-19.8 19.8-19-19 16.9-16.9C107.1 12.9 101.7 0 91 0H12C5.4 0 0 5.4 0 12v79c0 10.7 12.9 16 20.5 8.5l16.9-16.9 19 19-19.8 19.8c-4.7 4.7-4.7 12.3 0 17l28.3 28.3c4.7 4.7 12.3 4.7 17 0l19.8-19.8 16.5 16.5C104.1 185.5 96 211.8 96 240c0 68.5 47.9 125.9 112 140.4V408h-36c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v28c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-28h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-27.6c64.1-14.6 112-71.9 112-140.4 0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V12c0-6.6-5.4-12-12-12zM240 320c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3945. var faTrash = { prefix: 'fas', iconName: 'trash', icon: [448, 512, [], "f1f8", "M0 84V56c0-13.3 10.7-24 24-24h112l9.4-18.7c4-8.2 12.3-13.3 21.4-13.3h114.3c9.1 0 17.4 5.1 21.5 13.3L312 32h112c13.3 0 24 10.7 24 24v28c0 6.6-5.4 12-12 12H12C5.4 96 0 90.6 0 84zm415.2 56.7L394.8 467c-1.6 25.3-22.6 45-47.9 45H101.1c-25.3 0-46.3-19.7-47.9-45L32.8 140.7c-.4-6.9 5.1-12.7 12-12.7h358.5c6.8 0 12.3 5.8 11.9 12.7z"] };
  3946. var faTrashAlt = { prefix: 'fas', iconName: 'trash-alt', icon: [448, 512, [], "f2ed", "M0 84V56c0-13.3 10.7-24 24-24h112l9.4-18.7c4-8.2 12.3-13.3 21.4-13.3h114.3c9.1 0 17.4 5.1 21.5 13.3L312 32h112c13.3 0 24 10.7 24 24v28c0 6.6-5.4 12-12 12H12C5.4 96 0 90.6 0 84zm416 56v324c0 26.5-21.5 48-48 48H80c-26.5 0-48-21.5-48-48V140c0-6.6 5.4-12 12-12h360c6.6 0 12 5.4 12 12zm-272 68c0-8.8-7.2-16-16-16s-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208zm96 0c0-8.8-7.2-16-16-16s-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208zm96 0c0-8.8-7.2-16-16-16s-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208z"] };
  3947. var faTree = { prefix: 'fas', iconName: 'tree', icon: [384, 512, [], "f1bb", "M378.31 378.49L298.42 288h30.63c9.01 0 16.98-5 20.78-13.06 3.8-8.04 2.55-17.26-3.28-24.05L268.42 160h28.89c9.1 0 17.3-5.35 20.86-13.61 3.52-8.13 1.86-17.59-4.24-24.08L203.66 4.83c-6.03-6.45-17.28-6.45-23.32 0L70.06 122.31c-6.1 6.49-7.75 15.95-4.24 24.08C69.38 154.65 77.59 160 86.69 160h28.89l-78.14 90.91c-5.81 6.78-7.06 15.99-3.27 24.04C37.97 283 45.93 288 54.95 288h30.63L5.69 378.49c-6 6.79-7.36 16.09-3.56 24.26 3.75 8.05 12 13.25 21.01 13.25H160v24.45l-30.29 48.4c-5.32 10.64 2.42 23.16 14.31 23.16h95.96c11.89 0 19.63-12.52 14.31-23.16L224 440.45V416h136.86c9.01 0 17.26-5.2 21.01-13.25 3.8-8.17 2.44-17.47-3.56-24.26z"] };
  3948. var faTrophy = { prefix: 'fas', iconName: 'trophy', icon: [576, 512, [], "f091", "M552 64H448V24c0-13.3-10.7-24-24-24H152c-13.3 0-24 10.7-24 24v40H24C10.7 64 0 74.7 0 88v56c0 35.7 22.5 72.4 61.9 100.7 31.5 22.7 69.8 37.1 110 41.7C203.3 338.5 240 360 240 360v72h-48c-35.3 0-64 20.7-64 56v12c0 6.6 5.4 12 12 12h296c6.6 0 12-5.4 12-12v-12c0-35.3-28.7-56-64-56h-48v-72s36.7-21.5 68.1-73.6c40.3-4.6 78.6-19 110-41.7 39.3-28.3 61.9-65 61.9-100.7V88c0-13.3-10.7-24-24-24zM99.3 192.8C74.9 175.2 64 155.6 64 144v-16h64.2c1 32.6 5.8 61.2 12.8 86.2-15.1-5.2-29.2-12.4-41.7-21.4zM512 144c0 16.1-17.7 36.1-35.3 48.8-12.5 9-26.7 16.2-41.8 21.4 7-25 11.8-53.6 12.8-86.2H512v16z"] };
  3949. var faTruck = { prefix: 'fas', iconName: 'truck', icon: [640, 512, [], "f0d1", "M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h16c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm320 0c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"] };
  3950. var faTruckLoading = { prefix: 'fas', iconName: 'truck-loading', icon: [640, 512, [], "f4de", "M50.2 375.6c2.3 8.5 11.1 13.6 19.6 11.3l216.4-58c8.5-2.3 13.6-11.1 11.3-19.6l-49.7-185.5c-2.3-8.5-11.1-13.6-19.6-11.3L151 133.3l24.8 92.7-61.8 16.5-24.8-92.7-77.3 20.7C3.4 172.8-1.7 181.6.6 190.1l49.6 185.5zM384 0c-17.7 0-32 14.3-32 32v323.6L5.9 450c-4.3 1.2-6.8 5.6-5.6 9.8l12.6 46.3c1.2 4.3 5.6 6.8 9.8 5.6l393.7-107.4C418.8 464.1 467.6 512 528 512c61.9 0 112-50.1 112-112V0H384zm144 448c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"] };
  3951. var faTruckMonster = { prefix: 'fas', iconName: 'truck-monster', icon: [640, 512, [], "f63b", "M624 224h-16v-64c0-17.67-14.33-32-32-32h-73.6L419.22 24.02A64.025 64.025 0 0 0 369.24 0H256c-17.67 0-32 14.33-32 32v96H48c-8.84 0-16 7.16-16 16v80H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16.72c29.21-38.65 75.1-64 127.28-64s98.07 25.35 127.28 64h65.45c29.21-38.65 75.1-64 127.28-64s98.07 25.35 127.28 64H624c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-336-96V64h81.24l51.2 64H288zm304 224h-5.2c-2.2-7.33-5.07-14.28-8.65-20.89l3.67-3.67c6.25-6.25 6.25-16.38 0-22.63l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0l-3.67 3.67A110.85 110.85 0 0 0 512 277.2V272c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v5.2c-7.33 2.2-14.28 5.07-20.89 8.65l-3.67-3.67c-6.25-6.25-16.38-6.25-22.63 0l-22.63 22.63c-6.25 6.25-6.25 16.38 0 22.63l3.67 3.67A110.85 110.85 0 0 0 373.2 352H368c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h5.2c2.2 7.33 5.07 14.28 8.65 20.89l-3.67 3.67c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l3.67-3.67c6.61 3.57 13.57 6.45 20.9 8.65v5.2c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-5.2c7.33-2.2 14.28-5.07 20.9-8.65l3.67 3.67c6.25 6.25 16.38 6.25 22.63 0l22.63-22.63c6.25-6.25 6.25-16.38 0-22.63l-3.67-3.67a110.85 110.85 0 0 0 8.65-20.89h5.2c8.84 0 16-7.16 16-16v-32c-.02-8.84-7.18-16-16.02-16zm-112 80c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm-208-80h-5.2c-2.2-7.33-5.07-14.28-8.65-20.89l3.67-3.67c6.25-6.25 6.25-16.38 0-22.63l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0l-3.67 3.67A110.85 110.85 0 0 0 192 277.2V272c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v5.2c-7.33 2.2-14.28 5.07-20.89 8.65l-3.67-3.67c-6.25-6.25-16.38-6.25-22.63 0L58.18 304.8c-6.25 6.25-6.25 16.38 0 22.63l3.67 3.67a110.85 110.85 0 0 0-8.65 20.89H48c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h5.2c2.2 7.33 5.07 14.28 8.65 20.89l-3.67 3.67c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l3.67-3.67c6.61 3.57 13.57 6.45 20.9 8.65v5.2c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-5.2c7.33-2.2 14.28-5.07 20.9-8.65l3.67 3.67c6.25 6.25 16.38 6.25 22.63 0l22.63-22.63c6.25-6.25 6.25-16.38 0-22.63l-3.67-3.67a110.85 110.85 0 0 0 8.65-20.89h5.2c8.84 0 16-7.16 16-16v-32C288 359.16 280.84 352 272 352zm-112 80c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48z"] };
  3952. var faTruckMoving = { prefix: 'fas', iconName: 'truck-moving', icon: [640, 512, [], "f4df", "M621.3 237.3l-58.5-58.5c-12-12-28.3-18.7-45.3-18.7H480V64c0-17.7-14.3-32-32-32H32C14.3 32 0 46.3 0 64v336c0 44.2 35.8 80 80 80 26.3 0 49.4-12.9 64-32.4 14.6 19.6 37.7 32.4 64 32.4 44.2 0 80-35.8 80-80 0-5.5-.6-10.8-1.6-16h163.2c-1.1 5.2-1.6 10.5-1.6 16 0 44.2 35.8 80 80 80s80-35.8 80-80c0-5.5-.6-10.8-1.6-16H624c8.8 0 16-7.2 16-16v-85.5c0-17-6.7-33.2-18.7-45.2zM80 432c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32zm128 0c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32zm272-224h37.5c4.3 0 8.3 1.7 11.3 4.7l43.3 43.3H480v-48zm48 224c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32z"] };
  3953. var faTruckPickup = { prefix: 'fas', iconName: 'truck-pickup', icon: [640, 512, [], "f63c", "M624 288h-16v-64c0-17.67-14.33-32-32-32h-48L419.22 56.02A64.025 64.025 0 0 0 369.24 32H256c-17.67 0-32 14.33-32 32v128H64c-17.67 0-32 14.33-32 32v64H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h49.61c-.76 5.27-1.61 10.52-1.61 16 0 61.86 50.14 112 112 112s112-50.14 112-112c0-5.48-.85-10.73-1.61-16h67.23c-.76 5.27-1.61 10.52-1.61 16 0 61.86 50.14 112 112 112s112-50.14 112-112c0-5.48-.85-10.73-1.61-16H624c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM288 96h81.24l76.8 96H288V96zM176 416c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48zm288 0c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48z"] };
  3954. var faTshirt = { prefix: 'fas', iconName: 'tshirt', icon: [640, 512, [], "f553", "M631.2 96.5L436.5 0C416.4 27.8 371.9 47.2 320 47.2S223.6 27.8 203.5 0L8.8 96.5c-7.9 4-11.1 13.6-7.2 21.5l57.2 114.5c4 7.9 13.6 11.1 21.5 7.2l56.6-27.7c10.6-5.2 23 2.5 23 14.4V480c0 17.7 14.3 32 32 32h256c17.7 0 32-14.3 32-32V226.3c0-11.8 12.4-19.6 23-14.4l56.6 27.7c7.9 4 17.5.8 21.5-7.2L638.3 118c4-7.9.8-17.6-7.1-21.5z"] };
  3955. var faTty = { prefix: 'fas', iconName: 'tty', icon: [512, 512, [], "f1e4", "M5.37 103.822c138.532-138.532 362.936-138.326 501.262 0 6.078 6.078 7.074 15.496 2.583 22.681l-43.214 69.138a18.332 18.332 0 0 1-22.356 7.305l-86.422-34.569a18.335 18.335 0 0 1-11.434-18.846L351.741 90c-62.145-22.454-130.636-21.986-191.483 0l5.953 59.532a18.331 18.331 0 0 1-11.434 18.846l-86.423 34.568a18.334 18.334 0 0 1-22.356-7.305L2.787 126.502a18.333 18.333 0 0 1 2.583-22.68zM96 308v-40c0-6.627-5.373-12-12-12H44c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12H92c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zM96 500v-40c0-6.627-5.373-12-12-12H44c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm288 0v-40c0-6.627-5.373-12-12-12H140c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h232c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12z"] };
  3956. var faTv = { prefix: 'fas', iconName: 'tv', icon: [640, 512, [], "f26c", "M592 0H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h245.1v32h-160c-17.7 0-32 14.3-32 32s14.3 32 32 32h384c17.7 0 32-14.3 32-32s-14.3-32-32-32h-160v-32H592c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-16 352H64V64h512v288z"] };
  3957. var faUmbrella = { prefix: 'fas', iconName: 'umbrella', icon: [576, 512, [], "f0e9", "M557.011 267.631c-51.432-45.217-107.572-43.698-158.567 30.731-5.298 7.861-14.906 7.165-19.736 0-2.483-3.624-32.218-60.808-90.708-60.808-45.766 0-70.542 31.378-90.709 60.808-4.829 7.165-14.436 7.861-19.734 0-50.904-74.285-106.613-76.406-158.567-30.731-10.21 8.264-20.912-1.109-18.696-9.481C32.146 134.573 158.516 64.612 288.001 64.612c128.793 0 256.546 69.961 287.706 193.538 2.206 8.322-8.426 17.793-18.696 9.481zM256 261.001V416c0 17.645-14.355 32-32 32s-32-14.355-32-32c0-17.673-14.327-32-32-32s-32 14.327-32 32c0 52.935 43.065 96 96 96s96-43.065 96-96V261.288c-21.836-10.806-45.425-9.737-64-.287zm64-211.007V32c0-17.673-14.327-32-32-32s-32 14.327-32 32v17.987a372.105 372.105 0 0 1 64 .007z"] };
  3958. var faUmbrellaBeach = { prefix: 'fas', iconName: 'umbrella-beach', icon: [640, 512, [], "f5ca", "M115.38 136.9l102.11 37.18c35.19-81.54 86.21-144.29 139-173.7-95.88-4.89-188.78 36.96-248.53 111.8-6.69 8.4-2.66 21.05 7.42 24.72zm132.25 48.16l238.48 86.83c35.76-121.38 18.7-231.66-42.63-253.98-7.4-2.7-15.13-4-23.09-4-58.02.01-128.27 69.17-172.76 171.15zM521.48 60.5c6.22 16.3 10.83 34.6 13.2 55.19 5.74 49.89-1.42 108.23-18.95 166.98l102.62 37.36c10.09 3.67 21.31-3.43 21.57-14.17 2.32-95.69-41.91-187.44-118.44-245.36zM560 447.98H321.06L386 269.5l-60.14-21.9-72.9 200.37H16c-8.84 0-16 7.16-16 16.01v32.01C0 504.83 7.16 512 16 512h544c8.84 0 16-7.17 16-16.01v-32.01c0-8.84-7.16-16-16-16z"] };
  3959. var faUnderline = { prefix: 'fas', iconName: 'underline', icon: [448, 512, [], "f0cd", "M224.264 388.24c-91.669 0-156.603-51.165-156.603-151.392V64H39.37c-8.837 0-16-7.163-16-16V16c0-8.837 7.163-16 16-16h137.39c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-28.813v172.848c0 53.699 28.314 79.444 76.317 79.444 46.966 0 75.796-25.434 75.796-79.965V64h-28.291c-8.837 0-16-7.163-16-16V16c0-8.837 7.163-16 16-16h136.868c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-28.291v172.848c0 99.405-64.881 151.392-156.082 151.392zM16 448h416c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16z"] };
  3960. var faUndo = { prefix: 'fas', iconName: 'undo', icon: [512, 512, [], "f0e2", "M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"] };
  3961. var faUndoAlt = { prefix: 'fas', iconName: 'undo-alt', icon: [512, 512, [], "f2ea", "M255.545 8c-66.269.119-126.438 26.233-170.86 68.685L48.971 40.971C33.851 25.851 8 36.559 8 57.941V192c0 13.255 10.745 24 24 24h134.059c21.382 0 32.09-25.851 16.971-40.971l-41.75-41.75c30.864-28.899 70.801-44.907 113.23-45.273 92.398-.798 170.283 73.977 169.484 169.442C423.236 348.009 349.816 424 256 424c-41.127 0-79.997-14.678-110.63-41.556-4.743-4.161-11.906-3.908-16.368.553L89.34 422.659c-4.872 4.872-4.631 12.815.482 17.433C133.798 479.813 192.074 504 256 504c136.966 0 247.999-111.033 248-247.998C504.001 119.193 392.354 7.755 255.545 8z"] };
  3962. var faUniversalAccess = { prefix: 'fas', iconName: 'universal-access', icon: [512, 512, [], "f29a", "M256 48c114.953 0 208 93.029 208 208 0 114.953-93.029 208-208 208-114.953 0-208-93.029-208-208 0-114.953 93.029-208 208-208m0-40C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 56C149.961 64 64 149.961 64 256s85.961 192 192 192 192-85.961 192-192S362.039 64 256 64zm0 44c19.882 0 36 16.118 36 36s-16.118 36-36 36-36-16.118-36-36 16.118-36 36-36zm117.741 98.023c-28.712 6.779-55.511 12.748-82.14 15.807.851 101.023 12.306 123.052 25.037 155.621 3.617 9.26-.957 19.698-10.217 23.315-9.261 3.617-19.699-.957-23.316-10.217-8.705-22.308-17.086-40.636-22.261-78.549h-9.686c-5.167 37.851-13.534 56.208-22.262 78.549-3.615 9.255-14.05 13.836-23.315 10.217-9.26-3.617-13.834-14.056-10.217-23.315 12.713-32.541 24.185-54.541 25.037-155.621-26.629-3.058-53.428-9.027-82.141-15.807-8.6-2.031-13.926-10.648-11.895-19.249s10.647-13.926 19.249-11.895c96.686 22.829 124.283 22.783 220.775 0 8.599-2.03 17.218 3.294 19.249 11.895 2.029 8.601-3.297 17.219-11.897 19.249z"] };
  3963. var faUniversity = { prefix: 'fas', iconName: 'university', icon: [512, 512, [], "f19c", "M496 128v16a8 8 0 0 1-8 8h-24v12c0 6.627-5.373 12-12 12H60c-6.627 0-12-5.373-12-12v-12H24a8 8 0 0 1-8-8v-16a8 8 0 0 1 4.941-7.392l232-88a7.996 7.996 0 0 1 6.118 0l232 88A8 8 0 0 1 496 128zm-24 304H40c-13.255 0-24 10.745-24 24v16a8 8 0 0 0 8 8h464a8 8 0 0 0 8-8v-16c0-13.255-10.745-24-24-24zM96 192v192H60c-6.627 0-12 5.373-12 12v20h416v-20c0-6.627-5.373-12-12-12h-36V192h-64v192h-64V192h-64v192h-64V192H96z"] };
  3964. var faUnlink = { prefix: 'fas', iconName: 'unlink', icon: [512, 512, [], "f127", "M304.083 405.907c4.686 4.686 4.686 12.284 0 16.971l-44.674 44.674c-59.263 59.262-155.693 59.266-214.961 0-59.264-59.265-59.264-155.696 0-214.96l44.675-44.675c4.686-4.686 12.284-4.686 16.971 0l39.598 39.598c4.686 4.686 4.686 12.284 0 16.971l-44.675 44.674c-28.072 28.073-28.072 73.75 0 101.823 28.072 28.072 73.75 28.073 101.824 0l44.674-44.674c4.686-4.686 12.284-4.686 16.971 0l39.597 39.598zm-56.568-260.216c4.686 4.686 12.284 4.686 16.971 0l44.674-44.674c28.072-28.075 73.75-28.073 101.824 0 28.072 28.073 28.072 73.75 0 101.823l-44.675 44.674c-4.686 4.686-4.686 12.284 0 16.971l39.598 39.598c4.686 4.686 12.284 4.686 16.971 0l44.675-44.675c59.265-59.265 59.265-155.695 0-214.96-59.266-59.264-155.695-59.264-214.961 0l-44.674 44.674c-4.686 4.686-4.686 12.284 0 16.971l39.597 39.598zm234.828 359.28l22.627-22.627c9.373-9.373 9.373-24.569 0-33.941L63.598 7.029c-9.373-9.373-24.569-9.373-33.941 0L7.029 29.657c-9.373 9.373-9.373 24.569 0 33.941l441.373 441.373c9.373 9.372 24.569 9.372 33.941 0z"] };
  3965. var faUnlock = { prefix: 'fas', iconName: 'unlock', icon: [448, 512, [], "f09c", "M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z"] };
  3966. var faUnlockAlt = { prefix: 'fas', iconName: 'unlock-alt', icon: [448, 512, [], "f13e", "M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zM264 408c0 22.1-17.9 40-40 40s-40-17.9-40-40v-48c0-22.1 17.9-40 40-40s40 17.9 40 40v48z"] };
  3967. var faUpload = { prefix: 'fas', iconName: 'upload', icon: [512, 512, [], "f093", "M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"] };
  3968. var faUser = { prefix: 'fas', iconName: 'user', icon: [448, 512, [], "f007", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"] };
  3969. var faUserAlt = { prefix: 'fas', iconName: 'user-alt', icon: [512, 512, [], "f406", "M256 288c79.5 0 144-64.5 144-144S335.5 0 256 0 112 64.5 112 144s64.5 144 144 144zm128 32h-55.1c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16H128C57.3 320 0 377.3 0 448v16c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48v-16c0-70.7-57.3-128-128-128z"] };
  3970. var faUserAltSlash = { prefix: 'fas', iconName: 'user-alt-slash', icon: [640, 512, [], "f4fa", "M633.8 458.1L389.6 269.3C433.8 244.7 464 198.1 464 144 464 64.5 399.5 0 320 0c-67.1 0-123 46.1-139 108.2L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3zM198.4 320C124.2 320 64 380.2 64 454.4v9.6c0 26.5 21.5 48 48 48h382.2L245.8 320h-47.4z"] };
  3971. var faUserAstronaut = { prefix: 'fas', iconName: 'user-astronaut', icon: [448, 512, [], "f4fb", "M64 224h13.5c24.7 56.5 80.9 96 146.5 96s121.8-39.5 146.5-96H384c8.8 0 16-7.2 16-16v-96c0-8.8-7.2-16-16-16h-13.5C345.8 39.5 289.6 0 224 0S102.2 39.5 77.5 96H64c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16zm40-88c0-22.1 21.5-40 48-40h144c26.5 0 48 17.9 48 40v24c0 53-43 96-96 96h-48c-53 0-96-43-96-96v-24zm72 72l12-36 36-12-36-12-12-36-12 36-36 12 36 12 12 36zm151.6 113.4C297.7 340.7 262.2 352 224 352s-73.7-11.3-103.6-30.6C52.9 328.5 0 385 0 454.4v9.6c0 26.5 21.5 48 48 48h80v-64c0-17.7 14.3-32 32-32h128c17.7 0 32 14.3 32 32v64h80c26.5 0 48-21.5 48-48v-9.6c0-69.4-52.9-125.9-120.4-133zM272 448c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16zm-96 0c-8.8 0-16 7.2-16 16v48h32v-48c0-8.8-7.2-16-16-16z"] };
  3972. var faUserCheck = { prefix: 'fas', iconName: 'user-check', icon: [640, 512, [], "f4fc", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4zm323-128.4l-27.8-28.1c-4.6-4.7-12.1-4.7-16.8-.1l-104.8 104-45.5-45.8c-4.6-4.7-12.1-4.7-16.8-.1l-28.1 27.9c-4.7 4.6-4.7 12.1-.1 16.8l81.7 82.3c4.6 4.7 12.1 4.7 16.8.1l141.3-140.2c4.6-4.7 4.7-12.2.1-16.8z"] };
  3973. var faUserCircle = { prefix: 'fas', iconName: 'user-circle', icon: [496, 512, [], "f2bd", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 96c48.6 0 88 39.4 88 88s-39.4 88-88 88-88-39.4-88-88 39.4-88 88-88zm0 344c-58.7 0-111.3-26.6-146.5-68.2 18.8-35.4 55.6-59.8 98.5-59.8 2.4 0 4.8.4 7.1 1.1 13 4.2 26.6 6.9 40.9 6.9 14.3 0 28-2.7 40.9-6.9 2.3-.7 4.7-1.1 7.1-1.1 42.9 0 79.7 24.4 98.5 59.8C359.3 421.4 306.7 448 248 448z"] };
  3974. var faUserClock = { prefix: 'fas', iconName: 'user-clock', icon: [640, 512, [], "f4fd", "M496 224c-79.6 0-144 64.4-144 144s64.4 144 144 144 144-64.4 144-144-64.4-144-144-144zm64 150.3c0 5.3-4.4 9.7-9.7 9.7h-60.6c-5.3 0-9.7-4.4-9.7-9.7v-76.6c0-5.3 4.4-9.7 9.7-9.7h12.6c5.3 0 9.7 4.4 9.7 9.7V352h38.3c5.3 0 9.7 4.4 9.7 9.7v12.6zM320 368c0-27.8 6.7-54.1 18.2-77.5-8-1.5-16.2-2.5-24.6-2.5h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h347.1c-45.3-31.9-75.1-84.5-75.1-144zm-96-112c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128z"] };
  3975. var faUserCog = { prefix: 'fas', iconName: 'user-cog', icon: [640, 512, [], "f4fe", "M610.5 373.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-7.1-22.3-5-45-4.8-66.2 0-3.3.7-5.7 3.7-5.7 7.1v29.8c-13.5 4.8-26 12-36.9 21.3l-25.8-14.9c-2.9-1.7-6.7-1.1-9 1.4-15 16.2-26.5 35.8-33.2 57.4-1 3.3.4 6.8 3.3 8.5l25.8 14.9c-2.6 14.1-2.6 28.5 0 42.6l-25.8 14.9c-3 1.7-4.3 5.2-3.3 8.5 6.7 21.6 18.2 41.1 33.2 57.4 2.3 2.5 6 3.1 9 1.4l25.8-14.9c10.9 9.3 23.4 16.5 36.9 21.3v29.8c0 3.4 2.4 6.4 5.7 7.1 22.3 5 45 4.8 66.2 0 3.3-.7 5.7-3.7 5.7-7.1v-29.8c13.5-4.8 26-12 36.9-21.3l25.8 14.9c2.9 1.7 6.7 1.1 9-1.4 15-16.2 26.5-35.8 33.2-57.4 1-3.3-.4-6.8-3.3-8.5l-25.8-14.9zM496 400.5c-26.8 0-48.5-21.8-48.5-48.5s21.8-48.5 48.5-48.5 48.5 21.8 48.5 48.5-21.7 48.5-48.5 48.5zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm201.2 226.5c-2.3-1.2-4.6-2.6-6.8-3.9l-7.9 4.6c-6 3.4-12.8 5.3-19.6 5.3-10.9 0-21.4-4.6-28.9-12.6-18.3-19.8-32.3-43.9-40.2-69.6-5.5-17.7 1.9-36.4 17.9-45.7l7.9-4.6c-.1-2.6-.1-5.2 0-7.8l-7.9-4.6c-16-9.2-23.4-28-17.9-45.7.9-2.9 2.2-5.8 3.2-8.7-3.8-.3-7.5-1.2-11.4-1.2h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c10.1 0 19.5-3.2 27.2-8.5-1.2-3.8-2-7.7-2-11.8v-9.2z"] };
  3976. var faUserEdit = { prefix: 'fas', iconName: 'user-edit', icon: [640, 512, [], "f4ff", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h274.9c-2.4-6.8-3.4-14-2.6-21.3l6.8-60.9 1.2-11.1 7.9-7.9 77.3-77.3c-24.5-27.7-60-45.5-99.9-45.5zm45.3 145.3l-6.8 61c-1.1 10.2 7.5 18.8 17.6 17.6l60.9-6.8 137.9-137.9-71.7-71.7-137.9 137.8zM633 268.9L595.1 231c-9.3-9.3-24.5-9.3-33.8 0l-37.8 37.8-4.1 4.1 71.8 71.7 41.8-41.8c9.3-9.4 9.3-24.5 0-33.9z"] };
  3977. var faUserFriends = { prefix: 'fas', iconName: 'user-friends', icon: [640, 512, [], "f500", "M192 256c61.9 0 112-50.1 112-112S253.9 32 192 32 80 82.1 80 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C51.6 288 0 339.6 0 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zM480 256c53 0 96-43 96-96s-43-96-96-96-96 43-96 96 43 96 96 96zm48 32h-3.8c-13.9 4.8-28.6 8-44.2 8s-30.3-3.2-44.2-8H432c-20.4 0-39.2 5.9-55.7 15.4 24.4 26.3 39.7 61.2 39.7 99.8v38.4c0 2.2-.5 4.3-.6 6.4H592c26.5 0 48-21.5 48-48 0-61.9-50.1-112-112-112z"] };
  3978. var faUserGraduate = { prefix: 'fas', iconName: 'user-graduate', icon: [448, 512, [], "f501", "M319.4 320.6L224 416l-95.4-95.4C57.1 323.7 0 382.2 0 454.4v9.6c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-9.6c0-72.2-57.1-130.7-128.6-133.8zM13.6 79.8l6.4 1.5v58.4c-7 4.2-12 11.5-12 20.3 0 8.4 4.6 15.4 11.1 19.7L3.5 242c-1.7 6.9 2.1 14 7.6 14h41.8c5.5 0 9.3-7.1 7.6-14l-15.6-62.3C51.4 175.4 56 168.4 56 160c0-8.8-5-16.1-12-20.3V87.1l66 15.9c-8.6 17.2-14 36.4-14 57 0 70.7 57.3 128 128 128s128-57.3 128-128c0-20.6-5.3-39.8-14-57l96.3-23.2c18.2-4.4 18.2-27.1 0-31.5l-190.4-46c-13-3.1-26.7-3.1-39.7 0L13.6 48.2c-18.1 4.4-18.1 27.2 0 31.6z"] };
  3979. var faUserInjured = { prefix: 'fas', iconName: 'user-injured', icon: [448, 512, [], "f728", "M277.37 11.98C261.08 4.47 243.11 0 224 0c-53.69 0-99.5 33.13-118.51 80h81.19l90.69-68.02zM342.51 80c-7.9-19.47-20.67-36.2-36.49-49.52L239.99 80h102.52zM224 256c70.69 0 128-57.31 128-128 0-5.48-.95-10.7-1.61-16H97.61c-.67 5.3-1.61 10.52-1.61 16 0 70.69 57.31 128 128 128zM80 299.7V512h128.26l-98.45-221.52A132.835 132.835 0 0 0 80 299.7zM0 464c0 26.51 21.49 48 48 48V320.24C18.88 344.89 0 381.26 0 422.4V464zm256-48h-55.38l42.67 96H256c26.47 0 48-21.53 48-48s-21.53-48-48-48zm57.6-128h-16.71c-22.24 10.18-46.88 16-72.89 16s-50.65-5.82-72.89-16h-7.37l42.67 96H256c44.11 0 80 35.89 80 80 0 18.08-6.26 34.59-16.41 48H400c26.51 0 48-21.49 48-48v-41.6c0-74.23-60.17-134.4-134.4-134.4z"] };
  3980. var faUserLock = { prefix: 'fas', iconName: 'user-lock', icon: [640, 512, [], "f502", "M320 320c0-11.1 3.1-21.4 8.1-30.5-4.8-.5-9.5-1.5-14.5-1.5h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h280.9c-5.5-9.5-8.9-20.3-8.9-32V320zm-96-64c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm384 32h-32v-48c0-44.2-35.8-80-80-80s-80 35.8-80 80v48h-32c-17.7 0-32 14.3-32 32v160c0 17.7 14.3 32 32 32h224c17.7 0 32-14.3 32-32V320c0-17.7-14.3-32-32-32zm-80 0h-64v-48c0-17.6 14.4-32 32-32s32 14.4 32 32v48z"] };
  3981. var faUserMd = { prefix: 'fas', iconName: 'user-md', icon: [448, 512, [], "f0f0", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zM104 424c0 13.3 10.7 24 24 24s24-10.7 24-24-10.7-24-24-24-24 10.7-24 24zm216-135.4v49c36.5 7.4 64 39.8 64 78.4v41.7c0 7.6-5.4 14.2-12.9 15.7l-32.2 6.4c-4.3.9-8.5-1.9-9.4-6.3l-3.1-15.7c-.9-4.3 1.9-8.6 6.3-9.4l19.3-3.9V416c0-62.8-96-65.1-96 1.9v26.7l19.3 3.9c4.3.9 7.1 5.1 6.3 9.4l-3.1 15.7c-.9 4.3-5.1 7.1-9.4 6.3l-31.2-4.2c-7.9-1.1-13.8-7.8-13.8-15.9V416c0-38.6 27.5-70.9 64-78.4v-45.2c-2.2.7-4.4 1.1-6.6 1.9-18 6.3-37.3 9.8-57.4 9.8s-39.4-3.5-57.4-9.8c-7.4-2.6-14.9-4.2-22.6-5.2v81.6c23.1 6.9 40 28.1 40 53.4 0 30.9-25.1 56-56 56s-56-25.1-56-56c0-25.3 16.9-46.5 40-53.4v-80.4C48.5 301 0 355.8 0 422.4v44.8C0 491.9 20.1 512 44.8 512h358.4c24.7 0 44.8-20.1 44.8-44.8v-44.8c0-72-56.8-130.3-128-133.8z"] };
  3982. var faUserMinus = { prefix: 'fas', iconName: 'user-minus', icon: [640, 512, [], "f503", "M624 208H432c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h192c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400 48c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"] };
  3983. var faUserNinja = { prefix: 'fas', iconName: 'user-ninja', icon: [448, 512, [], "f504", "M325.4 289.2L224 390.6 122.6 289.2C54 295.3 0 352.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-70.2-54-127.1-122.6-133.2zM32 192c27.3 0 51.8-11.5 69.2-29.7 15.1 53.9 64 93.7 122.8 93.7 70.7 0 128-57.3 128-128S294.7 0 224 0c-50.4 0-93.6 29.4-114.5 71.8C92.1 47.8 64 32 32 32c0 33.4 17.1 62.8 43.1 80-26 17.2-43.1 46.6-43.1 80zm144-96h96c17.7 0 32 14.3 32 32H144c0-17.7 14.3-32 32-32z"] };
  3984. var faUserPlus = { prefix: 'fas', iconName: 'user-plus', icon: [640, 512, [], "f234", "M624 208h-64v-64c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v64h-64c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h64v64c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-64h64c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400 48c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"] };
  3985. var faUserSecret = { prefix: 'fas', iconName: 'user-secret', icon: [448, 512, [], "f21b", "M383.9 308.3l23.9-62.6c4-10.5-3.7-21.7-15-21.7h-58.5c11-18.9 17.8-40.6 17.8-64v-.3c39.2-7.8 64-19.1 64-31.7 0-13.3-27.3-25.1-70.1-33-9.2-32.8-27-65.8-40.6-82.8-9.5-11.9-25.9-15.6-39.5-8.8l-27.6 13.8c-9 4.5-19.6 4.5-28.6 0L182.1 3.4c-13.6-6.8-30-3.1-39.5 8.8-13.5 17-31.4 50-40.6 82.8-42.7 7.9-70 19.7-70 33 0 12.6 24.8 23.9 64 31.7v.3c0 23.4 6.8 45.1 17.8 64H56.3c-11.5 0-19.2 11.7-14.7 22.3l25.8 60.2C27.3 329.8 0 372.7 0 422.4v44.8C0 491.9 20.1 512 44.8 512h358.4c24.7 0 44.8-20.1 44.8-44.8v-44.8c0-48.4-25.8-90.4-64.1-114.1zM176 480l-41.6-192 49.6 32 24 40-32 120zm96 0l-32-120 24-40 49.6-32L272 480zm41.7-298.5c-3.9 11.9-7 24.6-16.5 33.4-10.1 9.3-48 22.4-64-25-2.8-8.4-15.4-8.4-18.3 0-17 50.2-56 32.4-64 25-9.5-8.8-12.7-21.5-16.5-33.4-.8-2.5-6.3-5.7-6.3-5.8v-10.8c28.3 3.6 61 5.8 96 5.8s67.7-2.1 96-5.8v10.8c-.1.1-5.6 3.2-6.4 5.8z"] };
  3986. var faUserShield = { prefix: 'fas', iconName: 'user-shield', icon: [640, 512, [], "f505", "M622.3 271.1l-115.2-45c-4.1-1.6-12.6-3.7-22.2 0l-115.2 45c-10.7 4.2-17.7 14-17.7 24.9 0 111.6 68.7 188.8 132.9 213.9 9.6 3.7 18 1.6 22.2 0C558.4 489.9 640 420.5 640 296c0-10.9-7-20.7-17.7-24.9zM496 462.4V273.3l95.5 37.3c-5.6 87.1-60.9 135.4-95.5 151.8zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm96 40c0-2.5.8-4.8 1.1-7.2-2.5-.1-4.9-.8-7.5-.8h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c6.8 0 13.3-1.5 19.2-4-54-42.9-99.2-116.7-99.2-212z"] };
  3987. var faUserSlash = { prefix: 'fas', iconName: 'user-slash', icon: [640, 512, [], "f506", "M633.8 458.1L362.3 248.3C412.1 230.7 448 183.8 448 128 448 57.3 390.7 0 320 0c-67.1 0-121.5 51.8-126.9 117.4L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3zM96 422.4V464c0 26.5 21.5 48 48 48h350.2L207.4 290.3C144.2 301.3 96 356 96 422.4z"] };
  3988. var faUserTag = { prefix: 'fas', iconName: 'user-tag', icon: [640, 512, [], "f507", "M630.6 364.9l-90.3-90.2c-12-12-28.3-18.7-45.3-18.7h-79.3c-17.7 0-32 14.3-32 32v79.2c0 17 6.7 33.2 18.7 45.2l90.3 90.2c12.5 12.5 32.8 12.5 45.3 0l92.5-92.5c12.6-12.5 12.6-32.7.1-45.2zm-182.8-21c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24c0 13.2-10.7 24-24 24zm-223.8-88c70.7 0 128-57.3 128-128C352 57.3 294.7 0 224 0S96 57.3 96 128c0 70.6 57.3 127.9 128 127.9zm127.8 111.2V294c-12.2-3.6-24.9-6.2-38.2-6.2h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 287.9 0 348.1 0 422.3v41.6c0 26.5 21.5 48 48 48h352c15.5 0 29.1-7.5 37.9-18.9l-58-58c-18.1-18.1-28.1-42.2-28.1-67.9z"] };
  3989. var faUserTie = { prefix: 'fas', iconName: 'user-tie', icon: [448, 512, [], "f508", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm95.8 32.6L272 480l-32-136 32-56h-96l32 56-32 136-47.8-191.4C56.9 292 0 350.3 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-72.1-56.9-130.4-128.2-133.8z"] };
  3990. var faUserTimes = { prefix: 'fas', iconName: 'user-times', icon: [640, 512, [], "f235", "M589.6 240l45.6-45.6c6.3-6.3 6.3-16.5 0-22.8l-22.8-22.8c-6.3-6.3-16.5-6.3-22.8 0L544 194.4l-45.6-45.6c-6.3-6.3-16.5-6.3-22.8 0l-22.8 22.8c-6.3 6.3-6.3 16.5 0 22.8l45.6 45.6-45.6 45.6c-6.3 6.3-6.3 16.5 0 22.8l22.8 22.8c6.3 6.3 16.5 6.3 22.8 0l45.6-45.6 45.6 45.6c6.3 6.3 16.5 6.3 22.8 0l22.8-22.8c6.3-6.3 6.3-16.5 0-22.8L589.6 240zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"] };
  3991. var faUsers = { prefix: 'fas', iconName: 'users', icon: [640, 512, [], "f0c0", "M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"] };
  3992. var faUsersCog = { prefix: 'fas', iconName: 'users-cog', icon: [640, 512, [], "f509", "M610.5 341.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-7.1-22.3-5-45-4.8-66.2 0-3.3.7-5.7 3.7-5.7 7.1v29.8c-13.5 4.8-26 12-36.9 21.3l-25.8-14.9c-2.9-1.7-6.7-1.1-9 1.4-15 16.2-26.5 35.8-33.2 57.4-1 3.3.4 6.8 3.3 8.5l25.8 14.9c-2.6 14.1-2.6 28.5 0 42.6l-25.8 14.9c-3 1.7-4.3 5.2-3.3 8.5 6.7 21.6 18.2 41.1 33.2 57.4 2.3 2.5 6 3.1 9 1.4l25.8-14.9c10.9 9.3 23.4 16.5 36.9 21.3v29.8c0 3.4 2.4 6.4 5.7 7.1 22.3 5 45 4.8 66.2 0 3.3-.7 5.7-3.7 5.7-7.1v-29.8c13.5-4.8 26-12 36.9-21.3l25.8 14.9c2.9 1.7 6.7 1.1 9-1.4 15-16.2 26.5-35.8 33.2-57.4 1-3.3-.4-6.8-3.3-8.5l-25.8-14.9zM496 368.5c-26.8 0-48.5-21.8-48.5-48.5s21.8-48.5 48.5-48.5 48.5 21.8 48.5 48.5-21.7 48.5-48.5 48.5zM96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm224 32c1.9 0 3.7-.5 5.6-.6 8.3-21.7 20.5-42.1 36.3-59.2 7.4-8 17.9-12.6 28.9-12.6 6.9 0 13.7 1.8 19.6 5.3l7.9 4.6c.8-.5 1.6-.9 2.4-1.4 7-14.6 11.2-30.8 11.2-48 0-61.9-50.1-112-112-112S208 82.1 208 144c0 61.9 50.1 112 112 112zm105.2 194.5c-2.3-1.2-4.6-2.6-6.8-3.9-8.2 4.8-15.3 9.8-27.5 9.8-10.9 0-21.4-4.6-28.9-12.6-18.3-19.8-32.3-43.9-40.2-69.6-10.7-34.5 24.9-49.7 25.8-50.3-.1-2.6-.1-5.2 0-7.8l-7.9-4.6c-3.8-2.2-7-5-9.8-8.1-3.3.2-6.5.6-9.8.6-24.6 0-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h255.4c-3.7-6-6.2-12.8-6.2-20.3v-9.2zM173.1 274.6C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"] };
  3993. var faUtensilSpoon = { prefix: 'fas', iconName: 'utensil-spoon', icon: [512, 512, [], "f2e5", "M480.1 31.9c-55-55.1-164.9-34.5-227.8 28.5-49.3 49.3-55.1 110-28.8 160.4L9 413.2c-11.6 10.5-12.1 28.5-1 39.5L59.3 504c11 11 29.1 10.5 39.5-1.1l192.4-214.4c50.4 26.3 111.1 20.5 160.4-28.8 63-62.9 83.6-172.8 28.5-227.8z"] };
  3994. var faUtensils = { prefix: 'fas', iconName: 'utensils', icon: [416, 512, [], "f2e7", "M207.9 15.2c.8 4.7 16.1 94.5 16.1 128.8 0 52.3-27.8 89.6-68.9 104.6L168 486.7c.7 13.7-10.2 25.3-24 25.3H80c-13.7 0-24.7-11.5-24-25.3l12.9-238.1C27.7 233.6 0 196.2 0 144 0 109.6 15.3 19.9 16.1 15.2 19.3-5.1 61.4-5.4 64 16.3v141.2c1.3 3.4 15.1 3.2 16 0 1.4-25.3 7.9-139.2 8-141.8 3.3-20.8 44.7-20.8 47.9 0 .2 2.7 6.6 116.5 8 141.8.9 3.2 14.8 3.4 16 0V16.3c2.6-21.6 44.8-21.4 48-1.1zm119.2 285.7l-15 185.1c-1.2 14 9.9 26 23.9 26h56c13.3 0 24-10.7 24-24V24c0-13.2-10.7-24-24-24-82.5 0-221.4 178.5-64.9 300.9z"] };
  3995. var faVectorSquare = { prefix: 'fas', iconName: 'vector-square', icon: [512, 512, [], "f5cb", "M512 128V32c0-17.67-14.33-32-32-32h-96c-17.67 0-32 14.33-32 32H160c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v96c0 17.67 14.33 32 32 32v192c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32h192c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32V160c17.67 0 32-14.33 32-32zm-96-64h32v32h-32V64zM64 64h32v32H64V64zm32 384H64v-32h32v32zm352 0h-32v-32h32v32zm-32-96h-32c-17.67 0-32 14.33-32 32v32H160v-32c0-17.67-14.33-32-32-32H96V160h32c17.67 0 32-14.33 32-32V96h192v32c0 17.67 14.33 32 32 32h32v192z"] };
  3996. var faVenus = { prefix: 'fas', iconName: 'venus', icon: [288, 512, [], "f221", "M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V368H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80z"] };
  3997. var faVenusDouble = { prefix: 'fas', iconName: 'venus-double', icon: [512, 512, [], "f226", "M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V368H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80zm336 140.4V368h36c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-36v36c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-36h-36c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h36v-51.6c-21.2-4.8-40.6-14.3-57.2-27.3 14-16.7 25-36 32.1-57.1 14.5 14.8 34.7 24 57.1 24 44.1 0 80-35.9 80-80s-35.9-80-80-80c-22.3 0-42.6 9.2-57.1 24-7.1-21.1-18-40.4-32.1-57.1C303.4 43.6 334.3 32 368 32c79.5 0 144 64.5 144 144 0 68.5-47.9 125.9-112 140.4z"] };
  3998. var faVenusMars = { prefix: 'fas', iconName: 'venus-mars', icon: [576, 512, [], "f228", "M564 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7C422.5 72.1 396.2 64 368 64c-33.7 0-64.6 11.6-89.2 30.9 14 16.7 25 36 32.1 57.1 14.5-14.8 34.7-24 57.1-24 44.1 0 80 35.9 80 80s-35.9 80-80 80c-22.3 0-42.6-9.2-57.1-24-7.1 21.1-18 40.4-32.1 57.1 24.5 19.4 55.5 30.9 89.2 30.9 79.5 0 144-64.5 144-144 0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.4 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12V12c0-6.6-5.4-12-12-12zM144 64C64.5 64 0 128.5 0 208c0 68.5 47.9 125.9 112 140.4V400H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.6 112-71.9 112-140.4 0-79.5-64.5-144-144-144zm0 224c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3999. var faVial = { prefix: 'fas', iconName: 'vial', icon: [480, 512, [], "f492", "M477.7 186.1L309.5 18.3c-3.1-3.1-8.2-3.1-11.3 0l-34 33.9c-3.1 3.1-3.1 8.2 0 11.3l11.2 11.1L33 316.5c-38.8 38.7-45.1 102-9.4 143.5 20.6 24 49.5 36 78.4 35.9 26.4 0 52.8-10 72.9-30.1l246.3-245.7 11.2 11.1c3.1 3.1 8.2 3.1 11.3 0l34-33.9c3.1-3 3.1-8.1 0-11.2zM318 256H161l148-147.7 78.5 78.3L318 256z"] };
  4000. var faVials = { prefix: 'fas', iconName: 'vials', icon: [640, 512, [], "f493", "M72 64h24v240c0 44.1 35.9 80 80 80s80-35.9 80-80V64h24c4.4 0 8-3.6 8-8V8c0-4.4-3.6-8-8-8H72c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm72 0h64v96h-64V64zm480 384H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM360 64h24v240c0 44.1 35.9 80 80 80s80-35.9 80-80V64h24c4.4 0 8-3.6 8-8V8c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm72 0h64v96h-64V64z"] };
  4001. var faVideo = { prefix: 'fas', iconName: 'video', icon: [576, 512, [], "f03d", "M336.2 64H47.8C21.4 64 0 85.4 0 111.8v288.4C0 426.6 21.4 448 47.8 448h288.4c26.4 0 47.8-21.4 47.8-47.8V111.8c0-26.4-21.4-47.8-47.8-47.8zm189.4 37.7L416 177.3v157.4l109.6 75.5c21.2 14.6 50.4-.3 50.4-25.8V127.5c0-25.4-29.1-40.4-50.4-25.8z"] };
  4002. var faVideoSlash = { prefix: 'fas', iconName: 'video-slash', icon: [640, 512, [], "f4e2", "M633.8 458.1l-55-42.5c15.4-1.4 29.2-13.7 29.2-31.1v-257c0-25.5-29.1-40.4-50.4-25.8L448 177.3v137.2l-32-24.7v-178c0-26.4-21.4-47.8-47.8-47.8H123.9L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4L42.7 82 416 370.6l178.5 138c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.5-6.9 4.2-17-2.8-22.4zM32 400.2c0 26.4 21.4 47.8 47.8 47.8h288.4c11.2 0 21.4-4 29.6-10.5L32 154.7v245.5z"] };
  4003. var faVihara = { prefix: 'fas', iconName: 'vihara', icon: [640, 512, [], "f6a7", "M632.88 400.71L544 352v-64l55.16-17.69c11.79-5.9 11.79-22.72 0-28.62L480 192v-64l27.31-16.3c7.72-7.72 5.61-20.74-4.16-25.62L320 0 136.85 86.07c-9.77 4.88-11.88 17.9-4.16 25.62L160 128v64L40.84 241.69c-11.79 5.9-11.79 22.72 0 28.62L96 288v64L7.12 400.71c-5.42 3.62-7.7 9.63-7 15.29.62 5.01 3.57 9.75 8.72 12.33L64 448v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48h160v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48h160v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48l55.15-19.67c5.16-2.58 8.1-7.32 8.72-12.33.71-5.67-1.57-11.68-6.99-15.29zM224 128h192v64H224v-64zm-64 224v-64h320v64H160z"] };
  4004. var faVolleyballBall = { prefix: 'fas', iconName: 'volleyball-ball', icon: [495, 512, [], "f45f", "M223.3 243.4c-.9-37-8.6-72.8-22.7-105.7-90.8 42.4-157.5 122.4-180.3 216.8 13.4 30.8 32.9 58.3 56.9 81.1 22.7-79.2 74.2-147.8 146.1-192.2zM186.4 109c-15-26.4-34.5-50.1-57.4-70.7C38 88.1-15.8 191.2 4 300.5c33.4-83.1 98.4-152 182.4-191.5zM374 274.1c8.6-99.8-27.3-197.5-97.5-264.4-14.7-1.7-51.6-5.5-98.9 8.5 57.3 59.3 91 138.2 93.5 222.7 32.5 17.7 67.3 29 102.9 33.2zm-124.7 9.5c-31.6 19.3-58.7 43.9-80.2 72.6 82 57.3 184.5 75.1 277.5 47.8 19.7-26.4 34.2-56.8 42.2-89.9-26.6 6.6-53.7 10.4-80.9 10.4-54.6-.1-108.9-14.1-158.6-40.9zM151 383.3c-15.2 26-25.7 54.4-32.1 84.2 37.6 23 81.7 36.5 129.1 36.5 61 0 116.7-22.1 159.9-58.6C295 461.5 204.6 420.6 151 383.3zM331.3 22.7c55.3 70.4 82.5 161.2 74.6 253.6 30.3.2 60.5-4.8 89.7-14.2 0-2 .3-4 .3-6 0-107.8-68.7-199.1-164.6-233.4z"] };
  4005. var faVolumeDown = { prefix: 'fas', iconName: 'volume-down', icon: [384, 512, [], "f027", "M215.03 72.04L126.06 161H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V89.02c0-21.47-25.96-31.98-40.97-16.98zm123.2 108.08c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 229.28 336 242.62 336 257c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.87z"] };
  4006. var faVolumeMute = { prefix: 'fas', iconName: 'volume-mute', icon: [512, 512, [], "f6a9", "M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zM461.64 256l45.64-45.64c6.3-6.3 6.3-16.52 0-22.82l-22.82-22.82c-6.3-6.3-16.52-6.3-22.82 0L416 210.36l-45.64-45.64c-6.3-6.3-16.52-6.3-22.82 0l-22.82 22.82c-6.3 6.3-6.3 16.52 0 22.82L370.36 256l-45.63 45.63c-6.3 6.3-6.3 16.52 0 22.82l22.82 22.82c6.3 6.3 16.52 6.3 22.82 0L416 301.64l45.64 45.64c6.3 6.3 16.52 6.3 22.82 0l22.82-22.82c6.3-6.3 6.3-16.52 0-22.82L461.64 256z"] };
  4007. var faVolumeOff = { prefix: 'fas', iconName: 'volume-off', icon: [257, 512, [], "f026", "M216.36 71.04L127.39 160H25.33c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.47-25.96-31.98-40.97-16.98z"] };
  4008. var faVolumeUp = { prefix: 'fas', iconName: 'volume-up', icon: [576, 512, [], "f028", "M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zm233.32-51.08c-11.17-7.33-26.18-4.24-33.51 6.95-7.34 11.17-4.22 26.18 6.95 33.51 66.27 43.49 105.82 116.6 105.82 195.58 0 78.98-39.55 152.09-105.82 195.58-11.17 7.32-14.29 22.34-6.95 33.5 7.04 10.71 21.93 14.56 33.51 6.95C528.27 439.58 576 351.33 576 256S528.27 72.43 448.35 19.97zM480 256c0-63.53-32.06-121.94-85.77-156.24-11.19-7.14-26.03-3.82-33.12 7.46s-3.78 26.21 7.41 33.36C408.27 165.97 432 209.11 432 256s-23.73 90.03-63.48 115.42c-11.19 7.14-14.5 22.07-7.41 33.36 6.51 10.36 21.12 15.14 33.12 7.46C447.94 377.94 480 319.54 480 256zm-141.77-76.87c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 228.28 336 241.63 336 256c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.86z"] };
  4009. var faVrCardboard = { prefix: 'fas', iconName: 'vr-cardboard', icon: [640, 512, [], "f729", "M608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h160.22c25.19 0 48.03-14.77 58.36-37.74l27.74-61.64C286.21 331.08 302.35 320 320 320s33.79 11.08 41.68 28.62l27.74 61.64C399.75 433.23 422.6 448 447.78 448H608c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM160 304c-35.35 0-64-28.65-64-64s28.65-64 64-64 64 28.65 64 64-28.65 64-64 64zm320 0c-35.35 0-64-28.65-64-64s28.65-64 64-64 64 28.65 64 64-28.65 64-64 64z"] };
  4010. var faWalking = { prefix: 'fas', iconName: 'walking', icon: [320, 512, [], "f554", "M208 96c26.5 0 48-21.5 48-48S234.5 0 208 0s-48 21.5-48 48 21.5 48 48 48zm94.5 149.1l-23.3-11.8-9.7-29.4c-14.7-44.6-55.7-75.8-102.2-75.9-36-.1-55.9 10.1-93.3 25.2-21.6 8.7-39.3 25.2-49.7 46.2L17.6 213c-7.8 15.8-1.5 35 14.2 42.9 15.6 7.9 34.6 1.5 42.5-14.3L81 228c3.5-7 9.3-12.5 16.5-15.4l26.8-10.8-15.2 60.7c-5.2 20.8.4 42.9 14.9 58.8l59.9 65.4c7.2 7.9 12.3 17.4 14.9 27.7l18.3 73.3c4.3 17.1 21.7 27.6 38.8 23.3 17.1-4.3 27.6-21.7 23.3-38.8l-22.2-89c-2.6-10.3-7.7-19.9-14.9-27.7l-45.5-49.7 17.2-68.7 5.5 16.5c5.3 16.1 16.7 29.4 31.7 37l23.3 11.8c15.6 7.9 34.6 1.5 42.5-14.3 7.7-15.7 1.4-35.1-14.3-43zM73.6 385.8c-3.2 8.1-8 15.4-14.2 21.5l-50 50.1c-12.5 12.5-12.5 32.8 0 45.3s32.7 12.5 45.2 0l59.4-59.4c6.1-6.1 10.9-13.4 14.2-21.5l13.5-33.8c-55.3-60.3-38.7-41.8-47.4-53.7l-20.7 51.5z"] };
  4011. var faWallet = { prefix: 'fas', iconName: 'wallet', icon: [512, 512, [], "f555", "M461.2 128H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h384c8.84 0 16-7.16 16-16 0-26.51-21.49-48-48-48H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h397.2c28.02 0 50.8-21.53 50.8-48V176c0-26.47-22.78-48-50.8-48zM416 336c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  4012. var faWarehouse = { prefix: 'fas', iconName: 'warehouse', icon: [640, 512, [], "f494", "M504 352H136.4c-4.4 0-8 3.6-8 8l-.1 48c0 4.4 3.6 8 8 8H504c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm0 96H136.1c-4.4 0-8 3.6-8 8l-.1 48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm0-192H136.6c-4.4 0-8 3.6-8 8l-.1 48c0 4.4 3.6 8 8 8H504c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm106.5-139L338.4 3.7a48.15 48.15 0 0 0-36.9 0L29.5 117C11.7 124.5 0 141.9 0 161.3V504c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8V256c0-17.6 14.6-32 32.6-32h382.8c18 0 32.6 14.4 32.6 32v248c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8V161.3c0-19.4-11.7-36.8-29.5-44.3z"] };
  4013. var faWeight = { prefix: 'fas', iconName: 'weight', icon: [512, 512, [], "f496", "M448 64h-25.98C438.44 92.28 448 125.01 448 160c0 105.87-86.13 192-192 192S64 265.87 64 160c0-34.99 9.56-67.72 25.98-96H64C28.71 64 0 92.71 0 128v320c0 35.29 28.71 64 64 64h384c35.29 0 64-28.71 64-64V128c0-35.29-28.71-64-64-64zM256 320c88.37 0 160-71.63 160-160S344.37 0 256 0 96 71.63 96 160s71.63 160 160 160zm-.3-151.94l33.58-78.36c3.5-8.17 12.94-11.92 21.03-8.41 8.12 3.48 11.88 12.89 8.41 21l-33.67 78.55C291.73 188 296 197.45 296 208c0 22.09-17.91 40-40 40s-40-17.91-40-40c0-21.98 17.76-39.77 39.7-39.94z"] };
  4014. var faWeightHanging = { prefix: 'fas', iconName: 'weight-hanging', icon: [512, 512, [], "f5cd", "M510.28 445.86l-73.03-292.13c-3.8-15.19-16.44-25.72-30.87-25.72h-60.25c3.57-10.05 5.88-20.72 5.88-32 0-53.02-42.98-96-96-96s-96 42.98-96 96c0 11.28 2.3 21.95 5.88 32h-60.25c-14.43 0-27.08 10.54-30.87 25.72L1.72 445.86C-6.61 479.17 16.38 512 48.03 512h415.95c31.64 0 54.63-32.83 46.3-66.14zM256 128c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32z"] };
  4015. var faWheelchair = { prefix: 'fas', iconName: 'wheelchair', icon: [512, 512, [], "f193", "M496.101 385.669l14.227 28.663c3.929 7.915.697 17.516-7.218 21.445l-65.465 32.886c-16.049 7.967-35.556 1.194-43.189-15.055L331.679 320H192c-15.925 0-29.426-11.71-31.679-27.475C126.433 55.308 128.38 70.044 128 64c0-36.358 30.318-65.635 67.052-63.929 33.271 1.545 60.048 28.905 60.925 62.201.868 32.933-23.152 60.423-54.608 65.039l4.67 32.69H336c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H215.182l4.572 32H352a32 32 0 0 1 28.962 18.392L438.477 396.8l36.178-18.349c7.915-3.929 17.517-.697 21.446 7.218zM311.358 352h-24.506c-7.788 54.204-54.528 96-110.852 96-61.757 0-112-50.243-112-112 0-41.505 22.694-77.809 56.324-97.156-3.712-25.965-6.844-47.86-9.488-66.333C45.956 198.464 0 261.963 0 336c0 97.047 78.953 176 176 176 71.87 0 133.806-43.308 161.11-105.192L311.358 352z"] };
  4016. var faWifi = { prefix: 'fas', iconName: 'wifi', icon: [640, 512, [], "f1eb", "M634.91 154.88C457.74-8.99 182.19-8.93 5.09 154.88c-6.66 6.16-6.79 16.59-.35 22.98l34.24 33.97c6.14 6.1 16.02 6.23 22.4.38 145.92-133.68 371.3-133.71 517.25 0 6.38 5.85 16.26 5.71 22.4-.38l34.24-33.97c6.43-6.39 6.3-16.82-.36-22.98zM320 352c-35.35 0-64 28.65-64 64s28.65 64 64 64 64-28.65 64-64-28.65-64-64-64zm202.67-83.59c-115.26-101.93-290.21-101.82-405.34 0-6.9 6.1-7.12 16.69-.57 23.15l34.44 33.99c6 5.92 15.66 6.32 22.05.8 83.95-72.57 209.74-72.41 293.49 0 6.39 5.52 16.05 5.13 22.05-.8l34.44-33.99c6.56-6.46 6.33-17.06-.56-23.15z"] };
  4017. var faWind = { prefix: 'fas', iconName: 'wind', icon: [512, 512, [], "f72e", "M156.66 256H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h142.19c15.95 0 30.77 10.85 33.37 26.58C194.86 366.6 179.42 384 160 384c-14.11 0-26.13-9.19-30.37-21.9-2.11-6.31-8.6-10.1-15.25-10.1H81.63c-9.8 0-17.73 8.81-15.86 18.43C74.39 414.58 113.37 448 160 448c57.09 0 102.7-50.09 95.19-108.63-6.21-48.39-49.74-83.37-98.53-83.37zM16 224h336c59.7 0 106.83-54.76 93.83-116.69-7.61-36.23-36.91-65.53-73.14-73.14-55.44-11.64-105.13 24.91-114.93 75.53-1.86 9.57 6.09 18.3 15.84 18.3h32.8c6.65 0 13.14-3.79 15.25-10.1C325.88 105.19 337.89 96 352 96c19.42 0 34.86 17.39 31.55 37.41-2.6 15.73-17.42 26.59-33.37 26.59H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16zm384 32H243.68c19.34 16.57 33.19 38.79 39.77 64H400c26.47 0 48 21.53 48 48s-21.53 48-48 48c-17.86 0-33.33-9.86-41.56-24.38-2.85-5.03-8.69-7.62-14.47-7.62h-33.82c-10.91 0-18.96 10.81-15.35 21.1 17.77 50.6 70.54 84.75 129.41 72.35 41.22-8.69 75.1-41.65 84.67-82.68C525.98 321.46 470.48 256 400 256z"] };
  4018. var faWindowClose = { prefix: 'fas', iconName: 'window-close', icon: [512, 512, [], "f410", "M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-83.6 290.5c4.8 4.8 4.8 12.6 0 17.4l-40.5 40.5c-4.8 4.8-12.6 4.8-17.4 0L256 313.3l-66.5 67.1c-4.8 4.8-12.6 4.8-17.4 0l-40.5-40.5c-4.8-4.8-4.8-12.6 0-17.4l67.1-66.5-67.1-66.5c-4.8-4.8-4.8-12.6 0-17.4l40.5-40.5c4.8-4.8 12.6-4.8 17.4 0l66.5 67.1 66.5-67.1c4.8-4.8 12.6-4.8 17.4 0l40.5 40.5c4.8 4.8 4.8 12.6 0 17.4L313.3 256l67.1 66.5z"] };
  4019. var faWindowMaximize = { prefix: 'fas', iconName: 'window-maximize', icon: [512, 512, [], "f2d0", "M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-16 160H64v-84c0-6.6 5.4-12 12-12h360c6.6 0 12 5.4 12 12v84z"] };
  4020. var faWindowMinimize = { prefix: 'fas', iconName: 'window-minimize', icon: [512, 512, [], "f2d1", "M464 352H48c-26.5 0-48 21.5-48 48v32c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48v-32c0-26.5-21.5-48-48-48z"] };
  4021. var faWindowRestore = { prefix: 'fas', iconName: 'window-restore', icon: [512, 512, [], "f2d2", "M512 48v288c0 26.5-21.5 48-48 48h-48V176c0-44.1-35.9-80-80-80H128V48c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zM384 176v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zm-68 28c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v52h252v-52z"] };
  4022. var faWineBottle = { prefix: 'fas', iconName: 'wine-bottle', icon: [512, 512, [], "f72f", "M507.31 72.57L439.43 4.69c-6.25-6.25-16.38-6.25-22.63 0l-22.63 22.63c-6.25 6.25-6.25 16.38 0 22.63l-76.67 76.67c-46.58-19.7-102.4-10.73-140.37 27.23L18.75 312.23c-24.99 24.99-24.99 65.52 0 90.51l90.51 90.51c24.99 24.99 65.52 24.99 90.51 0l158.39-158.39c37.96-37.96 46.93-93.79 27.23-140.37l76.67-76.67c6.25 6.25 16.38 6.25 22.63 0l22.63-22.63c6.24-6.24 6.24-16.37-.01-22.62zM179.22 423.29l-90.51-90.51 122.04-122.04 90.51 90.51-122.04 122.04z"] };
  4023. var faWineGlass = { prefix: 'fas', iconName: 'wine-glass', icon: [288, 512, [], "f4e3", "M216 464h-40V346.81c68.47-15.89 118.05-79.91 111.4-154.16l-15.95-178.1C270.71 6.31 263.9 0 255.74 0H32.26c-8.15 0-14.97 6.31-15.7 14.55L.6 192.66C-6.05 266.91 43.53 330.93 112 346.82V464H72c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h208c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40z"] };
  4024. var faWineGlassAlt = { prefix: 'fas', iconName: 'wine-glass-alt', icon: [288, 512, [], "f5ce", "M216 464h-40V346.81c68.47-15.89 118.05-79.91 111.4-154.16l-15.95-178.1C270.71 6.31 263.9 0 255.74 0H32.26c-8.15 0-14.97 6.31-15.7 14.55L.6 192.66C-6.05 266.91 43.53 330.93 112 346.82V464H72c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h208c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40zM61.75 48h164.5l7.17 80H54.58l7.17-80z"] };
  4025. var faWonSign = { prefix: 'fas', iconName: 'won-sign', icon: [576, 512, [], "f159", "M564 192c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-48.028l18.572-80.61c1.732-7.518-3.978-14.694-11.693-14.694h-46.107a11.998 11.998 0 0 0-11.736 9.5L450.73 128H340.839l-19.725-85.987a12 12 0 0 0-11.696-9.317H265.43a12 12 0 0 0-11.687 9.277L233.696 128H124.975L107.5 42.299a12 12 0 0 0-11.758-9.602H53.628c-7.686 0-13.39 7.124-11.709 14.624L60 128H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h62.342l7.171 32H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h83.856l40.927 182.624A12 12 0 0 0 148.492 480h56.767c5.583 0 10.428-3.85 11.689-9.288L259.335 288h55.086l42.386 182.712A12 12 0 0 0 368.496 480h56.826a12 12 0 0 0 11.694-9.306L479.108 288H564c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-70.146l7.373-32H564zm-425.976 0h80.757l-7.457 32h-66.776l-6.524-32zm45.796 150.029c-6.194 25.831-6.758 47.25-7.321 47.25h-1.126s-1.689-22.05-6.758-47.25L157.599 288h38.812l-12.591 54.029zM274.182 224l1.996-8.602c1.856-7.962 3.457-15.968 4.803-23.398h11.794c1.347 7.43 2.947 15.436 4.803 23.398l1.996 8.602h-25.392zm130.959 118.029c-5.068 25.2-6.758 47.25-6.758 47.25h-1.126c-.563 0-1.126-21.42-7.321-47.25L377.542 288h39.107l-11.508 54.029zM430.281 224h-67.42l-7.34-32h81.577l-6.817 32z"] };
  4026. var faWrench = { prefix: 'fas', iconName: 'wrench', icon: [512, 512, [], "f0ad", "M507.73 109.1c-2.24-9.03-13.54-12.09-20.12-5.51l-74.36 74.36-67.88-11.31-11.31-67.88 74.36-74.36c6.62-6.62 3.43-17.9-5.66-20.16-47.38-11.74-99.55.91-136.58 37.93-39.64 39.64-50.55 97.1-34.05 147.2L18.74 402.76c-24.99 24.99-24.99 65.51 0 90.5 24.99 24.99 65.51 24.99 90.5 0l213.21-213.21c50.12 16.71 107.47 5.68 147.37-34.22 37.07-37.07 49.7-89.32 37.91-136.73zM64 472c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"] };
  4027. var faXRay = { prefix: 'fas', iconName: 'x-ray', icon: [640, 512, [], "f497", "M240 384c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16zm160 32c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 16 16 16zM624 0H16C7.2 0 0 7.2 0 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16zm0 448h-48V96H64v352H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM480 248c0 4.4-3.6 8-8 8H336v32h104c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H336v32h64c26.5 0 48 21.5 48 48s-21.5 48-48 48-48-21.5-48-48v-16h-64v16c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48h64v-32H200c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h104v-32H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h136v-32H200c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h104v-24c0-4.4 3.6-8 8-8h16c4.4 0 8 3.6 8 8v24h104c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H336v32h136c4.4 0 8 3.6 8 8v16z"] };
  4028. var faYenSign = { prefix: 'fas', iconName: 'yen-sign', icon: [384, 512, [], "f157", "M351.208 32h-65.277a12 12 0 0 0-10.778 6.724l-55.39 113.163c-14.513 34.704-27.133 71.932-27.133 71.932h-1.262s-12.62-37.228-27.133-71.932l-55.39-113.163A11.997 11.997 0 0 0 98.068 32H32.792c-9.057 0-14.85 9.65-10.59 17.643L102.322 200H44c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h88.162L152 293.228V320H44c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h108v92c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-92h108c6.627 0 12-5.373 12-12v-32c0-6.627-5.373-12-12-12H232v-26.772L251.838 256H340c6.627 0 12-5.373 12-12v-32c0-6.627-5.373-12-12-12h-58.322l80.12-150.357C366.058 41.65 360.266 32 351.208 32z"] };
  4029. var faYinYang = { prefix: 'fas', iconName: 'yin-yang', icon: [496, 512, [], "f6ad", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm0 376c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-128c-53.02 0-96 42.98-96 96s42.98 96 96 96c-106.04 0-192-85.96-192-192S141.96 64 248 64c53.02 0 96 42.98 96 96s-42.98 96-96 96zm0-128c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"] };
  4030. var _iconsCache = {
  4031. faAd: faAd,
  4032. faAddressBook: faAddressBook,
  4033. faAddressCard: faAddressCard,
  4034. faAdjust: faAdjust,
  4035. faAirFreshener: faAirFreshener,
  4036. faAlignCenter: faAlignCenter,
  4037. faAlignJustify: faAlignJustify,
  4038. faAlignLeft: faAlignLeft,
  4039. faAlignRight: faAlignRight,
  4040. faAllergies: faAllergies,
  4041. faAmbulance: faAmbulance,
  4042. faAmericanSignLanguageInterpreting: faAmericanSignLanguageInterpreting,
  4043. faAnchor: faAnchor,
  4044. faAngleDoubleDown: faAngleDoubleDown,
  4045. faAngleDoubleLeft: faAngleDoubleLeft,
  4046. faAngleDoubleRight: faAngleDoubleRight,
  4047. faAngleDoubleUp: faAngleDoubleUp,
  4048. faAngleDown: faAngleDown,
  4049. faAngleLeft: faAngleLeft,
  4050. faAngleRight: faAngleRight,
  4051. faAngleUp: faAngleUp,
  4052. faAngry: faAngry,
  4053. faAnkh: faAnkh,
  4054. faAppleAlt: faAppleAlt,
  4055. faArchive: faArchive,
  4056. faArchway: faArchway,
  4057. faArrowAltCircleDown: faArrowAltCircleDown,
  4058. faArrowAltCircleLeft: faArrowAltCircleLeft,
  4059. faArrowAltCircleRight: faArrowAltCircleRight,
  4060. faArrowAltCircleUp: faArrowAltCircleUp,
  4061. faArrowCircleDown: faArrowCircleDown,
  4062. faArrowCircleLeft: faArrowCircleLeft,
  4063. faArrowCircleRight: faArrowCircleRight,
  4064. faArrowCircleUp: faArrowCircleUp,
  4065. faArrowDown: faArrowDown,
  4066. faArrowLeft: faArrowLeft,
  4067. faArrowRight: faArrowRight,
  4068. faArrowUp: faArrowUp,
  4069. faArrowsAlt: faArrowsAlt,
  4070. faArrowsAltH: faArrowsAltH,
  4071. faArrowsAltV: faArrowsAltV,
  4072. faAssistiveListeningSystems: faAssistiveListeningSystems,
  4073. faAsterisk: faAsterisk,
  4074. faAt: faAt,
  4075. faAtlas: faAtlas,
  4076. faAtom: faAtom,
  4077. faAudioDescription: faAudioDescription,
  4078. faAward: faAward,
  4079. faBackspace: faBackspace,
  4080. faBackward: faBackward,
  4081. faBalanceScale: faBalanceScale,
  4082. faBan: faBan,
  4083. faBandAid: faBandAid,
  4084. faBarcode: faBarcode,
  4085. faBars: faBars,
  4086. faBaseballBall: faBaseballBall,
  4087. faBasketballBall: faBasketballBall,
  4088. faBath: faBath,
  4089. faBatteryEmpty: faBatteryEmpty,
  4090. faBatteryFull: faBatteryFull,
  4091. faBatteryHalf: faBatteryHalf,
  4092. faBatteryQuarter: faBatteryQuarter,
  4093. faBatteryThreeQuarters: faBatteryThreeQuarters,
  4094. faBed: faBed,
  4095. faBeer: faBeer,
  4096. faBell: faBell,
  4097. faBellSlash: faBellSlash,
  4098. faBezierCurve: faBezierCurve,
  4099. faBible: faBible,
  4100. faBicycle: faBicycle,
  4101. faBinoculars: faBinoculars,
  4102. faBirthdayCake: faBirthdayCake,
  4103. faBlender: faBlender,
  4104. faBlenderPhone: faBlenderPhone,
  4105. faBlind: faBlind,
  4106. faBold: faBold,
  4107. faBolt: faBolt,
  4108. faBomb: faBomb,
  4109. faBone: faBone,
  4110. faBong: faBong,
  4111. faBook: faBook,
  4112. faBookDead: faBookDead,
  4113. faBookOpen: faBookOpen,
  4114. faBookReader: faBookReader,
  4115. faBookmark: faBookmark,
  4116. faBowlingBall: faBowlingBall,
  4117. faBox: faBox,
  4118. faBoxOpen: faBoxOpen,
  4119. faBoxes: faBoxes,
  4120. faBraille: faBraille,
  4121. faBrain: faBrain,
  4122. faBriefcase: faBriefcase,
  4123. faBriefcaseMedical: faBriefcaseMedical,
  4124. faBroadcastTower: faBroadcastTower,
  4125. faBroom: faBroom,
  4126. faBrush: faBrush,
  4127. faBug: faBug,
  4128. faBuilding: faBuilding,
  4129. faBullhorn: faBullhorn,
  4130. faBullseye: faBullseye,
  4131. faBurn: faBurn,
  4132. faBus: faBus,
  4133. faBusAlt: faBusAlt,
  4134. faBusinessTime: faBusinessTime,
  4135. faCalculator: faCalculator,
  4136. faCalendar: faCalendar,
  4137. faCalendarAlt: faCalendarAlt,
  4138. faCalendarCheck: faCalendarCheck,
  4139. faCalendarMinus: faCalendarMinus,
  4140. faCalendarPlus: faCalendarPlus,
  4141. faCalendarTimes: faCalendarTimes,
  4142. faCamera: faCamera,
  4143. faCameraRetro: faCameraRetro,
  4144. faCampground: faCampground,
  4145. faCannabis: faCannabis,
  4146. faCapsules: faCapsules,
  4147. faCar: faCar,
  4148. faCarAlt: faCarAlt,
  4149. faCarBattery: faCarBattery,
  4150. faCarCrash: faCarCrash,
  4151. faCarSide: faCarSide,
  4152. faCaretDown: faCaretDown,
  4153. faCaretLeft: faCaretLeft,
  4154. faCaretRight: faCaretRight,
  4155. faCaretSquareDown: faCaretSquareDown,
  4156. faCaretSquareLeft: faCaretSquareLeft,
  4157. faCaretSquareRight: faCaretSquareRight,
  4158. faCaretSquareUp: faCaretSquareUp,
  4159. faCaretUp: faCaretUp,
  4160. faCartArrowDown: faCartArrowDown,
  4161. faCartPlus: faCartPlus,
  4162. faCat: faCat,
  4163. faCertificate: faCertificate,
  4164. faChair: faChair,
  4165. faChalkboard: faChalkboard,
  4166. faChalkboardTeacher: faChalkboardTeacher,
  4167. faChargingStation: faChargingStation,
  4168. faChartArea: faChartArea,
  4169. faChartBar: faChartBar,
  4170. faChartLine: faChartLine,
  4171. faChartPie: faChartPie,
  4172. faCheck: faCheck,
  4173. faCheckCircle: faCheckCircle,
  4174. faCheckDouble: faCheckDouble,
  4175. faCheckSquare: faCheckSquare,
  4176. faChess: faChess,
  4177. faChessBishop: faChessBishop,
  4178. faChessBoard: faChessBoard,
  4179. faChessKing: faChessKing,
  4180. faChessKnight: faChessKnight,
  4181. faChessPawn: faChessPawn,
  4182. faChessQueen: faChessQueen,
  4183. faChessRook: faChessRook,
  4184. faChevronCircleDown: faChevronCircleDown,
  4185. faChevronCircleLeft: faChevronCircleLeft,
  4186. faChevronCircleRight: faChevronCircleRight,
  4187. faChevronCircleUp: faChevronCircleUp,
  4188. faChevronDown: faChevronDown,
  4189. faChevronLeft: faChevronLeft,
  4190. faChevronRight: faChevronRight,
  4191. faChevronUp: faChevronUp,
  4192. faChild: faChild,
  4193. faChurch: faChurch,
  4194. faCircle: faCircle,
  4195. faCircleNotch: faCircleNotch,
  4196. faCity: faCity,
  4197. faClipboard: faClipboard,
  4198. faClipboardCheck: faClipboardCheck,
  4199. faClipboardList: faClipboardList,
  4200. faClock: faClock,
  4201. faClone: faClone,
  4202. faClosedCaptioning: faClosedCaptioning,
  4203. faCloud: faCloud,
  4204. faCloudDownloadAlt: faCloudDownloadAlt,
  4205. faCloudMoon: faCloudMoon,
  4206. faCloudSun: faCloudSun,
  4207. faCloudUploadAlt: faCloudUploadAlt,
  4208. faCocktail: faCocktail,
  4209. faCode: faCode,
  4210. faCodeBranch: faCodeBranch,
  4211. faCoffee: faCoffee,
  4212. faCog: faCog,
  4213. faCogs: faCogs,
  4214. faCoins: faCoins,
  4215. faColumns: faColumns,
  4216. faComment: faComment,
  4217. faCommentAlt: faCommentAlt,
  4218. faCommentDollar: faCommentDollar,
  4219. faCommentDots: faCommentDots,
  4220. faCommentSlash: faCommentSlash,
  4221. faComments: faComments,
  4222. faCommentsDollar: faCommentsDollar,
  4223. faCompactDisc: faCompactDisc,
  4224. faCompass: faCompass,
  4225. faCompress: faCompress,
  4226. faConciergeBell: faConciergeBell,
  4227. faCookie: faCookie,
  4228. faCookieBite: faCookieBite,
  4229. faCopy: faCopy,
  4230. faCopyright: faCopyright,
  4231. faCouch: faCouch,
  4232. faCreditCard: faCreditCard,
  4233. faCrop: faCrop,
  4234. faCropAlt: faCropAlt,
  4235. faCross: faCross,
  4236. faCrosshairs: faCrosshairs,
  4237. faCrow: faCrow,
  4238. faCrown: faCrown,
  4239. faCube: faCube,
  4240. faCubes: faCubes,
  4241. faCut: faCut,
  4242. faDatabase: faDatabase,
  4243. faDeaf: faDeaf,
  4244. faDesktop: faDesktop,
  4245. faDharmachakra: faDharmachakra,
  4246. faDiagnoses: faDiagnoses,
  4247. faDice: faDice,
  4248. faDiceD20: faDiceD20,
  4249. faDiceD6: faDiceD6,
  4250. faDiceFive: faDiceFive,
  4251. faDiceFour: faDiceFour,
  4252. faDiceOne: faDiceOne,
  4253. faDiceSix: faDiceSix,
  4254. faDiceThree: faDiceThree,
  4255. faDiceTwo: faDiceTwo,
  4256. faDigitalTachograph: faDigitalTachograph,
  4257. faDirections: faDirections,
  4258. faDivide: faDivide,
  4259. faDizzy: faDizzy,
  4260. faDna: faDna,
  4261. faDog: faDog,
  4262. faDollarSign: faDollarSign,
  4263. faDolly: faDolly,
  4264. faDollyFlatbed: faDollyFlatbed,
  4265. faDonate: faDonate,
  4266. faDoorClosed: faDoorClosed,
  4267. faDoorOpen: faDoorOpen,
  4268. faDotCircle: faDotCircle,
  4269. faDove: faDove,
  4270. faDownload: faDownload,
  4271. faDraftingCompass: faDraftingCompass,
  4272. faDragon: faDragon,
  4273. faDrawPolygon: faDrawPolygon,
  4274. faDrum: faDrum,
  4275. faDrumSteelpan: faDrumSteelpan,
  4276. faDrumstickBite: faDrumstickBite,
  4277. faDumbbell: faDumbbell,
  4278. faDungeon: faDungeon,
  4279. faEdit: faEdit,
  4280. faEject: faEject,
  4281. faEllipsisH: faEllipsisH,
  4282. faEllipsisV: faEllipsisV,
  4283. faEnvelope: faEnvelope,
  4284. faEnvelopeOpen: faEnvelopeOpen,
  4285. faEnvelopeOpenText: faEnvelopeOpenText,
  4286. faEnvelopeSquare: faEnvelopeSquare,
  4287. faEquals: faEquals,
  4288. faEraser: faEraser,
  4289. faEuroSign: faEuroSign,
  4290. faExchangeAlt: faExchangeAlt,
  4291. faExclamation: faExclamation,
  4292. faExclamationCircle: faExclamationCircle,
  4293. faExclamationTriangle: faExclamationTriangle,
  4294. faExpand: faExpand,
  4295. faExpandArrowsAlt: faExpandArrowsAlt,
  4296. faExternalLinkAlt: faExternalLinkAlt,
  4297. faExternalLinkSquareAlt: faExternalLinkSquareAlt,
  4298. faEye: faEye,
  4299. faEyeDropper: faEyeDropper,
  4300. faEyeSlash: faEyeSlash,
  4301. faFastBackward: faFastBackward,
  4302. faFastForward: faFastForward,
  4303. faFax: faFax,
  4304. faFeather: faFeather,
  4305. faFeatherAlt: faFeatherAlt,
  4306. faFemale: faFemale,
  4307. faFighterJet: faFighterJet,
  4308. faFile: faFile,
  4309. faFileAlt: faFileAlt,
  4310. faFileArchive: faFileArchive,
  4311. faFileAudio: faFileAudio,
  4312. faFileCode: faFileCode,
  4313. faFileContract: faFileContract,
  4314. faFileCsv: faFileCsv,
  4315. faFileDownload: faFileDownload,
  4316. faFileExcel: faFileExcel,
  4317. faFileExport: faFileExport,
  4318. faFileImage: faFileImage,
  4319. faFileImport: faFileImport,
  4320. faFileInvoice: faFileInvoice,
  4321. faFileInvoiceDollar: faFileInvoiceDollar,
  4322. faFileMedical: faFileMedical,
  4323. faFileMedicalAlt: faFileMedicalAlt,
  4324. faFilePdf: faFilePdf,
  4325. faFilePowerpoint: faFilePowerpoint,
  4326. faFilePrescription: faFilePrescription,
  4327. faFileSignature: faFileSignature,
  4328. faFileUpload: faFileUpload,
  4329. faFileVideo: faFileVideo,
  4330. faFileWord: faFileWord,
  4331. faFill: faFill,
  4332. faFillDrip: faFillDrip,
  4333. faFilm: faFilm,
  4334. faFilter: faFilter,
  4335. faFingerprint: faFingerprint,
  4336. faFire: faFire,
  4337. faFireExtinguisher: faFireExtinguisher,
  4338. faFirstAid: faFirstAid,
  4339. faFish: faFish,
  4340. faFistRaised: faFistRaised,
  4341. faFlag: faFlag,
  4342. faFlagCheckered: faFlagCheckered,
  4343. faFlask: faFlask,
  4344. faFlushed: faFlushed,
  4345. faFolder: faFolder,
  4346. faFolderMinus: faFolderMinus,
  4347. faFolderOpen: faFolderOpen,
  4348. faFolderPlus: faFolderPlus,
  4349. faFont: faFont,
  4350. faFontAwesomeLogoFull: faFontAwesomeLogoFull,
  4351. faFootballBall: faFootballBall,
  4352. faForward: faForward,
  4353. faFrog: faFrog,
  4354. faFrown: faFrown,
  4355. faFrownOpen: faFrownOpen,
  4356. faFunnelDollar: faFunnelDollar,
  4357. faFutbol: faFutbol,
  4358. faGamepad: faGamepad,
  4359. faGasPump: faGasPump,
  4360. faGavel: faGavel,
  4361. faGem: faGem,
  4362. faGenderless: faGenderless,
  4363. faGhost: faGhost,
  4364. faGift: faGift,
  4365. faGlassMartini: faGlassMartini,
  4366. faGlassMartiniAlt: faGlassMartiniAlt,
  4367. faGlasses: faGlasses,
  4368. faGlobe: faGlobe,
  4369. faGlobeAfrica: faGlobeAfrica,
  4370. faGlobeAmericas: faGlobeAmericas,
  4371. faGlobeAsia: faGlobeAsia,
  4372. faGolfBall: faGolfBall,
  4373. faGopuram: faGopuram,
  4374. faGraduationCap: faGraduationCap,
  4375. faGreaterThan: faGreaterThan,
  4376. faGreaterThanEqual: faGreaterThanEqual,
  4377. faGrimace: faGrimace,
  4378. faGrin: faGrin,
  4379. faGrinAlt: faGrinAlt,
  4380. faGrinBeam: faGrinBeam,
  4381. faGrinBeamSweat: faGrinBeamSweat,
  4382. faGrinHearts: faGrinHearts,
  4383. faGrinSquint: faGrinSquint,
  4384. faGrinSquintTears: faGrinSquintTears,
  4385. faGrinStars: faGrinStars,
  4386. faGrinTears: faGrinTears,
  4387. faGrinTongue: faGrinTongue,
  4388. faGrinTongueSquint: faGrinTongueSquint,
  4389. faGrinTongueWink: faGrinTongueWink,
  4390. faGrinWink: faGrinWink,
  4391. faGripHorizontal: faGripHorizontal,
  4392. faGripVertical: faGripVertical,
  4393. faHSquare: faHSquare,
  4394. faHammer: faHammer,
  4395. faHamsa: faHamsa,
  4396. faHandHolding: faHandHolding,
  4397. faHandHoldingHeart: faHandHoldingHeart,
  4398. faHandHoldingUsd: faHandHoldingUsd,
  4399. faHandLizard: faHandLizard,
  4400. faHandPaper: faHandPaper,
  4401. faHandPeace: faHandPeace,
  4402. faHandPointDown: faHandPointDown,
  4403. faHandPointLeft: faHandPointLeft,
  4404. faHandPointRight: faHandPointRight,
  4405. faHandPointUp: faHandPointUp,
  4406. faHandPointer: faHandPointer,
  4407. faHandRock: faHandRock,
  4408. faHandScissors: faHandScissors,
  4409. faHandSpock: faHandSpock,
  4410. faHands: faHands,
  4411. faHandsHelping: faHandsHelping,
  4412. faHandshake: faHandshake,
  4413. faHanukiah: faHanukiah,
  4414. faHashtag: faHashtag,
  4415. faHatWizard: faHatWizard,
  4416. faHaykal: faHaykal,
  4417. faHdd: faHdd,
  4418. faHeading: faHeading,
  4419. faHeadphones: faHeadphones,
  4420. faHeadphonesAlt: faHeadphonesAlt,
  4421. faHeadset: faHeadset,
  4422. faHeart: faHeart,
  4423. faHeartbeat: faHeartbeat,
  4424. faHelicopter: faHelicopter,
  4425. faHighlighter: faHighlighter,
  4426. faHiking: faHiking,
  4427. faHippo: faHippo,
  4428. faHistory: faHistory,
  4429. faHockeyPuck: faHockeyPuck,
  4430. faHome: faHome,
  4431. faHorse: faHorse,
  4432. faHospital: faHospital,
  4433. faHospitalAlt: faHospitalAlt,
  4434. faHospitalSymbol: faHospitalSymbol,
  4435. faHotTub: faHotTub,
  4436. faHotel: faHotel,
  4437. faHourglass: faHourglass,
  4438. faHourglassEnd: faHourglassEnd,
  4439. faHourglassHalf: faHourglassHalf,
  4440. faHourglassStart: faHourglassStart,
  4441. faHouseDamage: faHouseDamage,
  4442. faHryvnia: faHryvnia,
  4443. faICursor: faICursor,
  4444. faIdBadge: faIdBadge,
  4445. faIdCard: faIdCard,
  4446. faIdCardAlt: faIdCardAlt,
  4447. faImage: faImage,
  4448. faImages: faImages,
  4449. faInbox: faInbox,
  4450. faIndent: faIndent,
  4451. faIndustry: faIndustry,
  4452. faInfinity: faInfinity,
  4453. faInfo: faInfo,
  4454. faInfoCircle: faInfoCircle,
  4455. faItalic: faItalic,
  4456. faJedi: faJedi,
  4457. faJoint: faJoint,
  4458. faJournalWhills: faJournalWhills,
  4459. faKaaba: faKaaba,
  4460. faKey: faKey,
  4461. faKeyboard: faKeyboard,
  4462. faKhanda: faKhanda,
  4463. faKiss: faKiss,
  4464. faKissBeam: faKissBeam,
  4465. faKissWinkHeart: faKissWinkHeart,
  4466. faKiwiBird: faKiwiBird,
  4467. faLandmark: faLandmark,
  4468. faLanguage: faLanguage,
  4469. faLaptop: faLaptop,
  4470. faLaptopCode: faLaptopCode,
  4471. faLaugh: faLaugh,
  4472. faLaughBeam: faLaughBeam,
  4473. faLaughSquint: faLaughSquint,
  4474. faLaughWink: faLaughWink,
  4475. faLayerGroup: faLayerGroup,
  4476. faLeaf: faLeaf,
  4477. faLemon: faLemon,
  4478. faLessThan: faLessThan,
  4479. faLessThanEqual: faLessThanEqual,
  4480. faLevelDownAlt: faLevelDownAlt,
  4481. faLevelUpAlt: faLevelUpAlt,
  4482. faLifeRing: faLifeRing,
  4483. faLightbulb: faLightbulb,
  4484. faLink: faLink,
  4485. faLiraSign: faLiraSign,
  4486. faList: faList,
  4487. faListAlt: faListAlt,
  4488. faListOl: faListOl,
  4489. faListUl: faListUl,
  4490. faLocationArrow: faLocationArrow,
  4491. faLock: faLock,
  4492. faLockOpen: faLockOpen,
  4493. faLongArrowAltDown: faLongArrowAltDown,
  4494. faLongArrowAltLeft: faLongArrowAltLeft,
  4495. faLongArrowAltRight: faLongArrowAltRight,
  4496. faLongArrowAltUp: faLongArrowAltUp,
  4497. faLowVision: faLowVision,
  4498. faLuggageCart: faLuggageCart,
  4499. faMagic: faMagic,
  4500. faMagnet: faMagnet,
  4501. faMailBulk: faMailBulk,
  4502. faMale: faMale,
  4503. faMap: faMap,
  4504. faMapMarked: faMapMarked,
  4505. faMapMarkedAlt: faMapMarkedAlt,
  4506. faMapMarker: faMapMarker,
  4507. faMapMarkerAlt: faMapMarkerAlt,
  4508. faMapPin: faMapPin,
  4509. faMapSigns: faMapSigns,
  4510. faMarker: faMarker,
  4511. faMars: faMars,
  4512. faMarsDouble: faMarsDouble,
  4513. faMarsStroke: faMarsStroke,
  4514. faMarsStrokeH: faMarsStrokeH,
  4515. faMarsStrokeV: faMarsStrokeV,
  4516. faMask: faMask,
  4517. faMedal: faMedal,
  4518. faMedkit: faMedkit,
  4519. faMeh: faMeh,
  4520. faMehBlank: faMehBlank,
  4521. faMehRollingEyes: faMehRollingEyes,
  4522. faMemory: faMemory,
  4523. faMenorah: faMenorah,
  4524. faMercury: faMercury,
  4525. faMicrochip: faMicrochip,
  4526. faMicrophone: faMicrophone,
  4527. faMicrophoneAlt: faMicrophoneAlt,
  4528. faMicrophoneAltSlash: faMicrophoneAltSlash,
  4529. faMicrophoneSlash: faMicrophoneSlash,
  4530. faMicroscope: faMicroscope,
  4531. faMinus: faMinus,
  4532. faMinusCircle: faMinusCircle,
  4533. faMinusSquare: faMinusSquare,
  4534. faMobile: faMobile,
  4535. faMobileAlt: faMobileAlt,
  4536. faMoneyBill: faMoneyBill,
  4537. faMoneyBillAlt: faMoneyBillAlt,
  4538. faMoneyBillWave: faMoneyBillWave,
  4539. faMoneyBillWaveAlt: faMoneyBillWaveAlt,
  4540. faMoneyCheck: faMoneyCheck,
  4541. faMoneyCheckAlt: faMoneyCheckAlt,
  4542. faMonument: faMonument,
  4543. faMoon: faMoon,
  4544. faMortarPestle: faMortarPestle,
  4545. faMosque: faMosque,
  4546. faMotorcycle: faMotorcycle,
  4547. faMountain: faMountain,
  4548. faMousePointer: faMousePointer,
  4549. faMusic: faMusic,
  4550. faNetworkWired: faNetworkWired,
  4551. faNeuter: faNeuter,
  4552. faNewspaper: faNewspaper,
  4553. faNotEqual: faNotEqual,
  4554. faNotesMedical: faNotesMedical,
  4555. faObjectGroup: faObjectGroup,
  4556. faObjectUngroup: faObjectUngroup,
  4557. faOilCan: faOilCan,
  4558. faOm: faOm,
  4559. faOtter: faOtter,
  4560. faOutdent: faOutdent,
  4561. faPaintBrush: faPaintBrush,
  4562. faPaintRoller: faPaintRoller,
  4563. faPalette: faPalette,
  4564. faPallet: faPallet,
  4565. faPaperPlane: faPaperPlane,
  4566. faPaperclip: faPaperclip,
  4567. faParachuteBox: faParachuteBox,
  4568. faParagraph: faParagraph,
  4569. faParking: faParking,
  4570. faPassport: faPassport,
  4571. faPastafarianism: faPastafarianism,
  4572. faPaste: faPaste,
  4573. faPause: faPause,
  4574. faPauseCircle: faPauseCircle,
  4575. faPaw: faPaw,
  4576. faPeace: faPeace,
  4577. faPen: faPen,
  4578. faPenAlt: faPenAlt,
  4579. faPenFancy: faPenFancy,
  4580. faPenNib: faPenNib,
  4581. faPenSquare: faPenSquare,
  4582. faPencilAlt: faPencilAlt,
  4583. faPencilRuler: faPencilRuler,
  4584. faPeopleCarry: faPeopleCarry,
  4585. faPercent: faPercent,
  4586. faPercentage: faPercentage,
  4587. faPhone: faPhone,
  4588. faPhoneSlash: faPhoneSlash,
  4589. faPhoneSquare: faPhoneSquare,
  4590. faPhoneVolume: faPhoneVolume,
  4591. faPiggyBank: faPiggyBank,
  4592. faPills: faPills,
  4593. faPlaceOfWorship: faPlaceOfWorship,
  4594. faPlane: faPlane,
  4595. faPlaneArrival: faPlaneArrival,
  4596. faPlaneDeparture: faPlaneDeparture,
  4597. faPlay: faPlay,
  4598. faPlayCircle: faPlayCircle,
  4599. faPlug: faPlug,
  4600. faPlus: faPlus,
  4601. faPlusCircle: faPlusCircle,
  4602. faPlusSquare: faPlusSquare,
  4603. faPodcast: faPodcast,
  4604. faPoll: faPoll,
  4605. faPollH: faPollH,
  4606. faPoo: faPoo,
  4607. faPoop: faPoop,
  4608. faPortrait: faPortrait,
  4609. faPoundSign: faPoundSign,
  4610. faPowerOff: faPowerOff,
  4611. faPray: faPray,
  4612. faPrayingHands: faPrayingHands,
  4613. faPrescription: faPrescription,
  4614. faPrescriptionBottle: faPrescriptionBottle,
  4615. faPrescriptionBottleAlt: faPrescriptionBottleAlt,
  4616. faPrint: faPrint,
  4617. faProcedures: faProcedures,
  4618. faProjectDiagram: faProjectDiagram,
  4619. faPuzzlePiece: faPuzzlePiece,
  4620. faQrcode: faQrcode,
  4621. faQuestion: faQuestion,
  4622. faQuestionCircle: faQuestionCircle,
  4623. faQuidditch: faQuidditch,
  4624. faQuoteLeft: faQuoteLeft,
  4625. faQuoteRight: faQuoteRight,
  4626. faQuran: faQuran,
  4627. faRandom: faRandom,
  4628. faReceipt: faReceipt,
  4629. faRecycle: faRecycle,
  4630. faRedo: faRedo,
  4631. faRedoAlt: faRedoAlt,
  4632. faRegistered: faRegistered,
  4633. faReply: faReply,
  4634. faReplyAll: faReplyAll,
  4635. faRetweet: faRetweet,
  4636. faRibbon: faRibbon,
  4637. faRing: faRing,
  4638. faRoad: faRoad,
  4639. faRobot: faRobot,
  4640. faRocket: faRocket,
  4641. faRoute: faRoute,
  4642. faRss: faRss,
  4643. faRssSquare: faRssSquare,
  4644. faRubleSign: faRubleSign,
  4645. faRuler: faRuler,
  4646. faRulerCombined: faRulerCombined,
  4647. faRulerHorizontal: faRulerHorizontal,
  4648. faRulerVertical: faRulerVertical,
  4649. faRunning: faRunning,
  4650. faRupeeSign: faRupeeSign,
  4651. faSadCry: faSadCry,
  4652. faSadTear: faSadTear,
  4653. faSave: faSave,
  4654. faSchool: faSchool,
  4655. faScrewdriver: faScrewdriver,
  4656. faScroll: faScroll,
  4657. faSearch: faSearch,
  4658. faSearchDollar: faSearchDollar,
  4659. faSearchLocation: faSearchLocation,
  4660. faSearchMinus: faSearchMinus,
  4661. faSearchPlus: faSearchPlus,
  4662. faSeedling: faSeedling,
  4663. faServer: faServer,
  4664. faShapes: faShapes,
  4665. faShare: faShare,
  4666. faShareAlt: faShareAlt,
  4667. faShareAltSquare: faShareAltSquare,
  4668. faShareSquare: faShareSquare,
  4669. faShekelSign: faShekelSign,
  4670. faShieldAlt: faShieldAlt,
  4671. faShip: faShip,
  4672. faShippingFast: faShippingFast,
  4673. faShoePrints: faShoePrints,
  4674. faShoppingBag: faShoppingBag,
  4675. faShoppingBasket: faShoppingBasket,
  4676. faShoppingCart: faShoppingCart,
  4677. faShower: faShower,
  4678. faShuttleVan: faShuttleVan,
  4679. faSign: faSign,
  4680. faSignInAlt: faSignInAlt,
  4681. faSignLanguage: faSignLanguage,
  4682. faSignOutAlt: faSignOutAlt,
  4683. faSignal: faSignal,
  4684. faSignature: faSignature,
  4685. faSitemap: faSitemap,
  4686. faSkull: faSkull,
  4687. faSkullCrossbones: faSkullCrossbones,
  4688. faSlash: faSlash,
  4689. faSlidersH: faSlidersH,
  4690. faSmile: faSmile,
  4691. faSmileBeam: faSmileBeam,
  4692. faSmileWink: faSmileWink,
  4693. faSmoking: faSmoking,
  4694. faSmokingBan: faSmokingBan,
  4695. faSnowflake: faSnowflake,
  4696. faSocks: faSocks,
  4697. faSolarPanel: faSolarPanel,
  4698. faSort: faSort,
  4699. faSortAlphaDown: faSortAlphaDown,
  4700. faSortAlphaUp: faSortAlphaUp,
  4701. faSortAmountDown: faSortAmountDown,
  4702. faSortAmountUp: faSortAmountUp,
  4703. faSortDown: faSortDown,
  4704. faSortNumericDown: faSortNumericDown,
  4705. faSortNumericUp: faSortNumericUp,
  4706. faSortUp: faSortUp,
  4707. faSpa: faSpa,
  4708. faSpaceShuttle: faSpaceShuttle,
  4709. faSpider: faSpider,
  4710. faSpinner: faSpinner,
  4711. faSplotch: faSplotch,
  4712. faSprayCan: faSprayCan,
  4713. faSquare: faSquare,
  4714. faSquareFull: faSquareFull,
  4715. faSquareRootAlt: faSquareRootAlt,
  4716. faStamp: faStamp,
  4717. faStar: faStar,
  4718. faStarAndCrescent: faStarAndCrescent,
  4719. faStarHalf: faStarHalf,
  4720. faStarHalfAlt: faStarHalfAlt,
  4721. faStarOfDavid: faStarOfDavid,
  4722. faStarOfLife: faStarOfLife,
  4723. faStepBackward: faStepBackward,
  4724. faStepForward: faStepForward,
  4725. faStethoscope: faStethoscope,
  4726. faStickyNote: faStickyNote,
  4727. faStop: faStop,
  4728. faStopCircle: faStopCircle,
  4729. faStopwatch: faStopwatch,
  4730. faStore: faStore,
  4731. faStoreAlt: faStoreAlt,
  4732. faStream: faStream,
  4733. faStreetView: faStreetView,
  4734. faStrikethrough: faStrikethrough,
  4735. faStroopwafel: faStroopwafel,
  4736. faSubscript: faSubscript,
  4737. faSubway: faSubway,
  4738. faSuitcase: faSuitcase,
  4739. faSuitcaseRolling: faSuitcaseRolling,
  4740. faSun: faSun,
  4741. faSuperscript: faSuperscript,
  4742. faSurprise: faSurprise,
  4743. faSwatchbook: faSwatchbook,
  4744. faSwimmer: faSwimmer,
  4745. faSwimmingPool: faSwimmingPool,
  4746. faSynagogue: faSynagogue,
  4747. faSync: faSync,
  4748. faSyncAlt: faSyncAlt,
  4749. faSyringe: faSyringe,
  4750. faTable: faTable,
  4751. faTableTennis: faTableTennis,
  4752. faTablet: faTablet,
  4753. faTabletAlt: faTabletAlt,
  4754. faTablets: faTablets,
  4755. faTachometerAlt: faTachometerAlt,
  4756. faTag: faTag,
  4757. faTags: faTags,
  4758. faTape: faTape,
  4759. faTasks: faTasks,
  4760. faTaxi: faTaxi,
  4761. faTeeth: faTeeth,
  4762. faTeethOpen: faTeethOpen,
  4763. faTerminal: faTerminal,
  4764. faTextHeight: faTextHeight,
  4765. faTextWidth: faTextWidth,
  4766. faTh: faTh,
  4767. faThLarge: faThLarge,
  4768. faThList: faThList,
  4769. faTheaterMasks: faTheaterMasks,
  4770. faThermometer: faThermometer,
  4771. faThermometerEmpty: faThermometerEmpty,
  4772. faThermometerFull: faThermometerFull,
  4773. faThermometerHalf: faThermometerHalf,
  4774. faThermometerQuarter: faThermometerQuarter,
  4775. faThermometerThreeQuarters: faThermometerThreeQuarters,
  4776. faThumbsDown: faThumbsDown,
  4777. faThumbsUp: faThumbsUp,
  4778. faThumbtack: faThumbtack,
  4779. faTicketAlt: faTicketAlt,
  4780. faTimes: faTimes,
  4781. faTimesCircle: faTimesCircle,
  4782. faTint: faTint,
  4783. faTintSlash: faTintSlash,
  4784. faTired: faTired,
  4785. faToggleOff: faToggleOff,
  4786. faToggleOn: faToggleOn,
  4787. faToiletPaper: faToiletPaper,
  4788. faToolbox: faToolbox,
  4789. faTooth: faTooth,
  4790. faTorah: faTorah,
  4791. faToriiGate: faToriiGate,
  4792. faTractor: faTractor,
  4793. faTrademark: faTrademark,
  4794. faTrafficLight: faTrafficLight,
  4795. faTrain: faTrain,
  4796. faTransgender: faTransgender,
  4797. faTransgenderAlt: faTransgenderAlt,
  4798. faTrash: faTrash,
  4799. faTrashAlt: faTrashAlt,
  4800. faTree: faTree,
  4801. faTrophy: faTrophy,
  4802. faTruck: faTruck,
  4803. faTruckLoading: faTruckLoading,
  4804. faTruckMonster: faTruckMonster,
  4805. faTruckMoving: faTruckMoving,
  4806. faTruckPickup: faTruckPickup,
  4807. faTshirt: faTshirt,
  4808. faTty: faTty,
  4809. faTv: faTv,
  4810. faUmbrella: faUmbrella,
  4811. faUmbrellaBeach: faUmbrellaBeach,
  4812. faUnderline: faUnderline,
  4813. faUndo: faUndo,
  4814. faUndoAlt: faUndoAlt,
  4815. faUniversalAccess: faUniversalAccess,
  4816. faUniversity: faUniversity,
  4817. faUnlink: faUnlink,
  4818. faUnlock: faUnlock,
  4819. faUnlockAlt: faUnlockAlt,
  4820. faUpload: faUpload,
  4821. faUser: faUser,
  4822. faUserAlt: faUserAlt,
  4823. faUserAltSlash: faUserAltSlash,
  4824. faUserAstronaut: faUserAstronaut,
  4825. faUserCheck: faUserCheck,
  4826. faUserCircle: faUserCircle,
  4827. faUserClock: faUserClock,
  4828. faUserCog: faUserCog,
  4829. faUserEdit: faUserEdit,
  4830. faUserFriends: faUserFriends,
  4831. faUserGraduate: faUserGraduate,
  4832. faUserInjured: faUserInjured,
  4833. faUserLock: faUserLock,
  4834. faUserMd: faUserMd,
  4835. faUserMinus: faUserMinus,
  4836. faUserNinja: faUserNinja,
  4837. faUserPlus: faUserPlus,
  4838. faUserSecret: faUserSecret,
  4839. faUserShield: faUserShield,
  4840. faUserSlash: faUserSlash,
  4841. faUserTag: faUserTag,
  4842. faUserTie: faUserTie,
  4843. faUserTimes: faUserTimes,
  4844. faUsers: faUsers,
  4845. faUsersCog: faUsersCog,
  4846. faUtensilSpoon: faUtensilSpoon,
  4847. faUtensils: faUtensils,
  4848. faVectorSquare: faVectorSquare,
  4849. faVenus: faVenus,
  4850. faVenusDouble: faVenusDouble,
  4851. faVenusMars: faVenusMars,
  4852. faVial: faVial,
  4853. faVials: faVials,
  4854. faVideo: faVideo,
  4855. faVideoSlash: faVideoSlash,
  4856. faVihara: faVihara,
  4857. faVolleyballBall: faVolleyballBall,
  4858. faVolumeDown: faVolumeDown,
  4859. faVolumeMute: faVolumeMute,
  4860. faVolumeOff: faVolumeOff,
  4861. faVolumeUp: faVolumeUp,
  4862. faVrCardboard: faVrCardboard,
  4863. faWalking: faWalking,
  4864. faWallet: faWallet,
  4865. faWarehouse: faWarehouse,
  4866. faWeight: faWeight,
  4867. faWeightHanging: faWeightHanging,
  4868. faWheelchair: faWheelchair,
  4869. faWifi: faWifi,
  4870. faWind: faWind,
  4871. faWindowClose: faWindowClose,
  4872. faWindowMaximize: faWindowMaximize,
  4873. faWindowMinimize: faWindowMinimize,
  4874. faWindowRestore: faWindowRestore,
  4875. faWineBottle: faWineBottle,
  4876. faWineGlass: faWineGlass,
  4877. faWineGlassAlt: faWineGlassAlt,
  4878. faWonSign: faWonSign,
  4879. faWrench: faWrench,
  4880. faXRay: faXRay,
  4881. faYenSign: faYenSign,
  4882. faYinYang: faYinYang
  4883. };
  4884. /***/ }),
  4885. /***/ "../../node_modules/@fortawesome/react-fontawesome/index.es.js":
  4886. /*!*****************************************************************************************!*\
  4887. !*** C:/Dev/Babylon/Babylon.js/node_modules/@fortawesome/react-fontawesome/index.es.js ***!
  4888. \*****************************************************************************************/
  4889. /*! exports provided: FontAwesomeIcon */
  4890. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4891. "use strict";
  4892. __webpack_require__.r(__webpack_exports__);
  4893. /* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FontAwesomeIcon", function() { return FontAwesomeIcon; });
  4894. /* harmony import */ var _fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fortawesome/fontawesome-svg-core */ "../../node_modules/@fortawesome/fontawesome-svg-core/index.es.js");
  4895. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  4896. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
  4897. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  4898. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  4899. var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  4900. function createCommonjsModule(fn, module) {
  4901. return module = { exports: {} }, fn(module, module.exports), module.exports;
  4902. }
  4903. var humps = createCommonjsModule(function (module) {
  4904. (function(global) {
  4905. var _processKeys = function(convert, obj, options) {
  4906. if(!_isObject(obj) || _isDate(obj) || _isRegExp(obj) || _isBoolean(obj) || _isFunction(obj)) {
  4907. return obj;
  4908. }
  4909. var output,
  4910. i = 0,
  4911. l = 0;
  4912. if(_isArray(obj)) {
  4913. output = [];
  4914. for(l=obj.length; i<l; i++) {
  4915. output.push(_processKeys(convert, obj[i], options));
  4916. }
  4917. }
  4918. else {
  4919. output = {};
  4920. for(var key in obj) {
  4921. if(Object.prototype.hasOwnProperty.call(obj, key)) {
  4922. output[convert(key, options)] = _processKeys(convert, obj[key], options);
  4923. }
  4924. }
  4925. }
  4926. return output;
  4927. };
  4928. // String conversion methods
  4929. var separateWords = function(string, options) {
  4930. options = options || {};
  4931. var separator = options.separator || '_';
  4932. var split = options.split || /(?=[A-Z])/;
  4933. return string.split(split).join(separator);
  4934. };
  4935. var camelize = function(string) {
  4936. if (_isNumerical(string)) {
  4937. return string;
  4938. }
  4939. string = string.replace(/[\-_\s]+(.)?/g, function(match, chr) {
  4940. return chr ? chr.toUpperCase() : '';
  4941. });
  4942. // Ensure 1st char is always lowercase
  4943. return string.substr(0, 1).toLowerCase() + string.substr(1);
  4944. };
  4945. var pascalize = function(string) {
  4946. var camelized = camelize(string);
  4947. // Ensure 1st char is always uppercase
  4948. return camelized.substr(0, 1).toUpperCase() + camelized.substr(1);
  4949. };
  4950. var decamelize = function(string, options) {
  4951. return separateWords(string, options).toLowerCase();
  4952. };
  4953. // Utilities
  4954. // Taken from Underscore.js
  4955. var toString = Object.prototype.toString;
  4956. var _isFunction = function(obj) {
  4957. return typeof(obj) === 'function';
  4958. };
  4959. var _isObject = function(obj) {
  4960. return obj === Object(obj);
  4961. };
  4962. var _isArray = function(obj) {
  4963. return toString.call(obj) == '[object Array]';
  4964. };
  4965. var _isDate = function(obj) {
  4966. return toString.call(obj) == '[object Date]';
  4967. };
  4968. var _isRegExp = function(obj) {
  4969. return toString.call(obj) == '[object RegExp]';
  4970. };
  4971. var _isBoolean = function(obj) {
  4972. return toString.call(obj) == '[object Boolean]';
  4973. };
  4974. // Performant way to determine if obj coerces to a number
  4975. var _isNumerical = function(obj) {
  4976. obj = obj - 0;
  4977. return obj === obj;
  4978. };
  4979. // Sets up function which handles processing keys
  4980. // allowing the convert function to be modified by a callback
  4981. var _processor = function(convert, options) {
  4982. var callback = options && 'process' in options ? options.process : options;
  4983. if(typeof(callback) !== 'function') {
  4984. return convert;
  4985. }
  4986. return function(string, options) {
  4987. return callback(string, convert, options);
  4988. }
  4989. };
  4990. var humps = {
  4991. camelize: camelize,
  4992. decamelize: decamelize,
  4993. pascalize: pascalize,
  4994. depascalize: decamelize,
  4995. camelizeKeys: function(object, options) {
  4996. return _processKeys(_processor(camelize, options), object);
  4997. },
  4998. decamelizeKeys: function(object, options) {
  4999. return _processKeys(_processor(decamelize, options), object, options);
  5000. },
  5001. pascalizeKeys: function(object, options) {
  5002. return _processKeys(_processor(pascalize, options), object);
  5003. },
  5004. depascalizeKeys: function () {
  5005. return this.decamelizeKeys.apply(this, arguments);
  5006. }
  5007. };
  5008. if (module.exports) {
  5009. module.exports = humps;
  5010. } else {
  5011. global.humps = humps;
  5012. }
  5013. })(commonjsGlobal);
  5014. });
  5015. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
  5016. return typeof obj;
  5017. } : function (obj) {
  5018. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  5019. };
  5020. var defineProperty = function (obj, key, value) {
  5021. if (key in obj) {
  5022. Object.defineProperty(obj, key, {
  5023. value: value,
  5024. enumerable: true,
  5025. configurable: true,
  5026. writable: true
  5027. });
  5028. } else {
  5029. obj[key] = value;
  5030. }
  5031. return obj;
  5032. };
  5033. var _extends = Object.assign || function (target) {
  5034. for (var i = 1; i < arguments.length; i++) {
  5035. var source = arguments[i];
  5036. for (var key in source) {
  5037. if (Object.prototype.hasOwnProperty.call(source, key)) {
  5038. target[key] = source[key];
  5039. }
  5040. }
  5041. }
  5042. return target;
  5043. };
  5044. var objectWithoutProperties = function (obj, keys) {
  5045. var target = {};
  5046. for (var i in obj) {
  5047. if (keys.indexOf(i) >= 0) continue;
  5048. if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
  5049. target[i] = obj[i];
  5050. }
  5051. return target;
  5052. };
  5053. var toConsumableArray = function (arr) {
  5054. if (Array.isArray(arr)) {
  5055. for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
  5056. return arr2;
  5057. } else {
  5058. return Array.from(arr);
  5059. }
  5060. };
  5061. function capitalize(val) {
  5062. return val.charAt(0).toUpperCase() + val.slice(1);
  5063. }
  5064. function styleToObject(style) {
  5065. return style.split(';').map(function (s) {
  5066. return s.trim();
  5067. }).filter(function (s) {
  5068. return s;
  5069. }).reduce(function (acc, pair) {
  5070. var i = pair.indexOf(':');
  5071. var prop = humps.camelize(pair.slice(0, i));
  5072. var value = pair.slice(i + 1).trim();
  5073. prop.startsWith('webkit') ? acc[capitalize(prop)] = value : acc[prop] = value;
  5074. return acc;
  5075. }, {});
  5076. }
  5077. function convert(createElement, element) {
  5078. var extraProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  5079. if (typeof element === 'string') {
  5080. return element;
  5081. }
  5082. var children = (element.children || []).map(convert.bind(null, createElement));
  5083. var mixins = Object.keys(element.attributes || {}).reduce(function (acc, key) {
  5084. var val = element.attributes[key];
  5085. switch (key) {
  5086. case 'class':
  5087. acc.attrs['className'] = val;
  5088. delete element.attributes['class'];
  5089. break;
  5090. case 'style':
  5091. acc.attrs['style'] = styleToObject(val);
  5092. break;
  5093. default:
  5094. if (key.indexOf('aria-') === 0 || key.indexOf('data-') === 0) {
  5095. acc.attrs[key.toLowerCase()] = val;
  5096. } else {
  5097. acc.attrs[humps.camelize(key)] = val;
  5098. }
  5099. }
  5100. return acc;
  5101. }, { attrs: {} });
  5102. var _extraProps$style = extraProps.style,
  5103. existingStyle = _extraProps$style === undefined ? {} : _extraProps$style,
  5104. remaining = objectWithoutProperties(extraProps, ['style']);
  5105. mixins.attrs['style'] = _extends({}, mixins.attrs['style'], existingStyle);
  5106. return createElement.apply(undefined, [element.tag, _extends({}, mixins.attrs, remaining)].concat(toConsumableArray(children)));
  5107. }
  5108. var PRODUCTION = false;
  5109. try {
  5110. PRODUCTION = "development" === 'production';
  5111. } catch (e) {}
  5112. function log () {
  5113. if (!PRODUCTION && console && typeof console.error === 'function') {
  5114. var _console;
  5115. (_console = console).error.apply(_console, arguments);
  5116. }
  5117. }
  5118. function objectWithKey(key, value) {
  5119. return Array.isArray(value) && value.length > 0 || !Array.isArray(value) && value ? defineProperty({}, key, value) : {};
  5120. }
  5121. function classList(props) {
  5122. var _classes;
  5123. var classes = (_classes = {
  5124. 'fa-spin': props.spin,
  5125. 'fa-pulse': props.pulse,
  5126. 'fa-fw': props.fixedWidth,
  5127. 'fa-inverse': props.inverse,
  5128. 'fa-border': props.border,
  5129. 'fa-li': props.listItem,
  5130. 'fa-flip-horizontal': props.flip === 'horizontal' || props.flip === 'both',
  5131. 'fa-flip-vertical': props.flip === 'vertical' || props.flip === 'both'
  5132. }, defineProperty(_classes, 'fa-' + props.size, props.size !== null), defineProperty(_classes, 'fa-rotate-' + props.rotation, props.rotation !== null), defineProperty(_classes, 'fa-pull-' + props.pull, props.pull !== null), _classes);
  5133. return Object.keys(classes).map(function (key) {
  5134. return classes[key] ? key : null;
  5135. }).filter(function (key) {
  5136. return key;
  5137. });
  5138. }
  5139. function normalizeIconArgs(icon$$1) {
  5140. if (icon$$1 === null) {
  5141. return null;
  5142. }
  5143. if ((typeof icon$$1 === 'undefined' ? 'undefined' : _typeof(icon$$1)) === 'object' && icon$$1.prefix && icon$$1.iconName) {
  5144. return icon$$1;
  5145. }
  5146. if (Array.isArray(icon$$1) && icon$$1.length === 2) {
  5147. return { prefix: icon$$1[0], iconName: icon$$1[1] };
  5148. }
  5149. if (typeof icon$$1 === 'string') {
  5150. return { prefix: 'fas', iconName: icon$$1 };
  5151. }
  5152. }
  5153. function FontAwesomeIcon(props) {
  5154. var iconArgs = props.icon,
  5155. maskArgs = props.mask,
  5156. symbol = props.symbol,
  5157. className = props.className,
  5158. title = props.title;
  5159. var iconLookup = normalizeIconArgs(iconArgs);
  5160. var classes = objectWithKey('classes', [].concat(toConsumableArray(classList(props)), toConsumableArray(className.split(' '))));
  5161. var transform = objectWithKey('transform', typeof props.transform === 'string' ? _fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__["parse"].transform(props.transform) : props.transform);
  5162. var mask = objectWithKey('mask', normalizeIconArgs(maskArgs));
  5163. var renderedIcon = Object(_fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__["icon"])(iconLookup, _extends({}, classes, transform, mask, {
  5164. symbol: symbol,
  5165. title: title
  5166. }));
  5167. if (!renderedIcon) {
  5168. log('Could not find icon', iconLookup);
  5169. return null;
  5170. }
  5171. var abstract = renderedIcon.abstract;
  5172. var extraProps = {};
  5173. Object.keys(props).forEach(function (key) {
  5174. if (!FontAwesomeIcon.defaultProps.hasOwnProperty(key)) {
  5175. extraProps[key] = props[key];
  5176. }
  5177. });
  5178. return convertCurry(abstract[0], extraProps);
  5179. }
  5180. FontAwesomeIcon.displayName = 'FontAwesomeIcon';
  5181. FontAwesomeIcon.propTypes = {
  5182. border: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5183. className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  5184. mask: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]),
  5185. fixedWidth: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5186. inverse: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5187. flip: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['horizontal', 'vertical', 'both']),
  5188. icon: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]),
  5189. listItem: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5190. pull: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['right', 'left']),
  5191. pulse: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5192. rotation: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf([90, 180, 270]),
  5193. size: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['lg', 'xs', 'sm', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x']),
  5194. spin: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5195. symbol: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]),
  5196. title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  5197. transform: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object])
  5198. };
  5199. FontAwesomeIcon.defaultProps = {
  5200. border: false,
  5201. className: '',
  5202. mask: null,
  5203. fixedWidth: false,
  5204. inverse: false,
  5205. flip: null,
  5206. icon: null,
  5207. listItem: false,
  5208. pull: null,
  5209. pulse: false,
  5210. rotation: null,
  5211. size: null,
  5212. spin: false,
  5213. symbol: false,
  5214. title: '',
  5215. transform: null
  5216. };
  5217. var convertCurry = convert.bind(null, react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement);
  5218. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  5219. /***/ }),
  5220. /***/ "../../node_modules/classnames/index.js":
  5221. /*!******************************************************************!*\
  5222. !*** C:/Dev/Babylon/Babylon.js/node_modules/classnames/index.js ***!
  5223. \******************************************************************/
  5224. /*! no static exports found */
  5225. /***/ (function(module, exports, __webpack_require__) {
  5226. var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
  5227. Copyright (c) 2017 Jed Watson.
  5228. Licensed under the MIT License (MIT), see
  5229. http://jedwatson.github.io/classnames
  5230. */
  5231. /* global define */
  5232. (function () {
  5233. 'use strict';
  5234. var hasOwn = {}.hasOwnProperty;
  5235. function classNames () {
  5236. var classes = [];
  5237. for (var i = 0; i < arguments.length; i++) {
  5238. var arg = arguments[i];
  5239. if (!arg) continue;
  5240. var argType = typeof arg;
  5241. if (argType === 'string' || argType === 'number') {
  5242. classes.push(arg);
  5243. } else if (Array.isArray(arg) && arg.length) {
  5244. var inner = classNames.apply(null, arg);
  5245. if (inner) {
  5246. classes.push(inner);
  5247. }
  5248. } else if (argType === 'object') {
  5249. for (var key in arg) {
  5250. if (hasOwn.call(arg, key) && arg[key]) {
  5251. classes.push(key);
  5252. }
  5253. }
  5254. }
  5255. }
  5256. return classes.join(' ');
  5257. }
  5258. if ( true && module.exports) {
  5259. classNames.default = classNames;
  5260. module.exports = classNames;
  5261. } else if (true) {
  5262. // register as 'classnames', consistent with npm package name
  5263. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
  5264. return classNames;
  5265. }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
  5266. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  5267. } else {}
  5268. }());
  5269. /***/ }),
  5270. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/actionTabs/actionTabs.scss":
  5271. /*!******************************************************************************************************************************************************************!*\
  5272. !*** C:/Dev/Babylon/Babylon.js/node_modules/css-loader!C:/Dev/Babylon/Babylon.js/node_modules/sass-loader/lib/loader.js!./components/actionTabs/actionTabs.scss ***!
  5273. \******************************************************************************************************************************************************************/
  5274. /*! no static exports found */
  5275. /***/ (function(module, exports, __webpack_require__) {
  5276. exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  5277. // imports
  5278. // module
  5279. exports.push([module.i, "#inspector-host {\n position: absolute;\n right: 0px;\n top: 0px;\n bottom: 0px; }\n\n#__resizable_base__ {\n display: none; }\n\n#actionTabs {\n background: #333333;\n height: 100%;\n margin: 0;\n padding: 0;\n display: grid;\n grid-template-rows: auto 1fr;\n font: 14px \"Arial\";\n overflow: hidden; }\n #actionTabs .hoverIcon:hover {\n opacity: 0.8; }\n #actionTabs #header {\n height: 30px;\n font-size: 16px;\n color: white;\n background: #222222;\n grid-row: 1;\n text-align: center;\n display: grid;\n grid-template-columns: 30px 1fr 50px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n #actionTabs #header #logo {\n grid-column: 1;\n width: 24px;\n height: 24px;\n display: flex;\n align-self: center;\n justify-self: center; }\n #actionTabs #header #back {\n grid-column: 1;\n display: grid;\n align-self: center;\n justify-self: center;\n cursor: pointer; }\n #actionTabs #header #title {\n grid-column: 2;\n display: grid;\n align-items: center;\n text-align: center; }\n #actionTabs #header #commands {\n grid-column: 3;\n display: grid;\n align-items: center;\n grid-template-columns: 1fr 1fr; }\n #actionTabs #header #commands .expand {\n grid-column: 1;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #actionTabs #header #commands .close {\n grid-column: 2;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #actionTabs .tabs {\n display: grid;\n grid-row: 2;\n grid-template-rows: 40px 1fr;\n font: 14px \"Arial\";\n overflow: hidden; }\n #actionTabs .tabs .labels {\n grid-row: 1;\n display: flex;\n align-items: center;\n justify-items: center;\n border-bottom: 1px solid #ffffff;\n margin: 0;\n padding: 0; }\n #actionTabs .tabs .labels .label {\n font-size: 24px;\n color: white;\n width: 40px;\n display: flex;\n align-content: center;\n justify-content: center;\n border: 1px solid transparent;\n border-bottom: none;\n background: #333333;\n padding: 5px;\n height: 28px;\n cursor: pointer; }\n #actionTabs .tabs .labels .label.active {\n border-color: #ffffff;\n border-bottom: 2px solid transparent;\n margin-bottom: -2px; }\n #actionTabs .tabs .panes {\n grid-row: 2;\n display: grid;\n grid-template-rows: 100%;\n overflow: hidden; }\n #actionTabs .tabs .panes .infoMessage {\n opacity: 0.5;\n color: white;\n margin: 15px 5px 0px 5px; }\n #actionTabs .tabs .panes .pane {\n color: white;\n overflow-x: hidden;\n overflow-y: auto;\n height: 100%;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n #actionTabs .tabs .panes .pane .underline {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.5); }\n #actionTabs .tabs .panes .pane .textureLinkLine {\n display: grid;\n grid-template-columns: auto 1fr; }\n #actionTabs .tabs .panes .pane .textureLinkLine .debug {\n grid-column: 1;\n margin-left: 5px;\n margin-right: 5px;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer;\n opacity: 0.5; }\n #actionTabs .tabs .panes .pane .textureLinkLine .debug.selected {\n opacity: 1.0; }\n #actionTabs .tabs .panes .pane .textureLinkLine .textLine {\n grid-column: 2; }\n #actionTabs .tabs .panes .pane .messageLine {\n text-align: center;\n font-size: 12px;\n font-style: italic;\n opacity: 0.6; }\n #actionTabs .tabs .panes .pane .iconMessageLine {\n padding-left: 2px;\n height: 30px;\n display: grid;\n grid-template-columns: 30px 1fr; }\n #actionTabs .tabs .panes .pane .iconMessageLine .icon {\n grid-column: 1;\n display: grid;\n align-items: center;\n justify-items: center; }\n #actionTabs .tabs .panes .pane .iconMessageLine .value {\n grid-column: 2;\n display: flex;\n align-items: center; }\n #actionTabs .tabs .panes .pane .textLine {\n padding-left: 2px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #actionTabs .tabs .panes .pane .textLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #actionTabs .tabs .panes .pane .textLine .link-value {\n grid-column: 2;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n text-align: end;\n opacity: 0.8;\n margin: 5px;\n margin-top: 6px;\n max-width: 140px;\n text-decoration: underline;\n cursor: pointer; }\n #actionTabs .tabs .panes .pane .textLine .value {\n grid-column: 2;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n text-align: end;\n opacity: 0.8;\n margin: 5px;\n margin-top: 6px;\n max-width: 200px;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text; }\n #actionTabs .tabs .panes .pane .textLine .value.check {\n color: green; }\n #actionTabs .tabs .panes .pane .textLine .value.uncheck {\n color: red; }\n #actionTabs .tabs .panes .pane .textInputLine {\n padding-left: 2px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr 120px; }\n #actionTabs .tabs .panes .pane .textInputLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #actionTabs .tabs .panes .pane .textInputLine .value {\n display: flex;\n align-items: center;\n grid-column: 2; }\n #actionTabs .tabs .panes .pane .textInputLine .value input {\n width: 110px; }\n #actionTabs .tabs .panes .pane .buttonLine {\n height: 30px;\n display: grid;\n align-items: center;\n justify-items: stretch; }\n #actionTabs .tabs .panes .pane .buttonLine input[type=\"file\"] {\n display: none; }\n #actionTabs .tabs .panes .pane .buttonLine .file-upload {\n background: #222222;\n border: 1px solid #337ab7;\n margin: 5px 10px 5px 10px;\n color: white;\n padding: 4px 5px;\n opacity: 0.9;\n cursor: pointer;\n text-align: center; }\n #actionTabs .tabs .panes .pane .buttonLine .file-upload:hover {\n opacity: 1.0; }\n #actionTabs .tabs .panes .pane .buttonLine .file-upload:active {\n transform: scale(0.98);\n transform-origin: 0.5 0.5; }\n #actionTabs .tabs .panes .pane .buttonLine button {\n background: #222222;\n border: 1px solid #337ab7;\n margin: 5px 10px 5px 10px;\n color: white;\n padding: 4px 5px;\n opacity: 0.9; }\n #actionTabs .tabs .panes .pane .buttonLine button:hover {\n opacity: 1.0; }\n #actionTabs .tabs .panes .pane .buttonLine button:active {\n background: #282828; }\n #actionTabs .tabs .panes .pane .buttonLine button:focus {\n border: 1px solid #337ab7;\n outline: 0px; }\n #actionTabs .tabs .panes .pane .radioLine {\n padding-left: 2px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr 24px; }\n #actionTabs .tabs .panes .pane .radioLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #actionTabs .tabs .panes .pane .radioLine .radioContainer {\n display: flex;\n align-items: center; }\n #actionTabs .tabs .panes .pane .radioLine .radioContainer .radio {\n grid-column: 2;\n display: none; }\n #actionTabs .tabs .panes .pane .radioLine .radioContainer .radio:checked + label:before {\n border-color: #337ab7; }\n #actionTabs .tabs .panes .pane .radioLine .radioContainer .radio:checked + label:after {\n transform: scale(1); }\n #actionTabs .tabs .panes .pane .radioLine .radioContainer .labelForRadio {\n display: inline-block;\n height: 14px;\n position: relative;\n padding: 0 24px;\n margin-bottom: 0;\n cursor: pointer;\n vertical-align: bottom; }\n #actionTabs .tabs .panes .pane .radioLine .radioContainer .labelForRadio:before, #actionTabs .tabs .panes .pane .radioLine .radioContainer .labelForRadio:after {\n position: absolute;\n content: '';\n border-radius: 50%;\n transition: all .3s ease;\n transition-property: transform, border-color; }\n #actionTabs .tabs .panes .pane .radioLine .radioContainer .labelForRadio:before {\n left: 0px;\n top: 0;\n width: 16px;\n height: 16px;\n border: 2px solid white; }\n #actionTabs .tabs .panes .pane .radioLine .radioContainer .labelForRadio:after {\n top: 6px;\n left: 6px;\n width: 8px;\n height: 8px;\n transform: scale(0);\n background: #337ab7; }\n #actionTabs .tabs .panes .pane .vector3Line {\n padding-left: 2px;\n display: grid; }\n #actionTabs .tabs .panes .pane .vector3Line .firstLine {\n display: grid;\n grid-template-columns: 1fr auto 20px;\n height: 30px; }\n #actionTabs .tabs .panes .pane .vector3Line .firstLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #actionTabs .tabs .panes .pane .vector3Line .firstLine .vector {\n grid-column: 2;\n display: flex;\n align-items: center;\n text-align: right;\n opacity: 0.8; }\n #actionTabs .tabs .panes .pane .vector3Line .firstLine .expand {\n grid-column: 3;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #actionTabs .tabs .panes .pane .vector3Line .secondLine {\n display: grid;\n padding-right: 5px;\n border-left: 1px solid #337ab7; }\n #actionTabs .tabs .panes .pane .vector3Line .secondLine .numeric {\n display: grid;\n grid-template-columns: 1fr auto; }\n #actionTabs .tabs .panes .pane .vector3Line .secondLine .numeric-label {\n text-align: right;\n grid-column: 1;\n display: flex;\n align-items: center;\n justify-self: right;\n margin-right: 10px; }\n #actionTabs .tabs .panes .pane .vector3Line .secondLine .numeric-value {\n width: 120px;\n grid-column: 2;\n display: flex;\n align-items: center;\n border: 1px solid #337ab7; }\n #actionTabs .tabs .panes .pane .checkBoxLine {\n padding-left: 2px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #actionTabs .tabs .panes .pane .checkBoxLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #actionTabs .tabs .panes .pane .checkBoxLine .checkBox {\n grid-column: 2;\n display: flex;\n align-items: center; }\n #actionTabs .tabs .panes .pane .checkBoxLine .checkBox .lbl {\n position: relative;\n display: block;\n height: 14px;\n width: 34px;\n margin-right: 5px;\n background: #898989;\n border-radius: 100px;\n cursor: pointer;\n transition: all 0.3s ease; }\n #actionTabs .tabs .panes .pane .checkBoxLine .checkBox .lbl:after {\n position: absolute;\n left: 3px;\n top: 2px;\n display: block;\n width: 10px;\n height: 10px;\n border-radius: 100px;\n background: #fff;\n box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.05);\n content: '';\n transition: all 0.15s ease; }\n #actionTabs .tabs .panes .pane .checkBoxLine .checkBox .lbl:active:after {\n transform: scale(1.15, 0.85); }\n #actionTabs .tabs .panes .pane .checkBoxLine .checkBox .cbx:checked ~ label {\n background: #337ab7; }\n #actionTabs .tabs .panes .pane .checkBoxLine .checkBox .cbx:checked ~ label:after {\n left: 20px;\n background: #164975; }\n #actionTabs .tabs .panes .pane .checkBoxLine .checkBox .hidden {\n display: none; }\n #actionTabs .tabs .panes .pane .textureLine {\n display: grid;\n grid-template-rows: 30px auto; }\n #actionTabs .tabs .panes .pane .textureLine .control {\n margin-top: 2px;\n grid-row: 1;\n display: grid;\n grid-template-columns: 1fr 40px 40px 40px 40px 40px 1fr; }\n #actionTabs .tabs .panes .pane .textureLine .control .red {\n grid-column: 2; }\n #actionTabs .tabs .panes .pane .textureLine .control .green {\n grid-column: 3; }\n #actionTabs .tabs .panes .pane .textureLine .control .blue {\n grid-column: 4; }\n #actionTabs .tabs .panes .pane .textureLine .control .alpha {\n grid-column: 5; }\n #actionTabs .tabs .panes .pane .textureLine .control .all {\n grid-column: 6; }\n #actionTabs .tabs .panes .pane .textureLine .control3D {\n margin-top: 2px;\n grid-row: 1;\n display: grid;\n grid-template-columns: 1fr 40px 40px 40px 40px 40px 40px 1fr; }\n #actionTabs .tabs .panes .pane .textureLine .control3D .px {\n grid-column: 2; }\n #actionTabs .tabs .panes .pane .textureLine .control3D .nx {\n grid-column: 3; }\n #actionTabs .tabs .panes .pane .textureLine .control3D .py {\n grid-column: 4; }\n #actionTabs .tabs .panes .pane .textureLine .control3D .ny {\n grid-column: 5; }\n #actionTabs .tabs .panes .pane .textureLine .control3D .pz {\n grid-column: 6; }\n #actionTabs .tabs .panes .pane .textureLine .control3D .nz {\n grid-column: 7; }\n #actionTabs .tabs .panes .pane .textureLine .command {\n border: 1px solid transparent;\n background: transparent;\n color: white; }\n #actionTabs .tabs .panes .pane .textureLine .selected {\n border: 1px solid #337ab7; }\n #actionTabs .tabs .panes .pane .textureLine .preview {\n grid-row: 2;\n display: grid;\n align-self: center;\n justify-self: center;\n height: 256px;\n width: 256px;\n margin-top: 5px;\n margin-bottom: 5px;\n border: 2px solid rgba(255, 255, 255, 0.4); }\n #actionTabs .tabs .panes .pane .gltf-extension-property {\n margin-left: 30px;\n border-left: 1px solid #337ab7; }\n #actionTabs .tabs .panes .pane .floatLine {\n padding-left: 2px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr 120px; }\n #actionTabs .tabs .panes .pane .floatLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #actionTabs .tabs .panes .pane .floatLine .value {\n grid-column: 2;\n display: flex;\n align-items: center; }\n #actionTabs .tabs .panes .pane .floatLine .value input {\n width: 110px; }\n #actionTabs .tabs .panes .pane .sliderLine {\n padding-left: 2px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #actionTabs .tabs .panes .pane .sliderLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #actionTabs .tabs .panes .pane .sliderLine .slider {\n grid-column: 2;\n margin-right: 5px;\n display: flex;\n align-items: center; }\n #actionTabs .tabs .panes .pane .sliderLine .slider .range {\n -webkit-appearance: none;\n width: 120px;\n height: 6px;\n background: #d3d3d3;\n border-radius: 5px;\n outline: none;\n opacity: 0.7;\n -webkit-transition: .2s;\n transition: opacity .2s; }\n #actionTabs .tabs .panes .pane .sliderLine .slider .range:hover {\n opacity: 1; }\n #actionTabs .tabs .panes .pane .sliderLine .slider .range::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: 14px;\n height: 14px;\n border-radius: 50%;\n background: #337ab7;\n cursor: pointer; }\n #actionTabs .tabs .panes .pane .sliderLine .slider .range::-moz-range-thumb {\n width: 14px;\n height: 14px;\n border-radius: 50%;\n background: #337ab7;\n cursor: pointer; }\n #actionTabs .tabs .panes .pane .color3Line {\n padding-left: 2px;\n display: grid; }\n #actionTabs .tabs .panes .pane .color3Line .firstLine {\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto 20px 20px; }\n #actionTabs .tabs .panes .pane .color3Line .firstLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #actionTabs .tabs .panes .pane .color3Line .firstLine .color3 {\n grid-column: 2;\n display: flex;\n align-items: center; }\n #actionTabs .tabs .panes .pane .color3Line .firstLine .color3 input[type=\"color\"] {\n -webkit-appearance: none;\n border: 1px solid rgba(255, 255, 255, 0.5);\n padding: 0;\n width: 30px;\n height: 20px; }\n #actionTabs .tabs .panes .pane .color3Line .firstLine .color3 input[type=\"color\"]::-webkit-color-swatch-wrapper {\n padding: 0; }\n #actionTabs .tabs .panes .pane .color3Line .firstLine .color3 input[type=\"color\"]::-webkit-color-swatch {\n border: none; }\n #actionTabs .tabs .panes .pane .color3Line .firstLine .color3 input {\n margin-right: 5px; }\n #actionTabs .tabs .panes .pane .color3Line .firstLine .copy {\n grid-column: 3;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #actionTabs .tabs .panes .pane .color3Line .firstLine .copy img {\n height: 100%; }\n #actionTabs .tabs .panes .pane .color3Line .firstLine .expand {\n grid-column: 4;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #actionTabs .tabs .panes .pane .color3Line .secondLine {\n display: grid;\n padding-right: 5px;\n border-left: 1px solid #337ab7; }\n #actionTabs .tabs .panes .pane .color3Line .secondLine .numeric {\n display: grid;\n grid-template-columns: 1fr auto; }\n #actionTabs .tabs .panes .pane .color3Line .secondLine .numeric-label {\n text-align: right;\n grid-column: 1;\n display: flex;\n align-items: center;\n justify-self: right;\n margin-right: 10px; }\n #actionTabs .tabs .panes .pane .color3Line .secondLine .numeric-value {\n width: 120px;\n grid-column: 2;\n display: flex;\n align-items: center;\n border: 1px solid #337ab7; }\n #actionTabs .tabs .panes .pane .listLine {\n padding-left: 2px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #actionTabs .tabs .panes .pane .listLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #actionTabs .tabs .panes .pane .listLine .options {\n grid-column: 2;\n display: flex;\n align-items: center;\n margin-right: 5px; }\n #actionTabs .tabs .panes .pane .listLine .options select {\n width: 115px; }\n #actionTabs .tabs .panes .pane .paneContainer {\n margin-top: 3px;\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 100%; }\n #actionTabs .tabs .panes .pane .paneContainer .paneList {\n border-left: 3px solid transparent; }\n #actionTabs .tabs .panes .pane .paneContainer:hover .paneList {\n border-left: 3px solid rgba(51, 122, 183, 0.8); }\n #actionTabs .tabs .panes .pane .paneContainer:hover .paneContainer-content .header .title {\n border-left: 3px solid #337ab7; }\n #actionTabs .tabs .panes .pane .paneContainer .paneContainer-highlight-border {\n grid-row: 1;\n grid-column: 1;\n opacity: 1;\n border: 3px solid red;\n transition: opacity 250ms;\n pointer-events: none; }\n #actionTabs .tabs .panes .pane .paneContainer .paneContainer-highlight-border.transparent {\n opacity: 0; }\n #actionTabs .tabs .panes .pane .paneContainer .paneContainer-content {\n grid-row: 1;\n grid-column: 1; }\n #actionTabs .tabs .panes .pane .paneContainer .paneContainer-content .header {\n display: grid;\n grid-template-columns: 1fr auto;\n background: #555555;\n height: 30px;\n padding-right: 5px;\n cursor: pointer; }\n #actionTabs .tabs .panes .pane .paneContainer .paneContainer-content .header .title {\n border-left: 3px solid transparent;\n padding-left: 5px;\n grid-column: 1;\n display: flex;\n align-items: center; }\n #actionTabs .tabs .panes .pane .paneContainer .paneContainer-content .header .collapse {\n grid-column: 2;\n display: flex;\n align-items: center;\n justify-items: center;\n transform-origin: center; }\n #actionTabs .tabs .panes .pane .paneContainer .paneContainer-content .header .collapse.closed {\n transform: rotate(180deg); }\n #actionTabs .tabs .panes .pane .paneContainer .paneContainer-content .paneList > div:not(:last-child) {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.1); }\n #actionTabs .tabs .panes .pane .paneContainer .paneContainer-content .fragment > div:not(:last-child) {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.1); }\n", ""]);
  5280. // exports
  5281. /***/ }),
  5282. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/embedHost/embedHost.scss":
  5283. /*!****************************************************************************************************************************************************************!*\
  5284. !*** C:/Dev/Babylon/Babylon.js/node_modules/css-loader!C:/Dev/Babylon/Babylon.js/node_modules/sass-loader/lib/loader.js!./components/embedHost/embedHost.scss ***!
  5285. \****************************************************************************************************************************************************************/
  5286. /*! no static exports found */
  5287. /***/ (function(module, exports, __webpack_require__) {
  5288. exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  5289. // imports
  5290. // module
  5291. exports.push([module.i, "#embed-host {\n position: absolute;\n right: 0px;\n top: 0px;\n bottom: 0px; }\n\n#__resizable_base__ {\n display: none; }\n\n#embed {\n background: #333333;\n height: 100%;\n margin: 0;\n padding: 0;\n display: grid;\n grid-template-rows: 30px 1fr;\n font: 14px \"Arial\";\n overflow: hidden; }\n #embed #header {\n font-size: 16px;\n color: white;\n background: #222222;\n grid-row: 1;\n text-align: center;\n display: grid;\n grid-template-columns: 30px 1fr 50px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n #embed #header #logo {\n grid-column: 1;\n width: 24px;\n height: 24px;\n display: flex;\n align-self: center;\n justify-self: center; }\n #embed #header #back {\n grid-column: 1;\n display: grid;\n align-self: center;\n justify-self: center;\n cursor: pointer; }\n #embed #header #title {\n grid-column: 2;\n display: grid;\n align-items: center;\n text-align: center; }\n #embed #header #commands {\n grid-column: 3;\n display: grid;\n align-items: center;\n grid-template-columns: 1fr 1fr; }\n #embed #header #commands .expand {\n grid-column: 1;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #embed #header #commands .close {\n grid-column: 2;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #embed #split {\n grid-row: 2;\n overflow: hidden; }\n #embed #split.splitPopup {\n display: grid;\n grid-template-rows: 300px 2px 1fr; }\n #embed #split.splitPopup .panes {\n margin-bottom: 1px; }\n #embed #split #topPart {\n grid-row: 1;\n overflow: hidden;\n display: grid;\n grid-auto-rows: 100%; }\n #embed #split #separator {\n grid-row: 2;\n background: white;\n opacity: 0.1; }\n #embed #split #bottomPart {\n overflow: hidden;\n grid-row: 3;\n display: grid;\n grid-auto-rows: 100%; }\n #embed #split .gutter.gutter-vertical {\n background-image: none;\n background: #444444;\n cursor: row-resize; }\n", ""]);
  5292. // exports
  5293. /***/ }),
  5294. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/sceneExplorer/sceneExplorer.scss":
  5295. /*!************************************************************************************************************************************************************************!*\
  5296. !*** C:/Dev/Babylon/Babylon.js/node_modules/css-loader!C:/Dev/Babylon/Babylon.js/node_modules/sass-loader/lib/loader.js!./components/sceneExplorer/sceneExplorer.scss ***!
  5297. \************************************************************************************************************************************************************************/
  5298. /*! no static exports found */
  5299. /***/ (function(module, exports, __webpack_require__) {
  5300. exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  5301. // imports
  5302. // module
  5303. exports.push([module.i, "#scene-explorer-host {\n position: absolute;\n left: 0px;\n top: 0px;\n bottom: 0px; }\n #scene-explorer-host:focus {\n outline: none; }\n\n#__resizable_base__ {\n display: none; }\n\n.context-menu {\n background: #222222; }\n .context-menu .react-contextmenu-item {\n padding: 10px;\n cursor: pointer; }\n .context-menu .react-contextmenu-item:hover {\n background: #555555; }\n\n.react-contextmenu.context-menu.react-contextmenu--visible {\n z-index: 99;\n transform: scale(1); }\n\n#sceneExplorer {\n background: #333333;\n height: 100%;\n margin: 0;\n padding: 0;\n display: grid;\n grid-template-rows: auto 1fr;\n font: 14px \"Arial\"; }\n #sceneExplorer:focus {\n outline: none; }\n #sceneExplorer #header {\n height: 30px;\n font-size: 16px;\n color: white;\n background: #222222;\n grid-row: 1;\n text-align: center;\n display: grid;\n grid-template-columns: 30px 1fr 50px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n #sceneExplorer #header #logo {\n position: relative;\n grid-column: 1;\n width: 24px;\n height: 24px;\n left: 0;\n display: flex;\n align-self: center;\n justify-self: center; }\n #sceneExplorer #header #title {\n grid-column: 2;\n display: grid;\n align-items: center;\n text-align: center; }\n #sceneExplorer #header #commands {\n grid-column: 3;\n display: grid;\n align-items: center;\n grid-template-columns: 1fr 1fr; }\n #sceneExplorer #header #commands .expand {\n grid-column: 1;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #sceneExplorer #header #commands .close {\n grid-column: 2;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #sceneExplorer #tree {\n grid-row: 2;\n overflow-x: hidden;\n overflow-y: auto; }\n #sceneExplorer .filter {\n display: flex;\n align-items: stretch; }\n #sceneExplorer .filter input {\n width: 100%;\n margin: 10px 40px 5px 40px;\n display: block;\n border: none;\n padding: 0;\n border-bottom: solid 1px #337ab7;\n background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 96%, #337ab7 4%);\n background-position: -1000px 0;\n background-size: 1000px 100%;\n background-repeat: no-repeat;\n color: white; }\n #sceneExplorer .filter input::placeholder {\n color: lightgray; }\n #sceneExplorer .filter input:focus {\n box-shadow: none;\n outline: none;\n background-position: 0 0; }\n #sceneExplorer .groupContainer {\n margin-left: 0px;\n color: white;\n margin-top: 0px;\n margin-bottom: 0px;\n height: 24px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n align-self: center;\n display: grid;\n align-items: center; }\n #sceneExplorer .groupContainer:hover {\n background: #444444; }\n #sceneExplorer .groupContainer .expandableHeader {\n display: grid;\n grid-template-columns: 1fr 20px; }\n #sceneExplorer .groupContainer .expandableHeader .text {\n grid-column: 1;\n display: grid;\n grid-template-columns: 20px 1fr; }\n #sceneExplorer .groupContainer .expandableHeader .text .arrow {\n grid-column: 1;\n margin-left: 0px;\n color: white;\n cursor: pointer;\n display: inline-block;\n margin-right: 6px;\n opacity: 0.5; }\n #sceneExplorer .groupContainer .expandableHeader .text .text-value {\n grid-column: 2;\n display: flex;\n align-items: center; }\n #sceneExplorer .groupContainer .expandableHeader .expandAll {\n opacity: 0.5;\n grid-column: 2;\n margin-right: 10px; }\n #sceneExplorer .icon {\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #sceneExplorer .itemContainer {\n margin-left: 0px;\n color: white;\n margin-top: 0px;\n margin-bottom: 0px;\n height: 24px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: grid;\n grid-template-columns: 20px 1fr; }\n #sceneExplorer .itemContainer:hover {\n background: #444444; }\n #sceneExplorer .itemContainer.selected {\n background: #bbbbbb;\n color: black; }\n #sceneExplorer .itemContainer .isNotActive {\n opacity: 0.3; }\n #sceneExplorer .itemContainer .arrow {\n grid-column: 1;\n color: white;\n opacity: 0.6; }\n #sceneExplorer .itemContainer .popup {\n width: 200px;\n visibility: hidden;\n background-color: #444444;\n color: #fff;\n border: 1px solid rgba(255, 255, 255, 0.5);\n position: absolute;\n z-index: 1;\n margin-left: -180px;\n box-sizing: border-box; }\n #sceneExplorer .itemContainer .popup.show {\n visibility: visible; }\n #sceneExplorer .itemContainer .popup:focus {\n outline: none; }\n #sceneExplorer .itemContainer .popup .popupMenu {\n padding: 6px 5px 5px 10px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n height: 18px; }\n #sceneExplorer .itemContainer .popup .popupMenu:hover {\n background: white;\n color: #333333; }\n #sceneExplorer .itemContainer .sceneNode {\n grid-column: 2;\n margin-left: -10px;\n display: grid;\n grid-template-columns: 1fr 20px 20px 20px 20px 10px 20px 20px auto 5px;\n align-items: center;\n cursor: pointer; }\n #sceneExplorer .itemContainer .sceneNode .sceneTitle {\n grid-column: 1;\n margin-right: 5px;\n display: flex;\n align-items: center;\n height: 24px; }\n #sceneExplorer .itemContainer .sceneNode .translation {\n grid-column: 2;\n opacity: 0.6; }\n #sceneExplorer .itemContainer .sceneNode .translation.selected {\n opacity: 1; }\n #sceneExplorer .itemContainer .sceneNode .rotation {\n grid-column: 3;\n opacity: 0.6; }\n #sceneExplorer .itemContainer .sceneNode .rotation.selected {\n opacity: 1; }\n #sceneExplorer .itemContainer .sceneNode .scaling {\n grid-column: 4;\n opacity: 0.6; }\n #sceneExplorer .itemContainer .sceneNode .scaling.selected {\n opacity: 1; }\n #sceneExplorer .itemContainer .sceneNode .bounding {\n grid-column: 5;\n opacity: 0.6; }\n #sceneExplorer .itemContainer .sceneNode .bounding.selected {\n opacity: 1; }\n #sceneExplorer .itemContainer .sceneNode .separator {\n grid-column: 6;\n margin-left: 5px;\n width: 5px;\n display: flex;\n align-items: center;\n height: 18px;\n border-left: solid 1px #337ab7; }\n #sceneExplorer .itemContainer .sceneNode .pickingMode {\n grid-column: 7;\n opacity: 0.6; }\n #sceneExplorer .itemContainer .sceneNode .pickingMode.selected {\n opacity: 1; }\n #sceneExplorer .itemContainer .sceneNode .refresh {\n grid-column: 8; }\n #sceneExplorer .itemContainer .sceneNode .extensions {\n width: 20px;\n grid-column: 9; }\n #sceneExplorer .itemContainer .animationGroupTools {\n grid-column: 2;\n width: 100%;\n display: grid;\n grid-template-columns: 1fr auto 5px;\n align-items: center;\n min-width: 0; }\n #sceneExplorer .itemContainer .animationGroupTools .extensions {\n width: 20px;\n grid-column: 2; }\n #sceneExplorer .itemContainer .meshTools {\n grid-column: 2;\n width: 100%;\n display: grid;\n grid-template-columns: 1fr 20px 20px auto 5px;\n align-items: center;\n min-width: 0; }\n #sceneExplorer .itemContainer .meshTools .bounding-box {\n grid-column: 2;\n opacity: 0.5; }\n #sceneExplorer .itemContainer .meshTools .bounding-box.selected {\n opacity: 1; }\n #sceneExplorer .itemContainer .meshTools .visibility {\n grid-column: 3; }\n #sceneExplorer .itemContainer .meshTools .extensions {\n width: 20px;\n grid-column: 4; }\n #sceneExplorer .itemContainer .cameraTools {\n grid-column: 2;\n display: grid;\n grid-template-columns: 1fr 20px auto 5px;\n align-items: center; }\n #sceneExplorer .itemContainer .cameraTools .activeCamera {\n grid-column: 2; }\n #sceneExplorer .itemContainer .cameraTools .extensions {\n width: 20px;\n grid-column: 3; }\n #sceneExplorer .itemContainer .lightTools {\n grid-column: 2;\n display: grid;\n grid-template-columns: 1fr 20px 20px auto 5px;\n align-items: center; }\n #sceneExplorer .itemContainer .lightTools .enableLight {\n grid-column: 2; }\n #sceneExplorer .itemContainer .lightTools .extensions {\n width: 20px;\n grid-column: 3; }\n #sceneExplorer .itemContainer .materialTools {\n grid-column: 2;\n display: grid;\n grid-template-columns: 1fr auto 5px;\n align-items: center; }\n #sceneExplorer .itemContainer .materialTools .extensions {\n width: 20px;\n grid-column: 2; }\n #sceneExplorer .itemContainer .particleSystemTools {\n grid-column: 2;\n display: grid;\n grid-template-columns: 1fr auto 5px;\n align-items: center; }\n #sceneExplorer .itemContainer .particleSystemTools .extensions {\n width: 20px;\n grid-column: 2; }\n #sceneExplorer .itemContainer .postProcessTools {\n grid-column: 2;\n display: grid;\n grid-template-columns: 1fr auto 5px;\n align-items: center; }\n #sceneExplorer .itemContainer .postProcessTools .extensions {\n width: 20px;\n grid-column: 2; }\n #sceneExplorer .itemContainer .renderingPipelineTools {\n grid-column: 2;\n display: grid;\n grid-template-columns: 1fr auto 5px;\n align-items: center; }\n #sceneExplorer .itemContainer .renderingPipelineTools .extensions {\n width: 20px;\n grid-column: 2; }\n #sceneExplorer .itemContainer .textureTools {\n grid-column: 2;\n display: grid;\n grid-template-columns: 1fr auto 5px;\n align-items: center; }\n #sceneExplorer .itemContainer .textureTools .extensions {\n width: 20px;\n grid-column: 2; }\n #sceneExplorer .itemContainer .adtextureTools {\n grid-column: 2;\n display: grid;\n grid-template-columns: 1fr 20px auto 5px;\n align-items: center; }\n #sceneExplorer .itemContainer .adtextureTools .pickingMode {\n grid-column: 2;\n opacity: 0.6; }\n #sceneExplorer .itemContainer .adtextureTools .pickingMode.selected {\n opacity: 1; }\n #sceneExplorer .itemContainer .adtextureTools .extensions {\n width: 20px;\n grid-column: 3; }\n #sceneExplorer .itemContainer .controlTools {\n grid-column: 2;\n display: grid;\n grid-template-columns: 1fr 20px 20px auto 5px;\n align-items: center; }\n #sceneExplorer .itemContainer .controlTools .highlight {\n grid-column: 2; }\n #sceneExplorer .itemContainer .controlTools .visibility {\n grid-column: 3; }\n #sceneExplorer .itemContainer .controlTools .extensions {\n width: 20px;\n grid-column: 4; }\n #sceneExplorer .itemContainer .transformNodeTools {\n grid-column: 2;\n display: grid;\n grid-template-columns: 1fr auto 5px;\n align-items: center; }\n #sceneExplorer .itemContainer .transformNodeTools .extensions {\n width: 20px;\n grid-column: 2; }\n #sceneExplorer .itemContainer .skeletonTools {\n grid-column: 2;\n display: grid;\n grid-template-columns: 1fr auto 5px;\n align-items: center; }\n #sceneExplorer .itemContainer .skeletonTools .extensions {\n width: 20px;\n grid-column: 2; }\n #sceneExplorer .itemContainer .title {\n grid-column: 1;\n background: transparent;\n white-space: nowrap;\n overflow: hidden;\n min-width: 0;\n margin-right: 5px;\n display: grid;\n align-items: center;\n grid-template-columns: 25px 1fr;\n height: 24px;\n cursor: pointer; }\n #sceneExplorer .itemContainer .title .titleIcon {\n grid-column: 1;\n display: grid;\n align-items: center;\n justify-items: center; }\n #sceneExplorer .itemContainer .title .titleText {\n grid-column: 2;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden; }\n", ""]);
  5304. // exports
  5305. /***/ }),
  5306. /***/ "../../node_modules/css-loader/lib/css-base.js":
  5307. /*!*************************************************************************!*\
  5308. !*** C:/Dev/Babylon/Babylon.js/node_modules/css-loader/lib/css-base.js ***!
  5309. \*************************************************************************/
  5310. /*! no static exports found */
  5311. /***/ (function(module, exports) {
  5312. /*
  5313. MIT License http://www.opensource.org/licenses/mit-license.php
  5314. Author Tobias Koppers @sokra
  5315. */
  5316. // css base code, injected by the css-loader
  5317. module.exports = function(useSourceMap) {
  5318. var list = [];
  5319. // return the list of modules as css string
  5320. list.toString = function toString() {
  5321. return this.map(function (item) {
  5322. var content = cssWithMappingToString(item, useSourceMap);
  5323. if(item[2]) {
  5324. return "@media " + item[2] + "{" + content + "}";
  5325. } else {
  5326. return content;
  5327. }
  5328. }).join("");
  5329. };
  5330. // import a list of modules into the list
  5331. list.i = function(modules, mediaQuery) {
  5332. if(typeof modules === "string")
  5333. modules = [[null, modules, ""]];
  5334. var alreadyImportedModules = {};
  5335. for(var i = 0; i < this.length; i++) {
  5336. var id = this[i][0];
  5337. if(typeof id === "number")
  5338. alreadyImportedModules[id] = true;
  5339. }
  5340. for(i = 0; i < modules.length; i++) {
  5341. var item = modules[i];
  5342. // skip already imported module
  5343. // this implementation is not 100% perfect for weird media query combinations
  5344. // when a module is imported multiple times with different media queries.
  5345. // I hope this will never occur (Hey this way we have smaller bundles)
  5346. if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
  5347. if(mediaQuery && !item[2]) {
  5348. item[2] = mediaQuery;
  5349. } else if(mediaQuery) {
  5350. item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
  5351. }
  5352. list.push(item);
  5353. }
  5354. }
  5355. };
  5356. return list;
  5357. };
  5358. function cssWithMappingToString(item, useSourceMap) {
  5359. var content = item[1] || '';
  5360. var cssMapping = item[3];
  5361. if (!cssMapping) {
  5362. return content;
  5363. }
  5364. if (useSourceMap && typeof btoa === 'function') {
  5365. var sourceMapping = toComment(cssMapping);
  5366. var sourceURLs = cssMapping.sources.map(function (source) {
  5367. return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'
  5368. });
  5369. return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
  5370. }
  5371. return [content].join('\n');
  5372. }
  5373. // Adapted from convert-source-map (MIT)
  5374. function toComment(sourceMap) {
  5375. // eslint-disable-next-line no-undef
  5376. var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
  5377. var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
  5378. return '/*# ' + data + ' */';
  5379. }
  5380. /***/ }),
  5381. /***/ "../../node_modules/object-assign/index.js":
  5382. /*!*********************************************************************!*\
  5383. !*** C:/Dev/Babylon/Babylon.js/node_modules/object-assign/index.js ***!
  5384. \*********************************************************************/
  5385. /*! no static exports found */
  5386. /***/ (function(module, exports, __webpack_require__) {
  5387. "use strict";
  5388. /*
  5389. object-assign
  5390. (c) Sindre Sorhus
  5391. @license MIT
  5392. */
  5393. /* eslint-disable no-unused-vars */
  5394. var getOwnPropertySymbols = Object.getOwnPropertySymbols;
  5395. var hasOwnProperty = Object.prototype.hasOwnProperty;
  5396. var propIsEnumerable = Object.prototype.propertyIsEnumerable;
  5397. function toObject(val) {
  5398. if (val === null || val === undefined) {
  5399. throw new TypeError('Object.assign cannot be called with null or undefined');
  5400. }
  5401. return Object(val);
  5402. }
  5403. function shouldUseNative() {
  5404. try {
  5405. if (!Object.assign) {
  5406. return false;
  5407. }
  5408. // Detect buggy property enumeration order in older V8 versions.
  5409. // https://bugs.chromium.org/p/v8/issues/detail?id=4118
  5410. var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
  5411. test1[5] = 'de';
  5412. if (Object.getOwnPropertyNames(test1)[0] === '5') {
  5413. return false;
  5414. }
  5415. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  5416. var test2 = {};
  5417. for (var i = 0; i < 10; i++) {
  5418. test2['_' + String.fromCharCode(i)] = i;
  5419. }
  5420. var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
  5421. return test2[n];
  5422. });
  5423. if (order2.join('') !== '0123456789') {
  5424. return false;
  5425. }
  5426. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  5427. var test3 = {};
  5428. 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
  5429. test3[letter] = letter;
  5430. });
  5431. if (Object.keys(Object.assign({}, test3)).join('') !==
  5432. 'abcdefghijklmnopqrst') {
  5433. return false;
  5434. }
  5435. return true;
  5436. } catch (err) {
  5437. // We don't expect any of the above to throw, but better to be safe.
  5438. return false;
  5439. }
  5440. }
  5441. module.exports = shouldUseNative() ? Object.assign : function (target, source) {
  5442. var from;
  5443. var to = toObject(target);
  5444. var symbols;
  5445. for (var s = 1; s < arguments.length; s++) {
  5446. from = Object(arguments[s]);
  5447. for (var key in from) {
  5448. if (hasOwnProperty.call(from, key)) {
  5449. to[key] = from[key];
  5450. }
  5451. }
  5452. if (getOwnPropertySymbols) {
  5453. symbols = getOwnPropertySymbols(from);
  5454. for (var i = 0; i < symbols.length; i++) {
  5455. if (propIsEnumerable.call(from, symbols[i])) {
  5456. to[symbols[i]] = from[symbols[i]];
  5457. }
  5458. }
  5459. }
  5460. }
  5461. return to;
  5462. };
  5463. /***/ }),
  5464. /***/ "../../node_modules/prop-types/checkPropTypes.js":
  5465. /*!***************************************************************************!*\
  5466. !*** C:/Dev/Babylon/Babylon.js/node_modules/prop-types/checkPropTypes.js ***!
  5467. \***************************************************************************/
  5468. /*! no static exports found */
  5469. /***/ (function(module, exports, __webpack_require__) {
  5470. "use strict";
  5471. /**
  5472. * Copyright (c) 2013-present, Facebook, Inc.
  5473. *
  5474. * This source code is licensed under the MIT license found in the
  5475. * LICENSE file in the root directory of this source tree.
  5476. */
  5477. var printWarning = function() {};
  5478. if (true) {
  5479. var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
  5480. var loggedTypeFailures = {};
  5481. printWarning = function(text) {
  5482. var message = 'Warning: ' + text;
  5483. if (typeof console !== 'undefined') {
  5484. console.error(message);
  5485. }
  5486. try {
  5487. // --- Welcome to debugging React ---
  5488. // This error was thrown as a convenience so that you can use this stack
  5489. // to find the callsite that caused this warning to fire.
  5490. throw new Error(message);
  5491. } catch (x) {}
  5492. };
  5493. }
  5494. /**
  5495. * Assert that the values match with the type specs.
  5496. * Error messages are memorized and will only be shown once.
  5497. *
  5498. * @param {object} typeSpecs Map of name to a ReactPropType
  5499. * @param {object} values Runtime values that need to be type-checked
  5500. * @param {string} location e.g. "prop", "context", "child context"
  5501. * @param {string} componentName Name of the component for error messages.
  5502. * @param {?Function} getStack Returns the component stack.
  5503. * @private
  5504. */
  5505. function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
  5506. if (true) {
  5507. for (var typeSpecName in typeSpecs) {
  5508. if (typeSpecs.hasOwnProperty(typeSpecName)) {
  5509. var error;
  5510. // Prop type validation may throw. In case they do, we don't want to
  5511. // fail the render phase where it didn't fail before. So we log it.
  5512. // After these have been cleaned up, we'll let them throw.
  5513. try {
  5514. // This is intentionally an invariant that gets caught. It's the same
  5515. // behavior as without this statement except with a better message.
  5516. if (typeof typeSpecs[typeSpecName] !== 'function') {
  5517. var err = Error(
  5518. (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
  5519. 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
  5520. );
  5521. err.name = 'Invariant Violation';
  5522. throw err;
  5523. }
  5524. error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
  5525. } catch (ex) {
  5526. error = ex;
  5527. }
  5528. if (error && !(error instanceof Error)) {
  5529. printWarning(
  5530. (componentName || 'React class') + ': type specification of ' +
  5531. location + ' `' + typeSpecName + '` is invalid; the type checker ' +
  5532. 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
  5533. 'You may have forgotten to pass an argument to the type checker ' +
  5534. 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
  5535. 'shape all require an argument).'
  5536. )
  5537. }
  5538. if (error instanceof Error && !(error.message in loggedTypeFailures)) {
  5539. // Only monitor this failure once because there tends to be a lot of the
  5540. // same error.
  5541. loggedTypeFailures[error.message] = true;
  5542. var stack = getStack ? getStack() : '';
  5543. printWarning(
  5544. 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
  5545. );
  5546. }
  5547. }
  5548. }
  5549. }
  5550. }
  5551. module.exports = checkPropTypes;
  5552. /***/ }),
  5553. /***/ "../../node_modules/prop-types/factoryWithTypeCheckers.js":
  5554. /*!************************************************************************************!*\
  5555. !*** C:/Dev/Babylon/Babylon.js/node_modules/prop-types/factoryWithTypeCheckers.js ***!
  5556. \************************************************************************************/
  5557. /*! no static exports found */
  5558. /***/ (function(module, exports, __webpack_require__) {
  5559. "use strict";
  5560. /**
  5561. * Copyright (c) 2013-present, Facebook, Inc.
  5562. *
  5563. * This source code is licensed under the MIT license found in the
  5564. * LICENSE file in the root directory of this source tree.
  5565. */
  5566. var assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  5567. var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
  5568. var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  5569. var printWarning = function() {};
  5570. if (true) {
  5571. printWarning = function(text) {
  5572. var message = 'Warning: ' + text;
  5573. if (typeof console !== 'undefined') {
  5574. console.error(message);
  5575. }
  5576. try {
  5577. // --- Welcome to debugging React ---
  5578. // This error was thrown as a convenience so that you can use this stack
  5579. // to find the callsite that caused this warning to fire.
  5580. throw new Error(message);
  5581. } catch (x) {}
  5582. };
  5583. }
  5584. function emptyFunctionThatReturnsNull() {
  5585. return null;
  5586. }
  5587. module.exports = function(isValidElement, throwOnDirectAccess) {
  5588. /* global Symbol */
  5589. var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  5590. var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
  5591. /**
  5592. * Returns the iterator method function contained on the iterable object.
  5593. *
  5594. * Be sure to invoke the function with the iterable as context:
  5595. *
  5596. * var iteratorFn = getIteratorFn(myIterable);
  5597. * if (iteratorFn) {
  5598. * var iterator = iteratorFn.call(myIterable);
  5599. * ...
  5600. * }
  5601. *
  5602. * @param {?object} maybeIterable
  5603. * @return {?function}
  5604. */
  5605. function getIteratorFn(maybeIterable) {
  5606. var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
  5607. if (typeof iteratorFn === 'function') {
  5608. return iteratorFn;
  5609. }
  5610. }
  5611. /**
  5612. * Collection of methods that allow declaration and validation of props that are
  5613. * supplied to React components. Example usage:
  5614. *
  5615. * var Props = require('ReactPropTypes');
  5616. * var MyArticle = React.createClass({
  5617. * propTypes: {
  5618. * // An optional string prop named "description".
  5619. * description: Props.string,
  5620. *
  5621. * // A required enum prop named "category".
  5622. * category: Props.oneOf(['News','Photos']).isRequired,
  5623. *
  5624. * // A prop named "dialog" that requires an instance of Dialog.
  5625. * dialog: Props.instanceOf(Dialog).isRequired
  5626. * },
  5627. * render: function() { ... }
  5628. * });
  5629. *
  5630. * A more formal specification of how these methods are used:
  5631. *
  5632. * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
  5633. * decl := ReactPropTypes.{type}(.isRequired)?
  5634. *
  5635. * Each and every declaration produces a function with the same signature. This
  5636. * allows the creation of custom validation functions. For example:
  5637. *
  5638. * var MyLink = React.createClass({
  5639. * propTypes: {
  5640. * // An optional string or URI prop named "href".
  5641. * href: function(props, propName, componentName) {
  5642. * var propValue = props[propName];
  5643. * if (propValue != null && typeof propValue !== 'string' &&
  5644. * !(propValue instanceof URI)) {
  5645. * return new Error(
  5646. * 'Expected a string or an URI for ' + propName + ' in ' +
  5647. * componentName
  5648. * );
  5649. * }
  5650. * }
  5651. * },
  5652. * render: function() {...}
  5653. * });
  5654. *
  5655. * @internal
  5656. */
  5657. var ANONYMOUS = '<<anonymous>>';
  5658. // Important!
  5659. // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
  5660. var ReactPropTypes = {
  5661. array: createPrimitiveTypeChecker('array'),
  5662. bool: createPrimitiveTypeChecker('boolean'),
  5663. func: createPrimitiveTypeChecker('function'),
  5664. number: createPrimitiveTypeChecker('number'),
  5665. object: createPrimitiveTypeChecker('object'),
  5666. string: createPrimitiveTypeChecker('string'),
  5667. symbol: createPrimitiveTypeChecker('symbol'),
  5668. any: createAnyTypeChecker(),
  5669. arrayOf: createArrayOfTypeChecker,
  5670. element: createElementTypeChecker(),
  5671. instanceOf: createInstanceTypeChecker,
  5672. node: createNodeChecker(),
  5673. objectOf: createObjectOfTypeChecker,
  5674. oneOf: createEnumTypeChecker,
  5675. oneOfType: createUnionTypeChecker,
  5676. shape: createShapeTypeChecker,
  5677. exact: createStrictShapeTypeChecker,
  5678. };
  5679. /**
  5680. * inlined Object.is polyfill to avoid requiring consumers ship their own
  5681. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  5682. */
  5683. /*eslint-disable no-self-compare*/
  5684. function is(x, y) {
  5685. // SameValue algorithm
  5686. if (x === y) {
  5687. // Steps 1-5, 7-10
  5688. // Steps 6.b-6.e: +0 != -0
  5689. return x !== 0 || 1 / x === 1 / y;
  5690. } else {
  5691. // Step 6.a: NaN == NaN
  5692. return x !== x && y !== y;
  5693. }
  5694. }
  5695. /*eslint-enable no-self-compare*/
  5696. /**
  5697. * We use an Error-like object for backward compatibility as people may call
  5698. * PropTypes directly and inspect their output. However, we don't use real
  5699. * Errors anymore. We don't inspect their stack anyway, and creating them
  5700. * is prohibitively expensive if they are created too often, such as what
  5701. * happens in oneOfType() for any type before the one that matched.
  5702. */
  5703. function PropTypeError(message) {
  5704. this.message = message;
  5705. this.stack = '';
  5706. }
  5707. // Make `instanceof Error` still work for returned errors.
  5708. PropTypeError.prototype = Error.prototype;
  5709. function createChainableTypeChecker(validate) {
  5710. if (true) {
  5711. var manualPropTypeCallCache = {};
  5712. var manualPropTypeWarningCount = 0;
  5713. }
  5714. function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
  5715. componentName = componentName || ANONYMOUS;
  5716. propFullName = propFullName || propName;
  5717. if (secret !== ReactPropTypesSecret) {
  5718. if (throwOnDirectAccess) {
  5719. // New behavior only for users of `prop-types` package
  5720. var err = new Error(
  5721. 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
  5722. 'Use `PropTypes.checkPropTypes()` to call them. ' +
  5723. 'Read more at http://fb.me/use-check-prop-types'
  5724. );
  5725. err.name = 'Invariant Violation';
  5726. throw err;
  5727. } else if ( true && typeof console !== 'undefined') {
  5728. // Old behavior for people using React.PropTypes
  5729. var cacheKey = componentName + ':' + propName;
  5730. if (
  5731. !manualPropTypeCallCache[cacheKey] &&
  5732. // Avoid spamming the console because they are often not actionable except for lib authors
  5733. manualPropTypeWarningCount < 3
  5734. ) {
  5735. printWarning(
  5736. 'You are manually calling a React.PropTypes validation ' +
  5737. 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
  5738. 'and will throw in the standalone `prop-types` package. ' +
  5739. 'You may be seeing this warning due to a third-party PropTypes ' +
  5740. 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
  5741. );
  5742. manualPropTypeCallCache[cacheKey] = true;
  5743. manualPropTypeWarningCount++;
  5744. }
  5745. }
  5746. }
  5747. if (props[propName] == null) {
  5748. if (isRequired) {
  5749. if (props[propName] === null) {
  5750. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
  5751. }
  5752. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
  5753. }
  5754. return null;
  5755. } else {
  5756. return validate(props, propName, componentName, location, propFullName);
  5757. }
  5758. }
  5759. var chainedCheckType = checkType.bind(null, false);
  5760. chainedCheckType.isRequired = checkType.bind(null, true);
  5761. return chainedCheckType;
  5762. }
  5763. function createPrimitiveTypeChecker(expectedType) {
  5764. function validate(props, propName, componentName, location, propFullName, secret) {
  5765. var propValue = props[propName];
  5766. var propType = getPropType(propValue);
  5767. if (propType !== expectedType) {
  5768. // `propValue` being instance of, say, date/regexp, pass the 'object'
  5769. // check, but we can offer a more precise error message here rather than
  5770. // 'of type `object`'.
  5771. var preciseType = getPreciseType(propValue);
  5772. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
  5773. }
  5774. return null;
  5775. }
  5776. return createChainableTypeChecker(validate);
  5777. }
  5778. function createAnyTypeChecker() {
  5779. return createChainableTypeChecker(emptyFunctionThatReturnsNull);
  5780. }
  5781. function createArrayOfTypeChecker(typeChecker) {
  5782. function validate(props, propName, componentName, location, propFullName) {
  5783. if (typeof typeChecker !== 'function') {
  5784. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
  5785. }
  5786. var propValue = props[propName];
  5787. if (!Array.isArray(propValue)) {
  5788. var propType = getPropType(propValue);
  5789. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
  5790. }
  5791. for (var i = 0; i < propValue.length; i++) {
  5792. var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
  5793. if (error instanceof Error) {
  5794. return error;
  5795. }
  5796. }
  5797. return null;
  5798. }
  5799. return createChainableTypeChecker(validate);
  5800. }
  5801. function createElementTypeChecker() {
  5802. function validate(props, propName, componentName, location, propFullName) {
  5803. var propValue = props[propName];
  5804. if (!isValidElement(propValue)) {
  5805. var propType = getPropType(propValue);
  5806. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
  5807. }
  5808. return null;
  5809. }
  5810. return createChainableTypeChecker(validate);
  5811. }
  5812. function createInstanceTypeChecker(expectedClass) {
  5813. function validate(props, propName, componentName, location, propFullName) {
  5814. if (!(props[propName] instanceof expectedClass)) {
  5815. var expectedClassName = expectedClass.name || ANONYMOUS;
  5816. var actualClassName = getClassName(props[propName]);
  5817. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
  5818. }
  5819. return null;
  5820. }
  5821. return createChainableTypeChecker(validate);
  5822. }
  5823. function createEnumTypeChecker(expectedValues) {
  5824. if (!Array.isArray(expectedValues)) {
  5825. true ? printWarning('Invalid argument supplied to oneOf, expected an instance of array.') : undefined;
  5826. return emptyFunctionThatReturnsNull;
  5827. }
  5828. function validate(props, propName, componentName, location, propFullName) {
  5829. var propValue = props[propName];
  5830. for (var i = 0; i < expectedValues.length; i++) {
  5831. if (is(propValue, expectedValues[i])) {
  5832. return null;
  5833. }
  5834. }
  5835. var valuesString = JSON.stringify(expectedValues);
  5836. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
  5837. }
  5838. return createChainableTypeChecker(validate);
  5839. }
  5840. function createObjectOfTypeChecker(typeChecker) {
  5841. function validate(props, propName, componentName, location, propFullName) {
  5842. if (typeof typeChecker !== 'function') {
  5843. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
  5844. }
  5845. var propValue = props[propName];
  5846. var propType = getPropType(propValue);
  5847. if (propType !== 'object') {
  5848. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
  5849. }
  5850. for (var key in propValue) {
  5851. if (propValue.hasOwnProperty(key)) {
  5852. var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  5853. if (error instanceof Error) {
  5854. return error;
  5855. }
  5856. }
  5857. }
  5858. return null;
  5859. }
  5860. return createChainableTypeChecker(validate);
  5861. }
  5862. function createUnionTypeChecker(arrayOfTypeCheckers) {
  5863. if (!Array.isArray(arrayOfTypeCheckers)) {
  5864. true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : undefined;
  5865. return emptyFunctionThatReturnsNull;
  5866. }
  5867. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  5868. var checker = arrayOfTypeCheckers[i];
  5869. if (typeof checker !== 'function') {
  5870. printWarning(
  5871. 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
  5872. 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
  5873. );
  5874. return emptyFunctionThatReturnsNull;
  5875. }
  5876. }
  5877. function validate(props, propName, componentName, location, propFullName) {
  5878. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  5879. var checker = arrayOfTypeCheckers[i];
  5880. if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
  5881. return null;
  5882. }
  5883. }
  5884. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
  5885. }
  5886. return createChainableTypeChecker(validate);
  5887. }
  5888. function createNodeChecker() {
  5889. function validate(props, propName, componentName, location, propFullName) {
  5890. if (!isNode(props[propName])) {
  5891. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
  5892. }
  5893. return null;
  5894. }
  5895. return createChainableTypeChecker(validate);
  5896. }
  5897. function createShapeTypeChecker(shapeTypes) {
  5898. function validate(props, propName, componentName, location, propFullName) {
  5899. var propValue = props[propName];
  5900. var propType = getPropType(propValue);
  5901. if (propType !== 'object') {
  5902. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  5903. }
  5904. for (var key in shapeTypes) {
  5905. var checker = shapeTypes[key];
  5906. if (!checker) {
  5907. continue;
  5908. }
  5909. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  5910. if (error) {
  5911. return error;
  5912. }
  5913. }
  5914. return null;
  5915. }
  5916. return createChainableTypeChecker(validate);
  5917. }
  5918. function createStrictShapeTypeChecker(shapeTypes) {
  5919. function validate(props, propName, componentName, location, propFullName) {
  5920. var propValue = props[propName];
  5921. var propType = getPropType(propValue);
  5922. if (propType !== 'object') {
  5923. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  5924. }
  5925. // We need to check all keys in case some are required but missing from
  5926. // props.
  5927. var allKeys = assign({}, props[propName], shapeTypes);
  5928. for (var key in allKeys) {
  5929. var checker = shapeTypes[key];
  5930. if (!checker) {
  5931. return new PropTypeError(
  5932. 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
  5933. '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
  5934. '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
  5935. );
  5936. }
  5937. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  5938. if (error) {
  5939. return error;
  5940. }
  5941. }
  5942. return null;
  5943. }
  5944. return createChainableTypeChecker(validate);
  5945. }
  5946. function isNode(propValue) {
  5947. switch (typeof propValue) {
  5948. case 'number':
  5949. case 'string':
  5950. case 'undefined':
  5951. return true;
  5952. case 'boolean':
  5953. return !propValue;
  5954. case 'object':
  5955. if (Array.isArray(propValue)) {
  5956. return propValue.every(isNode);
  5957. }
  5958. if (propValue === null || isValidElement(propValue)) {
  5959. return true;
  5960. }
  5961. var iteratorFn = getIteratorFn(propValue);
  5962. if (iteratorFn) {
  5963. var iterator = iteratorFn.call(propValue);
  5964. var step;
  5965. if (iteratorFn !== propValue.entries) {
  5966. while (!(step = iterator.next()).done) {
  5967. if (!isNode(step.value)) {
  5968. return false;
  5969. }
  5970. }
  5971. } else {
  5972. // Iterator will provide entry [k,v] tuples rather than values.
  5973. while (!(step = iterator.next()).done) {
  5974. var entry = step.value;
  5975. if (entry) {
  5976. if (!isNode(entry[1])) {
  5977. return false;
  5978. }
  5979. }
  5980. }
  5981. }
  5982. } else {
  5983. return false;
  5984. }
  5985. return true;
  5986. default:
  5987. return false;
  5988. }
  5989. }
  5990. function isSymbol(propType, propValue) {
  5991. // Native Symbol.
  5992. if (propType === 'symbol') {
  5993. return true;
  5994. }
  5995. // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
  5996. if (propValue['@@toStringTag'] === 'Symbol') {
  5997. return true;
  5998. }
  5999. // Fallback for non-spec compliant Symbols which are polyfilled.
  6000. if (typeof Symbol === 'function' && propValue instanceof Symbol) {
  6001. return true;
  6002. }
  6003. return false;
  6004. }
  6005. // Equivalent of `typeof` but with special handling for array and regexp.
  6006. function getPropType(propValue) {
  6007. var propType = typeof propValue;
  6008. if (Array.isArray(propValue)) {
  6009. return 'array';
  6010. }
  6011. if (propValue instanceof RegExp) {
  6012. // Old webkits (at least until Android 4.0) return 'function' rather than
  6013. // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
  6014. // passes PropTypes.object.
  6015. return 'object';
  6016. }
  6017. if (isSymbol(propType, propValue)) {
  6018. return 'symbol';
  6019. }
  6020. return propType;
  6021. }
  6022. // This handles more types than `getPropType`. Only used for error messages.
  6023. // See `createPrimitiveTypeChecker`.
  6024. function getPreciseType(propValue) {
  6025. if (typeof propValue === 'undefined' || propValue === null) {
  6026. return '' + propValue;
  6027. }
  6028. var propType = getPropType(propValue);
  6029. if (propType === 'object') {
  6030. if (propValue instanceof Date) {
  6031. return 'date';
  6032. } else if (propValue instanceof RegExp) {
  6033. return 'regexp';
  6034. }
  6035. }
  6036. return propType;
  6037. }
  6038. // Returns a string that is postfixed to a warning about an invalid type.
  6039. // For example, "undefined" or "of type array"
  6040. function getPostfixForTypeWarning(value) {
  6041. var type = getPreciseType(value);
  6042. switch (type) {
  6043. case 'array':
  6044. case 'object':
  6045. return 'an ' + type;
  6046. case 'boolean':
  6047. case 'date':
  6048. case 'regexp':
  6049. return 'a ' + type;
  6050. default:
  6051. return type;
  6052. }
  6053. }
  6054. // Returns class name of the object, if any.
  6055. function getClassName(propValue) {
  6056. if (!propValue.constructor || !propValue.constructor.name) {
  6057. return ANONYMOUS;
  6058. }
  6059. return propValue.constructor.name;
  6060. }
  6061. ReactPropTypes.checkPropTypes = checkPropTypes;
  6062. ReactPropTypes.PropTypes = ReactPropTypes;
  6063. return ReactPropTypes;
  6064. };
  6065. /***/ }),
  6066. /***/ "../../node_modules/prop-types/index.js":
  6067. /*!******************************************************************!*\
  6068. !*** C:/Dev/Babylon/Babylon.js/node_modules/prop-types/index.js ***!
  6069. \******************************************************************/
  6070. /*! no static exports found */
  6071. /***/ (function(module, exports, __webpack_require__) {
  6072. /**
  6073. * Copyright (c) 2013-present, Facebook, Inc.
  6074. *
  6075. * This source code is licensed under the MIT license found in the
  6076. * LICENSE file in the root directory of this source tree.
  6077. */
  6078. if (true) {
  6079. var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&
  6080. Symbol.for &&
  6081. Symbol.for('react.element')) ||
  6082. 0xeac7;
  6083. var isValidElement = function(object) {
  6084. return typeof object === 'object' &&
  6085. object !== null &&
  6086. object.$$typeof === REACT_ELEMENT_TYPE;
  6087. };
  6088. // By explicitly using `prop-types` you are opting into new development behavior.
  6089. // http://fb.me/prop-types-in-prod
  6090. var throwOnDirectAccess = true;
  6091. module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../../node_modules/prop-types/factoryWithTypeCheckers.js")(isValidElement, throwOnDirectAccess);
  6092. } else {}
  6093. /***/ }),
  6094. /***/ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js":
  6095. /*!*************************************************************************************!*\
  6096. !*** C:/Dev/Babylon/Babylon.js/node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
  6097. \*************************************************************************************/
  6098. /*! no static exports found */
  6099. /***/ (function(module, exports, __webpack_require__) {
  6100. "use strict";
  6101. /**
  6102. * Copyright (c) 2013-present, Facebook, Inc.
  6103. *
  6104. * This source code is licensed under the MIT license found in the
  6105. * LICENSE file in the root directory of this source tree.
  6106. */
  6107. var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
  6108. module.exports = ReactPropTypesSecret;
  6109. /***/ }),
  6110. /***/ "../../node_modules/re-resizable/lib/index.es5.js":
  6111. /*!****************************************************************************!*\
  6112. !*** C:/Dev/Babylon/Babylon.js/node_modules/re-resizable/lib/index.es5.js ***!
  6113. \****************************************************************************/
  6114. /*! no static exports found */
  6115. /***/ (function(module, exports, __webpack_require__) {
  6116. "use strict";
  6117. var React = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  6118. var classCallCheck = function (instance, Constructor) {
  6119. if (!(instance instanceof Constructor)) {
  6120. throw new TypeError("Cannot call a class as a function");
  6121. }
  6122. };
  6123. var createClass = function () {
  6124. function defineProperties(target, props) {
  6125. for (var i = 0; i < props.length; i++) {
  6126. var descriptor = props[i];
  6127. descriptor.enumerable = descriptor.enumerable || false;
  6128. descriptor.configurable = true;
  6129. if ("value" in descriptor) descriptor.writable = true;
  6130. Object.defineProperty(target, descriptor.key, descriptor);
  6131. }
  6132. }
  6133. return function (Constructor, protoProps, staticProps) {
  6134. if (protoProps) defineProperties(Constructor.prototype, protoProps);
  6135. if (staticProps) defineProperties(Constructor, staticProps);
  6136. return Constructor;
  6137. };
  6138. }();
  6139. var _extends = Object.assign || function (target) {
  6140. for (var i = 1; i < arguments.length; i++) {
  6141. var source = arguments[i];
  6142. for (var key in source) {
  6143. if (Object.prototype.hasOwnProperty.call(source, key)) {
  6144. target[key] = source[key];
  6145. }
  6146. }
  6147. }
  6148. return target;
  6149. };
  6150. var inherits = function (subClass, superClass) {
  6151. if (typeof superClass !== "function" && superClass !== null) {
  6152. throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
  6153. }
  6154. subClass.prototype = Object.create(superClass && superClass.prototype, {
  6155. constructor: {
  6156. value: subClass,
  6157. enumerable: false,
  6158. writable: true,
  6159. configurable: true
  6160. }
  6161. });
  6162. if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
  6163. };
  6164. var possibleConstructorReturn = function (self, call) {
  6165. if (!self) {
  6166. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  6167. }
  6168. return call && (typeof call === "object" || typeof call === "function") ? call : self;
  6169. };
  6170. var styles = {
  6171. base: {
  6172. position: 'absolute',
  6173. userSelect: 'none',
  6174. MsUserSelect: 'none'
  6175. },
  6176. top: {
  6177. width: '100%',
  6178. height: '10px',
  6179. top: '-5px',
  6180. left: '0px',
  6181. cursor: 'row-resize'
  6182. },
  6183. right: {
  6184. width: '10px',
  6185. height: '100%',
  6186. top: '0px',
  6187. right: '-5px',
  6188. cursor: 'col-resize'
  6189. },
  6190. bottom: {
  6191. width: '100%',
  6192. height: '10px',
  6193. bottom: '-5px',
  6194. left: '0px',
  6195. cursor: 'row-resize'
  6196. },
  6197. left: {
  6198. width: '10px',
  6199. height: '100%',
  6200. top: '0px',
  6201. left: '-5px',
  6202. cursor: 'col-resize'
  6203. },
  6204. topRight: {
  6205. width: '20px',
  6206. height: '20px',
  6207. position: 'absolute',
  6208. right: '-10px',
  6209. top: '-10px',
  6210. cursor: 'ne-resize'
  6211. },
  6212. bottomRight: {
  6213. width: '20px',
  6214. height: '20px',
  6215. position: 'absolute',
  6216. right: '-10px',
  6217. bottom: '-10px',
  6218. cursor: 'se-resize'
  6219. },
  6220. bottomLeft: {
  6221. width: '20px',
  6222. height: '20px',
  6223. position: 'absolute',
  6224. left: '-10px',
  6225. bottom: '-10px',
  6226. cursor: 'sw-resize'
  6227. },
  6228. topLeft: {
  6229. width: '20px',
  6230. height: '20px',
  6231. position: 'absolute',
  6232. left: '-10px',
  6233. top: '-10px',
  6234. cursor: 'nw-resize'
  6235. }
  6236. };
  6237. var Resizer = (function (props) {
  6238. return React.createElement(
  6239. 'div',
  6240. {
  6241. className: props.className,
  6242. style: _extends({}, styles.base, styles[props.direction], props.replaceStyles || {}),
  6243. onMouseDown: function onMouseDown(e) {
  6244. props.onResizeStart(e, props.direction);
  6245. },
  6246. onTouchStart: function onTouchStart(e) {
  6247. props.onResizeStart(e, props.direction);
  6248. }
  6249. },
  6250. props.children
  6251. );
  6252. });
  6253. var userSelectNone = {
  6254. userSelect: 'none',
  6255. MozUserSelect: 'none',
  6256. WebkitUserSelect: 'none',
  6257. MsUserSelect: 'none'
  6258. };
  6259. var userSelectAuto = {
  6260. userSelect: 'auto',
  6261. MozUserSelect: 'auto',
  6262. WebkitUserSelect: 'auto',
  6263. MsUserSelect: 'auto'
  6264. };
  6265. var clamp = function clamp(n, min, max) {
  6266. return Math.max(Math.min(n, max), min);
  6267. };
  6268. var snap = function snap(n, size) {
  6269. return Math.round(n / size) * size;
  6270. };
  6271. var findClosestSnap = function findClosestSnap(n, snapArray) {
  6272. return snapArray.reduce(function (prev, curr) {
  6273. return Math.abs(curr - n) < Math.abs(prev - n) ? curr : prev;
  6274. });
  6275. };
  6276. var endsWith = function endsWith(str, searchStr) {
  6277. return str.substr(str.length - searchStr.length, searchStr.length) === searchStr;
  6278. };
  6279. var getStringSize = function getStringSize(n) {
  6280. if (n.toString() === 'auto') return n.toString();
  6281. if (endsWith(n.toString(), 'px')) return n.toString();
  6282. if (endsWith(n.toString(), '%')) return n.toString();
  6283. if (endsWith(n.toString(), 'vh')) return n.toString();
  6284. if (endsWith(n.toString(), 'vw')) return n.toString();
  6285. if (endsWith(n.toString(), 'vmax')) return n.toString();
  6286. if (endsWith(n.toString(), 'vmin')) return n.toString();
  6287. return n + 'px';
  6288. };
  6289. var definedProps = ['style', 'className', 'grid', 'snap', 'bounds', 'size', 'defaultSize', 'minWidth', 'minHeight', 'maxWidth', 'maxHeight', 'lockAspectRatio', 'lockAspectRatioExtraWidth', 'lockAspectRatioExtraHeight', 'enable', 'handleStyles', 'handleClasses', 'handleWrapperStyle', 'handleWrapperClass', 'children', 'onResizeStart', 'onResize', 'onResizeStop', 'handleComponent'];
  6290. var baseClassName = '__resizable_base__';
  6291. var Resizable = function (_React$Component) {
  6292. inherits(Resizable, _React$Component);
  6293. function Resizable(props) {
  6294. classCallCheck(this, Resizable);
  6295. var _this = possibleConstructorReturn(this, (Resizable.__proto__ || Object.getPrototypeOf(Resizable)).call(this, props));
  6296. _this.state = {
  6297. isResizing: false,
  6298. resizeCursor: 'auto',
  6299. width: typeof (_this.propsSize && _this.propsSize.width) === 'undefined' ? 'auto' : _this.propsSize && _this.propsSize.width,
  6300. height: typeof (_this.propsSize && _this.propsSize.height) === 'undefined' ? 'auto' : _this.propsSize && _this.propsSize.height,
  6301. direction: 'right',
  6302. original: {
  6303. x: 0,
  6304. y: 0,
  6305. width: 0,
  6306. height: 0
  6307. }
  6308. };
  6309. _this.updateExtendsProps(props);
  6310. _this.onResizeStart = _this.onResizeStart.bind(_this);
  6311. _this.onMouseMove = _this.onMouseMove.bind(_this);
  6312. _this.onMouseUp = _this.onMouseUp.bind(_this);
  6313. if (typeof window !== 'undefined') {
  6314. window.addEventListener('mouseup', _this.onMouseUp);
  6315. window.addEventListener('mousemove', _this.onMouseMove);
  6316. window.addEventListener('mouseleave', _this.onMouseUp);
  6317. window.addEventListener('touchmove', _this.onMouseMove);
  6318. window.addEventListener('touchend', _this.onMouseUp);
  6319. }
  6320. return _this;
  6321. }
  6322. createClass(Resizable, [{
  6323. key: 'updateExtendsProps',
  6324. value: function updateExtendsProps(props) {
  6325. this.extendsProps = Object.keys(props).reduce(function (acc, key) {
  6326. if (definedProps.indexOf(key) !== -1) return acc;
  6327. acc[key] = props[key];
  6328. return acc;
  6329. }, {});
  6330. }
  6331. }, {
  6332. key: 'getParentSize',
  6333. value: function getParentSize() {
  6334. var base = this.base;
  6335. if (!base) return { width: window.innerWidth, height: window.innerHeight };
  6336. // INFO: To calculate parent width with flex layout
  6337. var wrapChanged = false;
  6338. var wrap = this.parentNode.style.flexWrap;
  6339. var minWidth = base.style.minWidth;
  6340. if (wrap !== 'wrap') {
  6341. wrapChanged = true;
  6342. this.parentNode.style.flexWrap = 'wrap';
  6343. // HACK: Use relative to get parent padding size
  6344. }
  6345. base.style.position = 'relative';
  6346. base.style.minWidth = '100%';
  6347. var size = {
  6348. width: base.offsetWidth,
  6349. height: base.offsetHeight
  6350. };
  6351. base.style.position = 'absolute';
  6352. if (wrapChanged) this.parentNode.style.flexWrap = wrap;
  6353. base.style.minWidth = minWidth;
  6354. return size;
  6355. }
  6356. }, {
  6357. key: 'componentDidMount',
  6358. value: function componentDidMount() {
  6359. var size = this.size;
  6360. this.setState({
  6361. width: this.state.width || size.width,
  6362. height: this.state.height || size.height
  6363. });
  6364. var parent = this.parentNode;
  6365. if (!(parent instanceof HTMLElement)) return;
  6366. if (this.base) return;
  6367. var element = document.createElement('div');
  6368. element.style.width = '100%';
  6369. element.style.height = '100%';
  6370. element.style.position = 'absolute';
  6371. element.style.transform = 'scale(0, 0)';
  6372. element.style.left = '0';
  6373. element.style.flex = '0';
  6374. if (element.classList) {
  6375. element.classList.add(baseClassName);
  6376. } else {
  6377. element.className += baseClassName;
  6378. }
  6379. parent.appendChild(element);
  6380. }
  6381. }, {
  6382. key: 'componentWillReceiveProps',
  6383. value: function componentWillReceiveProps(next) {
  6384. this.updateExtendsProps(next);
  6385. }
  6386. }, {
  6387. key: 'componentWillUnmount',
  6388. value: function componentWillUnmount() {
  6389. if (typeof window !== 'undefined') {
  6390. window.removeEventListener('mouseup', this.onMouseUp);
  6391. window.removeEventListener('mousemove', this.onMouseMove);
  6392. window.removeEventListener('mouseleave', this.onMouseUp);
  6393. window.removeEventListener('touchmove', this.onMouseMove);
  6394. window.removeEventListener('touchend', this.onMouseUp);
  6395. var parent = this.parentNode;
  6396. var base = this.base;
  6397. if (!base || !parent) return;
  6398. if (!(parent instanceof HTMLElement) || !(base instanceof Node)) return;
  6399. parent.removeChild(base);
  6400. }
  6401. }
  6402. }, {
  6403. key: 'calculateNewSize',
  6404. value: function calculateNewSize(newSize, kind) {
  6405. var propsSize = this.propsSize && this.propsSize[kind];
  6406. return this.state[kind] === 'auto' && this.state.original[kind] === newSize && (typeof propsSize === 'undefined' || propsSize === 'auto') ? 'auto' : newSize;
  6407. }
  6408. }, {
  6409. key: 'onResizeStart',
  6410. value: function onResizeStart(event, direction) {
  6411. var clientX = 0;
  6412. var clientY = 0;
  6413. if (event.nativeEvent instanceof MouseEvent) {
  6414. clientX = event.nativeEvent.clientX;
  6415. clientY = event.nativeEvent.clientY;
  6416. // When user click with right button the resize is stuck in resizing mode
  6417. // until users clicks again, dont continue if right click is used.
  6418. // HACK: MouseEvent does not have `which` from flow-bin v0.68.
  6419. if (event.nativeEvent.which === 3) {
  6420. return;
  6421. }
  6422. } else if (event.nativeEvent instanceof TouchEvent) {
  6423. clientX = event.nativeEvent.touches[0].clientX;
  6424. clientY = event.nativeEvent.touches[0].clientY;
  6425. }
  6426. if (this.props.onResizeStart) {
  6427. this.props.onResizeStart(event, direction, this.resizable);
  6428. }
  6429. // Fix #168
  6430. if (this.props.size) {
  6431. if (typeof this.props.size.height !== 'undefined' && this.props.size.height !== this.state.height) {
  6432. this.setState({ height: this.props.size.height });
  6433. }
  6434. if (typeof this.props.size.width !== 'undefined' && this.props.size.width !== this.state.width) {
  6435. this.setState({ width: this.props.size.width });
  6436. }
  6437. }
  6438. this.setState({
  6439. original: {
  6440. x: clientX,
  6441. y: clientY,
  6442. width: this.size.width,
  6443. height: this.size.height
  6444. },
  6445. isResizing: true,
  6446. resizeCursor: window.getComputedStyle(event.target).cursor,
  6447. direction: direction
  6448. });
  6449. }
  6450. }, {
  6451. key: 'onMouseMove',
  6452. value: function onMouseMove(event) {
  6453. if (!this.state.isResizing) return;
  6454. var clientX = event instanceof MouseEvent ? event.clientX : event.touches[0].clientX;
  6455. var clientY = event instanceof MouseEvent ? event.clientY : event.touches[0].clientY;
  6456. var _state = this.state,
  6457. direction = _state.direction,
  6458. original = _state.original,
  6459. width = _state.width,
  6460. height = _state.height;
  6461. var _props = this.props,
  6462. lockAspectRatio = _props.lockAspectRatio,
  6463. lockAspectRatioExtraHeight = _props.lockAspectRatioExtraHeight,
  6464. lockAspectRatioExtraWidth = _props.lockAspectRatioExtraWidth;
  6465. var _props2 = this.props,
  6466. maxWidth = _props2.maxWidth,
  6467. maxHeight = _props2.maxHeight,
  6468. minWidth = _props2.minWidth,
  6469. minHeight = _props2.minHeight;
  6470. // TODO: refactor
  6471. var parentSize = this.getParentSize();
  6472. if (maxWidth && typeof maxWidth === 'string' && endsWith(maxWidth, '%')) {
  6473. var _ratio = Number(maxWidth.replace('%', '')) / 100;
  6474. maxWidth = parentSize.width * _ratio;
  6475. }
  6476. if (maxHeight && typeof maxHeight === 'string' && endsWith(maxHeight, '%')) {
  6477. var _ratio2 = Number(maxHeight.replace('%', '')) / 100;
  6478. maxHeight = parentSize.height * _ratio2;
  6479. }
  6480. if (minWidth && typeof minWidth === 'string' && endsWith(minWidth, '%')) {
  6481. var _ratio3 = Number(minWidth.replace('%', '')) / 100;
  6482. minWidth = parentSize.width * _ratio3;
  6483. }
  6484. if (minHeight && typeof minHeight === 'string' && endsWith(minHeight, '%')) {
  6485. var _ratio4 = Number(minHeight.replace('%', '')) / 100;
  6486. minHeight = parentSize.height * _ratio4;
  6487. }
  6488. maxWidth = typeof maxWidth === 'undefined' ? undefined : Number(maxWidth);
  6489. maxHeight = typeof maxHeight === 'undefined' ? undefined : Number(maxHeight);
  6490. minWidth = typeof minWidth === 'undefined' ? undefined : Number(minWidth);
  6491. minHeight = typeof minHeight === 'undefined' ? undefined : Number(minHeight);
  6492. var ratio = typeof lockAspectRatio === 'number' ? lockAspectRatio : original.width / original.height;
  6493. var newWidth = original.width;
  6494. var newHeight = original.height;
  6495. if (/right/i.test(direction)) {
  6496. newWidth = original.width + (clientX - original.x);
  6497. if (lockAspectRatio) newHeight = (newWidth - lockAspectRatioExtraWidth) / ratio + lockAspectRatioExtraHeight;
  6498. }
  6499. if (/left/i.test(direction)) {
  6500. newWidth = original.width - (clientX - original.x);
  6501. if (lockAspectRatio) newHeight = (newWidth - lockAspectRatioExtraWidth) / ratio + lockAspectRatioExtraHeight;
  6502. }
  6503. if (/bottom/i.test(direction)) {
  6504. newHeight = original.height + (clientY - original.y);
  6505. if (lockAspectRatio) newWidth = (newHeight - lockAspectRatioExtraHeight) * ratio + lockAspectRatioExtraWidth;
  6506. }
  6507. if (/top/i.test(direction)) {
  6508. newHeight = original.height - (clientY - original.y);
  6509. if (lockAspectRatio) newWidth = (newHeight - lockAspectRatioExtraHeight) * ratio + lockAspectRatioExtraWidth;
  6510. }
  6511. if (this.props.bounds === 'parent') {
  6512. var parent = this.parentNode;
  6513. if (parent instanceof HTMLElement) {
  6514. var parentRect = parent.getBoundingClientRect();
  6515. var parentLeft = parentRect.left;
  6516. var parentTop = parentRect.top;
  6517. var _resizable$getBoundin = this.resizable.getBoundingClientRect(),
  6518. _left = _resizable$getBoundin.left,
  6519. _top = _resizable$getBoundin.top;
  6520. var boundWidth = parent.offsetWidth + (parentLeft - _left);
  6521. var boundHeight = parent.offsetHeight + (parentTop - _top);
  6522. maxWidth = maxWidth && maxWidth < boundWidth ? maxWidth : boundWidth;
  6523. maxHeight = maxHeight && maxHeight < boundHeight ? maxHeight : boundHeight;
  6524. }
  6525. } else if (this.props.bounds === 'window') {
  6526. if (typeof window !== 'undefined') {
  6527. var _resizable$getBoundin2 = this.resizable.getBoundingClientRect(),
  6528. _left2 = _resizable$getBoundin2.left,
  6529. _top2 = _resizable$getBoundin2.top;
  6530. var _boundWidth = window.innerWidth - _left2;
  6531. var _boundHeight = window.innerHeight - _top2;
  6532. maxWidth = maxWidth && maxWidth < _boundWidth ? maxWidth : _boundWidth;
  6533. maxHeight = maxHeight && maxHeight < _boundHeight ? maxHeight : _boundHeight;
  6534. }
  6535. } else if (this.props.bounds instanceof HTMLElement) {
  6536. var targetRect = this.props.bounds.getBoundingClientRect();
  6537. var targetLeft = targetRect.left;
  6538. var targetTop = targetRect.top;
  6539. var _resizable$getBoundin3 = this.resizable.getBoundingClientRect(),
  6540. _left3 = _resizable$getBoundin3.left,
  6541. _top3 = _resizable$getBoundin3.top;
  6542. if (!(this.props.bounds instanceof HTMLElement)) return;
  6543. var _boundWidth2 = this.props.bounds.offsetWidth + (targetLeft - _left3);
  6544. var _boundHeight2 = this.props.bounds.offsetHeight + (targetTop - _top3);
  6545. maxWidth = maxWidth && maxWidth < _boundWidth2 ? maxWidth : _boundWidth2;
  6546. maxHeight = maxHeight && maxHeight < _boundHeight2 ? maxHeight : _boundHeight2;
  6547. }
  6548. var computedMinWidth = typeof minWidth === 'undefined' ? 10 : minWidth;
  6549. var computedMaxWidth = typeof maxWidth === 'undefined' || maxWidth < 0 ? newWidth : maxWidth;
  6550. var computedMinHeight = typeof minHeight === 'undefined' ? 10 : minHeight;
  6551. var computedMaxHeight = typeof maxHeight === 'undefined' || maxHeight < 0 ? newHeight : maxHeight;
  6552. if (lockAspectRatio) {
  6553. var extraMinWidth = (computedMinHeight - lockAspectRatioExtraHeight) * ratio + lockAspectRatioExtraWidth;
  6554. var extraMaxWidth = (computedMaxHeight - lockAspectRatioExtraHeight) * ratio + lockAspectRatioExtraWidth;
  6555. var extraMinHeight = (computedMinWidth - lockAspectRatioExtraWidth) / ratio + lockAspectRatioExtraHeight;
  6556. var extraMaxHeight = (computedMaxWidth - lockAspectRatioExtraWidth) / ratio + lockAspectRatioExtraHeight;
  6557. var lockedMinWidth = Math.max(computedMinWidth, extraMinWidth);
  6558. var lockedMaxWidth = Math.min(computedMaxWidth, extraMaxWidth);
  6559. var lockedMinHeight = Math.max(computedMinHeight, extraMinHeight);
  6560. var lockedMaxHeight = Math.min(computedMaxHeight, extraMaxHeight);
  6561. newWidth = clamp(newWidth, lockedMinWidth, lockedMaxWidth);
  6562. newHeight = clamp(newHeight, lockedMinHeight, lockedMaxHeight);
  6563. } else {
  6564. newWidth = clamp(newWidth, computedMinWidth, computedMaxWidth);
  6565. newHeight = clamp(newHeight, computedMinHeight, computedMaxHeight);
  6566. }
  6567. if (this.props.grid) {
  6568. newWidth = snap(newWidth, this.props.grid[0]);
  6569. }
  6570. if (this.props.grid) {
  6571. newHeight = snap(newHeight, this.props.grid[1]);
  6572. }
  6573. if (this.props.snap && this.props.snap.x) {
  6574. newWidth = findClosestSnap(newWidth, this.props.snap.x);
  6575. }
  6576. if (this.props.snap && this.props.snap.y) {
  6577. newHeight = findClosestSnap(newHeight, this.props.snap.y);
  6578. }
  6579. var delta = {
  6580. width: newWidth - original.width,
  6581. height: newHeight - original.height
  6582. };
  6583. if (width && typeof width === 'string' && endsWith(width, '%')) {
  6584. var percent = newWidth / parentSize.width * 100;
  6585. newWidth = percent + '%';
  6586. }
  6587. if (height && typeof height === 'string' && endsWith(height, '%')) {
  6588. var _percent = newHeight / parentSize.height * 100;
  6589. newHeight = _percent + '%';
  6590. }
  6591. this.setState({
  6592. width: this.calculateNewSize(newWidth, 'width'),
  6593. height: this.calculateNewSize(newHeight, 'height')
  6594. });
  6595. if (this.props.onResize) {
  6596. this.props.onResize(event, direction, this.resizable, delta);
  6597. }
  6598. }
  6599. }, {
  6600. key: 'onMouseUp',
  6601. value: function onMouseUp(event) {
  6602. var _state2 = this.state,
  6603. isResizing = _state2.isResizing,
  6604. direction = _state2.direction,
  6605. original = _state2.original;
  6606. if (!isResizing) return;
  6607. var delta = {
  6608. width: this.size.width - original.width,
  6609. height: this.size.height - original.height
  6610. };
  6611. if (this.props.onResizeStop) {
  6612. this.props.onResizeStop(event, direction, this.resizable, delta);
  6613. }
  6614. if (this.props.size) {
  6615. this.setState(this.props.size);
  6616. }
  6617. this.setState({ isResizing: false, resizeCursor: 'auto' });
  6618. }
  6619. }, {
  6620. key: 'updateSize',
  6621. value: function updateSize(size) {
  6622. this.setState({ width: size.width, height: size.height });
  6623. }
  6624. }, {
  6625. key: 'renderResizer',
  6626. value: function renderResizer() {
  6627. var _this2 = this;
  6628. var _props3 = this.props,
  6629. enable = _props3.enable,
  6630. handleStyles = _props3.handleStyles,
  6631. handleClasses = _props3.handleClasses,
  6632. handleWrapperStyle = _props3.handleWrapperStyle,
  6633. handleWrapperClass = _props3.handleWrapperClass,
  6634. handleComponent = _props3.handleComponent;
  6635. if (!enable) return null;
  6636. var resizers = Object.keys(enable).map(function (dir) {
  6637. if (enable[dir] !== false) {
  6638. return React.createElement(
  6639. Resizer,
  6640. {
  6641. key: dir,
  6642. direction: dir,
  6643. onResizeStart: _this2.onResizeStart,
  6644. replaceStyles: handleStyles && handleStyles[dir],
  6645. className: handleClasses && handleClasses[dir]
  6646. },
  6647. handleComponent && handleComponent[dir] ? React.createElement(handleComponent[dir]) : null
  6648. );
  6649. }
  6650. return null;
  6651. });
  6652. // #93 Wrap the resize box in span (will not break 100% width/height)
  6653. return React.createElement(
  6654. 'span',
  6655. { className: handleWrapperClass, style: handleWrapperStyle },
  6656. resizers
  6657. );
  6658. }
  6659. }, {
  6660. key: 'render',
  6661. value: function render() {
  6662. var _this3 = this;
  6663. var userSelect = this.state.isResizing ? userSelectNone : userSelectAuto;
  6664. return React.createElement(
  6665. 'div',
  6666. _extends({
  6667. ref: function ref(c) {
  6668. if (c) {
  6669. _this3.resizable = c;
  6670. }
  6671. },
  6672. style: _extends({
  6673. position: 'relative'
  6674. }, userSelect, this.props.style, this.sizeStyle, {
  6675. maxWidth: this.props.maxWidth,
  6676. maxHeight: this.props.maxHeight,
  6677. minWidth: this.props.minWidth,
  6678. minHeight: this.props.minHeight,
  6679. boxSizing: 'border-box'
  6680. }),
  6681. className: this.props.className
  6682. }, this.extendsProps),
  6683. this.state.isResizing && React.createElement('div', {
  6684. style: {
  6685. height: '100%',
  6686. width: '100%',
  6687. backgroundColor: 'rgba(0,0,0,0)',
  6688. cursor: '' + (this.state.resizeCursor || 'auto'),
  6689. opacity: '0',
  6690. position: 'fixed',
  6691. zIndex: '9999',
  6692. top: '0',
  6693. left: '0',
  6694. bottom: '0',
  6695. right: '0'
  6696. }
  6697. }),
  6698. this.props.children,
  6699. this.renderResizer()
  6700. );
  6701. }
  6702. }, {
  6703. key: 'parentNode',
  6704. get: function get$$1() {
  6705. return this.resizable.parentNode;
  6706. }
  6707. }, {
  6708. key: 'propsSize',
  6709. get: function get$$1() {
  6710. return this.props.size || this.props.defaultSize;
  6711. }
  6712. }, {
  6713. key: 'base',
  6714. get: function get$$1() {
  6715. var parent = this.parentNode;
  6716. if (!parent) return undefined;
  6717. var children = [].slice.call(parent.children);
  6718. for (var i = 0; i < children.length; i += 1) {
  6719. var n = children[i];
  6720. if (n instanceof HTMLElement) {
  6721. if (n.classList.contains(baseClassName)) {
  6722. return n;
  6723. }
  6724. }
  6725. }
  6726. return undefined;
  6727. }
  6728. }, {
  6729. key: 'size',
  6730. get: function get$$1() {
  6731. var width = 0;
  6732. var height = 0;
  6733. if (typeof window !== 'undefined') {
  6734. var orgWidth = this.resizable.offsetWidth;
  6735. var orgHeight = this.resizable.offsetHeight;
  6736. // HACK: Set position `relative` to get parent size.
  6737. // This is because when re-resizable set `absolute`, I can not get base width correctly.
  6738. var orgPosition = this.resizable.style.position;
  6739. if (orgPosition !== 'relative') {
  6740. this.resizable.style.position = 'relative';
  6741. }
  6742. // INFO: Use original width or height if set auto.
  6743. width = this.resizable.style.width !== 'auto' ? this.resizable.offsetWidth : orgWidth;
  6744. height = this.resizable.style.height !== 'auto' ? this.resizable.offsetHeight : orgHeight;
  6745. // Restore original position
  6746. this.resizable.style.position = orgPosition;
  6747. }
  6748. return { width: width, height: height };
  6749. }
  6750. }, {
  6751. key: 'sizeStyle',
  6752. get: function get$$1() {
  6753. var _this4 = this;
  6754. var size = this.props.size;
  6755. var getSize = function getSize(key) {
  6756. if (typeof _this4.state[key] === 'undefined' || _this4.state[key] === 'auto') return 'auto';
  6757. if (_this4.propsSize && _this4.propsSize[key] && endsWith(_this4.propsSize[key].toString(), '%')) {
  6758. if (endsWith(_this4.state[key].toString(), '%')) return _this4.state[key].toString();
  6759. var parentSize = _this4.getParentSize();
  6760. var value = Number(_this4.state[key].toString().replace('px', ''));
  6761. var percent = value / parentSize[key] * 100;
  6762. return percent + '%';
  6763. }
  6764. return getStringSize(_this4.state[key]);
  6765. };
  6766. var width = size && typeof size.width !== 'undefined' && !this.state.isResizing ? getStringSize(size.width) : getSize('width');
  6767. var height = size && typeof size.height !== 'undefined' && !this.state.isResizing ? getStringSize(size.height) : getSize('height');
  6768. return { width: width, height: height };
  6769. }
  6770. }]);
  6771. return Resizable;
  6772. }(React.Component);
  6773. Resizable.defaultProps = {
  6774. onResizeStart: function onResizeStart() {},
  6775. onResize: function onResize() {},
  6776. onResizeStop: function onResizeStop() {},
  6777. enable: {
  6778. top: true,
  6779. right: true,
  6780. bottom: true,
  6781. left: true,
  6782. topRight: true,
  6783. bottomRight: true,
  6784. bottomLeft: true,
  6785. topLeft: true
  6786. },
  6787. style: {},
  6788. grid: [1, 1],
  6789. lockAspectRatio: false,
  6790. lockAspectRatioExtraWidth: 0,
  6791. lockAspectRatioExtraHeight: 0
  6792. };
  6793. module.exports = Resizable;
  6794. /***/ }),
  6795. /***/ "../../node_modules/react-contextmenu/es6/AbstractMenu.js":
  6796. /*!************************************************************************************!*\
  6797. !*** C:/Dev/Babylon/Babylon.js/node_modules/react-contextmenu/es6/AbstractMenu.js ***!
  6798. \************************************************************************************/
  6799. /*! exports provided: default */
  6800. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6801. "use strict";
  6802. __webpack_require__.r(__webpack_exports__);
  6803. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  6804. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  6805. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  6806. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
  6807. /* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./MenuItem */ "../../node_modules/react-contextmenu/es6/MenuItem.js");
  6808. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  6809. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  6810. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  6811. var AbstractMenu = function (_Component) {
  6812. _inherits(AbstractMenu, _Component);
  6813. function AbstractMenu(props) {
  6814. _classCallCheck(this, AbstractMenu);
  6815. var _this = _possibleConstructorReturn(this, (AbstractMenu.__proto__ || Object.getPrototypeOf(AbstractMenu)).call(this, props));
  6816. _initialiseProps.call(_this);
  6817. _this.seletedItemRef = null;
  6818. _this.state = {
  6819. selectedItem: null,
  6820. forceSubMenuOpen: false
  6821. };
  6822. return _this;
  6823. }
  6824. return AbstractMenu;
  6825. }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);
  6826. AbstractMenu.propTypes = {
  6827. children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired
  6828. };
  6829. var _initialiseProps = function _initialiseProps() {
  6830. var _this2 = this;
  6831. this.handleKeyNavigation = function (e) {
  6832. // check for isVisible strictly here as it might be undefined when this code executes in the context of SubMenu
  6833. // but we only need to check when it runs in the ContextMenu context
  6834. if (_this2.state.isVisible === false) {
  6835. return;
  6836. }
  6837. switch (e.keyCode) {
  6838. case 37: // left arrow
  6839. case 27:
  6840. // escape
  6841. e.preventDefault();
  6842. _this2.hideMenu(e);
  6843. break;
  6844. case 38:
  6845. // up arrow
  6846. e.preventDefault();
  6847. _this2.selectChildren(true);
  6848. break;
  6849. case 40:
  6850. // down arrow
  6851. e.preventDefault();
  6852. _this2.selectChildren(false);
  6853. break;
  6854. case 39:
  6855. // right arrow
  6856. _this2.tryToOpenSubMenu(e);
  6857. break;
  6858. case 13:
  6859. // enter
  6860. e.preventDefault();
  6861. _this2.tryToOpenSubMenu(e);
  6862. {
  6863. // determine the selected item is disabled or not
  6864. var disabled = _this2.seletedItemRef && _this2.seletedItemRef.props && _this2.seletedItemRef.props.disabled;
  6865. if (_this2.seletedItemRef && _this2.seletedItemRef.ref instanceof HTMLElement && !disabled) {
  6866. _this2.seletedItemRef.ref.click();
  6867. } else {
  6868. _this2.hideMenu(e);
  6869. }
  6870. }
  6871. break;
  6872. default:
  6873. // do nothing
  6874. }
  6875. };
  6876. this.handleForceClose = function () {
  6877. _this2.setState({ forceSubMenuOpen: false });
  6878. };
  6879. this.tryToOpenSubMenu = function (e) {
  6880. if (_this2.state.selectedItem && _this2.state.selectedItem.type === _this2.getSubMenuType()) {
  6881. e.preventDefault();
  6882. _this2.setState({ forceSubMenuOpen: true });
  6883. }
  6884. };
  6885. this.selectChildren = function (forward) {
  6886. var selectedItem = _this2.state.selectedItem;
  6887. var children = [];
  6888. var childCollector = function childCollector(child) {
  6889. // child can be empty in case you do conditional rendering of components, in which
  6890. // case it should not be accounted for as a real child
  6891. if (!child) {
  6892. return;
  6893. }
  6894. if ([_MenuItem__WEBPACK_IMPORTED_MODULE_2__["default"], _this2.getSubMenuType()].indexOf(child.type) < 0) {
  6895. // Maybe the MenuItem or SubMenu is capsuled in a wrapper div or something else
  6896. react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.forEach(child.props.children, childCollector);
  6897. } else if (!child.props.divider) {
  6898. children.push(child);
  6899. }
  6900. };
  6901. react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.forEach(_this2.props.children, childCollector);
  6902. var currentIndex = children.indexOf(selectedItem);
  6903. if (currentIndex < 0) {
  6904. _this2.setState({
  6905. selectedItem: forward ? children[children.length - 1] : children[0],
  6906. forceSubMenuOpen: false
  6907. });
  6908. } else if (forward) {
  6909. _this2.setState({
  6910. selectedItem: children[currentIndex - 1 < 0 ? children.length - 1 : currentIndex - 1],
  6911. forceSubMenuOpen: false
  6912. });
  6913. } else {
  6914. _this2.setState({
  6915. selectedItem: children[currentIndex + 1 < children.length ? currentIndex + 1 : 0],
  6916. forceSubMenuOpen: false
  6917. });
  6918. }
  6919. };
  6920. this.onChildMouseMove = function (child) {
  6921. if (_this2.state.selectedItem !== child) {
  6922. _this2.setState({ selectedItem: child, forceSubMenuOpen: false });
  6923. }
  6924. };
  6925. this.onChildMouseLeave = function () {
  6926. _this2.setState({ selectedItem: null, forceSubMenuOpen: false });
  6927. };
  6928. this.renderChildren = function (children) {
  6929. return react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.map(children, function (child) {
  6930. var props = {};
  6931. if (!react__WEBPACK_IMPORTED_MODULE_0___default.a.isValidElement(child)) return child;
  6932. if ([_MenuItem__WEBPACK_IMPORTED_MODULE_2__["default"], _this2.getSubMenuType()].indexOf(child.type) < 0) {
  6933. // Maybe the MenuItem or SubMenu is capsuled in a wrapper div or something else
  6934. props.children = _this2.renderChildren(child.props.children);
  6935. return react__WEBPACK_IMPORTED_MODULE_0___default.a.cloneElement(child, props);
  6936. }
  6937. props.onMouseLeave = _this2.onChildMouseLeave.bind(_this2);
  6938. if (child.type === _this2.getSubMenuType()) {
  6939. // special props for SubMenu only
  6940. props.forceOpen = _this2.state.forceSubMenuOpen && _this2.state.selectedItem === child;
  6941. props.forceClose = _this2.handleForceClose;
  6942. props.parentKeyNavigationHandler = _this2.handleKeyNavigation;
  6943. }
  6944. if (!child.props.divider && _this2.state.selectedItem === child) {
  6945. // special props for selected item only
  6946. props.selected = true;
  6947. props.ref = function (ref) {
  6948. _this2.seletedItemRef = ref;
  6949. };
  6950. return react__WEBPACK_IMPORTED_MODULE_0___default.a.cloneElement(child, props);
  6951. }
  6952. // onMouseMove is only needed for non selected items
  6953. props.onMouseMove = function () {
  6954. return _this2.onChildMouseMove(child);
  6955. };
  6956. return react__WEBPACK_IMPORTED_MODULE_0___default.a.cloneElement(child, props);
  6957. });
  6958. };
  6959. };
  6960. /* harmony default export */ __webpack_exports__["default"] = (AbstractMenu);
  6961. /***/ }),
  6962. /***/ "../../node_modules/react-contextmenu/es6/ContextMenu.js":
  6963. /*!***********************************************************************************!*\
  6964. !*** C:/Dev/Babylon/Babylon.js/node_modules/react-contextmenu/es6/ContextMenu.js ***!
  6965. \***********************************************************************************/
  6966. /*! exports provided: default */
  6967. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6968. "use strict";
  6969. __webpack_require__.r(__webpack_exports__);
  6970. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  6971. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  6972. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  6973. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
  6974. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "../../node_modules/classnames/index.js");
  6975. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
  6976. /* harmony import */ var object_assign__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  6977. /* harmony import */ var object_assign__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(object_assign__WEBPACK_IMPORTED_MODULE_3__);
  6978. /* harmony import */ var _globalEventListener__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./globalEventListener */ "../../node_modules/react-contextmenu/es6/globalEventListener.js");
  6979. /* harmony import */ var _AbstractMenu__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./AbstractMenu */ "../../node_modules/react-contextmenu/es6/AbstractMenu.js");
  6980. /* harmony import */ var _SubMenu__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./SubMenu */ "../../node_modules/react-contextmenu/es6/SubMenu.js");
  6981. /* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./actions */ "../../node_modules/react-contextmenu/es6/actions.js");
  6982. /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./helpers */ "../../node_modules/react-contextmenu/es6/helpers.js");
  6983. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  6984. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  6985. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  6986. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  6987. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  6988. var ContextMenu = function (_AbstractMenu) {
  6989. _inherits(ContextMenu, _AbstractMenu);
  6990. function ContextMenu(props) {
  6991. _classCallCheck(this, ContextMenu);
  6992. var _this = _possibleConstructorReturn(this, (ContextMenu.__proto__ || Object.getPrototypeOf(ContextMenu)).call(this, props));
  6993. _this.registerHandlers = function () {
  6994. document.addEventListener('mousedown', _this.handleOutsideClick);
  6995. document.addEventListener('touchstart', _this.handleOutsideClick);
  6996. document.addEventListener('scroll', _this.handleHide);
  6997. document.addEventListener('contextmenu', _this.handleHide);
  6998. document.addEventListener('keydown', _this.handleKeyNavigation);
  6999. window.addEventListener('resize', _this.handleHide);
  7000. };
  7001. _this.unregisterHandlers = function () {
  7002. document.removeEventListener('mousedown', _this.handleOutsideClick);
  7003. document.removeEventListener('touchstart', _this.handleOutsideClick);
  7004. document.removeEventListener('scroll', _this.handleHide);
  7005. document.removeEventListener('contextmenu', _this.handleHide);
  7006. document.removeEventListener('keydown', _this.handleKeyNavigation);
  7007. window.removeEventListener('resize', _this.handleHide);
  7008. };
  7009. _this.handleShow = function (e) {
  7010. if (e.detail.id !== _this.props.id || _this.state.isVisible) return;
  7011. var _e$detail$position = e.detail.position,
  7012. x = _e$detail$position.x,
  7013. y = _e$detail$position.y;
  7014. _this.setState({ isVisible: true, x: x, y: y });
  7015. _this.registerHandlers();
  7016. Object(_helpers__WEBPACK_IMPORTED_MODULE_8__["callIfExists"])(_this.props.onShow, e);
  7017. };
  7018. _this.handleHide = function (e) {
  7019. if (_this.state.isVisible && (!e.detail || !e.detail.id || e.detail.id === _this.props.id)) {
  7020. _this.unregisterHandlers();
  7021. _this.setState({ isVisible: false, selectedItem: null, forceSubMenuOpen: false });
  7022. Object(_helpers__WEBPACK_IMPORTED_MODULE_8__["callIfExists"])(_this.props.onHide, e);
  7023. }
  7024. };
  7025. _this.handleOutsideClick = function (e) {
  7026. if (!_this.menu.contains(e.target)) Object(_actions__WEBPACK_IMPORTED_MODULE_7__["hideMenu"])();
  7027. };
  7028. _this.handleMouseLeave = function (event) {
  7029. event.preventDefault();
  7030. Object(_helpers__WEBPACK_IMPORTED_MODULE_8__["callIfExists"])(_this.props.onMouseLeave, event, object_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, _this.props.data, _helpers__WEBPACK_IMPORTED_MODULE_8__["store"].data), _helpers__WEBPACK_IMPORTED_MODULE_8__["store"].target);
  7031. if (_this.props.hideOnLeave) Object(_actions__WEBPACK_IMPORTED_MODULE_7__["hideMenu"])();
  7032. };
  7033. _this.handleContextMenu = function (e) {
  7034. if (false) {}
  7035. _this.handleHide(e);
  7036. };
  7037. _this.hideMenu = function (e) {
  7038. if (e.keyCode === 27 || e.keyCode === 13) {
  7039. // ECS or enter
  7040. Object(_actions__WEBPACK_IMPORTED_MODULE_7__["hideMenu"])();
  7041. }
  7042. };
  7043. _this.getMenuPosition = function () {
  7044. var x = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  7045. var y = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  7046. var menuStyles = {
  7047. top: y,
  7048. left: x
  7049. };
  7050. if (!_this.menu) return menuStyles;
  7051. var _window = window,
  7052. innerWidth = _window.innerWidth,
  7053. innerHeight = _window.innerHeight;
  7054. var rect = _this.menu.getBoundingClientRect();
  7055. if (y + rect.height > innerHeight) {
  7056. menuStyles.top -= rect.height;
  7057. }
  7058. if (x + rect.width > innerWidth) {
  7059. menuStyles.left -= rect.width;
  7060. }
  7061. if (menuStyles.top < 0) {
  7062. menuStyles.top = rect.height < innerHeight ? (innerHeight - rect.height) / 2 : 0;
  7063. }
  7064. if (menuStyles.left < 0) {
  7065. menuStyles.left = rect.width < innerWidth ? (innerWidth - rect.width) / 2 : 0;
  7066. }
  7067. return menuStyles;
  7068. };
  7069. _this.getRTLMenuPosition = function () {
  7070. var x = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  7071. var y = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  7072. var menuStyles = {
  7073. top: y,
  7074. left: x
  7075. };
  7076. if (!_this.menu) return menuStyles;
  7077. var _window2 = window,
  7078. innerWidth = _window2.innerWidth,
  7079. innerHeight = _window2.innerHeight;
  7080. var rect = _this.menu.getBoundingClientRect();
  7081. // Try to position the menu on the left side of the cursor
  7082. menuStyles.left = x - rect.width;
  7083. if (y + rect.height > innerHeight) {
  7084. menuStyles.top -= rect.height;
  7085. }
  7086. if (menuStyles.left < 0) {
  7087. menuStyles.left += rect.width;
  7088. }
  7089. if (menuStyles.top < 0) {
  7090. menuStyles.top = rect.height < innerHeight ? (innerHeight - rect.height) / 2 : 0;
  7091. }
  7092. if (menuStyles.left + rect.width > innerWidth) {
  7093. menuStyles.left = rect.width < innerWidth ? (innerWidth - rect.width) / 2 : 0;
  7094. }
  7095. return menuStyles;
  7096. };
  7097. _this.menuRef = function (c) {
  7098. _this.menu = c;
  7099. };
  7100. _this.state = object_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, _this.state, {
  7101. x: 0,
  7102. y: 0,
  7103. isVisible: false
  7104. });
  7105. return _this;
  7106. }
  7107. _createClass(ContextMenu, [{
  7108. key: 'getSubMenuType',
  7109. value: function getSubMenuType() {
  7110. // eslint-disable-line class-methods-use-this
  7111. return _SubMenu__WEBPACK_IMPORTED_MODULE_6__["default"];
  7112. }
  7113. }, {
  7114. key: 'componentDidMount',
  7115. value: function componentDidMount() {
  7116. this.listenId = _globalEventListener__WEBPACK_IMPORTED_MODULE_4__["default"].register(this.handleShow, this.handleHide);
  7117. }
  7118. }, {
  7119. key: 'componentDidUpdate',
  7120. value: function componentDidUpdate() {
  7121. var _this2 = this;
  7122. if (this.state.isVisible) {
  7123. var wrapper = window.requestAnimationFrame || setTimeout;
  7124. wrapper(function () {
  7125. var _state = _this2.state,
  7126. x = _state.x,
  7127. y = _state.y;
  7128. var _ref = _this2.props.rtl ? _this2.getRTLMenuPosition(x, y) : _this2.getMenuPosition(x, y),
  7129. top = _ref.top,
  7130. left = _ref.left;
  7131. wrapper(function () {
  7132. if (!_this2.menu) return;
  7133. _this2.menu.style.top = top + 'px';
  7134. _this2.menu.style.left = left + 'px';
  7135. _this2.menu.style.opacity = 1;
  7136. _this2.menu.style.pointerEvents = 'auto';
  7137. });
  7138. });
  7139. } else {
  7140. if (!this.menu) return;
  7141. this.menu.style.opacity = 0;
  7142. this.menu.style.pointerEvents = 'none';
  7143. }
  7144. }
  7145. }, {
  7146. key: 'componentWillUnmount',
  7147. value: function componentWillUnmount() {
  7148. if (this.listenId) {
  7149. _globalEventListener__WEBPACK_IMPORTED_MODULE_4__["default"].unregister(this.listenId);
  7150. }
  7151. this.unregisterHandlers();
  7152. }
  7153. }, {
  7154. key: 'render',
  7155. value: function render() {
  7156. var _props = this.props,
  7157. children = _props.children,
  7158. className = _props.className,
  7159. style = _props.style;
  7160. var isVisible = this.state.isVisible;
  7161. var inlineStyle = object_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, style, { position: 'fixed', opacity: 0, pointerEvents: 'none' });
  7162. var menuClassnames = classnames__WEBPACK_IMPORTED_MODULE_2___default()(_helpers__WEBPACK_IMPORTED_MODULE_8__["cssClasses"].menu, className, _defineProperty({}, _helpers__WEBPACK_IMPORTED_MODULE_8__["cssClasses"].menuVisible, isVisible));
  7163. return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
  7164. 'nav',
  7165. {
  7166. role: 'menu', tabIndex: '-1', ref: this.menuRef, style: inlineStyle, className: menuClassnames,
  7167. onContextMenu: this.handleContextMenu, onMouseLeave: this.handleMouseLeave },
  7168. this.renderChildren(children)
  7169. );
  7170. }
  7171. }]);
  7172. return ContextMenu;
  7173. }(_AbstractMenu__WEBPACK_IMPORTED_MODULE_5__["default"]);
  7174. ContextMenu.propTypes = {
  7175. id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,
  7176. children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired,
  7177. data: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  7178. className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  7179. hideOnLeave: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  7180. rtl: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  7181. onHide: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  7182. onMouseLeave: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  7183. onShow: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  7184. style: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object
  7185. };
  7186. ContextMenu.defaultProps = {
  7187. className: '',
  7188. data: {},
  7189. hideOnLeave: false,
  7190. rtl: false,
  7191. onHide: function onHide() {
  7192. return null;
  7193. },
  7194. onMouseLeave: function onMouseLeave() {
  7195. return null;
  7196. },
  7197. onShow: function onShow() {
  7198. return null;
  7199. },
  7200. style: {}
  7201. };
  7202. /* harmony default export */ __webpack_exports__["default"] = (ContextMenu);
  7203. /***/ }),
  7204. /***/ "../../node_modules/react-contextmenu/es6/ContextMenuTrigger.js":
  7205. /*!******************************************************************************************!*\
  7206. !*** C:/Dev/Babylon/Babylon.js/node_modules/react-contextmenu/es6/ContextMenuTrigger.js ***!
  7207. \******************************************************************************************/
  7208. /*! exports provided: default */
  7209. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7210. "use strict";
  7211. __webpack_require__.r(__webpack_exports__);
  7212. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  7213. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  7214. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  7215. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
  7216. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "../../node_modules/classnames/index.js");
  7217. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
  7218. /* harmony import */ var object_assign__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  7219. /* harmony import */ var object_assign__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(object_assign__WEBPACK_IMPORTED_MODULE_3__);
  7220. /* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./actions */ "../../node_modules/react-contextmenu/es6/actions.js");
  7221. /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helpers */ "../../node_modules/react-contextmenu/es6/helpers.js");
  7222. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  7223. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  7224. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  7225. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  7226. var ContextMenuTrigger = function (_Component) {
  7227. _inherits(ContextMenuTrigger, _Component);
  7228. function ContextMenuTrigger() {
  7229. var _ref;
  7230. var _temp, _this, _ret;
  7231. _classCallCheck(this, ContextMenuTrigger);
  7232. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  7233. args[_key] = arguments[_key];
  7234. }
  7235. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ContextMenuTrigger.__proto__ || Object.getPrototypeOf(ContextMenuTrigger)).call.apply(_ref, [this].concat(args))), _this), _this.touchHandled = false, _this.handleMouseDown = function (event) {
  7236. if (_this.props.holdToDisplay >= 0 && event.button === 0) {
  7237. event.persist();
  7238. event.stopPropagation();
  7239. _this.mouseDownTimeoutId = setTimeout(function () {
  7240. return _this.handleContextClick(event);
  7241. }, _this.props.holdToDisplay);
  7242. }
  7243. Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["callIfExists"])(_this.props.attributes.onMouseDown, event);
  7244. }, _this.handleMouseUp = function (event) {
  7245. if (event.button === 0) {
  7246. clearTimeout(_this.mouseDownTimeoutId);
  7247. }
  7248. Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["callIfExists"])(_this.props.attributes.onMouseUp, event);
  7249. }, _this.handleMouseOut = function (event) {
  7250. if (event.button === 0) {
  7251. clearTimeout(_this.mouseDownTimeoutId);
  7252. }
  7253. Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["callIfExists"])(_this.props.attributes.onMouseOut, event);
  7254. }, _this.handleTouchstart = function (event) {
  7255. _this.touchHandled = false;
  7256. if (_this.props.holdToDisplay >= 0) {
  7257. event.persist();
  7258. event.stopPropagation();
  7259. _this.touchstartTimeoutId = setTimeout(function () {
  7260. _this.handleContextClick(event);
  7261. _this.touchHandled = true;
  7262. }, _this.props.holdToDisplay);
  7263. }
  7264. Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["callIfExists"])(_this.props.attributes.onTouchStart, event);
  7265. }, _this.handleTouchEnd = function (event) {
  7266. if (_this.touchHandled) {
  7267. event.preventDefault();
  7268. }
  7269. clearTimeout(_this.touchstartTimeoutId);
  7270. Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["callIfExists"])(_this.props.attributes.onTouchEnd, event);
  7271. }, _this.handleContextMenu = function (event) {
  7272. _this.handleContextClick(event);
  7273. Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["callIfExists"])(_this.props.attributes.onContextMenu, event);
  7274. }, _this.handleContextClick = function (event) {
  7275. if (_this.props.disable) return;
  7276. event.preventDefault();
  7277. event.stopPropagation();
  7278. var x = event.clientX || event.touches && event.touches[0].pageX;
  7279. var y = event.clientY || event.touches && event.touches[0].pageY;
  7280. if (_this.props.posX) {
  7281. x -= _this.props.posX;
  7282. }
  7283. if (_this.props.posY) {
  7284. y -= _this.props.posY;
  7285. }
  7286. Object(_actions__WEBPACK_IMPORTED_MODULE_4__["hideMenu"])();
  7287. var data = Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["callIfExists"])(_this.props.collect, _this.props);
  7288. var showMenuConfig = {
  7289. position: { x: x, y: y },
  7290. target: _this.elem,
  7291. id: _this.props.id,
  7292. data: data
  7293. };
  7294. if (data && typeof data.then === 'function') {
  7295. // it's promise
  7296. data.then(function (resp) {
  7297. showMenuConfig.data = resp;
  7298. Object(_actions__WEBPACK_IMPORTED_MODULE_4__["showMenu"])(showMenuConfig);
  7299. });
  7300. } else {
  7301. Object(_actions__WEBPACK_IMPORTED_MODULE_4__["showMenu"])(showMenuConfig);
  7302. }
  7303. }, _this.elemRef = function (c) {
  7304. _this.elem = c;
  7305. }, _temp), _possibleConstructorReturn(_this, _ret);
  7306. }
  7307. _createClass(ContextMenuTrigger, [{
  7308. key: 'render',
  7309. value: function render() {
  7310. var _props = this.props,
  7311. renderTag = _props.renderTag,
  7312. attributes = _props.attributes,
  7313. children = _props.children;
  7314. var newAttrs = object_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, attributes, {
  7315. className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(_helpers__WEBPACK_IMPORTED_MODULE_5__["cssClasses"].menuWrapper, attributes.className),
  7316. onContextMenu: this.handleContextMenu,
  7317. onMouseDown: this.handleMouseDown,
  7318. onMouseUp: this.handleMouseUp,
  7319. onTouchStart: this.handleTouchstart,
  7320. onTouchEnd: this.handleTouchEnd,
  7321. onMouseOut: this.handleMouseOut,
  7322. ref: this.elemRef
  7323. });
  7324. return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(renderTag, newAttrs, children);
  7325. }
  7326. }]);
  7327. return ContextMenuTrigger;
  7328. }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);
  7329. ContextMenuTrigger.propTypes = {
  7330. id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,
  7331. children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired,
  7332. attributes: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  7333. collect: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  7334. disable: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  7335. holdToDisplay: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  7336. posX: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  7337. posY: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  7338. renderTag: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func])
  7339. };
  7340. ContextMenuTrigger.defaultProps = {
  7341. attributes: {},
  7342. collect: function collect() {
  7343. return null;
  7344. },
  7345. disable: false,
  7346. holdToDisplay: 1000,
  7347. renderTag: 'div',
  7348. posX: 0,
  7349. posY: 0
  7350. };
  7351. /* harmony default export */ __webpack_exports__["default"] = (ContextMenuTrigger);
  7352. /***/ }),
  7353. /***/ "../../node_modules/react-contextmenu/es6/MenuItem.js":
  7354. /*!********************************************************************************!*\
  7355. !*** C:/Dev/Babylon/Babylon.js/node_modules/react-contextmenu/es6/MenuItem.js ***!
  7356. \********************************************************************************/
  7357. /*! exports provided: default */
  7358. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7359. "use strict";
  7360. __webpack_require__.r(__webpack_exports__);
  7361. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  7362. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  7363. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  7364. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
  7365. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "../../node_modules/classnames/index.js");
  7366. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
  7367. /* harmony import */ var object_assign__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  7368. /* harmony import */ var object_assign__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(object_assign__WEBPACK_IMPORTED_MODULE_3__);
  7369. /* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./actions */ "../../node_modules/react-contextmenu/es6/actions.js");
  7370. /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helpers */ "../../node_modules/react-contextmenu/es6/helpers.js");
  7371. var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  7372. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  7373. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  7374. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  7375. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  7376. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  7377. var MenuItem = function (_Component) {
  7378. _inherits(MenuItem, _Component);
  7379. function MenuItem() {
  7380. var _ref;
  7381. var _temp, _this, _ret;
  7382. _classCallCheck(this, MenuItem);
  7383. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  7384. args[_key] = arguments[_key];
  7385. }
  7386. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = MenuItem.__proto__ || Object.getPrototypeOf(MenuItem)).call.apply(_ref, [this].concat(args))), _this), _this.handleClick = function (event) {
  7387. event.preventDefault();
  7388. if (_this.props.disabled || _this.props.divider) return;
  7389. Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["callIfExists"])(_this.props.onClick, event, object_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, _this.props.data, _helpers__WEBPACK_IMPORTED_MODULE_5__["store"].data), _helpers__WEBPACK_IMPORTED_MODULE_5__["store"].target);
  7390. if (_this.props.preventClose) return;
  7391. Object(_actions__WEBPACK_IMPORTED_MODULE_4__["hideMenu"])();
  7392. }, _temp), _possibleConstructorReturn(_this, _ret);
  7393. }
  7394. _createClass(MenuItem, [{
  7395. key: 'render',
  7396. value: function render() {
  7397. var _cx,
  7398. _this2 = this;
  7399. var _props = this.props,
  7400. disabled = _props.disabled,
  7401. divider = _props.divider,
  7402. children = _props.children,
  7403. attributes = _props.attributes,
  7404. selected = _props.selected;
  7405. var menuItemClassNames = classnames__WEBPACK_IMPORTED_MODULE_2___default()(_helpers__WEBPACK_IMPORTED_MODULE_5__["cssClasses"].menuItem, attributes.className, (_cx = {}, _defineProperty(_cx, classnames__WEBPACK_IMPORTED_MODULE_2___default()(_helpers__WEBPACK_IMPORTED_MODULE_5__["cssClasses"].menuItemDisabled, attributes.disabledClassName), disabled), _defineProperty(_cx, classnames__WEBPACK_IMPORTED_MODULE_2___default()(_helpers__WEBPACK_IMPORTED_MODULE_5__["cssClasses"].menuItemDivider, attributes.dividerClassName), divider), _defineProperty(_cx, classnames__WEBPACK_IMPORTED_MODULE_2___default()(_helpers__WEBPACK_IMPORTED_MODULE_5__["cssClasses"].menuItemSelected, attributes.selectedClassName), selected), _cx));
  7406. return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
  7407. 'div',
  7408. _extends({}, attributes, { className: menuItemClassNames,
  7409. role: 'menuitem', tabIndex: '-1', 'aria-disabled': disabled ? 'true' : 'false',
  7410. 'aria-orientation': divider ? 'horizontal' : null,
  7411. ref: function ref(_ref2) {
  7412. _this2.ref = _ref2;
  7413. },
  7414. onMouseMove: this.props.onMouseMove, onMouseLeave: this.props.onMouseLeave,
  7415. onTouchEnd: this.handleClick, onClick: this.handleClick }),
  7416. divider ? null : children
  7417. );
  7418. }
  7419. }]);
  7420. return MenuItem;
  7421. }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);
  7422. MenuItem.propTypes = {
  7423. children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  7424. attributes: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  7425. data: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  7426. disabled: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  7427. divider: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  7428. preventClose: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  7429. onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  7430. selected: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  7431. onMouseMove: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  7432. onMouseLeave: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
  7433. };
  7434. MenuItem.defaultProps = {
  7435. disabled: false,
  7436. data: {},
  7437. divider: false,
  7438. attributes: {},
  7439. preventClose: false,
  7440. onClick: function onClick() {
  7441. return null;
  7442. },
  7443. children: null,
  7444. selected: false,
  7445. onMouseMove: function onMouseMove() {
  7446. return null;
  7447. },
  7448. onMouseLeave: function onMouseLeave() {
  7449. return null;
  7450. }
  7451. };
  7452. /* harmony default export */ __webpack_exports__["default"] = (MenuItem);
  7453. /***/ }),
  7454. /***/ "../../node_modules/react-contextmenu/es6/SubMenu.js":
  7455. /*!*******************************************************************************!*\
  7456. !*** C:/Dev/Babylon/Babylon.js/node_modules/react-contextmenu/es6/SubMenu.js ***!
  7457. \*******************************************************************************/
  7458. /*! exports provided: default */
  7459. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7460. "use strict";
  7461. __webpack_require__.r(__webpack_exports__);
  7462. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  7463. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  7464. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  7465. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
  7466. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "../../node_modules/classnames/index.js");
  7467. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
  7468. /* harmony import */ var object_assign__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  7469. /* harmony import */ var object_assign__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(object_assign__WEBPACK_IMPORTED_MODULE_3__);
  7470. /* harmony import */ var _AbstractMenu__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./AbstractMenu */ "../../node_modules/react-contextmenu/es6/AbstractMenu.js");
  7471. /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helpers */ "../../node_modules/react-contextmenu/es6/helpers.js");
  7472. /* harmony import */ var _globalEventListener__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./globalEventListener */ "../../node_modules/react-contextmenu/es6/globalEventListener.js");
  7473. var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  7474. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  7475. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  7476. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  7477. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  7478. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  7479. var SubMenu = function (_AbstractMenu) {
  7480. _inherits(SubMenu, _AbstractMenu);
  7481. function SubMenu(props) {
  7482. _classCallCheck(this, SubMenu);
  7483. var _this = _possibleConstructorReturn(this, (SubMenu.__proto__ || Object.getPrototypeOf(SubMenu)).call(this, props));
  7484. _this.getMenuPosition = function () {
  7485. var _window = window,
  7486. innerWidth = _window.innerWidth,
  7487. innerHeight = _window.innerHeight;
  7488. var rect = _this.subMenu.getBoundingClientRect();
  7489. var position = {};
  7490. if (rect.bottom > innerHeight) {
  7491. position.bottom = 0;
  7492. } else {
  7493. position.top = 0;
  7494. }
  7495. if (rect.right < innerWidth) {
  7496. position.left = '100%';
  7497. } else {
  7498. position.right = '100%';
  7499. }
  7500. return position;
  7501. };
  7502. _this.getRTLMenuPosition = function () {
  7503. var _window2 = window,
  7504. innerHeight = _window2.innerHeight;
  7505. var rect = _this.subMenu.getBoundingClientRect();
  7506. var position = {};
  7507. if (rect.bottom > innerHeight) {
  7508. position.bottom = 0;
  7509. } else {
  7510. position.top = 0;
  7511. }
  7512. if (rect.left < 0) {
  7513. position.left = '100%';
  7514. } else {
  7515. position.right = '100%';
  7516. }
  7517. return position;
  7518. };
  7519. _this.hideMenu = function (e) {
  7520. // avoid closing submenus of a different menu tree
  7521. if (e.detail && e.detail.id && _this.menu && e.detail.id !== _this.menu.id) {
  7522. return;
  7523. }
  7524. if (_this.props.forceOpen) {
  7525. _this.props.forceClose();
  7526. }
  7527. _this.setState({ visible: false, selectedItem: null });
  7528. _this.unregisterHandlers();
  7529. };
  7530. _this.handleClick = function (event) {
  7531. event.preventDefault();
  7532. if (_this.props.disabled) return;
  7533. Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["callIfExists"])(_this.props.onClick, event, object_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, _this.props.data, _helpers__WEBPACK_IMPORTED_MODULE_5__["store"].data), _helpers__WEBPACK_IMPORTED_MODULE_5__["store"].target);
  7534. };
  7535. _this.handleMouseEnter = function () {
  7536. if (_this.closetimer) clearTimeout(_this.closetimer);
  7537. if (_this.props.disabled || _this.state.visible) return;
  7538. _this.opentimer = setTimeout(function () {
  7539. return _this.setState({
  7540. visible: true,
  7541. selectedItem: null
  7542. });
  7543. }, _this.props.hoverDelay);
  7544. };
  7545. _this.handleMouseLeave = function () {
  7546. if (_this.opentimer) clearTimeout(_this.opentimer);
  7547. if (!_this.state.visible) return;
  7548. _this.closetimer = setTimeout(function () {
  7549. return _this.setState({
  7550. visible: false,
  7551. selectedItem: null
  7552. });
  7553. }, _this.props.hoverDelay);
  7554. };
  7555. _this.menuRef = function (c) {
  7556. _this.menu = c;
  7557. };
  7558. _this.subMenuRef = function (c) {
  7559. _this.subMenu = c;
  7560. };
  7561. _this.registerHandlers = function () {
  7562. document.removeEventListener('keydown', _this.props.parentKeyNavigationHandler);
  7563. document.addEventListener('keydown', _this.handleKeyNavigation);
  7564. };
  7565. _this.unregisterHandlers = function (dismounting) {
  7566. document.removeEventListener('keydown', _this.handleKeyNavigation);
  7567. if (!dismounting) {
  7568. document.addEventListener('keydown', _this.props.parentKeyNavigationHandler);
  7569. }
  7570. };
  7571. _this.state = object_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, _this.state, {
  7572. visible: false
  7573. });
  7574. return _this;
  7575. }
  7576. _createClass(SubMenu, [{
  7577. key: 'componentDidMount',
  7578. value: function componentDidMount() {
  7579. this.listenId = _globalEventListener__WEBPACK_IMPORTED_MODULE_6__["default"].register(function () {}, this.hideMenu);
  7580. }
  7581. }, {
  7582. key: 'getSubMenuType',
  7583. value: function getSubMenuType() {
  7584. // eslint-disable-line class-methods-use-this
  7585. return SubMenu;
  7586. }
  7587. }, {
  7588. key: 'shouldComponentUpdate',
  7589. value: function shouldComponentUpdate(nextProps, nextState) {
  7590. this.isVisibilityChange = (this.state.visible !== nextState.visible || this.props.forceOpen !== nextProps.forceOpen) && !(this.state.visible && nextProps.forceOpen) && !(this.props.forceOpen && nextState.visible);
  7591. return true;
  7592. }
  7593. }, {
  7594. key: 'componentDidUpdate',
  7595. value: function componentDidUpdate() {
  7596. var _this2 = this;
  7597. if (!this.isVisibilityChange) return;
  7598. if (this.props.forceOpen || this.state.visible) {
  7599. var wrapper = window.requestAnimationFrame || setTimeout;
  7600. wrapper(function () {
  7601. var styles = _this2.props.rtl ? _this2.getRTLMenuPosition() : _this2.getMenuPosition();
  7602. _this2.subMenu.style.removeProperty('top');
  7603. _this2.subMenu.style.removeProperty('bottom');
  7604. _this2.subMenu.style.removeProperty('left');
  7605. _this2.subMenu.style.removeProperty('right');
  7606. if (Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["hasOwnProp"])(styles, 'top')) _this2.subMenu.style.top = styles.top;
  7607. if (Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["hasOwnProp"])(styles, 'left')) _this2.subMenu.style.left = styles.left;
  7608. if (Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["hasOwnProp"])(styles, 'bottom')) _this2.subMenu.style.bottom = styles.bottom;
  7609. if (Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["hasOwnProp"])(styles, 'right')) _this2.subMenu.style.right = styles.right;
  7610. _this2.subMenu.classList.add(_helpers__WEBPACK_IMPORTED_MODULE_5__["cssClasses"].menuVisible);
  7611. _this2.registerHandlers();
  7612. _this2.setState({ selectedItem: null });
  7613. });
  7614. } else {
  7615. var cleanup = function cleanup() {
  7616. _this2.subMenu.removeEventListener('transitionend', cleanup);
  7617. _this2.subMenu.style.removeProperty('bottom');
  7618. _this2.subMenu.style.removeProperty('right');
  7619. _this2.subMenu.style.top = 0;
  7620. _this2.subMenu.style.left = '100%';
  7621. _this2.unregisterHandlers();
  7622. };
  7623. this.subMenu.addEventListener('transitionend', cleanup);
  7624. this.subMenu.classList.remove(_helpers__WEBPACK_IMPORTED_MODULE_5__["cssClasses"].menuVisible);
  7625. }
  7626. }
  7627. }, {
  7628. key: 'componentWillUnmount',
  7629. value: function componentWillUnmount() {
  7630. if (this.listenId) {
  7631. _globalEventListener__WEBPACK_IMPORTED_MODULE_6__["default"].unregister(this.listenId);
  7632. }
  7633. if (this.opentimer) clearTimeout(this.opentimer);
  7634. if (this.closetimer) clearTimeout(this.closetimer);
  7635. this.unregisterHandlers(true);
  7636. }
  7637. }, {
  7638. key: 'render',
  7639. value: function render() {
  7640. var _cx;
  7641. var _props = this.props,
  7642. children = _props.children,
  7643. attributes = _props.attributes,
  7644. disabled = _props.disabled,
  7645. title = _props.title,
  7646. selected = _props.selected;
  7647. var visible = this.state.visible;
  7648. var menuProps = {
  7649. ref: this.menuRef,
  7650. onMouseEnter: this.handleMouseEnter,
  7651. onMouseLeave: this.handleMouseLeave,
  7652. className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(_helpers__WEBPACK_IMPORTED_MODULE_5__["cssClasses"].menuItem, _helpers__WEBPACK_IMPORTED_MODULE_5__["cssClasses"].subMenu, attributes.listClassName),
  7653. style: {
  7654. position: 'relative'
  7655. }
  7656. };
  7657. var menuItemProps = {
  7658. className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(_helpers__WEBPACK_IMPORTED_MODULE_5__["cssClasses"].menuItem, attributes.className, (_cx = {}, _defineProperty(_cx, classnames__WEBPACK_IMPORTED_MODULE_2___default()(_helpers__WEBPACK_IMPORTED_MODULE_5__["cssClasses"].menuItemDisabled, attributes.disabledClassName), disabled), _defineProperty(_cx, classnames__WEBPACK_IMPORTED_MODULE_2___default()(_helpers__WEBPACK_IMPORTED_MODULE_5__["cssClasses"].menuItemActive, attributes.visibleClassName), visible), _defineProperty(_cx, classnames__WEBPACK_IMPORTED_MODULE_2___default()(_helpers__WEBPACK_IMPORTED_MODULE_5__["cssClasses"].menuItemSelected, attributes.selectedClassName), selected), _cx)),
  7659. onMouseMove: this.props.onMouseMove,
  7660. onMouseOut: this.props.onMouseOut,
  7661. onClick: this.handleClick
  7662. };
  7663. var subMenuProps = {
  7664. ref: this.subMenuRef,
  7665. style: {
  7666. position: 'absolute',
  7667. transition: 'opacity 1ms', // trigger transitionend event
  7668. top: 0,
  7669. left: '100%'
  7670. },
  7671. className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(_helpers__WEBPACK_IMPORTED_MODULE_5__["cssClasses"].menu, this.props.className)
  7672. };
  7673. return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
  7674. 'nav',
  7675. _extends({}, menuProps, { role: 'menuitem', tabIndex: '-1', 'aria-haspopup': 'true' }),
  7676. react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
  7677. 'div',
  7678. _extends({}, attributes, menuItemProps),
  7679. title
  7680. ),
  7681. react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
  7682. 'nav',
  7683. _extends({}, subMenuProps, { role: 'menu', tabIndex: '-1' }),
  7684. this.renderChildren(children)
  7685. )
  7686. );
  7687. }
  7688. }]);
  7689. return SubMenu;
  7690. }(_AbstractMenu__WEBPACK_IMPORTED_MODULE_4__["default"]);
  7691. SubMenu.propTypes = {
  7692. children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired,
  7693. attributes: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  7694. title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired,
  7695. className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  7696. disabled: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  7697. hoverDelay: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  7698. rtl: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  7699. selected: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  7700. onMouseMove: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  7701. onMouseOut: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  7702. forceOpen: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  7703. forceClose: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  7704. parentKeyNavigationHandler: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
  7705. };
  7706. SubMenu.defaultProps = {
  7707. disabled: false,
  7708. hoverDelay: 500,
  7709. attributes: {},
  7710. className: '',
  7711. rtl: false,
  7712. selected: false,
  7713. onMouseMove: function onMouseMove() {
  7714. return null;
  7715. },
  7716. onMouseOut: function onMouseOut() {
  7717. return null;
  7718. },
  7719. forceOpen: false,
  7720. forceClose: function forceClose() {
  7721. return null;
  7722. },
  7723. parentKeyNavigationHandler: function parentKeyNavigationHandler() {
  7724. return null;
  7725. }
  7726. };
  7727. /* harmony default export */ __webpack_exports__["default"] = (SubMenu);
  7728. /***/ }),
  7729. /***/ "../../node_modules/react-contextmenu/es6/actions.js":
  7730. /*!*******************************************************************************!*\
  7731. !*** C:/Dev/Babylon/Babylon.js/node_modules/react-contextmenu/es6/actions.js ***!
  7732. \*******************************************************************************/
  7733. /*! exports provided: MENU_SHOW, MENU_HIDE, dispatchGlobalEvent, showMenu, hideMenu */
  7734. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7735. "use strict";
  7736. __webpack_require__.r(__webpack_exports__);
  7737. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MENU_SHOW", function() { return MENU_SHOW; });
  7738. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MENU_HIDE", function() { return MENU_HIDE; });
  7739. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dispatchGlobalEvent", function() { return dispatchGlobalEvent; });
  7740. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "showMenu", function() { return showMenu; });
  7741. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hideMenu", function() { return hideMenu; });
  7742. /* harmony import */ var object_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  7743. /* harmony import */ var object_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(object_assign__WEBPACK_IMPORTED_MODULE_0__);
  7744. /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../node_modules/react-contextmenu/es6/helpers.js");
  7745. var MENU_SHOW = 'REACT_CONTEXTMENU_SHOW';
  7746. var MENU_HIDE = 'REACT_CONTEXTMENU_HIDE';
  7747. function dispatchGlobalEvent(eventName, opts) {
  7748. var target = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : window;
  7749. // Compatibale with IE
  7750. // @see http://stackoverflow.com/questions/26596123/internet-explorer-9-10-11-event-constructor-doesnt-work
  7751. var event = void 0;
  7752. if (typeof window.CustomEvent === 'function') {
  7753. event = new window.CustomEvent(eventName, { detail: opts });
  7754. } else {
  7755. event = document.createEvent('CustomEvent');
  7756. event.initCustomEvent(eventName, false, true, opts);
  7757. }
  7758. if (target) {
  7759. target.dispatchEvent(event);
  7760. object_assign__WEBPACK_IMPORTED_MODULE_0___default()(_helpers__WEBPACK_IMPORTED_MODULE_1__["store"], opts);
  7761. }
  7762. }
  7763. function showMenu() {
  7764. var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  7765. var target = arguments[1];
  7766. dispatchGlobalEvent(MENU_SHOW, object_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, opts, { type: MENU_SHOW }), target);
  7767. }
  7768. function hideMenu() {
  7769. var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  7770. var target = arguments[1];
  7771. dispatchGlobalEvent(MENU_HIDE, object_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, opts, { type: MENU_HIDE }), target);
  7772. }
  7773. /***/ }),
  7774. /***/ "../../node_modules/react-contextmenu/es6/connectMenu.js":
  7775. /*!***********************************************************************************!*\
  7776. !*** C:/Dev/Babylon/Babylon.js/node_modules/react-contextmenu/es6/connectMenu.js ***!
  7777. \***********************************************************************************/
  7778. /*! exports provided: default */
  7779. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7780. "use strict";
  7781. __webpack_require__.r(__webpack_exports__);
  7782. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  7783. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  7784. /* harmony import */ var _ContextMenuTrigger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ContextMenuTrigger */ "../../node_modules/react-contextmenu/es6/ContextMenuTrigger.js");
  7785. /* harmony import */ var _globalEventListener__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./globalEventListener */ "../../node_modules/react-contextmenu/es6/globalEventListener.js");
  7786. var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  7787. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  7788. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  7789. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  7790. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  7791. function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
  7792. // collect ContextMenuTrigger's expected props to NOT pass them on as part of the context
  7793. var ignoredTriggerProps = [].concat(_toConsumableArray(Object.keys(_ContextMenuTrigger__WEBPACK_IMPORTED_MODULE_1__["default"].propTypes)), ['children']);
  7794. // expect the id of the menu to be responsible for as outer parameter
  7795. /* harmony default export */ __webpack_exports__["default"] = (function (menuId) {
  7796. // expect menu component to connect as inner parameter
  7797. // <Child/> is presumably a wrapper of <ContextMenu/>
  7798. return function (Child) {
  7799. // return wrapper for <Child/> that forwards the ContextMenuTrigger's additional props
  7800. return function (_Component) {
  7801. _inherits(ConnectMenu, _Component);
  7802. function ConnectMenu(props) {
  7803. _classCallCheck(this, ConnectMenu);
  7804. var _this = _possibleConstructorReturn(this, (ConnectMenu.__proto__ || Object.getPrototypeOf(ConnectMenu)).call(this, props));
  7805. _this.handleShow = function (e) {
  7806. if (e.detail.id !== menuId) return;
  7807. // the onShow event's detail.data object holds all ContextMenuTrigger props
  7808. var data = e.detail.data;
  7809. var filteredData = {};
  7810. for (var key in data) {
  7811. // exclude props the ContextMenuTrigger is expecting itself
  7812. if (!ignoredTriggerProps.includes(key)) {
  7813. filteredData[key] = data[key];
  7814. }
  7815. }
  7816. _this.setState({ trigger: filteredData });
  7817. };
  7818. _this.handleHide = function () {
  7819. _this.setState({ trigger: null });
  7820. };
  7821. _this.state = { trigger: null };
  7822. return _this;
  7823. }
  7824. _createClass(ConnectMenu, [{
  7825. key: 'componentDidMount',
  7826. value: function componentDidMount() {
  7827. this.listenId = _globalEventListener__WEBPACK_IMPORTED_MODULE_2__["default"].register(this.handleShow, this.handleHide);
  7828. }
  7829. }, {
  7830. key: 'componentWillUnmount',
  7831. value: function componentWillUnmount() {
  7832. if (this.listenId) {
  7833. _globalEventListener__WEBPACK_IMPORTED_MODULE_2__["default"].unregister(this.listenId);
  7834. }
  7835. }
  7836. }, {
  7837. key: 'render',
  7838. value: function render() {
  7839. return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(Child, _extends({}, this.props, { id: menuId, trigger: this.state.trigger }));
  7840. }
  7841. }]);
  7842. return ConnectMenu;
  7843. }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);
  7844. };
  7845. });
  7846. /***/ }),
  7847. /***/ "../../node_modules/react-contextmenu/es6/globalEventListener.js":
  7848. /*!*******************************************************************************************!*\
  7849. !*** C:/Dev/Babylon/Babylon.js/node_modules/react-contextmenu/es6/globalEventListener.js ***!
  7850. \*******************************************************************************************/
  7851. /*! exports provided: default */
  7852. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7853. "use strict";
  7854. __webpack_require__.r(__webpack_exports__);
  7855. /* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./actions */ "../../node_modules/react-contextmenu/es6/actions.js");
  7856. /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../node_modules/react-contextmenu/es6/helpers.js");
  7857. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  7858. var GlobalEventListener = function GlobalEventListener() {
  7859. var _this = this;
  7860. _classCallCheck(this, GlobalEventListener);
  7861. this.handleShowEvent = function (event) {
  7862. for (var id in _this.callbacks) {
  7863. if (Object(_helpers__WEBPACK_IMPORTED_MODULE_1__["hasOwnProp"])(_this.callbacks, id)) _this.callbacks[id].show(event);
  7864. }
  7865. };
  7866. this.handleHideEvent = function (event) {
  7867. for (var id in _this.callbacks) {
  7868. if (Object(_helpers__WEBPACK_IMPORTED_MODULE_1__["hasOwnProp"])(_this.callbacks, id)) _this.callbacks[id].hide(event);
  7869. }
  7870. };
  7871. this.register = function (showCallback, hideCallback) {
  7872. var id = Object(_helpers__WEBPACK_IMPORTED_MODULE_1__["uniqueId"])();
  7873. _this.callbacks[id] = {
  7874. show: showCallback,
  7875. hide: hideCallback
  7876. };
  7877. return id;
  7878. };
  7879. this.unregister = function (id) {
  7880. if (id && _this.callbacks[id]) {
  7881. delete _this.callbacks[id];
  7882. }
  7883. };
  7884. this.callbacks = {};
  7885. if (_helpers__WEBPACK_IMPORTED_MODULE_1__["canUseDOM"]) {
  7886. window.addEventListener(_actions__WEBPACK_IMPORTED_MODULE_0__["MENU_SHOW"], this.handleShowEvent);
  7887. window.addEventListener(_actions__WEBPACK_IMPORTED_MODULE_0__["MENU_HIDE"], this.handleHideEvent);
  7888. }
  7889. };
  7890. /* harmony default export */ __webpack_exports__["default"] = (new GlobalEventListener());
  7891. /***/ }),
  7892. /***/ "../../node_modules/react-contextmenu/es6/helpers.js":
  7893. /*!*******************************************************************************!*\
  7894. !*** C:/Dev/Babylon/Babylon.js/node_modules/react-contextmenu/es6/helpers.js ***!
  7895. \*******************************************************************************/
  7896. /*! exports provided: callIfExists, hasOwnProp, uniqueId, cssClasses, store, canUseDOM */
  7897. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7898. "use strict";
  7899. __webpack_require__.r(__webpack_exports__);
  7900. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "callIfExists", function() { return callIfExists; });
  7901. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasOwnProp", function() { return hasOwnProp; });
  7902. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uniqueId", function() { return uniqueId; });
  7903. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cssClasses", function() { return cssClasses; });
  7904. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "store", function() { return store; });
  7905. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "canUseDOM", function() { return canUseDOM; });
  7906. function callIfExists(func) {
  7907. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  7908. args[_key - 1] = arguments[_key];
  7909. }
  7910. return typeof func === 'function' && func.apply(undefined, args);
  7911. }
  7912. function hasOwnProp(obj, prop) {
  7913. return Object.prototype.hasOwnProperty.call(obj, prop);
  7914. }
  7915. function uniqueId() {
  7916. return Math.random().toString(36).substring(7);
  7917. }
  7918. var cssClasses = {
  7919. menu: 'react-contextmenu',
  7920. menuVisible: 'react-contextmenu--visible',
  7921. menuWrapper: 'react-contextmenu-wrapper',
  7922. menuItem: 'react-contextmenu-item',
  7923. menuItemActive: 'react-contextmenu-item--active',
  7924. menuItemDisabled: 'react-contextmenu-item--disabled',
  7925. menuItemDivider: 'react-contextmenu-item--divider',
  7926. menuItemSelected: 'react-contextmenu-item--selected',
  7927. subMenu: 'react-contextmenu-submenu'
  7928. };
  7929. var store = {};
  7930. var canUseDOM = Boolean(typeof window !== 'undefined' && window.document && window.document.createElement);
  7931. /***/ }),
  7932. /***/ "../../node_modules/react-contextmenu/es6/index.js":
  7933. /*!*****************************************************************************!*\
  7934. !*** C:/Dev/Babylon/Babylon.js/node_modules/react-contextmenu/es6/index.js ***!
  7935. \*****************************************************************************/
  7936. /*! exports provided: ContextMenu, ContextMenuTrigger, MenuItem, SubMenu, connectMenu, hideMenu, showMenu */
  7937. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7938. "use strict";
  7939. __webpack_require__.r(__webpack_exports__);
  7940. /* harmony import */ var _ContextMenu__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ContextMenu */ "../../node_modules/react-contextmenu/es6/ContextMenu.js");
  7941. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContextMenu", function() { return _ContextMenu__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  7942. /* harmony import */ var _ContextMenuTrigger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ContextMenuTrigger */ "../../node_modules/react-contextmenu/es6/ContextMenuTrigger.js");
  7943. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContextMenuTrigger", function() { return _ContextMenuTrigger__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  7944. /* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./MenuItem */ "../../node_modules/react-contextmenu/es6/MenuItem.js");
  7945. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MenuItem", function() { return _MenuItem__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  7946. /* harmony import */ var _SubMenu__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SubMenu */ "../../node_modules/react-contextmenu/es6/SubMenu.js");
  7947. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubMenu", function() { return _SubMenu__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  7948. /* harmony import */ var _connectMenu__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./connectMenu */ "../../node_modules/react-contextmenu/es6/connectMenu.js");
  7949. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "connectMenu", function() { return _connectMenu__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  7950. /* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./actions */ "../../node_modules/react-contextmenu/es6/actions.js");
  7951. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hideMenu", function() { return _actions__WEBPACK_IMPORTED_MODULE_5__["hideMenu"]; });
  7952. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "showMenu", function() { return _actions__WEBPACK_IMPORTED_MODULE_5__["showMenu"]; });
  7953. /***/ }),
  7954. /***/ "../../node_modules/react-dom/cjs/react-dom.development.js":
  7955. /*!*************************************************************************************!*\
  7956. !*** C:/Dev/Babylon/Babylon.js/node_modules/react-dom/cjs/react-dom.development.js ***!
  7957. \*************************************************************************************/
  7958. /*! no static exports found */
  7959. /***/ (function(module, exports, __webpack_require__) {
  7960. "use strict";
  7961. /** @license React v16.9.0
  7962. * react-dom.development.js
  7963. *
  7964. * Copyright (c) Facebook, Inc. and its affiliates.
  7965. *
  7966. * This source code is licensed under the MIT license found in the
  7967. * LICENSE file in the root directory of this source tree.
  7968. */
  7969. if (true) {
  7970. (function() {
  7971. 'use strict';
  7972. var React = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  7973. var _assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  7974. var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  7975. var Scheduler = __webpack_require__(/*! scheduler */ "../../node_modules/scheduler/index.js");
  7976. var tracing = __webpack_require__(/*! scheduler/tracing */ "../../node_modules/scheduler/tracing.js");
  7977. // Do not require this module directly! Use normal `invariant` calls with
  7978. // template literal strings. The messages will be converted to ReactError during
  7979. // build, and in production they will be minified.
  7980. // Do not require this module directly! Use normal `invariant` calls with
  7981. // template literal strings. The messages will be converted to ReactError during
  7982. // build, and in production they will be minified.
  7983. function ReactError(error) {
  7984. error.name = 'Invariant Violation';
  7985. return error;
  7986. }
  7987. /**
  7988. * Use invariant() to assert state which your program assumes to be true.
  7989. *
  7990. * Provide sprintf-style format (only %s is supported) and arguments
  7991. * to provide information about what broke and what you were
  7992. * expecting.
  7993. *
  7994. * The invariant message will be stripped in production, but the invariant
  7995. * will remain to ensure logic does not differ in production.
  7996. */
  7997. (function () {
  7998. if (!React) {
  7999. {
  8000. throw ReactError(Error('ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.'));
  8001. }
  8002. }
  8003. })();
  8004. /**
  8005. * Injectable ordering of event plugins.
  8006. */
  8007. var eventPluginOrder = null;
  8008. /**
  8009. * Injectable mapping from names to event plugin modules.
  8010. */
  8011. var namesToPlugins = {};
  8012. /**
  8013. * Recomputes the plugin list using the injected plugins and plugin ordering.
  8014. *
  8015. * @private
  8016. */
  8017. function recomputePluginOrdering() {
  8018. if (!eventPluginOrder) {
  8019. // Wait until an `eventPluginOrder` is injected.
  8020. return;
  8021. }
  8022. for (var pluginName in namesToPlugins) {
  8023. var pluginModule = namesToPlugins[pluginName];
  8024. var pluginIndex = eventPluginOrder.indexOf(pluginName);
  8025. (function () {
  8026. if (!(pluginIndex > -1)) {
  8027. {
  8028. throw ReactError(Error('EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `' + pluginName + '`.'));
  8029. }
  8030. }
  8031. })();
  8032. if (plugins[pluginIndex]) {
  8033. continue;
  8034. }
  8035. (function () {
  8036. if (!pluginModule.extractEvents) {
  8037. {
  8038. throw ReactError(Error('EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `' + pluginName + '` does not.'));
  8039. }
  8040. }
  8041. })();
  8042. plugins[pluginIndex] = pluginModule;
  8043. var publishedEvents = pluginModule.eventTypes;
  8044. for (var eventName in publishedEvents) {
  8045. (function () {
  8046. if (!publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName)) {
  8047. {
  8048. throw ReactError(Error('EventPluginRegistry: Failed to publish event `' + eventName + '` for plugin `' + pluginName + '`.'));
  8049. }
  8050. }
  8051. })();
  8052. }
  8053. }
  8054. }
  8055. /**
  8056. * Publishes an event so that it can be dispatched by the supplied plugin.
  8057. *
  8058. * @param {object} dispatchConfig Dispatch configuration for the event.
  8059. * @param {object} PluginModule Plugin publishing the event.
  8060. * @return {boolean} True if the event was successfully published.
  8061. * @private
  8062. */
  8063. function publishEventForPlugin(dispatchConfig, pluginModule, eventName) {
  8064. (function () {
  8065. if (!!eventNameDispatchConfigs.hasOwnProperty(eventName)) {
  8066. {
  8067. throw ReactError(Error('EventPluginHub: More than one plugin attempted to publish the same event name, `' + eventName + '`.'));
  8068. }
  8069. }
  8070. })();
  8071. eventNameDispatchConfigs[eventName] = dispatchConfig;
  8072. var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
  8073. if (phasedRegistrationNames) {
  8074. for (var phaseName in phasedRegistrationNames) {
  8075. if (phasedRegistrationNames.hasOwnProperty(phaseName)) {
  8076. var phasedRegistrationName = phasedRegistrationNames[phaseName];
  8077. publishRegistrationName(phasedRegistrationName, pluginModule, eventName);
  8078. }
  8079. }
  8080. return true;
  8081. } else if (dispatchConfig.registrationName) {
  8082. publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName);
  8083. return true;
  8084. }
  8085. return false;
  8086. }
  8087. /**
  8088. * Publishes a registration name that is used to identify dispatched events.
  8089. *
  8090. * @param {string} registrationName Registration name to add.
  8091. * @param {object} PluginModule Plugin publishing the event.
  8092. * @private
  8093. */
  8094. function publishRegistrationName(registrationName, pluginModule, eventName) {
  8095. (function () {
  8096. if (!!registrationNameModules[registrationName]) {
  8097. {
  8098. throw ReactError(Error('EventPluginHub: More than one plugin attempted to publish the same registration name, `' + registrationName + '`.'));
  8099. }
  8100. }
  8101. })();
  8102. registrationNameModules[registrationName] = pluginModule;
  8103. registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies;
  8104. {
  8105. var lowerCasedName = registrationName.toLowerCase();
  8106. possibleRegistrationNames[lowerCasedName] = registrationName;
  8107. if (registrationName === 'onDoubleClick') {
  8108. possibleRegistrationNames.ondblclick = registrationName;
  8109. }
  8110. }
  8111. }
  8112. /**
  8113. * Registers plugins so that they can extract and dispatch events.
  8114. *
  8115. * @see {EventPluginHub}
  8116. */
  8117. /**
  8118. * Ordered list of injected plugins.
  8119. */
  8120. var plugins = [];
  8121. /**
  8122. * Mapping from event name to dispatch config
  8123. */
  8124. var eventNameDispatchConfigs = {};
  8125. /**
  8126. * Mapping from registration name to plugin module
  8127. */
  8128. var registrationNameModules = {};
  8129. /**
  8130. * Mapping from registration name to event name
  8131. */
  8132. var registrationNameDependencies = {};
  8133. /**
  8134. * Mapping from lowercase registration names to the properly cased version,
  8135. * used to warn in the case of missing event handlers. Available
  8136. * only in true.
  8137. * @type {Object}
  8138. */
  8139. var possibleRegistrationNames = {};
  8140. // Trust the developer to only use possibleRegistrationNames in true
  8141. /**
  8142. * Injects an ordering of plugins (by plugin name). This allows the ordering
  8143. * to be decoupled from injection of the actual plugins so that ordering is
  8144. * always deterministic regardless of packaging, on-the-fly injection, etc.
  8145. *
  8146. * @param {array} InjectedEventPluginOrder
  8147. * @internal
  8148. * @see {EventPluginHub.injection.injectEventPluginOrder}
  8149. */
  8150. function injectEventPluginOrder(injectedEventPluginOrder) {
  8151. (function () {
  8152. if (!!eventPluginOrder) {
  8153. {
  8154. throw ReactError(Error('EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.'));
  8155. }
  8156. }
  8157. })();
  8158. // Clone the ordering so it cannot be dynamically mutated.
  8159. eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);
  8160. recomputePluginOrdering();
  8161. }
  8162. /**
  8163. * Injects plugins to be used by `EventPluginHub`. The plugin names must be
  8164. * in the ordering injected by `injectEventPluginOrder`.
  8165. *
  8166. * Plugins can be injected as part of page initialization or on-the-fly.
  8167. *
  8168. * @param {object} injectedNamesToPlugins Map from names to plugin modules.
  8169. * @internal
  8170. * @see {EventPluginHub.injection.injectEventPluginsByName}
  8171. */
  8172. function injectEventPluginsByName(injectedNamesToPlugins) {
  8173. var isOrderingDirty = false;
  8174. for (var pluginName in injectedNamesToPlugins) {
  8175. if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) {
  8176. continue;
  8177. }
  8178. var pluginModule = injectedNamesToPlugins[pluginName];
  8179. if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) {
  8180. (function () {
  8181. if (!!namesToPlugins[pluginName]) {
  8182. {
  8183. throw ReactError(Error('EventPluginRegistry: Cannot inject two different event plugins using the same name, `' + pluginName + '`.'));
  8184. }
  8185. }
  8186. })();
  8187. namesToPlugins[pluginName] = pluginModule;
  8188. isOrderingDirty = true;
  8189. }
  8190. }
  8191. if (isOrderingDirty) {
  8192. recomputePluginOrdering();
  8193. }
  8194. }
  8195. var invokeGuardedCallbackImpl = function (name, func, context, a, b, c, d, e, f) {
  8196. var funcArgs = Array.prototype.slice.call(arguments, 3);
  8197. try {
  8198. func.apply(context, funcArgs);
  8199. } catch (error) {
  8200. this.onError(error);
  8201. }
  8202. };
  8203. {
  8204. // In DEV mode, we swap out invokeGuardedCallback for a special version
  8205. // that plays more nicely with the browser's DevTools. The idea is to preserve
  8206. // "Pause on exceptions" behavior. Because React wraps all user-provided
  8207. // functions in invokeGuardedCallback, and the production version of
  8208. // invokeGuardedCallback uses a try-catch, all user exceptions are treated
  8209. // like caught exceptions, and the DevTools won't pause unless the developer
  8210. // takes the extra step of enabling pause on caught exceptions. This is
  8211. // unintuitive, though, because even though React has caught the error, from
  8212. // the developer's perspective, the error is uncaught.
  8213. //
  8214. // To preserve the expected "Pause on exceptions" behavior, we don't use a
  8215. // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake
  8216. // DOM node, and call the user-provided callback from inside an event handler
  8217. // for that fake event. If the callback throws, the error is "captured" using
  8218. // a global event handler. But because the error happens in a different
  8219. // event loop context, it does not interrupt the normal program flow.
  8220. // Effectively, this gives us try-catch behavior without actually using
  8221. // try-catch. Neat!
  8222. // Check that the browser supports the APIs we need to implement our special
  8223. // DEV version of invokeGuardedCallback
  8224. if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {
  8225. var fakeNode = document.createElement('react');
  8226. var invokeGuardedCallbackDev = function (name, func, context, a, b, c, d, e, f) {
  8227. // If document doesn't exist we know for sure we will crash in this method
  8228. // when we call document.createEvent(). However this can cause confusing
  8229. // errors: https://github.com/facebookincubator/create-react-app/issues/3482
  8230. // So we preemptively throw with a better message instead.
  8231. (function () {
  8232. if (!(typeof document !== 'undefined')) {
  8233. {
  8234. throw ReactError(Error('The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.'));
  8235. }
  8236. }
  8237. })();
  8238. var evt = document.createEvent('Event');
  8239. // Keeps track of whether the user-provided callback threw an error. We
  8240. // set this to true at the beginning, then set it to false right after
  8241. // calling the function. If the function errors, `didError` will never be
  8242. // set to false. This strategy works even if the browser is flaky and
  8243. // fails to call our global error handler, because it doesn't rely on
  8244. // the error event at all.
  8245. var didError = true;
  8246. // Keeps track of the value of window.event so that we can reset it
  8247. // during the callback to let user code access window.event in the
  8248. // browsers that support it.
  8249. var windowEvent = window.event;
  8250. // Keeps track of the descriptor of window.event to restore it after event
  8251. // dispatching: https://github.com/facebook/react/issues/13688
  8252. var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event');
  8253. // Create an event handler for our fake event. We will synchronously
  8254. // dispatch our fake event using `dispatchEvent`. Inside the handler, we
  8255. // call the user-provided callback.
  8256. var funcArgs = Array.prototype.slice.call(arguments, 3);
  8257. function callCallback() {
  8258. // We immediately remove the callback from event listeners so that
  8259. // nested `invokeGuardedCallback` calls do not clash. Otherwise, a
  8260. // nested call would trigger the fake event handlers of any call higher
  8261. // in the stack.
  8262. fakeNode.removeEventListener(evtType, callCallback, false);
  8263. // We check for window.hasOwnProperty('event') to prevent the
  8264. // window.event assignment in both IE <= 10 as they throw an error
  8265. // "Member not found" in strict mode, and in Firefox which does not
  8266. // support window.event.
  8267. if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) {
  8268. window.event = windowEvent;
  8269. }
  8270. func.apply(context, funcArgs);
  8271. didError = false;
  8272. }
  8273. // Create a global error event handler. We use this to capture the value
  8274. // that was thrown. It's possible that this error handler will fire more
  8275. // than once; for example, if non-React code also calls `dispatchEvent`
  8276. // and a handler for that event throws. We should be resilient to most of
  8277. // those cases. Even if our error event handler fires more than once, the
  8278. // last error event is always used. If the callback actually does error,
  8279. // we know that the last error event is the correct one, because it's not
  8280. // possible for anything else to have happened in between our callback
  8281. // erroring and the code that follows the `dispatchEvent` call below. If
  8282. // the callback doesn't error, but the error event was fired, we know to
  8283. // ignore it because `didError` will be false, as described above.
  8284. var error = void 0;
  8285. // Use this to track whether the error event is ever called.
  8286. var didSetError = false;
  8287. var isCrossOriginError = false;
  8288. function handleWindowError(event) {
  8289. error = event.error;
  8290. didSetError = true;
  8291. if (error === null && event.colno === 0 && event.lineno === 0) {
  8292. isCrossOriginError = true;
  8293. }
  8294. if (event.defaultPrevented) {
  8295. // Some other error handler has prevented default.
  8296. // Browsers silence the error report if this happens.
  8297. // We'll remember this to later decide whether to log it or not.
  8298. if (error != null && typeof error === 'object') {
  8299. try {
  8300. error._suppressLogging = true;
  8301. } catch (inner) {
  8302. // Ignore.
  8303. }
  8304. }
  8305. }
  8306. }
  8307. // Create a fake event type.
  8308. var evtType = 'react-' + (name ? name : 'invokeguardedcallback');
  8309. // Attach our event handlers
  8310. window.addEventListener('error', handleWindowError);
  8311. fakeNode.addEventListener(evtType, callCallback, false);
  8312. // Synchronously dispatch our fake event. If the user-provided function
  8313. // errors, it will trigger our global error handler.
  8314. evt.initEvent(evtType, false, false);
  8315. fakeNode.dispatchEvent(evt);
  8316. if (windowEventDescriptor) {
  8317. Object.defineProperty(window, 'event', windowEventDescriptor);
  8318. }
  8319. if (didError) {
  8320. if (!didSetError) {
  8321. // The callback errored, but the error event never fired.
  8322. error = new Error('An error was thrown inside one of your components, but React ' + "doesn't know what it was. This is likely due to browser " + 'flakiness. React does its best to preserve the "Pause on ' + 'exceptions" behavior of the DevTools, which requires some ' + "DEV-mode only tricks. It's possible that these don't work in " + 'your browser. Try triggering the error in production mode, ' + 'or switching to a modern browser. If you suspect that this is ' + 'actually an issue with React, please file an issue.');
  8323. } else if (isCrossOriginError) {
  8324. error = new Error("A cross-origin error was thrown. React doesn't have access to " + 'the actual error object in development. ' + 'See https://fb.me/react-crossorigin-error for more information.');
  8325. }
  8326. this.onError(error);
  8327. }
  8328. // Remove our event listeners
  8329. window.removeEventListener('error', handleWindowError);
  8330. };
  8331. invokeGuardedCallbackImpl = invokeGuardedCallbackDev;
  8332. }
  8333. }
  8334. var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl;
  8335. // Used by Fiber to simulate a try-catch.
  8336. var hasError = false;
  8337. var caughtError = null;
  8338. // Used by event system to capture/rethrow the first error.
  8339. var hasRethrowError = false;
  8340. var rethrowError = null;
  8341. var reporter = {
  8342. onError: function (error) {
  8343. hasError = true;
  8344. caughtError = error;
  8345. }
  8346. };
  8347. /**
  8348. * Call a function while guarding against errors that happens within it.
  8349. * Returns an error if it throws, otherwise null.
  8350. *
  8351. * In production, this is implemented using a try-catch. The reason we don't
  8352. * use a try-catch directly is so that we can swap out a different
  8353. * implementation in DEV mode.
  8354. *
  8355. * @param {String} name of the guard to use for logging or debugging
  8356. * @param {Function} func The function to invoke
  8357. * @param {*} context The context to use when calling the function
  8358. * @param {...*} args Arguments for function
  8359. */
  8360. function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {
  8361. hasError = false;
  8362. caughtError = null;
  8363. invokeGuardedCallbackImpl$1.apply(reporter, arguments);
  8364. }
  8365. /**
  8366. * Same as invokeGuardedCallback, but instead of returning an error, it stores
  8367. * it in a global so it can be rethrown by `rethrowCaughtError` later.
  8368. * TODO: See if caughtError and rethrowError can be unified.
  8369. *
  8370. * @param {String} name of the guard to use for logging or debugging
  8371. * @param {Function} func The function to invoke
  8372. * @param {*} context The context to use when calling the function
  8373. * @param {...*} args Arguments for function
  8374. */
  8375. function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) {
  8376. invokeGuardedCallback.apply(this, arguments);
  8377. if (hasError) {
  8378. var error = clearCaughtError();
  8379. if (!hasRethrowError) {
  8380. hasRethrowError = true;
  8381. rethrowError = error;
  8382. }
  8383. }
  8384. }
  8385. /**
  8386. * During execution of guarded functions we will capture the first error which
  8387. * we will rethrow to be handled by the top level error handler.
  8388. */
  8389. function rethrowCaughtError() {
  8390. if (hasRethrowError) {
  8391. var error = rethrowError;
  8392. hasRethrowError = false;
  8393. rethrowError = null;
  8394. throw error;
  8395. }
  8396. }
  8397. function hasCaughtError() {
  8398. return hasError;
  8399. }
  8400. function clearCaughtError() {
  8401. if (hasError) {
  8402. var error = caughtError;
  8403. hasError = false;
  8404. caughtError = null;
  8405. return error;
  8406. } else {
  8407. (function () {
  8408. {
  8409. {
  8410. throw ReactError(Error('clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.'));
  8411. }
  8412. }
  8413. })();
  8414. }
  8415. }
  8416. /**
  8417. * Similar to invariant but only logs a warning if the condition is not met.
  8418. * This can be used to log issues in development environments in critical
  8419. * paths. Removing the logging code for production environments will keep the
  8420. * same logic and follow the same code paths.
  8421. */
  8422. var warningWithoutStack = function () {};
  8423. {
  8424. warningWithoutStack = function (condition, format) {
  8425. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  8426. args[_key - 2] = arguments[_key];
  8427. }
  8428. if (format === undefined) {
  8429. throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
  8430. }
  8431. if (args.length > 8) {
  8432. // Check before the condition to catch violations early.
  8433. throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
  8434. }
  8435. if (condition) {
  8436. return;
  8437. }
  8438. if (typeof console !== 'undefined') {
  8439. var argsWithFormat = args.map(function (item) {
  8440. return '' + item;
  8441. });
  8442. argsWithFormat.unshift('Warning: ' + format);
  8443. // We intentionally don't use spread (or .apply) directly because it
  8444. // breaks IE9: https://github.com/facebook/react/issues/13610
  8445. Function.prototype.apply.call(console.error, console, argsWithFormat);
  8446. }
  8447. try {
  8448. // --- Welcome to debugging React ---
  8449. // This error was thrown as a convenience so that you can use this stack
  8450. // to find the callsite that caused this warning to fire.
  8451. var argIndex = 0;
  8452. var message = 'Warning: ' + format.replace(/%s/g, function () {
  8453. return args[argIndex++];
  8454. });
  8455. throw new Error(message);
  8456. } catch (x) {}
  8457. };
  8458. }
  8459. var warningWithoutStack$1 = warningWithoutStack;
  8460. var getFiberCurrentPropsFromNode = null;
  8461. var getInstanceFromNode = null;
  8462. var getNodeFromInstance = null;
  8463. function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl) {
  8464. getFiberCurrentPropsFromNode = getFiberCurrentPropsFromNodeImpl;
  8465. getInstanceFromNode = getInstanceFromNodeImpl;
  8466. getNodeFromInstance = getNodeFromInstanceImpl;
  8467. {
  8468. !(getNodeFromInstance && getInstanceFromNode) ? warningWithoutStack$1(false, 'EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0;
  8469. }
  8470. }
  8471. var validateEventDispatches = void 0;
  8472. {
  8473. validateEventDispatches = function (event) {
  8474. var dispatchListeners = event._dispatchListeners;
  8475. var dispatchInstances = event._dispatchInstances;
  8476. var listenersIsArr = Array.isArray(dispatchListeners);
  8477. var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0;
  8478. var instancesIsArr = Array.isArray(dispatchInstances);
  8479. var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;
  8480. !(instancesIsArr === listenersIsArr && instancesLen === listenersLen) ? warningWithoutStack$1(false, 'EventPluginUtils: Invalid `event`.') : void 0;
  8481. };
  8482. }
  8483. /**
  8484. * Dispatch the event to the listener.
  8485. * @param {SyntheticEvent} event SyntheticEvent to handle
  8486. * @param {function} listener Application-level callback
  8487. * @param {*} inst Internal component instance
  8488. */
  8489. function executeDispatch(event, listener, inst) {
  8490. var type = event.type || 'unknown-event';
  8491. event.currentTarget = getNodeFromInstance(inst);
  8492. invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);
  8493. event.currentTarget = null;
  8494. }
  8495. /**
  8496. * Standard/simple iteration through an event's collected dispatches.
  8497. */
  8498. function executeDispatchesInOrder(event) {
  8499. var dispatchListeners = event._dispatchListeners;
  8500. var dispatchInstances = event._dispatchInstances;
  8501. {
  8502. validateEventDispatches(event);
  8503. }
  8504. if (Array.isArray(dispatchListeners)) {
  8505. for (var i = 0; i < dispatchListeners.length; i++) {
  8506. if (event.isPropagationStopped()) {
  8507. break;
  8508. }
  8509. // Listeners and Instances are two parallel arrays that are always in sync.
  8510. executeDispatch(event, dispatchListeners[i], dispatchInstances[i]);
  8511. }
  8512. } else if (dispatchListeners) {
  8513. executeDispatch(event, dispatchListeners, dispatchInstances);
  8514. }
  8515. event._dispatchListeners = null;
  8516. event._dispatchInstances = null;
  8517. }
  8518. /**
  8519. * @see executeDispatchesInOrderStopAtTrueImpl
  8520. */
  8521. /**
  8522. * Execution of a "direct" dispatch - there must be at most one dispatch
  8523. * accumulated on the event or it is considered an error. It doesn't really make
  8524. * sense for an event with multiple dispatches (bubbled) to keep track of the
  8525. * return values at each dispatch execution, but it does tend to make sense when
  8526. * dealing with "direct" dispatches.
  8527. *
  8528. * @return {*} The return value of executing the single dispatch.
  8529. */
  8530. /**
  8531. * @param {SyntheticEvent} event
  8532. * @return {boolean} True iff number of dispatches accumulated is greater than 0.
  8533. */
  8534. /**
  8535. * Accumulates items that must not be null or undefined into the first one. This
  8536. * is used to conserve memory by avoiding array allocations, and thus sacrifices
  8537. * API cleanness. Since `current` can be null before being passed in and not
  8538. * null after this function, make sure to assign it back to `current`:
  8539. *
  8540. * `a = accumulateInto(a, b);`
  8541. *
  8542. * This API should be sparingly used. Try `accumulate` for something cleaner.
  8543. *
  8544. * @return {*|array<*>} An accumulation of items.
  8545. */
  8546. function accumulateInto(current, next) {
  8547. (function () {
  8548. if (!(next != null)) {
  8549. {
  8550. throw ReactError(Error('accumulateInto(...): Accumulated items must not be null or undefined.'));
  8551. }
  8552. }
  8553. })();
  8554. if (current == null) {
  8555. return next;
  8556. }
  8557. // Both are not empty. Warning: Never call x.concat(y) when you are not
  8558. // certain that x is an Array (x could be a string with concat method).
  8559. if (Array.isArray(current)) {
  8560. if (Array.isArray(next)) {
  8561. current.push.apply(current, next);
  8562. return current;
  8563. }
  8564. current.push(next);
  8565. return current;
  8566. }
  8567. if (Array.isArray(next)) {
  8568. // A bit too dangerous to mutate `next`.
  8569. return [current].concat(next);
  8570. }
  8571. return [current, next];
  8572. }
  8573. /**
  8574. * @param {array} arr an "accumulation" of items which is either an Array or
  8575. * a single item. Useful when paired with the `accumulate` module. This is a
  8576. * simple utility that allows us to reason about a collection of items, but
  8577. * handling the case when there is exactly one item (and we do not need to
  8578. * allocate an array).
  8579. * @param {function} cb Callback invoked with each element or a collection.
  8580. * @param {?} [scope] Scope used as `this` in a callback.
  8581. */
  8582. function forEachAccumulated(arr, cb, scope) {
  8583. if (Array.isArray(arr)) {
  8584. arr.forEach(cb, scope);
  8585. } else if (arr) {
  8586. cb.call(scope, arr);
  8587. }
  8588. }
  8589. /**
  8590. * Internal queue of events that have accumulated their dispatches and are
  8591. * waiting to have their dispatches executed.
  8592. */
  8593. var eventQueue = null;
  8594. /**
  8595. * Dispatches an event and releases it back into the pool, unless persistent.
  8596. *
  8597. * @param {?object} event Synthetic event to be dispatched.
  8598. * @private
  8599. */
  8600. var executeDispatchesAndRelease = function (event) {
  8601. if (event) {
  8602. executeDispatchesInOrder(event);
  8603. if (!event.isPersistent()) {
  8604. event.constructor.release(event);
  8605. }
  8606. }
  8607. };
  8608. var executeDispatchesAndReleaseTopLevel = function (e) {
  8609. return executeDispatchesAndRelease(e);
  8610. };
  8611. function runEventsInBatch(events) {
  8612. if (events !== null) {
  8613. eventQueue = accumulateInto(eventQueue, events);
  8614. }
  8615. // Set `eventQueue` to null before processing it so that we can tell if more
  8616. // events get enqueued while processing.
  8617. var processingEventQueue = eventQueue;
  8618. eventQueue = null;
  8619. if (!processingEventQueue) {
  8620. return;
  8621. }
  8622. forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);
  8623. (function () {
  8624. if (!!eventQueue) {
  8625. {
  8626. throw ReactError(Error('processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.'));
  8627. }
  8628. }
  8629. })();
  8630. // This would be a good time to rethrow if any of the event handlers threw.
  8631. rethrowCaughtError();
  8632. }
  8633. function isInteractive(tag) {
  8634. return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
  8635. }
  8636. function shouldPreventMouseEvent(name, type, props) {
  8637. switch (name) {
  8638. case 'onClick':
  8639. case 'onClickCapture':
  8640. case 'onDoubleClick':
  8641. case 'onDoubleClickCapture':
  8642. case 'onMouseDown':
  8643. case 'onMouseDownCapture':
  8644. case 'onMouseMove':
  8645. case 'onMouseMoveCapture':
  8646. case 'onMouseUp':
  8647. case 'onMouseUpCapture':
  8648. return !!(props.disabled && isInteractive(type));
  8649. default:
  8650. return false;
  8651. }
  8652. }
  8653. /**
  8654. * This is a unified interface for event plugins to be installed and configured.
  8655. *
  8656. * Event plugins can implement the following properties:
  8657. *
  8658. * `extractEvents` {function(string, DOMEventTarget, string, object): *}
  8659. * Required. When a top-level event is fired, this method is expected to
  8660. * extract synthetic events that will in turn be queued and dispatched.
  8661. *
  8662. * `eventTypes` {object}
  8663. * Optional, plugins that fire events must publish a mapping of registration
  8664. * names that are used to register listeners. Values of this mapping must
  8665. * be objects that contain `registrationName` or `phasedRegistrationNames`.
  8666. *
  8667. * `executeDispatch` {function(object, function, string)}
  8668. * Optional, allows plugins to override how an event gets dispatched. By
  8669. * default, the listener is simply invoked.
  8670. *
  8671. * Each plugin that is injected into `EventsPluginHub` is immediately operable.
  8672. *
  8673. * @public
  8674. */
  8675. /**
  8676. * Methods for injecting dependencies.
  8677. */
  8678. var injection = {
  8679. /**
  8680. * @param {array} InjectedEventPluginOrder
  8681. * @public
  8682. */
  8683. injectEventPluginOrder: injectEventPluginOrder,
  8684. /**
  8685. * @param {object} injectedNamesToPlugins Map from names to plugin modules.
  8686. */
  8687. injectEventPluginsByName: injectEventPluginsByName
  8688. };
  8689. /**
  8690. * @param {object} inst The instance, which is the source of events.
  8691. * @param {string} registrationName Name of listener (e.g. `onClick`).
  8692. * @return {?function} The stored callback.
  8693. */
  8694. function getListener(inst, registrationName) {
  8695. var listener = void 0;
  8696. // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not
  8697. // live here; needs to be moved to a better place soon
  8698. var stateNode = inst.stateNode;
  8699. if (!stateNode) {
  8700. // Work in progress (ex: onload events in incremental mode).
  8701. return null;
  8702. }
  8703. var props = getFiberCurrentPropsFromNode(stateNode);
  8704. if (!props) {
  8705. // Work in progress.
  8706. return null;
  8707. }
  8708. listener = props[registrationName];
  8709. if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
  8710. return null;
  8711. }
  8712. (function () {
  8713. if (!(!listener || typeof listener === 'function')) {
  8714. {
  8715. throw ReactError(Error('Expected `' + registrationName + '` listener to be a function, instead got a value of `' + typeof listener + '` type.'));
  8716. }
  8717. }
  8718. })();
  8719. return listener;
  8720. }
  8721. /**
  8722. * Allows registered plugins an opportunity to extract events from top-level
  8723. * native browser events.
  8724. *
  8725. * @return {*} An accumulation of synthetic events.
  8726. * @internal
  8727. */
  8728. function extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  8729. var events = null;
  8730. for (var i = 0; i < plugins.length; i++) {
  8731. // Not every plugin in the ordering may be loaded at runtime.
  8732. var possiblePlugin = plugins[i];
  8733. if (possiblePlugin) {
  8734. var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  8735. if (extractedEvents) {
  8736. events = accumulateInto(events, extractedEvents);
  8737. }
  8738. }
  8739. }
  8740. return events;
  8741. }
  8742. function runExtractedPluginEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  8743. var events = extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  8744. runEventsInBatch(events);
  8745. }
  8746. var FunctionComponent = 0;
  8747. var ClassComponent = 1;
  8748. var IndeterminateComponent = 2; // Before we know whether it is function or class
  8749. var HostRoot = 3; // Root of a host tree. Could be nested inside another node.
  8750. var HostPortal = 4; // A subtree. Could be an entry point to a different renderer.
  8751. var HostComponent = 5;
  8752. var HostText = 6;
  8753. var Fragment = 7;
  8754. var Mode = 8;
  8755. var ContextConsumer = 9;
  8756. var ContextProvider = 10;
  8757. var ForwardRef = 11;
  8758. var Profiler = 12;
  8759. var SuspenseComponent = 13;
  8760. var MemoComponent = 14;
  8761. var SimpleMemoComponent = 15;
  8762. var LazyComponent = 16;
  8763. var IncompleteClassComponent = 17;
  8764. var DehydratedSuspenseComponent = 18;
  8765. var SuspenseListComponent = 19;
  8766. var FundamentalComponent = 20;
  8767. var randomKey = Math.random().toString(36).slice(2);
  8768. var internalInstanceKey = '__reactInternalInstance$' + randomKey;
  8769. var internalEventHandlersKey = '__reactEventHandlers$' + randomKey;
  8770. function precacheFiberNode(hostInst, node) {
  8771. node[internalInstanceKey] = hostInst;
  8772. }
  8773. /**
  8774. * Given a DOM node, return the closest ReactDOMComponent or
  8775. * ReactDOMTextComponent instance ancestor.
  8776. */
  8777. function getClosestInstanceFromNode(node) {
  8778. if (node[internalInstanceKey]) {
  8779. return node[internalInstanceKey];
  8780. }
  8781. while (!node[internalInstanceKey]) {
  8782. if (node.parentNode) {
  8783. node = node.parentNode;
  8784. } else {
  8785. // Top of the tree. This node must not be part of a React tree (or is
  8786. // unmounted, potentially).
  8787. return null;
  8788. }
  8789. }
  8790. var inst = node[internalInstanceKey];
  8791. if (inst.tag === HostComponent || inst.tag === HostText) {
  8792. // In Fiber, this will always be the deepest root.
  8793. return inst;
  8794. }
  8795. return null;
  8796. }
  8797. /**
  8798. * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent
  8799. * instance, or null if the node was not rendered by this React.
  8800. */
  8801. function getInstanceFromNode$1(node) {
  8802. var inst = node[internalInstanceKey];
  8803. if (inst) {
  8804. if (inst.tag === HostComponent || inst.tag === HostText) {
  8805. return inst;
  8806. } else {
  8807. return null;
  8808. }
  8809. }
  8810. return null;
  8811. }
  8812. /**
  8813. * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding
  8814. * DOM node.
  8815. */
  8816. function getNodeFromInstance$1(inst) {
  8817. if (inst.tag === HostComponent || inst.tag === HostText) {
  8818. // In Fiber this, is just the state node right now. We assume it will be
  8819. // a host component or host text.
  8820. return inst.stateNode;
  8821. }
  8822. // Without this first invariant, passing a non-DOM-component triggers the next
  8823. // invariant for a missing parent, which is super confusing.
  8824. (function () {
  8825. {
  8826. {
  8827. throw ReactError(Error('getNodeFromInstance: Invalid argument.'));
  8828. }
  8829. }
  8830. })();
  8831. }
  8832. function getFiberCurrentPropsFromNode$1(node) {
  8833. return node[internalEventHandlersKey] || null;
  8834. }
  8835. function updateFiberProps(node, props) {
  8836. node[internalEventHandlersKey] = props;
  8837. }
  8838. function getParent(inst) {
  8839. do {
  8840. inst = inst.return;
  8841. // TODO: If this is a HostRoot we might want to bail out.
  8842. // That is depending on if we want nested subtrees (layers) to bubble
  8843. // events to their parent. We could also go through parentNode on the
  8844. // host node but that wouldn't work for React Native and doesn't let us
  8845. // do the portal feature.
  8846. } while (inst && inst.tag !== HostComponent);
  8847. if (inst) {
  8848. return inst;
  8849. }
  8850. return null;
  8851. }
  8852. /**
  8853. * Return the lowest common ancestor of A and B, or null if they are in
  8854. * different trees.
  8855. */
  8856. function getLowestCommonAncestor(instA, instB) {
  8857. var depthA = 0;
  8858. for (var tempA = instA; tempA; tempA = getParent(tempA)) {
  8859. depthA++;
  8860. }
  8861. var depthB = 0;
  8862. for (var tempB = instB; tempB; tempB = getParent(tempB)) {
  8863. depthB++;
  8864. }
  8865. // If A is deeper, crawl up.
  8866. while (depthA - depthB > 0) {
  8867. instA = getParent(instA);
  8868. depthA--;
  8869. }
  8870. // If B is deeper, crawl up.
  8871. while (depthB - depthA > 0) {
  8872. instB = getParent(instB);
  8873. depthB--;
  8874. }
  8875. // Walk in lockstep until we find a match.
  8876. var depth = depthA;
  8877. while (depth--) {
  8878. if (instA === instB || instA === instB.alternate) {
  8879. return instA;
  8880. }
  8881. instA = getParent(instA);
  8882. instB = getParent(instB);
  8883. }
  8884. return null;
  8885. }
  8886. /**
  8887. * Return if A is an ancestor of B.
  8888. */
  8889. /**
  8890. * Return the parent instance of the passed-in instance.
  8891. */
  8892. /**
  8893. * Simulates the traversal of a two-phase, capture/bubble event dispatch.
  8894. */
  8895. function traverseTwoPhase(inst, fn, arg) {
  8896. var path = [];
  8897. while (inst) {
  8898. path.push(inst);
  8899. inst = getParent(inst);
  8900. }
  8901. var i = void 0;
  8902. for (i = path.length; i-- > 0;) {
  8903. fn(path[i], 'captured', arg);
  8904. }
  8905. for (i = 0; i < path.length; i++) {
  8906. fn(path[i], 'bubbled', arg);
  8907. }
  8908. }
  8909. /**
  8910. * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that
  8911. * should would receive a `mouseEnter` or `mouseLeave` event.
  8912. *
  8913. * Does not invoke the callback on the nearest common ancestor because nothing
  8914. * "entered" or "left" that element.
  8915. */
  8916. function traverseEnterLeave(from, to, fn, argFrom, argTo) {
  8917. var common = from && to ? getLowestCommonAncestor(from, to) : null;
  8918. var pathFrom = [];
  8919. while (true) {
  8920. if (!from) {
  8921. break;
  8922. }
  8923. if (from === common) {
  8924. break;
  8925. }
  8926. var alternate = from.alternate;
  8927. if (alternate !== null && alternate === common) {
  8928. break;
  8929. }
  8930. pathFrom.push(from);
  8931. from = getParent(from);
  8932. }
  8933. var pathTo = [];
  8934. while (true) {
  8935. if (!to) {
  8936. break;
  8937. }
  8938. if (to === common) {
  8939. break;
  8940. }
  8941. var _alternate = to.alternate;
  8942. if (_alternate !== null && _alternate === common) {
  8943. break;
  8944. }
  8945. pathTo.push(to);
  8946. to = getParent(to);
  8947. }
  8948. for (var i = 0; i < pathFrom.length; i++) {
  8949. fn(pathFrom[i], 'bubbled', argFrom);
  8950. }
  8951. for (var _i = pathTo.length; _i-- > 0;) {
  8952. fn(pathTo[_i], 'captured', argTo);
  8953. }
  8954. }
  8955. /**
  8956. * Some event types have a notion of different registration names for different
  8957. * "phases" of propagation. This finds listeners by a given phase.
  8958. */
  8959. function listenerAtPhase(inst, event, propagationPhase) {
  8960. var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase];
  8961. return getListener(inst, registrationName);
  8962. }
  8963. /**
  8964. * A small set of propagation patterns, each of which will accept a small amount
  8965. * of information, and generate a set of "dispatch ready event objects" - which
  8966. * are sets of events that have already been annotated with a set of dispatched
  8967. * listener functions/ids. The API is designed this way to discourage these
  8968. * propagation strategies from actually executing the dispatches, since we
  8969. * always want to collect the entire set of dispatches before executing even a
  8970. * single one.
  8971. */
  8972. /**
  8973. * Tags a `SyntheticEvent` with dispatched listeners. Creating this function
  8974. * here, allows us to not have to bind or create functions for each event.
  8975. * Mutating the event's members allows us to not have to create a wrapping
  8976. * "dispatch" object that pairs the event with the listener.
  8977. */
  8978. function accumulateDirectionalDispatches(inst, phase, event) {
  8979. {
  8980. !inst ? warningWithoutStack$1(false, 'Dispatching inst must not be null') : void 0;
  8981. }
  8982. var listener = listenerAtPhase(inst, event, phase);
  8983. if (listener) {
  8984. event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
  8985. event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  8986. }
  8987. }
  8988. /**
  8989. * Collect dispatches (must be entirely collected before dispatching - see unit
  8990. * tests). Lazily allocate the array to conserve memory. We must loop through
  8991. * each event and perform the traversal for each one. We cannot perform a
  8992. * single traversal for the entire collection of events because each event may
  8993. * have a different target.
  8994. */
  8995. function accumulateTwoPhaseDispatchesSingle(event) {
  8996. if (event && event.dispatchConfig.phasedRegistrationNames) {
  8997. traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);
  8998. }
  8999. }
  9000. /**
  9001. * Accumulates without regard to direction, does not look for phased
  9002. * registration names. Same as `accumulateDirectDispatchesSingle` but without
  9003. * requiring that the `dispatchMarker` be the same as the dispatched ID.
  9004. */
  9005. function accumulateDispatches(inst, ignoredDirection, event) {
  9006. if (inst && event && event.dispatchConfig.registrationName) {
  9007. var registrationName = event.dispatchConfig.registrationName;
  9008. var listener = getListener(inst, registrationName);
  9009. if (listener) {
  9010. event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
  9011. event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  9012. }
  9013. }
  9014. }
  9015. /**
  9016. * Accumulates dispatches on an `SyntheticEvent`, but only for the
  9017. * `dispatchMarker`.
  9018. * @param {SyntheticEvent} event
  9019. */
  9020. function accumulateDirectDispatchesSingle(event) {
  9021. if (event && event.dispatchConfig.registrationName) {
  9022. accumulateDispatches(event._targetInst, null, event);
  9023. }
  9024. }
  9025. function accumulateTwoPhaseDispatches(events) {
  9026. forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle);
  9027. }
  9028. function accumulateEnterLeaveDispatches(leave, enter, from, to) {
  9029. traverseEnterLeave(from, to, accumulateDispatches, leave, enter);
  9030. }
  9031. function accumulateDirectDispatches(events) {
  9032. forEachAccumulated(events, accumulateDirectDispatchesSingle);
  9033. }
  9034. var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
  9035. // Do not use the below two methods directly!
  9036. // Instead use constants exported from DOMTopLevelEventTypes in ReactDOM.
  9037. // (It is the only module that is allowed to access these methods.)
  9038. function unsafeCastStringToDOMTopLevelType(topLevelType) {
  9039. return topLevelType;
  9040. }
  9041. function unsafeCastDOMTopLevelTypeToString(topLevelType) {
  9042. return topLevelType;
  9043. }
  9044. /**
  9045. * Generate a mapping of standard vendor prefixes using the defined style property and event name.
  9046. *
  9047. * @param {string} styleProp
  9048. * @param {string} eventName
  9049. * @returns {object}
  9050. */
  9051. function makePrefixMap(styleProp, eventName) {
  9052. var prefixes = {};
  9053. prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
  9054. prefixes['Webkit' + styleProp] = 'webkit' + eventName;
  9055. prefixes['Moz' + styleProp] = 'moz' + eventName;
  9056. return prefixes;
  9057. }
  9058. /**
  9059. * A list of event names to a configurable list of vendor prefixes.
  9060. */
  9061. var vendorPrefixes = {
  9062. animationend: makePrefixMap('Animation', 'AnimationEnd'),
  9063. animationiteration: makePrefixMap('Animation', 'AnimationIteration'),
  9064. animationstart: makePrefixMap('Animation', 'AnimationStart'),
  9065. transitionend: makePrefixMap('Transition', 'TransitionEnd')
  9066. };
  9067. /**
  9068. * Event names that have already been detected and prefixed (if applicable).
  9069. */
  9070. var prefixedEventNames = {};
  9071. /**
  9072. * Element to check for prefixes on.
  9073. */
  9074. var style = {};
  9075. /**
  9076. * Bootstrap if a DOM exists.
  9077. */
  9078. if (canUseDOM) {
  9079. style = document.createElement('div').style;
  9080. // On some platforms, in particular some releases of Android 4.x,
  9081. // the un-prefixed "animation" and "transition" properties are defined on the
  9082. // style object but the events that fire will still be prefixed, so we need
  9083. // to check if the un-prefixed events are usable, and if not remove them from the map.
  9084. if (!('AnimationEvent' in window)) {
  9085. delete vendorPrefixes.animationend.animation;
  9086. delete vendorPrefixes.animationiteration.animation;
  9087. delete vendorPrefixes.animationstart.animation;
  9088. }
  9089. // Same as above
  9090. if (!('TransitionEvent' in window)) {
  9091. delete vendorPrefixes.transitionend.transition;
  9092. }
  9093. }
  9094. /**
  9095. * Attempts to determine the correct vendor prefixed event name.
  9096. *
  9097. * @param {string} eventName
  9098. * @returns {string}
  9099. */
  9100. function getVendorPrefixedEventName(eventName) {
  9101. if (prefixedEventNames[eventName]) {
  9102. return prefixedEventNames[eventName];
  9103. } else if (!vendorPrefixes[eventName]) {
  9104. return eventName;
  9105. }
  9106. var prefixMap = vendorPrefixes[eventName];
  9107. for (var styleProp in prefixMap) {
  9108. if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
  9109. return prefixedEventNames[eventName] = prefixMap[styleProp];
  9110. }
  9111. }
  9112. return eventName;
  9113. }
  9114. /**
  9115. * To identify top level events in ReactDOM, we use constants defined by this
  9116. * module. This is the only module that uses the unsafe* methods to express
  9117. * that the constants actually correspond to the browser event names. This lets
  9118. * us save some bundle size by avoiding a top level type -> event name map.
  9119. * The rest of ReactDOM code should import top level types from this file.
  9120. */
  9121. var TOP_ABORT = unsafeCastStringToDOMTopLevelType('abort');
  9122. var TOP_ANIMATION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationend'));
  9123. var TOP_ANIMATION_ITERATION = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationiteration'));
  9124. var TOP_ANIMATION_START = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationstart'));
  9125. var TOP_BLUR = unsafeCastStringToDOMTopLevelType('blur');
  9126. var TOP_CAN_PLAY = unsafeCastStringToDOMTopLevelType('canplay');
  9127. var TOP_CAN_PLAY_THROUGH = unsafeCastStringToDOMTopLevelType('canplaythrough');
  9128. var TOP_CANCEL = unsafeCastStringToDOMTopLevelType('cancel');
  9129. var TOP_CHANGE = unsafeCastStringToDOMTopLevelType('change');
  9130. var TOP_CLICK = unsafeCastStringToDOMTopLevelType('click');
  9131. var TOP_CLOSE = unsafeCastStringToDOMTopLevelType('close');
  9132. var TOP_COMPOSITION_END = unsafeCastStringToDOMTopLevelType('compositionend');
  9133. var TOP_COMPOSITION_START = unsafeCastStringToDOMTopLevelType('compositionstart');
  9134. var TOP_COMPOSITION_UPDATE = unsafeCastStringToDOMTopLevelType('compositionupdate');
  9135. var TOP_CONTEXT_MENU = unsafeCastStringToDOMTopLevelType('contextmenu');
  9136. var TOP_COPY = unsafeCastStringToDOMTopLevelType('copy');
  9137. var TOP_CUT = unsafeCastStringToDOMTopLevelType('cut');
  9138. var TOP_DOUBLE_CLICK = unsafeCastStringToDOMTopLevelType('dblclick');
  9139. var TOP_AUX_CLICK = unsafeCastStringToDOMTopLevelType('auxclick');
  9140. var TOP_DRAG = unsafeCastStringToDOMTopLevelType('drag');
  9141. var TOP_DRAG_END = unsafeCastStringToDOMTopLevelType('dragend');
  9142. var TOP_DRAG_ENTER = unsafeCastStringToDOMTopLevelType('dragenter');
  9143. var TOP_DRAG_EXIT = unsafeCastStringToDOMTopLevelType('dragexit');
  9144. var TOP_DRAG_LEAVE = unsafeCastStringToDOMTopLevelType('dragleave');
  9145. var TOP_DRAG_OVER = unsafeCastStringToDOMTopLevelType('dragover');
  9146. var TOP_DRAG_START = unsafeCastStringToDOMTopLevelType('dragstart');
  9147. var TOP_DROP = unsafeCastStringToDOMTopLevelType('drop');
  9148. var TOP_DURATION_CHANGE = unsafeCastStringToDOMTopLevelType('durationchange');
  9149. var TOP_EMPTIED = unsafeCastStringToDOMTopLevelType('emptied');
  9150. var TOP_ENCRYPTED = unsafeCastStringToDOMTopLevelType('encrypted');
  9151. var TOP_ENDED = unsafeCastStringToDOMTopLevelType('ended');
  9152. var TOP_ERROR = unsafeCastStringToDOMTopLevelType('error');
  9153. var TOP_FOCUS = unsafeCastStringToDOMTopLevelType('focus');
  9154. var TOP_GOT_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('gotpointercapture');
  9155. var TOP_INPUT = unsafeCastStringToDOMTopLevelType('input');
  9156. var TOP_INVALID = unsafeCastStringToDOMTopLevelType('invalid');
  9157. var TOP_KEY_DOWN = unsafeCastStringToDOMTopLevelType('keydown');
  9158. var TOP_KEY_PRESS = unsafeCastStringToDOMTopLevelType('keypress');
  9159. var TOP_KEY_UP = unsafeCastStringToDOMTopLevelType('keyup');
  9160. var TOP_LOAD = unsafeCastStringToDOMTopLevelType('load');
  9161. var TOP_LOAD_START = unsafeCastStringToDOMTopLevelType('loadstart');
  9162. var TOP_LOADED_DATA = unsafeCastStringToDOMTopLevelType('loadeddata');
  9163. var TOP_LOADED_METADATA = unsafeCastStringToDOMTopLevelType('loadedmetadata');
  9164. var TOP_LOST_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('lostpointercapture');
  9165. var TOP_MOUSE_DOWN = unsafeCastStringToDOMTopLevelType('mousedown');
  9166. var TOP_MOUSE_MOVE = unsafeCastStringToDOMTopLevelType('mousemove');
  9167. var TOP_MOUSE_OUT = unsafeCastStringToDOMTopLevelType('mouseout');
  9168. var TOP_MOUSE_OVER = unsafeCastStringToDOMTopLevelType('mouseover');
  9169. var TOP_MOUSE_UP = unsafeCastStringToDOMTopLevelType('mouseup');
  9170. var TOP_PASTE = unsafeCastStringToDOMTopLevelType('paste');
  9171. var TOP_PAUSE = unsafeCastStringToDOMTopLevelType('pause');
  9172. var TOP_PLAY = unsafeCastStringToDOMTopLevelType('play');
  9173. var TOP_PLAYING = unsafeCastStringToDOMTopLevelType('playing');
  9174. var TOP_POINTER_CANCEL = unsafeCastStringToDOMTopLevelType('pointercancel');
  9175. var TOP_POINTER_DOWN = unsafeCastStringToDOMTopLevelType('pointerdown');
  9176. var TOP_POINTER_MOVE = unsafeCastStringToDOMTopLevelType('pointermove');
  9177. var TOP_POINTER_OUT = unsafeCastStringToDOMTopLevelType('pointerout');
  9178. var TOP_POINTER_OVER = unsafeCastStringToDOMTopLevelType('pointerover');
  9179. var TOP_POINTER_UP = unsafeCastStringToDOMTopLevelType('pointerup');
  9180. var TOP_PROGRESS = unsafeCastStringToDOMTopLevelType('progress');
  9181. var TOP_RATE_CHANGE = unsafeCastStringToDOMTopLevelType('ratechange');
  9182. var TOP_RESET = unsafeCastStringToDOMTopLevelType('reset');
  9183. var TOP_SCROLL = unsafeCastStringToDOMTopLevelType('scroll');
  9184. var TOP_SEEKED = unsafeCastStringToDOMTopLevelType('seeked');
  9185. var TOP_SEEKING = unsafeCastStringToDOMTopLevelType('seeking');
  9186. var TOP_SELECTION_CHANGE = unsafeCastStringToDOMTopLevelType('selectionchange');
  9187. var TOP_STALLED = unsafeCastStringToDOMTopLevelType('stalled');
  9188. var TOP_SUBMIT = unsafeCastStringToDOMTopLevelType('submit');
  9189. var TOP_SUSPEND = unsafeCastStringToDOMTopLevelType('suspend');
  9190. var TOP_TEXT_INPUT = unsafeCastStringToDOMTopLevelType('textInput');
  9191. var TOP_TIME_UPDATE = unsafeCastStringToDOMTopLevelType('timeupdate');
  9192. var TOP_TOGGLE = unsafeCastStringToDOMTopLevelType('toggle');
  9193. var TOP_TOUCH_CANCEL = unsafeCastStringToDOMTopLevelType('touchcancel');
  9194. var TOP_TOUCH_END = unsafeCastStringToDOMTopLevelType('touchend');
  9195. var TOP_TOUCH_MOVE = unsafeCastStringToDOMTopLevelType('touchmove');
  9196. var TOP_TOUCH_START = unsafeCastStringToDOMTopLevelType('touchstart');
  9197. var TOP_TRANSITION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('transitionend'));
  9198. var TOP_VOLUME_CHANGE = unsafeCastStringToDOMTopLevelType('volumechange');
  9199. var TOP_WAITING = unsafeCastStringToDOMTopLevelType('waiting');
  9200. var TOP_WHEEL = unsafeCastStringToDOMTopLevelType('wheel');
  9201. // List of events that need to be individually attached to media elements.
  9202. // Note that events in this list will *not* be listened to at the top level
  9203. // unless they're explicitly whitelisted in `ReactBrowserEventEmitter.listenTo`.
  9204. var mediaEventTypes = [TOP_ABORT, TOP_CAN_PLAY, TOP_CAN_PLAY_THROUGH, TOP_DURATION_CHANGE, TOP_EMPTIED, TOP_ENCRYPTED, TOP_ENDED, TOP_ERROR, TOP_LOADED_DATA, TOP_LOADED_METADATA, TOP_LOAD_START, TOP_PAUSE, TOP_PLAY, TOP_PLAYING, TOP_PROGRESS, TOP_RATE_CHANGE, TOP_SEEKED, TOP_SEEKING, TOP_STALLED, TOP_SUSPEND, TOP_TIME_UPDATE, TOP_VOLUME_CHANGE, TOP_WAITING];
  9205. function getRawEventName(topLevelType) {
  9206. return unsafeCastDOMTopLevelTypeToString(topLevelType);
  9207. }
  9208. /**
  9209. * These variables store information about text content of a target node,
  9210. * allowing comparison of content before and after a given event.
  9211. *
  9212. * Identify the node where selection currently begins, then observe
  9213. * both its text content and its current position in the DOM. Since the
  9214. * browser may natively replace the target node during composition, we can
  9215. * use its position to find its replacement.
  9216. *
  9217. *
  9218. */
  9219. var root = null;
  9220. var startText = null;
  9221. var fallbackText = null;
  9222. function initialize(nativeEventTarget) {
  9223. root = nativeEventTarget;
  9224. startText = getText();
  9225. return true;
  9226. }
  9227. function reset() {
  9228. root = null;
  9229. startText = null;
  9230. fallbackText = null;
  9231. }
  9232. function getData() {
  9233. if (fallbackText) {
  9234. return fallbackText;
  9235. }
  9236. var start = void 0;
  9237. var startValue = startText;
  9238. var startLength = startValue.length;
  9239. var end = void 0;
  9240. var endValue = getText();
  9241. var endLength = endValue.length;
  9242. for (start = 0; start < startLength; start++) {
  9243. if (startValue[start] !== endValue[start]) {
  9244. break;
  9245. }
  9246. }
  9247. var minEnd = startLength - start;
  9248. for (end = 1; end <= minEnd; end++) {
  9249. if (startValue[startLength - end] !== endValue[endLength - end]) {
  9250. break;
  9251. }
  9252. }
  9253. var sliceTail = end > 1 ? 1 - end : undefined;
  9254. fallbackText = endValue.slice(start, sliceTail);
  9255. return fallbackText;
  9256. }
  9257. function getText() {
  9258. if ('value' in root) {
  9259. return root.value;
  9260. }
  9261. return root.textContent;
  9262. }
  9263. /* eslint valid-typeof: 0 */
  9264. var EVENT_POOL_SIZE = 10;
  9265. /**
  9266. * @interface Event
  9267. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  9268. */
  9269. var EventInterface = {
  9270. type: null,
  9271. target: null,
  9272. // currentTarget is set when dispatching; no use in copying it here
  9273. currentTarget: function () {
  9274. return null;
  9275. },
  9276. eventPhase: null,
  9277. bubbles: null,
  9278. cancelable: null,
  9279. timeStamp: function (event) {
  9280. return event.timeStamp || Date.now();
  9281. },
  9282. defaultPrevented: null,
  9283. isTrusted: null
  9284. };
  9285. function functionThatReturnsTrue() {
  9286. return true;
  9287. }
  9288. function functionThatReturnsFalse() {
  9289. return false;
  9290. }
  9291. /**
  9292. * Synthetic events are dispatched by event plugins, typically in response to a
  9293. * top-level event delegation handler.
  9294. *
  9295. * These systems should generally use pooling to reduce the frequency of garbage
  9296. * collection. The system should check `isPersistent` to determine whether the
  9297. * event should be released into the pool after being dispatched. Users that
  9298. * need a persisted event should invoke `persist`.
  9299. *
  9300. * Synthetic events (and subclasses) implement the DOM Level 3 Events API by
  9301. * normalizing browser quirks. Subclasses do not necessarily have to implement a
  9302. * DOM interface; custom application-specific events can also subclass this.
  9303. *
  9304. * @param {object} dispatchConfig Configuration used to dispatch this event.
  9305. * @param {*} targetInst Marker identifying the event target.
  9306. * @param {object} nativeEvent Native browser event.
  9307. * @param {DOMEventTarget} nativeEventTarget Target node.
  9308. */
  9309. function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) {
  9310. {
  9311. // these have a getter/setter for warnings
  9312. delete this.nativeEvent;
  9313. delete this.preventDefault;
  9314. delete this.stopPropagation;
  9315. delete this.isDefaultPrevented;
  9316. delete this.isPropagationStopped;
  9317. }
  9318. this.dispatchConfig = dispatchConfig;
  9319. this._targetInst = targetInst;
  9320. this.nativeEvent = nativeEvent;
  9321. var Interface = this.constructor.Interface;
  9322. for (var propName in Interface) {
  9323. if (!Interface.hasOwnProperty(propName)) {
  9324. continue;
  9325. }
  9326. {
  9327. delete this[propName]; // this has a getter/setter for warnings
  9328. }
  9329. var normalize = Interface[propName];
  9330. if (normalize) {
  9331. this[propName] = normalize(nativeEvent);
  9332. } else {
  9333. if (propName === 'target') {
  9334. this.target = nativeEventTarget;
  9335. } else {
  9336. this[propName] = nativeEvent[propName];
  9337. }
  9338. }
  9339. }
  9340. var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;
  9341. if (defaultPrevented) {
  9342. this.isDefaultPrevented = functionThatReturnsTrue;
  9343. } else {
  9344. this.isDefaultPrevented = functionThatReturnsFalse;
  9345. }
  9346. this.isPropagationStopped = functionThatReturnsFalse;
  9347. return this;
  9348. }
  9349. _assign(SyntheticEvent.prototype, {
  9350. preventDefault: function () {
  9351. this.defaultPrevented = true;
  9352. var event = this.nativeEvent;
  9353. if (!event) {
  9354. return;
  9355. }
  9356. if (event.preventDefault) {
  9357. event.preventDefault();
  9358. } else if (typeof event.returnValue !== 'unknown') {
  9359. event.returnValue = false;
  9360. }
  9361. this.isDefaultPrevented = functionThatReturnsTrue;
  9362. },
  9363. stopPropagation: function () {
  9364. var event = this.nativeEvent;
  9365. if (!event) {
  9366. return;
  9367. }
  9368. if (event.stopPropagation) {
  9369. event.stopPropagation();
  9370. } else if (typeof event.cancelBubble !== 'unknown') {
  9371. // The ChangeEventPlugin registers a "propertychange" event for
  9372. // IE. This event does not support bubbling or cancelling, and
  9373. // any references to cancelBubble throw "Member not found". A
  9374. // typeof check of "unknown" circumvents this issue (and is also
  9375. // IE specific).
  9376. event.cancelBubble = true;
  9377. }
  9378. this.isPropagationStopped = functionThatReturnsTrue;
  9379. },
  9380. /**
  9381. * We release all dispatched `SyntheticEvent`s after each event loop, adding
  9382. * them back into the pool. This allows a way to hold onto a reference that
  9383. * won't be added back into the pool.
  9384. */
  9385. persist: function () {
  9386. this.isPersistent = functionThatReturnsTrue;
  9387. },
  9388. /**
  9389. * Checks if this event should be released back into the pool.
  9390. *
  9391. * @return {boolean} True if this should not be released, false otherwise.
  9392. */
  9393. isPersistent: functionThatReturnsFalse,
  9394. /**
  9395. * `PooledClass` looks for `destructor` on each instance it releases.
  9396. */
  9397. destructor: function () {
  9398. var Interface = this.constructor.Interface;
  9399. for (var propName in Interface) {
  9400. {
  9401. Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName]));
  9402. }
  9403. }
  9404. this.dispatchConfig = null;
  9405. this._targetInst = null;
  9406. this.nativeEvent = null;
  9407. this.isDefaultPrevented = functionThatReturnsFalse;
  9408. this.isPropagationStopped = functionThatReturnsFalse;
  9409. this._dispatchListeners = null;
  9410. this._dispatchInstances = null;
  9411. {
  9412. Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null));
  9413. Object.defineProperty(this, 'isDefaultPrevented', getPooledWarningPropertyDefinition('isDefaultPrevented', functionThatReturnsFalse));
  9414. Object.defineProperty(this, 'isPropagationStopped', getPooledWarningPropertyDefinition('isPropagationStopped', functionThatReturnsFalse));
  9415. Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', function () {}));
  9416. Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', function () {}));
  9417. }
  9418. }
  9419. });
  9420. SyntheticEvent.Interface = EventInterface;
  9421. /**
  9422. * Helper to reduce boilerplate when creating subclasses.
  9423. */
  9424. SyntheticEvent.extend = function (Interface) {
  9425. var Super = this;
  9426. var E = function () {};
  9427. E.prototype = Super.prototype;
  9428. var prototype = new E();
  9429. function Class() {
  9430. return Super.apply(this, arguments);
  9431. }
  9432. _assign(prototype, Class.prototype);
  9433. Class.prototype = prototype;
  9434. Class.prototype.constructor = Class;
  9435. Class.Interface = _assign({}, Super.Interface, Interface);
  9436. Class.extend = Super.extend;
  9437. addEventPoolingTo(Class);
  9438. return Class;
  9439. };
  9440. addEventPoolingTo(SyntheticEvent);
  9441. /**
  9442. * Helper to nullify syntheticEvent instance properties when destructing
  9443. *
  9444. * @param {String} propName
  9445. * @param {?object} getVal
  9446. * @return {object} defineProperty object
  9447. */
  9448. function getPooledWarningPropertyDefinition(propName, getVal) {
  9449. var isFunction = typeof getVal === 'function';
  9450. return {
  9451. configurable: true,
  9452. set: set,
  9453. get: get
  9454. };
  9455. function set(val) {
  9456. var action = isFunction ? 'setting the method' : 'setting the property';
  9457. warn(action, 'This is effectively a no-op');
  9458. return val;
  9459. }
  9460. function get() {
  9461. var action = isFunction ? 'accessing the method' : 'accessing the property';
  9462. var result = isFunction ? 'This is a no-op function' : 'This is set to null';
  9463. warn(action, result);
  9464. return getVal;
  9465. }
  9466. function warn(action, result) {
  9467. var warningCondition = false;
  9468. !warningCondition ? warningWithoutStack$1(false, "This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result) : void 0;
  9469. }
  9470. }
  9471. function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) {
  9472. var EventConstructor = this;
  9473. if (EventConstructor.eventPool.length) {
  9474. var instance = EventConstructor.eventPool.pop();
  9475. EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst);
  9476. return instance;
  9477. }
  9478. return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst);
  9479. }
  9480. function releasePooledEvent(event) {
  9481. var EventConstructor = this;
  9482. (function () {
  9483. if (!(event instanceof EventConstructor)) {
  9484. {
  9485. throw ReactError(Error('Trying to release an event instance into a pool of a different type.'));
  9486. }
  9487. }
  9488. })();
  9489. event.destructor();
  9490. if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) {
  9491. EventConstructor.eventPool.push(event);
  9492. }
  9493. }
  9494. function addEventPoolingTo(EventConstructor) {
  9495. EventConstructor.eventPool = [];
  9496. EventConstructor.getPooled = getPooledEvent;
  9497. EventConstructor.release = releasePooledEvent;
  9498. }
  9499. /**
  9500. * @interface Event
  9501. * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
  9502. */
  9503. var SyntheticCompositionEvent = SyntheticEvent.extend({
  9504. data: null
  9505. });
  9506. /**
  9507. * @interface Event
  9508. * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105
  9509. * /#events-inputevents
  9510. */
  9511. var SyntheticInputEvent = SyntheticEvent.extend({
  9512. data: null
  9513. });
  9514. var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space
  9515. var START_KEYCODE = 229;
  9516. var canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window;
  9517. var documentMode = null;
  9518. if (canUseDOM && 'documentMode' in document) {
  9519. documentMode = document.documentMode;
  9520. }
  9521. // Webkit offers a very useful `textInput` event that can be used to
  9522. // directly represent `beforeInput`. The IE `textinput` event is not as
  9523. // useful, so we don't use it.
  9524. var canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode;
  9525. // In IE9+, we have access to composition events, but the data supplied
  9526. // by the native compositionend event may be incorrect. Japanese ideographic
  9527. // spaces, for instance (\u3000) are not recorded correctly.
  9528. var useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);
  9529. var SPACEBAR_CODE = 32;
  9530. var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE);
  9531. // Events and their corresponding property names.
  9532. var eventTypes = {
  9533. beforeInput: {
  9534. phasedRegistrationNames: {
  9535. bubbled: 'onBeforeInput',
  9536. captured: 'onBeforeInputCapture'
  9537. },
  9538. dependencies: [TOP_COMPOSITION_END, TOP_KEY_PRESS, TOP_TEXT_INPUT, TOP_PASTE]
  9539. },
  9540. compositionEnd: {
  9541. phasedRegistrationNames: {
  9542. bubbled: 'onCompositionEnd',
  9543. captured: 'onCompositionEndCapture'
  9544. },
  9545. dependencies: [TOP_BLUR, TOP_COMPOSITION_END, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  9546. },
  9547. compositionStart: {
  9548. phasedRegistrationNames: {
  9549. bubbled: 'onCompositionStart',
  9550. captured: 'onCompositionStartCapture'
  9551. },
  9552. dependencies: [TOP_BLUR, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  9553. },
  9554. compositionUpdate: {
  9555. phasedRegistrationNames: {
  9556. bubbled: 'onCompositionUpdate',
  9557. captured: 'onCompositionUpdateCapture'
  9558. },
  9559. dependencies: [TOP_BLUR, TOP_COMPOSITION_UPDATE, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  9560. }
  9561. };
  9562. // Track whether we've ever handled a keypress on the space key.
  9563. var hasSpaceKeypress = false;
  9564. /**
  9565. * Return whether a native keypress event is assumed to be a command.
  9566. * This is required because Firefox fires `keypress` events for key commands
  9567. * (cut, copy, select-all, etc.) even though no character is inserted.
  9568. */
  9569. function isKeypressCommand(nativeEvent) {
  9570. return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) &&
  9571. // ctrlKey && altKey is equivalent to AltGr, and is not a command.
  9572. !(nativeEvent.ctrlKey && nativeEvent.altKey);
  9573. }
  9574. /**
  9575. * Translate native top level events into event types.
  9576. *
  9577. * @param {string} topLevelType
  9578. * @return {object}
  9579. */
  9580. function getCompositionEventType(topLevelType) {
  9581. switch (topLevelType) {
  9582. case TOP_COMPOSITION_START:
  9583. return eventTypes.compositionStart;
  9584. case TOP_COMPOSITION_END:
  9585. return eventTypes.compositionEnd;
  9586. case TOP_COMPOSITION_UPDATE:
  9587. return eventTypes.compositionUpdate;
  9588. }
  9589. }
  9590. /**
  9591. * Does our fallback best-guess model think this event signifies that
  9592. * composition has begun?
  9593. *
  9594. * @param {string} topLevelType
  9595. * @param {object} nativeEvent
  9596. * @return {boolean}
  9597. */
  9598. function isFallbackCompositionStart(topLevelType, nativeEvent) {
  9599. return topLevelType === TOP_KEY_DOWN && nativeEvent.keyCode === START_KEYCODE;
  9600. }
  9601. /**
  9602. * Does our fallback mode think that this event is the end of composition?
  9603. *
  9604. * @param {string} topLevelType
  9605. * @param {object} nativeEvent
  9606. * @return {boolean}
  9607. */
  9608. function isFallbackCompositionEnd(topLevelType, nativeEvent) {
  9609. switch (topLevelType) {
  9610. case TOP_KEY_UP:
  9611. // Command keys insert or clear IME input.
  9612. return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;
  9613. case TOP_KEY_DOWN:
  9614. // Expect IME keyCode on each keydown. If we get any other
  9615. // code we must have exited earlier.
  9616. return nativeEvent.keyCode !== START_KEYCODE;
  9617. case TOP_KEY_PRESS:
  9618. case TOP_MOUSE_DOWN:
  9619. case TOP_BLUR:
  9620. // Events are not possible without cancelling IME.
  9621. return true;
  9622. default:
  9623. return false;
  9624. }
  9625. }
  9626. /**
  9627. * Google Input Tools provides composition data via a CustomEvent,
  9628. * with the `data` property populated in the `detail` object. If this
  9629. * is available on the event object, use it. If not, this is a plain
  9630. * composition event and we have nothing special to extract.
  9631. *
  9632. * @param {object} nativeEvent
  9633. * @return {?string}
  9634. */
  9635. function getDataFromCustomEvent(nativeEvent) {
  9636. var detail = nativeEvent.detail;
  9637. if (typeof detail === 'object' && 'data' in detail) {
  9638. return detail.data;
  9639. }
  9640. return null;
  9641. }
  9642. /**
  9643. * Check if a composition event was triggered by Korean IME.
  9644. * Our fallback mode does not work well with IE's Korean IME,
  9645. * so just use native composition events when Korean IME is used.
  9646. * Although CompositionEvent.locale property is deprecated,
  9647. * it is available in IE, where our fallback mode is enabled.
  9648. *
  9649. * @param {object} nativeEvent
  9650. * @return {boolean}
  9651. */
  9652. function isUsingKoreanIME(nativeEvent) {
  9653. return nativeEvent.locale === 'ko';
  9654. }
  9655. // Track the current IME composition status, if any.
  9656. var isComposing = false;
  9657. /**
  9658. * @return {?object} A SyntheticCompositionEvent.
  9659. */
  9660. function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  9661. var eventType = void 0;
  9662. var fallbackData = void 0;
  9663. if (canUseCompositionEvent) {
  9664. eventType = getCompositionEventType(topLevelType);
  9665. } else if (!isComposing) {
  9666. if (isFallbackCompositionStart(topLevelType, nativeEvent)) {
  9667. eventType = eventTypes.compositionStart;
  9668. }
  9669. } else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  9670. eventType = eventTypes.compositionEnd;
  9671. }
  9672. if (!eventType) {
  9673. return null;
  9674. }
  9675. if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) {
  9676. // The current composition is stored statically and must not be
  9677. // overwritten while composition continues.
  9678. if (!isComposing && eventType === eventTypes.compositionStart) {
  9679. isComposing = initialize(nativeEventTarget);
  9680. } else if (eventType === eventTypes.compositionEnd) {
  9681. if (isComposing) {
  9682. fallbackData = getData();
  9683. }
  9684. }
  9685. }
  9686. var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget);
  9687. if (fallbackData) {
  9688. // Inject data generated from fallback path into the synthetic event.
  9689. // This matches the property of native CompositionEventInterface.
  9690. event.data = fallbackData;
  9691. } else {
  9692. var customData = getDataFromCustomEvent(nativeEvent);
  9693. if (customData !== null) {
  9694. event.data = customData;
  9695. }
  9696. }
  9697. accumulateTwoPhaseDispatches(event);
  9698. return event;
  9699. }
  9700. /**
  9701. * @param {TopLevelType} topLevelType Number from `TopLevelType`.
  9702. * @param {object} nativeEvent Native browser event.
  9703. * @return {?string} The string corresponding to this `beforeInput` event.
  9704. */
  9705. function getNativeBeforeInputChars(topLevelType, nativeEvent) {
  9706. switch (topLevelType) {
  9707. case TOP_COMPOSITION_END:
  9708. return getDataFromCustomEvent(nativeEvent);
  9709. case TOP_KEY_PRESS:
  9710. /**
  9711. * If native `textInput` events are available, our goal is to make
  9712. * use of them. However, there is a special case: the spacebar key.
  9713. * In Webkit, preventing default on a spacebar `textInput` event
  9714. * cancels character insertion, but it *also* causes the browser
  9715. * to fall back to its default spacebar behavior of scrolling the
  9716. * page.
  9717. *
  9718. * Tracking at:
  9719. * https://code.google.com/p/chromium/issues/detail?id=355103
  9720. *
  9721. * To avoid this issue, use the keypress event as if no `textInput`
  9722. * event is available.
  9723. */
  9724. var which = nativeEvent.which;
  9725. if (which !== SPACEBAR_CODE) {
  9726. return null;
  9727. }
  9728. hasSpaceKeypress = true;
  9729. return SPACEBAR_CHAR;
  9730. case TOP_TEXT_INPUT:
  9731. // Record the characters to be added to the DOM.
  9732. var chars = nativeEvent.data;
  9733. // If it's a spacebar character, assume that we have already handled
  9734. // it at the keypress level and bail immediately. Android Chrome
  9735. // doesn't give us keycodes, so we need to ignore it.
  9736. if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {
  9737. return null;
  9738. }
  9739. return chars;
  9740. default:
  9741. // For other native event types, do nothing.
  9742. return null;
  9743. }
  9744. }
  9745. /**
  9746. * For browsers that do not provide the `textInput` event, extract the
  9747. * appropriate string to use for SyntheticInputEvent.
  9748. *
  9749. * @param {number} topLevelType Number from `TopLevelEventTypes`.
  9750. * @param {object} nativeEvent Native browser event.
  9751. * @return {?string} The fallback string for this `beforeInput` event.
  9752. */
  9753. function getFallbackBeforeInputChars(topLevelType, nativeEvent) {
  9754. // If we are currently composing (IME) and using a fallback to do so,
  9755. // try to extract the composed characters from the fallback object.
  9756. // If composition event is available, we extract a string only at
  9757. // compositionevent, otherwise extract it at fallback events.
  9758. if (isComposing) {
  9759. if (topLevelType === TOP_COMPOSITION_END || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  9760. var chars = getData();
  9761. reset();
  9762. isComposing = false;
  9763. return chars;
  9764. }
  9765. return null;
  9766. }
  9767. switch (topLevelType) {
  9768. case TOP_PASTE:
  9769. // If a paste event occurs after a keypress, throw out the input
  9770. // chars. Paste events should not lead to BeforeInput events.
  9771. return null;
  9772. case TOP_KEY_PRESS:
  9773. /**
  9774. * As of v27, Firefox may fire keypress events even when no character
  9775. * will be inserted. A few possibilities:
  9776. *
  9777. * - `which` is `0`. Arrow keys, Esc key, etc.
  9778. *
  9779. * - `which` is the pressed key code, but no char is available.
  9780. * Ex: 'AltGr + d` in Polish. There is no modified character for
  9781. * this key combination and no character is inserted into the
  9782. * document, but FF fires the keypress for char code `100` anyway.
  9783. * No `input` event will occur.
  9784. *
  9785. * - `which` is the pressed key code, but a command combination is
  9786. * being used. Ex: `Cmd+C`. No character is inserted, and no
  9787. * `input` event will occur.
  9788. */
  9789. if (!isKeypressCommand(nativeEvent)) {
  9790. // IE fires the `keypress` event when a user types an emoji via
  9791. // Touch keyboard of Windows. In such a case, the `char` property
  9792. // holds an emoji character like `\uD83D\uDE0A`. Because its length
  9793. // is 2, the property `which` does not represent an emoji correctly.
  9794. // In such a case, we directly return the `char` property instead of
  9795. // using `which`.
  9796. if (nativeEvent.char && nativeEvent.char.length > 1) {
  9797. return nativeEvent.char;
  9798. } else if (nativeEvent.which) {
  9799. return String.fromCharCode(nativeEvent.which);
  9800. }
  9801. }
  9802. return null;
  9803. case TOP_COMPOSITION_END:
  9804. return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data;
  9805. default:
  9806. return null;
  9807. }
  9808. }
  9809. /**
  9810. * Extract a SyntheticInputEvent for `beforeInput`, based on either native
  9811. * `textInput` or fallback behavior.
  9812. *
  9813. * @return {?object} A SyntheticInputEvent.
  9814. */
  9815. function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  9816. var chars = void 0;
  9817. if (canUseTextInputEvent) {
  9818. chars = getNativeBeforeInputChars(topLevelType, nativeEvent);
  9819. } else {
  9820. chars = getFallbackBeforeInputChars(topLevelType, nativeEvent);
  9821. }
  9822. // If no characters are being inserted, no BeforeInput event should
  9823. // be fired.
  9824. if (!chars) {
  9825. return null;
  9826. }
  9827. var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget);
  9828. event.data = chars;
  9829. accumulateTwoPhaseDispatches(event);
  9830. return event;
  9831. }
  9832. /**
  9833. * Create an `onBeforeInput` event to match
  9834. * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.
  9835. *
  9836. * This event plugin is based on the native `textInput` event
  9837. * available in Chrome, Safari, Opera, and IE. This event fires after
  9838. * `onKeyPress` and `onCompositionEnd`, but before `onInput`.
  9839. *
  9840. * `beforeInput` is spec'd but not implemented in any browsers, and
  9841. * the `input` event does not provide any useful information about what has
  9842. * actually been added, contrary to the spec. Thus, `textInput` is the best
  9843. * available event to identify the characters that have actually been inserted
  9844. * into the target node.
  9845. *
  9846. * This plugin is also responsible for emitting `composition` events, thus
  9847. * allowing us to share composition fallback code for both `beforeInput` and
  9848. * `composition` event types.
  9849. */
  9850. var BeforeInputEventPlugin = {
  9851. eventTypes: eventTypes,
  9852. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  9853. var composition = extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  9854. var beforeInput = extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  9855. if (composition === null) {
  9856. return beforeInput;
  9857. }
  9858. if (beforeInput === null) {
  9859. return composition;
  9860. }
  9861. return [composition, beforeInput];
  9862. }
  9863. };
  9864. // Use to restore controlled state after a change event has fired.
  9865. var restoreImpl = null;
  9866. var restoreTarget = null;
  9867. var restoreQueue = null;
  9868. function restoreStateOfTarget(target) {
  9869. // We perform this translation at the end of the event loop so that we
  9870. // always receive the correct fiber here
  9871. var internalInstance = getInstanceFromNode(target);
  9872. if (!internalInstance) {
  9873. // Unmounted
  9874. return;
  9875. }
  9876. (function () {
  9877. if (!(typeof restoreImpl === 'function')) {
  9878. {
  9879. throw ReactError(Error('setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.'));
  9880. }
  9881. }
  9882. })();
  9883. var props = getFiberCurrentPropsFromNode(internalInstance.stateNode);
  9884. restoreImpl(internalInstance.stateNode, internalInstance.type, props);
  9885. }
  9886. function setRestoreImplementation(impl) {
  9887. restoreImpl = impl;
  9888. }
  9889. function enqueueStateRestore(target) {
  9890. if (restoreTarget) {
  9891. if (restoreQueue) {
  9892. restoreQueue.push(target);
  9893. } else {
  9894. restoreQueue = [target];
  9895. }
  9896. } else {
  9897. restoreTarget = target;
  9898. }
  9899. }
  9900. function needsStateRestore() {
  9901. return restoreTarget !== null || restoreQueue !== null;
  9902. }
  9903. function restoreStateIfNeeded() {
  9904. if (!restoreTarget) {
  9905. return;
  9906. }
  9907. var target = restoreTarget;
  9908. var queuedTargets = restoreQueue;
  9909. restoreTarget = null;
  9910. restoreQueue = null;
  9911. restoreStateOfTarget(target);
  9912. if (queuedTargets) {
  9913. for (var i = 0; i < queuedTargets.length; i++) {
  9914. restoreStateOfTarget(queuedTargets[i]);
  9915. }
  9916. }
  9917. }
  9918. var enableUserTimingAPI = true;
  9919. // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
  9920. var debugRenderPhaseSideEffects = false;
  9921. // In some cases, StrictMode should also double-render lifecycles.
  9922. // This can be confusing for tests though,
  9923. // And it can be bad for performance in production.
  9924. // This feature flag can be used to control the behavior:
  9925. var debugRenderPhaseSideEffectsForStrictMode = true;
  9926. // To preserve the "Pause on caught exceptions" behavior of the debugger, we
  9927. // replay the begin phase of a failed component inside invokeGuardedCallback.
  9928. var replayFailedUnitOfWorkWithInvokeGuardedCallback = true;
  9929. // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
  9930. var warnAboutDeprecatedLifecycles = true;
  9931. // Gather advanced timing metrics for Profiler subtrees.
  9932. var enableProfilerTimer = true;
  9933. // Trace which interactions trigger each commit.
  9934. var enableSchedulerTracing = true;
  9935. // Only used in www builds.
  9936. var enableSuspenseServerRenderer = false; // TODO: true? Here it might just be false.
  9937. // Only used in www builds.
  9938. // Only used in www builds.
  9939. // Disable javascript: URL strings in href for XSS protection.
  9940. var disableJavaScriptURLs = false;
  9941. // React Fire: prevent the value and checked attributes from syncing
  9942. // with their related DOM properties
  9943. var disableInputAttributeSyncing = false;
  9944. // These APIs will no longer be "unstable" in the upcoming 16.7 release,
  9945. // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
  9946. var enableStableConcurrentModeAPIs = false;
  9947. var warnAboutShorthandPropertyCollision = false;
  9948. // See https://github.com/react-native-community/discussions-and-proposals/issues/72 for more information
  9949. // This is a flag so we can fix warnings in RN core before turning it on
  9950. // Experimental React Flare event system and event components support.
  9951. var enableFlareAPI = false;
  9952. // Experimental Host Component support.
  9953. var enableFundamentalAPI = false;
  9954. // New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107
  9955. // We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?)
  9956. // Till then, we warn about the missing mock, but still fallback to a sync mode compatible version
  9957. var warnAboutUnmockedScheduler = false;
  9958. // Temporary flag to revert the fix in #15650
  9959. var revertPassiveEffectsChange = false;
  9960. // For tests, we flush suspense fallbacks in an act scope;
  9961. // *except* in some of our own tests, where we test incremental loading states.
  9962. var flushSuspenseFallbacksInTests = true;
  9963. // Changes priority of some events like mousemove to user-blocking priority,
  9964. // but without making them discrete. The flag exists in case it causes
  9965. // starvation problems.
  9966. var enableUserBlockingEvents = false;
  9967. // Add a callback property to suspense to notify which promises are currently
  9968. // in the update queue. This allows reporting and tracing of what is causing
  9969. // the user to see a loading state.
  9970. var enableSuspenseCallback = false;
  9971. // Part of the simplification of React.createElement so we can eventually move
  9972. // from React.createElement to React.jsx
  9973. // https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md
  9974. var warnAboutDefaultPropsOnFunctionComponents = false;
  9975. var disableLegacyContext = false;
  9976. var disableSchedulerTimeoutBasedOnReactExpirationTime = false;
  9977. // Used as a way to call batchedUpdates when we don't have a reference to
  9978. // the renderer. Such as when we're dispatching events or if third party
  9979. // libraries need to call batchedUpdates. Eventually, this API will go away when
  9980. // everything is batched by default. We'll then have a similar API to opt-out of
  9981. // scheduled work and instead do synchronous work.
  9982. // Defaults
  9983. var batchedUpdatesImpl = function (fn, bookkeeping) {
  9984. return fn(bookkeeping);
  9985. };
  9986. var discreteUpdatesImpl = function (fn, a, b, c) {
  9987. return fn(a, b, c);
  9988. };
  9989. var flushDiscreteUpdatesImpl = function () {};
  9990. var batchedEventUpdatesImpl = batchedUpdatesImpl;
  9991. var isInsideEventHandler = false;
  9992. function finishEventHandler() {
  9993. // Here we wait until all updates have propagated, which is important
  9994. // when using controlled components within layers:
  9995. // https://github.com/facebook/react/issues/1698
  9996. // Then we restore state of any controlled component.
  9997. var controlledComponentsHavePendingUpdates = needsStateRestore();
  9998. if (controlledComponentsHavePendingUpdates) {
  9999. // If a controlled event was fired, we may need to restore the state of
  10000. // the DOM node back to the controlled value. This is necessary when React
  10001. // bails out of the update without touching the DOM.
  10002. flushDiscreteUpdatesImpl();
  10003. restoreStateIfNeeded();
  10004. }
  10005. }
  10006. function batchedUpdates(fn, bookkeeping) {
  10007. if (isInsideEventHandler) {
  10008. // If we are currently inside another batch, we need to wait until it
  10009. // fully completes before restoring state.
  10010. return fn(bookkeeping);
  10011. }
  10012. isInsideEventHandler = true;
  10013. try {
  10014. return batchedUpdatesImpl(fn, bookkeeping);
  10015. } finally {
  10016. isInsideEventHandler = false;
  10017. finishEventHandler();
  10018. }
  10019. }
  10020. function batchedEventUpdates(fn, a, b) {
  10021. if (isInsideEventHandler) {
  10022. // If we are currently inside another batch, we need to wait until it
  10023. // fully completes before restoring state.
  10024. return fn(a, b);
  10025. }
  10026. isInsideEventHandler = true;
  10027. try {
  10028. return batchedEventUpdatesImpl(fn, a, b);
  10029. } finally {
  10030. isInsideEventHandler = false;
  10031. finishEventHandler();
  10032. }
  10033. }
  10034. function discreteUpdates(fn, a, b, c) {
  10035. var prevIsInsideEventHandler = isInsideEventHandler;
  10036. isInsideEventHandler = true;
  10037. try {
  10038. return discreteUpdatesImpl(fn, a, b, c);
  10039. } finally {
  10040. isInsideEventHandler = prevIsInsideEventHandler;
  10041. if (!isInsideEventHandler) {
  10042. finishEventHandler();
  10043. }
  10044. }
  10045. }
  10046. var lastFlushedEventTimeStamp = 0;
  10047. function flushDiscreteUpdatesIfNeeded(timeStamp) {
  10048. // event.timeStamp isn't overly reliable due to inconsistencies in
  10049. // how different browsers have historically provided the time stamp.
  10050. // Some browsers provide high-resolution time stamps for all events,
  10051. // some provide low-resolution time stamps for all events. FF < 52
  10052. // even mixes both time stamps together. Some browsers even report
  10053. // negative time stamps or time stamps that are 0 (iOS9) in some cases.
  10054. // Given we are only comparing two time stamps with equality (!==),
  10055. // we are safe from the resolution differences. If the time stamp is 0
  10056. // we bail-out of preventing the flush, which can affect semantics,
  10057. // such as if an earlier flush removes or adds event listeners that
  10058. // are fired in the subsequent flush. However, this is the same
  10059. // behaviour as we had before this change, so the risks are low.
  10060. if (!isInsideEventHandler && (!enableFlareAPI || timeStamp === 0 || lastFlushedEventTimeStamp !== timeStamp)) {
  10061. lastFlushedEventTimeStamp = timeStamp;
  10062. flushDiscreteUpdatesImpl();
  10063. }
  10064. }
  10065. function setBatchingImplementation(_batchedUpdatesImpl, _discreteUpdatesImpl, _flushDiscreteUpdatesImpl, _batchedEventUpdatesImpl) {
  10066. batchedUpdatesImpl = _batchedUpdatesImpl;
  10067. discreteUpdatesImpl = _discreteUpdatesImpl;
  10068. flushDiscreteUpdatesImpl = _flushDiscreteUpdatesImpl;
  10069. batchedEventUpdatesImpl = _batchedEventUpdatesImpl;
  10070. }
  10071. /**
  10072. * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
  10073. */
  10074. var supportedInputTypes = {
  10075. color: true,
  10076. date: true,
  10077. datetime: true,
  10078. 'datetime-local': true,
  10079. email: true,
  10080. month: true,
  10081. number: true,
  10082. password: true,
  10083. range: true,
  10084. search: true,
  10085. tel: true,
  10086. text: true,
  10087. time: true,
  10088. url: true,
  10089. week: true
  10090. };
  10091. function isTextInputElement(elem) {
  10092. var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  10093. if (nodeName === 'input') {
  10094. return !!supportedInputTypes[elem.type];
  10095. }
  10096. if (nodeName === 'textarea') {
  10097. return true;
  10098. }
  10099. return false;
  10100. }
  10101. /**
  10102. * HTML nodeType values that represent the type of the node
  10103. */
  10104. var ELEMENT_NODE = 1;
  10105. var TEXT_NODE = 3;
  10106. var COMMENT_NODE = 8;
  10107. var DOCUMENT_NODE = 9;
  10108. var DOCUMENT_FRAGMENT_NODE = 11;
  10109. /**
  10110. * Gets the target node from a native browser event by accounting for
  10111. * inconsistencies in browser DOM APIs.
  10112. *
  10113. * @param {object} nativeEvent Native browser event.
  10114. * @return {DOMEventTarget} Target node.
  10115. */
  10116. function getEventTarget(nativeEvent) {
  10117. // Fallback to nativeEvent.srcElement for IE9
  10118. // https://github.com/facebook/react/issues/12506
  10119. var target = nativeEvent.target || nativeEvent.srcElement || window;
  10120. // Normalize SVG <use> element events #4963
  10121. if (target.correspondingUseElement) {
  10122. target = target.correspondingUseElement;
  10123. }
  10124. // Safari may fire events on text nodes (Node.TEXT_NODE is 3).
  10125. // @see http://www.quirksmode.org/js/events_properties.html
  10126. return target.nodeType === TEXT_NODE ? target.parentNode : target;
  10127. }
  10128. /**
  10129. * Checks if an event is supported in the current execution environment.
  10130. *
  10131. * NOTE: This will not work correctly for non-generic events such as `change`,
  10132. * `reset`, `load`, `error`, and `select`.
  10133. *
  10134. * Borrows from Modernizr.
  10135. *
  10136. * @param {string} eventNameSuffix Event name, e.g. "click".
  10137. * @return {boolean} True if the event is supported.
  10138. * @internal
  10139. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  10140. */
  10141. function isEventSupported(eventNameSuffix) {
  10142. if (!canUseDOM) {
  10143. return false;
  10144. }
  10145. var eventName = 'on' + eventNameSuffix;
  10146. var isSupported = eventName in document;
  10147. if (!isSupported) {
  10148. var element = document.createElement('div');
  10149. element.setAttribute(eventName, 'return;');
  10150. isSupported = typeof element[eventName] === 'function';
  10151. }
  10152. return isSupported;
  10153. }
  10154. function isCheckable(elem) {
  10155. var type = elem.type;
  10156. var nodeName = elem.nodeName;
  10157. return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');
  10158. }
  10159. function getTracker(node) {
  10160. return node._valueTracker;
  10161. }
  10162. function detachTracker(node) {
  10163. node._valueTracker = null;
  10164. }
  10165. function getValueFromNode(node) {
  10166. var value = '';
  10167. if (!node) {
  10168. return value;
  10169. }
  10170. if (isCheckable(node)) {
  10171. value = node.checked ? 'true' : 'false';
  10172. } else {
  10173. value = node.value;
  10174. }
  10175. return value;
  10176. }
  10177. function trackValueOnNode(node) {
  10178. var valueField = isCheckable(node) ? 'checked' : 'value';
  10179. var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);
  10180. var currentValue = '' + node[valueField];
  10181. // if someone has already defined a value or Safari, then bail
  10182. // and don't track value will cause over reporting of changes,
  10183. // but it's better then a hard failure
  10184. // (needed for certain tests that spyOn input values and Safari)
  10185. if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {
  10186. return;
  10187. }
  10188. var get = descriptor.get,
  10189. set = descriptor.set;
  10190. Object.defineProperty(node, valueField, {
  10191. configurable: true,
  10192. get: function () {
  10193. return get.call(this);
  10194. },
  10195. set: function (value) {
  10196. currentValue = '' + value;
  10197. set.call(this, value);
  10198. }
  10199. });
  10200. // We could've passed this the first time
  10201. // but it triggers a bug in IE11 and Edge 14/15.
  10202. // Calling defineProperty() again should be equivalent.
  10203. // https://github.com/facebook/react/issues/11768
  10204. Object.defineProperty(node, valueField, {
  10205. enumerable: descriptor.enumerable
  10206. });
  10207. var tracker = {
  10208. getValue: function () {
  10209. return currentValue;
  10210. },
  10211. setValue: function (value) {
  10212. currentValue = '' + value;
  10213. },
  10214. stopTracking: function () {
  10215. detachTracker(node);
  10216. delete node[valueField];
  10217. }
  10218. };
  10219. return tracker;
  10220. }
  10221. function track(node) {
  10222. if (getTracker(node)) {
  10223. return;
  10224. }
  10225. // TODO: Once it's just Fiber we can move this to node._wrapperState
  10226. node._valueTracker = trackValueOnNode(node);
  10227. }
  10228. function updateValueIfChanged(node) {
  10229. if (!node) {
  10230. return false;
  10231. }
  10232. var tracker = getTracker(node);
  10233. // if there is no tracker at this point it's unlikely
  10234. // that trying again will succeed
  10235. if (!tracker) {
  10236. return true;
  10237. }
  10238. var lastValue = tracker.getValue();
  10239. var nextValue = getValueFromNode(node);
  10240. if (nextValue !== lastValue) {
  10241. tracker.setValue(nextValue);
  10242. return true;
  10243. }
  10244. return false;
  10245. }
  10246. var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
  10247. // Prevent newer renderers from RTE when used with older react package versions.
  10248. // Current owner and dispatcher used to share the same ref,
  10249. // but PR #14548 split them out to better support the react-debug-tools package.
  10250. if (!ReactSharedInternals.hasOwnProperty('ReactCurrentDispatcher')) {
  10251. ReactSharedInternals.ReactCurrentDispatcher = {
  10252. current: null
  10253. };
  10254. }
  10255. if (!ReactSharedInternals.hasOwnProperty('ReactCurrentBatchConfig')) {
  10256. ReactSharedInternals.ReactCurrentBatchConfig = {
  10257. suspense: null
  10258. };
  10259. }
  10260. var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
  10261. var describeComponentFrame = function (name, source, ownerName) {
  10262. var sourceInfo = '';
  10263. if (source) {
  10264. var path = source.fileName;
  10265. var fileName = path.replace(BEFORE_SLASH_RE, '');
  10266. {
  10267. // In DEV, include code for a common special case:
  10268. // prefer "folder/index.js" instead of just "index.js".
  10269. if (/^index\./.test(fileName)) {
  10270. var match = path.match(BEFORE_SLASH_RE);
  10271. if (match) {
  10272. var pathBeforeSlash = match[1];
  10273. if (pathBeforeSlash) {
  10274. var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
  10275. fileName = folderName + '/' + fileName;
  10276. }
  10277. }
  10278. }
  10279. }
  10280. sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
  10281. } else if (ownerName) {
  10282. sourceInfo = ' (created by ' + ownerName + ')';
  10283. }
  10284. return '\n in ' + (name || 'Unknown') + sourceInfo;
  10285. };
  10286. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  10287. // nor polyfill, then a plain number is used for performance.
  10288. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  10289. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  10290. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  10291. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  10292. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  10293. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  10294. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  10295. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
  10296. // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
  10297. // (unstable) APIs that have been removed. Can we remove the symbols?
  10298. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  10299. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  10300. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  10301. var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
  10302. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  10303. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  10304. var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
  10305. var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
  10306. var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  10307. var FAUX_ITERATOR_SYMBOL = '@@iterator';
  10308. function getIteratorFn(maybeIterable) {
  10309. if (maybeIterable === null || typeof maybeIterable !== 'object') {
  10310. return null;
  10311. }
  10312. var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
  10313. if (typeof maybeIterator === 'function') {
  10314. return maybeIterator;
  10315. }
  10316. return null;
  10317. }
  10318. var Pending = 0;
  10319. var Resolved = 1;
  10320. var Rejected = 2;
  10321. function refineResolvedLazyComponent(lazyComponent) {
  10322. return lazyComponent._status === Resolved ? lazyComponent._result : null;
  10323. }
  10324. function getWrappedName(outerType, innerType, wrapperName) {
  10325. var functionName = innerType.displayName || innerType.name || '';
  10326. return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);
  10327. }
  10328. function getComponentName(type) {
  10329. if (type == null) {
  10330. // Host root, text node or just invalid type.
  10331. return null;
  10332. }
  10333. {
  10334. if (typeof type.tag === 'number') {
  10335. warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
  10336. }
  10337. }
  10338. if (typeof type === 'function') {
  10339. return type.displayName || type.name || null;
  10340. }
  10341. if (typeof type === 'string') {
  10342. return type;
  10343. }
  10344. switch (type) {
  10345. case REACT_FRAGMENT_TYPE:
  10346. return 'Fragment';
  10347. case REACT_PORTAL_TYPE:
  10348. return 'Portal';
  10349. case REACT_PROFILER_TYPE:
  10350. return 'Profiler';
  10351. case REACT_STRICT_MODE_TYPE:
  10352. return 'StrictMode';
  10353. case REACT_SUSPENSE_TYPE:
  10354. return 'Suspense';
  10355. case REACT_SUSPENSE_LIST_TYPE:
  10356. return 'SuspenseList';
  10357. }
  10358. if (typeof type === 'object') {
  10359. switch (type.$$typeof) {
  10360. case REACT_CONTEXT_TYPE:
  10361. return 'Context.Consumer';
  10362. case REACT_PROVIDER_TYPE:
  10363. return 'Context.Provider';
  10364. case REACT_FORWARD_REF_TYPE:
  10365. return getWrappedName(type, type.render, 'ForwardRef');
  10366. case REACT_MEMO_TYPE:
  10367. return getComponentName(type.type);
  10368. case REACT_LAZY_TYPE:
  10369. {
  10370. var thenable = type;
  10371. var resolvedThenable = refineResolvedLazyComponent(thenable);
  10372. if (resolvedThenable) {
  10373. return getComponentName(resolvedThenable);
  10374. }
  10375. break;
  10376. }
  10377. }
  10378. }
  10379. return null;
  10380. }
  10381. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  10382. function describeFiber(fiber) {
  10383. switch (fiber.tag) {
  10384. case HostRoot:
  10385. case HostPortal:
  10386. case HostText:
  10387. case Fragment:
  10388. case ContextProvider:
  10389. case ContextConsumer:
  10390. return '';
  10391. default:
  10392. var owner = fiber._debugOwner;
  10393. var source = fiber._debugSource;
  10394. var name = getComponentName(fiber.type);
  10395. var ownerName = null;
  10396. if (owner) {
  10397. ownerName = getComponentName(owner.type);
  10398. }
  10399. return describeComponentFrame(name, source, ownerName);
  10400. }
  10401. }
  10402. function getStackByFiberInDevAndProd(workInProgress) {
  10403. var info = '';
  10404. var node = workInProgress;
  10405. do {
  10406. info += describeFiber(node);
  10407. node = node.return;
  10408. } while (node);
  10409. return info;
  10410. }
  10411. var current = null;
  10412. var phase = null;
  10413. function getCurrentFiberOwnerNameInDevOrNull() {
  10414. {
  10415. if (current === null) {
  10416. return null;
  10417. }
  10418. var owner = current._debugOwner;
  10419. if (owner !== null && typeof owner !== 'undefined') {
  10420. return getComponentName(owner.type);
  10421. }
  10422. }
  10423. return null;
  10424. }
  10425. function getCurrentFiberStackInDev() {
  10426. {
  10427. if (current === null) {
  10428. return '';
  10429. }
  10430. // Safe because if current fiber exists, we are reconciling,
  10431. // and it is guaranteed to be the work-in-progress version.
  10432. return getStackByFiberInDevAndProd(current);
  10433. }
  10434. return '';
  10435. }
  10436. function resetCurrentFiber() {
  10437. {
  10438. ReactDebugCurrentFrame.getCurrentStack = null;
  10439. current = null;
  10440. phase = null;
  10441. }
  10442. }
  10443. function setCurrentFiber(fiber) {
  10444. {
  10445. ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackInDev;
  10446. current = fiber;
  10447. phase = null;
  10448. }
  10449. }
  10450. function setCurrentPhase(lifeCyclePhase) {
  10451. {
  10452. phase = lifeCyclePhase;
  10453. }
  10454. }
  10455. /**
  10456. * Similar to invariant but only logs a warning if the condition is not met.
  10457. * This can be used to log issues in development environments in critical
  10458. * paths. Removing the logging code for production environments will keep the
  10459. * same logic and follow the same code paths.
  10460. */
  10461. var warning = warningWithoutStack$1;
  10462. {
  10463. warning = function (condition, format) {
  10464. if (condition) {
  10465. return;
  10466. }
  10467. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  10468. var stack = ReactDebugCurrentFrame.getStackAddendum();
  10469. // eslint-disable-next-line react-internal/warning-and-invariant-args
  10470. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  10471. args[_key - 2] = arguments[_key];
  10472. }
  10473. warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));
  10474. };
  10475. }
  10476. var warning$1 = warning;
  10477. // A reserved attribute.
  10478. // It is handled by React separately and shouldn't be written to the DOM.
  10479. var RESERVED = 0;
  10480. // A simple string attribute.
  10481. // Attributes that aren't in the whitelist are presumed to have this type.
  10482. var STRING = 1;
  10483. // A string attribute that accepts booleans in React. In HTML, these are called
  10484. // "enumerated" attributes with "true" and "false" as possible values.
  10485. // When true, it should be set to a "true" string.
  10486. // When false, it should be set to a "false" string.
  10487. var BOOLEANISH_STRING = 2;
  10488. // A real boolean attribute.
  10489. // When true, it should be present (set either to an empty string or its name).
  10490. // When false, it should be omitted.
  10491. var BOOLEAN = 3;
  10492. // An attribute that can be used as a flag as well as with a value.
  10493. // When true, it should be present (set either to an empty string or its name).
  10494. // When false, it should be omitted.
  10495. // For any other value, should be present with that value.
  10496. var OVERLOADED_BOOLEAN = 4;
  10497. // An attribute that must be numeric or parse as a numeric.
  10498. // When falsy, it should be removed.
  10499. var NUMERIC = 5;
  10500. // An attribute that must be positive numeric or parse as a positive numeric.
  10501. // When falsy, it should be removed.
  10502. var POSITIVE_NUMERIC = 6;
  10503. /* eslint-disable max-len */
  10504. var ATTRIBUTE_NAME_START_CHAR = ':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';
  10505. /* eslint-enable max-len */
  10506. var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040';
  10507. var ROOT_ATTRIBUTE_NAME = 'data-reactroot';
  10508. var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');
  10509. var hasOwnProperty = Object.prototype.hasOwnProperty;
  10510. var illegalAttributeNameCache = {};
  10511. var validatedAttributeNameCache = {};
  10512. function isAttributeNameSafe(attributeName) {
  10513. if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {
  10514. return true;
  10515. }
  10516. if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {
  10517. return false;
  10518. }
  10519. if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {
  10520. validatedAttributeNameCache[attributeName] = true;
  10521. return true;
  10522. }
  10523. illegalAttributeNameCache[attributeName] = true;
  10524. {
  10525. warning$1(false, 'Invalid attribute name: `%s`', attributeName);
  10526. }
  10527. return false;
  10528. }
  10529. function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
  10530. if (propertyInfo !== null) {
  10531. return propertyInfo.type === RESERVED;
  10532. }
  10533. if (isCustomComponentTag) {
  10534. return false;
  10535. }
  10536. if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
  10537. return true;
  10538. }
  10539. return false;
  10540. }
  10541. function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
  10542. if (propertyInfo !== null && propertyInfo.type === RESERVED) {
  10543. return false;
  10544. }
  10545. switch (typeof value) {
  10546. case 'function':
  10547. // $FlowIssue symbol is perfectly valid here
  10548. case 'symbol':
  10549. // eslint-disable-line
  10550. return true;
  10551. case 'boolean':
  10552. {
  10553. if (isCustomComponentTag) {
  10554. return false;
  10555. }
  10556. if (propertyInfo !== null) {
  10557. return !propertyInfo.acceptsBooleans;
  10558. } else {
  10559. var prefix = name.toLowerCase().slice(0, 5);
  10560. return prefix !== 'data-' && prefix !== 'aria-';
  10561. }
  10562. }
  10563. default:
  10564. return false;
  10565. }
  10566. }
  10567. function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) {
  10568. if (value === null || typeof value === 'undefined') {
  10569. return true;
  10570. }
  10571. if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) {
  10572. return true;
  10573. }
  10574. if (isCustomComponentTag) {
  10575. return false;
  10576. }
  10577. if (propertyInfo !== null) {
  10578. switch (propertyInfo.type) {
  10579. case BOOLEAN:
  10580. return !value;
  10581. case OVERLOADED_BOOLEAN:
  10582. return value === false;
  10583. case NUMERIC:
  10584. return isNaN(value);
  10585. case POSITIVE_NUMERIC:
  10586. return isNaN(value) || value < 1;
  10587. }
  10588. }
  10589. return false;
  10590. }
  10591. function getPropertyInfo(name) {
  10592. return properties.hasOwnProperty(name) ? properties[name] : null;
  10593. }
  10594. function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL) {
  10595. this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;
  10596. this.attributeName = attributeName;
  10597. this.attributeNamespace = attributeNamespace;
  10598. this.mustUseProperty = mustUseProperty;
  10599. this.propertyName = name;
  10600. this.type = type;
  10601. this.sanitizeURL = sanitizeURL;
  10602. }
  10603. // When adding attributes to this list, be sure to also add them to
  10604. // the `possibleStandardNames` module to ensure casing and incorrect
  10605. // name warnings.
  10606. var properties = {};
  10607. // These props are reserved by React. They shouldn't be written to the DOM.
  10608. ['children', 'dangerouslySetInnerHTML',
  10609. // TODO: This prevents the assignment of defaultValue to regular
  10610. // elements (not just inputs). Now that ReactDOMInput assigns to the
  10611. // defaultValue property -- do we need this?
  10612. 'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'].forEach(function (name) {
  10613. properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty
  10614. name, // attributeName
  10615. null, // attributeNamespace
  10616. false);
  10617. } // sanitizeURL
  10618. );
  10619. // A few React string attributes have a different name.
  10620. // This is a mapping from React prop names to the attribute names.
  10621. [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {
  10622. var name = _ref[0],
  10623. attributeName = _ref[1];
  10624. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  10625. attributeName, // attributeName
  10626. null, // attributeNamespace
  10627. false);
  10628. } // sanitizeURL
  10629. );
  10630. // These are "enumerated" HTML attributes that accept "true" and "false".
  10631. // In React, we let users pass `true` and `false` even though technically
  10632. // these aren't boolean attributes (they are coerced to strings).
  10633. ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {
  10634. properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  10635. name.toLowerCase(), // attributeName
  10636. null, // attributeNamespace
  10637. false);
  10638. } // sanitizeURL
  10639. );
  10640. // These are "enumerated" SVG attributes that accept "true" and "false".
  10641. // In React, we let users pass `true` and `false` even though technically
  10642. // these aren't boolean attributes (they are coerced to strings).
  10643. // Since these are SVG attributes, their attribute names are case-sensitive.
  10644. ['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {
  10645. properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  10646. name, // attributeName
  10647. null, // attributeNamespace
  10648. false);
  10649. } // sanitizeURL
  10650. );
  10651. // These are HTML boolean attributes.
  10652. ['allowFullScreen', 'async',
  10653. // Note: there is a special case that prevents it from being written to the DOM
  10654. // on the client side because the browsers are inconsistent. Instead we call focus().
  10655. 'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless',
  10656. // Microdata
  10657. 'itemScope'].forEach(function (name) {
  10658. properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty
  10659. name.toLowerCase(), // attributeName
  10660. null, // attributeNamespace
  10661. false);
  10662. } // sanitizeURL
  10663. );
  10664. // These are the few React props that we set as DOM properties
  10665. // rather than attributes. These are all booleans.
  10666. ['checked',
  10667. // Note: `option.selected` is not updated if `select.multiple` is
  10668. // disabled with `removeAttribute`. We have special logic for handling this.
  10669. 'multiple', 'muted', 'selected'].forEach(function (name) {
  10670. properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty
  10671. name, // attributeName
  10672. null, // attributeNamespace
  10673. false);
  10674. } // sanitizeURL
  10675. );
  10676. // These are HTML attributes that are "overloaded booleans": they behave like
  10677. // booleans, but can also accept a string value.
  10678. ['capture', 'download'].forEach(function (name) {
  10679. properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty
  10680. name, // attributeName
  10681. null, // attributeNamespace
  10682. false);
  10683. } // sanitizeURL
  10684. );
  10685. // These are HTML attributes that must be positive numbers.
  10686. ['cols', 'rows', 'size', 'span'].forEach(function (name) {
  10687. properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty
  10688. name, // attributeName
  10689. null, // attributeNamespace
  10690. false);
  10691. } // sanitizeURL
  10692. );
  10693. // These are HTML attributes that must be numbers.
  10694. ['rowSpan', 'start'].forEach(function (name) {
  10695. properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty
  10696. name.toLowerCase(), // attributeName
  10697. null, // attributeNamespace
  10698. false);
  10699. } // sanitizeURL
  10700. );
  10701. var CAMELIZE = /[\-\:]([a-z])/g;
  10702. var capitalize = function (token) {
  10703. return token[1].toUpperCase();
  10704. };
  10705. // This is a list of all SVG attributes that need special casing, namespacing,
  10706. // or boolean value assignment. Regular attributes that just accept strings
  10707. // and have the same names are omitted, just like in the HTML whitelist.
  10708. // Some of these attributes can be hard to find. This list was created by
  10709. // scrapping the MDN documentation.
  10710. ['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'xmlns:xlink', 'x-height'].forEach(function (attributeName) {
  10711. var name = attributeName.replace(CAMELIZE, capitalize);
  10712. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  10713. attributeName, null, // attributeNamespace
  10714. false);
  10715. } // sanitizeURL
  10716. );
  10717. // String SVG attributes with the xlink namespace.
  10718. ['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type'].forEach(function (attributeName) {
  10719. var name = attributeName.replace(CAMELIZE, capitalize);
  10720. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  10721. attributeName, 'http://www.w3.org/1999/xlink', false);
  10722. } // sanitizeURL
  10723. );
  10724. // String SVG attributes with the xml namespace.
  10725. ['xml:base', 'xml:lang', 'xml:space'].forEach(function (attributeName) {
  10726. var name = attributeName.replace(CAMELIZE, capitalize);
  10727. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  10728. attributeName, 'http://www.w3.org/XML/1998/namespace', false);
  10729. } // sanitizeURL
  10730. );
  10731. // These attribute exists both in HTML and SVG.
  10732. // The attribute name is case-sensitive in SVG so we can't just use
  10733. // the React name like we do for attributes that exist only in HTML.
  10734. ['tabIndex', 'crossOrigin'].forEach(function (attributeName) {
  10735. properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
  10736. attributeName.toLowerCase(), // attributeName
  10737. null, // attributeNamespace
  10738. false);
  10739. } // sanitizeURL
  10740. );
  10741. // These attributes accept URLs. These must not allow javascript: URLS.
  10742. // These will also need to accept Trusted Types object in the future.
  10743. var xlinkHref = 'xlinkHref';
  10744. properties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, // mustUseProperty
  10745. 'xlink:href', 'http://www.w3.org/1999/xlink', true);
  10746. ['src', 'href', 'action', 'formAction'].forEach(function (attributeName) {
  10747. properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
  10748. attributeName.toLowerCase(), // attributeName
  10749. null, // attributeNamespace
  10750. true);
  10751. } // sanitizeURL
  10752. );
  10753. var ReactDebugCurrentFrame$1 = null;
  10754. {
  10755. ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
  10756. }
  10757. // A javascript: URL can contain leading C0 control or \u0020 SPACE,
  10758. // and any newline or tab are filtered out as if they're not part of the URL.
  10759. // https://url.spec.whatwg.org/#url-parsing
  10760. // Tab or newline are defined as \r\n\t:
  10761. // https://infra.spec.whatwg.org/#ascii-tab-or-newline
  10762. // A C0 control is a code point in the range \u0000 NULL to \u001F
  10763. // INFORMATION SEPARATOR ONE, inclusive:
  10764. // https://infra.spec.whatwg.org/#c0-control-or-space
  10765. /* eslint-disable max-len */
  10766. var isJavaScriptProtocol = /^[\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;
  10767. var didWarn = false;
  10768. function sanitizeURL(url) {
  10769. if (disableJavaScriptURLs) {
  10770. (function () {
  10771. if (!!isJavaScriptProtocol.test(url)) {
  10772. {
  10773. throw ReactError(Error('React has blocked a javascript: URL as a security precaution.' + (ReactDebugCurrentFrame$1.getStackAddendum())));
  10774. }
  10775. }
  10776. })();
  10777. } else if ( true && !didWarn && isJavaScriptProtocol.test(url)) {
  10778. didWarn = true;
  10779. warning$1(false, 'A future version of React will block javascript: URLs as a security precaution. ' + 'Use event handlers instead if you can. If you need to generate unsafe HTML try ' + 'using dangerouslySetInnerHTML instead. React was passed %s.', JSON.stringify(url));
  10780. }
  10781. }
  10782. /**
  10783. * Get the value for a property on a node. Only used in DEV for SSR validation.
  10784. * The "expected" argument is used as a hint of what the expected value is.
  10785. * Some properties have multiple equivalent values.
  10786. */
  10787. function getValueForProperty(node, name, expected, propertyInfo) {
  10788. {
  10789. if (propertyInfo.mustUseProperty) {
  10790. var propertyName = propertyInfo.propertyName;
  10791. return node[propertyName];
  10792. } else {
  10793. if (!disableJavaScriptURLs && propertyInfo.sanitizeURL) {
  10794. // If we haven't fully disabled javascript: URLs, and if
  10795. // the hydration is successful of a javascript: URL, we
  10796. // still want to warn on the client.
  10797. sanitizeURL('' + expected);
  10798. }
  10799. var attributeName = propertyInfo.attributeName;
  10800. var stringValue = null;
  10801. if (propertyInfo.type === OVERLOADED_BOOLEAN) {
  10802. if (node.hasAttribute(attributeName)) {
  10803. var value = node.getAttribute(attributeName);
  10804. if (value === '') {
  10805. return true;
  10806. }
  10807. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  10808. return value;
  10809. }
  10810. if (value === '' + expected) {
  10811. return expected;
  10812. }
  10813. return value;
  10814. }
  10815. } else if (node.hasAttribute(attributeName)) {
  10816. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  10817. // We had an attribute but shouldn't have had one, so read it
  10818. // for the error message.
  10819. return node.getAttribute(attributeName);
  10820. }
  10821. if (propertyInfo.type === BOOLEAN) {
  10822. // If this was a boolean, it doesn't matter what the value is
  10823. // the fact that we have it is the same as the expected.
  10824. return expected;
  10825. }
  10826. // Even if this property uses a namespace we use getAttribute
  10827. // because we assume its namespaced name is the same as our config.
  10828. // To use getAttributeNS we need the local name which we don't have
  10829. // in our config atm.
  10830. stringValue = node.getAttribute(attributeName);
  10831. }
  10832. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  10833. return stringValue === null ? expected : stringValue;
  10834. } else if (stringValue === '' + expected) {
  10835. return expected;
  10836. } else {
  10837. return stringValue;
  10838. }
  10839. }
  10840. }
  10841. }
  10842. /**
  10843. * Get the value for a attribute on a node. Only used in DEV for SSR validation.
  10844. * The third argument is used as a hint of what the expected value is. Some
  10845. * attributes have multiple equivalent values.
  10846. */
  10847. function getValueForAttribute(node, name, expected) {
  10848. {
  10849. if (!isAttributeNameSafe(name)) {
  10850. return;
  10851. }
  10852. if (!node.hasAttribute(name)) {
  10853. return expected === undefined ? undefined : null;
  10854. }
  10855. var value = node.getAttribute(name);
  10856. if (value === '' + expected) {
  10857. return expected;
  10858. }
  10859. return value;
  10860. }
  10861. }
  10862. /**
  10863. * Sets the value for a property on a node.
  10864. *
  10865. * @param {DOMElement} node
  10866. * @param {string} name
  10867. * @param {*} value
  10868. */
  10869. function setValueForProperty(node, name, value, isCustomComponentTag) {
  10870. var propertyInfo = getPropertyInfo(name);
  10871. if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) {
  10872. return;
  10873. }
  10874. if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) {
  10875. value = null;
  10876. }
  10877. // If the prop isn't in the special list, treat it as a simple attribute.
  10878. if (isCustomComponentTag || propertyInfo === null) {
  10879. if (isAttributeNameSafe(name)) {
  10880. var _attributeName = name;
  10881. if (value === null) {
  10882. node.removeAttribute(_attributeName);
  10883. } else {
  10884. node.setAttribute(_attributeName, '' + value);
  10885. }
  10886. }
  10887. return;
  10888. }
  10889. var mustUseProperty = propertyInfo.mustUseProperty;
  10890. if (mustUseProperty) {
  10891. var propertyName = propertyInfo.propertyName;
  10892. if (value === null) {
  10893. var type = propertyInfo.type;
  10894. node[propertyName] = type === BOOLEAN ? false : '';
  10895. } else {
  10896. // Contrary to `setAttribute`, object properties are properly
  10897. // `toString`ed by IE8/9.
  10898. node[propertyName] = value;
  10899. }
  10900. return;
  10901. }
  10902. // The rest are treated as attributes with special cases.
  10903. var attributeName = propertyInfo.attributeName,
  10904. attributeNamespace = propertyInfo.attributeNamespace;
  10905. if (value === null) {
  10906. node.removeAttribute(attributeName);
  10907. } else {
  10908. var _type = propertyInfo.type;
  10909. var attributeValue = void 0;
  10910. if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) {
  10911. attributeValue = '';
  10912. } else {
  10913. // `setAttribute` with objects becomes only `[object]` in IE8/9,
  10914. // ('' + value) makes it output the correct toString()-value.
  10915. attributeValue = '' + value;
  10916. if (propertyInfo.sanitizeURL) {
  10917. sanitizeURL(attributeValue);
  10918. }
  10919. }
  10920. if (attributeNamespace) {
  10921. node.setAttributeNS(attributeNamespace, attributeName, attributeValue);
  10922. } else {
  10923. node.setAttribute(attributeName, attributeValue);
  10924. }
  10925. }
  10926. }
  10927. // Flow does not allow string concatenation of most non-string types. To work
  10928. // around this limitation, we use an opaque type that can only be obtained by
  10929. // passing the value through getToStringValue first.
  10930. function toString(value) {
  10931. return '' + value;
  10932. }
  10933. function getToStringValue(value) {
  10934. switch (typeof value) {
  10935. case 'boolean':
  10936. case 'number':
  10937. case 'object':
  10938. case 'string':
  10939. case 'undefined':
  10940. return value;
  10941. default:
  10942. // function, symbol are assigned as empty strings
  10943. return '';
  10944. }
  10945. }
  10946. var ReactDebugCurrentFrame$2 = null;
  10947. var ReactControlledValuePropTypes = {
  10948. checkPropTypes: null
  10949. };
  10950. {
  10951. ReactDebugCurrentFrame$2 = ReactSharedInternals.ReactDebugCurrentFrame;
  10952. var hasReadOnlyValue = {
  10953. button: true,
  10954. checkbox: true,
  10955. image: true,
  10956. hidden: true,
  10957. radio: true,
  10958. reset: true,
  10959. submit: true
  10960. };
  10961. var propTypes = {
  10962. value: function (props, propName, componentName) {
  10963. if (hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled || props[propName] == null || enableFlareAPI && props.listeners) {
  10964. return null;
  10965. }
  10966. return new Error('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`.');
  10967. },
  10968. checked: function (props, propName, componentName) {
  10969. if (props.onChange || props.readOnly || props.disabled || props[propName] == null || enableFlareAPI && props.listeners) {
  10970. return null;
  10971. }
  10972. return new Error('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`.');
  10973. }
  10974. };
  10975. /**
  10976. * Provide a linked `value` attribute for controlled forms. You should not use
  10977. * this outside of the ReactDOM controlled form components.
  10978. */
  10979. ReactControlledValuePropTypes.checkPropTypes = function (tagName, props) {
  10980. checkPropTypes(propTypes, props, 'prop', tagName, ReactDebugCurrentFrame$2.getStackAddendum);
  10981. };
  10982. }
  10983. // TODO: direct imports like some-package/src/* are bad. Fix me.
  10984. var didWarnValueDefaultValue = false;
  10985. var didWarnCheckedDefaultChecked = false;
  10986. var didWarnControlledToUncontrolled = false;
  10987. var didWarnUncontrolledToControlled = false;
  10988. function isControlled(props) {
  10989. var usesChecked = props.type === 'checkbox' || props.type === 'radio';
  10990. return usesChecked ? props.checked != null : props.value != null;
  10991. }
  10992. /**
  10993. * Implements an <input> host component that allows setting these optional
  10994. * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.
  10995. *
  10996. * If `checked` or `value` are not supplied (or null/undefined), user actions
  10997. * that affect the checked state or value will trigger updates to the element.
  10998. *
  10999. * If they are supplied (and not null/undefined), the rendered element will not
  11000. * trigger updates to the element. Instead, the props must change in order for
  11001. * the rendered element to be updated.
  11002. *
  11003. * The rendered element will be initialized as unchecked (or `defaultChecked`)
  11004. * with an empty value (or `defaultValue`).
  11005. *
  11006. * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html
  11007. */
  11008. function getHostProps(element, props) {
  11009. var node = element;
  11010. var checked = props.checked;
  11011. var hostProps = _assign({}, props, {
  11012. defaultChecked: undefined,
  11013. defaultValue: undefined,
  11014. value: undefined,
  11015. checked: checked != null ? checked : node._wrapperState.initialChecked
  11016. });
  11017. return hostProps;
  11018. }
  11019. function initWrapperState(element, props) {
  11020. {
  11021. ReactControlledValuePropTypes.checkPropTypes('input', props);
  11022. if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {
  11023. warning$1(false, '%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://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);
  11024. didWarnCheckedDefaultChecked = true;
  11025. }
  11026. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
  11027. warning$1(false, '%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://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);
  11028. didWarnValueDefaultValue = true;
  11029. }
  11030. }
  11031. var node = element;
  11032. var defaultValue = props.defaultValue == null ? '' : props.defaultValue;
  11033. node._wrapperState = {
  11034. initialChecked: props.checked != null ? props.checked : props.defaultChecked,
  11035. initialValue: getToStringValue(props.value != null ? props.value : defaultValue),
  11036. controlled: isControlled(props)
  11037. };
  11038. }
  11039. function updateChecked(element, props) {
  11040. var node = element;
  11041. var checked = props.checked;
  11042. if (checked != null) {
  11043. setValueForProperty(node, 'checked', checked, false);
  11044. }
  11045. }
  11046. function updateWrapper(element, props) {
  11047. var node = element;
  11048. {
  11049. var _controlled = isControlled(props);
  11050. if (!node._wrapperState.controlled && _controlled && !didWarnUncontrolledToControlled) {
  11051. warning$1(false, 'A component is changing an uncontrolled input of type %s to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type);
  11052. didWarnUncontrolledToControlled = true;
  11053. }
  11054. if (node._wrapperState.controlled && !_controlled && !didWarnControlledToUncontrolled) {
  11055. warning$1(false, 'A component is changing a controlled input of type %s to be uncontrolled. ' + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type);
  11056. didWarnControlledToUncontrolled = true;
  11057. }
  11058. }
  11059. updateChecked(element, props);
  11060. var value = getToStringValue(props.value);
  11061. var type = props.type;
  11062. if (value != null) {
  11063. if (type === 'number') {
  11064. if (value === 0 && node.value === '' ||
  11065. // We explicitly want to coerce to number here if possible.
  11066. // eslint-disable-next-line
  11067. node.value != value) {
  11068. node.value = toString(value);
  11069. }
  11070. } else if (node.value !== toString(value)) {
  11071. node.value = toString(value);
  11072. }
  11073. } else if (type === 'submit' || type === 'reset') {
  11074. // Submit/reset inputs need the attribute removed completely to avoid
  11075. // blank-text buttons.
  11076. node.removeAttribute('value');
  11077. return;
  11078. }
  11079. if (disableInputAttributeSyncing) {
  11080. // When not syncing the value attribute, React only assigns a new value
  11081. // whenever the defaultValue React prop has changed. When not present,
  11082. // React does nothing
  11083. if (props.hasOwnProperty('defaultValue')) {
  11084. setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
  11085. }
  11086. } else {
  11087. // When syncing the value attribute, the value comes from a cascade of
  11088. // properties:
  11089. // 1. The value React property
  11090. // 2. The defaultValue React property
  11091. // 3. Otherwise there should be no change
  11092. if (props.hasOwnProperty('value')) {
  11093. setDefaultValue(node, props.type, value);
  11094. } else if (props.hasOwnProperty('defaultValue')) {
  11095. setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
  11096. }
  11097. }
  11098. if (disableInputAttributeSyncing) {
  11099. // When not syncing the checked attribute, the attribute is directly
  11100. // controllable from the defaultValue React property. It needs to be
  11101. // updated as new props come in.
  11102. if (props.defaultChecked == null) {
  11103. node.removeAttribute('checked');
  11104. } else {
  11105. node.defaultChecked = !!props.defaultChecked;
  11106. }
  11107. } else {
  11108. // When syncing the checked attribute, it only changes when it needs
  11109. // to be removed, such as transitioning from a checkbox into a text input
  11110. if (props.checked == null && props.defaultChecked != null) {
  11111. node.defaultChecked = !!props.defaultChecked;
  11112. }
  11113. }
  11114. }
  11115. function postMountWrapper(element, props, isHydrating) {
  11116. var node = element;
  11117. // Do not assign value if it is already set. This prevents user text input
  11118. // from being lost during SSR hydration.
  11119. if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) {
  11120. var type = props.type;
  11121. var isButton = type === 'submit' || type === 'reset';
  11122. // Avoid setting value attribute on submit/reset inputs as it overrides the
  11123. // default value provided by the browser. See: #12872
  11124. if (isButton && (props.value === undefined || props.value === null)) {
  11125. return;
  11126. }
  11127. var _initialValue = toString(node._wrapperState.initialValue);
  11128. // Do not assign value if it is already set. This prevents user text input
  11129. // from being lost during SSR hydration.
  11130. if (!isHydrating) {
  11131. if (disableInputAttributeSyncing) {
  11132. var value = getToStringValue(props.value);
  11133. // When not syncing the value attribute, the value property points
  11134. // directly to the React prop. Only assign it if it exists.
  11135. if (value != null) {
  11136. // Always assign on buttons so that it is possible to assign an
  11137. // empty string to clear button text.
  11138. //
  11139. // Otherwise, do not re-assign the value property if is empty. This
  11140. // potentially avoids a DOM write and prevents Firefox (~60.0.1) from
  11141. // prematurely marking required inputs as invalid. Equality is compared
  11142. // to the current value in case the browser provided value is not an
  11143. // empty string.
  11144. if (isButton || value !== node.value) {
  11145. node.value = toString(value);
  11146. }
  11147. }
  11148. } else {
  11149. // When syncing the value attribute, the value property should use
  11150. // the wrapperState._initialValue property. This uses:
  11151. //
  11152. // 1. The value React property when present
  11153. // 2. The defaultValue React property when present
  11154. // 3. An empty string
  11155. if (_initialValue !== node.value) {
  11156. node.value = _initialValue;
  11157. }
  11158. }
  11159. }
  11160. if (disableInputAttributeSyncing) {
  11161. // When not syncing the value attribute, assign the value attribute
  11162. // directly from the defaultValue React property (when present)
  11163. var defaultValue = getToStringValue(props.defaultValue);
  11164. if (defaultValue != null) {
  11165. node.defaultValue = toString(defaultValue);
  11166. }
  11167. } else {
  11168. // Otherwise, the value attribute is synchronized to the property,
  11169. // so we assign defaultValue to the same thing as the value property
  11170. // assignment step above.
  11171. node.defaultValue = _initialValue;
  11172. }
  11173. }
  11174. // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug
  11175. // this is needed to work around a chrome bug where setting defaultChecked
  11176. // will sometimes influence the value of checked (even after detachment).
  11177. // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416
  11178. // We need to temporarily unset name to avoid disrupting radio button groups.
  11179. var name = node.name;
  11180. if (name !== '') {
  11181. node.name = '';
  11182. }
  11183. if (disableInputAttributeSyncing) {
  11184. // When not syncing the checked attribute, the checked property
  11185. // never gets assigned. It must be manually set. We don't want
  11186. // to do this when hydrating so that existing user input isn't
  11187. // modified
  11188. if (!isHydrating) {
  11189. updateChecked(element, props);
  11190. }
  11191. // Only assign the checked attribute if it is defined. This saves
  11192. // a DOM write when controlling the checked attribute isn't needed
  11193. // (text inputs, submit/reset)
  11194. if (props.hasOwnProperty('defaultChecked')) {
  11195. node.defaultChecked = !node.defaultChecked;
  11196. node.defaultChecked = !!props.defaultChecked;
  11197. }
  11198. } else {
  11199. // When syncing the checked attribute, both the checked property and
  11200. // attribute are assigned at the same time using defaultChecked. This uses:
  11201. //
  11202. // 1. The checked React property when present
  11203. // 2. The defaultChecked React property when present
  11204. // 3. Otherwise, false
  11205. node.defaultChecked = !node.defaultChecked;
  11206. node.defaultChecked = !!node._wrapperState.initialChecked;
  11207. }
  11208. if (name !== '') {
  11209. node.name = name;
  11210. }
  11211. }
  11212. function restoreControlledState(element, props) {
  11213. var node = element;
  11214. updateWrapper(node, props);
  11215. updateNamedCousins(node, props);
  11216. }
  11217. function updateNamedCousins(rootNode, props) {
  11218. var name = props.name;
  11219. if (props.type === 'radio' && name != null) {
  11220. var queryRoot = rootNode;
  11221. while (queryRoot.parentNode) {
  11222. queryRoot = queryRoot.parentNode;
  11223. }
  11224. // If `rootNode.form` was non-null, then we could try `form.elements`,
  11225. // but that sometimes behaves strangely in IE8. We could also try using
  11226. // `form.getElementsByName`, but that will only return direct children
  11227. // and won't include inputs that use the HTML5 `form=` attribute. Since
  11228. // the input might not even be in a form. It might not even be in the
  11229. // document. Let's just use the local `querySelectorAll` to ensure we don't
  11230. // miss anything.
  11231. var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]');
  11232. for (var i = 0; i < group.length; i++) {
  11233. var otherNode = group[i];
  11234. if (otherNode === rootNode || otherNode.form !== rootNode.form) {
  11235. continue;
  11236. }
  11237. // This will throw if radio buttons rendered by different copies of React
  11238. // and the same name are rendered into the same form (same as #1939).
  11239. // That's probably okay; we don't support it just as we don't support
  11240. // mixing React radio buttons with non-React ones.
  11241. var otherProps = getFiberCurrentPropsFromNode$1(otherNode);
  11242. (function () {
  11243. if (!otherProps) {
  11244. {
  11245. throw ReactError(Error('ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.'));
  11246. }
  11247. }
  11248. })();
  11249. // We need update the tracked value on the named cousin since the value
  11250. // was changed but the input saw no event or value set
  11251. updateValueIfChanged(otherNode);
  11252. // If this is a controlled radio button group, forcing the input that
  11253. // was previously checked to update will cause it to be come re-checked
  11254. // as appropriate.
  11255. updateWrapper(otherNode, otherProps);
  11256. }
  11257. }
  11258. }
  11259. // In Chrome, assigning defaultValue to certain input types triggers input validation.
  11260. // For number inputs, the display value loses trailing decimal points. For email inputs,
  11261. // Chrome raises "The specified value <x> is not a valid email address".
  11262. //
  11263. // Here we check to see if the defaultValue has actually changed, avoiding these problems
  11264. // when the user is inputting text
  11265. //
  11266. // https://github.com/facebook/react/issues/7253
  11267. function setDefaultValue(node, type, value) {
  11268. if (
  11269. // Focused number inputs synchronize on blur. See ChangeEventPlugin.js
  11270. type !== 'number' || node.ownerDocument.activeElement !== node) {
  11271. if (value == null) {
  11272. node.defaultValue = toString(node._wrapperState.initialValue);
  11273. } else if (node.defaultValue !== toString(value)) {
  11274. node.defaultValue = toString(value);
  11275. }
  11276. }
  11277. }
  11278. var eventTypes$1 = {
  11279. change: {
  11280. phasedRegistrationNames: {
  11281. bubbled: 'onChange',
  11282. captured: 'onChangeCapture'
  11283. },
  11284. dependencies: [TOP_BLUR, TOP_CHANGE, TOP_CLICK, TOP_FOCUS, TOP_INPUT, TOP_KEY_DOWN, TOP_KEY_UP, TOP_SELECTION_CHANGE]
  11285. }
  11286. };
  11287. function createAndAccumulateChangeEvent(inst, nativeEvent, target) {
  11288. var event = SyntheticEvent.getPooled(eventTypes$1.change, inst, nativeEvent, target);
  11289. event.type = 'change';
  11290. // Flag this event loop as needing state restore.
  11291. enqueueStateRestore(target);
  11292. accumulateTwoPhaseDispatches(event);
  11293. return event;
  11294. }
  11295. /**
  11296. * For IE shims
  11297. */
  11298. var activeElement = null;
  11299. var activeElementInst = null;
  11300. /**
  11301. * SECTION: handle `change` event
  11302. */
  11303. function shouldUseChangeEvent(elem) {
  11304. var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
  11305. return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';
  11306. }
  11307. function manualDispatchChangeEvent(nativeEvent) {
  11308. var event = createAndAccumulateChangeEvent(activeElementInst, nativeEvent, getEventTarget(nativeEvent));
  11309. // If change and propertychange bubbled, we'd just bind to it like all the
  11310. // other events and have it go through ReactBrowserEventEmitter. Since it
  11311. // doesn't, we manually listen for the events and so we have to enqueue and
  11312. // process the abstract event manually.
  11313. //
  11314. // Batching is necessary here in order to ensure that all event handlers run
  11315. // before the next rerender (including event handlers attached to ancestor
  11316. // elements instead of directly on the input). Without this, controlled
  11317. // components don't work properly in conjunction with event bubbling because
  11318. // the component is rerendered and the value reverted before all the event
  11319. // handlers can run. See https://github.com/facebook/react/issues/708.
  11320. batchedUpdates(runEventInBatch, event);
  11321. }
  11322. function runEventInBatch(event) {
  11323. runEventsInBatch(event);
  11324. }
  11325. function getInstIfValueChanged(targetInst) {
  11326. var targetNode = getNodeFromInstance$1(targetInst);
  11327. if (updateValueIfChanged(targetNode)) {
  11328. return targetInst;
  11329. }
  11330. }
  11331. function getTargetInstForChangeEvent(topLevelType, targetInst) {
  11332. if (topLevelType === TOP_CHANGE) {
  11333. return targetInst;
  11334. }
  11335. }
  11336. /**
  11337. * SECTION: handle `input` event
  11338. */
  11339. var isInputEventSupported = false;
  11340. if (canUseDOM) {
  11341. // IE9 claims to support the input event but fails to trigger it when
  11342. // deleting text, so we ignore its input events.
  11343. isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9);
  11344. }
  11345. /**
  11346. * (For IE <=9) Starts tracking propertychange events on the passed-in element
  11347. * and override the value property so that we can distinguish user events from
  11348. * value changes in JS.
  11349. */
  11350. function startWatchingForValueChange(target, targetInst) {
  11351. activeElement = target;
  11352. activeElementInst = targetInst;
  11353. activeElement.attachEvent('onpropertychange', handlePropertyChange);
  11354. }
  11355. /**
  11356. * (For IE <=9) Removes the event listeners from the currently-tracked element,
  11357. * if any exists.
  11358. */
  11359. function stopWatchingForValueChange() {
  11360. if (!activeElement) {
  11361. return;
  11362. }
  11363. activeElement.detachEvent('onpropertychange', handlePropertyChange);
  11364. activeElement = null;
  11365. activeElementInst = null;
  11366. }
  11367. /**
  11368. * (For IE <=9) Handles a propertychange event, sending a `change` event if
  11369. * the value of the active element has changed.
  11370. */
  11371. function handlePropertyChange(nativeEvent) {
  11372. if (nativeEvent.propertyName !== 'value') {
  11373. return;
  11374. }
  11375. if (getInstIfValueChanged(activeElementInst)) {
  11376. manualDispatchChangeEvent(nativeEvent);
  11377. }
  11378. }
  11379. function handleEventsForInputEventPolyfill(topLevelType, target, targetInst) {
  11380. if (topLevelType === TOP_FOCUS) {
  11381. // In IE9, propertychange fires for most input events but is buggy and
  11382. // doesn't fire when text is deleted, but conveniently, selectionchange
  11383. // appears to fire in all of the remaining cases so we catch those and
  11384. // forward the event if the value has changed
  11385. // In either case, we don't want to call the event handler if the value
  11386. // is changed from JS so we redefine a setter for `.value` that updates
  11387. // our activeElementValue variable, allowing us to ignore those changes
  11388. //
  11389. // stopWatching() should be a noop here but we call it just in case we
  11390. // missed a blur event somehow.
  11391. stopWatchingForValueChange();
  11392. startWatchingForValueChange(target, targetInst);
  11393. } else if (topLevelType === TOP_BLUR) {
  11394. stopWatchingForValueChange();
  11395. }
  11396. }
  11397. // For IE8 and IE9.
  11398. function getTargetInstForInputEventPolyfill(topLevelType, targetInst) {
  11399. if (topLevelType === TOP_SELECTION_CHANGE || topLevelType === TOP_KEY_UP || topLevelType === TOP_KEY_DOWN) {
  11400. // On the selectionchange event, the target is just document which isn't
  11401. // helpful for us so just check activeElement instead.
  11402. //
  11403. // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire
  11404. // propertychange on the first input event after setting `value` from a
  11405. // script and fires only keydown, keypress, keyup. Catching keyup usually
  11406. // gets it and catching keydown lets us fire an event for the first
  11407. // keystroke if user does a key repeat (it'll be a little delayed: right
  11408. // before the second keystroke). Other input methods (e.g., paste) seem to
  11409. // fire selectionchange normally.
  11410. return getInstIfValueChanged(activeElementInst);
  11411. }
  11412. }
  11413. /**
  11414. * SECTION: handle `click` event
  11415. */
  11416. function shouldUseClickEvent(elem) {
  11417. // Use the `click` event to detect changes to checkbox and radio inputs.
  11418. // This approach works across all browsers, whereas `change` does not fire
  11419. // until `blur` in IE8.
  11420. var nodeName = elem.nodeName;
  11421. return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');
  11422. }
  11423. function getTargetInstForClickEvent(topLevelType, targetInst) {
  11424. if (topLevelType === TOP_CLICK) {
  11425. return getInstIfValueChanged(targetInst);
  11426. }
  11427. }
  11428. function getTargetInstForInputOrChangeEvent(topLevelType, targetInst) {
  11429. if (topLevelType === TOP_INPUT || topLevelType === TOP_CHANGE) {
  11430. return getInstIfValueChanged(targetInst);
  11431. }
  11432. }
  11433. function handleControlledInputBlur(node) {
  11434. var state = node._wrapperState;
  11435. if (!state || !state.controlled || node.type !== 'number') {
  11436. return;
  11437. }
  11438. if (!disableInputAttributeSyncing) {
  11439. // If controlled, assign the value attribute to the current value on blur
  11440. setDefaultValue(node, 'number', node.value);
  11441. }
  11442. }
  11443. /**
  11444. * This plugin creates an `onChange` event that normalizes change events
  11445. * across form elements. This event fires at a time when it's possible to
  11446. * change the element's value without seeing a flicker.
  11447. *
  11448. * Supported elements are:
  11449. * - input (see `isTextInputElement`)
  11450. * - textarea
  11451. * - select
  11452. */
  11453. var ChangeEventPlugin = {
  11454. eventTypes: eventTypes$1,
  11455. _isInputEventSupported: isInputEventSupported,
  11456. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  11457. var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
  11458. var getTargetInstFunc = void 0,
  11459. handleEventFunc = void 0;
  11460. if (shouldUseChangeEvent(targetNode)) {
  11461. getTargetInstFunc = getTargetInstForChangeEvent;
  11462. } else if (isTextInputElement(targetNode)) {
  11463. if (isInputEventSupported) {
  11464. getTargetInstFunc = getTargetInstForInputOrChangeEvent;
  11465. } else {
  11466. getTargetInstFunc = getTargetInstForInputEventPolyfill;
  11467. handleEventFunc = handleEventsForInputEventPolyfill;
  11468. }
  11469. } else if (shouldUseClickEvent(targetNode)) {
  11470. getTargetInstFunc = getTargetInstForClickEvent;
  11471. }
  11472. if (getTargetInstFunc) {
  11473. var inst = getTargetInstFunc(topLevelType, targetInst);
  11474. if (inst) {
  11475. var event = createAndAccumulateChangeEvent(inst, nativeEvent, nativeEventTarget);
  11476. return event;
  11477. }
  11478. }
  11479. if (handleEventFunc) {
  11480. handleEventFunc(topLevelType, targetNode, targetInst);
  11481. }
  11482. // When blurring, set the value attribute for number inputs
  11483. if (topLevelType === TOP_BLUR) {
  11484. handleControlledInputBlur(targetNode);
  11485. }
  11486. }
  11487. };
  11488. /**
  11489. * Module that is injectable into `EventPluginHub`, that specifies a
  11490. * deterministic ordering of `EventPlugin`s. A convenient way to reason about
  11491. * plugins, without having to package every one of them. This is better than
  11492. * having plugins be ordered in the same order that they are injected because
  11493. * that ordering would be influenced by the packaging order.
  11494. * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that
  11495. * preventing default on events is convenient in `SimpleEventPlugin` handlers.
  11496. */
  11497. var DOMEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin'];
  11498. var SyntheticUIEvent = SyntheticEvent.extend({
  11499. view: null,
  11500. detail: null
  11501. });
  11502. var modifierKeyToProp = {
  11503. Alt: 'altKey',
  11504. Control: 'ctrlKey',
  11505. Meta: 'metaKey',
  11506. Shift: 'shiftKey'
  11507. };
  11508. // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support
  11509. // getModifierState. If getModifierState is not supported, we map it to a set of
  11510. // modifier keys exposed by the event. In this case, Lock-keys are not supported.
  11511. /**
  11512. * Translation from modifier key to the associated property in the event.
  11513. * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers
  11514. */
  11515. function modifierStateGetter(keyArg) {
  11516. var syntheticEvent = this;
  11517. var nativeEvent = syntheticEvent.nativeEvent;
  11518. if (nativeEvent.getModifierState) {
  11519. return nativeEvent.getModifierState(keyArg);
  11520. }
  11521. var keyProp = modifierKeyToProp[keyArg];
  11522. return keyProp ? !!nativeEvent[keyProp] : false;
  11523. }
  11524. function getEventModifierState(nativeEvent) {
  11525. return modifierStateGetter;
  11526. }
  11527. var previousScreenX = 0;
  11528. var previousScreenY = 0;
  11529. // Use flags to signal movementX/Y has already been set
  11530. var isMovementXSet = false;
  11531. var isMovementYSet = false;
  11532. /**
  11533. * @interface MouseEvent
  11534. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  11535. */
  11536. var SyntheticMouseEvent = SyntheticUIEvent.extend({
  11537. screenX: null,
  11538. screenY: null,
  11539. clientX: null,
  11540. clientY: null,
  11541. pageX: null,
  11542. pageY: null,
  11543. ctrlKey: null,
  11544. shiftKey: null,
  11545. altKey: null,
  11546. metaKey: null,
  11547. getModifierState: getEventModifierState,
  11548. button: null,
  11549. buttons: null,
  11550. relatedTarget: function (event) {
  11551. return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement);
  11552. },
  11553. movementX: function (event) {
  11554. if ('movementX' in event) {
  11555. return event.movementX;
  11556. }
  11557. var screenX = previousScreenX;
  11558. previousScreenX = event.screenX;
  11559. if (!isMovementXSet) {
  11560. isMovementXSet = true;
  11561. return 0;
  11562. }
  11563. return event.type === 'mousemove' ? event.screenX - screenX : 0;
  11564. },
  11565. movementY: function (event) {
  11566. if ('movementY' in event) {
  11567. return event.movementY;
  11568. }
  11569. var screenY = previousScreenY;
  11570. previousScreenY = event.screenY;
  11571. if (!isMovementYSet) {
  11572. isMovementYSet = true;
  11573. return 0;
  11574. }
  11575. return event.type === 'mousemove' ? event.screenY - screenY : 0;
  11576. }
  11577. });
  11578. /**
  11579. * @interface PointerEvent
  11580. * @see http://www.w3.org/TR/pointerevents/
  11581. */
  11582. var SyntheticPointerEvent = SyntheticMouseEvent.extend({
  11583. pointerId: null,
  11584. width: null,
  11585. height: null,
  11586. pressure: null,
  11587. tangentialPressure: null,
  11588. tiltX: null,
  11589. tiltY: null,
  11590. twist: null,
  11591. pointerType: null,
  11592. isPrimary: null
  11593. });
  11594. var eventTypes$2 = {
  11595. mouseEnter: {
  11596. registrationName: 'onMouseEnter',
  11597. dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
  11598. },
  11599. mouseLeave: {
  11600. registrationName: 'onMouseLeave',
  11601. dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
  11602. },
  11603. pointerEnter: {
  11604. registrationName: 'onPointerEnter',
  11605. dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
  11606. },
  11607. pointerLeave: {
  11608. registrationName: 'onPointerLeave',
  11609. dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
  11610. }
  11611. };
  11612. var EnterLeaveEventPlugin = {
  11613. eventTypes: eventTypes$2,
  11614. /**
  11615. * For almost every interaction we care about, there will be both a top-level
  11616. * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that
  11617. * we do not extract duplicate events. However, moving the mouse into the
  11618. * browser from outside will not fire a `mouseout` event. In this case, we use
  11619. * the `mouseover` top-level event.
  11620. */
  11621. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  11622. var isOverEvent = topLevelType === TOP_MOUSE_OVER || topLevelType === TOP_POINTER_OVER;
  11623. var isOutEvent = topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_POINTER_OUT;
  11624. if (isOverEvent && (nativeEvent.relatedTarget || nativeEvent.fromElement)) {
  11625. return null;
  11626. }
  11627. if (!isOutEvent && !isOverEvent) {
  11628. // Must not be a mouse or pointer in or out - ignoring.
  11629. return null;
  11630. }
  11631. var win = void 0;
  11632. if (nativeEventTarget.window === nativeEventTarget) {
  11633. // `nativeEventTarget` is probably a window object.
  11634. win = nativeEventTarget;
  11635. } else {
  11636. // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
  11637. var doc = nativeEventTarget.ownerDocument;
  11638. if (doc) {
  11639. win = doc.defaultView || doc.parentWindow;
  11640. } else {
  11641. win = window;
  11642. }
  11643. }
  11644. var from = void 0;
  11645. var to = void 0;
  11646. if (isOutEvent) {
  11647. from = targetInst;
  11648. var related = nativeEvent.relatedTarget || nativeEvent.toElement;
  11649. to = related ? getClosestInstanceFromNode(related) : null;
  11650. } else {
  11651. // Moving to a node from outside the window.
  11652. from = null;
  11653. to = targetInst;
  11654. }
  11655. if (from === to) {
  11656. // Nothing pertains to our managed components.
  11657. return null;
  11658. }
  11659. var eventInterface = void 0,
  11660. leaveEventType = void 0,
  11661. enterEventType = void 0,
  11662. eventTypePrefix = void 0;
  11663. if (topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_MOUSE_OVER) {
  11664. eventInterface = SyntheticMouseEvent;
  11665. leaveEventType = eventTypes$2.mouseLeave;
  11666. enterEventType = eventTypes$2.mouseEnter;
  11667. eventTypePrefix = 'mouse';
  11668. } else if (topLevelType === TOP_POINTER_OUT || topLevelType === TOP_POINTER_OVER) {
  11669. eventInterface = SyntheticPointerEvent;
  11670. leaveEventType = eventTypes$2.pointerLeave;
  11671. enterEventType = eventTypes$2.pointerEnter;
  11672. eventTypePrefix = 'pointer';
  11673. }
  11674. var fromNode = from == null ? win : getNodeFromInstance$1(from);
  11675. var toNode = to == null ? win : getNodeFromInstance$1(to);
  11676. var leave = eventInterface.getPooled(leaveEventType, from, nativeEvent, nativeEventTarget);
  11677. leave.type = eventTypePrefix + 'leave';
  11678. leave.target = fromNode;
  11679. leave.relatedTarget = toNode;
  11680. var enter = eventInterface.getPooled(enterEventType, to, nativeEvent, nativeEventTarget);
  11681. enter.type = eventTypePrefix + 'enter';
  11682. enter.target = toNode;
  11683. enter.relatedTarget = fromNode;
  11684. accumulateEnterLeaveDispatches(leave, enter, from, to);
  11685. return [leave, enter];
  11686. }
  11687. };
  11688. /**
  11689. * inlined Object.is polyfill to avoid requiring consumers ship their own
  11690. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  11691. */
  11692. function is(x, y) {
  11693. return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
  11694. ;
  11695. }
  11696. var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
  11697. /**
  11698. * Performs equality by iterating through keys on an object and returning false
  11699. * when any key has values which are not strictly equal between the arguments.
  11700. * Returns true when the values of all keys are strictly equal.
  11701. */
  11702. function shallowEqual(objA, objB) {
  11703. if (is(objA, objB)) {
  11704. return true;
  11705. }
  11706. if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
  11707. return false;
  11708. }
  11709. var keysA = Object.keys(objA);
  11710. var keysB = Object.keys(objB);
  11711. if (keysA.length !== keysB.length) {
  11712. return false;
  11713. }
  11714. // Test for A's keys different from B.
  11715. for (var i = 0; i < keysA.length; i++) {
  11716. if (!hasOwnProperty$1.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
  11717. return false;
  11718. }
  11719. }
  11720. return true;
  11721. }
  11722. var PLUGIN_EVENT_SYSTEM = 1;
  11723. var RESPONDER_EVENT_SYSTEM = 1 << 1;
  11724. var IS_PASSIVE = 1 << 2;
  11725. var IS_ACTIVE = 1 << 3;
  11726. var PASSIVE_NOT_SUPPORTED = 1 << 4;
  11727. function createResponderListener(responder, props) {
  11728. var eventResponderListener = {
  11729. responder: responder,
  11730. props: props
  11731. };
  11732. {
  11733. Object.freeze(eventResponderListener);
  11734. }
  11735. return eventResponderListener;
  11736. }
  11737. function isFiberSuspenseAndTimedOut(fiber) {
  11738. return fiber.tag === SuspenseComponent && fiber.memoizedState !== null;
  11739. }
  11740. function getSuspenseFallbackChild(fiber) {
  11741. return fiber.child.sibling.child;
  11742. }
  11743. function createResponderInstance(responder, responderProps, responderState, target, fiber) {
  11744. return {
  11745. fiber: fiber,
  11746. props: responderProps,
  11747. responder: responder,
  11748. rootEventTypes: null,
  11749. state: responderState,
  11750. target: target
  11751. };
  11752. }
  11753. var DiscreteEvent = 0;
  11754. var UserBlockingEvent = 1;
  11755. var ContinuousEvent = 2;
  11756. // Intentionally not named imports because Rollup would use dynamic dispatch for
  11757. // CommonJS interop named imports.
  11758. var UserBlockingPriority$1 = Scheduler.unstable_UserBlockingPriority;
  11759. var runWithPriority$1 = Scheduler.unstable_runWithPriority;
  11760. var listenToResponderEventTypesImpl = void 0;
  11761. function setListenToResponderEventTypes(_listenToResponderEventTypesImpl) {
  11762. listenToResponderEventTypesImpl = _listenToResponderEventTypesImpl;
  11763. }
  11764. var activeTimeouts = new Map();
  11765. var rootEventTypesToEventResponderInstances = new Map();
  11766. var ownershipChangeListeners = new Set();
  11767. var globalOwner = null;
  11768. var currentTimeStamp = 0;
  11769. var currentTimers = new Map();
  11770. var currentInstance = null;
  11771. var currentEventQueue = null;
  11772. var currentEventQueuePriority = ContinuousEvent;
  11773. var currentTimerIDCounter = 0;
  11774. var currentDocument = null;
  11775. var eventResponderContext = {
  11776. dispatchEvent: function (eventValue, eventListener, eventPriority) {
  11777. validateResponderContext();
  11778. validateEventValue(eventValue);
  11779. if (eventPriority < currentEventQueuePriority) {
  11780. currentEventQueuePriority = eventPriority;
  11781. }
  11782. currentEventQueue.push(createEventQueueItem(eventValue, eventListener));
  11783. },
  11784. isTargetWithinResponder: function (target) {
  11785. validateResponderContext();
  11786. if (target != null) {
  11787. var fiber = getClosestInstanceFromNode(target);
  11788. var responderFiber = currentInstance.fiber;
  11789. while (fiber !== null) {
  11790. if (fiber === responderFiber || fiber.alternate === responderFiber) {
  11791. return true;
  11792. }
  11793. fiber = fiber.return;
  11794. }
  11795. }
  11796. return false;
  11797. },
  11798. isTargetWithinResponderScope: function (target) {
  11799. validateResponderContext();
  11800. var componentInstance = currentInstance;
  11801. var responder = componentInstance.responder;
  11802. if (target != null) {
  11803. var fiber = getClosestInstanceFromNode(target);
  11804. var responderFiber = currentInstance.fiber;
  11805. while (fiber !== null) {
  11806. if (fiber === responderFiber || fiber.alternate === responderFiber) {
  11807. return true;
  11808. }
  11809. if (doesFiberHaveResponder(fiber, responder)) {
  11810. return false;
  11811. }
  11812. fiber = fiber.return;
  11813. }
  11814. }
  11815. return false;
  11816. },
  11817. isTargetWithinNode: function (childTarget, parentTarget) {
  11818. validateResponderContext();
  11819. var childFiber = getClosestInstanceFromNode(childTarget);
  11820. var parentFiber = getClosestInstanceFromNode(parentTarget);
  11821. var parentAlternateFiber = parentFiber.alternate;
  11822. var node = childFiber;
  11823. while (node !== null) {
  11824. if (node === parentFiber || node === parentAlternateFiber) {
  11825. return true;
  11826. }
  11827. node = node.return;
  11828. }
  11829. return false;
  11830. },
  11831. addRootEventTypes: function (rootEventTypes) {
  11832. validateResponderContext();
  11833. var activeDocument = getActiveDocument();
  11834. listenToResponderEventTypesImpl(rootEventTypes, activeDocument);
  11835. for (var i = 0; i < rootEventTypes.length; i++) {
  11836. var rootEventType = rootEventTypes[i];
  11837. var eventResponderInstance = currentInstance;
  11838. registerRootEventType(rootEventType, eventResponderInstance);
  11839. }
  11840. },
  11841. removeRootEventTypes: function (rootEventTypes) {
  11842. validateResponderContext();
  11843. for (var i = 0; i < rootEventTypes.length; i++) {
  11844. var rootEventType = rootEventTypes[i];
  11845. var rootEventResponders = rootEventTypesToEventResponderInstances.get(rootEventType);
  11846. var rootEventTypesSet = currentInstance.rootEventTypes;
  11847. if (rootEventTypesSet !== null) {
  11848. rootEventTypesSet.delete(rootEventType);
  11849. }
  11850. if (rootEventResponders !== undefined) {
  11851. rootEventResponders.delete(currentInstance);
  11852. }
  11853. }
  11854. },
  11855. hasOwnership: function () {
  11856. validateResponderContext();
  11857. return globalOwner === currentInstance;
  11858. },
  11859. requestGlobalOwnership: function () {
  11860. validateResponderContext();
  11861. if (globalOwner !== null) {
  11862. return false;
  11863. }
  11864. globalOwner = currentInstance;
  11865. triggerOwnershipListeners();
  11866. return true;
  11867. },
  11868. releaseOwnership: function () {
  11869. validateResponderContext();
  11870. return releaseOwnershipForEventResponderInstance(currentInstance);
  11871. },
  11872. setTimeout: function (func, delay) {
  11873. validateResponderContext();
  11874. if (currentTimers === null) {
  11875. currentTimers = new Map();
  11876. }
  11877. var timeout = currentTimers.get(delay);
  11878. var timerId = currentTimerIDCounter++;
  11879. if (timeout === undefined) {
  11880. var _timers = new Map();
  11881. var _id = setTimeout(function () {
  11882. processTimers(_timers, delay);
  11883. }, delay);
  11884. timeout = {
  11885. id: _id,
  11886. timers: _timers
  11887. };
  11888. currentTimers.set(delay, timeout);
  11889. }
  11890. timeout.timers.set(timerId, {
  11891. instance: currentInstance,
  11892. func: func,
  11893. id: timerId,
  11894. timeStamp: currentTimeStamp
  11895. });
  11896. activeTimeouts.set(timerId, timeout);
  11897. return timerId;
  11898. },
  11899. clearTimeout: function (timerId) {
  11900. validateResponderContext();
  11901. var timeout = activeTimeouts.get(timerId);
  11902. if (timeout !== undefined) {
  11903. var _timers2 = timeout.timers;
  11904. _timers2.delete(timerId);
  11905. if (_timers2.size === 0) {
  11906. clearTimeout(timeout.id);
  11907. }
  11908. }
  11909. },
  11910. getFocusableElementsInScope: function (deep) {
  11911. validateResponderContext();
  11912. var focusableElements = [];
  11913. var eventResponderInstance = currentInstance;
  11914. var currentResponder = eventResponderInstance.responder;
  11915. var focusScopeFiber = eventResponderInstance.fiber;
  11916. if (deep) {
  11917. var deepNode = focusScopeFiber.return;
  11918. while (deepNode !== null) {
  11919. if (doesFiberHaveResponder(deepNode, currentResponder)) {
  11920. focusScopeFiber = deepNode;
  11921. }
  11922. deepNode = deepNode.return;
  11923. }
  11924. }
  11925. var child = focusScopeFiber.child;
  11926. if (child !== null) {
  11927. collectFocusableElements(child, focusableElements);
  11928. }
  11929. return focusableElements;
  11930. },
  11931. getActiveDocument: getActiveDocument,
  11932. objectAssign: _assign,
  11933. getTimeStamp: function () {
  11934. validateResponderContext();
  11935. return currentTimeStamp;
  11936. },
  11937. isTargetWithinHostComponent: function (target, elementType) {
  11938. validateResponderContext();
  11939. var fiber = getClosestInstanceFromNode(target);
  11940. while (fiber !== null) {
  11941. if (fiber.tag === HostComponent && fiber.type === elementType) {
  11942. return true;
  11943. }
  11944. fiber = fiber.return;
  11945. }
  11946. return false;
  11947. },
  11948. enqueueStateRestore: enqueueStateRestore
  11949. };
  11950. function validateEventValue(eventValue) {
  11951. if (typeof eventValue === 'object' && eventValue !== null) {
  11952. var target = eventValue.target,
  11953. type = eventValue.type,
  11954. _timeStamp = eventValue.timeStamp;
  11955. if (target == null || type == null || _timeStamp == null) {
  11956. throw new Error('context.dispatchEvent: "target", "timeStamp", and "type" fields on event object are required.');
  11957. }
  11958. var showWarning = function (name) {
  11959. {
  11960. warning$1(false, '%s is not available on event objects created from event responder modules (React Flare). ' + 'Try wrapping in a conditional, i.e. `if (event.type !== "press") { event.%s }`', name, name);
  11961. }
  11962. };
  11963. eventValue.preventDefault = function () {
  11964. {
  11965. showWarning('preventDefault()');
  11966. }
  11967. };
  11968. eventValue.stopPropagation = function () {
  11969. {
  11970. showWarning('stopPropagation()');
  11971. }
  11972. };
  11973. eventValue.isDefaultPrevented = function () {
  11974. {
  11975. showWarning('isDefaultPrevented()');
  11976. }
  11977. };
  11978. eventValue.isPropagationStopped = function () {
  11979. {
  11980. showWarning('isPropagationStopped()');
  11981. }
  11982. };
  11983. // $FlowFixMe: we don't need value, Flow thinks we do
  11984. Object.defineProperty(eventValue, 'nativeEvent', {
  11985. get: function () {
  11986. {
  11987. showWarning('nativeEvent');
  11988. }
  11989. }
  11990. });
  11991. }
  11992. }
  11993. function collectFocusableElements(node, focusableElements) {
  11994. if (isFiberSuspenseAndTimedOut(node)) {
  11995. var fallbackChild = getSuspenseFallbackChild(node);
  11996. if (fallbackChild !== null) {
  11997. collectFocusableElements(fallbackChild, focusableElements);
  11998. }
  11999. } else {
  12000. if (isFiberHostComponentFocusable(node)) {
  12001. focusableElements.push(node.stateNode);
  12002. } else {
  12003. var child = node.child;
  12004. if (child !== null) {
  12005. collectFocusableElements(child, focusableElements);
  12006. }
  12007. }
  12008. }
  12009. var sibling = node.sibling;
  12010. if (sibling !== null) {
  12011. collectFocusableElements(sibling, focusableElements);
  12012. }
  12013. }
  12014. function createEventQueueItem(value, listener) {
  12015. return {
  12016. value: value,
  12017. listener: listener
  12018. };
  12019. }
  12020. function doesFiberHaveResponder(fiber, responder) {
  12021. if (fiber.tag === HostComponent) {
  12022. var dependencies = fiber.dependencies;
  12023. if (dependencies !== null) {
  12024. var respondersMap = dependencies.responders;
  12025. if (respondersMap !== null && respondersMap.has(responder)) {
  12026. return true;
  12027. }
  12028. }
  12029. }
  12030. return false;
  12031. }
  12032. function getActiveDocument() {
  12033. return currentDocument;
  12034. }
  12035. function releaseOwnershipForEventResponderInstance(eventResponderInstance) {
  12036. if (globalOwner === eventResponderInstance) {
  12037. globalOwner = null;
  12038. triggerOwnershipListeners();
  12039. return true;
  12040. }
  12041. return false;
  12042. }
  12043. function isFiberHostComponentFocusable(fiber) {
  12044. if (fiber.tag !== HostComponent) {
  12045. return false;
  12046. }
  12047. var type = fiber.type,
  12048. memoizedProps = fiber.memoizedProps;
  12049. if (memoizedProps.tabIndex === -1 || memoizedProps.disabled) {
  12050. return false;
  12051. }
  12052. if (memoizedProps.tabIndex === 0 || memoizedProps.contentEditable === true) {
  12053. return true;
  12054. }
  12055. if (type === 'a' || type === 'area') {
  12056. return !!memoizedProps.href && memoizedProps.rel !== 'ignore';
  12057. }
  12058. if (type === 'input') {
  12059. return memoizedProps.type !== 'hidden' && memoizedProps.type !== 'file';
  12060. }
  12061. return type === 'button' || type === 'textarea' || type === 'object' || type === 'select' || type === 'iframe' || type === 'embed';
  12062. }
  12063. function processTimers(timers, delay) {
  12064. var timersArr = Array.from(timers.values());
  12065. currentEventQueuePriority = ContinuousEvent;
  12066. try {
  12067. for (var i = 0; i < timersArr.length; i++) {
  12068. var _timersArr$i = timersArr[i],
  12069. _instance = _timersArr$i.instance,
  12070. _func = _timersArr$i.func,
  12071. _id2 = _timersArr$i.id,
  12072. _timeStamp2 = _timersArr$i.timeStamp;
  12073. currentInstance = _instance;
  12074. currentEventQueue = [];
  12075. currentTimeStamp = _timeStamp2 + delay;
  12076. try {
  12077. _func();
  12078. } finally {
  12079. activeTimeouts.delete(_id2);
  12080. }
  12081. }
  12082. processEventQueue();
  12083. } finally {
  12084. currentTimers = null;
  12085. currentInstance = null;
  12086. currentEventQueue = null;
  12087. currentTimeStamp = 0;
  12088. }
  12089. }
  12090. function createDOMResponderEvent(topLevelType, nativeEvent, nativeEventTarget, passive, passiveSupported) {
  12091. var _ref = nativeEvent,
  12092. pointerType = _ref.pointerType;
  12093. var eventPointerType = '';
  12094. var pointerId = null;
  12095. if (pointerType !== undefined) {
  12096. eventPointerType = pointerType;
  12097. pointerId = nativeEvent.pointerId;
  12098. } else if (nativeEvent.key !== undefined) {
  12099. eventPointerType = 'keyboard';
  12100. } else if (nativeEvent.button !== undefined) {
  12101. eventPointerType = 'mouse';
  12102. } else if (nativeEvent.changedTouches !== undefined) {
  12103. eventPointerType = 'touch';
  12104. }
  12105. return {
  12106. nativeEvent: nativeEvent,
  12107. passive: passive,
  12108. passiveSupported: passiveSupported,
  12109. pointerId: pointerId,
  12110. pointerType: eventPointerType,
  12111. responderTarget: null,
  12112. target: nativeEventTarget,
  12113. type: topLevelType
  12114. };
  12115. }
  12116. function processEvents(eventQueue) {
  12117. for (var i = 0, length = eventQueue.length; i < length; i++) {
  12118. var _eventQueue$i = eventQueue[i],
  12119. _value = _eventQueue$i.value,
  12120. _listener = _eventQueue$i.listener;
  12121. var type = typeof _value === 'object' && _value !== null ? _value.type : '';
  12122. invokeGuardedCallbackAndCatchFirstError(type, _listener, undefined, _value);
  12123. }
  12124. }
  12125. function processEventQueue() {
  12126. var eventQueue = currentEventQueue;
  12127. if (eventQueue.length === 0) {
  12128. return;
  12129. }
  12130. switch (currentEventQueuePriority) {
  12131. case DiscreteEvent:
  12132. {
  12133. flushDiscreteUpdatesIfNeeded(currentTimeStamp);
  12134. discreteUpdates(function () {
  12135. batchedEventUpdates(processEvents, eventQueue);
  12136. });
  12137. break;
  12138. }
  12139. case UserBlockingEvent:
  12140. {
  12141. if (enableUserBlockingEvents) {
  12142. runWithPriority$1(UserBlockingPriority$1, batchedEventUpdates.bind(null, processEvents, eventQueue));
  12143. } else {
  12144. batchedEventUpdates(processEvents, eventQueue);
  12145. }
  12146. break;
  12147. }
  12148. case ContinuousEvent:
  12149. {
  12150. batchedEventUpdates(processEvents, eventQueue);
  12151. break;
  12152. }
  12153. }
  12154. }
  12155. function responderEventTypesContainType(eventTypes, type) {
  12156. for (var i = 0, len = eventTypes.length; i < len; i++) {
  12157. if (eventTypes[i] === type) {
  12158. return true;
  12159. }
  12160. }
  12161. return false;
  12162. }
  12163. function validateResponderTargetEventTypes(eventType, responder) {
  12164. var targetEventTypes = responder.targetEventTypes;
  12165. // Validate the target event type exists on the responder
  12166. if (targetEventTypes !== null) {
  12167. return responderEventTypesContainType(targetEventTypes, eventType);
  12168. }
  12169. return false;
  12170. }
  12171. function validateOwnership(responderInstance) {
  12172. return globalOwner === null || globalOwner === responderInstance;
  12173. }
  12174. function traverseAndHandleEventResponderInstances(topLevelType, targetFiber, nativeEvent, nativeEventTarget, eventSystemFlags) {
  12175. var isPassiveEvent = (eventSystemFlags & IS_PASSIVE) !== 0;
  12176. var isPassiveSupported = (eventSystemFlags & PASSIVE_NOT_SUPPORTED) === 0;
  12177. var isPassive = isPassiveEvent || !isPassiveSupported;
  12178. var eventType = isPassive ? topLevelType : topLevelType + '_active';
  12179. // Trigger event responders in this order:
  12180. // - Bubble target responder phase
  12181. // - Root responder phase
  12182. var visitedResponders = new Set();
  12183. var responderEvent = createDOMResponderEvent(topLevelType, nativeEvent, nativeEventTarget, isPassiveEvent, isPassiveSupported);
  12184. var node = targetFiber;
  12185. while (node !== null) {
  12186. var _node = node,
  12187. dependencies = _node.dependencies,
  12188. tag = _node.tag;
  12189. if (tag === HostComponent && dependencies !== null) {
  12190. var respondersMap = dependencies.responders;
  12191. if (respondersMap !== null) {
  12192. var responderInstances = Array.from(respondersMap.values());
  12193. for (var i = 0, length = responderInstances.length; i < length; i++) {
  12194. var responderInstance = responderInstances[i];
  12195. if (validateOwnership(responderInstance)) {
  12196. var props = responderInstance.props,
  12197. responder = responderInstance.responder,
  12198. state = responderInstance.state,
  12199. target = responderInstance.target;
  12200. if (!visitedResponders.has(responder) && validateResponderTargetEventTypes(eventType, responder)) {
  12201. visitedResponders.add(responder);
  12202. var onEvent = responder.onEvent;
  12203. if (onEvent !== null) {
  12204. currentInstance = responderInstance;
  12205. responderEvent.responderTarget = target;
  12206. onEvent(responderEvent, eventResponderContext, props, state);
  12207. }
  12208. }
  12209. }
  12210. }
  12211. }
  12212. }
  12213. node = node.return;
  12214. }
  12215. // Root phase
  12216. var rootEventResponderInstances = rootEventTypesToEventResponderInstances.get(eventType);
  12217. if (rootEventResponderInstances !== undefined) {
  12218. var _responderInstances = Array.from(rootEventResponderInstances);
  12219. for (var _i = 0; _i < _responderInstances.length; _i++) {
  12220. var _responderInstance = _responderInstances[_i];
  12221. if (!validateOwnership(_responderInstance)) {
  12222. continue;
  12223. }
  12224. var _props = _responderInstance.props,
  12225. _responder = _responderInstance.responder,
  12226. _state = _responderInstance.state,
  12227. _target = _responderInstance.target;
  12228. var onRootEvent = _responder.onRootEvent;
  12229. if (onRootEvent !== null) {
  12230. currentInstance = _responderInstance;
  12231. responderEvent.responderTarget = _target;
  12232. onRootEvent(responderEvent, eventResponderContext, _props, _state);
  12233. }
  12234. }
  12235. }
  12236. }
  12237. function triggerOwnershipListeners() {
  12238. var listeningInstances = Array.from(ownershipChangeListeners);
  12239. var previousInstance = currentInstance;
  12240. var previousEventQueuePriority = currentEventQueuePriority;
  12241. var previousEventQueue = currentEventQueue;
  12242. try {
  12243. for (var i = 0; i < listeningInstances.length; i++) {
  12244. var _instance2 = listeningInstances[i];
  12245. var props = _instance2.props,
  12246. responder = _instance2.responder,
  12247. state = _instance2.state;
  12248. currentInstance = _instance2;
  12249. currentEventQueuePriority = ContinuousEvent;
  12250. currentEventQueue = [];
  12251. var onOwnershipChange = responder.onOwnershipChange;
  12252. if (onOwnershipChange !== null) {
  12253. onOwnershipChange(eventResponderContext, props, state);
  12254. }
  12255. }
  12256. processEventQueue();
  12257. } finally {
  12258. currentInstance = previousInstance;
  12259. currentEventQueue = previousEventQueue;
  12260. currentEventQueuePriority = previousEventQueuePriority;
  12261. }
  12262. }
  12263. function mountEventResponder(responder, responderInstance, props, state) {
  12264. if (responder.onOwnershipChange !== null) {
  12265. ownershipChangeListeners.add(responderInstance);
  12266. }
  12267. var onMount = responder.onMount;
  12268. if (onMount !== null) {
  12269. currentEventQueuePriority = ContinuousEvent;
  12270. currentInstance = responderInstance;
  12271. currentEventQueue = [];
  12272. try {
  12273. onMount(eventResponderContext, props, state);
  12274. processEventQueue();
  12275. } finally {
  12276. currentEventQueue = null;
  12277. currentInstance = null;
  12278. currentTimers = null;
  12279. }
  12280. }
  12281. }
  12282. function unmountEventResponder(responderInstance) {
  12283. var responder = responderInstance.responder;
  12284. var onUnmount = responder.onUnmount;
  12285. if (onUnmount !== null) {
  12286. var props = responderInstance.props,
  12287. state = responderInstance.state;
  12288. currentEventQueue = [];
  12289. currentEventQueuePriority = ContinuousEvent;
  12290. currentInstance = responderInstance;
  12291. try {
  12292. onUnmount(eventResponderContext, props, state);
  12293. processEventQueue();
  12294. } finally {
  12295. currentEventQueue = null;
  12296. currentInstance = null;
  12297. currentTimers = null;
  12298. }
  12299. }
  12300. releaseOwnershipForEventResponderInstance(responderInstance);
  12301. if (responder.onOwnershipChange !== null) {
  12302. ownershipChangeListeners.delete(responderInstance);
  12303. }
  12304. var rootEventTypesSet = responderInstance.rootEventTypes;
  12305. if (rootEventTypesSet !== null) {
  12306. var rootEventTypes = Array.from(rootEventTypesSet);
  12307. for (var i = 0; i < rootEventTypes.length; i++) {
  12308. var topLevelEventType = rootEventTypes[i];
  12309. var rootEventResponderInstances = rootEventTypesToEventResponderInstances.get(topLevelEventType);
  12310. if (rootEventResponderInstances !== undefined) {
  12311. rootEventResponderInstances.delete(responderInstance);
  12312. }
  12313. }
  12314. }
  12315. }
  12316. function validateResponderContext() {
  12317. (function () {
  12318. if (!(currentInstance !== null)) {
  12319. {
  12320. throw ReactError(Error('An event responder context was used outside of an event cycle. Use context.setTimeout() to use asynchronous responder context outside of event cycle .'));
  12321. }
  12322. }
  12323. })();
  12324. }
  12325. function dispatchEventForResponderEventSystem(topLevelType, targetFiber, nativeEvent, nativeEventTarget, eventSystemFlags) {
  12326. if (enableFlareAPI) {
  12327. var previousEventQueue = currentEventQueue;
  12328. var previousInstance = currentInstance;
  12329. var previousTimers = currentTimers;
  12330. var previousTimeStamp = currentTimeStamp;
  12331. var previousDocument = currentDocument;
  12332. var previousEventQueuePriority = currentEventQueuePriority;
  12333. currentTimers = null;
  12334. currentEventQueue = [];
  12335. currentEventQueuePriority = ContinuousEvent;
  12336. // nodeType 9 is DOCUMENT_NODE
  12337. currentDocument = nativeEventTarget.nodeType === 9 ? nativeEventTarget : nativeEventTarget.ownerDocument;
  12338. // We might want to control timeStamp another way here
  12339. currentTimeStamp = nativeEvent.timeStamp;
  12340. try {
  12341. traverseAndHandleEventResponderInstances(topLevelType, targetFiber, nativeEvent, nativeEventTarget, eventSystemFlags);
  12342. processEventQueue();
  12343. } finally {
  12344. currentTimers = previousTimers;
  12345. currentInstance = previousInstance;
  12346. currentEventQueue = previousEventQueue;
  12347. currentTimeStamp = previousTimeStamp;
  12348. currentDocument = previousDocument;
  12349. currentEventQueuePriority = previousEventQueuePriority;
  12350. }
  12351. }
  12352. }
  12353. function addRootEventTypesForResponderInstance(responderInstance, rootEventTypes) {
  12354. for (var i = 0; i < rootEventTypes.length; i++) {
  12355. var rootEventType = rootEventTypes[i];
  12356. registerRootEventType(rootEventType, responderInstance);
  12357. }
  12358. }
  12359. function registerRootEventType(rootEventType, eventResponderInstance) {
  12360. var rootEventResponderInstances = rootEventTypesToEventResponderInstances.get(rootEventType);
  12361. if (rootEventResponderInstances === undefined) {
  12362. rootEventResponderInstances = new Set();
  12363. rootEventTypesToEventResponderInstances.set(rootEventType, rootEventResponderInstances);
  12364. }
  12365. var rootEventTypesSet = eventResponderInstance.rootEventTypes;
  12366. if (rootEventTypesSet === null) {
  12367. rootEventTypesSet = eventResponderInstance.rootEventTypes = new Set();
  12368. }
  12369. (function () {
  12370. if (!!rootEventTypesSet.has(rootEventType)) {
  12371. {
  12372. throw ReactError(Error('addRootEventTypes() found a duplicate root event type of "' + rootEventType + '". This might be because the event type exists in the event responder "rootEventTypes" array or because of a previous addRootEventTypes() using this root event type.'));
  12373. }
  12374. }
  12375. })();
  12376. rootEventTypesSet.add(rootEventType);
  12377. rootEventResponderInstances.add(eventResponderInstance);
  12378. }
  12379. /**
  12380. * `ReactInstanceMap` maintains a mapping from a public facing stateful
  12381. * instance (key) and the internal representation (value). This allows public
  12382. * methods to accept the user facing instance as an argument and map them back
  12383. * to internal methods.
  12384. *
  12385. * Note that this module is currently shared and assumed to be stateless.
  12386. * If this becomes an actual Map, that will break.
  12387. */
  12388. /**
  12389. * This API should be called `delete` but we'd have to make sure to always
  12390. * transform these to strings for IE support. When this transform is fully
  12391. * supported we can rename it.
  12392. */
  12393. function get(key) {
  12394. return key._reactInternalFiber;
  12395. }
  12396. function has(key) {
  12397. return key._reactInternalFiber !== undefined;
  12398. }
  12399. function set(key, value) {
  12400. key._reactInternalFiber = value;
  12401. }
  12402. // Don't change these two values. They're used by React Dev Tools.
  12403. var NoEffect = /* */0;
  12404. var PerformedWork = /* */1;
  12405. // You can change the rest (and add more).
  12406. var Placement = /* */2;
  12407. var Update = /* */4;
  12408. var PlacementAndUpdate = /* */6;
  12409. var Deletion = /* */8;
  12410. var ContentReset = /* */16;
  12411. var Callback = /* */32;
  12412. var DidCapture = /* */64;
  12413. var Ref = /* */128;
  12414. var Snapshot = /* */256;
  12415. var Passive = /* */512;
  12416. // Passive & Update & Callback & Ref & Snapshot
  12417. var LifecycleEffectMask = /* */932;
  12418. // Union of all host effects
  12419. var HostEffectMask = /* */1023;
  12420. var Incomplete = /* */1024;
  12421. var ShouldCapture = /* */2048;
  12422. var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
  12423. var MOUNTING = 1;
  12424. var MOUNTED = 2;
  12425. var UNMOUNTED = 3;
  12426. function isFiberMountedImpl(fiber) {
  12427. var node = fiber;
  12428. if (!fiber.alternate) {
  12429. // If there is no alternate, this might be a new tree that isn't inserted
  12430. // yet. If it is, then it will have a pending insertion effect on it.
  12431. if ((node.effectTag & Placement) !== NoEffect) {
  12432. return MOUNTING;
  12433. }
  12434. while (node.return) {
  12435. node = node.return;
  12436. if ((node.effectTag & Placement) !== NoEffect) {
  12437. return MOUNTING;
  12438. }
  12439. }
  12440. } else {
  12441. while (node.return) {
  12442. node = node.return;
  12443. }
  12444. }
  12445. if (node.tag === HostRoot) {
  12446. // TODO: Check if this was a nested HostRoot when used with
  12447. // renderContainerIntoSubtree.
  12448. return MOUNTED;
  12449. }
  12450. // If we didn't hit the root, that means that we're in an disconnected tree
  12451. // that has been unmounted.
  12452. return UNMOUNTED;
  12453. }
  12454. function isFiberMounted(fiber) {
  12455. return isFiberMountedImpl(fiber) === MOUNTED;
  12456. }
  12457. function isMounted(component) {
  12458. {
  12459. var owner = ReactCurrentOwner$1.current;
  12460. if (owner !== null && owner.tag === ClassComponent) {
  12461. var ownerFiber = owner;
  12462. var instance = ownerFiber.stateNode;
  12463. !instance._warnedAboutRefsInRender ? warningWithoutStack$1(false, '%s is accessing isMounted inside its render() function. ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(ownerFiber.type) || 'A component') : void 0;
  12464. instance._warnedAboutRefsInRender = true;
  12465. }
  12466. }
  12467. var fiber = get(component);
  12468. if (!fiber) {
  12469. return false;
  12470. }
  12471. return isFiberMountedImpl(fiber) === MOUNTED;
  12472. }
  12473. function assertIsMounted(fiber) {
  12474. (function () {
  12475. if (!(isFiberMountedImpl(fiber) === MOUNTED)) {
  12476. {
  12477. throw ReactError(Error('Unable to find node on an unmounted component.'));
  12478. }
  12479. }
  12480. })();
  12481. }
  12482. function findCurrentFiberUsingSlowPath(fiber) {
  12483. var alternate = fiber.alternate;
  12484. if (!alternate) {
  12485. // If there is no alternate, then we only need to check if it is mounted.
  12486. var state = isFiberMountedImpl(fiber);
  12487. (function () {
  12488. if (!(state !== UNMOUNTED)) {
  12489. {
  12490. throw ReactError(Error('Unable to find node on an unmounted component.'));
  12491. }
  12492. }
  12493. })();
  12494. if (state === MOUNTING) {
  12495. return null;
  12496. }
  12497. return fiber;
  12498. }
  12499. // If we have two possible branches, we'll walk backwards up to the root
  12500. // to see what path the root points to. On the way we may hit one of the
  12501. // special cases and we'll deal with them.
  12502. var a = fiber;
  12503. var b = alternate;
  12504. while (true) {
  12505. var parentA = a.return;
  12506. if (parentA === null) {
  12507. // We're at the root.
  12508. break;
  12509. }
  12510. var parentB = parentA.alternate;
  12511. if (parentB === null) {
  12512. // There is no alternate. This is an unusual case. Currently, it only
  12513. // happens when a Suspense component is hidden. An extra fragment fiber
  12514. // is inserted in between the Suspense fiber and its children. Skip
  12515. // over this extra fragment fiber and proceed to the next parent.
  12516. var nextParent = parentA.return;
  12517. if (nextParent !== null) {
  12518. a = b = nextParent;
  12519. continue;
  12520. }
  12521. // If there's no parent, we're at the root.
  12522. break;
  12523. }
  12524. // If both copies of the parent fiber point to the same child, we can
  12525. // assume that the child is current. This happens when we bailout on low
  12526. // priority: the bailed out fiber's child reuses the current child.
  12527. if (parentA.child === parentB.child) {
  12528. var child = parentA.child;
  12529. while (child) {
  12530. if (child === a) {
  12531. // We've determined that A is the current branch.
  12532. assertIsMounted(parentA);
  12533. return fiber;
  12534. }
  12535. if (child === b) {
  12536. // We've determined that B is the current branch.
  12537. assertIsMounted(parentA);
  12538. return alternate;
  12539. }
  12540. child = child.sibling;
  12541. }
  12542. // We should never have an alternate for any mounting node. So the only
  12543. // way this could possibly happen is if this was unmounted, if at all.
  12544. (function () {
  12545. {
  12546. {
  12547. throw ReactError(Error('Unable to find node on an unmounted component.'));
  12548. }
  12549. }
  12550. })();
  12551. }
  12552. if (a.return !== b.return) {
  12553. // The return pointer of A and the return pointer of B point to different
  12554. // fibers. We assume that return pointers never criss-cross, so A must
  12555. // belong to the child set of A.return, and B must belong to the child
  12556. // set of B.return.
  12557. a = parentA;
  12558. b = parentB;
  12559. } else {
  12560. // The return pointers point to the same fiber. We'll have to use the
  12561. // default, slow path: scan the child sets of each parent alternate to see
  12562. // which child belongs to which set.
  12563. //
  12564. // Search parent A's child set
  12565. var didFindChild = false;
  12566. var _child = parentA.child;
  12567. while (_child) {
  12568. if (_child === a) {
  12569. didFindChild = true;
  12570. a = parentA;
  12571. b = parentB;
  12572. break;
  12573. }
  12574. if (_child === b) {
  12575. didFindChild = true;
  12576. b = parentA;
  12577. a = parentB;
  12578. break;
  12579. }
  12580. _child = _child.sibling;
  12581. }
  12582. if (!didFindChild) {
  12583. // Search parent B's child set
  12584. _child = parentB.child;
  12585. while (_child) {
  12586. if (_child === a) {
  12587. didFindChild = true;
  12588. a = parentB;
  12589. b = parentA;
  12590. break;
  12591. }
  12592. if (_child === b) {
  12593. didFindChild = true;
  12594. b = parentB;
  12595. a = parentA;
  12596. break;
  12597. }
  12598. _child = _child.sibling;
  12599. }
  12600. (function () {
  12601. if (!didFindChild) {
  12602. {
  12603. throw ReactError(Error('Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.'));
  12604. }
  12605. }
  12606. })();
  12607. }
  12608. }
  12609. (function () {
  12610. if (!(a.alternate === b)) {
  12611. {
  12612. throw ReactError(Error('Return fibers should always be each others\' alternates. This error is likely caused by a bug in React. Please file an issue.'));
  12613. }
  12614. }
  12615. })();
  12616. }
  12617. // If the root is not a host container, we're in a disconnected tree. I.e.
  12618. // unmounted.
  12619. (function () {
  12620. if (!(a.tag === HostRoot)) {
  12621. {
  12622. throw ReactError(Error('Unable to find node on an unmounted component.'));
  12623. }
  12624. }
  12625. })();
  12626. if (a.stateNode.current === a) {
  12627. // We've determined that A is the current branch.
  12628. return fiber;
  12629. }
  12630. // Otherwise B has to be current branch.
  12631. return alternate;
  12632. }
  12633. function findCurrentHostFiber(parent) {
  12634. var currentParent = findCurrentFiberUsingSlowPath(parent);
  12635. if (!currentParent) {
  12636. return null;
  12637. }
  12638. // Next we'll drill down this component to find the first HostComponent/Text.
  12639. var node = currentParent;
  12640. while (true) {
  12641. if (node.tag === HostComponent || node.tag === HostText) {
  12642. return node;
  12643. } else if (node.child) {
  12644. node.child.return = node;
  12645. node = node.child;
  12646. continue;
  12647. }
  12648. if (node === currentParent) {
  12649. return null;
  12650. }
  12651. while (!node.sibling) {
  12652. if (!node.return || node.return === currentParent) {
  12653. return null;
  12654. }
  12655. node = node.return;
  12656. }
  12657. node.sibling.return = node.return;
  12658. node = node.sibling;
  12659. }
  12660. // Flow needs the return null here, but ESLint complains about it.
  12661. // eslint-disable-next-line no-unreachable
  12662. return null;
  12663. }
  12664. function findCurrentHostFiberWithNoPortals(parent) {
  12665. var currentParent = findCurrentFiberUsingSlowPath(parent);
  12666. if (!currentParent) {
  12667. return null;
  12668. }
  12669. // Next we'll drill down this component to find the first HostComponent/Text.
  12670. var node = currentParent;
  12671. while (true) {
  12672. if (node.tag === HostComponent || node.tag === HostText || node.tag === FundamentalComponent) {
  12673. return node;
  12674. } else if (node.child && node.tag !== HostPortal) {
  12675. node.child.return = node;
  12676. node = node.child;
  12677. continue;
  12678. }
  12679. if (node === currentParent) {
  12680. return null;
  12681. }
  12682. while (!node.sibling) {
  12683. if (!node.return || node.return === currentParent) {
  12684. return null;
  12685. }
  12686. node = node.return;
  12687. }
  12688. node.sibling.return = node.return;
  12689. node = node.sibling;
  12690. }
  12691. // Flow needs the return null here, but ESLint complains about it.
  12692. // eslint-disable-next-line no-unreachable
  12693. return null;
  12694. }
  12695. function addEventBubbleListener(element, eventType, listener) {
  12696. element.addEventListener(eventType, listener, false);
  12697. }
  12698. function addEventCaptureListener(element, eventType, listener) {
  12699. element.addEventListener(eventType, listener, true);
  12700. }
  12701. function addEventCaptureListenerWithPassiveFlag(element, eventType, listener, passive) {
  12702. element.addEventListener(eventType, listener, {
  12703. capture: true,
  12704. passive: passive
  12705. });
  12706. }
  12707. /**
  12708. * @interface Event
  12709. * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface
  12710. * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent
  12711. */
  12712. var SyntheticAnimationEvent = SyntheticEvent.extend({
  12713. animationName: null,
  12714. elapsedTime: null,
  12715. pseudoElement: null
  12716. });
  12717. /**
  12718. * @interface Event
  12719. * @see http://www.w3.org/TR/clipboard-apis/
  12720. */
  12721. var SyntheticClipboardEvent = SyntheticEvent.extend({
  12722. clipboardData: function (event) {
  12723. return 'clipboardData' in event ? event.clipboardData : window.clipboardData;
  12724. }
  12725. });
  12726. /**
  12727. * @interface FocusEvent
  12728. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  12729. */
  12730. var SyntheticFocusEvent = SyntheticUIEvent.extend({
  12731. relatedTarget: null
  12732. });
  12733. /**
  12734. * `charCode` represents the actual "character code" and is safe to use with
  12735. * `String.fromCharCode`. As such, only keys that correspond to printable
  12736. * characters produce a valid `charCode`, the only exception to this is Enter.
  12737. * The Tab-key is considered non-printable and does not have a `charCode`,
  12738. * presumably because it does not produce a tab-character in browsers.
  12739. *
  12740. * @param {object} nativeEvent Native browser event.
  12741. * @return {number} Normalized `charCode` property.
  12742. */
  12743. function getEventCharCode(nativeEvent) {
  12744. var charCode = void 0;
  12745. var keyCode = nativeEvent.keyCode;
  12746. if ('charCode' in nativeEvent) {
  12747. charCode = nativeEvent.charCode;
  12748. // FF does not set `charCode` for the Enter-key, check against `keyCode`.
  12749. if (charCode === 0 && keyCode === 13) {
  12750. charCode = 13;
  12751. }
  12752. } else {
  12753. // IE8 does not implement `charCode`, but `keyCode` has the correct value.
  12754. charCode = keyCode;
  12755. }
  12756. // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux)
  12757. // report Enter as charCode 10 when ctrl is pressed.
  12758. if (charCode === 10) {
  12759. charCode = 13;
  12760. }
  12761. // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.
  12762. // Must not discard the (non-)printable Enter-key.
  12763. if (charCode >= 32 || charCode === 13) {
  12764. return charCode;
  12765. }
  12766. return 0;
  12767. }
  12768. /**
  12769. * Normalization of deprecated HTML5 `key` values
  12770. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  12771. */
  12772. var normalizeKey = {
  12773. Esc: 'Escape',
  12774. Spacebar: ' ',
  12775. Left: 'ArrowLeft',
  12776. Up: 'ArrowUp',
  12777. Right: 'ArrowRight',
  12778. Down: 'ArrowDown',
  12779. Del: 'Delete',
  12780. Win: 'OS',
  12781. Menu: 'ContextMenu',
  12782. Apps: 'ContextMenu',
  12783. Scroll: 'ScrollLock',
  12784. MozPrintableKey: 'Unidentified'
  12785. };
  12786. /**
  12787. * Translation from legacy `keyCode` to HTML5 `key`
  12788. * Only special keys supported, all others depend on keyboard layout or browser
  12789. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  12790. */
  12791. var translateToKey = {
  12792. '8': 'Backspace',
  12793. '9': 'Tab',
  12794. '12': 'Clear',
  12795. '13': 'Enter',
  12796. '16': 'Shift',
  12797. '17': 'Control',
  12798. '18': 'Alt',
  12799. '19': 'Pause',
  12800. '20': 'CapsLock',
  12801. '27': 'Escape',
  12802. '32': ' ',
  12803. '33': 'PageUp',
  12804. '34': 'PageDown',
  12805. '35': 'End',
  12806. '36': 'Home',
  12807. '37': 'ArrowLeft',
  12808. '38': 'ArrowUp',
  12809. '39': 'ArrowRight',
  12810. '40': 'ArrowDown',
  12811. '45': 'Insert',
  12812. '46': 'Delete',
  12813. '112': 'F1',
  12814. '113': 'F2',
  12815. '114': 'F3',
  12816. '115': 'F4',
  12817. '116': 'F5',
  12818. '117': 'F6',
  12819. '118': 'F7',
  12820. '119': 'F8',
  12821. '120': 'F9',
  12822. '121': 'F10',
  12823. '122': 'F11',
  12824. '123': 'F12',
  12825. '144': 'NumLock',
  12826. '145': 'ScrollLock',
  12827. '224': 'Meta'
  12828. };
  12829. /**
  12830. * @param {object} nativeEvent Native browser event.
  12831. * @return {string} Normalized `key` property.
  12832. */
  12833. function getEventKey(nativeEvent) {
  12834. if (nativeEvent.key) {
  12835. // Normalize inconsistent values reported by browsers due to
  12836. // implementations of a working draft specification.
  12837. // FireFox implements `key` but returns `MozPrintableKey` for all
  12838. // printable characters (normalized to `Unidentified`), ignore it.
  12839. var key = normalizeKey[nativeEvent.key] || nativeEvent.key;
  12840. if (key !== 'Unidentified') {
  12841. return key;
  12842. }
  12843. }
  12844. // Browser does not implement `key`, polyfill as much of it as we can.
  12845. if (nativeEvent.type === 'keypress') {
  12846. var charCode = getEventCharCode(nativeEvent);
  12847. // The enter-key is technically both printable and non-printable and can
  12848. // thus be captured by `keypress`, no other non-printable key should.
  12849. return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);
  12850. }
  12851. if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {
  12852. // While user keyboard layout determines the actual meaning of each
  12853. // `keyCode` value, almost all function keys have a universal value.
  12854. return translateToKey[nativeEvent.keyCode] || 'Unidentified';
  12855. }
  12856. return '';
  12857. }
  12858. /**
  12859. * @interface KeyboardEvent
  12860. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  12861. */
  12862. var SyntheticKeyboardEvent = SyntheticUIEvent.extend({
  12863. key: getEventKey,
  12864. location: null,
  12865. ctrlKey: null,
  12866. shiftKey: null,
  12867. altKey: null,
  12868. metaKey: null,
  12869. repeat: null,
  12870. locale: null,
  12871. getModifierState: getEventModifierState,
  12872. // Legacy Interface
  12873. charCode: function (event) {
  12874. // `charCode` is the result of a KeyPress event and represents the value of
  12875. // the actual printable character.
  12876. // KeyPress is deprecated, but its replacement is not yet final and not
  12877. // implemented in any major browser. Only KeyPress has charCode.
  12878. if (event.type === 'keypress') {
  12879. return getEventCharCode(event);
  12880. }
  12881. return 0;
  12882. },
  12883. keyCode: function (event) {
  12884. // `keyCode` is the result of a KeyDown/Up event and represents the value of
  12885. // physical keyboard key.
  12886. // The actual meaning of the value depends on the users' keyboard layout
  12887. // which cannot be detected. Assuming that it is a US keyboard layout
  12888. // provides a surprisingly accurate mapping for US and European users.
  12889. // Due to this, it is left to the user to implement at this time.
  12890. if (event.type === 'keydown' || event.type === 'keyup') {
  12891. return event.keyCode;
  12892. }
  12893. return 0;
  12894. },
  12895. which: function (event) {
  12896. // `which` is an alias for either `keyCode` or `charCode` depending on the
  12897. // type of the event.
  12898. if (event.type === 'keypress') {
  12899. return getEventCharCode(event);
  12900. }
  12901. if (event.type === 'keydown' || event.type === 'keyup') {
  12902. return event.keyCode;
  12903. }
  12904. return 0;
  12905. }
  12906. });
  12907. /**
  12908. * @interface DragEvent
  12909. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  12910. */
  12911. var SyntheticDragEvent = SyntheticMouseEvent.extend({
  12912. dataTransfer: null
  12913. });
  12914. /**
  12915. * @interface TouchEvent
  12916. * @see http://www.w3.org/TR/touch-events/
  12917. */
  12918. var SyntheticTouchEvent = SyntheticUIEvent.extend({
  12919. touches: null,
  12920. targetTouches: null,
  12921. changedTouches: null,
  12922. altKey: null,
  12923. metaKey: null,
  12924. ctrlKey: null,
  12925. shiftKey: null,
  12926. getModifierState: getEventModifierState
  12927. });
  12928. /**
  12929. * @interface Event
  12930. * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-
  12931. * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent
  12932. */
  12933. var SyntheticTransitionEvent = SyntheticEvent.extend({
  12934. propertyName: null,
  12935. elapsedTime: null,
  12936. pseudoElement: null
  12937. });
  12938. /**
  12939. * @interface WheelEvent
  12940. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  12941. */
  12942. var SyntheticWheelEvent = SyntheticMouseEvent.extend({
  12943. deltaX: function (event) {
  12944. return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
  12945. 'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
  12946. },
  12947. deltaY: function (event) {
  12948. return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
  12949. 'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
  12950. 'wheelDelta' in event ? -event.wheelDelta : 0;
  12951. },
  12952. deltaZ: null,
  12953. // Browsers without "deltaMode" is reporting in raw wheel delta where one
  12954. // notch on the scroll is always +/- 120, roughly equivalent to pixels.
  12955. // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
  12956. // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
  12957. deltaMode: null
  12958. });
  12959. /**
  12960. * Turns
  12961. * ['abort', ...]
  12962. * into
  12963. * eventTypes = {
  12964. * 'abort': {
  12965. * phasedRegistrationNames: {
  12966. * bubbled: 'onAbort',
  12967. * captured: 'onAbortCapture',
  12968. * },
  12969. * dependencies: [TOP_ABORT],
  12970. * },
  12971. * ...
  12972. * };
  12973. * topLevelEventsToDispatchConfig = new Map([
  12974. * [TOP_ABORT, { sameConfig }],
  12975. * ]);
  12976. */
  12977. var eventTuples = [
  12978. // Discrete events
  12979. [TOP_BLUR, 'blur', DiscreteEvent], [TOP_CANCEL, 'cancel', DiscreteEvent], [TOP_CLICK, 'click', DiscreteEvent], [TOP_CLOSE, 'close', DiscreteEvent], [TOP_CONTEXT_MENU, 'contextMenu', DiscreteEvent], [TOP_COPY, 'copy', DiscreteEvent], [TOP_CUT, 'cut', DiscreteEvent], [TOP_AUX_CLICK, 'auxClick', DiscreteEvent], [TOP_DOUBLE_CLICK, 'doubleClick', DiscreteEvent], [TOP_DRAG_END, 'dragEnd', DiscreteEvent], [TOP_DRAG_START, 'dragStart', DiscreteEvent], [TOP_DROP, 'drop', DiscreteEvent], [TOP_FOCUS, 'focus', DiscreteEvent], [TOP_INPUT, 'input', DiscreteEvent], [TOP_INVALID, 'invalid', DiscreteEvent], [TOP_KEY_DOWN, 'keyDown', DiscreteEvent], [TOP_KEY_PRESS, 'keyPress', DiscreteEvent], [TOP_KEY_UP, 'keyUp', DiscreteEvent], [TOP_MOUSE_DOWN, 'mouseDown', DiscreteEvent], [TOP_MOUSE_UP, 'mouseUp', DiscreteEvent], [TOP_PASTE, 'paste', DiscreteEvent], [TOP_PAUSE, 'pause', DiscreteEvent], [TOP_PLAY, 'play', DiscreteEvent], [TOP_POINTER_CANCEL, 'pointerCancel', DiscreteEvent], [TOP_POINTER_DOWN, 'pointerDown', DiscreteEvent], [TOP_POINTER_UP, 'pointerUp', DiscreteEvent], [TOP_RATE_CHANGE, 'rateChange', DiscreteEvent], [TOP_RESET, 'reset', DiscreteEvent], [TOP_SEEKED, 'seeked', DiscreteEvent], [TOP_SUBMIT, 'submit', DiscreteEvent], [TOP_TOUCH_CANCEL, 'touchCancel', DiscreteEvent], [TOP_TOUCH_END, 'touchEnd', DiscreteEvent], [TOP_TOUCH_START, 'touchStart', DiscreteEvent], [TOP_VOLUME_CHANGE, 'volumeChange', DiscreteEvent],
  12980. // User-blocking events
  12981. [TOP_DRAG, 'drag', UserBlockingEvent], [TOP_DRAG_ENTER, 'dragEnter', UserBlockingEvent], [TOP_DRAG_EXIT, 'dragExit', UserBlockingEvent], [TOP_DRAG_LEAVE, 'dragLeave', UserBlockingEvent], [TOP_DRAG_OVER, 'dragOver', UserBlockingEvent], [TOP_MOUSE_MOVE, 'mouseMove', UserBlockingEvent], [TOP_MOUSE_OUT, 'mouseOut', UserBlockingEvent], [TOP_MOUSE_OVER, 'mouseOver', UserBlockingEvent], [TOP_POINTER_MOVE, 'pointerMove', UserBlockingEvent], [TOP_POINTER_OUT, 'pointerOut', UserBlockingEvent], [TOP_POINTER_OVER, 'pointerOver', UserBlockingEvent], [TOP_SCROLL, 'scroll', UserBlockingEvent], [TOP_TOGGLE, 'toggle', UserBlockingEvent], [TOP_TOUCH_MOVE, 'touchMove', UserBlockingEvent], [TOP_WHEEL, 'wheel', UserBlockingEvent],
  12982. // Continuous events
  12983. [TOP_ABORT, 'abort', ContinuousEvent], [TOP_ANIMATION_END, 'animationEnd', ContinuousEvent], [TOP_ANIMATION_ITERATION, 'animationIteration', ContinuousEvent], [TOP_ANIMATION_START, 'animationStart', ContinuousEvent], [TOP_CAN_PLAY, 'canPlay', ContinuousEvent], [TOP_CAN_PLAY_THROUGH, 'canPlayThrough', ContinuousEvent], [TOP_DURATION_CHANGE, 'durationChange', ContinuousEvent], [TOP_EMPTIED, 'emptied', ContinuousEvent], [TOP_ENCRYPTED, 'encrypted', ContinuousEvent], [TOP_ENDED, 'ended', ContinuousEvent], [TOP_ERROR, 'error', ContinuousEvent], [TOP_GOT_POINTER_CAPTURE, 'gotPointerCapture', ContinuousEvent], [TOP_LOAD, 'load', ContinuousEvent], [TOP_LOADED_DATA, 'loadedData', ContinuousEvent], [TOP_LOADED_METADATA, 'loadedMetadata', ContinuousEvent], [TOP_LOAD_START, 'loadStart', ContinuousEvent], [TOP_LOST_POINTER_CAPTURE, 'lostPointerCapture', ContinuousEvent], [TOP_PLAYING, 'playing', ContinuousEvent], [TOP_PROGRESS, 'progress', ContinuousEvent], [TOP_SEEKING, 'seeking', ContinuousEvent], [TOP_STALLED, 'stalled', ContinuousEvent], [TOP_SUSPEND, 'suspend', ContinuousEvent], [TOP_TIME_UPDATE, 'timeUpdate', ContinuousEvent], [TOP_TRANSITION_END, 'transitionEnd', ContinuousEvent], [TOP_WAITING, 'waiting', ContinuousEvent]];
  12984. var eventTypes$4 = {};
  12985. var topLevelEventsToDispatchConfig = {};
  12986. for (var i = 0; i < eventTuples.length; i++) {
  12987. var eventTuple = eventTuples[i];
  12988. var topEvent = eventTuple[0];
  12989. var event = eventTuple[1];
  12990. var eventPriority = eventTuple[2];
  12991. var capitalizedEvent = event[0].toUpperCase() + event.slice(1);
  12992. var onEvent = 'on' + capitalizedEvent;
  12993. var config = {
  12994. phasedRegistrationNames: {
  12995. bubbled: onEvent,
  12996. captured: onEvent + 'Capture'
  12997. },
  12998. dependencies: [topEvent],
  12999. eventPriority: eventPriority
  13000. };
  13001. eventTypes$4[event] = config;
  13002. topLevelEventsToDispatchConfig[topEvent] = config;
  13003. }
  13004. // Only used in DEV for exhaustiveness validation.
  13005. var knownHTMLTopLevelTypes = [TOP_ABORT, TOP_CANCEL, TOP_CAN_PLAY, TOP_CAN_PLAY_THROUGH, TOP_CLOSE, TOP_DURATION_CHANGE, TOP_EMPTIED, TOP_ENCRYPTED, TOP_ENDED, TOP_ERROR, TOP_INPUT, TOP_INVALID, TOP_LOAD, TOP_LOADED_DATA, TOP_LOADED_METADATA, TOP_LOAD_START, TOP_PAUSE, TOP_PLAY, TOP_PLAYING, TOP_PROGRESS, TOP_RATE_CHANGE, TOP_RESET, TOP_SEEKED, TOP_SEEKING, TOP_STALLED, TOP_SUBMIT, TOP_SUSPEND, TOP_TIME_UPDATE, TOP_TOGGLE, TOP_VOLUME_CHANGE, TOP_WAITING];
  13006. var SimpleEventPlugin = {
  13007. eventTypes: eventTypes$4,
  13008. getEventPriority: function (topLevelType) {
  13009. var config = topLevelEventsToDispatchConfig[topLevelType];
  13010. return config !== undefined ? config.eventPriority : ContinuousEvent;
  13011. },
  13012. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  13013. var dispatchConfig = topLevelEventsToDispatchConfig[topLevelType];
  13014. if (!dispatchConfig) {
  13015. return null;
  13016. }
  13017. var EventConstructor = void 0;
  13018. switch (topLevelType) {
  13019. case TOP_KEY_PRESS:
  13020. // Firefox creates a keypress event for function keys too. This removes
  13021. // the unwanted keypress events. Enter is however both printable and
  13022. // non-printable. One would expect Tab to be as well (but it isn't).
  13023. if (getEventCharCode(nativeEvent) === 0) {
  13024. return null;
  13025. }
  13026. /* falls through */
  13027. case TOP_KEY_DOWN:
  13028. case TOP_KEY_UP:
  13029. EventConstructor = SyntheticKeyboardEvent;
  13030. break;
  13031. case TOP_BLUR:
  13032. case TOP_FOCUS:
  13033. EventConstructor = SyntheticFocusEvent;
  13034. break;
  13035. case TOP_CLICK:
  13036. // Firefox creates a click event on right mouse clicks. This removes the
  13037. // unwanted click events.
  13038. if (nativeEvent.button === 2) {
  13039. return null;
  13040. }
  13041. /* falls through */
  13042. case TOP_AUX_CLICK:
  13043. case TOP_DOUBLE_CLICK:
  13044. case TOP_MOUSE_DOWN:
  13045. case TOP_MOUSE_MOVE:
  13046. case TOP_MOUSE_UP:
  13047. // TODO: Disabled elements should not respond to mouse events
  13048. /* falls through */
  13049. case TOP_MOUSE_OUT:
  13050. case TOP_MOUSE_OVER:
  13051. case TOP_CONTEXT_MENU:
  13052. EventConstructor = SyntheticMouseEvent;
  13053. break;
  13054. case TOP_DRAG:
  13055. case TOP_DRAG_END:
  13056. case TOP_DRAG_ENTER:
  13057. case TOP_DRAG_EXIT:
  13058. case TOP_DRAG_LEAVE:
  13059. case TOP_DRAG_OVER:
  13060. case TOP_DRAG_START:
  13061. case TOP_DROP:
  13062. EventConstructor = SyntheticDragEvent;
  13063. break;
  13064. case TOP_TOUCH_CANCEL:
  13065. case TOP_TOUCH_END:
  13066. case TOP_TOUCH_MOVE:
  13067. case TOP_TOUCH_START:
  13068. EventConstructor = SyntheticTouchEvent;
  13069. break;
  13070. case TOP_ANIMATION_END:
  13071. case TOP_ANIMATION_ITERATION:
  13072. case TOP_ANIMATION_START:
  13073. EventConstructor = SyntheticAnimationEvent;
  13074. break;
  13075. case TOP_TRANSITION_END:
  13076. EventConstructor = SyntheticTransitionEvent;
  13077. break;
  13078. case TOP_SCROLL:
  13079. EventConstructor = SyntheticUIEvent;
  13080. break;
  13081. case TOP_WHEEL:
  13082. EventConstructor = SyntheticWheelEvent;
  13083. break;
  13084. case TOP_COPY:
  13085. case TOP_CUT:
  13086. case TOP_PASTE:
  13087. EventConstructor = SyntheticClipboardEvent;
  13088. break;
  13089. case TOP_GOT_POINTER_CAPTURE:
  13090. case TOP_LOST_POINTER_CAPTURE:
  13091. case TOP_POINTER_CANCEL:
  13092. case TOP_POINTER_DOWN:
  13093. case TOP_POINTER_MOVE:
  13094. case TOP_POINTER_OUT:
  13095. case TOP_POINTER_OVER:
  13096. case TOP_POINTER_UP:
  13097. EventConstructor = SyntheticPointerEvent;
  13098. break;
  13099. default:
  13100. {
  13101. if (knownHTMLTopLevelTypes.indexOf(topLevelType) === -1) {
  13102. warningWithoutStack$1(false, 'SimpleEventPlugin: Unhandled event type, `%s`. This warning ' + 'is likely caused by a bug in React. Please file an issue.', topLevelType);
  13103. }
  13104. }
  13105. // HTML Events
  13106. // @see http://www.w3.org/TR/html5/index.html#events-0
  13107. EventConstructor = SyntheticEvent;
  13108. break;
  13109. }
  13110. var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget);
  13111. accumulateTwoPhaseDispatches(event);
  13112. return event;
  13113. }
  13114. };
  13115. var passiveBrowserEventsSupported = false;
  13116. // Check if browser support events with passive listeners
  13117. // https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support
  13118. if (enableFlareAPI && canUseDOM) {
  13119. try {
  13120. var options = {};
  13121. // $FlowFixMe: Ignore Flow complaining about needing a value
  13122. Object.defineProperty(options, 'passive', {
  13123. get: function () {
  13124. passiveBrowserEventsSupported = true;
  13125. }
  13126. });
  13127. window.addEventListener('test', options, options);
  13128. window.removeEventListener('test', options, options);
  13129. } catch (e) {
  13130. passiveBrowserEventsSupported = false;
  13131. }
  13132. }
  13133. // Intentionally not named imports because Rollup would use dynamic dispatch for
  13134. // CommonJS interop named imports.
  13135. var UserBlockingPriority = Scheduler.unstable_UserBlockingPriority;
  13136. var runWithPriority = Scheduler.unstable_runWithPriority;
  13137. var getEventPriority = SimpleEventPlugin.getEventPriority;
  13138. var CALLBACK_BOOKKEEPING_POOL_SIZE = 10;
  13139. var callbackBookkeepingPool = [];
  13140. /**
  13141. * Find the deepest React component completely containing the root of the
  13142. * passed-in instance (for use when entire React trees are nested within each
  13143. * other). If React trees are not nested, returns null.
  13144. */
  13145. function findRootContainerNode(inst) {
  13146. // TODO: It may be a good idea to cache this to prevent unnecessary DOM
  13147. // traversal, but caching is difficult to do correctly without using a
  13148. // mutation observer to listen for all DOM changes.
  13149. while (inst.return) {
  13150. inst = inst.return;
  13151. }
  13152. if (inst.tag !== HostRoot) {
  13153. // This can happen if we're in a detached tree.
  13154. return null;
  13155. }
  13156. return inst.stateNode.containerInfo;
  13157. }
  13158. // Used to store ancestor hierarchy in top level callback
  13159. function getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst) {
  13160. if (callbackBookkeepingPool.length) {
  13161. var instance = callbackBookkeepingPool.pop();
  13162. instance.topLevelType = topLevelType;
  13163. instance.nativeEvent = nativeEvent;
  13164. instance.targetInst = targetInst;
  13165. return instance;
  13166. }
  13167. return {
  13168. topLevelType: topLevelType,
  13169. nativeEvent: nativeEvent,
  13170. targetInst: targetInst,
  13171. ancestors: []
  13172. };
  13173. }
  13174. function releaseTopLevelCallbackBookKeeping(instance) {
  13175. instance.topLevelType = null;
  13176. instance.nativeEvent = null;
  13177. instance.targetInst = null;
  13178. instance.ancestors.length = 0;
  13179. if (callbackBookkeepingPool.length < CALLBACK_BOOKKEEPING_POOL_SIZE) {
  13180. callbackBookkeepingPool.push(instance);
  13181. }
  13182. }
  13183. function handleTopLevel(bookKeeping) {
  13184. var targetInst = bookKeeping.targetInst;
  13185. // Loop through the hierarchy, in case there's any nested components.
  13186. // It's important that we build the array of ancestors before calling any
  13187. // event handlers, because event handlers can modify the DOM, leading to
  13188. // inconsistencies with ReactMount's node cache. See #1105.
  13189. var ancestor = targetInst;
  13190. do {
  13191. if (!ancestor) {
  13192. var _ancestors = bookKeeping.ancestors;
  13193. _ancestors.push(ancestor);
  13194. break;
  13195. }
  13196. var root = findRootContainerNode(ancestor);
  13197. if (!root) {
  13198. break;
  13199. }
  13200. bookKeeping.ancestors.push(ancestor);
  13201. ancestor = getClosestInstanceFromNode(root);
  13202. } while (ancestor);
  13203. for (var i = 0; i < bookKeeping.ancestors.length; i++) {
  13204. targetInst = bookKeeping.ancestors[i];
  13205. var eventTarget = getEventTarget(bookKeeping.nativeEvent);
  13206. var _topLevelType = bookKeeping.topLevelType;
  13207. var _nativeEvent = bookKeeping.nativeEvent;
  13208. runExtractedPluginEventsInBatch(_topLevelType, targetInst, _nativeEvent, eventTarget);
  13209. }
  13210. }
  13211. // TODO: can we stop exporting these?
  13212. var _enabled = true;
  13213. function setEnabled(enabled) {
  13214. _enabled = !!enabled;
  13215. }
  13216. function isEnabled() {
  13217. return _enabled;
  13218. }
  13219. function trapBubbledEvent(topLevelType, element) {
  13220. trapEventForPluginEventSystem(element, topLevelType, false);
  13221. }
  13222. function trapCapturedEvent(topLevelType, element) {
  13223. trapEventForPluginEventSystem(element, topLevelType, true);
  13224. }
  13225. function trapEventForResponderEventSystem(element, topLevelType, passive) {
  13226. if (enableFlareAPI) {
  13227. var rawEventName = getRawEventName(topLevelType);
  13228. var eventFlags = RESPONDER_EVENT_SYSTEM;
  13229. // If passive option is not supported, then the event will be
  13230. // active and not passive, but we flag it as using not being
  13231. // supported too. This way the responder event plugins know,
  13232. // and can provide polyfills if needed.
  13233. if (passive) {
  13234. if (passiveBrowserEventsSupported) {
  13235. eventFlags |= IS_PASSIVE;
  13236. } else {
  13237. eventFlags |= IS_ACTIVE;
  13238. eventFlags |= PASSIVE_NOT_SUPPORTED;
  13239. passive = false;
  13240. }
  13241. } else {
  13242. eventFlags |= IS_ACTIVE;
  13243. }
  13244. // Check if interactive and wrap in discreteUpdates
  13245. var listener = dispatchEvent.bind(null, topLevelType, eventFlags);
  13246. if (passiveBrowserEventsSupported) {
  13247. addEventCaptureListenerWithPassiveFlag(element, rawEventName, listener, passive);
  13248. } else {
  13249. addEventCaptureListener(element, rawEventName, listener);
  13250. }
  13251. }
  13252. }
  13253. function trapEventForPluginEventSystem(element, topLevelType, capture) {
  13254. var listener = void 0;
  13255. switch (getEventPriority(topLevelType)) {
  13256. case DiscreteEvent:
  13257. listener = dispatchDiscreteEvent.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM);
  13258. break;
  13259. case UserBlockingEvent:
  13260. listener = dispatchUserBlockingUpdate.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM);
  13261. break;
  13262. case ContinuousEvent:
  13263. default:
  13264. listener = dispatchEvent.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM);
  13265. break;
  13266. }
  13267. var rawEventName = getRawEventName(topLevelType);
  13268. if (capture) {
  13269. addEventCaptureListener(element, rawEventName, listener);
  13270. } else {
  13271. addEventBubbleListener(element, rawEventName, listener);
  13272. }
  13273. }
  13274. function dispatchDiscreteEvent(topLevelType, eventSystemFlags, nativeEvent) {
  13275. flushDiscreteUpdatesIfNeeded(nativeEvent.timeStamp);
  13276. discreteUpdates(dispatchEvent, topLevelType, eventSystemFlags, nativeEvent);
  13277. }
  13278. function dispatchUserBlockingUpdate(topLevelType, eventSystemFlags, nativeEvent) {
  13279. if (enableUserBlockingEvents) {
  13280. runWithPriority(UserBlockingPriority, dispatchEvent.bind(null, topLevelType, eventSystemFlags, nativeEvent));
  13281. } else {
  13282. dispatchEvent(topLevelType, eventSystemFlags, nativeEvent);
  13283. }
  13284. }
  13285. function dispatchEventForPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst) {
  13286. var bookKeeping = getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst);
  13287. try {
  13288. // Event queue being processed in the same cycle allows
  13289. // `preventDefault`.
  13290. batchedEventUpdates(handleTopLevel, bookKeeping);
  13291. } finally {
  13292. releaseTopLevelCallbackBookKeeping(bookKeeping);
  13293. }
  13294. }
  13295. function dispatchEvent(topLevelType, eventSystemFlags, nativeEvent) {
  13296. if (!_enabled) {
  13297. return;
  13298. }
  13299. var nativeEventTarget = getEventTarget(nativeEvent);
  13300. var targetInst = getClosestInstanceFromNode(nativeEventTarget);
  13301. if (targetInst !== null && typeof targetInst.tag === 'number' && !isFiberMounted(targetInst)) {
  13302. // If we get an event (ex: img onload) before committing that
  13303. // component's mount, ignore it for now (that is, treat it as if it was an
  13304. // event on a non-React tree). We might also consider queueing events and
  13305. // dispatching them after the mount.
  13306. targetInst = null;
  13307. }
  13308. if (enableFlareAPI) {
  13309. if (eventSystemFlags === PLUGIN_EVENT_SYSTEM) {
  13310. dispatchEventForPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst);
  13311. } else {
  13312. // React Flare event system
  13313. dispatchEventForResponderEventSystem(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
  13314. }
  13315. } else {
  13316. dispatchEventForPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst);
  13317. }
  13318. }
  13319. /**
  13320. * Summary of `ReactBrowserEventEmitter` event handling:
  13321. *
  13322. * - Top-level delegation is used to trap most native browser events. This
  13323. * may only occur in the main thread and is the responsibility of
  13324. * ReactDOMEventListener, which is injected and can therefore support
  13325. * pluggable event sources. This is the only work that occurs in the main
  13326. * thread.
  13327. *
  13328. * - We normalize and de-duplicate events to account for browser quirks. This
  13329. * may be done in the worker thread.
  13330. *
  13331. * - Forward these native events (with the associated top-level type used to
  13332. * trap it) to `EventPluginHub`, which in turn will ask plugins if they want
  13333. * to extract any synthetic events.
  13334. *
  13335. * - The `EventPluginHub` will then process each event by annotating them with
  13336. * "dispatches", a sequence of listeners and IDs that care about that event.
  13337. *
  13338. * - The `EventPluginHub` then dispatches the events.
  13339. *
  13340. * Overview of React and the event system:
  13341. *
  13342. * +------------+ .
  13343. * | DOM | .
  13344. * +------------+ .
  13345. * | .
  13346. * v .
  13347. * +------------+ .
  13348. * | ReactEvent | .
  13349. * | Listener | .
  13350. * +------------+ . +-----------+
  13351. * | . +--------+|SimpleEvent|
  13352. * | . | |Plugin |
  13353. * +-----|------+ . v +-----------+
  13354. * | | | . +--------------+ +------------+
  13355. * | +-----------.--->|EventPluginHub| | Event |
  13356. * | | . | | +-----------+ | Propagators|
  13357. * | ReactEvent | . | | |TapEvent | |------------|
  13358. * | Emitter | . | |<---+|Plugin | |other plugin|
  13359. * | | . | | +-----------+ | utilities |
  13360. * | +-----------.--->| | +------------+
  13361. * | | | . +--------------+
  13362. * +-----|------+ . ^ +-----------+
  13363. * | . | |Enter/Leave|
  13364. * + . +-------+|Plugin |
  13365. * +-------------+ . +-----------+
  13366. * | application | .
  13367. * |-------------| .
  13368. * | | .
  13369. * | | .
  13370. * +-------------+ .
  13371. * .
  13372. * React Core . General Purpose Event Plugin System
  13373. */
  13374. var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
  13375. var elementListeningSets = new PossiblyWeakMap();
  13376. function getListeningSetForElement(element) {
  13377. var listeningSet = elementListeningSets.get(element);
  13378. if (listeningSet === undefined) {
  13379. listeningSet = new Set();
  13380. elementListeningSets.set(element, listeningSet);
  13381. }
  13382. return listeningSet;
  13383. }
  13384. /**
  13385. * We listen for bubbled touch events on the document object.
  13386. *
  13387. * Firefox v8.01 (and possibly others) exhibited strange behavior when
  13388. * mounting `onmousemove` events at some node that was not the document
  13389. * element. The symptoms were that if your mouse is not moving over something
  13390. * contained within that mount point (for example on the background) the
  13391. * top-level listeners for `onmousemove` won't be called. However, if you
  13392. * register the `mousemove` on the document object, then it will of course
  13393. * catch all `mousemove`s. This along with iOS quirks, justifies restricting
  13394. * top-level listeners to the document object only, at least for these
  13395. * movement types of events and possibly all events.
  13396. *
  13397. * @see http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  13398. *
  13399. * Also, `keyup`/`keypress`/`keydown` do not bubble to the window on IE, but
  13400. * they bubble to document.
  13401. *
  13402. * @param {string} registrationName Name of listener (e.g. `onClick`).
  13403. * @param {object} mountAt Container where to mount the listener
  13404. */
  13405. function listenTo(registrationName, mountAt) {
  13406. var listeningSet = getListeningSetForElement(mountAt);
  13407. var dependencies = registrationNameDependencies[registrationName];
  13408. for (var i = 0; i < dependencies.length; i++) {
  13409. var dependency = dependencies[i];
  13410. if (!listeningSet.has(dependency)) {
  13411. switch (dependency) {
  13412. case TOP_SCROLL:
  13413. trapCapturedEvent(TOP_SCROLL, mountAt);
  13414. break;
  13415. case TOP_FOCUS:
  13416. case TOP_BLUR:
  13417. trapCapturedEvent(TOP_FOCUS, mountAt);
  13418. trapCapturedEvent(TOP_BLUR, mountAt);
  13419. // We set the flag for a single dependency later in this function,
  13420. // but this ensures we mark both as attached rather than just one.
  13421. listeningSet.add(TOP_BLUR);
  13422. listeningSet.add(TOP_FOCUS);
  13423. break;
  13424. case TOP_CANCEL:
  13425. case TOP_CLOSE:
  13426. if (isEventSupported(getRawEventName(dependency))) {
  13427. trapCapturedEvent(dependency, mountAt);
  13428. }
  13429. break;
  13430. case TOP_INVALID:
  13431. case TOP_SUBMIT:
  13432. case TOP_RESET:
  13433. // We listen to them on the target DOM elements.
  13434. // Some of them bubble so we don't want them to fire twice.
  13435. break;
  13436. default:
  13437. // By default, listen on the top level to all non-media events.
  13438. // Media events don't bubble so adding the listener wouldn't do anything.
  13439. var isMediaEvent = mediaEventTypes.indexOf(dependency) !== -1;
  13440. if (!isMediaEvent) {
  13441. trapBubbledEvent(dependency, mountAt);
  13442. }
  13443. break;
  13444. }
  13445. listeningSet.add(dependency);
  13446. }
  13447. }
  13448. }
  13449. function isListeningToAllDependencies(registrationName, mountAt) {
  13450. var listeningSet = getListeningSetForElement(mountAt);
  13451. var dependencies = registrationNameDependencies[registrationName];
  13452. for (var i = 0; i < dependencies.length; i++) {
  13453. var dependency = dependencies[i];
  13454. if (!listeningSet.has(dependency)) {
  13455. return false;
  13456. }
  13457. }
  13458. return true;
  13459. }
  13460. function getActiveElement(doc) {
  13461. doc = doc || (typeof document !== 'undefined' ? document : undefined);
  13462. if (typeof doc === 'undefined') {
  13463. return null;
  13464. }
  13465. try {
  13466. return doc.activeElement || doc.body;
  13467. } catch (e) {
  13468. return doc.body;
  13469. }
  13470. }
  13471. /**
  13472. * Given any node return the first leaf node without children.
  13473. *
  13474. * @param {DOMElement|DOMTextNode} node
  13475. * @return {DOMElement|DOMTextNode}
  13476. */
  13477. function getLeafNode(node) {
  13478. while (node && node.firstChild) {
  13479. node = node.firstChild;
  13480. }
  13481. return node;
  13482. }
  13483. /**
  13484. * Get the next sibling within a container. This will walk up the
  13485. * DOM if a node's siblings have been exhausted.
  13486. *
  13487. * @param {DOMElement|DOMTextNode} node
  13488. * @return {?DOMElement|DOMTextNode}
  13489. */
  13490. function getSiblingNode(node) {
  13491. while (node) {
  13492. if (node.nextSibling) {
  13493. return node.nextSibling;
  13494. }
  13495. node = node.parentNode;
  13496. }
  13497. }
  13498. /**
  13499. * Get object describing the nodes which contain characters at offset.
  13500. *
  13501. * @param {DOMElement|DOMTextNode} root
  13502. * @param {number} offset
  13503. * @return {?object}
  13504. */
  13505. function getNodeForCharacterOffset(root, offset) {
  13506. var node = getLeafNode(root);
  13507. var nodeStart = 0;
  13508. var nodeEnd = 0;
  13509. while (node) {
  13510. if (node.nodeType === TEXT_NODE) {
  13511. nodeEnd = nodeStart + node.textContent.length;
  13512. if (nodeStart <= offset && nodeEnd >= offset) {
  13513. return {
  13514. node: node,
  13515. offset: offset - nodeStart
  13516. };
  13517. }
  13518. nodeStart = nodeEnd;
  13519. }
  13520. node = getLeafNode(getSiblingNode(node));
  13521. }
  13522. }
  13523. /**
  13524. * @param {DOMElement} outerNode
  13525. * @return {?object}
  13526. */
  13527. function getOffsets(outerNode) {
  13528. var ownerDocument = outerNode.ownerDocument;
  13529. var win = ownerDocument && ownerDocument.defaultView || window;
  13530. var selection = win.getSelection && win.getSelection();
  13531. if (!selection || selection.rangeCount === 0) {
  13532. return null;
  13533. }
  13534. var anchorNode = selection.anchorNode,
  13535. anchorOffset = selection.anchorOffset,
  13536. focusNode = selection.focusNode,
  13537. focusOffset = selection.focusOffset;
  13538. // In Firefox, anchorNode and focusNode can be "anonymous divs", e.g. the
  13539. // up/down buttons on an <input type="number">. Anonymous divs do not seem to
  13540. // expose properties, triggering a "Permission denied error" if any of its
  13541. // properties are accessed. The only seemingly possible way to avoid erroring
  13542. // is to access a property that typically works for non-anonymous divs and
  13543. // catch any error that may otherwise arise. See
  13544. // https://bugzilla.mozilla.org/show_bug.cgi?id=208427
  13545. try {
  13546. /* eslint-disable no-unused-expressions */
  13547. anchorNode.nodeType;
  13548. focusNode.nodeType;
  13549. /* eslint-enable no-unused-expressions */
  13550. } catch (e) {
  13551. return null;
  13552. }
  13553. return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset);
  13554. }
  13555. /**
  13556. * Returns {start, end} where `start` is the character/codepoint index of
  13557. * (anchorNode, anchorOffset) within the textContent of `outerNode`, and
  13558. * `end` is the index of (focusNode, focusOffset).
  13559. *
  13560. * Returns null if you pass in garbage input but we should probably just crash.
  13561. *
  13562. * Exported only for testing.
  13563. */
  13564. function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) {
  13565. var length = 0;
  13566. var start = -1;
  13567. var end = -1;
  13568. var indexWithinAnchor = 0;
  13569. var indexWithinFocus = 0;
  13570. var node = outerNode;
  13571. var parentNode = null;
  13572. outer: while (true) {
  13573. var next = null;
  13574. while (true) {
  13575. if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) {
  13576. start = length + anchorOffset;
  13577. }
  13578. if (node === focusNode && (focusOffset === 0 || node.nodeType === TEXT_NODE)) {
  13579. end = length + focusOffset;
  13580. }
  13581. if (node.nodeType === TEXT_NODE) {
  13582. length += node.nodeValue.length;
  13583. }
  13584. if ((next = node.firstChild) === null) {
  13585. break;
  13586. }
  13587. // Moving from `node` to its first child `next`.
  13588. parentNode = node;
  13589. node = next;
  13590. }
  13591. while (true) {
  13592. if (node === outerNode) {
  13593. // If `outerNode` has children, this is always the second time visiting
  13594. // it. If it has no children, this is still the first loop, and the only
  13595. // valid selection is anchorNode and focusNode both equal to this node
  13596. // and both offsets 0, in which case we will have handled above.
  13597. break outer;
  13598. }
  13599. if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) {
  13600. start = length;
  13601. }
  13602. if (parentNode === focusNode && ++indexWithinFocus === focusOffset) {
  13603. end = length;
  13604. }
  13605. if ((next = node.nextSibling) !== null) {
  13606. break;
  13607. }
  13608. node = parentNode;
  13609. parentNode = node.parentNode;
  13610. }
  13611. // Moving from `node` to its next sibling `next`.
  13612. node = next;
  13613. }
  13614. if (start === -1 || end === -1) {
  13615. // This should never happen. (Would happen if the anchor/focus nodes aren't
  13616. // actually inside the passed-in node.)
  13617. return null;
  13618. }
  13619. return {
  13620. start: start,
  13621. end: end
  13622. };
  13623. }
  13624. /**
  13625. * In modern non-IE browsers, we can support both forward and backward
  13626. * selections.
  13627. *
  13628. * Note: IE10+ supports the Selection object, but it does not support
  13629. * the `extend` method, which means that even in modern IE, it's not possible
  13630. * to programmatically create a backward selection. Thus, for all IE
  13631. * versions, we use the old IE API to create our selections.
  13632. *
  13633. * @param {DOMElement|DOMTextNode} node
  13634. * @param {object} offsets
  13635. */
  13636. function setOffsets(node, offsets) {
  13637. var doc = node.ownerDocument || document;
  13638. var win = doc && doc.defaultView || window;
  13639. // Edge fails with "Object expected" in some scenarios.
  13640. // (For instance: TinyMCE editor used in a list component that supports pasting to add more,
  13641. // fails when pasting 100+ items)
  13642. if (!win.getSelection) {
  13643. return;
  13644. }
  13645. var selection = win.getSelection();
  13646. var length = node.textContent.length;
  13647. var start = Math.min(offsets.start, length);
  13648. var end = offsets.end === undefined ? start : Math.min(offsets.end, length);
  13649. // IE 11 uses modern selection, but doesn't support the extend method.
  13650. // Flip backward selections, so we can set with a single range.
  13651. if (!selection.extend && start > end) {
  13652. var temp = end;
  13653. end = start;
  13654. start = temp;
  13655. }
  13656. var startMarker = getNodeForCharacterOffset(node, start);
  13657. var endMarker = getNodeForCharacterOffset(node, end);
  13658. if (startMarker && endMarker) {
  13659. if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) {
  13660. return;
  13661. }
  13662. var range = doc.createRange();
  13663. range.setStart(startMarker.node, startMarker.offset);
  13664. selection.removeAllRanges();
  13665. if (start > end) {
  13666. selection.addRange(range);
  13667. selection.extend(endMarker.node, endMarker.offset);
  13668. } else {
  13669. range.setEnd(endMarker.node, endMarker.offset);
  13670. selection.addRange(range);
  13671. }
  13672. }
  13673. }
  13674. function isTextNode(node) {
  13675. return node && node.nodeType === TEXT_NODE;
  13676. }
  13677. function containsNode(outerNode, innerNode) {
  13678. if (!outerNode || !innerNode) {
  13679. return false;
  13680. } else if (outerNode === innerNode) {
  13681. return true;
  13682. } else if (isTextNode(outerNode)) {
  13683. return false;
  13684. } else if (isTextNode(innerNode)) {
  13685. return containsNode(outerNode, innerNode.parentNode);
  13686. } else if ('contains' in outerNode) {
  13687. return outerNode.contains(innerNode);
  13688. } else if (outerNode.compareDocumentPosition) {
  13689. return !!(outerNode.compareDocumentPosition(innerNode) & 16);
  13690. } else {
  13691. return false;
  13692. }
  13693. }
  13694. function isInDocument(node) {
  13695. return node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node);
  13696. }
  13697. function isSameOriginFrame(iframe) {
  13698. try {
  13699. // Accessing the contentDocument of a HTMLIframeElement can cause the browser
  13700. // to throw, e.g. if it has a cross-origin src attribute.
  13701. // Safari will show an error in the console when the access results in "Blocked a frame with origin". e.g:
  13702. // iframe.contentDocument.defaultView;
  13703. // A safety way is to access one of the cross origin properties: Window or Location
  13704. // Which might result in "SecurityError" DOM Exception and it is compatible to Safari.
  13705. // https://html.spec.whatwg.org/multipage/browsers.html#integration-with-idl
  13706. return typeof iframe.contentWindow.location.href === 'string';
  13707. } catch (err) {
  13708. return false;
  13709. }
  13710. }
  13711. function getActiveElementDeep() {
  13712. var win = window;
  13713. var element = getActiveElement();
  13714. while (element instanceof win.HTMLIFrameElement) {
  13715. if (isSameOriginFrame(element)) {
  13716. win = element.contentWindow;
  13717. } else {
  13718. return element;
  13719. }
  13720. element = getActiveElement(win.document);
  13721. }
  13722. return element;
  13723. }
  13724. /**
  13725. * @ReactInputSelection: React input selection module. Based on Selection.js,
  13726. * but modified to be suitable for react and has a couple of bug fixes (doesn't
  13727. * assume buttons have range selections allowed).
  13728. * Input selection module for React.
  13729. */
  13730. /**
  13731. * @hasSelectionCapabilities: we get the element types that support selection
  13732. * from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart`
  13733. * and `selectionEnd` rows.
  13734. */
  13735. function hasSelectionCapabilities(elem) {
  13736. var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  13737. return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true');
  13738. }
  13739. function getSelectionInformation() {
  13740. var focusedElem = getActiveElementDeep();
  13741. return {
  13742. focusedElem: focusedElem,
  13743. selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection$1(focusedElem) : null
  13744. };
  13745. }
  13746. /**
  13747. * @restoreSelection: If any selection information was potentially lost,
  13748. * restore it. This is useful when performing operations that could remove dom
  13749. * nodes and place them back in, resulting in focus being lost.
  13750. */
  13751. function restoreSelection(priorSelectionInformation) {
  13752. var curFocusedElem = getActiveElementDeep();
  13753. var priorFocusedElem = priorSelectionInformation.focusedElem;
  13754. var priorSelectionRange = priorSelectionInformation.selectionRange;
  13755. if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {
  13756. if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) {
  13757. setSelection(priorFocusedElem, priorSelectionRange);
  13758. }
  13759. // Focusing a node can change the scroll position, which is undesirable
  13760. var ancestors = [];
  13761. var ancestor = priorFocusedElem;
  13762. while (ancestor = ancestor.parentNode) {
  13763. if (ancestor.nodeType === ELEMENT_NODE) {
  13764. ancestors.push({
  13765. element: ancestor,
  13766. left: ancestor.scrollLeft,
  13767. top: ancestor.scrollTop
  13768. });
  13769. }
  13770. }
  13771. if (typeof priorFocusedElem.focus === 'function') {
  13772. priorFocusedElem.focus();
  13773. }
  13774. for (var i = 0; i < ancestors.length; i++) {
  13775. var info = ancestors[i];
  13776. info.element.scrollLeft = info.left;
  13777. info.element.scrollTop = info.top;
  13778. }
  13779. }
  13780. }
  13781. /**
  13782. * @getSelection: Gets the selection bounds of a focused textarea, input or
  13783. * contentEditable node.
  13784. * -@input: Look up selection bounds of this input
  13785. * -@return {start: selectionStart, end: selectionEnd}
  13786. */
  13787. function getSelection$1(input) {
  13788. var selection = void 0;
  13789. if ('selectionStart' in input) {
  13790. // Modern browser with input or textarea.
  13791. selection = {
  13792. start: input.selectionStart,
  13793. end: input.selectionEnd
  13794. };
  13795. } else {
  13796. // Content editable or old IE textarea.
  13797. selection = getOffsets(input);
  13798. }
  13799. return selection || { start: 0, end: 0 };
  13800. }
  13801. /**
  13802. * @setSelection: Sets the selection bounds of a textarea or input and focuses
  13803. * the input.
  13804. * -@input Set selection bounds of this input or textarea
  13805. * -@offsets Object of same form that is returned from get*
  13806. */
  13807. function setSelection(input, offsets) {
  13808. var start = offsets.start,
  13809. end = offsets.end;
  13810. if (end === undefined) {
  13811. end = start;
  13812. }
  13813. if ('selectionStart' in input) {
  13814. input.selectionStart = start;
  13815. input.selectionEnd = Math.min(end, input.value.length);
  13816. } else {
  13817. setOffsets(input, offsets);
  13818. }
  13819. }
  13820. var skipSelectionChangeEvent = canUseDOM && 'documentMode' in document && document.documentMode <= 11;
  13821. var eventTypes$3 = {
  13822. select: {
  13823. phasedRegistrationNames: {
  13824. bubbled: 'onSelect',
  13825. captured: 'onSelectCapture'
  13826. },
  13827. dependencies: [TOP_BLUR, TOP_CONTEXT_MENU, TOP_DRAG_END, TOP_FOCUS, TOP_KEY_DOWN, TOP_KEY_UP, TOP_MOUSE_DOWN, TOP_MOUSE_UP, TOP_SELECTION_CHANGE]
  13828. }
  13829. };
  13830. var activeElement$1 = null;
  13831. var activeElementInst$1 = null;
  13832. var lastSelection = null;
  13833. var mouseDown = false;
  13834. /**
  13835. * Get an object which is a unique representation of the current selection.
  13836. *
  13837. * The return value will not be consistent across nodes or browsers, but
  13838. * two identical selections on the same node will return identical objects.
  13839. *
  13840. * @param {DOMElement} node
  13841. * @return {object}
  13842. */
  13843. function getSelection(node) {
  13844. if ('selectionStart' in node && hasSelectionCapabilities(node)) {
  13845. return {
  13846. start: node.selectionStart,
  13847. end: node.selectionEnd
  13848. };
  13849. } else {
  13850. var win = node.ownerDocument && node.ownerDocument.defaultView || window;
  13851. var selection = win.getSelection();
  13852. return {
  13853. anchorNode: selection.anchorNode,
  13854. anchorOffset: selection.anchorOffset,
  13855. focusNode: selection.focusNode,
  13856. focusOffset: selection.focusOffset
  13857. };
  13858. }
  13859. }
  13860. /**
  13861. * Get document associated with the event target.
  13862. *
  13863. * @param {object} nativeEventTarget
  13864. * @return {Document}
  13865. */
  13866. function getEventTargetDocument(eventTarget) {
  13867. return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument;
  13868. }
  13869. /**
  13870. * Poll selection to see whether it's changed.
  13871. *
  13872. * @param {object} nativeEvent
  13873. * @param {object} nativeEventTarget
  13874. * @return {?SyntheticEvent}
  13875. */
  13876. function constructSelectEvent(nativeEvent, nativeEventTarget) {
  13877. // Ensure we have the right element, and that the user is not dragging a
  13878. // selection (this matches native `select` event behavior). In HTML5, select
  13879. // fires only on input and textarea thus if there's no focused element we
  13880. // won't dispatch.
  13881. var doc = getEventTargetDocument(nativeEventTarget);
  13882. if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement(doc)) {
  13883. return null;
  13884. }
  13885. // Only fire when selection has actually changed.
  13886. var currentSelection = getSelection(activeElement$1);
  13887. if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {
  13888. lastSelection = currentSelection;
  13889. var syntheticEvent = SyntheticEvent.getPooled(eventTypes$3.select, activeElementInst$1, nativeEvent, nativeEventTarget);
  13890. syntheticEvent.type = 'select';
  13891. syntheticEvent.target = activeElement$1;
  13892. accumulateTwoPhaseDispatches(syntheticEvent);
  13893. return syntheticEvent;
  13894. }
  13895. return null;
  13896. }
  13897. /**
  13898. * This plugin creates an `onSelect` event that normalizes select events
  13899. * across form elements.
  13900. *
  13901. * Supported elements are:
  13902. * - input (see `isTextInputElement`)
  13903. * - textarea
  13904. * - contentEditable
  13905. *
  13906. * This differs from native browser implementations in the following ways:
  13907. * - Fires on contentEditable fields as well as inputs.
  13908. * - Fires for collapsed selection.
  13909. * - Fires after user input.
  13910. */
  13911. var SelectEventPlugin = {
  13912. eventTypes: eventTypes$3,
  13913. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  13914. var doc = getEventTargetDocument(nativeEventTarget);
  13915. // Track whether all listeners exists for this plugin. If none exist, we do
  13916. // not extract events. See #3639.
  13917. if (!doc || !isListeningToAllDependencies('onSelect', doc)) {
  13918. return null;
  13919. }
  13920. var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
  13921. switch (topLevelType) {
  13922. // Track the input node that has focus.
  13923. case TOP_FOCUS:
  13924. if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {
  13925. activeElement$1 = targetNode;
  13926. activeElementInst$1 = targetInst;
  13927. lastSelection = null;
  13928. }
  13929. break;
  13930. case TOP_BLUR:
  13931. activeElement$1 = null;
  13932. activeElementInst$1 = null;
  13933. lastSelection = null;
  13934. break;
  13935. // Don't fire the event while the user is dragging. This matches the
  13936. // semantics of the native select event.
  13937. case TOP_MOUSE_DOWN:
  13938. mouseDown = true;
  13939. break;
  13940. case TOP_CONTEXT_MENU:
  13941. case TOP_MOUSE_UP:
  13942. case TOP_DRAG_END:
  13943. mouseDown = false;
  13944. return constructSelectEvent(nativeEvent, nativeEventTarget);
  13945. // Chrome and IE fire non-standard event when selection is changed (and
  13946. // sometimes when it hasn't). IE's event fires out of order with respect
  13947. // to key and input events on deletion, so we discard it.
  13948. //
  13949. // Firefox doesn't support selectionchange, so check selection status
  13950. // after each key entry. The selection changes after keydown and before
  13951. // keyup, but we check on keydown as well in the case of holding down a
  13952. // key, when multiple keydown events are fired but only one keyup is.
  13953. // This is also our approach for IE handling, for the reason above.
  13954. case TOP_SELECTION_CHANGE:
  13955. if (skipSelectionChangeEvent) {
  13956. break;
  13957. }
  13958. // falls through
  13959. case TOP_KEY_DOWN:
  13960. case TOP_KEY_UP:
  13961. return constructSelectEvent(nativeEvent, nativeEventTarget);
  13962. }
  13963. return null;
  13964. }
  13965. };
  13966. /**
  13967. * Inject modules for resolving DOM hierarchy and plugin ordering.
  13968. */
  13969. injection.injectEventPluginOrder(DOMEventPluginOrder);
  13970. setComponentTree(getFiberCurrentPropsFromNode$1, getInstanceFromNode$1, getNodeFromInstance$1);
  13971. /**
  13972. * Some important event plugins included by default (without having to require
  13973. * them).
  13974. */
  13975. injection.injectEventPluginsByName({
  13976. SimpleEventPlugin: SimpleEventPlugin,
  13977. EnterLeaveEventPlugin: EnterLeaveEventPlugin,
  13978. ChangeEventPlugin: ChangeEventPlugin,
  13979. SelectEventPlugin: SelectEventPlugin,
  13980. BeforeInputEventPlugin: BeforeInputEventPlugin
  13981. });
  13982. function endsWith(subject, search) {
  13983. var length = subject.length;
  13984. return subject.substring(length - search.length, length) === search;
  13985. }
  13986. var didWarnSelectedSetOnOption = false;
  13987. var didWarnInvalidChild = false;
  13988. function flattenChildren(children) {
  13989. var content = '';
  13990. // Flatten children. We'll warn if they are invalid
  13991. // during validateProps() which runs for hydration too.
  13992. // Note that this would throw on non-element objects.
  13993. // Elements are stringified (which is normally irrelevant
  13994. // but matters for <fbt>).
  13995. React.Children.forEach(children, function (child) {
  13996. if (child == null) {
  13997. return;
  13998. }
  13999. content += child;
  14000. // Note: we don't warn about invalid children here.
  14001. // Instead, this is done separately below so that
  14002. // it happens during the hydration codepath too.
  14003. });
  14004. return content;
  14005. }
  14006. /**
  14007. * Implements an <option> host component that warns when `selected` is set.
  14008. */
  14009. function validateProps(element, props) {
  14010. {
  14011. // This mirrors the codepath above, but runs for hydration too.
  14012. // Warn about invalid children here so that client and hydration are consistent.
  14013. // TODO: this seems like it could cause a DEV-only throw for hydration
  14014. // if children contains a non-element object. We should try to avoid that.
  14015. if (typeof props.children === 'object' && props.children !== null) {
  14016. React.Children.forEach(props.children, function (child) {
  14017. if (child == null) {
  14018. return;
  14019. }
  14020. if (typeof child === 'string' || typeof child === 'number') {
  14021. return;
  14022. }
  14023. if (typeof child.type !== 'string') {
  14024. return;
  14025. }
  14026. if (!didWarnInvalidChild) {
  14027. didWarnInvalidChild = true;
  14028. warning$1(false, 'Only strings and numbers are supported as <option> children.');
  14029. }
  14030. });
  14031. }
  14032. // TODO: Remove support for `selected` in <option>.
  14033. if (props.selected != null && !didWarnSelectedSetOnOption) {
  14034. warning$1(false, 'Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');
  14035. didWarnSelectedSetOnOption = true;
  14036. }
  14037. }
  14038. }
  14039. function postMountWrapper$1(element, props) {
  14040. // value="" should make a value attribute (#6219)
  14041. if (props.value != null) {
  14042. element.setAttribute('value', toString(getToStringValue(props.value)));
  14043. }
  14044. }
  14045. function getHostProps$1(element, props) {
  14046. var hostProps = _assign({ children: undefined }, props);
  14047. var content = flattenChildren(props.children);
  14048. if (content) {
  14049. hostProps.children = content;
  14050. }
  14051. return hostProps;
  14052. }
  14053. // TODO: direct imports like some-package/src/* are bad. Fix me.
  14054. var didWarnValueDefaultValue$1 = void 0;
  14055. {
  14056. didWarnValueDefaultValue$1 = false;
  14057. }
  14058. function getDeclarationErrorAddendum() {
  14059. var ownerName = getCurrentFiberOwnerNameInDevOrNull();
  14060. if (ownerName) {
  14061. return '\n\nCheck the render method of `' + ownerName + '`.';
  14062. }
  14063. return '';
  14064. }
  14065. var valuePropNames = ['value', 'defaultValue'];
  14066. /**
  14067. * Validation function for `value` and `defaultValue`.
  14068. */
  14069. function checkSelectPropTypes(props) {
  14070. ReactControlledValuePropTypes.checkPropTypes('select', props);
  14071. for (var i = 0; i < valuePropNames.length; i++) {
  14072. var propName = valuePropNames[i];
  14073. if (props[propName] == null) {
  14074. continue;
  14075. }
  14076. var isArray = Array.isArray(props[propName]);
  14077. if (props.multiple && !isArray) {
  14078. warning$1(false, 'The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());
  14079. } else if (!props.multiple && isArray) {
  14080. warning$1(false, 'The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum());
  14081. }
  14082. }
  14083. }
  14084. function updateOptions(node, multiple, propValue, setDefaultSelected) {
  14085. var options = node.options;
  14086. if (multiple) {
  14087. var selectedValues = propValue;
  14088. var selectedValue = {};
  14089. for (var i = 0; i < selectedValues.length; i++) {
  14090. // Prefix to avoid chaos with special keys.
  14091. selectedValue['$' + selectedValues[i]] = true;
  14092. }
  14093. for (var _i = 0; _i < options.length; _i++) {
  14094. var selected = selectedValue.hasOwnProperty('$' + options[_i].value);
  14095. if (options[_i].selected !== selected) {
  14096. options[_i].selected = selected;
  14097. }
  14098. if (selected && setDefaultSelected) {
  14099. options[_i].defaultSelected = true;
  14100. }
  14101. }
  14102. } else {
  14103. // Do not set `select.value` as exact behavior isn't consistent across all
  14104. // browsers for all cases.
  14105. var _selectedValue = toString(getToStringValue(propValue));
  14106. var defaultSelected = null;
  14107. for (var _i2 = 0; _i2 < options.length; _i2++) {
  14108. if (options[_i2].value === _selectedValue) {
  14109. options[_i2].selected = true;
  14110. if (setDefaultSelected) {
  14111. options[_i2].defaultSelected = true;
  14112. }
  14113. return;
  14114. }
  14115. if (defaultSelected === null && !options[_i2].disabled) {
  14116. defaultSelected = options[_i2];
  14117. }
  14118. }
  14119. if (defaultSelected !== null) {
  14120. defaultSelected.selected = true;
  14121. }
  14122. }
  14123. }
  14124. /**
  14125. * Implements a <select> host component that allows optionally setting the
  14126. * props `value` and `defaultValue`. If `multiple` is false, the prop must be a
  14127. * stringable. If `multiple` is true, the prop must be an array of stringables.
  14128. *
  14129. * If `value` is not supplied (or null/undefined), user actions that change the
  14130. * selected option will trigger updates to the rendered options.
  14131. *
  14132. * If it is supplied (and not null/undefined), the rendered options will not
  14133. * update in response to user actions. Instead, the `value` prop must change in
  14134. * order for the rendered options to update.
  14135. *
  14136. * If `defaultValue` is provided, any options with the supplied values will be
  14137. * selected.
  14138. */
  14139. function getHostProps$2(element, props) {
  14140. return _assign({}, props, {
  14141. value: undefined
  14142. });
  14143. }
  14144. function initWrapperState$1(element, props) {
  14145. var node = element;
  14146. {
  14147. checkSelectPropTypes(props);
  14148. }
  14149. node._wrapperState = {
  14150. wasMultiple: !!props.multiple
  14151. };
  14152. {
  14153. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) {
  14154. warning$1(false, '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://fb.me/react-controlled-components');
  14155. didWarnValueDefaultValue$1 = true;
  14156. }
  14157. }
  14158. }
  14159. function postMountWrapper$2(element, props) {
  14160. var node = element;
  14161. node.multiple = !!props.multiple;
  14162. var value = props.value;
  14163. if (value != null) {
  14164. updateOptions(node, !!props.multiple, value, false);
  14165. } else if (props.defaultValue != null) {
  14166. updateOptions(node, !!props.multiple, props.defaultValue, true);
  14167. }
  14168. }
  14169. function postUpdateWrapper(element, props) {
  14170. var node = element;
  14171. var wasMultiple = node._wrapperState.wasMultiple;
  14172. node._wrapperState.wasMultiple = !!props.multiple;
  14173. var value = props.value;
  14174. if (value != null) {
  14175. updateOptions(node, !!props.multiple, value, false);
  14176. } else if (wasMultiple !== !!props.multiple) {
  14177. // For simplicity, reapply `defaultValue` if `multiple` is toggled.
  14178. if (props.defaultValue != null) {
  14179. updateOptions(node, !!props.multiple, props.defaultValue, true);
  14180. } else {
  14181. // Revert the select back to its default unselected state.
  14182. updateOptions(node, !!props.multiple, props.multiple ? [] : '', false);
  14183. }
  14184. }
  14185. }
  14186. function restoreControlledState$2(element, props) {
  14187. var node = element;
  14188. var value = props.value;
  14189. if (value != null) {
  14190. updateOptions(node, !!props.multiple, value, false);
  14191. }
  14192. }
  14193. var didWarnValDefaultVal = false;
  14194. /**
  14195. * Implements a <textarea> host component that allows setting `value`, and
  14196. * `defaultValue`. This differs from the traditional DOM API because value is
  14197. * usually set as PCDATA children.
  14198. *
  14199. * If `value` is not supplied (or null/undefined), user actions that affect the
  14200. * value will trigger updates to the element.
  14201. *
  14202. * If `value` is supplied (and not null/undefined), the rendered element will
  14203. * not trigger updates to the element. Instead, the `value` prop must change in
  14204. * order for the rendered element to be updated.
  14205. *
  14206. * The rendered element will be initialized with an empty value, the prop
  14207. * `defaultValue` if specified, or the children content (deprecated).
  14208. */
  14209. function getHostProps$3(element, props) {
  14210. var node = element;
  14211. (function () {
  14212. if (!(props.dangerouslySetInnerHTML == null)) {
  14213. {
  14214. throw ReactError(Error('`dangerouslySetInnerHTML` does not make sense on <textarea>.'));
  14215. }
  14216. }
  14217. })();
  14218. // Always set children to the same thing. In IE9, the selection range will
  14219. // get reset if `textContent` is mutated. We could add a check in setTextContent
  14220. // to only set the value if/when the value differs from the node value (which would
  14221. // completely solve this IE9 bug), but Sebastian+Sophie seemed to like this
  14222. // solution. The value can be a boolean or object so that's why it's forced
  14223. // to be a string.
  14224. var hostProps = _assign({}, props, {
  14225. value: undefined,
  14226. defaultValue: undefined,
  14227. children: toString(node._wrapperState.initialValue)
  14228. });
  14229. return hostProps;
  14230. }
  14231. function initWrapperState$2(element, props) {
  14232. var node = element;
  14233. {
  14234. ReactControlledValuePropTypes.checkPropTypes('textarea', props);
  14235. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {
  14236. warning$1(false, '%s contains a textarea with both value and defaultValue props. ' + '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://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
  14237. didWarnValDefaultVal = true;
  14238. }
  14239. }
  14240. var initialValue = props.value;
  14241. // Only bother fetching default value if we're going to use it
  14242. if (initialValue == null) {
  14243. var defaultValue = props.defaultValue;
  14244. // TODO (yungsters): Remove support for children content in <textarea>.
  14245. var children = props.children;
  14246. if (children != null) {
  14247. {
  14248. warning$1(false, 'Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');
  14249. }
  14250. (function () {
  14251. if (!(defaultValue == null)) {
  14252. {
  14253. throw ReactError(Error('If you supply `defaultValue` on a <textarea>, do not pass children.'));
  14254. }
  14255. }
  14256. })();
  14257. if (Array.isArray(children)) {
  14258. (function () {
  14259. if (!(children.length <= 1)) {
  14260. {
  14261. throw ReactError(Error('<textarea> can only have at most one child.'));
  14262. }
  14263. }
  14264. })();
  14265. children = children[0];
  14266. }
  14267. defaultValue = children;
  14268. }
  14269. if (defaultValue == null) {
  14270. defaultValue = '';
  14271. }
  14272. initialValue = defaultValue;
  14273. }
  14274. node._wrapperState = {
  14275. initialValue: getToStringValue(initialValue)
  14276. };
  14277. }
  14278. function updateWrapper$1(element, props) {
  14279. var node = element;
  14280. var value = getToStringValue(props.value);
  14281. var defaultValue = getToStringValue(props.defaultValue);
  14282. if (value != null) {
  14283. // Cast `value` to a string to ensure the value is set correctly. While
  14284. // browsers typically do this as necessary, jsdom doesn't.
  14285. var newValue = toString(value);
  14286. // To avoid side effects (such as losing text selection), only set value if changed
  14287. if (newValue !== node.value) {
  14288. node.value = newValue;
  14289. }
  14290. if (props.defaultValue == null && node.defaultValue !== newValue) {
  14291. node.defaultValue = newValue;
  14292. }
  14293. }
  14294. if (defaultValue != null) {
  14295. node.defaultValue = toString(defaultValue);
  14296. }
  14297. }
  14298. function postMountWrapper$3(element, props) {
  14299. var node = element;
  14300. // This is in postMount because we need access to the DOM node, which is not
  14301. // available until after the component has mounted.
  14302. var textContent = node.textContent;
  14303. // Only set node.value if textContent is equal to the expected
  14304. // initial value. In IE10/IE11 there is a bug where the placeholder attribute
  14305. // will populate textContent as well.
  14306. // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/
  14307. if (textContent === node._wrapperState.initialValue) {
  14308. node.value = textContent;
  14309. }
  14310. }
  14311. function restoreControlledState$3(element, props) {
  14312. // DOM component is still mounted; update
  14313. updateWrapper$1(element, props);
  14314. }
  14315. var HTML_NAMESPACE$1 = 'http://www.w3.org/1999/xhtml';
  14316. var MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
  14317. var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
  14318. var Namespaces = {
  14319. html: HTML_NAMESPACE$1,
  14320. mathml: MATH_NAMESPACE,
  14321. svg: SVG_NAMESPACE
  14322. };
  14323. // Assumes there is no parent namespace.
  14324. function getIntrinsicNamespace(type) {
  14325. switch (type) {
  14326. case 'svg':
  14327. return SVG_NAMESPACE;
  14328. case 'math':
  14329. return MATH_NAMESPACE;
  14330. default:
  14331. return HTML_NAMESPACE$1;
  14332. }
  14333. }
  14334. function getChildNamespace(parentNamespace, type) {
  14335. if (parentNamespace == null || parentNamespace === HTML_NAMESPACE$1) {
  14336. // No (or default) parent namespace: potential entry point.
  14337. return getIntrinsicNamespace(type);
  14338. }
  14339. if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
  14340. // We're leaving SVG.
  14341. return HTML_NAMESPACE$1;
  14342. }
  14343. // By default, pass namespace below.
  14344. return parentNamespace;
  14345. }
  14346. /* globals MSApp */
  14347. /**
  14348. * Create a function which has 'unsafe' privileges (required by windows8 apps)
  14349. */
  14350. var createMicrosoftUnsafeLocalFunction = function (func) {
  14351. if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {
  14352. return function (arg0, arg1, arg2, arg3) {
  14353. MSApp.execUnsafeLocalFunction(function () {
  14354. return func(arg0, arg1, arg2, arg3);
  14355. });
  14356. };
  14357. } else {
  14358. return func;
  14359. }
  14360. };
  14361. // SVG temp container for IE lacking innerHTML
  14362. var reusableSVGContainer = void 0;
  14363. /**
  14364. * Set the innerHTML property of a node
  14365. *
  14366. * @param {DOMElement} node
  14367. * @param {string} html
  14368. * @internal
  14369. */
  14370. var setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {
  14371. // IE does not have innerHTML for SVG nodes, so instead we inject the
  14372. // new markup in a temp node and then move the child nodes across into
  14373. // the target node
  14374. if (node.namespaceURI === Namespaces.svg && !('innerHTML' in node)) {
  14375. reusableSVGContainer = reusableSVGContainer || document.createElement('div');
  14376. reusableSVGContainer.innerHTML = '<svg>' + html + '</svg>';
  14377. var svgNode = reusableSVGContainer.firstChild;
  14378. while (node.firstChild) {
  14379. node.removeChild(node.firstChild);
  14380. }
  14381. while (svgNode.firstChild) {
  14382. node.appendChild(svgNode.firstChild);
  14383. }
  14384. } else {
  14385. node.innerHTML = html;
  14386. }
  14387. });
  14388. /**
  14389. * Set the textContent property of a node. For text updates, it's faster
  14390. * to set the `nodeValue` of the Text node directly instead of using
  14391. * `.textContent` which will remove the existing node and create a new one.
  14392. *
  14393. * @param {DOMElement} node
  14394. * @param {string} text
  14395. * @internal
  14396. */
  14397. var setTextContent = function (node, text) {
  14398. if (text) {
  14399. var firstChild = node.firstChild;
  14400. if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) {
  14401. firstChild.nodeValue = text;
  14402. return;
  14403. }
  14404. }
  14405. node.textContent = text;
  14406. };
  14407. // List derived from Gecko source code:
  14408. // https://github.com/mozilla/gecko-dev/blob/4e638efc71/layout/style/test/property_database.js
  14409. var shorthandToLonghand = {
  14410. animation: ['animationDelay', 'animationDirection', 'animationDuration', 'animationFillMode', 'animationIterationCount', 'animationName', 'animationPlayState', 'animationTimingFunction'],
  14411. background: ['backgroundAttachment', 'backgroundClip', 'backgroundColor', 'backgroundImage', 'backgroundOrigin', 'backgroundPositionX', 'backgroundPositionY', 'backgroundRepeat', 'backgroundSize'],
  14412. backgroundPosition: ['backgroundPositionX', 'backgroundPositionY'],
  14413. border: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth', 'borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth', 'borderLeftColor', 'borderLeftStyle', 'borderLeftWidth', 'borderRightColor', 'borderRightStyle', 'borderRightWidth', 'borderTopColor', 'borderTopStyle', 'borderTopWidth'],
  14414. borderBlockEnd: ['borderBlockEndColor', 'borderBlockEndStyle', 'borderBlockEndWidth'],
  14415. borderBlockStart: ['borderBlockStartColor', 'borderBlockStartStyle', 'borderBlockStartWidth'],
  14416. borderBottom: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth'],
  14417. borderColor: ['borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor'],
  14418. borderImage: ['borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth'],
  14419. borderInlineEnd: ['borderInlineEndColor', 'borderInlineEndStyle', 'borderInlineEndWidth'],
  14420. borderInlineStart: ['borderInlineStartColor', 'borderInlineStartStyle', 'borderInlineStartWidth'],
  14421. borderLeft: ['borderLeftColor', 'borderLeftStyle', 'borderLeftWidth'],
  14422. borderRadius: ['borderBottomLeftRadius', 'borderBottomRightRadius', 'borderTopLeftRadius', 'borderTopRightRadius'],
  14423. borderRight: ['borderRightColor', 'borderRightStyle', 'borderRightWidth'],
  14424. borderStyle: ['borderBottomStyle', 'borderLeftStyle', 'borderRightStyle', 'borderTopStyle'],
  14425. borderTop: ['borderTopColor', 'borderTopStyle', 'borderTopWidth'],
  14426. borderWidth: ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth'],
  14427. columnRule: ['columnRuleColor', 'columnRuleStyle', 'columnRuleWidth'],
  14428. columns: ['columnCount', 'columnWidth'],
  14429. flex: ['flexBasis', 'flexGrow', 'flexShrink'],
  14430. flexFlow: ['flexDirection', 'flexWrap'],
  14431. font: ['fontFamily', 'fontFeatureSettings', 'fontKerning', 'fontLanguageOverride', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition', 'fontWeight', 'lineHeight'],
  14432. fontVariant: ['fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition'],
  14433. gap: ['columnGap', 'rowGap'],
  14434. grid: ['gridAutoColumns', 'gridAutoFlow', 'gridAutoRows', 'gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
  14435. gridArea: ['gridColumnEnd', 'gridColumnStart', 'gridRowEnd', 'gridRowStart'],
  14436. gridColumn: ['gridColumnEnd', 'gridColumnStart'],
  14437. gridColumnGap: ['columnGap'],
  14438. gridGap: ['columnGap', 'rowGap'],
  14439. gridRow: ['gridRowEnd', 'gridRowStart'],
  14440. gridRowGap: ['rowGap'],
  14441. gridTemplate: ['gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
  14442. listStyle: ['listStyleImage', 'listStylePosition', 'listStyleType'],
  14443. margin: ['marginBottom', 'marginLeft', 'marginRight', 'marginTop'],
  14444. marker: ['markerEnd', 'markerMid', 'markerStart'],
  14445. mask: ['maskClip', 'maskComposite', 'maskImage', 'maskMode', 'maskOrigin', 'maskPositionX', 'maskPositionY', 'maskRepeat', 'maskSize'],
  14446. maskPosition: ['maskPositionX', 'maskPositionY'],
  14447. outline: ['outlineColor', 'outlineStyle', 'outlineWidth'],
  14448. overflow: ['overflowX', 'overflowY'],
  14449. padding: ['paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop'],
  14450. placeContent: ['alignContent', 'justifyContent'],
  14451. placeItems: ['alignItems', 'justifyItems'],
  14452. placeSelf: ['alignSelf', 'justifySelf'],
  14453. textDecoration: ['textDecorationColor', 'textDecorationLine', 'textDecorationStyle'],
  14454. textEmphasis: ['textEmphasisColor', 'textEmphasisStyle'],
  14455. transition: ['transitionDelay', 'transitionDuration', 'transitionProperty', 'transitionTimingFunction'],
  14456. wordWrap: ['overflowWrap']
  14457. };
  14458. /**
  14459. * CSS properties which accept numbers but are not in units of "px".
  14460. */
  14461. var isUnitlessNumber = {
  14462. animationIterationCount: true,
  14463. borderImageOutset: true,
  14464. borderImageSlice: true,
  14465. borderImageWidth: true,
  14466. boxFlex: true,
  14467. boxFlexGroup: true,
  14468. boxOrdinalGroup: true,
  14469. columnCount: true,
  14470. columns: true,
  14471. flex: true,
  14472. flexGrow: true,
  14473. flexPositive: true,
  14474. flexShrink: true,
  14475. flexNegative: true,
  14476. flexOrder: true,
  14477. gridArea: true,
  14478. gridRow: true,
  14479. gridRowEnd: true,
  14480. gridRowSpan: true,
  14481. gridRowStart: true,
  14482. gridColumn: true,
  14483. gridColumnEnd: true,
  14484. gridColumnSpan: true,
  14485. gridColumnStart: true,
  14486. fontWeight: true,
  14487. lineClamp: true,
  14488. lineHeight: true,
  14489. opacity: true,
  14490. order: true,
  14491. orphans: true,
  14492. tabSize: true,
  14493. widows: true,
  14494. zIndex: true,
  14495. zoom: true,
  14496. // SVG-related properties
  14497. fillOpacity: true,
  14498. floodOpacity: true,
  14499. stopOpacity: true,
  14500. strokeDasharray: true,
  14501. strokeDashoffset: true,
  14502. strokeMiterlimit: true,
  14503. strokeOpacity: true,
  14504. strokeWidth: true
  14505. };
  14506. /**
  14507. * @param {string} prefix vendor-specific prefix, eg: Webkit
  14508. * @param {string} key style name, eg: transitionDuration
  14509. * @return {string} style name prefixed with `prefix`, properly camelCased, eg:
  14510. * WebkitTransitionDuration
  14511. */
  14512. function prefixKey(prefix, key) {
  14513. return prefix + key.charAt(0).toUpperCase() + key.substring(1);
  14514. }
  14515. /**
  14516. * Support style names that may come passed in prefixed by adding permutations
  14517. * of vendor prefixes.
  14518. */
  14519. var prefixes = ['Webkit', 'ms', 'Moz', 'O'];
  14520. // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
  14521. // infinite loop, because it iterates over the newly added props too.
  14522. Object.keys(isUnitlessNumber).forEach(function (prop) {
  14523. prefixes.forEach(function (prefix) {
  14524. isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
  14525. });
  14526. });
  14527. /**
  14528. * Convert a value into the proper css writable value. The style name `name`
  14529. * should be logical (no hyphens), as specified
  14530. * in `CSSProperty.isUnitlessNumber`.
  14531. *
  14532. * @param {string} name CSS property name such as `topMargin`.
  14533. * @param {*} value CSS property value such as `10px`.
  14534. * @return {string} Normalized style value with dimensions applied.
  14535. */
  14536. function dangerousStyleValue(name, value, isCustomProperty) {
  14537. // Note that we've removed escapeTextForBrowser() calls here since the
  14538. // whole string will be escaped when the attribute is injected into
  14539. // the markup. If you provide unsafe user data here they can inject
  14540. // arbitrary CSS which may be problematic (I couldn't repro this):
  14541. // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
  14542. // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/
  14543. // This is not an XSS hole but instead a potential CSS injection issue
  14544. // which has lead to a greater discussion about how we're going to
  14545. // trust URLs moving forward. See #2115901
  14546. var isEmpty = value == null || typeof value === 'boolean' || value === '';
  14547. if (isEmpty) {
  14548. return '';
  14549. }
  14550. if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) {
  14551. return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers
  14552. }
  14553. return ('' + value).trim();
  14554. }
  14555. var uppercasePattern = /([A-Z])/g;
  14556. var msPattern = /^ms-/;
  14557. /**
  14558. * Hyphenates a camelcased CSS property name, for example:
  14559. *
  14560. * > hyphenateStyleName('backgroundColor')
  14561. * < "background-color"
  14562. * > hyphenateStyleName('MozTransition')
  14563. * < "-moz-transition"
  14564. * > hyphenateStyleName('msTransition')
  14565. * < "-ms-transition"
  14566. *
  14567. * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
  14568. * is converted to `-ms-`.
  14569. */
  14570. function hyphenateStyleName(name) {
  14571. return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');
  14572. }
  14573. var warnValidStyle = function () {};
  14574. {
  14575. // 'msTransform' is correct, but the other prefixes should be capitalized
  14576. var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;
  14577. var msPattern$1 = /^-ms-/;
  14578. var hyphenPattern = /-(.)/g;
  14579. // style values shouldn't contain a semicolon
  14580. var badStyleValueWithSemicolonPattern = /;\s*$/;
  14581. var warnedStyleNames = {};
  14582. var warnedStyleValues = {};
  14583. var warnedForNaNValue = false;
  14584. var warnedForInfinityValue = false;
  14585. var camelize = function (string) {
  14586. return string.replace(hyphenPattern, function (_, character) {
  14587. return character.toUpperCase();
  14588. });
  14589. };
  14590. var warnHyphenatedStyleName = function (name) {
  14591. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  14592. return;
  14593. }
  14594. warnedStyleNames[name] = true;
  14595. warning$1(false, 'Unsupported style property %s. Did you mean %s?', name,
  14596. // As Andi Smith suggests
  14597. // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
  14598. // is converted to lowercase `ms`.
  14599. camelize(name.replace(msPattern$1, 'ms-')));
  14600. };
  14601. var warnBadVendoredStyleName = function (name) {
  14602. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  14603. return;
  14604. }
  14605. warnedStyleNames[name] = true;
  14606. warning$1(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));
  14607. };
  14608. var warnStyleValueWithSemicolon = function (name, value) {
  14609. if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
  14610. return;
  14611. }
  14612. warnedStyleValues[value] = true;
  14613. warning$1(false, "Style property values shouldn't contain a semicolon. " + 'Try "%s: %s" instead.', name, value.replace(badStyleValueWithSemicolonPattern, ''));
  14614. };
  14615. var warnStyleValueIsNaN = function (name, value) {
  14616. if (warnedForNaNValue) {
  14617. return;
  14618. }
  14619. warnedForNaNValue = true;
  14620. warning$1(false, '`NaN` is an invalid value for the `%s` css style property.', name);
  14621. };
  14622. var warnStyleValueIsInfinity = function (name, value) {
  14623. if (warnedForInfinityValue) {
  14624. return;
  14625. }
  14626. warnedForInfinityValue = true;
  14627. warning$1(false, '`Infinity` is an invalid value for the `%s` css style property.', name);
  14628. };
  14629. warnValidStyle = function (name, value) {
  14630. if (name.indexOf('-') > -1) {
  14631. warnHyphenatedStyleName(name);
  14632. } else if (badVendoredStyleNamePattern.test(name)) {
  14633. warnBadVendoredStyleName(name);
  14634. } else if (badStyleValueWithSemicolonPattern.test(value)) {
  14635. warnStyleValueWithSemicolon(name, value);
  14636. }
  14637. if (typeof value === 'number') {
  14638. if (isNaN(value)) {
  14639. warnStyleValueIsNaN(name, value);
  14640. } else if (!isFinite(value)) {
  14641. warnStyleValueIsInfinity(name, value);
  14642. }
  14643. }
  14644. };
  14645. }
  14646. var warnValidStyle$1 = warnValidStyle;
  14647. /**
  14648. * Operations for dealing with CSS properties.
  14649. */
  14650. /**
  14651. * This creates a string that is expected to be equivalent to the style
  14652. * attribute generated by server-side rendering. It by-passes warnings and
  14653. * security checks so it's not safe to use this value for anything other than
  14654. * comparison. It is only used in DEV for SSR validation.
  14655. */
  14656. function createDangerousStringForStyles(styles) {
  14657. {
  14658. var serialized = '';
  14659. var delimiter = '';
  14660. for (var styleName in styles) {
  14661. if (!styles.hasOwnProperty(styleName)) {
  14662. continue;
  14663. }
  14664. var styleValue = styles[styleName];
  14665. if (styleValue != null) {
  14666. var isCustomProperty = styleName.indexOf('--') === 0;
  14667. serialized += delimiter + (isCustomProperty ? styleName : hyphenateStyleName(styleName)) + ':';
  14668. serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty);
  14669. delimiter = ';';
  14670. }
  14671. }
  14672. return serialized || null;
  14673. }
  14674. }
  14675. /**
  14676. * Sets the value for multiple styles on a node. If a value is specified as
  14677. * '' (empty string), the corresponding style property will be unset.
  14678. *
  14679. * @param {DOMElement} node
  14680. * @param {object} styles
  14681. */
  14682. function setValueForStyles(node, styles) {
  14683. var style = node.style;
  14684. for (var styleName in styles) {
  14685. if (!styles.hasOwnProperty(styleName)) {
  14686. continue;
  14687. }
  14688. var isCustomProperty = styleName.indexOf('--') === 0;
  14689. {
  14690. if (!isCustomProperty) {
  14691. warnValidStyle$1(styleName, styles[styleName]);
  14692. }
  14693. }
  14694. var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty);
  14695. if (styleName === 'float') {
  14696. styleName = 'cssFloat';
  14697. }
  14698. if (isCustomProperty) {
  14699. style.setProperty(styleName, styleValue);
  14700. } else {
  14701. style[styleName] = styleValue;
  14702. }
  14703. }
  14704. }
  14705. function isValueEmpty(value) {
  14706. return value == null || typeof value === 'boolean' || value === '';
  14707. }
  14708. /**
  14709. * Given {color: 'red', overflow: 'hidden'} returns {
  14710. * color: 'color',
  14711. * overflowX: 'overflow',
  14712. * overflowY: 'overflow',
  14713. * }. This can be read as "the overflowY property was set by the overflow
  14714. * shorthand". That is, the values are the property that each was derived from.
  14715. */
  14716. function expandShorthandMap(styles) {
  14717. var expanded = {};
  14718. for (var key in styles) {
  14719. var longhands = shorthandToLonghand[key] || [key];
  14720. for (var i = 0; i < longhands.length; i++) {
  14721. expanded[longhands[i]] = key;
  14722. }
  14723. }
  14724. return expanded;
  14725. }
  14726. /**
  14727. * When mixing shorthand and longhand property names, we warn during updates if
  14728. * we expect an incorrect result to occur. In particular, we warn for:
  14729. *
  14730. * Updating a shorthand property (longhand gets overwritten):
  14731. * {font: 'foo', fontVariant: 'bar'} -> {font: 'baz', fontVariant: 'bar'}
  14732. * becomes .style.font = 'baz'
  14733. * Removing a shorthand property (longhand gets lost too):
  14734. * {font: 'foo', fontVariant: 'bar'} -> {fontVariant: 'bar'}
  14735. * becomes .style.font = ''
  14736. * Removing a longhand property (should revert to shorthand; doesn't):
  14737. * {font: 'foo', fontVariant: 'bar'} -> {font: 'foo'}
  14738. * becomes .style.fontVariant = ''
  14739. */
  14740. function validateShorthandPropertyCollisionInDev(styleUpdates, nextStyles) {
  14741. if (!warnAboutShorthandPropertyCollision) {
  14742. return;
  14743. }
  14744. if (!nextStyles) {
  14745. return;
  14746. }
  14747. var expandedUpdates = expandShorthandMap(styleUpdates);
  14748. var expandedStyles = expandShorthandMap(nextStyles);
  14749. var warnedAbout = {};
  14750. for (var key in expandedUpdates) {
  14751. var originalKey = expandedUpdates[key];
  14752. var correctOriginalKey = expandedStyles[key];
  14753. if (correctOriginalKey && originalKey !== correctOriginalKey) {
  14754. var warningKey = originalKey + ',' + correctOriginalKey;
  14755. if (warnedAbout[warningKey]) {
  14756. continue;
  14757. }
  14758. warnedAbout[warningKey] = true;
  14759. warning$1(false, '%s a style property during rerender (%s) when a ' + 'conflicting property is set (%s) can lead to styling bugs. To ' + "avoid this, don't mix shorthand and non-shorthand properties " + 'for the same value; instead, replace the shorthand with ' + 'separate values.', isValueEmpty(styleUpdates[originalKey]) ? 'Removing' : 'Updating', originalKey, correctOriginalKey);
  14760. }
  14761. }
  14762. }
  14763. // For HTML, certain tags should omit their close tag. We keep a whitelist for
  14764. // those special-case tags.
  14765. var omittedCloseTags = {
  14766. area: true,
  14767. base: true,
  14768. br: true,
  14769. col: true,
  14770. embed: true,
  14771. hr: true,
  14772. img: true,
  14773. input: true,
  14774. keygen: true,
  14775. link: true,
  14776. meta: true,
  14777. param: true,
  14778. source: true,
  14779. track: true,
  14780. wbr: true
  14781. // NOTE: menuitem's close tag should be omitted, but that causes problems.
  14782. };
  14783. // For HTML, certain tags cannot have children. This has the same purpose as
  14784. // `omittedCloseTags` except that `menuitem` should still have its closing tag.
  14785. var voidElementTags = _assign({
  14786. menuitem: true
  14787. }, omittedCloseTags);
  14788. // TODO: We can remove this if we add invariantWithStack()
  14789. // or add stack by default to invariants where possible.
  14790. var HTML$1 = '__html';
  14791. var ReactDebugCurrentFrame$3 = null;
  14792. {
  14793. ReactDebugCurrentFrame$3 = ReactSharedInternals.ReactDebugCurrentFrame;
  14794. }
  14795. function assertValidProps(tag, props) {
  14796. if (!props) {
  14797. return;
  14798. }
  14799. // Note the use of `==` which checks for null or undefined.
  14800. if (voidElementTags[tag]) {
  14801. (function () {
  14802. if (!(props.children == null && props.dangerouslySetInnerHTML == null)) {
  14803. {
  14804. throw ReactError(Error(tag + ' is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.' + (ReactDebugCurrentFrame$3.getStackAddendum())));
  14805. }
  14806. }
  14807. })();
  14808. }
  14809. if (props.dangerouslySetInnerHTML != null) {
  14810. (function () {
  14811. if (!(props.children == null)) {
  14812. {
  14813. throw ReactError(Error('Can only set one of `children` or `props.dangerouslySetInnerHTML`.'));
  14814. }
  14815. }
  14816. })();
  14817. (function () {
  14818. if (!(typeof props.dangerouslySetInnerHTML === 'object' && HTML$1 in props.dangerouslySetInnerHTML)) {
  14819. {
  14820. throw ReactError(Error('`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information.'));
  14821. }
  14822. }
  14823. })();
  14824. }
  14825. {
  14826. !(props.suppressContentEditableWarning || !props.contentEditable || props.children == null) ? warning$1(false, '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.') : void 0;
  14827. }
  14828. (function () {
  14829. if (!(props.style == null || typeof props.style === 'object')) {
  14830. {
  14831. throw ReactError(Error('The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \'em\'}} when using JSX.' + (ReactDebugCurrentFrame$3.getStackAddendum())));
  14832. }
  14833. }
  14834. })();
  14835. }
  14836. function isCustomComponent(tagName, props) {
  14837. if (tagName.indexOf('-') === -1) {
  14838. return typeof props.is === 'string';
  14839. }
  14840. switch (tagName) {
  14841. // These are reserved SVG and MathML elements.
  14842. // We don't mind this whitelist too much because we expect it to never grow.
  14843. // The alternative is to track the namespace in a few places which is convoluted.
  14844. // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts
  14845. case 'annotation-xml':
  14846. case 'color-profile':
  14847. case 'font-face':
  14848. case 'font-face-src':
  14849. case 'font-face-uri':
  14850. case 'font-face-format':
  14851. case 'font-face-name':
  14852. case 'missing-glyph':
  14853. return false;
  14854. default:
  14855. return true;
  14856. }
  14857. }
  14858. // When adding attributes to the HTML or SVG whitelist, be sure to
  14859. // also add them to this module to ensure casing and incorrect name
  14860. // warnings.
  14861. var possibleStandardNames = {
  14862. // HTML
  14863. accept: 'accept',
  14864. acceptcharset: 'acceptCharset',
  14865. 'accept-charset': 'acceptCharset',
  14866. accesskey: 'accessKey',
  14867. action: 'action',
  14868. allowfullscreen: 'allowFullScreen',
  14869. alt: 'alt',
  14870. as: 'as',
  14871. async: 'async',
  14872. autocapitalize: 'autoCapitalize',
  14873. autocomplete: 'autoComplete',
  14874. autocorrect: 'autoCorrect',
  14875. autofocus: 'autoFocus',
  14876. autoplay: 'autoPlay',
  14877. autosave: 'autoSave',
  14878. capture: 'capture',
  14879. cellpadding: 'cellPadding',
  14880. cellspacing: 'cellSpacing',
  14881. challenge: 'challenge',
  14882. charset: 'charSet',
  14883. checked: 'checked',
  14884. children: 'children',
  14885. cite: 'cite',
  14886. class: 'className',
  14887. classid: 'classID',
  14888. classname: 'className',
  14889. cols: 'cols',
  14890. colspan: 'colSpan',
  14891. content: 'content',
  14892. contenteditable: 'contentEditable',
  14893. contextmenu: 'contextMenu',
  14894. controls: 'controls',
  14895. controlslist: 'controlsList',
  14896. coords: 'coords',
  14897. crossorigin: 'crossOrigin',
  14898. dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',
  14899. data: 'data',
  14900. datetime: 'dateTime',
  14901. default: 'default',
  14902. defaultchecked: 'defaultChecked',
  14903. defaultvalue: 'defaultValue',
  14904. defer: 'defer',
  14905. dir: 'dir',
  14906. disabled: 'disabled',
  14907. disablepictureinpicture: 'disablePictureInPicture',
  14908. download: 'download',
  14909. draggable: 'draggable',
  14910. enctype: 'encType',
  14911. for: 'htmlFor',
  14912. form: 'form',
  14913. formmethod: 'formMethod',
  14914. formaction: 'formAction',
  14915. formenctype: 'formEncType',
  14916. formnovalidate: 'formNoValidate',
  14917. formtarget: 'formTarget',
  14918. frameborder: 'frameBorder',
  14919. headers: 'headers',
  14920. height: 'height',
  14921. hidden: 'hidden',
  14922. high: 'high',
  14923. href: 'href',
  14924. hreflang: 'hrefLang',
  14925. htmlfor: 'htmlFor',
  14926. httpequiv: 'httpEquiv',
  14927. 'http-equiv': 'httpEquiv',
  14928. icon: 'icon',
  14929. id: 'id',
  14930. innerhtml: 'innerHTML',
  14931. inputmode: 'inputMode',
  14932. integrity: 'integrity',
  14933. is: 'is',
  14934. itemid: 'itemID',
  14935. itemprop: 'itemProp',
  14936. itemref: 'itemRef',
  14937. itemscope: 'itemScope',
  14938. itemtype: 'itemType',
  14939. keyparams: 'keyParams',
  14940. keytype: 'keyType',
  14941. kind: 'kind',
  14942. label: 'label',
  14943. lang: 'lang',
  14944. list: 'list',
  14945. loop: 'loop',
  14946. low: 'low',
  14947. manifest: 'manifest',
  14948. marginwidth: 'marginWidth',
  14949. marginheight: 'marginHeight',
  14950. max: 'max',
  14951. maxlength: 'maxLength',
  14952. media: 'media',
  14953. mediagroup: 'mediaGroup',
  14954. method: 'method',
  14955. min: 'min',
  14956. minlength: 'minLength',
  14957. multiple: 'multiple',
  14958. muted: 'muted',
  14959. name: 'name',
  14960. nomodule: 'noModule',
  14961. nonce: 'nonce',
  14962. novalidate: 'noValidate',
  14963. open: 'open',
  14964. optimum: 'optimum',
  14965. pattern: 'pattern',
  14966. placeholder: 'placeholder',
  14967. playsinline: 'playsInline',
  14968. poster: 'poster',
  14969. preload: 'preload',
  14970. profile: 'profile',
  14971. radiogroup: 'radioGroup',
  14972. readonly: 'readOnly',
  14973. referrerpolicy: 'referrerPolicy',
  14974. rel: 'rel',
  14975. required: 'required',
  14976. reversed: 'reversed',
  14977. role: 'role',
  14978. rows: 'rows',
  14979. rowspan: 'rowSpan',
  14980. sandbox: 'sandbox',
  14981. scope: 'scope',
  14982. scoped: 'scoped',
  14983. scrolling: 'scrolling',
  14984. seamless: 'seamless',
  14985. selected: 'selected',
  14986. shape: 'shape',
  14987. size: 'size',
  14988. sizes: 'sizes',
  14989. span: 'span',
  14990. spellcheck: 'spellCheck',
  14991. src: 'src',
  14992. srcdoc: 'srcDoc',
  14993. srclang: 'srcLang',
  14994. srcset: 'srcSet',
  14995. start: 'start',
  14996. step: 'step',
  14997. style: 'style',
  14998. summary: 'summary',
  14999. tabindex: 'tabIndex',
  15000. target: 'target',
  15001. title: 'title',
  15002. type: 'type',
  15003. usemap: 'useMap',
  15004. value: 'value',
  15005. width: 'width',
  15006. wmode: 'wmode',
  15007. wrap: 'wrap',
  15008. // SVG
  15009. about: 'about',
  15010. accentheight: 'accentHeight',
  15011. 'accent-height': 'accentHeight',
  15012. accumulate: 'accumulate',
  15013. additive: 'additive',
  15014. alignmentbaseline: 'alignmentBaseline',
  15015. 'alignment-baseline': 'alignmentBaseline',
  15016. allowreorder: 'allowReorder',
  15017. alphabetic: 'alphabetic',
  15018. amplitude: 'amplitude',
  15019. arabicform: 'arabicForm',
  15020. 'arabic-form': 'arabicForm',
  15021. ascent: 'ascent',
  15022. attributename: 'attributeName',
  15023. attributetype: 'attributeType',
  15024. autoreverse: 'autoReverse',
  15025. azimuth: 'azimuth',
  15026. basefrequency: 'baseFrequency',
  15027. baselineshift: 'baselineShift',
  15028. 'baseline-shift': 'baselineShift',
  15029. baseprofile: 'baseProfile',
  15030. bbox: 'bbox',
  15031. begin: 'begin',
  15032. bias: 'bias',
  15033. by: 'by',
  15034. calcmode: 'calcMode',
  15035. capheight: 'capHeight',
  15036. 'cap-height': 'capHeight',
  15037. clip: 'clip',
  15038. clippath: 'clipPath',
  15039. 'clip-path': 'clipPath',
  15040. clippathunits: 'clipPathUnits',
  15041. cliprule: 'clipRule',
  15042. 'clip-rule': 'clipRule',
  15043. color: 'color',
  15044. colorinterpolation: 'colorInterpolation',
  15045. 'color-interpolation': 'colorInterpolation',
  15046. colorinterpolationfilters: 'colorInterpolationFilters',
  15047. 'color-interpolation-filters': 'colorInterpolationFilters',
  15048. colorprofile: 'colorProfile',
  15049. 'color-profile': 'colorProfile',
  15050. colorrendering: 'colorRendering',
  15051. 'color-rendering': 'colorRendering',
  15052. contentscripttype: 'contentScriptType',
  15053. contentstyletype: 'contentStyleType',
  15054. cursor: 'cursor',
  15055. cx: 'cx',
  15056. cy: 'cy',
  15057. d: 'd',
  15058. datatype: 'datatype',
  15059. decelerate: 'decelerate',
  15060. descent: 'descent',
  15061. diffuseconstant: 'diffuseConstant',
  15062. direction: 'direction',
  15063. display: 'display',
  15064. divisor: 'divisor',
  15065. dominantbaseline: 'dominantBaseline',
  15066. 'dominant-baseline': 'dominantBaseline',
  15067. dur: 'dur',
  15068. dx: 'dx',
  15069. dy: 'dy',
  15070. edgemode: 'edgeMode',
  15071. elevation: 'elevation',
  15072. enablebackground: 'enableBackground',
  15073. 'enable-background': 'enableBackground',
  15074. end: 'end',
  15075. exponent: 'exponent',
  15076. externalresourcesrequired: 'externalResourcesRequired',
  15077. fill: 'fill',
  15078. fillopacity: 'fillOpacity',
  15079. 'fill-opacity': 'fillOpacity',
  15080. fillrule: 'fillRule',
  15081. 'fill-rule': 'fillRule',
  15082. filter: 'filter',
  15083. filterres: 'filterRes',
  15084. filterunits: 'filterUnits',
  15085. floodopacity: 'floodOpacity',
  15086. 'flood-opacity': 'floodOpacity',
  15087. floodcolor: 'floodColor',
  15088. 'flood-color': 'floodColor',
  15089. focusable: 'focusable',
  15090. fontfamily: 'fontFamily',
  15091. 'font-family': 'fontFamily',
  15092. fontsize: 'fontSize',
  15093. 'font-size': 'fontSize',
  15094. fontsizeadjust: 'fontSizeAdjust',
  15095. 'font-size-adjust': 'fontSizeAdjust',
  15096. fontstretch: 'fontStretch',
  15097. 'font-stretch': 'fontStretch',
  15098. fontstyle: 'fontStyle',
  15099. 'font-style': 'fontStyle',
  15100. fontvariant: 'fontVariant',
  15101. 'font-variant': 'fontVariant',
  15102. fontweight: 'fontWeight',
  15103. 'font-weight': 'fontWeight',
  15104. format: 'format',
  15105. from: 'from',
  15106. fx: 'fx',
  15107. fy: 'fy',
  15108. g1: 'g1',
  15109. g2: 'g2',
  15110. glyphname: 'glyphName',
  15111. 'glyph-name': 'glyphName',
  15112. glyphorientationhorizontal: 'glyphOrientationHorizontal',
  15113. 'glyph-orientation-horizontal': 'glyphOrientationHorizontal',
  15114. glyphorientationvertical: 'glyphOrientationVertical',
  15115. 'glyph-orientation-vertical': 'glyphOrientationVertical',
  15116. glyphref: 'glyphRef',
  15117. gradienttransform: 'gradientTransform',
  15118. gradientunits: 'gradientUnits',
  15119. hanging: 'hanging',
  15120. horizadvx: 'horizAdvX',
  15121. 'horiz-adv-x': 'horizAdvX',
  15122. horizoriginx: 'horizOriginX',
  15123. 'horiz-origin-x': 'horizOriginX',
  15124. ideographic: 'ideographic',
  15125. imagerendering: 'imageRendering',
  15126. 'image-rendering': 'imageRendering',
  15127. in2: 'in2',
  15128. in: 'in',
  15129. inlist: 'inlist',
  15130. intercept: 'intercept',
  15131. k1: 'k1',
  15132. k2: 'k2',
  15133. k3: 'k3',
  15134. k4: 'k4',
  15135. k: 'k',
  15136. kernelmatrix: 'kernelMatrix',
  15137. kernelunitlength: 'kernelUnitLength',
  15138. kerning: 'kerning',
  15139. keypoints: 'keyPoints',
  15140. keysplines: 'keySplines',
  15141. keytimes: 'keyTimes',
  15142. lengthadjust: 'lengthAdjust',
  15143. letterspacing: 'letterSpacing',
  15144. 'letter-spacing': 'letterSpacing',
  15145. lightingcolor: 'lightingColor',
  15146. 'lighting-color': 'lightingColor',
  15147. limitingconeangle: 'limitingConeAngle',
  15148. local: 'local',
  15149. markerend: 'markerEnd',
  15150. 'marker-end': 'markerEnd',
  15151. markerheight: 'markerHeight',
  15152. markermid: 'markerMid',
  15153. 'marker-mid': 'markerMid',
  15154. markerstart: 'markerStart',
  15155. 'marker-start': 'markerStart',
  15156. markerunits: 'markerUnits',
  15157. markerwidth: 'markerWidth',
  15158. mask: 'mask',
  15159. maskcontentunits: 'maskContentUnits',
  15160. maskunits: 'maskUnits',
  15161. mathematical: 'mathematical',
  15162. mode: 'mode',
  15163. numoctaves: 'numOctaves',
  15164. offset: 'offset',
  15165. opacity: 'opacity',
  15166. operator: 'operator',
  15167. order: 'order',
  15168. orient: 'orient',
  15169. orientation: 'orientation',
  15170. origin: 'origin',
  15171. overflow: 'overflow',
  15172. overlineposition: 'overlinePosition',
  15173. 'overline-position': 'overlinePosition',
  15174. overlinethickness: 'overlineThickness',
  15175. 'overline-thickness': 'overlineThickness',
  15176. paintorder: 'paintOrder',
  15177. 'paint-order': 'paintOrder',
  15178. panose1: 'panose1',
  15179. 'panose-1': 'panose1',
  15180. pathlength: 'pathLength',
  15181. patterncontentunits: 'patternContentUnits',
  15182. patterntransform: 'patternTransform',
  15183. patternunits: 'patternUnits',
  15184. pointerevents: 'pointerEvents',
  15185. 'pointer-events': 'pointerEvents',
  15186. points: 'points',
  15187. pointsatx: 'pointsAtX',
  15188. pointsaty: 'pointsAtY',
  15189. pointsatz: 'pointsAtZ',
  15190. prefix: 'prefix',
  15191. preservealpha: 'preserveAlpha',
  15192. preserveaspectratio: 'preserveAspectRatio',
  15193. primitiveunits: 'primitiveUnits',
  15194. property: 'property',
  15195. r: 'r',
  15196. radius: 'radius',
  15197. refx: 'refX',
  15198. refy: 'refY',
  15199. renderingintent: 'renderingIntent',
  15200. 'rendering-intent': 'renderingIntent',
  15201. repeatcount: 'repeatCount',
  15202. repeatdur: 'repeatDur',
  15203. requiredextensions: 'requiredExtensions',
  15204. requiredfeatures: 'requiredFeatures',
  15205. resource: 'resource',
  15206. restart: 'restart',
  15207. result: 'result',
  15208. results: 'results',
  15209. rotate: 'rotate',
  15210. rx: 'rx',
  15211. ry: 'ry',
  15212. scale: 'scale',
  15213. security: 'security',
  15214. seed: 'seed',
  15215. shaperendering: 'shapeRendering',
  15216. 'shape-rendering': 'shapeRendering',
  15217. slope: 'slope',
  15218. spacing: 'spacing',
  15219. specularconstant: 'specularConstant',
  15220. specularexponent: 'specularExponent',
  15221. speed: 'speed',
  15222. spreadmethod: 'spreadMethod',
  15223. startoffset: 'startOffset',
  15224. stddeviation: 'stdDeviation',
  15225. stemh: 'stemh',
  15226. stemv: 'stemv',
  15227. stitchtiles: 'stitchTiles',
  15228. stopcolor: 'stopColor',
  15229. 'stop-color': 'stopColor',
  15230. stopopacity: 'stopOpacity',
  15231. 'stop-opacity': 'stopOpacity',
  15232. strikethroughposition: 'strikethroughPosition',
  15233. 'strikethrough-position': 'strikethroughPosition',
  15234. strikethroughthickness: 'strikethroughThickness',
  15235. 'strikethrough-thickness': 'strikethroughThickness',
  15236. string: 'string',
  15237. stroke: 'stroke',
  15238. strokedasharray: 'strokeDasharray',
  15239. 'stroke-dasharray': 'strokeDasharray',
  15240. strokedashoffset: 'strokeDashoffset',
  15241. 'stroke-dashoffset': 'strokeDashoffset',
  15242. strokelinecap: 'strokeLinecap',
  15243. 'stroke-linecap': 'strokeLinecap',
  15244. strokelinejoin: 'strokeLinejoin',
  15245. 'stroke-linejoin': 'strokeLinejoin',
  15246. strokemiterlimit: 'strokeMiterlimit',
  15247. 'stroke-miterlimit': 'strokeMiterlimit',
  15248. strokewidth: 'strokeWidth',
  15249. 'stroke-width': 'strokeWidth',
  15250. strokeopacity: 'strokeOpacity',
  15251. 'stroke-opacity': 'strokeOpacity',
  15252. suppresscontenteditablewarning: 'suppressContentEditableWarning',
  15253. suppresshydrationwarning: 'suppressHydrationWarning',
  15254. surfacescale: 'surfaceScale',
  15255. systemlanguage: 'systemLanguage',
  15256. tablevalues: 'tableValues',
  15257. targetx: 'targetX',
  15258. targety: 'targetY',
  15259. textanchor: 'textAnchor',
  15260. 'text-anchor': 'textAnchor',
  15261. textdecoration: 'textDecoration',
  15262. 'text-decoration': 'textDecoration',
  15263. textlength: 'textLength',
  15264. textrendering: 'textRendering',
  15265. 'text-rendering': 'textRendering',
  15266. to: 'to',
  15267. transform: 'transform',
  15268. typeof: 'typeof',
  15269. u1: 'u1',
  15270. u2: 'u2',
  15271. underlineposition: 'underlinePosition',
  15272. 'underline-position': 'underlinePosition',
  15273. underlinethickness: 'underlineThickness',
  15274. 'underline-thickness': 'underlineThickness',
  15275. unicode: 'unicode',
  15276. unicodebidi: 'unicodeBidi',
  15277. 'unicode-bidi': 'unicodeBidi',
  15278. unicoderange: 'unicodeRange',
  15279. 'unicode-range': 'unicodeRange',
  15280. unitsperem: 'unitsPerEm',
  15281. 'units-per-em': 'unitsPerEm',
  15282. unselectable: 'unselectable',
  15283. valphabetic: 'vAlphabetic',
  15284. 'v-alphabetic': 'vAlphabetic',
  15285. values: 'values',
  15286. vectoreffect: 'vectorEffect',
  15287. 'vector-effect': 'vectorEffect',
  15288. version: 'version',
  15289. vertadvy: 'vertAdvY',
  15290. 'vert-adv-y': 'vertAdvY',
  15291. vertoriginx: 'vertOriginX',
  15292. 'vert-origin-x': 'vertOriginX',
  15293. vertoriginy: 'vertOriginY',
  15294. 'vert-origin-y': 'vertOriginY',
  15295. vhanging: 'vHanging',
  15296. 'v-hanging': 'vHanging',
  15297. videographic: 'vIdeographic',
  15298. 'v-ideographic': 'vIdeographic',
  15299. viewbox: 'viewBox',
  15300. viewtarget: 'viewTarget',
  15301. visibility: 'visibility',
  15302. vmathematical: 'vMathematical',
  15303. 'v-mathematical': 'vMathematical',
  15304. vocab: 'vocab',
  15305. widths: 'widths',
  15306. wordspacing: 'wordSpacing',
  15307. 'word-spacing': 'wordSpacing',
  15308. writingmode: 'writingMode',
  15309. 'writing-mode': 'writingMode',
  15310. x1: 'x1',
  15311. x2: 'x2',
  15312. x: 'x',
  15313. xchannelselector: 'xChannelSelector',
  15314. xheight: 'xHeight',
  15315. 'x-height': 'xHeight',
  15316. xlinkactuate: 'xlinkActuate',
  15317. 'xlink:actuate': 'xlinkActuate',
  15318. xlinkarcrole: 'xlinkArcrole',
  15319. 'xlink:arcrole': 'xlinkArcrole',
  15320. xlinkhref: 'xlinkHref',
  15321. 'xlink:href': 'xlinkHref',
  15322. xlinkrole: 'xlinkRole',
  15323. 'xlink:role': 'xlinkRole',
  15324. xlinkshow: 'xlinkShow',
  15325. 'xlink:show': 'xlinkShow',
  15326. xlinktitle: 'xlinkTitle',
  15327. 'xlink:title': 'xlinkTitle',
  15328. xlinktype: 'xlinkType',
  15329. 'xlink:type': 'xlinkType',
  15330. xmlbase: 'xmlBase',
  15331. 'xml:base': 'xmlBase',
  15332. xmllang: 'xmlLang',
  15333. 'xml:lang': 'xmlLang',
  15334. xmlns: 'xmlns',
  15335. 'xml:space': 'xmlSpace',
  15336. xmlnsxlink: 'xmlnsXlink',
  15337. 'xmlns:xlink': 'xmlnsXlink',
  15338. xmlspace: 'xmlSpace',
  15339. y1: 'y1',
  15340. y2: 'y2',
  15341. y: 'y',
  15342. ychannelselector: 'yChannelSelector',
  15343. z: 'z',
  15344. zoomandpan: 'zoomAndPan'
  15345. };
  15346. var ariaProperties = {
  15347. 'aria-current': 0, // state
  15348. 'aria-details': 0,
  15349. 'aria-disabled': 0, // state
  15350. 'aria-hidden': 0, // state
  15351. 'aria-invalid': 0, // state
  15352. 'aria-keyshortcuts': 0,
  15353. 'aria-label': 0,
  15354. 'aria-roledescription': 0,
  15355. // Widget Attributes
  15356. 'aria-autocomplete': 0,
  15357. 'aria-checked': 0,
  15358. 'aria-expanded': 0,
  15359. 'aria-haspopup': 0,
  15360. 'aria-level': 0,
  15361. 'aria-modal': 0,
  15362. 'aria-multiline': 0,
  15363. 'aria-multiselectable': 0,
  15364. 'aria-orientation': 0,
  15365. 'aria-placeholder': 0,
  15366. 'aria-pressed': 0,
  15367. 'aria-readonly': 0,
  15368. 'aria-required': 0,
  15369. 'aria-selected': 0,
  15370. 'aria-sort': 0,
  15371. 'aria-valuemax': 0,
  15372. 'aria-valuemin': 0,
  15373. 'aria-valuenow': 0,
  15374. 'aria-valuetext': 0,
  15375. // Live Region Attributes
  15376. 'aria-atomic': 0,
  15377. 'aria-busy': 0,
  15378. 'aria-live': 0,
  15379. 'aria-relevant': 0,
  15380. // Drag-and-Drop Attributes
  15381. 'aria-dropeffect': 0,
  15382. 'aria-grabbed': 0,
  15383. // Relationship Attributes
  15384. 'aria-activedescendant': 0,
  15385. 'aria-colcount': 0,
  15386. 'aria-colindex': 0,
  15387. 'aria-colspan': 0,
  15388. 'aria-controls': 0,
  15389. 'aria-describedby': 0,
  15390. 'aria-errormessage': 0,
  15391. 'aria-flowto': 0,
  15392. 'aria-labelledby': 0,
  15393. 'aria-owns': 0,
  15394. 'aria-posinset': 0,
  15395. 'aria-rowcount': 0,
  15396. 'aria-rowindex': 0,
  15397. 'aria-rowspan': 0,
  15398. 'aria-setsize': 0
  15399. };
  15400. var warnedProperties = {};
  15401. var rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
  15402. var rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
  15403. var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
  15404. function validateProperty(tagName, name) {
  15405. if (hasOwnProperty$2.call(warnedProperties, name) && warnedProperties[name]) {
  15406. return true;
  15407. }
  15408. if (rARIACamel.test(name)) {
  15409. var ariaName = 'aria-' + name.slice(4).toLowerCase();
  15410. var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null;
  15411. // If this is an aria-* attribute, but is not listed in the known DOM
  15412. // DOM properties, then it is an invalid aria-* attribute.
  15413. if (correctName == null) {
  15414. warning$1(false, 'Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name);
  15415. warnedProperties[name] = true;
  15416. return true;
  15417. }
  15418. // aria-* attributes should be lowercase; suggest the lowercase version.
  15419. if (name !== correctName) {
  15420. warning$1(false, 'Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName);
  15421. warnedProperties[name] = true;
  15422. return true;
  15423. }
  15424. }
  15425. if (rARIA.test(name)) {
  15426. var lowerCasedName = name.toLowerCase();
  15427. var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null;
  15428. // If this is an aria-* attribute, but is not listed in the known DOM
  15429. // DOM properties, then it is an invalid aria-* attribute.
  15430. if (standardName == null) {
  15431. warnedProperties[name] = true;
  15432. return false;
  15433. }
  15434. // aria-* attributes should be lowercase; suggest the lowercase version.
  15435. if (name !== standardName) {
  15436. warning$1(false, 'Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName);
  15437. warnedProperties[name] = true;
  15438. return true;
  15439. }
  15440. }
  15441. return true;
  15442. }
  15443. function warnInvalidARIAProps(type, props) {
  15444. var invalidProps = [];
  15445. for (var key in props) {
  15446. var isValid = validateProperty(type, key);
  15447. if (!isValid) {
  15448. invalidProps.push(key);
  15449. }
  15450. }
  15451. var unknownPropString = invalidProps.map(function (prop) {
  15452. return '`' + prop + '`';
  15453. }).join(', ');
  15454. if (invalidProps.length === 1) {
  15455. warning$1(false, 'Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
  15456. } else if (invalidProps.length > 1) {
  15457. warning$1(false, 'Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
  15458. }
  15459. }
  15460. function validateProperties(type, props) {
  15461. if (isCustomComponent(type, props)) {
  15462. return;
  15463. }
  15464. warnInvalidARIAProps(type, props);
  15465. }
  15466. var didWarnValueNull = false;
  15467. function validateProperties$1(type, props) {
  15468. if (type !== 'input' && type !== 'textarea' && type !== 'select') {
  15469. return;
  15470. }
  15471. if (props != null && props.value === null && !didWarnValueNull) {
  15472. didWarnValueNull = true;
  15473. if (type === 'select' && props.multiple) {
  15474. warning$1(false, '`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.', type);
  15475. } else {
  15476. warning$1(false, '`value` prop on `%s` should not be null. ' + 'Consider using an empty string to clear the component or `undefined` ' + 'for uncontrolled components.', type);
  15477. }
  15478. }
  15479. }
  15480. var validateProperty$1 = function () {};
  15481. {
  15482. var warnedProperties$1 = {};
  15483. var _hasOwnProperty = Object.prototype.hasOwnProperty;
  15484. var EVENT_NAME_REGEX = /^on./;
  15485. var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;
  15486. var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
  15487. var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
  15488. validateProperty$1 = function (tagName, name, value, canUseEventSystem) {
  15489. if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) {
  15490. return true;
  15491. }
  15492. var lowerCasedName = name.toLowerCase();
  15493. if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {
  15494. warning$1(false, '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.');
  15495. warnedProperties$1[name] = true;
  15496. return true;
  15497. }
  15498. // We can't rely on the event system being injected on the server.
  15499. if (canUseEventSystem) {
  15500. if (registrationNameModules.hasOwnProperty(name)) {
  15501. return true;
  15502. }
  15503. var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;
  15504. if (registrationName != null) {
  15505. warning$1(false, 'Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);
  15506. warnedProperties$1[name] = true;
  15507. return true;
  15508. }
  15509. if (EVENT_NAME_REGEX.test(name)) {
  15510. warning$1(false, 'Unknown event handler property `%s`. It will be ignored.', name);
  15511. warnedProperties$1[name] = true;
  15512. return true;
  15513. }
  15514. } else if (EVENT_NAME_REGEX.test(name)) {
  15515. // If no event plugins have been injected, we are in a server environment.
  15516. // So we can't tell if the event name is correct for sure, but we can filter
  15517. // out known bad ones like `onclick`. We can't suggest a specific replacement though.
  15518. if (INVALID_EVENT_NAME_REGEX.test(name)) {
  15519. warning$1(false, 'Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name);
  15520. }
  15521. warnedProperties$1[name] = true;
  15522. return true;
  15523. }
  15524. // Let the ARIA attribute hook validate ARIA attributes
  15525. if (rARIA$1.test(name) || rARIACamel$1.test(name)) {
  15526. return true;
  15527. }
  15528. if (lowerCasedName === 'innerhtml') {
  15529. warning$1(false, 'Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');
  15530. warnedProperties$1[name] = true;
  15531. return true;
  15532. }
  15533. if (lowerCasedName === 'aria') {
  15534. warning$1(false, 'The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.');
  15535. warnedProperties$1[name] = true;
  15536. return true;
  15537. }
  15538. if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') {
  15539. warning$1(false, 'Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value);
  15540. warnedProperties$1[name] = true;
  15541. return true;
  15542. }
  15543. if (typeof value === 'number' && isNaN(value)) {
  15544. warning$1(false, 'Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name);
  15545. warnedProperties$1[name] = true;
  15546. return true;
  15547. }
  15548. var propertyInfo = getPropertyInfo(name);
  15549. var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED;
  15550. // Known attributes should match the casing specified in the property config.
  15551. if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
  15552. var standardName = possibleStandardNames[lowerCasedName];
  15553. if (standardName !== name) {
  15554. warning$1(false, 'Invalid DOM property `%s`. Did you mean `%s`?', name, standardName);
  15555. warnedProperties$1[name] = true;
  15556. return true;
  15557. }
  15558. } else if (!isReserved && name !== lowerCasedName) {
  15559. // Unknown attributes should have lowercase casing since that's how they
  15560. // will be cased anyway with server rendering.
  15561. warning$1(false, '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.', name, lowerCasedName);
  15562. warnedProperties$1[name] = true;
  15563. return true;
  15564. }
  15565. if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
  15566. if (value) {
  15567. warning$1(false, 'Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.', value, name, name, value, name);
  15568. } else {
  15569. warning$1(false, 'Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', value, name, name, value, name, name, name);
  15570. }
  15571. warnedProperties$1[name] = true;
  15572. return true;
  15573. }
  15574. // Now that we've validated casing, do not validate
  15575. // data types for reserved props
  15576. if (isReserved) {
  15577. return true;
  15578. }
  15579. // Warn when a known attribute is a bad type
  15580. if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
  15581. warnedProperties$1[name] = true;
  15582. return false;
  15583. }
  15584. // Warn when passing the strings 'false' or 'true' into a boolean prop
  15585. if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) {
  15586. warning$1(false, 'Received the string `%s` for the boolean attribute `%s`. ' + '%s ' + 'Did you mean %s={%s}?', value, name, value === 'false' ? 'The browser will interpret it as a truthy value.' : 'Although this works, it will not work as expected if you pass the string "false".', name, value);
  15587. warnedProperties$1[name] = true;
  15588. return true;
  15589. }
  15590. return true;
  15591. };
  15592. }
  15593. var warnUnknownProperties = function (type, props, canUseEventSystem) {
  15594. var unknownProps = [];
  15595. for (var key in props) {
  15596. var isValid = validateProperty$1(type, key, props[key], canUseEventSystem);
  15597. if (!isValid) {
  15598. unknownProps.push(key);
  15599. }
  15600. }
  15601. var unknownPropString = unknownProps.map(function (prop) {
  15602. return '`' + prop + '`';
  15603. }).join(', ');
  15604. if (unknownProps.length === 1) {
  15605. warning$1(false, '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://fb.me/react-attribute-behavior', unknownPropString, type);
  15606. } else if (unknownProps.length > 1) {
  15607. warning$1(false, '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://fb.me/react-attribute-behavior', unknownPropString, type);
  15608. }
  15609. };
  15610. function validateProperties$2(type, props, canUseEventSystem) {
  15611. if (isCustomComponent(type, props)) {
  15612. return;
  15613. }
  15614. warnUnknownProperties(type, props, canUseEventSystem);
  15615. }
  15616. // TODO: direct imports like some-package/src/* are bad. Fix me.
  15617. var didWarnInvalidHydration = false;
  15618. var didWarnShadyDOM = false;
  15619. var DANGEROUSLY_SET_INNER_HTML = 'dangerouslySetInnerHTML';
  15620. var SUPPRESS_CONTENT_EDITABLE_WARNING = 'suppressContentEditableWarning';
  15621. var SUPPRESS_HYDRATION_WARNING$1 = 'suppressHydrationWarning';
  15622. var AUTOFOCUS = 'autoFocus';
  15623. var CHILDREN = 'children';
  15624. var STYLE$1 = 'style';
  15625. var HTML = '__html';
  15626. var LISTENERS = 'listeners';
  15627. var HTML_NAMESPACE = Namespaces.html;
  15628. var warnedUnknownTags = void 0;
  15629. var suppressHydrationWarning = void 0;
  15630. var validatePropertiesInDevelopment = void 0;
  15631. var warnForTextDifference = void 0;
  15632. var warnForPropDifference = void 0;
  15633. var warnForExtraAttributes = void 0;
  15634. var warnForInvalidEventListener = void 0;
  15635. var canDiffStyleForHydrationWarning = void 0;
  15636. var normalizeMarkupForTextOrAttribute = void 0;
  15637. var normalizeHTML = void 0;
  15638. {
  15639. warnedUnknownTags = {
  15640. // Chrome is the only major browser not shipping <time>. But as of July
  15641. // 2017 it intends to ship it due to widespread usage. We intentionally
  15642. // *don't* warn for <time> even if it's unrecognized by Chrome because
  15643. // it soon will be, and many apps have been using it anyway.
  15644. time: true,
  15645. // There are working polyfills for <dialog>. Let people use it.
  15646. dialog: true,
  15647. // Electron ships a custom <webview> tag to display external web content in
  15648. // an isolated frame and process.
  15649. // This tag is not present in non Electron environments such as JSDom which
  15650. // is often used for testing purposes.
  15651. // @see https://electronjs.org/docs/api/webview-tag
  15652. webview: true
  15653. };
  15654. validatePropertiesInDevelopment = function (type, props) {
  15655. validateProperties(type, props);
  15656. validateProperties$1(type, props);
  15657. validateProperties$2(type, props, /* canUseEventSystem */true);
  15658. };
  15659. // IE 11 parses & normalizes the style attribute as opposed to other
  15660. // browsers. It adds spaces and sorts the properties in some
  15661. // non-alphabetical order. Handling that would require sorting CSS
  15662. // properties in the client & server versions or applying
  15663. // `expectedStyle` to a temporary DOM node to read its `style` attribute
  15664. // normalized. Since it only affects IE, we're skipping style warnings
  15665. // in that browser completely in favor of doing all that work.
  15666. // See https://github.com/facebook/react/issues/11807
  15667. canDiffStyleForHydrationWarning = canUseDOM && !document.documentMode;
  15668. // HTML parsing normalizes CR and CRLF to LF.
  15669. // It also can turn \u0000 into \uFFFD inside attributes.
  15670. // https://www.w3.org/TR/html5/single-page.html#preprocessing-the-input-stream
  15671. // If we have a mismatch, it might be caused by that.
  15672. // We will still patch up in this case but not fire the warning.
  15673. var NORMALIZE_NEWLINES_REGEX = /\r\n?/g;
  15674. var NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g;
  15675. normalizeMarkupForTextOrAttribute = function (markup) {
  15676. var markupString = typeof markup === 'string' ? markup : '' + markup;
  15677. return markupString.replace(NORMALIZE_NEWLINES_REGEX, '\n').replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, '');
  15678. };
  15679. warnForTextDifference = function (serverText, clientText) {
  15680. if (didWarnInvalidHydration) {
  15681. return;
  15682. }
  15683. var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText);
  15684. var normalizedServerText = normalizeMarkupForTextOrAttribute(serverText);
  15685. if (normalizedServerText === normalizedClientText) {
  15686. return;
  15687. }
  15688. didWarnInvalidHydration = true;
  15689. warningWithoutStack$1(false, 'Text content did not match. Server: "%s" Client: "%s"', normalizedServerText, normalizedClientText);
  15690. };
  15691. warnForPropDifference = function (propName, serverValue, clientValue) {
  15692. if (didWarnInvalidHydration) {
  15693. return;
  15694. }
  15695. var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue);
  15696. var normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue);
  15697. if (normalizedServerValue === normalizedClientValue) {
  15698. return;
  15699. }
  15700. didWarnInvalidHydration = true;
  15701. warningWithoutStack$1(false, 'Prop `%s` did not match. Server: %s Client: %s', propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue));
  15702. };
  15703. warnForExtraAttributes = function (attributeNames) {
  15704. if (didWarnInvalidHydration) {
  15705. return;
  15706. }
  15707. didWarnInvalidHydration = true;
  15708. var names = [];
  15709. attributeNames.forEach(function (name) {
  15710. names.push(name);
  15711. });
  15712. warningWithoutStack$1(false, 'Extra attributes from the server: %s', names);
  15713. };
  15714. warnForInvalidEventListener = function (registrationName, listener) {
  15715. if (listener === false) {
  15716. warning$1(false, 'Expected `%s` listener to be a function, instead got `false`.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', registrationName, registrationName, registrationName);
  15717. } else {
  15718. warning$1(false, 'Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener);
  15719. }
  15720. };
  15721. // Parse the HTML and read it back to normalize the HTML string so that it
  15722. // can be used for comparison.
  15723. normalizeHTML = function (parent, html) {
  15724. // We could have created a separate document here to avoid
  15725. // re-initializing custom elements if they exist. But this breaks
  15726. // how <noscript> is being handled. So we use the same document.
  15727. // See the discussion in https://github.com/facebook/react/pull/11157.
  15728. var testElement = parent.namespaceURI === HTML_NAMESPACE ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName);
  15729. testElement.innerHTML = html;
  15730. return testElement.innerHTML;
  15731. };
  15732. }
  15733. function ensureListeningTo(rootContainerElement, registrationName) {
  15734. var isDocumentOrFragment = rootContainerElement.nodeType === DOCUMENT_NODE || rootContainerElement.nodeType === DOCUMENT_FRAGMENT_NODE;
  15735. var doc = isDocumentOrFragment ? rootContainerElement : rootContainerElement.ownerDocument;
  15736. listenTo(registrationName, doc);
  15737. }
  15738. function getOwnerDocumentFromRootContainer(rootContainerElement) {
  15739. return rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument;
  15740. }
  15741. function noop() {}
  15742. function trapClickOnNonInteractiveElement(node) {
  15743. // Mobile Safari does not fire properly bubble click events on
  15744. // non-interactive elements, which means delegated click listeners do not
  15745. // fire. The workaround for this bug involves attaching an empty click
  15746. // listener on the target node.
  15747. // http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  15748. // Just set it using the onclick property so that we don't have to manage any
  15749. // bookkeeping for it. Not sure if we need to clear it when the listener is
  15750. // removed.
  15751. // TODO: Only do this for the relevant Safaris maybe?
  15752. node.onclick = noop;
  15753. }
  15754. function setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) {
  15755. for (var propKey in nextProps) {
  15756. if (!nextProps.hasOwnProperty(propKey)) {
  15757. continue;
  15758. }
  15759. var nextProp = nextProps[propKey];
  15760. if (propKey === STYLE$1) {
  15761. {
  15762. if (nextProp) {
  15763. // Freeze the next style object so that we can assume it won't be
  15764. // mutated. We have already warned for this in the past.
  15765. Object.freeze(nextProp);
  15766. }
  15767. }
  15768. // Relies on `updateStylesByID` not mutating `styleUpdates`.
  15769. setValueForStyles(domElement, nextProp);
  15770. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  15771. var nextHtml = nextProp ? nextProp[HTML] : undefined;
  15772. if (nextHtml != null) {
  15773. setInnerHTML(domElement, nextHtml);
  15774. }
  15775. } else if (propKey === CHILDREN) {
  15776. if (typeof nextProp === 'string') {
  15777. // Avoid setting initial textContent when the text is empty. In IE11 setting
  15778. // textContent on a <textarea> will cause the placeholder to not
  15779. // show within the <textarea> until it has been focused and blurred again.
  15780. // https://github.com/facebook/react/issues/6731#issuecomment-254874553
  15781. var canSetTextContent = tag !== 'textarea' || nextProp !== '';
  15782. if (canSetTextContent) {
  15783. setTextContent(domElement, nextProp);
  15784. }
  15785. } else if (typeof nextProp === 'number') {
  15786. setTextContent(domElement, '' + nextProp);
  15787. }
  15788. } else if (enableFlareAPI && propKey === LISTENERS || propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
  15789. // Noop
  15790. } else if (propKey === AUTOFOCUS) {
  15791. // We polyfill it separately on the client during commit.
  15792. // We could have excluded it in the property list instead of
  15793. // adding a special case here, but then it wouldn't be emitted
  15794. // on server rendering (but we *do* want to emit it in SSR).
  15795. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  15796. if (nextProp != null) {
  15797. if ( true && typeof nextProp !== 'function') {
  15798. warnForInvalidEventListener(propKey, nextProp);
  15799. }
  15800. ensureListeningTo(rootContainerElement, propKey);
  15801. }
  15802. } else if (nextProp != null) {
  15803. setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag);
  15804. }
  15805. }
  15806. }
  15807. function updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) {
  15808. // TODO: Handle wasCustomComponentTag
  15809. for (var i = 0; i < updatePayload.length; i += 2) {
  15810. var propKey = updatePayload[i];
  15811. var propValue = updatePayload[i + 1];
  15812. if (propKey === STYLE$1) {
  15813. setValueForStyles(domElement, propValue);
  15814. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  15815. setInnerHTML(domElement, propValue);
  15816. } else if (propKey === CHILDREN) {
  15817. setTextContent(domElement, propValue);
  15818. } else {
  15819. setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);
  15820. }
  15821. }
  15822. }
  15823. function createElement(type, props, rootContainerElement, parentNamespace) {
  15824. var isCustomComponentTag = void 0;
  15825. // We create tags in the namespace of their parent container, except HTML
  15826. // tags get no namespace.
  15827. var ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement);
  15828. var domElement = void 0;
  15829. var namespaceURI = parentNamespace;
  15830. if (namespaceURI === HTML_NAMESPACE) {
  15831. namespaceURI = getIntrinsicNamespace(type);
  15832. }
  15833. if (namespaceURI === HTML_NAMESPACE) {
  15834. {
  15835. isCustomComponentTag = isCustomComponent(type, props);
  15836. // Should this check be gated by parent namespace? Not sure we want to
  15837. // allow <SVG> or <mATH>.
  15838. !(isCustomComponentTag || type === type.toLowerCase()) ? warning$1(false, '<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', type) : void 0;
  15839. }
  15840. if (type === 'script') {
  15841. // Create the script via .innerHTML so its "parser-inserted" flag is
  15842. // set to true and it does not execute
  15843. var div = ownerDocument.createElement('div');
  15844. div.innerHTML = '<script><' + '/script>'; // eslint-disable-line
  15845. // This is guaranteed to yield a script element.
  15846. var firstChild = div.firstChild;
  15847. domElement = div.removeChild(firstChild);
  15848. } else if (typeof props.is === 'string') {
  15849. // $FlowIssue `createElement` should be updated for Web Components
  15850. domElement = ownerDocument.createElement(type, { is: props.is });
  15851. } else {
  15852. // Separate else branch instead of using `props.is || undefined` above because of a Firefox bug.
  15853. // See discussion in https://github.com/facebook/react/pull/6896
  15854. // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
  15855. domElement = ownerDocument.createElement(type);
  15856. // Normally attributes are assigned in `setInitialDOMProperties`, however the `multiple` and `size`
  15857. // attributes on `select`s needs to be added before `option`s are inserted.
  15858. // This prevents:
  15859. // - a bug where the `select` does not scroll to the correct option because singular
  15860. // `select` elements automatically pick the first item #13222
  15861. // - a bug where the `select` set the first item as selected despite the `size` attribute #14239
  15862. // See https://github.com/facebook/react/issues/13222
  15863. // and https://github.com/facebook/react/issues/14239
  15864. if (type === 'select') {
  15865. var node = domElement;
  15866. if (props.multiple) {
  15867. node.multiple = true;
  15868. } else if (props.size) {
  15869. // Setting a size greater than 1 causes a select to behave like `multiple=true`, where
  15870. // it is possible that no option is selected.
  15871. //
  15872. // This is only necessary when a select in "single selection mode".
  15873. node.size = props.size;
  15874. }
  15875. }
  15876. }
  15877. } else {
  15878. domElement = ownerDocument.createElementNS(namespaceURI, type);
  15879. }
  15880. {
  15881. if (namespaceURI === HTML_NAMESPACE) {
  15882. if (!isCustomComponentTag && Object.prototype.toString.call(domElement) === '[object HTMLUnknownElement]' && !Object.prototype.hasOwnProperty.call(warnedUnknownTags, type)) {
  15883. warnedUnknownTags[type] = true;
  15884. warning$1(false, 'The tag <%s> is unrecognized in this browser. ' + 'If you meant to render a React component, start its name with ' + 'an uppercase letter.', type);
  15885. }
  15886. }
  15887. }
  15888. return domElement;
  15889. }
  15890. function createTextNode(text, rootContainerElement) {
  15891. return getOwnerDocumentFromRootContainer(rootContainerElement).createTextNode(text);
  15892. }
  15893. function setInitialProperties(domElement, tag, rawProps, rootContainerElement) {
  15894. var isCustomComponentTag = isCustomComponent(tag, rawProps);
  15895. {
  15896. validatePropertiesInDevelopment(tag, rawProps);
  15897. if (isCustomComponentTag && !didWarnShadyDOM && domElement.shadyRoot) {
  15898. warning$1(false, '%s is using shady DOM. Using shady DOM with React can ' + 'cause things to break subtly.', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
  15899. didWarnShadyDOM = true;
  15900. }
  15901. }
  15902. // TODO: Make sure that we check isMounted before firing any of these events.
  15903. var props = void 0;
  15904. switch (tag) {
  15905. case 'iframe':
  15906. case 'object':
  15907. case 'embed':
  15908. trapBubbledEvent(TOP_LOAD, domElement);
  15909. props = rawProps;
  15910. break;
  15911. case 'video':
  15912. case 'audio':
  15913. // Create listener for each media event
  15914. for (var i = 0; i < mediaEventTypes.length; i++) {
  15915. trapBubbledEvent(mediaEventTypes[i], domElement);
  15916. }
  15917. props = rawProps;
  15918. break;
  15919. case 'source':
  15920. trapBubbledEvent(TOP_ERROR, domElement);
  15921. props = rawProps;
  15922. break;
  15923. case 'img':
  15924. case 'image':
  15925. case 'link':
  15926. trapBubbledEvent(TOP_ERROR, domElement);
  15927. trapBubbledEvent(TOP_LOAD, domElement);
  15928. props = rawProps;
  15929. break;
  15930. case 'form':
  15931. trapBubbledEvent(TOP_RESET, domElement);
  15932. trapBubbledEvent(TOP_SUBMIT, domElement);
  15933. props = rawProps;
  15934. break;
  15935. case 'details':
  15936. trapBubbledEvent(TOP_TOGGLE, domElement);
  15937. props = rawProps;
  15938. break;
  15939. case 'input':
  15940. initWrapperState(domElement, rawProps);
  15941. props = getHostProps(domElement, rawProps);
  15942. trapBubbledEvent(TOP_INVALID, domElement);
  15943. // For controlled components we always need to ensure we're listening
  15944. // to onChange. Even if there is no listener.
  15945. ensureListeningTo(rootContainerElement, 'onChange');
  15946. break;
  15947. case 'option':
  15948. validateProps(domElement, rawProps);
  15949. props = getHostProps$1(domElement, rawProps);
  15950. break;
  15951. case 'select':
  15952. initWrapperState$1(domElement, rawProps);
  15953. props = getHostProps$2(domElement, rawProps);
  15954. trapBubbledEvent(TOP_INVALID, domElement);
  15955. // For controlled components we always need to ensure we're listening
  15956. // to onChange. Even if there is no listener.
  15957. ensureListeningTo(rootContainerElement, 'onChange');
  15958. break;
  15959. case 'textarea':
  15960. initWrapperState$2(domElement, rawProps);
  15961. props = getHostProps$3(domElement, rawProps);
  15962. trapBubbledEvent(TOP_INVALID, domElement);
  15963. // For controlled components we always need to ensure we're listening
  15964. // to onChange. Even if there is no listener.
  15965. ensureListeningTo(rootContainerElement, 'onChange');
  15966. break;
  15967. default:
  15968. props = rawProps;
  15969. }
  15970. assertValidProps(tag, props);
  15971. setInitialDOMProperties(tag, domElement, rootContainerElement, props, isCustomComponentTag);
  15972. switch (tag) {
  15973. case 'input':
  15974. // TODO: Make sure we check if this is still unmounted or do any clean
  15975. // up necessary since we never stop tracking anymore.
  15976. track(domElement);
  15977. postMountWrapper(domElement, rawProps, false);
  15978. break;
  15979. case 'textarea':
  15980. // TODO: Make sure we check if this is still unmounted or do any clean
  15981. // up necessary since we never stop tracking anymore.
  15982. track(domElement);
  15983. postMountWrapper$3(domElement, rawProps);
  15984. break;
  15985. case 'option':
  15986. postMountWrapper$1(domElement, rawProps);
  15987. break;
  15988. case 'select':
  15989. postMountWrapper$2(domElement, rawProps);
  15990. break;
  15991. default:
  15992. if (typeof props.onClick === 'function') {
  15993. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  15994. trapClickOnNonInteractiveElement(domElement);
  15995. }
  15996. break;
  15997. }
  15998. }
  15999. // Calculate the diff between the two objects.
  16000. function diffProperties(domElement, tag, lastRawProps, nextRawProps, rootContainerElement) {
  16001. {
  16002. validatePropertiesInDevelopment(tag, nextRawProps);
  16003. }
  16004. var updatePayload = null;
  16005. var lastProps = void 0;
  16006. var nextProps = void 0;
  16007. switch (tag) {
  16008. case 'input':
  16009. lastProps = getHostProps(domElement, lastRawProps);
  16010. nextProps = getHostProps(domElement, nextRawProps);
  16011. updatePayload = [];
  16012. break;
  16013. case 'option':
  16014. lastProps = getHostProps$1(domElement, lastRawProps);
  16015. nextProps = getHostProps$1(domElement, nextRawProps);
  16016. updatePayload = [];
  16017. break;
  16018. case 'select':
  16019. lastProps = getHostProps$2(domElement, lastRawProps);
  16020. nextProps = getHostProps$2(domElement, nextRawProps);
  16021. updatePayload = [];
  16022. break;
  16023. case 'textarea':
  16024. lastProps = getHostProps$3(domElement, lastRawProps);
  16025. nextProps = getHostProps$3(domElement, nextRawProps);
  16026. updatePayload = [];
  16027. break;
  16028. default:
  16029. lastProps = lastRawProps;
  16030. nextProps = nextRawProps;
  16031. if (typeof lastProps.onClick !== 'function' && typeof nextProps.onClick === 'function') {
  16032. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  16033. trapClickOnNonInteractiveElement(domElement);
  16034. }
  16035. break;
  16036. }
  16037. assertValidProps(tag, nextProps);
  16038. var propKey = void 0;
  16039. var styleName = void 0;
  16040. var styleUpdates = null;
  16041. for (propKey in lastProps) {
  16042. if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) {
  16043. continue;
  16044. }
  16045. if (propKey === STYLE$1) {
  16046. var lastStyle = lastProps[propKey];
  16047. for (styleName in lastStyle) {
  16048. if (lastStyle.hasOwnProperty(styleName)) {
  16049. if (!styleUpdates) {
  16050. styleUpdates = {};
  16051. }
  16052. styleUpdates[styleName] = '';
  16053. }
  16054. }
  16055. } else if (propKey === DANGEROUSLY_SET_INNER_HTML || propKey === CHILDREN) {
  16056. // Noop. This is handled by the clear text mechanism.
  16057. } else if (enableFlareAPI && propKey === LISTENERS || propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
  16058. // Noop
  16059. } else if (propKey === AUTOFOCUS) {
  16060. // Noop. It doesn't work on updates anyway.
  16061. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  16062. // This is a special case. If any listener updates we need to ensure
  16063. // that the "current" fiber pointer gets updated so we need a commit
  16064. // to update this element.
  16065. if (!updatePayload) {
  16066. updatePayload = [];
  16067. }
  16068. } else {
  16069. // For all other deleted properties we add it to the queue. We use
  16070. // the whitelist in the commit phase instead.
  16071. (updatePayload = updatePayload || []).push(propKey, null);
  16072. }
  16073. }
  16074. for (propKey in nextProps) {
  16075. var nextProp = nextProps[propKey];
  16076. var lastProp = lastProps != null ? lastProps[propKey] : undefined;
  16077. if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) {
  16078. continue;
  16079. }
  16080. if (propKey === STYLE$1) {
  16081. {
  16082. if (nextProp) {
  16083. // Freeze the next style object so that we can assume it won't be
  16084. // mutated. We have already warned for this in the past.
  16085. Object.freeze(nextProp);
  16086. }
  16087. }
  16088. if (lastProp) {
  16089. // Unset styles on `lastProp` but not on `nextProp`.
  16090. for (styleName in lastProp) {
  16091. if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) {
  16092. if (!styleUpdates) {
  16093. styleUpdates = {};
  16094. }
  16095. styleUpdates[styleName] = '';
  16096. }
  16097. }
  16098. // Update styles that changed since `lastProp`.
  16099. for (styleName in nextProp) {
  16100. if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) {
  16101. if (!styleUpdates) {
  16102. styleUpdates = {};
  16103. }
  16104. styleUpdates[styleName] = nextProp[styleName];
  16105. }
  16106. }
  16107. } else {
  16108. // Relies on `updateStylesByID` not mutating `styleUpdates`.
  16109. if (!styleUpdates) {
  16110. if (!updatePayload) {
  16111. updatePayload = [];
  16112. }
  16113. updatePayload.push(propKey, styleUpdates);
  16114. }
  16115. styleUpdates = nextProp;
  16116. }
  16117. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  16118. var nextHtml = nextProp ? nextProp[HTML] : undefined;
  16119. var lastHtml = lastProp ? lastProp[HTML] : undefined;
  16120. if (nextHtml != null) {
  16121. if (lastHtml !== nextHtml) {
  16122. (updatePayload = updatePayload || []).push(propKey, '' + nextHtml);
  16123. }
  16124. } else {
  16125. // TODO: It might be too late to clear this if we have children
  16126. // inserted already.
  16127. }
  16128. } else if (propKey === CHILDREN) {
  16129. if (lastProp !== nextProp && (typeof nextProp === 'string' || typeof nextProp === 'number')) {
  16130. (updatePayload = updatePayload || []).push(propKey, '' + nextProp);
  16131. }
  16132. } else if (enableFlareAPI && propKey === LISTENERS || propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
  16133. // Noop
  16134. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  16135. if (nextProp != null) {
  16136. // We eagerly listen to this even though we haven't committed yet.
  16137. if ( true && typeof nextProp !== 'function') {
  16138. warnForInvalidEventListener(propKey, nextProp);
  16139. }
  16140. ensureListeningTo(rootContainerElement, propKey);
  16141. }
  16142. if (!updatePayload && lastProp !== nextProp) {
  16143. // This is a special case. If any listener updates we need to ensure
  16144. // that the "current" props pointer gets updated so we need a commit
  16145. // to update this element.
  16146. updatePayload = [];
  16147. }
  16148. } else {
  16149. // For any other property we always add it to the queue and then we
  16150. // filter it out using the whitelist during the commit.
  16151. (updatePayload = updatePayload || []).push(propKey, nextProp);
  16152. }
  16153. }
  16154. if (styleUpdates) {
  16155. {
  16156. validateShorthandPropertyCollisionInDev(styleUpdates, nextProps[STYLE$1]);
  16157. }
  16158. (updatePayload = updatePayload || []).push(STYLE$1, styleUpdates);
  16159. }
  16160. return updatePayload;
  16161. }
  16162. // Apply the diff.
  16163. function updateProperties(domElement, updatePayload, tag, lastRawProps, nextRawProps) {
  16164. // Update checked *before* name.
  16165. // In the middle of an update, it is possible to have multiple checked.
  16166. // When a checked radio tries to change name, browser makes another radio's checked false.
  16167. if (tag === 'input' && nextRawProps.type === 'radio' && nextRawProps.name != null) {
  16168. updateChecked(domElement, nextRawProps);
  16169. }
  16170. var wasCustomComponentTag = isCustomComponent(tag, lastRawProps);
  16171. var isCustomComponentTag = isCustomComponent(tag, nextRawProps);
  16172. // Apply the diff.
  16173. updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag);
  16174. // TODO: Ensure that an update gets scheduled if any of the special props
  16175. // changed.
  16176. switch (tag) {
  16177. case 'input':
  16178. // Update the wrapper around inputs *after* updating props. This has to
  16179. // happen after `updateDOMProperties`. Otherwise HTML5 input validations
  16180. // raise warnings and prevent the new value from being assigned.
  16181. updateWrapper(domElement, nextRawProps);
  16182. break;
  16183. case 'textarea':
  16184. updateWrapper$1(domElement, nextRawProps);
  16185. break;
  16186. case 'select':
  16187. // <select> value update needs to occur after <option> children
  16188. // reconciliation
  16189. postUpdateWrapper(domElement, nextRawProps);
  16190. break;
  16191. }
  16192. }
  16193. function getPossibleStandardName(propName) {
  16194. {
  16195. var lowerCasedName = propName.toLowerCase();
  16196. if (!possibleStandardNames.hasOwnProperty(lowerCasedName)) {
  16197. return null;
  16198. }
  16199. return possibleStandardNames[lowerCasedName] || null;
  16200. }
  16201. return null;
  16202. }
  16203. function diffHydratedProperties(domElement, tag, rawProps, parentNamespace, rootContainerElement) {
  16204. var isCustomComponentTag = void 0;
  16205. var extraAttributeNames = void 0;
  16206. {
  16207. suppressHydrationWarning = rawProps[SUPPRESS_HYDRATION_WARNING$1] === true;
  16208. isCustomComponentTag = isCustomComponent(tag, rawProps);
  16209. validatePropertiesInDevelopment(tag, rawProps);
  16210. if (isCustomComponentTag && !didWarnShadyDOM && domElement.shadyRoot) {
  16211. warning$1(false, '%s is using shady DOM. Using shady DOM with React can ' + 'cause things to break subtly.', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
  16212. didWarnShadyDOM = true;
  16213. }
  16214. }
  16215. // TODO: Make sure that we check isMounted before firing any of these events.
  16216. switch (tag) {
  16217. case 'iframe':
  16218. case 'object':
  16219. case 'embed':
  16220. trapBubbledEvent(TOP_LOAD, domElement);
  16221. break;
  16222. case 'video':
  16223. case 'audio':
  16224. // Create listener for each media event
  16225. for (var i = 0; i < mediaEventTypes.length; i++) {
  16226. trapBubbledEvent(mediaEventTypes[i], domElement);
  16227. }
  16228. break;
  16229. case 'source':
  16230. trapBubbledEvent(TOP_ERROR, domElement);
  16231. break;
  16232. case 'img':
  16233. case 'image':
  16234. case 'link':
  16235. trapBubbledEvent(TOP_ERROR, domElement);
  16236. trapBubbledEvent(TOP_LOAD, domElement);
  16237. break;
  16238. case 'form':
  16239. trapBubbledEvent(TOP_RESET, domElement);
  16240. trapBubbledEvent(TOP_SUBMIT, domElement);
  16241. break;
  16242. case 'details':
  16243. trapBubbledEvent(TOP_TOGGLE, domElement);
  16244. break;
  16245. case 'input':
  16246. initWrapperState(domElement, rawProps);
  16247. trapBubbledEvent(TOP_INVALID, domElement);
  16248. // For controlled components we always need to ensure we're listening
  16249. // to onChange. Even if there is no listener.
  16250. ensureListeningTo(rootContainerElement, 'onChange');
  16251. break;
  16252. case 'option':
  16253. validateProps(domElement, rawProps);
  16254. break;
  16255. case 'select':
  16256. initWrapperState$1(domElement, rawProps);
  16257. trapBubbledEvent(TOP_INVALID, domElement);
  16258. // For controlled components we always need to ensure we're listening
  16259. // to onChange. Even if there is no listener.
  16260. ensureListeningTo(rootContainerElement, 'onChange');
  16261. break;
  16262. case 'textarea':
  16263. initWrapperState$2(domElement, rawProps);
  16264. trapBubbledEvent(TOP_INVALID, domElement);
  16265. // For controlled components we always need to ensure we're listening
  16266. // to onChange. Even if there is no listener.
  16267. ensureListeningTo(rootContainerElement, 'onChange');
  16268. break;
  16269. }
  16270. assertValidProps(tag, rawProps);
  16271. {
  16272. extraAttributeNames = new Set();
  16273. var attributes = domElement.attributes;
  16274. for (var _i = 0; _i < attributes.length; _i++) {
  16275. var name = attributes[_i].name.toLowerCase();
  16276. switch (name) {
  16277. // Built-in SSR attribute is whitelisted
  16278. case 'data-reactroot':
  16279. break;
  16280. // Controlled attributes are not validated
  16281. // TODO: Only ignore them on controlled tags.
  16282. case 'value':
  16283. break;
  16284. case 'checked':
  16285. break;
  16286. case 'selected':
  16287. break;
  16288. default:
  16289. // Intentionally use the original name.
  16290. // See discussion in https://github.com/facebook/react/pull/10676.
  16291. extraAttributeNames.add(attributes[_i].name);
  16292. }
  16293. }
  16294. }
  16295. var updatePayload = null;
  16296. for (var propKey in rawProps) {
  16297. if (!rawProps.hasOwnProperty(propKey)) {
  16298. continue;
  16299. }
  16300. var nextProp = rawProps[propKey];
  16301. if (propKey === CHILDREN) {
  16302. // For text content children we compare against textContent. This
  16303. // might match additional HTML that is hidden when we read it using
  16304. // textContent. E.g. "foo" will match "f<span>oo</span>" but that still
  16305. // satisfies our requirement. Our requirement is not to produce perfect
  16306. // HTML and attributes. Ideally we should preserve structure but it's
  16307. // ok not to if the visible content is still enough to indicate what
  16308. // even listeners these nodes might be wired up to.
  16309. // TODO: Warn if there is more than a single textNode as a child.
  16310. // TODO: Should we use domElement.firstChild.nodeValue to compare?
  16311. if (typeof nextProp === 'string') {
  16312. if (domElement.textContent !== nextProp) {
  16313. if ( true && !suppressHydrationWarning) {
  16314. warnForTextDifference(domElement.textContent, nextProp);
  16315. }
  16316. updatePayload = [CHILDREN, nextProp];
  16317. }
  16318. } else if (typeof nextProp === 'number') {
  16319. if (domElement.textContent !== '' + nextProp) {
  16320. if ( true && !suppressHydrationWarning) {
  16321. warnForTextDifference(domElement.textContent, nextProp);
  16322. }
  16323. updatePayload = [CHILDREN, '' + nextProp];
  16324. }
  16325. }
  16326. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  16327. if (nextProp != null) {
  16328. if ( true && typeof nextProp !== 'function') {
  16329. warnForInvalidEventListener(propKey, nextProp);
  16330. }
  16331. ensureListeningTo(rootContainerElement, propKey);
  16332. }
  16333. } else if ( true &&
  16334. // Convince Flow we've calculated it (it's DEV-only in this method.)
  16335. typeof isCustomComponentTag === 'boolean') {
  16336. // Validate that the properties correspond to their expected values.
  16337. var serverValue = void 0;
  16338. var propertyInfo = getPropertyInfo(propKey);
  16339. if (suppressHydrationWarning) {
  16340. // Don't bother comparing. We're ignoring all these warnings.
  16341. } else if (enableFlareAPI && propKey === LISTENERS || propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1 ||
  16342. // Controlled attributes are not validated
  16343. // TODO: Only ignore them on controlled tags.
  16344. propKey === 'value' || propKey === 'checked' || propKey === 'selected') {
  16345. // Noop
  16346. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  16347. var serverHTML = domElement.innerHTML;
  16348. var nextHtml = nextProp ? nextProp[HTML] : undefined;
  16349. var expectedHTML = normalizeHTML(domElement, nextHtml != null ? nextHtml : '');
  16350. if (expectedHTML !== serverHTML) {
  16351. warnForPropDifference(propKey, serverHTML, expectedHTML);
  16352. }
  16353. } else if (propKey === STYLE$1) {
  16354. // $FlowFixMe - Should be inferred as not undefined.
  16355. extraAttributeNames.delete(propKey);
  16356. if (canDiffStyleForHydrationWarning) {
  16357. var expectedStyle = createDangerousStringForStyles(nextProp);
  16358. serverValue = domElement.getAttribute('style');
  16359. if (expectedStyle !== serverValue) {
  16360. warnForPropDifference(propKey, serverValue, expectedStyle);
  16361. }
  16362. }
  16363. } else if (isCustomComponentTag) {
  16364. // $FlowFixMe - Should be inferred as not undefined.
  16365. extraAttributeNames.delete(propKey.toLowerCase());
  16366. serverValue = getValueForAttribute(domElement, propKey, nextProp);
  16367. if (nextProp !== serverValue) {
  16368. warnForPropDifference(propKey, serverValue, nextProp);
  16369. }
  16370. } else if (!shouldIgnoreAttribute(propKey, propertyInfo, isCustomComponentTag) && !shouldRemoveAttribute(propKey, nextProp, propertyInfo, isCustomComponentTag)) {
  16371. var isMismatchDueToBadCasing = false;
  16372. if (propertyInfo !== null) {
  16373. // $FlowFixMe - Should be inferred as not undefined.
  16374. extraAttributeNames.delete(propertyInfo.attributeName);
  16375. serverValue = getValueForProperty(domElement, propKey, nextProp, propertyInfo);
  16376. } else {
  16377. var ownNamespace = parentNamespace;
  16378. if (ownNamespace === HTML_NAMESPACE) {
  16379. ownNamespace = getIntrinsicNamespace(tag);
  16380. }
  16381. if (ownNamespace === HTML_NAMESPACE) {
  16382. // $FlowFixMe - Should be inferred as not undefined.
  16383. extraAttributeNames.delete(propKey.toLowerCase());
  16384. } else {
  16385. var standardName = getPossibleStandardName(propKey);
  16386. if (standardName !== null && standardName !== propKey) {
  16387. // If an SVG prop is supplied with bad casing, it will
  16388. // be successfully parsed from HTML, but will produce a mismatch
  16389. // (and would be incorrectly rendered on the client).
  16390. // However, we already warn about bad casing elsewhere.
  16391. // So we'll skip the misleading extra mismatch warning in this case.
  16392. isMismatchDueToBadCasing = true;
  16393. // $FlowFixMe - Should be inferred as not undefined.
  16394. extraAttributeNames.delete(standardName);
  16395. }
  16396. // $FlowFixMe - Should be inferred as not undefined.
  16397. extraAttributeNames.delete(propKey);
  16398. }
  16399. serverValue = getValueForAttribute(domElement, propKey, nextProp);
  16400. }
  16401. if (nextProp !== serverValue && !isMismatchDueToBadCasing) {
  16402. warnForPropDifference(propKey, serverValue, nextProp);
  16403. }
  16404. }
  16405. }
  16406. }
  16407. {
  16408. // $FlowFixMe - Should be inferred as not undefined.
  16409. if (extraAttributeNames.size > 0 && !suppressHydrationWarning) {
  16410. // $FlowFixMe - Should be inferred as not undefined.
  16411. warnForExtraAttributes(extraAttributeNames);
  16412. }
  16413. }
  16414. switch (tag) {
  16415. case 'input':
  16416. // TODO: Make sure we check if this is still unmounted or do any clean
  16417. // up necessary since we never stop tracking anymore.
  16418. track(domElement);
  16419. postMountWrapper(domElement, rawProps, true);
  16420. break;
  16421. case 'textarea':
  16422. // TODO: Make sure we check if this is still unmounted or do any clean
  16423. // up necessary since we never stop tracking anymore.
  16424. track(domElement);
  16425. postMountWrapper$3(domElement, rawProps);
  16426. break;
  16427. case 'select':
  16428. case 'option':
  16429. // For input and textarea we current always set the value property at
  16430. // post mount to force it to diverge from attributes. However, for
  16431. // option and select we don't quite do the same thing and select
  16432. // is not resilient to the DOM state changing so we don't do that here.
  16433. // TODO: Consider not doing this for input and textarea.
  16434. break;
  16435. default:
  16436. if (typeof rawProps.onClick === 'function') {
  16437. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  16438. trapClickOnNonInteractiveElement(domElement);
  16439. }
  16440. break;
  16441. }
  16442. return updatePayload;
  16443. }
  16444. function diffHydratedText(textNode, text) {
  16445. var isDifferent = textNode.nodeValue !== text;
  16446. return isDifferent;
  16447. }
  16448. function warnForUnmatchedText(textNode, text) {
  16449. {
  16450. warnForTextDifference(textNode.nodeValue, text);
  16451. }
  16452. }
  16453. function warnForDeletedHydratableElement(parentNode, child) {
  16454. {
  16455. if (didWarnInvalidHydration) {
  16456. return;
  16457. }
  16458. didWarnInvalidHydration = true;
  16459. warningWithoutStack$1(false, 'Did not expect server HTML to contain a <%s> in <%s>.', child.nodeName.toLowerCase(), parentNode.nodeName.toLowerCase());
  16460. }
  16461. }
  16462. function warnForDeletedHydratableText(parentNode, child) {
  16463. {
  16464. if (didWarnInvalidHydration) {
  16465. return;
  16466. }
  16467. didWarnInvalidHydration = true;
  16468. warningWithoutStack$1(false, 'Did not expect server HTML to contain the text node "%s" in <%s>.', child.nodeValue, parentNode.nodeName.toLowerCase());
  16469. }
  16470. }
  16471. function warnForInsertedHydratedElement(parentNode, tag, props) {
  16472. {
  16473. if (didWarnInvalidHydration) {
  16474. return;
  16475. }
  16476. didWarnInvalidHydration = true;
  16477. warningWithoutStack$1(false, 'Expected server HTML to contain a matching <%s> in <%s>.', tag, parentNode.nodeName.toLowerCase());
  16478. }
  16479. }
  16480. function warnForInsertedHydratedText(parentNode, text) {
  16481. {
  16482. if (text === '') {
  16483. // We expect to insert empty text nodes since they're not represented in
  16484. // the HTML.
  16485. // TODO: Remove this special case if we can just avoid inserting empty
  16486. // text nodes.
  16487. return;
  16488. }
  16489. if (didWarnInvalidHydration) {
  16490. return;
  16491. }
  16492. didWarnInvalidHydration = true;
  16493. warningWithoutStack$1(false, 'Expected server HTML to contain a matching text node for "%s" in <%s>.', text, parentNode.nodeName.toLowerCase());
  16494. }
  16495. }
  16496. function restoreControlledState$1(domElement, tag, props) {
  16497. switch (tag) {
  16498. case 'input':
  16499. restoreControlledState(domElement, props);
  16500. return;
  16501. case 'textarea':
  16502. restoreControlledState$3(domElement, props);
  16503. return;
  16504. case 'select':
  16505. restoreControlledState$2(domElement, props);
  16506. return;
  16507. }
  16508. }
  16509. function listenToEventResponderEventTypes(eventTypes, element) {
  16510. if (enableFlareAPI) {
  16511. // Get the listening Set for this element. We use this to track
  16512. // what events we're listening to.
  16513. var listeningSet = getListeningSetForElement(element);
  16514. // Go through each target event type of the event responder
  16515. for (var i = 0, length = eventTypes.length; i < length; ++i) {
  16516. var eventType = eventTypes[i];
  16517. var isPassive = !endsWith(eventType, '_active');
  16518. var eventKey = isPassive ? eventType + '_passive' : eventType;
  16519. var targetEventType = isPassive ? eventType : eventType.substring(0, eventType.length - 7);
  16520. if (!listeningSet.has(eventKey)) {
  16521. trapEventForResponderEventSystem(element, targetEventType, isPassive);
  16522. listeningSet.add(eventKey);
  16523. }
  16524. }
  16525. }
  16526. }
  16527. // We can remove this once the event API is stable and out of a flag
  16528. if (enableFlareAPI) {
  16529. setListenToResponderEventTypes(listenToEventResponderEventTypes);
  16530. }
  16531. // TODO: direct imports like some-package/src/* are bad. Fix me.
  16532. var validateDOMNesting = function () {};
  16533. var updatedAncestorInfo = function () {};
  16534. {
  16535. // This validation code was written based on the HTML5 parsing spec:
  16536. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  16537. //
  16538. // Note: this does not catch all invalid nesting, nor does it try to (as it's
  16539. // not clear what practical benefit doing so provides); instead, we warn only
  16540. // for cases where the parser will give a parse tree differing from what React
  16541. // intended. For example, <b><div></div></b> is invalid but we don't warn
  16542. // because it still parses correctly; we do warn for other cases like nested
  16543. // <p> tags where the beginning of the second element implicitly closes the
  16544. // first, causing a confusing mess.
  16545. // https://html.spec.whatwg.org/multipage/syntax.html#special
  16546. var specialTags = ['address', 'applet', 'area', 'article', 'aside', 'base', 'basefont', 'bgsound', 'blockquote', 'body', 'br', 'button', 'caption', 'center', 'col', 'colgroup', 'dd', 'details', 'dir', 'div', 'dl', 'dt', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'frame', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'iframe', 'img', 'input', 'isindex', 'li', 'link', 'listing', 'main', 'marquee', 'menu', 'menuitem', 'meta', 'nav', 'noembed', 'noframes', 'noscript', 'object', 'ol', 'p', 'param', 'plaintext', 'pre', 'script', 'section', 'select', 'source', 'style', 'summary', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'title', 'tr', 'track', 'ul', 'wbr', 'xmp'];
  16547. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  16548. var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template',
  16549. // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point
  16550. // TODO: Distinguish by namespace here -- for <title>, including it here
  16551. // errs on the side of fewer warnings
  16552. 'foreignObject', 'desc', 'title'];
  16553. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope
  16554. var buttonScopeTags = inScopeTags.concat(['button']);
  16555. // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags
  16556. var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt'];
  16557. var emptyAncestorInfo = {
  16558. current: null,
  16559. formTag: null,
  16560. aTagInScope: null,
  16561. buttonTagInScope: null,
  16562. nobrTagInScope: null,
  16563. pTagInButtonScope: null,
  16564. listItemTagAutoclosing: null,
  16565. dlItemTagAutoclosing: null
  16566. };
  16567. updatedAncestorInfo = function (oldInfo, tag) {
  16568. var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo);
  16569. var info = { tag: tag };
  16570. if (inScopeTags.indexOf(tag) !== -1) {
  16571. ancestorInfo.aTagInScope = null;
  16572. ancestorInfo.buttonTagInScope = null;
  16573. ancestorInfo.nobrTagInScope = null;
  16574. }
  16575. if (buttonScopeTags.indexOf(tag) !== -1) {
  16576. ancestorInfo.pTagInButtonScope = null;
  16577. }
  16578. // See rules for 'li', 'dd', 'dt' start tags in
  16579. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  16580. if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') {
  16581. ancestorInfo.listItemTagAutoclosing = null;
  16582. ancestorInfo.dlItemTagAutoclosing = null;
  16583. }
  16584. ancestorInfo.current = info;
  16585. if (tag === 'form') {
  16586. ancestorInfo.formTag = info;
  16587. }
  16588. if (tag === 'a') {
  16589. ancestorInfo.aTagInScope = info;
  16590. }
  16591. if (tag === 'button') {
  16592. ancestorInfo.buttonTagInScope = info;
  16593. }
  16594. if (tag === 'nobr') {
  16595. ancestorInfo.nobrTagInScope = info;
  16596. }
  16597. if (tag === 'p') {
  16598. ancestorInfo.pTagInButtonScope = info;
  16599. }
  16600. if (tag === 'li') {
  16601. ancestorInfo.listItemTagAutoclosing = info;
  16602. }
  16603. if (tag === 'dd' || tag === 'dt') {
  16604. ancestorInfo.dlItemTagAutoclosing = info;
  16605. }
  16606. return ancestorInfo;
  16607. };
  16608. /**
  16609. * Returns whether
  16610. */
  16611. var isTagValidWithParent = function (tag, parentTag) {
  16612. // First, let's check if we're in an unusual parsing mode...
  16613. switch (parentTag) {
  16614. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect
  16615. case 'select':
  16616. return tag === 'option' || tag === 'optgroup' || tag === '#text';
  16617. case 'optgroup':
  16618. return tag === 'option' || tag === '#text';
  16619. // Strictly speaking, seeing an <option> doesn't mean we're in a <select>
  16620. // but
  16621. case 'option':
  16622. return tag === '#text';
  16623. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd
  16624. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption
  16625. // No special behavior since these rules fall back to "in body" mode for
  16626. // all except special table nodes which cause bad parsing behavior anyway.
  16627. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr
  16628. case 'tr':
  16629. return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template';
  16630. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody
  16631. case 'tbody':
  16632. case 'thead':
  16633. case 'tfoot':
  16634. return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template';
  16635. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup
  16636. case 'colgroup':
  16637. return tag === 'col' || tag === 'template';
  16638. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable
  16639. case 'table':
  16640. return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template';
  16641. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead
  16642. case 'head':
  16643. return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template';
  16644. // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element
  16645. case 'html':
  16646. return tag === 'head' || tag === 'body' || tag === 'frameset';
  16647. case 'frameset':
  16648. return tag === 'frame';
  16649. case '#document':
  16650. return tag === 'html';
  16651. }
  16652. // Probably in the "in body" parsing mode, so we outlaw only tag combos
  16653. // where the parsing rules cause implicit opens or closes to be added.
  16654. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  16655. switch (tag) {
  16656. case 'h1':
  16657. case 'h2':
  16658. case 'h3':
  16659. case 'h4':
  16660. case 'h5':
  16661. case 'h6':
  16662. return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6';
  16663. case 'rp':
  16664. case 'rt':
  16665. return impliedEndTags.indexOf(parentTag) === -1;
  16666. case 'body':
  16667. case 'caption':
  16668. case 'col':
  16669. case 'colgroup':
  16670. case 'frameset':
  16671. case 'frame':
  16672. case 'head':
  16673. case 'html':
  16674. case 'tbody':
  16675. case 'td':
  16676. case 'tfoot':
  16677. case 'th':
  16678. case 'thead':
  16679. case 'tr':
  16680. // These tags are only valid with a few parents that have special child
  16681. // parsing rules -- if we're down here, then none of those matched and
  16682. // so we allow it only if we don't know what the parent is, as all other
  16683. // cases are invalid.
  16684. return parentTag == null;
  16685. }
  16686. return true;
  16687. };
  16688. /**
  16689. * Returns whether
  16690. */
  16691. var findInvalidAncestorForTag = function (tag, ancestorInfo) {
  16692. switch (tag) {
  16693. case 'address':
  16694. case 'article':
  16695. case 'aside':
  16696. case 'blockquote':
  16697. case 'center':
  16698. case 'details':
  16699. case 'dialog':
  16700. case 'dir':
  16701. case 'div':
  16702. case 'dl':
  16703. case 'fieldset':
  16704. case 'figcaption':
  16705. case 'figure':
  16706. case 'footer':
  16707. case 'header':
  16708. case 'hgroup':
  16709. case 'main':
  16710. case 'menu':
  16711. case 'nav':
  16712. case 'ol':
  16713. case 'p':
  16714. case 'section':
  16715. case 'summary':
  16716. case 'ul':
  16717. case 'pre':
  16718. case 'listing':
  16719. case 'table':
  16720. case 'hr':
  16721. case 'xmp':
  16722. case 'h1':
  16723. case 'h2':
  16724. case 'h3':
  16725. case 'h4':
  16726. case 'h5':
  16727. case 'h6':
  16728. return ancestorInfo.pTagInButtonScope;
  16729. case 'form':
  16730. return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;
  16731. case 'li':
  16732. return ancestorInfo.listItemTagAutoclosing;
  16733. case 'dd':
  16734. case 'dt':
  16735. return ancestorInfo.dlItemTagAutoclosing;
  16736. case 'button':
  16737. return ancestorInfo.buttonTagInScope;
  16738. case 'a':
  16739. // Spec says something about storing a list of markers, but it sounds
  16740. // equivalent to this check.
  16741. return ancestorInfo.aTagInScope;
  16742. case 'nobr':
  16743. return ancestorInfo.nobrTagInScope;
  16744. }
  16745. return null;
  16746. };
  16747. var didWarn$1 = {};
  16748. validateDOMNesting = function (childTag, childText, ancestorInfo) {
  16749. ancestorInfo = ancestorInfo || emptyAncestorInfo;
  16750. var parentInfo = ancestorInfo.current;
  16751. var parentTag = parentInfo && parentInfo.tag;
  16752. if (childText != null) {
  16753. !(childTag == null) ? warningWithoutStack$1(false, 'validateDOMNesting: when childText is passed, childTag should be null') : void 0;
  16754. childTag = '#text';
  16755. }
  16756. var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo;
  16757. var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo);
  16758. var invalidParentOrAncestor = invalidParent || invalidAncestor;
  16759. if (!invalidParentOrAncestor) {
  16760. return;
  16761. }
  16762. var ancestorTag = invalidParentOrAncestor.tag;
  16763. var addendum = getCurrentFiberStackInDev();
  16764. var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag + '|' + addendum;
  16765. if (didWarn$1[warnKey]) {
  16766. return;
  16767. }
  16768. didWarn$1[warnKey] = true;
  16769. var tagDisplayName = childTag;
  16770. var whitespaceInfo = '';
  16771. if (childTag === '#text') {
  16772. if (/\S/.test(childText)) {
  16773. tagDisplayName = 'Text nodes';
  16774. } else {
  16775. tagDisplayName = 'Whitespace text nodes';
  16776. whitespaceInfo = " Make sure you don't have any extra whitespace between tags on " + 'each line of your source code.';
  16777. }
  16778. } else {
  16779. tagDisplayName = '<' + childTag + '>';
  16780. }
  16781. if (invalidParent) {
  16782. var info = '';
  16783. if (ancestorTag === 'table' && childTag === 'tr') {
  16784. info += ' Add a <tbody> to your code to match the DOM tree generated by ' + 'the browser.';
  16785. }
  16786. warningWithoutStack$1(false, 'validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info, addendum);
  16787. } else {
  16788. warningWithoutStack$1(false, 'validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.%s', tagDisplayName, ancestorTag, addendum);
  16789. }
  16790. };
  16791. }
  16792. // Renderers that don't support persistence
  16793. // can re-export everything from this module.
  16794. function shim() {
  16795. (function () {
  16796. {
  16797. {
  16798. throw ReactError(Error('The current renderer does not support persistence. This error is likely caused by a bug in React. Please file an issue.'));
  16799. }
  16800. }
  16801. })();
  16802. }
  16803. // Persistence (when unsupported)
  16804. var supportsPersistence = false;
  16805. var cloneInstance = shim;
  16806. var cloneFundamentalInstance = shim;
  16807. var createContainerChildSet = shim;
  16808. var appendChildToContainerChildSet = shim;
  16809. var finalizeContainerChildren = shim;
  16810. var replaceContainerChildren = shim;
  16811. var cloneHiddenInstance = shim;
  16812. var cloneHiddenTextInstance = shim;
  16813. var SUPPRESS_HYDRATION_WARNING = void 0;
  16814. {
  16815. SUPPRESS_HYDRATION_WARNING = 'suppressHydrationWarning';
  16816. }
  16817. var SUSPENSE_START_DATA = '$';
  16818. var SUSPENSE_END_DATA = '/$';
  16819. var SUSPENSE_PENDING_START_DATA = '$?';
  16820. var SUSPENSE_FALLBACK_START_DATA = '$!';
  16821. var STYLE = 'style';
  16822. var eventsEnabled = null;
  16823. var selectionInformation = null;
  16824. function shouldAutoFocusHostComponent(type, props) {
  16825. switch (type) {
  16826. case 'button':
  16827. case 'input':
  16828. case 'select':
  16829. case 'textarea':
  16830. return !!props.autoFocus;
  16831. }
  16832. return false;
  16833. }
  16834. function getRootHostContext(rootContainerInstance) {
  16835. var type = void 0;
  16836. var namespace = void 0;
  16837. var nodeType = rootContainerInstance.nodeType;
  16838. switch (nodeType) {
  16839. case DOCUMENT_NODE:
  16840. case DOCUMENT_FRAGMENT_NODE:
  16841. {
  16842. type = nodeType === DOCUMENT_NODE ? '#document' : '#fragment';
  16843. var root = rootContainerInstance.documentElement;
  16844. namespace = root ? root.namespaceURI : getChildNamespace(null, '');
  16845. break;
  16846. }
  16847. default:
  16848. {
  16849. var container = nodeType === COMMENT_NODE ? rootContainerInstance.parentNode : rootContainerInstance;
  16850. var ownNamespace = container.namespaceURI || null;
  16851. type = container.tagName;
  16852. namespace = getChildNamespace(ownNamespace, type);
  16853. break;
  16854. }
  16855. }
  16856. {
  16857. var validatedTag = type.toLowerCase();
  16858. var _ancestorInfo = updatedAncestorInfo(null, validatedTag);
  16859. return { namespace: namespace, ancestorInfo: _ancestorInfo };
  16860. }
  16861. return namespace;
  16862. }
  16863. function getChildHostContext(parentHostContext, type, rootContainerInstance) {
  16864. {
  16865. var parentHostContextDev = parentHostContext;
  16866. var _namespace = getChildNamespace(parentHostContextDev.namespace, type);
  16867. var _ancestorInfo2 = updatedAncestorInfo(parentHostContextDev.ancestorInfo, type);
  16868. return { namespace: _namespace, ancestorInfo: _ancestorInfo2 };
  16869. }
  16870. var parentNamespace = parentHostContext;
  16871. return getChildNamespace(parentNamespace, type);
  16872. }
  16873. function getPublicInstance(instance) {
  16874. return instance;
  16875. }
  16876. function prepareForCommit(containerInfo) {
  16877. eventsEnabled = isEnabled();
  16878. selectionInformation = getSelectionInformation();
  16879. setEnabled(false);
  16880. }
  16881. function resetAfterCommit(containerInfo) {
  16882. restoreSelection(selectionInformation);
  16883. selectionInformation = null;
  16884. setEnabled(eventsEnabled);
  16885. eventsEnabled = null;
  16886. }
  16887. function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  16888. var parentNamespace = void 0;
  16889. {
  16890. // TODO: take namespace into account when validating.
  16891. var hostContextDev = hostContext;
  16892. validateDOMNesting(type, null, hostContextDev.ancestorInfo);
  16893. if (typeof props.children === 'string' || typeof props.children === 'number') {
  16894. var string = '' + props.children;
  16895. var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
  16896. validateDOMNesting(null, string, ownAncestorInfo);
  16897. }
  16898. parentNamespace = hostContextDev.namespace;
  16899. }
  16900. var domElement = createElement(type, props, rootContainerInstance, parentNamespace);
  16901. precacheFiberNode(internalInstanceHandle, domElement);
  16902. updateFiberProps(domElement, props);
  16903. return domElement;
  16904. }
  16905. function appendInitialChild(parentInstance, child) {
  16906. parentInstance.appendChild(child);
  16907. }
  16908. function finalizeInitialChildren(domElement, type, props, rootContainerInstance, hostContext) {
  16909. setInitialProperties(domElement, type, props, rootContainerInstance);
  16910. return shouldAutoFocusHostComponent(type, props);
  16911. }
  16912. function prepareUpdate(domElement, type, oldProps, newProps, rootContainerInstance, hostContext) {
  16913. {
  16914. var hostContextDev = hostContext;
  16915. if (typeof newProps.children !== typeof oldProps.children && (typeof newProps.children === 'string' || typeof newProps.children === 'number')) {
  16916. var string = '' + newProps.children;
  16917. var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
  16918. validateDOMNesting(null, string, ownAncestorInfo);
  16919. }
  16920. }
  16921. return diffProperties(domElement, type, oldProps, newProps, rootContainerInstance);
  16922. }
  16923. function shouldSetTextContent(type, props) {
  16924. return type === 'textarea' || type === 'option' || type === 'noscript' || typeof props.children === 'string' || typeof props.children === 'number' || typeof props.dangerouslySetInnerHTML === 'object' && props.dangerouslySetInnerHTML !== null && props.dangerouslySetInnerHTML.__html != null;
  16925. }
  16926. function shouldDeprioritizeSubtree(type, props) {
  16927. return !!props.hidden;
  16928. }
  16929. function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) {
  16930. {
  16931. var hostContextDev = hostContext;
  16932. validateDOMNesting(null, text, hostContextDev.ancestorInfo);
  16933. }
  16934. var textNode = createTextNode(text, rootContainerInstance);
  16935. precacheFiberNode(internalInstanceHandle, textNode);
  16936. return textNode;
  16937. }
  16938. var isPrimaryRenderer = true;
  16939. var warnsIfNotActing = true;
  16940. // This initialization code may run even on server environments
  16941. // if a component just imports ReactDOM (e.g. for findDOMNode).
  16942. // Some environments might not have setTimeout or clearTimeout.
  16943. var scheduleTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;
  16944. var cancelTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;
  16945. var noTimeout = -1;
  16946. // -------------------
  16947. // Mutation
  16948. // -------------------
  16949. var supportsMutation = true;
  16950. function commitMount(domElement, type, newProps, internalInstanceHandle) {
  16951. // Despite the naming that might imply otherwise, this method only
  16952. // fires if there is an `Update` effect scheduled during mounting.
  16953. // This happens if `finalizeInitialChildren` returns `true` (which it
  16954. // does to implement the `autoFocus` attribute on the client). But
  16955. // there are also other cases when this might happen (such as patching
  16956. // up text content during hydration mismatch). So we'll check this again.
  16957. if (shouldAutoFocusHostComponent(type, newProps)) {
  16958. domElement.focus();
  16959. }
  16960. }
  16961. function commitUpdate(domElement, updatePayload, type, oldProps, newProps, internalInstanceHandle) {
  16962. // Update the props handle so that we know which props are the ones with
  16963. // with current event handlers.
  16964. updateFiberProps(domElement, newProps);
  16965. // Apply the diff to the DOM node.
  16966. updateProperties(domElement, updatePayload, type, oldProps, newProps);
  16967. }
  16968. function resetTextContent(domElement) {
  16969. setTextContent(domElement, '');
  16970. }
  16971. function commitTextUpdate(textInstance, oldText, newText) {
  16972. textInstance.nodeValue = newText;
  16973. }
  16974. function appendChild(parentInstance, child) {
  16975. parentInstance.appendChild(child);
  16976. }
  16977. function appendChildToContainer(container, child) {
  16978. var parentNode = void 0;
  16979. if (container.nodeType === COMMENT_NODE) {
  16980. parentNode = container.parentNode;
  16981. parentNode.insertBefore(child, container);
  16982. } else {
  16983. parentNode = container;
  16984. parentNode.appendChild(child);
  16985. }
  16986. // This container might be used for a portal.
  16987. // If something inside a portal is clicked, that click should bubble
  16988. // through the React tree. However, on Mobile Safari the click would
  16989. // never bubble through the *DOM* tree unless an ancestor with onclick
  16990. // event exists. So we wouldn't see it and dispatch it.
  16991. // This is why we ensure that non React root containers have inline onclick
  16992. // defined.
  16993. // https://github.com/facebook/react/issues/11918
  16994. var reactRootContainer = container._reactRootContainer;
  16995. if ((reactRootContainer === null || reactRootContainer === undefined) && parentNode.onclick === null) {
  16996. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  16997. trapClickOnNonInteractiveElement(parentNode);
  16998. }
  16999. }
  17000. function insertBefore(parentInstance, child, beforeChild) {
  17001. parentInstance.insertBefore(child, beforeChild);
  17002. }
  17003. function insertInContainerBefore(container, child, beforeChild) {
  17004. if (container.nodeType === COMMENT_NODE) {
  17005. container.parentNode.insertBefore(child, beforeChild);
  17006. } else {
  17007. container.insertBefore(child, beforeChild);
  17008. }
  17009. }
  17010. function removeChild(parentInstance, child) {
  17011. parentInstance.removeChild(child);
  17012. }
  17013. function removeChildFromContainer(container, child) {
  17014. if (container.nodeType === COMMENT_NODE) {
  17015. container.parentNode.removeChild(child);
  17016. } else {
  17017. container.removeChild(child);
  17018. }
  17019. }
  17020. function clearSuspenseBoundary(parentInstance, suspenseInstance) {
  17021. var node = suspenseInstance;
  17022. // Delete all nodes within this suspense boundary.
  17023. // There might be nested nodes so we need to keep track of how
  17024. // deep we are and only break out when we're back on top.
  17025. var depth = 0;
  17026. do {
  17027. var nextNode = node.nextSibling;
  17028. parentInstance.removeChild(node);
  17029. if (nextNode && nextNode.nodeType === COMMENT_NODE) {
  17030. var data = nextNode.data;
  17031. if (data === SUSPENSE_END_DATA) {
  17032. if (depth === 0) {
  17033. parentInstance.removeChild(nextNode);
  17034. return;
  17035. } else {
  17036. depth--;
  17037. }
  17038. } else if (data === SUSPENSE_START_DATA || data === SUSPENSE_PENDING_START_DATA || data === SUSPENSE_FALLBACK_START_DATA) {
  17039. depth++;
  17040. }
  17041. }
  17042. node = nextNode;
  17043. } while (node);
  17044. // TODO: Warn, we didn't find the end comment boundary.
  17045. }
  17046. function clearSuspenseBoundaryFromContainer(container, suspenseInstance) {
  17047. if (container.nodeType === COMMENT_NODE) {
  17048. clearSuspenseBoundary(container.parentNode, suspenseInstance);
  17049. } else if (container.nodeType === ELEMENT_NODE) {
  17050. clearSuspenseBoundary(container, suspenseInstance);
  17051. } else {
  17052. // Document nodes should never contain suspense boundaries.
  17053. }
  17054. }
  17055. function hideInstance(instance) {
  17056. // TODO: Does this work for all element types? What about MathML? Should we
  17057. // pass host context to this method?
  17058. instance = instance;
  17059. var style = instance.style;
  17060. if (typeof style.setProperty === 'function') {
  17061. style.setProperty('display', 'none', 'important');
  17062. } else {
  17063. style.display = 'none';
  17064. }
  17065. }
  17066. function hideTextInstance(textInstance) {
  17067. textInstance.nodeValue = '';
  17068. }
  17069. function unhideInstance(instance, props) {
  17070. instance = instance;
  17071. var styleProp = props[STYLE];
  17072. var display = styleProp !== undefined && styleProp !== null && styleProp.hasOwnProperty('display') ? styleProp.display : null;
  17073. instance.style.display = dangerousStyleValue('display', display);
  17074. }
  17075. function unhideTextInstance(textInstance, text) {
  17076. textInstance.nodeValue = text;
  17077. }
  17078. // -------------------
  17079. // Hydration
  17080. // -------------------
  17081. var supportsHydration = true;
  17082. function canHydrateInstance(instance, type, props) {
  17083. if (instance.nodeType !== ELEMENT_NODE || type.toLowerCase() !== instance.nodeName.toLowerCase()) {
  17084. return null;
  17085. }
  17086. // This has now been refined to an element node.
  17087. return instance;
  17088. }
  17089. function canHydrateTextInstance(instance, text) {
  17090. if (text === '' || instance.nodeType !== TEXT_NODE) {
  17091. // Empty strings are not parsed by HTML so there won't be a correct match here.
  17092. return null;
  17093. }
  17094. // This has now been refined to a text node.
  17095. return instance;
  17096. }
  17097. function canHydrateSuspenseInstance(instance) {
  17098. if (instance.nodeType !== COMMENT_NODE) {
  17099. // Empty strings are not parsed by HTML so there won't be a correct match here.
  17100. return null;
  17101. }
  17102. // This has now been refined to a suspense node.
  17103. return instance;
  17104. }
  17105. function isSuspenseInstancePending(instance) {
  17106. return instance.data === SUSPENSE_PENDING_START_DATA;
  17107. }
  17108. function isSuspenseInstanceFallback(instance) {
  17109. return instance.data === SUSPENSE_FALLBACK_START_DATA;
  17110. }
  17111. function registerSuspenseInstanceRetry(instance, callback) {
  17112. instance._reactRetry = callback;
  17113. }
  17114. function getNextHydratable(node) {
  17115. // Skip non-hydratable nodes.
  17116. for (; node != null; node = node.nextSibling) {
  17117. var nodeType = node.nodeType;
  17118. if (nodeType === ELEMENT_NODE || nodeType === TEXT_NODE) {
  17119. break;
  17120. }
  17121. if (enableSuspenseServerRenderer) {
  17122. if (nodeType === COMMENT_NODE) {
  17123. break;
  17124. }
  17125. var nodeData = node.data;
  17126. if (nodeData === SUSPENSE_START_DATA || nodeData === SUSPENSE_FALLBACK_START_DATA || nodeData === SUSPENSE_PENDING_START_DATA) {
  17127. break;
  17128. }
  17129. }
  17130. }
  17131. return node;
  17132. }
  17133. function getNextHydratableSibling(instance) {
  17134. return getNextHydratable(instance.nextSibling);
  17135. }
  17136. function getFirstHydratableChild(parentInstance) {
  17137. return getNextHydratable(parentInstance.firstChild);
  17138. }
  17139. function hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  17140. precacheFiberNode(internalInstanceHandle, instance);
  17141. // TODO: Possibly defer this until the commit phase where all the events
  17142. // get attached.
  17143. updateFiberProps(instance, props);
  17144. var parentNamespace = void 0;
  17145. {
  17146. var hostContextDev = hostContext;
  17147. parentNamespace = hostContextDev.namespace;
  17148. }
  17149. return diffHydratedProperties(instance, type, props, parentNamespace, rootContainerInstance);
  17150. }
  17151. function hydrateTextInstance(textInstance, text, internalInstanceHandle) {
  17152. precacheFiberNode(internalInstanceHandle, textInstance);
  17153. return diffHydratedText(textInstance, text);
  17154. }
  17155. function getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance) {
  17156. var node = suspenseInstance.nextSibling;
  17157. // Skip past all nodes within this suspense boundary.
  17158. // There might be nested nodes so we need to keep track of how
  17159. // deep we are and only break out when we're back on top.
  17160. var depth = 0;
  17161. while (node) {
  17162. if (node.nodeType === COMMENT_NODE) {
  17163. var data = node.data;
  17164. if (data === SUSPENSE_END_DATA) {
  17165. if (depth === 0) {
  17166. return getNextHydratableSibling(node);
  17167. } else {
  17168. depth--;
  17169. }
  17170. } else if (data === SUSPENSE_START_DATA) {
  17171. depth++;
  17172. }
  17173. }
  17174. node = node.nextSibling;
  17175. }
  17176. // TODO: Warn, we didn't find the end comment boundary.
  17177. return null;
  17178. }
  17179. function didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text) {
  17180. {
  17181. warnForUnmatchedText(textInstance, text);
  17182. }
  17183. }
  17184. function didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, text) {
  17185. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  17186. warnForUnmatchedText(textInstance, text);
  17187. }
  17188. }
  17189. function didNotHydrateContainerInstance(parentContainer, instance) {
  17190. {
  17191. if (instance.nodeType === ELEMENT_NODE) {
  17192. warnForDeletedHydratableElement(parentContainer, instance);
  17193. } else if (instance.nodeType === COMMENT_NODE) {
  17194. // TODO: warnForDeletedHydratableSuspenseBoundary
  17195. } else {
  17196. warnForDeletedHydratableText(parentContainer, instance);
  17197. }
  17198. }
  17199. }
  17200. function didNotHydrateInstance(parentType, parentProps, parentInstance, instance) {
  17201. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  17202. if (instance.nodeType === ELEMENT_NODE) {
  17203. warnForDeletedHydratableElement(parentInstance, instance);
  17204. } else if (instance.nodeType === COMMENT_NODE) {
  17205. // TODO: warnForDeletedHydratableSuspenseBoundary
  17206. } else {
  17207. warnForDeletedHydratableText(parentInstance, instance);
  17208. }
  17209. }
  17210. }
  17211. function didNotFindHydratableContainerInstance(parentContainer, type, props) {
  17212. {
  17213. warnForInsertedHydratedElement(parentContainer, type, props);
  17214. }
  17215. }
  17216. function didNotFindHydratableContainerTextInstance(parentContainer, text) {
  17217. {
  17218. warnForInsertedHydratedText(parentContainer, text);
  17219. }
  17220. }
  17221. function didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props) {
  17222. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  17223. warnForInsertedHydratedElement(parentInstance, type, props);
  17224. }
  17225. }
  17226. function didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, text) {
  17227. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  17228. warnForInsertedHydratedText(parentInstance, text);
  17229. }
  17230. }
  17231. function didNotFindHydratableSuspenseInstance(parentType, parentProps, parentInstance) {
  17232. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  17233. // TODO: warnForInsertedHydratedSuspense(parentInstance);
  17234. }
  17235. }
  17236. function mountResponderInstance(responder, responderInstance, responderProps, responderState, instance, rootContainerInstance) {
  17237. // Listen to events
  17238. var doc = rootContainerInstance.ownerDocument;
  17239. var documentBody = doc.body || doc;
  17240. var _ref = responder,
  17241. rootEventTypes = _ref.rootEventTypes,
  17242. targetEventTypes = _ref.targetEventTypes;
  17243. if (targetEventTypes !== null) {
  17244. listenToEventResponderEventTypes(targetEventTypes, documentBody);
  17245. }
  17246. if (rootEventTypes !== null) {
  17247. addRootEventTypesForResponderInstance(responderInstance, rootEventTypes);
  17248. listenToEventResponderEventTypes(rootEventTypes, documentBody);
  17249. }
  17250. mountEventResponder(responder, responderInstance, responderProps, responderState);
  17251. return responderInstance;
  17252. }
  17253. function unmountResponderInstance(responderInstance) {
  17254. if (enableFlareAPI) {
  17255. // TODO stop listening to targetEventTypes
  17256. unmountEventResponder(responderInstance);
  17257. }
  17258. }
  17259. function getFundamentalComponentInstance(fundamentalInstance) {
  17260. if (enableFundamentalAPI) {
  17261. var currentFiber = fundamentalInstance.currentFiber,
  17262. impl = fundamentalInstance.impl,
  17263. _props = fundamentalInstance.props,
  17264. state = fundamentalInstance.state;
  17265. var instance = impl.getInstance(null, _props, state);
  17266. precacheFiberNode(currentFiber, instance);
  17267. return instance;
  17268. }
  17269. // Because of the flag above, this gets around the Flow error;
  17270. return null;
  17271. }
  17272. function mountFundamentalComponent(fundamentalInstance) {
  17273. if (enableFundamentalAPI) {
  17274. var impl = fundamentalInstance.impl,
  17275. instance = fundamentalInstance.instance,
  17276. _props2 = fundamentalInstance.props,
  17277. state = fundamentalInstance.state;
  17278. var onMount = impl.onMount;
  17279. if (onMount !== undefined) {
  17280. onMount(null, instance, _props2, state);
  17281. }
  17282. }
  17283. }
  17284. function shouldUpdateFundamentalComponent(fundamentalInstance) {
  17285. if (enableFundamentalAPI) {
  17286. var impl = fundamentalInstance.impl,
  17287. prevProps = fundamentalInstance.prevProps,
  17288. _props3 = fundamentalInstance.props,
  17289. state = fundamentalInstance.state;
  17290. var shouldUpdate = impl.shouldUpdate;
  17291. if (shouldUpdate !== undefined) {
  17292. return shouldUpdate(null, prevProps, _props3, state);
  17293. }
  17294. }
  17295. return true;
  17296. }
  17297. function updateFundamentalComponent(fundamentalInstance) {
  17298. if (enableFundamentalAPI) {
  17299. var impl = fundamentalInstance.impl,
  17300. instance = fundamentalInstance.instance,
  17301. prevProps = fundamentalInstance.prevProps,
  17302. _props4 = fundamentalInstance.props,
  17303. state = fundamentalInstance.state;
  17304. var onUpdate = impl.onUpdate;
  17305. if (onUpdate !== undefined) {
  17306. onUpdate(null, instance, prevProps, _props4, state);
  17307. }
  17308. }
  17309. }
  17310. function unmountFundamentalComponent(fundamentalInstance) {
  17311. if (enableFundamentalAPI) {
  17312. var impl = fundamentalInstance.impl,
  17313. instance = fundamentalInstance.instance,
  17314. _props5 = fundamentalInstance.props,
  17315. state = fundamentalInstance.state;
  17316. var onUnmount = impl.onUnmount;
  17317. if (onUnmount !== undefined) {
  17318. onUnmount(null, instance, _props5, state);
  17319. }
  17320. }
  17321. }
  17322. // Prefix measurements so that it's possible to filter them.
  17323. // Longer prefixes are hard to read in DevTools.
  17324. var reactEmoji = '\u269B';
  17325. var warningEmoji = '\u26D4';
  17326. var supportsUserTiming = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function' && typeof performance.measure === 'function' && typeof performance.clearMeasures === 'function';
  17327. // Keep track of current fiber so that we know the path to unwind on pause.
  17328. // TODO: this looks the same as nextUnitOfWork in scheduler. Can we unify them?
  17329. var currentFiber = null;
  17330. // If we're in the middle of user code, which fiber and method is it?
  17331. // Reusing `currentFiber` would be confusing for this because user code fiber
  17332. // can change during commit phase too, but we don't need to unwind it (since
  17333. // lifecycles in the commit phase don't resemble a tree).
  17334. var currentPhase = null;
  17335. var currentPhaseFiber = null;
  17336. // Did lifecycle hook schedule an update? This is often a performance problem,
  17337. // so we will keep track of it, and include it in the report.
  17338. // Track commits caused by cascading updates.
  17339. var isCommitting = false;
  17340. var hasScheduledUpdateInCurrentCommit = false;
  17341. var hasScheduledUpdateInCurrentPhase = false;
  17342. var commitCountInCurrentWorkLoop = 0;
  17343. var effectCountInCurrentCommit = 0;
  17344. var isWaitingForCallback = false;
  17345. // During commits, we only show a measurement once per method name
  17346. // to avoid stretch the commit phase with measurement overhead.
  17347. var labelsInCurrentCommit = new Set();
  17348. var formatMarkName = function (markName) {
  17349. return reactEmoji + ' ' + markName;
  17350. };
  17351. var formatLabel = function (label, warning) {
  17352. var prefix = warning ? warningEmoji + ' ' : reactEmoji + ' ';
  17353. var suffix = warning ? ' Warning: ' + warning : '';
  17354. return '' + prefix + label + suffix;
  17355. };
  17356. var beginMark = function (markName) {
  17357. performance.mark(formatMarkName(markName));
  17358. };
  17359. var clearMark = function (markName) {
  17360. performance.clearMarks(formatMarkName(markName));
  17361. };
  17362. var endMark = function (label, markName, warning) {
  17363. var formattedMarkName = formatMarkName(markName);
  17364. var formattedLabel = formatLabel(label, warning);
  17365. try {
  17366. performance.measure(formattedLabel, formattedMarkName);
  17367. } catch (err) {}
  17368. // If previous mark was missing for some reason, this will throw.
  17369. // This could only happen if React crashed in an unexpected place earlier.
  17370. // Don't pile on with more errors.
  17371. // Clear marks immediately to avoid growing buffer.
  17372. performance.clearMarks(formattedMarkName);
  17373. performance.clearMeasures(formattedLabel);
  17374. };
  17375. var getFiberMarkName = function (label, debugID) {
  17376. return label + ' (#' + debugID + ')';
  17377. };
  17378. var getFiberLabel = function (componentName, isMounted, phase) {
  17379. if (phase === null) {
  17380. // These are composite component total time measurements.
  17381. return componentName + ' [' + (isMounted ? 'update' : 'mount') + ']';
  17382. } else {
  17383. // Composite component methods.
  17384. return componentName + '.' + phase;
  17385. }
  17386. };
  17387. var beginFiberMark = function (fiber, phase) {
  17388. var componentName = getComponentName(fiber.type) || 'Unknown';
  17389. var debugID = fiber._debugID;
  17390. var isMounted = fiber.alternate !== null;
  17391. var label = getFiberLabel(componentName, isMounted, phase);
  17392. if (isCommitting && labelsInCurrentCommit.has(label)) {
  17393. // During the commit phase, we don't show duplicate labels because
  17394. // there is a fixed overhead for every measurement, and we don't
  17395. // want to stretch the commit phase beyond necessary.
  17396. return false;
  17397. }
  17398. labelsInCurrentCommit.add(label);
  17399. var markName = getFiberMarkName(label, debugID);
  17400. beginMark(markName);
  17401. return true;
  17402. };
  17403. var clearFiberMark = function (fiber, phase) {
  17404. var componentName = getComponentName(fiber.type) || 'Unknown';
  17405. var debugID = fiber._debugID;
  17406. var isMounted = fiber.alternate !== null;
  17407. var label = getFiberLabel(componentName, isMounted, phase);
  17408. var markName = getFiberMarkName(label, debugID);
  17409. clearMark(markName);
  17410. };
  17411. var endFiberMark = function (fiber, phase, warning) {
  17412. var componentName = getComponentName(fiber.type) || 'Unknown';
  17413. var debugID = fiber._debugID;
  17414. var isMounted = fiber.alternate !== null;
  17415. var label = getFiberLabel(componentName, isMounted, phase);
  17416. var markName = getFiberMarkName(label, debugID);
  17417. endMark(label, markName, warning);
  17418. };
  17419. var shouldIgnoreFiber = function (fiber) {
  17420. // Host components should be skipped in the timeline.
  17421. // We could check typeof fiber.type, but does this work with RN?
  17422. switch (fiber.tag) {
  17423. case HostRoot:
  17424. case HostComponent:
  17425. case HostText:
  17426. case HostPortal:
  17427. case Fragment:
  17428. case ContextProvider:
  17429. case ContextConsumer:
  17430. case Mode:
  17431. return true;
  17432. default:
  17433. return false;
  17434. }
  17435. };
  17436. var clearPendingPhaseMeasurement = function () {
  17437. if (currentPhase !== null && currentPhaseFiber !== null) {
  17438. clearFiberMark(currentPhaseFiber, currentPhase);
  17439. }
  17440. currentPhaseFiber = null;
  17441. currentPhase = null;
  17442. hasScheduledUpdateInCurrentPhase = false;
  17443. };
  17444. var pauseTimers = function () {
  17445. // Stops all currently active measurements so that they can be resumed
  17446. // if we continue in a later deferred loop from the same unit of work.
  17447. var fiber = currentFiber;
  17448. while (fiber) {
  17449. if (fiber._debugIsCurrentlyTiming) {
  17450. endFiberMark(fiber, null, null);
  17451. }
  17452. fiber = fiber.return;
  17453. }
  17454. };
  17455. var resumeTimersRecursively = function (fiber) {
  17456. if (fiber.return !== null) {
  17457. resumeTimersRecursively(fiber.return);
  17458. }
  17459. if (fiber._debugIsCurrentlyTiming) {
  17460. beginFiberMark(fiber, null);
  17461. }
  17462. };
  17463. var resumeTimers = function () {
  17464. // Resumes all measurements that were active during the last deferred loop.
  17465. if (currentFiber !== null) {
  17466. resumeTimersRecursively(currentFiber);
  17467. }
  17468. };
  17469. function recordEffect() {
  17470. if (enableUserTimingAPI) {
  17471. effectCountInCurrentCommit++;
  17472. }
  17473. }
  17474. function recordScheduleUpdate() {
  17475. if (enableUserTimingAPI) {
  17476. if (isCommitting) {
  17477. hasScheduledUpdateInCurrentCommit = true;
  17478. }
  17479. if (currentPhase !== null && currentPhase !== 'componentWillMount' && currentPhase !== 'componentWillReceiveProps') {
  17480. hasScheduledUpdateInCurrentPhase = true;
  17481. }
  17482. }
  17483. }
  17484. function startRequestCallbackTimer() {
  17485. if (enableUserTimingAPI) {
  17486. if (supportsUserTiming && !isWaitingForCallback) {
  17487. isWaitingForCallback = true;
  17488. beginMark('(Waiting for async callback...)');
  17489. }
  17490. }
  17491. }
  17492. function stopRequestCallbackTimer(didExpire) {
  17493. if (enableUserTimingAPI) {
  17494. if (supportsUserTiming) {
  17495. isWaitingForCallback = false;
  17496. var warning = didExpire ? 'Update expired; will flush synchronously' : null;
  17497. endMark('(Waiting for async callback...)', '(Waiting for async callback...)', warning);
  17498. }
  17499. }
  17500. }
  17501. function startWorkTimer(fiber) {
  17502. if (enableUserTimingAPI) {
  17503. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  17504. return;
  17505. }
  17506. // If we pause, this is the fiber to unwind from.
  17507. currentFiber = fiber;
  17508. if (!beginFiberMark(fiber, null)) {
  17509. return;
  17510. }
  17511. fiber._debugIsCurrentlyTiming = true;
  17512. }
  17513. }
  17514. function cancelWorkTimer(fiber) {
  17515. if (enableUserTimingAPI) {
  17516. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  17517. return;
  17518. }
  17519. // Remember we shouldn't complete measurement for this fiber.
  17520. // Otherwise flamechart will be deep even for small updates.
  17521. fiber._debugIsCurrentlyTiming = false;
  17522. clearFiberMark(fiber, null);
  17523. }
  17524. }
  17525. function stopWorkTimer(fiber) {
  17526. if (enableUserTimingAPI) {
  17527. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  17528. return;
  17529. }
  17530. // If we pause, its parent is the fiber to unwind from.
  17531. currentFiber = fiber.return;
  17532. if (!fiber._debugIsCurrentlyTiming) {
  17533. return;
  17534. }
  17535. fiber._debugIsCurrentlyTiming = false;
  17536. endFiberMark(fiber, null, null);
  17537. }
  17538. }
  17539. function stopFailedWorkTimer(fiber) {
  17540. if (enableUserTimingAPI) {
  17541. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  17542. return;
  17543. }
  17544. // If we pause, its parent is the fiber to unwind from.
  17545. currentFiber = fiber.return;
  17546. if (!fiber._debugIsCurrentlyTiming) {
  17547. return;
  17548. }
  17549. fiber._debugIsCurrentlyTiming = false;
  17550. var warning = fiber.tag === SuspenseComponent || fiber.tag === DehydratedSuspenseComponent ? 'Rendering was suspended' : 'An error was thrown inside this error boundary';
  17551. endFiberMark(fiber, null, warning);
  17552. }
  17553. }
  17554. function startPhaseTimer(fiber, phase) {
  17555. if (enableUserTimingAPI) {
  17556. if (!supportsUserTiming) {
  17557. return;
  17558. }
  17559. clearPendingPhaseMeasurement();
  17560. if (!beginFiberMark(fiber, phase)) {
  17561. return;
  17562. }
  17563. currentPhaseFiber = fiber;
  17564. currentPhase = phase;
  17565. }
  17566. }
  17567. function stopPhaseTimer() {
  17568. if (enableUserTimingAPI) {
  17569. if (!supportsUserTiming) {
  17570. return;
  17571. }
  17572. if (currentPhase !== null && currentPhaseFiber !== null) {
  17573. var warning = hasScheduledUpdateInCurrentPhase ? 'Scheduled a cascading update' : null;
  17574. endFiberMark(currentPhaseFiber, currentPhase, warning);
  17575. }
  17576. currentPhase = null;
  17577. currentPhaseFiber = null;
  17578. }
  17579. }
  17580. function startWorkLoopTimer(nextUnitOfWork) {
  17581. if (enableUserTimingAPI) {
  17582. currentFiber = nextUnitOfWork;
  17583. if (!supportsUserTiming) {
  17584. return;
  17585. }
  17586. commitCountInCurrentWorkLoop = 0;
  17587. // This is top level call.
  17588. // Any other measurements are performed within.
  17589. beginMark('(React Tree Reconciliation)');
  17590. // Resume any measurements that were in progress during the last loop.
  17591. resumeTimers();
  17592. }
  17593. }
  17594. function stopWorkLoopTimer(interruptedBy, didCompleteRoot) {
  17595. if (enableUserTimingAPI) {
  17596. if (!supportsUserTiming) {
  17597. return;
  17598. }
  17599. var warning = null;
  17600. if (interruptedBy !== null) {
  17601. if (interruptedBy.tag === HostRoot) {
  17602. warning = 'A top-level update interrupted the previous render';
  17603. } else {
  17604. var componentName = getComponentName(interruptedBy.type) || 'Unknown';
  17605. warning = 'An update to ' + componentName + ' interrupted the previous render';
  17606. }
  17607. } else if (commitCountInCurrentWorkLoop > 1) {
  17608. warning = 'There were cascading updates';
  17609. }
  17610. commitCountInCurrentWorkLoop = 0;
  17611. var label = didCompleteRoot ? '(React Tree Reconciliation: Completed Root)' : '(React Tree Reconciliation: Yielded)';
  17612. // Pause any measurements until the next loop.
  17613. pauseTimers();
  17614. endMark(label, '(React Tree Reconciliation)', warning);
  17615. }
  17616. }
  17617. function startCommitTimer() {
  17618. if (enableUserTimingAPI) {
  17619. if (!supportsUserTiming) {
  17620. return;
  17621. }
  17622. isCommitting = true;
  17623. hasScheduledUpdateInCurrentCommit = false;
  17624. labelsInCurrentCommit.clear();
  17625. beginMark('(Committing Changes)');
  17626. }
  17627. }
  17628. function stopCommitTimer() {
  17629. if (enableUserTimingAPI) {
  17630. if (!supportsUserTiming) {
  17631. return;
  17632. }
  17633. var warning = null;
  17634. if (hasScheduledUpdateInCurrentCommit) {
  17635. warning = 'Lifecycle hook scheduled a cascading update';
  17636. } else if (commitCountInCurrentWorkLoop > 0) {
  17637. warning = 'Caused by a cascading update in earlier commit';
  17638. }
  17639. hasScheduledUpdateInCurrentCommit = false;
  17640. commitCountInCurrentWorkLoop++;
  17641. isCommitting = false;
  17642. labelsInCurrentCommit.clear();
  17643. endMark('(Committing Changes)', '(Committing Changes)', warning);
  17644. }
  17645. }
  17646. function startCommitSnapshotEffectsTimer() {
  17647. if (enableUserTimingAPI) {
  17648. if (!supportsUserTiming) {
  17649. return;
  17650. }
  17651. effectCountInCurrentCommit = 0;
  17652. beginMark('(Committing Snapshot Effects)');
  17653. }
  17654. }
  17655. function stopCommitSnapshotEffectsTimer() {
  17656. if (enableUserTimingAPI) {
  17657. if (!supportsUserTiming) {
  17658. return;
  17659. }
  17660. var count = effectCountInCurrentCommit;
  17661. effectCountInCurrentCommit = 0;
  17662. endMark('(Committing Snapshot Effects: ' + count + ' Total)', '(Committing Snapshot Effects)', null);
  17663. }
  17664. }
  17665. function startCommitHostEffectsTimer() {
  17666. if (enableUserTimingAPI) {
  17667. if (!supportsUserTiming) {
  17668. return;
  17669. }
  17670. effectCountInCurrentCommit = 0;
  17671. beginMark('(Committing Host Effects)');
  17672. }
  17673. }
  17674. function stopCommitHostEffectsTimer() {
  17675. if (enableUserTimingAPI) {
  17676. if (!supportsUserTiming) {
  17677. return;
  17678. }
  17679. var count = effectCountInCurrentCommit;
  17680. effectCountInCurrentCommit = 0;
  17681. endMark('(Committing Host Effects: ' + count + ' Total)', '(Committing Host Effects)', null);
  17682. }
  17683. }
  17684. function startCommitLifeCyclesTimer() {
  17685. if (enableUserTimingAPI) {
  17686. if (!supportsUserTiming) {
  17687. return;
  17688. }
  17689. effectCountInCurrentCommit = 0;
  17690. beginMark('(Calling Lifecycle Methods)');
  17691. }
  17692. }
  17693. function stopCommitLifeCyclesTimer() {
  17694. if (enableUserTimingAPI) {
  17695. if (!supportsUserTiming) {
  17696. return;
  17697. }
  17698. var count = effectCountInCurrentCommit;
  17699. effectCountInCurrentCommit = 0;
  17700. endMark('(Calling Lifecycle Methods: ' + count + ' Total)', '(Calling Lifecycle Methods)', null);
  17701. }
  17702. }
  17703. var valueStack = [];
  17704. var fiberStack = void 0;
  17705. {
  17706. fiberStack = [];
  17707. }
  17708. var index = -1;
  17709. function createCursor(defaultValue) {
  17710. return {
  17711. current: defaultValue
  17712. };
  17713. }
  17714. function pop(cursor, fiber) {
  17715. if (index < 0) {
  17716. {
  17717. warningWithoutStack$1(false, 'Unexpected pop.');
  17718. }
  17719. return;
  17720. }
  17721. {
  17722. if (fiber !== fiberStack[index]) {
  17723. warningWithoutStack$1(false, 'Unexpected Fiber popped.');
  17724. }
  17725. }
  17726. cursor.current = valueStack[index];
  17727. valueStack[index] = null;
  17728. {
  17729. fiberStack[index] = null;
  17730. }
  17731. index--;
  17732. }
  17733. function push(cursor, value, fiber) {
  17734. index++;
  17735. valueStack[index] = cursor.current;
  17736. {
  17737. fiberStack[index] = fiber;
  17738. }
  17739. cursor.current = value;
  17740. }
  17741. var warnedAboutMissingGetChildContext = void 0;
  17742. {
  17743. warnedAboutMissingGetChildContext = {};
  17744. }
  17745. var emptyContextObject = {};
  17746. {
  17747. Object.freeze(emptyContextObject);
  17748. }
  17749. // A cursor to the current merged context object on the stack.
  17750. var contextStackCursor = createCursor(emptyContextObject);
  17751. // A cursor to a boolean indicating whether the context has changed.
  17752. var didPerformWorkStackCursor = createCursor(false);
  17753. // Keep track of the previous context object that was on the stack.
  17754. // We use this to get access to the parent context after we have already
  17755. // pushed the next context provider, and now need to merge their contexts.
  17756. var previousContext = emptyContextObject;
  17757. function getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) {
  17758. if (disableLegacyContext) {
  17759. return emptyContextObject;
  17760. } else {
  17761. if (didPushOwnContextIfProvider && isContextProvider(Component)) {
  17762. // If the fiber is a context provider itself, when we read its context
  17763. // we may have already pushed its own child context on the stack. A context
  17764. // provider should not "see" its own child context. Therefore we read the
  17765. // previous (parent) context instead for a context provider.
  17766. return previousContext;
  17767. }
  17768. return contextStackCursor.current;
  17769. }
  17770. }
  17771. function cacheContext(workInProgress, unmaskedContext, maskedContext) {
  17772. if (disableLegacyContext) {
  17773. return;
  17774. } else {
  17775. var instance = workInProgress.stateNode;
  17776. instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
  17777. instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
  17778. }
  17779. }
  17780. function getMaskedContext(workInProgress, unmaskedContext) {
  17781. if (disableLegacyContext) {
  17782. return emptyContextObject;
  17783. } else {
  17784. var type = workInProgress.type;
  17785. var contextTypes = type.contextTypes;
  17786. if (!contextTypes) {
  17787. return emptyContextObject;
  17788. }
  17789. // Avoid recreating masked context unless unmasked context has changed.
  17790. // Failing to do this will result in unnecessary calls to componentWillReceiveProps.
  17791. // This may trigger infinite loops if componentWillReceiveProps calls setState.
  17792. var instance = workInProgress.stateNode;
  17793. if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) {
  17794. return instance.__reactInternalMemoizedMaskedChildContext;
  17795. }
  17796. var context = {};
  17797. for (var key in contextTypes) {
  17798. context[key] = unmaskedContext[key];
  17799. }
  17800. {
  17801. var name = getComponentName(type) || 'Unknown';
  17802. checkPropTypes(contextTypes, context, 'context', name, getCurrentFiberStackInDev);
  17803. }
  17804. // Cache unmasked context so we can avoid recreating masked context unless necessary.
  17805. // Context is created before the class component is instantiated so check for instance.
  17806. if (instance) {
  17807. cacheContext(workInProgress, unmaskedContext, context);
  17808. }
  17809. return context;
  17810. }
  17811. }
  17812. function hasContextChanged() {
  17813. if (disableLegacyContext) {
  17814. return false;
  17815. } else {
  17816. return didPerformWorkStackCursor.current;
  17817. }
  17818. }
  17819. function isContextProvider(type) {
  17820. if (disableLegacyContext) {
  17821. return false;
  17822. } else {
  17823. var childContextTypes = type.childContextTypes;
  17824. return childContextTypes !== null && childContextTypes !== undefined;
  17825. }
  17826. }
  17827. function popContext(fiber) {
  17828. if (disableLegacyContext) {
  17829. return;
  17830. } else {
  17831. pop(didPerformWorkStackCursor, fiber);
  17832. pop(contextStackCursor, fiber);
  17833. }
  17834. }
  17835. function popTopLevelContextObject(fiber) {
  17836. if (disableLegacyContext) {
  17837. return;
  17838. } else {
  17839. pop(didPerformWorkStackCursor, fiber);
  17840. pop(contextStackCursor, fiber);
  17841. }
  17842. }
  17843. function pushTopLevelContextObject(fiber, context, didChange) {
  17844. if (disableLegacyContext) {
  17845. return;
  17846. } else {
  17847. (function () {
  17848. if (!(contextStackCursor.current === emptyContextObject)) {
  17849. {
  17850. throw ReactError(Error('Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.'));
  17851. }
  17852. }
  17853. })();
  17854. push(contextStackCursor, context, fiber);
  17855. push(didPerformWorkStackCursor, didChange, fiber);
  17856. }
  17857. }
  17858. function processChildContext(fiber, type, parentContext) {
  17859. if (disableLegacyContext) {
  17860. return parentContext;
  17861. } else {
  17862. var instance = fiber.stateNode;
  17863. var childContextTypes = type.childContextTypes;
  17864. // TODO (bvaughn) Replace this behavior with an invariant() in the future.
  17865. // It has only been added in Fiber to match the (unintentional) behavior in Stack.
  17866. if (typeof instance.getChildContext !== 'function') {
  17867. {
  17868. var componentName = getComponentName(type) || 'Unknown';
  17869. if (!warnedAboutMissingGetChildContext[componentName]) {
  17870. warnedAboutMissingGetChildContext[componentName] = true;
  17871. warningWithoutStack$1(false, '%s.childContextTypes is specified but there is no getChildContext() method ' + 'on the instance. You can either define getChildContext() on %s or remove ' + 'childContextTypes from it.', componentName, componentName);
  17872. }
  17873. }
  17874. return parentContext;
  17875. }
  17876. var childContext = void 0;
  17877. {
  17878. setCurrentPhase('getChildContext');
  17879. }
  17880. startPhaseTimer(fiber, 'getChildContext');
  17881. childContext = instance.getChildContext();
  17882. stopPhaseTimer();
  17883. {
  17884. setCurrentPhase(null);
  17885. }
  17886. for (var contextKey in childContext) {
  17887. (function () {
  17888. if (!(contextKey in childContextTypes)) {
  17889. {
  17890. throw ReactError(Error((getComponentName(type) || 'Unknown') + '.getChildContext(): key "' + contextKey + '" is not defined in childContextTypes.'));
  17891. }
  17892. }
  17893. })();
  17894. }
  17895. {
  17896. var name = getComponentName(type) || 'Unknown';
  17897. checkPropTypes(childContextTypes, childContext, 'child context', name,
  17898. // In practice, there is one case in which we won't get a stack. It's when
  17899. // somebody calls unstable_renderSubtreeIntoContainer() and we process
  17900. // context from the parent component instance. The stack will be missing
  17901. // because it's outside of the reconciliation, and so the pointer has not
  17902. // been set. This is rare and doesn't matter. We'll also remove that API.
  17903. getCurrentFiberStackInDev);
  17904. }
  17905. return _assign({}, parentContext, childContext);
  17906. }
  17907. }
  17908. function pushContextProvider(workInProgress) {
  17909. if (disableLegacyContext) {
  17910. return false;
  17911. } else {
  17912. var instance = workInProgress.stateNode;
  17913. // We push the context as early as possible to ensure stack integrity.
  17914. // If the instance does not exist yet, we will push null at first,
  17915. // and replace it on the stack later when invalidating the context.
  17916. var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject;
  17917. // Remember the parent context so we can merge with it later.
  17918. // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates.
  17919. previousContext = contextStackCursor.current;
  17920. push(contextStackCursor, memoizedMergedChildContext, workInProgress);
  17921. push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress);
  17922. return true;
  17923. }
  17924. }
  17925. function invalidateContextProvider(workInProgress, type, didChange) {
  17926. if (disableLegacyContext) {
  17927. return;
  17928. } else {
  17929. var instance = workInProgress.stateNode;
  17930. (function () {
  17931. if (!instance) {
  17932. {
  17933. throw ReactError(Error('Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.'));
  17934. }
  17935. }
  17936. })();
  17937. if (didChange) {
  17938. // Merge parent and own context.
  17939. // Skip this if we're not updating due to sCU.
  17940. // This avoids unnecessarily recomputing memoized values.
  17941. var mergedContext = processChildContext(workInProgress, type, previousContext);
  17942. instance.__reactInternalMemoizedMergedChildContext = mergedContext;
  17943. // Replace the old (or empty) context with the new one.
  17944. // It is important to unwind the context in the reverse order.
  17945. pop(didPerformWorkStackCursor, workInProgress);
  17946. pop(contextStackCursor, workInProgress);
  17947. // Now push the new context and mark that it has changed.
  17948. push(contextStackCursor, mergedContext, workInProgress);
  17949. push(didPerformWorkStackCursor, didChange, workInProgress);
  17950. } else {
  17951. pop(didPerformWorkStackCursor, workInProgress);
  17952. push(didPerformWorkStackCursor, didChange, workInProgress);
  17953. }
  17954. }
  17955. }
  17956. function findCurrentUnmaskedContext(fiber) {
  17957. if (disableLegacyContext) {
  17958. return emptyContextObject;
  17959. } else {
  17960. // Currently this is only used with renderSubtreeIntoContainer; not sure if it
  17961. // makes sense elsewhere
  17962. (function () {
  17963. if (!(isFiberMounted(fiber) && fiber.tag === ClassComponent)) {
  17964. {
  17965. throw ReactError(Error('Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.'));
  17966. }
  17967. }
  17968. })();
  17969. var node = fiber;
  17970. do {
  17971. switch (node.tag) {
  17972. case HostRoot:
  17973. return node.stateNode.context;
  17974. case ClassComponent:
  17975. {
  17976. var Component = node.type;
  17977. if (isContextProvider(Component)) {
  17978. return node.stateNode.__reactInternalMemoizedMergedChildContext;
  17979. }
  17980. break;
  17981. }
  17982. }
  17983. node = node.return;
  17984. } while (node !== null);
  17985. (function () {
  17986. {
  17987. {
  17988. throw ReactError(Error('Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.'));
  17989. }
  17990. }
  17991. })();
  17992. }
  17993. }
  17994. var LegacyRoot = 0;
  17995. var BatchedRoot = 1;
  17996. var ConcurrentRoot = 2;
  17997. // Intentionally not named imports because Rollup would use dynamic dispatch for
  17998. // CommonJS interop named imports.
  17999. var Scheduler_runWithPriority = Scheduler.unstable_runWithPriority;
  18000. var Scheduler_scheduleCallback = Scheduler.unstable_scheduleCallback;
  18001. var Scheduler_cancelCallback = Scheduler.unstable_cancelCallback;
  18002. var Scheduler_shouldYield = Scheduler.unstable_shouldYield;
  18003. var Scheduler_requestPaint = Scheduler.unstable_requestPaint;
  18004. var Scheduler_now = Scheduler.unstable_now;
  18005. var Scheduler_getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel;
  18006. var Scheduler_ImmediatePriority = Scheduler.unstable_ImmediatePriority;
  18007. var Scheduler_UserBlockingPriority = Scheduler.unstable_UserBlockingPriority;
  18008. var Scheduler_NormalPriority = Scheduler.unstable_NormalPriority;
  18009. var Scheduler_LowPriority = Scheduler.unstable_LowPriority;
  18010. var Scheduler_IdlePriority = Scheduler.unstable_IdlePriority;
  18011. if (enableSchedulerTracing) {
  18012. // Provide explicit error message when production+profiling bundle of e.g.
  18013. // react-dom is used with production (non-profiling) bundle of
  18014. // scheduler/tracing
  18015. (function () {
  18016. if (!(tracing.__interactionsRef != null && tracing.__interactionsRef.current != null)) {
  18017. {
  18018. throw ReactError(Error('It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at http://fb.me/react-profiling'));
  18019. }
  18020. }
  18021. })();
  18022. }
  18023. var fakeCallbackNode = {};
  18024. // Except for NoPriority, these correspond to Scheduler priorities. We use
  18025. // ascending numbers so we can compare them like numbers. They start at 90 to
  18026. // avoid clashing with Scheduler's priorities.
  18027. var ImmediatePriority = 99;
  18028. var UserBlockingPriority$2 = 98;
  18029. var NormalPriority = 97;
  18030. var LowPriority = 96;
  18031. var IdlePriority = 95;
  18032. // NoPriority is the absence of priority. Also React-only.
  18033. var NoPriority = 90;
  18034. var shouldYield = Scheduler_shouldYield;
  18035. var requestPaint =
  18036. // Fall back gracefully if we're running an older version of Scheduler.
  18037. Scheduler_requestPaint !== undefined ? Scheduler_requestPaint : function () {};
  18038. var syncQueue = null;
  18039. var immediateQueueCallbackNode = null;
  18040. var isFlushingSyncQueue = false;
  18041. var initialTimeMs = Scheduler_now();
  18042. // If the initial timestamp is reasonably small, use Scheduler's `now` directly.
  18043. // This will be the case for modern browsers that support `performance.now`. In
  18044. // older browsers, Scheduler falls back to `Date.now`, which returns a Unix
  18045. // timestamp. In that case, subtract the module initialization time to simulate
  18046. // the behavior of performance.now and keep our times small enough to fit
  18047. // within 32 bits.
  18048. // TODO: Consider lifting this into Scheduler.
  18049. var now = initialTimeMs < 10000 ? Scheduler_now : function () {
  18050. return Scheduler_now() - initialTimeMs;
  18051. };
  18052. function getCurrentPriorityLevel() {
  18053. switch (Scheduler_getCurrentPriorityLevel()) {
  18054. case Scheduler_ImmediatePriority:
  18055. return ImmediatePriority;
  18056. case Scheduler_UserBlockingPriority:
  18057. return UserBlockingPriority$2;
  18058. case Scheduler_NormalPriority:
  18059. return NormalPriority;
  18060. case Scheduler_LowPriority:
  18061. return LowPriority;
  18062. case Scheduler_IdlePriority:
  18063. return IdlePriority;
  18064. default:
  18065. (function () {
  18066. {
  18067. {
  18068. throw ReactError(Error('Unknown priority level.'));
  18069. }
  18070. }
  18071. })();
  18072. }
  18073. }
  18074. function reactPriorityToSchedulerPriority(reactPriorityLevel) {
  18075. switch (reactPriorityLevel) {
  18076. case ImmediatePriority:
  18077. return Scheduler_ImmediatePriority;
  18078. case UserBlockingPriority$2:
  18079. return Scheduler_UserBlockingPriority;
  18080. case NormalPriority:
  18081. return Scheduler_NormalPriority;
  18082. case LowPriority:
  18083. return Scheduler_LowPriority;
  18084. case IdlePriority:
  18085. return Scheduler_IdlePriority;
  18086. default:
  18087. (function () {
  18088. {
  18089. {
  18090. throw ReactError(Error('Unknown priority level.'));
  18091. }
  18092. }
  18093. })();
  18094. }
  18095. }
  18096. function runWithPriority$2(reactPriorityLevel, fn) {
  18097. var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);
  18098. return Scheduler_runWithPriority(priorityLevel, fn);
  18099. }
  18100. function scheduleCallback(reactPriorityLevel, callback, options) {
  18101. var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);
  18102. return Scheduler_scheduleCallback(priorityLevel, callback, options);
  18103. }
  18104. function scheduleSyncCallback(callback) {
  18105. // Push this callback into an internal queue. We'll flush these either in
  18106. // the next tick, or earlier if something calls `flushSyncCallbackQueue`.
  18107. if (syncQueue === null) {
  18108. syncQueue = [callback];
  18109. // Flush the queue in the next tick, at the earliest.
  18110. immediateQueueCallbackNode = Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueueImpl);
  18111. } else {
  18112. // Push onto existing queue. Don't need to schedule a callback because
  18113. // we already scheduled one when we created the queue.
  18114. syncQueue.push(callback);
  18115. }
  18116. return fakeCallbackNode;
  18117. }
  18118. function cancelCallback(callbackNode) {
  18119. if (callbackNode !== fakeCallbackNode) {
  18120. Scheduler_cancelCallback(callbackNode);
  18121. }
  18122. }
  18123. function flushSyncCallbackQueue() {
  18124. if (immediateQueueCallbackNode !== null) {
  18125. Scheduler_cancelCallback(immediateQueueCallbackNode);
  18126. }
  18127. flushSyncCallbackQueueImpl();
  18128. }
  18129. function flushSyncCallbackQueueImpl() {
  18130. if (!isFlushingSyncQueue && syncQueue !== null) {
  18131. // Prevent re-entrancy.
  18132. isFlushingSyncQueue = true;
  18133. var i = 0;
  18134. try {
  18135. var _isSync = true;
  18136. var queue = syncQueue;
  18137. runWithPriority$2(ImmediatePriority, function () {
  18138. for (; i < queue.length; i++) {
  18139. var callback = queue[i];
  18140. do {
  18141. callback = callback(_isSync);
  18142. } while (callback !== null);
  18143. }
  18144. });
  18145. syncQueue = null;
  18146. } catch (error) {
  18147. // If something throws, leave the remaining callbacks on the queue.
  18148. if (syncQueue !== null) {
  18149. syncQueue = syncQueue.slice(i + 1);
  18150. }
  18151. // Resume flushing in the next tick
  18152. Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueue);
  18153. throw error;
  18154. } finally {
  18155. isFlushingSyncQueue = false;
  18156. }
  18157. }
  18158. }
  18159. var NoMode = 0;
  18160. var StrictMode = 1;
  18161. // TODO: Remove BatchedMode and ConcurrentMode by reading from the root
  18162. // tag instead
  18163. var BatchedMode = 2;
  18164. var ConcurrentMode = 4;
  18165. var ProfileMode = 8;
  18166. // Max 31 bit integer. The max integer size in V8 for 32-bit systems.
  18167. // Math.pow(2, 30) - 1
  18168. // 0b111111111111111111111111111111
  18169. var MAX_SIGNED_31_BIT_INT = 1073741823;
  18170. var NoWork = 0;
  18171. var Never = 1;
  18172. var Sync = MAX_SIGNED_31_BIT_INT;
  18173. var Batched = Sync - 1;
  18174. var UNIT_SIZE = 10;
  18175. var MAGIC_NUMBER_OFFSET = Batched - 1;
  18176. // 1 unit of expiration time represents 10ms.
  18177. function msToExpirationTime(ms) {
  18178. // Always add an offset so that we don't clash with the magic number for NoWork.
  18179. return MAGIC_NUMBER_OFFSET - (ms / UNIT_SIZE | 0);
  18180. }
  18181. function expirationTimeToMs(expirationTime) {
  18182. return (MAGIC_NUMBER_OFFSET - expirationTime) * UNIT_SIZE;
  18183. }
  18184. function ceiling(num, precision) {
  18185. return ((num / precision | 0) + 1) * precision;
  18186. }
  18187. function computeExpirationBucket(currentTime, expirationInMs, bucketSizeMs) {
  18188. return MAGIC_NUMBER_OFFSET - ceiling(MAGIC_NUMBER_OFFSET - currentTime + expirationInMs / UNIT_SIZE, bucketSizeMs / UNIT_SIZE);
  18189. }
  18190. // TODO: This corresponds to Scheduler's NormalPriority, not LowPriority. Update
  18191. // the names to reflect.
  18192. var LOW_PRIORITY_EXPIRATION = 5000;
  18193. var LOW_PRIORITY_BATCH_SIZE = 250;
  18194. function computeAsyncExpiration(currentTime) {
  18195. return computeExpirationBucket(currentTime, LOW_PRIORITY_EXPIRATION, LOW_PRIORITY_BATCH_SIZE);
  18196. }
  18197. function computeSuspenseExpiration(currentTime, timeoutMs) {
  18198. // TODO: Should we warn if timeoutMs is lower than the normal pri expiration time?
  18199. return computeExpirationBucket(currentTime, timeoutMs, LOW_PRIORITY_BATCH_SIZE);
  18200. }
  18201. // We intentionally set a higher expiration time for interactive updates in
  18202. // dev than in production.
  18203. //
  18204. // If the main thread is being blocked so long that you hit the expiration,
  18205. // it's a problem that could be solved with better scheduling.
  18206. //
  18207. // People will be more likely to notice this and fix it with the long
  18208. // expiration time in development.
  18209. //
  18210. // In production we opt for better UX at the risk of masking scheduling
  18211. // problems, by expiring fast.
  18212. var HIGH_PRIORITY_EXPIRATION = 500;
  18213. var HIGH_PRIORITY_BATCH_SIZE = 100;
  18214. function computeInteractiveExpiration(currentTime) {
  18215. return computeExpirationBucket(currentTime, HIGH_PRIORITY_EXPIRATION, HIGH_PRIORITY_BATCH_SIZE);
  18216. }
  18217. function inferPriorityFromExpirationTime(currentTime, expirationTime) {
  18218. if (expirationTime === Sync) {
  18219. return ImmediatePriority;
  18220. }
  18221. if (expirationTime === Never) {
  18222. return IdlePriority;
  18223. }
  18224. var msUntil = expirationTimeToMs(expirationTime) - expirationTimeToMs(currentTime);
  18225. if (msUntil <= 0) {
  18226. return ImmediatePriority;
  18227. }
  18228. if (msUntil <= HIGH_PRIORITY_EXPIRATION + HIGH_PRIORITY_BATCH_SIZE) {
  18229. return UserBlockingPriority$2;
  18230. }
  18231. if (msUntil <= LOW_PRIORITY_EXPIRATION + LOW_PRIORITY_BATCH_SIZE) {
  18232. return NormalPriority;
  18233. }
  18234. // TODO: Handle LowPriority
  18235. // Assume anything lower has idle priority
  18236. return IdlePriority;
  18237. }
  18238. /**
  18239. * Forked from fbjs/warning:
  18240. * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
  18241. *
  18242. * Only change is we use console.warn instead of console.error,
  18243. * and do nothing when 'console' is not supported.
  18244. * This really simplifies the code.
  18245. * ---
  18246. * Similar to invariant but only logs a warning if the condition is not met.
  18247. * This can be used to log issues in development environments in critical
  18248. * paths. Removing the logging code for production environments will keep the
  18249. * same logic and follow the same code paths.
  18250. */
  18251. var lowPriorityWarning = function () {};
  18252. {
  18253. var printWarning = function (format) {
  18254. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  18255. args[_key - 1] = arguments[_key];
  18256. }
  18257. var argIndex = 0;
  18258. var message = 'Warning: ' + format.replace(/%s/g, function () {
  18259. return args[argIndex++];
  18260. });
  18261. if (typeof console !== 'undefined') {
  18262. console.warn(message);
  18263. }
  18264. try {
  18265. // --- Welcome to debugging React ---
  18266. // This error was thrown as a convenience so that you can use this stack
  18267. // to find the callsite that caused this warning to fire.
  18268. throw new Error(message);
  18269. } catch (x) {}
  18270. };
  18271. lowPriorityWarning = function (condition, format) {
  18272. if (format === undefined) {
  18273. throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
  18274. }
  18275. if (!condition) {
  18276. for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
  18277. args[_key2 - 2] = arguments[_key2];
  18278. }
  18279. printWarning.apply(undefined, [format].concat(args));
  18280. }
  18281. };
  18282. }
  18283. var lowPriorityWarning$1 = lowPriorityWarning;
  18284. var ReactStrictModeWarnings = {
  18285. recordUnsafeLifecycleWarnings: function (fiber, instance) {},
  18286. flushPendingUnsafeLifecycleWarnings: function () {},
  18287. recordLegacyContextWarning: function (fiber, instance) {},
  18288. flushLegacyContextWarning: function () {},
  18289. discardPendingWarnings: function () {}
  18290. };
  18291. {
  18292. var findStrictRoot = function (fiber) {
  18293. var maybeStrictRoot = null;
  18294. var node = fiber;
  18295. while (node !== null) {
  18296. if (node.mode & StrictMode) {
  18297. maybeStrictRoot = node;
  18298. }
  18299. node = node.return;
  18300. }
  18301. return maybeStrictRoot;
  18302. };
  18303. var setToSortedString = function (set) {
  18304. var array = [];
  18305. set.forEach(function (value) {
  18306. array.push(value);
  18307. });
  18308. return array.sort().join(', ');
  18309. };
  18310. var pendingComponentWillMountWarnings = [];
  18311. var pendingUNSAFE_ComponentWillMountWarnings = [];
  18312. var pendingComponentWillReceivePropsWarnings = [];
  18313. var pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
  18314. var pendingComponentWillUpdateWarnings = [];
  18315. var pendingUNSAFE_ComponentWillUpdateWarnings = [];
  18316. // Tracks components we have already warned about.
  18317. var didWarnAboutUnsafeLifecycles = new Set();
  18318. ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) {
  18319. // Dedup strategy: Warn once per component.
  18320. if (didWarnAboutUnsafeLifecycles.has(fiber.type)) {
  18321. return;
  18322. }
  18323. if (typeof instance.componentWillMount === 'function' &&
  18324. // Don't warn about react-lifecycles-compat polyfilled components.
  18325. instance.componentWillMount.__suppressDeprecationWarning !== true) {
  18326. pendingComponentWillMountWarnings.push(fiber);
  18327. }
  18328. if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillMount === 'function') {
  18329. pendingUNSAFE_ComponentWillMountWarnings.push(fiber);
  18330. }
  18331. if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
  18332. pendingComponentWillReceivePropsWarnings.push(fiber);
  18333. }
  18334. if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  18335. pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber);
  18336. }
  18337. if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
  18338. pendingComponentWillUpdateWarnings.push(fiber);
  18339. }
  18340. if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillUpdate === 'function') {
  18341. pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber);
  18342. }
  18343. };
  18344. ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () {
  18345. // We do an initial pass to gather component names
  18346. var componentWillMountUniqueNames = new Set();
  18347. if (pendingComponentWillMountWarnings.length > 0) {
  18348. pendingComponentWillMountWarnings.forEach(function (fiber) {
  18349. componentWillMountUniqueNames.add(getComponentName(fiber.type) || 'Component');
  18350. didWarnAboutUnsafeLifecycles.add(fiber.type);
  18351. });
  18352. pendingComponentWillMountWarnings = [];
  18353. }
  18354. var UNSAFE_componentWillMountUniqueNames = new Set();
  18355. if (pendingUNSAFE_ComponentWillMountWarnings.length > 0) {
  18356. pendingUNSAFE_ComponentWillMountWarnings.forEach(function (fiber) {
  18357. UNSAFE_componentWillMountUniqueNames.add(getComponentName(fiber.type) || 'Component');
  18358. didWarnAboutUnsafeLifecycles.add(fiber.type);
  18359. });
  18360. pendingUNSAFE_ComponentWillMountWarnings = [];
  18361. }
  18362. var componentWillReceivePropsUniqueNames = new Set();
  18363. if (pendingComponentWillReceivePropsWarnings.length > 0) {
  18364. pendingComponentWillReceivePropsWarnings.forEach(function (fiber) {
  18365. componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || 'Component');
  18366. didWarnAboutUnsafeLifecycles.add(fiber.type);
  18367. });
  18368. pendingComponentWillReceivePropsWarnings = [];
  18369. }
  18370. var UNSAFE_componentWillReceivePropsUniqueNames = new Set();
  18371. if (pendingUNSAFE_ComponentWillReceivePropsWarnings.length > 0) {
  18372. pendingUNSAFE_ComponentWillReceivePropsWarnings.forEach(function (fiber) {
  18373. UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || 'Component');
  18374. didWarnAboutUnsafeLifecycles.add(fiber.type);
  18375. });
  18376. pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
  18377. }
  18378. var componentWillUpdateUniqueNames = new Set();
  18379. if (pendingComponentWillUpdateWarnings.length > 0) {
  18380. pendingComponentWillUpdateWarnings.forEach(function (fiber) {
  18381. componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || 'Component');
  18382. didWarnAboutUnsafeLifecycles.add(fiber.type);
  18383. });
  18384. pendingComponentWillUpdateWarnings = [];
  18385. }
  18386. var UNSAFE_componentWillUpdateUniqueNames = new Set();
  18387. if (pendingUNSAFE_ComponentWillUpdateWarnings.length > 0) {
  18388. pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function (fiber) {
  18389. UNSAFE_componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || 'Component');
  18390. didWarnAboutUnsafeLifecycles.add(fiber.type);
  18391. });
  18392. pendingUNSAFE_ComponentWillUpdateWarnings = [];
  18393. }
  18394. // Finally, we flush all the warnings
  18395. // UNSAFE_ ones before the deprecated ones, since they'll be 'louder'
  18396. if (UNSAFE_componentWillMountUniqueNames.size > 0) {
  18397. var sortedNames = setToSortedString(UNSAFE_componentWillMountUniqueNames);
  18398. warningWithoutStack$1(false, 'Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. ' + 'See https://fb.me/react-async-component-lifecycle-hooks for details.\n\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\n' + '\nPlease update the following components: %s', sortedNames);
  18399. }
  18400. if (UNSAFE_componentWillReceivePropsUniqueNames.size > 0) {
  18401. var _sortedNames = setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames);
  18402. warningWithoutStack$1(false, 'Using UNSAFE_componentWillReceiveProps in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://fb.me/react-async-component-lifecycle-hooks for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + "* If you're updating state whenever props change, " + 'refactor your code to use memoization techniques or move it to ' + 'static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state\n' + '\nPlease update the following components: %s', _sortedNames);
  18403. }
  18404. if (UNSAFE_componentWillUpdateUniqueNames.size > 0) {
  18405. var _sortedNames2 = setToSortedString(UNSAFE_componentWillUpdateUniqueNames);
  18406. warningWithoutStack$1(false, 'Using UNSAFE_componentWillUpdate in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://fb.me/react-async-component-lifecycle-hooks for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + '\nPlease update the following components: %s', _sortedNames2);
  18407. }
  18408. if (componentWillMountUniqueNames.size > 0) {
  18409. var _sortedNames3 = setToSortedString(componentWillMountUniqueNames);
  18410. lowPriorityWarning$1(false, 'componentWillMount has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-async-component-lifecycle-hooks for details.\n\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\n' + '* Rename componentWillMount to UNSAFE_componentWillMount to suppress ' + 'this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames3);
  18411. }
  18412. if (componentWillReceivePropsUniqueNames.size > 0) {
  18413. var _sortedNames4 = setToSortedString(componentWillReceivePropsUniqueNames);
  18414. lowPriorityWarning$1(false, 'componentWillReceiveProps has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-async-component-lifecycle-hooks for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + "* If you're updating state whenever props change, refactor your " + 'code to use memoization techniques or move it to ' + 'static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state\n' + '* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress ' + 'this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames4);
  18415. }
  18416. if (componentWillUpdateUniqueNames.size > 0) {
  18417. var _sortedNames5 = setToSortedString(componentWillUpdateUniqueNames);
  18418. lowPriorityWarning$1(false, 'componentWillUpdate has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-async-component-lifecycle-hooks for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + '* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress ' + 'this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames5);
  18419. }
  18420. };
  18421. var pendingLegacyContextWarning = new Map();
  18422. // Tracks components we have already warned about.
  18423. var didWarnAboutLegacyContext = new Set();
  18424. ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) {
  18425. var strictRoot = findStrictRoot(fiber);
  18426. if (strictRoot === null) {
  18427. warningWithoutStack$1(false, 'Expected to find a StrictMode component in a strict mode tree. ' + 'This error is likely caused by a bug in React. Please file an issue.');
  18428. return;
  18429. }
  18430. // Dedup strategy: Warn once per component.
  18431. if (didWarnAboutLegacyContext.has(fiber.type)) {
  18432. return;
  18433. }
  18434. var warningsForRoot = pendingLegacyContextWarning.get(strictRoot);
  18435. if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === 'function') {
  18436. if (warningsForRoot === undefined) {
  18437. warningsForRoot = [];
  18438. pendingLegacyContextWarning.set(strictRoot, warningsForRoot);
  18439. }
  18440. warningsForRoot.push(fiber);
  18441. }
  18442. };
  18443. ReactStrictModeWarnings.flushLegacyContextWarning = function () {
  18444. pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) {
  18445. var uniqueNames = new Set();
  18446. fiberArray.forEach(function (fiber) {
  18447. uniqueNames.add(getComponentName(fiber.type) || 'Component');
  18448. didWarnAboutLegacyContext.add(fiber.type);
  18449. });
  18450. var sortedNames = setToSortedString(uniqueNames);
  18451. var strictRootComponentStack = getStackByFiberInDevAndProd(strictRoot);
  18452. warningWithoutStack$1(false, 'Legacy context API has been detected within a strict-mode tree: %s' + '\n\nThe old API will be supported in all 16.x releases, but applications ' + 'using it should migrate to the new version.' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-legacy-context', strictRootComponentStack, sortedNames);
  18453. });
  18454. };
  18455. ReactStrictModeWarnings.discardPendingWarnings = function () {
  18456. pendingComponentWillMountWarnings = [];
  18457. pendingUNSAFE_ComponentWillMountWarnings = [];
  18458. pendingComponentWillReceivePropsWarnings = [];
  18459. pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
  18460. pendingComponentWillUpdateWarnings = [];
  18461. pendingUNSAFE_ComponentWillUpdateWarnings = [];
  18462. pendingLegacyContextWarning = new Map();
  18463. };
  18464. }
  18465. // Resolves type to a family.
  18466. // Used by React Refresh runtime through DevTools Global Hook.
  18467. var resolveFamily = null;
  18468. // $FlowFixMe Flow gets confused by a WeakSet feature check below.
  18469. var failedBoundaries = null;
  18470. var setRefreshHandler = function (handler) {
  18471. {
  18472. resolveFamily = handler;
  18473. }
  18474. };
  18475. function resolveFunctionForHotReloading(type) {
  18476. {
  18477. if (resolveFamily === null) {
  18478. // Hot reloading is disabled.
  18479. return type;
  18480. }
  18481. var family = resolveFamily(type);
  18482. if (family === undefined) {
  18483. return type;
  18484. }
  18485. // Use the latest known implementation.
  18486. return family.current;
  18487. }
  18488. }
  18489. function resolveClassForHotReloading(type) {
  18490. // No implementation differences.
  18491. return resolveFunctionForHotReloading(type);
  18492. }
  18493. function resolveForwardRefForHotReloading(type) {
  18494. {
  18495. if (resolveFamily === null) {
  18496. // Hot reloading is disabled.
  18497. return type;
  18498. }
  18499. var family = resolveFamily(type);
  18500. if (family === undefined) {
  18501. // Check if we're dealing with a real forwardRef. Don't want to crash early.
  18502. if (type !== null && type !== undefined && typeof type.render === 'function') {
  18503. // ForwardRef is special because its resolved .type is an object,
  18504. // but it's possible that we only have its inner render function in the map.
  18505. // If that inner render function is different, we'll build a new forwardRef type.
  18506. var currentRender = resolveFunctionForHotReloading(type.render);
  18507. if (type.render !== currentRender) {
  18508. var syntheticType = {
  18509. $$typeof: REACT_FORWARD_REF_TYPE,
  18510. render: currentRender
  18511. };
  18512. if (type.displayName !== undefined) {
  18513. syntheticType.displayName = type.displayName;
  18514. }
  18515. return syntheticType;
  18516. }
  18517. }
  18518. return type;
  18519. }
  18520. // Use the latest known implementation.
  18521. return family.current;
  18522. }
  18523. }
  18524. function isCompatibleFamilyForHotReloading(fiber, element) {
  18525. {
  18526. if (resolveFamily === null) {
  18527. // Hot reloading is disabled.
  18528. return false;
  18529. }
  18530. var prevType = fiber.elementType;
  18531. var nextType = element.type;
  18532. // If we got here, we know types aren't === equal.
  18533. var needsCompareFamilies = false;
  18534. var $$typeofNextType = typeof nextType === 'object' && nextType !== null ? nextType.$$typeof : null;
  18535. switch (fiber.tag) {
  18536. case ClassComponent:
  18537. {
  18538. if (typeof nextType === 'function') {
  18539. needsCompareFamilies = true;
  18540. }
  18541. break;
  18542. }
  18543. case FunctionComponent:
  18544. {
  18545. if (typeof nextType === 'function') {
  18546. needsCompareFamilies = true;
  18547. } else if ($$typeofNextType === REACT_LAZY_TYPE) {
  18548. // We don't know the inner type yet.
  18549. // We're going to assume that the lazy inner type is stable,
  18550. // and so it is sufficient to avoid reconciling it away.
  18551. // We're not going to unwrap or actually use the new lazy type.
  18552. needsCompareFamilies = true;
  18553. }
  18554. break;
  18555. }
  18556. case ForwardRef:
  18557. {
  18558. if ($$typeofNextType === REACT_FORWARD_REF_TYPE) {
  18559. needsCompareFamilies = true;
  18560. } else if ($$typeofNextType === REACT_LAZY_TYPE) {
  18561. needsCompareFamilies = true;
  18562. }
  18563. break;
  18564. }
  18565. case MemoComponent:
  18566. case SimpleMemoComponent:
  18567. {
  18568. if ($$typeofNextType === REACT_MEMO_TYPE) {
  18569. // TODO: if it was but can no longer be simple,
  18570. // we shouldn't set this.
  18571. needsCompareFamilies = true;
  18572. } else if ($$typeofNextType === REACT_LAZY_TYPE) {
  18573. needsCompareFamilies = true;
  18574. }
  18575. break;
  18576. }
  18577. default:
  18578. return false;
  18579. }
  18580. // Check if both types have a family and it's the same one.
  18581. if (needsCompareFamilies) {
  18582. // Note: memo() and forwardRef() we'll compare outer rather than inner type.
  18583. // This means both of them need to be registered to preserve state.
  18584. // If we unwrapped and compared the inner types for wrappers instead,
  18585. // then we would risk falsely saying two separate memo(Foo)
  18586. // calls are equivalent because they wrap the same Foo function.
  18587. var prevFamily = resolveFamily(prevType);
  18588. if (prevFamily !== undefined && prevFamily === resolveFamily(nextType)) {
  18589. return true;
  18590. }
  18591. }
  18592. return false;
  18593. }
  18594. }
  18595. function markFailedErrorBoundaryForHotReloading(fiber) {
  18596. {
  18597. if (resolveFamily === null) {
  18598. // Hot reloading is disabled.
  18599. return;
  18600. }
  18601. if (typeof WeakSet !== 'function') {
  18602. return;
  18603. }
  18604. if (failedBoundaries === null) {
  18605. failedBoundaries = new WeakSet();
  18606. }
  18607. failedBoundaries.add(fiber);
  18608. }
  18609. }
  18610. var scheduleRefresh = function (root, update) {
  18611. {
  18612. if (resolveFamily === null) {
  18613. // Hot reloading is disabled.
  18614. return;
  18615. }
  18616. var _staleFamilies = update.staleFamilies,
  18617. _updatedFamilies = update.updatedFamilies;
  18618. flushPassiveEffects();
  18619. flushSync(function () {
  18620. scheduleFibersWithFamiliesRecursively(root.current, _updatedFamilies, _staleFamilies);
  18621. });
  18622. }
  18623. };
  18624. var scheduleRoot = function (root, element) {
  18625. {
  18626. if (root.context !== emptyContextObject) {
  18627. // Super edge case: root has a legacy _renderSubtree context
  18628. // but we don't know the parentComponent so we can't pass it.
  18629. // Just ignore. We'll delete this with _renderSubtree code path later.
  18630. return;
  18631. }
  18632. flushPassiveEffects();
  18633. updateContainerAtExpirationTime(element, root, null, Sync, null);
  18634. }
  18635. };
  18636. function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) {
  18637. {
  18638. var alternate = fiber.alternate,
  18639. child = fiber.child,
  18640. sibling = fiber.sibling,
  18641. tag = fiber.tag,
  18642. type = fiber.type;
  18643. var candidateType = null;
  18644. switch (tag) {
  18645. case FunctionComponent:
  18646. case SimpleMemoComponent:
  18647. case ClassComponent:
  18648. candidateType = type;
  18649. break;
  18650. case ForwardRef:
  18651. candidateType = type.render;
  18652. break;
  18653. default:
  18654. break;
  18655. }
  18656. if (resolveFamily === null) {
  18657. throw new Error('Expected resolveFamily to be set during hot reload.');
  18658. }
  18659. var needsRender = false;
  18660. var needsRemount = false;
  18661. if (candidateType !== null) {
  18662. var family = resolveFamily(candidateType);
  18663. if (family !== undefined) {
  18664. if (staleFamilies.has(family)) {
  18665. needsRemount = true;
  18666. } else if (updatedFamilies.has(family)) {
  18667. needsRender = true;
  18668. }
  18669. }
  18670. }
  18671. if (failedBoundaries !== null) {
  18672. if (failedBoundaries.has(fiber) || alternate !== null && failedBoundaries.has(alternate)) {
  18673. needsRemount = true;
  18674. }
  18675. }
  18676. if (needsRemount) {
  18677. fiber._debugNeedsRemount = true;
  18678. }
  18679. if (needsRemount || needsRender) {
  18680. scheduleWork(fiber, Sync);
  18681. }
  18682. if (child !== null && !needsRemount) {
  18683. scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies);
  18684. }
  18685. if (sibling !== null) {
  18686. scheduleFibersWithFamiliesRecursively(sibling, updatedFamilies, staleFamilies);
  18687. }
  18688. }
  18689. }
  18690. var findHostInstancesForRefresh = function (root, families) {
  18691. {
  18692. var hostInstances = new Set();
  18693. var types = new Set(families.map(function (family) {
  18694. return family.current;
  18695. }));
  18696. findHostInstancesForMatchingFibersRecursively(root.current, types, hostInstances);
  18697. return hostInstances;
  18698. }
  18699. };
  18700. function findHostInstancesForMatchingFibersRecursively(fiber, types, hostInstances) {
  18701. {
  18702. var child = fiber.child,
  18703. sibling = fiber.sibling,
  18704. tag = fiber.tag,
  18705. type = fiber.type;
  18706. var candidateType = null;
  18707. switch (tag) {
  18708. case FunctionComponent:
  18709. case SimpleMemoComponent:
  18710. case ClassComponent:
  18711. candidateType = type;
  18712. break;
  18713. case ForwardRef:
  18714. candidateType = type.render;
  18715. break;
  18716. default:
  18717. break;
  18718. }
  18719. var didMatch = false;
  18720. if (candidateType !== null) {
  18721. if (types.has(candidateType)) {
  18722. didMatch = true;
  18723. }
  18724. }
  18725. if (didMatch) {
  18726. // We have a match. This only drills down to the closest host components.
  18727. // There's no need to search deeper because for the purpose of giving
  18728. // visual feedback, "flashing" outermost parent rectangles is sufficient.
  18729. findHostInstancesForFiberShallowly(fiber, hostInstances);
  18730. } else {
  18731. // If there's no match, maybe there will be one further down in the child tree.
  18732. if (child !== null) {
  18733. findHostInstancesForMatchingFibersRecursively(child, types, hostInstances);
  18734. }
  18735. }
  18736. if (sibling !== null) {
  18737. findHostInstancesForMatchingFibersRecursively(sibling, types, hostInstances);
  18738. }
  18739. }
  18740. }
  18741. function findHostInstancesForFiberShallowly(fiber, hostInstances) {
  18742. {
  18743. var foundHostInstances = findChildHostInstancesForFiberShallowly(fiber, hostInstances);
  18744. if (foundHostInstances) {
  18745. return;
  18746. }
  18747. // If we didn't find any host children, fallback to closest host parent.
  18748. var node = fiber;
  18749. while (true) {
  18750. switch (node.tag) {
  18751. case HostComponent:
  18752. hostInstances.add(node.stateNode);
  18753. return;
  18754. case HostPortal:
  18755. hostInstances.add(node.stateNode.containerInfo);
  18756. return;
  18757. case HostRoot:
  18758. hostInstances.add(node.stateNode.containerInfo);
  18759. return;
  18760. }
  18761. if (node.return === null) {
  18762. throw new Error('Expected to reach root first.');
  18763. }
  18764. node = node.return;
  18765. }
  18766. }
  18767. }
  18768. function findChildHostInstancesForFiberShallowly(fiber, hostInstances) {
  18769. {
  18770. var node = fiber;
  18771. var foundHostInstances = false;
  18772. while (true) {
  18773. if (node.tag === HostComponent) {
  18774. // We got a match.
  18775. foundHostInstances = true;
  18776. hostInstances.add(node.stateNode);
  18777. // There may still be more, so keep searching.
  18778. } else if (node.child !== null) {
  18779. node.child.return = node;
  18780. node = node.child;
  18781. continue;
  18782. }
  18783. if (node === fiber) {
  18784. return foundHostInstances;
  18785. }
  18786. while (node.sibling === null) {
  18787. if (node.return === null || node.return === fiber) {
  18788. return foundHostInstances;
  18789. }
  18790. node = node.return;
  18791. }
  18792. node.sibling.return = node.return;
  18793. node = node.sibling;
  18794. }
  18795. }
  18796. return false;
  18797. }
  18798. function resolveDefaultProps(Component, baseProps) {
  18799. if (Component && Component.defaultProps) {
  18800. // Resolve default props. Taken from ReactElement
  18801. var props = _assign({}, baseProps);
  18802. var defaultProps = Component.defaultProps;
  18803. for (var propName in defaultProps) {
  18804. if (props[propName] === undefined) {
  18805. props[propName] = defaultProps[propName];
  18806. }
  18807. }
  18808. return props;
  18809. }
  18810. return baseProps;
  18811. }
  18812. function readLazyComponentType(lazyComponent) {
  18813. var status = lazyComponent._status;
  18814. var result = lazyComponent._result;
  18815. switch (status) {
  18816. case Resolved:
  18817. {
  18818. var Component = result;
  18819. return Component;
  18820. }
  18821. case Rejected:
  18822. {
  18823. var error = result;
  18824. throw error;
  18825. }
  18826. case Pending:
  18827. {
  18828. var thenable = result;
  18829. throw thenable;
  18830. }
  18831. default:
  18832. {
  18833. lazyComponent._status = Pending;
  18834. var ctor = lazyComponent._ctor;
  18835. var _thenable = ctor();
  18836. _thenable.then(function (moduleObject) {
  18837. if (lazyComponent._status === Pending) {
  18838. var defaultExport = moduleObject.default;
  18839. {
  18840. if (defaultExport === undefined) {
  18841. warning$1(false, 'lazy: Expected the result of a dynamic import() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + "const MyComponent = lazy(() => import('./MyComponent'))", moduleObject);
  18842. }
  18843. }
  18844. lazyComponent._status = Resolved;
  18845. lazyComponent._result = defaultExport;
  18846. }
  18847. }, function (error) {
  18848. if (lazyComponent._status === Pending) {
  18849. lazyComponent._status = Rejected;
  18850. lazyComponent._result = error;
  18851. }
  18852. });
  18853. // Handle synchronous thenables.
  18854. switch (lazyComponent._status) {
  18855. case Resolved:
  18856. return lazyComponent._result;
  18857. case Rejected:
  18858. throw lazyComponent._result;
  18859. }
  18860. lazyComponent._result = _thenable;
  18861. throw _thenable;
  18862. }
  18863. }
  18864. }
  18865. var valueCursor = createCursor(null);
  18866. var rendererSigil = void 0;
  18867. {
  18868. // Use this to detect multiple renderers using the same context
  18869. rendererSigil = {};
  18870. }
  18871. var currentlyRenderingFiber = null;
  18872. var lastContextDependency = null;
  18873. var lastContextWithAllBitsObserved = null;
  18874. var isDisallowedContextReadInDEV = false;
  18875. function resetContextDependencies() {
  18876. // This is called right before React yields execution, to ensure `readContext`
  18877. // cannot be called outside the render phase.
  18878. currentlyRenderingFiber = null;
  18879. lastContextDependency = null;
  18880. lastContextWithAllBitsObserved = null;
  18881. {
  18882. isDisallowedContextReadInDEV = false;
  18883. }
  18884. }
  18885. function enterDisallowedContextReadInDEV() {
  18886. {
  18887. isDisallowedContextReadInDEV = true;
  18888. }
  18889. }
  18890. function exitDisallowedContextReadInDEV() {
  18891. {
  18892. isDisallowedContextReadInDEV = false;
  18893. }
  18894. }
  18895. function pushProvider(providerFiber, nextValue) {
  18896. var context = providerFiber.type._context;
  18897. if (isPrimaryRenderer) {
  18898. push(valueCursor, context._currentValue, providerFiber);
  18899. context._currentValue = nextValue;
  18900. {
  18901. !(context._currentRenderer === undefined || context._currentRenderer === null || context._currentRenderer === rendererSigil) ? warningWithoutStack$1(false, 'Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.') : void 0;
  18902. context._currentRenderer = rendererSigil;
  18903. }
  18904. } else {
  18905. push(valueCursor, context._currentValue2, providerFiber);
  18906. context._currentValue2 = nextValue;
  18907. {
  18908. !(context._currentRenderer2 === undefined || context._currentRenderer2 === null || context._currentRenderer2 === rendererSigil) ? warningWithoutStack$1(false, 'Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.') : void 0;
  18909. context._currentRenderer2 = rendererSigil;
  18910. }
  18911. }
  18912. }
  18913. function popProvider(providerFiber) {
  18914. var currentValue = valueCursor.current;
  18915. pop(valueCursor, providerFiber);
  18916. var context = providerFiber.type._context;
  18917. if (isPrimaryRenderer) {
  18918. context._currentValue = currentValue;
  18919. } else {
  18920. context._currentValue2 = currentValue;
  18921. }
  18922. }
  18923. function calculateChangedBits(context, newValue, oldValue) {
  18924. if (is(oldValue, newValue)) {
  18925. // No change
  18926. return 0;
  18927. } else {
  18928. var changedBits = typeof context._calculateChangedBits === 'function' ? context._calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;
  18929. {
  18930. !((changedBits & MAX_SIGNED_31_BIT_INT) === changedBits) ? warning$1(false, 'calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits) : void 0;
  18931. }
  18932. return changedBits | 0;
  18933. }
  18934. }
  18935. function scheduleWorkOnParentPath(parent, renderExpirationTime) {
  18936. // Update the child expiration time of all the ancestors, including
  18937. // the alternates.
  18938. var node = parent;
  18939. while (node !== null) {
  18940. var alternate = node.alternate;
  18941. if (node.childExpirationTime < renderExpirationTime) {
  18942. node.childExpirationTime = renderExpirationTime;
  18943. if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
  18944. alternate.childExpirationTime = renderExpirationTime;
  18945. }
  18946. } else if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
  18947. alternate.childExpirationTime = renderExpirationTime;
  18948. } else {
  18949. // Neither alternate was updated, which means the rest of the
  18950. // ancestor path already has sufficient priority.
  18951. break;
  18952. }
  18953. node = node.return;
  18954. }
  18955. }
  18956. function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) {
  18957. var fiber = workInProgress.child;
  18958. if (fiber !== null) {
  18959. // Set the return pointer of the child to the work-in-progress fiber.
  18960. fiber.return = workInProgress;
  18961. }
  18962. while (fiber !== null) {
  18963. var nextFiber = void 0;
  18964. // Visit this fiber.
  18965. var list = fiber.dependencies;
  18966. if (list !== null) {
  18967. nextFiber = fiber.child;
  18968. var dependency = list.firstContext;
  18969. while (dependency !== null) {
  18970. // Check if the context matches.
  18971. if (dependency.context === context && (dependency.observedBits & changedBits) !== 0) {
  18972. // Match! Schedule an update on this fiber.
  18973. if (fiber.tag === ClassComponent) {
  18974. // Schedule a force update on the work-in-progress.
  18975. var update = createUpdate(renderExpirationTime, null);
  18976. update.tag = ForceUpdate;
  18977. // TODO: Because we don't have a work-in-progress, this will add the
  18978. // update to the current fiber, too, which means it will persist even if
  18979. // this render is thrown away. Since it's a race condition, not sure it's
  18980. // worth fixing.
  18981. enqueueUpdate(fiber, update);
  18982. }
  18983. if (fiber.expirationTime < renderExpirationTime) {
  18984. fiber.expirationTime = renderExpirationTime;
  18985. }
  18986. var alternate = fiber.alternate;
  18987. if (alternate !== null && alternate.expirationTime < renderExpirationTime) {
  18988. alternate.expirationTime = renderExpirationTime;
  18989. }
  18990. scheduleWorkOnParentPath(fiber.return, renderExpirationTime);
  18991. // Mark the expiration time on the list, too.
  18992. if (list.expirationTime < renderExpirationTime) {
  18993. list.expirationTime = renderExpirationTime;
  18994. }
  18995. // Since we already found a match, we can stop traversing the
  18996. // dependency list.
  18997. break;
  18998. }
  18999. dependency = dependency.next;
  19000. }
  19001. } else if (fiber.tag === ContextProvider) {
  19002. // Don't scan deeper if this is a matching provider
  19003. nextFiber = fiber.type === workInProgress.type ? null : fiber.child;
  19004. } else if (enableSuspenseServerRenderer && fiber.tag === DehydratedSuspenseComponent) {
  19005. // If a dehydrated suspense component is in this subtree, we don't know
  19006. // if it will have any context consumers in it. The best we can do is
  19007. // mark it as having updates on its children.
  19008. if (fiber.expirationTime < renderExpirationTime) {
  19009. fiber.expirationTime = renderExpirationTime;
  19010. }
  19011. var _alternate = fiber.alternate;
  19012. if (_alternate !== null && _alternate.expirationTime < renderExpirationTime) {
  19013. _alternate.expirationTime = renderExpirationTime;
  19014. }
  19015. // This is intentionally passing this fiber as the parent
  19016. // because we want to schedule this fiber as having work
  19017. // on its children. We'll use the childExpirationTime on
  19018. // this fiber to indicate that a context has changed.
  19019. scheduleWorkOnParentPath(fiber, renderExpirationTime);
  19020. nextFiber = fiber.sibling;
  19021. } else {
  19022. // Traverse down.
  19023. nextFiber = fiber.child;
  19024. }
  19025. if (nextFiber !== null) {
  19026. // Set the return pointer of the child to the work-in-progress fiber.
  19027. nextFiber.return = fiber;
  19028. } else {
  19029. // No child. Traverse to next sibling.
  19030. nextFiber = fiber;
  19031. while (nextFiber !== null) {
  19032. if (nextFiber === workInProgress) {
  19033. // We're back to the root of this subtree. Exit.
  19034. nextFiber = null;
  19035. break;
  19036. }
  19037. var sibling = nextFiber.sibling;
  19038. if (sibling !== null) {
  19039. // Set the return pointer of the sibling to the work-in-progress fiber.
  19040. sibling.return = nextFiber.return;
  19041. nextFiber = sibling;
  19042. break;
  19043. }
  19044. // No more siblings. Traverse up.
  19045. nextFiber = nextFiber.return;
  19046. }
  19047. }
  19048. fiber = nextFiber;
  19049. }
  19050. }
  19051. function prepareToReadContext(workInProgress, renderExpirationTime) {
  19052. currentlyRenderingFiber = workInProgress;
  19053. lastContextDependency = null;
  19054. lastContextWithAllBitsObserved = null;
  19055. var dependencies = workInProgress.dependencies;
  19056. if (dependencies !== null) {
  19057. var firstContext = dependencies.firstContext;
  19058. if (firstContext !== null) {
  19059. if (dependencies.expirationTime >= renderExpirationTime) {
  19060. // Context list has a pending update. Mark that this fiber performed work.
  19061. markWorkInProgressReceivedUpdate();
  19062. }
  19063. // Reset the work-in-progress list
  19064. dependencies.firstContext = null;
  19065. }
  19066. }
  19067. }
  19068. function readContext(context, observedBits) {
  19069. {
  19070. // This warning would fire if you read context inside a Hook like useMemo.
  19071. // Unlike the class check below, it's not enforced in production for perf.
  19072. !!isDisallowedContextReadInDEV ? warning$1(false, '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().') : void 0;
  19073. }
  19074. if (lastContextWithAllBitsObserved === context) {
  19075. // Nothing to do. We already observe everything in this context.
  19076. } else if (observedBits === false || observedBits === 0) {
  19077. // Do not observe any updates.
  19078. } else {
  19079. var resolvedObservedBits = void 0; // Avoid deopting on observable arguments or heterogeneous types.
  19080. if (typeof observedBits !== 'number' || observedBits === MAX_SIGNED_31_BIT_INT) {
  19081. // Observe all updates.
  19082. lastContextWithAllBitsObserved = context;
  19083. resolvedObservedBits = MAX_SIGNED_31_BIT_INT;
  19084. } else {
  19085. resolvedObservedBits = observedBits;
  19086. }
  19087. var contextItem = {
  19088. context: context,
  19089. observedBits: resolvedObservedBits,
  19090. next: null
  19091. };
  19092. if (lastContextDependency === null) {
  19093. (function () {
  19094. if (!(currentlyRenderingFiber !== null)) {
  19095. {
  19096. throw ReactError(Error('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().'));
  19097. }
  19098. }
  19099. })();
  19100. // This is the first dependency for this component. Create a new list.
  19101. lastContextDependency = contextItem;
  19102. currentlyRenderingFiber.dependencies = {
  19103. expirationTime: NoWork,
  19104. firstContext: contextItem,
  19105. responders: null
  19106. };
  19107. } else {
  19108. // Append a new context item.
  19109. lastContextDependency = lastContextDependency.next = contextItem;
  19110. }
  19111. }
  19112. return isPrimaryRenderer ? context._currentValue : context._currentValue2;
  19113. }
  19114. // UpdateQueue is a linked list of prioritized updates.
  19115. //
  19116. // Like fibers, update queues come in pairs: a current queue, which represents
  19117. // the visible state of the screen, and a work-in-progress queue, which can be
  19118. // mutated and processed asynchronously before it is committed — a form of
  19119. // double buffering. If a work-in-progress render is discarded before finishing,
  19120. // we create a new work-in-progress by cloning the current queue.
  19121. //
  19122. // Both queues share a persistent, singly-linked list structure. To schedule an
  19123. // update, we append it to the end of both queues. Each queue maintains a
  19124. // pointer to first update in the persistent list that hasn't been processed.
  19125. // The work-in-progress pointer always has a position equal to or greater than
  19126. // the current queue, since we always work on that one. The current queue's
  19127. // pointer is only updated during the commit phase, when we swap in the
  19128. // work-in-progress.
  19129. //
  19130. // For example:
  19131. //
  19132. // Current pointer: A - B - C - D - E - F
  19133. // Work-in-progress pointer: D - E - F
  19134. // ^
  19135. // The work-in-progress queue has
  19136. // processed more updates than current.
  19137. //
  19138. // The reason we append to both queues is because otherwise we might drop
  19139. // updates without ever processing them. For example, if we only add updates to
  19140. // the work-in-progress queue, some updates could be lost whenever a work-in
  19141. // -progress render restarts by cloning from current. Similarly, if we only add
  19142. // updates to the current queue, the updates will be lost whenever an already
  19143. // in-progress queue commits and swaps with the current queue. However, by
  19144. // adding to both queues, we guarantee that the update will be part of the next
  19145. // work-in-progress. (And because the work-in-progress queue becomes the
  19146. // current queue once it commits, there's no danger of applying the same
  19147. // update twice.)
  19148. //
  19149. // Prioritization
  19150. // --------------
  19151. //
  19152. // Updates are not sorted by priority, but by insertion; new updates are always
  19153. // appended to the end of the list.
  19154. //
  19155. // The priority is still important, though. When processing the update queue
  19156. // during the render phase, only the updates with sufficient priority are
  19157. // included in the result. If we skip an update because it has insufficient
  19158. // priority, it remains in the queue to be processed later, during a lower
  19159. // priority render. Crucially, all updates subsequent to a skipped update also
  19160. // remain in the queue *regardless of their priority*. That means high priority
  19161. // updates are sometimes processed twice, at two separate priorities. We also
  19162. // keep track of a base state, that represents the state before the first
  19163. // update in the queue is applied.
  19164. //
  19165. // For example:
  19166. //
  19167. // Given a base state of '', and the following queue of updates
  19168. //
  19169. // A1 - B2 - C1 - D2
  19170. //
  19171. // where the number indicates the priority, and the update is applied to the
  19172. // previous state by appending a letter, React will process these updates as
  19173. // two separate renders, one per distinct priority level:
  19174. //
  19175. // First render, at priority 1:
  19176. // Base state: ''
  19177. // Updates: [A1, C1]
  19178. // Result state: 'AC'
  19179. //
  19180. // Second render, at priority 2:
  19181. // Base state: 'A' <- The base state does not include C1,
  19182. // because B2 was skipped.
  19183. // Updates: [B2, C1, D2] <- C1 was rebased on top of B2
  19184. // Result state: 'ABCD'
  19185. //
  19186. // Because we process updates in insertion order, and rebase high priority
  19187. // updates when preceding updates are skipped, the final result is deterministic
  19188. // regardless of priority. Intermediate state may vary according to system
  19189. // resources, but the final state is always the same.
  19190. var UpdateState = 0;
  19191. var ReplaceState = 1;
  19192. var ForceUpdate = 2;
  19193. var CaptureUpdate = 3;
  19194. // Global state that is reset at the beginning of calling `processUpdateQueue`.
  19195. // It should only be read right after calling `processUpdateQueue`, via
  19196. // `checkHasForceUpdateAfterProcessing`.
  19197. var hasForceUpdate = false;
  19198. var didWarnUpdateInsideUpdate = void 0;
  19199. var currentlyProcessingQueue = void 0;
  19200. {
  19201. didWarnUpdateInsideUpdate = false;
  19202. currentlyProcessingQueue = null;
  19203. }
  19204. function createUpdateQueue(baseState) {
  19205. var queue = {
  19206. baseState: baseState,
  19207. firstUpdate: null,
  19208. lastUpdate: null,
  19209. firstCapturedUpdate: null,
  19210. lastCapturedUpdate: null,
  19211. firstEffect: null,
  19212. lastEffect: null,
  19213. firstCapturedEffect: null,
  19214. lastCapturedEffect: null
  19215. };
  19216. return queue;
  19217. }
  19218. function cloneUpdateQueue(currentQueue) {
  19219. var queue = {
  19220. baseState: currentQueue.baseState,
  19221. firstUpdate: currentQueue.firstUpdate,
  19222. lastUpdate: currentQueue.lastUpdate,
  19223. // TODO: With resuming, if we bail out and resuse the child tree, we should
  19224. // keep these effects.
  19225. firstCapturedUpdate: null,
  19226. lastCapturedUpdate: null,
  19227. firstEffect: null,
  19228. lastEffect: null,
  19229. firstCapturedEffect: null,
  19230. lastCapturedEffect: null
  19231. };
  19232. return queue;
  19233. }
  19234. function createUpdate(expirationTime, suspenseConfig) {
  19235. var update = {
  19236. expirationTime: expirationTime,
  19237. suspenseConfig: suspenseConfig,
  19238. tag: UpdateState,
  19239. payload: null,
  19240. callback: null,
  19241. next: null,
  19242. nextEffect: null
  19243. };
  19244. {
  19245. update.priority = getCurrentPriorityLevel();
  19246. }
  19247. return update;
  19248. }
  19249. function appendUpdateToQueue(queue, update) {
  19250. // Append the update to the end of the list.
  19251. if (queue.lastUpdate === null) {
  19252. // Queue is empty
  19253. queue.firstUpdate = queue.lastUpdate = update;
  19254. } else {
  19255. queue.lastUpdate.next = update;
  19256. queue.lastUpdate = update;
  19257. }
  19258. }
  19259. function enqueueUpdate(fiber, update) {
  19260. // Update queues are created lazily.
  19261. var alternate = fiber.alternate;
  19262. var queue1 = void 0;
  19263. var queue2 = void 0;
  19264. if (alternate === null) {
  19265. // There's only one fiber.
  19266. queue1 = fiber.updateQueue;
  19267. queue2 = null;
  19268. if (queue1 === null) {
  19269. queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState);
  19270. }
  19271. } else {
  19272. // There are two owners.
  19273. queue1 = fiber.updateQueue;
  19274. queue2 = alternate.updateQueue;
  19275. if (queue1 === null) {
  19276. if (queue2 === null) {
  19277. // Neither fiber has an update queue. Create new ones.
  19278. queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState);
  19279. queue2 = alternate.updateQueue = createUpdateQueue(alternate.memoizedState);
  19280. } else {
  19281. // Only one fiber has an update queue. Clone to create a new one.
  19282. queue1 = fiber.updateQueue = cloneUpdateQueue(queue2);
  19283. }
  19284. } else {
  19285. if (queue2 === null) {
  19286. // Only one fiber has an update queue. Clone to create a new one.
  19287. queue2 = alternate.updateQueue = cloneUpdateQueue(queue1);
  19288. } else {
  19289. // Both owners have an update queue.
  19290. }
  19291. }
  19292. }
  19293. if (queue2 === null || queue1 === queue2) {
  19294. // There's only a single queue.
  19295. appendUpdateToQueue(queue1, update);
  19296. } else {
  19297. // There are two queues. We need to append the update to both queues,
  19298. // while accounting for the persistent structure of the list — we don't
  19299. // want the same update to be added multiple times.
  19300. if (queue1.lastUpdate === null || queue2.lastUpdate === null) {
  19301. // One of the queues is not empty. We must add the update to both queues.
  19302. appendUpdateToQueue(queue1, update);
  19303. appendUpdateToQueue(queue2, update);
  19304. } else {
  19305. // Both queues are non-empty. The last update is the same in both lists,
  19306. // because of structural sharing. So, only append to one of the lists.
  19307. appendUpdateToQueue(queue1, update);
  19308. // But we still need to update the `lastUpdate` pointer of queue2.
  19309. queue2.lastUpdate = update;
  19310. }
  19311. }
  19312. {
  19313. if (fiber.tag === ClassComponent && (currentlyProcessingQueue === queue1 || queue2 !== null && currentlyProcessingQueue === queue2) && !didWarnUpdateInsideUpdate) {
  19314. warningWithoutStack$1(false, 'An update (setState, replaceState, or forceUpdate) was scheduled ' + 'from inside an update function. Update functions should be pure, ' + 'with zero side-effects. Consider using componentDidUpdate or a ' + 'callback.');
  19315. didWarnUpdateInsideUpdate = true;
  19316. }
  19317. }
  19318. }
  19319. function enqueueCapturedUpdate(workInProgress, update) {
  19320. // Captured updates go into a separate list, and only on the work-in-
  19321. // progress queue.
  19322. var workInProgressQueue = workInProgress.updateQueue;
  19323. if (workInProgressQueue === null) {
  19324. workInProgressQueue = workInProgress.updateQueue = createUpdateQueue(workInProgress.memoizedState);
  19325. } else {
  19326. // TODO: I put this here rather than createWorkInProgress so that we don't
  19327. // clone the queue unnecessarily. There's probably a better way to
  19328. // structure this.
  19329. workInProgressQueue = ensureWorkInProgressQueueIsAClone(workInProgress, workInProgressQueue);
  19330. }
  19331. // Append the update to the end of the list.
  19332. if (workInProgressQueue.lastCapturedUpdate === null) {
  19333. // This is the first render phase update
  19334. workInProgressQueue.firstCapturedUpdate = workInProgressQueue.lastCapturedUpdate = update;
  19335. } else {
  19336. workInProgressQueue.lastCapturedUpdate.next = update;
  19337. workInProgressQueue.lastCapturedUpdate = update;
  19338. }
  19339. }
  19340. function ensureWorkInProgressQueueIsAClone(workInProgress, queue) {
  19341. var current = workInProgress.alternate;
  19342. if (current !== null) {
  19343. // If the work-in-progress queue is equal to the current queue,
  19344. // we need to clone it first.
  19345. if (queue === current.updateQueue) {
  19346. queue = workInProgress.updateQueue = cloneUpdateQueue(queue);
  19347. }
  19348. }
  19349. return queue;
  19350. }
  19351. function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) {
  19352. switch (update.tag) {
  19353. case ReplaceState:
  19354. {
  19355. var _payload = update.payload;
  19356. if (typeof _payload === 'function') {
  19357. // Updater function
  19358. {
  19359. enterDisallowedContextReadInDEV();
  19360. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  19361. _payload.call(instance, prevState, nextProps);
  19362. }
  19363. }
  19364. var nextState = _payload.call(instance, prevState, nextProps);
  19365. {
  19366. exitDisallowedContextReadInDEV();
  19367. }
  19368. return nextState;
  19369. }
  19370. // State object
  19371. return _payload;
  19372. }
  19373. case CaptureUpdate:
  19374. {
  19375. workInProgress.effectTag = workInProgress.effectTag & ~ShouldCapture | DidCapture;
  19376. }
  19377. // Intentional fallthrough
  19378. case UpdateState:
  19379. {
  19380. var _payload2 = update.payload;
  19381. var partialState = void 0;
  19382. if (typeof _payload2 === 'function') {
  19383. // Updater function
  19384. {
  19385. enterDisallowedContextReadInDEV();
  19386. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  19387. _payload2.call(instance, prevState, nextProps);
  19388. }
  19389. }
  19390. partialState = _payload2.call(instance, prevState, nextProps);
  19391. {
  19392. exitDisallowedContextReadInDEV();
  19393. }
  19394. } else {
  19395. // Partial state object
  19396. partialState = _payload2;
  19397. }
  19398. if (partialState === null || partialState === undefined) {
  19399. // Null and undefined are treated as no-ops.
  19400. return prevState;
  19401. }
  19402. // Merge the partial state and the previous state.
  19403. return _assign({}, prevState, partialState);
  19404. }
  19405. case ForceUpdate:
  19406. {
  19407. hasForceUpdate = true;
  19408. return prevState;
  19409. }
  19410. }
  19411. return prevState;
  19412. }
  19413. function processUpdateQueue(workInProgress, queue, props, instance, renderExpirationTime) {
  19414. hasForceUpdate = false;
  19415. queue = ensureWorkInProgressQueueIsAClone(workInProgress, queue);
  19416. {
  19417. currentlyProcessingQueue = queue;
  19418. }
  19419. // These values may change as we process the queue.
  19420. var newBaseState = queue.baseState;
  19421. var newFirstUpdate = null;
  19422. var newExpirationTime = NoWork;
  19423. // Iterate through the list of updates to compute the result.
  19424. var update = queue.firstUpdate;
  19425. var resultState = newBaseState;
  19426. while (update !== null) {
  19427. var updateExpirationTime = update.expirationTime;
  19428. if (updateExpirationTime < renderExpirationTime) {
  19429. // This update does not have sufficient priority. Skip it.
  19430. if (newFirstUpdate === null) {
  19431. // This is the first skipped update. It will be the first update in
  19432. // the new list.
  19433. newFirstUpdate = update;
  19434. // Since this is the first update that was skipped, the current result
  19435. // is the new base state.
  19436. newBaseState = resultState;
  19437. }
  19438. // Since this update will remain in the list, update the remaining
  19439. // expiration time.
  19440. if (newExpirationTime < updateExpirationTime) {
  19441. newExpirationTime = updateExpirationTime;
  19442. }
  19443. } else {
  19444. // This update does have sufficient priority.
  19445. // Mark the event time of this update as relevant to this render pass.
  19446. // TODO: This should ideally use the true event time of this update rather than
  19447. // its priority which is a derived and not reverseable value.
  19448. // TODO: We should skip this update if it was already committed but currently
  19449. // we have no way of detecting the difference between a committed and suspended
  19450. // update here.
  19451. markRenderEventTimeAndConfig(updateExpirationTime, update.suspenseConfig);
  19452. // Process it and compute a new result.
  19453. resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance);
  19454. var _callback = update.callback;
  19455. if (_callback !== null) {
  19456. workInProgress.effectTag |= Callback;
  19457. // Set this to null, in case it was mutated during an aborted render.
  19458. update.nextEffect = null;
  19459. if (queue.lastEffect === null) {
  19460. queue.firstEffect = queue.lastEffect = update;
  19461. } else {
  19462. queue.lastEffect.nextEffect = update;
  19463. queue.lastEffect = update;
  19464. }
  19465. }
  19466. }
  19467. // Continue to the next update.
  19468. update = update.next;
  19469. }
  19470. // Separately, iterate though the list of captured updates.
  19471. var newFirstCapturedUpdate = null;
  19472. update = queue.firstCapturedUpdate;
  19473. while (update !== null) {
  19474. var _updateExpirationTime = update.expirationTime;
  19475. if (_updateExpirationTime < renderExpirationTime) {
  19476. // This update does not have sufficient priority. Skip it.
  19477. if (newFirstCapturedUpdate === null) {
  19478. // This is the first skipped captured update. It will be the first
  19479. // update in the new list.
  19480. newFirstCapturedUpdate = update;
  19481. // If this is the first update that was skipped, the current result is
  19482. // the new base state.
  19483. if (newFirstUpdate === null) {
  19484. newBaseState = resultState;
  19485. }
  19486. }
  19487. // Since this update will remain in the list, update the remaining
  19488. // expiration time.
  19489. if (newExpirationTime < _updateExpirationTime) {
  19490. newExpirationTime = _updateExpirationTime;
  19491. }
  19492. } else {
  19493. // This update does have sufficient priority. Process it and compute
  19494. // a new result.
  19495. resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance);
  19496. var _callback2 = update.callback;
  19497. if (_callback2 !== null) {
  19498. workInProgress.effectTag |= Callback;
  19499. // Set this to null, in case it was mutated during an aborted render.
  19500. update.nextEffect = null;
  19501. if (queue.lastCapturedEffect === null) {
  19502. queue.firstCapturedEffect = queue.lastCapturedEffect = update;
  19503. } else {
  19504. queue.lastCapturedEffect.nextEffect = update;
  19505. queue.lastCapturedEffect = update;
  19506. }
  19507. }
  19508. }
  19509. update = update.next;
  19510. }
  19511. if (newFirstUpdate === null) {
  19512. queue.lastUpdate = null;
  19513. }
  19514. if (newFirstCapturedUpdate === null) {
  19515. queue.lastCapturedUpdate = null;
  19516. } else {
  19517. workInProgress.effectTag |= Callback;
  19518. }
  19519. if (newFirstUpdate === null && newFirstCapturedUpdate === null) {
  19520. // We processed every update, without skipping. That means the new base
  19521. // state is the same as the result state.
  19522. newBaseState = resultState;
  19523. }
  19524. queue.baseState = newBaseState;
  19525. queue.firstUpdate = newFirstUpdate;
  19526. queue.firstCapturedUpdate = newFirstCapturedUpdate;
  19527. // Set the remaining expiration time to be whatever is remaining in the queue.
  19528. // This should be fine because the only two other things that contribute to
  19529. // expiration time are props and context. We're already in the middle of the
  19530. // begin phase by the time we start processing the queue, so we've already
  19531. // dealt with the props. Context in components that specify
  19532. // shouldComponentUpdate is tricky; but we'll have to account for
  19533. // that regardless.
  19534. workInProgress.expirationTime = newExpirationTime;
  19535. workInProgress.memoizedState = resultState;
  19536. {
  19537. currentlyProcessingQueue = null;
  19538. }
  19539. }
  19540. function callCallback(callback, context) {
  19541. (function () {
  19542. if (!(typeof callback === 'function')) {
  19543. {
  19544. throw ReactError(Error('Invalid argument passed as callback. Expected a function. Instead received: ' + callback));
  19545. }
  19546. }
  19547. })();
  19548. callback.call(context);
  19549. }
  19550. function resetHasForceUpdateBeforeProcessing() {
  19551. hasForceUpdate = false;
  19552. }
  19553. function checkHasForceUpdateAfterProcessing() {
  19554. return hasForceUpdate;
  19555. }
  19556. function commitUpdateQueue(finishedWork, finishedQueue, instance, renderExpirationTime) {
  19557. // If the finished render included captured updates, and there are still
  19558. // lower priority updates left over, we need to keep the captured updates
  19559. // in the queue so that they are rebased and not dropped once we process the
  19560. // queue again at the lower priority.
  19561. if (finishedQueue.firstCapturedUpdate !== null) {
  19562. // Join the captured update list to the end of the normal list.
  19563. if (finishedQueue.lastUpdate !== null) {
  19564. finishedQueue.lastUpdate.next = finishedQueue.firstCapturedUpdate;
  19565. finishedQueue.lastUpdate = finishedQueue.lastCapturedUpdate;
  19566. }
  19567. // Clear the list of captured updates.
  19568. finishedQueue.firstCapturedUpdate = finishedQueue.lastCapturedUpdate = null;
  19569. }
  19570. // Commit the effects
  19571. commitUpdateEffects(finishedQueue.firstEffect, instance);
  19572. finishedQueue.firstEffect = finishedQueue.lastEffect = null;
  19573. commitUpdateEffects(finishedQueue.firstCapturedEffect, instance);
  19574. finishedQueue.firstCapturedEffect = finishedQueue.lastCapturedEffect = null;
  19575. }
  19576. function commitUpdateEffects(effect, instance) {
  19577. while (effect !== null) {
  19578. var _callback3 = effect.callback;
  19579. if (_callback3 !== null) {
  19580. effect.callback = null;
  19581. callCallback(_callback3, instance);
  19582. }
  19583. effect = effect.nextEffect;
  19584. }
  19585. }
  19586. var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
  19587. function requestCurrentSuspenseConfig() {
  19588. return ReactCurrentBatchConfig.suspense;
  19589. }
  19590. var fakeInternalInstance = {};
  19591. var isArray$1 = Array.isArray;
  19592. // React.Component uses a shared frozen object by default.
  19593. // We'll use it to determine whether we need to initialize legacy refs.
  19594. var emptyRefsObject = new React.Component().refs;
  19595. var didWarnAboutStateAssignmentForComponent = void 0;
  19596. var didWarnAboutUninitializedState = void 0;
  19597. var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = void 0;
  19598. var didWarnAboutLegacyLifecyclesAndDerivedState = void 0;
  19599. var didWarnAboutUndefinedDerivedState = void 0;
  19600. var warnOnUndefinedDerivedState = void 0;
  19601. var warnOnInvalidCallback$1 = void 0;
  19602. var didWarnAboutDirectlyAssigningPropsToState = void 0;
  19603. var didWarnAboutContextTypeAndContextTypes = void 0;
  19604. var didWarnAboutInvalidateContextType = void 0;
  19605. {
  19606. didWarnAboutStateAssignmentForComponent = new Set();
  19607. didWarnAboutUninitializedState = new Set();
  19608. didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();
  19609. didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
  19610. didWarnAboutDirectlyAssigningPropsToState = new Set();
  19611. didWarnAboutUndefinedDerivedState = new Set();
  19612. didWarnAboutContextTypeAndContextTypes = new Set();
  19613. didWarnAboutInvalidateContextType = new Set();
  19614. var didWarnOnInvalidCallback = new Set();
  19615. warnOnInvalidCallback$1 = function (callback, callerName) {
  19616. if (callback === null || typeof callback === 'function') {
  19617. return;
  19618. }
  19619. var key = callerName + '_' + callback;
  19620. if (!didWarnOnInvalidCallback.has(key)) {
  19621. didWarnOnInvalidCallback.add(key);
  19622. warningWithoutStack$1(false, '%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
  19623. }
  19624. };
  19625. warnOnUndefinedDerivedState = function (type, partialState) {
  19626. if (partialState === undefined) {
  19627. var componentName = getComponentName(type) || 'Component';
  19628. if (!didWarnAboutUndefinedDerivedState.has(componentName)) {
  19629. didWarnAboutUndefinedDerivedState.add(componentName);
  19630. warningWithoutStack$1(false, '%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName);
  19631. }
  19632. }
  19633. };
  19634. // This is so gross but it's at least non-critical and can be removed if
  19635. // it causes problems. This is meant to give a nicer error message for
  19636. // ReactDOM15.unstable_renderSubtreeIntoContainer(reactDOM16Component,
  19637. // ...)) which otherwise throws a "_processChildContext is not a function"
  19638. // exception.
  19639. Object.defineProperty(fakeInternalInstance, '_processChildContext', {
  19640. enumerable: false,
  19641. value: function () {
  19642. (function () {
  19643. {
  19644. {
  19645. throw ReactError(Error('_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn\'t supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).'));
  19646. }
  19647. }
  19648. })();
  19649. }
  19650. });
  19651. Object.freeze(fakeInternalInstance);
  19652. }
  19653. function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) {
  19654. var prevState = workInProgress.memoizedState;
  19655. {
  19656. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  19657. // Invoke the function an extra time to help detect side-effects.
  19658. getDerivedStateFromProps(nextProps, prevState);
  19659. }
  19660. }
  19661. var partialState = getDerivedStateFromProps(nextProps, prevState);
  19662. {
  19663. warnOnUndefinedDerivedState(ctor, partialState);
  19664. }
  19665. // Merge the partial state and the previous state.
  19666. var memoizedState = partialState === null || partialState === undefined ? prevState : _assign({}, prevState, partialState);
  19667. workInProgress.memoizedState = memoizedState;
  19668. // Once the update queue is empty, persist the derived state onto the
  19669. // base state.
  19670. var updateQueue = workInProgress.updateQueue;
  19671. if (updateQueue !== null && workInProgress.expirationTime === NoWork) {
  19672. updateQueue.baseState = memoizedState;
  19673. }
  19674. }
  19675. var classComponentUpdater = {
  19676. isMounted: isMounted,
  19677. enqueueSetState: function (inst, payload, callback) {
  19678. var fiber = get(inst);
  19679. var currentTime = requestCurrentTime();
  19680. var suspenseConfig = requestCurrentSuspenseConfig();
  19681. var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
  19682. var update = createUpdate(expirationTime, suspenseConfig);
  19683. update.payload = payload;
  19684. if (callback !== undefined && callback !== null) {
  19685. {
  19686. warnOnInvalidCallback$1(callback, 'setState');
  19687. }
  19688. update.callback = callback;
  19689. }
  19690. if (revertPassiveEffectsChange) {
  19691. flushPassiveEffects();
  19692. }
  19693. enqueueUpdate(fiber, update);
  19694. scheduleWork(fiber, expirationTime);
  19695. },
  19696. enqueueReplaceState: function (inst, payload, callback) {
  19697. var fiber = get(inst);
  19698. var currentTime = requestCurrentTime();
  19699. var suspenseConfig = requestCurrentSuspenseConfig();
  19700. var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
  19701. var update = createUpdate(expirationTime, suspenseConfig);
  19702. update.tag = ReplaceState;
  19703. update.payload = payload;
  19704. if (callback !== undefined && callback !== null) {
  19705. {
  19706. warnOnInvalidCallback$1(callback, 'replaceState');
  19707. }
  19708. update.callback = callback;
  19709. }
  19710. if (revertPassiveEffectsChange) {
  19711. flushPassiveEffects();
  19712. }
  19713. enqueueUpdate(fiber, update);
  19714. scheduleWork(fiber, expirationTime);
  19715. },
  19716. enqueueForceUpdate: function (inst, callback) {
  19717. var fiber = get(inst);
  19718. var currentTime = requestCurrentTime();
  19719. var suspenseConfig = requestCurrentSuspenseConfig();
  19720. var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
  19721. var update = createUpdate(expirationTime, suspenseConfig);
  19722. update.tag = ForceUpdate;
  19723. if (callback !== undefined && callback !== null) {
  19724. {
  19725. warnOnInvalidCallback$1(callback, 'forceUpdate');
  19726. }
  19727. update.callback = callback;
  19728. }
  19729. if (revertPassiveEffectsChange) {
  19730. flushPassiveEffects();
  19731. }
  19732. enqueueUpdate(fiber, update);
  19733. scheduleWork(fiber, expirationTime);
  19734. }
  19735. };
  19736. function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) {
  19737. var instance = workInProgress.stateNode;
  19738. if (typeof instance.shouldComponentUpdate === 'function') {
  19739. startPhaseTimer(workInProgress, 'shouldComponentUpdate');
  19740. var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);
  19741. stopPhaseTimer();
  19742. {
  19743. !(shouldUpdate !== undefined) ? warningWithoutStack$1(false, '%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', getComponentName(ctor) || 'Component') : void 0;
  19744. }
  19745. return shouldUpdate;
  19746. }
  19747. if (ctor.prototype && ctor.prototype.isPureReactComponent) {
  19748. return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState);
  19749. }
  19750. return true;
  19751. }
  19752. function checkClassInstance(workInProgress, ctor, newProps) {
  19753. var instance = workInProgress.stateNode;
  19754. {
  19755. var name = getComponentName(ctor) || 'Component';
  19756. var renderPresent = instance.render;
  19757. if (!renderPresent) {
  19758. if (ctor.prototype && typeof ctor.prototype.render === 'function') {
  19759. warningWithoutStack$1(false, '%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);
  19760. } else {
  19761. warningWithoutStack$1(false, '%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);
  19762. }
  19763. }
  19764. var noGetInitialStateOnES6 = !instance.getInitialState || instance.getInitialState.isReactClassApproved || instance.state;
  19765. !noGetInitialStateOnES6 ? warningWithoutStack$1(false, '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?', name) : void 0;
  19766. var noGetDefaultPropsOnES6 = !instance.getDefaultProps || instance.getDefaultProps.isReactClassApproved;
  19767. !noGetDefaultPropsOnES6 ? warningWithoutStack$1(false, '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.', name) : void 0;
  19768. var noInstancePropTypes = !instance.propTypes;
  19769. !noInstancePropTypes ? warningWithoutStack$1(false, 'propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name) : void 0;
  19770. var noInstanceContextType = !instance.contextType;
  19771. !noInstanceContextType ? warningWithoutStack$1(false, 'contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name) : void 0;
  19772. if (disableLegacyContext) {
  19773. if (ctor.childContextTypes) {
  19774. warningWithoutStack$1(false, '%s uses the legacy childContextTypes API which is no longer supported. ' + 'Use React.createContext() instead.', name);
  19775. }
  19776. if (ctor.contextTypes) {
  19777. warningWithoutStack$1(false, '%s uses the legacy contextTypes API which is no longer supported. ' + 'Use React.createContext() with static contextType instead.', name);
  19778. }
  19779. } else {
  19780. var noInstanceContextTypes = !instance.contextTypes;
  19781. !noInstanceContextTypes ? warningWithoutStack$1(false, 'contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name) : void 0;
  19782. if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) {
  19783. didWarnAboutContextTypeAndContextTypes.add(ctor);
  19784. warningWithoutStack$1(false, '%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name);
  19785. }
  19786. }
  19787. var noComponentShouldUpdate = typeof instance.componentShouldUpdate !== 'function';
  19788. !noComponentShouldUpdate ? warningWithoutStack$1(false, '%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.', name) : void 0;
  19789. if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {
  19790. warningWithoutStack$1(false, '%s has a method called shouldComponentUpdate(). ' + 'shouldComponentUpdate should not be used when extending React.PureComponent. ' + 'Please extend React.Component if shouldComponentUpdate is used.', getComponentName(ctor) || 'A pure component');
  19791. }
  19792. var noComponentDidUnmount = typeof instance.componentDidUnmount !== 'function';
  19793. !noComponentDidUnmount ? warningWithoutStack$1(false, '%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name) : void 0;
  19794. var noComponentDidReceiveProps = typeof instance.componentDidReceiveProps !== 'function';
  19795. !noComponentDidReceiveProps ? warningWithoutStack$1(false, '%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().', name) : void 0;
  19796. var noComponentWillRecieveProps = typeof instance.componentWillRecieveProps !== 'function';
  19797. !noComponentWillRecieveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name) : void 0;
  19798. var noUnsafeComponentWillRecieveProps = typeof instance.UNSAFE_componentWillRecieveProps !== 'function';
  19799. !noUnsafeComponentWillRecieveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name) : void 0;
  19800. var hasMutatedProps = instance.props !== newProps;
  19801. !(instance.props === undefined || !hasMutatedProps) ? warningWithoutStack$1(false, '%s(...): When calling super() in `%s`, make sure to pass ' + "up the same props that your component's constructor was passed.", name, name) : void 0;
  19802. var noInstanceDefaultProps = !instance.defaultProps;
  19803. !noInstanceDefaultProps ? warningWithoutStack$1(false, 'Setting defaultProps as an instance property on %s is not supported and will be ignored.' + ' Instead, define defaultProps as a static property on %s.', name, name) : void 0;
  19804. if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) {
  19805. didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);
  19806. warningWithoutStack$1(false, '%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentName(ctor));
  19807. }
  19808. var noInstanceGetDerivedStateFromProps = typeof instance.getDerivedStateFromProps !== 'function';
  19809. !noInstanceGetDerivedStateFromProps ? warningWithoutStack$1(false, '%s: getDerivedStateFromProps() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name) : void 0;
  19810. var noInstanceGetDerivedStateFromCatch = typeof instance.getDerivedStateFromError !== 'function';
  19811. !noInstanceGetDerivedStateFromCatch ? warningWithoutStack$1(false, '%s: getDerivedStateFromError() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name) : void 0;
  19812. var noStaticGetSnapshotBeforeUpdate = typeof ctor.getSnapshotBeforeUpdate !== 'function';
  19813. !noStaticGetSnapshotBeforeUpdate ? warningWithoutStack$1(false, '%s: getSnapshotBeforeUpdate() is defined as a static method ' + 'and will be ignored. Instead, declare it as an instance method.', name) : void 0;
  19814. var _state = instance.state;
  19815. if (_state && (typeof _state !== 'object' || isArray$1(_state))) {
  19816. warningWithoutStack$1(false, '%s.state: must be set to an object or null', name);
  19817. }
  19818. if (typeof instance.getChildContext === 'function') {
  19819. !(typeof ctor.childContextTypes === 'object') ? warningWithoutStack$1(false, '%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name) : void 0;
  19820. }
  19821. }
  19822. }
  19823. function adoptClassInstance(workInProgress, instance) {
  19824. instance.updater = classComponentUpdater;
  19825. workInProgress.stateNode = instance;
  19826. // The instance needs access to the fiber so that it can schedule updates
  19827. set(instance, workInProgress);
  19828. {
  19829. instance._reactInternalInstance = fakeInternalInstance;
  19830. }
  19831. }
  19832. function constructClassInstance(workInProgress, ctor, props, renderExpirationTime) {
  19833. var isLegacyContextConsumer = false;
  19834. var unmaskedContext = emptyContextObject;
  19835. var context = emptyContextObject;
  19836. var contextType = ctor.contextType;
  19837. {
  19838. if ('contextType' in ctor) {
  19839. var isValid =
  19840. // Allow null for conditional declaration
  19841. contextType === null || contextType !== undefined && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === undefined; // Not a <Context.Consumer>
  19842. if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) {
  19843. didWarnAboutInvalidateContextType.add(ctor);
  19844. var addendum = '';
  19845. if (contextType === undefined) {
  19846. addendum = ' 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.';
  19847. } else if (typeof contextType !== 'object') {
  19848. addendum = ' However, it is set to a ' + typeof contextType + '.';
  19849. } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) {
  19850. addendum = ' Did you accidentally pass the Context.Provider instead?';
  19851. } else if (contextType._context !== undefined) {
  19852. // <Context.Consumer>
  19853. addendum = ' Did you accidentally pass the Context.Consumer instead?';
  19854. } else {
  19855. addendum = ' However, it is set to an object with keys {' + Object.keys(contextType).join(', ') + '}.';
  19856. }
  19857. warningWithoutStack$1(false, '%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext().%s', getComponentName(ctor) || 'Component', addendum);
  19858. }
  19859. }
  19860. }
  19861. if (typeof contextType === 'object' && contextType !== null) {
  19862. context = readContext(contextType);
  19863. } else if (!disableLegacyContext) {
  19864. unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  19865. var contextTypes = ctor.contextTypes;
  19866. isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined;
  19867. context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject;
  19868. }
  19869. // Instantiate twice to help detect side-effects.
  19870. {
  19871. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  19872. new ctor(props, context); // eslint-disable-line no-new
  19873. }
  19874. }
  19875. var instance = new ctor(props, context);
  19876. var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null;
  19877. adoptClassInstance(workInProgress, instance);
  19878. {
  19879. if (typeof ctor.getDerivedStateFromProps === 'function' && state === null) {
  19880. var componentName = getComponentName(ctor) || 'Component';
  19881. if (!didWarnAboutUninitializedState.has(componentName)) {
  19882. didWarnAboutUninitializedState.add(componentName);
  19883. warningWithoutStack$1(false, '`%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.', componentName, instance.state === null ? 'null' : 'undefined', componentName);
  19884. }
  19885. }
  19886. // If new component APIs are defined, "unsafe" lifecycles won't be called.
  19887. // Warn about these lifecycles if they are present.
  19888. // Don't warn about react-lifecycles-compat polyfilled methods though.
  19889. if (typeof ctor.getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function') {
  19890. var foundWillMountName = null;
  19891. var foundWillReceivePropsName = null;
  19892. var foundWillUpdateName = null;
  19893. if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {
  19894. foundWillMountName = 'componentWillMount';
  19895. } else if (typeof instance.UNSAFE_componentWillMount === 'function') {
  19896. foundWillMountName = 'UNSAFE_componentWillMount';
  19897. }
  19898. if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
  19899. foundWillReceivePropsName = 'componentWillReceiveProps';
  19900. } else if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  19901. foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
  19902. }
  19903. if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
  19904. foundWillUpdateName = 'componentWillUpdate';
  19905. } else if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
  19906. foundWillUpdateName = 'UNSAFE_componentWillUpdate';
  19907. }
  19908. if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {
  19909. var _componentName = getComponentName(ctor) || 'Component';
  19910. var newApiName = typeof ctor.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';
  19911. if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) {
  19912. didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName);
  19913. warningWithoutStack$1(false, '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\n' + 'The above lifecycles should be removed. Learn more about this warning here:\n' + 'https://fb.me/react-async-component-lifecycle-hooks', _componentName, newApiName, foundWillMountName !== null ? '\n ' + foundWillMountName : '', foundWillReceivePropsName !== null ? '\n ' + foundWillReceivePropsName : '', foundWillUpdateName !== null ? '\n ' + foundWillUpdateName : '');
  19914. }
  19915. }
  19916. }
  19917. }
  19918. // Cache unmasked context so we can avoid recreating masked context unless necessary.
  19919. // ReactFiberContext usually updates this cache but can't for newly-created instances.
  19920. if (isLegacyContextConsumer) {
  19921. cacheContext(workInProgress, unmaskedContext, context);
  19922. }
  19923. return instance;
  19924. }
  19925. function callComponentWillMount(workInProgress, instance) {
  19926. startPhaseTimer(workInProgress, 'componentWillMount');
  19927. var oldState = instance.state;
  19928. if (typeof instance.componentWillMount === 'function') {
  19929. instance.componentWillMount();
  19930. }
  19931. if (typeof instance.UNSAFE_componentWillMount === 'function') {
  19932. instance.UNSAFE_componentWillMount();
  19933. }
  19934. stopPhaseTimer();
  19935. if (oldState !== instance.state) {
  19936. {
  19937. warningWithoutStack$1(false, '%s.componentWillMount(): Assigning directly to this.state is ' + "deprecated (except inside a component's " + 'constructor). Use setState instead.', getComponentName(workInProgress.type) || 'Component');
  19938. }
  19939. classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  19940. }
  19941. }
  19942. function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) {
  19943. var oldState = instance.state;
  19944. startPhaseTimer(workInProgress, 'componentWillReceiveProps');
  19945. if (typeof instance.componentWillReceiveProps === 'function') {
  19946. instance.componentWillReceiveProps(newProps, nextContext);
  19947. }
  19948. if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  19949. instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
  19950. }
  19951. stopPhaseTimer();
  19952. if (instance.state !== oldState) {
  19953. {
  19954. var componentName = getComponentName(workInProgress.type) || 'Component';
  19955. if (!didWarnAboutStateAssignmentForComponent.has(componentName)) {
  19956. didWarnAboutStateAssignmentForComponent.add(componentName);
  19957. warningWithoutStack$1(false, '%s.componentWillReceiveProps(): Assigning directly to ' + "this.state is deprecated (except inside a component's " + 'constructor). Use setState instead.', componentName);
  19958. }
  19959. }
  19960. classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  19961. }
  19962. }
  19963. // Invokes the mount life-cycles on a previously never rendered instance.
  19964. function mountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
  19965. {
  19966. checkClassInstance(workInProgress, ctor, newProps);
  19967. }
  19968. var instance = workInProgress.stateNode;
  19969. instance.props = newProps;
  19970. instance.state = workInProgress.memoizedState;
  19971. instance.refs = emptyRefsObject;
  19972. var contextType = ctor.contextType;
  19973. if (typeof contextType === 'object' && contextType !== null) {
  19974. instance.context = readContext(contextType);
  19975. } else if (disableLegacyContext) {
  19976. instance.context = emptyContextObject;
  19977. } else {
  19978. var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  19979. instance.context = getMaskedContext(workInProgress, unmaskedContext);
  19980. }
  19981. {
  19982. if (instance.state === newProps) {
  19983. var componentName = getComponentName(ctor) || 'Component';
  19984. if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) {
  19985. didWarnAboutDirectlyAssigningPropsToState.add(componentName);
  19986. warningWithoutStack$1(false, '%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.', componentName);
  19987. }
  19988. }
  19989. if (workInProgress.mode & StrictMode) {
  19990. ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance);
  19991. }
  19992. if (warnAboutDeprecatedLifecycles) {
  19993. ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance);
  19994. }
  19995. }
  19996. var updateQueue = workInProgress.updateQueue;
  19997. if (updateQueue !== null) {
  19998. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  19999. instance.state = workInProgress.memoizedState;
  20000. }
  20001. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  20002. if (typeof getDerivedStateFromProps === 'function') {
  20003. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  20004. instance.state = workInProgress.memoizedState;
  20005. }
  20006. // In order to support react-lifecycles-compat polyfilled components,
  20007. // Unsafe lifecycles should not be invoked for components using the new APIs.
  20008. if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
  20009. callComponentWillMount(workInProgress, instance);
  20010. // If we had additional state updates during this life-cycle, let's
  20011. // process them now.
  20012. updateQueue = workInProgress.updateQueue;
  20013. if (updateQueue !== null) {
  20014. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  20015. instance.state = workInProgress.memoizedState;
  20016. }
  20017. }
  20018. if (typeof instance.componentDidMount === 'function') {
  20019. workInProgress.effectTag |= Update;
  20020. }
  20021. }
  20022. function resumeMountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
  20023. var instance = workInProgress.stateNode;
  20024. var oldProps = workInProgress.memoizedProps;
  20025. instance.props = oldProps;
  20026. var oldContext = instance.context;
  20027. var contextType = ctor.contextType;
  20028. var nextContext = emptyContextObject;
  20029. if (typeof contextType === 'object' && contextType !== null) {
  20030. nextContext = readContext(contextType);
  20031. } else if (!disableLegacyContext) {
  20032. var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  20033. nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext);
  20034. }
  20035. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  20036. var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function';
  20037. // Note: During these life-cycles, instance.props/instance.state are what
  20038. // ever the previously attempted to render - not the "current". However,
  20039. // during componentDidUpdate we pass the "current" props.
  20040. // In order to support react-lifecycles-compat polyfilled components,
  20041. // Unsafe lifecycles should not be invoked for components using the new APIs.
  20042. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
  20043. if (oldProps !== newProps || oldContext !== nextContext) {
  20044. callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
  20045. }
  20046. }
  20047. resetHasForceUpdateBeforeProcessing();
  20048. var oldState = workInProgress.memoizedState;
  20049. var newState = instance.state = oldState;
  20050. var updateQueue = workInProgress.updateQueue;
  20051. if (updateQueue !== null) {
  20052. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  20053. newState = workInProgress.memoizedState;
  20054. }
  20055. if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
  20056. // If an update was already in progress, we should schedule an Update
  20057. // effect even though we're bailing out, so that cWU/cDU are called.
  20058. if (typeof instance.componentDidMount === 'function') {
  20059. workInProgress.effectTag |= Update;
  20060. }
  20061. return false;
  20062. }
  20063. if (typeof getDerivedStateFromProps === 'function') {
  20064. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  20065. newState = workInProgress.memoizedState;
  20066. }
  20067. var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
  20068. if (shouldUpdate) {
  20069. // In order to support react-lifecycles-compat polyfilled components,
  20070. // Unsafe lifecycles should not be invoked for components using the new APIs.
  20071. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
  20072. startPhaseTimer(workInProgress, 'componentWillMount');
  20073. if (typeof instance.componentWillMount === 'function') {
  20074. instance.componentWillMount();
  20075. }
  20076. if (typeof instance.UNSAFE_componentWillMount === 'function') {
  20077. instance.UNSAFE_componentWillMount();
  20078. }
  20079. stopPhaseTimer();
  20080. }
  20081. if (typeof instance.componentDidMount === 'function') {
  20082. workInProgress.effectTag |= Update;
  20083. }
  20084. } else {
  20085. // If an update was already in progress, we should schedule an Update
  20086. // effect even though we're bailing out, so that cWU/cDU are called.
  20087. if (typeof instance.componentDidMount === 'function') {
  20088. workInProgress.effectTag |= Update;
  20089. }
  20090. // If shouldComponentUpdate returned false, we should still update the
  20091. // memoized state to indicate that this work can be reused.
  20092. workInProgress.memoizedProps = newProps;
  20093. workInProgress.memoizedState = newState;
  20094. }
  20095. // Update the existing instance's state, props, and context pointers even
  20096. // if shouldComponentUpdate returns false.
  20097. instance.props = newProps;
  20098. instance.state = newState;
  20099. instance.context = nextContext;
  20100. return shouldUpdate;
  20101. }
  20102. // Invokes the update life-cycles and returns false if it shouldn't rerender.
  20103. function updateClassInstance(current, workInProgress, ctor, newProps, renderExpirationTime) {
  20104. var instance = workInProgress.stateNode;
  20105. var oldProps = workInProgress.memoizedProps;
  20106. instance.props = workInProgress.type === workInProgress.elementType ? oldProps : resolveDefaultProps(workInProgress.type, oldProps);
  20107. var oldContext = instance.context;
  20108. var contextType = ctor.contextType;
  20109. var nextContext = emptyContextObject;
  20110. if (typeof contextType === 'object' && contextType !== null) {
  20111. nextContext = readContext(contextType);
  20112. } else if (!disableLegacyContext) {
  20113. var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  20114. nextContext = getMaskedContext(workInProgress, nextUnmaskedContext);
  20115. }
  20116. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  20117. var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function';
  20118. // Note: During these life-cycles, instance.props/instance.state are what
  20119. // ever the previously attempted to render - not the "current". However,
  20120. // during componentDidUpdate we pass the "current" props.
  20121. // In order to support react-lifecycles-compat polyfilled components,
  20122. // Unsafe lifecycles should not be invoked for components using the new APIs.
  20123. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
  20124. if (oldProps !== newProps || oldContext !== nextContext) {
  20125. callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
  20126. }
  20127. }
  20128. resetHasForceUpdateBeforeProcessing();
  20129. var oldState = workInProgress.memoizedState;
  20130. var newState = instance.state = oldState;
  20131. var updateQueue = workInProgress.updateQueue;
  20132. if (updateQueue !== null) {
  20133. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  20134. newState = workInProgress.memoizedState;
  20135. }
  20136. if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
  20137. // If an update was already in progress, we should schedule an Update
  20138. // effect even though we're bailing out, so that cWU/cDU are called.
  20139. if (typeof instance.componentDidUpdate === 'function') {
  20140. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  20141. workInProgress.effectTag |= Update;
  20142. }
  20143. }
  20144. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  20145. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  20146. workInProgress.effectTag |= Snapshot;
  20147. }
  20148. }
  20149. return false;
  20150. }
  20151. if (typeof getDerivedStateFromProps === 'function') {
  20152. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  20153. newState = workInProgress.memoizedState;
  20154. }
  20155. var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
  20156. if (shouldUpdate) {
  20157. // In order to support react-lifecycles-compat polyfilled components,
  20158. // Unsafe lifecycles should not be invoked for components using the new APIs.
  20159. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === 'function' || typeof instance.componentWillUpdate === 'function')) {
  20160. startPhaseTimer(workInProgress, 'componentWillUpdate');
  20161. if (typeof instance.componentWillUpdate === 'function') {
  20162. instance.componentWillUpdate(newProps, newState, nextContext);
  20163. }
  20164. if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
  20165. instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext);
  20166. }
  20167. stopPhaseTimer();
  20168. }
  20169. if (typeof instance.componentDidUpdate === 'function') {
  20170. workInProgress.effectTag |= Update;
  20171. }
  20172. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  20173. workInProgress.effectTag |= Snapshot;
  20174. }
  20175. } else {
  20176. // If an update was already in progress, we should schedule an Update
  20177. // effect even though we're bailing out, so that cWU/cDU are called.
  20178. if (typeof instance.componentDidUpdate === 'function') {
  20179. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  20180. workInProgress.effectTag |= Update;
  20181. }
  20182. }
  20183. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  20184. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  20185. workInProgress.effectTag |= Snapshot;
  20186. }
  20187. }
  20188. // If shouldComponentUpdate returned false, we should still update the
  20189. // memoized props/state to indicate that this work can be reused.
  20190. workInProgress.memoizedProps = newProps;
  20191. workInProgress.memoizedState = newState;
  20192. }
  20193. // Update the existing instance's state, props, and context pointers even
  20194. // if shouldComponentUpdate returns false.
  20195. instance.props = newProps;
  20196. instance.state = newState;
  20197. instance.context = nextContext;
  20198. return shouldUpdate;
  20199. }
  20200. var didWarnAboutMaps = void 0;
  20201. var didWarnAboutGenerators = void 0;
  20202. var didWarnAboutStringRefInStrictMode = void 0;
  20203. var ownerHasKeyUseWarning = void 0;
  20204. var ownerHasFunctionTypeWarning = void 0;
  20205. var warnForMissingKey = function (child) {};
  20206. {
  20207. didWarnAboutMaps = false;
  20208. didWarnAboutGenerators = false;
  20209. didWarnAboutStringRefInStrictMode = {};
  20210. /**
  20211. * Warn if there's no key explicitly set on dynamic arrays of children or
  20212. * object keys are not valid. This allows us to keep track of children between
  20213. * updates.
  20214. */
  20215. ownerHasKeyUseWarning = {};
  20216. ownerHasFunctionTypeWarning = {};
  20217. warnForMissingKey = function (child) {
  20218. if (child === null || typeof child !== 'object') {
  20219. return;
  20220. }
  20221. if (!child._store || child._store.validated || child.key != null) {
  20222. return;
  20223. }
  20224. (function () {
  20225. if (!(typeof child._store === 'object')) {
  20226. {
  20227. throw ReactError(Error('React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.'));
  20228. }
  20229. }
  20230. })();
  20231. child._store.validated = true;
  20232. var currentComponentErrorInfo = 'Each child in a list should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.' + getCurrentFiberStackInDev();
  20233. if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
  20234. return;
  20235. }
  20236. ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
  20237. warning$1(false, 'Each child in a list should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.');
  20238. };
  20239. }
  20240. var isArray = Array.isArray;
  20241. function coerceRef(returnFiber, current$$1, element) {
  20242. var mixedRef = element.ref;
  20243. if (mixedRef !== null && typeof mixedRef !== 'function' && typeof mixedRef !== 'object') {
  20244. {
  20245. if (returnFiber.mode & StrictMode) {
  20246. var componentName = getComponentName(returnFiber.type) || 'Component';
  20247. if (!didWarnAboutStringRefInStrictMode[componentName]) {
  20248. warningWithoutStack$1(false, 'A string ref, "%s", has been found within a strict mode tree. ' + 'String refs are a source of potential bugs and should be avoided. ' + 'We recommend using createRef() instead.' + '\n%s' + '\n\nLearn more about using refs safely here:' + '\nhttps://fb.me/react-strict-mode-string-ref', mixedRef, getStackByFiberInDevAndProd(returnFiber));
  20249. didWarnAboutStringRefInStrictMode[componentName] = true;
  20250. }
  20251. }
  20252. }
  20253. if (element._owner) {
  20254. var owner = element._owner;
  20255. var inst = void 0;
  20256. if (owner) {
  20257. var ownerFiber = owner;
  20258. (function () {
  20259. if (!(ownerFiber.tag === ClassComponent)) {
  20260. {
  20261. throw ReactError(Error('Function components cannot have refs. Did you mean to use React.forwardRef()?'));
  20262. }
  20263. }
  20264. })();
  20265. inst = ownerFiber.stateNode;
  20266. }
  20267. (function () {
  20268. if (!inst) {
  20269. {
  20270. throw ReactError(Error('Missing owner for string ref ' + mixedRef + '. This error is likely caused by a bug in React. Please file an issue.'));
  20271. }
  20272. }
  20273. })();
  20274. var stringRef = '' + mixedRef;
  20275. // Check if previous string ref matches new string ref
  20276. if (current$$1 !== null && current$$1.ref !== null && typeof current$$1.ref === 'function' && current$$1.ref._stringRef === stringRef) {
  20277. return current$$1.ref;
  20278. }
  20279. var ref = function (value) {
  20280. var refs = inst.refs;
  20281. if (refs === emptyRefsObject) {
  20282. // This is a lazy pooled frozen object, so we need to initialize.
  20283. refs = inst.refs = {};
  20284. }
  20285. if (value === null) {
  20286. delete refs[stringRef];
  20287. } else {
  20288. refs[stringRef] = value;
  20289. }
  20290. };
  20291. ref._stringRef = stringRef;
  20292. return ref;
  20293. } else {
  20294. (function () {
  20295. if (!(typeof mixedRef === 'string')) {
  20296. {
  20297. throw ReactError(Error('Expected ref to be a function, a string, an object returned by React.createRef(), or null.'));
  20298. }
  20299. }
  20300. })();
  20301. (function () {
  20302. if (!element._owner) {
  20303. {
  20304. throw ReactError(Error('Element ref was specified as a string (' + mixedRef + ') but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component\'s render method\n3. You have multiple copies of React loaded\nSee https://fb.me/react-refs-must-have-owner for more information.'));
  20305. }
  20306. }
  20307. })();
  20308. }
  20309. }
  20310. return mixedRef;
  20311. }
  20312. function throwOnInvalidObjectType(returnFiber, newChild) {
  20313. if (returnFiber.type !== 'textarea') {
  20314. var addendum = '';
  20315. {
  20316. addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + getCurrentFiberStackInDev();
  20317. }
  20318. (function () {
  20319. {
  20320. {
  20321. throw ReactError(Error('Objects are not valid as a React child (found: ' + (Object.prototype.toString.call(newChild) === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : newChild) + ').' + addendum));
  20322. }
  20323. }
  20324. })();
  20325. }
  20326. }
  20327. function warnOnFunctionType() {
  20328. var currentComponentErrorInfo = 'Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.' + getCurrentFiberStackInDev();
  20329. if (ownerHasFunctionTypeWarning[currentComponentErrorInfo]) {
  20330. return;
  20331. }
  20332. ownerHasFunctionTypeWarning[currentComponentErrorInfo] = true;
  20333. warning$1(false, 'Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.');
  20334. }
  20335. // This wrapper function exists because I expect to clone the code in each path
  20336. // to be able to optimize each path individually by branching early. This needs
  20337. // a compiler or we can do it manually. Helpers that don't need this branching
  20338. // live outside of this function.
  20339. function ChildReconciler(shouldTrackSideEffects) {
  20340. function deleteChild(returnFiber, childToDelete) {
  20341. if (!shouldTrackSideEffects) {
  20342. // Noop.
  20343. return;
  20344. }
  20345. // Deletions are added in reversed order so we add it to the front.
  20346. // At this point, the return fiber's effect list is empty except for
  20347. // deletions, so we can just append the deletion to the list. The remaining
  20348. // effects aren't added until the complete phase. Once we implement
  20349. // resuming, this may not be true.
  20350. var last = returnFiber.lastEffect;
  20351. if (last !== null) {
  20352. last.nextEffect = childToDelete;
  20353. returnFiber.lastEffect = childToDelete;
  20354. } else {
  20355. returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
  20356. }
  20357. childToDelete.nextEffect = null;
  20358. childToDelete.effectTag = Deletion;
  20359. }
  20360. function deleteRemainingChildren(returnFiber, currentFirstChild) {
  20361. if (!shouldTrackSideEffects) {
  20362. // Noop.
  20363. return null;
  20364. }
  20365. // TODO: For the shouldClone case, this could be micro-optimized a bit by
  20366. // assuming that after the first child we've already added everything.
  20367. var childToDelete = currentFirstChild;
  20368. while (childToDelete !== null) {
  20369. deleteChild(returnFiber, childToDelete);
  20370. childToDelete = childToDelete.sibling;
  20371. }
  20372. return null;
  20373. }
  20374. function mapRemainingChildren(returnFiber, currentFirstChild) {
  20375. // Add the remaining children to a temporary map so that we can find them by
  20376. // keys quickly. Implicit (null) keys get added to this set with their index
  20377. var existingChildren = new Map();
  20378. var existingChild = currentFirstChild;
  20379. while (existingChild !== null) {
  20380. if (existingChild.key !== null) {
  20381. existingChildren.set(existingChild.key, existingChild);
  20382. } else {
  20383. existingChildren.set(existingChild.index, existingChild);
  20384. }
  20385. existingChild = existingChild.sibling;
  20386. }
  20387. return existingChildren;
  20388. }
  20389. function useFiber(fiber, pendingProps, expirationTime) {
  20390. // We currently set sibling to null and index to 0 here because it is easy
  20391. // to forget to do before returning it. E.g. for the single child case.
  20392. var clone = createWorkInProgress(fiber, pendingProps, expirationTime);
  20393. clone.index = 0;
  20394. clone.sibling = null;
  20395. return clone;
  20396. }
  20397. function placeChild(newFiber, lastPlacedIndex, newIndex) {
  20398. newFiber.index = newIndex;
  20399. if (!shouldTrackSideEffects) {
  20400. // Noop.
  20401. return lastPlacedIndex;
  20402. }
  20403. var current$$1 = newFiber.alternate;
  20404. if (current$$1 !== null) {
  20405. var oldIndex = current$$1.index;
  20406. if (oldIndex < lastPlacedIndex) {
  20407. // This is a move.
  20408. newFiber.effectTag = Placement;
  20409. return lastPlacedIndex;
  20410. } else {
  20411. // This item can stay in place.
  20412. return oldIndex;
  20413. }
  20414. } else {
  20415. // This is an insertion.
  20416. newFiber.effectTag = Placement;
  20417. return lastPlacedIndex;
  20418. }
  20419. }
  20420. function placeSingleChild(newFiber) {
  20421. // This is simpler for the single child case. We only need to do a
  20422. // placement for inserting new children.
  20423. if (shouldTrackSideEffects && newFiber.alternate === null) {
  20424. newFiber.effectTag = Placement;
  20425. }
  20426. return newFiber;
  20427. }
  20428. function updateTextNode(returnFiber, current$$1, textContent, expirationTime) {
  20429. if (current$$1 === null || current$$1.tag !== HostText) {
  20430. // Insert
  20431. var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
  20432. created.return = returnFiber;
  20433. return created;
  20434. } else {
  20435. // Update
  20436. var existing = useFiber(current$$1, textContent, expirationTime);
  20437. existing.return = returnFiber;
  20438. return existing;
  20439. }
  20440. }
  20441. function updateElement(returnFiber, current$$1, element, expirationTime) {
  20442. if (current$$1 !== null && (current$$1.elementType === element.type || (
  20443. // Keep this check inline so it only runs on the false path:
  20444. isCompatibleFamilyForHotReloading(current$$1, element)))) {
  20445. // Move based on index
  20446. var existing = useFiber(current$$1, element.props, expirationTime);
  20447. existing.ref = coerceRef(returnFiber, current$$1, element);
  20448. existing.return = returnFiber;
  20449. {
  20450. existing._debugSource = element._source;
  20451. existing._debugOwner = element._owner;
  20452. }
  20453. return existing;
  20454. } else {
  20455. // Insert
  20456. var created = createFiberFromElement(element, returnFiber.mode, expirationTime);
  20457. created.ref = coerceRef(returnFiber, current$$1, element);
  20458. created.return = returnFiber;
  20459. return created;
  20460. }
  20461. }
  20462. function updatePortal(returnFiber, current$$1, portal, expirationTime) {
  20463. if (current$$1 === null || current$$1.tag !== HostPortal || current$$1.stateNode.containerInfo !== portal.containerInfo || current$$1.stateNode.implementation !== portal.implementation) {
  20464. // Insert
  20465. var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
  20466. created.return = returnFiber;
  20467. return created;
  20468. } else {
  20469. // Update
  20470. var existing = useFiber(current$$1, portal.children || [], expirationTime);
  20471. existing.return = returnFiber;
  20472. return existing;
  20473. }
  20474. }
  20475. function updateFragment(returnFiber, current$$1, fragment, expirationTime, key) {
  20476. if (current$$1 === null || current$$1.tag !== Fragment) {
  20477. // Insert
  20478. var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);
  20479. created.return = returnFiber;
  20480. return created;
  20481. } else {
  20482. // Update
  20483. var existing = useFiber(current$$1, fragment, expirationTime);
  20484. existing.return = returnFiber;
  20485. return existing;
  20486. }
  20487. }
  20488. function createChild(returnFiber, newChild, expirationTime) {
  20489. if (typeof newChild === 'string' || typeof newChild === 'number') {
  20490. // Text nodes don't have keys. If the previous node is implicitly keyed
  20491. // we can continue to replace it without aborting even if it is not a text
  20492. // node.
  20493. var created = createFiberFromText('' + newChild, returnFiber.mode, expirationTime);
  20494. created.return = returnFiber;
  20495. return created;
  20496. }
  20497. if (typeof newChild === 'object' && newChild !== null) {
  20498. switch (newChild.$$typeof) {
  20499. case REACT_ELEMENT_TYPE:
  20500. {
  20501. var _created = createFiberFromElement(newChild, returnFiber.mode, expirationTime);
  20502. _created.ref = coerceRef(returnFiber, null, newChild);
  20503. _created.return = returnFiber;
  20504. return _created;
  20505. }
  20506. case REACT_PORTAL_TYPE:
  20507. {
  20508. var _created2 = createFiberFromPortal(newChild, returnFiber.mode, expirationTime);
  20509. _created2.return = returnFiber;
  20510. return _created2;
  20511. }
  20512. }
  20513. if (isArray(newChild) || getIteratorFn(newChild)) {
  20514. var _created3 = createFiberFromFragment(newChild, returnFiber.mode, expirationTime, null);
  20515. _created3.return = returnFiber;
  20516. return _created3;
  20517. }
  20518. throwOnInvalidObjectType(returnFiber, newChild);
  20519. }
  20520. {
  20521. if (typeof newChild === 'function') {
  20522. warnOnFunctionType();
  20523. }
  20524. }
  20525. return null;
  20526. }
  20527. function updateSlot(returnFiber, oldFiber, newChild, expirationTime) {
  20528. // Update the fiber if the keys match, otherwise return null.
  20529. var key = oldFiber !== null ? oldFiber.key : null;
  20530. if (typeof newChild === 'string' || typeof newChild === 'number') {
  20531. // Text nodes don't have keys. If the previous node is implicitly keyed
  20532. // we can continue to replace it without aborting even if it is not a text
  20533. // node.
  20534. if (key !== null) {
  20535. return null;
  20536. }
  20537. return updateTextNode(returnFiber, oldFiber, '' + newChild, expirationTime);
  20538. }
  20539. if (typeof newChild === 'object' && newChild !== null) {
  20540. switch (newChild.$$typeof) {
  20541. case REACT_ELEMENT_TYPE:
  20542. {
  20543. if (newChild.key === key) {
  20544. if (newChild.type === REACT_FRAGMENT_TYPE) {
  20545. return updateFragment(returnFiber, oldFiber, newChild.props.children, expirationTime, key);
  20546. }
  20547. return updateElement(returnFiber, oldFiber, newChild, expirationTime);
  20548. } else {
  20549. return null;
  20550. }
  20551. }
  20552. case REACT_PORTAL_TYPE:
  20553. {
  20554. if (newChild.key === key) {
  20555. return updatePortal(returnFiber, oldFiber, newChild, expirationTime);
  20556. } else {
  20557. return null;
  20558. }
  20559. }
  20560. }
  20561. if (isArray(newChild) || getIteratorFn(newChild)) {
  20562. if (key !== null) {
  20563. return null;
  20564. }
  20565. return updateFragment(returnFiber, oldFiber, newChild, expirationTime, null);
  20566. }
  20567. throwOnInvalidObjectType(returnFiber, newChild);
  20568. }
  20569. {
  20570. if (typeof newChild === 'function') {
  20571. warnOnFunctionType();
  20572. }
  20573. }
  20574. return null;
  20575. }
  20576. function updateFromMap(existingChildren, returnFiber, newIdx, newChild, expirationTime) {
  20577. if (typeof newChild === 'string' || typeof newChild === 'number') {
  20578. // Text nodes don't have keys, so we neither have to check the old nor
  20579. // new node for the key. If both are text nodes, they match.
  20580. var matchedFiber = existingChildren.get(newIdx) || null;
  20581. return updateTextNode(returnFiber, matchedFiber, '' + newChild, expirationTime);
  20582. }
  20583. if (typeof newChild === 'object' && newChild !== null) {
  20584. switch (newChild.$$typeof) {
  20585. case REACT_ELEMENT_TYPE:
  20586. {
  20587. var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
  20588. if (newChild.type === REACT_FRAGMENT_TYPE) {
  20589. return updateFragment(returnFiber, _matchedFiber, newChild.props.children, expirationTime, newChild.key);
  20590. }
  20591. return updateElement(returnFiber, _matchedFiber, newChild, expirationTime);
  20592. }
  20593. case REACT_PORTAL_TYPE:
  20594. {
  20595. var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
  20596. return updatePortal(returnFiber, _matchedFiber2, newChild, expirationTime);
  20597. }
  20598. }
  20599. if (isArray(newChild) || getIteratorFn(newChild)) {
  20600. var _matchedFiber3 = existingChildren.get(newIdx) || null;
  20601. return updateFragment(returnFiber, _matchedFiber3, newChild, expirationTime, null);
  20602. }
  20603. throwOnInvalidObjectType(returnFiber, newChild);
  20604. }
  20605. {
  20606. if (typeof newChild === 'function') {
  20607. warnOnFunctionType();
  20608. }
  20609. }
  20610. return null;
  20611. }
  20612. /**
  20613. * Warns if there is a duplicate or missing key
  20614. */
  20615. function warnOnInvalidKey(child, knownKeys) {
  20616. {
  20617. if (typeof child !== 'object' || child === null) {
  20618. return knownKeys;
  20619. }
  20620. switch (child.$$typeof) {
  20621. case REACT_ELEMENT_TYPE:
  20622. case REACT_PORTAL_TYPE:
  20623. warnForMissingKey(child);
  20624. var key = child.key;
  20625. if (typeof key !== 'string') {
  20626. break;
  20627. }
  20628. if (knownKeys === null) {
  20629. knownKeys = new Set();
  20630. knownKeys.add(key);
  20631. break;
  20632. }
  20633. if (!knownKeys.has(key)) {
  20634. knownKeys.add(key);
  20635. break;
  20636. }
  20637. warning$1(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);
  20638. break;
  20639. default:
  20640. break;
  20641. }
  20642. }
  20643. return knownKeys;
  20644. }
  20645. function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) {
  20646. // This algorithm can't optimize by searching from both ends since we
  20647. // don't have backpointers on fibers. I'm trying to see how far we can get
  20648. // with that model. If it ends up not being worth the tradeoffs, we can
  20649. // add it later.
  20650. // Even with a two ended optimization, we'd want to optimize for the case
  20651. // where there are few changes and brute force the comparison instead of
  20652. // going for the Map. It'd like to explore hitting that path first in
  20653. // forward-only mode and only go for the Map once we notice that we need
  20654. // lots of look ahead. This doesn't handle reversal as well as two ended
  20655. // search but that's unusual. Besides, for the two ended optimization to
  20656. // work on Iterables, we'd need to copy the whole set.
  20657. // In this first iteration, we'll just live with hitting the bad case
  20658. // (adding everything to a Map) in for every insert/move.
  20659. // If you change this code, also update reconcileChildrenIterator() which
  20660. // uses the same algorithm.
  20661. {
  20662. // First, validate keys.
  20663. var knownKeys = null;
  20664. for (var i = 0; i < newChildren.length; i++) {
  20665. var child = newChildren[i];
  20666. knownKeys = warnOnInvalidKey(child, knownKeys);
  20667. }
  20668. }
  20669. var resultingFirstChild = null;
  20670. var previousNewFiber = null;
  20671. var oldFiber = currentFirstChild;
  20672. var lastPlacedIndex = 0;
  20673. var newIdx = 0;
  20674. var nextOldFiber = null;
  20675. for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) {
  20676. if (oldFiber.index > newIdx) {
  20677. nextOldFiber = oldFiber;
  20678. oldFiber = null;
  20679. } else {
  20680. nextOldFiber = oldFiber.sibling;
  20681. }
  20682. var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], expirationTime);
  20683. if (newFiber === null) {
  20684. // TODO: This breaks on empty slots like null children. That's
  20685. // unfortunate because it triggers the slow path all the time. We need
  20686. // a better way to communicate whether this was a miss or null,
  20687. // boolean, undefined, etc.
  20688. if (oldFiber === null) {
  20689. oldFiber = nextOldFiber;
  20690. }
  20691. break;
  20692. }
  20693. if (shouldTrackSideEffects) {
  20694. if (oldFiber && newFiber.alternate === null) {
  20695. // We matched the slot, but we didn't reuse the existing fiber, so we
  20696. // need to delete the existing child.
  20697. deleteChild(returnFiber, oldFiber);
  20698. }
  20699. }
  20700. lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
  20701. if (previousNewFiber === null) {
  20702. // TODO: Move out of the loop. This only happens for the first run.
  20703. resultingFirstChild = newFiber;
  20704. } else {
  20705. // TODO: Defer siblings if we're not at the right index for this slot.
  20706. // I.e. if we had null values before, then we want to defer this
  20707. // for each null value. However, we also don't want to call updateSlot
  20708. // with the previous one.
  20709. previousNewFiber.sibling = newFiber;
  20710. }
  20711. previousNewFiber = newFiber;
  20712. oldFiber = nextOldFiber;
  20713. }
  20714. if (newIdx === newChildren.length) {
  20715. // We've reached the end of the new children. We can delete the rest.
  20716. deleteRemainingChildren(returnFiber, oldFiber);
  20717. return resultingFirstChild;
  20718. }
  20719. if (oldFiber === null) {
  20720. // If we don't have any more existing children we can choose a fast path
  20721. // since the rest will all be insertions.
  20722. for (; newIdx < newChildren.length; newIdx++) {
  20723. var _newFiber = createChild(returnFiber, newChildren[newIdx], expirationTime);
  20724. if (_newFiber === null) {
  20725. continue;
  20726. }
  20727. lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx);
  20728. if (previousNewFiber === null) {
  20729. // TODO: Move out of the loop. This only happens for the first run.
  20730. resultingFirstChild = _newFiber;
  20731. } else {
  20732. previousNewFiber.sibling = _newFiber;
  20733. }
  20734. previousNewFiber = _newFiber;
  20735. }
  20736. return resultingFirstChild;
  20737. }
  20738. // Add all children to a key map for quick lookups.
  20739. var existingChildren = mapRemainingChildren(returnFiber, oldFiber);
  20740. // Keep scanning and use the map to restore deleted items as moves.
  20741. for (; newIdx < newChildren.length; newIdx++) {
  20742. var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], expirationTime);
  20743. if (_newFiber2 !== null) {
  20744. if (shouldTrackSideEffects) {
  20745. if (_newFiber2.alternate !== null) {
  20746. // The new fiber is a work in progress, but if there exists a
  20747. // current, that means that we reused the fiber. We need to delete
  20748. // it from the child list so that we don't add it to the deletion
  20749. // list.
  20750. existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key);
  20751. }
  20752. }
  20753. lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx);
  20754. if (previousNewFiber === null) {
  20755. resultingFirstChild = _newFiber2;
  20756. } else {
  20757. previousNewFiber.sibling = _newFiber2;
  20758. }
  20759. previousNewFiber = _newFiber2;
  20760. }
  20761. }
  20762. if (shouldTrackSideEffects) {
  20763. // Any existing children that weren't consumed above were deleted. We need
  20764. // to add them to the deletion list.
  20765. existingChildren.forEach(function (child) {
  20766. return deleteChild(returnFiber, child);
  20767. });
  20768. }
  20769. return resultingFirstChild;
  20770. }
  20771. function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, expirationTime) {
  20772. // This is the same implementation as reconcileChildrenArray(),
  20773. // but using the iterator instead.
  20774. var iteratorFn = getIteratorFn(newChildrenIterable);
  20775. (function () {
  20776. if (!(typeof iteratorFn === 'function')) {
  20777. {
  20778. throw ReactError(Error('An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.'));
  20779. }
  20780. }
  20781. })();
  20782. {
  20783. // We don't support rendering Generators because it's a mutation.
  20784. // See https://github.com/facebook/react/issues/12995
  20785. if (typeof Symbol === 'function' &&
  20786. // $FlowFixMe Flow doesn't know about toStringTag
  20787. newChildrenIterable[Symbol.toStringTag] === 'Generator') {
  20788. !didWarnAboutGenerators ? warning$1(false, 'Using Generators 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. Keep in mind ' + 'you might need to polyfill these features for older browsers.') : void 0;
  20789. didWarnAboutGenerators = true;
  20790. }
  20791. // Warn about using Maps as children
  20792. if (newChildrenIterable.entries === iteratorFn) {
  20793. !didWarnAboutMaps ? warning$1(false, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.') : void 0;
  20794. didWarnAboutMaps = true;
  20795. }
  20796. // First, validate keys.
  20797. // We'll get a different iterator later for the main pass.
  20798. var _newChildren = iteratorFn.call(newChildrenIterable);
  20799. if (_newChildren) {
  20800. var knownKeys = null;
  20801. var _step = _newChildren.next();
  20802. for (; !_step.done; _step = _newChildren.next()) {
  20803. var child = _step.value;
  20804. knownKeys = warnOnInvalidKey(child, knownKeys);
  20805. }
  20806. }
  20807. }
  20808. var newChildren = iteratorFn.call(newChildrenIterable);
  20809. (function () {
  20810. if (!(newChildren != null)) {
  20811. {
  20812. throw ReactError(Error('An iterable object provided no iterator.'));
  20813. }
  20814. }
  20815. })();
  20816. var resultingFirstChild = null;
  20817. var previousNewFiber = null;
  20818. var oldFiber = currentFirstChild;
  20819. var lastPlacedIndex = 0;
  20820. var newIdx = 0;
  20821. var nextOldFiber = null;
  20822. var step = newChildren.next();
  20823. for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) {
  20824. if (oldFiber.index > newIdx) {
  20825. nextOldFiber = oldFiber;
  20826. oldFiber = null;
  20827. } else {
  20828. nextOldFiber = oldFiber.sibling;
  20829. }
  20830. var newFiber = updateSlot(returnFiber, oldFiber, step.value, expirationTime);
  20831. if (newFiber === null) {
  20832. // TODO: This breaks on empty slots like null children. That's
  20833. // unfortunate because it triggers the slow path all the time. We need
  20834. // a better way to communicate whether this was a miss or null,
  20835. // boolean, undefined, etc.
  20836. if (oldFiber === null) {
  20837. oldFiber = nextOldFiber;
  20838. }
  20839. break;
  20840. }
  20841. if (shouldTrackSideEffects) {
  20842. if (oldFiber && newFiber.alternate === null) {
  20843. // We matched the slot, but we didn't reuse the existing fiber, so we
  20844. // need to delete the existing child.
  20845. deleteChild(returnFiber, oldFiber);
  20846. }
  20847. }
  20848. lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
  20849. if (previousNewFiber === null) {
  20850. // TODO: Move out of the loop. This only happens for the first run.
  20851. resultingFirstChild = newFiber;
  20852. } else {
  20853. // TODO: Defer siblings if we're not at the right index for this slot.
  20854. // I.e. if we had null values before, then we want to defer this
  20855. // for each null value. However, we also don't want to call updateSlot
  20856. // with the previous one.
  20857. previousNewFiber.sibling = newFiber;
  20858. }
  20859. previousNewFiber = newFiber;
  20860. oldFiber = nextOldFiber;
  20861. }
  20862. if (step.done) {
  20863. // We've reached the end of the new children. We can delete the rest.
  20864. deleteRemainingChildren(returnFiber, oldFiber);
  20865. return resultingFirstChild;
  20866. }
  20867. if (oldFiber === null) {
  20868. // If we don't have any more existing children we can choose a fast path
  20869. // since the rest will all be insertions.
  20870. for (; !step.done; newIdx++, step = newChildren.next()) {
  20871. var _newFiber3 = createChild(returnFiber, step.value, expirationTime);
  20872. if (_newFiber3 === null) {
  20873. continue;
  20874. }
  20875. lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx);
  20876. if (previousNewFiber === null) {
  20877. // TODO: Move out of the loop. This only happens for the first run.
  20878. resultingFirstChild = _newFiber3;
  20879. } else {
  20880. previousNewFiber.sibling = _newFiber3;
  20881. }
  20882. previousNewFiber = _newFiber3;
  20883. }
  20884. return resultingFirstChild;
  20885. }
  20886. // Add all children to a key map for quick lookups.
  20887. var existingChildren = mapRemainingChildren(returnFiber, oldFiber);
  20888. // Keep scanning and use the map to restore deleted items as moves.
  20889. for (; !step.done; newIdx++, step = newChildren.next()) {
  20890. var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, expirationTime);
  20891. if (_newFiber4 !== null) {
  20892. if (shouldTrackSideEffects) {
  20893. if (_newFiber4.alternate !== null) {
  20894. // The new fiber is a work in progress, but if there exists a
  20895. // current, that means that we reused the fiber. We need to delete
  20896. // it from the child list so that we don't add it to the deletion
  20897. // list.
  20898. existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key);
  20899. }
  20900. }
  20901. lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx);
  20902. if (previousNewFiber === null) {
  20903. resultingFirstChild = _newFiber4;
  20904. } else {
  20905. previousNewFiber.sibling = _newFiber4;
  20906. }
  20907. previousNewFiber = _newFiber4;
  20908. }
  20909. }
  20910. if (shouldTrackSideEffects) {
  20911. // Any existing children that weren't consumed above were deleted. We need
  20912. // to add them to the deletion list.
  20913. existingChildren.forEach(function (child) {
  20914. return deleteChild(returnFiber, child);
  20915. });
  20916. }
  20917. return resultingFirstChild;
  20918. }
  20919. function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, expirationTime) {
  20920. // There's no need to check for keys on text nodes since we don't have a
  20921. // way to define them.
  20922. if (currentFirstChild !== null && currentFirstChild.tag === HostText) {
  20923. // We already have an existing node so let's just update it and delete
  20924. // the rest.
  20925. deleteRemainingChildren(returnFiber, currentFirstChild.sibling);
  20926. var existing = useFiber(currentFirstChild, textContent, expirationTime);
  20927. existing.return = returnFiber;
  20928. return existing;
  20929. }
  20930. // The existing first child is not a text node so we need to create one
  20931. // and delete the existing ones.
  20932. deleteRemainingChildren(returnFiber, currentFirstChild);
  20933. var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
  20934. created.return = returnFiber;
  20935. return created;
  20936. }
  20937. function reconcileSingleElement(returnFiber, currentFirstChild, element, expirationTime) {
  20938. var key = element.key;
  20939. var child = currentFirstChild;
  20940. while (child !== null) {
  20941. // TODO: If key === null and child.key === null, then this only applies to
  20942. // the first item in the list.
  20943. if (child.key === key) {
  20944. if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : child.elementType === element.type || (
  20945. // Keep this check inline so it only runs on the false path:
  20946. isCompatibleFamilyForHotReloading(child, element))) {
  20947. deleteRemainingChildren(returnFiber, child.sibling);
  20948. var existing = useFiber(child, element.type === REACT_FRAGMENT_TYPE ? element.props.children : element.props, expirationTime);
  20949. existing.ref = coerceRef(returnFiber, child, element);
  20950. existing.return = returnFiber;
  20951. {
  20952. existing._debugSource = element._source;
  20953. existing._debugOwner = element._owner;
  20954. }
  20955. return existing;
  20956. } else {
  20957. deleteRemainingChildren(returnFiber, child);
  20958. break;
  20959. }
  20960. } else {
  20961. deleteChild(returnFiber, child);
  20962. }
  20963. child = child.sibling;
  20964. }
  20965. if (element.type === REACT_FRAGMENT_TYPE) {
  20966. var created = createFiberFromFragment(element.props.children, returnFiber.mode, expirationTime, element.key);
  20967. created.return = returnFiber;
  20968. return created;
  20969. } else {
  20970. var _created4 = createFiberFromElement(element, returnFiber.mode, expirationTime);
  20971. _created4.ref = coerceRef(returnFiber, currentFirstChild, element);
  20972. _created4.return = returnFiber;
  20973. return _created4;
  20974. }
  20975. }
  20976. function reconcileSinglePortal(returnFiber, currentFirstChild, portal, expirationTime) {
  20977. var key = portal.key;
  20978. var child = currentFirstChild;
  20979. while (child !== null) {
  20980. // TODO: If key === null and child.key === null, then this only applies to
  20981. // the first item in the list.
  20982. if (child.key === key) {
  20983. if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) {
  20984. deleteRemainingChildren(returnFiber, child.sibling);
  20985. var existing = useFiber(child, portal.children || [], expirationTime);
  20986. existing.return = returnFiber;
  20987. return existing;
  20988. } else {
  20989. deleteRemainingChildren(returnFiber, child);
  20990. break;
  20991. }
  20992. } else {
  20993. deleteChild(returnFiber, child);
  20994. }
  20995. child = child.sibling;
  20996. }
  20997. var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
  20998. created.return = returnFiber;
  20999. return created;
  21000. }
  21001. // This API will tag the children with the side-effect of the reconciliation
  21002. // itself. They will be added to the side-effect list as we pass through the
  21003. // children and the parent.
  21004. function reconcileChildFibers(returnFiber, currentFirstChild, newChild, expirationTime) {
  21005. // This function is not recursive.
  21006. // If the top level item is an array, we treat it as a set of children,
  21007. // not as a fragment. Nested arrays on the other hand will be treated as
  21008. // fragment nodes. Recursion happens at the normal flow.
  21009. // Handle top level unkeyed fragments as if they were arrays.
  21010. // This leads to an ambiguity between <>{[...]}</> and <>...</>.
  21011. // We treat the ambiguous cases above the same.
  21012. var isUnkeyedTopLevelFragment = typeof newChild === 'object' && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null;
  21013. if (isUnkeyedTopLevelFragment) {
  21014. newChild = newChild.props.children;
  21015. }
  21016. // Handle object types
  21017. var isObject = typeof newChild === 'object' && newChild !== null;
  21018. if (isObject) {
  21019. switch (newChild.$$typeof) {
  21020. case REACT_ELEMENT_TYPE:
  21021. return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, expirationTime));
  21022. case REACT_PORTAL_TYPE:
  21023. return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, expirationTime));
  21024. }
  21025. }
  21026. if (typeof newChild === 'string' || typeof newChild === 'number') {
  21027. return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, '' + newChild, expirationTime));
  21028. }
  21029. if (isArray(newChild)) {
  21030. return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime);
  21031. }
  21032. if (getIteratorFn(newChild)) {
  21033. return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, expirationTime);
  21034. }
  21035. if (isObject) {
  21036. throwOnInvalidObjectType(returnFiber, newChild);
  21037. }
  21038. {
  21039. if (typeof newChild === 'function') {
  21040. warnOnFunctionType();
  21041. }
  21042. }
  21043. if (typeof newChild === 'undefined' && !isUnkeyedTopLevelFragment) {
  21044. // If the new child is undefined, and the return fiber is a composite
  21045. // component, throw an error. If Fiber return types are disabled,
  21046. // we already threw above.
  21047. switch (returnFiber.tag) {
  21048. case ClassComponent:
  21049. {
  21050. {
  21051. var instance = returnFiber.stateNode;
  21052. if (instance.render._isMockFunction) {
  21053. // We allow auto-mocks to proceed as if they're returning null.
  21054. break;
  21055. }
  21056. }
  21057. }
  21058. // Intentionally fall through to the next case, which handles both
  21059. // functions and classes
  21060. // eslint-disable-next-lined no-fallthrough
  21061. case FunctionComponent:
  21062. {
  21063. var Component = returnFiber.type;
  21064. (function () {
  21065. {
  21066. {
  21067. throw ReactError(Error((Component.displayName || Component.name || 'Component') + '(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.'));
  21068. }
  21069. }
  21070. })();
  21071. }
  21072. }
  21073. }
  21074. // Remaining cases are all treated as empty.
  21075. return deleteRemainingChildren(returnFiber, currentFirstChild);
  21076. }
  21077. return reconcileChildFibers;
  21078. }
  21079. var reconcileChildFibers = ChildReconciler(true);
  21080. var mountChildFibers = ChildReconciler(false);
  21081. function cloneChildFibers(current$$1, workInProgress) {
  21082. (function () {
  21083. if (!(current$$1 === null || workInProgress.child === current$$1.child)) {
  21084. {
  21085. throw ReactError(Error('Resuming work not yet implemented.'));
  21086. }
  21087. }
  21088. })();
  21089. if (workInProgress.child === null) {
  21090. return;
  21091. }
  21092. var currentChild = workInProgress.child;
  21093. var newChild = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime);
  21094. workInProgress.child = newChild;
  21095. newChild.return = workInProgress;
  21096. while (currentChild.sibling !== null) {
  21097. currentChild = currentChild.sibling;
  21098. newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime);
  21099. newChild.return = workInProgress;
  21100. }
  21101. newChild.sibling = null;
  21102. }
  21103. // Reset a workInProgress child set to prepare it for a second pass.
  21104. function resetChildFibers(workInProgress, renderExpirationTime) {
  21105. var child = workInProgress.child;
  21106. while (child !== null) {
  21107. resetWorkInProgress(child, renderExpirationTime);
  21108. child = child.sibling;
  21109. }
  21110. }
  21111. var NO_CONTEXT = {};
  21112. var contextStackCursor$1 = createCursor(NO_CONTEXT);
  21113. var contextFiberStackCursor = createCursor(NO_CONTEXT);
  21114. var rootInstanceStackCursor = createCursor(NO_CONTEXT);
  21115. function requiredContext(c) {
  21116. (function () {
  21117. if (!(c !== NO_CONTEXT)) {
  21118. {
  21119. throw ReactError(Error('Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.'));
  21120. }
  21121. }
  21122. })();
  21123. return c;
  21124. }
  21125. function getRootHostContainer() {
  21126. var rootInstance = requiredContext(rootInstanceStackCursor.current);
  21127. return rootInstance;
  21128. }
  21129. function pushHostContainer(fiber, nextRootInstance) {
  21130. // Push current root instance onto the stack;
  21131. // This allows us to reset root when portals are popped.
  21132. push(rootInstanceStackCursor, nextRootInstance, fiber);
  21133. // Track the context and the Fiber that provided it.
  21134. // This enables us to pop only Fibers that provide unique contexts.
  21135. push(contextFiberStackCursor, fiber, fiber);
  21136. // Finally, we need to push the host context to the stack.
  21137. // However, we can't just call getRootHostContext() and push it because
  21138. // we'd have a different number of entries on the stack depending on
  21139. // whether getRootHostContext() throws somewhere in renderer code or not.
  21140. // So we push an empty value first. This lets us safely unwind on errors.
  21141. push(contextStackCursor$1, NO_CONTEXT, fiber);
  21142. var nextRootContext = getRootHostContext(nextRootInstance);
  21143. // Now that we know this function doesn't throw, replace it.
  21144. pop(contextStackCursor$1, fiber);
  21145. push(contextStackCursor$1, nextRootContext, fiber);
  21146. }
  21147. function popHostContainer(fiber) {
  21148. pop(contextStackCursor$1, fiber);
  21149. pop(contextFiberStackCursor, fiber);
  21150. pop(rootInstanceStackCursor, fiber);
  21151. }
  21152. function getHostContext() {
  21153. var context = requiredContext(contextStackCursor$1.current);
  21154. return context;
  21155. }
  21156. function pushHostContext(fiber) {
  21157. var rootInstance = requiredContext(rootInstanceStackCursor.current);
  21158. var context = requiredContext(contextStackCursor$1.current);
  21159. var nextContext = getChildHostContext(context, fiber.type, rootInstance);
  21160. // Don't push this Fiber's context unless it's unique.
  21161. if (context === nextContext) {
  21162. return;
  21163. }
  21164. // Track the context and the Fiber that provided it.
  21165. // This enables us to pop only Fibers that provide unique contexts.
  21166. push(contextFiberStackCursor, fiber, fiber);
  21167. push(contextStackCursor$1, nextContext, fiber);
  21168. }
  21169. function popHostContext(fiber) {
  21170. // Do not pop unless this Fiber provided the current context.
  21171. // pushHostContext() only pushes Fibers that provide unique contexts.
  21172. if (contextFiberStackCursor.current !== fiber) {
  21173. return;
  21174. }
  21175. pop(contextStackCursor$1, fiber);
  21176. pop(contextFiberStackCursor, fiber);
  21177. }
  21178. var DefaultSuspenseContext = 0;
  21179. // The Suspense Context is split into two parts. The lower bits is
  21180. // inherited deeply down the subtree. The upper bits only affect
  21181. // this immediate suspense boundary and gets reset each new
  21182. // boundary or suspense list.
  21183. var SubtreeSuspenseContextMask = 1;
  21184. // Subtree Flags:
  21185. // InvisibleParentSuspenseContext indicates that one of our parent Suspense
  21186. // boundaries is not currently showing visible main content.
  21187. // Either because it is already showing a fallback or is not mounted at all.
  21188. // We can use this to determine if it is desirable to trigger a fallback at
  21189. // the parent. If not, then we might need to trigger undesirable boundaries
  21190. // and/or suspend the commit to avoid hiding the parent content.
  21191. var InvisibleParentSuspenseContext = 1;
  21192. // Shallow Flags:
  21193. // ForceSuspenseFallback can be used by SuspenseList to force newly added
  21194. // items into their fallback state during one of the render passes.
  21195. var ForceSuspenseFallback = 2;
  21196. var suspenseStackCursor = createCursor(DefaultSuspenseContext);
  21197. function hasSuspenseContext(parentContext, flag) {
  21198. return (parentContext & flag) !== 0;
  21199. }
  21200. function setDefaultShallowSuspenseContext(parentContext) {
  21201. return parentContext & SubtreeSuspenseContextMask;
  21202. }
  21203. function setShallowSuspenseContext(parentContext, shallowContext) {
  21204. return parentContext & SubtreeSuspenseContextMask | shallowContext;
  21205. }
  21206. function addSubtreeSuspenseContext(parentContext, subtreeContext) {
  21207. return parentContext | subtreeContext;
  21208. }
  21209. function pushSuspenseContext(fiber, newContext) {
  21210. push(suspenseStackCursor, newContext, fiber);
  21211. }
  21212. function popSuspenseContext(fiber) {
  21213. pop(suspenseStackCursor, fiber);
  21214. }
  21215. // TODO: This is now an empty object. Should we switch this to a boolean?
  21216. // Alternatively we can make this use an effect tag similar to SuspenseList.
  21217. function shouldCaptureSuspense(workInProgress, hasInvisibleParent) {
  21218. // If it was the primary children that just suspended, capture and render the
  21219. var nextState = workInProgress.memoizedState;
  21220. if (nextState !== null) {
  21221. return false;
  21222. }
  21223. var props = workInProgress.memoizedProps;
  21224. // In order to capture, the Suspense component must have a fallback prop.
  21225. if (props.fallback === undefined) {
  21226. return false;
  21227. }
  21228. // Regular boundaries always capture.
  21229. if (props.unstable_avoidThisFallback !== true) {
  21230. return true;
  21231. }
  21232. // If it's a boundary we should avoid, then we prefer to bubble up to the
  21233. // parent boundary if it is currently invisible.
  21234. if (hasInvisibleParent) {
  21235. return false;
  21236. }
  21237. // If the parent is not able to handle it, we must handle it.
  21238. return true;
  21239. }
  21240. function findFirstSuspended(row) {
  21241. var node = row;
  21242. while (node !== null) {
  21243. if (node.tag === SuspenseComponent) {
  21244. var state = node.memoizedState;
  21245. if (state !== null) {
  21246. return node;
  21247. }
  21248. } else if (node.tag === SuspenseListComponent &&
  21249. // revealOrder undefined can't be trusted because it don't
  21250. // keep track of whether it suspended or not.
  21251. node.memoizedProps.revealOrder !== undefined) {
  21252. var didSuspend = (node.effectTag & DidCapture) !== NoEffect;
  21253. if (didSuspend) {
  21254. return node;
  21255. }
  21256. } else if (node.child !== null) {
  21257. node.child.return = node;
  21258. node = node.child;
  21259. continue;
  21260. }
  21261. if (node === row) {
  21262. return null;
  21263. }
  21264. while (node.sibling === null) {
  21265. if (node.return === null || node.return === row) {
  21266. return null;
  21267. }
  21268. node = node.return;
  21269. }
  21270. node.sibling.return = node.return;
  21271. node = node.sibling;
  21272. }
  21273. return null;
  21274. }
  21275. var NoEffect$1 = /* */0;
  21276. var UnmountSnapshot = /* */2;
  21277. var UnmountMutation = /* */4;
  21278. var MountMutation = /* */8;
  21279. var UnmountLayout = /* */16;
  21280. var MountLayout = /* */32;
  21281. var MountPassive = /* */64;
  21282. var UnmountPassive = /* */128;
  21283. var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
  21284. var didWarnAboutMismatchedHooksForComponent = void 0;
  21285. {
  21286. didWarnAboutMismatchedHooksForComponent = new Set();
  21287. }
  21288. // These are set right before calling the component.
  21289. var renderExpirationTime$1 = NoWork;
  21290. // The work-in-progress fiber. I've named it differently to distinguish it from
  21291. // the work-in-progress hook.
  21292. var currentlyRenderingFiber$1 = null;
  21293. // Hooks are stored as a linked list on the fiber's memoizedState field. The
  21294. // current hook list is the list that belongs to the current fiber. The
  21295. // work-in-progress hook list is a new list that will be added to the
  21296. // work-in-progress fiber.
  21297. var currentHook = null;
  21298. var nextCurrentHook = null;
  21299. var firstWorkInProgressHook = null;
  21300. var workInProgressHook = null;
  21301. var nextWorkInProgressHook = null;
  21302. var remainingExpirationTime = NoWork;
  21303. var componentUpdateQueue = null;
  21304. var sideEffectTag = 0;
  21305. // Updates scheduled during render will trigger an immediate re-render at the
  21306. // end of the current pass. We can't store these updates on the normal queue,
  21307. // because if the work is aborted, they should be discarded. Because this is
  21308. // a relatively rare case, we also don't want to add an additional field to
  21309. // either the hook or queue object types. So we store them in a lazily create
  21310. // map of queue -> render-phase updates, which are discarded once the component
  21311. // completes without re-rendering.
  21312. // Whether an update was scheduled during the currently executing render pass.
  21313. var didScheduleRenderPhaseUpdate = false;
  21314. // Lazily created map of render-phase updates
  21315. var renderPhaseUpdates = null;
  21316. // Counter to prevent infinite loops.
  21317. var numberOfReRenders = 0;
  21318. var RE_RENDER_LIMIT = 25;
  21319. // In DEV, this is the name of the currently executing primitive hook
  21320. var currentHookNameInDev = null;
  21321. // In DEV, this list ensures that hooks are called in the same order between renders.
  21322. // The list stores the order of hooks used during the initial render (mount).
  21323. // Subsequent renders (updates) reference this list.
  21324. var hookTypesDev = null;
  21325. var hookTypesUpdateIndexDev = -1;
  21326. // In DEV, this tracks whether currently rendering component needs to ignore
  21327. // the dependencies for Hooks that need them (e.g. useEffect or useMemo).
  21328. // When true, such Hooks will always be "remounted". Only used during hot reload.
  21329. var ignorePreviousDependencies = false;
  21330. function mountHookTypesDev() {
  21331. {
  21332. var hookName = currentHookNameInDev;
  21333. if (hookTypesDev === null) {
  21334. hookTypesDev = [hookName];
  21335. } else {
  21336. hookTypesDev.push(hookName);
  21337. }
  21338. }
  21339. }
  21340. function updateHookTypesDev() {
  21341. {
  21342. var hookName = currentHookNameInDev;
  21343. if (hookTypesDev !== null) {
  21344. hookTypesUpdateIndexDev++;
  21345. if (hookTypesDev[hookTypesUpdateIndexDev] !== hookName) {
  21346. warnOnHookMismatchInDev(hookName);
  21347. }
  21348. }
  21349. }
  21350. }
  21351. function checkDepsAreArrayDev(deps) {
  21352. {
  21353. if (deps !== undefined && deps !== null && !Array.isArray(deps)) {
  21354. // Verify deps, but only on mount to avoid extra checks.
  21355. // It's unlikely their type would change as usually you define them inline.
  21356. warning$1(false, '%s received a final argument that is not an array (instead, received `%s`). When ' + 'specified, the final argument must be an array.', currentHookNameInDev, typeof deps);
  21357. }
  21358. }
  21359. }
  21360. function warnOnHookMismatchInDev(currentHookName) {
  21361. {
  21362. var componentName = getComponentName(currentlyRenderingFiber$1.type);
  21363. if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) {
  21364. didWarnAboutMismatchedHooksForComponent.add(componentName);
  21365. if (hookTypesDev !== null) {
  21366. var table = '';
  21367. var secondColumnStart = 30;
  21368. for (var i = 0; i <= hookTypesUpdateIndexDev; i++) {
  21369. var oldHookName = hookTypesDev[i];
  21370. var newHookName = i === hookTypesUpdateIndexDev ? currentHookName : oldHookName;
  21371. var row = i + 1 + '. ' + oldHookName;
  21372. // Extra space so second column lines up
  21373. // lol @ IE not supporting String#repeat
  21374. while (row.length < secondColumnStart) {
  21375. row += ' ';
  21376. }
  21377. row += newHookName + '\n';
  21378. table += row;
  21379. }
  21380. warning$1(false, 'React has detected a change in the order of Hooks called by %s. ' + 'This will lead to bugs and errors if not fixed. ' + 'For more information, read the Rules of Hooks: https://fb.me/rules-of-hooks\n\n' + ' Previous render Next render\n' + ' ------------------------------------------------------\n' + '%s' + ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n', componentName, table);
  21381. }
  21382. }
  21383. }
  21384. }
  21385. function throwInvalidHookError() {
  21386. (function () {
  21387. {
  21388. {
  21389. throw ReactError(Error('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://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.'));
  21390. }
  21391. }
  21392. })();
  21393. }
  21394. function areHookInputsEqual(nextDeps, prevDeps) {
  21395. {
  21396. if (ignorePreviousDependencies) {
  21397. // Only true when this component is being hot reloaded.
  21398. return false;
  21399. }
  21400. }
  21401. if (prevDeps === null) {
  21402. {
  21403. warning$1(false, '%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.', currentHookNameInDev);
  21404. }
  21405. return false;
  21406. }
  21407. {
  21408. // Don't bother comparing lengths in prod because these arrays should be
  21409. // passed inline.
  21410. if (nextDeps.length !== prevDeps.length) {
  21411. warning$1(false, 'The final argument passed to %s changed size between renders. The ' + 'order and size of this array must remain constant.\n\n' + 'Previous: %s\n' + 'Incoming: %s', currentHookNameInDev, '[' + prevDeps.join(', ') + ']', '[' + nextDeps.join(', ') + ']');
  21412. }
  21413. }
  21414. for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) {
  21415. if (is(nextDeps[i], prevDeps[i])) {
  21416. continue;
  21417. }
  21418. return false;
  21419. }
  21420. return true;
  21421. }
  21422. function renderWithHooks(current, workInProgress, Component, props, refOrContext, nextRenderExpirationTime) {
  21423. renderExpirationTime$1 = nextRenderExpirationTime;
  21424. currentlyRenderingFiber$1 = workInProgress;
  21425. nextCurrentHook = current !== null ? current.memoizedState : null;
  21426. {
  21427. hookTypesDev = current !== null ? current._debugHookTypes : null;
  21428. hookTypesUpdateIndexDev = -1;
  21429. // Used for hot reloading:
  21430. ignorePreviousDependencies = current !== null && current.type !== workInProgress.type;
  21431. }
  21432. // The following should have already been reset
  21433. // currentHook = null;
  21434. // workInProgressHook = null;
  21435. // remainingExpirationTime = NoWork;
  21436. // componentUpdateQueue = null;
  21437. // didScheduleRenderPhaseUpdate = false;
  21438. // renderPhaseUpdates = null;
  21439. // numberOfReRenders = 0;
  21440. // sideEffectTag = 0;
  21441. // TODO Warn if no hooks are used at all during mount, then some are used during update.
  21442. // Currently we will identify the update render as a mount because nextCurrentHook === null.
  21443. // This is tricky because it's valid for certain types of components (e.g. React.lazy)
  21444. // Using nextCurrentHook to differentiate between mount/update only works if at least one stateful hook is used.
  21445. // Non-stateful hooks (e.g. context) don't get added to memoizedState,
  21446. // so nextCurrentHook would be null during updates and mounts.
  21447. {
  21448. if (nextCurrentHook !== null) {
  21449. ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV;
  21450. } else if (hookTypesDev !== null) {
  21451. // This dispatcher handles an edge case where a component is updating,
  21452. // but no stateful hooks have been used.
  21453. // We want to match the production code behavior (which will use HooksDispatcherOnMount),
  21454. // but with the extra DEV validation to ensure hooks ordering hasn't changed.
  21455. // This dispatcher does that.
  21456. ReactCurrentDispatcher$1.current = HooksDispatcherOnMountWithHookTypesInDEV;
  21457. } else {
  21458. ReactCurrentDispatcher$1.current = HooksDispatcherOnMountInDEV;
  21459. }
  21460. }
  21461. var children = Component(props, refOrContext);
  21462. if (didScheduleRenderPhaseUpdate) {
  21463. do {
  21464. didScheduleRenderPhaseUpdate = false;
  21465. numberOfReRenders += 1;
  21466. // Start over from the beginning of the list
  21467. nextCurrentHook = current !== null ? current.memoizedState : null;
  21468. nextWorkInProgressHook = firstWorkInProgressHook;
  21469. currentHook = null;
  21470. workInProgressHook = null;
  21471. componentUpdateQueue = null;
  21472. {
  21473. // Also validate hook order for cascading updates.
  21474. hookTypesUpdateIndexDev = -1;
  21475. }
  21476. ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV;
  21477. children = Component(props, refOrContext);
  21478. } while (didScheduleRenderPhaseUpdate);
  21479. renderPhaseUpdates = null;
  21480. numberOfReRenders = 0;
  21481. }
  21482. // We can assume the previous dispatcher is always this one, since we set it
  21483. // at the beginning of the render phase and there's no re-entrancy.
  21484. ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;
  21485. var renderedWork = currentlyRenderingFiber$1;
  21486. renderedWork.memoizedState = firstWorkInProgressHook;
  21487. renderedWork.expirationTime = remainingExpirationTime;
  21488. renderedWork.updateQueue = componentUpdateQueue;
  21489. renderedWork.effectTag |= sideEffectTag;
  21490. {
  21491. renderedWork._debugHookTypes = hookTypesDev;
  21492. }
  21493. // This check uses currentHook so that it works the same in DEV and prod bundles.
  21494. // hookTypesDev could catch more cases (e.g. context) but only in DEV bundles.
  21495. var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null;
  21496. renderExpirationTime$1 = NoWork;
  21497. currentlyRenderingFiber$1 = null;
  21498. currentHook = null;
  21499. nextCurrentHook = null;
  21500. firstWorkInProgressHook = null;
  21501. workInProgressHook = null;
  21502. nextWorkInProgressHook = null;
  21503. {
  21504. currentHookNameInDev = null;
  21505. hookTypesDev = null;
  21506. hookTypesUpdateIndexDev = -1;
  21507. }
  21508. remainingExpirationTime = NoWork;
  21509. componentUpdateQueue = null;
  21510. sideEffectTag = 0;
  21511. // These were reset above
  21512. // didScheduleRenderPhaseUpdate = false;
  21513. // renderPhaseUpdates = null;
  21514. // numberOfReRenders = 0;
  21515. (function () {
  21516. if (!!didRenderTooFewHooks) {
  21517. {
  21518. throw ReactError(Error('Rendered fewer hooks than expected. This may be caused by an accidental early return statement.'));
  21519. }
  21520. }
  21521. })();
  21522. return children;
  21523. }
  21524. function bailoutHooks(current, workInProgress, expirationTime) {
  21525. workInProgress.updateQueue = current.updateQueue;
  21526. workInProgress.effectTag &= ~(Passive | Update);
  21527. if (current.expirationTime <= expirationTime) {
  21528. current.expirationTime = NoWork;
  21529. }
  21530. }
  21531. function resetHooks() {
  21532. // We can assume the previous dispatcher is always this one, since we set it
  21533. // at the beginning of the render phase and there's no re-entrancy.
  21534. ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;
  21535. // This is used to reset the state of this module when a component throws.
  21536. // It's also called inside mountIndeterminateComponent if we determine the
  21537. // component is a module-style component.
  21538. renderExpirationTime$1 = NoWork;
  21539. currentlyRenderingFiber$1 = null;
  21540. currentHook = null;
  21541. nextCurrentHook = null;
  21542. firstWorkInProgressHook = null;
  21543. workInProgressHook = null;
  21544. nextWorkInProgressHook = null;
  21545. {
  21546. hookTypesDev = null;
  21547. hookTypesUpdateIndexDev = -1;
  21548. currentHookNameInDev = null;
  21549. }
  21550. remainingExpirationTime = NoWork;
  21551. componentUpdateQueue = null;
  21552. sideEffectTag = 0;
  21553. didScheduleRenderPhaseUpdate = false;
  21554. renderPhaseUpdates = null;
  21555. numberOfReRenders = 0;
  21556. }
  21557. function mountWorkInProgressHook() {
  21558. var hook = {
  21559. memoizedState: null,
  21560. baseState: null,
  21561. queue: null,
  21562. baseUpdate: null,
  21563. next: null
  21564. };
  21565. if (workInProgressHook === null) {
  21566. // This is the first hook in the list
  21567. firstWorkInProgressHook = workInProgressHook = hook;
  21568. } else {
  21569. // Append to the end of the list
  21570. workInProgressHook = workInProgressHook.next = hook;
  21571. }
  21572. return workInProgressHook;
  21573. }
  21574. function updateWorkInProgressHook() {
  21575. // This function is used both for updates and for re-renders triggered by a
  21576. // render phase update. It assumes there is either a current hook we can
  21577. // clone, or a work-in-progress hook from a previous render pass that we can
  21578. // use as a base. When we reach the end of the base list, we must switch to
  21579. // the dispatcher used for mounts.
  21580. if (nextWorkInProgressHook !== null) {
  21581. // There's already a work-in-progress. Reuse it.
  21582. workInProgressHook = nextWorkInProgressHook;
  21583. nextWorkInProgressHook = workInProgressHook.next;
  21584. currentHook = nextCurrentHook;
  21585. nextCurrentHook = currentHook !== null ? currentHook.next : null;
  21586. } else {
  21587. // Clone from the current hook.
  21588. (function () {
  21589. if (!(nextCurrentHook !== null)) {
  21590. {
  21591. throw ReactError(Error('Rendered more hooks than during the previous render.'));
  21592. }
  21593. }
  21594. })();
  21595. currentHook = nextCurrentHook;
  21596. var newHook = {
  21597. memoizedState: currentHook.memoizedState,
  21598. baseState: currentHook.baseState,
  21599. queue: currentHook.queue,
  21600. baseUpdate: currentHook.baseUpdate,
  21601. next: null
  21602. };
  21603. if (workInProgressHook === null) {
  21604. // This is the first hook in the list.
  21605. workInProgressHook = firstWorkInProgressHook = newHook;
  21606. } else {
  21607. // Append to the end of the list.
  21608. workInProgressHook = workInProgressHook.next = newHook;
  21609. }
  21610. nextCurrentHook = currentHook.next;
  21611. }
  21612. return workInProgressHook;
  21613. }
  21614. function createFunctionComponentUpdateQueue() {
  21615. return {
  21616. lastEffect: null
  21617. };
  21618. }
  21619. function basicStateReducer(state, action) {
  21620. return typeof action === 'function' ? action(state) : action;
  21621. }
  21622. function mountReducer(reducer, initialArg, init) {
  21623. var hook = mountWorkInProgressHook();
  21624. var initialState = void 0;
  21625. if (init !== undefined) {
  21626. initialState = init(initialArg);
  21627. } else {
  21628. initialState = initialArg;
  21629. }
  21630. hook.memoizedState = hook.baseState = initialState;
  21631. var queue = hook.queue = {
  21632. last: null,
  21633. dispatch: null,
  21634. lastRenderedReducer: reducer,
  21635. lastRenderedState: initialState
  21636. };
  21637. var dispatch = queue.dispatch = dispatchAction.bind(null,
  21638. // Flow doesn't know this is non-null, but we do.
  21639. currentlyRenderingFiber$1, queue);
  21640. return [hook.memoizedState, dispatch];
  21641. }
  21642. function updateReducer(reducer, initialArg, init) {
  21643. var hook = updateWorkInProgressHook();
  21644. var queue = hook.queue;
  21645. (function () {
  21646. if (!(queue !== null)) {
  21647. {
  21648. throw ReactError(Error('Should have a queue. This is likely a bug in React. Please file an issue.'));
  21649. }
  21650. }
  21651. })();
  21652. queue.lastRenderedReducer = reducer;
  21653. if (numberOfReRenders > 0) {
  21654. // This is a re-render. Apply the new render phase updates to the previous
  21655. var _dispatch = queue.dispatch;
  21656. if (renderPhaseUpdates !== null) {
  21657. // Render phase updates are stored in a map of queue -> linked list
  21658. var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);
  21659. if (firstRenderPhaseUpdate !== undefined) {
  21660. renderPhaseUpdates.delete(queue);
  21661. var newState = hook.memoizedState;
  21662. var update = firstRenderPhaseUpdate;
  21663. do {
  21664. // Process this render phase update. We don't have to check the
  21665. // priority because it will always be the same as the current
  21666. // render's.
  21667. var _action = update.action;
  21668. newState = reducer(newState, _action);
  21669. update = update.next;
  21670. } while (update !== null);
  21671. // Mark that the fiber performed work, but only if the new state is
  21672. // different from the current state.
  21673. if (!is(newState, hook.memoizedState)) {
  21674. markWorkInProgressReceivedUpdate();
  21675. }
  21676. hook.memoizedState = newState;
  21677. // Don't persist the state accumulated from the render phase updates to
  21678. // the base state unless the queue is empty.
  21679. // TODO: Not sure if this is the desired semantics, but it's what we
  21680. // do for gDSFP. I can't remember why.
  21681. if (hook.baseUpdate === queue.last) {
  21682. hook.baseState = newState;
  21683. }
  21684. queue.lastRenderedState = newState;
  21685. return [newState, _dispatch];
  21686. }
  21687. }
  21688. return [hook.memoizedState, _dispatch];
  21689. }
  21690. // The last update in the entire queue
  21691. var last = queue.last;
  21692. // The last update that is part of the base state.
  21693. var baseUpdate = hook.baseUpdate;
  21694. var baseState = hook.baseState;
  21695. // Find the first unprocessed update.
  21696. var first = void 0;
  21697. if (baseUpdate !== null) {
  21698. if (last !== null) {
  21699. // For the first update, the queue is a circular linked list where
  21700. // `queue.last.next = queue.first`. Once the first update commits, and
  21701. // the `baseUpdate` is no longer empty, we can unravel the list.
  21702. last.next = null;
  21703. }
  21704. first = baseUpdate.next;
  21705. } else {
  21706. first = last !== null ? last.next : null;
  21707. }
  21708. if (first !== null) {
  21709. var _newState = baseState;
  21710. var newBaseState = null;
  21711. var newBaseUpdate = null;
  21712. var prevUpdate = baseUpdate;
  21713. var _update = first;
  21714. var didSkip = false;
  21715. do {
  21716. var updateExpirationTime = _update.expirationTime;
  21717. if (updateExpirationTime < renderExpirationTime$1) {
  21718. // Priority is insufficient. Skip this update. If this is the first
  21719. // skipped update, the previous update/state is the new base
  21720. // update/state.
  21721. if (!didSkip) {
  21722. didSkip = true;
  21723. newBaseUpdate = prevUpdate;
  21724. newBaseState = _newState;
  21725. }
  21726. // Update the remaining priority in the queue.
  21727. if (updateExpirationTime > remainingExpirationTime) {
  21728. remainingExpirationTime = updateExpirationTime;
  21729. }
  21730. } else {
  21731. // This update does have sufficient priority.
  21732. // Mark the event time of this update as relevant to this render pass.
  21733. // TODO: This should ideally use the true event time of this update rather than
  21734. // its priority which is a derived and not reverseable value.
  21735. // TODO: We should skip this update if it was already committed but currently
  21736. // we have no way of detecting the difference between a committed and suspended
  21737. // update here.
  21738. markRenderEventTimeAndConfig(updateExpirationTime, _update.suspenseConfig);
  21739. // Process this update.
  21740. if (_update.eagerReducer === reducer) {
  21741. // If this update was processed eagerly, and its reducer matches the
  21742. // current reducer, we can use the eagerly computed state.
  21743. _newState = _update.eagerState;
  21744. } else {
  21745. var _action2 = _update.action;
  21746. _newState = reducer(_newState, _action2);
  21747. }
  21748. }
  21749. prevUpdate = _update;
  21750. _update = _update.next;
  21751. } while (_update !== null && _update !== first);
  21752. if (!didSkip) {
  21753. newBaseUpdate = prevUpdate;
  21754. newBaseState = _newState;
  21755. }
  21756. // Mark that the fiber performed work, but only if the new state is
  21757. // different from the current state.
  21758. if (!is(_newState, hook.memoizedState)) {
  21759. markWorkInProgressReceivedUpdate();
  21760. }
  21761. hook.memoizedState = _newState;
  21762. hook.baseUpdate = newBaseUpdate;
  21763. hook.baseState = newBaseState;
  21764. queue.lastRenderedState = _newState;
  21765. }
  21766. var dispatch = queue.dispatch;
  21767. return [hook.memoizedState, dispatch];
  21768. }
  21769. function mountState(initialState) {
  21770. var hook = mountWorkInProgressHook();
  21771. if (typeof initialState === 'function') {
  21772. initialState = initialState();
  21773. }
  21774. hook.memoizedState = hook.baseState = initialState;
  21775. var queue = hook.queue = {
  21776. last: null,
  21777. dispatch: null,
  21778. lastRenderedReducer: basicStateReducer,
  21779. lastRenderedState: initialState
  21780. };
  21781. var dispatch = queue.dispatch = dispatchAction.bind(null,
  21782. // Flow doesn't know this is non-null, but we do.
  21783. currentlyRenderingFiber$1, queue);
  21784. return [hook.memoizedState, dispatch];
  21785. }
  21786. function updateState(initialState) {
  21787. return updateReducer(basicStateReducer, initialState);
  21788. }
  21789. function pushEffect(tag, create, destroy, deps) {
  21790. var effect = {
  21791. tag: tag,
  21792. create: create,
  21793. destroy: destroy,
  21794. deps: deps,
  21795. // Circular
  21796. next: null
  21797. };
  21798. if (componentUpdateQueue === null) {
  21799. componentUpdateQueue = createFunctionComponentUpdateQueue();
  21800. componentUpdateQueue.lastEffect = effect.next = effect;
  21801. } else {
  21802. var _lastEffect = componentUpdateQueue.lastEffect;
  21803. if (_lastEffect === null) {
  21804. componentUpdateQueue.lastEffect = effect.next = effect;
  21805. } else {
  21806. var firstEffect = _lastEffect.next;
  21807. _lastEffect.next = effect;
  21808. effect.next = firstEffect;
  21809. componentUpdateQueue.lastEffect = effect;
  21810. }
  21811. }
  21812. return effect;
  21813. }
  21814. function mountRef(initialValue) {
  21815. var hook = mountWorkInProgressHook();
  21816. var ref = { current: initialValue };
  21817. {
  21818. Object.seal(ref);
  21819. }
  21820. hook.memoizedState = ref;
  21821. return ref;
  21822. }
  21823. function updateRef(initialValue) {
  21824. var hook = updateWorkInProgressHook();
  21825. return hook.memoizedState;
  21826. }
  21827. function mountEffectImpl(fiberEffectTag, hookEffectTag, create, deps) {
  21828. var hook = mountWorkInProgressHook();
  21829. var nextDeps = deps === undefined ? null : deps;
  21830. sideEffectTag |= fiberEffectTag;
  21831. hook.memoizedState = pushEffect(hookEffectTag, create, undefined, nextDeps);
  21832. }
  21833. function updateEffectImpl(fiberEffectTag, hookEffectTag, create, deps) {
  21834. var hook = updateWorkInProgressHook();
  21835. var nextDeps = deps === undefined ? null : deps;
  21836. var destroy = undefined;
  21837. if (currentHook !== null) {
  21838. var prevEffect = currentHook.memoizedState;
  21839. destroy = prevEffect.destroy;
  21840. if (nextDeps !== null) {
  21841. var prevDeps = prevEffect.deps;
  21842. if (areHookInputsEqual(nextDeps, prevDeps)) {
  21843. pushEffect(NoEffect$1, create, destroy, nextDeps);
  21844. return;
  21845. }
  21846. }
  21847. }
  21848. sideEffectTag |= fiberEffectTag;
  21849. hook.memoizedState = pushEffect(hookEffectTag, create, destroy, nextDeps);
  21850. }
  21851. function mountEffect(create, deps) {
  21852. {
  21853. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  21854. if ('undefined' !== typeof jest) {
  21855. warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);
  21856. }
  21857. }
  21858. return mountEffectImpl(Update | Passive, UnmountPassive | MountPassive, create, deps);
  21859. }
  21860. function updateEffect(create, deps) {
  21861. {
  21862. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  21863. if ('undefined' !== typeof jest) {
  21864. warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);
  21865. }
  21866. }
  21867. return updateEffectImpl(Update | Passive, UnmountPassive | MountPassive, create, deps);
  21868. }
  21869. function mountLayoutEffect(create, deps) {
  21870. return mountEffectImpl(Update, UnmountMutation | MountLayout, create, deps);
  21871. }
  21872. function updateLayoutEffect(create, deps) {
  21873. return updateEffectImpl(Update, UnmountMutation | MountLayout, create, deps);
  21874. }
  21875. function imperativeHandleEffect(create, ref) {
  21876. if (typeof ref === 'function') {
  21877. var refCallback = ref;
  21878. var _inst = create();
  21879. refCallback(_inst);
  21880. return function () {
  21881. refCallback(null);
  21882. };
  21883. } else if (ref !== null && ref !== undefined) {
  21884. var refObject = ref;
  21885. {
  21886. !refObject.hasOwnProperty('current') ? warning$1(false, 'Expected useImperativeHandle() first argument to either be a ' + 'ref callback or React.createRef() object. Instead received: %s.', 'an object with keys {' + Object.keys(refObject).join(', ') + '}') : void 0;
  21887. }
  21888. var _inst2 = create();
  21889. refObject.current = _inst2;
  21890. return function () {
  21891. refObject.current = null;
  21892. };
  21893. }
  21894. }
  21895. function mountImperativeHandle(ref, create, deps) {
  21896. {
  21897. !(typeof create === 'function') ? warning$1(false, 'Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null') : void 0;
  21898. }
  21899. // TODO: If deps are provided, should we skip comparing the ref itself?
  21900. var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
  21901. return mountEffectImpl(Update, UnmountMutation | MountLayout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
  21902. }
  21903. function updateImperativeHandle(ref, create, deps) {
  21904. {
  21905. !(typeof create === 'function') ? warning$1(false, 'Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null') : void 0;
  21906. }
  21907. // TODO: If deps are provided, should we skip comparing the ref itself?
  21908. var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
  21909. return updateEffectImpl(Update, UnmountMutation | MountLayout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
  21910. }
  21911. function mountDebugValue(value, formatterFn) {
  21912. // This hook is normally a no-op.
  21913. // The react-debug-hooks package injects its own implementation
  21914. // so that e.g. DevTools can display custom hook values.
  21915. }
  21916. var updateDebugValue = mountDebugValue;
  21917. function mountCallback(callback, deps) {
  21918. var hook = mountWorkInProgressHook();
  21919. var nextDeps = deps === undefined ? null : deps;
  21920. hook.memoizedState = [callback, nextDeps];
  21921. return callback;
  21922. }
  21923. function updateCallback(callback, deps) {
  21924. var hook = updateWorkInProgressHook();
  21925. var nextDeps = deps === undefined ? null : deps;
  21926. var prevState = hook.memoizedState;
  21927. if (prevState !== null) {
  21928. if (nextDeps !== null) {
  21929. var prevDeps = prevState[1];
  21930. if (areHookInputsEqual(nextDeps, prevDeps)) {
  21931. return prevState[0];
  21932. }
  21933. }
  21934. }
  21935. hook.memoizedState = [callback, nextDeps];
  21936. return callback;
  21937. }
  21938. function mountMemo(nextCreate, deps) {
  21939. var hook = mountWorkInProgressHook();
  21940. var nextDeps = deps === undefined ? null : deps;
  21941. var nextValue = nextCreate();
  21942. hook.memoizedState = [nextValue, nextDeps];
  21943. return nextValue;
  21944. }
  21945. function updateMemo(nextCreate, deps) {
  21946. var hook = updateWorkInProgressHook();
  21947. var nextDeps = deps === undefined ? null : deps;
  21948. var prevState = hook.memoizedState;
  21949. if (prevState !== null) {
  21950. // Assume these are defined. If they're not, areHookInputsEqual will warn.
  21951. if (nextDeps !== null) {
  21952. var prevDeps = prevState[1];
  21953. if (areHookInputsEqual(nextDeps, prevDeps)) {
  21954. return prevState[0];
  21955. }
  21956. }
  21957. }
  21958. var nextValue = nextCreate();
  21959. hook.memoizedState = [nextValue, nextDeps];
  21960. return nextValue;
  21961. }
  21962. function dispatchAction(fiber, queue, action) {
  21963. (function () {
  21964. if (!(numberOfReRenders < RE_RENDER_LIMIT)) {
  21965. {
  21966. throw ReactError(Error('Too many re-renders. React limits the number of renders to prevent an infinite loop.'));
  21967. }
  21968. }
  21969. })();
  21970. {
  21971. !(arguments.length <= 3) ? warning$1(false, "State updates from the useState() and useReducer() Hooks don't support the " + 'second callback argument. To execute a side effect after ' + 'rendering, declare it in the component body with useEffect().') : void 0;
  21972. }
  21973. var alternate = fiber.alternate;
  21974. if (fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1) {
  21975. // This is a render phase update. Stash it in a lazily-created map of
  21976. // queue -> linked list of updates. After this render pass, we'll restart
  21977. // and apply the stashed updates on top of the work-in-progress hook.
  21978. didScheduleRenderPhaseUpdate = true;
  21979. var update = {
  21980. expirationTime: renderExpirationTime$1,
  21981. suspenseConfig: null,
  21982. action: action,
  21983. eagerReducer: null,
  21984. eagerState: null,
  21985. next: null
  21986. };
  21987. {
  21988. update.priority = getCurrentPriorityLevel();
  21989. }
  21990. if (renderPhaseUpdates === null) {
  21991. renderPhaseUpdates = new Map();
  21992. }
  21993. var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);
  21994. if (firstRenderPhaseUpdate === undefined) {
  21995. renderPhaseUpdates.set(queue, update);
  21996. } else {
  21997. // Append the update to the end of the list.
  21998. var lastRenderPhaseUpdate = firstRenderPhaseUpdate;
  21999. while (lastRenderPhaseUpdate.next !== null) {
  22000. lastRenderPhaseUpdate = lastRenderPhaseUpdate.next;
  22001. }
  22002. lastRenderPhaseUpdate.next = update;
  22003. }
  22004. } else {
  22005. if (revertPassiveEffectsChange) {
  22006. flushPassiveEffects();
  22007. }
  22008. var currentTime = requestCurrentTime();
  22009. var _suspenseConfig = requestCurrentSuspenseConfig();
  22010. var _expirationTime = computeExpirationForFiber(currentTime, fiber, _suspenseConfig);
  22011. var _update2 = {
  22012. expirationTime: _expirationTime,
  22013. suspenseConfig: _suspenseConfig,
  22014. action: action,
  22015. eagerReducer: null,
  22016. eagerState: null,
  22017. next: null
  22018. };
  22019. {
  22020. _update2.priority = getCurrentPriorityLevel();
  22021. }
  22022. // Append the update to the end of the list.
  22023. var _last = queue.last;
  22024. if (_last === null) {
  22025. // This is the first update. Create a circular list.
  22026. _update2.next = _update2;
  22027. } else {
  22028. var first = _last.next;
  22029. if (first !== null) {
  22030. // Still circular.
  22031. _update2.next = first;
  22032. }
  22033. _last.next = _update2;
  22034. }
  22035. queue.last = _update2;
  22036. if (fiber.expirationTime === NoWork && (alternate === null || alternate.expirationTime === NoWork)) {
  22037. // The queue is currently empty, which means we can eagerly compute the
  22038. // next state before entering the render phase. If the new state is the
  22039. // same as the current state, we may be able to bail out entirely.
  22040. var _lastRenderedReducer = queue.lastRenderedReducer;
  22041. if (_lastRenderedReducer !== null) {
  22042. var prevDispatcher = void 0;
  22043. {
  22044. prevDispatcher = ReactCurrentDispatcher$1.current;
  22045. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  22046. }
  22047. try {
  22048. var currentState = queue.lastRenderedState;
  22049. var _eagerState = _lastRenderedReducer(currentState, action);
  22050. // Stash the eagerly computed state, and the reducer used to compute
  22051. // it, on the update object. If the reducer hasn't changed by the
  22052. // time we enter the render phase, then the eager state can be used
  22053. // without calling the reducer again.
  22054. _update2.eagerReducer = _lastRenderedReducer;
  22055. _update2.eagerState = _eagerState;
  22056. if (is(_eagerState, currentState)) {
  22057. // Fast path. We can bail out without scheduling React to re-render.
  22058. // It's still possible that we'll need to rebase this update later,
  22059. // if the component re-renders for a different reason and by that
  22060. // time the reducer has changed.
  22061. return;
  22062. }
  22063. } catch (error) {
  22064. // Suppress the error. It will throw again in the render phase.
  22065. } finally {
  22066. {
  22067. ReactCurrentDispatcher$1.current = prevDispatcher;
  22068. }
  22069. }
  22070. }
  22071. }
  22072. {
  22073. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  22074. if ('undefined' !== typeof jest) {
  22075. warnIfNotScopedWithMatchingAct(fiber);
  22076. warnIfNotCurrentlyActingUpdatesInDev(fiber);
  22077. }
  22078. }
  22079. scheduleWork(fiber, _expirationTime);
  22080. }
  22081. }
  22082. var ContextOnlyDispatcher = {
  22083. readContext: readContext,
  22084. useCallback: throwInvalidHookError,
  22085. useContext: throwInvalidHookError,
  22086. useEffect: throwInvalidHookError,
  22087. useImperativeHandle: throwInvalidHookError,
  22088. useLayoutEffect: throwInvalidHookError,
  22089. useMemo: throwInvalidHookError,
  22090. useReducer: throwInvalidHookError,
  22091. useRef: throwInvalidHookError,
  22092. useState: throwInvalidHookError,
  22093. useDebugValue: throwInvalidHookError,
  22094. useResponder: throwInvalidHookError
  22095. };
  22096. var HooksDispatcherOnMountInDEV = null;
  22097. var HooksDispatcherOnMountWithHookTypesInDEV = null;
  22098. var HooksDispatcherOnUpdateInDEV = null;
  22099. var InvalidNestedHooksDispatcherOnMountInDEV = null;
  22100. var InvalidNestedHooksDispatcherOnUpdateInDEV = null;
  22101. {
  22102. var warnInvalidContextAccess = function () {
  22103. warning$1(false, '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().');
  22104. };
  22105. var warnInvalidHookAccess = function () {
  22106. warning$1(false, '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://fb.me/rules-of-hooks');
  22107. };
  22108. HooksDispatcherOnMountInDEV = {
  22109. readContext: function (context, observedBits) {
  22110. return readContext(context, observedBits);
  22111. },
  22112. useCallback: function (callback, deps) {
  22113. currentHookNameInDev = 'useCallback';
  22114. mountHookTypesDev();
  22115. checkDepsAreArrayDev(deps);
  22116. return mountCallback(callback, deps);
  22117. },
  22118. useContext: function (context, observedBits) {
  22119. currentHookNameInDev = 'useContext';
  22120. mountHookTypesDev();
  22121. return readContext(context, observedBits);
  22122. },
  22123. useEffect: function (create, deps) {
  22124. currentHookNameInDev = 'useEffect';
  22125. mountHookTypesDev();
  22126. checkDepsAreArrayDev(deps);
  22127. return mountEffect(create, deps);
  22128. },
  22129. useImperativeHandle: function (ref, create, deps) {
  22130. currentHookNameInDev = 'useImperativeHandle';
  22131. mountHookTypesDev();
  22132. checkDepsAreArrayDev(deps);
  22133. return mountImperativeHandle(ref, create, deps);
  22134. },
  22135. useLayoutEffect: function (create, deps) {
  22136. currentHookNameInDev = 'useLayoutEffect';
  22137. mountHookTypesDev();
  22138. checkDepsAreArrayDev(deps);
  22139. return mountLayoutEffect(create, deps);
  22140. },
  22141. useMemo: function (create, deps) {
  22142. currentHookNameInDev = 'useMemo';
  22143. mountHookTypesDev();
  22144. checkDepsAreArrayDev(deps);
  22145. var prevDispatcher = ReactCurrentDispatcher$1.current;
  22146. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  22147. try {
  22148. return mountMemo(create, deps);
  22149. } finally {
  22150. ReactCurrentDispatcher$1.current = prevDispatcher;
  22151. }
  22152. },
  22153. useReducer: function (reducer, initialArg, init) {
  22154. currentHookNameInDev = 'useReducer';
  22155. mountHookTypesDev();
  22156. var prevDispatcher = ReactCurrentDispatcher$1.current;
  22157. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  22158. try {
  22159. return mountReducer(reducer, initialArg, init);
  22160. } finally {
  22161. ReactCurrentDispatcher$1.current = prevDispatcher;
  22162. }
  22163. },
  22164. useRef: function (initialValue) {
  22165. currentHookNameInDev = 'useRef';
  22166. mountHookTypesDev();
  22167. return mountRef(initialValue);
  22168. },
  22169. useState: function (initialState) {
  22170. currentHookNameInDev = 'useState';
  22171. mountHookTypesDev();
  22172. var prevDispatcher = ReactCurrentDispatcher$1.current;
  22173. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  22174. try {
  22175. return mountState(initialState);
  22176. } finally {
  22177. ReactCurrentDispatcher$1.current = prevDispatcher;
  22178. }
  22179. },
  22180. useDebugValue: function (value, formatterFn) {
  22181. currentHookNameInDev = 'useDebugValue';
  22182. mountHookTypesDev();
  22183. return mountDebugValue(value, formatterFn);
  22184. },
  22185. useResponder: function (responder, props) {
  22186. currentHookNameInDev = 'useResponder';
  22187. mountHookTypesDev();
  22188. return createResponderListener(responder, props);
  22189. }
  22190. };
  22191. HooksDispatcherOnMountWithHookTypesInDEV = {
  22192. readContext: function (context, observedBits) {
  22193. return readContext(context, observedBits);
  22194. },
  22195. useCallback: function (callback, deps) {
  22196. currentHookNameInDev = 'useCallback';
  22197. updateHookTypesDev();
  22198. return mountCallback(callback, deps);
  22199. },
  22200. useContext: function (context, observedBits) {
  22201. currentHookNameInDev = 'useContext';
  22202. updateHookTypesDev();
  22203. return readContext(context, observedBits);
  22204. },
  22205. useEffect: function (create, deps) {
  22206. currentHookNameInDev = 'useEffect';
  22207. updateHookTypesDev();
  22208. return mountEffect(create, deps);
  22209. },
  22210. useImperativeHandle: function (ref, create, deps) {
  22211. currentHookNameInDev = 'useImperativeHandle';
  22212. updateHookTypesDev();
  22213. return mountImperativeHandle(ref, create, deps);
  22214. },
  22215. useLayoutEffect: function (create, deps) {
  22216. currentHookNameInDev = 'useLayoutEffect';
  22217. updateHookTypesDev();
  22218. return mountLayoutEffect(create, deps);
  22219. },
  22220. useMemo: function (create, deps) {
  22221. currentHookNameInDev = 'useMemo';
  22222. updateHookTypesDev();
  22223. var prevDispatcher = ReactCurrentDispatcher$1.current;
  22224. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  22225. try {
  22226. return mountMemo(create, deps);
  22227. } finally {
  22228. ReactCurrentDispatcher$1.current = prevDispatcher;
  22229. }
  22230. },
  22231. useReducer: function (reducer, initialArg, init) {
  22232. currentHookNameInDev = 'useReducer';
  22233. updateHookTypesDev();
  22234. var prevDispatcher = ReactCurrentDispatcher$1.current;
  22235. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  22236. try {
  22237. return mountReducer(reducer, initialArg, init);
  22238. } finally {
  22239. ReactCurrentDispatcher$1.current = prevDispatcher;
  22240. }
  22241. },
  22242. useRef: function (initialValue) {
  22243. currentHookNameInDev = 'useRef';
  22244. updateHookTypesDev();
  22245. return mountRef(initialValue);
  22246. },
  22247. useState: function (initialState) {
  22248. currentHookNameInDev = 'useState';
  22249. updateHookTypesDev();
  22250. var prevDispatcher = ReactCurrentDispatcher$1.current;
  22251. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  22252. try {
  22253. return mountState(initialState);
  22254. } finally {
  22255. ReactCurrentDispatcher$1.current = prevDispatcher;
  22256. }
  22257. },
  22258. useDebugValue: function (value, formatterFn) {
  22259. currentHookNameInDev = 'useDebugValue';
  22260. updateHookTypesDev();
  22261. return mountDebugValue(value, formatterFn);
  22262. },
  22263. useResponder: function (responder, props) {
  22264. currentHookNameInDev = 'useResponder';
  22265. updateHookTypesDev();
  22266. return createResponderListener(responder, props);
  22267. }
  22268. };
  22269. HooksDispatcherOnUpdateInDEV = {
  22270. readContext: function (context, observedBits) {
  22271. return readContext(context, observedBits);
  22272. },
  22273. useCallback: function (callback, deps) {
  22274. currentHookNameInDev = 'useCallback';
  22275. updateHookTypesDev();
  22276. return updateCallback(callback, deps);
  22277. },
  22278. useContext: function (context, observedBits) {
  22279. currentHookNameInDev = 'useContext';
  22280. updateHookTypesDev();
  22281. return readContext(context, observedBits);
  22282. },
  22283. useEffect: function (create, deps) {
  22284. currentHookNameInDev = 'useEffect';
  22285. updateHookTypesDev();
  22286. return updateEffect(create, deps);
  22287. },
  22288. useImperativeHandle: function (ref, create, deps) {
  22289. currentHookNameInDev = 'useImperativeHandle';
  22290. updateHookTypesDev();
  22291. return updateImperativeHandle(ref, create, deps);
  22292. },
  22293. useLayoutEffect: function (create, deps) {
  22294. currentHookNameInDev = 'useLayoutEffect';
  22295. updateHookTypesDev();
  22296. return updateLayoutEffect(create, deps);
  22297. },
  22298. useMemo: function (create, deps) {
  22299. currentHookNameInDev = 'useMemo';
  22300. updateHookTypesDev();
  22301. var prevDispatcher = ReactCurrentDispatcher$1.current;
  22302. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  22303. try {
  22304. return updateMemo(create, deps);
  22305. } finally {
  22306. ReactCurrentDispatcher$1.current = prevDispatcher;
  22307. }
  22308. },
  22309. useReducer: function (reducer, initialArg, init) {
  22310. currentHookNameInDev = 'useReducer';
  22311. updateHookTypesDev();
  22312. var prevDispatcher = ReactCurrentDispatcher$1.current;
  22313. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  22314. try {
  22315. return updateReducer(reducer, initialArg, init);
  22316. } finally {
  22317. ReactCurrentDispatcher$1.current = prevDispatcher;
  22318. }
  22319. },
  22320. useRef: function (initialValue) {
  22321. currentHookNameInDev = 'useRef';
  22322. updateHookTypesDev();
  22323. return updateRef(initialValue);
  22324. },
  22325. useState: function (initialState) {
  22326. currentHookNameInDev = 'useState';
  22327. updateHookTypesDev();
  22328. var prevDispatcher = ReactCurrentDispatcher$1.current;
  22329. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  22330. try {
  22331. return updateState(initialState);
  22332. } finally {
  22333. ReactCurrentDispatcher$1.current = prevDispatcher;
  22334. }
  22335. },
  22336. useDebugValue: function (value, formatterFn) {
  22337. currentHookNameInDev = 'useDebugValue';
  22338. updateHookTypesDev();
  22339. return updateDebugValue(value, formatterFn);
  22340. },
  22341. useResponder: function (responder, props) {
  22342. currentHookNameInDev = 'useResponder';
  22343. updateHookTypesDev();
  22344. return createResponderListener(responder, props);
  22345. }
  22346. };
  22347. InvalidNestedHooksDispatcherOnMountInDEV = {
  22348. readContext: function (context, observedBits) {
  22349. warnInvalidContextAccess();
  22350. return readContext(context, observedBits);
  22351. },
  22352. useCallback: function (callback, deps) {
  22353. currentHookNameInDev = 'useCallback';
  22354. warnInvalidHookAccess();
  22355. mountHookTypesDev();
  22356. return mountCallback(callback, deps);
  22357. },
  22358. useContext: function (context, observedBits) {
  22359. currentHookNameInDev = 'useContext';
  22360. warnInvalidHookAccess();
  22361. mountHookTypesDev();
  22362. return readContext(context, observedBits);
  22363. },
  22364. useEffect: function (create, deps) {
  22365. currentHookNameInDev = 'useEffect';
  22366. warnInvalidHookAccess();
  22367. mountHookTypesDev();
  22368. return mountEffect(create, deps);
  22369. },
  22370. useImperativeHandle: function (ref, create, deps) {
  22371. currentHookNameInDev = 'useImperativeHandle';
  22372. warnInvalidHookAccess();
  22373. mountHookTypesDev();
  22374. return mountImperativeHandle(ref, create, deps);
  22375. },
  22376. useLayoutEffect: function (create, deps) {
  22377. currentHookNameInDev = 'useLayoutEffect';
  22378. warnInvalidHookAccess();
  22379. mountHookTypesDev();
  22380. return mountLayoutEffect(create, deps);
  22381. },
  22382. useMemo: function (create, deps) {
  22383. currentHookNameInDev = 'useMemo';
  22384. warnInvalidHookAccess();
  22385. mountHookTypesDev();
  22386. var prevDispatcher = ReactCurrentDispatcher$1.current;
  22387. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  22388. try {
  22389. return mountMemo(create, deps);
  22390. } finally {
  22391. ReactCurrentDispatcher$1.current = prevDispatcher;
  22392. }
  22393. },
  22394. useReducer: function (reducer, initialArg, init) {
  22395. currentHookNameInDev = 'useReducer';
  22396. warnInvalidHookAccess();
  22397. mountHookTypesDev();
  22398. var prevDispatcher = ReactCurrentDispatcher$1.current;
  22399. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  22400. try {
  22401. return mountReducer(reducer, initialArg, init);
  22402. } finally {
  22403. ReactCurrentDispatcher$1.current = prevDispatcher;
  22404. }
  22405. },
  22406. useRef: function (initialValue) {
  22407. currentHookNameInDev = 'useRef';
  22408. warnInvalidHookAccess();
  22409. mountHookTypesDev();
  22410. return mountRef(initialValue);
  22411. },
  22412. useState: function (initialState) {
  22413. currentHookNameInDev = 'useState';
  22414. warnInvalidHookAccess();
  22415. mountHookTypesDev();
  22416. var prevDispatcher = ReactCurrentDispatcher$1.current;
  22417. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  22418. try {
  22419. return mountState(initialState);
  22420. } finally {
  22421. ReactCurrentDispatcher$1.current = prevDispatcher;
  22422. }
  22423. },
  22424. useDebugValue: function (value, formatterFn) {
  22425. currentHookNameInDev = 'useDebugValue';
  22426. warnInvalidHookAccess();
  22427. mountHookTypesDev();
  22428. return mountDebugValue(value, formatterFn);
  22429. },
  22430. useResponder: function (responder, props) {
  22431. currentHookNameInDev = 'useResponder';
  22432. warnInvalidHookAccess();
  22433. mountHookTypesDev();
  22434. return createResponderListener(responder, props);
  22435. }
  22436. };
  22437. InvalidNestedHooksDispatcherOnUpdateInDEV = {
  22438. readContext: function (context, observedBits) {
  22439. warnInvalidContextAccess();
  22440. return readContext(context, observedBits);
  22441. },
  22442. useCallback: function (callback, deps) {
  22443. currentHookNameInDev = 'useCallback';
  22444. warnInvalidHookAccess();
  22445. updateHookTypesDev();
  22446. return updateCallback(callback, deps);
  22447. },
  22448. useContext: function (context, observedBits) {
  22449. currentHookNameInDev = 'useContext';
  22450. warnInvalidHookAccess();
  22451. updateHookTypesDev();
  22452. return readContext(context, observedBits);
  22453. },
  22454. useEffect: function (create, deps) {
  22455. currentHookNameInDev = 'useEffect';
  22456. warnInvalidHookAccess();
  22457. updateHookTypesDev();
  22458. return updateEffect(create, deps);
  22459. },
  22460. useImperativeHandle: function (ref, create, deps) {
  22461. currentHookNameInDev = 'useImperativeHandle';
  22462. warnInvalidHookAccess();
  22463. updateHookTypesDev();
  22464. return updateImperativeHandle(ref, create, deps);
  22465. },
  22466. useLayoutEffect: function (create, deps) {
  22467. currentHookNameInDev = 'useLayoutEffect';
  22468. warnInvalidHookAccess();
  22469. updateHookTypesDev();
  22470. return updateLayoutEffect(create, deps);
  22471. },
  22472. useMemo: function (create, deps) {
  22473. currentHookNameInDev = 'useMemo';
  22474. warnInvalidHookAccess();
  22475. updateHookTypesDev();
  22476. var prevDispatcher = ReactCurrentDispatcher$1.current;
  22477. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  22478. try {
  22479. return updateMemo(create, deps);
  22480. } finally {
  22481. ReactCurrentDispatcher$1.current = prevDispatcher;
  22482. }
  22483. },
  22484. useReducer: function (reducer, initialArg, init) {
  22485. currentHookNameInDev = 'useReducer';
  22486. warnInvalidHookAccess();
  22487. updateHookTypesDev();
  22488. var prevDispatcher = ReactCurrentDispatcher$1.current;
  22489. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  22490. try {
  22491. return updateReducer(reducer, initialArg, init);
  22492. } finally {
  22493. ReactCurrentDispatcher$1.current = prevDispatcher;
  22494. }
  22495. },
  22496. useRef: function (initialValue) {
  22497. currentHookNameInDev = 'useRef';
  22498. warnInvalidHookAccess();
  22499. updateHookTypesDev();
  22500. return updateRef(initialValue);
  22501. },
  22502. useState: function (initialState) {
  22503. currentHookNameInDev = 'useState';
  22504. warnInvalidHookAccess();
  22505. updateHookTypesDev();
  22506. var prevDispatcher = ReactCurrentDispatcher$1.current;
  22507. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  22508. try {
  22509. return updateState(initialState);
  22510. } finally {
  22511. ReactCurrentDispatcher$1.current = prevDispatcher;
  22512. }
  22513. },
  22514. useDebugValue: function (value, formatterFn) {
  22515. currentHookNameInDev = 'useDebugValue';
  22516. warnInvalidHookAccess();
  22517. updateHookTypesDev();
  22518. return updateDebugValue(value, formatterFn);
  22519. },
  22520. useResponder: function (responder, props) {
  22521. currentHookNameInDev = 'useResponder';
  22522. warnInvalidHookAccess();
  22523. updateHookTypesDev();
  22524. return createResponderListener(responder, props);
  22525. }
  22526. };
  22527. }
  22528. // Intentionally not named imports because Rollup would use dynamic dispatch for
  22529. // CommonJS interop named imports.
  22530. var now$1 = Scheduler.unstable_now;
  22531. var commitTime = 0;
  22532. var profilerStartTime = -1;
  22533. function getCommitTime() {
  22534. return commitTime;
  22535. }
  22536. function recordCommitTime() {
  22537. if (!enableProfilerTimer) {
  22538. return;
  22539. }
  22540. commitTime = now$1();
  22541. }
  22542. function startProfilerTimer(fiber) {
  22543. if (!enableProfilerTimer) {
  22544. return;
  22545. }
  22546. profilerStartTime = now$1();
  22547. if (fiber.actualStartTime < 0) {
  22548. fiber.actualStartTime = now$1();
  22549. }
  22550. }
  22551. function stopProfilerTimerIfRunning(fiber) {
  22552. if (!enableProfilerTimer) {
  22553. return;
  22554. }
  22555. profilerStartTime = -1;
  22556. }
  22557. function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) {
  22558. if (!enableProfilerTimer) {
  22559. return;
  22560. }
  22561. if (profilerStartTime >= 0) {
  22562. var elapsedTime = now$1() - profilerStartTime;
  22563. fiber.actualDuration += elapsedTime;
  22564. if (overrideBaseTime) {
  22565. fiber.selfBaseDuration = elapsedTime;
  22566. }
  22567. profilerStartTime = -1;
  22568. }
  22569. }
  22570. // The deepest Fiber on the stack involved in a hydration context.
  22571. // This may have been an insertion or a hydration.
  22572. var hydrationParentFiber = null;
  22573. var nextHydratableInstance = null;
  22574. var isHydrating = false;
  22575. function enterHydrationState(fiber) {
  22576. if (!supportsHydration) {
  22577. return false;
  22578. }
  22579. var parentInstance = fiber.stateNode.containerInfo;
  22580. nextHydratableInstance = getFirstHydratableChild(parentInstance);
  22581. hydrationParentFiber = fiber;
  22582. isHydrating = true;
  22583. return true;
  22584. }
  22585. function reenterHydrationStateFromDehydratedSuspenseInstance(fiber) {
  22586. if (!supportsHydration) {
  22587. return false;
  22588. }
  22589. var suspenseInstance = fiber.stateNode;
  22590. nextHydratableInstance = getNextHydratableSibling(suspenseInstance);
  22591. popToNextHostParent(fiber);
  22592. isHydrating = true;
  22593. return true;
  22594. }
  22595. function deleteHydratableInstance(returnFiber, instance) {
  22596. {
  22597. switch (returnFiber.tag) {
  22598. case HostRoot:
  22599. didNotHydrateContainerInstance(returnFiber.stateNode.containerInfo, instance);
  22600. break;
  22601. case HostComponent:
  22602. didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance);
  22603. break;
  22604. }
  22605. }
  22606. var childToDelete = createFiberFromHostInstanceForDeletion();
  22607. childToDelete.stateNode = instance;
  22608. childToDelete.return = returnFiber;
  22609. childToDelete.effectTag = Deletion;
  22610. // This might seem like it belongs on progressedFirstDeletion. However,
  22611. // these children are not part of the reconciliation list of children.
  22612. // Even if we abort and rereconcile the children, that will try to hydrate
  22613. // again and the nodes are still in the host tree so these will be
  22614. // recreated.
  22615. if (returnFiber.lastEffect !== null) {
  22616. returnFiber.lastEffect.nextEffect = childToDelete;
  22617. returnFiber.lastEffect = childToDelete;
  22618. } else {
  22619. returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
  22620. }
  22621. }
  22622. function insertNonHydratedInstance(returnFiber, fiber) {
  22623. fiber.effectTag |= Placement;
  22624. {
  22625. switch (returnFiber.tag) {
  22626. case HostRoot:
  22627. {
  22628. var parentContainer = returnFiber.stateNode.containerInfo;
  22629. switch (fiber.tag) {
  22630. case HostComponent:
  22631. var type = fiber.type;
  22632. var props = fiber.pendingProps;
  22633. didNotFindHydratableContainerInstance(parentContainer, type, props);
  22634. break;
  22635. case HostText:
  22636. var text = fiber.pendingProps;
  22637. didNotFindHydratableContainerTextInstance(parentContainer, text);
  22638. break;
  22639. case SuspenseComponent:
  22640. break;
  22641. }
  22642. break;
  22643. }
  22644. case HostComponent:
  22645. {
  22646. var parentType = returnFiber.type;
  22647. var parentProps = returnFiber.memoizedProps;
  22648. var parentInstance = returnFiber.stateNode;
  22649. switch (fiber.tag) {
  22650. case HostComponent:
  22651. var _type = fiber.type;
  22652. var _props = fiber.pendingProps;
  22653. didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type, _props);
  22654. break;
  22655. case HostText:
  22656. var _text = fiber.pendingProps;
  22657. didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text);
  22658. break;
  22659. case SuspenseComponent:
  22660. didNotFindHydratableSuspenseInstance(parentType, parentProps, parentInstance);
  22661. break;
  22662. }
  22663. break;
  22664. }
  22665. default:
  22666. return;
  22667. }
  22668. }
  22669. }
  22670. function tryHydrate(fiber, nextInstance) {
  22671. switch (fiber.tag) {
  22672. case HostComponent:
  22673. {
  22674. var type = fiber.type;
  22675. var props = fiber.pendingProps;
  22676. var instance = canHydrateInstance(nextInstance, type, props);
  22677. if (instance !== null) {
  22678. fiber.stateNode = instance;
  22679. return true;
  22680. }
  22681. return false;
  22682. }
  22683. case HostText:
  22684. {
  22685. var text = fiber.pendingProps;
  22686. var textInstance = canHydrateTextInstance(nextInstance, text);
  22687. if (textInstance !== null) {
  22688. fiber.stateNode = textInstance;
  22689. return true;
  22690. }
  22691. return false;
  22692. }
  22693. case SuspenseComponent:
  22694. {
  22695. if (enableSuspenseServerRenderer) {
  22696. var suspenseInstance = canHydrateSuspenseInstance(nextInstance);
  22697. if (suspenseInstance !== null) {
  22698. // Downgrade the tag to a dehydrated component until we've hydrated it.
  22699. fiber.tag = DehydratedSuspenseComponent;
  22700. fiber.stateNode = suspenseInstance;
  22701. return true;
  22702. }
  22703. }
  22704. return false;
  22705. }
  22706. default:
  22707. return false;
  22708. }
  22709. }
  22710. function tryToClaimNextHydratableInstance(fiber) {
  22711. if (!isHydrating) {
  22712. return;
  22713. }
  22714. var nextInstance = nextHydratableInstance;
  22715. if (!nextInstance) {
  22716. // Nothing to hydrate. Make it an insertion.
  22717. insertNonHydratedInstance(hydrationParentFiber, fiber);
  22718. isHydrating = false;
  22719. hydrationParentFiber = fiber;
  22720. return;
  22721. }
  22722. var firstAttemptedInstance = nextInstance;
  22723. if (!tryHydrate(fiber, nextInstance)) {
  22724. // If we can't hydrate this instance let's try the next one.
  22725. // We use this as a heuristic. It's based on intuition and not data so it
  22726. // might be flawed or unnecessary.
  22727. nextInstance = getNextHydratableSibling(firstAttemptedInstance);
  22728. if (!nextInstance || !tryHydrate(fiber, nextInstance)) {
  22729. // Nothing to hydrate. Make it an insertion.
  22730. insertNonHydratedInstance(hydrationParentFiber, fiber);
  22731. isHydrating = false;
  22732. hydrationParentFiber = fiber;
  22733. return;
  22734. }
  22735. // We matched the next one, we'll now assume that the first one was
  22736. // superfluous and we'll delete it. Since we can't eagerly delete it
  22737. // we'll have to schedule a deletion. To do that, this node needs a dummy
  22738. // fiber associated with it.
  22739. deleteHydratableInstance(hydrationParentFiber, firstAttemptedInstance);
  22740. }
  22741. hydrationParentFiber = fiber;
  22742. nextHydratableInstance = getFirstHydratableChild(nextInstance);
  22743. }
  22744. function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) {
  22745. if (!supportsHydration) {
  22746. (function () {
  22747. {
  22748. {
  22749. throw ReactError(Error('Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.'));
  22750. }
  22751. }
  22752. })();
  22753. }
  22754. var instance = fiber.stateNode;
  22755. var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber);
  22756. // TODO: Type this specific to this type of component.
  22757. fiber.updateQueue = updatePayload;
  22758. // If the update payload indicates that there is a change or if there
  22759. // is a new ref we mark this as an update.
  22760. if (updatePayload !== null) {
  22761. return true;
  22762. }
  22763. return false;
  22764. }
  22765. function prepareToHydrateHostTextInstance(fiber) {
  22766. if (!supportsHydration) {
  22767. (function () {
  22768. {
  22769. {
  22770. throw ReactError(Error('Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.'));
  22771. }
  22772. }
  22773. })();
  22774. }
  22775. var textInstance = fiber.stateNode;
  22776. var textContent = fiber.memoizedProps;
  22777. var shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber);
  22778. {
  22779. if (shouldUpdate) {
  22780. // We assume that prepareToHydrateHostTextInstance is called in a context where the
  22781. // hydration parent is the parent host component of this host text.
  22782. var returnFiber = hydrationParentFiber;
  22783. if (returnFiber !== null) {
  22784. switch (returnFiber.tag) {
  22785. case HostRoot:
  22786. {
  22787. var parentContainer = returnFiber.stateNode.containerInfo;
  22788. didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent);
  22789. break;
  22790. }
  22791. case HostComponent:
  22792. {
  22793. var parentType = returnFiber.type;
  22794. var parentProps = returnFiber.memoizedProps;
  22795. var parentInstance = returnFiber.stateNode;
  22796. didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent);
  22797. break;
  22798. }
  22799. }
  22800. }
  22801. }
  22802. }
  22803. return shouldUpdate;
  22804. }
  22805. function skipPastDehydratedSuspenseInstance(fiber) {
  22806. if (!supportsHydration) {
  22807. (function () {
  22808. {
  22809. {
  22810. throw ReactError(Error('Expected skipPastDehydratedSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.'));
  22811. }
  22812. }
  22813. })();
  22814. }
  22815. var suspenseInstance = fiber.stateNode;
  22816. (function () {
  22817. if (!suspenseInstance) {
  22818. {
  22819. throw ReactError(Error('Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.'));
  22820. }
  22821. }
  22822. })();
  22823. nextHydratableInstance = getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance);
  22824. }
  22825. function popToNextHostParent(fiber) {
  22826. var parent = fiber.return;
  22827. while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot && parent.tag !== DehydratedSuspenseComponent) {
  22828. parent = parent.return;
  22829. }
  22830. hydrationParentFiber = parent;
  22831. }
  22832. function popHydrationState(fiber) {
  22833. if (!supportsHydration) {
  22834. return false;
  22835. }
  22836. if (fiber !== hydrationParentFiber) {
  22837. // We're deeper than the current hydration context, inside an inserted
  22838. // tree.
  22839. return false;
  22840. }
  22841. if (!isHydrating) {
  22842. // If we're not currently hydrating but we're in a hydration context, then
  22843. // we were an insertion and now need to pop up reenter hydration of our
  22844. // siblings.
  22845. popToNextHostParent(fiber);
  22846. isHydrating = true;
  22847. return false;
  22848. }
  22849. var type = fiber.type;
  22850. // If we have any remaining hydratable nodes, we need to delete them now.
  22851. // We only do this deeper than head and body since they tend to have random
  22852. // other nodes in them. We also ignore components with pure text content in
  22853. // side of them.
  22854. // TODO: Better heuristic.
  22855. if (fiber.tag !== HostComponent || type !== 'head' && type !== 'body' && !shouldSetTextContent(type, fiber.memoizedProps)) {
  22856. var nextInstance = nextHydratableInstance;
  22857. while (nextInstance) {
  22858. deleteHydratableInstance(fiber, nextInstance);
  22859. nextInstance = getNextHydratableSibling(nextInstance);
  22860. }
  22861. }
  22862. popToNextHostParent(fiber);
  22863. nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null;
  22864. return true;
  22865. }
  22866. function resetHydrationState() {
  22867. if (!supportsHydration) {
  22868. return;
  22869. }
  22870. hydrationParentFiber = null;
  22871. nextHydratableInstance = null;
  22872. isHydrating = false;
  22873. }
  22874. var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;
  22875. var didReceiveUpdate = false;
  22876. var didWarnAboutBadClass = void 0;
  22877. var didWarnAboutModulePatternComponent = void 0;
  22878. var didWarnAboutContextTypeOnFunctionComponent = void 0;
  22879. var didWarnAboutGetDerivedStateOnFunctionComponent = void 0;
  22880. var didWarnAboutFunctionRefs = void 0;
  22881. var didWarnAboutReassigningProps = void 0;
  22882. var didWarnAboutMaxDuration = void 0;
  22883. var didWarnAboutRevealOrder = void 0;
  22884. var didWarnAboutTailOptions = void 0;
  22885. var didWarnAboutDefaultPropsOnFunctionComponent = void 0;
  22886. {
  22887. didWarnAboutBadClass = {};
  22888. didWarnAboutModulePatternComponent = {};
  22889. didWarnAboutContextTypeOnFunctionComponent = {};
  22890. didWarnAboutGetDerivedStateOnFunctionComponent = {};
  22891. didWarnAboutFunctionRefs = {};
  22892. didWarnAboutReassigningProps = false;
  22893. didWarnAboutMaxDuration = false;
  22894. didWarnAboutRevealOrder = {};
  22895. didWarnAboutTailOptions = {};
  22896. didWarnAboutDefaultPropsOnFunctionComponent = {};
  22897. }
  22898. function reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime) {
  22899. if (current$$1 === null) {
  22900. // If this is a fresh new component that hasn't been rendered yet, we
  22901. // won't update its child set by applying minimal side-effects. Instead,
  22902. // we will add them all to the child before it gets rendered. That means
  22903. // we can optimize this reconciliation pass by not tracking side-effects.
  22904. workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  22905. } else {
  22906. // If the current child is the same as the work in progress, it means that
  22907. // we haven't yet started any work on these children. Therefore, we use
  22908. // the clone algorithm to create a copy of all the current children.
  22909. // If we had any progressed work already, that is invalid at this point so
  22910. // let's throw it out.
  22911. workInProgress.child = reconcileChildFibers(workInProgress, current$$1.child, nextChildren, renderExpirationTime);
  22912. }
  22913. }
  22914. function forceUnmountCurrentAndReconcile(current$$1, workInProgress, nextChildren, renderExpirationTime) {
  22915. // This function is fork of reconcileChildren. It's used in cases where we
  22916. // want to reconcile without matching against the existing set. This has the
  22917. // effect of all current children being unmounted; even if the type and key
  22918. // are the same, the old child is unmounted and a new child is created.
  22919. //
  22920. // To do this, we're going to go through the reconcile algorithm twice. In
  22921. // the first pass, we schedule a deletion for all the current children by
  22922. // passing null.
  22923. workInProgress.child = reconcileChildFibers(workInProgress, current$$1.child, null, renderExpirationTime);
  22924. // In the second pass, we mount the new children. The trick here is that we
  22925. // pass null in place of where we usually pass the current child set. This has
  22926. // the effect of remounting all children regardless of whether their their
  22927. // identity matches.
  22928. workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  22929. }
  22930. function updateForwardRef(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  22931. // TODO: current can be non-null here even if the component
  22932. // hasn't yet mounted. This happens after the first render suspends.
  22933. // We'll need to figure out if this is fine or can cause issues.
  22934. {
  22935. if (workInProgress.type !== workInProgress.elementType) {
  22936. // Lazy component props can't be validated in createElement
  22937. // because they're only guaranteed to be resolved here.
  22938. var innerPropTypes = Component.propTypes;
  22939. if (innerPropTypes) {
  22940. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  22941. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  22942. }
  22943. }
  22944. }
  22945. var render = Component.render;
  22946. var ref = workInProgress.ref;
  22947. // The rest is a fork of updateFunctionComponent
  22948. var nextChildren = void 0;
  22949. prepareToReadContext(workInProgress, renderExpirationTime);
  22950. {
  22951. ReactCurrentOwner$3.current = workInProgress;
  22952. setCurrentPhase('render');
  22953. nextChildren = renderWithHooks(current$$1, workInProgress, render, nextProps, ref, renderExpirationTime);
  22954. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  22955. // Only double-render components with Hooks
  22956. if (workInProgress.memoizedState !== null) {
  22957. nextChildren = renderWithHooks(current$$1, workInProgress, render, nextProps, ref, renderExpirationTime);
  22958. }
  22959. }
  22960. setCurrentPhase(null);
  22961. }
  22962. if (current$$1 !== null && !didReceiveUpdate) {
  22963. bailoutHooks(current$$1, workInProgress, renderExpirationTime);
  22964. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  22965. }
  22966. // React DevTools reads this flag.
  22967. workInProgress.effectTag |= PerformedWork;
  22968. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  22969. return workInProgress.child;
  22970. }
  22971. function updateMemoComponent(current$$1, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
  22972. if (current$$1 === null) {
  22973. var type = Component.type;
  22974. if (isSimpleFunctionComponent(type) && Component.compare === null &&
  22975. // SimpleMemoComponent codepath doesn't resolve outer props either.
  22976. Component.defaultProps === undefined) {
  22977. var resolvedType = type;
  22978. {
  22979. resolvedType = resolveFunctionForHotReloading(type);
  22980. }
  22981. // If this is a plain function component without default props,
  22982. // and with only the default shallow comparison, we upgrade it
  22983. // to a SimpleMemoComponent to allow fast path updates.
  22984. workInProgress.tag = SimpleMemoComponent;
  22985. workInProgress.type = resolvedType;
  22986. {
  22987. validateFunctionComponentInDev(workInProgress, type);
  22988. }
  22989. return updateSimpleMemoComponent(current$$1, workInProgress, resolvedType, nextProps, updateExpirationTime, renderExpirationTime);
  22990. }
  22991. {
  22992. var innerPropTypes = type.propTypes;
  22993. if (innerPropTypes) {
  22994. // Inner memo component props aren't currently validated in createElement.
  22995. // We could move it there, but we'd still need this for lazy code path.
  22996. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  22997. 'prop', getComponentName(type), getCurrentFiberStackInDev);
  22998. }
  22999. }
  23000. var child = createFiberFromTypeAndProps(Component.type, null, nextProps, null, workInProgress.mode, renderExpirationTime);
  23001. child.ref = workInProgress.ref;
  23002. child.return = workInProgress;
  23003. workInProgress.child = child;
  23004. return child;
  23005. }
  23006. {
  23007. var _type = Component.type;
  23008. var _innerPropTypes = _type.propTypes;
  23009. if (_innerPropTypes) {
  23010. // Inner memo component props aren't currently validated in createElement.
  23011. // We could move it there, but we'd still need this for lazy code path.
  23012. checkPropTypes(_innerPropTypes, nextProps, // Resolved props
  23013. 'prop', getComponentName(_type), getCurrentFiberStackInDev);
  23014. }
  23015. }
  23016. var currentChild = current$$1.child; // This is always exactly one child
  23017. if (updateExpirationTime < renderExpirationTime) {
  23018. // This will be the props with resolved defaultProps,
  23019. // unlike current.memoizedProps which will be the unresolved ones.
  23020. var prevProps = currentChild.memoizedProps;
  23021. // Default to shallow comparison
  23022. var compare = Component.compare;
  23023. compare = compare !== null ? compare : shallowEqual;
  23024. if (compare(prevProps, nextProps) && current$$1.ref === workInProgress.ref) {
  23025. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  23026. }
  23027. }
  23028. // React DevTools reads this flag.
  23029. workInProgress.effectTag |= PerformedWork;
  23030. var newChild = createWorkInProgress(currentChild, nextProps, renderExpirationTime);
  23031. newChild.ref = workInProgress.ref;
  23032. newChild.return = workInProgress;
  23033. workInProgress.child = newChild;
  23034. return newChild;
  23035. }
  23036. function updateSimpleMemoComponent(current$$1, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
  23037. // TODO: current can be non-null here even if the component
  23038. // hasn't yet mounted. This happens when the inner render suspends.
  23039. // We'll need to figure out if this is fine or can cause issues.
  23040. {
  23041. if (workInProgress.type !== workInProgress.elementType) {
  23042. // Lazy component props can't be validated in createElement
  23043. // because they're only guaranteed to be resolved here.
  23044. var outerMemoType = workInProgress.elementType;
  23045. if (outerMemoType.$$typeof === REACT_LAZY_TYPE) {
  23046. // We warn when you define propTypes on lazy()
  23047. // so let's just skip over it to find memo() outer wrapper.
  23048. // Inner props for memo are validated later.
  23049. outerMemoType = refineResolvedLazyComponent(outerMemoType);
  23050. }
  23051. var outerPropTypes = outerMemoType && outerMemoType.propTypes;
  23052. if (outerPropTypes) {
  23053. checkPropTypes(outerPropTypes, nextProps, // Resolved (SimpleMemoComponent has no defaultProps)
  23054. 'prop', getComponentName(outerMemoType), getCurrentFiberStackInDev);
  23055. }
  23056. // Inner propTypes will be validated in the function component path.
  23057. }
  23058. }
  23059. if (current$$1 !== null) {
  23060. var prevProps = current$$1.memoizedProps;
  23061. if (shallowEqual(prevProps, nextProps) && current$$1.ref === workInProgress.ref && (
  23062. // Prevent bailout if the implementation changed due to hot reload:
  23063. workInProgress.type === current$$1.type)) {
  23064. didReceiveUpdate = false;
  23065. if (updateExpirationTime < renderExpirationTime) {
  23066. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  23067. }
  23068. }
  23069. }
  23070. return updateFunctionComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime);
  23071. }
  23072. function updateFragment(current$$1, workInProgress, renderExpirationTime) {
  23073. var nextChildren = workInProgress.pendingProps;
  23074. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  23075. return workInProgress.child;
  23076. }
  23077. function updateMode(current$$1, workInProgress, renderExpirationTime) {
  23078. var nextChildren = workInProgress.pendingProps.children;
  23079. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  23080. return workInProgress.child;
  23081. }
  23082. function updateProfiler(current$$1, workInProgress, renderExpirationTime) {
  23083. if (enableProfilerTimer) {
  23084. workInProgress.effectTag |= Update;
  23085. }
  23086. var nextProps = workInProgress.pendingProps;
  23087. var nextChildren = nextProps.children;
  23088. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  23089. return workInProgress.child;
  23090. }
  23091. function markRef(current$$1, workInProgress) {
  23092. var ref = workInProgress.ref;
  23093. if (current$$1 === null && ref !== null || current$$1 !== null && current$$1.ref !== ref) {
  23094. // Schedule a Ref effect
  23095. workInProgress.effectTag |= Ref;
  23096. }
  23097. }
  23098. function updateFunctionComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  23099. {
  23100. if (workInProgress.type !== workInProgress.elementType) {
  23101. // Lazy component props can't be validated in createElement
  23102. // because they're only guaranteed to be resolved here.
  23103. var innerPropTypes = Component.propTypes;
  23104. if (innerPropTypes) {
  23105. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  23106. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  23107. }
  23108. }
  23109. }
  23110. var context = void 0;
  23111. if (!disableLegacyContext) {
  23112. var unmaskedContext = getUnmaskedContext(workInProgress, Component, true);
  23113. context = getMaskedContext(workInProgress, unmaskedContext);
  23114. }
  23115. var nextChildren = void 0;
  23116. prepareToReadContext(workInProgress, renderExpirationTime);
  23117. {
  23118. ReactCurrentOwner$3.current = workInProgress;
  23119. setCurrentPhase('render');
  23120. nextChildren = renderWithHooks(current$$1, workInProgress, Component, nextProps, context, renderExpirationTime);
  23121. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  23122. // Only double-render components with Hooks
  23123. if (workInProgress.memoizedState !== null) {
  23124. nextChildren = renderWithHooks(current$$1, workInProgress, Component, nextProps, context, renderExpirationTime);
  23125. }
  23126. }
  23127. setCurrentPhase(null);
  23128. }
  23129. if (current$$1 !== null && !didReceiveUpdate) {
  23130. bailoutHooks(current$$1, workInProgress, renderExpirationTime);
  23131. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  23132. }
  23133. // React DevTools reads this flag.
  23134. workInProgress.effectTag |= PerformedWork;
  23135. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  23136. return workInProgress.child;
  23137. }
  23138. function updateClassComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  23139. {
  23140. if (workInProgress.type !== workInProgress.elementType) {
  23141. // Lazy component props can't be validated in createElement
  23142. // because they're only guaranteed to be resolved here.
  23143. var innerPropTypes = Component.propTypes;
  23144. if (innerPropTypes) {
  23145. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  23146. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  23147. }
  23148. }
  23149. }
  23150. // Push context providers early to prevent context stack mismatches.
  23151. // During mounting we don't know the child context yet as the instance doesn't exist.
  23152. // We will invalidate the child context in finishClassComponent() right after rendering.
  23153. var hasContext = void 0;
  23154. if (isContextProvider(Component)) {
  23155. hasContext = true;
  23156. pushContextProvider(workInProgress);
  23157. } else {
  23158. hasContext = false;
  23159. }
  23160. prepareToReadContext(workInProgress, renderExpirationTime);
  23161. var instance = workInProgress.stateNode;
  23162. var shouldUpdate = void 0;
  23163. if (instance === null) {
  23164. if (current$$1 !== null) {
  23165. // An class component without an instance only mounts if it suspended
  23166. // inside a non- concurrent tree, in an inconsistent state. We want to
  23167. // tree it like a new mount, even though an empty version of it already
  23168. // committed. Disconnect the alternate pointers.
  23169. current$$1.alternate = null;
  23170. workInProgress.alternate = null;
  23171. // Since this is conceptually a new fiber, schedule a Placement effect
  23172. workInProgress.effectTag |= Placement;
  23173. }
  23174. // In the initial pass we might need to construct the instance.
  23175. constructClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  23176. mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  23177. shouldUpdate = true;
  23178. } else if (current$$1 === null) {
  23179. // In a resume, we'll already have an instance we can reuse.
  23180. shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  23181. } else {
  23182. shouldUpdate = updateClassInstance(current$$1, workInProgress, Component, nextProps, renderExpirationTime);
  23183. }
  23184. var nextUnitOfWork = finishClassComponent(current$$1, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime);
  23185. {
  23186. var inst = workInProgress.stateNode;
  23187. if (inst.props !== nextProps) {
  23188. !didWarnAboutReassigningProps ? warning$1(false, 'It looks like %s is reassigning its own `this.props` while rendering. ' + 'This is not supported and can lead to confusing bugs.', getComponentName(workInProgress.type) || 'a component') : void 0;
  23189. didWarnAboutReassigningProps = true;
  23190. }
  23191. }
  23192. return nextUnitOfWork;
  23193. }
  23194. function finishClassComponent(current$$1, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime) {
  23195. // Refs should update even if shouldComponentUpdate returns false
  23196. markRef(current$$1, workInProgress);
  23197. var didCaptureError = (workInProgress.effectTag & DidCapture) !== NoEffect;
  23198. if (!shouldUpdate && !didCaptureError) {
  23199. // Context providers should defer to sCU for rendering
  23200. if (hasContext) {
  23201. invalidateContextProvider(workInProgress, Component, false);
  23202. }
  23203. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  23204. }
  23205. var instance = workInProgress.stateNode;
  23206. // Rerender
  23207. ReactCurrentOwner$3.current = workInProgress;
  23208. var nextChildren = void 0;
  23209. if (didCaptureError && typeof Component.getDerivedStateFromError !== 'function') {
  23210. // If we captured an error, but getDerivedStateFrom catch is not defined,
  23211. // unmount all the children. componentDidCatch will schedule an update to
  23212. // re-render a fallback. This is temporary until we migrate everyone to
  23213. // the new API.
  23214. // TODO: Warn in a future release.
  23215. nextChildren = null;
  23216. if (enableProfilerTimer) {
  23217. stopProfilerTimerIfRunning(workInProgress);
  23218. }
  23219. } else {
  23220. {
  23221. setCurrentPhase('render');
  23222. nextChildren = instance.render();
  23223. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  23224. instance.render();
  23225. }
  23226. setCurrentPhase(null);
  23227. }
  23228. }
  23229. // React DevTools reads this flag.
  23230. workInProgress.effectTag |= PerformedWork;
  23231. if (current$$1 !== null && didCaptureError) {
  23232. // If we're recovering from an error, reconcile without reusing any of
  23233. // the existing children. Conceptually, the normal children and the children
  23234. // that are shown on error are two different sets, so we shouldn't reuse
  23235. // normal children even if their identities match.
  23236. forceUnmountCurrentAndReconcile(current$$1, workInProgress, nextChildren, renderExpirationTime);
  23237. } else {
  23238. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  23239. }
  23240. // Memoize state using the values we just used to render.
  23241. // TODO: Restructure so we never read values from the instance.
  23242. workInProgress.memoizedState = instance.state;
  23243. // The context might have changed so we need to recalculate it.
  23244. if (hasContext) {
  23245. invalidateContextProvider(workInProgress, Component, true);
  23246. }
  23247. return workInProgress.child;
  23248. }
  23249. function pushHostRootContext(workInProgress) {
  23250. var root = workInProgress.stateNode;
  23251. if (root.pendingContext) {
  23252. pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);
  23253. } else if (root.context) {
  23254. // Should always be set
  23255. pushTopLevelContextObject(workInProgress, root.context, false);
  23256. }
  23257. pushHostContainer(workInProgress, root.containerInfo);
  23258. }
  23259. function updateHostRoot(current$$1, workInProgress, renderExpirationTime) {
  23260. pushHostRootContext(workInProgress);
  23261. var updateQueue = workInProgress.updateQueue;
  23262. (function () {
  23263. if (!(updateQueue !== null)) {
  23264. {
  23265. throw ReactError(Error('If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue.'));
  23266. }
  23267. }
  23268. })();
  23269. var nextProps = workInProgress.pendingProps;
  23270. var prevState = workInProgress.memoizedState;
  23271. var prevChildren = prevState !== null ? prevState.element : null;
  23272. processUpdateQueue(workInProgress, updateQueue, nextProps, null, renderExpirationTime);
  23273. var nextState = workInProgress.memoizedState;
  23274. // Caution: React DevTools currently depends on this property
  23275. // being called "element".
  23276. var nextChildren = nextState.element;
  23277. if (nextChildren === prevChildren) {
  23278. // If the state is the same as before, that's a bailout because we had
  23279. // no work that expires at this time.
  23280. resetHydrationState();
  23281. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  23282. }
  23283. var root = workInProgress.stateNode;
  23284. if ((current$$1 === null || current$$1.child === null) && root.hydrate && enterHydrationState(workInProgress)) {
  23285. // If we don't have any current children this might be the first pass.
  23286. // We always try to hydrate. If this isn't a hydration pass there won't
  23287. // be any children to hydrate which is effectively the same thing as
  23288. // not hydrating.
  23289. // This is a bit of a hack. We track the host root as a placement to
  23290. // know that we're currently in a mounting state. That way isMounted
  23291. // works as expected. We must reset this before committing.
  23292. // TODO: Delete this when we delete isMounted and findDOMNode.
  23293. workInProgress.effectTag |= Placement;
  23294. // Ensure that children mount into this root without tracking
  23295. // side-effects. This ensures that we don't store Placement effects on
  23296. // nodes that will be hydrated.
  23297. workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  23298. } else {
  23299. // Otherwise reset hydration state in case we aborted and resumed another
  23300. // root.
  23301. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  23302. resetHydrationState();
  23303. }
  23304. return workInProgress.child;
  23305. }
  23306. function updateHostComponent(current$$1, workInProgress, renderExpirationTime) {
  23307. pushHostContext(workInProgress);
  23308. if (current$$1 === null) {
  23309. tryToClaimNextHydratableInstance(workInProgress);
  23310. }
  23311. var type = workInProgress.type;
  23312. var nextProps = workInProgress.pendingProps;
  23313. var prevProps = current$$1 !== null ? current$$1.memoizedProps : null;
  23314. var nextChildren = nextProps.children;
  23315. var isDirectTextChild = shouldSetTextContent(type, nextProps);
  23316. if (isDirectTextChild) {
  23317. // We special case a direct text child of a host node. This is a common
  23318. // case. We won't handle it as a reified child. We will instead handle
  23319. // this in the host environment that also have access to this prop. That
  23320. // avoids allocating another HostText fiber and traversing it.
  23321. nextChildren = null;
  23322. } else if (prevProps !== null && shouldSetTextContent(type, prevProps)) {
  23323. // If we're switching from a direct text child to a normal child, or to
  23324. // empty, we need to schedule the text content to be reset.
  23325. workInProgress.effectTag |= ContentReset;
  23326. }
  23327. markRef(current$$1, workInProgress);
  23328. // Check the host config to see if the children are offscreen/hidden.
  23329. if (workInProgress.mode & ConcurrentMode && renderExpirationTime !== Never && shouldDeprioritizeSubtree(type, nextProps)) {
  23330. if (enableSchedulerTracing) {
  23331. markSpawnedWork(Never);
  23332. }
  23333. // Schedule this fiber to re-render at offscreen priority. Then bailout.
  23334. workInProgress.expirationTime = workInProgress.childExpirationTime = Never;
  23335. return null;
  23336. }
  23337. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  23338. return workInProgress.child;
  23339. }
  23340. function updateHostText(current$$1, workInProgress) {
  23341. if (current$$1 === null) {
  23342. tryToClaimNextHydratableInstance(workInProgress);
  23343. }
  23344. // Nothing to do here. This is terminal. We'll do the completion step
  23345. // immediately after.
  23346. return null;
  23347. }
  23348. function mountLazyComponent(_current, workInProgress, elementType, updateExpirationTime, renderExpirationTime) {
  23349. if (_current !== null) {
  23350. // An lazy component only mounts if it suspended inside a non-
  23351. // concurrent tree, in an inconsistent state. We want to treat it like
  23352. // a new mount, even though an empty version of it already committed.
  23353. // Disconnect the alternate pointers.
  23354. _current.alternate = null;
  23355. workInProgress.alternate = null;
  23356. // Since this is conceptually a new fiber, schedule a Placement effect
  23357. workInProgress.effectTag |= Placement;
  23358. }
  23359. var props = workInProgress.pendingProps;
  23360. // We can't start a User Timing measurement with correct label yet.
  23361. // Cancel and resume right after we know the tag.
  23362. cancelWorkTimer(workInProgress);
  23363. var Component = readLazyComponentType(elementType);
  23364. // Store the unwrapped component in the type.
  23365. workInProgress.type = Component;
  23366. var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component);
  23367. startWorkTimer(workInProgress);
  23368. var resolvedProps = resolveDefaultProps(Component, props);
  23369. var child = void 0;
  23370. switch (resolvedTag) {
  23371. case FunctionComponent:
  23372. {
  23373. {
  23374. validateFunctionComponentInDev(workInProgress, Component);
  23375. workInProgress.type = Component = resolveFunctionForHotReloading(Component);
  23376. }
  23377. child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  23378. break;
  23379. }
  23380. case ClassComponent:
  23381. {
  23382. {
  23383. workInProgress.type = Component = resolveClassForHotReloading(Component);
  23384. }
  23385. child = updateClassComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  23386. break;
  23387. }
  23388. case ForwardRef:
  23389. {
  23390. {
  23391. workInProgress.type = Component = resolveForwardRefForHotReloading(Component);
  23392. }
  23393. child = updateForwardRef(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  23394. break;
  23395. }
  23396. case MemoComponent:
  23397. {
  23398. {
  23399. if (workInProgress.type !== workInProgress.elementType) {
  23400. var outerPropTypes = Component.propTypes;
  23401. if (outerPropTypes) {
  23402. checkPropTypes(outerPropTypes, resolvedProps, // Resolved for outer only
  23403. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  23404. }
  23405. }
  23406. }
  23407. child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), // The inner type can have defaults too
  23408. updateExpirationTime, renderExpirationTime);
  23409. break;
  23410. }
  23411. default:
  23412. {
  23413. var hint = '';
  23414. {
  23415. if (Component !== null && typeof Component === 'object' && Component.$$typeof === REACT_LAZY_TYPE) {
  23416. hint = ' Did you wrap a component in React.lazy() more than once?';
  23417. }
  23418. }
  23419. // This message intentionally doesn't mention ForwardRef or MemoComponent
  23420. // because the fact that it's a separate type of work is an
  23421. // implementation detail.
  23422. (function () {
  23423. {
  23424. {
  23425. throw ReactError(Error('Element type is invalid. Received a promise that resolves to: ' + Component + '. Lazy element type must resolve to a class or function.' + hint));
  23426. }
  23427. }
  23428. })();
  23429. }
  23430. }
  23431. return child;
  23432. }
  23433. function mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderExpirationTime) {
  23434. if (_current !== null) {
  23435. // An incomplete component only mounts if it suspended inside a non-
  23436. // concurrent tree, in an inconsistent state. We want to treat it like
  23437. // a new mount, even though an empty version of it already committed.
  23438. // Disconnect the alternate pointers.
  23439. _current.alternate = null;
  23440. workInProgress.alternate = null;
  23441. // Since this is conceptually a new fiber, schedule a Placement effect
  23442. workInProgress.effectTag |= Placement;
  23443. }
  23444. // Promote the fiber to a class and try rendering again.
  23445. workInProgress.tag = ClassComponent;
  23446. // The rest of this function is a fork of `updateClassComponent`
  23447. // Push context providers early to prevent context stack mismatches.
  23448. // During mounting we don't know the child context yet as the instance doesn't exist.
  23449. // We will invalidate the child context in finishClassComponent() right after rendering.
  23450. var hasContext = void 0;
  23451. if (isContextProvider(Component)) {
  23452. hasContext = true;
  23453. pushContextProvider(workInProgress);
  23454. } else {
  23455. hasContext = false;
  23456. }
  23457. prepareToReadContext(workInProgress, renderExpirationTime);
  23458. constructClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  23459. mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  23460. return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
  23461. }
  23462. function mountIndeterminateComponent(_current, workInProgress, Component, renderExpirationTime) {
  23463. if (_current !== null) {
  23464. // An indeterminate component only mounts if it suspended inside a non-
  23465. // concurrent tree, in an inconsistent state. We want to treat it like
  23466. // a new mount, even though an empty version of it already committed.
  23467. // Disconnect the alternate pointers.
  23468. _current.alternate = null;
  23469. workInProgress.alternate = null;
  23470. // Since this is conceptually a new fiber, schedule a Placement effect
  23471. workInProgress.effectTag |= Placement;
  23472. }
  23473. var props = workInProgress.pendingProps;
  23474. var context = void 0;
  23475. if (!disableLegacyContext) {
  23476. var unmaskedContext = getUnmaskedContext(workInProgress, Component, false);
  23477. context = getMaskedContext(workInProgress, unmaskedContext);
  23478. }
  23479. prepareToReadContext(workInProgress, renderExpirationTime);
  23480. var value = void 0;
  23481. {
  23482. if (Component.prototype && typeof Component.prototype.render === 'function') {
  23483. var componentName = getComponentName(Component) || 'Unknown';
  23484. if (!didWarnAboutBadClass[componentName]) {
  23485. warningWithoutStack$1(false, "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.', componentName, componentName);
  23486. didWarnAboutBadClass[componentName] = true;
  23487. }
  23488. }
  23489. if (workInProgress.mode & StrictMode) {
  23490. ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null);
  23491. }
  23492. ReactCurrentOwner$3.current = workInProgress;
  23493. value = renderWithHooks(null, workInProgress, Component, props, context, renderExpirationTime);
  23494. }
  23495. // React DevTools reads this flag.
  23496. workInProgress.effectTag |= PerformedWork;
  23497. if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
  23498. {
  23499. var _componentName = getComponentName(Component) || 'Unknown';
  23500. if (!didWarnAboutModulePatternComponent[_componentName]) {
  23501. warningWithoutStack$1(false, 'The <%s /> component appears to be a function component that returns a class instance. ' + 'Change %s to a class that extends React.Component instead. ' + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + 'cannot be called with `new` by React.', _componentName, _componentName, _componentName);
  23502. didWarnAboutModulePatternComponent[_componentName] = true;
  23503. }
  23504. }
  23505. // Proceed under the assumption that this is a class instance
  23506. workInProgress.tag = ClassComponent;
  23507. // Throw out any hooks that were used.
  23508. resetHooks();
  23509. // Push context providers early to prevent context stack mismatches.
  23510. // During mounting we don't know the child context yet as the instance doesn't exist.
  23511. // We will invalidate the child context in finishClassComponent() right after rendering.
  23512. var hasContext = false;
  23513. if (isContextProvider(Component)) {
  23514. hasContext = true;
  23515. pushContextProvider(workInProgress);
  23516. } else {
  23517. hasContext = false;
  23518. }
  23519. workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null;
  23520. var getDerivedStateFromProps = Component.getDerivedStateFromProps;
  23521. if (typeof getDerivedStateFromProps === 'function') {
  23522. applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, props);
  23523. }
  23524. adoptClassInstance(workInProgress, value);
  23525. mountClassInstance(workInProgress, Component, props, renderExpirationTime);
  23526. return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
  23527. } else {
  23528. // Proceed under the assumption that this is a function component
  23529. workInProgress.tag = FunctionComponent;
  23530. {
  23531. if (disableLegacyContext && Component.contextTypes) {
  23532. warningWithoutStack$1(false, '%s uses the legacy contextTypes API which is no longer supported. ' + 'Use React.createContext() with React.useContext() instead.', getComponentName(Component) || 'Unknown');
  23533. }
  23534. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  23535. // Only double-render components with Hooks
  23536. if (workInProgress.memoizedState !== null) {
  23537. value = renderWithHooks(null, workInProgress, Component, props, context, renderExpirationTime);
  23538. }
  23539. }
  23540. }
  23541. reconcileChildren(null, workInProgress, value, renderExpirationTime);
  23542. {
  23543. validateFunctionComponentInDev(workInProgress, Component);
  23544. }
  23545. return workInProgress.child;
  23546. }
  23547. }
  23548. function validateFunctionComponentInDev(workInProgress, Component) {
  23549. if (Component) {
  23550. !!Component.childContextTypes ? warningWithoutStack$1(false, '%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component') : void 0;
  23551. }
  23552. if (workInProgress.ref !== null) {
  23553. var info = '';
  23554. var ownerName = getCurrentFiberOwnerNameInDevOrNull();
  23555. if (ownerName) {
  23556. info += '\n\nCheck the render method of `' + ownerName + '`.';
  23557. }
  23558. var warningKey = ownerName || workInProgress._debugID || '';
  23559. var debugSource = workInProgress._debugSource;
  23560. if (debugSource) {
  23561. warningKey = debugSource.fileName + ':' + debugSource.lineNumber;
  23562. }
  23563. if (!didWarnAboutFunctionRefs[warningKey]) {
  23564. didWarnAboutFunctionRefs[warningKey] = true;
  23565. warning$1(false, 'Function components cannot be given refs. ' + 'Attempts to access this ref will fail. ' + 'Did you mean to use React.forwardRef()?%s', info);
  23566. }
  23567. }
  23568. if (warnAboutDefaultPropsOnFunctionComponents && Component.defaultProps !== undefined) {
  23569. var componentName = getComponentName(Component) || 'Unknown';
  23570. if (!didWarnAboutDefaultPropsOnFunctionComponent[componentName]) {
  23571. warningWithoutStack$1(false, '%s: Support for defaultProps will be removed from function components ' + 'in a future major release. Use JavaScript default parameters instead.', componentName);
  23572. didWarnAboutDefaultPropsOnFunctionComponent[componentName] = true;
  23573. }
  23574. }
  23575. if (typeof Component.getDerivedStateFromProps === 'function') {
  23576. var _componentName2 = getComponentName(Component) || 'Unknown';
  23577. if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2]) {
  23578. warningWithoutStack$1(false, '%s: Function components do not support getDerivedStateFromProps.', _componentName2);
  23579. didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2] = true;
  23580. }
  23581. }
  23582. if (typeof Component.contextType === 'object' && Component.contextType !== null) {
  23583. var _componentName3 = getComponentName(Component) || 'Unknown';
  23584. if (!didWarnAboutContextTypeOnFunctionComponent[_componentName3]) {
  23585. warningWithoutStack$1(false, '%s: Function components do not support contextType.', _componentName3);
  23586. didWarnAboutContextTypeOnFunctionComponent[_componentName3] = true;
  23587. }
  23588. }
  23589. }
  23590. // TODO: This is now an empty object. Should we just make it a boolean?
  23591. var SUSPENDED_MARKER = {};
  23592. function shouldRemainOnFallback(suspenseContext, current$$1, workInProgress) {
  23593. // If the context is telling us that we should show a fallback, and we're not
  23594. // already showing content, then we should show the fallback instead.
  23595. return hasSuspenseContext(suspenseContext, ForceSuspenseFallback) && (current$$1 === null || current$$1.memoizedState !== null);
  23596. }
  23597. function updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime) {
  23598. var mode = workInProgress.mode;
  23599. var nextProps = workInProgress.pendingProps;
  23600. // This is used by DevTools to force a boundary to suspend.
  23601. {
  23602. if (shouldSuspend(workInProgress)) {
  23603. workInProgress.effectTag |= DidCapture;
  23604. }
  23605. }
  23606. var suspenseContext = suspenseStackCursor.current;
  23607. var nextState = null;
  23608. var nextDidTimeout = false;
  23609. if ((workInProgress.effectTag & DidCapture) !== NoEffect || shouldRemainOnFallback(suspenseContext, current$$1, workInProgress)) {
  23610. // Something in this boundary's subtree already suspended. Switch to
  23611. // rendering the fallback children.
  23612. nextState = SUSPENDED_MARKER;
  23613. nextDidTimeout = true;
  23614. workInProgress.effectTag &= ~DidCapture;
  23615. } else {
  23616. // Attempting the main content
  23617. if (current$$1 === null || current$$1.memoizedState !== null) {
  23618. // This is a new mount or this boundary is already showing a fallback state.
  23619. // Mark this subtree context as having at least one invisible parent that could
  23620. // handle the fallback state.
  23621. // Boundaries without fallbacks or should be avoided are not considered since
  23622. // they cannot handle preferred fallback states.
  23623. if (nextProps.fallback !== undefined && nextProps.unstable_avoidThisFallback !== true) {
  23624. suspenseContext = addSubtreeSuspenseContext(suspenseContext, InvisibleParentSuspenseContext);
  23625. }
  23626. }
  23627. }
  23628. suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  23629. pushSuspenseContext(workInProgress, suspenseContext);
  23630. {
  23631. if ('maxDuration' in nextProps) {
  23632. if (!didWarnAboutMaxDuration) {
  23633. didWarnAboutMaxDuration = true;
  23634. warning$1(false, 'maxDuration has been removed from React. ' + 'Remove the maxDuration prop.');
  23635. }
  23636. }
  23637. }
  23638. // This next part is a bit confusing. If the children timeout, we switch to
  23639. // showing the fallback children in place of the "primary" children.
  23640. // However, we don't want to delete the primary children because then their
  23641. // state will be lost (both the React state and the host state, e.g.
  23642. // uncontrolled form inputs). Instead we keep them mounted and hide them.
  23643. // Both the fallback children AND the primary children are rendered at the
  23644. // same time. Once the primary children are un-suspended, we can delete
  23645. // the fallback children — don't need to preserve their state.
  23646. //
  23647. // The two sets of children are siblings in the host environment, but
  23648. // semantically, for purposes of reconciliation, they are two separate sets.
  23649. // So we store them using two fragment fibers.
  23650. //
  23651. // However, we want to avoid allocating extra fibers for every placeholder.
  23652. // They're only necessary when the children time out, because that's the
  23653. // only time when both sets are mounted.
  23654. //
  23655. // So, the extra fragment fibers are only used if the children time out.
  23656. // Otherwise, we render the primary children directly. This requires some
  23657. // custom reconciliation logic to preserve the state of the primary
  23658. // children. It's essentially a very basic form of re-parenting.
  23659. // `child` points to the child fiber. In the normal case, this is the first
  23660. // fiber of the primary children set. In the timed-out case, it's a
  23661. // a fragment fiber containing the primary children.
  23662. var child = void 0;
  23663. // `next` points to the next fiber React should render. In the normal case,
  23664. // it's the same as `child`: the first fiber of the primary children set.
  23665. // In the timed-out case, it's a fragment fiber containing the *fallback*
  23666. // children -- we skip over the primary children entirely.
  23667. var next = void 0;
  23668. if (current$$1 === null) {
  23669. if (enableSuspenseServerRenderer) {
  23670. // If we're currently hydrating, try to hydrate this boundary.
  23671. // But only if this has a fallback.
  23672. if (nextProps.fallback !== undefined) {
  23673. tryToClaimNextHydratableInstance(workInProgress);
  23674. // This could've changed the tag if this was a dehydrated suspense component.
  23675. if (workInProgress.tag === DehydratedSuspenseComponent) {
  23676. popSuspenseContext(workInProgress);
  23677. return updateDehydratedSuspenseComponent(null, workInProgress, renderExpirationTime);
  23678. }
  23679. }
  23680. }
  23681. // This is the initial mount. This branch is pretty simple because there's
  23682. // no previous state that needs to be preserved.
  23683. if (nextDidTimeout) {
  23684. // Mount separate fragments for primary and fallback children.
  23685. var nextFallbackChildren = nextProps.fallback;
  23686. var primaryChildFragment = createFiberFromFragment(null, mode, NoWork, null);
  23687. primaryChildFragment.return = workInProgress;
  23688. if ((workInProgress.mode & BatchedMode) === NoMode) {
  23689. // Outside of batched mode, we commit the effects from the
  23690. var progressedState = workInProgress.memoizedState;
  23691. var progressedPrimaryChild = progressedState !== null ? workInProgress.child.child : workInProgress.child;
  23692. primaryChildFragment.child = progressedPrimaryChild;
  23693. var progressedChild = progressedPrimaryChild;
  23694. while (progressedChild !== null) {
  23695. progressedChild.return = primaryChildFragment;
  23696. progressedChild = progressedChild.sibling;
  23697. }
  23698. }
  23699. var fallbackChildFragment = createFiberFromFragment(nextFallbackChildren, mode, renderExpirationTime, null);
  23700. fallbackChildFragment.return = workInProgress;
  23701. primaryChildFragment.sibling = fallbackChildFragment;
  23702. child = primaryChildFragment;
  23703. // Skip the primary children, and continue working on the
  23704. // fallback children.
  23705. next = fallbackChildFragment;
  23706. } else {
  23707. // Mount the primary children without an intermediate fragment fiber.
  23708. var nextPrimaryChildren = nextProps.children;
  23709. child = next = mountChildFibers(workInProgress, null, nextPrimaryChildren, renderExpirationTime);
  23710. }
  23711. } else {
  23712. // This is an update. This branch is more complicated because we need to
  23713. // ensure the state of the primary children is preserved.
  23714. var prevState = current$$1.memoizedState;
  23715. var prevDidTimeout = prevState !== null;
  23716. if (prevDidTimeout) {
  23717. // The current tree already timed out. That means each child set is
  23718. var currentPrimaryChildFragment = current$$1.child;
  23719. var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;
  23720. if (nextDidTimeout) {
  23721. // Still timed out. Reuse the current primary children by cloning
  23722. // its fragment. We're going to skip over these entirely.
  23723. var _nextFallbackChildren = nextProps.fallback;
  23724. var _primaryChildFragment = createWorkInProgress(currentPrimaryChildFragment, currentPrimaryChildFragment.pendingProps, NoWork);
  23725. _primaryChildFragment.return = workInProgress;
  23726. if ((workInProgress.mode & BatchedMode) === NoMode) {
  23727. // Outside of batched mode, we commit the effects from the
  23728. var _progressedState = workInProgress.memoizedState;
  23729. var _progressedPrimaryChild = _progressedState !== null ? workInProgress.child.child : workInProgress.child;
  23730. if (_progressedPrimaryChild !== currentPrimaryChildFragment.child) {
  23731. _primaryChildFragment.child = _progressedPrimaryChild;
  23732. var _progressedChild = _progressedPrimaryChild;
  23733. while (_progressedChild !== null) {
  23734. _progressedChild.return = _primaryChildFragment;
  23735. _progressedChild = _progressedChild.sibling;
  23736. }
  23737. }
  23738. }
  23739. // Because primaryChildFragment is a new fiber that we're inserting as the
  23740. // parent of a new tree, we need to set its treeBaseDuration.
  23741. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  23742. // treeBaseDuration is the sum of all the child tree base durations.
  23743. var treeBaseDuration = 0;
  23744. var hiddenChild = _primaryChildFragment.child;
  23745. while (hiddenChild !== null) {
  23746. treeBaseDuration += hiddenChild.treeBaseDuration;
  23747. hiddenChild = hiddenChild.sibling;
  23748. }
  23749. _primaryChildFragment.treeBaseDuration = treeBaseDuration;
  23750. }
  23751. // Clone the fallback child fragment, too. These we'll continue
  23752. // working on.
  23753. var _fallbackChildFragment = createWorkInProgress(currentFallbackChildFragment, _nextFallbackChildren, currentFallbackChildFragment.expirationTime);
  23754. _fallbackChildFragment.return = workInProgress;
  23755. _primaryChildFragment.sibling = _fallbackChildFragment;
  23756. child = _primaryChildFragment;
  23757. _primaryChildFragment.childExpirationTime = NoWork;
  23758. // Skip the primary children, and continue working on the
  23759. // fallback children.
  23760. next = _fallbackChildFragment;
  23761. } else {
  23762. // No longer suspended. Switch back to showing the primary children,
  23763. // and remove the intermediate fragment fiber.
  23764. var _nextPrimaryChildren = nextProps.children;
  23765. var currentPrimaryChild = currentPrimaryChildFragment.child;
  23766. var primaryChild = reconcileChildFibers(workInProgress, currentPrimaryChild, _nextPrimaryChildren, renderExpirationTime);
  23767. // If this render doesn't suspend, we need to delete the fallback
  23768. // children. Wait until the complete phase, after we've confirmed the
  23769. // fallback is no longer needed.
  23770. // TODO: Would it be better to store the fallback fragment on
  23771. // the stateNode?
  23772. // Continue rendering the children, like we normally do.
  23773. child = next = primaryChild;
  23774. }
  23775. } else {
  23776. // The current tree has not already timed out. That means the primary
  23777. // children are not wrapped in a fragment fiber.
  23778. var _currentPrimaryChild = current$$1.child;
  23779. if (nextDidTimeout) {
  23780. // Timed out. Wrap the children in a fragment fiber to keep them
  23781. // separate from the fallback children.
  23782. var _nextFallbackChildren2 = nextProps.fallback;
  23783. var _primaryChildFragment2 = createFiberFromFragment(
  23784. // It shouldn't matter what the pending props are because we aren't
  23785. // going to render this fragment.
  23786. null, mode, NoWork, null);
  23787. _primaryChildFragment2.return = workInProgress;
  23788. _primaryChildFragment2.child = _currentPrimaryChild;
  23789. if (_currentPrimaryChild !== null) {
  23790. _currentPrimaryChild.return = _primaryChildFragment2;
  23791. }
  23792. // Even though we're creating a new fiber, there are no new children,
  23793. // because we're reusing an already mounted tree. So we don't need to
  23794. // schedule a placement.
  23795. // primaryChildFragment.effectTag |= Placement;
  23796. if ((workInProgress.mode & BatchedMode) === NoMode) {
  23797. // Outside of batched mode, we commit the effects from the
  23798. var _progressedState2 = workInProgress.memoizedState;
  23799. var _progressedPrimaryChild2 = _progressedState2 !== null ? workInProgress.child.child : workInProgress.child;
  23800. _primaryChildFragment2.child = _progressedPrimaryChild2;
  23801. var _progressedChild2 = _progressedPrimaryChild2;
  23802. while (_progressedChild2 !== null) {
  23803. _progressedChild2.return = _primaryChildFragment2;
  23804. _progressedChild2 = _progressedChild2.sibling;
  23805. }
  23806. }
  23807. // Because primaryChildFragment is a new fiber that we're inserting as the
  23808. // parent of a new tree, we need to set its treeBaseDuration.
  23809. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  23810. // treeBaseDuration is the sum of all the child tree base durations.
  23811. var _treeBaseDuration = 0;
  23812. var _hiddenChild = _primaryChildFragment2.child;
  23813. while (_hiddenChild !== null) {
  23814. _treeBaseDuration += _hiddenChild.treeBaseDuration;
  23815. _hiddenChild = _hiddenChild.sibling;
  23816. }
  23817. _primaryChildFragment2.treeBaseDuration = _treeBaseDuration;
  23818. }
  23819. // Create a fragment from the fallback children, too.
  23820. var _fallbackChildFragment2 = createFiberFromFragment(_nextFallbackChildren2, mode, renderExpirationTime, null);
  23821. _fallbackChildFragment2.return = workInProgress;
  23822. _primaryChildFragment2.sibling = _fallbackChildFragment2;
  23823. _fallbackChildFragment2.effectTag |= Placement;
  23824. child = _primaryChildFragment2;
  23825. _primaryChildFragment2.childExpirationTime = NoWork;
  23826. // Skip the primary children, and continue working on the
  23827. // fallback children.
  23828. next = _fallbackChildFragment2;
  23829. } else {
  23830. // Still haven't timed out. Continue rendering the children, like we
  23831. // normally do.
  23832. var _nextPrimaryChildren2 = nextProps.children;
  23833. next = child = reconcileChildFibers(workInProgress, _currentPrimaryChild, _nextPrimaryChildren2, renderExpirationTime);
  23834. }
  23835. }
  23836. workInProgress.stateNode = current$$1.stateNode;
  23837. }
  23838. workInProgress.memoizedState = nextState;
  23839. workInProgress.child = child;
  23840. return next;
  23841. }
  23842. function retrySuspenseComponentWithoutHydrating(current$$1, workInProgress, renderExpirationTime) {
  23843. // Detach from the current dehydrated boundary.
  23844. current$$1.alternate = null;
  23845. workInProgress.alternate = null;
  23846. // Insert a deletion in the effect list.
  23847. var returnFiber = workInProgress.return;
  23848. (function () {
  23849. if (!(returnFiber !== null)) {
  23850. {
  23851. throw ReactError(Error('Suspense boundaries are never on the root. This is probably a bug in React.'));
  23852. }
  23853. }
  23854. })();
  23855. var last = returnFiber.lastEffect;
  23856. if (last !== null) {
  23857. last.nextEffect = current$$1;
  23858. returnFiber.lastEffect = current$$1;
  23859. } else {
  23860. returnFiber.firstEffect = returnFiber.lastEffect = current$$1;
  23861. }
  23862. current$$1.nextEffect = null;
  23863. current$$1.effectTag = Deletion;
  23864. popSuspenseContext(workInProgress);
  23865. // Upgrade this work in progress to a real Suspense component.
  23866. workInProgress.tag = SuspenseComponent;
  23867. workInProgress.stateNode = null;
  23868. workInProgress.memoizedState = null;
  23869. // This is now an insertion.
  23870. workInProgress.effectTag |= Placement;
  23871. // Retry as a real Suspense component.
  23872. return updateSuspenseComponent(null, workInProgress, renderExpirationTime);
  23873. }
  23874. function updateDehydratedSuspenseComponent(current$$1, workInProgress, renderExpirationTime) {
  23875. pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
  23876. var suspenseInstance = workInProgress.stateNode;
  23877. if (current$$1 === null) {
  23878. // During the first pass, we'll bail out and not drill into the children.
  23879. // Instead, we'll leave the content in place and try to hydrate it later.
  23880. if (isSuspenseInstanceFallback(suspenseInstance)) {
  23881. // This is a client-only boundary. Since we won't get any content from the server
  23882. // for this, we need to schedule that at a higher priority based on when it would
  23883. // have timed out. In theory we could render it in this pass but it would have the
  23884. // wrong priority associated with it and will prevent hydration of parent path.
  23885. // Instead, we'll leave work left on it to render it in a separate commit.
  23886. // TODO This time should be the time at which the server rendered response that is
  23887. // a parent to this boundary was displayed. However, since we currently don't have
  23888. // a protocol to transfer that time, we'll just estimate it by using the current
  23889. // time. This will mean that Suspense timeouts are slightly shifted to later than
  23890. // they should be.
  23891. var serverDisplayTime = requestCurrentTime();
  23892. // Schedule a normal pri update to render this content.
  23893. workInProgress.expirationTime = computeAsyncExpiration(serverDisplayTime);
  23894. } else {
  23895. // We'll continue hydrating the rest at offscreen priority since we'll already
  23896. // be showing the right content coming from the server, it is no rush.
  23897. workInProgress.expirationTime = Never;
  23898. }
  23899. return null;
  23900. }
  23901. if ((workInProgress.effectTag & DidCapture) !== NoEffect) {
  23902. // Something suspended. Leave the existing children in place.
  23903. // TODO: In non-concurrent mode, should we commit the nodes we have hydrated so far?
  23904. workInProgress.child = null;
  23905. return null;
  23906. }
  23907. if (isSuspenseInstanceFallback(suspenseInstance)) {
  23908. // This boundary is in a permanent fallback state. In this case, we'll never
  23909. // get an update and we'll never be able to hydrate the final content. Let's just try the
  23910. // client side render instead.
  23911. return retrySuspenseComponentWithoutHydrating(current$$1, workInProgress, renderExpirationTime);
  23912. }
  23913. // We use childExpirationTime to indicate that a child might depend on context, so if
  23914. // any context has changed, we need to treat is as if the input might have changed.
  23915. var hasContextChanged$$1 = current$$1.childExpirationTime >= renderExpirationTime;
  23916. if (didReceiveUpdate || hasContextChanged$$1) {
  23917. // This boundary has changed since the first render. This means that we are now unable to
  23918. // hydrate it. We might still be able to hydrate it using an earlier expiration time but
  23919. // during this render we can't. Instead, we're going to delete the whole subtree and
  23920. // instead inject a new real Suspense boundary to take its place, which may render content
  23921. // or fallback. The real Suspense boundary will suspend for a while so we have some time
  23922. // to ensure it can produce real content, but all state and pending events will be lost.
  23923. return retrySuspenseComponentWithoutHydrating(current$$1, workInProgress, renderExpirationTime);
  23924. } else if (isSuspenseInstancePending(suspenseInstance)) {
  23925. // This component is still pending more data from the server, so we can't hydrate its
  23926. // content. We treat it as if this component suspended itself. It might seem as if
  23927. // we could just try to render it client-side instead. However, this will perform a
  23928. // lot of unnecessary work and is unlikely to complete since it often will suspend
  23929. // on missing data anyway. Additionally, the server might be able to render more
  23930. // than we can on the client yet. In that case we'd end up with more fallback states
  23931. // on the client than if we just leave it alone. If the server times out or errors
  23932. // these should update this boundary to the permanent Fallback state instead.
  23933. // Mark it as having captured (i.e. suspended).
  23934. workInProgress.effectTag |= DidCapture;
  23935. // Leave the children in place. I.e. empty.
  23936. workInProgress.child = null;
  23937. // Register a callback to retry this boundary once the server has sent the result.
  23938. registerSuspenseInstanceRetry(suspenseInstance, retryTimedOutBoundary.bind(null, current$$1));
  23939. return null;
  23940. } else {
  23941. // This is the first attempt.
  23942. reenterHydrationStateFromDehydratedSuspenseInstance(workInProgress);
  23943. var nextProps = workInProgress.pendingProps;
  23944. var nextChildren = nextProps.children;
  23945. workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  23946. return workInProgress.child;
  23947. }
  23948. }
  23949. function propagateSuspenseContextChange(workInProgress, firstChild, renderExpirationTime) {
  23950. // Mark any Suspense boundaries with fallbacks as having work to do.
  23951. // If they were previously forced into fallbacks, they may now be able
  23952. // to unblock.
  23953. var node = firstChild;
  23954. while (node !== null) {
  23955. if (node.tag === SuspenseComponent) {
  23956. var state = node.memoizedState;
  23957. if (state !== null) {
  23958. if (node.expirationTime < renderExpirationTime) {
  23959. node.expirationTime = renderExpirationTime;
  23960. }
  23961. var alternate = node.alternate;
  23962. if (alternate !== null && alternate.expirationTime < renderExpirationTime) {
  23963. alternate.expirationTime = renderExpirationTime;
  23964. }
  23965. scheduleWorkOnParentPath(node.return, renderExpirationTime);
  23966. }
  23967. } else if (node.child !== null) {
  23968. node.child.return = node;
  23969. node = node.child;
  23970. continue;
  23971. }
  23972. if (node === workInProgress) {
  23973. return;
  23974. }
  23975. while (node.sibling === null) {
  23976. if (node.return === null || node.return === workInProgress) {
  23977. return;
  23978. }
  23979. node = node.return;
  23980. }
  23981. node.sibling.return = node.return;
  23982. node = node.sibling;
  23983. }
  23984. }
  23985. function findLastContentRow(firstChild) {
  23986. // This is going to find the last row among these children that is already
  23987. // showing content on the screen, as opposed to being in fallback state or
  23988. // new. If a row has multiple Suspense boundaries, any of them being in the
  23989. // fallback state, counts as the whole row being in a fallback state.
  23990. // Note that the "rows" will be workInProgress, but any nested children
  23991. // will still be current since we haven't rendered them yet. The mounted
  23992. // order may not be the same as the new order. We use the new order.
  23993. var row = firstChild;
  23994. var lastContentRow = null;
  23995. while (row !== null) {
  23996. var currentRow = row.alternate;
  23997. // New rows can't be content rows.
  23998. if (currentRow !== null && findFirstSuspended(currentRow) === null) {
  23999. lastContentRow = row;
  24000. }
  24001. row = row.sibling;
  24002. }
  24003. return lastContentRow;
  24004. }
  24005. function validateRevealOrder(revealOrder) {
  24006. {
  24007. if (revealOrder !== undefined && revealOrder !== 'forwards' && revealOrder !== 'backwards' && revealOrder !== 'together' && !didWarnAboutRevealOrder[revealOrder]) {
  24008. didWarnAboutRevealOrder[revealOrder] = true;
  24009. if (typeof revealOrder === 'string') {
  24010. switch (revealOrder.toLowerCase()) {
  24011. case 'together':
  24012. case 'forwards':
  24013. case 'backwards':
  24014. {
  24015. warning$1(false, '"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'Use lowercase "%s" instead.', revealOrder, revealOrder.toLowerCase());
  24016. break;
  24017. }
  24018. case 'forward':
  24019. case 'backward':
  24020. {
  24021. warning$1(false, '"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'React uses the -s suffix in the spelling. Use "%ss" instead.', revealOrder, revealOrder.toLowerCase());
  24022. break;
  24023. }
  24024. default:
  24025. warning$1(false, '"%s" is not a supported revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);
  24026. break;
  24027. }
  24028. } else {
  24029. warning$1(false, '%s is not a supported value for revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);
  24030. }
  24031. }
  24032. }
  24033. }
  24034. function validateTailOptions(tailMode, revealOrder) {
  24035. {
  24036. if (tailMode !== undefined && !didWarnAboutTailOptions[tailMode]) {
  24037. if (tailMode !== 'collapsed' && tailMode !== 'hidden') {
  24038. didWarnAboutTailOptions[tailMode] = true;
  24039. warning$1(false, '"%s" is not a supported value for tail on <SuspenseList />. ' + 'Did you mean "collapsed" or "hidden"?', tailMode);
  24040. } else if (revealOrder !== 'forwards' && revealOrder !== 'backwards') {
  24041. didWarnAboutTailOptions[tailMode] = true;
  24042. warning$1(false, '<SuspenseList tail="%s" /> is only valid if revealOrder is ' + '"forwards" or "backwards". ' + 'Did you mean to specify revealOrder="forwards"?', tailMode);
  24043. }
  24044. }
  24045. }
  24046. }
  24047. function validateSuspenseListNestedChild(childSlot, index) {
  24048. {
  24049. var isArray = Array.isArray(childSlot);
  24050. var isIterable = !isArray && typeof getIteratorFn(childSlot) === 'function';
  24051. if (isArray || isIterable) {
  24052. var type = isArray ? 'array' : 'iterable';
  24053. warning$1(false, 'A nested %s was passed to row #%s in <SuspenseList />. Wrap it in ' + 'an additional SuspenseList to configure its revealOrder: ' + '<SuspenseList revealOrder=...> ... ' + '<SuspenseList revealOrder=...>{%s}</SuspenseList> ... ' + '</SuspenseList>', type, index, type);
  24054. return false;
  24055. }
  24056. }
  24057. return true;
  24058. }
  24059. function validateSuspenseListChildren(children, revealOrder) {
  24060. {
  24061. if ((revealOrder === 'forwards' || revealOrder === 'backwards') && children !== undefined && children !== null && children !== false) {
  24062. if (Array.isArray(children)) {
  24063. for (var i = 0; i < children.length; i++) {
  24064. if (!validateSuspenseListNestedChild(children[i], i)) {
  24065. return;
  24066. }
  24067. }
  24068. } else {
  24069. var iteratorFn = getIteratorFn(children);
  24070. if (typeof iteratorFn === 'function') {
  24071. var childrenIterator = iteratorFn.call(children);
  24072. if (childrenIterator) {
  24073. var step = childrenIterator.next();
  24074. var _i = 0;
  24075. for (; !step.done; step = childrenIterator.next()) {
  24076. if (!validateSuspenseListNestedChild(step.value, _i)) {
  24077. return;
  24078. }
  24079. _i++;
  24080. }
  24081. }
  24082. } else {
  24083. warning$1(false, 'A single row was passed to a <SuspenseList revealOrder="%s" />. ' + 'This is not useful since it needs multiple rows. ' + 'Did you mean to pass multiple children or an array?', revealOrder);
  24084. }
  24085. }
  24086. }
  24087. }
  24088. }
  24089. function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode) {
  24090. var renderState = workInProgress.memoizedState;
  24091. if (renderState === null) {
  24092. workInProgress.memoizedState = {
  24093. isBackwards: isBackwards,
  24094. rendering: null,
  24095. last: lastContentRow,
  24096. tail: tail,
  24097. tailExpiration: 0,
  24098. tailMode: tailMode
  24099. };
  24100. } else {
  24101. // We can reuse the existing object from previous renders.
  24102. renderState.isBackwards = isBackwards;
  24103. renderState.rendering = null;
  24104. renderState.last = lastContentRow;
  24105. renderState.tail = tail;
  24106. renderState.tailExpiration = 0;
  24107. renderState.tailMode = tailMode;
  24108. }
  24109. }
  24110. // This can end up rendering this component multiple passes.
  24111. // The first pass splits the children fibers into two sets. A head and tail.
  24112. // We first render the head. If anything is in fallback state, we do another
  24113. // pass through beginWork to rerender all children (including the tail) with
  24114. // the force suspend context. If the first render didn't have anything in
  24115. // in fallback state. Then we render each row in the tail one-by-one.
  24116. // That happens in the completeWork phase without going back to beginWork.
  24117. function updateSuspenseListComponent(current$$1, workInProgress, renderExpirationTime) {
  24118. var nextProps = workInProgress.pendingProps;
  24119. var revealOrder = nextProps.revealOrder;
  24120. var tailMode = nextProps.tail;
  24121. var newChildren = nextProps.children;
  24122. validateRevealOrder(revealOrder);
  24123. validateTailOptions(tailMode, revealOrder);
  24124. validateSuspenseListChildren(newChildren, revealOrder);
  24125. reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);
  24126. var suspenseContext = suspenseStackCursor.current;
  24127. var shouldForceFallback = hasSuspenseContext(suspenseContext, ForceSuspenseFallback);
  24128. if (shouldForceFallback) {
  24129. suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
  24130. workInProgress.effectTag |= DidCapture;
  24131. } else {
  24132. var didSuspendBefore = current$$1 !== null && (current$$1.effectTag & DidCapture) !== NoEffect;
  24133. if (didSuspendBefore) {
  24134. // If we previously forced a fallback, we need to schedule work
  24135. // on any nested boundaries to let them know to try to render
  24136. // again. This is the same as context updating.
  24137. propagateSuspenseContextChange(workInProgress, workInProgress.child, renderExpirationTime);
  24138. }
  24139. suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  24140. }
  24141. pushSuspenseContext(workInProgress, suspenseContext);
  24142. if ((workInProgress.mode & BatchedMode) === NoMode) {
  24143. // Outside of batched mode, SuspenseList doesn't work so we just
  24144. // use make it a noop by treating it as the default revealOrder.
  24145. workInProgress.memoizedState = null;
  24146. } else {
  24147. switch (revealOrder) {
  24148. case 'forwards':
  24149. {
  24150. var lastContentRow = findLastContentRow(workInProgress.child);
  24151. var tail = void 0;
  24152. if (lastContentRow === null) {
  24153. // The whole list is part of the tail.
  24154. // TODO: We could fast path by just rendering the tail now.
  24155. tail = workInProgress.child;
  24156. workInProgress.child = null;
  24157. } else {
  24158. // Disconnect the tail rows after the content row.
  24159. // We're going to render them separately later.
  24160. tail = lastContentRow.sibling;
  24161. lastContentRow.sibling = null;
  24162. }
  24163. initSuspenseListRenderState(workInProgress, false, // isBackwards
  24164. tail, lastContentRow, tailMode);
  24165. break;
  24166. }
  24167. case 'backwards':
  24168. {
  24169. // We're going to find the first row that has existing content.
  24170. // At the same time we're going to reverse the list of everything
  24171. // we pass in the meantime. That's going to be our tail in reverse
  24172. // order.
  24173. var _tail = null;
  24174. var row = workInProgress.child;
  24175. workInProgress.child = null;
  24176. while (row !== null) {
  24177. var currentRow = row.alternate;
  24178. // New rows can't be content rows.
  24179. if (currentRow !== null && findFirstSuspended(currentRow) === null) {
  24180. // This is the beginning of the main content.
  24181. workInProgress.child = row;
  24182. break;
  24183. }
  24184. var nextRow = row.sibling;
  24185. row.sibling = _tail;
  24186. _tail = row;
  24187. row = nextRow;
  24188. }
  24189. // TODO: If workInProgress.child is null, we can continue on the tail immediately.
  24190. initSuspenseListRenderState(workInProgress, true, // isBackwards
  24191. _tail, null, // last
  24192. tailMode);
  24193. break;
  24194. }
  24195. case 'together':
  24196. {
  24197. initSuspenseListRenderState(workInProgress, false, // isBackwards
  24198. null, // tail
  24199. null, // last
  24200. undefined);
  24201. break;
  24202. }
  24203. default:
  24204. {
  24205. // The default reveal order is the same as not having
  24206. // a boundary.
  24207. workInProgress.memoizedState = null;
  24208. }
  24209. }
  24210. }
  24211. return workInProgress.child;
  24212. }
  24213. function updatePortalComponent(current$$1, workInProgress, renderExpirationTime) {
  24214. pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
  24215. var nextChildren = workInProgress.pendingProps;
  24216. if (current$$1 === null) {
  24217. // Portals are special because we don't append the children during mount
  24218. // but at commit. Therefore we need to track insertions which the normal
  24219. // flow doesn't do during mount. This doesn't happen at the root because
  24220. // the root always starts with a "current" with a null child.
  24221. // TODO: Consider unifying this with how the root works.
  24222. workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  24223. } else {
  24224. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  24225. }
  24226. return workInProgress.child;
  24227. }
  24228. function updateContextProvider(current$$1, workInProgress, renderExpirationTime) {
  24229. var providerType = workInProgress.type;
  24230. var context = providerType._context;
  24231. var newProps = workInProgress.pendingProps;
  24232. var oldProps = workInProgress.memoizedProps;
  24233. var newValue = newProps.value;
  24234. {
  24235. var providerPropTypes = workInProgress.type.propTypes;
  24236. if (providerPropTypes) {
  24237. checkPropTypes(providerPropTypes, newProps, 'prop', 'Context.Provider', getCurrentFiberStackInDev);
  24238. }
  24239. }
  24240. pushProvider(workInProgress, newValue);
  24241. if (oldProps !== null) {
  24242. var oldValue = oldProps.value;
  24243. var changedBits = calculateChangedBits(context, newValue, oldValue);
  24244. if (changedBits === 0) {
  24245. // No change. Bailout early if children are the same.
  24246. if (oldProps.children === newProps.children && !hasContextChanged()) {
  24247. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  24248. }
  24249. } else {
  24250. // The context value changed. Search for matching consumers and schedule
  24251. // them to update.
  24252. propagateContextChange(workInProgress, context, changedBits, renderExpirationTime);
  24253. }
  24254. }
  24255. var newChildren = newProps.children;
  24256. reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);
  24257. return workInProgress.child;
  24258. }
  24259. var hasWarnedAboutUsingContextAsConsumer = false;
  24260. function updateContextConsumer(current$$1, workInProgress, renderExpirationTime) {
  24261. var context = workInProgress.type;
  24262. // The logic below for Context differs depending on PROD or DEV mode. In
  24263. // DEV mode, we create a separate object for Context.Consumer that acts
  24264. // like a proxy to Context. This proxy object adds unnecessary code in PROD
  24265. // so we use the old behaviour (Context.Consumer references Context) to
  24266. // reduce size and overhead. The separate object references context via
  24267. // a property called "_context", which also gives us the ability to check
  24268. // in DEV mode if this property exists or not and warn if it does not.
  24269. {
  24270. if (context._context === undefined) {
  24271. // This may be because it's a Context (rather than a Consumer).
  24272. // Or it may be because it's older React where they're the same thing.
  24273. // We only want to warn if we're sure it's a new React.
  24274. if (context !== context.Consumer) {
  24275. if (!hasWarnedAboutUsingContextAsConsumer) {
  24276. hasWarnedAboutUsingContextAsConsumer = true;
  24277. warning$1(false, 'Rendering <Context> directly is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
  24278. }
  24279. }
  24280. } else {
  24281. context = context._context;
  24282. }
  24283. }
  24284. var newProps = workInProgress.pendingProps;
  24285. var render = newProps.children;
  24286. {
  24287. !(typeof render === 'function') ? warningWithoutStack$1(false, '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.') : void 0;
  24288. }
  24289. prepareToReadContext(workInProgress, renderExpirationTime);
  24290. var newValue = readContext(context, newProps.unstable_observedBits);
  24291. var newChildren = void 0;
  24292. {
  24293. ReactCurrentOwner$3.current = workInProgress;
  24294. setCurrentPhase('render');
  24295. newChildren = render(newValue);
  24296. setCurrentPhase(null);
  24297. }
  24298. // React DevTools reads this flag.
  24299. workInProgress.effectTag |= PerformedWork;
  24300. reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);
  24301. return workInProgress.child;
  24302. }
  24303. function updateFundamentalComponent$1(current$$1, workInProgress, renderExpirationTime) {
  24304. var fundamentalImpl = workInProgress.type.impl;
  24305. if (fundamentalImpl.reconcileChildren === false) {
  24306. return null;
  24307. }
  24308. var nextProps = workInProgress.pendingProps;
  24309. var nextChildren = nextProps.children;
  24310. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  24311. return workInProgress.child;
  24312. }
  24313. function markWorkInProgressReceivedUpdate() {
  24314. didReceiveUpdate = true;
  24315. }
  24316. function bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime) {
  24317. cancelWorkTimer(workInProgress);
  24318. if (current$$1 !== null) {
  24319. // Reuse previous dependencies
  24320. workInProgress.dependencies = current$$1.dependencies;
  24321. }
  24322. if (enableProfilerTimer) {
  24323. // Don't update "base" render times for bailouts.
  24324. stopProfilerTimerIfRunning(workInProgress);
  24325. }
  24326. // Check if the children have any pending work.
  24327. var childExpirationTime = workInProgress.childExpirationTime;
  24328. if (childExpirationTime < renderExpirationTime) {
  24329. // The children don't have any work either. We can skip them.
  24330. // TODO: Once we add back resuming, we should check if the children are
  24331. // a work-in-progress set. If so, we need to transfer their effects.
  24332. return null;
  24333. } else {
  24334. // This fiber doesn't have work, but its subtree does. Clone the child
  24335. // fibers and continue.
  24336. cloneChildFibers(current$$1, workInProgress);
  24337. return workInProgress.child;
  24338. }
  24339. }
  24340. function remountFiber(current$$1, oldWorkInProgress, newWorkInProgress) {
  24341. {
  24342. var returnFiber = oldWorkInProgress.return;
  24343. if (returnFiber === null) {
  24344. throw new Error('Cannot swap the root fiber.');
  24345. }
  24346. // Disconnect from the old current.
  24347. // It will get deleted.
  24348. current$$1.alternate = null;
  24349. oldWorkInProgress.alternate = null;
  24350. // Connect to the new tree.
  24351. newWorkInProgress.index = oldWorkInProgress.index;
  24352. newWorkInProgress.sibling = oldWorkInProgress.sibling;
  24353. newWorkInProgress.return = oldWorkInProgress.return;
  24354. newWorkInProgress.ref = oldWorkInProgress.ref;
  24355. // Replace the child/sibling pointers above it.
  24356. if (oldWorkInProgress === returnFiber.child) {
  24357. returnFiber.child = newWorkInProgress;
  24358. } else {
  24359. var prevSibling = returnFiber.child;
  24360. if (prevSibling === null) {
  24361. throw new Error('Expected parent to have a child.');
  24362. }
  24363. while (prevSibling.sibling !== oldWorkInProgress) {
  24364. prevSibling = prevSibling.sibling;
  24365. if (prevSibling === null) {
  24366. throw new Error('Expected to find the previous sibling.');
  24367. }
  24368. }
  24369. prevSibling.sibling = newWorkInProgress;
  24370. }
  24371. // Delete the old fiber and place the new one.
  24372. // Since the old fiber is disconnected, we have to schedule it manually.
  24373. var last = returnFiber.lastEffect;
  24374. if (last !== null) {
  24375. last.nextEffect = current$$1;
  24376. returnFiber.lastEffect = current$$1;
  24377. } else {
  24378. returnFiber.firstEffect = returnFiber.lastEffect = current$$1;
  24379. }
  24380. current$$1.nextEffect = null;
  24381. current$$1.effectTag = Deletion;
  24382. newWorkInProgress.effectTag |= Placement;
  24383. // Restart work from the new fiber.
  24384. return newWorkInProgress;
  24385. }
  24386. }
  24387. function beginWork$1(current$$1, workInProgress, renderExpirationTime) {
  24388. var updateExpirationTime = workInProgress.expirationTime;
  24389. {
  24390. if (workInProgress._debugNeedsRemount && current$$1 !== null) {
  24391. // This will restart the begin phase with a new fiber.
  24392. return remountFiber(current$$1, workInProgress, createFiberFromTypeAndProps(workInProgress.type, workInProgress.key, workInProgress.pendingProps, workInProgress._debugOwner || null, workInProgress.mode, workInProgress.expirationTime));
  24393. }
  24394. }
  24395. if (current$$1 !== null) {
  24396. var oldProps = current$$1.memoizedProps;
  24397. var newProps = workInProgress.pendingProps;
  24398. if (oldProps !== newProps || hasContextChanged() || (
  24399. // Force a re-render if the implementation changed due to hot reload:
  24400. workInProgress.type !== current$$1.type)) {
  24401. // If props or context changed, mark the fiber as having performed work.
  24402. // This may be unset if the props are determined to be equal later (memo).
  24403. didReceiveUpdate = true;
  24404. } else if (updateExpirationTime < renderExpirationTime) {
  24405. didReceiveUpdate = false;
  24406. // This fiber does not have any pending work. Bailout without entering
  24407. // the begin phase. There's still some bookkeeping we that needs to be done
  24408. // in this optimized path, mostly pushing stuff onto the stack.
  24409. switch (workInProgress.tag) {
  24410. case HostRoot:
  24411. pushHostRootContext(workInProgress);
  24412. resetHydrationState();
  24413. break;
  24414. case HostComponent:
  24415. pushHostContext(workInProgress);
  24416. if (workInProgress.mode & ConcurrentMode && renderExpirationTime !== Never && shouldDeprioritizeSubtree(workInProgress.type, newProps)) {
  24417. if (enableSchedulerTracing) {
  24418. markSpawnedWork(Never);
  24419. }
  24420. // Schedule this fiber to re-render at offscreen priority. Then bailout.
  24421. workInProgress.expirationTime = workInProgress.childExpirationTime = Never;
  24422. return null;
  24423. }
  24424. break;
  24425. case ClassComponent:
  24426. {
  24427. var Component = workInProgress.type;
  24428. if (isContextProvider(Component)) {
  24429. pushContextProvider(workInProgress);
  24430. }
  24431. break;
  24432. }
  24433. case HostPortal:
  24434. pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
  24435. break;
  24436. case ContextProvider:
  24437. {
  24438. var newValue = workInProgress.memoizedProps.value;
  24439. pushProvider(workInProgress, newValue);
  24440. break;
  24441. }
  24442. case Profiler:
  24443. if (enableProfilerTimer) {
  24444. workInProgress.effectTag |= Update;
  24445. }
  24446. break;
  24447. case SuspenseComponent:
  24448. {
  24449. var state = workInProgress.memoizedState;
  24450. var didTimeout = state !== null;
  24451. if (didTimeout) {
  24452. // If this boundary is currently timed out, we need to decide
  24453. // whether to retry the primary children, or to skip over it and
  24454. // go straight to the fallback. Check the priority of the primary
  24455. var primaryChildFragment = workInProgress.child;
  24456. var primaryChildExpirationTime = primaryChildFragment.childExpirationTime;
  24457. if (primaryChildExpirationTime !== NoWork && primaryChildExpirationTime >= renderExpirationTime) {
  24458. // The primary children have pending work. Use the normal path
  24459. // to attempt to render the primary children again.
  24460. return updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime);
  24461. } else {
  24462. pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
  24463. // The primary children do not have pending work with sufficient
  24464. // priority. Bailout.
  24465. var child = bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  24466. if (child !== null) {
  24467. // The fallback children have pending work. Skip over the
  24468. // primary children and work on the fallback.
  24469. return child.sibling;
  24470. } else {
  24471. return null;
  24472. }
  24473. }
  24474. } else {
  24475. pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
  24476. }
  24477. break;
  24478. }
  24479. case DehydratedSuspenseComponent:
  24480. {
  24481. if (enableSuspenseServerRenderer) {
  24482. pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
  24483. // We know that this component will suspend again because if it has
  24484. // been unsuspended it has committed as a regular Suspense component.
  24485. // If it needs to be retried, it should have work scheduled on it.
  24486. workInProgress.effectTag |= DidCapture;
  24487. }
  24488. break;
  24489. }
  24490. case SuspenseListComponent:
  24491. {
  24492. var didSuspendBefore = (current$$1.effectTag & DidCapture) !== NoEffect;
  24493. var hasChildWork = workInProgress.childExpirationTime >= renderExpirationTime;
  24494. if (didSuspendBefore) {
  24495. if (hasChildWork) {
  24496. // If something was in fallback state last time, and we have all the
  24497. // same children then we're still in progressive loading state.
  24498. // Something might get unblocked by state updates or retries in the
  24499. // tree which will affect the tail. So we need to use the normal
  24500. // path to compute the correct tail.
  24501. return updateSuspenseListComponent(current$$1, workInProgress, renderExpirationTime);
  24502. }
  24503. // If none of the children had any work, that means that none of
  24504. // them got retried so they'll still be blocked in the same way
  24505. // as before. We can fast bail out.
  24506. workInProgress.effectTag |= DidCapture;
  24507. }
  24508. // If nothing suspended before and we're rendering the same children,
  24509. // then the tail doesn't matter. Anything new that suspends will work
  24510. // in the "together" mode, so we can continue from the state we had.
  24511. var renderState = workInProgress.memoizedState;
  24512. if (renderState !== null) {
  24513. // Reset to the "together" mode in case we've started a different
  24514. // update in the past but didn't complete it.
  24515. renderState.rendering = null;
  24516. renderState.tail = null;
  24517. }
  24518. pushSuspenseContext(workInProgress, suspenseStackCursor.current);
  24519. if (hasChildWork) {
  24520. break;
  24521. } else {
  24522. // If none of the children had any work, that means that none of
  24523. // them got retried so they'll still be blocked in the same way
  24524. // as before. We can fast bail out.
  24525. return null;
  24526. }
  24527. }
  24528. }
  24529. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  24530. }
  24531. } else {
  24532. didReceiveUpdate = false;
  24533. }
  24534. // Before entering the begin phase, clear the expiration time.
  24535. workInProgress.expirationTime = NoWork;
  24536. switch (workInProgress.tag) {
  24537. case IndeterminateComponent:
  24538. {
  24539. return mountIndeterminateComponent(current$$1, workInProgress, workInProgress.type, renderExpirationTime);
  24540. }
  24541. case LazyComponent:
  24542. {
  24543. var elementType = workInProgress.elementType;
  24544. return mountLazyComponent(current$$1, workInProgress, elementType, updateExpirationTime, renderExpirationTime);
  24545. }
  24546. case FunctionComponent:
  24547. {
  24548. var _Component = workInProgress.type;
  24549. var unresolvedProps = workInProgress.pendingProps;
  24550. var resolvedProps = workInProgress.elementType === _Component ? unresolvedProps : resolveDefaultProps(_Component, unresolvedProps);
  24551. return updateFunctionComponent(current$$1, workInProgress, _Component, resolvedProps, renderExpirationTime);
  24552. }
  24553. case ClassComponent:
  24554. {
  24555. var _Component2 = workInProgress.type;
  24556. var _unresolvedProps = workInProgress.pendingProps;
  24557. var _resolvedProps = workInProgress.elementType === _Component2 ? _unresolvedProps : resolveDefaultProps(_Component2, _unresolvedProps);
  24558. return updateClassComponent(current$$1, workInProgress, _Component2, _resolvedProps, renderExpirationTime);
  24559. }
  24560. case HostRoot:
  24561. return updateHostRoot(current$$1, workInProgress, renderExpirationTime);
  24562. case HostComponent:
  24563. return updateHostComponent(current$$1, workInProgress, renderExpirationTime);
  24564. case HostText:
  24565. return updateHostText(current$$1, workInProgress);
  24566. case SuspenseComponent:
  24567. return updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime);
  24568. case HostPortal:
  24569. return updatePortalComponent(current$$1, workInProgress, renderExpirationTime);
  24570. case ForwardRef:
  24571. {
  24572. var type = workInProgress.type;
  24573. var _unresolvedProps2 = workInProgress.pendingProps;
  24574. var _resolvedProps2 = workInProgress.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);
  24575. return updateForwardRef(current$$1, workInProgress, type, _resolvedProps2, renderExpirationTime);
  24576. }
  24577. case Fragment:
  24578. return updateFragment(current$$1, workInProgress, renderExpirationTime);
  24579. case Mode:
  24580. return updateMode(current$$1, workInProgress, renderExpirationTime);
  24581. case Profiler:
  24582. return updateProfiler(current$$1, workInProgress, renderExpirationTime);
  24583. case ContextProvider:
  24584. return updateContextProvider(current$$1, workInProgress, renderExpirationTime);
  24585. case ContextConsumer:
  24586. return updateContextConsumer(current$$1, workInProgress, renderExpirationTime);
  24587. case MemoComponent:
  24588. {
  24589. var _type2 = workInProgress.type;
  24590. var _unresolvedProps3 = workInProgress.pendingProps;
  24591. // Resolve outer props first, then resolve inner props.
  24592. var _resolvedProps3 = resolveDefaultProps(_type2, _unresolvedProps3);
  24593. {
  24594. if (workInProgress.type !== workInProgress.elementType) {
  24595. var outerPropTypes = _type2.propTypes;
  24596. if (outerPropTypes) {
  24597. checkPropTypes(outerPropTypes, _resolvedProps3, // Resolved for outer only
  24598. 'prop', getComponentName(_type2), getCurrentFiberStackInDev);
  24599. }
  24600. }
  24601. }
  24602. _resolvedProps3 = resolveDefaultProps(_type2.type, _resolvedProps3);
  24603. return updateMemoComponent(current$$1, workInProgress, _type2, _resolvedProps3, updateExpirationTime, renderExpirationTime);
  24604. }
  24605. case SimpleMemoComponent:
  24606. {
  24607. return updateSimpleMemoComponent(current$$1, workInProgress, workInProgress.type, workInProgress.pendingProps, updateExpirationTime, renderExpirationTime);
  24608. }
  24609. case IncompleteClassComponent:
  24610. {
  24611. var _Component3 = workInProgress.type;
  24612. var _unresolvedProps4 = workInProgress.pendingProps;
  24613. var _resolvedProps4 = workInProgress.elementType === _Component3 ? _unresolvedProps4 : resolveDefaultProps(_Component3, _unresolvedProps4);
  24614. return mountIncompleteClassComponent(current$$1, workInProgress, _Component3, _resolvedProps4, renderExpirationTime);
  24615. }
  24616. case DehydratedSuspenseComponent:
  24617. {
  24618. if (enableSuspenseServerRenderer) {
  24619. return updateDehydratedSuspenseComponent(current$$1, workInProgress, renderExpirationTime);
  24620. }
  24621. break;
  24622. }
  24623. case SuspenseListComponent:
  24624. {
  24625. return updateSuspenseListComponent(current$$1, workInProgress, renderExpirationTime);
  24626. }
  24627. case FundamentalComponent:
  24628. {
  24629. if (enableFundamentalAPI) {
  24630. return updateFundamentalComponent$1(current$$1, workInProgress, renderExpirationTime);
  24631. }
  24632. break;
  24633. }
  24634. }
  24635. (function () {
  24636. {
  24637. {
  24638. throw ReactError(Error('Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.'));
  24639. }
  24640. }
  24641. })();
  24642. }
  24643. function createFundamentalStateInstance(currentFiber, props, impl, state) {
  24644. return {
  24645. currentFiber: currentFiber,
  24646. impl: impl,
  24647. instance: null,
  24648. prevProps: null,
  24649. props: props,
  24650. state: state
  24651. };
  24652. }
  24653. var emptyObject = {};
  24654. var isArray$2 = Array.isArray;
  24655. function markUpdate(workInProgress) {
  24656. // Tag the fiber with an update effect. This turns a Placement into
  24657. // a PlacementAndUpdate.
  24658. workInProgress.effectTag |= Update;
  24659. }
  24660. function markRef$1(workInProgress) {
  24661. workInProgress.effectTag |= Ref;
  24662. }
  24663. var appendAllChildren = void 0;
  24664. var updateHostContainer = void 0;
  24665. var updateHostComponent$1 = void 0;
  24666. var updateHostText$1 = void 0;
  24667. if (supportsMutation) {
  24668. // Mutation mode
  24669. appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
  24670. // We only have the top Fiber that was created but we need recurse down its
  24671. // children to find all the terminal nodes.
  24672. var node = workInProgress.child;
  24673. while (node !== null) {
  24674. if (node.tag === HostComponent || node.tag === HostText) {
  24675. appendInitialChild(parent, node.stateNode);
  24676. } else if (node.tag === FundamentalComponent) {
  24677. appendInitialChild(parent, node.stateNode.instance);
  24678. } else if (node.tag === HostPortal) {
  24679. // If we have a portal child, then we don't want to traverse
  24680. // down its children. Instead, we'll get insertions from each child in
  24681. // the portal directly.
  24682. } else if (node.child !== null) {
  24683. node.child.return = node;
  24684. node = node.child;
  24685. continue;
  24686. }
  24687. if (node === workInProgress) {
  24688. return;
  24689. }
  24690. while (node.sibling === null) {
  24691. if (node.return === null || node.return === workInProgress) {
  24692. return;
  24693. }
  24694. node = node.return;
  24695. }
  24696. node.sibling.return = node.return;
  24697. node = node.sibling;
  24698. }
  24699. };
  24700. updateHostContainer = function (workInProgress) {
  24701. // Noop
  24702. };
  24703. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  24704. // If we have an alternate, that means this is an update and we need to
  24705. // schedule a side-effect to do the updates.
  24706. var oldProps = current.memoizedProps;
  24707. if (oldProps === newProps) {
  24708. // In mutation mode, this is sufficient for a bailout because
  24709. // we won't touch this node even if children changed.
  24710. return;
  24711. }
  24712. // If we get updated because one of our children updated, we don't
  24713. // have newProps so we'll have to reuse them.
  24714. // TODO: Split the update API as separate for the props vs. children.
  24715. // Even better would be if children weren't special cased at all tho.
  24716. var instance = workInProgress.stateNode;
  24717. var currentHostContext = getHostContext();
  24718. // TODO: Experiencing an error where oldProps is null. Suggests a host
  24719. // component is hitting the resume path. Figure out why. Possibly
  24720. // related to `hidden`.
  24721. var updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext);
  24722. // TODO: Type this specific to this type of component.
  24723. workInProgress.updateQueue = updatePayload;
  24724. // If the update payload indicates that there is a change or if there
  24725. // is a new ref we mark this as an update. All the work is done in commitWork.
  24726. if (updatePayload) {
  24727. markUpdate(workInProgress);
  24728. }
  24729. };
  24730. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  24731. // If the text differs, mark it as an update. All the work in done in commitWork.
  24732. if (oldText !== newText) {
  24733. markUpdate(workInProgress);
  24734. }
  24735. };
  24736. } else if (supportsPersistence) {
  24737. // Persistent host tree mode
  24738. appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
  24739. // We only have the top Fiber that was created but we need recurse down its
  24740. // children to find all the terminal nodes.
  24741. var node = workInProgress.child;
  24742. while (node !== null) {
  24743. // eslint-disable-next-line no-labels
  24744. branches: if (node.tag === HostComponent) {
  24745. var instance = node.stateNode;
  24746. if (needsVisibilityToggle && isHidden) {
  24747. // This child is inside a timed out tree. Hide it.
  24748. var props = node.memoizedProps;
  24749. var type = node.type;
  24750. instance = cloneHiddenInstance(instance, type, props, node);
  24751. }
  24752. appendInitialChild(parent, instance);
  24753. } else if (node.tag === HostText) {
  24754. var _instance = node.stateNode;
  24755. if (needsVisibilityToggle && isHidden) {
  24756. // This child is inside a timed out tree. Hide it.
  24757. var text = node.memoizedProps;
  24758. _instance = cloneHiddenTextInstance(_instance, text, node);
  24759. }
  24760. appendInitialChild(parent, _instance);
  24761. } else if (enableFundamentalAPI && node.tag === FundamentalComponent) {
  24762. var _instance2 = node.stateNode.instance;
  24763. if (needsVisibilityToggle && isHidden) {
  24764. // This child is inside a timed out tree. Hide it.
  24765. var _props = node.memoizedProps;
  24766. var _type = node.type;
  24767. _instance2 = cloneHiddenInstance(_instance2, _type, _props, node);
  24768. }
  24769. appendInitialChild(parent, _instance2);
  24770. } else if (node.tag === HostPortal) {
  24771. // If we have a portal child, then we don't want to traverse
  24772. // down its children. Instead, we'll get insertions from each child in
  24773. // the portal directly.
  24774. } else if (node.tag === SuspenseComponent) {
  24775. if ((node.effectTag & Update) !== NoEffect) {
  24776. // Need to toggle the visibility of the primary children.
  24777. var newIsHidden = node.memoizedState !== null;
  24778. if (newIsHidden) {
  24779. var primaryChildParent = node.child;
  24780. if (primaryChildParent !== null) {
  24781. if (primaryChildParent.child !== null) {
  24782. primaryChildParent.child.return = primaryChildParent;
  24783. appendAllChildren(parent, primaryChildParent, true, newIsHidden);
  24784. }
  24785. var fallbackChildParent = primaryChildParent.sibling;
  24786. if (fallbackChildParent !== null) {
  24787. fallbackChildParent.return = node;
  24788. node = fallbackChildParent;
  24789. continue;
  24790. }
  24791. }
  24792. }
  24793. }
  24794. if (node.child !== null) {
  24795. // Continue traversing like normal
  24796. node.child.return = node;
  24797. node = node.child;
  24798. continue;
  24799. }
  24800. } else if (node.child !== null) {
  24801. node.child.return = node;
  24802. node = node.child;
  24803. continue;
  24804. }
  24805. // $FlowFixMe This is correct but Flow is confused by the labeled break.
  24806. node = node;
  24807. if (node === workInProgress) {
  24808. return;
  24809. }
  24810. while (node.sibling === null) {
  24811. if (node.return === null || node.return === workInProgress) {
  24812. return;
  24813. }
  24814. node = node.return;
  24815. }
  24816. node.sibling.return = node.return;
  24817. node = node.sibling;
  24818. }
  24819. };
  24820. // An unfortunate fork of appendAllChildren because we have two different parent types.
  24821. var appendAllChildrenToContainer = function (containerChildSet, workInProgress, needsVisibilityToggle, isHidden) {
  24822. // We only have the top Fiber that was created but we need recurse down its
  24823. // children to find all the terminal nodes.
  24824. var node = workInProgress.child;
  24825. while (node !== null) {
  24826. // eslint-disable-next-line no-labels
  24827. branches: if (node.tag === HostComponent) {
  24828. var instance = node.stateNode;
  24829. if (needsVisibilityToggle && isHidden) {
  24830. // This child is inside a timed out tree. Hide it.
  24831. var props = node.memoizedProps;
  24832. var type = node.type;
  24833. instance = cloneHiddenInstance(instance, type, props, node);
  24834. }
  24835. appendChildToContainerChildSet(containerChildSet, instance);
  24836. } else if (node.tag === HostText) {
  24837. var _instance3 = node.stateNode;
  24838. if (needsVisibilityToggle && isHidden) {
  24839. // This child is inside a timed out tree. Hide it.
  24840. var text = node.memoizedProps;
  24841. _instance3 = cloneHiddenTextInstance(_instance3, text, node);
  24842. }
  24843. appendChildToContainerChildSet(containerChildSet, _instance3);
  24844. } else if (enableFundamentalAPI && node.tag === FundamentalComponent) {
  24845. var _instance4 = node.stateNode.instance;
  24846. if (needsVisibilityToggle && isHidden) {
  24847. // This child is inside a timed out tree. Hide it.
  24848. var _props2 = node.memoizedProps;
  24849. var _type2 = node.type;
  24850. _instance4 = cloneHiddenInstance(_instance4, _type2, _props2, node);
  24851. }
  24852. appendChildToContainerChildSet(containerChildSet, _instance4);
  24853. } else if (node.tag === HostPortal) {
  24854. // If we have a portal child, then we don't want to traverse
  24855. // down its children. Instead, we'll get insertions from each child in
  24856. // the portal directly.
  24857. } else if (node.tag === SuspenseComponent) {
  24858. if ((node.effectTag & Update) !== NoEffect) {
  24859. // Need to toggle the visibility of the primary children.
  24860. var newIsHidden = node.memoizedState !== null;
  24861. if (newIsHidden) {
  24862. var primaryChildParent = node.child;
  24863. if (primaryChildParent !== null) {
  24864. if (primaryChildParent.child !== null) {
  24865. primaryChildParent.child.return = primaryChildParent;
  24866. appendAllChildrenToContainer(containerChildSet, primaryChildParent, true, newIsHidden);
  24867. }
  24868. var fallbackChildParent = primaryChildParent.sibling;
  24869. if (fallbackChildParent !== null) {
  24870. fallbackChildParent.return = node;
  24871. node = fallbackChildParent;
  24872. continue;
  24873. }
  24874. }
  24875. }
  24876. }
  24877. if (node.child !== null) {
  24878. // Continue traversing like normal
  24879. node.child.return = node;
  24880. node = node.child;
  24881. continue;
  24882. }
  24883. } else if (node.child !== null) {
  24884. node.child.return = node;
  24885. node = node.child;
  24886. continue;
  24887. }
  24888. // $FlowFixMe This is correct but Flow is confused by the labeled break.
  24889. node = node;
  24890. if (node === workInProgress) {
  24891. return;
  24892. }
  24893. while (node.sibling === null) {
  24894. if (node.return === null || node.return === workInProgress) {
  24895. return;
  24896. }
  24897. node = node.return;
  24898. }
  24899. node.sibling.return = node.return;
  24900. node = node.sibling;
  24901. }
  24902. };
  24903. updateHostContainer = function (workInProgress) {
  24904. var portalOrRoot = workInProgress.stateNode;
  24905. var childrenUnchanged = workInProgress.firstEffect === null;
  24906. if (childrenUnchanged) {
  24907. // No changes, just reuse the existing instance.
  24908. } else {
  24909. var container = portalOrRoot.containerInfo;
  24910. var newChildSet = createContainerChildSet(container);
  24911. // If children might have changed, we have to add them all to the set.
  24912. appendAllChildrenToContainer(newChildSet, workInProgress, false, false);
  24913. portalOrRoot.pendingChildren = newChildSet;
  24914. // Schedule an update on the container to swap out the container.
  24915. markUpdate(workInProgress);
  24916. finalizeContainerChildren(container, newChildSet);
  24917. }
  24918. };
  24919. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  24920. var currentInstance = current.stateNode;
  24921. var oldProps = current.memoizedProps;
  24922. // If there are no effects associated with this node, then none of our children had any updates.
  24923. // This guarantees that we can reuse all of them.
  24924. var childrenUnchanged = workInProgress.firstEffect === null;
  24925. if (childrenUnchanged && oldProps === newProps) {
  24926. // No changes, just reuse the existing instance.
  24927. // Note that this might release a previous clone.
  24928. workInProgress.stateNode = currentInstance;
  24929. return;
  24930. }
  24931. var recyclableInstance = workInProgress.stateNode;
  24932. var currentHostContext = getHostContext();
  24933. var updatePayload = null;
  24934. if (oldProps !== newProps) {
  24935. updatePayload = prepareUpdate(recyclableInstance, type, oldProps, newProps, rootContainerInstance, currentHostContext);
  24936. }
  24937. if (childrenUnchanged && updatePayload === null) {
  24938. // No changes, just reuse the existing instance.
  24939. // Note that this might release a previous clone.
  24940. workInProgress.stateNode = currentInstance;
  24941. return;
  24942. }
  24943. var newInstance = cloneInstance(currentInstance, updatePayload, type, oldProps, newProps, workInProgress, childrenUnchanged, recyclableInstance);
  24944. if (finalizeInitialChildren(newInstance, type, newProps, rootContainerInstance, currentHostContext)) {
  24945. markUpdate(workInProgress);
  24946. }
  24947. workInProgress.stateNode = newInstance;
  24948. if (childrenUnchanged) {
  24949. // If there are no other effects in this tree, we need to flag this node as having one.
  24950. // Even though we're not going to use it for anything.
  24951. // Otherwise parents won't know that there are new children to propagate upwards.
  24952. markUpdate(workInProgress);
  24953. } else {
  24954. // If children might have changed, we have to add them all to the set.
  24955. appendAllChildren(newInstance, workInProgress, false, false);
  24956. }
  24957. };
  24958. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  24959. if (oldText !== newText) {
  24960. // If the text content differs, we'll create a new text instance for it.
  24961. var rootContainerInstance = getRootHostContainer();
  24962. var currentHostContext = getHostContext();
  24963. workInProgress.stateNode = createTextInstance(newText, rootContainerInstance, currentHostContext, workInProgress);
  24964. // We'll have to mark it as having an effect, even though we won't use the effect for anything.
  24965. // This lets the parents know that at least one of their children has changed.
  24966. markUpdate(workInProgress);
  24967. }
  24968. };
  24969. } else {
  24970. // No host operations
  24971. updateHostContainer = function (workInProgress) {
  24972. // Noop
  24973. };
  24974. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  24975. // Noop
  24976. };
  24977. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  24978. // Noop
  24979. };
  24980. }
  24981. function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
  24982. switch (renderState.tailMode) {
  24983. case 'hidden':
  24984. {
  24985. // Any insertions at the end of the tail list after this point
  24986. // should be invisible. If there are already mounted boundaries
  24987. // anything before them are not considered for collapsing.
  24988. // Therefore we need to go through the whole tail to find if
  24989. // there are any.
  24990. var tailNode = renderState.tail;
  24991. var lastTailNode = null;
  24992. while (tailNode !== null) {
  24993. if (tailNode.alternate !== null) {
  24994. lastTailNode = tailNode;
  24995. }
  24996. tailNode = tailNode.sibling;
  24997. }
  24998. // Next we're simply going to delete all insertions after the
  24999. // last rendered item.
  25000. if (lastTailNode === null) {
  25001. // All remaining items in the tail are insertions.
  25002. renderState.tail = null;
  25003. } else {
  25004. // Detach the insertion after the last node that was already
  25005. // inserted.
  25006. lastTailNode.sibling = null;
  25007. }
  25008. break;
  25009. }
  25010. case 'collapsed':
  25011. {
  25012. // Any insertions at the end of the tail list after this point
  25013. // should be invisible. If there are already mounted boundaries
  25014. // anything before them are not considered for collapsing.
  25015. // Therefore we need to go through the whole tail to find if
  25016. // there are any.
  25017. var _tailNode = renderState.tail;
  25018. var _lastTailNode = null;
  25019. while (_tailNode !== null) {
  25020. if (_tailNode.alternate !== null) {
  25021. _lastTailNode = _tailNode;
  25022. }
  25023. _tailNode = _tailNode.sibling;
  25024. }
  25025. // Next we're simply going to delete all insertions after the
  25026. // last rendered item.
  25027. if (_lastTailNode === null) {
  25028. // All remaining items in the tail are insertions.
  25029. if (!hasRenderedATailFallback && renderState.tail !== null) {
  25030. // We suspended during the head. We want to show at least one
  25031. // row at the tail. So we'll keep on and cut off the rest.
  25032. renderState.tail.sibling = null;
  25033. } else {
  25034. renderState.tail = null;
  25035. }
  25036. } else {
  25037. // Detach the insertion after the last node that was already
  25038. // inserted.
  25039. _lastTailNode.sibling = null;
  25040. }
  25041. break;
  25042. }
  25043. }
  25044. }
  25045. function completeWork(current, workInProgress, renderExpirationTime) {
  25046. var newProps = workInProgress.pendingProps;
  25047. switch (workInProgress.tag) {
  25048. case IndeterminateComponent:
  25049. break;
  25050. case LazyComponent:
  25051. break;
  25052. case SimpleMemoComponent:
  25053. case FunctionComponent:
  25054. break;
  25055. case ClassComponent:
  25056. {
  25057. var Component = workInProgress.type;
  25058. if (isContextProvider(Component)) {
  25059. popContext(workInProgress);
  25060. }
  25061. break;
  25062. }
  25063. case HostRoot:
  25064. {
  25065. popHostContainer(workInProgress);
  25066. popTopLevelContextObject(workInProgress);
  25067. var fiberRoot = workInProgress.stateNode;
  25068. if (fiberRoot.pendingContext) {
  25069. fiberRoot.context = fiberRoot.pendingContext;
  25070. fiberRoot.pendingContext = null;
  25071. }
  25072. if (current === null || current.child === null) {
  25073. // If we hydrated, pop so that we can delete any remaining children
  25074. // that weren't hydrated.
  25075. popHydrationState(workInProgress);
  25076. // This resets the hacky state to fix isMounted before committing.
  25077. // TODO: Delete this when we delete isMounted and findDOMNode.
  25078. workInProgress.effectTag &= ~Placement;
  25079. }
  25080. updateHostContainer(workInProgress);
  25081. break;
  25082. }
  25083. case HostComponent:
  25084. {
  25085. popHostContext(workInProgress);
  25086. var rootContainerInstance = getRootHostContainer();
  25087. var type = workInProgress.type;
  25088. if (current !== null && workInProgress.stateNode != null) {
  25089. updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance);
  25090. if (enableFlareAPI) {
  25091. var prevListeners = current.memoizedProps.listeners;
  25092. var nextListeners = newProps.listeners;
  25093. var instance = workInProgress.stateNode;
  25094. if (prevListeners !== nextListeners) {
  25095. updateEventListeners(nextListeners, instance, rootContainerInstance, workInProgress);
  25096. }
  25097. }
  25098. if (current.ref !== workInProgress.ref) {
  25099. markRef$1(workInProgress);
  25100. }
  25101. } else {
  25102. if (!newProps) {
  25103. (function () {
  25104. if (!(workInProgress.stateNode !== null)) {
  25105. {
  25106. throw ReactError(Error('We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.'));
  25107. }
  25108. }
  25109. })();
  25110. // This can happen when we abort work.
  25111. break;
  25112. }
  25113. var currentHostContext = getHostContext();
  25114. // TODO: Move createInstance to beginWork and keep it on a context
  25115. // "stack" as the parent. Then append children as we go in beginWork
  25116. // or completeWork depending on we want to add then top->down or
  25117. // bottom->up. Top->down is faster in IE11.
  25118. var wasHydrated = popHydrationState(workInProgress);
  25119. if (wasHydrated) {
  25120. // TODO: Move this and createInstance step into the beginPhase
  25121. // to consolidate.
  25122. if (prepareToHydrateHostInstance(workInProgress, rootContainerInstance, currentHostContext)) {
  25123. // If changes to the hydrated node needs to be applied at the
  25124. // commit-phase we mark this as such.
  25125. markUpdate(workInProgress);
  25126. }
  25127. } else {
  25128. var _instance5 = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress);
  25129. appendAllChildren(_instance5, workInProgress, false, false);
  25130. if (enableFlareAPI) {
  25131. var listeners = newProps.listeners;
  25132. if (listeners != null) {
  25133. updateEventListeners(listeners, _instance5, rootContainerInstance, workInProgress);
  25134. }
  25135. }
  25136. // Certain renderers require commit-time effects for initial mount.
  25137. // (eg DOM renderer supports auto-focus for certain elements).
  25138. // Make sure such renderers get scheduled for later work.
  25139. if (finalizeInitialChildren(_instance5, type, newProps, rootContainerInstance, currentHostContext)) {
  25140. markUpdate(workInProgress);
  25141. }
  25142. workInProgress.stateNode = _instance5;
  25143. }
  25144. if (workInProgress.ref !== null) {
  25145. // If there is a ref on a host node we need to schedule a callback
  25146. markRef$1(workInProgress);
  25147. }
  25148. }
  25149. break;
  25150. }
  25151. case HostText:
  25152. {
  25153. var newText = newProps;
  25154. if (current && workInProgress.stateNode != null) {
  25155. var oldText = current.memoizedProps;
  25156. // If we have an alternate, that means this is an update and we need
  25157. // to schedule a side-effect to do the updates.
  25158. updateHostText$1(current, workInProgress, oldText, newText);
  25159. } else {
  25160. if (typeof newText !== 'string') {
  25161. (function () {
  25162. if (!(workInProgress.stateNode !== null)) {
  25163. {
  25164. throw ReactError(Error('We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.'));
  25165. }
  25166. }
  25167. })();
  25168. // This can happen when we abort work.
  25169. }
  25170. var _rootContainerInstance = getRootHostContainer();
  25171. var _currentHostContext = getHostContext();
  25172. var _wasHydrated = popHydrationState(workInProgress);
  25173. if (_wasHydrated) {
  25174. if (prepareToHydrateHostTextInstance(workInProgress)) {
  25175. markUpdate(workInProgress);
  25176. }
  25177. } else {
  25178. workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress);
  25179. }
  25180. }
  25181. break;
  25182. }
  25183. case ForwardRef:
  25184. break;
  25185. case SuspenseComponent:
  25186. {
  25187. popSuspenseContext(workInProgress);
  25188. var nextState = workInProgress.memoizedState;
  25189. if ((workInProgress.effectTag & DidCapture) !== NoEffect) {
  25190. // Something suspended. Re-render with the fallback children.
  25191. workInProgress.expirationTime = renderExpirationTime;
  25192. // Do not reset the effect list.
  25193. return workInProgress;
  25194. }
  25195. var nextDidTimeout = nextState !== null;
  25196. var prevDidTimeout = false;
  25197. if (current === null) {
  25198. // In cases where we didn't find a suitable hydration boundary we never
  25199. // downgraded this to a DehydratedSuspenseComponent, but we still need to
  25200. // pop the hydration state since we might be inside the insertion tree.
  25201. popHydrationState(workInProgress);
  25202. } else {
  25203. var prevState = current.memoizedState;
  25204. prevDidTimeout = prevState !== null;
  25205. if (!nextDidTimeout && prevState !== null) {
  25206. // We just switched from the fallback to the normal children.
  25207. // Delete the fallback.
  25208. // TODO: Would it be better to store the fallback fragment on
  25209. var currentFallbackChild = current.child.sibling;
  25210. if (currentFallbackChild !== null) {
  25211. // Deletions go at the beginning of the return fiber's effect list
  25212. var first = workInProgress.firstEffect;
  25213. if (first !== null) {
  25214. workInProgress.firstEffect = currentFallbackChild;
  25215. currentFallbackChild.nextEffect = first;
  25216. } else {
  25217. workInProgress.firstEffect = workInProgress.lastEffect = currentFallbackChild;
  25218. currentFallbackChild.nextEffect = null;
  25219. }
  25220. currentFallbackChild.effectTag = Deletion;
  25221. }
  25222. }
  25223. }
  25224. if (nextDidTimeout && !prevDidTimeout) {
  25225. // If this subtreee is running in batched mode we can suspend,
  25226. // otherwise we won't suspend.
  25227. // TODO: This will still suspend a synchronous tree if anything
  25228. // in the concurrent tree already suspended during this render.
  25229. // This is a known bug.
  25230. if ((workInProgress.mode & BatchedMode) !== NoMode) {
  25231. // TODO: Move this back to throwException because this is too late
  25232. // if this is a large tree which is common for initial loads. We
  25233. // don't know if we should restart a render or not until we get
  25234. // this marker, and this is too late.
  25235. // If this render already had a ping or lower pri updates,
  25236. // and this is the first time we know we're going to suspend we
  25237. // should be able to immediately restart from within throwException.
  25238. var hasInvisibleChildContext = current === null && workInProgress.memoizedProps.unstable_avoidThisFallback !== true;
  25239. if (hasInvisibleChildContext || hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext)) {
  25240. // If this was in an invisible tree or a new render, then showing
  25241. // this boundary is ok.
  25242. renderDidSuspend();
  25243. } else {
  25244. // Otherwise, we're going to have to hide content so we should
  25245. // suspend for longer if possible.
  25246. renderDidSuspendDelayIfPossible();
  25247. }
  25248. }
  25249. }
  25250. if (supportsPersistence) {
  25251. // TODO: Only schedule updates if not prevDidTimeout.
  25252. if (nextDidTimeout) {
  25253. // If this boundary just timed out, schedule an effect to attach a
  25254. // retry listener to the proimse. This flag is also used to hide the
  25255. // primary children.
  25256. workInProgress.effectTag |= Update;
  25257. }
  25258. }
  25259. if (supportsMutation) {
  25260. // TODO: Only schedule updates if these values are non equal, i.e. it changed.
  25261. if (nextDidTimeout || prevDidTimeout) {
  25262. // If this boundary just timed out, schedule an effect to attach a
  25263. // retry listener to the proimse. This flag is also used to hide the
  25264. // primary children. In mutation mode, we also need the flag to
  25265. // *unhide* children that were previously hidden, so check if the
  25266. // is currently timed out, too.
  25267. workInProgress.effectTag |= Update;
  25268. }
  25269. }
  25270. if (enableSuspenseCallback && workInProgress.updateQueue !== null && workInProgress.memoizedProps.suspenseCallback != null) {
  25271. // Always notify the callback
  25272. workInProgress.effectTag |= Update;
  25273. }
  25274. break;
  25275. }
  25276. case Fragment:
  25277. break;
  25278. case Mode:
  25279. break;
  25280. case Profiler:
  25281. break;
  25282. case HostPortal:
  25283. popHostContainer(workInProgress);
  25284. updateHostContainer(workInProgress);
  25285. break;
  25286. case ContextProvider:
  25287. // Pop provider fiber
  25288. popProvider(workInProgress);
  25289. break;
  25290. case ContextConsumer:
  25291. break;
  25292. case MemoComponent:
  25293. break;
  25294. case IncompleteClassComponent:
  25295. {
  25296. // Same as class component case. I put it down here so that the tags are
  25297. // sequential to ensure this switch is compiled to a jump table.
  25298. var _Component = workInProgress.type;
  25299. if (isContextProvider(_Component)) {
  25300. popContext(workInProgress);
  25301. }
  25302. break;
  25303. }
  25304. case DehydratedSuspenseComponent:
  25305. {
  25306. if (enableSuspenseServerRenderer) {
  25307. popSuspenseContext(workInProgress);
  25308. if (current === null) {
  25309. var _wasHydrated2 = popHydrationState(workInProgress);
  25310. (function () {
  25311. if (!_wasHydrated2) {
  25312. {
  25313. throw ReactError(Error('A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.'));
  25314. }
  25315. }
  25316. })();
  25317. if (enableSchedulerTracing) {
  25318. markSpawnedWork(Never);
  25319. }
  25320. skipPastDehydratedSuspenseInstance(workInProgress);
  25321. } else if ((workInProgress.effectTag & DidCapture) === NoEffect) {
  25322. // This boundary did not suspend so it's now hydrated.
  25323. // To handle any future suspense cases, we're going to now upgrade it
  25324. // to a Suspense component. We detach it from the existing current fiber.
  25325. current.alternate = null;
  25326. workInProgress.alternate = null;
  25327. workInProgress.tag = SuspenseComponent;
  25328. workInProgress.memoizedState = null;
  25329. workInProgress.stateNode = null;
  25330. }
  25331. }
  25332. break;
  25333. }
  25334. case SuspenseListComponent:
  25335. {
  25336. popSuspenseContext(workInProgress);
  25337. var renderState = workInProgress.memoizedState;
  25338. if (renderState === null) {
  25339. // We're running in the default, "independent" mode. We don't do anything
  25340. // in this mode.
  25341. break;
  25342. }
  25343. var didSuspendAlready = (workInProgress.effectTag & DidCapture) !== NoEffect;
  25344. var renderedTail = renderState.rendering;
  25345. if (renderedTail === null) {
  25346. // We just rendered the head.
  25347. if (!didSuspendAlready) {
  25348. // This is the first pass. We need to figure out if anything is still
  25349. // suspended in the rendered set.
  25350. // If new content unsuspended, but there's still some content that
  25351. // didn't. Then we need to do a second pass that forces everything
  25352. // to keep showing their fallbacks.
  25353. // We might be suspended if something in this render pass suspended, or
  25354. // something in the previous committed pass suspended. Otherwise,
  25355. // there's no chance so we can skip the expensive call to
  25356. // findFirstSuspended.
  25357. var cannotBeSuspended = renderHasNotSuspendedYet() && (current === null || (current.effectTag & DidCapture) === NoEffect);
  25358. if (!cannotBeSuspended) {
  25359. var row = workInProgress.child;
  25360. while (row !== null) {
  25361. var suspended = findFirstSuspended(row);
  25362. if (suspended !== null) {
  25363. didSuspendAlready = true;
  25364. workInProgress.effectTag |= DidCapture;
  25365. cutOffTailIfNeeded(renderState, false);
  25366. // If this is a newly suspended tree, it might not get committed as
  25367. // part of the second pass. In that case nothing will subscribe to
  25368. // its thennables. Instead, we'll transfer its thennables to the
  25369. // SuspenseList so that it can retry if they resolve.
  25370. // There might be multiple of these in the list but since we're
  25371. // going to wait for all of them anyway, it doesn't really matter
  25372. // which ones gets to ping. In theory we could get clever and keep
  25373. // track of how many dependencies remain but it gets tricky because
  25374. // in the meantime, we can add/remove/change items and dependencies.
  25375. // We might bail out of the loop before finding any but that
  25376. // doesn't matter since that means that the other boundaries that
  25377. // we did find already has their listeners attached.
  25378. var newThennables = suspended.updateQueue;
  25379. if (newThennables !== null) {
  25380. workInProgress.updateQueue = newThennables;
  25381. workInProgress.effectTag |= Update;
  25382. }
  25383. // Rerender the whole list, but this time, we'll force fallbacks
  25384. // to stay in place.
  25385. // Reset the effect list before doing the second pass since that's now invalid.
  25386. workInProgress.firstEffect = workInProgress.lastEffect = null;
  25387. // Reset the child fibers to their original state.
  25388. resetChildFibers(workInProgress, renderExpirationTime);
  25389. // Set up the Suspense Context to force suspense and immediately
  25390. // rerender the children.
  25391. pushSuspenseContext(workInProgress, setShallowSuspenseContext(suspenseStackCursor.current, ForceSuspenseFallback));
  25392. return workInProgress.child;
  25393. }
  25394. row = row.sibling;
  25395. }
  25396. }
  25397. } else {
  25398. cutOffTailIfNeeded(renderState, false);
  25399. }
  25400. // Next we're going to render the tail.
  25401. } else {
  25402. // Append the rendered row to the child list.
  25403. if (!didSuspendAlready) {
  25404. var _suspended = findFirstSuspended(renderedTail);
  25405. if (_suspended !== null) {
  25406. workInProgress.effectTag |= DidCapture;
  25407. didSuspendAlready = true;
  25408. cutOffTailIfNeeded(renderState, true);
  25409. // This might have been modified.
  25410. if (renderState.tail === null && renderState.tailMode === 'hidden') {
  25411. // We need to delete the row we just rendered.
  25412. // Ensure we transfer the update queue to the parent.
  25413. var _newThennables = _suspended.updateQueue;
  25414. if (_newThennables !== null) {
  25415. workInProgress.updateQueue = _newThennables;
  25416. workInProgress.effectTag |= Update;
  25417. }
  25418. // Reset the effect list to what it w as before we rendered this
  25419. // child. The nested children have already appended themselves.
  25420. var lastEffect = workInProgress.lastEffect = renderState.lastEffect;
  25421. // Remove any effects that were appended after this point.
  25422. if (lastEffect !== null) {
  25423. lastEffect.nextEffect = null;
  25424. }
  25425. // We're done.
  25426. return null;
  25427. }
  25428. } else if (now() > renderState.tailExpiration && renderExpirationTime > Never) {
  25429. // We have now passed our CPU deadline and we'll just give up further
  25430. // attempts to render the main content and only render fallbacks.
  25431. // The assumption is that this is usually faster.
  25432. workInProgress.effectTag |= DidCapture;
  25433. didSuspendAlready = true;
  25434. cutOffTailIfNeeded(renderState, false);
  25435. // Since nothing actually suspended, there will nothing to ping this
  25436. // to get it started back up to attempt the next item. If we can show
  25437. // them, then they really have the same priority as this render.
  25438. // So we'll pick it back up the very next render pass once we've had
  25439. // an opportunity to yield for paint.
  25440. var nextPriority = renderExpirationTime - 1;
  25441. workInProgress.expirationTime = workInProgress.childExpirationTime = nextPriority;
  25442. if (enableSchedulerTracing) {
  25443. markSpawnedWork(nextPriority);
  25444. }
  25445. }
  25446. }
  25447. if (renderState.isBackwards) {
  25448. // The effect list of the backwards tail will have been added
  25449. // to the end. This breaks the guarantee that life-cycles fire in
  25450. // sibling order but that isn't a strong guarantee promised by React.
  25451. // Especially since these might also just pop in during future commits.
  25452. // Append to the beginning of the list.
  25453. renderedTail.sibling = workInProgress.child;
  25454. workInProgress.child = renderedTail;
  25455. } else {
  25456. var previousSibling = renderState.last;
  25457. if (previousSibling !== null) {
  25458. previousSibling.sibling = renderedTail;
  25459. } else {
  25460. workInProgress.child = renderedTail;
  25461. }
  25462. renderState.last = renderedTail;
  25463. }
  25464. }
  25465. if (renderState.tail !== null) {
  25466. // We still have tail rows to render.
  25467. if (renderState.tailExpiration === 0) {
  25468. // Heuristic for how long we're willing to spend rendering rows
  25469. // until we just give up and show what we have so far.
  25470. var TAIL_EXPIRATION_TIMEOUT_MS = 500;
  25471. renderState.tailExpiration = now() + TAIL_EXPIRATION_TIMEOUT_MS;
  25472. }
  25473. // Pop a row.
  25474. var next = renderState.tail;
  25475. renderState.rendering = next;
  25476. renderState.tail = next.sibling;
  25477. renderState.lastEffect = workInProgress.lastEffect;
  25478. next.sibling = null;
  25479. // Restore the context.
  25480. // TODO: We can probably just avoid popping it instead and only
  25481. // setting it the first time we go from not suspended to suspended.
  25482. var suspenseContext = suspenseStackCursor.current;
  25483. if (didSuspendAlready) {
  25484. suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
  25485. } else {
  25486. suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  25487. }
  25488. pushSuspenseContext(workInProgress, suspenseContext);
  25489. // Do a pass over the next row.
  25490. return next;
  25491. }
  25492. break;
  25493. }
  25494. case FundamentalComponent:
  25495. {
  25496. if (enableFundamentalAPI) {
  25497. var fundamentalImpl = workInProgress.type.impl;
  25498. var fundamentalInstance = workInProgress.stateNode;
  25499. if (fundamentalInstance === null) {
  25500. var getInitialState = fundamentalImpl.getInitialState;
  25501. var fundamentalState = void 0;
  25502. if (getInitialState !== undefined) {
  25503. fundamentalState = getInitialState(newProps);
  25504. }
  25505. fundamentalInstance = workInProgress.stateNode = createFundamentalStateInstance(workInProgress, newProps, fundamentalImpl, fundamentalState || {});
  25506. var _instance6 = getFundamentalComponentInstance(fundamentalInstance);
  25507. fundamentalInstance.instance = _instance6;
  25508. if (fundamentalImpl.reconcileChildren === false) {
  25509. return null;
  25510. }
  25511. appendAllChildren(_instance6, workInProgress, false, false);
  25512. mountFundamentalComponent(fundamentalInstance);
  25513. } else {
  25514. // We fire update in commit phase
  25515. var prevProps = fundamentalInstance.props;
  25516. fundamentalInstance.prevProps = prevProps;
  25517. fundamentalInstance.props = newProps;
  25518. fundamentalInstance.currentFiber = workInProgress;
  25519. if (supportsPersistence) {
  25520. var _instance7 = cloneFundamentalInstance(fundamentalInstance);
  25521. fundamentalInstance.instance = _instance7;
  25522. appendAllChildren(_instance7, workInProgress, false, false);
  25523. }
  25524. var shouldUpdate = shouldUpdateFundamentalComponent(fundamentalInstance);
  25525. if (shouldUpdate) {
  25526. markUpdate(workInProgress);
  25527. }
  25528. }
  25529. }
  25530. break;
  25531. }
  25532. default:
  25533. (function () {
  25534. {
  25535. {
  25536. throw ReactError(Error('Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.'));
  25537. }
  25538. }
  25539. })();
  25540. }
  25541. return null;
  25542. }
  25543. function mountEventResponder$1(responder, responderProps, instance, rootContainerInstance, fiber, respondersMap) {
  25544. var responderState = emptyObject;
  25545. var getInitialState = responder.getInitialState;
  25546. if (getInitialState !== null) {
  25547. responderState = getInitialState(responderProps);
  25548. }
  25549. var responderInstance = createResponderInstance(responder, responderProps, responderState, instance, fiber);
  25550. mountResponderInstance(responder, responderInstance, responderProps, responderState, instance, rootContainerInstance);
  25551. respondersMap.set(responder, responderInstance);
  25552. }
  25553. function updateEventListener(listener, fiber, visistedResponders, respondersMap, instance, rootContainerInstance) {
  25554. var responder = void 0;
  25555. var props = void 0;
  25556. if (listener) {
  25557. responder = listener.responder;
  25558. props = listener.props;
  25559. }
  25560. (function () {
  25561. if (!(responder && responder.$$typeof === REACT_RESPONDER_TYPE)) {
  25562. {
  25563. throw ReactError(Error('An invalid value was used as an event listener. Expect one or many event listeners created via React.unstable_useResponer().'));
  25564. }
  25565. }
  25566. })();
  25567. var listenerProps = props;
  25568. if (visistedResponders.has(responder)) {
  25569. // show warning
  25570. {
  25571. warning$1(false, 'Duplicate event responder "%s" found in event listeners. ' + 'Event listeners passed to elements cannot use the same event responder more than once.', responder.displayName);
  25572. }
  25573. return;
  25574. }
  25575. visistedResponders.add(responder);
  25576. var responderInstance = respondersMap.get(responder);
  25577. if (responderInstance === undefined) {
  25578. // Mount
  25579. mountEventResponder$1(responder, listenerProps, instance, rootContainerInstance, fiber, respondersMap);
  25580. } else {
  25581. // Update
  25582. responderInstance.props = listenerProps;
  25583. responderInstance.fiber = fiber;
  25584. }
  25585. }
  25586. function updateEventListeners(listeners, instance, rootContainerInstance, fiber) {
  25587. var visistedResponders = new Set();
  25588. var dependencies = fiber.dependencies;
  25589. if (listeners != null) {
  25590. if (dependencies === null) {
  25591. dependencies = fiber.dependencies = {
  25592. expirationTime: NoWork,
  25593. firstContext: null,
  25594. responders: new Map()
  25595. };
  25596. }
  25597. var respondersMap = dependencies.responders;
  25598. if (respondersMap === null) {
  25599. respondersMap = new Map();
  25600. }
  25601. if (isArray$2(listeners)) {
  25602. for (var i = 0, length = listeners.length; i < length; i++) {
  25603. var listener = listeners[i];
  25604. updateEventListener(listener, fiber, visistedResponders, respondersMap, instance, rootContainerInstance);
  25605. }
  25606. } else {
  25607. updateEventListener(listeners, fiber, visistedResponders, respondersMap, instance, rootContainerInstance);
  25608. }
  25609. }
  25610. if (dependencies !== null) {
  25611. var _respondersMap = dependencies.responders;
  25612. if (_respondersMap !== null) {
  25613. // Unmount
  25614. var mountedResponders = Array.from(_respondersMap.keys());
  25615. for (var _i = 0, _length = mountedResponders.length; _i < _length; _i++) {
  25616. var mountedResponder = mountedResponders[_i];
  25617. if (!visistedResponders.has(mountedResponder)) {
  25618. var responderInstance = _respondersMap.get(mountedResponder);
  25619. unmountResponderInstance(responderInstance);
  25620. _respondersMap.delete(mountedResponder);
  25621. }
  25622. }
  25623. }
  25624. }
  25625. }
  25626. function unwindWork(workInProgress, renderExpirationTime) {
  25627. switch (workInProgress.tag) {
  25628. case ClassComponent:
  25629. {
  25630. var Component = workInProgress.type;
  25631. if (isContextProvider(Component)) {
  25632. popContext(workInProgress);
  25633. }
  25634. var effectTag = workInProgress.effectTag;
  25635. if (effectTag & ShouldCapture) {
  25636. workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture;
  25637. return workInProgress;
  25638. }
  25639. return null;
  25640. }
  25641. case HostRoot:
  25642. {
  25643. popHostContainer(workInProgress);
  25644. popTopLevelContextObject(workInProgress);
  25645. var _effectTag = workInProgress.effectTag;
  25646. (function () {
  25647. if (!((_effectTag & DidCapture) === NoEffect)) {
  25648. {
  25649. throw ReactError(Error('The root failed to unmount after an error. This is likely a bug in React. Please file an issue.'));
  25650. }
  25651. }
  25652. })();
  25653. workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture;
  25654. return workInProgress;
  25655. }
  25656. case HostComponent:
  25657. {
  25658. // TODO: popHydrationState
  25659. popHostContext(workInProgress);
  25660. return null;
  25661. }
  25662. case SuspenseComponent:
  25663. {
  25664. popSuspenseContext(workInProgress);
  25665. var _effectTag2 = workInProgress.effectTag;
  25666. if (_effectTag2 & ShouldCapture) {
  25667. workInProgress.effectTag = _effectTag2 & ~ShouldCapture | DidCapture;
  25668. // Captured a suspense effect. Re-render the boundary.
  25669. return workInProgress;
  25670. }
  25671. return null;
  25672. }
  25673. case DehydratedSuspenseComponent:
  25674. {
  25675. if (enableSuspenseServerRenderer) {
  25676. // TODO: popHydrationState
  25677. popSuspenseContext(workInProgress);
  25678. var _effectTag3 = workInProgress.effectTag;
  25679. if (_effectTag3 & ShouldCapture) {
  25680. workInProgress.effectTag = _effectTag3 & ~ShouldCapture | DidCapture;
  25681. // Captured a suspense effect. Re-render the boundary.
  25682. return workInProgress;
  25683. }
  25684. }
  25685. return null;
  25686. }
  25687. case SuspenseListComponent:
  25688. {
  25689. popSuspenseContext(workInProgress);
  25690. // SuspenseList doesn't actually catch anything. It should've been
  25691. // caught by a nested boundary. If not, it should bubble through.
  25692. return null;
  25693. }
  25694. case HostPortal:
  25695. popHostContainer(workInProgress);
  25696. return null;
  25697. case ContextProvider:
  25698. popProvider(workInProgress);
  25699. return null;
  25700. default:
  25701. return null;
  25702. }
  25703. }
  25704. function unwindInterruptedWork(interruptedWork) {
  25705. switch (interruptedWork.tag) {
  25706. case ClassComponent:
  25707. {
  25708. var childContextTypes = interruptedWork.type.childContextTypes;
  25709. if (childContextTypes !== null && childContextTypes !== undefined) {
  25710. popContext(interruptedWork);
  25711. }
  25712. break;
  25713. }
  25714. case HostRoot:
  25715. {
  25716. popHostContainer(interruptedWork);
  25717. popTopLevelContextObject(interruptedWork);
  25718. break;
  25719. }
  25720. case HostComponent:
  25721. {
  25722. popHostContext(interruptedWork);
  25723. break;
  25724. }
  25725. case HostPortal:
  25726. popHostContainer(interruptedWork);
  25727. break;
  25728. case SuspenseComponent:
  25729. popSuspenseContext(interruptedWork);
  25730. break;
  25731. case DehydratedSuspenseComponent:
  25732. if (enableSuspenseServerRenderer) {
  25733. // TODO: popHydrationState
  25734. popSuspenseContext(interruptedWork);
  25735. }
  25736. break;
  25737. case SuspenseListComponent:
  25738. popSuspenseContext(interruptedWork);
  25739. break;
  25740. case ContextProvider:
  25741. popProvider(interruptedWork);
  25742. break;
  25743. default:
  25744. break;
  25745. }
  25746. }
  25747. function createCapturedValue(value, source) {
  25748. // If the value is an error, call this function immediately after it is thrown
  25749. // so the stack is accurate.
  25750. return {
  25751. value: value,
  25752. source: source,
  25753. stack: getStackByFiberInDevAndProd(source)
  25754. };
  25755. }
  25756. // This module is forked in different environments.
  25757. // By default, return `true` to log errors to the console.
  25758. // Forks can return `false` if this isn't desirable.
  25759. function showErrorDialog(capturedError) {
  25760. return true;
  25761. }
  25762. function logCapturedError(capturedError) {
  25763. var logError = showErrorDialog(capturedError);
  25764. // Allow injected showErrorDialog() to prevent default console.error logging.
  25765. // This enables renderers like ReactNative to better manage redbox behavior.
  25766. if (logError === false) {
  25767. return;
  25768. }
  25769. var error = capturedError.error;
  25770. {
  25771. var componentName = capturedError.componentName,
  25772. componentStack = capturedError.componentStack,
  25773. errorBoundaryName = capturedError.errorBoundaryName,
  25774. errorBoundaryFound = capturedError.errorBoundaryFound,
  25775. willRetry = capturedError.willRetry;
  25776. // Browsers support silencing uncaught errors by calling
  25777. // `preventDefault()` in window `error` handler.
  25778. // We record this information as an expando on the error.
  25779. if (error != null && error._suppressLogging) {
  25780. if (errorBoundaryFound && willRetry) {
  25781. // The error is recoverable and was silenced.
  25782. // Ignore it and don't print the stack addendum.
  25783. // This is handy for testing error boundaries without noise.
  25784. return;
  25785. }
  25786. // The error is fatal. Since the silencing might have
  25787. // been accidental, we'll surface it anyway.
  25788. // However, the browser would have silenced the original error
  25789. // so we'll print it first, and then print the stack addendum.
  25790. console.error(error);
  25791. // For a more detailed description of this block, see:
  25792. // https://github.com/facebook/react/pull/13384
  25793. }
  25794. var componentNameMessage = componentName ? 'The above error occurred in the <' + componentName + '> component:' : 'The above error occurred in one of your React components:';
  25795. var errorBoundaryMessage = void 0;
  25796. // errorBoundaryFound check is sufficient; errorBoundaryName check is to satisfy Flow.
  25797. if (errorBoundaryFound && errorBoundaryName) {
  25798. if (willRetry) {
  25799. errorBoundaryMessage = 'React will try to recreate this component tree from scratch ' + ('using the error boundary you provided, ' + errorBoundaryName + '.');
  25800. } else {
  25801. errorBoundaryMessage = 'This error was initially handled by the error boundary ' + errorBoundaryName + '.\n' + 'Recreating the tree from scratch failed so React will unmount the tree.';
  25802. }
  25803. } else {
  25804. errorBoundaryMessage = 'Consider adding an error boundary to your tree to customize error handling behavior.\n' + 'Visit https://fb.me/react-error-boundaries to learn more about error boundaries.';
  25805. }
  25806. var combinedMessage = '' + componentNameMessage + componentStack + '\n\n' + ('' + errorBoundaryMessage);
  25807. // In development, we provide our own message with just the component stack.
  25808. // We don't include the original error message and JS stack because the browser
  25809. // has already printed it. Even if the application swallows the error, it is still
  25810. // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils.
  25811. console.error(combinedMessage);
  25812. }
  25813. }
  25814. var didWarnAboutUndefinedSnapshotBeforeUpdate = null;
  25815. {
  25816. didWarnAboutUndefinedSnapshotBeforeUpdate = new Set();
  25817. }
  25818. var PossiblyWeakSet$1 = typeof WeakSet === 'function' ? WeakSet : Set;
  25819. function logError(boundary, errorInfo) {
  25820. var source = errorInfo.source;
  25821. var stack = errorInfo.stack;
  25822. if (stack === null && source !== null) {
  25823. stack = getStackByFiberInDevAndProd(source);
  25824. }
  25825. var capturedError = {
  25826. componentName: source !== null ? getComponentName(source.type) : null,
  25827. componentStack: stack !== null ? stack : '',
  25828. error: errorInfo.value,
  25829. errorBoundary: null,
  25830. errorBoundaryName: null,
  25831. errorBoundaryFound: false,
  25832. willRetry: false
  25833. };
  25834. if (boundary !== null && boundary.tag === ClassComponent) {
  25835. capturedError.errorBoundary = boundary.stateNode;
  25836. capturedError.errorBoundaryName = getComponentName(boundary.type);
  25837. capturedError.errorBoundaryFound = true;
  25838. capturedError.willRetry = true;
  25839. }
  25840. try {
  25841. logCapturedError(capturedError);
  25842. } catch (e) {
  25843. // This method must not throw, or React internal state will get messed up.
  25844. // If console.error is overridden, or logCapturedError() shows a dialog that throws,
  25845. // we want to report this error outside of the normal stack as a last resort.
  25846. // https://github.com/facebook/react/issues/13188
  25847. setTimeout(function () {
  25848. throw e;
  25849. });
  25850. }
  25851. }
  25852. var callComponentWillUnmountWithTimer = function (current$$1, instance) {
  25853. startPhaseTimer(current$$1, 'componentWillUnmount');
  25854. instance.props = current$$1.memoizedProps;
  25855. instance.state = current$$1.memoizedState;
  25856. instance.componentWillUnmount();
  25857. stopPhaseTimer();
  25858. };
  25859. // Capture errors so they don't interrupt unmounting.
  25860. function safelyCallComponentWillUnmount(current$$1, instance) {
  25861. {
  25862. invokeGuardedCallback(null, callComponentWillUnmountWithTimer, null, current$$1, instance);
  25863. if (hasCaughtError()) {
  25864. var unmountError = clearCaughtError();
  25865. captureCommitPhaseError(current$$1, unmountError);
  25866. }
  25867. }
  25868. }
  25869. function safelyDetachRef(current$$1) {
  25870. var ref = current$$1.ref;
  25871. if (ref !== null) {
  25872. if (typeof ref === 'function') {
  25873. {
  25874. invokeGuardedCallback(null, ref, null, null);
  25875. if (hasCaughtError()) {
  25876. var refError = clearCaughtError();
  25877. captureCommitPhaseError(current$$1, refError);
  25878. }
  25879. }
  25880. } else {
  25881. ref.current = null;
  25882. }
  25883. }
  25884. }
  25885. function safelyCallDestroy(current$$1, destroy) {
  25886. {
  25887. invokeGuardedCallback(null, destroy, null);
  25888. if (hasCaughtError()) {
  25889. var error = clearCaughtError();
  25890. captureCommitPhaseError(current$$1, error);
  25891. }
  25892. }
  25893. }
  25894. function commitBeforeMutationLifeCycles(current$$1, finishedWork) {
  25895. switch (finishedWork.tag) {
  25896. case FunctionComponent:
  25897. case ForwardRef:
  25898. case SimpleMemoComponent:
  25899. {
  25900. commitHookEffectList(UnmountSnapshot, NoEffect$1, finishedWork);
  25901. return;
  25902. }
  25903. case ClassComponent:
  25904. {
  25905. if (finishedWork.effectTag & Snapshot) {
  25906. if (current$$1 !== null) {
  25907. var prevProps = current$$1.memoizedProps;
  25908. var prevState = current$$1.memoizedState;
  25909. startPhaseTimer(finishedWork, 'getSnapshotBeforeUpdate');
  25910. var instance = finishedWork.stateNode;
  25911. // We could update instance props and state here,
  25912. // but instead we rely on them being set during last render.
  25913. // TODO: revisit this when we implement resuming.
  25914. {
  25915. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  25916. !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected %s props to match memoized props before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  25917. !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected %s state to match memoized state before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  25918. }
  25919. }
  25920. var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState);
  25921. {
  25922. var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate;
  25923. if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) {
  25924. didWarnSet.add(finishedWork.type);
  25925. warningWithoutStack$1(false, '%s.getSnapshotBeforeUpdate(): A snapshot value (or null) ' + 'must be returned. You have returned undefined.', getComponentName(finishedWork.type));
  25926. }
  25927. }
  25928. instance.__reactInternalSnapshotBeforeUpdate = snapshot;
  25929. stopPhaseTimer();
  25930. }
  25931. }
  25932. return;
  25933. }
  25934. case HostRoot:
  25935. case HostComponent:
  25936. case HostText:
  25937. case HostPortal:
  25938. case IncompleteClassComponent:
  25939. // Nothing to do for these component types
  25940. return;
  25941. default:
  25942. {
  25943. (function () {
  25944. {
  25945. {
  25946. throw ReactError(Error('This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.'));
  25947. }
  25948. }
  25949. })();
  25950. }
  25951. }
  25952. }
  25953. function commitHookEffectList(unmountTag, mountTag, finishedWork) {
  25954. var updateQueue = finishedWork.updateQueue;
  25955. var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;
  25956. if (lastEffect !== null) {
  25957. var firstEffect = lastEffect.next;
  25958. var effect = firstEffect;
  25959. do {
  25960. if ((effect.tag & unmountTag) !== NoEffect$1) {
  25961. // Unmount
  25962. var destroy = effect.destroy;
  25963. effect.destroy = undefined;
  25964. if (destroy !== undefined) {
  25965. destroy();
  25966. }
  25967. }
  25968. if ((effect.tag & mountTag) !== NoEffect$1) {
  25969. // Mount
  25970. var create = effect.create;
  25971. effect.destroy = create();
  25972. {
  25973. var _destroy = effect.destroy;
  25974. if (_destroy !== undefined && typeof _destroy !== 'function') {
  25975. var addendum = void 0;
  25976. if (_destroy === null) {
  25977. addendum = ' You returned null. If your effect does not require clean ' + 'up, return undefined (or nothing).';
  25978. } else if (typeof _destroy.then === 'function') {
  25979. addendum = '\n\nIt looks like you wrote useEffect(async () => ...) or returned a Promise. ' + 'Instead, write the async function inside your effect ' + 'and call it immediately:\n\n' + 'useEffect(() => {\n' + ' async function fetchData() {\n' + ' // You can await here\n' + ' const response = await MyAPI.getData(someId);\n' + ' // ...\n' + ' }\n' + ' fetchData();\n' + '}, [someId]); // Or [] if effect doesn\'t need props or state\n\n' + 'Learn more about data fetching with Hooks: https://fb.me/react-hooks-data-fetching';
  25980. } else {
  25981. addendum = ' You returned: ' + _destroy;
  25982. }
  25983. warningWithoutStack$1(false, 'An effect function must not return anything besides a function, ' + 'which is used for clean-up.%s%s', addendum, getStackByFiberInDevAndProd(finishedWork));
  25984. }
  25985. }
  25986. }
  25987. effect = effect.next;
  25988. } while (effect !== firstEffect);
  25989. }
  25990. }
  25991. function commitPassiveHookEffects(finishedWork) {
  25992. if ((finishedWork.effectTag & Passive) !== NoEffect) {
  25993. switch (finishedWork.tag) {
  25994. case FunctionComponent:
  25995. case ForwardRef:
  25996. case SimpleMemoComponent:
  25997. {
  25998. commitHookEffectList(UnmountPassive, NoEffect$1, finishedWork);
  25999. commitHookEffectList(NoEffect$1, MountPassive, finishedWork);
  26000. break;
  26001. }
  26002. default:
  26003. break;
  26004. }
  26005. }
  26006. }
  26007. function commitLifeCycles(finishedRoot, current$$1, finishedWork, committedExpirationTime) {
  26008. switch (finishedWork.tag) {
  26009. case FunctionComponent:
  26010. case ForwardRef:
  26011. case SimpleMemoComponent:
  26012. {
  26013. commitHookEffectList(UnmountLayout, MountLayout, finishedWork);
  26014. break;
  26015. }
  26016. case ClassComponent:
  26017. {
  26018. var instance = finishedWork.stateNode;
  26019. if (finishedWork.effectTag & Update) {
  26020. if (current$$1 === null) {
  26021. startPhaseTimer(finishedWork, 'componentDidMount');
  26022. // We could update instance props and state here,
  26023. // but instead we rely on them being set during last render.
  26024. // TODO: revisit this when we implement resuming.
  26025. {
  26026. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  26027. !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected %s props to match memoized props before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  26028. !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected %s state to match memoized state before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  26029. }
  26030. }
  26031. instance.componentDidMount();
  26032. stopPhaseTimer();
  26033. } else {
  26034. var prevProps = finishedWork.elementType === finishedWork.type ? current$$1.memoizedProps : resolveDefaultProps(finishedWork.type, current$$1.memoizedProps);
  26035. var prevState = current$$1.memoizedState;
  26036. startPhaseTimer(finishedWork, 'componentDidUpdate');
  26037. // We could update instance props and state here,
  26038. // but instead we rely on them being set during last render.
  26039. // TODO: revisit this when we implement resuming.
  26040. {
  26041. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  26042. !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected %s props to match memoized props before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  26043. !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected %s state to match memoized state before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  26044. }
  26045. }
  26046. instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);
  26047. stopPhaseTimer();
  26048. }
  26049. }
  26050. var updateQueue = finishedWork.updateQueue;
  26051. if (updateQueue !== null) {
  26052. {
  26053. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  26054. !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected %s props to match memoized props before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  26055. !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected %s state to match memoized state before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  26056. }
  26057. }
  26058. // We could update instance props and state here,
  26059. // but instead we rely on them being set during last render.
  26060. // TODO: revisit this when we implement resuming.
  26061. commitUpdateQueue(finishedWork, updateQueue, instance, committedExpirationTime);
  26062. }
  26063. return;
  26064. }
  26065. case HostRoot:
  26066. {
  26067. var _updateQueue = finishedWork.updateQueue;
  26068. if (_updateQueue !== null) {
  26069. var _instance = null;
  26070. if (finishedWork.child !== null) {
  26071. switch (finishedWork.child.tag) {
  26072. case HostComponent:
  26073. _instance = getPublicInstance(finishedWork.child.stateNode);
  26074. break;
  26075. case ClassComponent:
  26076. _instance = finishedWork.child.stateNode;
  26077. break;
  26078. }
  26079. }
  26080. commitUpdateQueue(finishedWork, _updateQueue, _instance, committedExpirationTime);
  26081. }
  26082. return;
  26083. }
  26084. case HostComponent:
  26085. {
  26086. var _instance2 = finishedWork.stateNode;
  26087. // Renderers may schedule work to be done after host components are mounted
  26088. // (eg DOM renderer may schedule auto-focus for inputs and form controls).
  26089. // These effects should only be committed when components are first mounted,
  26090. // aka when there is no current/alternate.
  26091. if (current$$1 === null && finishedWork.effectTag & Update) {
  26092. var type = finishedWork.type;
  26093. var props = finishedWork.memoizedProps;
  26094. commitMount(_instance2, type, props, finishedWork);
  26095. }
  26096. return;
  26097. }
  26098. case HostText:
  26099. {
  26100. // We have no life-cycles associated with text.
  26101. return;
  26102. }
  26103. case HostPortal:
  26104. {
  26105. // We have no life-cycles associated with portals.
  26106. return;
  26107. }
  26108. case Profiler:
  26109. {
  26110. if (enableProfilerTimer) {
  26111. var onRender = finishedWork.memoizedProps.onRender;
  26112. if (typeof onRender === 'function') {
  26113. if (enableSchedulerTracing) {
  26114. onRender(finishedWork.memoizedProps.id, current$$1 === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime(), finishedRoot.memoizedInteractions);
  26115. } else {
  26116. onRender(finishedWork.memoizedProps.id, current$$1 === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime());
  26117. }
  26118. }
  26119. }
  26120. return;
  26121. }
  26122. case SuspenseComponent:
  26123. case SuspenseListComponent:
  26124. case IncompleteClassComponent:
  26125. case FundamentalComponent:
  26126. return;
  26127. default:
  26128. {
  26129. (function () {
  26130. {
  26131. {
  26132. throw ReactError(Error('This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.'));
  26133. }
  26134. }
  26135. })();
  26136. }
  26137. }
  26138. }
  26139. function hideOrUnhideAllChildren(finishedWork, isHidden) {
  26140. if (supportsMutation) {
  26141. // We only have the top Fiber that was inserted but we need to recurse down its
  26142. var node = finishedWork;
  26143. while (true) {
  26144. if (node.tag === HostComponent) {
  26145. var instance = node.stateNode;
  26146. if (isHidden) {
  26147. hideInstance(instance);
  26148. } else {
  26149. unhideInstance(node.stateNode, node.memoizedProps);
  26150. }
  26151. } else if (node.tag === HostText) {
  26152. var _instance3 = node.stateNode;
  26153. if (isHidden) {
  26154. hideTextInstance(_instance3);
  26155. } else {
  26156. unhideTextInstance(_instance3, node.memoizedProps);
  26157. }
  26158. } else if (node.tag === SuspenseComponent && node.memoizedState !== null) {
  26159. // Found a nested Suspense component that timed out. Skip over the
  26160. var fallbackChildFragment = node.child.sibling;
  26161. fallbackChildFragment.return = node;
  26162. node = fallbackChildFragment;
  26163. continue;
  26164. } else if (node.child !== null) {
  26165. node.child.return = node;
  26166. node = node.child;
  26167. continue;
  26168. }
  26169. if (node === finishedWork) {
  26170. return;
  26171. }
  26172. while (node.sibling === null) {
  26173. if (node.return === null || node.return === finishedWork) {
  26174. return;
  26175. }
  26176. node = node.return;
  26177. }
  26178. node.sibling.return = node.return;
  26179. node = node.sibling;
  26180. }
  26181. }
  26182. }
  26183. function commitAttachRef(finishedWork) {
  26184. var ref = finishedWork.ref;
  26185. if (ref !== null) {
  26186. var instance = finishedWork.stateNode;
  26187. var instanceToUse = void 0;
  26188. switch (finishedWork.tag) {
  26189. case HostComponent:
  26190. instanceToUse = getPublicInstance(instance);
  26191. break;
  26192. default:
  26193. instanceToUse = instance;
  26194. }
  26195. if (typeof ref === 'function') {
  26196. ref(instanceToUse);
  26197. } else {
  26198. {
  26199. if (!ref.hasOwnProperty('current')) {
  26200. warningWithoutStack$1(false, 'Unexpected ref object provided for %s. ' + 'Use either a ref-setter function or React.createRef().%s', getComponentName(finishedWork.type), getStackByFiberInDevAndProd(finishedWork));
  26201. }
  26202. }
  26203. ref.current = instanceToUse;
  26204. }
  26205. }
  26206. }
  26207. function commitDetachRef(current$$1) {
  26208. var currentRef = current$$1.ref;
  26209. if (currentRef !== null) {
  26210. if (typeof currentRef === 'function') {
  26211. currentRef(null);
  26212. } else {
  26213. currentRef.current = null;
  26214. }
  26215. }
  26216. }
  26217. // User-originating errors (lifecycles and refs) should not interrupt
  26218. // deletion, so don't let them throw. Host-originating errors should
  26219. // interrupt deletion, so it's okay
  26220. function commitUnmount(current$$1, renderPriorityLevel) {
  26221. onCommitUnmount(current$$1);
  26222. switch (current$$1.tag) {
  26223. case FunctionComponent:
  26224. case ForwardRef:
  26225. case MemoComponent:
  26226. case SimpleMemoComponent:
  26227. {
  26228. var updateQueue = current$$1.updateQueue;
  26229. if (updateQueue !== null) {
  26230. var lastEffect = updateQueue.lastEffect;
  26231. if (lastEffect !== null) {
  26232. var firstEffect = lastEffect.next;
  26233. // When the owner fiber is deleted, the destroy function of a passive
  26234. // effect hook is called during the synchronous commit phase. This is
  26235. // a concession to implementation complexity. Calling it in the
  26236. // passive effect phase (like they usually are, when dependencies
  26237. // change during an update) would require either traversing the
  26238. // children of the deleted fiber again, or including unmount effects
  26239. // as part of the fiber effect list.
  26240. //
  26241. // Because this is during the sync commit phase, we need to change
  26242. // the priority.
  26243. //
  26244. // TODO: Reconsider this implementation trade off.
  26245. var priorityLevel = renderPriorityLevel > NormalPriority ? NormalPriority : renderPriorityLevel;
  26246. runWithPriority$2(priorityLevel, function () {
  26247. var effect = firstEffect;
  26248. do {
  26249. var destroy = effect.destroy;
  26250. if (destroy !== undefined) {
  26251. safelyCallDestroy(current$$1, destroy);
  26252. }
  26253. effect = effect.next;
  26254. } while (effect !== firstEffect);
  26255. });
  26256. }
  26257. }
  26258. break;
  26259. }
  26260. case ClassComponent:
  26261. {
  26262. safelyDetachRef(current$$1);
  26263. var instance = current$$1.stateNode;
  26264. if (typeof instance.componentWillUnmount === 'function') {
  26265. safelyCallComponentWillUnmount(current$$1, instance);
  26266. }
  26267. return;
  26268. }
  26269. case HostComponent:
  26270. {
  26271. if (enableFlareAPI) {
  26272. var dependencies = current$$1.dependencies;
  26273. if (dependencies !== null) {
  26274. var respondersMap = dependencies.responders;
  26275. if (respondersMap !== null) {
  26276. var responderInstances = Array.from(respondersMap.values());
  26277. for (var i = 0, length = responderInstances.length; i < length; i++) {
  26278. var responderInstance = responderInstances[i];
  26279. unmountResponderInstance(responderInstance);
  26280. }
  26281. dependencies.responders = null;
  26282. }
  26283. }
  26284. }
  26285. safelyDetachRef(current$$1);
  26286. return;
  26287. }
  26288. case HostPortal:
  26289. {
  26290. // TODO: this is recursive.
  26291. // We are also not using this parent because
  26292. // the portal will get pushed immediately.
  26293. if (supportsMutation) {
  26294. unmountHostComponents(current$$1, renderPriorityLevel);
  26295. } else if (supportsPersistence) {
  26296. emptyPortalContainer(current$$1);
  26297. }
  26298. return;
  26299. }
  26300. case FundamentalComponent:
  26301. {
  26302. if (enableFundamentalAPI) {
  26303. var fundamentalInstance = current$$1.stateNode;
  26304. if (fundamentalInstance !== null) {
  26305. unmountFundamentalComponent(fundamentalInstance);
  26306. current$$1.stateNode = null;
  26307. }
  26308. }
  26309. }
  26310. }
  26311. }
  26312. function commitNestedUnmounts(root, renderPriorityLevel) {
  26313. // While we're inside a removed host node we don't want to call
  26314. // removeChild on the inner nodes because they're removed by the top
  26315. // call anyway. We also want to call componentWillUnmount on all
  26316. // composites before this host node is removed from the tree. Therefore
  26317. var node = root;
  26318. while (true) {
  26319. commitUnmount(node, renderPriorityLevel);
  26320. // Visit children because they may contain more composite or host nodes.
  26321. // Skip portals because commitUnmount() currently visits them recursively.
  26322. if (node.child !== null && (
  26323. // If we use mutation we drill down into portals using commitUnmount above.
  26324. // If we don't use mutation we drill down into portals here instead.
  26325. !supportsMutation || node.tag !== HostPortal)) {
  26326. node.child.return = node;
  26327. node = node.child;
  26328. continue;
  26329. }
  26330. if (node === root) {
  26331. return;
  26332. }
  26333. while (node.sibling === null) {
  26334. if (node.return === null || node.return === root) {
  26335. return;
  26336. }
  26337. node = node.return;
  26338. }
  26339. node.sibling.return = node.return;
  26340. node = node.sibling;
  26341. }
  26342. }
  26343. function detachFiber(current$$1) {
  26344. // Cut off the return pointers to disconnect it from the tree. Ideally, we
  26345. // should clear the child pointer of the parent alternate to let this
  26346. // get GC:ed but we don't know which for sure which parent is the current
  26347. // one so we'll settle for GC:ing the subtree of this child. This child
  26348. // itself will be GC:ed when the parent updates the next time.
  26349. current$$1.return = null;
  26350. current$$1.child = null;
  26351. current$$1.memoizedState = null;
  26352. current$$1.updateQueue = null;
  26353. current$$1.dependencies = null;
  26354. var alternate = current$$1.alternate;
  26355. if (alternate !== null) {
  26356. alternate.return = null;
  26357. alternate.child = null;
  26358. alternate.memoizedState = null;
  26359. alternate.updateQueue = null;
  26360. alternate.dependencies = null;
  26361. }
  26362. }
  26363. function emptyPortalContainer(current$$1) {
  26364. if (!supportsPersistence) {
  26365. return;
  26366. }
  26367. var portal = current$$1.stateNode;
  26368. var containerInfo = portal.containerInfo;
  26369. var emptyChildSet = createContainerChildSet(containerInfo);
  26370. replaceContainerChildren(containerInfo, emptyChildSet);
  26371. }
  26372. function commitContainer(finishedWork) {
  26373. if (!supportsPersistence) {
  26374. return;
  26375. }
  26376. switch (finishedWork.tag) {
  26377. case ClassComponent:
  26378. case HostComponent:
  26379. case HostText:
  26380. case FundamentalComponent:
  26381. {
  26382. return;
  26383. }
  26384. case HostRoot:
  26385. case HostPortal:
  26386. {
  26387. var portalOrRoot = finishedWork.stateNode;
  26388. var containerInfo = portalOrRoot.containerInfo,
  26389. _pendingChildren = portalOrRoot.pendingChildren;
  26390. replaceContainerChildren(containerInfo, _pendingChildren);
  26391. return;
  26392. }
  26393. default:
  26394. {
  26395. (function () {
  26396. {
  26397. {
  26398. throw ReactError(Error('This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.'));
  26399. }
  26400. }
  26401. })();
  26402. }
  26403. }
  26404. }
  26405. function getHostParentFiber(fiber) {
  26406. var parent = fiber.return;
  26407. while (parent !== null) {
  26408. if (isHostParent(parent)) {
  26409. return parent;
  26410. }
  26411. parent = parent.return;
  26412. }
  26413. (function () {
  26414. {
  26415. {
  26416. throw ReactError(Error('Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.'));
  26417. }
  26418. }
  26419. })();
  26420. }
  26421. function isHostParent(fiber) {
  26422. return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal;
  26423. }
  26424. function getHostSibling(fiber) {
  26425. // We're going to search forward into the tree until we find a sibling host
  26426. // node. Unfortunately, if multiple insertions are done in a row we have to
  26427. // search past them. This leads to exponential search for the next sibling.
  26428. var node = fiber;
  26429. siblings: while (true) {
  26430. // If we didn't find anything, let's try the next sibling.
  26431. while (node.sibling === null) {
  26432. if (node.return === null || isHostParent(node.return)) {
  26433. // If we pop out of the root or hit the parent the fiber we are the
  26434. // last sibling.
  26435. return null;
  26436. }
  26437. node = node.return;
  26438. }
  26439. node.sibling.return = node.return;
  26440. node = node.sibling;
  26441. while (node.tag !== HostComponent && node.tag !== HostText && node.tag !== DehydratedSuspenseComponent) {
  26442. // If it is not host node and, we might have a host node inside it.
  26443. // Try to search down until we find one.
  26444. if (node.effectTag & Placement) {
  26445. // If we don't have a child, try the siblings instead.
  26446. continue siblings;
  26447. }
  26448. // If we don't have a child, try the siblings instead.
  26449. // We also skip portals because they are not part of this host tree.
  26450. if (node.child === null || node.tag === HostPortal) {
  26451. continue siblings;
  26452. } else {
  26453. node.child.return = node;
  26454. node = node.child;
  26455. }
  26456. }
  26457. // Check if this host node is stable or about to be placed.
  26458. if (!(node.effectTag & Placement)) {
  26459. // Found it!
  26460. return node.stateNode;
  26461. }
  26462. }
  26463. }
  26464. function commitPlacement(finishedWork) {
  26465. if (!supportsMutation) {
  26466. return;
  26467. }
  26468. // Recursively insert all host nodes into the parent.
  26469. var parentFiber = getHostParentFiber(finishedWork);
  26470. // Note: these two variables *must* always be updated together.
  26471. var parent = void 0;
  26472. var isContainer = void 0;
  26473. var parentStateNode = parentFiber.stateNode;
  26474. switch (parentFiber.tag) {
  26475. case HostComponent:
  26476. parent = parentStateNode;
  26477. isContainer = false;
  26478. break;
  26479. case HostRoot:
  26480. parent = parentStateNode.containerInfo;
  26481. isContainer = true;
  26482. break;
  26483. case HostPortal:
  26484. parent = parentStateNode.containerInfo;
  26485. isContainer = true;
  26486. break;
  26487. case FundamentalComponent:
  26488. if (enableFundamentalAPI) {
  26489. parent = parentStateNode.instance;
  26490. isContainer = false;
  26491. }
  26492. // eslint-disable-next-line-no-fallthrough
  26493. default:
  26494. (function () {
  26495. {
  26496. {
  26497. throw ReactError(Error('Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.'));
  26498. }
  26499. }
  26500. })();
  26501. }
  26502. if (parentFiber.effectTag & ContentReset) {
  26503. // Reset the text content of the parent before doing any insertions
  26504. resetTextContent(parent);
  26505. // Clear ContentReset from the effect tag
  26506. parentFiber.effectTag &= ~ContentReset;
  26507. }
  26508. var before = getHostSibling(finishedWork);
  26509. // We only have the top Fiber that was inserted but we need to recurse down its
  26510. // children to find all the terminal nodes.
  26511. var node = finishedWork;
  26512. while (true) {
  26513. var isHost = node.tag === HostComponent || node.tag === HostText;
  26514. if (isHost || node.tag === FundamentalComponent) {
  26515. var stateNode = isHost ? node.stateNode : node.stateNode.instance;
  26516. if (before) {
  26517. if (isContainer) {
  26518. insertInContainerBefore(parent, stateNode, before);
  26519. } else {
  26520. insertBefore(parent, stateNode, before);
  26521. }
  26522. } else {
  26523. if (isContainer) {
  26524. appendChildToContainer(parent, stateNode);
  26525. } else {
  26526. appendChild(parent, stateNode);
  26527. }
  26528. }
  26529. } else if (node.tag === HostPortal) {
  26530. // If the insertion itself is a portal, then we don't want to traverse
  26531. // down its children. Instead, we'll get insertions from each child in
  26532. // the portal directly.
  26533. } else if (node.child !== null) {
  26534. node.child.return = node;
  26535. node = node.child;
  26536. continue;
  26537. }
  26538. if (node === finishedWork) {
  26539. return;
  26540. }
  26541. while (node.sibling === null) {
  26542. if (node.return === null || node.return === finishedWork) {
  26543. return;
  26544. }
  26545. node = node.return;
  26546. }
  26547. node.sibling.return = node.return;
  26548. node = node.sibling;
  26549. }
  26550. }
  26551. function unmountHostComponents(current$$1, renderPriorityLevel) {
  26552. // We only have the top Fiber that was deleted but we need to recurse down its
  26553. var node = current$$1;
  26554. // Each iteration, currentParent is populated with node's host parent if not
  26555. // currentParentIsValid.
  26556. var currentParentIsValid = false;
  26557. // Note: these two variables *must* always be updated together.
  26558. var currentParent = void 0;
  26559. var currentParentIsContainer = void 0;
  26560. while (true) {
  26561. if (!currentParentIsValid) {
  26562. var parent = node.return;
  26563. findParent: while (true) {
  26564. (function () {
  26565. if (!(parent !== null)) {
  26566. {
  26567. throw ReactError(Error('Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.'));
  26568. }
  26569. }
  26570. })();
  26571. var parentStateNode = parent.stateNode;
  26572. switch (parent.tag) {
  26573. case HostComponent:
  26574. currentParent = parentStateNode;
  26575. currentParentIsContainer = false;
  26576. break findParent;
  26577. case HostRoot:
  26578. currentParent = parentStateNode.containerInfo;
  26579. currentParentIsContainer = true;
  26580. break findParent;
  26581. case HostPortal:
  26582. currentParent = parentStateNode.containerInfo;
  26583. currentParentIsContainer = true;
  26584. break findParent;
  26585. case FundamentalComponent:
  26586. if (enableFundamentalAPI) {
  26587. currentParent = parentStateNode.instance;
  26588. currentParentIsContainer = false;
  26589. }
  26590. }
  26591. parent = parent.return;
  26592. }
  26593. currentParentIsValid = true;
  26594. }
  26595. if (node.tag === HostComponent || node.tag === HostText) {
  26596. commitNestedUnmounts(node, renderPriorityLevel);
  26597. // After all the children have unmounted, it is now safe to remove the
  26598. // node from the tree.
  26599. if (currentParentIsContainer) {
  26600. removeChildFromContainer(currentParent, node.stateNode);
  26601. } else {
  26602. removeChild(currentParent, node.stateNode);
  26603. }
  26604. // Don't visit children because we already visited them.
  26605. } else if (node.tag === FundamentalComponent) {
  26606. var fundamentalNode = node.stateNode.instance;
  26607. commitNestedUnmounts(node, renderPriorityLevel);
  26608. // After all the children have unmounted, it is now safe to remove the
  26609. // node from the tree.
  26610. if (currentParentIsContainer) {
  26611. removeChildFromContainer(currentParent, fundamentalNode);
  26612. } else {
  26613. removeChild(currentParent, fundamentalNode);
  26614. }
  26615. } else if (enableSuspenseServerRenderer && node.tag === DehydratedSuspenseComponent) {
  26616. // Delete the dehydrated suspense boundary and all of its content.
  26617. if (currentParentIsContainer) {
  26618. clearSuspenseBoundaryFromContainer(currentParent, node.stateNode);
  26619. } else {
  26620. clearSuspenseBoundary(currentParent, node.stateNode);
  26621. }
  26622. } else if (node.tag === HostPortal) {
  26623. if (node.child !== null) {
  26624. // When we go into a portal, it becomes the parent to remove from.
  26625. // We will reassign it back when we pop the portal on the way up.
  26626. currentParent = node.stateNode.containerInfo;
  26627. currentParentIsContainer = true;
  26628. // Visit children because portals might contain host components.
  26629. node.child.return = node;
  26630. node = node.child;
  26631. continue;
  26632. }
  26633. } else {
  26634. commitUnmount(node, renderPriorityLevel);
  26635. // Visit children because we may find more host components below.
  26636. if (node.child !== null) {
  26637. node.child.return = node;
  26638. node = node.child;
  26639. continue;
  26640. }
  26641. }
  26642. if (node === current$$1) {
  26643. return;
  26644. }
  26645. while (node.sibling === null) {
  26646. if (node.return === null || node.return === current$$1) {
  26647. return;
  26648. }
  26649. node = node.return;
  26650. if (node.tag === HostPortal) {
  26651. // When we go out of the portal, we need to restore the parent.
  26652. // Since we don't keep a stack of them, we will search for it.
  26653. currentParentIsValid = false;
  26654. }
  26655. }
  26656. node.sibling.return = node.return;
  26657. node = node.sibling;
  26658. }
  26659. }
  26660. function commitDeletion(current$$1, renderPriorityLevel) {
  26661. if (supportsMutation) {
  26662. // Recursively delete all host nodes from the parent.
  26663. // Detach refs and call componentWillUnmount() on the whole subtree.
  26664. unmountHostComponents(current$$1, renderPriorityLevel);
  26665. } else {
  26666. // Detach refs and call componentWillUnmount() on the whole subtree.
  26667. commitNestedUnmounts(current$$1, renderPriorityLevel);
  26668. }
  26669. detachFiber(current$$1);
  26670. }
  26671. function commitWork(current$$1, finishedWork) {
  26672. if (!supportsMutation) {
  26673. switch (finishedWork.tag) {
  26674. case FunctionComponent:
  26675. case ForwardRef:
  26676. case MemoComponent:
  26677. case SimpleMemoComponent:
  26678. {
  26679. // Note: We currently never use MountMutation, but useLayout uses
  26680. // UnmountMutation.
  26681. commitHookEffectList(UnmountMutation, MountMutation, finishedWork);
  26682. return;
  26683. }
  26684. case Profiler:
  26685. {
  26686. return;
  26687. }
  26688. case SuspenseComponent:
  26689. {
  26690. commitSuspenseComponent(finishedWork);
  26691. attachSuspenseRetryListeners(finishedWork);
  26692. return;
  26693. }
  26694. case SuspenseListComponent:
  26695. {
  26696. attachSuspenseRetryListeners(finishedWork);
  26697. return;
  26698. }
  26699. }
  26700. commitContainer(finishedWork);
  26701. return;
  26702. }
  26703. switch (finishedWork.tag) {
  26704. case FunctionComponent:
  26705. case ForwardRef:
  26706. case MemoComponent:
  26707. case SimpleMemoComponent:
  26708. {
  26709. // Note: We currently never use MountMutation, but useLayout uses
  26710. // UnmountMutation.
  26711. commitHookEffectList(UnmountMutation, MountMutation, finishedWork);
  26712. return;
  26713. }
  26714. case ClassComponent:
  26715. {
  26716. return;
  26717. }
  26718. case HostComponent:
  26719. {
  26720. var instance = finishedWork.stateNode;
  26721. if (instance != null) {
  26722. // Commit the work prepared earlier.
  26723. var newProps = finishedWork.memoizedProps;
  26724. // For hydration we reuse the update path but we treat the oldProps
  26725. // as the newProps. The updatePayload will contain the real change in
  26726. // this case.
  26727. var oldProps = current$$1 !== null ? current$$1.memoizedProps : newProps;
  26728. var type = finishedWork.type;
  26729. // TODO: Type the updateQueue to be specific to host components.
  26730. var updatePayload = finishedWork.updateQueue;
  26731. finishedWork.updateQueue = null;
  26732. if (updatePayload !== null) {
  26733. commitUpdate(instance, updatePayload, type, oldProps, newProps, finishedWork);
  26734. }
  26735. }
  26736. return;
  26737. }
  26738. case HostText:
  26739. {
  26740. (function () {
  26741. if (!(finishedWork.stateNode !== null)) {
  26742. {
  26743. throw ReactError(Error('This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.'));
  26744. }
  26745. }
  26746. })();
  26747. var textInstance = finishedWork.stateNode;
  26748. var newText = finishedWork.memoizedProps;
  26749. // For hydration we reuse the update path but we treat the oldProps
  26750. // as the newProps. The updatePayload will contain the real change in
  26751. // this case.
  26752. var oldText = current$$1 !== null ? current$$1.memoizedProps : newText;
  26753. commitTextUpdate(textInstance, oldText, newText);
  26754. return;
  26755. }
  26756. case HostRoot:
  26757. {
  26758. return;
  26759. }
  26760. case Profiler:
  26761. {
  26762. return;
  26763. }
  26764. case SuspenseComponent:
  26765. {
  26766. commitSuspenseComponent(finishedWork);
  26767. attachSuspenseRetryListeners(finishedWork);
  26768. return;
  26769. }
  26770. case SuspenseListComponent:
  26771. {
  26772. attachSuspenseRetryListeners(finishedWork);
  26773. return;
  26774. }
  26775. case IncompleteClassComponent:
  26776. {
  26777. return;
  26778. }
  26779. case FundamentalComponent:
  26780. {
  26781. if (enableFundamentalAPI) {
  26782. var fundamentalInstance = finishedWork.stateNode;
  26783. updateFundamentalComponent(fundamentalInstance);
  26784. }
  26785. return;
  26786. }
  26787. default:
  26788. {
  26789. (function () {
  26790. {
  26791. {
  26792. throw ReactError(Error('This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.'));
  26793. }
  26794. }
  26795. })();
  26796. }
  26797. }
  26798. }
  26799. function commitSuspenseComponent(finishedWork) {
  26800. var newState = finishedWork.memoizedState;
  26801. var newDidTimeout = void 0;
  26802. var primaryChildParent = finishedWork;
  26803. if (newState === null) {
  26804. newDidTimeout = false;
  26805. } else {
  26806. newDidTimeout = true;
  26807. primaryChildParent = finishedWork.child;
  26808. markCommitTimeOfFallback();
  26809. }
  26810. if (supportsMutation && primaryChildParent !== null) {
  26811. hideOrUnhideAllChildren(primaryChildParent, newDidTimeout);
  26812. }
  26813. if (enableSuspenseCallback && newState !== null) {
  26814. var suspenseCallback = finishedWork.memoizedProps.suspenseCallback;
  26815. if (typeof suspenseCallback === 'function') {
  26816. var thenables = finishedWork.updateQueue;
  26817. if (thenables !== null) {
  26818. suspenseCallback(new Set(thenables));
  26819. }
  26820. } else {
  26821. if (suspenseCallback !== undefined) {
  26822. warning$1(false, 'Unexpected type for suspenseCallback.');
  26823. }
  26824. }
  26825. }
  26826. }
  26827. function attachSuspenseRetryListeners(finishedWork) {
  26828. // If this boundary just timed out, then it will have a set of thenables.
  26829. // For each thenable, attach a listener so that when it resolves, React
  26830. var thenables = finishedWork.updateQueue;
  26831. if (thenables !== null) {
  26832. finishedWork.updateQueue = null;
  26833. var retryCache = finishedWork.stateNode;
  26834. if (retryCache === null) {
  26835. retryCache = finishedWork.stateNode = new PossiblyWeakSet$1();
  26836. }
  26837. thenables.forEach(function (thenable) {
  26838. // Memoize using the boundary fiber to prevent redundant listeners.
  26839. var retry = resolveRetryThenable.bind(null, finishedWork, thenable);
  26840. if (!retryCache.has(thenable)) {
  26841. if (enableSchedulerTracing) {
  26842. retry = tracing.unstable_wrap(retry);
  26843. }
  26844. retryCache.add(thenable);
  26845. thenable.then(retry, retry);
  26846. }
  26847. });
  26848. }
  26849. }
  26850. function commitResetTextContent(current$$1) {
  26851. if (!supportsMutation) {
  26852. return;
  26853. }
  26854. resetTextContent(current$$1.stateNode);
  26855. }
  26856. var PossiblyWeakSet = typeof WeakSet === 'function' ? WeakSet : Set;
  26857. var PossiblyWeakMap$1 = typeof WeakMap === 'function' ? WeakMap : Map;
  26858. function createRootErrorUpdate(fiber, errorInfo, expirationTime) {
  26859. var update = createUpdate(expirationTime, null);
  26860. // Unmount the root by rendering null.
  26861. update.tag = CaptureUpdate;
  26862. // Caution: React DevTools currently depends on this property
  26863. // being called "element".
  26864. update.payload = { element: null };
  26865. var error = errorInfo.value;
  26866. update.callback = function () {
  26867. onUncaughtError(error);
  26868. logError(fiber, errorInfo);
  26869. };
  26870. return update;
  26871. }
  26872. function createClassErrorUpdate(fiber, errorInfo, expirationTime) {
  26873. var update = createUpdate(expirationTime, null);
  26874. update.tag = CaptureUpdate;
  26875. var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
  26876. if (typeof getDerivedStateFromError === 'function') {
  26877. var error = errorInfo.value;
  26878. update.payload = function () {
  26879. logError(fiber, errorInfo);
  26880. return getDerivedStateFromError(error);
  26881. };
  26882. }
  26883. var inst = fiber.stateNode;
  26884. if (inst !== null && typeof inst.componentDidCatch === 'function') {
  26885. update.callback = function callback() {
  26886. {
  26887. markFailedErrorBoundaryForHotReloading(fiber);
  26888. }
  26889. if (typeof getDerivedStateFromError !== 'function') {
  26890. // To preserve the preexisting retry behavior of error boundaries,
  26891. // we keep track of which ones already failed during this batch.
  26892. // This gets reset before we yield back to the browser.
  26893. // TODO: Warn in strict mode if getDerivedStateFromError is
  26894. // not defined.
  26895. markLegacyErrorBoundaryAsFailed(this);
  26896. // Only log here if componentDidCatch is the only error boundary method defined
  26897. logError(fiber, errorInfo);
  26898. }
  26899. var error = errorInfo.value;
  26900. var stack = errorInfo.stack;
  26901. this.componentDidCatch(error, {
  26902. componentStack: stack !== null ? stack : ''
  26903. });
  26904. {
  26905. if (typeof getDerivedStateFromError !== 'function') {
  26906. // If componentDidCatch is the only error boundary method defined,
  26907. // then it needs to call setState to recover from errors.
  26908. // If no state update is scheduled then the boundary will swallow the error.
  26909. !(fiber.expirationTime === Sync) ? warningWithoutStack$1(false, '%s: Error boundaries should implement getDerivedStateFromError(). ' + 'In that method, return a state update to display an error message or fallback UI.', getComponentName(fiber.type) || 'Unknown') : void 0;
  26910. }
  26911. }
  26912. };
  26913. } else {
  26914. update.callback = function () {
  26915. markFailedErrorBoundaryForHotReloading(fiber);
  26916. };
  26917. }
  26918. return update;
  26919. }
  26920. function attachPingListener(root, renderExpirationTime, thenable) {
  26921. // Attach a listener to the promise to "ping" the root and retry. But
  26922. // only if one does not already exist for the current render expiration
  26923. // time (which acts like a "thread ID" here).
  26924. var pingCache = root.pingCache;
  26925. var threadIDs = void 0;
  26926. if (pingCache === null) {
  26927. pingCache = root.pingCache = new PossiblyWeakMap$1();
  26928. threadIDs = new Set();
  26929. pingCache.set(thenable, threadIDs);
  26930. } else {
  26931. threadIDs = pingCache.get(thenable);
  26932. if (threadIDs === undefined) {
  26933. threadIDs = new Set();
  26934. pingCache.set(thenable, threadIDs);
  26935. }
  26936. }
  26937. if (!threadIDs.has(renderExpirationTime)) {
  26938. // Memoize using the thread ID to prevent redundant listeners.
  26939. threadIDs.add(renderExpirationTime);
  26940. var ping = pingSuspendedRoot.bind(null, root, thenable, renderExpirationTime);
  26941. if (enableSchedulerTracing) {
  26942. ping = tracing.unstable_wrap(ping);
  26943. }
  26944. thenable.then(ping, ping);
  26945. }
  26946. }
  26947. function throwException(root, returnFiber, sourceFiber, value, renderExpirationTime) {
  26948. // The source fiber did not complete.
  26949. sourceFiber.effectTag |= Incomplete;
  26950. // Its effect list is no longer valid.
  26951. sourceFiber.firstEffect = sourceFiber.lastEffect = null;
  26952. if (value !== null && typeof value === 'object' && typeof value.then === 'function') {
  26953. // This is a thenable.
  26954. var thenable = value;
  26955. checkForWrongSuspensePriorityInDEV(sourceFiber);
  26956. var hasInvisibleParentBoundary = hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext);
  26957. // Schedule the nearest Suspense to re-render the timed out view.
  26958. var _workInProgress = returnFiber;
  26959. do {
  26960. if (_workInProgress.tag === SuspenseComponent && shouldCaptureSuspense(_workInProgress, hasInvisibleParentBoundary)) {
  26961. // Found the nearest boundary.
  26962. // Stash the promise on the boundary fiber. If the boundary times out, we'll
  26963. var thenables = _workInProgress.updateQueue;
  26964. if (thenables === null) {
  26965. var updateQueue = new Set();
  26966. updateQueue.add(thenable);
  26967. _workInProgress.updateQueue = updateQueue;
  26968. } else {
  26969. thenables.add(thenable);
  26970. }
  26971. // If the boundary is outside of batched mode, we should *not*
  26972. // suspend the commit. Pretend as if the suspended component rendered
  26973. // null and keep rendering. In the commit phase, we'll schedule a
  26974. // subsequent synchronous update to re-render the Suspense.
  26975. //
  26976. // Note: It doesn't matter whether the component that suspended was
  26977. // inside a batched mode tree. If the Suspense is outside of it, we
  26978. // should *not* suspend the commit.
  26979. if ((_workInProgress.mode & BatchedMode) === NoMode) {
  26980. _workInProgress.effectTag |= DidCapture;
  26981. // We're going to commit this fiber even though it didn't complete.
  26982. // But we shouldn't call any lifecycle methods or callbacks. Remove
  26983. // all lifecycle effect tags.
  26984. sourceFiber.effectTag &= ~(LifecycleEffectMask | Incomplete);
  26985. if (sourceFiber.tag === ClassComponent) {
  26986. var currentSourceFiber = sourceFiber.alternate;
  26987. if (currentSourceFiber === null) {
  26988. // This is a new mount. Change the tag so it's not mistaken for a
  26989. // completed class component. For example, we should not call
  26990. // componentWillUnmount if it is deleted.
  26991. sourceFiber.tag = IncompleteClassComponent;
  26992. } else {
  26993. // When we try rendering again, we should not reuse the current fiber,
  26994. // since it's known to be in an inconsistent state. Use a force update to
  26995. // prevent a bail out.
  26996. var update = createUpdate(Sync, null);
  26997. update.tag = ForceUpdate;
  26998. enqueueUpdate(sourceFiber, update);
  26999. }
  27000. }
  27001. // The source fiber did not complete. Mark it with Sync priority to
  27002. // indicate that it still has pending work.
  27003. sourceFiber.expirationTime = Sync;
  27004. // Exit without suspending.
  27005. return;
  27006. }
  27007. // Confirmed that the boundary is in a concurrent mode tree. Continue
  27008. // with the normal suspend path.
  27009. //
  27010. // After this we'll use a set of heuristics to determine whether this
  27011. // render pass will run to completion or restart or "suspend" the commit.
  27012. // The actual logic for this is spread out in different places.
  27013. //
  27014. // This first principle is that if we're going to suspend when we complete
  27015. // a root, then we should also restart if we get an update or ping that
  27016. // might unsuspend it, and vice versa. The only reason to suspend is
  27017. // because you think you might want to restart before committing. However,
  27018. // it doesn't make sense to restart only while in the period we're suspended.
  27019. //
  27020. // Restarting too aggressively is also not good because it starves out any
  27021. // intermediate loading state. So we use heuristics to determine when.
  27022. // Suspense Heuristics
  27023. //
  27024. // If nothing threw a Promise or all the same fallbacks are already showing,
  27025. // then don't suspend/restart.
  27026. //
  27027. // If this is an initial render of a new tree of Suspense boundaries and
  27028. // those trigger a fallback, then don't suspend/restart. We want to ensure
  27029. // that we can show the initial loading state as quickly as possible.
  27030. //
  27031. // If we hit a "Delayed" case, such as when we'd switch from content back into
  27032. // a fallback, then we should always suspend/restart. SuspenseConfig applies to
  27033. // this case. If none is defined, JND is used instead.
  27034. //
  27035. // If we're already showing a fallback and it gets "retried", allowing us to show
  27036. // another level, but there's still an inner boundary that would show a fallback,
  27037. // then we suspend/restart for 500ms since the last time we showed a fallback
  27038. // anywhere in the tree. This effectively throttles progressive loading into a
  27039. // consistent train of commits. This also gives us an opportunity to restart to
  27040. // get to the completed state slightly earlier.
  27041. //
  27042. // If there's ambiguity due to batching it's resolved in preference of:
  27043. // 1) "delayed", 2) "initial render", 3) "retry".
  27044. //
  27045. // We want to ensure that a "busy" state doesn't get force committed. We want to
  27046. // ensure that new initial loading states can commit as soon as possible.
  27047. attachPingListener(root, renderExpirationTime, thenable);
  27048. _workInProgress.effectTag |= ShouldCapture;
  27049. _workInProgress.expirationTime = renderExpirationTime;
  27050. return;
  27051. } else if (enableSuspenseServerRenderer && _workInProgress.tag === DehydratedSuspenseComponent) {
  27052. attachPingListener(root, renderExpirationTime, thenable);
  27053. // Since we already have a current fiber, we can eagerly add a retry listener.
  27054. var retryCache = _workInProgress.memoizedState;
  27055. if (retryCache === null) {
  27056. retryCache = _workInProgress.memoizedState = new PossiblyWeakSet();
  27057. var current$$1 = _workInProgress.alternate;
  27058. (function () {
  27059. if (!current$$1) {
  27060. {
  27061. throw ReactError(Error('A dehydrated suspense boundary must commit before trying to render. This is probably a bug in React.'));
  27062. }
  27063. }
  27064. })();
  27065. current$$1.memoizedState = retryCache;
  27066. }
  27067. // Memoize using the boundary fiber to prevent redundant listeners.
  27068. if (!retryCache.has(thenable)) {
  27069. retryCache.add(thenable);
  27070. var retry = resolveRetryThenable.bind(null, _workInProgress, thenable);
  27071. if (enableSchedulerTracing) {
  27072. retry = tracing.unstable_wrap(retry);
  27073. }
  27074. thenable.then(retry, retry);
  27075. }
  27076. _workInProgress.effectTag |= ShouldCapture;
  27077. _workInProgress.expirationTime = renderExpirationTime;
  27078. return;
  27079. }
  27080. // This boundary already captured during this render. Continue to the next
  27081. // boundary.
  27082. _workInProgress = _workInProgress.return;
  27083. } while (_workInProgress !== null);
  27084. // No boundary was found. Fallthrough to error mode.
  27085. // TODO: Use invariant so the message is stripped in prod?
  27086. value = new Error((getComponentName(sourceFiber.type) || 'A React component') + ' suspended while rendering, but no fallback UI was specified.\n' + '\n' + 'Add a <Suspense fallback=...> component higher in the tree to ' + 'provide a loading indicator or placeholder to display.' + getStackByFiberInDevAndProd(sourceFiber));
  27087. }
  27088. // We didn't find a boundary that could handle this type of exception. Start
  27089. // over and traverse parent path again, this time treating the exception
  27090. // as an error.
  27091. renderDidError();
  27092. value = createCapturedValue(value, sourceFiber);
  27093. var workInProgress = returnFiber;
  27094. do {
  27095. switch (workInProgress.tag) {
  27096. case HostRoot:
  27097. {
  27098. var _errorInfo = value;
  27099. workInProgress.effectTag |= ShouldCapture;
  27100. workInProgress.expirationTime = renderExpirationTime;
  27101. var _update = createRootErrorUpdate(workInProgress, _errorInfo, renderExpirationTime);
  27102. enqueueCapturedUpdate(workInProgress, _update);
  27103. return;
  27104. }
  27105. case ClassComponent:
  27106. // Capture and retry
  27107. var errorInfo = value;
  27108. var ctor = workInProgress.type;
  27109. var instance = workInProgress.stateNode;
  27110. if ((workInProgress.effectTag & DidCapture) === NoEffect && (typeof ctor.getDerivedStateFromError === 'function' || instance !== null && typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance))) {
  27111. workInProgress.effectTag |= ShouldCapture;
  27112. workInProgress.expirationTime = renderExpirationTime;
  27113. // Schedule the error boundary to re-render using updated state
  27114. var _update2 = createClassErrorUpdate(workInProgress, errorInfo, renderExpirationTime);
  27115. enqueueCapturedUpdate(workInProgress, _update2);
  27116. return;
  27117. }
  27118. break;
  27119. default:
  27120. break;
  27121. }
  27122. workInProgress = workInProgress.return;
  27123. } while (workInProgress !== null);
  27124. }
  27125. // The scheduler is imported here *only* to detect whether it's been mocked
  27126. // DEV stuff
  27127. var ceil = Math.ceil;
  27128. var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
  27129. var ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner;
  27130. var IsSomeRendererActing = ReactSharedInternals.IsSomeRendererActing;
  27131. var NoContext = /* */0;
  27132. var BatchedContext = /* */1;
  27133. var EventContext = /* */2;
  27134. var DiscreteEventContext = /* */4;
  27135. var LegacyUnbatchedContext = /* */8;
  27136. var RenderContext = /* */16;
  27137. var CommitContext = /* */32;
  27138. var RootIncomplete = 0;
  27139. var RootErrored = 1;
  27140. var RootSuspended = 2;
  27141. var RootSuspendedWithDelay = 3;
  27142. var RootCompleted = 4;
  27143. // Describes where we are in the React execution stack
  27144. var executionContext = NoContext;
  27145. // The root we're working on
  27146. var workInProgressRoot = null;
  27147. // The fiber we're working on
  27148. var workInProgress = null;
  27149. // The expiration time we're rendering
  27150. var renderExpirationTime = NoWork;
  27151. // Whether to root completed, errored, suspended, etc.
  27152. var workInProgressRootExitStatus = RootIncomplete;
  27153. // Most recent event time among processed updates during this render.
  27154. // This is conceptually a time stamp but expressed in terms of an ExpirationTime
  27155. // because we deal mostly with expiration times in the hot path, so this avoids
  27156. // the conversion happening in the hot path.
  27157. var workInProgressRootLatestProcessedExpirationTime = Sync;
  27158. var workInProgressRootLatestSuspenseTimeout = Sync;
  27159. var workInProgressRootCanSuspendUsingConfig = null;
  27160. // If we're pinged while rendering we don't always restart immediately.
  27161. // This flag determines if it might be worthwhile to restart if an opportunity
  27162. // happens latere.
  27163. var workInProgressRootHasPendingPing = false;
  27164. // The most recent time we committed a fallback. This lets us ensure a train
  27165. // model where we don't commit new loading states in too quick succession.
  27166. var globalMostRecentFallbackTime = 0;
  27167. var FALLBACK_THROTTLE_MS = 500;
  27168. var nextEffect = null;
  27169. var hasUncaughtError = false;
  27170. var firstUncaughtError = null;
  27171. var legacyErrorBoundariesThatAlreadyFailed = null;
  27172. var rootDoesHavePassiveEffects = false;
  27173. var rootWithPendingPassiveEffects = null;
  27174. var pendingPassiveEffectsRenderPriority = NoPriority;
  27175. var pendingPassiveEffectsExpirationTime = NoWork;
  27176. var rootsWithPendingDiscreteUpdates = null;
  27177. // Use these to prevent an infinite loop of nested updates
  27178. var NESTED_UPDATE_LIMIT = 50;
  27179. var nestedUpdateCount = 0;
  27180. var rootWithNestedUpdates = null;
  27181. var NESTED_PASSIVE_UPDATE_LIMIT = 50;
  27182. var nestedPassiveUpdateCount = 0;
  27183. var interruptedBy = null;
  27184. // Marks the need to reschedule pending interactions at these expiration times
  27185. // during the commit phase. This enables them to be traced across components
  27186. // that spawn new work during render. E.g. hidden boundaries, suspended SSR
  27187. // hydration or SuspenseList.
  27188. var spawnedWorkDuringRender = null;
  27189. // Expiration times are computed by adding to the current time (the start
  27190. // time). However, if two updates are scheduled within the same event, we
  27191. // should treat their start times as simultaneous, even if the actual clock
  27192. // time has advanced between the first and second call.
  27193. // In other words, because expiration times determine how updates are batched,
  27194. // we want all updates of like priority that occur within the same event to
  27195. // receive the same expiration time. Otherwise we get tearing.
  27196. var currentEventTime = NoWork;
  27197. function requestCurrentTime() {
  27198. if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
  27199. // We're inside React, so it's fine to read the actual time.
  27200. return msToExpirationTime(now());
  27201. }
  27202. // We're not inside React, so we may be in the middle of a browser event.
  27203. if (currentEventTime !== NoWork) {
  27204. // Use the same start time for all updates until we enter React again.
  27205. return currentEventTime;
  27206. }
  27207. // This is the first update since React yielded. Compute a new start time.
  27208. currentEventTime = msToExpirationTime(now());
  27209. return currentEventTime;
  27210. }
  27211. function computeExpirationForFiber(currentTime, fiber, suspenseConfig) {
  27212. var mode = fiber.mode;
  27213. if ((mode & BatchedMode) === NoMode) {
  27214. return Sync;
  27215. }
  27216. var priorityLevel = getCurrentPriorityLevel();
  27217. if ((mode & ConcurrentMode) === NoMode) {
  27218. return priorityLevel === ImmediatePriority ? Sync : Batched;
  27219. }
  27220. if ((executionContext & RenderContext) !== NoContext) {
  27221. // Use whatever time we're already rendering
  27222. return renderExpirationTime;
  27223. }
  27224. var expirationTime = void 0;
  27225. if (suspenseConfig !== null) {
  27226. // Compute an expiration time based on the Suspense timeout.
  27227. expirationTime = computeSuspenseExpiration(currentTime, suspenseConfig.timeoutMs | 0 || LOW_PRIORITY_EXPIRATION);
  27228. } else {
  27229. // Compute an expiration time based on the Scheduler priority.
  27230. switch (priorityLevel) {
  27231. case ImmediatePriority:
  27232. expirationTime = Sync;
  27233. break;
  27234. case UserBlockingPriority$2:
  27235. // TODO: Rename this to computeUserBlockingExpiration
  27236. expirationTime = computeInteractiveExpiration(currentTime);
  27237. break;
  27238. case NormalPriority:
  27239. case LowPriority:
  27240. // TODO: Handle LowPriority
  27241. // TODO: Rename this to... something better.
  27242. expirationTime = computeAsyncExpiration(currentTime);
  27243. break;
  27244. case IdlePriority:
  27245. expirationTime = Never;
  27246. break;
  27247. default:
  27248. (function () {
  27249. {
  27250. {
  27251. throw ReactError(Error('Expected a valid priority level'));
  27252. }
  27253. }
  27254. })();
  27255. }
  27256. }
  27257. // If we're in the middle of rendering a tree, do not update at the same
  27258. // expiration time that is already rendering.
  27259. // TODO: We shouldn't have to do this if the update is on a different root.
  27260. // Refactor computeExpirationForFiber + scheduleUpdate so we have access to
  27261. // the root when we check for this condition.
  27262. if (workInProgressRoot !== null && expirationTime === renderExpirationTime) {
  27263. // This is a trick to move this update into a separate batch
  27264. expirationTime -= 1;
  27265. }
  27266. return expirationTime;
  27267. }
  27268. var lastUniqueAsyncExpiration = NoWork;
  27269. function computeUniqueAsyncExpiration() {
  27270. var currentTime = requestCurrentTime();
  27271. var result = computeAsyncExpiration(currentTime);
  27272. if (result <= lastUniqueAsyncExpiration) {
  27273. // Since we assume the current time monotonically increases, we only hit
  27274. // this branch when computeUniqueAsyncExpiration is fired multiple times
  27275. // within a 200ms window (or whatever the async bucket size is).
  27276. result -= 1;
  27277. }
  27278. lastUniqueAsyncExpiration = result;
  27279. return result;
  27280. }
  27281. function scheduleUpdateOnFiber(fiber, expirationTime) {
  27282. checkForNestedUpdates();
  27283. warnAboutInvalidUpdatesOnClassComponentsInDEV(fiber);
  27284. var root = markUpdateTimeFromFiberToRoot(fiber, expirationTime);
  27285. if (root === null) {
  27286. warnAboutUpdateOnUnmountedFiberInDEV(fiber);
  27287. return;
  27288. }
  27289. root.pingTime = NoWork;
  27290. checkForInterruption(fiber, expirationTime);
  27291. recordScheduleUpdate();
  27292. // TODO: computeExpirationForFiber also reads the priority. Pass the
  27293. // priority as an argument to that function and this one.
  27294. var priorityLevel = getCurrentPriorityLevel();
  27295. if (expirationTime === Sync) {
  27296. if (
  27297. // Check if we're inside unbatchedUpdates
  27298. (executionContext & LegacyUnbatchedContext) !== NoContext &&
  27299. // Check if we're not already rendering
  27300. (executionContext & (RenderContext | CommitContext)) === NoContext) {
  27301. // Register pending interactions on the root to avoid losing traced interaction data.
  27302. schedulePendingInteractions(root, expirationTime);
  27303. // This is a legacy edge case. The initial mount of a ReactDOM.render-ed
  27304. // root inside of batchedUpdates should be synchronous, but layout updates
  27305. // should be deferred until the end of the batch.
  27306. var callback = renderRoot(root, Sync, true);
  27307. while (callback !== null) {
  27308. callback = callback(true);
  27309. }
  27310. } else {
  27311. scheduleCallbackForRoot(root, ImmediatePriority, Sync);
  27312. if (executionContext === NoContext) {
  27313. // Flush the synchronous work now, wnless we're already working or inside
  27314. // a batch. This is intentionally inside scheduleUpdateOnFiber instead of
  27315. // scheduleCallbackForFiber to preserve the ability to schedule a callback
  27316. // without immediately flushing it. We only do this for user-initiated
  27317. // updates, to preserve historical behavior of sync mode.
  27318. flushSyncCallbackQueue();
  27319. }
  27320. }
  27321. } else {
  27322. scheduleCallbackForRoot(root, priorityLevel, expirationTime);
  27323. }
  27324. if ((executionContext & DiscreteEventContext) !== NoContext && (
  27325. // Only updates at user-blocking priority or greater are considered
  27326. // discrete, even inside a discrete event.
  27327. priorityLevel === UserBlockingPriority$2 || priorityLevel === ImmediatePriority)) {
  27328. // This is the result of a discrete event. Track the lowest priority
  27329. // discrete update per root so we can flush them early, if needed.
  27330. if (rootsWithPendingDiscreteUpdates === null) {
  27331. rootsWithPendingDiscreteUpdates = new Map([[root, expirationTime]]);
  27332. } else {
  27333. var lastDiscreteTime = rootsWithPendingDiscreteUpdates.get(root);
  27334. if (lastDiscreteTime === undefined || lastDiscreteTime > expirationTime) {
  27335. rootsWithPendingDiscreteUpdates.set(root, expirationTime);
  27336. }
  27337. }
  27338. }
  27339. }
  27340. var scheduleWork = scheduleUpdateOnFiber;
  27341. // This is split into a separate function so we can mark a fiber with pending
  27342. // work without treating it as a typical update that originates from an event;
  27343. // e.g. retrying a Suspense boundary isn't an update, but it does schedule work
  27344. // on a fiber.
  27345. function markUpdateTimeFromFiberToRoot(fiber, expirationTime) {
  27346. // Update the source fiber's expiration time
  27347. if (fiber.expirationTime < expirationTime) {
  27348. fiber.expirationTime = expirationTime;
  27349. }
  27350. var alternate = fiber.alternate;
  27351. if (alternate !== null && alternate.expirationTime < expirationTime) {
  27352. alternate.expirationTime = expirationTime;
  27353. }
  27354. // Walk the parent path to the root and update the child expiration time.
  27355. var node = fiber.return;
  27356. var root = null;
  27357. if (node === null && fiber.tag === HostRoot) {
  27358. root = fiber.stateNode;
  27359. } else {
  27360. while (node !== null) {
  27361. alternate = node.alternate;
  27362. if (node.childExpirationTime < expirationTime) {
  27363. node.childExpirationTime = expirationTime;
  27364. if (alternate !== null && alternate.childExpirationTime < expirationTime) {
  27365. alternate.childExpirationTime = expirationTime;
  27366. }
  27367. } else if (alternate !== null && alternate.childExpirationTime < expirationTime) {
  27368. alternate.childExpirationTime = expirationTime;
  27369. }
  27370. if (node.return === null && node.tag === HostRoot) {
  27371. root = node.stateNode;
  27372. break;
  27373. }
  27374. node = node.return;
  27375. }
  27376. }
  27377. if (root !== null) {
  27378. // Update the first and last pending expiration times in this root
  27379. var firstPendingTime = root.firstPendingTime;
  27380. if (expirationTime > firstPendingTime) {
  27381. root.firstPendingTime = expirationTime;
  27382. }
  27383. var lastPendingTime = root.lastPendingTime;
  27384. if (lastPendingTime === NoWork || expirationTime < lastPendingTime) {
  27385. root.lastPendingTime = expirationTime;
  27386. }
  27387. }
  27388. return root;
  27389. }
  27390. // Use this function, along with runRootCallback, to ensure that only a single
  27391. // callback per root is scheduled. It's still possible to call renderRoot
  27392. // directly, but scheduling via this function helps avoid excessive callbacks.
  27393. // It works by storing the callback node and expiration time on the root. When a
  27394. // new callback comes in, it compares the expiration time to determine if it
  27395. // should cancel the previous one. It also relies on commitRoot scheduling a
  27396. // callback to render the next level, because that means we don't need a
  27397. // separate callback per expiration time.
  27398. function scheduleCallbackForRoot(root, priorityLevel, expirationTime) {
  27399. var existingCallbackExpirationTime = root.callbackExpirationTime;
  27400. if (existingCallbackExpirationTime < expirationTime) {
  27401. // New callback has higher priority than the existing one.
  27402. var existingCallbackNode = root.callbackNode;
  27403. if (existingCallbackNode !== null) {
  27404. cancelCallback(existingCallbackNode);
  27405. }
  27406. root.callbackExpirationTime = expirationTime;
  27407. if (expirationTime === Sync) {
  27408. // Sync React callbacks are scheduled on a special internal queue
  27409. root.callbackNode = scheduleSyncCallback(runRootCallback.bind(null, root, renderRoot.bind(null, root, expirationTime)));
  27410. } else {
  27411. var options = null;
  27412. if (!disableSchedulerTimeoutBasedOnReactExpirationTime && expirationTime !== Never) {
  27413. var timeout = expirationTimeToMs(expirationTime) - now();
  27414. options = { timeout: timeout };
  27415. }
  27416. root.callbackNode = scheduleCallback(priorityLevel, runRootCallback.bind(null, root, renderRoot.bind(null, root, expirationTime)), options);
  27417. if (enableUserTimingAPI && expirationTime !== Sync && (executionContext & (RenderContext | CommitContext)) === NoContext) {
  27418. // Scheduled an async callback, and we're not already working. Add an
  27419. // entry to the flamegraph that shows we're waiting for a callback
  27420. // to fire.
  27421. startRequestCallbackTimer();
  27422. }
  27423. }
  27424. }
  27425. // Associate the current interactions with this new root+priority.
  27426. schedulePendingInteractions(root, expirationTime);
  27427. }
  27428. function runRootCallback(root, callback, isSync) {
  27429. var prevCallbackNode = root.callbackNode;
  27430. var continuation = null;
  27431. try {
  27432. continuation = callback(isSync);
  27433. if (continuation !== null) {
  27434. return runRootCallback.bind(null, root, continuation);
  27435. } else {
  27436. return null;
  27437. }
  27438. } finally {
  27439. // If the callback exits without returning a continuation, remove the
  27440. // corresponding callback node from the root. Unless the callback node
  27441. // has changed, which implies that it was already cancelled by a high
  27442. // priority update.
  27443. if (continuation === null && prevCallbackNode === root.callbackNode) {
  27444. root.callbackNode = null;
  27445. root.callbackExpirationTime = NoWork;
  27446. }
  27447. }
  27448. }
  27449. function flushRoot(root, expirationTime) {
  27450. if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
  27451. (function () {
  27452. {
  27453. {
  27454. throw ReactError(Error('work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method.'));
  27455. }
  27456. }
  27457. })();
  27458. }
  27459. scheduleSyncCallback(renderRoot.bind(null, root, expirationTime));
  27460. flushSyncCallbackQueue();
  27461. }
  27462. function flushDiscreteUpdates() {
  27463. // TODO: Should be able to flush inside batchedUpdates, but not inside `act`.
  27464. // However, `act` uses `batchedUpdates`, so there's no way to distinguish
  27465. // those two cases. Need to fix this before exposing flushDiscreteUpdates
  27466. // as a public API.
  27467. if ((executionContext & (BatchedContext | RenderContext | CommitContext)) !== NoContext) {
  27468. if ( true && (executionContext & RenderContext) !== NoContext) {
  27469. warning$1(false, 'unstable_flushDiscreteUpdates: Cannot flush updates when React is ' + 'already rendering.');
  27470. }
  27471. // We're already rendering, so we can't synchronously flush pending work.
  27472. // This is probably a nested event dispatch triggered by a lifecycle/effect,
  27473. // like `el.focus()`. Exit.
  27474. return;
  27475. }
  27476. flushPendingDiscreteUpdates();
  27477. if (!revertPassiveEffectsChange) {
  27478. // If the discrete updates scheduled passive effects, flush them now so that
  27479. // they fire before the next serial event.
  27480. flushPassiveEffects();
  27481. }
  27482. }
  27483. function resolveLocksOnRoot(root, expirationTime) {
  27484. var firstBatch = root.firstBatch;
  27485. if (firstBatch !== null && firstBatch._defer && firstBatch._expirationTime >= expirationTime) {
  27486. scheduleCallback(NormalPriority, function () {
  27487. firstBatch._onComplete();
  27488. return null;
  27489. });
  27490. return true;
  27491. } else {
  27492. return false;
  27493. }
  27494. }
  27495. function flushPendingDiscreteUpdates() {
  27496. if (rootsWithPendingDiscreteUpdates !== null) {
  27497. // For each root with pending discrete updates, schedule a callback to
  27498. // immediately flush them.
  27499. var roots = rootsWithPendingDiscreteUpdates;
  27500. rootsWithPendingDiscreteUpdates = null;
  27501. roots.forEach(function (expirationTime, root) {
  27502. scheduleSyncCallback(renderRoot.bind(null, root, expirationTime));
  27503. });
  27504. // Now flush the immediate queue.
  27505. flushSyncCallbackQueue();
  27506. }
  27507. }
  27508. function batchedUpdates$1(fn, a) {
  27509. var prevExecutionContext = executionContext;
  27510. executionContext |= BatchedContext;
  27511. try {
  27512. return fn(a);
  27513. } finally {
  27514. executionContext = prevExecutionContext;
  27515. if (executionContext === NoContext) {
  27516. // Flush the immediate callbacks that were scheduled during this batch
  27517. flushSyncCallbackQueue();
  27518. }
  27519. }
  27520. }
  27521. function batchedEventUpdates$1(fn, a) {
  27522. var prevExecutionContext = executionContext;
  27523. executionContext |= EventContext;
  27524. try {
  27525. return fn(a);
  27526. } finally {
  27527. executionContext = prevExecutionContext;
  27528. if (executionContext === NoContext) {
  27529. // Flush the immediate callbacks that were scheduled during this batch
  27530. flushSyncCallbackQueue();
  27531. }
  27532. }
  27533. }
  27534. function discreteUpdates$1(fn, a, b, c) {
  27535. var prevExecutionContext = executionContext;
  27536. executionContext |= DiscreteEventContext;
  27537. try {
  27538. // Should this
  27539. return runWithPriority$2(UserBlockingPriority$2, fn.bind(null, a, b, c));
  27540. } finally {
  27541. executionContext = prevExecutionContext;
  27542. if (executionContext === NoContext) {
  27543. // Flush the immediate callbacks that were scheduled during this batch
  27544. flushSyncCallbackQueue();
  27545. }
  27546. }
  27547. }
  27548. function unbatchedUpdates(fn, a) {
  27549. var prevExecutionContext = executionContext;
  27550. executionContext &= ~BatchedContext;
  27551. executionContext |= LegacyUnbatchedContext;
  27552. try {
  27553. return fn(a);
  27554. } finally {
  27555. executionContext = prevExecutionContext;
  27556. if (executionContext === NoContext) {
  27557. // Flush the immediate callbacks that were scheduled during this batch
  27558. flushSyncCallbackQueue();
  27559. }
  27560. }
  27561. }
  27562. function flushSync(fn, a) {
  27563. if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
  27564. (function () {
  27565. {
  27566. {
  27567. throw ReactError(Error('flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering.'));
  27568. }
  27569. }
  27570. })();
  27571. }
  27572. var prevExecutionContext = executionContext;
  27573. executionContext |= BatchedContext;
  27574. try {
  27575. return runWithPriority$2(ImmediatePriority, fn.bind(null, a));
  27576. } finally {
  27577. executionContext = prevExecutionContext;
  27578. // Flush the immediate callbacks that were scheduled during this batch.
  27579. // Note that this will happen even if batchedUpdates is higher up
  27580. // the stack.
  27581. flushSyncCallbackQueue();
  27582. }
  27583. }
  27584. function flushControlled(fn) {
  27585. var prevExecutionContext = executionContext;
  27586. executionContext |= BatchedContext;
  27587. try {
  27588. runWithPriority$2(ImmediatePriority, fn);
  27589. } finally {
  27590. executionContext = prevExecutionContext;
  27591. if (executionContext === NoContext) {
  27592. // Flush the immediate callbacks that were scheduled during this batch
  27593. flushSyncCallbackQueue();
  27594. }
  27595. }
  27596. }
  27597. function prepareFreshStack(root, expirationTime) {
  27598. root.finishedWork = null;
  27599. root.finishedExpirationTime = NoWork;
  27600. var timeoutHandle = root.timeoutHandle;
  27601. if (timeoutHandle !== noTimeout) {
  27602. // The root previous suspended and scheduled a timeout to commit a fallback
  27603. // state. Now that we have additional work, cancel the timeout.
  27604. root.timeoutHandle = noTimeout;
  27605. // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above
  27606. cancelTimeout(timeoutHandle);
  27607. }
  27608. if (workInProgress !== null) {
  27609. var interruptedWork = workInProgress.return;
  27610. while (interruptedWork !== null) {
  27611. unwindInterruptedWork(interruptedWork);
  27612. interruptedWork = interruptedWork.return;
  27613. }
  27614. }
  27615. workInProgressRoot = root;
  27616. workInProgress = createWorkInProgress(root.current, null, expirationTime);
  27617. renderExpirationTime = expirationTime;
  27618. workInProgressRootExitStatus = RootIncomplete;
  27619. workInProgressRootLatestProcessedExpirationTime = Sync;
  27620. workInProgressRootLatestSuspenseTimeout = Sync;
  27621. workInProgressRootCanSuspendUsingConfig = null;
  27622. workInProgressRootHasPendingPing = false;
  27623. if (enableSchedulerTracing) {
  27624. spawnedWorkDuringRender = null;
  27625. }
  27626. {
  27627. ReactStrictModeWarnings.discardPendingWarnings();
  27628. componentsThatTriggeredHighPriSuspend = null;
  27629. }
  27630. }
  27631. function renderRoot(root, expirationTime, isSync) {
  27632. (function () {
  27633. if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
  27634. {
  27635. throw ReactError(Error('Should not already be working.'));
  27636. }
  27637. }
  27638. })();
  27639. if (enableUserTimingAPI && expirationTime !== Sync) {
  27640. var didExpire = isSync;
  27641. stopRequestCallbackTimer(didExpire);
  27642. }
  27643. if (root.firstPendingTime < expirationTime) {
  27644. // If there's no work left at this expiration time, exit immediately. This
  27645. // happens when multiple callbacks are scheduled for a single root, but an
  27646. // earlier callback flushes the work of a later one.
  27647. return null;
  27648. }
  27649. if (isSync && root.finishedExpirationTime === expirationTime) {
  27650. // There's already a pending commit at this expiration time.
  27651. // TODO: This is poorly factored. This case only exists for the
  27652. // batch.commit() API.
  27653. return commitRoot.bind(null, root);
  27654. }
  27655. flushPassiveEffects();
  27656. // If the root or expiration time have changed, throw out the existing stack
  27657. // and prepare a fresh one. Otherwise we'll continue where we left off.
  27658. if (root !== workInProgressRoot || expirationTime !== renderExpirationTime) {
  27659. prepareFreshStack(root, expirationTime);
  27660. startWorkOnPendingInteractions(root, expirationTime);
  27661. } else if (workInProgressRootExitStatus === RootSuspendedWithDelay) {
  27662. // We could've received an update at a lower priority while we yielded.
  27663. // We're suspended in a delayed state. Once we complete this render we're
  27664. // just going to try to recover at the last pending time anyway so we might
  27665. // as well start doing that eagerly.
  27666. // Ideally we should be able to do this even for retries but we don't yet
  27667. // know if we're going to process an update which wants to commit earlier,
  27668. // and this path happens very early so it would happen too often. Instead,
  27669. // for that case, we'll wait until we complete.
  27670. if (workInProgressRootHasPendingPing) {
  27671. // We have a ping at this expiration. Let's restart to see if we get unblocked.
  27672. prepareFreshStack(root, expirationTime);
  27673. } else {
  27674. var lastPendingTime = root.lastPendingTime;
  27675. if (lastPendingTime < expirationTime) {
  27676. // There's lower priority work. It might be unsuspended. Try rendering
  27677. // at that level immediately, while preserving the position in the queue.
  27678. return renderRoot.bind(null, root, lastPendingTime);
  27679. }
  27680. }
  27681. }
  27682. // If we have a work-in-progress fiber, it means there's still work to do
  27683. // in this root.
  27684. if (workInProgress !== null) {
  27685. var prevExecutionContext = executionContext;
  27686. executionContext |= RenderContext;
  27687. var prevDispatcher = ReactCurrentDispatcher.current;
  27688. if (prevDispatcher === null) {
  27689. // The React isomorphic package does not include a default dispatcher.
  27690. // Instead the first renderer will lazily attach one, in order to give
  27691. // nicer error messages.
  27692. prevDispatcher = ContextOnlyDispatcher;
  27693. }
  27694. ReactCurrentDispatcher.current = ContextOnlyDispatcher;
  27695. var prevInteractions = null;
  27696. if (enableSchedulerTracing) {
  27697. prevInteractions = tracing.__interactionsRef.current;
  27698. tracing.__interactionsRef.current = root.memoizedInteractions;
  27699. }
  27700. startWorkLoopTimer(workInProgress);
  27701. // TODO: Fork renderRoot into renderRootSync and renderRootAsync
  27702. if (isSync) {
  27703. if (expirationTime !== Sync) {
  27704. // An async update expired. There may be other expired updates on
  27705. // this root. We should render all the expired work in a
  27706. // single batch.
  27707. var currentTime = requestCurrentTime();
  27708. if (currentTime < expirationTime) {
  27709. // Restart at the current time.
  27710. executionContext = prevExecutionContext;
  27711. resetContextDependencies();
  27712. ReactCurrentDispatcher.current = prevDispatcher;
  27713. if (enableSchedulerTracing) {
  27714. tracing.__interactionsRef.current = prevInteractions;
  27715. }
  27716. return renderRoot.bind(null, root, currentTime);
  27717. }
  27718. }
  27719. } else {
  27720. // Since we know we're in a React event, we can clear the current
  27721. // event time. The next update will compute a new event time.
  27722. currentEventTime = NoWork;
  27723. }
  27724. do {
  27725. try {
  27726. if (isSync) {
  27727. workLoopSync();
  27728. } else {
  27729. workLoop();
  27730. }
  27731. break;
  27732. } catch (thrownValue) {
  27733. // Reset module-level state that was set during the render phase.
  27734. resetContextDependencies();
  27735. resetHooks();
  27736. var sourceFiber = workInProgress;
  27737. if (sourceFiber === null || sourceFiber.return === null) {
  27738. // Expected to be working on a non-root fiber. This is a fatal error
  27739. // because there's no ancestor that can handle it; the root is
  27740. // supposed to capture all errors that weren't caught by an error
  27741. // boundary.
  27742. prepareFreshStack(root, expirationTime);
  27743. executionContext = prevExecutionContext;
  27744. throw thrownValue;
  27745. }
  27746. if (enableProfilerTimer && sourceFiber.mode & ProfileMode) {
  27747. // Record the time spent rendering before an error was thrown. This
  27748. // avoids inaccurate Profiler durations in the case of a
  27749. // suspended render.
  27750. stopProfilerTimerIfRunningAndRecordDelta(sourceFiber, true);
  27751. }
  27752. var returnFiber = sourceFiber.return;
  27753. throwException(root, returnFiber, sourceFiber, thrownValue, renderExpirationTime);
  27754. workInProgress = completeUnitOfWork(sourceFiber);
  27755. }
  27756. } while (true);
  27757. executionContext = prevExecutionContext;
  27758. resetContextDependencies();
  27759. ReactCurrentDispatcher.current = prevDispatcher;
  27760. if (enableSchedulerTracing) {
  27761. tracing.__interactionsRef.current = prevInteractions;
  27762. }
  27763. if (workInProgress !== null) {
  27764. // There's still work left over. Return a continuation.
  27765. stopInterruptedWorkLoopTimer();
  27766. if (expirationTime !== Sync) {
  27767. startRequestCallbackTimer();
  27768. }
  27769. return renderRoot.bind(null, root, expirationTime);
  27770. }
  27771. }
  27772. // We now have a consistent tree. The next step is either to commit it, or, if
  27773. // something suspended, wait to commit it after a timeout.
  27774. stopFinishedWorkLoopTimer();
  27775. root.finishedWork = root.current.alternate;
  27776. root.finishedExpirationTime = expirationTime;
  27777. var isLocked = resolveLocksOnRoot(root, expirationTime);
  27778. if (isLocked) {
  27779. // This root has a lock that prevents it from committing. Exit. If we begin
  27780. // work on the root again, without any intervening updates, it will finish
  27781. // without doing additional work.
  27782. return null;
  27783. }
  27784. // Set this to null to indicate there's no in-progress render.
  27785. workInProgressRoot = null;
  27786. switch (workInProgressRootExitStatus) {
  27787. case RootIncomplete:
  27788. {
  27789. (function () {
  27790. {
  27791. {
  27792. throw ReactError(Error('Should have a work-in-progress.'));
  27793. }
  27794. }
  27795. })();
  27796. }
  27797. // Flow knows about invariant, so it complains if I add a break statement,
  27798. // but eslint doesn't know about invariant, so it complains if I do.
  27799. // eslint-disable-next-line no-fallthrough
  27800. case RootErrored:
  27801. {
  27802. // An error was thrown. First check if there is lower priority work
  27803. // scheduled on this root.
  27804. var _lastPendingTime = root.lastPendingTime;
  27805. if (_lastPendingTime < expirationTime) {
  27806. // There's lower priority work. Before raising the error, try rendering
  27807. // at the lower priority to see if it fixes it. Use a continuation to
  27808. // maintain the existing priority and position in the queue.
  27809. return renderRoot.bind(null, root, _lastPendingTime);
  27810. }
  27811. if (!isSync) {
  27812. // If we're rendering asynchronously, it's possible the error was
  27813. // caused by tearing due to a mutation during an event. Try rendering
  27814. // one more time without yiedling to events.
  27815. prepareFreshStack(root, expirationTime);
  27816. scheduleSyncCallback(renderRoot.bind(null, root, expirationTime));
  27817. return null;
  27818. }
  27819. // If we're already rendering synchronously, commit the root in its
  27820. // errored state.
  27821. return commitRoot.bind(null, root);
  27822. }
  27823. case RootSuspended:
  27824. {
  27825. flushSuspensePriorityWarningInDEV();
  27826. // We have an acceptable loading state. We need to figure out if we should
  27827. // immediately commit it or wait a bit.
  27828. // If we have processed new updates during this render, we may now have a
  27829. // new loading state ready. We want to ensure that we commit that as soon as
  27830. // possible.
  27831. var hasNotProcessedNewUpdates = workInProgressRootLatestProcessedExpirationTime === Sync;
  27832. if (hasNotProcessedNewUpdates && !isSync &&
  27833. // do not delay if we're inside an act() scope
  27834. !( true && flushSuspenseFallbacksInTests && IsThisRendererActing.current)) {
  27835. // If we have not processed any new updates during this pass, then this is
  27836. // either a retry of an existing fallback state or a hidden tree.
  27837. // Hidden trees shouldn't be batched with other work and after that's
  27838. // fixed it can only be a retry.
  27839. // We're going to throttle committing retries so that we don't show too
  27840. // many loading states too quickly.
  27841. var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now();
  27842. // Don't bother with a very short suspense time.
  27843. if (msUntilTimeout > 10) {
  27844. if (workInProgressRootHasPendingPing) {
  27845. // This render was pinged but we didn't get to restart earlier so try
  27846. // restarting now instead.
  27847. prepareFreshStack(root, expirationTime);
  27848. return renderRoot.bind(null, root, expirationTime);
  27849. }
  27850. var _lastPendingTime2 = root.lastPendingTime;
  27851. if (_lastPendingTime2 < expirationTime) {
  27852. // There's lower priority work. It might be unsuspended. Try rendering
  27853. // at that level.
  27854. return renderRoot.bind(null, root, _lastPendingTime2);
  27855. }
  27856. // The render is suspended, it hasn't timed out, and there's no lower
  27857. // priority work to do. Instead of committing the fallback
  27858. // immediately, wait for more data to arrive.
  27859. root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), msUntilTimeout);
  27860. return null;
  27861. }
  27862. }
  27863. // The work expired. Commit immediately.
  27864. return commitRoot.bind(null, root);
  27865. }
  27866. case RootSuspendedWithDelay:
  27867. {
  27868. flushSuspensePriorityWarningInDEV();
  27869. if (!isSync &&
  27870. // do not delay if we're inside an act() scope
  27871. !( true && flushSuspenseFallbacksInTests && IsThisRendererActing.current)) {
  27872. // We're suspended in a state that should be avoided. We'll try to avoid committing
  27873. // it for as long as the timeouts let us.
  27874. if (workInProgressRootHasPendingPing) {
  27875. // This render was pinged but we didn't get to restart earlier so try
  27876. // restarting now instead.
  27877. prepareFreshStack(root, expirationTime);
  27878. return renderRoot.bind(null, root, expirationTime);
  27879. }
  27880. var _lastPendingTime3 = root.lastPendingTime;
  27881. if (_lastPendingTime3 < expirationTime) {
  27882. // There's lower priority work. It might be unsuspended. Try rendering
  27883. // at that level immediately.
  27884. return renderRoot.bind(null, root, _lastPendingTime3);
  27885. }
  27886. var _msUntilTimeout = void 0;
  27887. if (workInProgressRootLatestSuspenseTimeout !== Sync) {
  27888. // We have processed a suspense config whose expiration time we can use as
  27889. // the timeout.
  27890. _msUntilTimeout = expirationTimeToMs(workInProgressRootLatestSuspenseTimeout) - now();
  27891. } else if (workInProgressRootLatestProcessedExpirationTime === Sync) {
  27892. // This should never normally happen because only new updates cause
  27893. // delayed states, so we should have processed something. However,
  27894. // this could also happen in an offscreen tree.
  27895. _msUntilTimeout = 0;
  27896. } else {
  27897. // If we don't have a suspense config, we're going to use a heuristic to
  27898. var eventTimeMs = inferTimeFromExpirationTime(workInProgressRootLatestProcessedExpirationTime);
  27899. var currentTimeMs = now();
  27900. var timeUntilExpirationMs = expirationTimeToMs(expirationTime) - currentTimeMs;
  27901. var timeElapsed = currentTimeMs - eventTimeMs;
  27902. if (timeElapsed < 0) {
  27903. // We get this wrong some time since we estimate the time.
  27904. timeElapsed = 0;
  27905. }
  27906. _msUntilTimeout = jnd(timeElapsed) - timeElapsed;
  27907. // Clamp the timeout to the expiration time.
  27908. // TODO: Once the event time is exact instead of inferred from expiration time
  27909. // we don't need this.
  27910. if (timeUntilExpirationMs < _msUntilTimeout) {
  27911. _msUntilTimeout = timeUntilExpirationMs;
  27912. }
  27913. }
  27914. // Don't bother with a very short suspense time.
  27915. if (_msUntilTimeout > 10) {
  27916. // The render is suspended, it hasn't timed out, and there's no lower
  27917. // priority work to do. Instead of committing the fallback
  27918. // immediately, wait for more data to arrive.
  27919. root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), _msUntilTimeout);
  27920. return null;
  27921. }
  27922. }
  27923. // The work expired. Commit immediately.
  27924. return commitRoot.bind(null, root);
  27925. }
  27926. case RootCompleted:
  27927. {
  27928. // The work completed. Ready to commit.
  27929. if (!isSync &&
  27930. // do not delay if we're inside an act() scope
  27931. !( true && flushSuspenseFallbacksInTests && IsThisRendererActing.current) && workInProgressRootLatestProcessedExpirationTime !== Sync && workInProgressRootCanSuspendUsingConfig !== null) {
  27932. // If we have exceeded the minimum loading delay, which probably
  27933. // means we have shown a spinner already, we might have to suspend
  27934. // a bit longer to ensure that the spinner is shown for enough time.
  27935. var _msUntilTimeout2 = computeMsUntilSuspenseLoadingDelay(workInProgressRootLatestProcessedExpirationTime, expirationTime, workInProgressRootCanSuspendUsingConfig);
  27936. if (_msUntilTimeout2 > 10) {
  27937. root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), _msUntilTimeout2);
  27938. return null;
  27939. }
  27940. }
  27941. return commitRoot.bind(null, root);
  27942. }
  27943. default:
  27944. {
  27945. (function () {
  27946. {
  27947. {
  27948. throw ReactError(Error('Unknown root exit status.'));
  27949. }
  27950. }
  27951. })();
  27952. }
  27953. }
  27954. }
  27955. function markCommitTimeOfFallback() {
  27956. globalMostRecentFallbackTime = now();
  27957. }
  27958. function markRenderEventTimeAndConfig(expirationTime, suspenseConfig) {
  27959. if (expirationTime < workInProgressRootLatestProcessedExpirationTime && expirationTime > Never) {
  27960. workInProgressRootLatestProcessedExpirationTime = expirationTime;
  27961. }
  27962. if (suspenseConfig !== null) {
  27963. if (expirationTime < workInProgressRootLatestSuspenseTimeout && expirationTime > Never) {
  27964. workInProgressRootLatestSuspenseTimeout = expirationTime;
  27965. // Most of the time we only have one config and getting wrong is not bad.
  27966. workInProgressRootCanSuspendUsingConfig = suspenseConfig;
  27967. }
  27968. }
  27969. }
  27970. function renderDidSuspend() {
  27971. if (workInProgressRootExitStatus === RootIncomplete) {
  27972. workInProgressRootExitStatus = RootSuspended;
  27973. }
  27974. }
  27975. function renderDidSuspendDelayIfPossible() {
  27976. if (workInProgressRootExitStatus === RootIncomplete || workInProgressRootExitStatus === RootSuspended) {
  27977. workInProgressRootExitStatus = RootSuspendedWithDelay;
  27978. }
  27979. }
  27980. function renderDidError() {
  27981. if (workInProgressRootExitStatus !== RootCompleted) {
  27982. workInProgressRootExitStatus = RootErrored;
  27983. }
  27984. }
  27985. // Called during render to determine if anything has suspended.
  27986. // Returns false if we're not sure.
  27987. function renderHasNotSuspendedYet() {
  27988. // If something errored or completed, we can't really be sure,
  27989. // so those are false.
  27990. return workInProgressRootExitStatus === RootIncomplete;
  27991. }
  27992. function inferTimeFromExpirationTime(expirationTime) {
  27993. // We don't know exactly when the update was scheduled, but we can infer an
  27994. // approximate start time from the expiration time.
  27995. var earliestExpirationTimeMs = expirationTimeToMs(expirationTime);
  27996. return earliestExpirationTimeMs - LOW_PRIORITY_EXPIRATION;
  27997. }
  27998. function inferTimeFromExpirationTimeWithSuspenseConfig(expirationTime, suspenseConfig) {
  27999. // We don't know exactly when the update was scheduled, but we can infer an
  28000. // approximate start time from the expiration time by subtracting the timeout
  28001. // that was added to the event time.
  28002. var earliestExpirationTimeMs = expirationTimeToMs(expirationTime);
  28003. return earliestExpirationTimeMs - (suspenseConfig.timeoutMs | 0 || LOW_PRIORITY_EXPIRATION);
  28004. }
  28005. function workLoopSync() {
  28006. // Already timed out, so perform work without checking if we need to yield.
  28007. while (workInProgress !== null) {
  28008. workInProgress = performUnitOfWork(workInProgress);
  28009. }
  28010. }
  28011. function workLoop() {
  28012. // Perform work until Scheduler asks us to yield
  28013. while (workInProgress !== null && !shouldYield()) {
  28014. workInProgress = performUnitOfWork(workInProgress);
  28015. }
  28016. }
  28017. function performUnitOfWork(unitOfWork) {
  28018. // The current, flushed, state of this fiber is the alternate. Ideally
  28019. // nothing should rely on this, but relying on it here means that we don't
  28020. // need an additional field on the work in progress.
  28021. var current$$1 = unitOfWork.alternate;
  28022. startWorkTimer(unitOfWork);
  28023. setCurrentFiber(unitOfWork);
  28024. var next = void 0;
  28025. if (enableProfilerTimer && (unitOfWork.mode & ProfileMode) !== NoMode) {
  28026. startProfilerTimer(unitOfWork);
  28027. next = beginWork$$1(current$$1, unitOfWork, renderExpirationTime);
  28028. stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, true);
  28029. } else {
  28030. next = beginWork$$1(current$$1, unitOfWork, renderExpirationTime);
  28031. }
  28032. resetCurrentFiber();
  28033. unitOfWork.memoizedProps = unitOfWork.pendingProps;
  28034. if (next === null) {
  28035. // If this doesn't spawn new work, complete the current work.
  28036. next = completeUnitOfWork(unitOfWork);
  28037. }
  28038. ReactCurrentOwner$2.current = null;
  28039. return next;
  28040. }
  28041. function completeUnitOfWork(unitOfWork) {
  28042. // Attempt to complete the current unit of work, then move to the next
  28043. // sibling. If there are no more siblings, return to the parent fiber.
  28044. workInProgress = unitOfWork;
  28045. do {
  28046. // The current, flushed, state of this fiber is the alternate. Ideally
  28047. // nothing should rely on this, but relying on it here means that we don't
  28048. // need an additional field on the work in progress.
  28049. var current$$1 = workInProgress.alternate;
  28050. var returnFiber = workInProgress.return;
  28051. // Check if the work completed or if something threw.
  28052. if ((workInProgress.effectTag & Incomplete) === NoEffect) {
  28053. setCurrentFiber(workInProgress);
  28054. var next = void 0;
  28055. if (!enableProfilerTimer || (workInProgress.mode & ProfileMode) === NoMode) {
  28056. next = completeWork(current$$1, workInProgress, renderExpirationTime);
  28057. } else {
  28058. startProfilerTimer(workInProgress);
  28059. next = completeWork(current$$1, workInProgress, renderExpirationTime);
  28060. // Update render duration assuming we didn't error.
  28061. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);
  28062. }
  28063. stopWorkTimer(workInProgress);
  28064. resetCurrentFiber();
  28065. resetChildExpirationTime(workInProgress);
  28066. if (next !== null) {
  28067. // Completing this fiber spawned new work. Work on that next.
  28068. return next;
  28069. }
  28070. if (returnFiber !== null &&
  28071. // Do not append effects to parents if a sibling failed to complete
  28072. (returnFiber.effectTag & Incomplete) === NoEffect) {
  28073. // Append all the effects of the subtree and this fiber onto the effect
  28074. // list of the parent. The completion order of the children affects the
  28075. // side-effect order.
  28076. if (returnFiber.firstEffect === null) {
  28077. returnFiber.firstEffect = workInProgress.firstEffect;
  28078. }
  28079. if (workInProgress.lastEffect !== null) {
  28080. if (returnFiber.lastEffect !== null) {
  28081. returnFiber.lastEffect.nextEffect = workInProgress.firstEffect;
  28082. }
  28083. returnFiber.lastEffect = workInProgress.lastEffect;
  28084. }
  28085. // If this fiber had side-effects, we append it AFTER the children's
  28086. // side-effects. We can perform certain side-effects earlier if needed,
  28087. // by doing multiple passes over the effect list. We don't want to
  28088. // schedule our own side-effect on our own list because if end up
  28089. // reusing children we'll schedule this effect onto itself since we're
  28090. // at the end.
  28091. var effectTag = workInProgress.effectTag;
  28092. // Skip both NoWork and PerformedWork tags when creating the effect
  28093. // list. PerformedWork effect is read by React DevTools but shouldn't be
  28094. // committed.
  28095. if (effectTag > PerformedWork) {
  28096. if (returnFiber.lastEffect !== null) {
  28097. returnFiber.lastEffect.nextEffect = workInProgress;
  28098. } else {
  28099. returnFiber.firstEffect = workInProgress;
  28100. }
  28101. returnFiber.lastEffect = workInProgress;
  28102. }
  28103. }
  28104. } else {
  28105. // This fiber did not complete because something threw. Pop values off
  28106. // the stack without entering the complete phase. If this is a boundary,
  28107. // capture values if possible.
  28108. var _next = unwindWork(workInProgress, renderExpirationTime);
  28109. // Because this fiber did not complete, don't reset its expiration time.
  28110. if (enableProfilerTimer && (workInProgress.mode & ProfileMode) !== NoMode) {
  28111. // Record the render duration for the fiber that errored.
  28112. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);
  28113. // Include the time spent working on failed children before continuing.
  28114. var actualDuration = workInProgress.actualDuration;
  28115. var child = workInProgress.child;
  28116. while (child !== null) {
  28117. actualDuration += child.actualDuration;
  28118. child = child.sibling;
  28119. }
  28120. workInProgress.actualDuration = actualDuration;
  28121. }
  28122. if (_next !== null) {
  28123. // If completing this work spawned new work, do that next. We'll come
  28124. // back here again.
  28125. // Since we're restarting, remove anything that is not a host effect
  28126. // from the effect tag.
  28127. // TODO: The name stopFailedWorkTimer is misleading because Suspense
  28128. // also captures and restarts.
  28129. stopFailedWorkTimer(workInProgress);
  28130. _next.effectTag &= HostEffectMask;
  28131. return _next;
  28132. }
  28133. stopWorkTimer(workInProgress);
  28134. if (returnFiber !== null) {
  28135. // Mark the parent fiber as incomplete and clear its effect list.
  28136. returnFiber.firstEffect = returnFiber.lastEffect = null;
  28137. returnFiber.effectTag |= Incomplete;
  28138. }
  28139. }
  28140. var siblingFiber = workInProgress.sibling;
  28141. if (siblingFiber !== null) {
  28142. // If there is more work to do in this returnFiber, do that next.
  28143. return siblingFiber;
  28144. }
  28145. // Otherwise, return to the parent
  28146. workInProgress = returnFiber;
  28147. } while (workInProgress !== null);
  28148. // We've reached the root.
  28149. if (workInProgressRootExitStatus === RootIncomplete) {
  28150. workInProgressRootExitStatus = RootCompleted;
  28151. }
  28152. return null;
  28153. }
  28154. function resetChildExpirationTime(completedWork) {
  28155. if (renderExpirationTime !== Never && completedWork.childExpirationTime === Never) {
  28156. // The children of this component are hidden. Don't bubble their
  28157. // expiration times.
  28158. return;
  28159. }
  28160. var newChildExpirationTime = NoWork;
  28161. // Bubble up the earliest expiration time.
  28162. if (enableProfilerTimer && (completedWork.mode & ProfileMode) !== NoMode) {
  28163. // In profiling mode, resetChildExpirationTime is also used to reset
  28164. // profiler durations.
  28165. var actualDuration = completedWork.actualDuration;
  28166. var treeBaseDuration = completedWork.selfBaseDuration;
  28167. // When a fiber is cloned, its actualDuration is reset to 0. This value will
  28168. // only be updated if work is done on the fiber (i.e. it doesn't bailout).
  28169. // When work is done, it should bubble to the parent's actualDuration. If
  28170. // the fiber has not been cloned though, (meaning no work was done), then
  28171. // this value will reflect the amount of time spent working on a previous
  28172. // render. In that case it should not bubble. We determine whether it was
  28173. // cloned by comparing the child pointer.
  28174. var shouldBubbleActualDurations = completedWork.alternate === null || completedWork.child !== completedWork.alternate.child;
  28175. var child = completedWork.child;
  28176. while (child !== null) {
  28177. var childUpdateExpirationTime = child.expirationTime;
  28178. var childChildExpirationTime = child.childExpirationTime;
  28179. if (childUpdateExpirationTime > newChildExpirationTime) {
  28180. newChildExpirationTime = childUpdateExpirationTime;
  28181. }
  28182. if (childChildExpirationTime > newChildExpirationTime) {
  28183. newChildExpirationTime = childChildExpirationTime;
  28184. }
  28185. if (shouldBubbleActualDurations) {
  28186. actualDuration += child.actualDuration;
  28187. }
  28188. treeBaseDuration += child.treeBaseDuration;
  28189. child = child.sibling;
  28190. }
  28191. completedWork.actualDuration = actualDuration;
  28192. completedWork.treeBaseDuration = treeBaseDuration;
  28193. } else {
  28194. var _child = completedWork.child;
  28195. while (_child !== null) {
  28196. var _childUpdateExpirationTime = _child.expirationTime;
  28197. var _childChildExpirationTime = _child.childExpirationTime;
  28198. if (_childUpdateExpirationTime > newChildExpirationTime) {
  28199. newChildExpirationTime = _childUpdateExpirationTime;
  28200. }
  28201. if (_childChildExpirationTime > newChildExpirationTime) {
  28202. newChildExpirationTime = _childChildExpirationTime;
  28203. }
  28204. _child = _child.sibling;
  28205. }
  28206. }
  28207. completedWork.childExpirationTime = newChildExpirationTime;
  28208. }
  28209. function commitRoot(root) {
  28210. var renderPriorityLevel = getCurrentPriorityLevel();
  28211. runWithPriority$2(ImmediatePriority, commitRootImpl.bind(null, root, renderPriorityLevel));
  28212. // If there are passive effects, schedule a callback to flush them. This goes
  28213. // outside commitRootImpl so that it inherits the priority of the render.
  28214. if (rootWithPendingPassiveEffects !== null) {
  28215. scheduleCallback(NormalPriority, function () {
  28216. flushPassiveEffects();
  28217. return null;
  28218. });
  28219. }
  28220. return null;
  28221. }
  28222. function commitRootImpl(root, renderPriorityLevel) {
  28223. flushPassiveEffects();
  28224. flushRenderPhaseStrictModeWarningsInDEV();
  28225. (function () {
  28226. if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
  28227. {
  28228. throw ReactError(Error('Should not already be working.'));
  28229. }
  28230. }
  28231. })();
  28232. var finishedWork = root.finishedWork;
  28233. var expirationTime = root.finishedExpirationTime;
  28234. if (finishedWork === null) {
  28235. return null;
  28236. }
  28237. root.finishedWork = null;
  28238. root.finishedExpirationTime = NoWork;
  28239. (function () {
  28240. if (!(finishedWork !== root.current)) {
  28241. {
  28242. throw ReactError(Error('Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.'));
  28243. }
  28244. }
  28245. })();
  28246. // commitRoot never returns a continuation; it always finishes synchronously.
  28247. // So we can clear these now to allow a new callback to be scheduled.
  28248. root.callbackNode = null;
  28249. root.callbackExpirationTime = NoWork;
  28250. startCommitTimer();
  28251. // Update the first and last pending times on this root. The new first
  28252. // pending time is whatever is left on the root fiber.
  28253. var updateExpirationTimeBeforeCommit = finishedWork.expirationTime;
  28254. var childExpirationTimeBeforeCommit = finishedWork.childExpirationTime;
  28255. var firstPendingTimeBeforeCommit = childExpirationTimeBeforeCommit > updateExpirationTimeBeforeCommit ? childExpirationTimeBeforeCommit : updateExpirationTimeBeforeCommit;
  28256. root.firstPendingTime = firstPendingTimeBeforeCommit;
  28257. if (firstPendingTimeBeforeCommit < root.lastPendingTime) {
  28258. // This usually means we've finished all the work, but it can also happen
  28259. // when something gets downprioritized during render, like a hidden tree.
  28260. root.lastPendingTime = firstPendingTimeBeforeCommit;
  28261. }
  28262. if (root === workInProgressRoot) {
  28263. // We can reset these now that they are finished.
  28264. workInProgressRoot = null;
  28265. workInProgress = null;
  28266. renderExpirationTime = NoWork;
  28267. } else {}
  28268. // This indicates that the last root we worked on is not the same one that
  28269. // we're committing now. This most commonly happens when a suspended root
  28270. // times out.
  28271. // Get the list of effects.
  28272. var firstEffect = void 0;
  28273. if (finishedWork.effectTag > PerformedWork) {
  28274. // A fiber's effect list consists only of its children, not itself. So if
  28275. // the root has an effect, we need to add it to the end of the list. The
  28276. // resulting list is the set that would belong to the root's parent, if it
  28277. // had one; that is, all the effects in the tree including the root.
  28278. if (finishedWork.lastEffect !== null) {
  28279. finishedWork.lastEffect.nextEffect = finishedWork;
  28280. firstEffect = finishedWork.firstEffect;
  28281. } else {
  28282. firstEffect = finishedWork;
  28283. }
  28284. } else {
  28285. // There is no effect on the root.
  28286. firstEffect = finishedWork.firstEffect;
  28287. }
  28288. if (firstEffect !== null) {
  28289. var prevExecutionContext = executionContext;
  28290. executionContext |= CommitContext;
  28291. var prevInteractions = null;
  28292. if (enableSchedulerTracing) {
  28293. prevInteractions = tracing.__interactionsRef.current;
  28294. tracing.__interactionsRef.current = root.memoizedInteractions;
  28295. }
  28296. // Reset this to null before calling lifecycles
  28297. ReactCurrentOwner$2.current = null;
  28298. // The commit phase is broken into several sub-phases. We do a separate pass
  28299. // of the effect list for each phase: all mutation effects come before all
  28300. // layout effects, and so on.
  28301. // The first phase a "before mutation" phase. We use this phase to read the
  28302. // state of the host tree right before we mutate it. This is where
  28303. // getSnapshotBeforeUpdate is called.
  28304. startCommitSnapshotEffectsTimer();
  28305. prepareForCommit(root.containerInfo);
  28306. nextEffect = firstEffect;
  28307. do {
  28308. {
  28309. invokeGuardedCallback(null, commitBeforeMutationEffects, null);
  28310. if (hasCaughtError()) {
  28311. (function () {
  28312. if (!(nextEffect !== null)) {
  28313. {
  28314. throw ReactError(Error('Should be working on an effect.'));
  28315. }
  28316. }
  28317. })();
  28318. var error = clearCaughtError();
  28319. captureCommitPhaseError(nextEffect, error);
  28320. nextEffect = nextEffect.nextEffect;
  28321. }
  28322. }
  28323. } while (nextEffect !== null);
  28324. stopCommitSnapshotEffectsTimer();
  28325. if (enableProfilerTimer) {
  28326. // Mark the current commit time to be shared by all Profilers in this
  28327. // batch. This enables them to be grouped later.
  28328. recordCommitTime();
  28329. }
  28330. // The next phase is the mutation phase, where we mutate the host tree.
  28331. startCommitHostEffectsTimer();
  28332. nextEffect = firstEffect;
  28333. do {
  28334. {
  28335. invokeGuardedCallback(null, commitMutationEffects, null, renderPriorityLevel);
  28336. if (hasCaughtError()) {
  28337. (function () {
  28338. if (!(nextEffect !== null)) {
  28339. {
  28340. throw ReactError(Error('Should be working on an effect.'));
  28341. }
  28342. }
  28343. })();
  28344. var _error = clearCaughtError();
  28345. captureCommitPhaseError(nextEffect, _error);
  28346. nextEffect = nextEffect.nextEffect;
  28347. }
  28348. }
  28349. } while (nextEffect !== null);
  28350. stopCommitHostEffectsTimer();
  28351. resetAfterCommit(root.containerInfo);
  28352. // The work-in-progress tree is now the current tree. This must come after
  28353. // the mutation phase, so that the previous tree is still current during
  28354. // componentWillUnmount, but before the layout phase, so that the finished
  28355. // work is current during componentDidMount/Update.
  28356. root.current = finishedWork;
  28357. // The next phase is the layout phase, where we call effects that read
  28358. // the host tree after it's been mutated. The idiomatic use case for this is
  28359. // layout, but class component lifecycles also fire here for legacy reasons.
  28360. startCommitLifeCyclesTimer();
  28361. nextEffect = firstEffect;
  28362. do {
  28363. {
  28364. invokeGuardedCallback(null, commitLayoutEffects, null, root, expirationTime);
  28365. if (hasCaughtError()) {
  28366. (function () {
  28367. if (!(nextEffect !== null)) {
  28368. {
  28369. throw ReactError(Error('Should be working on an effect.'));
  28370. }
  28371. }
  28372. })();
  28373. var _error2 = clearCaughtError();
  28374. captureCommitPhaseError(nextEffect, _error2);
  28375. nextEffect = nextEffect.nextEffect;
  28376. }
  28377. }
  28378. } while (nextEffect !== null);
  28379. stopCommitLifeCyclesTimer();
  28380. nextEffect = null;
  28381. // Tell Scheduler to yield at the end of the frame, so the browser has an
  28382. // opportunity to paint.
  28383. requestPaint();
  28384. if (enableSchedulerTracing) {
  28385. tracing.__interactionsRef.current = prevInteractions;
  28386. }
  28387. executionContext = prevExecutionContext;
  28388. } else {
  28389. // No effects.
  28390. root.current = finishedWork;
  28391. // Measure these anyway so the flamegraph explicitly shows that there were
  28392. // no effects.
  28393. // TODO: Maybe there's a better way to report this.
  28394. startCommitSnapshotEffectsTimer();
  28395. stopCommitSnapshotEffectsTimer();
  28396. if (enableProfilerTimer) {
  28397. recordCommitTime();
  28398. }
  28399. startCommitHostEffectsTimer();
  28400. stopCommitHostEffectsTimer();
  28401. startCommitLifeCyclesTimer();
  28402. stopCommitLifeCyclesTimer();
  28403. }
  28404. stopCommitTimer();
  28405. var rootDidHavePassiveEffects = rootDoesHavePassiveEffects;
  28406. if (rootDoesHavePassiveEffects) {
  28407. // This commit has passive effects. Stash a reference to them. But don't
  28408. // schedule a callback until after flushing layout work.
  28409. rootDoesHavePassiveEffects = false;
  28410. rootWithPendingPassiveEffects = root;
  28411. pendingPassiveEffectsExpirationTime = expirationTime;
  28412. pendingPassiveEffectsRenderPriority = renderPriorityLevel;
  28413. } else {
  28414. // We are done with the effect chain at this point so let's clear the
  28415. // nextEffect pointers to assist with GC. If we have passive effects, we'll
  28416. // clear this in flushPassiveEffects.
  28417. nextEffect = firstEffect;
  28418. while (nextEffect !== null) {
  28419. var nextNextEffect = nextEffect.nextEffect;
  28420. nextEffect.nextEffect = null;
  28421. nextEffect = nextNextEffect;
  28422. }
  28423. }
  28424. // Check if there's remaining work on this root
  28425. var remainingExpirationTime = root.firstPendingTime;
  28426. if (remainingExpirationTime !== NoWork) {
  28427. var currentTime = requestCurrentTime();
  28428. var priorityLevel = inferPriorityFromExpirationTime(currentTime, remainingExpirationTime);
  28429. if (enableSchedulerTracing) {
  28430. if (spawnedWorkDuringRender !== null) {
  28431. var expirationTimes = spawnedWorkDuringRender;
  28432. spawnedWorkDuringRender = null;
  28433. for (var i = 0; i < expirationTimes.length; i++) {
  28434. scheduleInteractions(root, expirationTimes[i], root.memoizedInteractions);
  28435. }
  28436. }
  28437. }
  28438. scheduleCallbackForRoot(root, priorityLevel, remainingExpirationTime);
  28439. } else {
  28440. // If there's no remaining work, we can clear the set of already failed
  28441. // error boundaries.
  28442. legacyErrorBoundariesThatAlreadyFailed = null;
  28443. }
  28444. if (enableSchedulerTracing) {
  28445. if (!rootDidHavePassiveEffects) {
  28446. // If there are no passive effects, then we can complete the pending interactions.
  28447. // Otherwise, we'll wait until after the passive effects are flushed.
  28448. // Wait to do this until after remaining work has been scheduled,
  28449. // so that we don't prematurely signal complete for interactions when there's e.g. hidden work.
  28450. finishPendingInteractions(root, expirationTime);
  28451. }
  28452. }
  28453. onCommitRoot(finishedWork.stateNode, expirationTime);
  28454. if (remainingExpirationTime === Sync) {
  28455. // Count the number of times the root synchronously re-renders without
  28456. // finishing. If there are too many, it indicates an infinite update loop.
  28457. if (root === rootWithNestedUpdates) {
  28458. nestedUpdateCount++;
  28459. } else {
  28460. nestedUpdateCount = 0;
  28461. rootWithNestedUpdates = root;
  28462. }
  28463. } else {
  28464. nestedUpdateCount = 0;
  28465. }
  28466. if (hasUncaughtError) {
  28467. hasUncaughtError = false;
  28468. var _error3 = firstUncaughtError;
  28469. firstUncaughtError = null;
  28470. throw _error3;
  28471. }
  28472. if ((executionContext & LegacyUnbatchedContext) !== NoContext) {
  28473. // This is a legacy edge case. We just committed the initial mount of
  28474. // a ReactDOM.render-ed root inside of batchedUpdates. The commit fired
  28475. // synchronously, but layout updates should be deferred until the end
  28476. // of the batch.
  28477. return null;
  28478. }
  28479. // If layout work was scheduled, flush it now.
  28480. flushSyncCallbackQueue();
  28481. return null;
  28482. }
  28483. function commitBeforeMutationEffects() {
  28484. while (nextEffect !== null) {
  28485. if ((nextEffect.effectTag & Snapshot) !== NoEffect) {
  28486. setCurrentFiber(nextEffect);
  28487. recordEffect();
  28488. var current$$1 = nextEffect.alternate;
  28489. commitBeforeMutationLifeCycles(current$$1, nextEffect);
  28490. resetCurrentFiber();
  28491. }
  28492. nextEffect = nextEffect.nextEffect;
  28493. }
  28494. }
  28495. function commitMutationEffects(renderPriorityLevel) {
  28496. // TODO: Should probably move the bulk of this function to commitWork.
  28497. while (nextEffect !== null) {
  28498. setCurrentFiber(nextEffect);
  28499. var effectTag = nextEffect.effectTag;
  28500. if (effectTag & ContentReset) {
  28501. commitResetTextContent(nextEffect);
  28502. }
  28503. if (effectTag & Ref) {
  28504. var current$$1 = nextEffect.alternate;
  28505. if (current$$1 !== null) {
  28506. commitDetachRef(current$$1);
  28507. }
  28508. }
  28509. // The following switch statement is only concerned about placement,
  28510. // updates, and deletions. To avoid needing to add a case for every possible
  28511. // bitmap value, we remove the secondary effects from the effect tag and
  28512. // switch on that value.
  28513. var primaryEffectTag = effectTag & (Placement | Update | Deletion);
  28514. switch (primaryEffectTag) {
  28515. case Placement:
  28516. {
  28517. commitPlacement(nextEffect);
  28518. // Clear the "placement" from effect tag so that we know that this is
  28519. // inserted, before any life-cycles like componentDidMount gets called.
  28520. // TODO: findDOMNode doesn't rely on this any more but isMounted does
  28521. // and isMounted is deprecated anyway so we should be able to kill this.
  28522. nextEffect.effectTag &= ~Placement;
  28523. break;
  28524. }
  28525. case PlacementAndUpdate:
  28526. {
  28527. // Placement
  28528. commitPlacement(nextEffect);
  28529. // Clear the "placement" from effect tag so that we know that this is
  28530. // inserted, before any life-cycles like componentDidMount gets called.
  28531. nextEffect.effectTag &= ~Placement;
  28532. // Update
  28533. var _current = nextEffect.alternate;
  28534. commitWork(_current, nextEffect);
  28535. break;
  28536. }
  28537. case Update:
  28538. {
  28539. var _current2 = nextEffect.alternate;
  28540. commitWork(_current2, nextEffect);
  28541. break;
  28542. }
  28543. case Deletion:
  28544. {
  28545. commitDeletion(nextEffect, renderPriorityLevel);
  28546. break;
  28547. }
  28548. }
  28549. // TODO: Only record a mutation effect if primaryEffectTag is non-zero.
  28550. recordEffect();
  28551. resetCurrentFiber();
  28552. nextEffect = nextEffect.nextEffect;
  28553. }
  28554. }
  28555. function commitLayoutEffects(root, committedExpirationTime) {
  28556. // TODO: Should probably move the bulk of this function to commitWork.
  28557. while (nextEffect !== null) {
  28558. setCurrentFiber(nextEffect);
  28559. var effectTag = nextEffect.effectTag;
  28560. if (effectTag & (Update | Callback)) {
  28561. recordEffect();
  28562. var current$$1 = nextEffect.alternate;
  28563. commitLifeCycles(root, current$$1, nextEffect, committedExpirationTime);
  28564. }
  28565. if (effectTag & Ref) {
  28566. recordEffect();
  28567. commitAttachRef(nextEffect);
  28568. }
  28569. if (effectTag & Passive) {
  28570. rootDoesHavePassiveEffects = true;
  28571. }
  28572. resetCurrentFiber();
  28573. nextEffect = nextEffect.nextEffect;
  28574. }
  28575. }
  28576. function flushPassiveEffects() {
  28577. if (rootWithPendingPassiveEffects === null) {
  28578. return false;
  28579. }
  28580. var root = rootWithPendingPassiveEffects;
  28581. var expirationTime = pendingPassiveEffectsExpirationTime;
  28582. var renderPriorityLevel = pendingPassiveEffectsRenderPriority;
  28583. rootWithPendingPassiveEffects = null;
  28584. pendingPassiveEffectsExpirationTime = NoWork;
  28585. pendingPassiveEffectsRenderPriority = NoPriority;
  28586. var priorityLevel = renderPriorityLevel > NormalPriority ? NormalPriority : renderPriorityLevel;
  28587. return runWithPriority$2(priorityLevel, flushPassiveEffectsImpl.bind(null, root, expirationTime));
  28588. }
  28589. function flushPassiveEffectsImpl(root, expirationTime) {
  28590. var prevInteractions = null;
  28591. if (enableSchedulerTracing) {
  28592. prevInteractions = tracing.__interactionsRef.current;
  28593. tracing.__interactionsRef.current = root.memoizedInteractions;
  28594. }
  28595. (function () {
  28596. if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
  28597. {
  28598. throw ReactError(Error('Cannot flush passive effects while already rendering.'));
  28599. }
  28600. }
  28601. })();
  28602. var prevExecutionContext = executionContext;
  28603. executionContext |= CommitContext;
  28604. // Note: This currently assumes there are no passive effects on the root
  28605. // fiber, because the root is not part of its own effect list. This could
  28606. // change in the future.
  28607. var effect = root.current.firstEffect;
  28608. while (effect !== null) {
  28609. {
  28610. setCurrentFiber(effect);
  28611. invokeGuardedCallback(null, commitPassiveHookEffects, null, effect);
  28612. if (hasCaughtError()) {
  28613. (function () {
  28614. if (!(effect !== null)) {
  28615. {
  28616. throw ReactError(Error('Should be working on an effect.'));
  28617. }
  28618. }
  28619. })();
  28620. var error = clearCaughtError();
  28621. captureCommitPhaseError(effect, error);
  28622. }
  28623. resetCurrentFiber();
  28624. }
  28625. var nextNextEffect = effect.nextEffect;
  28626. // Remove nextEffect pointer to assist GC
  28627. effect.nextEffect = null;
  28628. effect = nextNextEffect;
  28629. }
  28630. if (enableSchedulerTracing) {
  28631. tracing.__interactionsRef.current = prevInteractions;
  28632. finishPendingInteractions(root, expirationTime);
  28633. }
  28634. executionContext = prevExecutionContext;
  28635. flushSyncCallbackQueue();
  28636. // If additional passive effects were scheduled, increment a counter. If this
  28637. // exceeds the limit, we'll fire a warning.
  28638. nestedPassiveUpdateCount = rootWithPendingPassiveEffects === null ? 0 : nestedPassiveUpdateCount + 1;
  28639. return true;
  28640. }
  28641. function isAlreadyFailedLegacyErrorBoundary(instance) {
  28642. return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance);
  28643. }
  28644. function markLegacyErrorBoundaryAsFailed(instance) {
  28645. if (legacyErrorBoundariesThatAlreadyFailed === null) {
  28646. legacyErrorBoundariesThatAlreadyFailed = new Set([instance]);
  28647. } else {
  28648. legacyErrorBoundariesThatAlreadyFailed.add(instance);
  28649. }
  28650. }
  28651. function prepareToThrowUncaughtError(error) {
  28652. if (!hasUncaughtError) {
  28653. hasUncaughtError = true;
  28654. firstUncaughtError = error;
  28655. }
  28656. }
  28657. var onUncaughtError = prepareToThrowUncaughtError;
  28658. function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
  28659. var errorInfo = createCapturedValue(error, sourceFiber);
  28660. var update = createRootErrorUpdate(rootFiber, errorInfo, Sync);
  28661. enqueueUpdate(rootFiber, update);
  28662. var root = markUpdateTimeFromFiberToRoot(rootFiber, Sync);
  28663. if (root !== null) {
  28664. scheduleCallbackForRoot(root, ImmediatePriority, Sync);
  28665. }
  28666. }
  28667. function captureCommitPhaseError(sourceFiber, error) {
  28668. if (sourceFiber.tag === HostRoot) {
  28669. // Error was thrown at the root. There is no parent, so the root
  28670. // itself should capture it.
  28671. captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);
  28672. return;
  28673. }
  28674. var fiber = sourceFiber.return;
  28675. while (fiber !== null) {
  28676. if (fiber.tag === HostRoot) {
  28677. captureCommitPhaseErrorOnRoot(fiber, sourceFiber, error);
  28678. return;
  28679. } else if (fiber.tag === ClassComponent) {
  28680. var ctor = fiber.type;
  28681. var instance = fiber.stateNode;
  28682. if (typeof ctor.getDerivedStateFromError === 'function' || typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance)) {
  28683. var errorInfo = createCapturedValue(error, sourceFiber);
  28684. var update = createClassErrorUpdate(fiber, errorInfo,
  28685. // TODO: This is always sync
  28686. Sync);
  28687. enqueueUpdate(fiber, update);
  28688. var root = markUpdateTimeFromFiberToRoot(fiber, Sync);
  28689. if (root !== null) {
  28690. scheduleCallbackForRoot(root, ImmediatePriority, Sync);
  28691. }
  28692. return;
  28693. }
  28694. }
  28695. fiber = fiber.return;
  28696. }
  28697. }
  28698. function pingSuspendedRoot(root, thenable, suspendedTime) {
  28699. var pingCache = root.pingCache;
  28700. if (pingCache !== null) {
  28701. // The thenable resolved, so we no longer need to memoize, because it will
  28702. // never be thrown again.
  28703. pingCache.delete(thenable);
  28704. }
  28705. if (workInProgressRoot === root && renderExpirationTime === suspendedTime) {
  28706. // Received a ping at the same priority level at which we're currently
  28707. // rendering. We might want to restart this render. This should mirror
  28708. // the logic of whether or not a root suspends once it completes.
  28709. // TODO: If we're rendering sync either due to Sync, Batched or expired,
  28710. // we should probably never restart.
  28711. // If we're suspended with delay, we'll always suspend so we can always
  28712. // restart. If we're suspended without any updates, it might be a retry.
  28713. // If it's early in the retry we can restart. We can't know for sure
  28714. // whether we'll eventually process an update during this render pass,
  28715. // but it's somewhat unlikely that we get to a ping before that, since
  28716. // getting to the root most update is usually very fast.
  28717. if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && workInProgressRootLatestProcessedExpirationTime === Sync && now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) {
  28718. // Restart from the root. Don't need to schedule a ping because
  28719. // we're already working on this tree.
  28720. prepareFreshStack(root, renderExpirationTime);
  28721. } else {
  28722. // Even though we can't restart right now, we might get an
  28723. // opportunity later. So we mark this render as having a ping.
  28724. workInProgressRootHasPendingPing = true;
  28725. }
  28726. return;
  28727. }
  28728. var lastPendingTime = root.lastPendingTime;
  28729. if (lastPendingTime < suspendedTime) {
  28730. // The root is no longer suspended at this time.
  28731. return;
  28732. }
  28733. var pingTime = root.pingTime;
  28734. if (pingTime !== NoWork && pingTime < suspendedTime) {
  28735. // There's already a lower priority ping scheduled.
  28736. return;
  28737. }
  28738. // Mark the time at which this ping was scheduled.
  28739. root.pingTime = suspendedTime;
  28740. if (root.finishedExpirationTime === suspendedTime) {
  28741. // If there's a pending fallback waiting to commit, throw it away.
  28742. root.finishedExpirationTime = NoWork;
  28743. root.finishedWork = null;
  28744. }
  28745. var currentTime = requestCurrentTime();
  28746. var priorityLevel = inferPriorityFromExpirationTime(currentTime, suspendedTime);
  28747. scheduleCallbackForRoot(root, priorityLevel, suspendedTime);
  28748. }
  28749. function retryTimedOutBoundary(boundaryFiber) {
  28750. // The boundary fiber (a Suspense component or SuspenseList component)
  28751. // previously was rendered in its fallback state. One of the promises that
  28752. // suspended it has resolved, which means at least part of the tree was
  28753. // likely unblocked. Try rendering again, at a new expiration time.
  28754. var currentTime = requestCurrentTime();
  28755. var suspenseConfig = null; // Retries don't carry over the already committed update.
  28756. var retryTime = computeExpirationForFiber(currentTime, boundaryFiber, suspenseConfig);
  28757. // TODO: Special case idle priority?
  28758. var priorityLevel = inferPriorityFromExpirationTime(currentTime, retryTime);
  28759. var root = markUpdateTimeFromFiberToRoot(boundaryFiber, retryTime);
  28760. if (root !== null) {
  28761. scheduleCallbackForRoot(root, priorityLevel, retryTime);
  28762. }
  28763. }
  28764. function resolveRetryThenable(boundaryFiber, thenable) {
  28765. var retryCache = void 0;
  28766. if (enableSuspenseServerRenderer) {
  28767. switch (boundaryFiber.tag) {
  28768. case SuspenseComponent:
  28769. retryCache = boundaryFiber.stateNode;
  28770. break;
  28771. case DehydratedSuspenseComponent:
  28772. retryCache = boundaryFiber.memoizedState;
  28773. break;
  28774. default:
  28775. (function () {
  28776. {
  28777. {
  28778. throw ReactError(Error('Pinged unknown suspense boundary type. This is probably a bug in React.'));
  28779. }
  28780. }
  28781. })();
  28782. }
  28783. } else {
  28784. retryCache = boundaryFiber.stateNode;
  28785. }
  28786. if (retryCache !== null) {
  28787. // The thenable resolved, so we no longer need to memoize, because it will
  28788. // never be thrown again.
  28789. retryCache.delete(thenable);
  28790. }
  28791. retryTimedOutBoundary(boundaryFiber);
  28792. }
  28793. // Computes the next Just Noticeable Difference (JND) boundary.
  28794. // The theory is that a person can't tell the difference between small differences in time.
  28795. // Therefore, if we wait a bit longer than necessary that won't translate to a noticeable
  28796. // difference in the experience. However, waiting for longer might mean that we can avoid
  28797. // showing an intermediate loading state. The longer we have already waited, the harder it
  28798. // is to tell small differences in time. Therefore, the longer we've already waited,
  28799. // the longer we can wait additionally. At some point we have to give up though.
  28800. // We pick a train model where the next boundary commits at a consistent schedule.
  28801. // These particular numbers are vague estimates. We expect to adjust them based on research.
  28802. function jnd(timeElapsed) {
  28803. return timeElapsed < 120 ? 120 : timeElapsed < 480 ? 480 : timeElapsed < 1080 ? 1080 : timeElapsed < 1920 ? 1920 : timeElapsed < 3000 ? 3000 : timeElapsed < 4320 ? 4320 : ceil(timeElapsed / 1960) * 1960;
  28804. }
  28805. function computeMsUntilSuspenseLoadingDelay(mostRecentEventTime, committedExpirationTime, suspenseConfig) {
  28806. var busyMinDurationMs = suspenseConfig.busyMinDurationMs | 0;
  28807. if (busyMinDurationMs <= 0) {
  28808. return 0;
  28809. }
  28810. var busyDelayMs = suspenseConfig.busyDelayMs | 0;
  28811. // Compute the time until this render pass would expire.
  28812. var currentTimeMs = now();
  28813. var eventTimeMs = inferTimeFromExpirationTimeWithSuspenseConfig(mostRecentEventTime, suspenseConfig);
  28814. var timeElapsed = currentTimeMs - eventTimeMs;
  28815. if (timeElapsed <= busyDelayMs) {
  28816. // If we haven't yet waited longer than the initial delay, we don't
  28817. // have to wait any additional time.
  28818. return 0;
  28819. }
  28820. var msUntilTimeout = busyDelayMs + busyMinDurationMs - timeElapsed;
  28821. // This is the value that is passed to `setTimeout`.
  28822. return msUntilTimeout;
  28823. }
  28824. function checkForNestedUpdates() {
  28825. if (nestedUpdateCount > NESTED_UPDATE_LIMIT) {
  28826. nestedUpdateCount = 0;
  28827. rootWithNestedUpdates = null;
  28828. (function () {
  28829. {
  28830. {
  28831. throw ReactError(Error('Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.'));
  28832. }
  28833. }
  28834. })();
  28835. }
  28836. {
  28837. if (nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT) {
  28838. nestedPassiveUpdateCount = 0;
  28839. warning$1(false, 'Maximum update depth exceeded. This can happen when a component ' + "calls setState inside useEffect, but useEffect either doesn't " + 'have a dependency array, or one of the dependencies changes on ' + 'every render.');
  28840. }
  28841. }
  28842. }
  28843. function flushRenderPhaseStrictModeWarningsInDEV() {
  28844. {
  28845. ReactStrictModeWarnings.flushLegacyContextWarning();
  28846. if (warnAboutDeprecatedLifecycles) {
  28847. ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
  28848. }
  28849. }
  28850. }
  28851. function stopFinishedWorkLoopTimer() {
  28852. var didCompleteRoot = true;
  28853. stopWorkLoopTimer(interruptedBy, didCompleteRoot);
  28854. interruptedBy = null;
  28855. }
  28856. function stopInterruptedWorkLoopTimer() {
  28857. // TODO: Track which fiber caused the interruption.
  28858. var didCompleteRoot = false;
  28859. stopWorkLoopTimer(interruptedBy, didCompleteRoot);
  28860. interruptedBy = null;
  28861. }
  28862. function checkForInterruption(fiberThatReceivedUpdate, updateExpirationTime) {
  28863. if (enableUserTimingAPI && workInProgressRoot !== null && updateExpirationTime > renderExpirationTime) {
  28864. interruptedBy = fiberThatReceivedUpdate;
  28865. }
  28866. }
  28867. var didWarnStateUpdateForUnmountedComponent = null;
  28868. function warnAboutUpdateOnUnmountedFiberInDEV(fiber) {
  28869. {
  28870. var tag = fiber.tag;
  28871. if (tag !== HostRoot && tag !== ClassComponent && tag !== FunctionComponent && tag !== ForwardRef && tag !== MemoComponent && tag !== SimpleMemoComponent) {
  28872. // Only warn for user-defined components, not internal ones like Suspense.
  28873. return;
  28874. }
  28875. // We show the whole stack but dedupe on the top component's name because
  28876. // the problematic code almost always lies inside that component.
  28877. var componentName = getComponentName(fiber.type) || 'ReactComponent';
  28878. if (didWarnStateUpdateForUnmountedComponent !== null) {
  28879. if (didWarnStateUpdateForUnmountedComponent.has(componentName)) {
  28880. return;
  28881. }
  28882. didWarnStateUpdateForUnmountedComponent.add(componentName);
  28883. } else {
  28884. didWarnStateUpdateForUnmountedComponent = new Set([componentName]);
  28885. }
  28886. warningWithoutStack$1(false, "Can't perform a React state update on an unmounted component. This " + 'is a no-op, but it indicates a memory leak in your application. To ' + 'fix, cancel all subscriptions and asynchronous tasks in %s.%s', tag === ClassComponent ? 'the componentWillUnmount method' : 'a useEffect cleanup function', getStackByFiberInDevAndProd(fiber));
  28887. }
  28888. }
  28889. var beginWork$$1 = void 0;
  28890. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  28891. var dummyFiber = null;
  28892. beginWork$$1 = function (current$$1, unitOfWork, expirationTime) {
  28893. // If a component throws an error, we replay it again in a synchronously
  28894. // dispatched event, so that the debugger will treat it as an uncaught
  28895. // error See ReactErrorUtils for more information.
  28896. // Before entering the begin phase, copy the work-in-progress onto a dummy
  28897. // fiber. If beginWork throws, we'll use this to reset the state.
  28898. var originalWorkInProgressCopy = assignFiberPropertiesInDEV(dummyFiber, unitOfWork);
  28899. try {
  28900. return beginWork$1(current$$1, unitOfWork, expirationTime);
  28901. } catch (originalError) {
  28902. if (originalError !== null && typeof originalError === 'object' && typeof originalError.then === 'function') {
  28903. // Don't replay promises. Treat everything else like an error.
  28904. throw originalError;
  28905. }
  28906. // Keep this code in sync with renderRoot; any changes here must have
  28907. // corresponding changes there.
  28908. resetContextDependencies();
  28909. resetHooks();
  28910. // Unwind the failed stack frame
  28911. unwindInterruptedWork(unitOfWork);
  28912. // Restore the original properties of the fiber.
  28913. assignFiberPropertiesInDEV(unitOfWork, originalWorkInProgressCopy);
  28914. if (enableProfilerTimer && unitOfWork.mode & ProfileMode) {
  28915. // Reset the profiler timer.
  28916. startProfilerTimer(unitOfWork);
  28917. }
  28918. // Run beginWork again.
  28919. invokeGuardedCallback(null, beginWork$1, null, current$$1, unitOfWork, expirationTime);
  28920. if (hasCaughtError()) {
  28921. var replayError = clearCaughtError();
  28922. // `invokeGuardedCallback` sometimes sets an expando `_suppressLogging`.
  28923. // Rethrow this error instead of the original one.
  28924. throw replayError;
  28925. } else {
  28926. // This branch is reachable if the render phase is impure.
  28927. throw originalError;
  28928. }
  28929. }
  28930. };
  28931. } else {
  28932. beginWork$$1 = beginWork$1;
  28933. }
  28934. var didWarnAboutUpdateInRender = false;
  28935. var didWarnAboutUpdateInGetChildContext = false;
  28936. function warnAboutInvalidUpdatesOnClassComponentsInDEV(fiber) {
  28937. {
  28938. if (fiber.tag === ClassComponent) {
  28939. switch (phase) {
  28940. case 'getChildContext':
  28941. if (didWarnAboutUpdateInGetChildContext) {
  28942. return;
  28943. }
  28944. warningWithoutStack$1(false, 'setState(...): Cannot call setState() inside getChildContext()');
  28945. didWarnAboutUpdateInGetChildContext = true;
  28946. break;
  28947. case 'render':
  28948. if (didWarnAboutUpdateInRender) {
  28949. return;
  28950. }
  28951. warningWithoutStack$1(false, 'Cannot update during an existing state transition (such as ' + 'within `render`). Render methods should be a pure function of ' + 'props and state.');
  28952. didWarnAboutUpdateInRender = true;
  28953. break;
  28954. }
  28955. }
  28956. }
  28957. }
  28958. // a 'shared' variable that changes when act() opens/closes in tests.
  28959. var IsThisRendererActing = { current: false };
  28960. function warnIfNotScopedWithMatchingAct(fiber) {
  28961. {
  28962. if (warnsIfNotActing === true && IsSomeRendererActing.current === true && IsThisRendererActing.current !== true) {
  28963. warningWithoutStack$1(false, "It looks like you're using the wrong act() around your test interactions.\n" + 'Be sure to use the matching version of act() corresponding to your renderer:\n\n' + '// for react-dom:\n' + "import {act} from 'react-dom/test-utils';\n" + '//...\n' + 'act(() => ...);\n\n' + '// for react-test-renderer:\n' + "import TestRenderer from 'react-test-renderer';\n" + 'const {act} = TestRenderer;\n' + '//...\n' + 'act(() => ...);' + '%s', getStackByFiberInDevAndProd(fiber));
  28964. }
  28965. }
  28966. }
  28967. function warnIfNotCurrentlyActingEffectsInDEV(fiber) {
  28968. {
  28969. if (warnsIfNotActing === true && (fiber.mode & StrictMode) !== NoMode && IsSomeRendererActing.current === false && IsThisRendererActing.current === false) {
  28970. warningWithoutStack$1(false, 'An update to %s ran an effect, but was not wrapped in act(...).\n\n' + 'When testing, code that causes React state updates should be ' + 'wrapped into act(...):\n\n' + 'act(() => {\n' + ' /* fire events that update state */\n' + '});\n' + '/* assert on the output */\n\n' + "This ensures that you're testing the behavior the user would see " + 'in the browser.' + ' Learn more at https://fb.me/react-wrap-tests-with-act' + '%s', getComponentName(fiber.type), getStackByFiberInDevAndProd(fiber));
  28971. }
  28972. }
  28973. }
  28974. function warnIfNotCurrentlyActingUpdatesInDEV(fiber) {
  28975. {
  28976. if (warnsIfNotActing === true && executionContext === NoContext && IsSomeRendererActing.current === false && IsThisRendererActing.current === false) {
  28977. warningWithoutStack$1(false, 'An update to %s inside a test was not wrapped in act(...).\n\n' + 'When testing, code that causes React state updates should be ' + 'wrapped into act(...):\n\n' + 'act(() => {\n' + ' /* fire events that update state */\n' + '});\n' + '/* assert on the output */\n\n' + "This ensures that you're testing the behavior the user would see " + 'in the browser.' + ' Learn more at https://fb.me/react-wrap-tests-with-act' + '%s', getComponentName(fiber.type), getStackByFiberInDevAndProd(fiber));
  28978. }
  28979. }
  28980. }
  28981. var warnIfNotCurrentlyActingUpdatesInDev = warnIfNotCurrentlyActingUpdatesInDEV;
  28982. // In tests, we want to enforce a mocked scheduler.
  28983. var didWarnAboutUnmockedScheduler = false;
  28984. // TODO Before we release concurrent mode, revisit this and decide whether a mocked
  28985. // scheduler is the actual recommendation. The alternative could be a testing build,
  28986. // a new lib, or whatever; we dunno just yet. This message is for early adopters
  28987. // to get their tests right.
  28988. function warnIfUnmockedScheduler(fiber) {
  28989. {
  28990. if (didWarnAboutUnmockedScheduler === false && Scheduler.unstable_flushAllWithoutAsserting === undefined) {
  28991. if (fiber.mode & BatchedMode || fiber.mode & ConcurrentMode) {
  28992. didWarnAboutUnmockedScheduler = true;
  28993. warningWithoutStack$1(false, 'In Concurrent or Sync modes, the "scheduler" module needs to be mocked ' + 'to guarantee consistent behaviour across tests and browsers. ' + 'For example, with jest: \n' + "jest.mock('scheduler', () => require('scheduler/unstable_mock'));\n\n" + 'For more info, visit https://fb.me/react-mock-scheduler');
  28994. } else if (warnAboutUnmockedScheduler === true) {
  28995. didWarnAboutUnmockedScheduler = true;
  28996. warningWithoutStack$1(false, 'Starting from React v17, the "scheduler" module will need to be mocked ' + 'to guarantee consistent behaviour across tests and browsers. ' + 'For example, with jest: \n' + "jest.mock('scheduler', () => require('scheduler/unstable_mock'));\n\n" + 'For more info, visit https://fb.me/react-mock-scheduler');
  28997. }
  28998. }
  28999. }
  29000. }
  29001. var componentsThatTriggeredHighPriSuspend = null;
  29002. function checkForWrongSuspensePriorityInDEV(sourceFiber) {
  29003. {
  29004. var currentPriorityLevel = getCurrentPriorityLevel();
  29005. if ((sourceFiber.mode & ConcurrentMode) !== NoEffect && (currentPriorityLevel === UserBlockingPriority$2 || currentPriorityLevel === ImmediatePriority)) {
  29006. var workInProgressNode = sourceFiber;
  29007. while (workInProgressNode !== null) {
  29008. // Add the component that triggered the suspense
  29009. var current$$1 = workInProgressNode.alternate;
  29010. if (current$$1 !== null) {
  29011. // TODO: warn component that triggers the high priority
  29012. // suspend is the HostRoot
  29013. switch (workInProgressNode.tag) {
  29014. case ClassComponent:
  29015. // Loop through the component's update queue and see whether the component
  29016. // has triggered any high priority updates
  29017. var updateQueue = current$$1.updateQueue;
  29018. if (updateQueue !== null) {
  29019. var update = updateQueue.firstUpdate;
  29020. while (update !== null) {
  29021. var priorityLevel = update.priority;
  29022. if (priorityLevel === UserBlockingPriority$2 || priorityLevel === ImmediatePriority) {
  29023. if (componentsThatTriggeredHighPriSuspend === null) {
  29024. componentsThatTriggeredHighPriSuspend = new Set([getComponentName(workInProgressNode.type)]);
  29025. } else {
  29026. componentsThatTriggeredHighPriSuspend.add(getComponentName(workInProgressNode.type));
  29027. }
  29028. break;
  29029. }
  29030. update = update.next;
  29031. }
  29032. }
  29033. break;
  29034. case FunctionComponent:
  29035. case ForwardRef:
  29036. case SimpleMemoComponent:
  29037. if (workInProgressNode.memoizedState !== null && workInProgressNode.memoizedState.baseUpdate !== null) {
  29038. var _update = workInProgressNode.memoizedState.baseUpdate;
  29039. // Loop through the functional component's memoized state to see whether
  29040. // the component has triggered any high pri updates
  29041. while (_update !== null) {
  29042. var priority = _update.priority;
  29043. if (priority === UserBlockingPriority$2 || priority === ImmediatePriority) {
  29044. if (componentsThatTriggeredHighPriSuspend === null) {
  29045. componentsThatTriggeredHighPriSuspend = new Set([getComponentName(workInProgressNode.type)]);
  29046. } else {
  29047. componentsThatTriggeredHighPriSuspend.add(getComponentName(workInProgressNode.type));
  29048. }
  29049. break;
  29050. }
  29051. if (_update.next === workInProgressNode.memoizedState.baseUpdate) {
  29052. break;
  29053. }
  29054. _update = _update.next;
  29055. }
  29056. }
  29057. break;
  29058. default:
  29059. break;
  29060. }
  29061. }
  29062. workInProgressNode = workInProgressNode.return;
  29063. }
  29064. }
  29065. }
  29066. }
  29067. function flushSuspensePriorityWarningInDEV() {
  29068. {
  29069. if (componentsThatTriggeredHighPriSuspend !== null) {
  29070. var componentNames = [];
  29071. componentsThatTriggeredHighPriSuspend.forEach(function (name) {
  29072. return componentNames.push(name);
  29073. });
  29074. componentsThatTriggeredHighPriSuspend = null;
  29075. if (componentNames.length > 0) {
  29076. warningWithoutStack$1(false, '%s triggered a user-blocking update that suspended.' + '\n\n' + 'The fix is to split the update into multiple parts: a user-blocking ' + 'update to provide immediate feedback, and another update that ' + 'triggers the bulk of the changes.' + '\n\n' + 'Refer to the documentation for useSuspenseTransition to learn how ' + 'to implement this pattern.',
  29077. // TODO: Add link to React docs with more information, once it exists
  29078. componentNames.sort().join(', '));
  29079. }
  29080. }
  29081. }
  29082. }
  29083. function computeThreadID(root, expirationTime) {
  29084. // Interaction threads are unique per root and expiration time.
  29085. return expirationTime * 1000 + root.interactionThreadID;
  29086. }
  29087. function markSpawnedWork(expirationTime) {
  29088. if (!enableSchedulerTracing) {
  29089. return;
  29090. }
  29091. if (spawnedWorkDuringRender === null) {
  29092. spawnedWorkDuringRender = [expirationTime];
  29093. } else {
  29094. spawnedWorkDuringRender.push(expirationTime);
  29095. }
  29096. }
  29097. function scheduleInteractions(root, expirationTime, interactions) {
  29098. if (!enableSchedulerTracing) {
  29099. return;
  29100. }
  29101. if (interactions.size > 0) {
  29102. var pendingInteractionMap = root.pendingInteractionMap;
  29103. var pendingInteractions = pendingInteractionMap.get(expirationTime);
  29104. if (pendingInteractions != null) {
  29105. interactions.forEach(function (interaction) {
  29106. if (!pendingInteractions.has(interaction)) {
  29107. // Update the pending async work count for previously unscheduled interaction.
  29108. interaction.__count++;
  29109. }
  29110. pendingInteractions.add(interaction);
  29111. });
  29112. } else {
  29113. pendingInteractionMap.set(expirationTime, new Set(interactions));
  29114. // Update the pending async work count for the current interactions.
  29115. interactions.forEach(function (interaction) {
  29116. interaction.__count++;
  29117. });
  29118. }
  29119. var subscriber = tracing.__subscriberRef.current;
  29120. if (subscriber !== null) {
  29121. var threadID = computeThreadID(root, expirationTime);
  29122. subscriber.onWorkScheduled(interactions, threadID);
  29123. }
  29124. }
  29125. }
  29126. function schedulePendingInteractions(root, expirationTime) {
  29127. // This is called when work is scheduled on a root.
  29128. // It associates the current interactions with the newly-scheduled expiration.
  29129. // They will be restored when that expiration is later committed.
  29130. if (!enableSchedulerTracing) {
  29131. return;
  29132. }
  29133. scheduleInteractions(root, expirationTime, tracing.__interactionsRef.current);
  29134. }
  29135. function startWorkOnPendingInteractions(root, expirationTime) {
  29136. // This is called when new work is started on a root.
  29137. if (!enableSchedulerTracing) {
  29138. return;
  29139. }
  29140. // Determine which interactions this batch of work currently includes, So that
  29141. // we can accurately attribute time spent working on it, And so that cascading
  29142. // work triggered during the render phase will be associated with it.
  29143. var interactions = new Set();
  29144. root.pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
  29145. if (scheduledExpirationTime >= expirationTime) {
  29146. scheduledInteractions.forEach(function (interaction) {
  29147. return interactions.add(interaction);
  29148. });
  29149. }
  29150. });
  29151. // Store the current set of interactions on the FiberRoot for a few reasons:
  29152. // We can re-use it in hot functions like renderRoot() without having to
  29153. // recalculate it. We will also use it in commitWork() to pass to any Profiler
  29154. // onRender() hooks. This also provides DevTools with a way to access it when
  29155. // the onCommitRoot() hook is called.
  29156. root.memoizedInteractions = interactions;
  29157. if (interactions.size > 0) {
  29158. var subscriber = tracing.__subscriberRef.current;
  29159. if (subscriber !== null) {
  29160. var threadID = computeThreadID(root, expirationTime);
  29161. try {
  29162. subscriber.onWorkStarted(interactions, threadID);
  29163. } catch (error) {
  29164. // If the subscriber throws, rethrow it in a separate task
  29165. scheduleCallback(ImmediatePriority, function () {
  29166. throw error;
  29167. });
  29168. }
  29169. }
  29170. }
  29171. }
  29172. function finishPendingInteractions(root, committedExpirationTime) {
  29173. if (!enableSchedulerTracing) {
  29174. return;
  29175. }
  29176. var earliestRemainingTimeAfterCommit = root.firstPendingTime;
  29177. var subscriber = void 0;
  29178. try {
  29179. subscriber = tracing.__subscriberRef.current;
  29180. if (subscriber !== null && root.memoizedInteractions.size > 0) {
  29181. var threadID = computeThreadID(root, committedExpirationTime);
  29182. subscriber.onWorkStopped(root.memoizedInteractions, threadID);
  29183. }
  29184. } catch (error) {
  29185. // If the subscriber throws, rethrow it in a separate task
  29186. scheduleCallback(ImmediatePriority, function () {
  29187. throw error;
  29188. });
  29189. } finally {
  29190. // Clear completed interactions from the pending Map.
  29191. // Unless the render was suspended or cascading work was scheduled,
  29192. // In which case– leave pending interactions until the subsequent render.
  29193. var pendingInteractionMap = root.pendingInteractionMap;
  29194. pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
  29195. // Only decrement the pending interaction count if we're done.
  29196. // If there's still work at the current priority,
  29197. // That indicates that we are waiting for suspense data.
  29198. if (scheduledExpirationTime > earliestRemainingTimeAfterCommit) {
  29199. pendingInteractionMap.delete(scheduledExpirationTime);
  29200. scheduledInteractions.forEach(function (interaction) {
  29201. interaction.__count--;
  29202. if (subscriber !== null && interaction.__count === 0) {
  29203. try {
  29204. subscriber.onInteractionScheduledWorkCompleted(interaction);
  29205. } catch (error) {
  29206. // If the subscriber throws, rethrow it in a separate task
  29207. scheduleCallback(ImmediatePriority, function () {
  29208. throw error;
  29209. });
  29210. }
  29211. }
  29212. });
  29213. }
  29214. });
  29215. }
  29216. }
  29217. var onCommitFiberRoot = null;
  29218. var onCommitFiberUnmount = null;
  29219. var hasLoggedError = false;
  29220. var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined';
  29221. function injectInternals(internals) {
  29222. if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {
  29223. // No DevTools
  29224. return false;
  29225. }
  29226. var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;
  29227. if (hook.isDisabled) {
  29228. // This isn't a real property on the hook, but it can be set to opt out
  29229. // of DevTools integration and associated warnings and logs.
  29230. // https://github.com/facebook/react/issues/3877
  29231. return true;
  29232. }
  29233. if (!hook.supportsFiber) {
  29234. {
  29235. warningWithoutStack$1(false, 'The installed version of React DevTools is too old and will not work ' + 'with the current version of React. Please update React DevTools. ' + 'https://fb.me/react-devtools');
  29236. }
  29237. // DevTools exists, even though it doesn't support Fiber.
  29238. return true;
  29239. }
  29240. try {
  29241. var rendererID = hook.inject(internals);
  29242. // We have successfully injected, so now it is safe to set up hooks.
  29243. onCommitFiberRoot = function (root, expirationTime) {
  29244. try {
  29245. var didError = (root.current.effectTag & DidCapture) === DidCapture;
  29246. if (enableProfilerTimer) {
  29247. var currentTime = requestCurrentTime();
  29248. var priorityLevel = inferPriorityFromExpirationTime(currentTime, expirationTime);
  29249. hook.onCommitFiberRoot(rendererID, root, priorityLevel, didError);
  29250. } else {
  29251. hook.onCommitFiberRoot(rendererID, root, undefined, didError);
  29252. }
  29253. } catch (err) {
  29254. if ( true && !hasLoggedError) {
  29255. hasLoggedError = true;
  29256. warningWithoutStack$1(false, 'React DevTools encountered an error: %s', err);
  29257. }
  29258. }
  29259. };
  29260. onCommitFiberUnmount = function (fiber) {
  29261. try {
  29262. hook.onCommitFiberUnmount(rendererID, fiber);
  29263. } catch (err) {
  29264. if ( true && !hasLoggedError) {
  29265. hasLoggedError = true;
  29266. warningWithoutStack$1(false, 'React DevTools encountered an error: %s', err);
  29267. }
  29268. }
  29269. };
  29270. } catch (err) {
  29271. // Catch all errors because it is unsafe to throw during initialization.
  29272. {
  29273. warningWithoutStack$1(false, 'React DevTools encountered an error: %s.', err);
  29274. }
  29275. }
  29276. // DevTools exists
  29277. return true;
  29278. }
  29279. function onCommitRoot(root, expirationTime) {
  29280. if (typeof onCommitFiberRoot === 'function') {
  29281. onCommitFiberRoot(root, expirationTime);
  29282. }
  29283. }
  29284. function onCommitUnmount(fiber) {
  29285. if (typeof onCommitFiberUnmount === 'function') {
  29286. onCommitFiberUnmount(fiber);
  29287. }
  29288. }
  29289. var hasBadMapPolyfill = void 0;
  29290. {
  29291. hasBadMapPolyfill = false;
  29292. try {
  29293. var nonExtensibleObject = Object.preventExtensions({});
  29294. var testMap = new Map([[nonExtensibleObject, null]]);
  29295. var testSet = new Set([nonExtensibleObject]);
  29296. // This is necessary for Rollup to not consider these unused.
  29297. // https://github.com/rollup/rollup/issues/1771
  29298. // TODO: we can remove these if Rollup fixes the bug.
  29299. testMap.set(0, 0);
  29300. testSet.add(0);
  29301. } catch (e) {
  29302. // TODO: Consider warning about bad polyfills
  29303. hasBadMapPolyfill = true;
  29304. }
  29305. }
  29306. // A Fiber is work on a Component that needs to be done or was done. There can
  29307. // be more than one per component.
  29308. var debugCounter = void 0;
  29309. {
  29310. debugCounter = 1;
  29311. }
  29312. function FiberNode(tag, pendingProps, key, mode) {
  29313. // Instance
  29314. this.tag = tag;
  29315. this.key = key;
  29316. this.elementType = null;
  29317. this.type = null;
  29318. this.stateNode = null;
  29319. // Fiber
  29320. this.return = null;
  29321. this.child = null;
  29322. this.sibling = null;
  29323. this.index = 0;
  29324. this.ref = null;
  29325. this.pendingProps = pendingProps;
  29326. this.memoizedProps = null;
  29327. this.updateQueue = null;
  29328. this.memoizedState = null;
  29329. this.dependencies = null;
  29330. this.mode = mode;
  29331. // Effects
  29332. this.effectTag = NoEffect;
  29333. this.nextEffect = null;
  29334. this.firstEffect = null;
  29335. this.lastEffect = null;
  29336. this.expirationTime = NoWork;
  29337. this.childExpirationTime = NoWork;
  29338. this.alternate = null;
  29339. if (enableProfilerTimer) {
  29340. // Note: The following is done to avoid a v8 performance cliff.
  29341. //
  29342. // Initializing the fields below to smis and later updating them with
  29343. // double values will cause Fibers to end up having separate shapes.
  29344. // This behavior/bug has something to do with Object.preventExtension().
  29345. // Fortunately this only impacts DEV builds.
  29346. // Unfortunately it makes React unusably slow for some applications.
  29347. // To work around this, initialize the fields below with doubles.
  29348. //
  29349. // Learn more about this here:
  29350. // https://github.com/facebook/react/issues/14365
  29351. // https://bugs.chromium.org/p/v8/issues/detail?id=8538
  29352. this.actualDuration = Number.NaN;
  29353. this.actualStartTime = Number.NaN;
  29354. this.selfBaseDuration = Number.NaN;
  29355. this.treeBaseDuration = Number.NaN;
  29356. // It's okay to replace the initial doubles with smis after initialization.
  29357. // This won't trigger the performance cliff mentioned above,
  29358. // and it simplifies other profiler code (including DevTools).
  29359. this.actualDuration = 0;
  29360. this.actualStartTime = -1;
  29361. this.selfBaseDuration = 0;
  29362. this.treeBaseDuration = 0;
  29363. }
  29364. {
  29365. this._debugID = debugCounter++;
  29366. this._debugSource = null;
  29367. this._debugOwner = null;
  29368. this._debugIsCurrentlyTiming = false;
  29369. this._debugNeedsRemount = false;
  29370. this._debugHookTypes = null;
  29371. if (!hasBadMapPolyfill && typeof Object.preventExtensions === 'function') {
  29372. Object.preventExtensions(this);
  29373. }
  29374. }
  29375. }
  29376. // This is a constructor function, rather than a POJO constructor, still
  29377. // please ensure we do the following:
  29378. // 1) Nobody should add any instance methods on this. Instance methods can be
  29379. // more difficult to predict when they get optimized and they are almost
  29380. // never inlined properly in static compilers.
  29381. // 2) Nobody should rely on `instanceof Fiber` for type testing. We should
  29382. // always know when it is a fiber.
  29383. // 3) We might want to experiment with using numeric keys since they are easier
  29384. // to optimize in a non-JIT environment.
  29385. // 4) We can easily go from a constructor to a createFiber object literal if that
  29386. // is faster.
  29387. // 5) It should be easy to port this to a C struct and keep a C implementation
  29388. // compatible.
  29389. var createFiber = function (tag, pendingProps, key, mode) {
  29390. // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors
  29391. return new FiberNode(tag, pendingProps, key, mode);
  29392. };
  29393. function shouldConstruct(Component) {
  29394. var prototype = Component.prototype;
  29395. return !!(prototype && prototype.isReactComponent);
  29396. }
  29397. function isSimpleFunctionComponent(type) {
  29398. return typeof type === 'function' && !shouldConstruct(type) && type.defaultProps === undefined;
  29399. }
  29400. function resolveLazyComponentTag(Component) {
  29401. if (typeof Component === 'function') {
  29402. return shouldConstruct(Component) ? ClassComponent : FunctionComponent;
  29403. } else if (Component !== undefined && Component !== null) {
  29404. var $$typeof = Component.$$typeof;
  29405. if ($$typeof === REACT_FORWARD_REF_TYPE) {
  29406. return ForwardRef;
  29407. }
  29408. if ($$typeof === REACT_MEMO_TYPE) {
  29409. return MemoComponent;
  29410. }
  29411. }
  29412. return IndeterminateComponent;
  29413. }
  29414. // This is used to create an alternate fiber to do work on.
  29415. function createWorkInProgress(current, pendingProps, expirationTime) {
  29416. var workInProgress = current.alternate;
  29417. if (workInProgress === null) {
  29418. // We use a double buffering pooling technique because we know that we'll
  29419. // only ever need at most two versions of a tree. We pool the "other" unused
  29420. // node that we're free to reuse. This is lazily created to avoid allocating
  29421. // extra objects for things that are never updated. It also allow us to
  29422. // reclaim the extra memory if needed.
  29423. workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode);
  29424. workInProgress.elementType = current.elementType;
  29425. workInProgress.type = current.type;
  29426. workInProgress.stateNode = current.stateNode;
  29427. {
  29428. // DEV-only fields
  29429. workInProgress._debugID = current._debugID;
  29430. workInProgress._debugSource = current._debugSource;
  29431. workInProgress._debugOwner = current._debugOwner;
  29432. workInProgress._debugHookTypes = current._debugHookTypes;
  29433. }
  29434. workInProgress.alternate = current;
  29435. current.alternate = workInProgress;
  29436. } else {
  29437. workInProgress.pendingProps = pendingProps;
  29438. // We already have an alternate.
  29439. // Reset the effect tag.
  29440. workInProgress.effectTag = NoEffect;
  29441. // The effect list is no longer valid.
  29442. workInProgress.nextEffect = null;
  29443. workInProgress.firstEffect = null;
  29444. workInProgress.lastEffect = null;
  29445. if (enableProfilerTimer) {
  29446. // We intentionally reset, rather than copy, actualDuration & actualStartTime.
  29447. // This prevents time from endlessly accumulating in new commits.
  29448. // This has the downside of resetting values for different priority renders,
  29449. // But works for yielding (the common case) and should support resuming.
  29450. workInProgress.actualDuration = 0;
  29451. workInProgress.actualStartTime = -1;
  29452. }
  29453. }
  29454. workInProgress.childExpirationTime = current.childExpirationTime;
  29455. workInProgress.expirationTime = current.expirationTime;
  29456. workInProgress.child = current.child;
  29457. workInProgress.memoizedProps = current.memoizedProps;
  29458. workInProgress.memoizedState = current.memoizedState;
  29459. workInProgress.updateQueue = current.updateQueue;
  29460. // Clone the dependencies object. This is mutated during the render phase, so
  29461. // it cannot be shared with the current fiber.
  29462. var currentDependencies = current.dependencies;
  29463. workInProgress.dependencies = currentDependencies === null ? null : {
  29464. expirationTime: currentDependencies.expirationTime,
  29465. firstContext: currentDependencies.firstContext,
  29466. responders: currentDependencies.responders
  29467. };
  29468. // These will be overridden during the parent's reconciliation
  29469. workInProgress.sibling = current.sibling;
  29470. workInProgress.index = current.index;
  29471. workInProgress.ref = current.ref;
  29472. if (enableProfilerTimer) {
  29473. workInProgress.selfBaseDuration = current.selfBaseDuration;
  29474. workInProgress.treeBaseDuration = current.treeBaseDuration;
  29475. }
  29476. {
  29477. workInProgress._debugNeedsRemount = current._debugNeedsRemount;
  29478. switch (workInProgress.tag) {
  29479. case IndeterminateComponent:
  29480. case FunctionComponent:
  29481. case SimpleMemoComponent:
  29482. workInProgress.type = resolveFunctionForHotReloading(current.type);
  29483. break;
  29484. case ClassComponent:
  29485. workInProgress.type = resolveClassForHotReloading(current.type);
  29486. break;
  29487. case ForwardRef:
  29488. workInProgress.type = resolveForwardRefForHotReloading(current.type);
  29489. break;
  29490. default:
  29491. break;
  29492. }
  29493. }
  29494. return workInProgress;
  29495. }
  29496. // Used to reuse a Fiber for a second pass.
  29497. function resetWorkInProgress(workInProgress, renderExpirationTime) {
  29498. // This resets the Fiber to what createFiber or createWorkInProgress would
  29499. // have set the values to before during the first pass. Ideally this wouldn't
  29500. // be necessary but unfortunately many code paths reads from the workInProgress
  29501. // when they should be reading from current and writing to workInProgress.
  29502. // We assume pendingProps, index, key, ref, return are still untouched to
  29503. // avoid doing another reconciliation.
  29504. // Reset the effect tag but keep any Placement tags, since that's something
  29505. // that child fiber is setting, not the reconciliation.
  29506. workInProgress.effectTag &= Placement;
  29507. // The effect list is no longer valid.
  29508. workInProgress.nextEffect = null;
  29509. workInProgress.firstEffect = null;
  29510. workInProgress.lastEffect = null;
  29511. var current = workInProgress.alternate;
  29512. if (current === null) {
  29513. // Reset to createFiber's initial values.
  29514. workInProgress.childExpirationTime = NoWork;
  29515. workInProgress.expirationTime = renderExpirationTime;
  29516. workInProgress.child = null;
  29517. workInProgress.memoizedProps = null;
  29518. workInProgress.memoizedState = null;
  29519. workInProgress.updateQueue = null;
  29520. workInProgress.dependencies = null;
  29521. if (enableProfilerTimer) {
  29522. // Note: We don't reset the actualTime counts. It's useful to accumulate
  29523. // actual time across multiple render passes.
  29524. workInProgress.selfBaseDuration = 0;
  29525. workInProgress.treeBaseDuration = 0;
  29526. }
  29527. } else {
  29528. // Reset to the cloned values that createWorkInProgress would've.
  29529. workInProgress.childExpirationTime = current.childExpirationTime;
  29530. workInProgress.expirationTime = current.expirationTime;
  29531. workInProgress.child = current.child;
  29532. workInProgress.memoizedProps = current.memoizedProps;
  29533. workInProgress.memoizedState = current.memoizedState;
  29534. workInProgress.updateQueue = current.updateQueue;
  29535. // Clone the dependencies object. This is mutated during the render phase, so
  29536. // it cannot be shared with the current fiber.
  29537. var currentDependencies = current.dependencies;
  29538. workInProgress.dependencies = currentDependencies === null ? null : {
  29539. expirationTime: currentDependencies.expirationTime,
  29540. firstContext: currentDependencies.firstContext,
  29541. responders: currentDependencies.responders
  29542. };
  29543. if (enableProfilerTimer) {
  29544. // Note: We don't reset the actualTime counts. It's useful to accumulate
  29545. // actual time across multiple render passes.
  29546. workInProgress.selfBaseDuration = current.selfBaseDuration;
  29547. workInProgress.treeBaseDuration = current.treeBaseDuration;
  29548. }
  29549. }
  29550. return workInProgress;
  29551. }
  29552. function createHostRootFiber(tag) {
  29553. var mode = void 0;
  29554. if (tag === ConcurrentRoot) {
  29555. mode = ConcurrentMode | BatchedMode | StrictMode;
  29556. } else if (tag === BatchedRoot) {
  29557. mode = BatchedMode | StrictMode;
  29558. } else {
  29559. mode = NoMode;
  29560. }
  29561. if (enableProfilerTimer && isDevToolsPresent) {
  29562. // Always collect profile timings when DevTools are present.
  29563. // This enables DevTools to start capturing timing at any point–
  29564. // Without some nodes in the tree having empty base times.
  29565. mode |= ProfileMode;
  29566. }
  29567. return createFiber(HostRoot, null, null, mode);
  29568. }
  29569. function createFiberFromTypeAndProps(type, // React$ElementType
  29570. key, pendingProps, owner, mode, expirationTime) {
  29571. var fiber = void 0;
  29572. var fiberTag = IndeterminateComponent;
  29573. // The resolved type is set if we know what the final type will be. I.e. it's not lazy.
  29574. var resolvedType = type;
  29575. if (typeof type === 'function') {
  29576. if (shouldConstruct(type)) {
  29577. fiberTag = ClassComponent;
  29578. {
  29579. resolvedType = resolveClassForHotReloading(resolvedType);
  29580. }
  29581. } else {
  29582. {
  29583. resolvedType = resolveFunctionForHotReloading(resolvedType);
  29584. }
  29585. }
  29586. } else if (typeof type === 'string') {
  29587. fiberTag = HostComponent;
  29588. } else {
  29589. getTag: switch (type) {
  29590. case REACT_FRAGMENT_TYPE:
  29591. return createFiberFromFragment(pendingProps.children, mode, expirationTime, key);
  29592. case REACT_CONCURRENT_MODE_TYPE:
  29593. fiberTag = Mode;
  29594. mode |= ConcurrentMode | BatchedMode | StrictMode;
  29595. break;
  29596. case REACT_STRICT_MODE_TYPE:
  29597. fiberTag = Mode;
  29598. mode |= StrictMode;
  29599. break;
  29600. case REACT_PROFILER_TYPE:
  29601. return createFiberFromProfiler(pendingProps, mode, expirationTime, key);
  29602. case REACT_SUSPENSE_TYPE:
  29603. return createFiberFromSuspense(pendingProps, mode, expirationTime, key);
  29604. case REACT_SUSPENSE_LIST_TYPE:
  29605. return createFiberFromSuspenseList(pendingProps, mode, expirationTime, key);
  29606. default:
  29607. {
  29608. if (typeof type === 'object' && type !== null) {
  29609. switch (type.$$typeof) {
  29610. case REACT_PROVIDER_TYPE:
  29611. fiberTag = ContextProvider;
  29612. break getTag;
  29613. case REACT_CONTEXT_TYPE:
  29614. // This is a consumer
  29615. fiberTag = ContextConsumer;
  29616. break getTag;
  29617. case REACT_FORWARD_REF_TYPE:
  29618. fiberTag = ForwardRef;
  29619. {
  29620. resolvedType = resolveForwardRefForHotReloading(resolvedType);
  29621. }
  29622. break getTag;
  29623. case REACT_MEMO_TYPE:
  29624. fiberTag = MemoComponent;
  29625. break getTag;
  29626. case REACT_LAZY_TYPE:
  29627. fiberTag = LazyComponent;
  29628. resolvedType = null;
  29629. break getTag;
  29630. case REACT_FUNDAMENTAL_TYPE:
  29631. if (enableFundamentalAPI) {
  29632. return createFiberFromFundamental(type, pendingProps, mode, expirationTime, key);
  29633. }
  29634. break;
  29635. }
  29636. }
  29637. var info = '';
  29638. {
  29639. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  29640. info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and " + 'named imports.';
  29641. }
  29642. var ownerName = owner ? getComponentName(owner.type) : null;
  29643. if (ownerName) {
  29644. info += '\n\nCheck the render method of `' + ownerName + '`.';
  29645. }
  29646. }
  29647. (function () {
  29648. {
  29649. {
  29650. throw ReactError(Error('Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: ' + (type == null ? type : typeof type) + '.' + info));
  29651. }
  29652. }
  29653. })();
  29654. }
  29655. }
  29656. }
  29657. fiber = createFiber(fiberTag, pendingProps, key, mode);
  29658. fiber.elementType = type;
  29659. fiber.type = resolvedType;
  29660. fiber.expirationTime = expirationTime;
  29661. return fiber;
  29662. }
  29663. function createFiberFromElement(element, mode, expirationTime) {
  29664. var owner = null;
  29665. {
  29666. owner = element._owner;
  29667. }
  29668. var type = element.type;
  29669. var key = element.key;
  29670. var pendingProps = element.props;
  29671. var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, expirationTime);
  29672. {
  29673. fiber._debugSource = element._source;
  29674. fiber._debugOwner = element._owner;
  29675. }
  29676. return fiber;
  29677. }
  29678. function createFiberFromFragment(elements, mode, expirationTime, key) {
  29679. var fiber = createFiber(Fragment, elements, key, mode);
  29680. fiber.expirationTime = expirationTime;
  29681. return fiber;
  29682. }
  29683. function createFiberFromFundamental(fundamentalComponent, pendingProps, mode, expirationTime, key) {
  29684. var fiber = createFiber(FundamentalComponent, pendingProps, key, mode);
  29685. fiber.elementType = fundamentalComponent;
  29686. fiber.type = fundamentalComponent;
  29687. fiber.expirationTime = expirationTime;
  29688. return fiber;
  29689. }
  29690. function createFiberFromProfiler(pendingProps, mode, expirationTime, key) {
  29691. {
  29692. if (typeof pendingProps.id !== 'string' || typeof pendingProps.onRender !== 'function') {
  29693. warningWithoutStack$1(false, 'Profiler must specify an "id" string and "onRender" function as props');
  29694. }
  29695. }
  29696. var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode);
  29697. // TODO: The Profiler fiber shouldn't have a type. It has a tag.
  29698. fiber.elementType = REACT_PROFILER_TYPE;
  29699. fiber.type = REACT_PROFILER_TYPE;
  29700. fiber.expirationTime = expirationTime;
  29701. return fiber;
  29702. }
  29703. function createFiberFromSuspense(pendingProps, mode, expirationTime, key) {
  29704. var fiber = createFiber(SuspenseComponent, pendingProps, key, mode);
  29705. // TODO: The SuspenseComponent fiber shouldn't have a type. It has a tag.
  29706. // This needs to be fixed in getComponentName so that it relies on the tag
  29707. // instead.
  29708. fiber.type = REACT_SUSPENSE_TYPE;
  29709. fiber.elementType = REACT_SUSPENSE_TYPE;
  29710. fiber.expirationTime = expirationTime;
  29711. return fiber;
  29712. }
  29713. function createFiberFromSuspenseList(pendingProps, mode, expirationTime, key) {
  29714. var fiber = createFiber(SuspenseListComponent, pendingProps, key, mode);
  29715. {
  29716. // TODO: The SuspenseListComponent fiber shouldn't have a type. It has a tag.
  29717. // This needs to be fixed in getComponentName so that it relies on the tag
  29718. // instead.
  29719. fiber.type = REACT_SUSPENSE_LIST_TYPE;
  29720. }
  29721. fiber.elementType = REACT_SUSPENSE_LIST_TYPE;
  29722. fiber.expirationTime = expirationTime;
  29723. return fiber;
  29724. }
  29725. function createFiberFromText(content, mode, expirationTime) {
  29726. var fiber = createFiber(HostText, content, null, mode);
  29727. fiber.expirationTime = expirationTime;
  29728. return fiber;
  29729. }
  29730. function createFiberFromHostInstanceForDeletion() {
  29731. var fiber = createFiber(HostComponent, null, null, NoMode);
  29732. // TODO: These should not need a type.
  29733. fiber.elementType = 'DELETED';
  29734. fiber.type = 'DELETED';
  29735. return fiber;
  29736. }
  29737. function createFiberFromPortal(portal, mode, expirationTime) {
  29738. var pendingProps = portal.children !== null ? portal.children : [];
  29739. var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);
  29740. fiber.expirationTime = expirationTime;
  29741. fiber.stateNode = {
  29742. containerInfo: portal.containerInfo,
  29743. pendingChildren: null, // Used by persistent updates
  29744. implementation: portal.implementation
  29745. };
  29746. return fiber;
  29747. }
  29748. // Used for stashing WIP properties to replay failed work in DEV.
  29749. function assignFiberPropertiesInDEV(target, source) {
  29750. if (target === null) {
  29751. // This Fiber's initial properties will always be overwritten.
  29752. // We only use a Fiber to ensure the same hidden class so DEV isn't slow.
  29753. target = createFiber(IndeterminateComponent, null, null, NoMode);
  29754. }
  29755. // This is intentionally written as a list of all properties.
  29756. // We tried to use Object.assign() instead but this is called in
  29757. // the hottest path, and Object.assign() was too slow:
  29758. // https://github.com/facebook/react/issues/12502
  29759. // This code is DEV-only so size is not a concern.
  29760. target.tag = source.tag;
  29761. target.key = source.key;
  29762. target.elementType = source.elementType;
  29763. target.type = source.type;
  29764. target.stateNode = source.stateNode;
  29765. target.return = source.return;
  29766. target.child = source.child;
  29767. target.sibling = source.sibling;
  29768. target.index = source.index;
  29769. target.ref = source.ref;
  29770. target.pendingProps = source.pendingProps;
  29771. target.memoizedProps = source.memoizedProps;
  29772. target.updateQueue = source.updateQueue;
  29773. target.memoizedState = source.memoizedState;
  29774. target.dependencies = source.dependencies;
  29775. target.mode = source.mode;
  29776. target.effectTag = source.effectTag;
  29777. target.nextEffect = source.nextEffect;
  29778. target.firstEffect = source.firstEffect;
  29779. target.lastEffect = source.lastEffect;
  29780. target.expirationTime = source.expirationTime;
  29781. target.childExpirationTime = source.childExpirationTime;
  29782. target.alternate = source.alternate;
  29783. if (enableProfilerTimer) {
  29784. target.actualDuration = source.actualDuration;
  29785. target.actualStartTime = source.actualStartTime;
  29786. target.selfBaseDuration = source.selfBaseDuration;
  29787. target.treeBaseDuration = source.treeBaseDuration;
  29788. }
  29789. target._debugID = source._debugID;
  29790. target._debugSource = source._debugSource;
  29791. target._debugOwner = source._debugOwner;
  29792. target._debugIsCurrentlyTiming = source._debugIsCurrentlyTiming;
  29793. target._debugNeedsRemount = source._debugNeedsRemount;
  29794. target._debugHookTypes = source._debugHookTypes;
  29795. return target;
  29796. }
  29797. // TODO: This should be lifted into the renderer.
  29798. // The following attributes are only used by interaction tracing builds.
  29799. // They enable interactions to be associated with their async work,
  29800. // And expose interaction metadata to the React DevTools Profiler plugin.
  29801. // Note that these attributes are only defined when the enableSchedulerTracing flag is enabled.
  29802. // Exported FiberRoot type includes all properties,
  29803. // To avoid requiring potentially error-prone :any casts throughout the project.
  29804. // Profiling properties are only safe to access in profiling builds (when enableSchedulerTracing is true).
  29805. // The types are defined separately within this file to ensure they stay in sync.
  29806. // (We don't have to use an inline :any cast when enableSchedulerTracing is disabled.)
  29807. function FiberRootNode(containerInfo, tag, hydrate) {
  29808. this.tag = tag;
  29809. this.current = null;
  29810. this.containerInfo = containerInfo;
  29811. this.pendingChildren = null;
  29812. this.pingCache = null;
  29813. this.finishedExpirationTime = NoWork;
  29814. this.finishedWork = null;
  29815. this.timeoutHandle = noTimeout;
  29816. this.context = null;
  29817. this.pendingContext = null;
  29818. this.hydrate = hydrate;
  29819. this.firstBatch = null;
  29820. this.callbackNode = null;
  29821. this.callbackExpirationTime = NoWork;
  29822. this.firstPendingTime = NoWork;
  29823. this.lastPendingTime = NoWork;
  29824. this.pingTime = NoWork;
  29825. if (enableSchedulerTracing) {
  29826. this.interactionThreadID = tracing.unstable_getThreadID();
  29827. this.memoizedInteractions = new Set();
  29828. this.pendingInteractionMap = new Map();
  29829. }
  29830. }
  29831. function createFiberRoot(containerInfo, tag, hydrate) {
  29832. var root = new FiberRootNode(containerInfo, tag, hydrate);
  29833. // Cyclic construction. This cheats the type system right now because
  29834. // stateNode is any.
  29835. var uninitializedFiber = createHostRootFiber(tag);
  29836. root.current = uninitializedFiber;
  29837. uninitializedFiber.stateNode = root;
  29838. return root;
  29839. }
  29840. // This lets us hook into Fiber to debug what it's doing.
  29841. // See https://github.com/facebook/react/pull/8033.
  29842. // This is not part of the public API, not even for React DevTools.
  29843. // You may only inject a debugTool if you work on React Fiber itself.
  29844. var ReactFiberInstrumentation = {
  29845. debugTool: null
  29846. };
  29847. var ReactFiberInstrumentation_1 = ReactFiberInstrumentation;
  29848. // 0 is PROD, 1 is DEV.
  29849. // Might add PROFILE later.
  29850. var didWarnAboutNestedUpdates = void 0;
  29851. var didWarnAboutFindNodeInStrictMode = void 0;
  29852. {
  29853. didWarnAboutNestedUpdates = false;
  29854. didWarnAboutFindNodeInStrictMode = {};
  29855. }
  29856. function getContextForSubtree(parentComponent) {
  29857. if (!parentComponent) {
  29858. return emptyContextObject;
  29859. }
  29860. var fiber = get(parentComponent);
  29861. var parentContext = findCurrentUnmaskedContext(fiber);
  29862. if (fiber.tag === ClassComponent) {
  29863. var Component = fiber.type;
  29864. if (isContextProvider(Component)) {
  29865. return processChildContext(fiber, Component, parentContext);
  29866. }
  29867. }
  29868. return parentContext;
  29869. }
  29870. function scheduleRootUpdate(current$$1, element, expirationTime, suspenseConfig, callback) {
  29871. {
  29872. if (phase === 'render' && current !== null && !didWarnAboutNestedUpdates) {
  29873. didWarnAboutNestedUpdates = true;
  29874. warningWithoutStack$1(false, 'Render methods should be a pure function of props and state; ' + 'triggering nested component updates from render is not allowed. ' + 'If necessary, trigger nested updates in componentDidUpdate.\n\n' + 'Check the render method of %s.', getComponentName(current.type) || 'Unknown');
  29875. }
  29876. }
  29877. var update = createUpdate(expirationTime, suspenseConfig);
  29878. // Caution: React DevTools currently depends on this property
  29879. // being called "element".
  29880. update.payload = { element: element };
  29881. callback = callback === undefined ? null : callback;
  29882. if (callback !== null) {
  29883. !(typeof callback === 'function') ? warningWithoutStack$1(false, 'render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback) : void 0;
  29884. update.callback = callback;
  29885. }
  29886. if (revertPassiveEffectsChange) {
  29887. flushPassiveEffects();
  29888. }
  29889. enqueueUpdate(current$$1, update);
  29890. scheduleWork(current$$1, expirationTime);
  29891. return expirationTime;
  29892. }
  29893. function updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, suspenseConfig, callback) {
  29894. // TODO: If this is a nested container, this won't be the root.
  29895. var current$$1 = container.current;
  29896. {
  29897. if (ReactFiberInstrumentation_1.debugTool) {
  29898. if (current$$1.alternate === null) {
  29899. ReactFiberInstrumentation_1.debugTool.onMountContainer(container);
  29900. } else if (element === null) {
  29901. ReactFiberInstrumentation_1.debugTool.onUnmountContainer(container);
  29902. } else {
  29903. ReactFiberInstrumentation_1.debugTool.onUpdateContainer(container);
  29904. }
  29905. }
  29906. }
  29907. var context = getContextForSubtree(parentComponent);
  29908. if (container.context === null) {
  29909. container.context = context;
  29910. } else {
  29911. container.pendingContext = context;
  29912. }
  29913. return scheduleRootUpdate(current$$1, element, expirationTime, suspenseConfig, callback);
  29914. }
  29915. function findHostInstance(component) {
  29916. var fiber = get(component);
  29917. if (fiber === undefined) {
  29918. if (typeof component.render === 'function') {
  29919. (function () {
  29920. {
  29921. {
  29922. throw ReactError(Error('Unable to find node on an unmounted component.'));
  29923. }
  29924. }
  29925. })();
  29926. } else {
  29927. (function () {
  29928. {
  29929. {
  29930. throw ReactError(Error('Argument appears to not be a ReactComponent. Keys: ' + Object.keys(component)));
  29931. }
  29932. }
  29933. })();
  29934. }
  29935. }
  29936. var hostFiber = findCurrentHostFiber(fiber);
  29937. if (hostFiber === null) {
  29938. return null;
  29939. }
  29940. return hostFiber.stateNode;
  29941. }
  29942. function findHostInstanceWithWarning(component, methodName) {
  29943. {
  29944. var fiber = get(component);
  29945. if (fiber === undefined) {
  29946. if (typeof component.render === 'function') {
  29947. (function () {
  29948. {
  29949. {
  29950. throw ReactError(Error('Unable to find node on an unmounted component.'));
  29951. }
  29952. }
  29953. })();
  29954. } else {
  29955. (function () {
  29956. {
  29957. {
  29958. throw ReactError(Error('Argument appears to not be a ReactComponent. Keys: ' + Object.keys(component)));
  29959. }
  29960. }
  29961. })();
  29962. }
  29963. }
  29964. var hostFiber = findCurrentHostFiber(fiber);
  29965. if (hostFiber === null) {
  29966. return null;
  29967. }
  29968. if (hostFiber.mode & StrictMode) {
  29969. var componentName = getComponentName(fiber.type) || 'Component';
  29970. if (!didWarnAboutFindNodeInStrictMode[componentName]) {
  29971. didWarnAboutFindNodeInStrictMode[componentName] = true;
  29972. if (fiber.mode & StrictMode) {
  29973. warningWithoutStack$1(false, '%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which is inside StrictMode. ' + 'Instead, add a ref directly to the element you want to reference.' + '\n%s' + '\n\nLearn more about using refs safely here:' + '\nhttps://fb.me/react-strict-mode-find-node', methodName, methodName, componentName, getStackByFiberInDevAndProd(hostFiber));
  29974. } else {
  29975. warningWithoutStack$1(false, '%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which renders StrictMode children. ' + 'Instead, add a ref directly to the element you want to reference.' + '\n%s' + '\n\nLearn more about using refs safely here:' + '\nhttps://fb.me/react-strict-mode-find-node', methodName, methodName, componentName, getStackByFiberInDevAndProd(hostFiber));
  29976. }
  29977. }
  29978. }
  29979. return hostFiber.stateNode;
  29980. }
  29981. return findHostInstance(component);
  29982. }
  29983. function createContainer(containerInfo, tag, hydrate) {
  29984. return createFiberRoot(containerInfo, tag, hydrate);
  29985. }
  29986. function updateContainer(element, container, parentComponent, callback) {
  29987. var current$$1 = container.current;
  29988. var currentTime = requestCurrentTime();
  29989. {
  29990. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  29991. if ('undefined' !== typeof jest) {
  29992. warnIfUnmockedScheduler(current$$1);
  29993. warnIfNotScopedWithMatchingAct(current$$1);
  29994. }
  29995. }
  29996. var suspenseConfig = requestCurrentSuspenseConfig();
  29997. var expirationTime = computeExpirationForFiber(currentTime, current$$1, suspenseConfig);
  29998. return updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, suspenseConfig, callback);
  29999. }
  30000. function getPublicRootInstance(container) {
  30001. var containerFiber = container.current;
  30002. if (!containerFiber.child) {
  30003. return null;
  30004. }
  30005. switch (containerFiber.child.tag) {
  30006. case HostComponent:
  30007. return getPublicInstance(containerFiber.child.stateNode);
  30008. default:
  30009. return containerFiber.child.stateNode;
  30010. }
  30011. }
  30012. function findHostInstanceWithNoPortals(fiber) {
  30013. var hostFiber = findCurrentHostFiberWithNoPortals(fiber);
  30014. if (hostFiber === null) {
  30015. return null;
  30016. }
  30017. if (hostFiber.tag === FundamentalComponent) {
  30018. return hostFiber.stateNode.instance;
  30019. }
  30020. return hostFiber.stateNode;
  30021. }
  30022. var shouldSuspendImpl = function (fiber) {
  30023. return false;
  30024. };
  30025. function shouldSuspend(fiber) {
  30026. return shouldSuspendImpl(fiber);
  30027. }
  30028. var overrideHookState = null;
  30029. var overrideProps = null;
  30030. var scheduleUpdate = null;
  30031. var setSuspenseHandler = null;
  30032. {
  30033. var copyWithSetImpl = function (obj, path, idx, value) {
  30034. if (idx >= path.length) {
  30035. return value;
  30036. }
  30037. var key = path[idx];
  30038. var updated = Array.isArray(obj) ? obj.slice() : _assign({}, obj);
  30039. // $FlowFixMe number or string is fine here
  30040. updated[key] = copyWithSetImpl(obj[key], path, idx + 1, value);
  30041. return updated;
  30042. };
  30043. var copyWithSet = function (obj, path, value) {
  30044. return copyWithSetImpl(obj, path, 0, value);
  30045. };
  30046. // Support DevTools editable values for useState and useReducer.
  30047. overrideHookState = function (fiber, id, path, value) {
  30048. // For now, the "id" of stateful hooks is just the stateful hook index.
  30049. // This may change in the future with e.g. nested hooks.
  30050. var currentHook = fiber.memoizedState;
  30051. while (currentHook !== null && id > 0) {
  30052. currentHook = currentHook.next;
  30053. id--;
  30054. }
  30055. if (currentHook !== null) {
  30056. if (revertPassiveEffectsChange) {
  30057. flushPassiveEffects();
  30058. }
  30059. var newState = copyWithSet(currentHook.memoizedState, path, value);
  30060. currentHook.memoizedState = newState;
  30061. currentHook.baseState = newState;
  30062. // We aren't actually adding an update to the queue,
  30063. // because there is no update we can add for useReducer hooks that won't trigger an error.
  30064. // (There's no appropriate action type for DevTools overrides.)
  30065. // As a result though, React will see the scheduled update as a noop and bailout.
  30066. // Shallow cloning props works as a workaround for now to bypass the bailout check.
  30067. fiber.memoizedProps = _assign({}, fiber.memoizedProps);
  30068. scheduleWork(fiber, Sync);
  30069. }
  30070. };
  30071. // Support DevTools props for function components, forwardRef, memo, host components, etc.
  30072. overrideProps = function (fiber, path, value) {
  30073. if (revertPassiveEffectsChange) {
  30074. flushPassiveEffects();
  30075. }
  30076. fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value);
  30077. if (fiber.alternate) {
  30078. fiber.alternate.pendingProps = fiber.pendingProps;
  30079. }
  30080. scheduleWork(fiber, Sync);
  30081. };
  30082. scheduleUpdate = function (fiber) {
  30083. if (revertPassiveEffectsChange) {
  30084. flushPassiveEffects();
  30085. }
  30086. scheduleWork(fiber, Sync);
  30087. };
  30088. setSuspenseHandler = function (newShouldSuspendImpl) {
  30089. shouldSuspendImpl = newShouldSuspendImpl;
  30090. };
  30091. }
  30092. function injectIntoDevTools(devToolsConfig) {
  30093. var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;
  30094. var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
  30095. return injectInternals(_assign({}, devToolsConfig, {
  30096. overrideHookState: overrideHookState,
  30097. overrideProps: overrideProps,
  30098. setSuspenseHandler: setSuspenseHandler,
  30099. scheduleUpdate: scheduleUpdate,
  30100. currentDispatcherRef: ReactCurrentDispatcher,
  30101. findHostInstanceByFiber: function (fiber) {
  30102. var hostFiber = findCurrentHostFiber(fiber);
  30103. if (hostFiber === null) {
  30104. return null;
  30105. }
  30106. return hostFiber.stateNode;
  30107. },
  30108. findFiberByHostInstance: function (instance) {
  30109. if (!findFiberByHostInstance) {
  30110. // Might not be implemented by the renderer.
  30111. return null;
  30112. }
  30113. return findFiberByHostInstance(instance);
  30114. },
  30115. // React Refresh
  30116. findHostInstancesForRefresh: findHostInstancesForRefresh,
  30117. scheduleRefresh: scheduleRefresh,
  30118. scheduleRoot: scheduleRoot,
  30119. setRefreshHandler: setRefreshHandler,
  30120. // Enables DevTools to append owner stacks to error messages in DEV mode.
  30121. getCurrentFiber: function () {
  30122. return current;
  30123. }
  30124. }));
  30125. }
  30126. // This file intentionally does *not* have the Flow annotation.
  30127. // Don't add it. See `./inline-typed.js` for an explanation.
  30128. function createPortal$1(children, containerInfo,
  30129. // TODO: figure out the API for cross-renderer implementation.
  30130. implementation) {
  30131. var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
  30132. return {
  30133. // This tag allow us to uniquely identify this as a React Portal
  30134. $$typeof: REACT_PORTAL_TYPE,
  30135. key: key == null ? null : '' + key,
  30136. children: children,
  30137. containerInfo: containerInfo,
  30138. implementation: implementation
  30139. };
  30140. }
  30141. // TODO: this is special because it gets imported during build.
  30142. var ReactVersion = '16.9.0';
  30143. // TODO: This type is shared between the reconciler and ReactDOM, but will
  30144. // eventually be lifted out to the renderer.
  30145. var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
  30146. var topLevelUpdateWarnings = void 0;
  30147. var warnOnInvalidCallback = void 0;
  30148. var didWarnAboutUnstableCreatePortal = false;
  30149. {
  30150. if (typeof Map !== 'function' ||
  30151. // $FlowIssue Flow incorrectly thinks Map has no prototype
  30152. Map.prototype == null || typeof Map.prototype.forEach !== 'function' || typeof Set !== 'function' ||
  30153. // $FlowIssue Flow incorrectly thinks Set has no prototype
  30154. Set.prototype == null || typeof Set.prototype.clear !== 'function' || typeof Set.prototype.forEach !== 'function') {
  30155. warningWithoutStack$1(false, 'React depends on Map and Set built-in types. Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  30156. }
  30157. topLevelUpdateWarnings = function (container) {
  30158. if (container._reactRootContainer && container.nodeType !== COMMENT_NODE) {
  30159. var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer._internalRoot.current);
  30160. if (hostInstance) {
  30161. !(hostInstance.parentNode === container) ? warningWithoutStack$1(false, 'render(...): It looks like the React-rendered content of this ' + 'container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + 'ReactDOM.unmountComponentAtNode to empty a container.') : void 0;
  30162. }
  30163. }
  30164. var isRootRenderedBySomeReact = !!container._reactRootContainer;
  30165. var rootEl = getReactRootElementInContainer(container);
  30166. var hasNonRootReactChild = !!(rootEl && getInstanceFromNode$1(rootEl));
  30167. !(!hasNonRootReactChild || isRootRenderedBySomeReact) ? warningWithoutStack$1(false, 'render(...): Replacing React-rendered children with a new root ' + 'component. If you intended to update the children of this node, ' + 'you should instead have the existing children update their state ' + 'and render the new components instead of calling ReactDOM.render.') : void 0;
  30168. !(container.nodeType !== ELEMENT_NODE || !container.tagName || container.tagName.toUpperCase() !== 'BODY') ? warningWithoutStack$1(false, 'render(): Rendering components directly into document.body is ' + 'discouraged, since its children are often manipulated by third-party ' + 'scripts and browser extensions. This may lead to subtle ' + 'reconciliation issues. Try rendering into a container element created ' + 'for your app.') : void 0;
  30169. };
  30170. warnOnInvalidCallback = function (callback, callerName) {
  30171. !(callback === null || typeof callback === 'function') ? warningWithoutStack$1(false, '%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback) : void 0;
  30172. };
  30173. }
  30174. setRestoreImplementation(restoreControlledState$1);
  30175. function ReactBatch(root) {
  30176. var expirationTime = computeUniqueAsyncExpiration();
  30177. this._expirationTime = expirationTime;
  30178. this._root = root;
  30179. this._next = null;
  30180. this._callbacks = null;
  30181. this._didComplete = false;
  30182. this._hasChildren = false;
  30183. this._children = null;
  30184. this._defer = true;
  30185. }
  30186. ReactBatch.prototype.render = function (children) {
  30187. var _this = this;
  30188. (function () {
  30189. if (!_this._defer) {
  30190. {
  30191. throw ReactError(Error('batch.render: Cannot render a batch that already committed.'));
  30192. }
  30193. }
  30194. })();
  30195. this._hasChildren = true;
  30196. this._children = children;
  30197. var internalRoot = this._root._internalRoot;
  30198. var expirationTime = this._expirationTime;
  30199. var work = new ReactWork();
  30200. updateContainerAtExpirationTime(children, internalRoot, null, expirationTime, null, work._onCommit);
  30201. return work;
  30202. };
  30203. ReactBatch.prototype.then = function (onComplete) {
  30204. if (this._didComplete) {
  30205. onComplete();
  30206. return;
  30207. }
  30208. var callbacks = this._callbacks;
  30209. if (callbacks === null) {
  30210. callbacks = this._callbacks = [];
  30211. }
  30212. callbacks.push(onComplete);
  30213. };
  30214. ReactBatch.prototype.commit = function () {
  30215. var _this2 = this;
  30216. var internalRoot = this._root._internalRoot;
  30217. var firstBatch = internalRoot.firstBatch;
  30218. (function () {
  30219. if (!(_this2._defer && firstBatch !== null)) {
  30220. {
  30221. throw ReactError(Error('batch.commit: Cannot commit a batch multiple times.'));
  30222. }
  30223. }
  30224. })();
  30225. if (!this._hasChildren) {
  30226. // This batch is empty. Return.
  30227. this._next = null;
  30228. this._defer = false;
  30229. return;
  30230. }
  30231. var expirationTime = this._expirationTime;
  30232. // Ensure this is the first batch in the list.
  30233. if (firstBatch !== this) {
  30234. // This batch is not the earliest batch. We need to move it to the front.
  30235. // Update its expiration time to be the expiration time of the earliest
  30236. // batch, so that we can flush it without flushing the other batches.
  30237. if (this._hasChildren) {
  30238. expirationTime = this._expirationTime = firstBatch._expirationTime;
  30239. // Rendering this batch again ensures its children will be the final state
  30240. // when we flush (updates are processed in insertion order: last
  30241. // update wins).
  30242. // TODO: This forces a restart. Should we print a warning?
  30243. this.render(this._children);
  30244. }
  30245. // Remove the batch from the list.
  30246. var previous = null;
  30247. var batch = firstBatch;
  30248. while (batch !== this) {
  30249. previous = batch;
  30250. batch = batch._next;
  30251. }
  30252. (function () {
  30253. if (!(previous !== null)) {
  30254. {
  30255. throw ReactError(Error('batch.commit: Cannot commit a batch multiple times.'));
  30256. }
  30257. }
  30258. })();
  30259. previous._next = batch._next;
  30260. // Add it to the front.
  30261. this._next = firstBatch;
  30262. firstBatch = internalRoot.firstBatch = this;
  30263. }
  30264. // Synchronously flush all the work up to this batch's expiration time.
  30265. this._defer = false;
  30266. flushRoot(internalRoot, expirationTime);
  30267. // Pop the batch from the list.
  30268. var next = this._next;
  30269. this._next = null;
  30270. firstBatch = internalRoot.firstBatch = next;
  30271. // Append the next earliest batch's children to the update queue.
  30272. if (firstBatch !== null && firstBatch._hasChildren) {
  30273. firstBatch.render(firstBatch._children);
  30274. }
  30275. };
  30276. ReactBatch.prototype._onComplete = function () {
  30277. if (this._didComplete) {
  30278. return;
  30279. }
  30280. this._didComplete = true;
  30281. var callbacks = this._callbacks;
  30282. if (callbacks === null) {
  30283. return;
  30284. }
  30285. // TODO: Error handling.
  30286. for (var i = 0; i < callbacks.length; i++) {
  30287. var _callback = callbacks[i];
  30288. _callback();
  30289. }
  30290. };
  30291. function ReactWork() {
  30292. this._callbacks = null;
  30293. this._didCommit = false;
  30294. // TODO: Avoid need to bind by replacing callbacks in the update queue with
  30295. // list of Work objects.
  30296. this._onCommit = this._onCommit.bind(this);
  30297. }
  30298. ReactWork.prototype.then = function (onCommit) {
  30299. if (this._didCommit) {
  30300. onCommit();
  30301. return;
  30302. }
  30303. var callbacks = this._callbacks;
  30304. if (callbacks === null) {
  30305. callbacks = this._callbacks = [];
  30306. }
  30307. callbacks.push(onCommit);
  30308. };
  30309. ReactWork.prototype._onCommit = function () {
  30310. if (this._didCommit) {
  30311. return;
  30312. }
  30313. this._didCommit = true;
  30314. var callbacks = this._callbacks;
  30315. if (callbacks === null) {
  30316. return;
  30317. }
  30318. // TODO: Error handling.
  30319. for (var i = 0; i < callbacks.length; i++) {
  30320. var _callback2 = callbacks[i];
  30321. (function () {
  30322. if (!(typeof _callback2 === 'function')) {
  30323. {
  30324. throw ReactError(Error('Invalid argument passed as callback. Expected a function. Instead received: ' + _callback2));
  30325. }
  30326. }
  30327. })();
  30328. _callback2();
  30329. }
  30330. };
  30331. function ReactSyncRoot(container, tag, hydrate) {
  30332. // Tag is either LegacyRoot or Concurrent Root
  30333. var root = createContainer(container, tag, hydrate);
  30334. this._internalRoot = root;
  30335. }
  30336. function ReactRoot(container, hydrate) {
  30337. var root = createContainer(container, ConcurrentRoot, hydrate);
  30338. this._internalRoot = root;
  30339. }
  30340. ReactRoot.prototype.render = ReactSyncRoot.prototype.render = function (children, callback) {
  30341. var root = this._internalRoot;
  30342. var work = new ReactWork();
  30343. callback = callback === undefined ? null : callback;
  30344. {
  30345. warnOnInvalidCallback(callback, 'render');
  30346. }
  30347. if (callback !== null) {
  30348. work.then(callback);
  30349. }
  30350. updateContainer(children, root, null, work._onCommit);
  30351. return work;
  30352. };
  30353. ReactRoot.prototype.unmount = ReactSyncRoot.prototype.unmount = function (callback) {
  30354. var root = this._internalRoot;
  30355. var work = new ReactWork();
  30356. callback = callback === undefined ? null : callback;
  30357. {
  30358. warnOnInvalidCallback(callback, 'render');
  30359. }
  30360. if (callback !== null) {
  30361. work.then(callback);
  30362. }
  30363. updateContainer(null, root, null, work._onCommit);
  30364. return work;
  30365. };
  30366. // Sync roots cannot create batches. Only concurrent ones.
  30367. ReactRoot.prototype.createBatch = function () {
  30368. var batch = new ReactBatch(this);
  30369. var expirationTime = batch._expirationTime;
  30370. var internalRoot = this._internalRoot;
  30371. var firstBatch = internalRoot.firstBatch;
  30372. if (firstBatch === null) {
  30373. internalRoot.firstBatch = batch;
  30374. batch._next = null;
  30375. } else {
  30376. // Insert sorted by expiration time then insertion order
  30377. var insertAfter = null;
  30378. var insertBefore = firstBatch;
  30379. while (insertBefore !== null && insertBefore._expirationTime >= expirationTime) {
  30380. insertAfter = insertBefore;
  30381. insertBefore = insertBefore._next;
  30382. }
  30383. batch._next = insertBefore;
  30384. if (insertAfter !== null) {
  30385. insertAfter._next = batch;
  30386. }
  30387. }
  30388. return batch;
  30389. };
  30390. /**
  30391. * True if the supplied DOM node is a valid node element.
  30392. *
  30393. * @param {?DOMElement} node The candidate DOM node.
  30394. * @return {boolean} True if the DOM is a valid DOM node.
  30395. * @internal
  30396. */
  30397. function isValidContainer(node) {
  30398. return !!(node && (node.nodeType === ELEMENT_NODE || node.nodeType === DOCUMENT_NODE || node.nodeType === DOCUMENT_FRAGMENT_NODE || node.nodeType === COMMENT_NODE && node.nodeValue === ' react-mount-point-unstable '));
  30399. }
  30400. function getReactRootElementInContainer(container) {
  30401. if (!container) {
  30402. return null;
  30403. }
  30404. if (container.nodeType === DOCUMENT_NODE) {
  30405. return container.documentElement;
  30406. } else {
  30407. return container.firstChild;
  30408. }
  30409. }
  30410. function shouldHydrateDueToLegacyHeuristic(container) {
  30411. var rootElement = getReactRootElementInContainer(container);
  30412. return !!(rootElement && rootElement.nodeType === ELEMENT_NODE && rootElement.hasAttribute(ROOT_ATTRIBUTE_NAME));
  30413. }
  30414. setBatchingImplementation(batchedUpdates$1, discreteUpdates$1, flushDiscreteUpdates, batchedEventUpdates$1);
  30415. var warnedAboutHydrateAPI = false;
  30416. function legacyCreateRootFromDOMContainer(container, forceHydrate) {
  30417. var shouldHydrate = forceHydrate || shouldHydrateDueToLegacyHeuristic(container);
  30418. // First clear any existing content.
  30419. if (!shouldHydrate) {
  30420. var warned = false;
  30421. var rootSibling = void 0;
  30422. while (rootSibling = container.lastChild) {
  30423. {
  30424. if (!warned && rootSibling.nodeType === ELEMENT_NODE && rootSibling.hasAttribute(ROOT_ATTRIBUTE_NAME)) {
  30425. warned = true;
  30426. warningWithoutStack$1(false, 'render(): Target node has markup rendered by React, but there ' + 'are unrelated nodes as well. This is most commonly caused by ' + 'white-space inserted around server-rendered markup.');
  30427. }
  30428. }
  30429. container.removeChild(rootSibling);
  30430. }
  30431. }
  30432. {
  30433. if (shouldHydrate && !forceHydrate && !warnedAboutHydrateAPI) {
  30434. warnedAboutHydrateAPI = true;
  30435. lowPriorityWarning$1(false, 'render(): Calling ReactDOM.render() to hydrate server-rendered markup ' + 'will stop working in React v17. Replace the ReactDOM.render() call ' + 'with ReactDOM.hydrate() if you want React to attach to the server HTML.');
  30436. }
  30437. }
  30438. // Legacy roots are not batched.
  30439. return new ReactSyncRoot(container, LegacyRoot, shouldHydrate);
  30440. }
  30441. function legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) {
  30442. {
  30443. topLevelUpdateWarnings(container);
  30444. warnOnInvalidCallback(callback === undefined ? null : callback, 'render');
  30445. }
  30446. // TODO: Without `any` type, Flow says "Property cannot be accessed on any
  30447. // member of intersection type." Whyyyyyy.
  30448. var root = container._reactRootContainer;
  30449. var fiberRoot = void 0;
  30450. if (!root) {
  30451. // Initial mount
  30452. root = container._reactRootContainer = legacyCreateRootFromDOMContainer(container, forceHydrate);
  30453. fiberRoot = root._internalRoot;
  30454. if (typeof callback === 'function') {
  30455. var originalCallback = callback;
  30456. callback = function () {
  30457. var instance = getPublicRootInstance(fiberRoot);
  30458. originalCallback.call(instance);
  30459. };
  30460. }
  30461. // Initial mount should not be batched.
  30462. unbatchedUpdates(function () {
  30463. updateContainer(children, fiberRoot, parentComponent, callback);
  30464. });
  30465. } else {
  30466. fiberRoot = root._internalRoot;
  30467. if (typeof callback === 'function') {
  30468. var _originalCallback = callback;
  30469. callback = function () {
  30470. var instance = getPublicRootInstance(fiberRoot);
  30471. _originalCallback.call(instance);
  30472. };
  30473. }
  30474. // Update
  30475. updateContainer(children, fiberRoot, parentComponent, callback);
  30476. }
  30477. return getPublicRootInstance(fiberRoot);
  30478. }
  30479. function createPortal$$1(children, container) {
  30480. var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  30481. (function () {
  30482. if (!isValidContainer(container)) {
  30483. {
  30484. throw ReactError(Error('Target container is not a DOM element.'));
  30485. }
  30486. }
  30487. })();
  30488. // TODO: pass ReactDOM portal implementation as third argument
  30489. return createPortal$1(children, container, null, key);
  30490. }
  30491. var ReactDOM = {
  30492. createPortal: createPortal$$1,
  30493. findDOMNode: function (componentOrElement) {
  30494. {
  30495. var owner = ReactCurrentOwner.current;
  30496. if (owner !== null && owner.stateNode !== null) {
  30497. var warnedAboutRefsInRender = owner.stateNode._warnedAboutRefsInRender;
  30498. !warnedAboutRefsInRender ? warningWithoutStack$1(false, '%s is accessing findDOMNode inside its render(). ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(owner.type) || 'A component') : void 0;
  30499. owner.stateNode._warnedAboutRefsInRender = true;
  30500. }
  30501. }
  30502. if (componentOrElement == null) {
  30503. return null;
  30504. }
  30505. if (componentOrElement.nodeType === ELEMENT_NODE) {
  30506. return componentOrElement;
  30507. }
  30508. {
  30509. return findHostInstanceWithWarning(componentOrElement, 'findDOMNode');
  30510. }
  30511. return findHostInstance(componentOrElement);
  30512. },
  30513. hydrate: function (element, container, callback) {
  30514. (function () {
  30515. if (!isValidContainer(container)) {
  30516. {
  30517. throw ReactError(Error('Target container is not a DOM element.'));
  30518. }
  30519. }
  30520. })();
  30521. {
  30522. !!container._reactHasBeenPassedToCreateRootDEV ? warningWithoutStack$1(false, 'You are calling ReactDOM.hydrate() on a container that was previously ' + 'passed to ReactDOM.%s(). This is not supported. ' + 'Did you mean to call createRoot(container, {hydrate: true}).render(element)?', enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot') : void 0;
  30523. }
  30524. // TODO: throw or warn if we couldn't hydrate?
  30525. return legacyRenderSubtreeIntoContainer(null, element, container, true, callback);
  30526. },
  30527. render: function (element, container, callback) {
  30528. (function () {
  30529. if (!isValidContainer(container)) {
  30530. {
  30531. throw ReactError(Error('Target container is not a DOM element.'));
  30532. }
  30533. }
  30534. })();
  30535. {
  30536. !!container._reactHasBeenPassedToCreateRootDEV ? warningWithoutStack$1(false, 'You are calling ReactDOM.render() on a container that was previously ' + 'passed to ReactDOM.%s(). This is not supported. ' + 'Did you mean to call root.render(element)?', enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot') : void 0;
  30537. }
  30538. return legacyRenderSubtreeIntoContainer(null, element, container, false, callback);
  30539. },
  30540. unstable_renderSubtreeIntoContainer: function (parentComponent, element, containerNode, callback) {
  30541. (function () {
  30542. if (!isValidContainer(containerNode)) {
  30543. {
  30544. throw ReactError(Error('Target container is not a DOM element.'));
  30545. }
  30546. }
  30547. })();
  30548. (function () {
  30549. if (!(parentComponent != null && has(parentComponent))) {
  30550. {
  30551. throw ReactError(Error('parentComponent must be a valid React Component'));
  30552. }
  30553. }
  30554. })();
  30555. return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback);
  30556. },
  30557. unmountComponentAtNode: function (container) {
  30558. (function () {
  30559. if (!isValidContainer(container)) {
  30560. {
  30561. throw ReactError(Error('unmountComponentAtNode(...): Target container is not a DOM element.'));
  30562. }
  30563. }
  30564. })();
  30565. {
  30566. !!container._reactHasBeenPassedToCreateRootDEV ? warningWithoutStack$1(false, 'You are calling ReactDOM.unmountComponentAtNode() on a container that was previously ' + 'passed to ReactDOM.%s(). This is not supported. Did you mean to call root.unmount()?', enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot') : void 0;
  30567. }
  30568. if (container._reactRootContainer) {
  30569. {
  30570. var rootEl = getReactRootElementInContainer(container);
  30571. var renderedByDifferentReact = rootEl && !getInstanceFromNode$1(rootEl);
  30572. !!renderedByDifferentReact ? warningWithoutStack$1(false, "unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by another copy of React.') : void 0;
  30573. }
  30574. // Unmount should not be batched.
  30575. unbatchedUpdates(function () {
  30576. legacyRenderSubtreeIntoContainer(null, null, container, false, function () {
  30577. container._reactRootContainer = null;
  30578. });
  30579. });
  30580. // If you call unmountComponentAtNode twice in quick succession, you'll
  30581. // get `true` twice. That's probably fine?
  30582. return true;
  30583. } else {
  30584. {
  30585. var _rootEl = getReactRootElementInContainer(container);
  30586. var hasNonRootReactChild = !!(_rootEl && getInstanceFromNode$1(_rootEl));
  30587. // Check if the container itself is a React root node.
  30588. var isContainerReactRoot = container.nodeType === ELEMENT_NODE && isValidContainer(container.parentNode) && !!container.parentNode._reactRootContainer;
  30589. !!hasNonRootReactChild ? warningWithoutStack$1(false, "unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by React and is not a top-level container. %s', isContainerReactRoot ? 'You may have accidentally passed in a React root node instead ' + 'of its container.' : 'Instead, have the parent component update its state and ' + 'rerender in order to remove this component.') : void 0;
  30590. }
  30591. return false;
  30592. }
  30593. },
  30594. // Temporary alias since we already shipped React 16 RC with it.
  30595. // TODO: remove in React 17.
  30596. unstable_createPortal: function () {
  30597. if (!didWarnAboutUnstableCreatePortal) {
  30598. didWarnAboutUnstableCreatePortal = true;
  30599. lowPriorityWarning$1(false, 'The ReactDOM.unstable_createPortal() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactDOM.createPortal() instead. It has the exact same API, ' + 'but without the "unstable_" prefix.');
  30600. }
  30601. return createPortal$$1.apply(undefined, arguments);
  30602. },
  30603. unstable_batchedUpdates: batchedUpdates$1,
  30604. // TODO remove this legacy method, unstable_discreteUpdates replaces it
  30605. unstable_interactiveUpdates: function (fn, a, b, c) {
  30606. flushDiscreteUpdates();
  30607. return discreteUpdates$1(fn, a, b, c);
  30608. },
  30609. unstable_discreteUpdates: discreteUpdates$1,
  30610. unstable_flushDiscreteUpdates: flushDiscreteUpdates,
  30611. flushSync: flushSync,
  30612. unstable_createRoot: createRoot,
  30613. unstable_createSyncRoot: createSyncRoot,
  30614. unstable_flushControlled: flushControlled,
  30615. __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
  30616. // Keep in sync with ReactDOMUnstableNativeDependencies.js
  30617. // ReactTestUtils.js, and ReactTestUtilsAct.js. This is an array for better minification.
  30618. Events: [getInstanceFromNode$1, getNodeFromInstance$1, getFiberCurrentPropsFromNode$1, injection.injectEventPluginsByName, eventNameDispatchConfigs, accumulateTwoPhaseDispatches, accumulateDirectDispatches, enqueueStateRestore, restoreStateIfNeeded, dispatchEvent, runEventsInBatch, flushPassiveEffects, IsThisRendererActing]
  30619. }
  30620. };
  30621. function createRoot(container, options) {
  30622. var functionName = enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot';
  30623. (function () {
  30624. if (!isValidContainer(container)) {
  30625. {
  30626. throw ReactError(Error(functionName + '(...): Target container is not a DOM element.'));
  30627. }
  30628. }
  30629. })();
  30630. warnIfReactDOMContainerInDEV(container);
  30631. var hydrate = options != null && options.hydrate === true;
  30632. return new ReactRoot(container, hydrate);
  30633. }
  30634. function createSyncRoot(container, options) {
  30635. var functionName = enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot';
  30636. (function () {
  30637. if (!isValidContainer(container)) {
  30638. {
  30639. throw ReactError(Error(functionName + '(...): Target container is not a DOM element.'));
  30640. }
  30641. }
  30642. })();
  30643. warnIfReactDOMContainerInDEV(container);
  30644. var hydrate = options != null && options.hydrate === true;
  30645. return new ReactSyncRoot(container, BatchedRoot, hydrate);
  30646. }
  30647. function warnIfReactDOMContainerInDEV(container) {
  30648. {
  30649. !!container._reactRootContainer ? warningWithoutStack$1(false, 'You are calling ReactDOM.%s() on a container that was previously ' + 'passed to ReactDOM.render(). This is not supported.', enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot') : void 0;
  30650. container._reactHasBeenPassedToCreateRootDEV = true;
  30651. }
  30652. }
  30653. if (enableStableConcurrentModeAPIs) {
  30654. ReactDOM.createRoot = createRoot;
  30655. ReactDOM.createSyncRoot = createSyncRoot;
  30656. }
  30657. var foundDevTools = injectIntoDevTools({
  30658. findFiberByHostInstance: getClosestInstanceFromNode,
  30659. bundleType: 1,
  30660. version: ReactVersion,
  30661. rendererPackageName: 'react-dom'
  30662. });
  30663. {
  30664. if (!foundDevTools && canUseDOM && window.top === window.self) {
  30665. // If we're in Chrome or Firefox, provide a download link if not installed.
  30666. if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {
  30667. var protocol = window.location.protocol;
  30668. // Don't warn in exotic cases like chrome-extension://.
  30669. if (/^(https?|file):$/.test(protocol)) {
  30670. console.info('%cDownload the React DevTools ' + 'for a better development experience: ' + 'https://fb.me/react-devtools' + (protocol === 'file:' ? '\nYou might need to use a local HTTP server (instead of file://): ' + 'https://fb.me/react-devtools-faq' : ''), 'font-weight:bold');
  30671. }
  30672. }
  30673. }
  30674. }
  30675. var ReactDOM$2 = Object.freeze({
  30676. default: ReactDOM
  30677. });
  30678. var ReactDOM$3 = ( ReactDOM$2 && ReactDOM ) || ReactDOM$2;
  30679. // TODO: decide on the top-level export form.
  30680. // This is hacky but makes it work with both Rollup and Jest.
  30681. var reactDom = ReactDOM$3.default || ReactDOM$3;
  30682. module.exports = reactDom;
  30683. })();
  30684. }
  30685. /***/ }),
  30686. /***/ "../../node_modules/react-dom/index.js":
  30687. /*!*****************************************************************!*\
  30688. !*** C:/Dev/Babylon/Babylon.js/node_modules/react-dom/index.js ***!
  30689. \*****************************************************************/
  30690. /*! no static exports found */
  30691. /***/ (function(module, exports, __webpack_require__) {
  30692. "use strict";
  30693. function checkDCE() {
  30694. /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
  30695. if (
  30696. typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
  30697. typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
  30698. ) {
  30699. return;
  30700. }
  30701. if (true) {
  30702. // This branch is unreachable because this function is only called
  30703. // in production, but the condition is true only in development.
  30704. // Therefore if the branch is still here, dead code elimination wasn't
  30705. // properly applied.
  30706. // Don't change the message. React DevTools relies on it. Also make sure
  30707. // this message doesn't occur elsewhere in this function, or it will cause
  30708. // a false positive.
  30709. throw new Error('^_^');
  30710. }
  30711. try {
  30712. // Verify that the code above has been dead code eliminated (DCE'd).
  30713. __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
  30714. } catch (err) {
  30715. // DevTools shouldn't crash React, no matter what.
  30716. // We should still report in case we break this code.
  30717. console.error(err);
  30718. }
  30719. }
  30720. if (false) {} else {
  30721. module.exports = __webpack_require__(/*! ./cjs/react-dom.development.js */ "../../node_modules/react-dom/cjs/react-dom.development.js");
  30722. }
  30723. /***/ }),
  30724. /***/ "../../node_modules/react/cjs/react.development.js":
  30725. /*!*****************************************************************************!*\
  30726. !*** C:/Dev/Babylon/Babylon.js/node_modules/react/cjs/react.development.js ***!
  30727. \*****************************************************************************/
  30728. /*! no static exports found */
  30729. /***/ (function(module, exports, __webpack_require__) {
  30730. "use strict";
  30731. /** @license React v16.9.0
  30732. * react.development.js
  30733. *
  30734. * Copyright (c) Facebook, Inc. and its affiliates.
  30735. *
  30736. * This source code is licensed under the MIT license found in the
  30737. * LICENSE file in the root directory of this source tree.
  30738. */
  30739. if (true) {
  30740. (function() {
  30741. 'use strict';
  30742. var _assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  30743. var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  30744. // TODO: this is special because it gets imported during build.
  30745. var ReactVersion = '16.9.0';
  30746. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  30747. // nor polyfill, then a plain number is used for performance.
  30748. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  30749. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  30750. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  30751. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  30752. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  30753. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  30754. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  30755. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
  30756. // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
  30757. // (unstable) APIs that have been removed. Can we remove the symbols?
  30758. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  30759. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  30760. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  30761. var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
  30762. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  30763. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  30764. var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
  30765. var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
  30766. var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  30767. var FAUX_ITERATOR_SYMBOL = '@@iterator';
  30768. function getIteratorFn(maybeIterable) {
  30769. if (maybeIterable === null || typeof maybeIterable !== 'object') {
  30770. return null;
  30771. }
  30772. var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
  30773. if (typeof maybeIterator === 'function') {
  30774. return maybeIterator;
  30775. }
  30776. return null;
  30777. }
  30778. // Do not require this module directly! Use normal `invariant` calls with
  30779. // template literal strings. The messages will be converted to ReactError during
  30780. // build, and in production they will be minified.
  30781. // Do not require this module directly! Use normal `invariant` calls with
  30782. // template literal strings. The messages will be converted to ReactError during
  30783. // build, and in production they will be minified.
  30784. function ReactError(error) {
  30785. error.name = 'Invariant Violation';
  30786. return error;
  30787. }
  30788. /**
  30789. * Use invariant() to assert state which your program assumes to be true.
  30790. *
  30791. * Provide sprintf-style format (only %s is supported) and arguments
  30792. * to provide information about what broke and what you were
  30793. * expecting.
  30794. *
  30795. * The invariant message will be stripped in production, but the invariant
  30796. * will remain to ensure logic does not differ in production.
  30797. */
  30798. /**
  30799. * Forked from fbjs/warning:
  30800. * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
  30801. *
  30802. * Only change is we use console.warn instead of console.error,
  30803. * and do nothing when 'console' is not supported.
  30804. * This really simplifies the code.
  30805. * ---
  30806. * Similar to invariant but only logs a warning if the condition is not met.
  30807. * This can be used to log issues in development environments in critical
  30808. * paths. Removing the logging code for production environments will keep the
  30809. * same logic and follow the same code paths.
  30810. */
  30811. var lowPriorityWarning = function () {};
  30812. {
  30813. var printWarning = function (format) {
  30814. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  30815. args[_key - 1] = arguments[_key];
  30816. }
  30817. var argIndex = 0;
  30818. var message = 'Warning: ' + format.replace(/%s/g, function () {
  30819. return args[argIndex++];
  30820. });
  30821. if (typeof console !== 'undefined') {
  30822. console.warn(message);
  30823. }
  30824. try {
  30825. // --- Welcome to debugging React ---
  30826. // This error was thrown as a convenience so that you can use this stack
  30827. // to find the callsite that caused this warning to fire.
  30828. throw new Error(message);
  30829. } catch (x) {}
  30830. };
  30831. lowPriorityWarning = function (condition, format) {
  30832. if (format === undefined) {
  30833. throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
  30834. }
  30835. if (!condition) {
  30836. for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
  30837. args[_key2 - 2] = arguments[_key2];
  30838. }
  30839. printWarning.apply(undefined, [format].concat(args));
  30840. }
  30841. };
  30842. }
  30843. var lowPriorityWarning$1 = lowPriorityWarning;
  30844. /**
  30845. * Similar to invariant but only logs a warning if the condition is not met.
  30846. * This can be used to log issues in development environments in critical
  30847. * paths. Removing the logging code for production environments will keep the
  30848. * same logic and follow the same code paths.
  30849. */
  30850. var warningWithoutStack = function () {};
  30851. {
  30852. warningWithoutStack = function (condition, format) {
  30853. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  30854. args[_key - 2] = arguments[_key];
  30855. }
  30856. if (format === undefined) {
  30857. throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
  30858. }
  30859. if (args.length > 8) {
  30860. // Check before the condition to catch violations early.
  30861. throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
  30862. }
  30863. if (condition) {
  30864. return;
  30865. }
  30866. if (typeof console !== 'undefined') {
  30867. var argsWithFormat = args.map(function (item) {
  30868. return '' + item;
  30869. });
  30870. argsWithFormat.unshift('Warning: ' + format);
  30871. // We intentionally don't use spread (or .apply) directly because it
  30872. // breaks IE9: https://github.com/facebook/react/issues/13610
  30873. Function.prototype.apply.call(console.error, console, argsWithFormat);
  30874. }
  30875. try {
  30876. // --- Welcome to debugging React ---
  30877. // This error was thrown as a convenience so that you can use this stack
  30878. // to find the callsite that caused this warning to fire.
  30879. var argIndex = 0;
  30880. var message = 'Warning: ' + format.replace(/%s/g, function () {
  30881. return args[argIndex++];
  30882. });
  30883. throw new Error(message);
  30884. } catch (x) {}
  30885. };
  30886. }
  30887. var warningWithoutStack$1 = warningWithoutStack;
  30888. var didWarnStateUpdateForUnmountedComponent = {};
  30889. function warnNoop(publicInstance, callerName) {
  30890. {
  30891. var _constructor = publicInstance.constructor;
  30892. var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
  30893. var warningKey = componentName + '.' + callerName;
  30894. if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
  30895. return;
  30896. }
  30897. warningWithoutStack$1(false, "Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);
  30898. didWarnStateUpdateForUnmountedComponent[warningKey] = true;
  30899. }
  30900. }
  30901. /**
  30902. * This is the abstract API for an update queue.
  30903. */
  30904. var ReactNoopUpdateQueue = {
  30905. /**
  30906. * Checks whether or not this composite component is mounted.
  30907. * @param {ReactClass} publicInstance The instance we want to test.
  30908. * @return {boolean} True if mounted, false otherwise.
  30909. * @protected
  30910. * @final
  30911. */
  30912. isMounted: function (publicInstance) {
  30913. return false;
  30914. },
  30915. /**
  30916. * Forces an update. This should only be invoked when it is known with
  30917. * certainty that we are **not** in a DOM transaction.
  30918. *
  30919. * You may want to call this when you know that some deeper aspect of the
  30920. * component's state has changed but `setState` was not called.
  30921. *
  30922. * This will not invoke `shouldComponentUpdate`, but it will invoke
  30923. * `componentWillUpdate` and `componentDidUpdate`.
  30924. *
  30925. * @param {ReactClass} publicInstance The instance that should rerender.
  30926. * @param {?function} callback Called after component is updated.
  30927. * @param {?string} callerName name of the calling function in the public API.
  30928. * @internal
  30929. */
  30930. enqueueForceUpdate: function (publicInstance, callback, callerName) {
  30931. warnNoop(publicInstance, 'forceUpdate');
  30932. },
  30933. /**
  30934. * Replaces all of the state. Always use this or `setState` to mutate state.
  30935. * You should treat `this.state` as immutable.
  30936. *
  30937. * There is no guarantee that `this.state` will be immediately updated, so
  30938. * accessing `this.state` after calling this method may return the old value.
  30939. *
  30940. * @param {ReactClass} publicInstance The instance that should rerender.
  30941. * @param {object} completeState Next state.
  30942. * @param {?function} callback Called after component is updated.
  30943. * @param {?string} callerName name of the calling function in the public API.
  30944. * @internal
  30945. */
  30946. enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
  30947. warnNoop(publicInstance, 'replaceState');
  30948. },
  30949. /**
  30950. * Sets a subset of the state. This only exists because _pendingState is
  30951. * internal. This provides a merging strategy that is not available to deep
  30952. * properties which is confusing. TODO: Expose pendingState or don't use it
  30953. * during the merge.
  30954. *
  30955. * @param {ReactClass} publicInstance The instance that should rerender.
  30956. * @param {object} partialState Next partial state to be merged with state.
  30957. * @param {?function} callback Called after component is updated.
  30958. * @param {?string} Name of the calling function in the public API.
  30959. * @internal
  30960. */
  30961. enqueueSetState: function (publicInstance, partialState, callback, callerName) {
  30962. warnNoop(publicInstance, 'setState');
  30963. }
  30964. };
  30965. var emptyObject = {};
  30966. {
  30967. Object.freeze(emptyObject);
  30968. }
  30969. /**
  30970. * Base class helpers for the updating state of a component.
  30971. */
  30972. function Component(props, context, updater) {
  30973. this.props = props;
  30974. this.context = context;
  30975. // If a component has string refs, we will assign a different object later.
  30976. this.refs = emptyObject;
  30977. // We initialize the default updater but the real one gets injected by the
  30978. // renderer.
  30979. this.updater = updater || ReactNoopUpdateQueue;
  30980. }
  30981. Component.prototype.isReactComponent = {};
  30982. /**
  30983. * Sets a subset of the state. Always use this to mutate
  30984. * state. You should treat `this.state` as immutable.
  30985. *
  30986. * There is no guarantee that `this.state` will be immediately updated, so
  30987. * accessing `this.state` after calling this method may return the old value.
  30988. *
  30989. * There is no guarantee that calls to `setState` will run synchronously,
  30990. * as they may eventually be batched together. You can provide an optional
  30991. * callback that will be executed when the call to setState is actually
  30992. * completed.
  30993. *
  30994. * When a function is provided to setState, it will be called at some point in
  30995. * the future (not synchronously). It will be called with the up to date
  30996. * component arguments (state, props, context). These values can be different
  30997. * from this.* because your function may be called after receiveProps but before
  30998. * shouldComponentUpdate, and this new state, props, and context will not yet be
  30999. * assigned to this.
  31000. *
  31001. * @param {object|function} partialState Next partial state or function to
  31002. * produce next partial state to be merged with current state.
  31003. * @param {?function} callback Called after state is updated.
  31004. * @final
  31005. * @protected
  31006. */
  31007. Component.prototype.setState = function (partialState, callback) {
  31008. (function () {
  31009. if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
  31010. {
  31011. throw ReactError(Error('setState(...): takes an object of state variables to update or a function which returns an object of state variables.'));
  31012. }
  31013. }
  31014. })();
  31015. this.updater.enqueueSetState(this, partialState, callback, 'setState');
  31016. };
  31017. /**
  31018. * Forces an update. This should only be invoked when it is known with
  31019. * certainty that we are **not** in a DOM transaction.
  31020. *
  31021. * You may want to call this when you know that some deeper aspect of the
  31022. * component's state has changed but `setState` was not called.
  31023. *
  31024. * This will not invoke `shouldComponentUpdate`, but it will invoke
  31025. * `componentWillUpdate` and `componentDidUpdate`.
  31026. *
  31027. * @param {?function} callback Called after update is complete.
  31028. * @final
  31029. * @protected
  31030. */
  31031. Component.prototype.forceUpdate = function (callback) {
  31032. this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
  31033. };
  31034. /**
  31035. * Deprecated APIs. These APIs used to exist on classic React classes but since
  31036. * we would like to deprecate them, we're not going to move them over to this
  31037. * modern base class. Instead, we define a getter that warns if it's accessed.
  31038. */
  31039. {
  31040. var deprecatedAPIs = {
  31041. isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
  31042. replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
  31043. };
  31044. var defineDeprecationWarning = function (methodName, info) {
  31045. Object.defineProperty(Component.prototype, methodName, {
  31046. get: function () {
  31047. lowPriorityWarning$1(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
  31048. return undefined;
  31049. }
  31050. });
  31051. };
  31052. for (var fnName in deprecatedAPIs) {
  31053. if (deprecatedAPIs.hasOwnProperty(fnName)) {
  31054. defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
  31055. }
  31056. }
  31057. }
  31058. function ComponentDummy() {}
  31059. ComponentDummy.prototype = Component.prototype;
  31060. /**
  31061. * Convenience component with default shallow equality check for sCU.
  31062. */
  31063. function PureComponent(props, context, updater) {
  31064. this.props = props;
  31065. this.context = context;
  31066. // If a component has string refs, we will assign a different object later.
  31067. this.refs = emptyObject;
  31068. this.updater = updater || ReactNoopUpdateQueue;
  31069. }
  31070. var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
  31071. pureComponentPrototype.constructor = PureComponent;
  31072. // Avoid an extra prototype jump for these methods.
  31073. _assign(pureComponentPrototype, Component.prototype);
  31074. pureComponentPrototype.isPureReactComponent = true;
  31075. // an immutable object with a single mutable value
  31076. function createRef() {
  31077. var refObject = {
  31078. current: null
  31079. };
  31080. {
  31081. Object.seal(refObject);
  31082. }
  31083. return refObject;
  31084. }
  31085. /**
  31086. * Keeps track of the current dispatcher.
  31087. */
  31088. var ReactCurrentDispatcher = {
  31089. /**
  31090. * @internal
  31091. * @type {ReactComponent}
  31092. */
  31093. current: null
  31094. };
  31095. /**
  31096. * Keeps track of the current batch's configuration such as how long an update
  31097. * should suspend for if it needs to.
  31098. */
  31099. var ReactCurrentBatchConfig = {
  31100. suspense: null
  31101. };
  31102. /**
  31103. * Keeps track of the current owner.
  31104. *
  31105. * The current owner is the component who should own any components that are
  31106. * currently being constructed.
  31107. */
  31108. var ReactCurrentOwner = {
  31109. /**
  31110. * @internal
  31111. * @type {ReactComponent}
  31112. */
  31113. current: null
  31114. };
  31115. var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
  31116. var describeComponentFrame = function (name, source, ownerName) {
  31117. var sourceInfo = '';
  31118. if (source) {
  31119. var path = source.fileName;
  31120. var fileName = path.replace(BEFORE_SLASH_RE, '');
  31121. {
  31122. // In DEV, include code for a common special case:
  31123. // prefer "folder/index.js" instead of just "index.js".
  31124. if (/^index\./.test(fileName)) {
  31125. var match = path.match(BEFORE_SLASH_RE);
  31126. if (match) {
  31127. var pathBeforeSlash = match[1];
  31128. if (pathBeforeSlash) {
  31129. var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
  31130. fileName = folderName + '/' + fileName;
  31131. }
  31132. }
  31133. }
  31134. }
  31135. sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
  31136. } else if (ownerName) {
  31137. sourceInfo = ' (created by ' + ownerName + ')';
  31138. }
  31139. return '\n in ' + (name || 'Unknown') + sourceInfo;
  31140. };
  31141. var Resolved = 1;
  31142. function refineResolvedLazyComponent(lazyComponent) {
  31143. return lazyComponent._status === Resolved ? lazyComponent._result : null;
  31144. }
  31145. function getWrappedName(outerType, innerType, wrapperName) {
  31146. var functionName = innerType.displayName || innerType.name || '';
  31147. return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);
  31148. }
  31149. function getComponentName(type) {
  31150. if (type == null) {
  31151. // Host root, text node or just invalid type.
  31152. return null;
  31153. }
  31154. {
  31155. if (typeof type.tag === 'number') {
  31156. warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
  31157. }
  31158. }
  31159. if (typeof type === 'function') {
  31160. return type.displayName || type.name || null;
  31161. }
  31162. if (typeof type === 'string') {
  31163. return type;
  31164. }
  31165. switch (type) {
  31166. case REACT_FRAGMENT_TYPE:
  31167. return 'Fragment';
  31168. case REACT_PORTAL_TYPE:
  31169. return 'Portal';
  31170. case REACT_PROFILER_TYPE:
  31171. return 'Profiler';
  31172. case REACT_STRICT_MODE_TYPE:
  31173. return 'StrictMode';
  31174. case REACT_SUSPENSE_TYPE:
  31175. return 'Suspense';
  31176. case REACT_SUSPENSE_LIST_TYPE:
  31177. return 'SuspenseList';
  31178. }
  31179. if (typeof type === 'object') {
  31180. switch (type.$$typeof) {
  31181. case REACT_CONTEXT_TYPE:
  31182. return 'Context.Consumer';
  31183. case REACT_PROVIDER_TYPE:
  31184. return 'Context.Provider';
  31185. case REACT_FORWARD_REF_TYPE:
  31186. return getWrappedName(type, type.render, 'ForwardRef');
  31187. case REACT_MEMO_TYPE:
  31188. return getComponentName(type.type);
  31189. case REACT_LAZY_TYPE:
  31190. {
  31191. var thenable = type;
  31192. var resolvedThenable = refineResolvedLazyComponent(thenable);
  31193. if (resolvedThenable) {
  31194. return getComponentName(resolvedThenable);
  31195. }
  31196. break;
  31197. }
  31198. }
  31199. }
  31200. return null;
  31201. }
  31202. var ReactDebugCurrentFrame = {};
  31203. var currentlyValidatingElement = null;
  31204. function setCurrentlyValidatingElement(element) {
  31205. {
  31206. currentlyValidatingElement = element;
  31207. }
  31208. }
  31209. {
  31210. // Stack implementation injected by the current renderer.
  31211. ReactDebugCurrentFrame.getCurrentStack = null;
  31212. ReactDebugCurrentFrame.getStackAddendum = function () {
  31213. var stack = '';
  31214. // Add an extra top frame while an element is being validated
  31215. if (currentlyValidatingElement) {
  31216. var name = getComponentName(currentlyValidatingElement.type);
  31217. var owner = currentlyValidatingElement._owner;
  31218. stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
  31219. }
  31220. // Delegate to the injected renderer-specific implementation
  31221. var impl = ReactDebugCurrentFrame.getCurrentStack;
  31222. if (impl) {
  31223. stack += impl() || '';
  31224. }
  31225. return stack;
  31226. };
  31227. }
  31228. /**
  31229. * Used by act() to track whether you're inside an act() scope.
  31230. */
  31231. var IsSomeRendererActing = {
  31232. current: false
  31233. };
  31234. var ReactSharedInternals = {
  31235. ReactCurrentDispatcher: ReactCurrentDispatcher,
  31236. ReactCurrentBatchConfig: ReactCurrentBatchConfig,
  31237. ReactCurrentOwner: ReactCurrentOwner,
  31238. IsSomeRendererActing: IsSomeRendererActing,
  31239. // Used by renderers to avoid bundling object-assign twice in UMD bundles:
  31240. assign: _assign
  31241. };
  31242. {
  31243. _assign(ReactSharedInternals, {
  31244. // These should not be included in production.
  31245. ReactDebugCurrentFrame: ReactDebugCurrentFrame,
  31246. // Shim for React DOM 16.0.0 which still destructured (but not used) this.
  31247. // TODO: remove in React 17.0.
  31248. ReactComponentTreeHook: {}
  31249. });
  31250. }
  31251. /**
  31252. * Similar to invariant but only logs a warning if the condition is not met.
  31253. * This can be used to log issues in development environments in critical
  31254. * paths. Removing the logging code for production environments will keep the
  31255. * same logic and follow the same code paths.
  31256. */
  31257. var warning = warningWithoutStack$1;
  31258. {
  31259. warning = function (condition, format) {
  31260. if (condition) {
  31261. return;
  31262. }
  31263. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  31264. var stack = ReactDebugCurrentFrame.getStackAddendum();
  31265. // eslint-disable-next-line react-internal/warning-and-invariant-args
  31266. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  31267. args[_key - 2] = arguments[_key];
  31268. }
  31269. warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));
  31270. };
  31271. }
  31272. var warning$1 = warning;
  31273. var hasOwnProperty = Object.prototype.hasOwnProperty;
  31274. var RESERVED_PROPS = {
  31275. key: true,
  31276. ref: true,
  31277. __self: true,
  31278. __source: true
  31279. };
  31280. var specialPropKeyWarningShown = void 0;
  31281. var specialPropRefWarningShown = void 0;
  31282. function hasValidRef(config) {
  31283. {
  31284. if (hasOwnProperty.call(config, 'ref')) {
  31285. var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
  31286. if (getter && getter.isReactWarning) {
  31287. return false;
  31288. }
  31289. }
  31290. }
  31291. return config.ref !== undefined;
  31292. }
  31293. function hasValidKey(config) {
  31294. {
  31295. if (hasOwnProperty.call(config, 'key')) {
  31296. var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
  31297. if (getter && getter.isReactWarning) {
  31298. return false;
  31299. }
  31300. }
  31301. }
  31302. return config.key !== undefined;
  31303. }
  31304. function defineKeyPropWarningGetter(props, displayName) {
  31305. var warnAboutAccessingKey = function () {
  31306. if (!specialPropKeyWarningShown) {
  31307. specialPropKeyWarningShown = true;
  31308. warningWithoutStack$1(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
  31309. }
  31310. };
  31311. warnAboutAccessingKey.isReactWarning = true;
  31312. Object.defineProperty(props, 'key', {
  31313. get: warnAboutAccessingKey,
  31314. configurable: true
  31315. });
  31316. }
  31317. function defineRefPropWarningGetter(props, displayName) {
  31318. var warnAboutAccessingRef = function () {
  31319. if (!specialPropRefWarningShown) {
  31320. specialPropRefWarningShown = true;
  31321. warningWithoutStack$1(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
  31322. }
  31323. };
  31324. warnAboutAccessingRef.isReactWarning = true;
  31325. Object.defineProperty(props, 'ref', {
  31326. get: warnAboutAccessingRef,
  31327. configurable: true
  31328. });
  31329. }
  31330. /**
  31331. * Factory method to create a new React element. This no longer adheres to
  31332. * the class pattern, so do not use new to call it. Also, no instanceof check
  31333. * will work. Instead test $$typeof field against Symbol.for('react.element') to check
  31334. * if something is a React Element.
  31335. *
  31336. * @param {*} type
  31337. * @param {*} props
  31338. * @param {*} key
  31339. * @param {string|object} ref
  31340. * @param {*} owner
  31341. * @param {*} self A *temporary* helper to detect places where `this` is
  31342. * different from the `owner` when React.createElement is called, so that we
  31343. * can warn. We want to get rid of owner and replace string `ref`s with arrow
  31344. * functions, and as long as `this` and owner are the same, there will be no
  31345. * change in behavior.
  31346. * @param {*} source An annotation object (added by a transpiler or otherwise)
  31347. * indicating filename, line number, and/or other information.
  31348. * @internal
  31349. */
  31350. var ReactElement = function (type, key, ref, self, source, owner, props) {
  31351. var element = {
  31352. // This tag allows us to uniquely identify this as a React Element
  31353. $$typeof: REACT_ELEMENT_TYPE,
  31354. // Built-in properties that belong on the element
  31355. type: type,
  31356. key: key,
  31357. ref: ref,
  31358. props: props,
  31359. // Record the component responsible for creating this element.
  31360. _owner: owner
  31361. };
  31362. {
  31363. // The validation flag is currently mutative. We put it on
  31364. // an external backing store so that we can freeze the whole object.
  31365. // This can be replaced with a WeakMap once they are implemented in
  31366. // commonly used development environments.
  31367. element._store = {};
  31368. // To make comparing ReactElements easier for testing purposes, we make
  31369. // the validation flag non-enumerable (where possible, which should
  31370. // include every environment we run tests in), so the test framework
  31371. // ignores it.
  31372. Object.defineProperty(element._store, 'validated', {
  31373. configurable: false,
  31374. enumerable: false,
  31375. writable: true,
  31376. value: false
  31377. });
  31378. // self and source are DEV only properties.
  31379. Object.defineProperty(element, '_self', {
  31380. configurable: false,
  31381. enumerable: false,
  31382. writable: false,
  31383. value: self
  31384. });
  31385. // Two elements created in two different places should be considered
  31386. // equal for testing purposes and therefore we hide it from enumeration.
  31387. Object.defineProperty(element, '_source', {
  31388. configurable: false,
  31389. enumerable: false,
  31390. writable: false,
  31391. value: source
  31392. });
  31393. if (Object.freeze) {
  31394. Object.freeze(element.props);
  31395. Object.freeze(element);
  31396. }
  31397. }
  31398. return element;
  31399. };
  31400. /**
  31401. * https://github.com/reactjs/rfcs/pull/107
  31402. * @param {*} type
  31403. * @param {object} props
  31404. * @param {string} key
  31405. */
  31406. /**
  31407. * https://github.com/reactjs/rfcs/pull/107
  31408. * @param {*} type
  31409. * @param {object} props
  31410. * @param {string} key
  31411. */
  31412. function jsxDEV(type, config, maybeKey, source, self) {
  31413. var propName = void 0;
  31414. // Reserved names are extracted
  31415. var props = {};
  31416. var key = null;
  31417. var ref = null;
  31418. if (hasValidRef(config)) {
  31419. ref = config.ref;
  31420. }
  31421. if (hasValidKey(config)) {
  31422. key = '' + config.key;
  31423. }
  31424. // Remaining properties are added to a new props object
  31425. for (propName in config) {
  31426. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  31427. props[propName] = config[propName];
  31428. }
  31429. }
  31430. // intentionally not checking if key was set above
  31431. // this key is higher priority as it's static
  31432. if (maybeKey !== undefined) {
  31433. key = '' + maybeKey;
  31434. }
  31435. // Resolve default props
  31436. if (type && type.defaultProps) {
  31437. var defaultProps = type.defaultProps;
  31438. for (propName in defaultProps) {
  31439. if (props[propName] === undefined) {
  31440. props[propName] = defaultProps[propName];
  31441. }
  31442. }
  31443. }
  31444. if (key || ref) {
  31445. var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
  31446. if (key) {
  31447. defineKeyPropWarningGetter(props, displayName);
  31448. }
  31449. if (ref) {
  31450. defineRefPropWarningGetter(props, displayName);
  31451. }
  31452. }
  31453. return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
  31454. }
  31455. /**
  31456. * Create and return a new ReactElement of the given type.
  31457. * See https://reactjs.org/docs/react-api.html#createelement
  31458. */
  31459. function createElement(type, config, children) {
  31460. var propName = void 0;
  31461. // Reserved names are extracted
  31462. var props = {};
  31463. var key = null;
  31464. var ref = null;
  31465. var self = null;
  31466. var source = null;
  31467. if (config != null) {
  31468. if (hasValidRef(config)) {
  31469. ref = config.ref;
  31470. }
  31471. if (hasValidKey(config)) {
  31472. key = '' + config.key;
  31473. }
  31474. self = config.__self === undefined ? null : config.__self;
  31475. source = config.__source === undefined ? null : config.__source;
  31476. // Remaining properties are added to a new props object
  31477. for (propName in config) {
  31478. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  31479. props[propName] = config[propName];
  31480. }
  31481. }
  31482. }
  31483. // Children can be more than one argument, and those are transferred onto
  31484. // the newly allocated props object.
  31485. var childrenLength = arguments.length - 2;
  31486. if (childrenLength === 1) {
  31487. props.children = children;
  31488. } else if (childrenLength > 1) {
  31489. var childArray = Array(childrenLength);
  31490. for (var i = 0; i < childrenLength; i++) {
  31491. childArray[i] = arguments[i + 2];
  31492. }
  31493. {
  31494. if (Object.freeze) {
  31495. Object.freeze(childArray);
  31496. }
  31497. }
  31498. props.children = childArray;
  31499. }
  31500. // Resolve default props
  31501. if (type && type.defaultProps) {
  31502. var defaultProps = type.defaultProps;
  31503. for (propName in defaultProps) {
  31504. if (props[propName] === undefined) {
  31505. props[propName] = defaultProps[propName];
  31506. }
  31507. }
  31508. }
  31509. {
  31510. if (key || ref) {
  31511. var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
  31512. if (key) {
  31513. defineKeyPropWarningGetter(props, displayName);
  31514. }
  31515. if (ref) {
  31516. defineRefPropWarningGetter(props, displayName);
  31517. }
  31518. }
  31519. }
  31520. return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
  31521. }
  31522. /**
  31523. * Return a function that produces ReactElements of a given type.
  31524. * See https://reactjs.org/docs/react-api.html#createfactory
  31525. */
  31526. function cloneAndReplaceKey(oldElement, newKey) {
  31527. var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
  31528. return newElement;
  31529. }
  31530. /**
  31531. * Clone and return a new ReactElement using element as the starting point.
  31532. * See https://reactjs.org/docs/react-api.html#cloneelement
  31533. */
  31534. function cloneElement(element, config, children) {
  31535. (function () {
  31536. if (!!(element === null || element === undefined)) {
  31537. {
  31538. throw ReactError(Error('React.cloneElement(...): The argument must be a React element, but you passed ' + element + '.'));
  31539. }
  31540. }
  31541. })();
  31542. var propName = void 0;
  31543. // Original props are copied
  31544. var props = _assign({}, element.props);
  31545. // Reserved names are extracted
  31546. var key = element.key;
  31547. var ref = element.ref;
  31548. // Self is preserved since the owner is preserved.
  31549. var self = element._self;
  31550. // Source is preserved since cloneElement is unlikely to be targeted by a
  31551. // transpiler, and the original source is probably a better indicator of the
  31552. // true owner.
  31553. var source = element._source;
  31554. // Owner will be preserved, unless ref is overridden
  31555. var owner = element._owner;
  31556. if (config != null) {
  31557. if (hasValidRef(config)) {
  31558. // Silently steal the ref from the parent.
  31559. ref = config.ref;
  31560. owner = ReactCurrentOwner.current;
  31561. }
  31562. if (hasValidKey(config)) {
  31563. key = '' + config.key;
  31564. }
  31565. // Remaining properties override existing props
  31566. var defaultProps = void 0;
  31567. if (element.type && element.type.defaultProps) {
  31568. defaultProps = element.type.defaultProps;
  31569. }
  31570. for (propName in config) {
  31571. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  31572. if (config[propName] === undefined && defaultProps !== undefined) {
  31573. // Resolve default props
  31574. props[propName] = defaultProps[propName];
  31575. } else {
  31576. props[propName] = config[propName];
  31577. }
  31578. }
  31579. }
  31580. }
  31581. // Children can be more than one argument, and those are transferred onto
  31582. // the newly allocated props object.
  31583. var childrenLength = arguments.length - 2;
  31584. if (childrenLength === 1) {
  31585. props.children = children;
  31586. } else if (childrenLength > 1) {
  31587. var childArray = Array(childrenLength);
  31588. for (var i = 0; i < childrenLength; i++) {
  31589. childArray[i] = arguments[i + 2];
  31590. }
  31591. props.children = childArray;
  31592. }
  31593. return ReactElement(element.type, key, ref, self, source, owner, props);
  31594. }
  31595. /**
  31596. * Verifies the object is a ReactElement.
  31597. * See https://reactjs.org/docs/react-api.html#isvalidelement
  31598. * @param {?object} object
  31599. * @return {boolean} True if `object` is a ReactElement.
  31600. * @final
  31601. */
  31602. function isValidElement(object) {
  31603. return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
  31604. }
  31605. var SEPARATOR = '.';
  31606. var SUBSEPARATOR = ':';
  31607. /**
  31608. * Escape and wrap key so it is safe to use as a reactid
  31609. *
  31610. * @param {string} key to be escaped.
  31611. * @return {string} the escaped key.
  31612. */
  31613. function escape(key) {
  31614. var escapeRegex = /[=:]/g;
  31615. var escaperLookup = {
  31616. '=': '=0',
  31617. ':': '=2'
  31618. };
  31619. var escapedString = ('' + key).replace(escapeRegex, function (match) {
  31620. return escaperLookup[match];
  31621. });
  31622. return '$' + escapedString;
  31623. }
  31624. /**
  31625. * TODO: Test that a single child and an array with one item have the same key
  31626. * pattern.
  31627. */
  31628. var didWarnAboutMaps = false;
  31629. var userProvidedKeyEscapeRegex = /\/+/g;
  31630. function escapeUserProvidedKey(text) {
  31631. return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
  31632. }
  31633. var POOL_SIZE = 10;
  31634. var traverseContextPool = [];
  31635. function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
  31636. if (traverseContextPool.length) {
  31637. var traverseContext = traverseContextPool.pop();
  31638. traverseContext.result = mapResult;
  31639. traverseContext.keyPrefix = keyPrefix;
  31640. traverseContext.func = mapFunction;
  31641. traverseContext.context = mapContext;
  31642. traverseContext.count = 0;
  31643. return traverseContext;
  31644. } else {
  31645. return {
  31646. result: mapResult,
  31647. keyPrefix: keyPrefix,
  31648. func: mapFunction,
  31649. context: mapContext,
  31650. count: 0
  31651. };
  31652. }
  31653. }
  31654. function releaseTraverseContext(traverseContext) {
  31655. traverseContext.result = null;
  31656. traverseContext.keyPrefix = null;
  31657. traverseContext.func = null;
  31658. traverseContext.context = null;
  31659. traverseContext.count = 0;
  31660. if (traverseContextPool.length < POOL_SIZE) {
  31661. traverseContextPool.push(traverseContext);
  31662. }
  31663. }
  31664. /**
  31665. * @param {?*} children Children tree container.
  31666. * @param {!string} nameSoFar Name of the key path so far.
  31667. * @param {!function} callback Callback to invoke with each child found.
  31668. * @param {?*} traverseContext Used to pass information throughout the traversal
  31669. * process.
  31670. * @return {!number} The number of children in this subtree.
  31671. */
  31672. function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
  31673. var type = typeof children;
  31674. if (type === 'undefined' || type === 'boolean') {
  31675. // All of the above are perceived as null.
  31676. children = null;
  31677. }
  31678. var invokeCallback = false;
  31679. if (children === null) {
  31680. invokeCallback = true;
  31681. } else {
  31682. switch (type) {
  31683. case 'string':
  31684. case 'number':
  31685. invokeCallback = true;
  31686. break;
  31687. case 'object':
  31688. switch (children.$$typeof) {
  31689. case REACT_ELEMENT_TYPE:
  31690. case REACT_PORTAL_TYPE:
  31691. invokeCallback = true;
  31692. }
  31693. }
  31694. }
  31695. if (invokeCallback) {
  31696. callback(traverseContext, children,
  31697. // If it's the only child, treat the name as if it was wrapped in an array
  31698. // so that it's consistent if the number of children grows.
  31699. nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
  31700. return 1;
  31701. }
  31702. var child = void 0;
  31703. var nextName = void 0;
  31704. var subtreeCount = 0; // Count of children found in the current subtree.
  31705. var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
  31706. if (Array.isArray(children)) {
  31707. for (var i = 0; i < children.length; i++) {
  31708. child = children[i];
  31709. nextName = nextNamePrefix + getComponentKey(child, i);
  31710. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  31711. }
  31712. } else {
  31713. var iteratorFn = getIteratorFn(children);
  31714. if (typeof iteratorFn === 'function') {
  31715. {
  31716. // Warn about using Maps as children
  31717. if (iteratorFn === children.entries) {
  31718. !didWarnAboutMaps ? warning$1(false, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.') : void 0;
  31719. didWarnAboutMaps = true;
  31720. }
  31721. }
  31722. var iterator = iteratorFn.call(children);
  31723. var step = void 0;
  31724. var ii = 0;
  31725. while (!(step = iterator.next()).done) {
  31726. child = step.value;
  31727. nextName = nextNamePrefix + getComponentKey(child, ii++);
  31728. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  31729. }
  31730. } else if (type === 'object') {
  31731. var addendum = '';
  31732. {
  31733. addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();
  31734. }
  31735. var childrenString = '' + children;
  31736. (function () {
  31737. {
  31738. {
  31739. throw ReactError(Error('Objects are not valid as a React child (found: ' + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ').' + addendum));
  31740. }
  31741. }
  31742. })();
  31743. }
  31744. }
  31745. return subtreeCount;
  31746. }
  31747. /**
  31748. * Traverses children that are typically specified as `props.children`, but
  31749. * might also be specified through attributes:
  31750. *
  31751. * - `traverseAllChildren(this.props.children, ...)`
  31752. * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
  31753. *
  31754. * The `traverseContext` is an optional argument that is passed through the
  31755. * entire traversal. It can be used to store accumulations or anything else that
  31756. * the callback might find relevant.
  31757. *
  31758. * @param {?*} children Children tree object.
  31759. * @param {!function} callback To invoke upon traversing each child.
  31760. * @param {?*} traverseContext Context for traversal.
  31761. * @return {!number} The number of children in this subtree.
  31762. */
  31763. function traverseAllChildren(children, callback, traverseContext) {
  31764. if (children == null) {
  31765. return 0;
  31766. }
  31767. return traverseAllChildrenImpl(children, '', callback, traverseContext);
  31768. }
  31769. /**
  31770. * Generate a key string that identifies a component within a set.
  31771. *
  31772. * @param {*} component A component that could contain a manual key.
  31773. * @param {number} index Index that is used if a manual key is not provided.
  31774. * @return {string}
  31775. */
  31776. function getComponentKey(component, index) {
  31777. // Do some typechecking here since we call this blindly. We want to ensure
  31778. // that we don't block potential future ES APIs.
  31779. if (typeof component === 'object' && component !== null && component.key != null) {
  31780. // Explicit key
  31781. return escape(component.key);
  31782. }
  31783. // Implicit key determined by the index in the set
  31784. return index.toString(36);
  31785. }
  31786. function forEachSingleChild(bookKeeping, child, name) {
  31787. var func = bookKeeping.func,
  31788. context = bookKeeping.context;
  31789. func.call(context, child, bookKeeping.count++);
  31790. }
  31791. /**
  31792. * Iterates through children that are typically specified as `props.children`.
  31793. *
  31794. * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
  31795. *
  31796. * The provided forEachFunc(child, index) will be called for each
  31797. * leaf child.
  31798. *
  31799. * @param {?*} children Children tree container.
  31800. * @param {function(*, int)} forEachFunc
  31801. * @param {*} forEachContext Context for forEachContext.
  31802. */
  31803. function forEachChildren(children, forEachFunc, forEachContext) {
  31804. if (children == null) {
  31805. return children;
  31806. }
  31807. var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
  31808. traverseAllChildren(children, forEachSingleChild, traverseContext);
  31809. releaseTraverseContext(traverseContext);
  31810. }
  31811. function mapSingleChildIntoContext(bookKeeping, child, childKey) {
  31812. var result = bookKeeping.result,
  31813. keyPrefix = bookKeeping.keyPrefix,
  31814. func = bookKeeping.func,
  31815. context = bookKeeping.context;
  31816. var mappedChild = func.call(context, child, bookKeeping.count++);
  31817. if (Array.isArray(mappedChild)) {
  31818. mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {
  31819. return c;
  31820. });
  31821. } else if (mappedChild != null) {
  31822. if (isValidElement(mappedChild)) {
  31823. mappedChild = cloneAndReplaceKey(mappedChild,
  31824. // Keep both the (mapped) and old keys if they differ, just as
  31825. // traverseAllChildren used to do for objects as children
  31826. keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
  31827. }
  31828. result.push(mappedChild);
  31829. }
  31830. }
  31831. function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
  31832. var escapedPrefix = '';
  31833. if (prefix != null) {
  31834. escapedPrefix = escapeUserProvidedKey(prefix) + '/';
  31835. }
  31836. var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
  31837. traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
  31838. releaseTraverseContext(traverseContext);
  31839. }
  31840. /**
  31841. * Maps children that are typically specified as `props.children`.
  31842. *
  31843. * See https://reactjs.org/docs/react-api.html#reactchildrenmap
  31844. *
  31845. * The provided mapFunction(child, key, index) will be called for each
  31846. * leaf child.
  31847. *
  31848. * @param {?*} children Children tree container.
  31849. * @param {function(*, int)} func The map function.
  31850. * @param {*} context Context for mapFunction.
  31851. * @return {object} Object containing the ordered map of results.
  31852. */
  31853. function mapChildren(children, func, context) {
  31854. if (children == null) {
  31855. return children;
  31856. }
  31857. var result = [];
  31858. mapIntoWithKeyPrefixInternal(children, result, null, func, context);
  31859. return result;
  31860. }
  31861. /**
  31862. * Count the number of children that are typically specified as
  31863. * `props.children`.
  31864. *
  31865. * See https://reactjs.org/docs/react-api.html#reactchildrencount
  31866. *
  31867. * @param {?*} children Children tree container.
  31868. * @return {number} The number of children.
  31869. */
  31870. function countChildren(children) {
  31871. return traverseAllChildren(children, function () {
  31872. return null;
  31873. }, null);
  31874. }
  31875. /**
  31876. * Flatten a children object (typically specified as `props.children`) and
  31877. * return an array with appropriately re-keyed children.
  31878. *
  31879. * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
  31880. */
  31881. function toArray(children) {
  31882. var result = [];
  31883. mapIntoWithKeyPrefixInternal(children, result, null, function (child) {
  31884. return child;
  31885. });
  31886. return result;
  31887. }
  31888. /**
  31889. * Returns the first child in a collection of children and verifies that there
  31890. * is only one child in the collection.
  31891. *
  31892. * See https://reactjs.org/docs/react-api.html#reactchildrenonly
  31893. *
  31894. * The current implementation of this function assumes that a single child gets
  31895. * passed without a wrapper, but the purpose of this helper function is to
  31896. * abstract away the particular structure of children.
  31897. *
  31898. * @param {?object} children Child collection structure.
  31899. * @return {ReactElement} The first and only `ReactElement` contained in the
  31900. * structure.
  31901. */
  31902. function onlyChild(children) {
  31903. (function () {
  31904. if (!isValidElement(children)) {
  31905. {
  31906. throw ReactError(Error('React.Children.only expected to receive a single React element child.'));
  31907. }
  31908. }
  31909. })();
  31910. return children;
  31911. }
  31912. function createContext(defaultValue, calculateChangedBits) {
  31913. if (calculateChangedBits === undefined) {
  31914. calculateChangedBits = null;
  31915. } else {
  31916. {
  31917. !(calculateChangedBits === null || typeof calculateChangedBits === 'function') ? warningWithoutStack$1(false, 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits) : void 0;
  31918. }
  31919. }
  31920. var context = {
  31921. $$typeof: REACT_CONTEXT_TYPE,
  31922. _calculateChangedBits: calculateChangedBits,
  31923. // As a workaround to support multiple concurrent renderers, we categorize
  31924. // some renderers as primary and others as secondary. We only expect
  31925. // there to be two concurrent renderers at most: React Native (primary) and
  31926. // Fabric (secondary); React DOM (primary) and React ART (secondary).
  31927. // Secondary renderers store their context values on separate fields.
  31928. _currentValue: defaultValue,
  31929. _currentValue2: defaultValue,
  31930. // Used to track how many concurrent renderers this context currently
  31931. // supports within in a single renderer. Such as parallel server rendering.
  31932. _threadCount: 0,
  31933. // These are circular
  31934. Provider: null,
  31935. Consumer: null
  31936. };
  31937. context.Provider = {
  31938. $$typeof: REACT_PROVIDER_TYPE,
  31939. _context: context
  31940. };
  31941. var hasWarnedAboutUsingNestedContextConsumers = false;
  31942. var hasWarnedAboutUsingConsumerProvider = false;
  31943. {
  31944. // A separate object, but proxies back to the original context object for
  31945. // backwards compatibility. It has a different $$typeof, so we can properly
  31946. // warn for the incorrect usage of Context as a Consumer.
  31947. var Consumer = {
  31948. $$typeof: REACT_CONTEXT_TYPE,
  31949. _context: context,
  31950. _calculateChangedBits: context._calculateChangedBits
  31951. };
  31952. // $FlowFixMe: Flow complains about not setting a value, which is intentional here
  31953. Object.defineProperties(Consumer, {
  31954. Provider: {
  31955. get: function () {
  31956. if (!hasWarnedAboutUsingConsumerProvider) {
  31957. hasWarnedAboutUsingConsumerProvider = true;
  31958. warning$1(false, 'Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');
  31959. }
  31960. return context.Provider;
  31961. },
  31962. set: function (_Provider) {
  31963. context.Provider = _Provider;
  31964. }
  31965. },
  31966. _currentValue: {
  31967. get: function () {
  31968. return context._currentValue;
  31969. },
  31970. set: function (_currentValue) {
  31971. context._currentValue = _currentValue;
  31972. }
  31973. },
  31974. _currentValue2: {
  31975. get: function () {
  31976. return context._currentValue2;
  31977. },
  31978. set: function (_currentValue2) {
  31979. context._currentValue2 = _currentValue2;
  31980. }
  31981. },
  31982. _threadCount: {
  31983. get: function () {
  31984. return context._threadCount;
  31985. },
  31986. set: function (_threadCount) {
  31987. context._threadCount = _threadCount;
  31988. }
  31989. },
  31990. Consumer: {
  31991. get: function () {
  31992. if (!hasWarnedAboutUsingNestedContextConsumers) {
  31993. hasWarnedAboutUsingNestedContextConsumers = true;
  31994. warning$1(false, 'Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
  31995. }
  31996. return context.Consumer;
  31997. }
  31998. }
  31999. });
  32000. // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
  32001. context.Consumer = Consumer;
  32002. }
  32003. {
  32004. context._currentRenderer = null;
  32005. context._currentRenderer2 = null;
  32006. }
  32007. return context;
  32008. }
  32009. function lazy(ctor) {
  32010. var lazyType = {
  32011. $$typeof: REACT_LAZY_TYPE,
  32012. _ctor: ctor,
  32013. // React uses these fields to store the result.
  32014. _status: -1,
  32015. _result: null
  32016. };
  32017. {
  32018. // In production, this would just set it on the object.
  32019. var defaultProps = void 0;
  32020. var propTypes = void 0;
  32021. Object.defineProperties(lazyType, {
  32022. defaultProps: {
  32023. configurable: true,
  32024. get: function () {
  32025. return defaultProps;
  32026. },
  32027. set: function (newDefaultProps) {
  32028. warning$1(false, 'React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
  32029. defaultProps = newDefaultProps;
  32030. // Match production behavior more closely:
  32031. Object.defineProperty(lazyType, 'defaultProps', {
  32032. enumerable: true
  32033. });
  32034. }
  32035. },
  32036. propTypes: {
  32037. configurable: true,
  32038. get: function () {
  32039. return propTypes;
  32040. },
  32041. set: function (newPropTypes) {
  32042. warning$1(false, 'React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
  32043. propTypes = newPropTypes;
  32044. // Match production behavior more closely:
  32045. Object.defineProperty(lazyType, 'propTypes', {
  32046. enumerable: true
  32047. });
  32048. }
  32049. }
  32050. });
  32051. }
  32052. return lazyType;
  32053. }
  32054. function forwardRef(render) {
  32055. {
  32056. if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
  32057. warningWithoutStack$1(false, 'forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
  32058. } else if (typeof render !== 'function') {
  32059. warningWithoutStack$1(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
  32060. } else {
  32061. !(
  32062. // Do not warn for 0 arguments because it could be due to usage of the 'arguments' object
  32063. render.length === 0 || render.length === 2) ? warningWithoutStack$1(false, 'forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.') : void 0;
  32064. }
  32065. if (render != null) {
  32066. !(render.defaultProps == null && render.propTypes == null) ? warningWithoutStack$1(false, 'forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?') : void 0;
  32067. }
  32068. }
  32069. return {
  32070. $$typeof: REACT_FORWARD_REF_TYPE,
  32071. render: render
  32072. };
  32073. }
  32074. function isValidElementType(type) {
  32075. return typeof type === 'string' || typeof type === 'function' ||
  32076. // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
  32077. type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE);
  32078. }
  32079. function memo(type, compare) {
  32080. {
  32081. if (!isValidElementType(type)) {
  32082. warningWithoutStack$1(false, 'memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
  32083. }
  32084. }
  32085. return {
  32086. $$typeof: REACT_MEMO_TYPE,
  32087. type: type,
  32088. compare: compare === undefined ? null : compare
  32089. };
  32090. }
  32091. function resolveDispatcher() {
  32092. var dispatcher = ReactCurrentDispatcher.current;
  32093. (function () {
  32094. if (!(dispatcher !== null)) {
  32095. {
  32096. throw ReactError(Error('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://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.'));
  32097. }
  32098. }
  32099. })();
  32100. return dispatcher;
  32101. }
  32102. function useContext(Context, unstable_observedBits) {
  32103. var dispatcher = resolveDispatcher();
  32104. {
  32105. !(unstable_observedBits === undefined) ? warning$1(false, 'useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://fb.me/rules-of-hooks' : '') : void 0;
  32106. // TODO: add a more generic warning for invalid values.
  32107. if (Context._context !== undefined) {
  32108. var realContext = Context._context;
  32109. // Don't deduplicate because this legitimately causes bugs
  32110. // and nobody should be using this in existing code.
  32111. if (realContext.Consumer === Context) {
  32112. warning$1(false, 'Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');
  32113. } else if (realContext.Provider === Context) {
  32114. warning$1(false, 'Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
  32115. }
  32116. }
  32117. }
  32118. return dispatcher.useContext(Context, unstable_observedBits);
  32119. }
  32120. function useState(initialState) {
  32121. var dispatcher = resolveDispatcher();
  32122. return dispatcher.useState(initialState);
  32123. }
  32124. function useReducer(reducer, initialArg, init) {
  32125. var dispatcher = resolveDispatcher();
  32126. return dispatcher.useReducer(reducer, initialArg, init);
  32127. }
  32128. function useRef(initialValue) {
  32129. var dispatcher = resolveDispatcher();
  32130. return dispatcher.useRef(initialValue);
  32131. }
  32132. function useEffect(create, inputs) {
  32133. var dispatcher = resolveDispatcher();
  32134. return dispatcher.useEffect(create, inputs);
  32135. }
  32136. function useLayoutEffect(create, inputs) {
  32137. var dispatcher = resolveDispatcher();
  32138. return dispatcher.useLayoutEffect(create, inputs);
  32139. }
  32140. function useCallback(callback, inputs) {
  32141. var dispatcher = resolveDispatcher();
  32142. return dispatcher.useCallback(callback, inputs);
  32143. }
  32144. function useMemo(create, inputs) {
  32145. var dispatcher = resolveDispatcher();
  32146. return dispatcher.useMemo(create, inputs);
  32147. }
  32148. function useImperativeHandle(ref, create, inputs) {
  32149. var dispatcher = resolveDispatcher();
  32150. return dispatcher.useImperativeHandle(ref, create, inputs);
  32151. }
  32152. function useDebugValue(value, formatterFn) {
  32153. {
  32154. var dispatcher = resolveDispatcher();
  32155. return dispatcher.useDebugValue(value, formatterFn);
  32156. }
  32157. }
  32158. var emptyObject$1 = {};
  32159. function useResponder(responder, listenerProps) {
  32160. var dispatcher = resolveDispatcher();
  32161. {
  32162. if (responder == null || responder.$$typeof !== REACT_RESPONDER_TYPE) {
  32163. warning$1(false, 'useResponder: invalid first argument. Expected an event responder, but instead got %s', responder);
  32164. return;
  32165. }
  32166. }
  32167. return dispatcher.useResponder(responder, listenerProps || emptyObject$1);
  32168. }
  32169. // Within the scope of the callback, mark all updates as being allowed to suspend.
  32170. function withSuspenseConfig(scope, config) {
  32171. var previousConfig = ReactCurrentBatchConfig.suspense;
  32172. ReactCurrentBatchConfig.suspense = config === undefined ? null : config;
  32173. try {
  32174. scope();
  32175. } finally {
  32176. ReactCurrentBatchConfig.suspense = previousConfig;
  32177. }
  32178. }
  32179. /**
  32180. * ReactElementValidator provides a wrapper around a element factory
  32181. * which validates the props passed to the element. This is intended to be
  32182. * used only in DEV and could be replaced by a static type checker for languages
  32183. * that support it.
  32184. */
  32185. var propTypesMisspellWarningShown = void 0;
  32186. {
  32187. propTypesMisspellWarningShown = false;
  32188. }
  32189. function getDeclarationErrorAddendum() {
  32190. if (ReactCurrentOwner.current) {
  32191. var name = getComponentName(ReactCurrentOwner.current.type);
  32192. if (name) {
  32193. return '\n\nCheck the render method of `' + name + '`.';
  32194. }
  32195. }
  32196. return '';
  32197. }
  32198. function getSourceInfoErrorAddendum(source) {
  32199. if (source !== undefined) {
  32200. var fileName = source.fileName.replace(/^.*[\\\/]/, '');
  32201. var lineNumber = source.lineNumber;
  32202. return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
  32203. }
  32204. return '';
  32205. }
  32206. function getSourceInfoErrorAddendumForProps(elementProps) {
  32207. if (elementProps !== null && elementProps !== undefined) {
  32208. return getSourceInfoErrorAddendum(elementProps.__source);
  32209. }
  32210. return '';
  32211. }
  32212. /**
  32213. * Warn if there's no key explicitly set on dynamic arrays of children or
  32214. * object keys are not valid. This allows us to keep track of children between
  32215. * updates.
  32216. */
  32217. var ownerHasKeyUseWarning = {};
  32218. function getCurrentComponentErrorInfo(parentType) {
  32219. var info = getDeclarationErrorAddendum();
  32220. if (!info) {
  32221. var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
  32222. if (parentName) {
  32223. info = '\n\nCheck the top-level render call using <' + parentName + '>.';
  32224. }
  32225. }
  32226. return info;
  32227. }
  32228. /**
  32229. * Warn if the element doesn't have an explicit key assigned to it.
  32230. * This element is in an array. The array could grow and shrink or be
  32231. * reordered. All children that haven't already been validated are required to
  32232. * have a "key" property assigned to it. Error statuses are cached so a warning
  32233. * will only be shown once.
  32234. *
  32235. * @internal
  32236. * @param {ReactElement} element Element that requires a key.
  32237. * @param {*} parentType element's parent's type.
  32238. */
  32239. function validateExplicitKey(element, parentType) {
  32240. if (!element._store || element._store.validated || element.key != null) {
  32241. return;
  32242. }
  32243. element._store.validated = true;
  32244. var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
  32245. if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
  32246. return;
  32247. }
  32248. ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
  32249. // Usually the current owner is the offender, but if it accepts children as a
  32250. // property, it may be the creator of the child that's responsible for
  32251. // assigning it a key.
  32252. var childOwner = '';
  32253. if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
  32254. // Give the component that originally created this child.
  32255. childOwner = ' It was passed a child from ' + getComponentName(element._owner.type) + '.';
  32256. }
  32257. setCurrentlyValidatingElement(element);
  32258. {
  32259. warning$1(false, 'Each child in a list should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);
  32260. }
  32261. setCurrentlyValidatingElement(null);
  32262. }
  32263. /**
  32264. * Ensure that every element either is passed in a static location, in an
  32265. * array with an explicit keys property defined, or in an object literal
  32266. * with valid key property.
  32267. *
  32268. * @internal
  32269. * @param {ReactNode} node Statically passed child of any type.
  32270. * @param {*} parentType node's parent's type.
  32271. */
  32272. function validateChildKeys(node, parentType) {
  32273. if (typeof node !== 'object') {
  32274. return;
  32275. }
  32276. if (Array.isArray(node)) {
  32277. for (var i = 0; i < node.length; i++) {
  32278. var child = node[i];
  32279. if (isValidElement(child)) {
  32280. validateExplicitKey(child, parentType);
  32281. }
  32282. }
  32283. } else if (isValidElement(node)) {
  32284. // This element was passed in a valid location.
  32285. if (node._store) {
  32286. node._store.validated = true;
  32287. }
  32288. } else if (node) {
  32289. var iteratorFn = getIteratorFn(node);
  32290. if (typeof iteratorFn === 'function') {
  32291. // Entry iterators used to provide implicit keys,
  32292. // but now we print a separate warning for them later.
  32293. if (iteratorFn !== node.entries) {
  32294. var iterator = iteratorFn.call(node);
  32295. var step = void 0;
  32296. while (!(step = iterator.next()).done) {
  32297. if (isValidElement(step.value)) {
  32298. validateExplicitKey(step.value, parentType);
  32299. }
  32300. }
  32301. }
  32302. }
  32303. }
  32304. }
  32305. /**
  32306. * Given an element, validate that its props follow the propTypes definition,
  32307. * provided by the type.
  32308. *
  32309. * @param {ReactElement} element
  32310. */
  32311. function validatePropTypes(element) {
  32312. var type = element.type;
  32313. if (type === null || type === undefined || typeof type === 'string') {
  32314. return;
  32315. }
  32316. var name = getComponentName(type);
  32317. var propTypes = void 0;
  32318. if (typeof type === 'function') {
  32319. propTypes = type.propTypes;
  32320. } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE ||
  32321. // Note: Memo only checks outer props here.
  32322. // Inner props are checked in the reconciler.
  32323. type.$$typeof === REACT_MEMO_TYPE)) {
  32324. propTypes = type.propTypes;
  32325. } else {
  32326. return;
  32327. }
  32328. if (propTypes) {
  32329. setCurrentlyValidatingElement(element);
  32330. checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);
  32331. setCurrentlyValidatingElement(null);
  32332. } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
  32333. propTypesMisspellWarningShown = true;
  32334. warningWithoutStack$1(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
  32335. }
  32336. if (typeof type.getDefaultProps === 'function') {
  32337. !type.getDefaultProps.isReactClassApproved ? warningWithoutStack$1(false, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;
  32338. }
  32339. }
  32340. /**
  32341. * Given a fragment, validate that it can only be provided with fragment props
  32342. * @param {ReactElement} fragment
  32343. */
  32344. function validateFragmentProps(fragment) {
  32345. setCurrentlyValidatingElement(fragment);
  32346. var keys = Object.keys(fragment.props);
  32347. for (var i = 0; i < keys.length; i++) {
  32348. var key = keys[i];
  32349. if (key !== 'children' && key !== 'key') {
  32350. warning$1(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
  32351. break;
  32352. }
  32353. }
  32354. if (fragment.ref !== null) {
  32355. warning$1(false, 'Invalid attribute `ref` supplied to `React.Fragment`.');
  32356. }
  32357. setCurrentlyValidatingElement(null);
  32358. }
  32359. function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
  32360. var validType = isValidElementType(type);
  32361. // We warn in this case but don't throw. We expect the element creation to
  32362. // succeed and there will likely be errors in render.
  32363. if (!validType) {
  32364. var info = '';
  32365. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  32366. info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
  32367. }
  32368. var sourceInfo = getSourceInfoErrorAddendum(source);
  32369. if (sourceInfo) {
  32370. info += sourceInfo;
  32371. } else {
  32372. info += getDeclarationErrorAddendum();
  32373. }
  32374. var typeString = void 0;
  32375. if (type === null) {
  32376. typeString = 'null';
  32377. } else if (Array.isArray(type)) {
  32378. typeString = 'array';
  32379. } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
  32380. typeString = '<' + (getComponentName(type.type) || 'Unknown') + ' />';
  32381. info = ' Did you accidentally export a JSX literal instead of a component?';
  32382. } else {
  32383. typeString = typeof type;
  32384. }
  32385. warning$1(false, 'React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
  32386. }
  32387. var element = jsxDEV(type, props, key, source, self);
  32388. // The result can be nullish if a mock or a custom function is used.
  32389. // TODO: Drop this when these are no longer allowed as the type argument.
  32390. if (element == null) {
  32391. return element;
  32392. }
  32393. // Skip key warning if the type isn't valid since our key validation logic
  32394. // doesn't expect a non-string/function type and can throw confusing errors.
  32395. // We don't want exception behavior to differ between dev and prod.
  32396. // (Rendering will throw with a helpful message and as soon as the type is
  32397. // fixed, the key warnings will appear.)
  32398. if (validType) {
  32399. var children = props.children;
  32400. if (children !== undefined) {
  32401. if (isStaticChildren) {
  32402. for (var i = 0; i < children.length; i++) {
  32403. validateChildKeys(children[i], type);
  32404. }
  32405. } else {
  32406. validateChildKeys(children, type);
  32407. }
  32408. }
  32409. }
  32410. if (props.key !== undefined) {
  32411. warning$1(false, 'React.jsx: Spreading a key to JSX is a deprecated pattern. ' + 'Explicitly pass a key after spreading props in your JSX call. ' + 'E.g. <ComponentName {...props} key={key} />');
  32412. }
  32413. if (type === REACT_FRAGMENT_TYPE) {
  32414. validateFragmentProps(element);
  32415. } else {
  32416. validatePropTypes(element);
  32417. }
  32418. return element;
  32419. }
  32420. // These two functions exist to still get child warnings in dev
  32421. // even with the prod transform. This means that jsxDEV is purely
  32422. // opt-in behavior for better messages but that we won't stop
  32423. // giving you warnings if you use production apis.
  32424. function jsxWithValidationStatic(type, props, key) {
  32425. return jsxWithValidation(type, props, key, true);
  32426. }
  32427. function jsxWithValidationDynamic(type, props, key) {
  32428. return jsxWithValidation(type, props, key, false);
  32429. }
  32430. function createElementWithValidation(type, props, children) {
  32431. var validType = isValidElementType(type);
  32432. // We warn in this case but don't throw. We expect the element creation to
  32433. // succeed and there will likely be errors in render.
  32434. if (!validType) {
  32435. var info = '';
  32436. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  32437. info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
  32438. }
  32439. var sourceInfo = getSourceInfoErrorAddendumForProps(props);
  32440. if (sourceInfo) {
  32441. info += sourceInfo;
  32442. } else {
  32443. info += getDeclarationErrorAddendum();
  32444. }
  32445. var typeString = void 0;
  32446. if (type === null) {
  32447. typeString = 'null';
  32448. } else if (Array.isArray(type)) {
  32449. typeString = 'array';
  32450. } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
  32451. typeString = '<' + (getComponentName(type.type) || 'Unknown') + ' />';
  32452. info = ' Did you accidentally export a JSX literal instead of a component?';
  32453. } else {
  32454. typeString = typeof type;
  32455. }
  32456. warning$1(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
  32457. }
  32458. var element = createElement.apply(this, arguments);
  32459. // The result can be nullish if a mock or a custom function is used.
  32460. // TODO: Drop this when these are no longer allowed as the type argument.
  32461. if (element == null) {
  32462. return element;
  32463. }
  32464. // Skip key warning if the type isn't valid since our key validation logic
  32465. // doesn't expect a non-string/function type and can throw confusing errors.
  32466. // We don't want exception behavior to differ between dev and prod.
  32467. // (Rendering will throw with a helpful message and as soon as the type is
  32468. // fixed, the key warnings will appear.)
  32469. if (validType) {
  32470. for (var i = 2; i < arguments.length; i++) {
  32471. validateChildKeys(arguments[i], type);
  32472. }
  32473. }
  32474. if (type === REACT_FRAGMENT_TYPE) {
  32475. validateFragmentProps(element);
  32476. } else {
  32477. validatePropTypes(element);
  32478. }
  32479. return element;
  32480. }
  32481. function createFactoryWithValidation(type) {
  32482. var validatedFactory = createElementWithValidation.bind(null, type);
  32483. validatedFactory.type = type;
  32484. // Legacy hook: remove it
  32485. {
  32486. Object.defineProperty(validatedFactory, 'type', {
  32487. enumerable: false,
  32488. get: function () {
  32489. lowPriorityWarning$1(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
  32490. Object.defineProperty(this, 'type', {
  32491. value: type
  32492. });
  32493. return type;
  32494. }
  32495. });
  32496. }
  32497. return validatedFactory;
  32498. }
  32499. function cloneElementWithValidation(element, props, children) {
  32500. var newElement = cloneElement.apply(this, arguments);
  32501. for (var i = 2; i < arguments.length; i++) {
  32502. validateChildKeys(arguments[i], newElement.type);
  32503. }
  32504. validatePropTypes(newElement);
  32505. return newElement;
  32506. }
  32507. var hasBadMapPolyfill = void 0;
  32508. {
  32509. hasBadMapPolyfill = false;
  32510. try {
  32511. var frozenObject = Object.freeze({});
  32512. var testMap = new Map([[frozenObject, null]]);
  32513. var testSet = new Set([frozenObject]);
  32514. // This is necessary for Rollup to not consider these unused.
  32515. // https://github.com/rollup/rollup/issues/1771
  32516. // TODO: we can remove these if Rollup fixes the bug.
  32517. testMap.set(0, 0);
  32518. testSet.add(0);
  32519. } catch (e) {
  32520. // TODO: Consider warning about bad polyfills
  32521. hasBadMapPolyfill = true;
  32522. }
  32523. }
  32524. function createFundamentalComponent(impl) {
  32525. // We use responder as a Map key later on. When we have a bad
  32526. // polyfill, then we can't use it as a key as the polyfill tries
  32527. // to add a property to the object.
  32528. if ( true && !hasBadMapPolyfill) {
  32529. Object.freeze(impl);
  32530. }
  32531. var fundamantalComponent = {
  32532. $$typeof: REACT_FUNDAMENTAL_TYPE,
  32533. impl: impl
  32534. };
  32535. {
  32536. Object.freeze(fundamantalComponent);
  32537. }
  32538. return fundamantalComponent;
  32539. }
  32540. function createEventResponder(displayName, responderConfig) {
  32541. var getInitialState = responderConfig.getInitialState,
  32542. onEvent = responderConfig.onEvent,
  32543. onMount = responderConfig.onMount,
  32544. onUnmount = responderConfig.onUnmount,
  32545. onOwnershipChange = responderConfig.onOwnershipChange,
  32546. onRootEvent = responderConfig.onRootEvent,
  32547. rootEventTypes = responderConfig.rootEventTypes,
  32548. targetEventTypes = responderConfig.targetEventTypes;
  32549. var eventResponder = {
  32550. $$typeof: REACT_RESPONDER_TYPE,
  32551. displayName: displayName,
  32552. getInitialState: getInitialState || null,
  32553. onEvent: onEvent || null,
  32554. onMount: onMount || null,
  32555. onOwnershipChange: onOwnershipChange || null,
  32556. onRootEvent: onRootEvent || null,
  32557. onUnmount: onUnmount || null,
  32558. rootEventTypes: rootEventTypes || null,
  32559. targetEventTypes: targetEventTypes || null
  32560. };
  32561. // We use responder as a Map key later on. When we have a bad
  32562. // polyfill, then we can't use it as a key as the polyfill tries
  32563. // to add a property to the object.
  32564. if ( true && !hasBadMapPolyfill) {
  32565. Object.freeze(eventResponder);
  32566. }
  32567. return eventResponder;
  32568. }
  32569. // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
  32570. // In some cases, StrictMode should also double-render lifecycles.
  32571. // This can be confusing for tests though,
  32572. // And it can be bad for performance in production.
  32573. // This feature flag can be used to control the behavior:
  32574. // To preserve the "Pause on caught exceptions" behavior of the debugger, we
  32575. // replay the begin phase of a failed component inside invokeGuardedCallback.
  32576. // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
  32577. // Gather advanced timing metrics for Profiler subtrees.
  32578. // Trace which interactions trigger each commit.
  32579. // Only used in www builds.
  32580. // TODO: true? Here it might just be false.
  32581. // Only used in www builds.
  32582. // Only used in www builds.
  32583. // Disable javascript: URL strings in href for XSS protection.
  32584. // React Fire: prevent the value and checked attributes from syncing
  32585. // with their related DOM properties
  32586. // These APIs will no longer be "unstable" in the upcoming 16.7 release,
  32587. // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
  32588. // See https://github.com/react-native-community/discussions-and-proposals/issues/72 for more information
  32589. // This is a flag so we can fix warnings in RN core before turning it on
  32590. // Experimental React Flare event system and event components support.
  32591. var enableFlareAPI = false;
  32592. // Experimental Host Component support.
  32593. var enableFundamentalAPI = false;
  32594. // New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107
  32595. var enableJSXTransformAPI = false;
  32596. // We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?)
  32597. // Till then, we warn about the missing mock, but still fallback to a sync mode compatible version
  32598. // Temporary flag to revert the fix in #15650
  32599. // For tests, we flush suspense fallbacks in an act scope;
  32600. // *except* in some of our own tests, where we test incremental loading states.
  32601. // Changes priority of some events like mousemove to user-blocking priority,
  32602. // but without making them discrete. The flag exists in case it causes
  32603. // starvation problems.
  32604. // Add a callback property to suspense to notify which promises are currently
  32605. // in the update queue. This allows reporting and tracing of what is causing
  32606. // the user to see a loading state.
  32607. // Part of the simplification of React.createElement so we can eventually move
  32608. // from React.createElement to React.jsx
  32609. // https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md
  32610. var React = {
  32611. Children: {
  32612. map: mapChildren,
  32613. forEach: forEachChildren,
  32614. count: countChildren,
  32615. toArray: toArray,
  32616. only: onlyChild
  32617. },
  32618. createRef: createRef,
  32619. Component: Component,
  32620. PureComponent: PureComponent,
  32621. createContext: createContext,
  32622. forwardRef: forwardRef,
  32623. lazy: lazy,
  32624. memo: memo,
  32625. useCallback: useCallback,
  32626. useContext: useContext,
  32627. useEffect: useEffect,
  32628. useImperativeHandle: useImperativeHandle,
  32629. useDebugValue: useDebugValue,
  32630. useLayoutEffect: useLayoutEffect,
  32631. useMemo: useMemo,
  32632. useReducer: useReducer,
  32633. useRef: useRef,
  32634. useState: useState,
  32635. Fragment: REACT_FRAGMENT_TYPE,
  32636. Profiler: REACT_PROFILER_TYPE,
  32637. StrictMode: REACT_STRICT_MODE_TYPE,
  32638. Suspense: REACT_SUSPENSE_TYPE,
  32639. unstable_SuspenseList: REACT_SUSPENSE_LIST_TYPE,
  32640. createElement: createElementWithValidation,
  32641. cloneElement: cloneElementWithValidation,
  32642. createFactory: createFactoryWithValidation,
  32643. isValidElement: isValidElement,
  32644. version: ReactVersion,
  32645. unstable_withSuspenseConfig: withSuspenseConfig,
  32646. __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals
  32647. };
  32648. if (enableFlareAPI) {
  32649. React.unstable_useResponder = useResponder;
  32650. React.unstable_createResponder = createEventResponder;
  32651. }
  32652. if (enableFundamentalAPI) {
  32653. React.unstable_createFundamental = createFundamentalComponent;
  32654. }
  32655. // Note: some APIs are added with feature flags.
  32656. // Make sure that stable builds for open source
  32657. // don't modify the React object to avoid deopts.
  32658. // Also let's not expose their names in stable builds.
  32659. if (enableJSXTransformAPI) {
  32660. {
  32661. React.jsxDEV = jsxWithValidation;
  32662. React.jsx = jsxWithValidationDynamic;
  32663. React.jsxs = jsxWithValidationStatic;
  32664. }
  32665. }
  32666. var React$2 = Object.freeze({
  32667. default: React
  32668. });
  32669. var React$3 = ( React$2 && React ) || React$2;
  32670. // TODO: decide on the top-level export form.
  32671. // This is hacky but makes it work with both Rollup and Jest.
  32672. var react = React$3.default || React$3;
  32673. module.exports = react;
  32674. })();
  32675. }
  32676. /***/ }),
  32677. /***/ "../../node_modules/react/index.js":
  32678. /*!*************************************************************!*\
  32679. !*** C:/Dev/Babylon/Babylon.js/node_modules/react/index.js ***!
  32680. \*************************************************************/
  32681. /*! no static exports found */
  32682. /***/ (function(module, exports, __webpack_require__) {
  32683. "use strict";
  32684. if (false) {} else {
  32685. module.exports = __webpack_require__(/*! ./cjs/react.development.js */ "../../node_modules/react/cjs/react.development.js");
  32686. }
  32687. /***/ }),
  32688. /***/ "../../node_modules/scheduler/cjs/scheduler-tracing.development.js":
  32689. /*!*********************************************************************************************!*\
  32690. !*** C:/Dev/Babylon/Babylon.js/node_modules/scheduler/cjs/scheduler-tracing.development.js ***!
  32691. \*********************************************************************************************/
  32692. /*! no static exports found */
  32693. /***/ (function(module, exports, __webpack_require__) {
  32694. "use strict";
  32695. /** @license React v0.15.0
  32696. * scheduler-tracing.development.js
  32697. *
  32698. * Copyright (c) Facebook, Inc. and its affiliates.
  32699. *
  32700. * This source code is licensed under the MIT license found in the
  32701. * LICENSE file in the root directory of this source tree.
  32702. */
  32703. if (true) {
  32704. (function() {
  32705. 'use strict';
  32706. Object.defineProperty(exports, '__esModule', { value: true });
  32707. // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
  32708. // In some cases, StrictMode should also double-render lifecycles.
  32709. // This can be confusing for tests though,
  32710. // And it can be bad for performance in production.
  32711. // This feature flag can be used to control the behavior:
  32712. // To preserve the "Pause on caught exceptions" behavior of the debugger, we
  32713. // replay the begin phase of a failed component inside invokeGuardedCallback.
  32714. // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
  32715. // Gather advanced timing metrics for Profiler subtrees.
  32716. // Trace which interactions trigger each commit.
  32717. var enableSchedulerTracing = true;
  32718. // Only used in www builds.
  32719. // TODO: true? Here it might just be false.
  32720. // Only used in www builds.
  32721. // Only used in www builds.
  32722. // Disable javascript: URL strings in href for XSS protection.
  32723. // React Fire: prevent the value and checked attributes from syncing
  32724. // with their related DOM properties
  32725. // These APIs will no longer be "unstable" in the upcoming 16.7 release,
  32726. // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
  32727. // See https://github.com/react-native-community/discussions-and-proposals/issues/72 for more information
  32728. // This is a flag so we can fix warnings in RN core before turning it on
  32729. // Experimental React Flare event system and event components support.
  32730. // Experimental Host Component support.
  32731. // New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107
  32732. // We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?)
  32733. // Till then, we warn about the missing mock, but still fallback to a sync mode compatible version
  32734. // Temporary flag to revert the fix in #15650
  32735. // For tests, we flush suspense fallbacks in an act scope;
  32736. // *except* in some of our own tests, where we test incremental loading states.
  32737. // Changes priority of some events like mousemove to user-blocking priority,
  32738. // but without making them discrete. The flag exists in case it causes
  32739. // starvation problems.
  32740. // Add a callback property to suspense to notify which promises are currently
  32741. // in the update queue. This allows reporting and tracing of what is causing
  32742. // the user to see a loading state.
  32743. // Part of the simplification of React.createElement so we can eventually move
  32744. // from React.createElement to React.jsx
  32745. // https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md
  32746. var DEFAULT_THREAD_ID = 0;
  32747. // Counters used to generate unique IDs.
  32748. var interactionIDCounter = 0;
  32749. var threadIDCounter = 0;
  32750. // Set of currently traced interactions.
  32751. // Interactions "stack"–
  32752. // Meaning that newly traced interactions are appended to the previously active set.
  32753. // When an interaction goes out of scope, the previous set (if any) is restored.
  32754. exports.__interactionsRef = null;
  32755. // Listener(s) to notify when interactions begin and end.
  32756. exports.__subscriberRef = null;
  32757. if (enableSchedulerTracing) {
  32758. exports.__interactionsRef = {
  32759. current: new Set()
  32760. };
  32761. exports.__subscriberRef = {
  32762. current: null
  32763. };
  32764. }
  32765. function unstable_clear(callback) {
  32766. if (!enableSchedulerTracing) {
  32767. return callback();
  32768. }
  32769. var prevInteractions = exports.__interactionsRef.current;
  32770. exports.__interactionsRef.current = new Set();
  32771. try {
  32772. return callback();
  32773. } finally {
  32774. exports.__interactionsRef.current = prevInteractions;
  32775. }
  32776. }
  32777. function unstable_getCurrent() {
  32778. if (!enableSchedulerTracing) {
  32779. return null;
  32780. } else {
  32781. return exports.__interactionsRef.current;
  32782. }
  32783. }
  32784. function unstable_getThreadID() {
  32785. return ++threadIDCounter;
  32786. }
  32787. function unstable_trace(name, timestamp, callback) {
  32788. var threadID = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_THREAD_ID;
  32789. if (!enableSchedulerTracing) {
  32790. return callback();
  32791. }
  32792. var interaction = {
  32793. __count: 1,
  32794. id: interactionIDCounter++,
  32795. name: name,
  32796. timestamp: timestamp
  32797. };
  32798. var prevInteractions = exports.__interactionsRef.current;
  32799. // Traced interactions should stack/accumulate.
  32800. // To do that, clone the current interactions.
  32801. // The previous set will be restored upon completion.
  32802. var interactions = new Set(prevInteractions);
  32803. interactions.add(interaction);
  32804. exports.__interactionsRef.current = interactions;
  32805. var subscriber = exports.__subscriberRef.current;
  32806. var returnValue = void 0;
  32807. try {
  32808. if (subscriber !== null) {
  32809. subscriber.onInteractionTraced(interaction);
  32810. }
  32811. } finally {
  32812. try {
  32813. if (subscriber !== null) {
  32814. subscriber.onWorkStarted(interactions, threadID);
  32815. }
  32816. } finally {
  32817. try {
  32818. returnValue = callback();
  32819. } finally {
  32820. exports.__interactionsRef.current = prevInteractions;
  32821. try {
  32822. if (subscriber !== null) {
  32823. subscriber.onWorkStopped(interactions, threadID);
  32824. }
  32825. } finally {
  32826. interaction.__count--;
  32827. // If no async work was scheduled for this interaction,
  32828. // Notify subscribers that it's completed.
  32829. if (subscriber !== null && interaction.__count === 0) {
  32830. subscriber.onInteractionScheduledWorkCompleted(interaction);
  32831. }
  32832. }
  32833. }
  32834. }
  32835. }
  32836. return returnValue;
  32837. }
  32838. function unstable_wrap(callback) {
  32839. var threadID = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_THREAD_ID;
  32840. if (!enableSchedulerTracing) {
  32841. return callback;
  32842. }
  32843. var wrappedInteractions = exports.__interactionsRef.current;
  32844. var subscriber = exports.__subscriberRef.current;
  32845. if (subscriber !== null) {
  32846. subscriber.onWorkScheduled(wrappedInteractions, threadID);
  32847. }
  32848. // Update the pending async work count for the current interactions.
  32849. // Update after calling subscribers in case of error.
  32850. wrappedInteractions.forEach(function (interaction) {
  32851. interaction.__count++;
  32852. });
  32853. var hasRun = false;
  32854. function wrapped() {
  32855. var prevInteractions = exports.__interactionsRef.current;
  32856. exports.__interactionsRef.current = wrappedInteractions;
  32857. subscriber = exports.__subscriberRef.current;
  32858. try {
  32859. var returnValue = void 0;
  32860. try {
  32861. if (subscriber !== null) {
  32862. subscriber.onWorkStarted(wrappedInteractions, threadID);
  32863. }
  32864. } finally {
  32865. try {
  32866. returnValue = callback.apply(undefined, arguments);
  32867. } finally {
  32868. exports.__interactionsRef.current = prevInteractions;
  32869. if (subscriber !== null) {
  32870. subscriber.onWorkStopped(wrappedInteractions, threadID);
  32871. }
  32872. }
  32873. }
  32874. return returnValue;
  32875. } finally {
  32876. if (!hasRun) {
  32877. // We only expect a wrapped function to be executed once,
  32878. // But in the event that it's executed more than once–
  32879. // Only decrement the outstanding interaction counts once.
  32880. hasRun = true;
  32881. // Update pending async counts for all wrapped interactions.
  32882. // If this was the last scheduled async work for any of them,
  32883. // Mark them as completed.
  32884. wrappedInteractions.forEach(function (interaction) {
  32885. interaction.__count--;
  32886. if (subscriber !== null && interaction.__count === 0) {
  32887. subscriber.onInteractionScheduledWorkCompleted(interaction);
  32888. }
  32889. });
  32890. }
  32891. }
  32892. }
  32893. wrapped.cancel = function cancel() {
  32894. subscriber = exports.__subscriberRef.current;
  32895. try {
  32896. if (subscriber !== null) {
  32897. subscriber.onWorkCanceled(wrappedInteractions, threadID);
  32898. }
  32899. } finally {
  32900. // Update pending async counts for all wrapped interactions.
  32901. // If this was the last scheduled async work for any of them,
  32902. // Mark them as completed.
  32903. wrappedInteractions.forEach(function (interaction) {
  32904. interaction.__count--;
  32905. if (subscriber && interaction.__count === 0) {
  32906. subscriber.onInteractionScheduledWorkCompleted(interaction);
  32907. }
  32908. });
  32909. }
  32910. };
  32911. return wrapped;
  32912. }
  32913. var subscribers = null;
  32914. if (enableSchedulerTracing) {
  32915. subscribers = new Set();
  32916. }
  32917. function unstable_subscribe(subscriber) {
  32918. if (enableSchedulerTracing) {
  32919. subscribers.add(subscriber);
  32920. if (subscribers.size === 1) {
  32921. exports.__subscriberRef.current = {
  32922. onInteractionScheduledWorkCompleted: onInteractionScheduledWorkCompleted,
  32923. onInteractionTraced: onInteractionTraced,
  32924. onWorkCanceled: onWorkCanceled,
  32925. onWorkScheduled: onWorkScheduled,
  32926. onWorkStarted: onWorkStarted,
  32927. onWorkStopped: onWorkStopped
  32928. };
  32929. }
  32930. }
  32931. }
  32932. function unstable_unsubscribe(subscriber) {
  32933. if (enableSchedulerTracing) {
  32934. subscribers.delete(subscriber);
  32935. if (subscribers.size === 0) {
  32936. exports.__subscriberRef.current = null;
  32937. }
  32938. }
  32939. }
  32940. function onInteractionTraced(interaction) {
  32941. var didCatchError = false;
  32942. var caughtError = null;
  32943. subscribers.forEach(function (subscriber) {
  32944. try {
  32945. subscriber.onInteractionTraced(interaction);
  32946. } catch (error) {
  32947. if (!didCatchError) {
  32948. didCatchError = true;
  32949. caughtError = error;
  32950. }
  32951. }
  32952. });
  32953. if (didCatchError) {
  32954. throw caughtError;
  32955. }
  32956. }
  32957. function onInteractionScheduledWorkCompleted(interaction) {
  32958. var didCatchError = false;
  32959. var caughtError = null;
  32960. subscribers.forEach(function (subscriber) {
  32961. try {
  32962. subscriber.onInteractionScheduledWorkCompleted(interaction);
  32963. } catch (error) {
  32964. if (!didCatchError) {
  32965. didCatchError = true;
  32966. caughtError = error;
  32967. }
  32968. }
  32969. });
  32970. if (didCatchError) {
  32971. throw caughtError;
  32972. }
  32973. }
  32974. function onWorkScheduled(interactions, threadID) {
  32975. var didCatchError = false;
  32976. var caughtError = null;
  32977. subscribers.forEach(function (subscriber) {
  32978. try {
  32979. subscriber.onWorkScheduled(interactions, threadID);
  32980. } catch (error) {
  32981. if (!didCatchError) {
  32982. didCatchError = true;
  32983. caughtError = error;
  32984. }
  32985. }
  32986. });
  32987. if (didCatchError) {
  32988. throw caughtError;
  32989. }
  32990. }
  32991. function onWorkStarted(interactions, threadID) {
  32992. var didCatchError = false;
  32993. var caughtError = null;
  32994. subscribers.forEach(function (subscriber) {
  32995. try {
  32996. subscriber.onWorkStarted(interactions, threadID);
  32997. } catch (error) {
  32998. if (!didCatchError) {
  32999. didCatchError = true;
  33000. caughtError = error;
  33001. }
  33002. }
  33003. });
  33004. if (didCatchError) {
  33005. throw caughtError;
  33006. }
  33007. }
  33008. function onWorkStopped(interactions, threadID) {
  33009. var didCatchError = false;
  33010. var caughtError = null;
  33011. subscribers.forEach(function (subscriber) {
  33012. try {
  33013. subscriber.onWorkStopped(interactions, threadID);
  33014. } catch (error) {
  33015. if (!didCatchError) {
  33016. didCatchError = true;
  33017. caughtError = error;
  33018. }
  33019. }
  33020. });
  33021. if (didCatchError) {
  33022. throw caughtError;
  33023. }
  33024. }
  33025. function onWorkCanceled(interactions, threadID) {
  33026. var didCatchError = false;
  33027. var caughtError = null;
  33028. subscribers.forEach(function (subscriber) {
  33029. try {
  33030. subscriber.onWorkCanceled(interactions, threadID);
  33031. } catch (error) {
  33032. if (!didCatchError) {
  33033. didCatchError = true;
  33034. caughtError = error;
  33035. }
  33036. }
  33037. });
  33038. if (didCatchError) {
  33039. throw caughtError;
  33040. }
  33041. }
  33042. exports.unstable_clear = unstable_clear;
  33043. exports.unstable_getCurrent = unstable_getCurrent;
  33044. exports.unstable_getThreadID = unstable_getThreadID;
  33045. exports.unstable_trace = unstable_trace;
  33046. exports.unstable_wrap = unstable_wrap;
  33047. exports.unstable_subscribe = unstable_subscribe;
  33048. exports.unstable_unsubscribe = unstable_unsubscribe;
  33049. })();
  33050. }
  33051. /***/ }),
  33052. /***/ "../../node_modules/scheduler/cjs/scheduler.development.js":
  33053. /*!*************************************************************************************!*\
  33054. !*** C:/Dev/Babylon/Babylon.js/node_modules/scheduler/cjs/scheduler.development.js ***!
  33055. \*************************************************************************************/
  33056. /*! no static exports found */
  33057. /***/ (function(module, exports, __webpack_require__) {
  33058. "use strict";
  33059. /** @license React v0.15.0
  33060. * scheduler.development.js
  33061. *
  33062. * Copyright (c) Facebook, Inc. and its affiliates.
  33063. *
  33064. * This source code is licensed under the MIT license found in the
  33065. * LICENSE file in the root directory of this source tree.
  33066. */
  33067. if (true) {
  33068. (function() {
  33069. 'use strict';
  33070. Object.defineProperty(exports, '__esModule', { value: true });
  33071. var enableSchedulerDebugging = false;
  33072. var enableIsInputPending = false;
  33073. var requestIdleCallbackBeforeFirstFrame = false;
  33074. var requestTimerEventBeforeFirstFrame = false;
  33075. var enableMessageLoopImplementation = false;
  33076. // The DOM Scheduler implementation is similar to requestIdleCallback. It
  33077. // works by scheduling a requestAnimationFrame, storing the time for the start
  33078. // of the frame, then scheduling a postMessage which gets scheduled after paint.
  33079. // Within the postMessage handler do as much work as possible until time + frame
  33080. // rate. By separating the idle call into a separate event tick we ensure that
  33081. // layout, paint and other browser work is counted against the available time.
  33082. // The frame rate is dynamically adjusted.
  33083. var requestHostCallback = void 0;
  33084. var requestHostTimeout = void 0;
  33085. var cancelHostTimeout = void 0;
  33086. var shouldYieldToHost = void 0;
  33087. var requestPaint = void 0;
  33088. exports.unstable_now = void 0;
  33089. exports.unstable_forceFrameRate = void 0;
  33090. if (
  33091. // If Scheduler runs in a non-DOM environment, it falls back to a naive
  33092. // implementation using setTimeout.
  33093. typeof window === 'undefined' ||
  33094. // Check if MessageChannel is supported, too.
  33095. typeof MessageChannel !== 'function') {
  33096. // If this accidentally gets imported in a non-browser environment, e.g. JavaScriptCore,
  33097. // fallback to a naive implementation.
  33098. var _callback = null;
  33099. var _timeoutID = null;
  33100. var _flushCallback = function () {
  33101. if (_callback !== null) {
  33102. try {
  33103. var currentTime = exports.unstable_now();
  33104. var hasRemainingTime = true;
  33105. _callback(hasRemainingTime, currentTime);
  33106. _callback = null;
  33107. } catch (e) {
  33108. setTimeout(_flushCallback, 0);
  33109. throw e;
  33110. }
  33111. }
  33112. };
  33113. exports.unstable_now = function () {
  33114. return Date.now();
  33115. };
  33116. requestHostCallback = function (cb) {
  33117. if (_callback !== null) {
  33118. // Protect against re-entrancy.
  33119. setTimeout(requestHostCallback, 0, cb);
  33120. } else {
  33121. _callback = cb;
  33122. setTimeout(_flushCallback, 0);
  33123. }
  33124. };
  33125. requestHostTimeout = function (cb, ms) {
  33126. _timeoutID = setTimeout(cb, ms);
  33127. };
  33128. cancelHostTimeout = function () {
  33129. clearTimeout(_timeoutID);
  33130. };
  33131. shouldYieldToHost = function () {
  33132. return false;
  33133. };
  33134. requestPaint = exports.unstable_forceFrameRate = function () {};
  33135. } else {
  33136. // Capture local references to native APIs, in case a polyfill overrides them.
  33137. var performance = window.performance;
  33138. var _Date = window.Date;
  33139. var _setTimeout = window.setTimeout;
  33140. var _clearTimeout = window.clearTimeout;
  33141. var requestAnimationFrame = window.requestAnimationFrame;
  33142. var cancelAnimationFrame = window.cancelAnimationFrame;
  33143. var requestIdleCallback = window.requestIdleCallback;
  33144. if (typeof console !== 'undefined') {
  33145. // TODO: Remove fb.me link
  33146. if (typeof requestAnimationFrame !== 'function') {
  33147. console.error("This browser doesn't support requestAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  33148. }
  33149. if (typeof cancelAnimationFrame !== 'function') {
  33150. console.error("This browser doesn't support cancelAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  33151. }
  33152. }
  33153. var requestIdleCallbackBeforeFirstFrame$1 = requestIdleCallbackBeforeFirstFrame && typeof requestIdleCallback === 'function' && typeof cancelIdleCallback === 'function';
  33154. exports.unstable_now = typeof performance === 'object' && typeof performance.now === 'function' ? function () {
  33155. return performance.now();
  33156. } : function () {
  33157. return _Date.now();
  33158. };
  33159. var isRAFLoopRunning = false;
  33160. var isMessageLoopRunning = false;
  33161. var scheduledHostCallback = null;
  33162. var rAFTimeoutID = -1;
  33163. var taskTimeoutID = -1;
  33164. var frameLength = enableMessageLoopImplementation ? // We won't attempt to align with the vsync. Instead we'll yield multiple
  33165. // times per frame, often enough to keep it responsive even at really
  33166. // high frame rates > 120.
  33167. 5 : // Use a heuristic to measure the frame rate and yield at the end of the
  33168. // frame. We start out assuming that we run at 30fps but then the
  33169. // heuristic tracking will adjust this value to a faster fps if we get
  33170. // more frequent animation frames.
  33171. 33.33;
  33172. var prevRAFTime = -1;
  33173. var prevRAFInterval = -1;
  33174. var frameDeadline = 0;
  33175. var fpsLocked = false;
  33176. // TODO: Make this configurable
  33177. // TODO: Adjust this based on priority?
  33178. var maxFrameLength = 300;
  33179. var needsPaint = false;
  33180. if (enableIsInputPending && navigator !== undefined && navigator.scheduling !== undefined && navigator.scheduling.isInputPending !== undefined) {
  33181. var scheduling = navigator.scheduling;
  33182. shouldYieldToHost = function () {
  33183. var currentTime = exports.unstable_now();
  33184. if (currentTime >= frameDeadline) {
  33185. // There's no time left in the frame. We may want to yield control of
  33186. // the main thread, so the browser can perform high priority tasks. The
  33187. // main ones are painting and user input. If there's a pending paint or
  33188. // a pending input, then we should yield. But if there's neither, then
  33189. // we can yield less often while remaining responsive. We'll eventually
  33190. // yield regardless, since there could be a pending paint that wasn't
  33191. // accompanied by a call to `requestPaint`, or other main thread tasks
  33192. // like network events.
  33193. if (needsPaint || scheduling.isInputPending()) {
  33194. // There is either a pending paint or a pending input.
  33195. return true;
  33196. }
  33197. // There's no pending input. Only yield if we've reached the max
  33198. // frame length.
  33199. return currentTime >= frameDeadline + maxFrameLength;
  33200. } else {
  33201. // There's still time left in the frame.
  33202. return false;
  33203. }
  33204. };
  33205. requestPaint = function () {
  33206. needsPaint = true;
  33207. };
  33208. } else {
  33209. // `isInputPending` is not available. Since we have no way of knowing if
  33210. // there's pending input, always yield at the end of the frame.
  33211. shouldYieldToHost = function () {
  33212. return exports.unstable_now() >= frameDeadline;
  33213. };
  33214. // Since we yield every frame regardless, `requestPaint` has no effect.
  33215. requestPaint = function () {};
  33216. }
  33217. exports.unstable_forceFrameRate = function (fps) {
  33218. if (fps < 0 || fps > 125) {
  33219. console.error('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing framerates higher than 125 fps is not unsupported');
  33220. return;
  33221. }
  33222. if (fps > 0) {
  33223. frameLength = Math.floor(1000 / fps);
  33224. fpsLocked = true;
  33225. } else {
  33226. // reset the framerate
  33227. frameLength = 33.33;
  33228. fpsLocked = false;
  33229. }
  33230. };
  33231. var performWorkUntilDeadline = function () {
  33232. if (enableMessageLoopImplementation) {
  33233. if (scheduledHostCallback !== null) {
  33234. var currentTime = exports.unstable_now();
  33235. // Yield after `frameLength` ms, regardless of where we are in the vsync
  33236. // cycle. This means there's always time remaining at the beginning of
  33237. // the message event.
  33238. frameDeadline = currentTime + frameLength;
  33239. var hasTimeRemaining = true;
  33240. try {
  33241. var hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);
  33242. if (!hasMoreWork) {
  33243. isMessageLoopRunning = false;
  33244. scheduledHostCallback = null;
  33245. } else {
  33246. // If there's more work, schedule the next message event at the end
  33247. // of the preceding one.
  33248. port.postMessage(null);
  33249. }
  33250. } catch (error) {
  33251. // If a scheduler task throws, exit the current browser task so the
  33252. // error can be observed.
  33253. port.postMessage(null);
  33254. throw error;
  33255. }
  33256. }
  33257. // Yielding to the browser will give it a chance to paint, so we can
  33258. // reset this.
  33259. needsPaint = false;
  33260. } else {
  33261. if (scheduledHostCallback !== null) {
  33262. var _currentTime = exports.unstable_now();
  33263. var _hasTimeRemaining = frameDeadline - _currentTime > 0;
  33264. try {
  33265. var _hasMoreWork = scheduledHostCallback(_hasTimeRemaining, _currentTime);
  33266. if (!_hasMoreWork) {
  33267. scheduledHostCallback = null;
  33268. }
  33269. } catch (error) {
  33270. // If a scheduler task throws, exit the current browser task so the
  33271. // error can be observed, and post a new task as soon as possible
  33272. // so we can continue where we left off.
  33273. port.postMessage(null);
  33274. throw error;
  33275. }
  33276. }
  33277. // Yielding to the browser will give it a chance to paint, so we can
  33278. // reset this.
  33279. needsPaint = false;
  33280. }
  33281. };
  33282. var channel = new MessageChannel();
  33283. var port = channel.port2;
  33284. channel.port1.onmessage = performWorkUntilDeadline;
  33285. var onAnimationFrame = function (rAFTime) {
  33286. if (scheduledHostCallback === null) {
  33287. // No scheduled work. Exit.
  33288. prevRAFTime = -1;
  33289. prevRAFInterval = -1;
  33290. isRAFLoopRunning = false;
  33291. return;
  33292. }
  33293. // Eagerly schedule the next animation callback at the beginning of the
  33294. // frame. If the scheduler queue is not empty at the end of the frame, it
  33295. // will continue flushing inside that callback. If the queue *is* empty,
  33296. // then it will exit immediately. Posting the callback at the start of the
  33297. // frame ensures it's fired within the earliest possible frame. If we
  33298. // waited until the end of the frame to post the callback, we risk the
  33299. // browser skipping a frame and not firing the callback until the frame
  33300. // after that.
  33301. isRAFLoopRunning = true;
  33302. requestAnimationFrame(function (nextRAFTime) {
  33303. _clearTimeout(rAFTimeoutID);
  33304. onAnimationFrame(nextRAFTime);
  33305. });
  33306. // requestAnimationFrame is throttled when the tab is backgrounded. We
  33307. // don't want to stop working entirely. So we'll fallback to a timeout loop.
  33308. // TODO: Need a better heuristic for backgrounded work.
  33309. var onTimeout = function () {
  33310. frameDeadline = exports.unstable_now() + frameLength / 2;
  33311. performWorkUntilDeadline();
  33312. rAFTimeoutID = _setTimeout(onTimeout, frameLength * 3);
  33313. };
  33314. rAFTimeoutID = _setTimeout(onTimeout, frameLength * 3);
  33315. if (prevRAFTime !== -1 &&
  33316. // Make sure this rAF time is different from the previous one. This check
  33317. // could fail if two rAFs fire in the same frame.
  33318. rAFTime - prevRAFTime > 0.1) {
  33319. var rAFInterval = rAFTime - prevRAFTime;
  33320. if (!fpsLocked && prevRAFInterval !== -1) {
  33321. // We've observed two consecutive frame intervals. We'll use this to
  33322. // dynamically adjust the frame rate.
  33323. //
  33324. // If one frame goes long, then the next one can be short to catch up.
  33325. // If two frames are short in a row, then that's an indication that we
  33326. // actually have a higher frame rate than what we're currently
  33327. // optimizing. For example, if we're running on 120hz display or 90hz VR
  33328. // display. Take the max of the two in case one of them was an anomaly
  33329. // due to missed frame deadlines.
  33330. if (rAFInterval < frameLength && prevRAFInterval < frameLength) {
  33331. frameLength = rAFInterval < prevRAFInterval ? prevRAFInterval : rAFInterval;
  33332. if (frameLength < 8.33) {
  33333. // Defensive coding. We don't support higher frame rates than 120hz.
  33334. // If the calculated frame length gets lower than 8, it is probably
  33335. // a bug.
  33336. frameLength = 8.33;
  33337. }
  33338. }
  33339. }
  33340. prevRAFInterval = rAFInterval;
  33341. }
  33342. prevRAFTime = rAFTime;
  33343. frameDeadline = rAFTime + frameLength;
  33344. // We use the postMessage trick to defer idle work until after the repaint.
  33345. port.postMessage(null);
  33346. };
  33347. requestHostCallback = function (callback) {
  33348. scheduledHostCallback = callback;
  33349. if (enableMessageLoopImplementation) {
  33350. if (!isMessageLoopRunning) {
  33351. isMessageLoopRunning = true;
  33352. port.postMessage(null);
  33353. }
  33354. } else {
  33355. if (!isRAFLoopRunning) {
  33356. // Start a rAF loop.
  33357. isRAFLoopRunning = true;
  33358. requestAnimationFrame(function (rAFTime) {
  33359. if (requestIdleCallbackBeforeFirstFrame$1) {
  33360. cancelIdleCallback(idleCallbackID);
  33361. }
  33362. if (requestTimerEventBeforeFirstFrame) {
  33363. _clearTimeout(idleTimeoutID);
  33364. }
  33365. onAnimationFrame(rAFTime);
  33366. });
  33367. // If we just missed the last vsync, the next rAF might not happen for
  33368. // another frame. To claim as much idle time as possible, post a
  33369. // callback with `requestIdleCallback`, which should fire if there's
  33370. // idle time left in the frame.
  33371. //
  33372. // This should only be an issue for the first rAF in the loop;
  33373. // subsequent rAFs are scheduled at the beginning of the
  33374. // preceding frame.
  33375. var idleCallbackID = void 0;
  33376. if (requestIdleCallbackBeforeFirstFrame$1) {
  33377. idleCallbackID = requestIdleCallback(function onIdleCallbackBeforeFirstFrame() {
  33378. if (requestTimerEventBeforeFirstFrame) {
  33379. _clearTimeout(idleTimeoutID);
  33380. }
  33381. frameDeadline = exports.unstable_now() + frameLength;
  33382. performWorkUntilDeadline();
  33383. });
  33384. }
  33385. // Alternate strategy to address the same problem. Scheduler a timer
  33386. // with no delay. If this fires before the rAF, that likely indicates
  33387. // that there's idle time before the next vsync. This isn't always the
  33388. // case, but we'll be aggressive and assume it is, as a trade off to
  33389. // prevent idle periods.
  33390. var idleTimeoutID = void 0;
  33391. if (requestTimerEventBeforeFirstFrame) {
  33392. idleTimeoutID = _setTimeout(function onTimerEventBeforeFirstFrame() {
  33393. if (requestIdleCallbackBeforeFirstFrame$1) {
  33394. cancelIdleCallback(idleCallbackID);
  33395. }
  33396. frameDeadline = exports.unstable_now() + frameLength;
  33397. performWorkUntilDeadline();
  33398. }, 0);
  33399. }
  33400. }
  33401. }
  33402. };
  33403. requestHostTimeout = function (callback, ms) {
  33404. taskTimeoutID = _setTimeout(function () {
  33405. callback(exports.unstable_now());
  33406. }, ms);
  33407. };
  33408. cancelHostTimeout = function () {
  33409. _clearTimeout(taskTimeoutID);
  33410. taskTimeoutID = -1;
  33411. };
  33412. }
  33413. /* eslint-disable no-var */
  33414. // TODO: Use symbols?
  33415. var ImmediatePriority = 1;
  33416. var UserBlockingPriority = 2;
  33417. var NormalPriority = 3;
  33418. var LowPriority = 4;
  33419. var IdlePriority = 5;
  33420. // Max 31 bit integer. The max integer size in V8 for 32-bit systems.
  33421. // Math.pow(2, 30) - 1
  33422. // 0b111111111111111111111111111111
  33423. var maxSigned31BitInt = 1073741823;
  33424. // Times out immediately
  33425. var IMMEDIATE_PRIORITY_TIMEOUT = -1;
  33426. // Eventually times out
  33427. var USER_BLOCKING_PRIORITY = 250;
  33428. var NORMAL_PRIORITY_TIMEOUT = 5000;
  33429. var LOW_PRIORITY_TIMEOUT = 10000;
  33430. // Never times out
  33431. var IDLE_PRIORITY = maxSigned31BitInt;
  33432. // Tasks are stored as a circular, doubly linked list.
  33433. var firstTask = null;
  33434. var firstDelayedTask = null;
  33435. // Pausing the scheduler is useful for debugging.
  33436. var isSchedulerPaused = false;
  33437. var currentTask = null;
  33438. var currentPriorityLevel = NormalPriority;
  33439. // This is set while performing work, to prevent re-entrancy.
  33440. var isPerformingWork = false;
  33441. var isHostCallbackScheduled = false;
  33442. var isHostTimeoutScheduled = false;
  33443. function scheduler_flushTaskAtPriority_Immediate(callback, didTimeout) {
  33444. return callback(didTimeout);
  33445. }
  33446. function scheduler_flushTaskAtPriority_UserBlocking(callback, didTimeout) {
  33447. return callback(didTimeout);
  33448. }
  33449. function scheduler_flushTaskAtPriority_Normal(callback, didTimeout) {
  33450. return callback(didTimeout);
  33451. }
  33452. function scheduler_flushTaskAtPriority_Low(callback, didTimeout) {
  33453. return callback(didTimeout);
  33454. }
  33455. function scheduler_flushTaskAtPriority_Idle(callback, didTimeout) {
  33456. return callback(didTimeout);
  33457. }
  33458. function flushTask(task, currentTime) {
  33459. // Remove the task from the list before calling the callback. That way the
  33460. // list is in a consistent state even if the callback throws.
  33461. var next = task.next;
  33462. if (next === task) {
  33463. // This is the only scheduled task. Clear the list.
  33464. firstTask = null;
  33465. } else {
  33466. // Remove the task from its position in the list.
  33467. if (task === firstTask) {
  33468. firstTask = next;
  33469. }
  33470. var previous = task.previous;
  33471. previous.next = next;
  33472. next.previous = previous;
  33473. }
  33474. task.next = task.previous = null;
  33475. // Now it's safe to execute the task.
  33476. var callback = task.callback;
  33477. var previousPriorityLevel = currentPriorityLevel;
  33478. var previousTask = currentTask;
  33479. currentPriorityLevel = task.priorityLevel;
  33480. currentTask = task;
  33481. var continuationCallback;
  33482. try {
  33483. var didUserCallbackTimeout = task.expirationTime <= currentTime;
  33484. // Add an extra function to the callstack. Profiling tools can use this
  33485. // to infer the priority of work that appears higher in the stack.
  33486. switch (currentPriorityLevel) {
  33487. case ImmediatePriority:
  33488. continuationCallback = scheduler_flushTaskAtPriority_Immediate(callback, didUserCallbackTimeout);
  33489. break;
  33490. case UserBlockingPriority:
  33491. continuationCallback = scheduler_flushTaskAtPriority_UserBlocking(callback, didUserCallbackTimeout);
  33492. break;
  33493. case NormalPriority:
  33494. continuationCallback = scheduler_flushTaskAtPriority_Normal(callback, didUserCallbackTimeout);
  33495. break;
  33496. case LowPriority:
  33497. continuationCallback = scheduler_flushTaskAtPriority_Low(callback, didUserCallbackTimeout);
  33498. break;
  33499. case IdlePriority:
  33500. continuationCallback = scheduler_flushTaskAtPriority_Idle(callback, didUserCallbackTimeout);
  33501. break;
  33502. }
  33503. } catch (error) {
  33504. throw error;
  33505. } finally {
  33506. currentPriorityLevel = previousPriorityLevel;
  33507. currentTask = previousTask;
  33508. }
  33509. // A callback may return a continuation. The continuation should be scheduled
  33510. // with the same priority and expiration as the just-finished callback.
  33511. if (typeof continuationCallback === 'function') {
  33512. var expirationTime = task.expirationTime;
  33513. var continuationTask = task;
  33514. continuationTask.callback = continuationCallback;
  33515. // Insert the new callback into the list, sorted by its timeout. This is
  33516. // almost the same as the code in `scheduleCallback`, except the callback
  33517. // is inserted into the list *before* callbacks of equal timeout instead
  33518. // of after.
  33519. if (firstTask === null) {
  33520. // This is the first callback in the list.
  33521. firstTask = continuationTask.next = continuationTask.previous = continuationTask;
  33522. } else {
  33523. var nextAfterContinuation = null;
  33524. var t = firstTask;
  33525. do {
  33526. if (expirationTime <= t.expirationTime) {
  33527. // This task times out at or after the continuation. We will insert
  33528. // the continuation *before* this task.
  33529. nextAfterContinuation = t;
  33530. break;
  33531. }
  33532. t = t.next;
  33533. } while (t !== firstTask);
  33534. if (nextAfterContinuation === null) {
  33535. // No equal or lower priority task was found, which means the new task
  33536. // is the lowest priority task in the list.
  33537. nextAfterContinuation = firstTask;
  33538. } else if (nextAfterContinuation === firstTask) {
  33539. // The new task is the highest priority task in the list.
  33540. firstTask = continuationTask;
  33541. }
  33542. var _previous = nextAfterContinuation.previous;
  33543. _previous.next = nextAfterContinuation.previous = continuationTask;
  33544. continuationTask.next = nextAfterContinuation;
  33545. continuationTask.previous = _previous;
  33546. }
  33547. }
  33548. }
  33549. function advanceTimers(currentTime) {
  33550. // Check for tasks that are no longer delayed and add them to the queue.
  33551. if (firstDelayedTask !== null && firstDelayedTask.startTime <= currentTime) {
  33552. do {
  33553. var task = firstDelayedTask;
  33554. var next = task.next;
  33555. if (task === next) {
  33556. firstDelayedTask = null;
  33557. } else {
  33558. firstDelayedTask = next;
  33559. var previous = task.previous;
  33560. previous.next = next;
  33561. next.previous = previous;
  33562. }
  33563. task.next = task.previous = null;
  33564. insertScheduledTask(task, task.expirationTime);
  33565. } while (firstDelayedTask !== null && firstDelayedTask.startTime <= currentTime);
  33566. }
  33567. }
  33568. function handleTimeout(currentTime) {
  33569. isHostTimeoutScheduled = false;
  33570. advanceTimers(currentTime);
  33571. if (!isHostCallbackScheduled) {
  33572. if (firstTask !== null) {
  33573. isHostCallbackScheduled = true;
  33574. requestHostCallback(flushWork);
  33575. } else if (firstDelayedTask !== null) {
  33576. requestHostTimeout(handleTimeout, firstDelayedTask.startTime - currentTime);
  33577. }
  33578. }
  33579. }
  33580. function flushWork(hasTimeRemaining, initialTime) {
  33581. // Exit right away if we're currently paused
  33582. if (enableSchedulerDebugging && isSchedulerPaused) {
  33583. return;
  33584. }
  33585. // We'll need a host callback the next time work is scheduled.
  33586. isHostCallbackScheduled = false;
  33587. if (isHostTimeoutScheduled) {
  33588. // We scheduled a timeout but it's no longer needed. Cancel it.
  33589. isHostTimeoutScheduled = false;
  33590. cancelHostTimeout();
  33591. }
  33592. var currentTime = initialTime;
  33593. advanceTimers(currentTime);
  33594. isPerformingWork = true;
  33595. try {
  33596. if (!hasTimeRemaining) {
  33597. // Flush all the expired callbacks without yielding.
  33598. // TODO: Split flushWork into two separate functions instead of using
  33599. // a boolean argument?
  33600. while (firstTask !== null && firstTask.expirationTime <= currentTime && !(enableSchedulerDebugging && isSchedulerPaused)) {
  33601. flushTask(firstTask, currentTime);
  33602. currentTime = exports.unstable_now();
  33603. advanceTimers(currentTime);
  33604. }
  33605. } else {
  33606. // Keep flushing callbacks until we run out of time in the frame.
  33607. if (firstTask !== null) {
  33608. do {
  33609. flushTask(firstTask, currentTime);
  33610. currentTime = exports.unstable_now();
  33611. advanceTimers(currentTime);
  33612. } while (firstTask !== null && !shouldYieldToHost() && !(enableSchedulerDebugging && isSchedulerPaused));
  33613. }
  33614. }
  33615. // Return whether there's additional work
  33616. if (firstTask !== null) {
  33617. return true;
  33618. } else {
  33619. if (firstDelayedTask !== null) {
  33620. requestHostTimeout(handleTimeout, firstDelayedTask.startTime - currentTime);
  33621. }
  33622. return false;
  33623. }
  33624. } finally {
  33625. isPerformingWork = false;
  33626. }
  33627. }
  33628. function unstable_runWithPriority(priorityLevel, eventHandler) {
  33629. switch (priorityLevel) {
  33630. case ImmediatePriority:
  33631. case UserBlockingPriority:
  33632. case NormalPriority:
  33633. case LowPriority:
  33634. case IdlePriority:
  33635. break;
  33636. default:
  33637. priorityLevel = NormalPriority;
  33638. }
  33639. var previousPriorityLevel = currentPriorityLevel;
  33640. currentPriorityLevel = priorityLevel;
  33641. try {
  33642. return eventHandler();
  33643. } finally {
  33644. currentPriorityLevel = previousPriorityLevel;
  33645. }
  33646. }
  33647. function unstable_next(eventHandler) {
  33648. var priorityLevel;
  33649. switch (currentPriorityLevel) {
  33650. case ImmediatePriority:
  33651. case UserBlockingPriority:
  33652. case NormalPriority:
  33653. // Shift down to normal priority
  33654. priorityLevel = NormalPriority;
  33655. break;
  33656. default:
  33657. // Anything lower than normal priority should remain at the current level.
  33658. priorityLevel = currentPriorityLevel;
  33659. break;
  33660. }
  33661. var previousPriorityLevel = currentPriorityLevel;
  33662. currentPriorityLevel = priorityLevel;
  33663. try {
  33664. return eventHandler();
  33665. } finally {
  33666. currentPriorityLevel = previousPriorityLevel;
  33667. }
  33668. }
  33669. function unstable_wrapCallback(callback) {
  33670. var parentPriorityLevel = currentPriorityLevel;
  33671. return function () {
  33672. // This is a fork of runWithPriority, inlined for performance.
  33673. var previousPriorityLevel = currentPriorityLevel;
  33674. currentPriorityLevel = parentPriorityLevel;
  33675. try {
  33676. return callback.apply(this, arguments);
  33677. } finally {
  33678. currentPriorityLevel = previousPriorityLevel;
  33679. }
  33680. };
  33681. }
  33682. function timeoutForPriorityLevel(priorityLevel) {
  33683. switch (priorityLevel) {
  33684. case ImmediatePriority:
  33685. return IMMEDIATE_PRIORITY_TIMEOUT;
  33686. case UserBlockingPriority:
  33687. return USER_BLOCKING_PRIORITY;
  33688. case IdlePriority:
  33689. return IDLE_PRIORITY;
  33690. case LowPriority:
  33691. return LOW_PRIORITY_TIMEOUT;
  33692. case NormalPriority:
  33693. default:
  33694. return NORMAL_PRIORITY_TIMEOUT;
  33695. }
  33696. }
  33697. function unstable_scheduleCallback(priorityLevel, callback, options) {
  33698. var currentTime = exports.unstable_now();
  33699. var startTime;
  33700. var timeout;
  33701. if (typeof options === 'object' && options !== null) {
  33702. var delay = options.delay;
  33703. if (typeof delay === 'number' && delay > 0) {
  33704. startTime = currentTime + delay;
  33705. } else {
  33706. startTime = currentTime;
  33707. }
  33708. timeout = typeof options.timeout === 'number' ? options.timeout : timeoutForPriorityLevel(priorityLevel);
  33709. } else {
  33710. timeout = timeoutForPriorityLevel(priorityLevel);
  33711. startTime = currentTime;
  33712. }
  33713. var expirationTime = startTime + timeout;
  33714. var newTask = {
  33715. callback: callback,
  33716. priorityLevel: priorityLevel,
  33717. startTime: startTime,
  33718. expirationTime: expirationTime,
  33719. next: null,
  33720. previous: null
  33721. };
  33722. if (startTime > currentTime) {
  33723. // This is a delayed task.
  33724. insertDelayedTask(newTask, startTime);
  33725. if (firstTask === null && firstDelayedTask === newTask) {
  33726. // All tasks are delayed, and this is the task with the earliest delay.
  33727. if (isHostTimeoutScheduled) {
  33728. // Cancel an existing timeout.
  33729. cancelHostTimeout();
  33730. } else {
  33731. isHostTimeoutScheduled = true;
  33732. }
  33733. // Schedule a timeout.
  33734. requestHostTimeout(handleTimeout, startTime - currentTime);
  33735. }
  33736. } else {
  33737. insertScheduledTask(newTask, expirationTime);
  33738. // Schedule a host callback, if needed. If we're already performing work,
  33739. // wait until the next time we yield.
  33740. if (!isHostCallbackScheduled && !isPerformingWork) {
  33741. isHostCallbackScheduled = true;
  33742. requestHostCallback(flushWork);
  33743. }
  33744. }
  33745. return newTask;
  33746. }
  33747. function insertScheduledTask(newTask, expirationTime) {
  33748. // Insert the new task into the list, ordered first by its timeout, then by
  33749. // insertion. So the new task is inserted after any other task the
  33750. // same timeout
  33751. if (firstTask === null) {
  33752. // This is the first task in the list.
  33753. firstTask = newTask.next = newTask.previous = newTask;
  33754. } else {
  33755. var next = null;
  33756. var task = firstTask;
  33757. do {
  33758. if (expirationTime < task.expirationTime) {
  33759. // The new task times out before this one.
  33760. next = task;
  33761. break;
  33762. }
  33763. task = task.next;
  33764. } while (task !== firstTask);
  33765. if (next === null) {
  33766. // No task with a later timeout was found, which means the new task has
  33767. // the latest timeout in the list.
  33768. next = firstTask;
  33769. } else if (next === firstTask) {
  33770. // The new task has the earliest expiration in the entire list.
  33771. firstTask = newTask;
  33772. }
  33773. var previous = next.previous;
  33774. previous.next = next.previous = newTask;
  33775. newTask.next = next;
  33776. newTask.previous = previous;
  33777. }
  33778. }
  33779. function insertDelayedTask(newTask, startTime) {
  33780. // Insert the new task into the list, ordered by its start time.
  33781. if (firstDelayedTask === null) {
  33782. // This is the first task in the list.
  33783. firstDelayedTask = newTask.next = newTask.previous = newTask;
  33784. } else {
  33785. var next = null;
  33786. var task = firstDelayedTask;
  33787. do {
  33788. if (startTime < task.startTime) {
  33789. // The new task times out before this one.
  33790. next = task;
  33791. break;
  33792. }
  33793. task = task.next;
  33794. } while (task !== firstDelayedTask);
  33795. if (next === null) {
  33796. // No task with a later timeout was found, which means the new task has
  33797. // the latest timeout in the list.
  33798. next = firstDelayedTask;
  33799. } else if (next === firstDelayedTask) {
  33800. // The new task has the earliest expiration in the entire list.
  33801. firstDelayedTask = newTask;
  33802. }
  33803. var previous = next.previous;
  33804. previous.next = next.previous = newTask;
  33805. newTask.next = next;
  33806. newTask.previous = previous;
  33807. }
  33808. }
  33809. function unstable_pauseExecution() {
  33810. isSchedulerPaused = true;
  33811. }
  33812. function unstable_continueExecution() {
  33813. isSchedulerPaused = false;
  33814. if (!isHostCallbackScheduled && !isPerformingWork) {
  33815. isHostCallbackScheduled = true;
  33816. requestHostCallback(flushWork);
  33817. }
  33818. }
  33819. function unstable_getFirstCallbackNode() {
  33820. return firstTask;
  33821. }
  33822. function unstable_cancelCallback(task) {
  33823. var next = task.next;
  33824. if (next === null) {
  33825. // Already cancelled.
  33826. return;
  33827. }
  33828. if (task === next) {
  33829. if (task === firstTask) {
  33830. firstTask = null;
  33831. } else if (task === firstDelayedTask) {
  33832. firstDelayedTask = null;
  33833. }
  33834. } else {
  33835. if (task === firstTask) {
  33836. firstTask = next;
  33837. } else if (task === firstDelayedTask) {
  33838. firstDelayedTask = next;
  33839. }
  33840. var previous = task.previous;
  33841. previous.next = next;
  33842. next.previous = previous;
  33843. }
  33844. task.next = task.previous = null;
  33845. }
  33846. function unstable_getCurrentPriorityLevel() {
  33847. return currentPriorityLevel;
  33848. }
  33849. function unstable_shouldYield() {
  33850. var currentTime = exports.unstable_now();
  33851. advanceTimers(currentTime);
  33852. return currentTask !== null && firstTask !== null && firstTask.startTime <= currentTime && firstTask.expirationTime < currentTask.expirationTime || shouldYieldToHost();
  33853. }
  33854. var unstable_requestPaint = requestPaint;
  33855. exports.unstable_ImmediatePriority = ImmediatePriority;
  33856. exports.unstable_UserBlockingPriority = UserBlockingPriority;
  33857. exports.unstable_NormalPriority = NormalPriority;
  33858. exports.unstable_IdlePriority = IdlePriority;
  33859. exports.unstable_LowPriority = LowPriority;
  33860. exports.unstable_runWithPriority = unstable_runWithPriority;
  33861. exports.unstable_next = unstable_next;
  33862. exports.unstable_scheduleCallback = unstable_scheduleCallback;
  33863. exports.unstable_cancelCallback = unstable_cancelCallback;
  33864. exports.unstable_wrapCallback = unstable_wrapCallback;
  33865. exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
  33866. exports.unstable_shouldYield = unstable_shouldYield;
  33867. exports.unstable_requestPaint = unstable_requestPaint;
  33868. exports.unstable_continueExecution = unstable_continueExecution;
  33869. exports.unstable_pauseExecution = unstable_pauseExecution;
  33870. exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;
  33871. })();
  33872. }
  33873. /***/ }),
  33874. /***/ "../../node_modules/scheduler/index.js":
  33875. /*!*****************************************************************!*\
  33876. !*** C:/Dev/Babylon/Babylon.js/node_modules/scheduler/index.js ***!
  33877. \*****************************************************************/
  33878. /*! no static exports found */
  33879. /***/ (function(module, exports, __webpack_require__) {
  33880. "use strict";
  33881. if (false) {} else {
  33882. module.exports = __webpack_require__(/*! ./cjs/scheduler.development.js */ "../../node_modules/scheduler/cjs/scheduler.development.js");
  33883. }
  33884. /***/ }),
  33885. /***/ "../../node_modules/scheduler/tracing.js":
  33886. /*!*******************************************************************!*\
  33887. !*** C:/Dev/Babylon/Babylon.js/node_modules/scheduler/tracing.js ***!
  33888. \*******************************************************************/
  33889. /*! no static exports found */
  33890. /***/ (function(module, exports, __webpack_require__) {
  33891. "use strict";
  33892. if (false) {} else {
  33893. module.exports = __webpack_require__(/*! ./cjs/scheduler-tracing.development.js */ "../../node_modules/scheduler/cjs/scheduler-tracing.development.js");
  33894. }
  33895. /***/ }),
  33896. /***/ "../../node_modules/split.js/dist/split.es.js":
  33897. /*!************************************************************************!*\
  33898. !*** C:/Dev/Babylon/Babylon.js/node_modules/split.js/dist/split.es.js ***!
  33899. \************************************************************************/
  33900. /*! exports provided: default */
  33901. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  33902. "use strict";
  33903. __webpack_require__.r(__webpack_exports__);
  33904. // The programming goals of Split.js are to deliver readable, understandable and
  33905. // maintainable code, while at the same time manually optimizing for tiny minified file size,
  33906. // browser compatibility without additional requirements, graceful fallback (IE8 is supported)
  33907. // and very few assumptions about the user's page layout.
  33908. var global = window;
  33909. var document = global.document;
  33910. // Save a couple long function names that are used frequently.
  33911. // This optimization saves around 400 bytes.
  33912. var addEventListener = 'addEventListener';
  33913. var removeEventListener = 'removeEventListener';
  33914. var getBoundingClientRect = 'getBoundingClientRect';
  33915. var gutterStartDragging = '_a';
  33916. var aGutterSize = '_b';
  33917. var bGutterSize = '_c';
  33918. var HORIZONTAL = 'horizontal';
  33919. var NOOP = function () { return false; };
  33920. // Figure out if we're in IE8 or not. IE8 will still render correctly,
  33921. // but will be static instead of draggable.
  33922. var isIE8 = global.attachEvent && !global[addEventListener];
  33923. // Helper function determines which prefixes of CSS calc we need.
  33924. // We only need to do this once on startup, when this anonymous function is called.
  33925. //
  33926. // Tests -webkit, -moz and -o prefixes. Modified from StackOverflow:
  33927. // http://stackoverflow.com/questions/16625140/js-feature-detection-to-detect-the-usage-of-webkit-calc-over-calc/16625167#16625167
  33928. var calc = (['', '-webkit-', '-moz-', '-o-']
  33929. .filter(function (prefix) {
  33930. var el = document.createElement('div');
  33931. el.style.cssText = "width:" + prefix + "calc(9px)";
  33932. return !!el.style.length
  33933. })
  33934. .shift()) + "calc";
  33935. // Helper function checks if its argument is a string-like type
  33936. var isString = function (v) { return typeof v === 'string' || v instanceof String; };
  33937. // Helper function allows elements and string selectors to be used
  33938. // interchangeably. In either case an element is returned. This allows us to
  33939. // do `Split([elem1, elem2])` as well as `Split(['#id1', '#id2'])`.
  33940. var elementOrSelector = function (el) {
  33941. if (isString(el)) {
  33942. var ele = document.querySelector(el);
  33943. if (!ele) {
  33944. throw new Error(("Selector " + el + " did not match a DOM element"))
  33945. }
  33946. return ele
  33947. }
  33948. return el
  33949. };
  33950. // Helper function gets a property from the properties object, with a default fallback
  33951. var getOption = function (options, propName, def) {
  33952. var value = options[propName];
  33953. if (value !== undefined) {
  33954. return value
  33955. }
  33956. return def
  33957. };
  33958. var getGutterSize = function (gutterSize, isFirst, isLast, gutterAlign) {
  33959. if (isFirst) {
  33960. if (gutterAlign === 'end') {
  33961. return 0
  33962. }
  33963. if (gutterAlign === 'center') {
  33964. return gutterSize / 2
  33965. }
  33966. } else if (isLast) {
  33967. if (gutterAlign === 'start') {
  33968. return 0
  33969. }
  33970. if (gutterAlign === 'center') {
  33971. return gutterSize / 2
  33972. }
  33973. }
  33974. return gutterSize
  33975. };
  33976. // Default options
  33977. var defaultGutterFn = function (i, gutterDirection) {
  33978. var gut = document.createElement('div');
  33979. gut.className = "gutter gutter-" + gutterDirection;
  33980. return gut
  33981. };
  33982. var defaultElementStyleFn = function (dim, size, gutSize) {
  33983. var style = {};
  33984. if (!isString(size)) {
  33985. if (!isIE8) {
  33986. style[dim] = calc + "(" + size + "% - " + gutSize + "px)";
  33987. } else {
  33988. style[dim] = size + "%";
  33989. }
  33990. } else {
  33991. style[dim] = size;
  33992. }
  33993. return style
  33994. };
  33995. var defaultGutterStyleFn = function (dim, gutSize) {
  33996. var obj;
  33997. return (( obj = {}, obj[dim] = (gutSize + "px"), obj ));
  33998. };
  33999. // The main function to initialize a split. Split.js thinks about each pair
  34000. // of elements as an independant pair. Dragging the gutter between two elements
  34001. // only changes the dimensions of elements in that pair. This is key to understanding
  34002. // how the following functions operate, since each function is bound to a pair.
  34003. //
  34004. // A pair object is shaped like this:
  34005. //
  34006. // {
  34007. // a: DOM element,
  34008. // b: DOM element,
  34009. // aMin: Number,
  34010. // bMin: Number,
  34011. // dragging: Boolean,
  34012. // parent: DOM element,
  34013. // direction: 'horizontal' | 'vertical'
  34014. // }
  34015. //
  34016. // The basic sequence:
  34017. //
  34018. // 1. Set defaults to something sane. `options` doesn't have to be passed at all.
  34019. // 2. Initialize a bunch of strings based on the direction we're splitting.
  34020. // A lot of the behavior in the rest of the library is paramatized down to
  34021. // rely on CSS strings and classes.
  34022. // 3. Define the dragging helper functions, and a few helpers to go with them.
  34023. // 4. Loop through the elements while pairing them off. Every pair gets an
  34024. // `pair` object and a gutter.
  34025. // 5. Actually size the pair elements, insert gutters and attach event listeners.
  34026. var Split = function (idsOption, options) {
  34027. if ( options === void 0 ) options = {};
  34028. var ids = idsOption;
  34029. var dimension;
  34030. var clientAxis;
  34031. var position;
  34032. var positionEnd;
  34033. var clientSize;
  34034. var elements;
  34035. // Allow HTMLCollection to be used as an argument when supported
  34036. if (Array.from) {
  34037. ids = Array.from(ids);
  34038. }
  34039. // All DOM elements in the split should have a common parent. We can grab
  34040. // the first elements parent and hope users read the docs because the
  34041. // behavior will be whacky otherwise.
  34042. var firstElement = elementOrSelector(ids[0]);
  34043. var parent = firstElement.parentNode;
  34044. var parentStyle = getComputedStyle ? getComputedStyle(parent) : null;
  34045. var parentFlexDirection = parentStyle ? parentStyle.flexDirection : null;
  34046. // Set default options.sizes to equal percentages of the parent element.
  34047. var sizes = getOption(options, 'sizes') || ids.map(function () { return 100 / ids.length; });
  34048. // Standardize minSize to an array if it isn't already. This allows minSize
  34049. // to be passed as a number.
  34050. var minSize = getOption(options, 'minSize', 100);
  34051. var minSizes = Array.isArray(minSize) ? minSize : ids.map(function () { return minSize; });
  34052. // Get other options
  34053. var expandToMin = getOption(options, 'expandToMin', false);
  34054. var gutterSize = getOption(options, 'gutterSize', 10);
  34055. var gutterAlign = getOption(options, 'gutterAlign', 'center');
  34056. var snapOffset = getOption(options, 'snapOffset', 30);
  34057. var dragInterval = getOption(options, 'dragInterval', 1);
  34058. var direction = getOption(options, 'direction', HORIZONTAL);
  34059. var cursor = getOption(
  34060. options,
  34061. 'cursor',
  34062. direction === HORIZONTAL ? 'col-resize' : 'row-resize'
  34063. );
  34064. var gutter = getOption(options, 'gutter', defaultGutterFn);
  34065. var elementStyle = getOption(
  34066. options,
  34067. 'elementStyle',
  34068. defaultElementStyleFn
  34069. );
  34070. var gutterStyle = getOption(options, 'gutterStyle', defaultGutterStyleFn);
  34071. // 2. Initialize a bunch of strings based on the direction we're splitting.
  34072. // A lot of the behavior in the rest of the library is paramatized down to
  34073. // rely on CSS strings and classes.
  34074. if (direction === HORIZONTAL) {
  34075. dimension = 'width';
  34076. clientAxis = 'clientX';
  34077. position = 'left';
  34078. positionEnd = 'right';
  34079. clientSize = 'clientWidth';
  34080. } else if (direction === 'vertical') {
  34081. dimension = 'height';
  34082. clientAxis = 'clientY';
  34083. position = 'top';
  34084. positionEnd = 'bottom';
  34085. clientSize = 'clientHeight';
  34086. }
  34087. // 3. Define the dragging helper functions, and a few helpers to go with them.
  34088. // Each helper is bound to a pair object that contains its metadata. This
  34089. // also makes it easy to store references to listeners that that will be
  34090. // added and removed.
  34091. //
  34092. // Even though there are no other functions contained in them, aliasing
  34093. // this to self saves 50 bytes or so since it's used so frequently.
  34094. //
  34095. // The pair object saves metadata like dragging state, position and
  34096. // event listener references.
  34097. function setElementSize(el, size, gutSize, i) {
  34098. // Split.js allows setting sizes via numbers (ideally), or if you must,
  34099. // by string, like '300px'. This is less than ideal, because it breaks
  34100. // the fluid layout that `calc(% - px)` provides. You're on your own if you do that,
  34101. // make sure you calculate the gutter size by hand.
  34102. var style = elementStyle(dimension, size, gutSize, i);
  34103. Object.keys(style).forEach(function (prop) {
  34104. // eslint-disable-next-line no-param-reassign
  34105. el.style[prop] = style[prop];
  34106. });
  34107. }
  34108. function setGutterSize(gutterElement, gutSize, i) {
  34109. var style = gutterStyle(dimension, gutSize, i);
  34110. Object.keys(style).forEach(function (prop) {
  34111. // eslint-disable-next-line no-param-reassign
  34112. gutterElement.style[prop] = style[prop];
  34113. });
  34114. }
  34115. function getSizes() {
  34116. return elements.map(function (element) { return element.size; })
  34117. }
  34118. // Supports touch events, but not multitouch, so only the first
  34119. // finger `touches[0]` is counted.
  34120. function getMousePosition(e) {
  34121. if ('touches' in e) { return e.touches[0][clientAxis] }
  34122. return e[clientAxis]
  34123. }
  34124. // Actually adjust the size of elements `a` and `b` to `offset` while dragging.
  34125. // calc is used to allow calc(percentage + gutterpx) on the whole split instance,
  34126. // which allows the viewport to be resized without additional logic.
  34127. // Element a's size is the same as offset. b's size is total size - a size.
  34128. // Both sizes are calculated from the initial parent percentage,
  34129. // then the gutter size is subtracted.
  34130. function adjust(offset) {
  34131. var a = elements[this.a];
  34132. var b = elements[this.b];
  34133. var percentage = a.size + b.size;
  34134. a.size = (offset / this.size) * percentage;
  34135. b.size = percentage - (offset / this.size) * percentage;
  34136. setElementSize(a.element, a.size, this[aGutterSize], a.i);
  34137. setElementSize(b.element, b.size, this[bGutterSize], b.i);
  34138. }
  34139. // drag, where all the magic happens. The logic is really quite simple:
  34140. //
  34141. // 1. Ignore if the pair is not dragging.
  34142. // 2. Get the offset of the event.
  34143. // 3. Snap offset to min if within snappable range (within min + snapOffset).
  34144. // 4. Actually adjust each element in the pair to offset.
  34145. //
  34146. // ---------------------------------------------------------------------
  34147. // | | <- a.minSize || b.minSize -> | |
  34148. // | | | <- this.snapOffset || this.snapOffset -> | | |
  34149. // | | | || | | |
  34150. // | | | || | | |
  34151. // ---------------------------------------------------------------------
  34152. // | <- this.start this.size -> |
  34153. function drag(e) {
  34154. var offset;
  34155. var a = elements[this.a];
  34156. var b = elements[this.b];
  34157. if (!this.dragging) { return }
  34158. // Get the offset of the event from the first side of the
  34159. // pair `this.start`. Then offset by the initial position of the
  34160. // mouse compared to the gutter size.
  34161. offset =
  34162. getMousePosition(e) -
  34163. this.start +
  34164. (this[aGutterSize] - this.dragOffset);
  34165. if (dragInterval > 1) {
  34166. offset = Math.round(offset / dragInterval) * dragInterval;
  34167. }
  34168. // If within snapOffset of min or max, set offset to min or max.
  34169. // snapOffset buffers a.minSize and b.minSize, so logic is opposite for both.
  34170. // Include the appropriate gutter sizes to prevent overflows.
  34171. if (offset <= a.minSize + snapOffset + this[aGutterSize]) {
  34172. offset = a.minSize + this[aGutterSize];
  34173. } else if (
  34174. offset >=
  34175. this.size - (b.minSize + snapOffset + this[bGutterSize])
  34176. ) {
  34177. offset = this.size - (b.minSize + this[bGutterSize]);
  34178. }
  34179. // Actually adjust the size.
  34180. adjust.call(this, offset);
  34181. // Call the drag callback continously. Don't do anything too intensive
  34182. // in this callback.
  34183. getOption(options, 'onDrag', NOOP)();
  34184. }
  34185. // Cache some important sizes when drag starts, so we don't have to do that
  34186. // continously:
  34187. //
  34188. // `size`: The total size of the pair. First + second + first gutter + second gutter.
  34189. // `start`: The leading side of the first element.
  34190. //
  34191. // ------------------------------------------------
  34192. // | aGutterSize -> ||| |
  34193. // | ||| |
  34194. // | ||| |
  34195. // | ||| <- bGutterSize |
  34196. // ------------------------------------------------
  34197. // | <- start size -> |
  34198. function calculateSizes() {
  34199. // Figure out the parent size minus padding.
  34200. var a = elements[this.a].element;
  34201. var b = elements[this.b].element;
  34202. var aBounds = a[getBoundingClientRect]();
  34203. var bBounds = b[getBoundingClientRect]();
  34204. this.size =
  34205. aBounds[dimension] +
  34206. bBounds[dimension] +
  34207. this[aGutterSize] +
  34208. this[bGutterSize];
  34209. this.start = aBounds[position];
  34210. this.end = aBounds[positionEnd];
  34211. }
  34212. function innerSize(element) {
  34213. // Return nothing if getComputedStyle is not supported (< IE9)
  34214. // Or if parent element has no layout yet
  34215. if (!getComputedStyle) { return null }
  34216. var computedStyle = getComputedStyle(element);
  34217. if (!computedStyle) { return null }
  34218. var size = element[clientSize];
  34219. if (size === 0) { return null }
  34220. if (direction === HORIZONTAL) {
  34221. size -=
  34222. parseFloat(computedStyle.paddingLeft) +
  34223. parseFloat(computedStyle.paddingRight);
  34224. } else {
  34225. size -=
  34226. parseFloat(computedStyle.paddingTop) +
  34227. parseFloat(computedStyle.paddingBottom);
  34228. }
  34229. return size
  34230. }
  34231. // When specifying percentage sizes that are less than the computed
  34232. // size of the element minus the gutter, the lesser percentages must be increased
  34233. // (and decreased from the other elements) to make space for the pixels
  34234. // subtracted by the gutters.
  34235. function trimToMin(sizesToTrim) {
  34236. // Try to get inner size of parent element.
  34237. // If it's no supported, return original sizes.
  34238. var parentSize = innerSize(parent);
  34239. if (parentSize === null) {
  34240. return sizesToTrim
  34241. }
  34242. if (minSizes.reduce(function (a, b) { return a + b; }, 0) > parentSize) {
  34243. return sizesToTrim
  34244. }
  34245. // Keep track of the excess pixels, the amount of pixels over the desired percentage
  34246. // Also keep track of the elements with pixels to spare, to decrease after if needed
  34247. var excessPixels = 0;
  34248. var toSpare = [];
  34249. var pixelSizes = sizesToTrim.map(function (size, i) {
  34250. // Convert requested percentages to pixel sizes
  34251. var pixelSize = (parentSize * size) / 100;
  34252. var elementGutterSize = getGutterSize(
  34253. gutterSize,
  34254. i === 0,
  34255. i === sizesToTrim.length - 1,
  34256. gutterAlign
  34257. );
  34258. var elementMinSize = minSizes[i] + elementGutterSize;
  34259. // If element is too smal, increase excess pixels by the difference
  34260. // and mark that it has no pixels to spare
  34261. if (pixelSize < elementMinSize) {
  34262. excessPixels += elementMinSize - pixelSize;
  34263. toSpare.push(0);
  34264. return elementMinSize
  34265. }
  34266. // Otherwise, mark the pixels it has to spare and return it's original size
  34267. toSpare.push(pixelSize - elementMinSize);
  34268. return pixelSize
  34269. });
  34270. // If nothing was adjusted, return the original sizes
  34271. if (excessPixels === 0) {
  34272. return sizesToTrim
  34273. }
  34274. return pixelSizes.map(function (pixelSize, i) {
  34275. var newPixelSize = pixelSize;
  34276. // While there's still pixels to take, and there's enough pixels to spare,
  34277. // take as many as possible up to the total excess pixels
  34278. if (excessPixels > 0 && toSpare[i] - excessPixels > 0) {
  34279. var takenPixels = Math.min(
  34280. excessPixels,
  34281. toSpare[i] - excessPixels
  34282. );
  34283. // Subtract the amount taken for the next iteration
  34284. excessPixels -= takenPixels;
  34285. newPixelSize = pixelSize - takenPixels;
  34286. }
  34287. // Return the pixel size adjusted as a percentage
  34288. return (newPixelSize / parentSize) * 100
  34289. })
  34290. }
  34291. // stopDragging is very similar to startDragging in reverse.
  34292. function stopDragging() {
  34293. var self = this;
  34294. var a = elements[self.a].element;
  34295. var b = elements[self.b].element;
  34296. if (self.dragging) {
  34297. getOption(options, 'onDragEnd', NOOP)(getSizes());
  34298. }
  34299. self.dragging = false;
  34300. // Remove the stored event listeners. This is why we store them.
  34301. global[removeEventListener]('mouseup', self.stop);
  34302. global[removeEventListener]('touchend', self.stop);
  34303. global[removeEventListener]('touchcancel', self.stop);
  34304. global[removeEventListener]('mousemove', self.move);
  34305. global[removeEventListener]('touchmove', self.move);
  34306. // Clear bound function references
  34307. self.stop = null;
  34308. self.move = null;
  34309. a[removeEventListener]('selectstart', NOOP);
  34310. a[removeEventListener]('dragstart', NOOP);
  34311. b[removeEventListener]('selectstart', NOOP);
  34312. b[removeEventListener]('dragstart', NOOP);
  34313. a.style.userSelect = '';
  34314. a.style.webkitUserSelect = '';
  34315. a.style.MozUserSelect = '';
  34316. a.style.pointerEvents = '';
  34317. b.style.userSelect = '';
  34318. b.style.webkitUserSelect = '';
  34319. b.style.MozUserSelect = '';
  34320. b.style.pointerEvents = '';
  34321. self.gutter.style.cursor = '';
  34322. self.parent.style.cursor = '';
  34323. document.body.style.cursor = '';
  34324. }
  34325. // startDragging calls `calculateSizes` to store the inital size in the pair object.
  34326. // It also adds event listeners for mouse/touch events,
  34327. // and prevents selection while dragging so avoid the selecting text.
  34328. function startDragging(e) {
  34329. // Right-clicking can't start dragging.
  34330. if ('button' in e && e.button !== 0) {
  34331. return
  34332. }
  34333. // Alias frequently used variables to save space. 200 bytes.
  34334. var self = this;
  34335. var a = elements[self.a].element;
  34336. var b = elements[self.b].element;
  34337. // Call the onDragStart callback.
  34338. if (!self.dragging) {
  34339. getOption(options, 'onDragStart', NOOP)(getSizes());
  34340. }
  34341. // Don't actually drag the element. We emulate that in the drag function.
  34342. e.preventDefault();
  34343. // Set the dragging property of the pair object.
  34344. self.dragging = true;
  34345. // Create two event listeners bound to the same pair object and store
  34346. // them in the pair object.
  34347. self.move = drag.bind(self);
  34348. self.stop = stopDragging.bind(self);
  34349. // All the binding. `window` gets the stop events in case we drag out of the elements.
  34350. global[addEventListener]('mouseup', self.stop);
  34351. global[addEventListener]('touchend', self.stop);
  34352. global[addEventListener]('touchcancel', self.stop);
  34353. global[addEventListener]('mousemove', self.move);
  34354. global[addEventListener]('touchmove', self.move);
  34355. // Disable selection. Disable!
  34356. a[addEventListener]('selectstart', NOOP);
  34357. a[addEventListener]('dragstart', NOOP);
  34358. b[addEventListener]('selectstart', NOOP);
  34359. b[addEventListener]('dragstart', NOOP);
  34360. a.style.userSelect = 'none';
  34361. a.style.webkitUserSelect = 'none';
  34362. a.style.MozUserSelect = 'none';
  34363. a.style.pointerEvents = 'none';
  34364. b.style.userSelect = 'none';
  34365. b.style.webkitUserSelect = 'none';
  34366. b.style.MozUserSelect = 'none';
  34367. b.style.pointerEvents = 'none';
  34368. // Set the cursor at multiple levels
  34369. self.gutter.style.cursor = cursor;
  34370. self.parent.style.cursor = cursor;
  34371. document.body.style.cursor = cursor;
  34372. // Cache the initial sizes of the pair.
  34373. calculateSizes.call(self);
  34374. // Determine the position of the mouse compared to the gutter
  34375. self.dragOffset = getMousePosition(e) - self.end;
  34376. }
  34377. // adjust sizes to ensure percentage is within min size and gutter.
  34378. sizes = trimToMin(sizes);
  34379. // 5. Create pair and element objects. Each pair has an index reference to
  34380. // elements `a` and `b` of the pair (first and second elements).
  34381. // Loop through the elements while pairing them off. Every pair gets a
  34382. // `pair` object and a gutter.
  34383. //
  34384. // Basic logic:
  34385. //
  34386. // - Starting with the second element `i > 0`, create `pair` objects with
  34387. // `a = i - 1` and `b = i`
  34388. // - Set gutter sizes based on the _pair_ being first/last. The first and last
  34389. // pair have gutterSize / 2, since they only have one half gutter, and not two.
  34390. // - Create gutter elements and add event listeners.
  34391. // - Set the size of the elements, minus the gutter sizes.
  34392. //
  34393. // -----------------------------------------------------------------------
  34394. // | i=0 | i=1 | i=2 | i=3 |
  34395. // | | | | |
  34396. // | pair 0 pair 1 pair 2 |
  34397. // | | | | |
  34398. // -----------------------------------------------------------------------
  34399. var pairs = [];
  34400. elements = ids.map(function (id, i) {
  34401. // Create the element object.
  34402. var element = {
  34403. element: elementOrSelector(id),
  34404. size: sizes[i],
  34405. minSize: minSizes[i],
  34406. i: i,
  34407. };
  34408. var pair;
  34409. if (i > 0) {
  34410. // Create the pair object with its metadata.
  34411. pair = {
  34412. a: i - 1,
  34413. b: i,
  34414. dragging: false,
  34415. direction: direction,
  34416. parent: parent,
  34417. };
  34418. pair[aGutterSize] = getGutterSize(
  34419. gutterSize,
  34420. i - 1 === 0,
  34421. false,
  34422. gutterAlign
  34423. );
  34424. pair[bGutterSize] = getGutterSize(
  34425. gutterSize,
  34426. false,
  34427. i === ids.length - 1,
  34428. gutterAlign
  34429. );
  34430. // if the parent has a reverse flex-direction, switch the pair elements.
  34431. if (
  34432. parentFlexDirection === 'row-reverse' ||
  34433. parentFlexDirection === 'column-reverse'
  34434. ) {
  34435. var temp = pair.a;
  34436. pair.a = pair.b;
  34437. pair.b = temp;
  34438. }
  34439. }
  34440. // Determine the size of the current element. IE8 is supported by
  34441. // staticly assigning sizes without draggable gutters. Assigns a string
  34442. // to `size`.
  34443. //
  34444. // IE9 and above
  34445. if (!isIE8) {
  34446. // Create gutter elements for each pair.
  34447. if (i > 0) {
  34448. var gutterElement = gutter(i, direction, element.element);
  34449. setGutterSize(gutterElement, gutterSize, i);
  34450. // Save bound event listener for removal later
  34451. pair[gutterStartDragging] = startDragging.bind(pair);
  34452. // Attach bound event listener
  34453. gutterElement[addEventListener](
  34454. 'mousedown',
  34455. pair[gutterStartDragging]
  34456. );
  34457. gutterElement[addEventListener](
  34458. 'touchstart',
  34459. pair[gutterStartDragging]
  34460. );
  34461. parent.insertBefore(gutterElement, element.element);
  34462. pair.gutter = gutterElement;
  34463. }
  34464. }
  34465. setElementSize(
  34466. element.element,
  34467. element.size,
  34468. getGutterSize(
  34469. gutterSize,
  34470. i === 0,
  34471. i === ids.length - 1,
  34472. gutterAlign
  34473. )
  34474. );
  34475. // After the first iteration, and we have a pair object, append it to the
  34476. // list of pairs.
  34477. if (i > 0) {
  34478. pairs.push(pair);
  34479. }
  34480. return element
  34481. });
  34482. function adjustToMin(element) {
  34483. var isLast = element.i === pairs.length;
  34484. var pair = isLast ? pairs[element.i - 1] : pairs[element.i];
  34485. calculateSizes.call(pair);
  34486. var size = isLast
  34487. ? pair.size - element.minSize - pair[bGutterSize]
  34488. : element.minSize + pair[aGutterSize];
  34489. adjust.call(pair, size);
  34490. }
  34491. elements.forEach(function (element) {
  34492. var computedSize = element.element[getBoundingClientRect]()[dimension];
  34493. if (computedSize < element.minSize) {
  34494. if (expandToMin) {
  34495. adjustToMin(element);
  34496. } else {
  34497. // eslint-disable-next-line no-param-reassign
  34498. element.minSize = computedSize;
  34499. }
  34500. }
  34501. });
  34502. function setSizes(newSizes) {
  34503. var trimmed = trimToMin(newSizes);
  34504. trimmed.forEach(function (newSize, i) {
  34505. if (i > 0) {
  34506. var pair = pairs[i - 1];
  34507. var a = elements[pair.a];
  34508. var b = elements[pair.b];
  34509. a.size = trimmed[i - 1];
  34510. b.size = newSize;
  34511. setElementSize(a.element, a.size, pair[aGutterSize]);
  34512. setElementSize(b.element, b.size, pair[bGutterSize]);
  34513. }
  34514. });
  34515. }
  34516. function destroy(preserveStyles, preserveGutter) {
  34517. pairs.forEach(function (pair) {
  34518. if (preserveGutter !== true) {
  34519. pair.parent.removeChild(pair.gutter);
  34520. } else {
  34521. pair.gutter[removeEventListener](
  34522. 'mousedown',
  34523. pair[gutterStartDragging]
  34524. );
  34525. pair.gutter[removeEventListener](
  34526. 'touchstart',
  34527. pair[gutterStartDragging]
  34528. );
  34529. }
  34530. if (preserveStyles !== true) {
  34531. var style = elementStyle(
  34532. dimension,
  34533. pair.a.size,
  34534. pair[aGutterSize]
  34535. );
  34536. Object.keys(style).forEach(function (prop) {
  34537. elements[pair.a].element.style[prop] = '';
  34538. elements[pair.b].element.style[prop] = '';
  34539. });
  34540. }
  34541. });
  34542. }
  34543. if (isIE8) {
  34544. return {
  34545. setSizes: setSizes,
  34546. destroy: destroy,
  34547. }
  34548. }
  34549. return {
  34550. setSizes: setSizes,
  34551. getSizes: getSizes,
  34552. collapse: function collapse(i) {
  34553. adjustToMin(elements[i]);
  34554. },
  34555. destroy: destroy,
  34556. parent: parent,
  34557. pairs: pairs,
  34558. }
  34559. };
  34560. /* harmony default export */ __webpack_exports__["default"] = (Split);
  34561. /***/ }),
  34562. /***/ "../../node_modules/style-loader/lib/addStyles.js":
  34563. /*!****************************************************************************!*\
  34564. !*** C:/Dev/Babylon/Babylon.js/node_modules/style-loader/lib/addStyles.js ***!
  34565. \****************************************************************************/
  34566. /*! no static exports found */
  34567. /***/ (function(module, exports, __webpack_require__) {
  34568. /*
  34569. MIT License http://www.opensource.org/licenses/mit-license.php
  34570. Author Tobias Koppers @sokra
  34571. */
  34572. var stylesInDom = {};
  34573. var memoize = function (fn) {
  34574. var memo;
  34575. return function () {
  34576. if (typeof memo === "undefined") memo = fn.apply(this, arguments);
  34577. return memo;
  34578. };
  34579. };
  34580. var isOldIE = memoize(function () {
  34581. // Test for IE <= 9 as proposed by Browserhacks
  34582. // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
  34583. // Tests for existence of standard globals is to allow style-loader
  34584. // to operate correctly into non-standard environments
  34585. // @see https://github.com/webpack-contrib/style-loader/issues/177
  34586. return window && document && document.all && !window.atob;
  34587. });
  34588. var getTarget = function (target) {
  34589. return document.querySelector(target);
  34590. };
  34591. var getElement = (function (fn) {
  34592. var memo = {};
  34593. return function(target) {
  34594. // If passing function in options, then use it for resolve "head" element.
  34595. // Useful for Shadow Root style i.e
  34596. // {
  34597. // insertInto: function () { return document.querySelector("#foo").shadowRoot }
  34598. // }
  34599. if (typeof target === 'function') {
  34600. return target();
  34601. }
  34602. if (typeof memo[target] === "undefined") {
  34603. var styleTarget = getTarget.call(this, target);
  34604. // Special case to return head of iframe instead of iframe itself
  34605. if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
  34606. try {
  34607. // This will throw an exception if access to iframe is blocked
  34608. // due to cross-origin restrictions
  34609. styleTarget = styleTarget.contentDocument.head;
  34610. } catch(e) {
  34611. styleTarget = null;
  34612. }
  34613. }
  34614. memo[target] = styleTarget;
  34615. }
  34616. return memo[target]
  34617. };
  34618. })();
  34619. var singleton = null;
  34620. var singletonCounter = 0;
  34621. var stylesInsertedAtTop = [];
  34622. var fixUrls = __webpack_require__(/*! ./urls */ "../../node_modules/style-loader/lib/urls.js");
  34623. module.exports = function(list, options) {
  34624. if (typeof DEBUG !== "undefined" && DEBUG) {
  34625. if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
  34626. }
  34627. options = options || {};
  34628. options.attrs = typeof options.attrs === "object" ? options.attrs : {};
  34629. // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
  34630. // tags it will allow on a page
  34631. if (!options.singleton && typeof options.singleton !== "boolean") options.singleton = isOldIE();
  34632. // By default, add <style> tags to the <head> element
  34633. if (!options.insertInto) options.insertInto = "head";
  34634. // By default, add <style> tags to the bottom of the target
  34635. if (!options.insertAt) options.insertAt = "bottom";
  34636. var styles = listToStyles(list, options);
  34637. addStylesToDom(styles, options);
  34638. return function update (newList) {
  34639. var mayRemove = [];
  34640. for (var i = 0; i < styles.length; i++) {
  34641. var item = styles[i];
  34642. var domStyle = stylesInDom[item.id];
  34643. domStyle.refs--;
  34644. mayRemove.push(domStyle);
  34645. }
  34646. if(newList) {
  34647. var newStyles = listToStyles(newList, options);
  34648. addStylesToDom(newStyles, options);
  34649. }
  34650. for (var i = 0; i < mayRemove.length; i++) {
  34651. var domStyle = mayRemove[i];
  34652. if(domStyle.refs === 0) {
  34653. for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();
  34654. delete stylesInDom[domStyle.id];
  34655. }
  34656. }
  34657. };
  34658. };
  34659. function addStylesToDom (styles, options) {
  34660. for (var i = 0; i < styles.length; i++) {
  34661. var item = styles[i];
  34662. var domStyle = stylesInDom[item.id];
  34663. if(domStyle) {
  34664. domStyle.refs++;
  34665. for(var j = 0; j < domStyle.parts.length; j++) {
  34666. domStyle.parts[j](item.parts[j]);
  34667. }
  34668. for(; j < item.parts.length; j++) {
  34669. domStyle.parts.push(addStyle(item.parts[j], options));
  34670. }
  34671. } else {
  34672. var parts = [];
  34673. for(var j = 0; j < item.parts.length; j++) {
  34674. parts.push(addStyle(item.parts[j], options));
  34675. }
  34676. stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
  34677. }
  34678. }
  34679. }
  34680. function listToStyles (list, options) {
  34681. var styles = [];
  34682. var newStyles = {};
  34683. for (var i = 0; i < list.length; i++) {
  34684. var item = list[i];
  34685. var id = options.base ? item[0] + options.base : item[0];
  34686. var css = item[1];
  34687. var media = item[2];
  34688. var sourceMap = item[3];
  34689. var part = {css: css, media: media, sourceMap: sourceMap};
  34690. if(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});
  34691. else newStyles[id].parts.push(part);
  34692. }
  34693. return styles;
  34694. }
  34695. function insertStyleElement (options, style) {
  34696. var target = getElement(options.insertInto)
  34697. if (!target) {
  34698. throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
  34699. }
  34700. var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];
  34701. if (options.insertAt === "top") {
  34702. if (!lastStyleElementInsertedAtTop) {
  34703. target.insertBefore(style, target.firstChild);
  34704. } else if (lastStyleElementInsertedAtTop.nextSibling) {
  34705. target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);
  34706. } else {
  34707. target.appendChild(style);
  34708. }
  34709. stylesInsertedAtTop.push(style);
  34710. } else if (options.insertAt === "bottom") {
  34711. target.appendChild(style);
  34712. } else if (typeof options.insertAt === "object" && options.insertAt.before) {
  34713. var nextSibling = getElement(options.insertInto + " " + options.insertAt.before);
  34714. target.insertBefore(style, nextSibling);
  34715. } else {
  34716. throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");
  34717. }
  34718. }
  34719. function removeStyleElement (style) {
  34720. if (style.parentNode === null) return false;
  34721. style.parentNode.removeChild(style);
  34722. var idx = stylesInsertedAtTop.indexOf(style);
  34723. if(idx >= 0) {
  34724. stylesInsertedAtTop.splice(idx, 1);
  34725. }
  34726. }
  34727. function createStyleElement (options) {
  34728. var style = document.createElement("style");
  34729. if(options.attrs.type === undefined) {
  34730. options.attrs.type = "text/css";
  34731. }
  34732. addAttrs(style, options.attrs);
  34733. insertStyleElement(options, style);
  34734. return style;
  34735. }
  34736. function createLinkElement (options) {
  34737. var link = document.createElement("link");
  34738. if(options.attrs.type === undefined) {
  34739. options.attrs.type = "text/css";
  34740. }
  34741. options.attrs.rel = "stylesheet";
  34742. addAttrs(link, options.attrs);
  34743. insertStyleElement(options, link);
  34744. return link;
  34745. }
  34746. function addAttrs (el, attrs) {
  34747. Object.keys(attrs).forEach(function (key) {
  34748. el.setAttribute(key, attrs[key]);
  34749. });
  34750. }
  34751. function addStyle (obj, options) {
  34752. var style, update, remove, result;
  34753. // If a transform function was defined, run it on the css
  34754. if (options.transform && obj.css) {
  34755. result = options.transform(obj.css);
  34756. if (result) {
  34757. // If transform returns a value, use that instead of the original css.
  34758. // This allows running runtime transformations on the css.
  34759. obj.css = result;
  34760. } else {
  34761. // If the transform function returns a falsy value, don't add this css.
  34762. // This allows conditional loading of css
  34763. return function() {
  34764. // noop
  34765. };
  34766. }
  34767. }
  34768. if (options.singleton) {
  34769. var styleIndex = singletonCounter++;
  34770. style = singleton || (singleton = createStyleElement(options));
  34771. update = applyToSingletonTag.bind(null, style, styleIndex, false);
  34772. remove = applyToSingletonTag.bind(null, style, styleIndex, true);
  34773. } else if (
  34774. obj.sourceMap &&
  34775. typeof URL === "function" &&
  34776. typeof URL.createObjectURL === "function" &&
  34777. typeof URL.revokeObjectURL === "function" &&
  34778. typeof Blob === "function" &&
  34779. typeof btoa === "function"
  34780. ) {
  34781. style = createLinkElement(options);
  34782. update = updateLink.bind(null, style, options);
  34783. remove = function () {
  34784. removeStyleElement(style);
  34785. if(style.href) URL.revokeObjectURL(style.href);
  34786. };
  34787. } else {
  34788. style = createStyleElement(options);
  34789. update = applyToTag.bind(null, style);
  34790. remove = function () {
  34791. removeStyleElement(style);
  34792. };
  34793. }
  34794. update(obj);
  34795. return function updateStyle (newObj) {
  34796. if (newObj) {
  34797. if (
  34798. newObj.css === obj.css &&
  34799. newObj.media === obj.media &&
  34800. newObj.sourceMap === obj.sourceMap
  34801. ) {
  34802. return;
  34803. }
  34804. update(obj = newObj);
  34805. } else {
  34806. remove();
  34807. }
  34808. };
  34809. }
  34810. var replaceText = (function () {
  34811. var textStore = [];
  34812. return function (index, replacement) {
  34813. textStore[index] = replacement;
  34814. return textStore.filter(Boolean).join('\n');
  34815. };
  34816. })();
  34817. function applyToSingletonTag (style, index, remove, obj) {
  34818. var css = remove ? "" : obj.css;
  34819. if (style.styleSheet) {
  34820. style.styleSheet.cssText = replaceText(index, css);
  34821. } else {
  34822. var cssNode = document.createTextNode(css);
  34823. var childNodes = style.childNodes;
  34824. if (childNodes[index]) style.removeChild(childNodes[index]);
  34825. if (childNodes.length) {
  34826. style.insertBefore(cssNode, childNodes[index]);
  34827. } else {
  34828. style.appendChild(cssNode);
  34829. }
  34830. }
  34831. }
  34832. function applyToTag (style, obj) {
  34833. var css = obj.css;
  34834. var media = obj.media;
  34835. if(media) {
  34836. style.setAttribute("media", media)
  34837. }
  34838. if(style.styleSheet) {
  34839. style.styleSheet.cssText = css;
  34840. } else {
  34841. while(style.firstChild) {
  34842. style.removeChild(style.firstChild);
  34843. }
  34844. style.appendChild(document.createTextNode(css));
  34845. }
  34846. }
  34847. function updateLink (link, options, obj) {
  34848. var css = obj.css;
  34849. var sourceMap = obj.sourceMap;
  34850. /*
  34851. If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled
  34852. and there is no publicPath defined then lets turn convertToAbsoluteUrls
  34853. on by default. Otherwise default to the convertToAbsoluteUrls option
  34854. directly
  34855. */
  34856. var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;
  34857. if (options.convertToAbsoluteUrls || autoFixUrls) {
  34858. css = fixUrls(css);
  34859. }
  34860. if (sourceMap) {
  34861. // http://stackoverflow.com/a/26603875
  34862. css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
  34863. }
  34864. var blob = new Blob([css], { type: "text/css" });
  34865. var oldSrc = link.href;
  34866. link.href = URL.createObjectURL(blob);
  34867. if(oldSrc) URL.revokeObjectURL(oldSrc);
  34868. }
  34869. /***/ }),
  34870. /***/ "../../node_modules/style-loader/lib/urls.js":
  34871. /*!***********************************************************************!*\
  34872. !*** C:/Dev/Babylon/Babylon.js/node_modules/style-loader/lib/urls.js ***!
  34873. \***********************************************************************/
  34874. /*! no static exports found */
  34875. /***/ (function(module, exports) {
  34876. /**
  34877. * When source maps are enabled, `style-loader` uses a link element with a data-uri to
  34878. * embed the css on the page. This breaks all relative urls because now they are relative to a
  34879. * bundle instead of the current page.
  34880. *
  34881. * One solution is to only use full urls, but that may be impossible.
  34882. *
  34883. * Instead, this function "fixes" the relative urls to be absolute according to the current page location.
  34884. *
  34885. * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.
  34886. *
  34887. */
  34888. module.exports = function (css) {
  34889. // get current location
  34890. var location = typeof window !== "undefined" && window.location;
  34891. if (!location) {
  34892. throw new Error("fixUrls requires window.location");
  34893. }
  34894. // blank or null?
  34895. if (!css || typeof css !== "string") {
  34896. return css;
  34897. }
  34898. var baseUrl = location.protocol + "//" + location.host;
  34899. var currentDir = baseUrl + location.pathname.replace(/\/[^\/]*$/, "/");
  34900. // convert each url(...)
  34901. /*
  34902. This regular expression is just a way to recursively match brackets within
  34903. a string.
  34904. /url\s*\( = Match on the word "url" with any whitespace after it and then a parens
  34905. ( = Start a capturing group
  34906. (?: = Start a non-capturing group
  34907. [^)(] = Match anything that isn't a parentheses
  34908. | = OR
  34909. \( = Match a start parentheses
  34910. (?: = Start another non-capturing groups
  34911. [^)(]+ = Match anything that isn't a parentheses
  34912. | = OR
  34913. \( = Match a start parentheses
  34914. [^)(]* = Match anything that isn't a parentheses
  34915. \) = Match a end parentheses
  34916. ) = End Group
  34917. *\) = Match anything and then a close parens
  34918. ) = Close non-capturing group
  34919. * = Match anything
  34920. ) = Close capturing group
  34921. \) = Match a close parens
  34922. /gi = Get all matches, not the first. Be case insensitive.
  34923. */
  34924. var fixedCss = css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(fullMatch, origUrl) {
  34925. // strip quotes (if they exist)
  34926. var unquotedOrigUrl = origUrl
  34927. .trim()
  34928. .replace(/^"(.*)"$/, function(o, $1){ return $1; })
  34929. .replace(/^'(.*)'$/, function(o, $1){ return $1; });
  34930. // already a full url? no change
  34931. if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl)) {
  34932. return fullMatch;
  34933. }
  34934. // convert the url to a full url
  34935. var newUrl;
  34936. if (unquotedOrigUrl.indexOf("//") === 0) {
  34937. //TODO: should we add protocol?
  34938. newUrl = unquotedOrigUrl;
  34939. } else if (unquotedOrigUrl.indexOf("/") === 0) {
  34940. // path should be relative to the base url
  34941. newUrl = baseUrl + unquotedOrigUrl; // already starts with '/'
  34942. } else {
  34943. // path should be relative to current directory
  34944. newUrl = currentDir + unquotedOrigUrl.replace(/^\.\//, ""); // Strip leading './'
  34945. }
  34946. // send back the fixed url(...)
  34947. return "url(" + JSON.stringify(newUrl) + ")";
  34948. });
  34949. // send back the fixed css
  34950. return fixedCss;
  34951. };
  34952. /***/ }),
  34953. /***/ "../../node_modules/tslib/tslib.es6.js":
  34954. /*!*****************************************************************!*\
  34955. !*** C:/Dev/Babylon/Babylon.js/node_modules/tslib/tslib.es6.js ***!
  34956. \*****************************************************************/
  34957. /*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault */
  34958. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  34959. "use strict";
  34960. __webpack_require__.r(__webpack_exports__);
  34961. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; });
  34962. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
  34963. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; });
  34964. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; });
  34965. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; });
  34966. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; });
  34967. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; });
  34968. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; });
  34969. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; });
  34970. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; });
  34971. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; });
  34972. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; });
  34973. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArrays", function() { return __spreadArrays; });
  34974. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; });
  34975. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; });
  34976. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; });
  34977. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; });
  34978. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; });
  34979. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; });
  34980. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
  34981. /*! *****************************************************************************
  34982. Copyright (c) Microsoft Corporation. All rights reserved.
  34983. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  34984. this file except in compliance with the License. You may obtain a copy of the
  34985. License at http://www.apache.org/licenses/LICENSE-2.0
  34986. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  34987. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  34988. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  34989. MERCHANTABLITY OR NON-INFRINGEMENT.
  34990. See the Apache Version 2.0 License for specific language governing permissions
  34991. and limitations under the License.
  34992. ***************************************************************************** */
  34993. /* global Reflect, Promise */
  34994. var extendStatics = function(d, b) {
  34995. extendStatics = Object.setPrototypeOf ||
  34996. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  34997. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  34998. return extendStatics(d, b);
  34999. };
  35000. function __extends(d, b) {
  35001. extendStatics(d, b);
  35002. function __() { this.constructor = d; }
  35003. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  35004. }
  35005. var __assign = function() {
  35006. __assign = Object.assign || function __assign(t) {
  35007. for (var s, i = 1, n = arguments.length; i < n; i++) {
  35008. s = arguments[i];
  35009. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
  35010. }
  35011. return t;
  35012. }
  35013. return __assign.apply(this, arguments);
  35014. }
  35015. function __rest(s, e) {
  35016. var t = {};
  35017. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
  35018. t[p] = s[p];
  35019. if (s != null && typeof Object.getOwnPropertySymbols === "function")
  35020. for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
  35021. if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
  35022. t[p[i]] = s[p[i]];
  35023. }
  35024. return t;
  35025. }
  35026. function __decorate(decorators, target, key, desc) {
  35027. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  35028. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  35029. else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
  35030. return c > 3 && r && Object.defineProperty(target, key, r), r;
  35031. }
  35032. function __param(paramIndex, decorator) {
  35033. return function (target, key) { decorator(target, key, paramIndex); }
  35034. }
  35035. function __metadata(metadataKey, metadataValue) {
  35036. if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
  35037. }
  35038. function __awaiter(thisArg, _arguments, P, generator) {
  35039. return new (P || (P = Promise))(function (resolve, reject) {
  35040. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  35041. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  35042. function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
  35043. step((generator = generator.apply(thisArg, _arguments || [])).next());
  35044. });
  35045. }
  35046. function __generator(thisArg, body) {
  35047. var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
  35048. return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
  35049. function verb(n) { return function (v) { return step([n, v]); }; }
  35050. function step(op) {
  35051. if (f) throw new TypeError("Generator is already executing.");
  35052. while (_) try {
  35053. if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
  35054. if (y = 0, t) op = [op[0] & 2, t.value];
  35055. switch (op[0]) {
  35056. case 0: case 1: t = op; break;
  35057. case 4: _.label++; return { value: op[1], done: false };
  35058. case 5: _.label++; y = op[1]; op = [0]; continue;
  35059. case 7: op = _.ops.pop(); _.trys.pop(); continue;
  35060. default:
  35061. if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
  35062. if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
  35063. if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
  35064. if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
  35065. if (t[2]) _.ops.pop();
  35066. _.trys.pop(); continue;
  35067. }
  35068. op = body.call(thisArg, _);
  35069. } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
  35070. if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
  35071. }
  35072. }
  35073. function __exportStar(m, exports) {
  35074. for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
  35075. }
  35076. function __values(o) {
  35077. var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
  35078. if (m) return m.call(o);
  35079. return {
  35080. next: function () {
  35081. if (o && i >= o.length) o = void 0;
  35082. return { value: o && o[i++], done: !o };
  35083. }
  35084. };
  35085. }
  35086. function __read(o, n) {
  35087. var m = typeof Symbol === "function" && o[Symbol.iterator];
  35088. if (!m) return o;
  35089. var i = m.call(o), r, ar = [], e;
  35090. try {
  35091. while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
  35092. }
  35093. catch (error) { e = { error: error }; }
  35094. finally {
  35095. try {
  35096. if (r && !r.done && (m = i["return"])) m.call(i);
  35097. }
  35098. finally { if (e) throw e.error; }
  35099. }
  35100. return ar;
  35101. }
  35102. function __spread() {
  35103. for (var ar = [], i = 0; i < arguments.length; i++)
  35104. ar = ar.concat(__read(arguments[i]));
  35105. return ar;
  35106. }
  35107. function __spreadArrays() {
  35108. for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
  35109. for (var r = Array(s), k = 0, i = 0; i < il; i++)
  35110. for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
  35111. r[k] = a[j];
  35112. return r;
  35113. };
  35114. function __await(v) {
  35115. return this instanceof __await ? (this.v = v, this) : new __await(v);
  35116. }
  35117. function __asyncGenerator(thisArg, _arguments, generator) {
  35118. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  35119. var g = generator.apply(thisArg, _arguments || []), i, q = [];
  35120. return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
  35121. function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
  35122. function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
  35123. function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
  35124. function fulfill(value) { resume("next", value); }
  35125. function reject(value) { resume("throw", value); }
  35126. function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
  35127. }
  35128. function __asyncDelegator(o) {
  35129. var i, p;
  35130. return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
  35131. function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
  35132. }
  35133. function __asyncValues(o) {
  35134. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  35135. var m = o[Symbol.asyncIterator], i;
  35136. return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
  35137. function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
  35138. function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
  35139. }
  35140. function __makeTemplateObject(cooked, raw) {
  35141. if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
  35142. return cooked;
  35143. };
  35144. function __importStar(mod) {
  35145. if (mod && mod.__esModule) return mod;
  35146. var result = {};
  35147. if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
  35148. result.default = mod;
  35149. return result;
  35150. }
  35151. function __importDefault(mod) {
  35152. return (mod && mod.__esModule) ? mod : { default: mod };
  35153. }
  35154. /***/ }),
  35155. /***/ "../../node_modules/webpack/buildin/global.js":
  35156. /*!***********************************!*\
  35157. !*** (webpack)/buildin/global.js ***!
  35158. \***********************************/
  35159. /*! no static exports found */
  35160. /***/ (function(module, exports) {
  35161. var g;
  35162. // This works in non-strict mode
  35163. g = (function() {
  35164. return this;
  35165. })();
  35166. try {
  35167. // This works if eval is allowed (see CSP)
  35168. g = g || new Function("return this")();
  35169. } catch (e) {
  35170. // This works if the window reference is available
  35171. if (typeof window === "object") g = window;
  35172. }
  35173. // g can still be undefined, but nothing to do about it...
  35174. // We return undefined, instead of nothing here, so it's
  35175. // easier to handle this case. if(!global) { ...}
  35176. module.exports = g;
  35177. /***/ }),
  35178. /***/ "./components/actionTabs/actionTabs.scss":
  35179. /*!***********************************************!*\
  35180. !*** ./components/actionTabs/actionTabs.scss ***!
  35181. \***********************************************/
  35182. /*! no static exports found */
  35183. /***/ (function(module, exports, __webpack_require__) {
  35184. var content = __webpack_require__(/*! !../../../../node_modules/css-loader!../../../../node_modules/sass-loader/lib/loader.js!./actionTabs.scss */ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/actionTabs/actionTabs.scss");
  35185. if(typeof content === 'string') content = [[module.i, content, '']];
  35186. var transform;
  35187. var insertInto;
  35188. var options = {"hmr":true}
  35189. options.transform = transform
  35190. options.insertInto = undefined;
  35191. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  35192. if(content.locals) module.exports = content.locals;
  35193. if(false) {}
  35194. /***/ }),
  35195. /***/ "./components/actionTabs/actionTabsComponent.tsx":
  35196. /*!*******************************************************!*\
  35197. !*** ./components/actionTabs/actionTabsComponent.tsx ***!
  35198. \*******************************************************/
  35199. /*! exports provided: ActionTabsComponent */
  35200. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  35201. "use strict";
  35202. __webpack_require__.r(__webpack_exports__);
  35203. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ActionTabsComponent", function() { return ActionTabsComponent; });
  35204. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  35205. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  35206. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  35207. /* harmony import */ var babylonjs_Debug_debugLayer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Debug/debugLayer */ "babylonjs/Misc/observable");
  35208. /* harmony import */ var babylonjs_Debug_debugLayer__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Debug_debugLayer__WEBPACK_IMPORTED_MODULE_2__);
  35209. /* harmony import */ var _tabsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tabsComponent */ "./components/actionTabs/tabsComponent.tsx");
  35210. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  35211. /* harmony import */ var _tabs_statisticsTabComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./tabs/statisticsTabComponent */ "./components/actionTabs/tabs/statisticsTabComponent.tsx");
  35212. /* harmony import */ var _tabs_debugTabComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./tabs/debugTabComponent */ "./components/actionTabs/tabs/debugTabComponent.tsx");
  35213. /* harmony import */ var re_resizable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! re-resizable */ "../../node_modules/re-resizable/lib/index.es5.js");
  35214. /* harmony import */ var re_resizable__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(re_resizable__WEBPACK_IMPORTED_MODULE_7__);
  35215. /* harmony import */ var _tabs_propertyGridTabComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./tabs/propertyGridTabComponent */ "./components/actionTabs/tabs/propertyGridTabComponent.tsx");
  35216. /* harmony import */ var _headerComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../headerComponent */ "./components/headerComponent.tsx");
  35217. /* harmony import */ var _tabs_toolsTabComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./tabs/toolsTabComponent */ "./components/actionTabs/tabs/toolsTabComponent.tsx");
  35218. /* harmony import */ var _tabs_settingsTabComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./tabs/settingsTabComponent */ "./components/actionTabs/tabs/settingsTabComponent.tsx");
  35219. __webpack_require__(/*! ./actionTabs.scss */ "./components/actionTabs/actionTabs.scss");
  35220. var ActionTabsComponent = /** @class */ (function (_super) {
  35221. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ActionTabsComponent, _super);
  35222. function ActionTabsComponent(props) {
  35223. var _this = _super.call(this, props) || this;
  35224. _this._once = true;
  35225. var initialIndex = props.initialTab === undefined
  35226. ? babylonjs_Debug_debugLayer__WEBPACK_IMPORTED_MODULE_2__["DebugLayerTab"].Properties
  35227. : props.initialTab;
  35228. if (_this.props.globalState) {
  35229. var validationResults = _this.props.globalState.validationResults;
  35230. if (validationResults) {
  35231. if (validationResults.issues.numErrors || validationResults.issues.numWarnings) {
  35232. initialIndex = babylonjs_Debug_debugLayer__WEBPACK_IMPORTED_MODULE_2__["DebugLayerTab"].Tools;
  35233. }
  35234. }
  35235. }
  35236. _this.state = { selectedEntity: null, selectedIndex: initialIndex };
  35237. return _this;
  35238. }
  35239. ActionTabsComponent.prototype.componentDidMount = function () {
  35240. var _this = this;
  35241. if (this.props.globalState) {
  35242. this._onSelectionChangeObserver = this.props.globalState.onSelectionChangedObservable.add(function (entity) {
  35243. _this.setState({ selectedEntity: entity, selectedIndex: babylonjs_Debug_debugLayer__WEBPACK_IMPORTED_MODULE_2__["DebugLayerTab"].Properties });
  35244. });
  35245. this._onTabChangedObserver = this.props.globalState.onTabChangedObservable.add(function (index) {
  35246. _this.setState({ selectedIndex: index });
  35247. });
  35248. }
  35249. };
  35250. ActionTabsComponent.prototype.componentWillUnmount = function () {
  35251. if (this.props.globalState) {
  35252. if (this._onSelectionChangeObserver) {
  35253. this.props.globalState.onSelectionChangedObservable.remove(this._onSelectionChangeObserver);
  35254. }
  35255. if (this._onTabChangedObserver) {
  35256. this.props.globalState.onTabChangedObservable.remove(this._onTabChangedObserver);
  35257. }
  35258. }
  35259. };
  35260. ActionTabsComponent.prototype.changeSelectedTab = function (index) {
  35261. if (this.props.globalState) {
  35262. this.props.globalState.onTabChangedObservable.notifyObservers(index);
  35263. }
  35264. };
  35265. ActionTabsComponent.prototype.renderContent = function () {
  35266. var _this = this;
  35267. if (this.props.globalState && this.props.scene) {
  35268. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_tabsComponent__WEBPACK_IMPORTED_MODULE_3__["TabsComponent"], { selectedIndex: this.state.selectedIndex, onSelectedIndexChange: function (value) { return _this.changeSelectedTab(value); } },
  35269. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_tabs_propertyGridTabComponent__WEBPACK_IMPORTED_MODULE_8__["PropertyGridTabComponent"], { title: "Properties", icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__["faFileAlt"], scene: this.props.scene, selectedEntity: this.state.selectedEntity, globalState: this.props.globalState, onSelectionChangedObservable: this.props.globalState.onSelectionChangedObservable, onPropertyChangedObservable: this.props.globalState.onPropertyChangedObservable }),
  35270. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_tabs_debugTabComponent__WEBPACK_IMPORTED_MODULE_6__["DebugTabComponent"], { title: "Debug", icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__["faBug"], scene: this.props.scene, globalState: this.props.globalState }),
  35271. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_tabs_statisticsTabComponent__WEBPACK_IMPORTED_MODULE_5__["StatisticsTabComponent"], { title: "Statistics", icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__["faChartBar"], scene: this.props.scene, globalState: this.props.globalState }),
  35272. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_tabs_toolsTabComponent__WEBPACK_IMPORTED_MODULE_10__["ToolsTabComponent"], { title: "Tools", icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__["faWrench"], scene: this.props.scene, globalState: this.props.globalState }),
  35273. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_tabs_settingsTabComponent__WEBPACK_IMPORTED_MODULE_11__["SettingsTabComponent"], { title: "Settings", icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__["faCog"], scene: this.props.scene, globalState: this.props.globalState })));
  35274. }
  35275. else {
  35276. return null;
  35277. }
  35278. };
  35279. ActionTabsComponent.prototype.onClose = function () {
  35280. if (!this.props.onClose) {
  35281. return;
  35282. }
  35283. this.props.onClose();
  35284. };
  35285. ActionTabsComponent.prototype.onPopup = function () {
  35286. if (!this.props.onPopup) {
  35287. return;
  35288. }
  35289. this.props.onPopup();
  35290. };
  35291. ActionTabsComponent.prototype.render = function () {
  35292. var _this = this;
  35293. if (this.props.popupMode) {
  35294. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "actionTabs" },
  35295. !this.props.noHeader &&
  35296. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_headerComponent__WEBPACK_IMPORTED_MODULE_9__["HeaderComponent"], { title: "INSPECTOR", handleBack: true, noClose: this.props.noClose, noExpand: this.props.noExpand, noCommands: this.props.noCommands, onClose: function () { return _this.onClose(); }, onPopup: function () { return _this.onPopup(); }, onSelectionChangedObservable: this.props.globalState ? this.props.globalState.onSelectionChangedObservable : undefined }),
  35297. this.renderContent()));
  35298. }
  35299. if (this._once) {
  35300. this._once = false;
  35301. // A bit hacky but no other way to force the initial width to 300px and not auto
  35302. setTimeout(function () {
  35303. var element = document.getElementById("actionTabs");
  35304. if (!element) {
  35305. return;
  35306. }
  35307. element.style.width = "300px";
  35308. }, 150);
  35309. }
  35310. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](re_resizable__WEBPACK_IMPORTED_MODULE_7___default.a, { id: "actionTabs", minWidth: 300, maxWidth: 600, size: { height: "100%" }, minHeight: "100%", enable: { top: false, right: false, bottom: false, left: true, topRight: false, bottomRight: false, bottomLeft: false, topLeft: false } },
  35311. !this.props.noHeader &&
  35312. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_headerComponent__WEBPACK_IMPORTED_MODULE_9__["HeaderComponent"], { title: "INSPECTOR", handleBack: true, noClose: this.props.noClose, noExpand: this.props.noExpand, noCommands: this.props.noCommands, onClose: function () { return _this.onClose(); }, onPopup: function () { return _this.onPopup(); }, onSelectionChangedObservable: this.props.globalState ? this.props.globalState.onSelectionChangedObservable : undefined }),
  35313. this.renderContent()));
  35314. };
  35315. return ActionTabsComponent;
  35316. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  35317. /***/ }),
  35318. /***/ "./components/actionTabs/lineContainerComponent.tsx":
  35319. /*!**********************************************************!*\
  35320. !*** ./components/actionTabs/lineContainerComponent.tsx ***!
  35321. \**********************************************************/
  35322. /*! exports provided: LineContainerComponent */
  35323. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  35324. "use strict";
  35325. __webpack_require__.r(__webpack_exports__);
  35326. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LineContainerComponent", function() { return LineContainerComponent; });
  35327. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  35328. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  35329. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  35330. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  35331. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  35332. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babylonjs/Misc/dataStorage */ "babylonjs/Misc/observable");
  35333. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_4__);
  35334. var LineContainerComponent = /** @class */ (function (_super) {
  35335. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LineContainerComponent, _super);
  35336. function LineContainerComponent(props) {
  35337. var _this = _super.call(this, props) || this;
  35338. var initialState = babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_4__["DataStorage"].ReadBoolean(_this.props.title, !_this.props.closed);
  35339. _this.state = { isExpanded: initialState, isHighlighted: false };
  35340. return _this;
  35341. }
  35342. LineContainerComponent.prototype.switchExpandedState = function () {
  35343. var newState = !this.state.isExpanded;
  35344. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_4__["DataStorage"].WriteBoolean(this.props.title, newState);
  35345. this.setState({ isExpanded: newState });
  35346. };
  35347. LineContainerComponent.prototype.componentDidMount = function () {
  35348. var _this = this;
  35349. if (this.props.globalState && !this.props.globalState.selectedLineContainerTitle) {
  35350. return;
  35351. }
  35352. if (this.props.globalState && this.props.globalState.selectedLineContainerTitle === this.props.title) {
  35353. setTimeout(function () {
  35354. _this.props.globalState.selectedLineContainerTitle = "";
  35355. });
  35356. this.setState({ isExpanded: true, isHighlighted: true });
  35357. window.setTimeout(function () {
  35358. _this.setState({ isHighlighted: false });
  35359. }, 5000);
  35360. }
  35361. else {
  35362. this.setState({ isExpanded: false });
  35363. }
  35364. };
  35365. LineContainerComponent.prototype.renderHeader = function () {
  35366. var _this = this;
  35367. var className = this.state.isExpanded ? "collapse" : "collapse closed";
  35368. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header", onClick: function () { return _this.switchExpandedState(); } },
  35369. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "title" }, this.props.title),
  35370. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: className },
  35371. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faChevronDown"] }))));
  35372. };
  35373. LineContainerComponent.prototype.render = function () {
  35374. if (!this.state.isExpanded) {
  35375. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer" },
  35376. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer-content" }, this.renderHeader())));
  35377. }
  35378. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer" },
  35379. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer-content" },
  35380. this.renderHeader(),
  35381. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneList" }, this.props.children)),
  35382. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer-highlight-border" + (!this.state.isHighlighted ? " transparent" : "") })));
  35383. };
  35384. return LineContainerComponent;
  35385. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  35386. /***/ }),
  35387. /***/ "./components/actionTabs/lines/booleanLineComponent.tsx":
  35388. /*!**************************************************************!*\
  35389. !*** ./components/actionTabs/lines/booleanLineComponent.tsx ***!
  35390. \**************************************************************/
  35391. /*! exports provided: BooleanLineComponent */
  35392. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  35393. "use strict";
  35394. __webpack_require__.r(__webpack_exports__);
  35395. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BooleanLineComponent", function() { return BooleanLineComponent; });
  35396. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  35397. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  35398. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  35399. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  35400. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  35401. var BooleanLineComponent = /** @class */ (function (_super) {
  35402. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BooleanLineComponent, _super);
  35403. function BooleanLineComponent(props) {
  35404. return _super.call(this, props) || this;
  35405. }
  35406. BooleanLineComponent.prototype.render = function () {
  35407. var check = this.props.value ? react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faCheck"] }) : react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faTimesCircle"] });
  35408. var className = this.props.value ? "value check" : "value uncheck";
  35409. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textLine" },
  35410. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  35411. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: className }, check)));
  35412. };
  35413. return BooleanLineComponent;
  35414. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  35415. /***/ }),
  35416. /***/ "./components/actionTabs/lines/buttonLineComponent.tsx":
  35417. /*!*************************************************************!*\
  35418. !*** ./components/actionTabs/lines/buttonLineComponent.tsx ***!
  35419. \*************************************************************/
  35420. /*! exports provided: ButtonLineComponent */
  35421. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  35422. "use strict";
  35423. __webpack_require__.r(__webpack_exports__);
  35424. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ButtonLineComponent", function() { return ButtonLineComponent; });
  35425. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  35426. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  35427. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  35428. var ButtonLineComponent = /** @class */ (function (_super) {
  35429. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ButtonLineComponent, _super);
  35430. function ButtonLineComponent(props) {
  35431. return _super.call(this, props) || this;
  35432. }
  35433. ButtonLineComponent.prototype.render = function () {
  35434. var _this = this;
  35435. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "buttonLine" },
  35436. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { onClick: function () { return _this.props.onClick(); } }, this.props.label)));
  35437. };
  35438. return ButtonLineComponent;
  35439. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  35440. /***/ }),
  35441. /***/ "./components/actionTabs/lines/checkBoxLineComponent.tsx":
  35442. /*!***************************************************************!*\
  35443. !*** ./components/actionTabs/lines/checkBoxLineComponent.tsx ***!
  35444. \***************************************************************/
  35445. /*! exports provided: CheckBoxLineComponent */
  35446. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  35447. "use strict";
  35448. __webpack_require__.r(__webpack_exports__);
  35449. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CheckBoxLineComponent", function() { return CheckBoxLineComponent; });
  35450. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  35451. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  35452. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  35453. var CheckBoxLineComponent = /** @class */ (function (_super) {
  35454. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CheckBoxLineComponent, _super);
  35455. function CheckBoxLineComponent(props) {
  35456. var _this = _super.call(this, props) || this;
  35457. _this._localChange = false;
  35458. _this._uniqueId = CheckBoxLineComponent._UniqueIdSeed++;
  35459. if (_this.props.isSelected) {
  35460. _this.state = { isSelected: _this.props.isSelected() };
  35461. }
  35462. else {
  35463. _this.state = { isSelected: _this.props.target[_this.props.propertyName] === true };
  35464. }
  35465. return _this;
  35466. }
  35467. CheckBoxLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  35468. var currentState;
  35469. if (this.props.isSelected) {
  35470. currentState = nextProps.isSelected();
  35471. }
  35472. else {
  35473. currentState = nextProps.target[nextProps.propertyName] == true;
  35474. }
  35475. if (currentState !== nextState.isSelected || this._localChange) {
  35476. nextState.isSelected = currentState;
  35477. this._localChange = false;
  35478. return true;
  35479. }
  35480. return false;
  35481. };
  35482. CheckBoxLineComponent.prototype.onChange = function () {
  35483. var _a;
  35484. this._localChange = true;
  35485. if (this.props.onSelect) {
  35486. this.props.onSelect(!this.state.isSelected);
  35487. }
  35488. else {
  35489. if (this.props.onPropertyChangedObservable) {
  35490. this.props.onPropertyChangedObservable.notifyObservers({
  35491. object: (_a = this.props.replaySourceReplacement, (_a !== null && _a !== void 0 ? _a : this.props.target)),
  35492. property: this.props.propertyName,
  35493. value: !this.state.isSelected,
  35494. initialValue: this.state.isSelected
  35495. });
  35496. }
  35497. this.props.target[this.props.propertyName] = !this.state.isSelected;
  35498. }
  35499. if (this.props.onValueChanged) {
  35500. this.props.onValueChanged();
  35501. }
  35502. this.setState({ isSelected: !this.state.isSelected });
  35503. };
  35504. CheckBoxLineComponent.prototype.render = function () {
  35505. var _this = this;
  35506. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "checkBoxLine" },
  35507. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  35508. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "checkBox" },
  35509. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "checkbox", id: "checkbox" + this._uniqueId, className: "cbx hidden", checked: this.state.isSelected, onChange: function () { return _this.onChange(); } }),
  35510. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "checkbox" + this._uniqueId, className: "lbl" }))));
  35511. };
  35512. CheckBoxLineComponent._UniqueIdSeed = 0;
  35513. return CheckBoxLineComponent;
  35514. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  35515. /***/ }),
  35516. /***/ "./components/actionTabs/lines/color3LineComponent.tsx":
  35517. /*!*************************************************************!*\
  35518. !*** ./components/actionTabs/lines/color3LineComponent.tsx ***!
  35519. \*************************************************************/
  35520. /*! exports provided: Color3LineComponent */
  35521. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  35522. "use strict";
  35523. __webpack_require__.r(__webpack_exports__);
  35524. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color3LineComponent", function() { return Color3LineComponent; });
  35525. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  35526. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  35527. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  35528. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./components/actionTabs/lines/numericInputComponent.tsx");
  35529. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  35530. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  35531. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Misc/observable");
  35532. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_5__);
  35533. var copyIcon = __webpack_require__(/*! ./copy.svg */ "./components/actionTabs/lines/copy.svg");
  35534. var Color3LineComponent = /** @class */ (function (_super) {
  35535. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Color3LineComponent, _super);
  35536. function Color3LineComponent(props) {
  35537. var _this = _super.call(this, props) || this;
  35538. _this._localChange = false;
  35539. _this.state = { isExpanded: false, color: _this.props.target[_this.props.propertyName].clone() };
  35540. if (props.isLinear) {
  35541. _this.state.color.toGammaSpaceToRef(_this.state.color);
  35542. }
  35543. props.target._isLinearColor = props.isLinear; // so that replayRecorder can append toLinearSpace() as appropriate
  35544. return _this;
  35545. }
  35546. Color3LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  35547. var currentState = this.props.isLinear ? nextProps.target[nextProps.propertyName].toGammaSpace() : nextProps.target[nextProps.propertyName];
  35548. if (!currentState.equals(nextState.color) || this._localChange) {
  35549. nextState.color = currentState.clone();
  35550. this._localChange = false;
  35551. return true;
  35552. }
  35553. return false;
  35554. };
  35555. Color3LineComponent.prototype.setPropertyValue = function (newColor) {
  35556. this.props.target[this.props.propertyName] = newColor;
  35557. if (this.props.isLinear) {
  35558. this.props.target[this.props.propertyName] = newColor.toLinearSpace();
  35559. }
  35560. };
  35561. Color3LineComponent.prototype.onChange = function (newValue) {
  35562. this._localChange = true;
  35563. var newColor = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_5__["Color3"].FromHexString(newValue);
  35564. if (this.props.onPropertyChangedObservable) {
  35565. this.props.onPropertyChangedObservable.notifyObservers({
  35566. object: this.props.target,
  35567. property: this.props.propertyName,
  35568. value: newColor,
  35569. initialValue: this.state.color,
  35570. });
  35571. }
  35572. this.setPropertyValue(newColor);
  35573. this.setState({ color: newColor });
  35574. };
  35575. Color3LineComponent.prototype.switchExpandState = function () {
  35576. this._localChange = true;
  35577. this.setState({ isExpanded: !this.state.isExpanded });
  35578. };
  35579. Color3LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  35580. if (!this.props.onPropertyChangedObservable) {
  35581. return;
  35582. }
  35583. this.props.onPropertyChangedObservable.notifyObservers({
  35584. object: this.props.target,
  35585. property: this.props.propertyName,
  35586. value: this.state.color,
  35587. initialValue: previousValue,
  35588. });
  35589. };
  35590. Color3LineComponent.prototype.updateStateR = function (value) {
  35591. this._localChange = true;
  35592. var store = this.state.color.clone();
  35593. this.state.color.r = value;
  35594. this.setPropertyValue(this.state.color);
  35595. this.setState({ color: this.state.color });
  35596. this.raiseOnPropertyChanged(store);
  35597. };
  35598. Color3LineComponent.prototype.updateStateG = function (value) {
  35599. this._localChange = true;
  35600. var store = this.state.color.clone();
  35601. this.state.color.g = value;
  35602. this.setPropertyValue(this.state.color);
  35603. this.setState({ color: this.state.color });
  35604. this.raiseOnPropertyChanged(store);
  35605. };
  35606. Color3LineComponent.prototype.updateStateB = function (value) {
  35607. this._localChange = true;
  35608. var store = this.state.color.clone();
  35609. this.state.color.b = value;
  35610. this.setPropertyValue(this.state.color);
  35611. this.setState({ color: this.state.color });
  35612. this.raiseOnPropertyChanged(store);
  35613. };
  35614. Color3LineComponent.prototype.copyToClipboard = function () {
  35615. var element = document.createElement('div');
  35616. element.textContent = this.state.color.toHexString();
  35617. document.body.appendChild(element);
  35618. if (window.getSelection) {
  35619. var range = document.createRange();
  35620. range.selectNode(element);
  35621. window.getSelection().removeAllRanges();
  35622. window.getSelection().addRange(range);
  35623. }
  35624. document.execCommand('copy');
  35625. element.remove();
  35626. };
  35627. Color3LineComponent.prototype.render = function () {
  35628. var _this = this;
  35629. var chevron = this.state.isExpanded ? react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__["faMinus"] }) : react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__["faPlus"] });
  35630. var colorAsColor3 = this.state.color.getClassName() === "Color3" ? this.state.color : new babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_5__["Color3"](this.state.color.r, this.state.color.g, this.state.color.b);
  35631. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3Line" },
  35632. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  35633. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  35634. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3" },
  35635. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "color", value: colorAsColor3.toHexString(), onChange: function (evt) { return _this.onChange(evt.target.value); } })),
  35636. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "copy hoverIcon", onClick: function () { return _this.copyToClipboard(); }, title: "Copy to clipboard" },
  35637. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: copyIcon, alt: "" })),
  35638. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  35639. this.state.isExpanded &&
  35640. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  35641. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "r", value: this.state.color.r, onChange: function (value) { return _this.updateStateR(value); } }),
  35642. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "g", value: this.state.color.g, onChange: function (value) { return _this.updateStateG(value); } }),
  35643. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "b", value: this.state.color.b, onChange: function (value) { return _this.updateStateB(value); } }))));
  35644. };
  35645. return Color3LineComponent;
  35646. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  35647. /***/ }),
  35648. /***/ "./components/actionTabs/lines/color4LineComponent.tsx":
  35649. /*!*************************************************************!*\
  35650. !*** ./components/actionTabs/lines/color4LineComponent.tsx ***!
  35651. \*************************************************************/
  35652. /*! exports provided: Color4LineComponent */
  35653. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  35654. "use strict";
  35655. __webpack_require__.r(__webpack_exports__);
  35656. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color4LineComponent", function() { return Color4LineComponent; });
  35657. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  35658. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  35659. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  35660. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Misc/observable");
  35661. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__);
  35662. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./numericInputComponent */ "./components/actionTabs/lines/numericInputComponent.tsx");
  35663. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  35664. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  35665. var copyIcon = __webpack_require__(/*! ./copy.svg */ "./components/actionTabs/lines/copy.svg");
  35666. var Color4LineComponent = /** @class */ (function (_super) {
  35667. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Color4LineComponent, _super);
  35668. function Color4LineComponent(props) {
  35669. var _this = _super.call(this, props) || this;
  35670. _this._localChange = false;
  35671. var value = _this.props.target[_this.props.propertyName];
  35672. var currentColor = value.getClassName() === "Color4" ? value.clone() : new babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"](value.r, value.g, value.b, 1.0);
  35673. _this.state = { isExpanded: false, color: currentColor };
  35674. if (props.isLinear) {
  35675. _this.state.color.toGammaSpaceToRef(_this.state.color);
  35676. }
  35677. props.target._isLinearColor = props.isLinear; // so that replayRecorder can append toLinearSpace() as appropriate
  35678. return _this;
  35679. }
  35680. Color4LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  35681. var value = this.props.target[this.props.propertyName];
  35682. var currentColor = value.getClassName() === "Color4" ? value : new babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"](value.r, value.g, value.b, 1.0);
  35683. if (this.props.isLinear) {
  35684. currentColor.toGammaSpaceRef(currentColor);
  35685. }
  35686. if (!currentColor.equals(nextState.color) || this._localChange) {
  35687. nextState.color = currentColor.clone();
  35688. this._localChange = false;
  35689. return true;
  35690. }
  35691. return false;
  35692. };
  35693. Color4LineComponent.prototype.setPropertyValue = function (newColor) {
  35694. this.props.target[this.props.propertyName] = newColor;
  35695. if (this.props.isLinear) {
  35696. this.props.target[this.props.propertyName] = newColor.toLinearSpace();
  35697. }
  35698. };
  35699. Color4LineComponent.prototype.onChange = function (newValue) {
  35700. this._localChange = true;
  35701. var newColor = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color3"].FromHexString(newValue);
  35702. if (this.props.onPropertyChangedObservable) {
  35703. this.props.onPropertyChangedObservable.notifyObservers({
  35704. object: this.props.target,
  35705. property: this.props.propertyName,
  35706. value: newColor,
  35707. initialValue: this.state.color,
  35708. });
  35709. }
  35710. var newColor4 = new babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"](newColor.r, newColor.g, newColor.b, this.props.target[this.props.propertyName].a);
  35711. this.setPropertyValue(newColor4);
  35712. this.setState({ color: newColor4 });
  35713. if (this.props.onChange) {
  35714. this.props.onChange();
  35715. }
  35716. };
  35717. Color4LineComponent.prototype.switchExpandState = function () {
  35718. this._localChange = true;
  35719. this.setState({ isExpanded: !this.state.isExpanded });
  35720. };
  35721. Color4LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  35722. if (!this.props.onPropertyChangedObservable) {
  35723. return;
  35724. }
  35725. this.props.onPropertyChangedObservable.notifyObservers({
  35726. object: this.props.target,
  35727. property: this.props.propertyName,
  35728. value: this.state.color,
  35729. initialValue: previousValue,
  35730. });
  35731. };
  35732. Color4LineComponent.prototype.updateStateR = function (value) {
  35733. this._localChange = true;
  35734. var store = this.state.color.clone();
  35735. this.state.color.r = value;
  35736. this.setPropertyValue(this.state.color);
  35737. this.setState({ color: this.state.color });
  35738. this.raiseOnPropertyChanged(store);
  35739. };
  35740. Color4LineComponent.prototype.updateStateG = function (value) {
  35741. this._localChange = true;
  35742. var store = this.state.color.clone();
  35743. this.state.color.g = value;
  35744. this.setPropertyValue(this.state.color);
  35745. this.setState({ color: this.state.color });
  35746. this.raiseOnPropertyChanged(store);
  35747. };
  35748. Color4LineComponent.prototype.updateStateB = function (value) {
  35749. this._localChange = true;
  35750. var store = this.state.color.clone();
  35751. this.state.color.b = value;
  35752. this.setPropertyValue(this.state.color);
  35753. this.setState({ color: this.state.color });
  35754. this.raiseOnPropertyChanged(store);
  35755. };
  35756. Color4LineComponent.prototype.updateStateA = function (value) {
  35757. this._localChange = true;
  35758. var store = this.state.color.clone();
  35759. this.props.target[this.props.propertyName].a = value;
  35760. this.state.color.a = value;
  35761. this.props.target[this.props.propertyName] = this.state.color;
  35762. this.setState({ color: this.state.color });
  35763. this.raiseOnPropertyChanged(store);
  35764. };
  35765. Color4LineComponent.prototype.copyToClipboard = function () {
  35766. var element = document.createElement('div');
  35767. element.textContent = this.state.color.toHexString();
  35768. document.body.appendChild(element);
  35769. if (window.getSelection) {
  35770. var range = document.createRange();
  35771. range.selectNode(element);
  35772. window.getSelection().removeAllRanges();
  35773. window.getSelection().addRange(range);
  35774. }
  35775. document.execCommand('copy');
  35776. element.remove();
  35777. };
  35778. Color4LineComponent.prototype.render = function () {
  35779. var _this = this;
  35780. var chevron = this.state.isExpanded ? react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__["faMinus"] }) : react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__["faPlus"] });
  35781. var colorAsColor3 = new babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color3"](this.state.color.r, this.state.color.g, this.state.color.b);
  35782. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3Line" },
  35783. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  35784. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  35785. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3" },
  35786. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "color", value: colorAsColor3.toHexString(), onChange: function (evt) { return _this.onChange(evt.target.value); } })),
  35787. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "copy hoverIcon", onClick: function () { return _this.copyToClipboard(); }, title: "Copy to clipboard" },
  35788. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: copyIcon, alt: "" })),
  35789. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  35790. this.state.isExpanded &&
  35791. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  35792. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_3__["NumericInputComponent"], { label: "r", value: this.state.color.r, onChange: function (value) { return _this.updateStateR(value); } }),
  35793. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_3__["NumericInputComponent"], { label: "g", value: this.state.color.g, onChange: function (value) { return _this.updateStateG(value); } }),
  35794. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_3__["NumericInputComponent"], { label: "b", value: this.state.color.b, onChange: function (value) { return _this.updateStateB(value); } }),
  35795. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_3__["NumericInputComponent"], { label: "a", value: this.state.color.a, onChange: function (value) { return _this.updateStateA(value); } }))));
  35796. };
  35797. return Color4LineComponent;
  35798. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  35799. /***/ }),
  35800. /***/ "./components/actionTabs/lines/copy.svg":
  35801. /*!**********************************************!*\
  35802. !*** ./components/actionTabs/lines/copy.svg ***!
  35803. \**********************************************/
  35804. /*! no static exports found */
  35805. /***/ (function(module, exports) {
  35806. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3Ecopy%3C/title%3E%3Cg id='UI_Elements' data-name='UI Elements'%3E%3Cpath class='cls-1' d='M24,14.89H22.76l-3-3H12.43V26.59h4.26v3h11.5V19Zm.3,1.71,2.14,2.13H24.34Zm-10.91,9V12.93h5.93l2,2H16.69v10.7Zm4.26,3V15.89h5.65v3.84h3.85v8.83Z'/%3E%3C/g%3E%3C/svg%3E"
  35807. /***/ }),
  35808. /***/ "./components/actionTabs/lines/fileButtonLineComponent.tsx":
  35809. /*!*****************************************************************!*\
  35810. !*** ./components/actionTabs/lines/fileButtonLineComponent.tsx ***!
  35811. \*****************************************************************/
  35812. /*! exports provided: FileButtonLineComponent */
  35813. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  35814. "use strict";
  35815. __webpack_require__.r(__webpack_exports__);
  35816. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FileButtonLineComponent", function() { return FileButtonLineComponent; });
  35817. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  35818. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  35819. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  35820. var FileButtonLineComponent = /** @class */ (function (_super) {
  35821. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FileButtonLineComponent, _super);
  35822. function FileButtonLineComponent(props) {
  35823. var _this = _super.call(this, props) || this;
  35824. _this._id = FileButtonLineComponent._IDGenerator++;
  35825. _this.uploadInputRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  35826. return _this;
  35827. }
  35828. FileButtonLineComponent.prototype.onChange = function (evt) {
  35829. var files = evt.target.files;
  35830. if (files && files.length) {
  35831. this.props.onClick(files[0]);
  35832. }
  35833. evt.target.value = "";
  35834. };
  35835. FileButtonLineComponent.prototype.render = function () {
  35836. var _this = this;
  35837. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "buttonLine" },
  35838. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "file-upload" + this._id, className: "file-upload" }, this.props.label),
  35839. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { ref: this.uploadInputRef, id: "file-upload" + this._id, type: "file", accept: this.props.accept, onChange: function (evt) { return _this.onChange(evt); } })));
  35840. };
  35841. FileButtonLineComponent._IDGenerator = 0;
  35842. return FileButtonLineComponent;
  35843. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  35844. /***/ }),
  35845. /***/ "./components/actionTabs/lines/fileMultipleButtonLineComponent.tsx":
  35846. /*!*************************************************************************!*\
  35847. !*** ./components/actionTabs/lines/fileMultipleButtonLineComponent.tsx ***!
  35848. \*************************************************************************/
  35849. /*! exports provided: FileMultipleButtonLineComponent */
  35850. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  35851. "use strict";
  35852. __webpack_require__.r(__webpack_exports__);
  35853. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FileMultipleButtonLineComponent", function() { return FileMultipleButtonLineComponent; });
  35854. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  35855. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  35856. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  35857. var FileMultipleButtonLineComponent = /** @class */ (function (_super) {
  35858. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FileMultipleButtonLineComponent, _super);
  35859. function FileMultipleButtonLineComponent(props) {
  35860. var _this = _super.call(this, props) || this;
  35861. _this._id = FileMultipleButtonLineComponent._IDGenerator++;
  35862. _this.uploadInputRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  35863. return _this;
  35864. }
  35865. FileMultipleButtonLineComponent.prototype.onChange = function (evt) {
  35866. var files = evt.target.files;
  35867. if (files && files.length) {
  35868. this.props.onClick(evt);
  35869. }
  35870. evt.target.value = "";
  35871. };
  35872. FileMultipleButtonLineComponent.prototype.render = function () {
  35873. var _this = this;
  35874. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "buttonLine" },
  35875. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "file-upload" + this._id, className: "file-upload" }, this.props.label),
  35876. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { ref: this.uploadInputRef, id: "file-upload" + this._id, type: "file", accept: this.props.accept, onChange: function (evt) { return _this.onChange(evt); }, multiple: true })));
  35877. };
  35878. FileMultipleButtonLineComponent._IDGenerator = 0;
  35879. return FileMultipleButtonLineComponent;
  35880. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  35881. /***/ }),
  35882. /***/ "./components/actionTabs/lines/floatLineComponent.tsx":
  35883. /*!************************************************************!*\
  35884. !*** ./components/actionTabs/lines/floatLineComponent.tsx ***!
  35885. \************************************************************/
  35886. /*! exports provided: FloatLineComponent */
  35887. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  35888. "use strict";
  35889. __webpack_require__.r(__webpack_exports__);
  35890. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FloatLineComponent", function() { return FloatLineComponent; });
  35891. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  35892. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  35893. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  35894. /* harmony import */ var _sliderLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  35895. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/observable");
  35896. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__);
  35897. var FloatLineComponent = /** @class */ (function (_super) {
  35898. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FloatLineComponent, _super);
  35899. function FloatLineComponent(props) {
  35900. var _this = _super.call(this, props) || this;
  35901. _this._localChange = false;
  35902. var currentValue = _this.props.target[_this.props.propertyName];
  35903. _this.state = { value: currentValue ? (_this.props.isInteger ? currentValue.toFixed(0) : currentValue.toFixed(_this.props.digits || 3)) : "0" };
  35904. _this._store = currentValue;
  35905. return _this;
  35906. }
  35907. FloatLineComponent.prototype.componentWillUnmount = function () {
  35908. this.unlock();
  35909. };
  35910. FloatLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  35911. if (this._localChange) {
  35912. this._localChange = false;
  35913. return true;
  35914. }
  35915. var newValue = nextProps.target[nextProps.propertyName];
  35916. var newValueString = newValue ? this.props.isInteger ? newValue.toFixed(0) : newValue.toFixed(this.props.digits || 3) : "0";
  35917. if (newValueString !== nextState.value) {
  35918. nextState.value = newValueString;
  35919. return true;
  35920. }
  35921. return false;
  35922. };
  35923. FloatLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  35924. var _a;
  35925. if (this.props.onChange) {
  35926. this.props.onChange(newValue);
  35927. }
  35928. if (!this.props.onPropertyChangedObservable) {
  35929. return;
  35930. }
  35931. this.props.onPropertyChangedObservable.notifyObservers({
  35932. object: (_a = this.props.replaySourceReplacement, (_a !== null && _a !== void 0 ? _a : this.props.target)),
  35933. property: this.props.propertyName,
  35934. value: newValue,
  35935. initialValue: previousValue
  35936. });
  35937. };
  35938. FloatLineComponent.prototype.updateValue = function (valueString) {
  35939. if (/[^0-9\.\-]/g.test(valueString)) {
  35940. return;
  35941. }
  35942. var valueAsNumber;
  35943. if (this.props.isInteger) {
  35944. valueAsNumber = parseInt(valueString);
  35945. }
  35946. else {
  35947. valueAsNumber = parseFloat(valueString);
  35948. }
  35949. this._localChange = true;
  35950. this.setState({ value: valueString });
  35951. if (isNaN(valueAsNumber)) {
  35952. return;
  35953. }
  35954. this.raiseOnPropertyChanged(valueAsNumber, this._store);
  35955. this.props.target[this.props.propertyName] = valueAsNumber;
  35956. this._store = valueAsNumber;
  35957. };
  35958. FloatLineComponent.prototype.lock = function () {
  35959. if (this.props.lockObject) {
  35960. this.props.lockObject.lock = true;
  35961. }
  35962. };
  35963. FloatLineComponent.prototype.unlock = function () {
  35964. if (this.props.lockObject) {
  35965. this.props.lockObject.lock = false;
  35966. }
  35967. };
  35968. FloatLineComponent.prototype.render = function () {
  35969. var _this = this;
  35970. var valueAsNumber;
  35971. if (this.props.isInteger) {
  35972. valueAsNumber = parseInt(this.state.value);
  35973. }
  35974. else {
  35975. valueAsNumber = parseFloat(this.state.value);
  35976. }
  35977. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  35978. !this.props.useEuler &&
  35979. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.props.additionalClass ? this.props.additionalClass + " floatLine" : "floatLine" },
  35980. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  35981. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" },
  35982. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "number", step: this.props.step || this.props.isInteger ? "1" : "0.01", className: "numeric-input", value: this.state.value, onBlur: function () { return _this.unlock(); }, onFocus: function () { return _this.lock(); }, onChange: function (evt) { return _this.updateValue(evt.target.value); } }))),
  35983. this.props.useEuler &&
  35984. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sliderLineComponent__WEBPACK_IMPORTED_MODULE_2__["SliderLineComponent"], { label: this.props.label, minimum: 0, maximum: 360, step: 0.1, directValue: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Tools"].ToDegrees(valueAsNumber), onChange: function (value) { return _this.updateValue(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Tools"].ToRadians(value).toString()); } })));
  35985. };
  35986. return FloatLineComponent;
  35987. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  35988. /***/ }),
  35989. /***/ "./components/actionTabs/lines/meshPickerComponent.tsx":
  35990. /*!*************************************************************!*\
  35991. !*** ./components/actionTabs/lines/meshPickerComponent.tsx ***!
  35992. \*************************************************************/
  35993. /*! exports provided: MeshPickerComponent */
  35994. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  35995. "use strict";
  35996. __webpack_require__.r(__webpack_exports__);
  35997. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MeshPickerComponent", function() { return MeshPickerComponent; });
  35998. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  35999. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  36000. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  36001. /* harmony import */ var _optionsLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  36002. var MeshPickerComponent = /** @class */ (function (_super) {
  36003. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MeshPickerComponent, _super);
  36004. function MeshPickerComponent(props) {
  36005. return _super.call(this, props) || this;
  36006. }
  36007. MeshPickerComponent.prototype.render = function () {
  36008. var _this = this;
  36009. var meshEmitters = this.props.scene.meshes.filter(function (m) { return !!m.name; });
  36010. meshEmitters.sort(function (a, b) { return a.name.localeCompare(b.name); });
  36011. var emitterOptions = [
  36012. { label: "None", value: -1 },
  36013. ];
  36014. meshEmitters.sort(function (a, b) { return a.name.localeCompare(b.name); });
  36015. emitterOptions.push.apply(emitterOptions, meshEmitters.map(function (v, i) {
  36016. return { label: v.name, value: i };
  36017. }));
  36018. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  36019. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_optionsLineComponent__WEBPACK_IMPORTED_MODULE_2__["OptionsLineComponent"], { label: this.props.label, options: emitterOptions, target: this.props.target, propertyName: this.props.property, noDirectUpdate: true, onSelect: function (value) {
  36020. var _a;
  36021. var currentState = _this.props.target[_this.props.property];
  36022. switch (value) {
  36023. case -1:
  36024. _this.props.target[_this.props.property] = null;
  36025. break;
  36026. default:
  36027. _this.props.target[_this.props.property] = meshEmitters[value];
  36028. }
  36029. if (_this.props.onPropertyChangedObservable) {
  36030. _this.props.onPropertyChangedObservable.notifyObservers({
  36031. object: (_a = _this.props.replaySourceReplacement, (_a !== null && _a !== void 0 ? _a : _this.props.target)),
  36032. property: _this.props.property,
  36033. value: _this.props.target[_this.props.property],
  36034. initialValue: currentState
  36035. });
  36036. }
  36037. _this.forceUpdate();
  36038. }, extractValue: function () {
  36039. if (!_this.props.target[_this.props.property]) {
  36040. return -1;
  36041. }
  36042. var meshIndex = meshEmitters.indexOf(_this.props.target[_this.props.property]);
  36043. if (meshIndex > -1) {
  36044. return meshIndex;
  36045. }
  36046. return -1;
  36047. } })));
  36048. };
  36049. return MeshPickerComponent;
  36050. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  36051. /***/ }),
  36052. /***/ "./components/actionTabs/lines/messageLineComponent.tsx":
  36053. /*!**************************************************************!*\
  36054. !*** ./components/actionTabs/lines/messageLineComponent.tsx ***!
  36055. \**************************************************************/
  36056. /*! exports provided: MessageLineComponent */
  36057. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  36058. "use strict";
  36059. __webpack_require__.r(__webpack_exports__);
  36060. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessageLineComponent", function() { return MessageLineComponent; });
  36061. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  36062. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  36063. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  36064. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  36065. var MessageLineComponent = /** @class */ (function (_super) {
  36066. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MessageLineComponent, _super);
  36067. function MessageLineComponent(props) {
  36068. return _super.call(this, props) || this;
  36069. }
  36070. MessageLineComponent.prototype.render = function () {
  36071. if (this.props.icon) {
  36072. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "iconMessageLine" },
  36073. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "icon", style: { color: this.props.color ? this.props.color : "" } },
  36074. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: this.props.icon })),
  36075. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value", title: this.props.text }, this.props.text)));
  36076. }
  36077. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "messageLine" },
  36078. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value", title: this.props.text, style: { color: this.props.color ? this.props.color : "" } }, this.props.text)));
  36079. };
  36080. return MessageLineComponent;
  36081. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  36082. /***/ }),
  36083. /***/ "./components/actionTabs/lines/numericInputComponent.tsx":
  36084. /*!***************************************************************!*\
  36085. !*** ./components/actionTabs/lines/numericInputComponent.tsx ***!
  36086. \***************************************************************/
  36087. /*! exports provided: NumericInputComponent */
  36088. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  36089. "use strict";
  36090. __webpack_require__.r(__webpack_exports__);
  36091. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NumericInputComponent", function() { return NumericInputComponent; });
  36092. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  36093. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  36094. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  36095. var NumericInputComponent = /** @class */ (function (_super) {
  36096. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(NumericInputComponent, _super);
  36097. function NumericInputComponent(props) {
  36098. var _this = _super.call(this, props) || this;
  36099. _this._localChange = false;
  36100. _this.state = { value: _this.props.value.toFixed(_this.props.precision !== undefined ? _this.props.precision : 3) };
  36101. return _this;
  36102. }
  36103. NumericInputComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  36104. if (this._localChange) {
  36105. this._localChange = false;
  36106. return true;
  36107. }
  36108. if (nextProps.value.toString() !== nextState.value) {
  36109. nextState.value = nextProps.value.toFixed(this.props.precision !== undefined ? this.props.precision : 3);
  36110. return true;
  36111. }
  36112. return false;
  36113. };
  36114. NumericInputComponent.prototype.updateValue = function (evt) {
  36115. var value = evt.target.value;
  36116. if (/[^0-9\.\-]/g.test(value)) {
  36117. return;
  36118. }
  36119. var valueAsNumber = parseFloat(value);
  36120. this._localChange = true;
  36121. this.setState({ value: value });
  36122. if (isNaN(valueAsNumber)) {
  36123. return;
  36124. }
  36125. this.props.onChange(valueAsNumber);
  36126. };
  36127. NumericInputComponent.prototype.render = function () {
  36128. var _this = this;
  36129. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "numeric" },
  36130. this.props.label &&
  36131. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "numeric-label" }, this.props.label + ": "),
  36132. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "number", step: this.props.step, className: "numeric-input", value: this.state.value, onChange: function (evt) { return _this.updateValue(evt); } })));
  36133. };
  36134. NumericInputComponent.defaultProps = {
  36135. step: 1,
  36136. };
  36137. return NumericInputComponent;
  36138. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  36139. /***/ }),
  36140. /***/ "./components/actionTabs/lines/optionsLineComponent.tsx":
  36141. /*!**************************************************************!*\
  36142. !*** ./components/actionTabs/lines/optionsLineComponent.tsx ***!
  36143. \**************************************************************/
  36144. /*! exports provided: Null_Value, OptionsLineComponent */
  36145. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  36146. "use strict";
  36147. __webpack_require__.r(__webpack_exports__);
  36148. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Null_Value", function() { return Null_Value; });
  36149. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OptionsLineComponent", function() { return OptionsLineComponent; });
  36150. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  36151. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  36152. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  36153. var Null_Value = Number.MAX_SAFE_INTEGER;
  36154. var ListLineOption = /** @class */ (function () {
  36155. function ListLineOption() {
  36156. }
  36157. return ListLineOption;
  36158. }());
  36159. var OptionsLineComponent = /** @class */ (function (_super) {
  36160. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(OptionsLineComponent, _super);
  36161. function OptionsLineComponent(props) {
  36162. var _this = _super.call(this, props) || this;
  36163. _this._localChange = false;
  36164. _this.state = { value: _this.remapValueIn(_this.props.extractValue ? _this.props.extractValue() : props.target[props.propertyName]) };
  36165. return _this;
  36166. }
  36167. OptionsLineComponent.prototype.remapValueIn = function (value) {
  36168. return this.props.allowNullValue && value === null ? Null_Value : value;
  36169. };
  36170. OptionsLineComponent.prototype.remapValueOut = function (value) {
  36171. return this.props.allowNullValue && value === Null_Value ? null : value;
  36172. };
  36173. OptionsLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  36174. if (this._localChange) {
  36175. this._localChange = false;
  36176. return true;
  36177. }
  36178. var newValue = this.remapValueIn(nextProps.extractValue ? nextProps.extractValue() : nextProps.target[nextProps.propertyName]);
  36179. if (newValue != null && newValue !== nextState.value) {
  36180. nextState.value = newValue;
  36181. return true;
  36182. }
  36183. return false;
  36184. };
  36185. OptionsLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  36186. if (!this.props.onPropertyChangedObservable) {
  36187. return;
  36188. }
  36189. this.props.onPropertyChangedObservable.notifyObservers({
  36190. object: this.props.target,
  36191. property: this.props.propertyName,
  36192. value: newValue,
  36193. initialValue: previousValue,
  36194. allowNullValue: this.props.allowNullValue,
  36195. });
  36196. };
  36197. OptionsLineComponent.prototype.updateValue = function (valueString) {
  36198. var value = parseInt(valueString);
  36199. this._localChange = true;
  36200. var store = this.props.extractValue ? this.props.extractValue() : this.props.target[this.props.propertyName];
  36201. if (!this.props.noDirectUpdate) {
  36202. this.props.target[this.props.propertyName] = this.remapValueOut(value);
  36203. }
  36204. this.setState({ value: value });
  36205. if (this.props.onSelect) {
  36206. this.props.onSelect(value);
  36207. }
  36208. var newValue = this.props.extractValue ? this.props.extractValue() : this.props.target[this.props.propertyName];
  36209. this.raiseOnPropertyChanged(newValue, store);
  36210. };
  36211. OptionsLineComponent.prototype.render = function () {
  36212. var _this = this;
  36213. var _a;
  36214. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "listLine" },
  36215. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  36216. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "options" },
  36217. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("select", { onChange: function (evt) { return _this.updateValue(evt.target.value); }, value: (_a = this.state.value, (_a !== null && _a !== void 0 ? _a : "")) }, this.props.options.map(function (option) {
  36218. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("option", { key: option.label, value: option.value }, option.label));
  36219. })))));
  36220. };
  36221. return OptionsLineComponent;
  36222. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  36223. /***/ }),
  36224. /***/ "./components/actionTabs/lines/quaternionLineComponent.tsx":
  36225. /*!*****************************************************************!*\
  36226. !*** ./components/actionTabs/lines/quaternionLineComponent.tsx ***!
  36227. \*****************************************************************/
  36228. /*! exports provided: QuaternionLineComponent */
  36229. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  36230. "use strict";
  36231. __webpack_require__.r(__webpack_exports__);
  36232. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuaternionLineComponent", function() { return QuaternionLineComponent; });
  36233. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  36234. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  36235. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  36236. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./components/actionTabs/lines/numericInputComponent.tsx");
  36237. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  36238. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  36239. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/observable");
  36240. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_5__);
  36241. /* harmony import */ var _sliderLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  36242. var QuaternionLineComponent = /** @class */ (function (_super) {
  36243. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(QuaternionLineComponent, _super);
  36244. function QuaternionLineComponent(props) {
  36245. var _this = _super.call(this, props) || this;
  36246. _this._localChange = false;
  36247. var quat = _this.props.target[_this.props.propertyName].clone();
  36248. _this.state = { isExpanded: false, value: quat, eulerValue: quat.toEulerAngles() };
  36249. return _this;
  36250. }
  36251. QuaternionLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  36252. var nextPropsValue = nextProps.target[nextProps.propertyName];
  36253. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  36254. nextState.value = nextPropsValue.clone();
  36255. this._localChange = false;
  36256. return true;
  36257. }
  36258. return false;
  36259. };
  36260. QuaternionLineComponent.prototype.switchExpandState = function () {
  36261. this._localChange = true;
  36262. this.setState({ isExpanded: !this.state.isExpanded });
  36263. };
  36264. QuaternionLineComponent.prototype.raiseOnPropertyChanged = function (currentValue, previousValue) {
  36265. if (!this.props.onPropertyChangedObservable) {
  36266. return;
  36267. }
  36268. this.props.onPropertyChangedObservable.notifyObservers({
  36269. object: this.props.target,
  36270. property: this.props.propertyName,
  36271. value: currentValue,
  36272. initialValue: previousValue
  36273. });
  36274. };
  36275. QuaternionLineComponent.prototype.updateQuaternion = function () {
  36276. var store = this.props.target[this.props.propertyName].clone();
  36277. this.props.target[this.props.propertyName] = this.state.value;
  36278. this.setState({ value: store });
  36279. this.raiseOnPropertyChanged(this.state.value, store);
  36280. };
  36281. QuaternionLineComponent.prototype.updateStateX = function (value) {
  36282. this._localChange = true;
  36283. this.state.value.x = value;
  36284. this.updateQuaternion();
  36285. };
  36286. QuaternionLineComponent.prototype.updateStateY = function (value) {
  36287. this._localChange = true;
  36288. this.state.value.y = value;
  36289. this.updateQuaternion();
  36290. };
  36291. QuaternionLineComponent.prototype.updateStateZ = function (value) {
  36292. this._localChange = true;
  36293. this.state.value.z = value;
  36294. this.updateQuaternion();
  36295. };
  36296. QuaternionLineComponent.prototype.updateStateW = function (value) {
  36297. this._localChange = true;
  36298. this.state.value.w = value;
  36299. this.updateQuaternion();
  36300. };
  36301. QuaternionLineComponent.prototype.updateQuaternionFromEuler = function () {
  36302. var quat = this.state.eulerValue.toQuaternion();
  36303. this.state.value.x = quat.x;
  36304. this.state.value.y = quat.y;
  36305. this.state.value.z = quat.z;
  36306. this.state.value.w = quat.w;
  36307. this.updateQuaternion();
  36308. };
  36309. QuaternionLineComponent.prototype.updateStateEulerX = function (value) {
  36310. this._localChange = true;
  36311. this.state.eulerValue.x = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_5__["Tools"].ToRadians(value);
  36312. this.updateQuaternionFromEuler();
  36313. };
  36314. QuaternionLineComponent.prototype.updateStateEulerY = function (value) {
  36315. this._localChange = true;
  36316. this.state.eulerValue.y = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_5__["Tools"].ToRadians(value);
  36317. this.updateQuaternionFromEuler();
  36318. };
  36319. QuaternionLineComponent.prototype.updateStateEulerZ = function (value) {
  36320. this._localChange = true;
  36321. this.state.eulerValue.z = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_5__["Tools"].ToRadians(value);
  36322. this.updateQuaternionFromEuler();
  36323. };
  36324. QuaternionLineComponent.prototype.render = function () {
  36325. var _this = this;
  36326. var chevron = this.state.isExpanded ? react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__["faMinus"] }) : react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__["faPlus"] });
  36327. var quat = this.state.value;
  36328. var euler = this.state.eulerValue;
  36329. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  36330. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  36331. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  36332. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector" },
  36333. !this.props.useEuler &&
  36334. "X: " + quat.x.toFixed(1) + ", Y: " + quat.y.toFixed(1) + ", Z: " + quat.z.toFixed(1) + ", W: " + quat.w.toFixed(1),
  36335. this.props.useEuler &&
  36336. "X: " + babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_5__["Tools"].ToDegrees(euler.x).toFixed(2) + ", Y: " + babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_5__["Tools"].ToDegrees(euler.y).toFixed(2) + ", Z: " + babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_5__["Tools"].ToDegrees(euler.z).toFixed(2)),
  36337. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand", onClick: function () { return _this.switchExpandState(); } }, chevron)),
  36338. this.state.isExpanded && !this.props.useEuler &&
  36339. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  36340. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "x", value: quat.x, onChange: function (value) { return _this.updateStateX(value); } }),
  36341. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "y", value: quat.y, onChange: function (value) { return _this.updateStateY(value); } }),
  36342. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "z", value: quat.z, onChange: function (value) { return _this.updateStateZ(value); } }),
  36343. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "w", value: quat.w, onChange: function (value) { return _this.updateStateW(value); } })),
  36344. this.state.isExpanded && this.props.useEuler &&
  36345. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  36346. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sliderLineComponent__WEBPACK_IMPORTED_MODULE_6__["SliderLineComponent"], { label: "x", minimum: 0, maximum: 360, step: 0.1, directValue: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_5__["Tools"].ToDegrees(euler.x), onChange: function (value) { return _this.updateStateEulerX(value); } }),
  36347. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sliderLineComponent__WEBPACK_IMPORTED_MODULE_6__["SliderLineComponent"], { label: "y", minimum: 0, maximum: 360, step: 0.1, directValue: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_5__["Tools"].ToDegrees(euler.y), onChange: function (value) { return _this.updateStateEulerY(value); } }),
  36348. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sliderLineComponent__WEBPACK_IMPORTED_MODULE_6__["SliderLineComponent"], { label: "z", minimum: 0, maximum: 360, step: 0.1, directValue: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_5__["Tools"].ToDegrees(euler.z), onChange: function (value) { return _this.updateStateEulerZ(value); } }))));
  36349. };
  36350. return QuaternionLineComponent;
  36351. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  36352. /***/ }),
  36353. /***/ "./components/actionTabs/lines/radioLineComponent.tsx":
  36354. /*!************************************************************!*\
  36355. !*** ./components/actionTabs/lines/radioLineComponent.tsx ***!
  36356. \************************************************************/
  36357. /*! exports provided: RadioButtonLineComponent */
  36358. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  36359. "use strict";
  36360. __webpack_require__.r(__webpack_exports__);
  36361. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RadioButtonLineComponent", function() { return RadioButtonLineComponent; });
  36362. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  36363. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  36364. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  36365. var RadioButtonLineComponent = /** @class */ (function (_super) {
  36366. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RadioButtonLineComponent, _super);
  36367. function RadioButtonLineComponent(props) {
  36368. var _this = _super.call(this, props) || this;
  36369. _this.state = { isSelected: _this.props.isSelected() };
  36370. return _this;
  36371. }
  36372. RadioButtonLineComponent.prototype.componentDidMount = function () {
  36373. var _this = this;
  36374. this._onSelectionChangedObserver = this.props.onSelectionChangedObservable.add(function (value) {
  36375. _this.setState({ isSelected: value === _this });
  36376. });
  36377. };
  36378. RadioButtonLineComponent.prototype.componentWillUnmount = function () {
  36379. if (this._onSelectionChangedObserver) {
  36380. this.props.onSelectionChangedObservable.remove(this._onSelectionChangedObserver);
  36381. this._onSelectionChangedObserver = null;
  36382. }
  36383. };
  36384. RadioButtonLineComponent.prototype.onChange = function () {
  36385. this.props.onSelect();
  36386. this.props.onSelectionChangedObservable.notifyObservers(this);
  36387. };
  36388. RadioButtonLineComponent.prototype.render = function () {
  36389. var _this = this;
  36390. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "radioLine" },
  36391. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  36392. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "radioContainer" },
  36393. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { id: this.props.label, className: "radio", type: "radio", checked: this.state.isSelected, onChange: function () { return _this.onChange(); } }),
  36394. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: this.props.label, className: "labelForRadio" }))));
  36395. };
  36396. return RadioButtonLineComponent;
  36397. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  36398. /***/ }),
  36399. /***/ "./components/actionTabs/lines/sliderLineComponent.tsx":
  36400. /*!*************************************************************!*\
  36401. !*** ./components/actionTabs/lines/sliderLineComponent.tsx ***!
  36402. \*************************************************************/
  36403. /*! exports provided: SliderLineComponent */
  36404. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  36405. "use strict";
  36406. __webpack_require__.r(__webpack_exports__);
  36407. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SliderLineComponent", function() { return SliderLineComponent; });
  36408. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  36409. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  36410. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  36411. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/observable");
  36412. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__);
  36413. var SliderLineComponent = /** @class */ (function (_super) {
  36414. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SliderLineComponent, _super);
  36415. function SliderLineComponent(props) {
  36416. var _this = _super.call(this, props) || this;
  36417. _this._localChange = false;
  36418. if (_this.props.directValue !== undefined) {
  36419. _this.state = {
  36420. value: _this.props.directValue
  36421. };
  36422. }
  36423. else {
  36424. var value = _this.props.target[_this.props.propertyName];
  36425. if (value === undefined) {
  36426. value = _this.props.maximum;
  36427. }
  36428. _this.state = { value: value };
  36429. }
  36430. return _this;
  36431. }
  36432. SliderLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  36433. if (nextProps.directValue !== undefined) {
  36434. nextState.value = nextProps.directValue;
  36435. return true;
  36436. }
  36437. var currentState = nextProps.target[nextProps.propertyName];
  36438. if (currentState === undefined) {
  36439. currentState = nextProps.maximum;
  36440. }
  36441. if (currentState !== nextState.value || this._localChange) {
  36442. nextState.value = currentState;
  36443. this._localChange = false;
  36444. return true;
  36445. }
  36446. return false;
  36447. };
  36448. SliderLineComponent.prototype.onChange = function (newValueString) {
  36449. var _a;
  36450. this._localChange = true;
  36451. var newValue = parseFloat(newValueString);
  36452. if (this.props.useEuler) {
  36453. newValue = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Tools"].ToRadians(newValue);
  36454. }
  36455. if (this.props.target) {
  36456. if (this.props.onPropertyChangedObservable) {
  36457. this.props.onPropertyChangedObservable.notifyObservers({
  36458. object: (_a = this.props.replaySourceReplacement, (_a !== null && _a !== void 0 ? _a : this.props.target)),
  36459. property: this.props.propertyName,
  36460. value: newValue,
  36461. initialValue: this.state.value
  36462. });
  36463. }
  36464. this.props.target[this.props.propertyName] = newValue;
  36465. }
  36466. if (this.props.onChange) {
  36467. this.props.onChange(newValue);
  36468. }
  36469. this.setState({ value: newValue });
  36470. };
  36471. SliderLineComponent.prototype.onInput = function (newValueString) {
  36472. var newValue = parseFloat(newValueString);
  36473. if (this.props.onInput) {
  36474. this.props.onInput(newValue);
  36475. }
  36476. };
  36477. SliderLineComponent.prototype.prepareDataToRead = function (value) {
  36478. if (this.props.useEuler) {
  36479. return babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Tools"].ToDegrees(value);
  36480. }
  36481. return value;
  36482. };
  36483. SliderLineComponent.prototype.render = function () {
  36484. var _this = this;
  36485. var decimalCount = this.props.decimalCount !== undefined ? this.props.decimalCount : 2;
  36486. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "sliderLine" },
  36487. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  36488. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "slider" },
  36489. this.state.value ? this.prepareDataToRead(this.state.value).toFixed(decimalCount) : "0",
  36490. "\u00A0",
  36491. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { className: "range", type: "range", step: this.props.step, min: this.prepareDataToRead(this.props.minimum), max: this.prepareDataToRead(this.props.maximum), value: this.prepareDataToRead(this.state.value), onInput: function (evt) { return _this.onInput(evt.target.value); }, onChange: function (evt) { return _this.onChange(evt.target.value); } }))));
  36492. };
  36493. return SliderLineComponent;
  36494. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  36495. /***/ }),
  36496. /***/ "./components/actionTabs/lines/textInputLineComponent.tsx":
  36497. /*!****************************************************************!*\
  36498. !*** ./components/actionTabs/lines/textInputLineComponent.tsx ***!
  36499. \****************************************************************/
  36500. /*! exports provided: TextInputLineComponent */
  36501. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  36502. "use strict";
  36503. __webpack_require__.r(__webpack_exports__);
  36504. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextInputLineComponent", function() { return TextInputLineComponent; });
  36505. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  36506. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  36507. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  36508. var TextInputLineComponent = /** @class */ (function (_super) {
  36509. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TextInputLineComponent, _super);
  36510. function TextInputLineComponent(props) {
  36511. var _this = _super.call(this, props) || this;
  36512. _this._localChange = false;
  36513. _this.state = { value: (_this.props.value !== undefined ? _this.props.value : _this.props.target[_this.props.propertyName]) || "" };
  36514. return _this;
  36515. }
  36516. TextInputLineComponent.prototype.componentWillUnmount = function () {
  36517. this.props.lockObject.lock = false;
  36518. };
  36519. TextInputLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  36520. if (this._localChange) {
  36521. this._localChange = false;
  36522. return true;
  36523. }
  36524. var newValue = nextProps.value !== undefined ? nextProps.value : nextProps.target[nextProps.propertyName];
  36525. if (newValue !== nextState.value) {
  36526. nextState.value = newValue || "";
  36527. return true;
  36528. }
  36529. return false;
  36530. };
  36531. TextInputLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  36532. if (this.props.onChange) {
  36533. this.props.onChange(newValue);
  36534. return;
  36535. }
  36536. if (!this.props.onPropertyChangedObservable) {
  36537. return;
  36538. }
  36539. this.props.onPropertyChangedObservable.notifyObservers({
  36540. object: this.props.target,
  36541. property: this.props.propertyName,
  36542. value: newValue,
  36543. initialValue: previousValue
  36544. });
  36545. };
  36546. TextInputLineComponent.prototype.updateValue = function (value) {
  36547. this._localChange = true;
  36548. var store = this.props.value !== undefined ? this.props.value : this.props.target[this.props.propertyName];
  36549. this.setState({ value: value });
  36550. this.raiseOnPropertyChanged(value, store);
  36551. if (this.props.propertyName) {
  36552. this.props.target[this.props.propertyName] = value;
  36553. }
  36554. };
  36555. TextInputLineComponent.prototype.render = function () {
  36556. var _this = this;
  36557. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textInputLine" },
  36558. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  36559. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" },
  36560. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { value: this.state.value, onBlur: function () { return _this.props.lockObject.lock = false; }, onFocus: function () { return _this.props.lockObject.lock = true; }, onChange: function (evt) { return _this.updateValue(evt.target.value); } }))));
  36561. };
  36562. return TextInputLineComponent;
  36563. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  36564. /***/ }),
  36565. /***/ "./components/actionTabs/lines/textLineComponent.tsx":
  36566. /*!***********************************************************!*\
  36567. !*** ./components/actionTabs/lines/textLineComponent.tsx ***!
  36568. \***********************************************************/
  36569. /*! exports provided: TextLineComponent */
  36570. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  36571. "use strict";
  36572. __webpack_require__.r(__webpack_exports__);
  36573. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextLineComponent", function() { return TextLineComponent; });
  36574. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  36575. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  36576. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  36577. var TextLineComponent = /** @class */ (function (_super) {
  36578. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TextLineComponent, _super);
  36579. function TextLineComponent(props) {
  36580. return _super.call(this, props) || this;
  36581. }
  36582. TextLineComponent.prototype.onLink = function () {
  36583. if (!this.props.onLink) {
  36584. return;
  36585. }
  36586. this.props.onLink();
  36587. };
  36588. TextLineComponent.prototype.renderContent = function () {
  36589. var _this = this;
  36590. if (this.props.ignoreValue) {
  36591. return null;
  36592. }
  36593. if (this.props.onLink) {
  36594. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "link-value", title: this.props.value, onClick: function () { return _this.onLink(); } }, this.props.value || "no name"));
  36595. }
  36596. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value", title: this.props.value, style: { color: this.props.color ? this.props.color : "" } }, this.props.value || "no name"));
  36597. };
  36598. TextLineComponent.prototype.render = function () {
  36599. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.props.underline ? "textLine underline" : "textLine" },
  36600. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  36601. this.renderContent()));
  36602. };
  36603. return TextLineComponent;
  36604. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  36605. /***/ }),
  36606. /***/ "./components/actionTabs/lines/textureLineComponent.tsx":
  36607. /*!**************************************************************!*\
  36608. !*** ./components/actionTabs/lines/textureLineComponent.tsx ***!
  36609. \**************************************************************/
  36610. /*! exports provided: TextureLineComponent */
  36611. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  36612. "use strict";
  36613. __webpack_require__.r(__webpack_exports__);
  36614. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureLineComponent", function() { return TextureLineComponent; });
  36615. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  36616. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  36617. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  36618. /* harmony import */ var babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Engines/constants */ "babylonjs/Misc/observable");
  36619. /* harmony import */ var babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__);
  36620. /* harmony import */ var _buttonLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  36621. var ChannelToDisplay;
  36622. (function (ChannelToDisplay) {
  36623. ChannelToDisplay[ChannelToDisplay["R"] = 0] = "R";
  36624. ChannelToDisplay[ChannelToDisplay["G"] = 1] = "G";
  36625. ChannelToDisplay[ChannelToDisplay["B"] = 2] = "B";
  36626. ChannelToDisplay[ChannelToDisplay["A"] = 3] = "A";
  36627. ChannelToDisplay[ChannelToDisplay["All"] = 4] = "All";
  36628. })(ChannelToDisplay || (ChannelToDisplay = {}));
  36629. var TextureLineComponent = /** @class */ (function (_super) {
  36630. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TextureLineComponent, _super);
  36631. function TextureLineComponent(props) {
  36632. var _this = _super.call(this, props) || this;
  36633. _this.state = {
  36634. channel: ChannelToDisplay.All,
  36635. face: 0
  36636. };
  36637. _this.canvasRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  36638. return _this;
  36639. }
  36640. TextureLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  36641. return (nextProps.texture !== this.props.texture || nextState.channel !== this.state.channel || nextState.face !== this.state.face);
  36642. };
  36643. TextureLineComponent.prototype.componentDidMount = function () {
  36644. this.updatePreview();
  36645. };
  36646. TextureLineComponent.prototype.componentDidUpdate = function () {
  36647. this.updatePreview();
  36648. };
  36649. TextureLineComponent.prototype.updatePreview = function () {
  36650. var _this = this;
  36651. var texture = this.props.texture;
  36652. if (!texture.isReady() && texture._texture) {
  36653. texture._texture.onLoadedObservable.addOnce(function () {
  36654. _this.updatePreview();
  36655. });
  36656. }
  36657. var scene = texture.getScene();
  36658. var engine = scene.getEngine();
  36659. var size = texture.getSize();
  36660. var ratio = size.width / size.height;
  36661. var width = this.props.width;
  36662. var height = (width / ratio) | 1;
  36663. var passPostProcess;
  36664. if (!texture.isCube) {
  36665. passPostProcess = new babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["PassPostProcess"]("pass", 1, null, babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["Texture"].NEAREST_SAMPLINGMODE, engine, false, babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["Constants"].TEXTURETYPE_UNSIGNED_INT);
  36666. }
  36667. else {
  36668. var passCubePostProcess = new babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["PassCubePostProcess"]("pass", 1, null, babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["Texture"].NEAREST_SAMPLINGMODE, engine, false, babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["Constants"].TEXTURETYPE_UNSIGNED_INT);
  36669. passCubePostProcess.face = this.state.face;
  36670. passPostProcess = passCubePostProcess;
  36671. }
  36672. if (!passPostProcess.getEffect().isReady()) {
  36673. // Try again later
  36674. passPostProcess.dispose();
  36675. setTimeout(function () { return _this.updatePreview(); }, 250);
  36676. return;
  36677. }
  36678. var previewCanvas = this.canvasRef.current;
  36679. if (this.props.globalState) {
  36680. this.props.globalState.blockMutationUpdates = true;
  36681. }
  36682. var rtt = new babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["RenderTargetTexture"]("temp", { width: width, height: height }, scene, false);
  36683. passPostProcess.onApply = function (effect) {
  36684. effect.setTexture("textureSampler", texture);
  36685. };
  36686. var internalTexture = rtt.getInternalTexture();
  36687. if (internalTexture) {
  36688. scene.postProcessManager.directRender([passPostProcess], internalTexture);
  36689. // Read the contents of the framebuffer
  36690. var numberOfChannelsByLine = width * 4;
  36691. var halfHeight = height / 2;
  36692. //Reading datas from WebGL
  36693. var data = engine.readPixels(0, 0, width, height);
  36694. if (!texture.isCube) {
  36695. if (this.state.channel != ChannelToDisplay.All) {
  36696. for (var i = 0; i < width * height * 4; i += 4) {
  36697. switch (this.state.channel) {
  36698. case ChannelToDisplay.R:
  36699. data[i + 1] = data[i];
  36700. data[i + 2] = data[i];
  36701. data[i + 3] = 255;
  36702. break;
  36703. case ChannelToDisplay.G:
  36704. data[i] = data[i + 1];
  36705. data[i + 2] = data[i];
  36706. data[i + 3] = 255;
  36707. break;
  36708. case ChannelToDisplay.B:
  36709. data[i] = data[i + 2];
  36710. data[i + 1] = data[i + 2];
  36711. data[i + 3] = 255;
  36712. break;
  36713. case ChannelToDisplay.A:
  36714. data[i] = data[i + 3];
  36715. data[i + 1] = data[i + 3];
  36716. data[i + 2] = data[i + 3];
  36717. data[i + 3] = 255;
  36718. break;
  36719. }
  36720. }
  36721. }
  36722. }
  36723. //To flip image on Y axis.
  36724. if (texture.invertY || texture.isCube) {
  36725. for (var i = 0; i < halfHeight; i++) {
  36726. for (var j = 0; j < numberOfChannelsByLine; j++) {
  36727. var currentCell = j + i * numberOfChannelsByLine;
  36728. var targetLine = height - i - 1;
  36729. var targetCell = j + targetLine * numberOfChannelsByLine;
  36730. var temp = data[currentCell];
  36731. data[currentCell] = data[targetCell];
  36732. data[targetCell] = temp;
  36733. }
  36734. }
  36735. }
  36736. previewCanvas.width = width;
  36737. previewCanvas.height = height;
  36738. var context = previewCanvas.getContext('2d');
  36739. if (context) {
  36740. // Copy the pixels to the preview canvas
  36741. var imageData = context.createImageData(width, height);
  36742. var castData = imageData.data;
  36743. castData.set(data);
  36744. context.putImageData(imageData, 0, 0);
  36745. }
  36746. // Unbind
  36747. engine.unBindFramebuffer(internalTexture);
  36748. }
  36749. rtt.dispose();
  36750. passPostProcess.dispose();
  36751. previewCanvas.style.height = height + "px";
  36752. if (this.props.globalState) {
  36753. this.props.globalState.blockMutationUpdates = false;
  36754. }
  36755. };
  36756. TextureLineComponent.prototype.render = function () {
  36757. var _this = this;
  36758. var texture = this.props.texture;
  36759. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  36760. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textureLine" },
  36761. !this.props.hideChannelSelect && texture.isCube &&
  36762. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "control3D" },
  36763. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 0 ? "px command selected" : "px command", onClick: function () { return _this.setState({ face: 0 }); } }, "PX"),
  36764. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 1 ? "nx command selected" : "nx command", onClick: function () { return _this.setState({ face: 1 }); } }, "NX"),
  36765. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 2 ? "py command selected" : "py command", onClick: function () { return _this.setState({ face: 2 }); } }, "PY"),
  36766. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 3 ? "ny command selected" : "ny command", onClick: function () { return _this.setState({ face: 3 }); } }, "NY"),
  36767. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 4 ? "pz command selected" : "pz command", onClick: function () { return _this.setState({ face: 4 }); } }, "PZ"),
  36768. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 5 ? "nz command selected" : "nz command", onClick: function () { return _this.setState({ face: 5 }); } }, "NZ")),
  36769. !this.props.hideChannelSelect && !texture.isCube &&
  36770. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "control" },
  36771. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.channel === ChannelToDisplay.R ? "red command selected" : "red command", onClick: function () { return _this.setState({ channel: ChannelToDisplay.R }); } }, "R"),
  36772. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.channel === ChannelToDisplay.G ? "green command selected" : "green command", onClick: function () { return _this.setState({ channel: ChannelToDisplay.G }); } }, "G"),
  36773. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.channel === ChannelToDisplay.B ? "blue command selected" : "blue command", onClick: function () { return _this.setState({ channel: ChannelToDisplay.B }); } }, "B"),
  36774. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.channel === ChannelToDisplay.A ? "alpha command selected" : "alpha command", onClick: function () { return _this.setState({ channel: ChannelToDisplay.A }); } }, "A"),
  36775. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.channel === ChannelToDisplay.All ? "all command selected" : "all command", onClick: function () { return _this.setState({ channel: ChannelToDisplay.All }); } }, "ALL")),
  36776. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("canvas", { ref: this.canvasRef, className: "preview" })),
  36777. texture.isRenderTarget &&
  36778. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_buttonLineComponent__WEBPACK_IMPORTED_MODULE_3__["ButtonLineComponent"], { label: "Refresh", onClick: function () {
  36779. _this.updatePreview();
  36780. } })));
  36781. };
  36782. return TextureLineComponent;
  36783. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  36784. /***/ }),
  36785. /***/ "./components/actionTabs/lines/textureLinkLineComponent.tsx":
  36786. /*!******************************************************************!*\
  36787. !*** ./components/actionTabs/lines/textureLinkLineComponent.tsx ***!
  36788. \******************************************************************/
  36789. /*! exports provided: TextureLinkLineComponent */
  36790. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  36791. "use strict";
  36792. __webpack_require__.r(__webpack_exports__);
  36793. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureLinkLineComponent", function() { return TextureLinkLineComponent; });
  36794. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  36795. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  36796. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  36797. /* harmony import */ var babylonjs_Materials_standardMaterial__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Materials/standardMaterial */ "babylonjs/Misc/observable");
  36798. /* harmony import */ var babylonjs_Materials_standardMaterial__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_standardMaterial__WEBPACK_IMPORTED_MODULE_2__);
  36799. /* harmony import */ var _textLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  36800. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  36801. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  36802. /* harmony import */ var _fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./fileButtonLineComponent */ "./components/actionTabs/lines/fileButtonLineComponent.tsx");
  36803. var TextureLinkLineComponent = /** @class */ (function (_super) {
  36804. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TextureLinkLineComponent, _super);
  36805. function TextureLinkLineComponent(props) {
  36806. var _this = _super.call(this, props) || this;
  36807. var material = _this.props.material;
  36808. var texture = _this.props.texture;
  36809. _this.state = { isDebugSelected: material && material.reservedDataStore && material.reservedDataStore.debugTexture === texture };
  36810. return _this;
  36811. }
  36812. TextureLinkLineComponent.prototype.componentDidMount = function () {
  36813. var _this = this;
  36814. if (!this.props.onDebugSelectionChangeObservable) {
  36815. return;
  36816. }
  36817. this._onDebugSelectionChangeObserver = this.props.onDebugSelectionChangeObservable.add(function (line) {
  36818. if (line !== _this) {
  36819. _this.setState({ isDebugSelected: false });
  36820. }
  36821. });
  36822. };
  36823. TextureLinkLineComponent.prototype.componentWillUnmount = function () {
  36824. if (this.props.onDebugSelectionChangeObservable && this._onDebugSelectionChangeObserver) {
  36825. this.props.onDebugSelectionChangeObservable.remove(this._onDebugSelectionChangeObserver);
  36826. }
  36827. };
  36828. TextureLinkLineComponent.prototype.debugTexture = function () {
  36829. if (this.props.customDebugAction) {
  36830. var newState = !this.state.isDebugSelected;
  36831. this.props.customDebugAction(newState);
  36832. this.setState({ isDebugSelected: newState });
  36833. if (this.props.onDebugSelectionChangeObservable) {
  36834. this.props.onDebugSelectionChangeObservable.notifyObservers(this);
  36835. }
  36836. return;
  36837. }
  36838. var texture = this.props.texture;
  36839. var material = this.props.material;
  36840. if (!material || !texture) {
  36841. return;
  36842. }
  36843. var scene = material.getScene();
  36844. if (material.reservedDataStore && material.reservedDataStore.debugTexture === texture) {
  36845. var debugMaterial_1 = material.reservedDataStore.debugMaterial;
  36846. texture.level = material.reservedDataStore.level;
  36847. for (var _i = 0, _a = scene.meshes; _i < _a.length; _i++) {
  36848. var mesh = _a[_i];
  36849. if (mesh.material === debugMaterial_1) {
  36850. mesh.material = material;
  36851. }
  36852. }
  36853. debugMaterial_1.dispose();
  36854. material.reservedDataStore.debugTexture = null;
  36855. material.reservedDataStore.debugMaterial = null;
  36856. this.setState({ isDebugSelected: false });
  36857. return;
  36858. }
  36859. var checkMaterial = material;
  36860. var needToDisposeCheckMaterial = false;
  36861. if (material.reservedDataStore && material.reservedDataStore.debugTexture) {
  36862. checkMaterial = material.reservedDataStore.debugMaterial;
  36863. needToDisposeCheckMaterial = true;
  36864. }
  36865. var debugMaterial = new babylonjs_Materials_standardMaterial__WEBPACK_IMPORTED_MODULE_2__["StandardMaterial"]("debugMaterial", scene);
  36866. debugMaterial.disableLighting = true;
  36867. debugMaterial.sideOrientation = material.sideOrientation;
  36868. debugMaterial.emissiveTexture = texture;
  36869. debugMaterial.forceDepthWrite = true;
  36870. debugMaterial.reservedDataStore = { hidden: true };
  36871. for (var _b = 0, _c = scene.meshes; _b < _c.length; _b++) {
  36872. var mesh = _c[_b];
  36873. if (mesh.material === checkMaterial) {
  36874. mesh.material = debugMaterial;
  36875. }
  36876. }
  36877. if (!material.reservedDataStore) {
  36878. material.reservedDataStore = {};
  36879. }
  36880. material.reservedDataStore.debugTexture = texture;
  36881. material.reservedDataStore.debugMaterial = debugMaterial;
  36882. material.reservedDataStore.level = texture.level;
  36883. texture.level = 1.0;
  36884. if (this.props.onDebugSelectionChangeObservable) {
  36885. this.props.onDebugSelectionChangeObservable.notifyObservers(this);
  36886. }
  36887. if (needToDisposeCheckMaterial) {
  36888. checkMaterial.dispose();
  36889. }
  36890. this.setState({ isDebugSelected: true });
  36891. };
  36892. TextureLinkLineComponent.prototype.onLink = function () {
  36893. if (!this.props.onSelectionChangedObservable) {
  36894. return;
  36895. }
  36896. var texture = this.props.texture;
  36897. this.props.onSelectionChangedObservable.notifyObservers(texture);
  36898. };
  36899. TextureLinkLineComponent.prototype.updateTexture = function (file) {
  36900. var _this = this;
  36901. var material = this.props.material;
  36902. babylonjs_Materials_standardMaterial__WEBPACK_IMPORTED_MODULE_2__["Tools"].ReadFile(file, function (data) {
  36903. var blob = new Blob([data], { type: "octet/stream" });
  36904. var url = URL.createObjectURL(blob);
  36905. var texture = new babylonjs_Materials_standardMaterial__WEBPACK_IMPORTED_MODULE_2__["Texture"](url, material.getScene(), false, false);
  36906. if (_this.props.propertyName) {
  36907. material[_this.props.propertyName] = texture;
  36908. }
  36909. else if (_this.props.onTextureCreated) {
  36910. _this.props.onTextureCreated(texture);
  36911. }
  36912. _this.forceUpdate();
  36913. }, undefined, true);
  36914. };
  36915. TextureLinkLineComponent.prototype.render = function () {
  36916. var _this = this;
  36917. var texture = this.props.texture;
  36918. if (!texture) {
  36919. if (this.props.propertyName || this.props.onTextureCreated) {
  36920. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_6__["FileButtonLineComponent"], { label: "Add " + this.props.label + " texture", onClick: function (file) { return _this.updateTexture(file); }, accept: ".jpg, .png, .tga, .dds, .env" }));
  36921. }
  36922. return null;
  36923. }
  36924. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textureLinkLine" },
  36925. !texture.isCube && this.props.material &&
  36926. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.state.isDebugSelected ? "debug selected" : "debug", onClick: function () { return _this.debugTexture(); }, title: "Render as main texture" },
  36927. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__["faWrench"] })),
  36928. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: this.props.label, value: texture.name, onLink: function () { return _this.onLink(); } })));
  36929. };
  36930. return TextureLinkLineComponent;
  36931. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  36932. /***/ }),
  36933. /***/ "./components/actionTabs/lines/valueLineComponent.tsx":
  36934. /*!************************************************************!*\
  36935. !*** ./components/actionTabs/lines/valueLineComponent.tsx ***!
  36936. \************************************************************/
  36937. /*! exports provided: ValueLineComponent */
  36938. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  36939. "use strict";
  36940. __webpack_require__.r(__webpack_exports__);
  36941. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValueLineComponent", function() { return ValueLineComponent; });
  36942. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  36943. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  36944. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  36945. var ValueLineComponent = /** @class */ (function (_super) {
  36946. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ValueLineComponent, _super);
  36947. function ValueLineComponent(props) {
  36948. return _super.call(this, props) || this;
  36949. }
  36950. ValueLineComponent.prototype.render = function () {
  36951. var digits = this.props.fractionDigits !== undefined ? this.props.fractionDigits : 2;
  36952. var value = this.props.value.toFixed(digits) + (this.props.units ? " " + this.props.units : "");
  36953. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textLine" },
  36954. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  36955. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value", style: { color: this.props.color ? this.props.color : "" } }, value)));
  36956. };
  36957. return ValueLineComponent;
  36958. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  36959. /***/ }),
  36960. /***/ "./components/actionTabs/lines/vector2LineComponent.tsx":
  36961. /*!**************************************************************!*\
  36962. !*** ./components/actionTabs/lines/vector2LineComponent.tsx ***!
  36963. \**************************************************************/
  36964. /*! exports provided: Vector2LineComponent */
  36965. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  36966. "use strict";
  36967. __webpack_require__.r(__webpack_exports__);
  36968. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector2LineComponent", function() { return Vector2LineComponent; });
  36969. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  36970. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  36971. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  36972. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./components/actionTabs/lines/numericInputComponent.tsx");
  36973. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  36974. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  36975. var Vector2LineComponent = /** @class */ (function (_super) {
  36976. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector2LineComponent, _super);
  36977. function Vector2LineComponent(props) {
  36978. var _this = _super.call(this, props) || this;
  36979. _this._localChange = false;
  36980. _this.state = { isExpanded: false, value: _this.props.target[_this.props.propertyName].clone() };
  36981. return _this;
  36982. }
  36983. Vector2LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  36984. var nextPropsValue = nextProps.target[nextProps.propertyName];
  36985. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  36986. nextState.value = nextPropsValue.clone();
  36987. this._localChange = false;
  36988. return true;
  36989. }
  36990. return false;
  36991. };
  36992. Vector2LineComponent.prototype.switchExpandState = function () {
  36993. this._localChange = true;
  36994. this.setState({ isExpanded: !this.state.isExpanded });
  36995. };
  36996. Vector2LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  36997. if (this.props.onChange) {
  36998. this.props.onChange(this.state.value);
  36999. }
  37000. if (!this.props.onPropertyChangedObservable) {
  37001. return;
  37002. }
  37003. this.props.onPropertyChangedObservable.notifyObservers({
  37004. object: this.props.target,
  37005. property: this.props.propertyName,
  37006. value: this.state.value,
  37007. initialValue: previousValue
  37008. });
  37009. };
  37010. Vector2LineComponent.prototype.updateStateX = function (value) {
  37011. this._localChange = true;
  37012. var store = this.state.value.clone();
  37013. this.props.target[this.props.propertyName].x = value;
  37014. this.state.value.x = value;
  37015. this.setState({ value: this.state.value });
  37016. this.raiseOnPropertyChanged(store);
  37017. };
  37018. Vector2LineComponent.prototype.updateStateY = function (value) {
  37019. this._localChange = true;
  37020. var store = this.state.value.clone();
  37021. this.props.target[this.props.propertyName].y = value;
  37022. this.state.value.y = value;
  37023. this.setState({ value: this.state.value });
  37024. this.raiseOnPropertyChanged(store);
  37025. };
  37026. Vector2LineComponent.prototype.render = function () {
  37027. var _this = this;
  37028. var chevron = this.state.isExpanded ? react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__["faMinus"] }) : react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__["faPlus"] });
  37029. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  37030. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  37031. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  37032. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector" }, "X: " + this.state.value.x.toFixed(2) + ", Y: " + this.state.value.y.toFixed(2)),
  37033. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  37034. this.state.isExpanded &&
  37035. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  37036. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "x", step: this.props.step, value: this.state.value.x, onChange: function (value) { return _this.updateStateX(value); } }),
  37037. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "y", step: this.props.step, value: this.state.value.y, onChange: function (value) { return _this.updateStateY(value); } }))));
  37038. };
  37039. Vector2LineComponent.defaultProps = {
  37040. step: 0.001,
  37041. };
  37042. return Vector2LineComponent;
  37043. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  37044. /***/ }),
  37045. /***/ "./components/actionTabs/lines/vector3LineComponent.tsx":
  37046. /*!**************************************************************!*\
  37047. !*** ./components/actionTabs/lines/vector3LineComponent.tsx ***!
  37048. \**************************************************************/
  37049. /*! exports provided: Vector3LineComponent */
  37050. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  37051. "use strict";
  37052. __webpack_require__.r(__webpack_exports__);
  37053. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector3LineComponent", function() { return Vector3LineComponent; });
  37054. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  37055. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  37056. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  37057. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./components/actionTabs/lines/numericInputComponent.tsx");
  37058. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  37059. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  37060. /* harmony import */ var _sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  37061. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/observable");
  37062. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__);
  37063. var Vector3LineComponent = /** @class */ (function (_super) {
  37064. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector3LineComponent, _super);
  37065. function Vector3LineComponent(props) {
  37066. var _this = _super.call(this, props) || this;
  37067. _this._localChange = false;
  37068. _this.state = { isExpanded: false, value: _this.getCurrentValue().clone() };
  37069. return _this;
  37070. }
  37071. Vector3LineComponent.prototype.getCurrentValue = function () {
  37072. return this.props.target[this.props.propertyName];
  37073. };
  37074. Vector3LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  37075. var nextPropsValue = this.getCurrentValue();
  37076. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  37077. nextState.value = nextPropsValue.clone();
  37078. this._localChange = false;
  37079. return true;
  37080. }
  37081. return false;
  37082. };
  37083. Vector3LineComponent.prototype.switchExpandState = function () {
  37084. this._localChange = true;
  37085. this.setState({ isExpanded: !this.state.isExpanded });
  37086. };
  37087. Vector3LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  37088. var _a;
  37089. if (this.props.onChange) {
  37090. this.props.onChange(this.state.value);
  37091. }
  37092. if (!this.props.onPropertyChangedObservable) {
  37093. return;
  37094. }
  37095. this.props.onPropertyChangedObservable.notifyObservers({
  37096. object: (_a = this.props.replaySourceReplacement, (_a !== null && _a !== void 0 ? _a : this.props.target)),
  37097. property: this.props.propertyName,
  37098. value: this.state.value,
  37099. initialValue: previousValue
  37100. });
  37101. };
  37102. Vector3LineComponent.prototype.updateVector3 = function () {
  37103. var store = this.props.target[this.props.propertyName].clone();
  37104. this.props.target[this.props.propertyName] = this.state.value;
  37105. this.setState({ value: store });
  37106. this.raiseOnPropertyChanged(store);
  37107. };
  37108. Vector3LineComponent.prototype.updateStateX = function (value) {
  37109. this._localChange = true;
  37110. this.state.value.x = value;
  37111. this.updateVector3();
  37112. };
  37113. Vector3LineComponent.prototype.updateStateY = function (value) {
  37114. this._localChange = true;
  37115. this.state.value.y = value;
  37116. this.updateVector3();
  37117. };
  37118. Vector3LineComponent.prototype.updateStateZ = function (value) {
  37119. this._localChange = true;
  37120. this.state.value.z = value;
  37121. this.updateVector3();
  37122. };
  37123. Vector3LineComponent.prototype.render = function () {
  37124. var _this = this;
  37125. var chevron = this.state.isExpanded ? react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__["faMinus"] }) : react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__["faPlus"] });
  37126. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  37127. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  37128. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  37129. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector" },
  37130. !this.props.useEuler &&
  37131. "X: " + this.state.value.x.toFixed(2) + ", Y: " + this.state.value.y.toFixed(2) + ", Z: " + this.state.value.z.toFixed(2),
  37132. this.props.useEuler &&
  37133. "X: " + babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["Tools"].ToDegrees(this.state.value.x).toFixed(2) + ", Y: " + babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["Tools"].ToDegrees(this.state.value.y).toFixed(2) + ", Z: " + babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["Tools"].ToDegrees(this.state.value.z).toFixed(2)),
  37134. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  37135. this.state.isExpanded && !this.props.useEuler &&
  37136. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  37137. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "x", step: this.props.step, value: this.state.value.x, onChange: function (value) { return _this.updateStateX(value); } }),
  37138. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "y", step: this.props.step, value: this.state.value.y, onChange: function (value) { return _this.updateStateY(value); } }),
  37139. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "z", step: this.props.step, value: this.state.value.z, onChange: function (value) { return _this.updateStateZ(value); } })),
  37140. this.state.isExpanded && this.props.useEuler &&
  37141. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  37142. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__["SliderLineComponent"], { label: "x", minimum: 0, maximum: 360, step: 0.1, directValue: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["Tools"].ToDegrees(this.state.value.x), onChange: function (value) { return _this.updateStateX(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["Tools"].ToRadians(value)); } }),
  37143. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__["SliderLineComponent"], { label: "y", minimum: 0, maximum: 360, step: 0.1, directValue: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["Tools"].ToDegrees(this.state.value.y), onChange: function (value) { return _this.updateStateY(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["Tools"].ToRadians(value)); } }),
  37144. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__["SliderLineComponent"], { label: "z", minimum: 0, maximum: 360, step: 0.1, directValue: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["Tools"].ToDegrees(this.state.value.z), onChange: function (value) { return _this.updateStateZ(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["Tools"].ToRadians(value)); } }))));
  37145. };
  37146. Vector3LineComponent.defaultProps = {
  37147. step: 0.001,
  37148. };
  37149. return Vector3LineComponent;
  37150. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  37151. /***/ }),
  37152. /***/ "./components/actionTabs/lines/vector4LineComponent.tsx":
  37153. /*!**************************************************************!*\
  37154. !*** ./components/actionTabs/lines/vector4LineComponent.tsx ***!
  37155. \**************************************************************/
  37156. /*! exports provided: Vector4LineComponent */
  37157. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  37158. "use strict";
  37159. __webpack_require__.r(__webpack_exports__);
  37160. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector4LineComponent", function() { return Vector4LineComponent; });
  37161. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  37162. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  37163. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  37164. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./components/actionTabs/lines/numericInputComponent.tsx");
  37165. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  37166. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  37167. var Vector4LineComponent = /** @class */ (function (_super) {
  37168. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector4LineComponent, _super);
  37169. function Vector4LineComponent(props) {
  37170. var _this = _super.call(this, props) || this;
  37171. _this._localChange = false;
  37172. _this.state = { isExpanded: false, value: _this.getCurrentValue().clone() };
  37173. return _this;
  37174. }
  37175. Vector4LineComponent.prototype.getCurrentValue = function () {
  37176. return this.props.target[this.props.propertyName];
  37177. };
  37178. Vector4LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  37179. var nextPropsValue = this.getCurrentValue();
  37180. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  37181. nextState.value = nextPropsValue.clone();
  37182. this._localChange = false;
  37183. return true;
  37184. }
  37185. return false;
  37186. };
  37187. Vector4LineComponent.prototype.switchExpandState = function () {
  37188. this._localChange = true;
  37189. this.setState({ isExpanded: !this.state.isExpanded });
  37190. };
  37191. Vector4LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  37192. if (this.props.onChange) {
  37193. this.props.onChange(this.state.value);
  37194. }
  37195. if (!this.props.onPropertyChangedObservable) {
  37196. return;
  37197. }
  37198. this.props.onPropertyChangedObservable.notifyObservers({
  37199. object: this.props.target,
  37200. property: this.props.propertyName,
  37201. value: this.state.value,
  37202. initialValue: previousValue
  37203. });
  37204. };
  37205. Vector4LineComponent.prototype.updateVector4 = function () {
  37206. var store = this.props.target[this.props.propertyName].clone();
  37207. this.props.target[this.props.propertyName] = this.state.value;
  37208. this.setState({ value: store });
  37209. this.raiseOnPropertyChanged(store);
  37210. };
  37211. Vector4LineComponent.prototype.updateStateX = function (value) {
  37212. this._localChange = true;
  37213. this.state.value.x = value;
  37214. this.updateVector4();
  37215. };
  37216. Vector4LineComponent.prototype.updateStateY = function (value) {
  37217. this._localChange = true;
  37218. this.state.value.y = value;
  37219. this.updateVector4();
  37220. };
  37221. Vector4LineComponent.prototype.updateStateZ = function (value) {
  37222. this._localChange = true;
  37223. this.state.value.z = value;
  37224. this.updateVector4();
  37225. };
  37226. Vector4LineComponent.prototype.updateStateW = function (value) {
  37227. this._localChange = true;
  37228. this.state.value.w = value;
  37229. this.updateVector4();
  37230. };
  37231. Vector4LineComponent.prototype.render = function () {
  37232. var _this = this;
  37233. var chevron = this.state.isExpanded ? react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__["faMinus"] }) : react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__["faPlus"] });
  37234. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  37235. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  37236. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  37237. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector" }, "X: " + this.state.value.x.toFixed(2) + ", Y: " + this.state.value.y.toFixed(2) + ", Z: " + this.state.value.z.toFixed(2) + ", W: " + this.state.value.w.toFixed(2)),
  37238. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  37239. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  37240. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "x", step: this.props.step, value: this.state.value.x, onChange: function (value) { return _this.updateStateX(value); } }),
  37241. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "y", step: this.props.step, value: this.state.value.y, onChange: function (value) { return _this.updateStateY(value); } }),
  37242. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "z", step: this.props.step, value: this.state.value.z, onChange: function (value) { return _this.updateStateZ(value); } }),
  37243. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "w", step: this.props.step, value: this.state.value.w, onChange: function (value) { return _this.updateStateW(value); } }))));
  37244. };
  37245. Vector4LineComponent.defaultProps = {
  37246. step: 0.001,
  37247. };
  37248. return Vector4LineComponent;
  37249. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  37250. /***/ }),
  37251. /***/ "./components/actionTabs/paneComponent.tsx":
  37252. /*!*************************************************!*\
  37253. !*** ./components/actionTabs/paneComponent.tsx ***!
  37254. \*************************************************/
  37255. /*! exports provided: PaneComponent */
  37256. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  37257. "use strict";
  37258. __webpack_require__.r(__webpack_exports__);
  37259. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PaneComponent", function() { return PaneComponent; });
  37260. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  37261. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  37262. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  37263. var PaneComponent = /** @class */ (function (_super) {
  37264. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PaneComponent, _super);
  37265. function PaneComponent(props) {
  37266. return _super.call(this, props) || this;
  37267. }
  37268. PaneComponent.prototype.render = function () {
  37269. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" }));
  37270. };
  37271. return PaneComponent;
  37272. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  37273. /***/ }),
  37274. /***/ "./components/actionTabs/tabs/debugTabComponent.tsx":
  37275. /*!**********************************************************!*\
  37276. !*** ./components/actionTabs/tabs/debugTabComponent.tsx ***!
  37277. \**********************************************************/
  37278. /*! exports provided: DebugTabComponent */
  37279. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  37280. "use strict";
  37281. __webpack_require__.r(__webpack_exports__);
  37282. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DebugTabComponent", function() { return DebugTabComponent; });
  37283. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  37284. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  37285. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  37286. /* harmony import */ var _paneComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../paneComponent */ "./components/actionTabs/paneComponent.tsx");
  37287. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  37288. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  37289. /* harmony import */ var _propertyGrids_renderGridPropertyGridComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./propertyGrids/renderGridPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/renderGridPropertyGridComponent.tsx");
  37290. /* harmony import */ var babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! babylonjs/Debug/physicsViewer */ "babylonjs/Misc/observable");
  37291. /* harmony import */ var babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__);
  37292. var DebugTabComponent = /** @class */ (function (_super) {
  37293. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DebugTabComponent, _super);
  37294. function DebugTabComponent(props) {
  37295. var _this = _super.call(this, props) || this;
  37296. _this._physicsViewersEnabled = false;
  37297. var scene = _this.props.scene;
  37298. if (!scene) {
  37299. return _this;
  37300. }
  37301. if (!scene.reservedDataStore) {
  37302. scene.reservedDataStore = {};
  37303. }
  37304. _this._physicsViewersEnabled = scene.reservedDataStore.physicsViewer != null;
  37305. return _this;
  37306. }
  37307. DebugTabComponent.prototype.switchPhysicsViewers = function () {
  37308. this._physicsViewersEnabled = !this._physicsViewersEnabled;
  37309. var scene = this.props.scene;
  37310. if (this._physicsViewersEnabled) {
  37311. var physicsViewer = new babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["PhysicsViewer"](scene);
  37312. scene.reservedDataStore.physicsViewer = physicsViewer;
  37313. for (var _i = 0, _a = scene.meshes; _i < _a.length; _i++) {
  37314. var mesh = _a[_i];
  37315. if (mesh.physicsImpostor) {
  37316. var debugMesh = physicsViewer.showImpostor(mesh.physicsImpostor, mesh);
  37317. if (debugMesh) {
  37318. debugMesh.reservedDataStore = { hidden: true };
  37319. debugMesh.material.reservedDataStore = { hidden: true };
  37320. }
  37321. }
  37322. }
  37323. }
  37324. else {
  37325. scene.reservedDataStore.physicsViewer.dispose();
  37326. scene.reservedDataStore.physicsViewer = null;
  37327. }
  37328. };
  37329. DebugTabComponent.prototype.render = function () {
  37330. var _this = this;
  37331. var scene = this.props.scene;
  37332. if (!scene) {
  37333. return null;
  37334. }
  37335. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  37336. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "HELPERS" },
  37337. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_renderGridPropertyGridComponent__WEBPACK_IMPORTED_MODULE_5__["RenderGridPropertyGridComponent"], { globalState: this.props.globalState, scene: scene }),
  37338. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Physics", isSelected: function () { return _this._physicsViewersEnabled; }, onSelect: function () { return _this.switchPhysicsViewers(); } })),
  37339. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "CORE TEXTURE CHANNELS" },
  37340. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Diffuse", isSelected: function () { return babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].DiffuseTextureEnabled; }, onSelect: function () { return babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].DiffuseTextureEnabled = !babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].DiffuseTextureEnabled; } }),
  37341. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Ambient", isSelected: function () { return babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].AmbientTextureEnabled; }, onSelect: function () { return babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].AmbientTextureEnabled = !babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].AmbientTextureEnabled; } }),
  37342. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Specular", isSelected: function () { return babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].SpecularTextureEnabled; }, onSelect: function () { return babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].SpecularTextureEnabled = !babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].SpecularTextureEnabled; } }),
  37343. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Emissive", isSelected: function () { return babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].EmissiveTextureEnabled; }, onSelect: function () { return babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].EmissiveTextureEnabled = !babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].EmissiveTextureEnabled; } }),
  37344. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Bump", isSelected: function () { return babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].BumpTextureEnabled; }, onSelect: function () { return babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].BumpTextureEnabled = !babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].BumpTextureEnabled; } }),
  37345. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Opacity", isSelected: function () { return babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].OpacityTextureEnabled; }, onSelect: function () { return babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].OpacityTextureEnabled = !babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].OpacityTextureEnabled; } }),
  37346. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Reflection", isSelected: function () { return babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].ReflectionTextureEnabled; }, onSelect: function () { return babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].ReflectionTextureEnabled = !babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].ReflectionTextureEnabled; } }),
  37347. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Refraction", isSelected: function () { return babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].RefractionTextureEnabled; }, onSelect: function () { return babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].RefractionTextureEnabled = !babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].RefractionTextureEnabled; } }),
  37348. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "ColorGrading", isSelected: function () { return babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].ColorGradingTextureEnabled; }, onSelect: function () { return babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].ColorGradingTextureEnabled = !babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].ColorGradingTextureEnabled; } }),
  37349. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Lightmap", isSelected: function () { return babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].LightmapTextureEnabled; }, onSelect: function () { return babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].LightmapTextureEnabled = !babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].LightmapTextureEnabled; } }),
  37350. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Fresnel", isSelected: function () { return babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].FresnelEnabled; }, onSelect: function () { return babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].FresnelEnabled = !babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["StandardMaterial"].FresnelEnabled; } })),
  37351. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "FEATURES" },
  37352. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Animations", isSelected: function () { return scene.animationsEnabled; }, onSelect: function () { return scene.animationsEnabled = !scene.animationsEnabled; } }),
  37353. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Collisions", isSelected: function () { return scene.collisionsEnabled; }, onSelect: function () { return scene.collisionsEnabled = !scene.collisionsEnabled; } }),
  37354. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Fog", isSelected: function () { return scene.fogEnabled; }, onSelect: function () { return scene.fogEnabled = !scene.fogEnabled; } }),
  37355. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Lens flares", isSelected: function () { return scene.lensFlaresEnabled; }, onSelect: function () { return scene.lensFlaresEnabled = !scene.lensFlaresEnabled; } }),
  37356. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Lights", isSelected: function () { return scene.lightsEnabled; }, onSelect: function () { return scene.lightsEnabled = !scene.lightsEnabled; } }),
  37357. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Particles", isSelected: function () { return scene.particlesEnabled; }, onSelect: function () { return scene.particlesEnabled = !scene.particlesEnabled; } }),
  37358. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Post-processes", isSelected: function () { return scene.postProcessesEnabled; }, onSelect: function () { return scene.postProcessesEnabled = !scene.postProcessesEnabled; } }),
  37359. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Probes", isSelected: function () { return scene.probesEnabled; }, onSelect: function () { return scene.probesEnabled = !scene.probesEnabled; } }),
  37360. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Textures", isSelected: function () { return scene.texturesEnabled; }, onSelect: function () { return scene.texturesEnabled = !scene.texturesEnabled; } }),
  37361. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Procedural textures", isSelected: function () { return scene.proceduralTexturesEnabled; }, onSelect: function () { return scene.proceduralTexturesEnabled = !scene.proceduralTexturesEnabled; } }),
  37362. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Render targets", isSelected: function () { return scene.renderTargetsEnabled; }, onSelect: function () { return scene.renderTargetsEnabled = !scene.renderTargetsEnabled; } }),
  37363. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Shadows", isSelected: function () { return scene.shadowsEnabled; }, onSelect: function () { return scene.shadowsEnabled = !scene.shadowsEnabled; } }),
  37364. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Skeletons", isSelected: function () { return scene.skeletonsEnabled; }, onSelect: function () { return scene.skeletonsEnabled = !scene.skeletonsEnabled; } }),
  37365. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Sprites", isSelected: function () { return scene.spritesEnabled; }, onSelect: function () { return scene.spritesEnabled = !scene.spritesEnabled; } }))));
  37366. };
  37367. return DebugTabComponent;
  37368. }(_paneComponent__WEBPACK_IMPORTED_MODULE_2__["PaneComponent"]));
  37369. /***/ }),
  37370. /***/ "./components/actionTabs/tabs/propertyGridTabComponent.tsx":
  37371. /*!*****************************************************************!*\
  37372. !*** ./components/actionTabs/tabs/propertyGridTabComponent.tsx ***!
  37373. \*****************************************************************/
  37374. /*! exports provided: PropertyGridTabComponent */
  37375. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  37376. "use strict";
  37377. __webpack_require__.r(__webpack_exports__);
  37378. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyGridTabComponent", function() { return PropertyGridTabComponent; });
  37379. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  37380. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  37381. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  37382. /* harmony import */ var _paneComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../paneComponent */ "./components/actionTabs/paneComponent.tsx");
  37383. /* harmony import */ var _propertyGrids_materials_materialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./propertyGrids/materials/materialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/materialPropertyGridComponent.tsx");
  37384. /* harmony import */ var _propertyGrids_materials_standardMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./propertyGrids/materials/standardMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/standardMaterialPropertyGridComponent.tsx");
  37385. /* harmony import */ var _propertyGrids_materials_texturePropertyGridComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./propertyGrids/materials/texturePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/texturePropertyGridComponent.tsx");
  37386. /* harmony import */ var _propertyGrids_materials_pbrMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./propertyGrids/materials/pbrMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/pbrMaterialPropertyGridComponent.tsx");
  37387. /* harmony import */ var _propertyGrids_scenePropertyGridComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./propertyGrids/scenePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/scenePropertyGridComponent.tsx");
  37388. /* harmony import */ var _propertyGrids_lights_hemisphericLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./propertyGrids/lights/hemisphericLightPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/lights/hemisphericLightPropertyGridComponent.tsx");
  37389. /* harmony import */ var _propertyGrids_lights_pointLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./propertyGrids/lights/pointLightPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/lights/pointLightPropertyGridComponent.tsx");
  37390. /* harmony import */ var _propertyGrids_cameras_freeCameraPropertyGridComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./propertyGrids/cameras/freeCameraPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/cameras/freeCameraPropertyGridComponent.tsx");
  37391. /* harmony import */ var _propertyGrids_cameras_arcRotateCameraPropertyGridComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./propertyGrids/cameras/arcRotateCameraPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/cameras/arcRotateCameraPropertyGridComponent.tsx");
  37392. /* harmony import */ var _propertyGrids_meshes_meshPropertyGridComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./propertyGrids/meshes/meshPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/meshes/meshPropertyGridComponent.tsx");
  37393. /* harmony import */ var _propertyGrids_meshes_transformNodePropertyGridComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./propertyGrids/meshes/transformNodePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/meshes/transformNodePropertyGridComponent.tsx");
  37394. /* harmony import */ var _propertyGrids_materials_backgroundMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./propertyGrids/materials/backgroundMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/backgroundMaterialPropertyGridComponent.tsx");
  37395. /* harmony import */ var _propertyGrids_gui_controlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./propertyGrids/gui/controlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/controlPropertyGridComponent.tsx");
  37396. /* harmony import */ var _propertyGrids_gui_textBlockPropertyGridComponent__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./propertyGrids/gui/textBlockPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/textBlockPropertyGridComponent.tsx");
  37397. /* harmony import */ var _propertyGrids_gui_inputTextPropertyGridComponent__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./propertyGrids/gui/inputTextPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/inputTextPropertyGridComponent.tsx");
  37398. /* harmony import */ var _propertyGrids_gui_colorPickerPropertyGridComponent__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./propertyGrids/gui/colorPickerPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/colorPickerPropertyGridComponent.tsx");
  37399. /* harmony import */ var _propertyGrids_animationGroupPropertyGridComponent__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./propertyGrids/animationGroupPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/animationGroupPropertyGridComponent.tsx");
  37400. /* harmony import */ var _propertyGrids_lockObject__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./propertyGrids/lockObject */ "./components/actionTabs/tabs/propertyGrids/lockObject.ts");
  37401. /* harmony import */ var _propertyGrids_gui_imagePropertyGridComponent__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./propertyGrids/gui/imagePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/imagePropertyGridComponent.tsx");
  37402. /* harmony import */ var _propertyGrids_gui_sliderPropertyGridComponent__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./propertyGrids/gui/sliderPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/sliderPropertyGridComponent.tsx");
  37403. /* harmony import */ var _propertyGrids_gui_imageBasedSliderPropertyGridComponent__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./propertyGrids/gui/imageBasedSliderPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/imageBasedSliderPropertyGridComponent.tsx");
  37404. /* harmony import */ var _propertyGrids_gui_rectanglePropertyGridComponent__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./propertyGrids/gui/rectanglePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/rectanglePropertyGridComponent.tsx");
  37405. /* harmony import */ var _propertyGrids_gui_ellipsePropertyGridComponent__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./propertyGrids/gui/ellipsePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/ellipsePropertyGridComponent.tsx");
  37406. /* harmony import */ var _propertyGrids_gui_checkboxPropertyGridComponent__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./propertyGrids/gui/checkboxPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/checkboxPropertyGridComponent.tsx");
  37407. /* harmony import */ var _propertyGrids_gui_radioButtonPropertyGridComponent__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./propertyGrids/gui/radioButtonPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/radioButtonPropertyGridComponent.tsx");
  37408. /* harmony import */ var _propertyGrids_gui_linePropertyGridComponent__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./propertyGrids/gui/linePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/linePropertyGridComponent.tsx");
  37409. /* harmony import */ var _propertyGrids_gui_scrollViewerPropertyGridComponent__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./propertyGrids/gui/scrollViewerPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/scrollViewerPropertyGridComponent.tsx");
  37410. /* harmony import */ var _propertyGrids_gui_gridPropertyGridComponent__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./propertyGrids/gui/gridPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/gridPropertyGridComponent.tsx");
  37411. /* harmony import */ var _propertyGrids_materials_pbrMetallicRoughnessMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./propertyGrids/materials/pbrMetallicRoughnessMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/pbrMetallicRoughnessMaterialPropertyGridComponent.tsx");
  37412. /* harmony import */ var _propertyGrids_materials_pbrSpecularGlossinessMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./propertyGrids/materials/pbrSpecularGlossinessMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/pbrSpecularGlossinessMaterialPropertyGridComponent.tsx");
  37413. /* harmony import */ var _propertyGrids_gui_stackPanelPropertyGridComponent__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./propertyGrids/gui/stackPanelPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/stackPanelPropertyGridComponent.tsx");
  37414. /* harmony import */ var _propertyGrids_postProcesses_postProcessPropertyGridComponent__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./propertyGrids/postProcesses/postProcessPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/postProcesses/postProcessPropertyGridComponent.tsx");
  37415. /* harmony import */ var _propertyGrids_postProcesses_renderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./propertyGrids/postProcesses/renderingPipelinePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/postProcesses/renderingPipelinePropertyGridComponent.tsx");
  37416. /* harmony import */ var _propertyGrids_postProcesses_defaultRenderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./propertyGrids/postProcesses/defaultRenderingPipelinePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/postProcesses/defaultRenderingPipelinePropertyGridComponent.tsx");
  37417. /* harmony import */ var _propertyGrids_postProcesses_ssaoRenderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./propertyGrids/postProcesses/ssaoRenderingPipelinePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/postProcesses/ssaoRenderingPipelinePropertyGridComponent.tsx");
  37418. /* harmony import */ var _propertyGrids_postProcesses_ssao2RenderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./propertyGrids/postProcesses/ssao2RenderingPipelinePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/postProcesses/ssao2RenderingPipelinePropertyGridComponent.tsx");
  37419. /* harmony import */ var _propertyGrids_meshes_skeletonPropertyGridComponent__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./propertyGrids/meshes/skeletonPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/meshes/skeletonPropertyGridComponent.tsx");
  37420. /* harmony import */ var _propertyGrids_meshes_bonePropertyGridComponent__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./propertyGrids/meshes/bonePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/meshes/bonePropertyGridComponent.tsx");
  37421. /* harmony import */ var _propertyGrids_lights_directionalLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./propertyGrids/lights/directionalLightPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/lights/directionalLightPropertyGridComponent.tsx");
  37422. /* harmony import */ var _propertyGrids_lights_spotLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./propertyGrids/lights/spotLightPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/lights/spotLightPropertyGridComponent.tsx");
  37423. /* harmony import */ var _propertyGrids_postProcesses_lensRenderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./propertyGrids/postProcesses/lensRenderingPipelinePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/postProcesses/lensRenderingPipelinePropertyGridComponent.tsx");
  37424. /* harmony import */ var _propertyGrids_materials_nodeMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./propertyGrids/materials/nodeMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/nodeMaterialPropertyGridComponent.tsx");
  37425. /* harmony import */ var _propertyGrids_materials_multiMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./propertyGrids/materials/multiMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/multiMaterialPropertyGridComponent.tsx");
  37426. /* harmony import */ var _propertyGrids_particleSystems_particleSystemPropertyGridComponent__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./propertyGrids/particleSystems/particleSystemPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/particleSystems/particleSystemPropertyGridComponent.tsx");
  37427. var PropertyGridTabComponent = /** @class */ (function (_super) {
  37428. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PropertyGridTabComponent, _super);
  37429. function PropertyGridTabComponent(props) {
  37430. var _this = _super.call(this, props) || this;
  37431. _this._lockObject = new _propertyGrids_lockObject__WEBPACK_IMPORTED_MODULE_20__["LockObject"]();
  37432. return _this;
  37433. }
  37434. PropertyGridTabComponent.prototype.timerRefresh = function () {
  37435. if (!this._lockObject.lock) {
  37436. this.forceUpdate();
  37437. }
  37438. };
  37439. PropertyGridTabComponent.prototype.componentDidMount = function () {
  37440. var _this = this;
  37441. this._timerIntervalId = window.setInterval(function () { return _this.timerRefresh(); }, 500);
  37442. };
  37443. PropertyGridTabComponent.prototype.componentWillUnmount = function () {
  37444. window.clearInterval(this._timerIntervalId);
  37445. };
  37446. PropertyGridTabComponent.prototype.render = function () {
  37447. var entity = this.props.selectedEntity;
  37448. if (!entity) {
  37449. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "infoMessage" }, "Please select an entity in the scene explorer."));
  37450. }
  37451. if (entity.getClassName) {
  37452. var className = entity.getClassName();
  37453. if (className === "Scene") {
  37454. var scene = entity;
  37455. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_scenePropertyGridComponent__WEBPACK_IMPORTED_MODULE_7__["ScenePropertyGridComponent"], { scene: scene, globalState: this.props.globalState, lockObject: this._lockObject, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37456. }
  37457. if (className.indexOf("Mesh") !== -1) {
  37458. var mesh = entity;
  37459. if (mesh.getTotalVertices() > 0) {
  37460. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  37461. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_meshes_meshPropertyGridComponent__WEBPACK_IMPORTED_MODULE_12__["MeshPropertyGridComponent"], { globalState: this.props.globalState, mesh: mesh, lockObject: this._lockObject, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  37462. }
  37463. }
  37464. if (className.indexOf("ParticleSystem") !== -1) {
  37465. var particleSystem = entity;
  37466. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_particleSystems_particleSystemPropertyGridComponent__WEBPACK_IMPORTED_MODULE_46__["ParticleSystemPropertyGridComponent"], { globalState: this.props.globalState, system: particleSystem, lockObject: this._lockObject, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37467. }
  37468. if (className.indexOf("FreeCamera") !== -1 || className.indexOf("UniversalCamera") !== -1
  37469. || className.indexOf("WebXRCamera") !== -1 || className.indexOf("DeviceOrientationCamera") !== -1) {
  37470. var freeCamera = entity;
  37471. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_cameras_freeCameraPropertyGridComponent__WEBPACK_IMPORTED_MODULE_10__["FreeCameraPropertyGridComponent"], { globalState: this.props.globalState, camera: freeCamera, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37472. }
  37473. if (className.indexOf("ArcRotateCamera") !== -1) {
  37474. var arcRotateCamera = entity;
  37475. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_cameras_arcRotateCameraPropertyGridComponent__WEBPACK_IMPORTED_MODULE_11__["ArcRotateCameraPropertyGridComponent"], { globalState: this.props.globalState, camera: arcRotateCamera, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37476. }
  37477. if (className === "HemisphericLight") {
  37478. var hemisphericLight = entity;
  37479. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_lights_hemisphericLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_8__["HemisphericLightPropertyGridComponent"], { globalState: this.props.globalState, light: hemisphericLight, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37480. }
  37481. if (className === "PointLight") {
  37482. var pointLight = entity;
  37483. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_lights_pointLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_9__["PointLightPropertyGridComponent"], { globalState: this.props.globalState, light: pointLight, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37484. }
  37485. if (className === "DirectionalLight") {
  37486. var pointLight = entity;
  37487. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_lights_directionalLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_41__["DirectionalLightPropertyGridComponent"], { globalState: this.props.globalState, light: pointLight, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37488. }
  37489. if (className === "SpotLight") {
  37490. var pointLight = entity;
  37491. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_lights_spotLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_42__["SpotLightPropertyGridComponent"], { globalState: this.props.globalState, light: pointLight, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37492. }
  37493. if (className.indexOf("TransformNode") !== -1 || className.indexOf("Mesh") !== -1) {
  37494. var transformNode = entity;
  37495. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_meshes_transformNodePropertyGridComponent__WEBPACK_IMPORTED_MODULE_13__["TransformNodePropertyGridComponent"], { transformNode: transformNode, globalState: this.props.globalState, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37496. }
  37497. if (className === "MultiMaterial") {
  37498. var material = entity;
  37499. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_materials_multiMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_45__["MultiMaterialPropertyGridComponent"], { globalState: this.props.globalState, material: material, lockObject: this._lockObject, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37500. }
  37501. if (className === "StandardMaterial") {
  37502. var material = entity;
  37503. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_materials_standardMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_4__["StandardMaterialPropertyGridComponent"], { globalState: this.props.globalState, material: material, lockObject: this._lockObject, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37504. }
  37505. if (className === "NodeMaterial") {
  37506. var material = entity;
  37507. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_materials_nodeMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_44__["NodeMaterialPropertyGridComponent"], { globalState: this.props.globalState, material: material, lockObject: this._lockObject, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37508. }
  37509. if (className === "PBRMaterial") {
  37510. var material = entity;
  37511. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_materials_pbrMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_6__["PBRMaterialPropertyGridComponent"], { globalState: this.props.globalState, material: material, lockObject: this._lockObject, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37512. }
  37513. if (className === "PBRMetallicRoughnessMaterial") {
  37514. var material = entity;
  37515. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_materials_pbrMetallicRoughnessMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_31__["PBRMetallicRoughnessMaterialPropertyGridComponent"], { globalState: this.props.globalState, material: material, lockObject: this._lockObject, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37516. }
  37517. if (className === "PBRSpecularGlossinessMaterial") {
  37518. var material = entity;
  37519. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_materials_pbrSpecularGlossinessMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_32__["PBRSpecularGlossinessMaterialPropertyGridComponent"], { globalState: this.props.globalState, material: material, lockObject: this._lockObject, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37520. }
  37521. if (className === "BackgroundMaterial") {
  37522. var material = entity;
  37523. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_materials_backgroundMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_14__["BackgroundMaterialPropertyGridComponent"], { globalState: this.props.globalState, material: material, lockObject: this._lockObject, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37524. }
  37525. if (className === "AnimationGroup") {
  37526. var animationGroup = entity;
  37527. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_animationGroupPropertyGridComponent__WEBPACK_IMPORTED_MODULE_19__["AnimationGroupGridComponent"], { globalState: this.props.globalState, animationGroup: animationGroup, scene: this.props.scene, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37528. }
  37529. if (className.indexOf("Material") !== -1) {
  37530. var material = entity;
  37531. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_materials_materialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_3__["MaterialPropertyGridComponent"], { material: material, globalState: this.props.globalState, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37532. }
  37533. if (className.indexOf("DefaultRenderingPipeline") !== -1) {
  37534. var renderPipeline = entity;
  37535. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_postProcesses_defaultRenderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_36__["DefaultRenderingPipelinePropertyGridComponent"], { renderPipeline: renderPipeline, globalState: this.props.globalState, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37536. }
  37537. if (className.indexOf("LensRenderingPipeline") !== -1) {
  37538. var renderPipeline = entity;
  37539. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_postProcesses_lensRenderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_43__["LensRenderingPipelinePropertyGridComponent"], { renderPipeline: renderPipeline, globalState: this.props.globalState, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37540. }
  37541. if (className.indexOf("SSAORenderingPipeline") !== -1) {
  37542. var renderPipeline = entity;
  37543. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_postProcesses_ssaoRenderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_37__["SSAORenderingPipelinePropertyGridComponent"], { renderPipeline: renderPipeline, globalState: this.props.globalState, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37544. }
  37545. if (className.indexOf("SSAO2RenderingPipeline") !== -1) {
  37546. var renderPipeline = entity;
  37547. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_postProcesses_ssao2RenderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_38__["SSAO2RenderingPipelinePropertyGridComponent"], { renderPipeline: renderPipeline, globalState: this.props.globalState, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37548. }
  37549. if (className.indexOf("RenderingPipeline") !== -1) {
  37550. var renderPipeline = entity;
  37551. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_postProcesses_renderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_35__["RenderingPipelinePropertyGridComponent"], { renderPipeline: renderPipeline, globalState: this.props.globalState, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37552. }
  37553. if (className.indexOf("PostProcess") !== -1) {
  37554. var postProcess = entity;
  37555. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_postProcesses_postProcessPropertyGridComponent__WEBPACK_IMPORTED_MODULE_34__["PostProcessPropertyGridComponent"], { postProcess: postProcess, globalState: this.props.globalState, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37556. }
  37557. if (className.indexOf("Texture") !== -1) {
  37558. var texture = entity;
  37559. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_materials_texturePropertyGridComponent__WEBPACK_IMPORTED_MODULE_5__["TexturePropertyGridComponent"], { texture: texture, globalState: this.props.globalState, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37560. }
  37561. if (className.indexOf("Skeleton") !== -1) {
  37562. var skeleton = entity;
  37563. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_meshes_skeletonPropertyGridComponent__WEBPACK_IMPORTED_MODULE_39__["SkeletonPropertyGridComponent"], { skeleton: skeleton, globalState: this.props.globalState, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37564. }
  37565. if (className.indexOf("Bone") !== -1) {
  37566. var bone = entity;
  37567. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_meshes_bonePropertyGridComponent__WEBPACK_IMPORTED_MODULE_40__["BonePropertyGridComponent"], { bone: bone, globalState: this.props.globalState, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37568. }
  37569. if (className === "TextBlock") {
  37570. var textBlock = entity;
  37571. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_gui_textBlockPropertyGridComponent__WEBPACK_IMPORTED_MODULE_16__["TextBlockPropertyGridComponent"], { textBlock: textBlock, globalState: this.props.globalState, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37572. }
  37573. if (className === "InputText") {
  37574. var inputText = entity;
  37575. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_gui_inputTextPropertyGridComponent__WEBPACK_IMPORTED_MODULE_17__["InputTextPropertyGridComponent"], { inputText: inputText, globalState: this.props.globalState, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37576. }
  37577. if (className === "ColorPicker") {
  37578. var colorPicker = entity;
  37579. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_gui_colorPickerPropertyGridComponent__WEBPACK_IMPORTED_MODULE_18__["ColorPickerPropertyGridComponent"], { colorPicker: colorPicker, globalState: this.props.globalState, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37580. }
  37581. if (className === "Image") {
  37582. var image = entity;
  37583. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_gui_imagePropertyGridComponent__WEBPACK_IMPORTED_MODULE_21__["ImagePropertyGridComponent"], { image: image, globalState: this.props.globalState, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37584. }
  37585. if (className === "Slider") {
  37586. var slider = entity;
  37587. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_gui_sliderPropertyGridComponent__WEBPACK_IMPORTED_MODULE_22__["SliderPropertyGridComponent"], { slider: slider, globalState: this.props.globalState, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37588. }
  37589. if (className === "ImageBasedSlider") {
  37590. var imageBasedSlider = entity;
  37591. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_gui_imageBasedSliderPropertyGridComponent__WEBPACK_IMPORTED_MODULE_23__["ImageBasedSliderPropertyGridComponent"], { imageBasedSlider: imageBasedSlider, globalState: this.props.globalState, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37592. }
  37593. if (className === "Rectangle") {
  37594. var rectangle = entity;
  37595. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_gui_rectanglePropertyGridComponent__WEBPACK_IMPORTED_MODULE_24__["RectanglePropertyGridComponent"], { rectangle: rectangle, globalState: this.props.globalState, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37596. }
  37597. if (className === "StackPanel") {
  37598. var stackPanel = entity;
  37599. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_gui_stackPanelPropertyGridComponent__WEBPACK_IMPORTED_MODULE_33__["StackPanelPropertyGridComponent"], { stackPanel: stackPanel, globalState: this.props.globalState, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37600. }
  37601. if (className === "Grid") {
  37602. var grid = entity;
  37603. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_gui_gridPropertyGridComponent__WEBPACK_IMPORTED_MODULE_30__["GridPropertyGridComponent"], { grid: grid, globalState: this.props.globalState, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37604. }
  37605. if (className === "ScrollViewer") {
  37606. var scrollViewer = entity;
  37607. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_gui_scrollViewerPropertyGridComponent__WEBPACK_IMPORTED_MODULE_29__["ScrollViewerPropertyGridComponent"], { scrollViewer: scrollViewer, globalState: this.props.globalState, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37608. }
  37609. if (className === "Ellipse") {
  37610. var ellipse = entity;
  37611. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_gui_ellipsePropertyGridComponent__WEBPACK_IMPORTED_MODULE_25__["EllipsePropertyGridComponent"], { ellipse: ellipse, globalState: this.props.globalState, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37612. }
  37613. if (className === "Checkbox") {
  37614. var checkbox = entity;
  37615. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_gui_checkboxPropertyGridComponent__WEBPACK_IMPORTED_MODULE_26__["CheckboxPropertyGridComponent"], { checkbox: checkbox, globalState: this.props.globalState, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37616. }
  37617. if (className === "RadioButton") {
  37618. var radioButton = entity;
  37619. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_gui_radioButtonPropertyGridComponent__WEBPACK_IMPORTED_MODULE_27__["RadioButtonPropertyGridComponent"], { radioButton: radioButton, globalState: this.props.globalState, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37620. }
  37621. if (className === "Line") {
  37622. var line = entity;
  37623. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_gui_linePropertyGridComponent__WEBPACK_IMPORTED_MODULE_28__["LinePropertyGridComponent"], { line: line, globalState: this.props.globalState, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37624. }
  37625. if (entity._host) {
  37626. var control = entity;
  37627. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_gui_controlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_15__["ControlPropertyGridComponent"], { control: control, globalState: this.props.globalState, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  37628. }
  37629. }
  37630. return null;
  37631. };
  37632. return PropertyGridTabComponent;
  37633. }(_paneComponent__WEBPACK_IMPORTED_MODULE_2__["PaneComponent"]));
  37634. /***/ }),
  37635. /***/ "./components/actionTabs/tabs/propertyGrids/animationGroupPropertyGridComponent.tsx":
  37636. /*!******************************************************************************************!*\
  37637. !*** ./components/actionTabs/tabs/propertyGrids/animationGroupPropertyGridComponent.tsx ***!
  37638. \******************************************************************************************/
  37639. /*! exports provided: AnimationGroupGridComponent */
  37640. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  37641. "use strict";
  37642. __webpack_require__.r(__webpack_exports__);
  37643. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationGroupGridComponent", function() { return AnimationGroupGridComponent; });
  37644. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  37645. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  37646. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  37647. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  37648. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  37649. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  37650. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  37651. var AnimationGroupGridComponent = /** @class */ (function (_super) {
  37652. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(AnimationGroupGridComponent, _super);
  37653. function AnimationGroupGridComponent(props) {
  37654. var _this = _super.call(this, props) || this;
  37655. var animationGroup = _this.props.animationGroup;
  37656. _this.state = { playButtonText: animationGroup.isPlaying ? "Pause" : "Play", currentFrame: 0 };
  37657. _this.connect(_this.props.animationGroup);
  37658. _this._onBeforeRenderObserver = _this.props.scene.onBeforeRenderObservable.add(function () {
  37659. _this.updateCurrentFrame(_this.props.animationGroup);
  37660. });
  37661. _this.timelineRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  37662. return _this;
  37663. }
  37664. AnimationGroupGridComponent.prototype.disconnect = function (animationGroup) {
  37665. if (this._onAnimationGroupPlayObserver) {
  37666. animationGroup.onAnimationGroupPlayObservable.remove(this._onAnimationGroupPlayObserver);
  37667. this._onAnimationGroupPlayObserver = null;
  37668. }
  37669. if (this._onAnimationGroupPauseObserver) {
  37670. animationGroup.onAnimationGroupPauseObservable.remove(this._onAnimationGroupPauseObserver);
  37671. this._onAnimationGroupPauseObserver = null;
  37672. }
  37673. };
  37674. AnimationGroupGridComponent.prototype.connect = function (animationGroup) {
  37675. var _this = this;
  37676. this._onAnimationGroupPlayObserver = animationGroup.onAnimationGroupPlayObservable.add(function () {
  37677. _this.forceUpdate();
  37678. });
  37679. this._onAnimationGroupPauseObserver = animationGroup.onAnimationGroupPauseObservable.add(function () {
  37680. _this.forceUpdate();
  37681. });
  37682. this.updateCurrentFrame(animationGroup);
  37683. };
  37684. AnimationGroupGridComponent.prototype.updateCurrentFrame = function (animationGroup) {
  37685. var targetedAnimations = animationGroup.targetedAnimations;
  37686. if (targetedAnimations.length > 0) {
  37687. var runtimeAnimations = animationGroup.targetedAnimations[0].animation.runtimeAnimations;
  37688. if (runtimeAnimations.length > 0) {
  37689. this.setState({ currentFrame: runtimeAnimations[0].currentFrame });
  37690. }
  37691. else {
  37692. this.setState({ currentFrame: 0 });
  37693. }
  37694. }
  37695. };
  37696. AnimationGroupGridComponent.prototype.shouldComponentUpdate = function (nextProps) {
  37697. if (this.props.animationGroup !== nextProps.animationGroup) {
  37698. this.disconnect(this.props.animationGroup);
  37699. this.connect(nextProps.animationGroup);
  37700. }
  37701. return true;
  37702. };
  37703. AnimationGroupGridComponent.prototype.componentWillUnmount = function () {
  37704. this.disconnect(this.props.animationGroup);
  37705. if (this._onBeforeRenderObserver) {
  37706. this.props.scene.onBeforeRenderObservable.remove(this._onBeforeRenderObserver);
  37707. this._onBeforeRenderObserver = null;
  37708. }
  37709. };
  37710. AnimationGroupGridComponent.prototype.playOrPause = function () {
  37711. var animationGroup = this.props.animationGroup;
  37712. if (animationGroup.isPlaying) {
  37713. this.setState({ playButtonText: "Play" });
  37714. animationGroup.pause();
  37715. }
  37716. else {
  37717. this.setState({ playButtonText: "Pause" });
  37718. this.props.scene.animationGroups.forEach(function (grp) { return grp.pause(); });
  37719. animationGroup.play(true);
  37720. }
  37721. };
  37722. AnimationGroupGridComponent.prototype.onCurrentFrameChange = function (value) {
  37723. var animationGroup = this.props.animationGroup;
  37724. if (!animationGroup.isPlaying) {
  37725. animationGroup.play(true);
  37726. animationGroup.goToFrame(value);
  37727. animationGroup.pause();
  37728. }
  37729. else {
  37730. animationGroup.goToFrame(value);
  37731. }
  37732. this.setState({ currentFrame: value });
  37733. };
  37734. AnimationGroupGridComponent.prototype.render = function () {
  37735. var _this = this;
  37736. var animationGroup = this.props.animationGroup;
  37737. var playButtonText = animationGroup.isPlaying ? "Pause" : "Play";
  37738. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  37739. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "CONTROLS" },
  37740. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: playButtonText, onClick: function () { return _this.playOrPause(); } }),
  37741. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__["SliderLineComponent"], { label: "Speed ratio", minimum: 0, maximum: 10, step: 0.1, target: animationGroup, propertyName: "speedRatio", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  37742. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__["SliderLineComponent"], { ref: this.timelineRef, label: "Current frame", minimum: animationGroup.from, maximum: animationGroup.to, step: (animationGroup.to - animationGroup.from) / 1000.0, directValue: this.state.currentFrame, onInput: function (value) { return _this.onCurrentFrameChange(value); } })),
  37743. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "INFOS" },
  37744. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Animation count", value: animationGroup.targetedAnimations.length.toString() }),
  37745. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "From", value: animationGroup.from.toFixed(2) }),
  37746. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "To", value: animationGroup.to.toFixed(2) }),
  37747. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Unique ID", value: animationGroup.uniqueId.toString() }))));
  37748. };
  37749. return AnimationGroupGridComponent;
  37750. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  37751. /***/ }),
  37752. /***/ "./components/actionTabs/tabs/propertyGrids/animationPropertyGridComponent.tsx":
  37753. /*!*************************************************************************************!*\
  37754. !*** ./components/actionTabs/tabs/propertyGrids/animationPropertyGridComponent.tsx ***!
  37755. \*************************************************************************************/
  37756. /*! exports provided: AnimationGridComponent */
  37757. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  37758. "use strict";
  37759. __webpack_require__.r(__webpack_exports__);
  37760. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationGridComponent", function() { return AnimationGridComponent; });
  37761. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  37762. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  37763. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  37764. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  37765. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  37766. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  37767. /* harmony import */ var babylonjs_Animations_animationPropertiesOverride__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! babylonjs/Animations/animationPropertiesOverride */ "babylonjs/Misc/observable");
  37768. /* harmony import */ var babylonjs_Animations_animationPropertiesOverride__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Animations_animationPropertiesOverride__WEBPACK_IMPORTED_MODULE_5__);
  37769. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  37770. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  37771. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  37772. var AnimationGridComponent = /** @class */ (function (_super) {
  37773. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(AnimationGridComponent, _super);
  37774. function AnimationGridComponent(props) {
  37775. var _this = _super.call(this, props) || this;
  37776. _this._animations = null;
  37777. _this._animationControl = {
  37778. from: 0,
  37779. to: 0,
  37780. loop: false
  37781. };
  37782. _this._isPlaying = false;
  37783. _this.state = { currentFrame: 0 };
  37784. var animatableAsAny = _this.props.animatable;
  37785. _this._ranges = animatableAsAny.getAnimationRanges ? animatableAsAny.getAnimationRanges() : [];
  37786. if (animatableAsAny.getAnimatables) {
  37787. var animatables = animatableAsAny.getAnimatables();
  37788. _this._animations = new Array();
  37789. animatables.forEach(function (animatable) {
  37790. var _a;
  37791. if (animatable.animations) {
  37792. (_a = _this._animations).push.apply(_a, animatable.animations);
  37793. }
  37794. });
  37795. // Extract from and to
  37796. if (_this._animations && _this._animations.length) {
  37797. _this._animations.forEach(function (animation) {
  37798. var keys = animation.getKeys();
  37799. if (keys && keys.length > 0) {
  37800. if (keys[0].frame < _this._animationControl.from) {
  37801. _this._animationControl.from = keys[0].frame;
  37802. }
  37803. var lastKeyIndex = keys.length - 1;
  37804. if (keys[lastKeyIndex].frame > _this._animationControl.to) {
  37805. _this._animationControl.to = keys[lastKeyIndex].frame;
  37806. }
  37807. }
  37808. });
  37809. }
  37810. }
  37811. _this.timelineRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  37812. return _this;
  37813. }
  37814. AnimationGridComponent.prototype.playOrPause = function () {
  37815. var animatable = this.props.animatable;
  37816. this._isPlaying = this.props.scene.getAllAnimatablesByTarget(animatable).length > 0;
  37817. if (this._isPlaying) {
  37818. this.props.scene.stopAnimation(this.props.animatable);
  37819. this._runningAnimatable = null;
  37820. }
  37821. else {
  37822. this._runningAnimatable = this.props.scene.beginAnimation(this.props.animatable, this._animationControl.from, this._animationControl.to, this._animationControl.loop);
  37823. }
  37824. this.forceUpdate();
  37825. };
  37826. AnimationGridComponent.prototype.componentDidMount = function () {
  37827. var _this = this;
  37828. this._onBeforeRenderObserver = this.props.scene.onBeforeRenderObservable.add(function () {
  37829. if (!_this._isPlaying || !_this._runningAnimatable) {
  37830. return;
  37831. }
  37832. _this.setState({ currentFrame: _this._runningAnimatable.masterFrame });
  37833. });
  37834. };
  37835. AnimationGridComponent.prototype.componentWillUnmount = function () {
  37836. if (this._onBeforeRenderObserver) {
  37837. this.props.scene.onBeforeRenderObservable.remove(this._onBeforeRenderObserver);
  37838. this._onBeforeRenderObserver = null;
  37839. }
  37840. };
  37841. AnimationGridComponent.prototype.onCurrentFrameChange = function (value) {
  37842. if (!this._runningAnimatable) {
  37843. return;
  37844. }
  37845. this._runningAnimatable.goToFrame(value);
  37846. this.setState({ currentFrame: value });
  37847. };
  37848. AnimationGridComponent.prototype.render = function () {
  37849. var _this = this;
  37850. var animatable = this.props.animatable;
  37851. var animatableAsAny = this.props.animatable;
  37852. var animatablesForTarget = this.props.scene.getAllAnimatablesByTarget(animatable);
  37853. this._isPlaying = animatablesForTarget.length > 0;
  37854. if (this._isPlaying && !this._runningAnimatable) {
  37855. this._runningAnimatable = animatablesForTarget[0];
  37856. }
  37857. if (this._runningAnimatable) {
  37858. this._animationControl.from = this._runningAnimatable.fromFrame;
  37859. this._animationControl.to = this._runningAnimatable.toFrame;
  37860. this._animationControl.loop = this._runningAnimatable.loopAnimation;
  37861. }
  37862. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  37863. (this._ranges.length > 0 || this._animations && this._animations.length > 0) &&
  37864. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "ANIMATION OVERRIDE" },
  37865. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Enable override", onSelect: function (value) {
  37866. if (value) {
  37867. animatableAsAny.animationPropertiesOverride = new babylonjs_Animations_animationPropertiesOverride__WEBPACK_IMPORTED_MODULE_5__["AnimationPropertiesOverride"]();
  37868. animatableAsAny.animationPropertiesOverride.blendingSpeed = 0.05;
  37869. }
  37870. else {
  37871. animatableAsAny.animationPropertiesOverride = null;
  37872. }
  37873. _this.forceUpdate();
  37874. }, isSelected: function () { return animatableAsAny.animationPropertiesOverride != null; }, onValueChanged: function () { return _this.forceUpdate(); } }),
  37875. animatableAsAny.animationPropertiesOverride != null &&
  37876. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  37877. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Enable blending", target: animatableAsAny.animationPropertiesOverride, propertyName: "enableBlending", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  37878. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_4__["SliderLineComponent"], { label: "Blending speed", target: animatableAsAny.animationPropertiesOverride, propertyName: "blendingSpeed", minimum: 0, maximum: 0.1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }))),
  37879. this._ranges.length > 0 &&
  37880. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "ANIMATION RANGES" }, this._ranges.map(function (range) {
  37881. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { key: range.name, label: range.name, onClick: function () {
  37882. _this._runningAnimatable = null;
  37883. _this.props.scene.beginAnimation(animatable, range.from, range.to, true);
  37884. } }));
  37885. })),
  37886. this._animations && this._animations.length > 0 &&
  37887. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "ANIMATIONS" },
  37888. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_8__["TextLineComponent"], { label: "Count", value: this._animations.length.toString() }),
  37889. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_7__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "From", target: this._animationControl, propertyName: "from" }),
  37890. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_7__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "To", target: this._animationControl, propertyName: "to" }),
  37891. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Loop", onSelect: function (value) { return _this._animationControl.loop = value; }, isSelected: function () { return _this._animationControl.loop; } }),
  37892. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: this._isPlaying ? "Stop" : "Play", onClick: function () { return _this.playOrPause(); } }),
  37893. this._isPlaying &&
  37894. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_4__["SliderLineComponent"], { ref: this.timelineRef, label: "Current frame", minimum: this._animationControl.from, maximum: this._animationControl.to, step: (this._animationControl.to - this._animationControl.from) / 1000.0, directValue: this.state.currentFrame, onInput: function (value) { return _this.onCurrentFrameChange(value); } }))));
  37895. };
  37896. return AnimationGridComponent;
  37897. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  37898. /***/ }),
  37899. /***/ "./components/actionTabs/tabs/propertyGrids/cameras/arcRotateCameraPropertyGridComponent.tsx":
  37900. /*!***************************************************************************************************!*\
  37901. !*** ./components/actionTabs/tabs/propertyGrids/cameras/arcRotateCameraPropertyGridComponent.tsx ***!
  37902. \***************************************************************************************************/
  37903. /*! exports provided: ArcRotateCameraPropertyGridComponent */
  37904. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  37905. "use strict";
  37906. __webpack_require__.r(__webpack_exports__);
  37907. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ArcRotateCameraPropertyGridComponent", function() { return ArcRotateCameraPropertyGridComponent; });
  37908. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  37909. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  37910. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  37911. /* harmony import */ var _commonCameraPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonCameraPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/cameras/commonCameraPropertyGridComponent.tsx");
  37912. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  37913. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  37914. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  37915. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  37916. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  37917. var ArcRotateCameraPropertyGridComponent = /** @class */ (function (_super) {
  37918. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ArcRotateCameraPropertyGridComponent, _super);
  37919. function ArcRotateCameraPropertyGridComponent(props) {
  37920. return _super.call(this, props) || this;
  37921. }
  37922. ArcRotateCameraPropertyGridComponent.prototype.render = function () {
  37923. var camera = this.props.camera;
  37924. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  37925. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonCameraPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__["CommonCameraPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, camera: camera, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  37926. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "TRANSFORMS" },
  37927. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_7__["Vector3LineComponent"], { label: "Target", target: camera, propertyName: "target", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  37928. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_6__["SliderLineComponent"], { label: "Alpha", useEuler: this.props.globalState.onlyUseEulers, target: camera, propertyName: "alpha", minimum: camera.lowerAlphaLimit || 0, maximum: camera.upperAlphaLimit || 2 * Math.PI, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  37929. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_6__["SliderLineComponent"], { label: "Beta", useEuler: this.props.globalState.onlyUseEulers, target: camera, propertyName: "beta", minimum: camera.lowerAlphaLimit || 0, maximum: camera.upperBetaLimit || 2 * Math.PI, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  37930. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Radius", target: camera, propertyName: "radius", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  37931. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "CONTROLS", closed: true },
  37932. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Angular sensitivity X", target: camera, propertyName: "angularSensibilityX", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  37933. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Angular sensitivity Y", target: camera, propertyName: "angularSensibilityY", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  37934. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Panning sensitivity", target: camera, propertyName: "panningSensibility", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  37935. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Pinch delta percentage", target: camera, propertyName: "pinchDeltaPercentage", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  37936. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Wheel delta percentage", target: camera, propertyName: "wheelDeltaPercentage", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  37937. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Speed", target: camera, propertyName: "speed", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  37938. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "COLLISIONS", closed: true },
  37939. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Check collisions", target: camera, propertyName: "checkCollisions", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  37940. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_7__["Vector3LineComponent"], { label: "Collision radius", target: camera, propertyName: "collisionRadius", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  37941. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "LIMITS", closed: true },
  37942. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Lower alpha limit", target: camera, propertyName: "lowerAlphaLimit", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  37943. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Upper alpha limit", target: camera, propertyName: "upperAlphaLimit", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  37944. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Lower beta limit", target: camera, propertyName: "lowerBetaLimit", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  37945. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Upper beta limit", target: camera, propertyName: "upperBetaLimit", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  37946. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Lower radius limit", target: camera, propertyName: "lowerRadiusLimit", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  37947. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Upper radius limit", target: camera, propertyName: "upperRadiusLimit", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  37948. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "BEHAVIORS", closed: true },
  37949. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Auto rotation", target: camera, propertyName: "useAutoRotationBehavior", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  37950. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Bouncing", target: camera, propertyName: "useBouncingBehavior", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  37951. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Framing", target: camera, propertyName: "useFramingBehavior", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  37952. };
  37953. return ArcRotateCameraPropertyGridComponent;
  37954. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  37955. /***/ }),
  37956. /***/ "./components/actionTabs/tabs/propertyGrids/cameras/commonCameraPropertyGridComponent.tsx":
  37957. /*!************************************************************************************************!*\
  37958. !*** ./components/actionTabs/tabs/propertyGrids/cameras/commonCameraPropertyGridComponent.tsx ***!
  37959. \************************************************************************************************/
  37960. /*! exports provided: CommonCameraPropertyGridComponent */
  37961. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  37962. "use strict";
  37963. __webpack_require__.r(__webpack_exports__);
  37964. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CommonCameraPropertyGridComponent", function() { return CommonCameraPropertyGridComponent; });
  37965. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  37966. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  37967. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  37968. /* harmony import */ var babylonjs_Cameras_camera__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Cameras/camera */ "babylonjs/Misc/observable");
  37969. /* harmony import */ var babylonjs_Cameras_camera__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Cameras_camera__WEBPACK_IMPORTED_MODULE_2__);
  37970. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  37971. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  37972. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  37973. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  37974. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  37975. /* harmony import */ var _customPropertyGridComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../customPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/customPropertyGridComponent.tsx");
  37976. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  37977. var CommonCameraPropertyGridComponent = /** @class */ (function (_super) {
  37978. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CommonCameraPropertyGridComponent, _super);
  37979. function CommonCameraPropertyGridComponent(props) {
  37980. var _this = _super.call(this, props) || this;
  37981. _this.state = { mode: _this.props.camera.mode };
  37982. return _this;
  37983. }
  37984. CommonCameraPropertyGridComponent.prototype.render = function () {
  37985. var _this = this;
  37986. var camera = this.props.camera;
  37987. var modeOptions = [
  37988. { label: "Perspective", value: babylonjs_Cameras_camera__WEBPACK_IMPORTED_MODULE_2__["Camera"].PERSPECTIVE_CAMERA },
  37989. { label: "Orthographic", value: babylonjs_Cameras_camera__WEBPACK_IMPORTED_MODULE_2__["Camera"].ORTHOGRAPHIC_CAMERA }
  37990. ];
  37991. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  37992. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_customPropertyGridComponent__WEBPACK_IMPORTED_MODULE_8__["CustomPropertyGridComponent"], { globalState: this.props.globalState, target: camera, lockObject: this.props.lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  37993. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "GENERAL" },
  37994. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_6__["TextLineComponent"], { label: "ID", value: camera.id }),
  37995. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_6__["TextLineComponent"], { label: "Unique ID", value: camera.uniqueId.toString() }),
  37996. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_6__["TextLineComponent"], { label: "Class", value: camera.getClassName() }),
  37997. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Near plane", target: camera, propertyName: "minZ", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  37998. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Far plane", target: camera, propertyName: "maxZ", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  37999. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Inertia", target: camera, propertyName: "inertia", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38000. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_7__["OptionsLineComponent"], { label: "Mode", options: modeOptions, target: camera, propertyName: "mode", onPropertyChangedObservable: this.props.onPropertyChangedObservable, onSelect: function (value) { return _this.setState({ mode: value }); } }),
  38001. camera.mode === babylonjs_Cameras_camera__WEBPACK_IMPORTED_MODULE_2__["Camera"].PERSPECTIVE_CAMERA &&
  38002. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Field of view", target: camera, useEuler: this.props.globalState.onlyUseEulers, propertyName: "fov", minimum: 0.1, maximum: Math.PI, step: 0.1, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38003. camera.mode === babylonjs_Cameras_camera__WEBPACK_IMPORTED_MODULE_2__["Camera"].ORTHOGRAPHIC_CAMERA &&
  38004. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Left", target: camera, propertyName: "orthoLeft", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38005. camera.mode === babylonjs_Cameras_camera__WEBPACK_IMPORTED_MODULE_2__["Camera"].ORTHOGRAPHIC_CAMERA &&
  38006. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Top", target: camera, propertyName: "orthoTop", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38007. camera.mode === babylonjs_Cameras_camera__WEBPACK_IMPORTED_MODULE_2__["Camera"].ORTHOGRAPHIC_CAMERA &&
  38008. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Right", target: camera, propertyName: "orthoRight", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38009. camera.mode === babylonjs_Cameras_camera__WEBPACK_IMPORTED_MODULE_2__["Camera"].ORTHOGRAPHIC_CAMERA &&
  38010. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Bottom", target: camera, propertyName: "orthoBottom", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38011. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_9__["ButtonLineComponent"], { label: "Dispose", onClick: function () {
  38012. camera.dispose();
  38013. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  38014. } }))));
  38015. };
  38016. return CommonCameraPropertyGridComponent;
  38017. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  38018. /***/ }),
  38019. /***/ "./components/actionTabs/tabs/propertyGrids/cameras/freeCameraPropertyGridComponent.tsx":
  38020. /*!**********************************************************************************************!*\
  38021. !*** ./components/actionTabs/tabs/propertyGrids/cameras/freeCameraPropertyGridComponent.tsx ***!
  38022. \**********************************************************************************************/
  38023. /*! exports provided: FreeCameraPropertyGridComponent */
  38024. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38025. "use strict";
  38026. __webpack_require__.r(__webpack_exports__);
  38027. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FreeCameraPropertyGridComponent", function() { return FreeCameraPropertyGridComponent; });
  38028. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  38029. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  38030. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  38031. /* harmony import */ var _commonCameraPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonCameraPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/cameras/commonCameraPropertyGridComponent.tsx");
  38032. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  38033. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  38034. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  38035. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  38036. var FreeCameraPropertyGridComponent = /** @class */ (function (_super) {
  38037. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FreeCameraPropertyGridComponent, _super);
  38038. function FreeCameraPropertyGridComponent(props) {
  38039. return _super.call(this, props) || this;
  38040. }
  38041. FreeCameraPropertyGridComponent.prototype.render = function () {
  38042. var camera = this.props.camera;
  38043. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  38044. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonCameraPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__["CommonCameraPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, camera: camera, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38045. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "TRANSFORMS" },
  38046. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Vector3LineComponent"], { label: "Position", target: camera, propertyName: "position", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  38047. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "CONTROLS", closed: true },
  38048. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Angular sensitivity", target: camera, propertyName: "angularSensibility", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38049. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Speed", target: camera, propertyName: "speed", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  38050. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "COLLISIONS", closed: true },
  38051. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Check collisions", target: camera, propertyName: "checkCollisions", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38052. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Apply gravity", target: camera, propertyName: "applyGravity", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38053. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Vector3LineComponent"], { label: "Ellipsoid", target: camera, propertyName: "ellipsoid", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38054. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Vector3LineComponent"], { label: "Ellipsoid offset", target: camera, propertyName: "ellipsoidOffset", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  38055. };
  38056. return FreeCameraPropertyGridComponent;
  38057. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  38058. /***/ }),
  38059. /***/ "./components/actionTabs/tabs/propertyGrids/customPropertyGridComponent.tsx":
  38060. /*!**********************************************************************************!*\
  38061. !*** ./components/actionTabs/tabs/propertyGrids/customPropertyGridComponent.tsx ***!
  38062. \**********************************************************************************/
  38063. /*! exports provided: CustomPropertyGridComponent */
  38064. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38065. "use strict";
  38066. __webpack_require__.r(__webpack_exports__);
  38067. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CustomPropertyGridComponent", function() { return CustomPropertyGridComponent; });
  38068. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  38069. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  38070. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  38071. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  38072. /* harmony import */ var babylonjs_Misc_iInspectable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs/Misc/iInspectable */ "babylonjs/Misc/observable");
  38073. /* harmony import */ var babylonjs_Misc_iInspectable__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_iInspectable__WEBPACK_IMPORTED_MODULE_3__);
  38074. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  38075. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  38076. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  38077. /* harmony import */ var _lines_quaternionLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../lines/quaternionLineComponent */ "./components/actionTabs/lines/quaternionLineComponent.tsx");
  38078. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  38079. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  38080. var CustomPropertyGridComponent = /** @class */ (function (_super) {
  38081. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CustomPropertyGridComponent, _super);
  38082. function CustomPropertyGridComponent(props) {
  38083. var _this = _super.call(this, props) || this;
  38084. _this.state = { mode: 0 };
  38085. return _this;
  38086. }
  38087. CustomPropertyGridComponent.prototype.renderInspectable = function (inspectable) {
  38088. switch (inspectable.type) {
  38089. case babylonjs_Misc_iInspectable__WEBPACK_IMPORTED_MODULE_3__["InspectableType"].Checkbox:
  38090. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { key: inspectable.label, label: inspectable.label, target: this.props.target, propertyName: inspectable.propertyName, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  38091. case babylonjs_Misc_iInspectable__WEBPACK_IMPORTED_MODULE_3__["InspectableType"].Slider:
  38092. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__["SliderLineComponent"], { key: inspectable.label, label: inspectable.label, target: this.props.target, propertyName: inspectable.propertyName, step: inspectable.step !== undefined ? inspectable.step : 0.1, minimum: inspectable.min !== undefined ? inspectable.min : 0, maximum: inspectable.max !== undefined ? inspectable.max : 1, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  38093. case babylonjs_Misc_iInspectable__WEBPACK_IMPORTED_MODULE_3__["InspectableType"].Vector3:
  38094. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_6__["Vector3LineComponent"], { key: inspectable.label, label: inspectable.label, target: this.props.target, propertyName: inspectable.propertyName, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  38095. case babylonjs_Misc_iInspectable__WEBPACK_IMPORTED_MODULE_3__["InspectableType"].Quaternion:
  38096. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_quaternionLineComponent__WEBPACK_IMPORTED_MODULE_7__["QuaternionLineComponent"], { useEuler: this.props.globalState.onlyUseEulers, key: inspectable.label, label: inspectable.label, target: this.props.target, propertyName: inspectable.propertyName, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  38097. case babylonjs_Misc_iInspectable__WEBPACK_IMPORTED_MODULE_3__["InspectableType"].Color3:
  38098. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Color3LineComponent"], { key: inspectable.label, label: inspectable.label, target: this.props.target, propertyName: inspectable.propertyName, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  38099. case babylonjs_Misc_iInspectable__WEBPACK_IMPORTED_MODULE_3__["InspectableType"].String:
  38100. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_9__["TextInputLineComponent"], { key: inspectable.label, label: inspectable.label, lockObject: this.props.lockObject, target: this.props.target, propertyName: inspectable.propertyName, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  38101. }
  38102. return null;
  38103. };
  38104. CustomPropertyGridComponent.prototype.render = function () {
  38105. var _this = this;
  38106. var inspectables = this.props.target.inspectableCustomProperties;
  38107. if (!inspectables || inspectables.length === 0) {
  38108. return null;
  38109. }
  38110. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_8__["LineContainerComponent"], { title: "CUSTOM", globalState: this.props.globalState }, inspectables.map(function (inspectable) {
  38111. return _this.renderInspectable(inspectable);
  38112. })));
  38113. };
  38114. return CustomPropertyGridComponent;
  38115. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  38116. /***/ }),
  38117. /***/ "./components/actionTabs/tabs/propertyGrids/fogPropertyGridComponent.tsx":
  38118. /*!*******************************************************************************!*\
  38119. !*** ./components/actionTabs/tabs/propertyGrids/fogPropertyGridComponent.tsx ***!
  38120. \*******************************************************************************/
  38121. /*! exports provided: FogPropertyGridComponent */
  38122. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38123. "use strict";
  38124. __webpack_require__.r(__webpack_exports__);
  38125. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FogPropertyGridComponent", function() { return FogPropertyGridComponent; });
  38126. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  38127. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  38128. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  38129. /* harmony import */ var babylonjs_scene__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/scene */ "babylonjs/Misc/observable");
  38130. /* harmony import */ var babylonjs_scene__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_scene__WEBPACK_IMPORTED_MODULE_2__);
  38131. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  38132. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  38133. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  38134. var FogPropertyGridComponent = /** @class */ (function (_super) {
  38135. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FogPropertyGridComponent, _super);
  38136. function FogPropertyGridComponent(props) {
  38137. var _this = _super.call(this, props) || this;
  38138. _this.state = { mode: _this.props.scene.fogMode };
  38139. return _this;
  38140. }
  38141. FogPropertyGridComponent.prototype.render = function () {
  38142. var _this = this;
  38143. var scene = this.props.scene;
  38144. var fogModeOptions = [
  38145. { label: "None", value: babylonjs_scene__WEBPACK_IMPORTED_MODULE_2__["Scene"].FOGMODE_NONE },
  38146. { label: "Linear", value: babylonjs_scene__WEBPACK_IMPORTED_MODULE_2__["Scene"].FOGMODE_LINEAR },
  38147. { label: "Exp", value: babylonjs_scene__WEBPACK_IMPORTED_MODULE_2__["Scene"].FOGMODE_EXP },
  38148. { label: "Exp2", value: babylonjs_scene__WEBPACK_IMPORTED_MODULE_2__["Scene"].FOGMODE_EXP2 },
  38149. ];
  38150. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  38151. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__["OptionsLineComponent"], { label: "Fog mode", options: fogModeOptions, target: scene, propertyName: "fogMode", onPropertyChangedObservable: this.props.onPropertyChangedObservable, onSelect: function (value) { return _this.setState({ mode: value }); } }),
  38152. this.state.mode !== babylonjs_scene__WEBPACK_IMPORTED_MODULE_2__["Scene"].FOGMODE_NONE &&
  38153. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_3__["Color3LineComponent"], { label: "Fog color", target: scene, propertyName: "fogColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38154. (this.state.mode === babylonjs_scene__WEBPACK_IMPORTED_MODULE_2__["Scene"].FOGMODE_EXP || this.state.mode === babylonjs_scene__WEBPACK_IMPORTED_MODULE_2__["Scene"].FOGMODE_EXP2) &&
  38155. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Fog density", target: scene, propertyName: "fogDensity", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38156. this.state.mode === babylonjs_scene__WEBPACK_IMPORTED_MODULE_2__["Scene"].FOGMODE_LINEAR &&
  38157. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Fog start", target: scene, propertyName: "fogStart", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38158. this.state.mode === babylonjs_scene__WEBPACK_IMPORTED_MODULE_2__["Scene"].FOGMODE_LINEAR &&
  38159. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Fog end", target: scene, propertyName: "fogEnd", onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  38160. };
  38161. return FogPropertyGridComponent;
  38162. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  38163. /***/ }),
  38164. /***/ "./components/actionTabs/tabs/propertyGrids/gui/checkboxPropertyGridComponent.tsx":
  38165. /*!****************************************************************************************!*\
  38166. !*** ./components/actionTabs/tabs/propertyGrids/gui/checkboxPropertyGridComponent.tsx ***!
  38167. \****************************************************************************************/
  38168. /*! exports provided: CheckboxPropertyGridComponent */
  38169. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38170. "use strict";
  38171. __webpack_require__.r(__webpack_exports__);
  38172. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CheckboxPropertyGridComponent", function() { return CheckboxPropertyGridComponent; });
  38173. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  38174. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  38175. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  38176. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  38177. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  38178. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  38179. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  38180. var CheckboxPropertyGridComponent = /** @class */ (function (_super) {
  38181. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CheckboxPropertyGridComponent, _super);
  38182. function CheckboxPropertyGridComponent(props) {
  38183. return _super.call(this, props) || this;
  38184. }
  38185. CheckboxPropertyGridComponent.prototype.render = function () {
  38186. var checkbox = this.props.checkbox;
  38187. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  38188. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__["CommonControlPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, control: checkbox, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38189. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "CHECKBOX" },
  38190. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Check size ratio", target: checkbox, propertyName: "checkSizeRatio", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38191. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Checked", target: checkbox, propertyName: "isChecked", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  38192. };
  38193. return CheckboxPropertyGridComponent;
  38194. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  38195. /***/ }),
  38196. /***/ "./components/actionTabs/tabs/propertyGrids/gui/colorPickerPropertyGridComponent.tsx":
  38197. /*!*******************************************************************************************!*\
  38198. !*** ./components/actionTabs/tabs/propertyGrids/gui/colorPickerPropertyGridComponent.tsx ***!
  38199. \*******************************************************************************************/
  38200. /*! exports provided: ColorPickerPropertyGridComponent */
  38201. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38202. "use strict";
  38203. __webpack_require__.r(__webpack_exports__);
  38204. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColorPickerPropertyGridComponent", function() { return ColorPickerPropertyGridComponent; });
  38205. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  38206. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  38207. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  38208. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  38209. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  38210. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  38211. var ColorPickerPropertyGridComponent = /** @class */ (function (_super) {
  38212. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ColorPickerPropertyGridComponent, _super);
  38213. function ColorPickerPropertyGridComponent(props) {
  38214. return _super.call(this, props) || this;
  38215. }
  38216. ColorPickerPropertyGridComponent.prototype.render = function () {
  38217. var colorPicker = this.props.colorPicker;
  38218. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  38219. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__["CommonControlPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, control: colorPicker, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38220. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "COLORPICKER" },
  38221. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Color", target: colorPicker, propertyName: "value", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  38222. };
  38223. return ColorPickerPropertyGridComponent;
  38224. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  38225. /***/ }),
  38226. /***/ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx":
  38227. /*!*********************************************************************************************!*\
  38228. !*** ./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx ***!
  38229. \*********************************************************************************************/
  38230. /*! exports provided: CommonControlPropertyGridComponent */
  38231. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38232. "use strict";
  38233. __webpack_require__.r(__webpack_exports__);
  38234. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CommonControlPropertyGridComponent", function() { return CommonControlPropertyGridComponent; });
  38235. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  38236. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  38237. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  38238. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  38239. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  38240. /* harmony import */ var babylonjs_gui_2D_controls_control__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babylonjs-gui/2D/controls/control */ "babylonjs-gui/2D/adtInstrumentation");
  38241. /* harmony import */ var babylonjs_gui_2D_controls_control__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babylonjs_gui_2D_controls_control__WEBPACK_IMPORTED_MODULE_4__);
  38242. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  38243. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  38244. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  38245. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  38246. var CommonControlPropertyGridComponent = /** @class */ (function (_super) {
  38247. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CommonControlPropertyGridComponent, _super);
  38248. function CommonControlPropertyGridComponent(props) {
  38249. return _super.call(this, props) || this;
  38250. }
  38251. CommonControlPropertyGridComponent.prototype.renderGridInformation = function () {
  38252. var control = this.props.control;
  38253. if (!control.parent) {
  38254. return null;
  38255. }
  38256. var gridParent = control.parent;
  38257. if (gridParent.rowCount === undefined) {
  38258. return null;
  38259. }
  38260. var grid = gridParent;
  38261. var childCellInfo = grid.getChildCellInfo(control);
  38262. if (childCellInfo === undefined) {
  38263. return null;
  38264. }
  38265. var cellInfos = childCellInfo.split(":");
  38266. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "GRID" },
  38267. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Row", value: cellInfos[0] }),
  38268. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Column", value: cellInfos[1] })));
  38269. };
  38270. CommonControlPropertyGridComponent.prototype.render = function () {
  38271. var control = this.props.control;
  38272. var horizontalOptions = [
  38273. { label: "Left", value: babylonjs_gui_2D_controls_control__WEBPACK_IMPORTED_MODULE_4__["Control"].HORIZONTAL_ALIGNMENT_LEFT },
  38274. { label: "Right", value: babylonjs_gui_2D_controls_control__WEBPACK_IMPORTED_MODULE_4__["Control"].HORIZONTAL_ALIGNMENT_RIGHT },
  38275. { label: "Center", value: babylonjs_gui_2D_controls_control__WEBPACK_IMPORTED_MODULE_4__["Control"].HORIZONTAL_ALIGNMENT_CENTER },
  38276. ];
  38277. var verticalOptions = [
  38278. { label: "Top", value: babylonjs_gui_2D_controls_control__WEBPACK_IMPORTED_MODULE_4__["Control"].VERTICAL_ALIGNMENT_TOP },
  38279. { label: "Bottom", value: babylonjs_gui_2D_controls_control__WEBPACK_IMPORTED_MODULE_4__["Control"].VERTICAL_ALIGNMENT_BOTTOM },
  38280. { label: "Center", value: babylonjs_gui_2D_controls_control__WEBPACK_IMPORTED_MODULE_4__["Control"].VERTICAL_ALIGNMENT_CENTER },
  38281. ];
  38282. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  38283. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "GENERAL" },
  38284. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Class", value: control.getClassName() }),
  38285. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Unique ID", value: control.uniqueId.toString() }),
  38286. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__["SliderLineComponent"], { label: "Alpha", target: control, propertyName: "alpha", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38287. control.color !== undefined &&
  38288. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Color", target: control, propertyName: "color", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38289. control.background !== undefined &&
  38290. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Background", target: control, propertyName: "background", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  38291. this.renderGridInformation(),
  38292. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "ALIGNMENT" },
  38293. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_8__["OptionsLineComponent"], { label: "Horizontal", options: horizontalOptions, target: control, propertyName: "horizontalAlignment", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38294. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_8__["OptionsLineComponent"], { label: "Vertical", options: verticalOptions, target: control, propertyName: "verticalAlignment", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  38295. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "POSITION" },
  38296. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Left", target: control, propertyName: "left", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38297. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Top", target: control, propertyName: "top", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38298. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Width", target: control, propertyName: "width", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38299. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Height", target: control, propertyName: "height", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38300. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Padding left", target: control, propertyName: "paddingLeft", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38301. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Padding top", target: control, propertyName: "paddingTop", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38302. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Padding right", target: control, propertyName: "paddingRight", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38303. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Padding bottom", target: control, propertyName: "paddingBottom", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  38304. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "TRANSFORMATION", closed: true },
  38305. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_6__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "ScaleX", target: control, propertyName: "scaleX", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38306. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_6__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "ScaleY", target: control, propertyName: "scaleY", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38307. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__["SliderLineComponent"], { label: "Rotation", target: control, propertyName: "rotation", minimum: 0, maximum: 2 * Math.PI, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38308. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_6__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Transform center X", target: control, propertyName: "transformCenterX", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38309. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_6__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Transform center Y", target: control, propertyName: "transformCenterY", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  38310. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "FONT", closed: true },
  38311. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Family", target: control, propertyName: "fontFamily", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38312. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Size", target: control, propertyName: "fontSize", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38313. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Weight", target: control, propertyName: "fontWeight", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38314. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Style", target: control, propertyName: "fontStyle", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  38315. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "SHADOWS", closed: true },
  38316. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Color", target: control, propertyName: "shadowColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38317. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_6__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Offset X", target: control, propertyName: "shadowOffsetX", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38318. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_6__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Offset Y", target: control, propertyName: "shadowOffsetY", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38319. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_6__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Blur", target: control, propertyName: "shadowBlur", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  38320. };
  38321. return CommonControlPropertyGridComponent;
  38322. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  38323. /***/ }),
  38324. /***/ "./components/actionTabs/tabs/propertyGrids/gui/controlPropertyGridComponent.tsx":
  38325. /*!***************************************************************************************!*\
  38326. !*** ./components/actionTabs/tabs/propertyGrids/gui/controlPropertyGridComponent.tsx ***!
  38327. \***************************************************************************************/
  38328. /*! exports provided: ControlPropertyGridComponent */
  38329. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38330. "use strict";
  38331. __webpack_require__.r(__webpack_exports__);
  38332. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ControlPropertyGridComponent", function() { return ControlPropertyGridComponent; });
  38333. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  38334. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  38335. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  38336. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  38337. var ControlPropertyGridComponent = /** @class */ (function (_super) {
  38338. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ControlPropertyGridComponent, _super);
  38339. function ControlPropertyGridComponent(props) {
  38340. return _super.call(this, props) || this;
  38341. }
  38342. ControlPropertyGridComponent.prototype.render = function () {
  38343. var control = this.props.control;
  38344. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  38345. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__["CommonControlPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, control: control, onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  38346. };
  38347. return ControlPropertyGridComponent;
  38348. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  38349. /***/ }),
  38350. /***/ "./components/actionTabs/tabs/propertyGrids/gui/ellipsePropertyGridComponent.tsx":
  38351. /*!***************************************************************************************!*\
  38352. !*** ./components/actionTabs/tabs/propertyGrids/gui/ellipsePropertyGridComponent.tsx ***!
  38353. \***************************************************************************************/
  38354. /*! exports provided: EllipsePropertyGridComponent */
  38355. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38356. "use strict";
  38357. __webpack_require__.r(__webpack_exports__);
  38358. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EllipsePropertyGridComponent", function() { return EllipsePropertyGridComponent; });
  38359. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  38360. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  38361. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  38362. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  38363. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  38364. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  38365. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  38366. var EllipsePropertyGridComponent = /** @class */ (function (_super) {
  38367. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(EllipsePropertyGridComponent, _super);
  38368. function EllipsePropertyGridComponent(props) {
  38369. return _super.call(this, props) || this;
  38370. }
  38371. EllipsePropertyGridComponent.prototype.render = function () {
  38372. var ellipse = this.props.ellipse;
  38373. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  38374. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__["CommonControlPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, control: ellipse, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38375. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "ELLIPSE" },
  38376. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Clip children", target: ellipse, propertyName: "clipChildren", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38377. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Thickness", target: ellipse, propertyName: "thickness", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  38378. };
  38379. return EllipsePropertyGridComponent;
  38380. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  38381. /***/ }),
  38382. /***/ "./components/actionTabs/tabs/propertyGrids/gui/gridPropertyGridComponent.tsx":
  38383. /*!************************************************************************************!*\
  38384. !*** ./components/actionTabs/tabs/propertyGrids/gui/gridPropertyGridComponent.tsx ***!
  38385. \************************************************************************************/
  38386. /*! exports provided: GridPropertyGridComponent */
  38387. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38388. "use strict";
  38389. __webpack_require__.r(__webpack_exports__);
  38390. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GridPropertyGridComponent", function() { return GridPropertyGridComponent; });
  38391. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  38392. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  38393. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  38394. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  38395. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  38396. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  38397. var GridPropertyGridComponent = /** @class */ (function (_super) {
  38398. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GridPropertyGridComponent, _super);
  38399. function GridPropertyGridComponent(props) {
  38400. return _super.call(this, props) || this;
  38401. }
  38402. GridPropertyGridComponent.prototype.renderRows = function () {
  38403. var grid = this.props.grid;
  38404. var rows = [];
  38405. for (var index = 0; index < grid.rowCount; index++) {
  38406. rows.push(grid.getRowDefinition(index));
  38407. }
  38408. return (rows.map(function (rd, i) {
  38409. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { key: "r" + i, label: "Row " + i, value: rd.toString(grid.host, 2), underline: i === grid.rowCount - 1 }));
  38410. }));
  38411. };
  38412. GridPropertyGridComponent.prototype.renderColumns = function () {
  38413. var grid = this.props.grid;
  38414. var cols = [];
  38415. for (var index = 0; index < grid.columnCount; index++) {
  38416. cols.push(grid.getColumnDefinition(index));
  38417. }
  38418. return (cols.map(function (cd, i) {
  38419. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { key: "c" + i, label: "Column " + i, value: cd.toString(grid.host, 2) }));
  38420. }));
  38421. };
  38422. GridPropertyGridComponent.prototype.render = function () {
  38423. var grid = this.props.grid;
  38424. var cols = [];
  38425. for (var index = 0; index < grid.rowCount; index++) {
  38426. cols.push(grid.getColumnDefinition(index));
  38427. }
  38428. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  38429. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__["CommonControlPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, control: grid, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38430. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "GRID" },
  38431. this.renderRows(),
  38432. this.renderColumns())));
  38433. };
  38434. return GridPropertyGridComponent;
  38435. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  38436. /***/ }),
  38437. /***/ "./components/actionTabs/tabs/propertyGrids/gui/imageBasedSliderPropertyGridComponent.tsx":
  38438. /*!************************************************************************************************!*\
  38439. !*** ./components/actionTabs/tabs/propertyGrids/gui/imageBasedSliderPropertyGridComponent.tsx ***!
  38440. \************************************************************************************************/
  38441. /*! exports provided: ImageBasedSliderPropertyGridComponent */
  38442. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38443. "use strict";
  38444. __webpack_require__.r(__webpack_exports__);
  38445. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ImageBasedSliderPropertyGridComponent", function() { return ImageBasedSliderPropertyGridComponent; });
  38446. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  38447. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  38448. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  38449. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  38450. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  38451. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  38452. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  38453. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  38454. var ImageBasedSliderPropertyGridComponent = /** @class */ (function (_super) {
  38455. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ImageBasedSliderPropertyGridComponent, _super);
  38456. function ImageBasedSliderPropertyGridComponent(props) {
  38457. return _super.call(this, props) || this;
  38458. }
  38459. ImageBasedSliderPropertyGridComponent.prototype.render = function () {
  38460. var imageBasedSlider = this.props.imageBasedSlider;
  38461. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  38462. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__["CommonControlPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, control: imageBasedSlider, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38463. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "IMAGE BASED SLIDER" },
  38464. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Display thumb", target: imageBasedSlider, propertyName: "displayThumb", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38465. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Vertical", target: imageBasedSlider, propertyName: "isVertical", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38466. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Thumb clamped", target: imageBasedSlider, propertyName: "isThumbClamped", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38467. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_6__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Bar offset", target: imageBasedSlider, propertyName: "barOffset", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38468. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_6__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Thumb width", target: imageBasedSlider, propertyName: "thumbWidth", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38469. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Minimum", target: imageBasedSlider, propertyName: "minimum", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38470. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Maximum", target: imageBasedSlider, propertyName: "maximum", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38471. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Value", target: imageBasedSlider, propertyName: "value", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  38472. };
  38473. return ImageBasedSliderPropertyGridComponent;
  38474. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  38475. /***/ }),
  38476. /***/ "./components/actionTabs/tabs/propertyGrids/gui/imagePropertyGridComponent.tsx":
  38477. /*!*************************************************************************************!*\
  38478. !*** ./components/actionTabs/tabs/propertyGrids/gui/imagePropertyGridComponent.tsx ***!
  38479. \*************************************************************************************/
  38480. /*! exports provided: ImagePropertyGridComponent */
  38481. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38482. "use strict";
  38483. __webpack_require__.r(__webpack_exports__);
  38484. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ImagePropertyGridComponent", function() { return ImagePropertyGridComponent; });
  38485. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  38486. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  38487. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  38488. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  38489. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  38490. /* harmony import */ var babylonjs_gui_2D_controls_image__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babylonjs-gui/2D/controls/image */ "babylonjs-gui/2D/adtInstrumentation");
  38491. /* harmony import */ var babylonjs_gui_2D_controls_image__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babylonjs_gui_2D_controls_image__WEBPACK_IMPORTED_MODULE_4__);
  38492. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  38493. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  38494. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  38495. var ImagePropertyGridComponent = /** @class */ (function (_super) {
  38496. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ImagePropertyGridComponent, _super);
  38497. function ImagePropertyGridComponent(props) {
  38498. return _super.call(this, props) || this;
  38499. }
  38500. ImagePropertyGridComponent.prototype.render = function () {
  38501. var _this = this;
  38502. var image = this.props.image;
  38503. var stretchOptions = [
  38504. { label: "None", value: babylonjs_gui_2D_controls_image__WEBPACK_IMPORTED_MODULE_4__["Image"].STRETCH_NONE },
  38505. { label: "Fill", value: babylonjs_gui_2D_controls_image__WEBPACK_IMPORTED_MODULE_4__["Image"].STRETCH_FILL },
  38506. { label: "Uniform", value: babylonjs_gui_2D_controls_image__WEBPACK_IMPORTED_MODULE_4__["Image"].STRETCH_UNIFORM },
  38507. { label: "Extend", value: babylonjs_gui_2D_controls_image__WEBPACK_IMPORTED_MODULE_4__["Image"].STRETCH_EXTEND },
  38508. { label: "NinePatch", value: babylonjs_gui_2D_controls_image__WEBPACK_IMPORTED_MODULE_4__["Image"].STRETCH_NINE_PATCH }
  38509. ];
  38510. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  38511. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__["CommonControlPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, control: image, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38512. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "IMAGE" },
  38513. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Source left", target: image, propertyName: "sourceLeft", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38514. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Source top", target: image, propertyName: "sourceTop", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38515. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Source width", target: image, propertyName: "sourceWidth", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38516. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Source height", target: image, propertyName: "sourceHeight", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38517. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Autoscale", target: image, propertyName: "autoScale", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38518. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_7__["OptionsLineComponent"], { label: "Stretch", options: stretchOptions, target: image, propertyName: "stretch", onPropertyChangedObservable: this.props.onPropertyChangedObservable, onSelect: function (value) { return _this.setState({ mode: value }); } })),
  38519. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "ANIMATION SHEET" },
  38520. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Cell Id", isInteger: true, target: image, propertyName: "cellId", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38521. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Cell width", target: image, propertyName: "cellWidth", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38522. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Cell height", target: image, propertyName: "cellHeight", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  38523. };
  38524. return ImagePropertyGridComponent;
  38525. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  38526. /***/ }),
  38527. /***/ "./components/actionTabs/tabs/propertyGrids/gui/inputTextPropertyGridComponent.tsx":
  38528. /*!*****************************************************************************************!*\
  38529. !*** ./components/actionTabs/tabs/propertyGrids/gui/inputTextPropertyGridComponent.tsx ***!
  38530. \*****************************************************************************************/
  38531. /*! exports provided: InputTextPropertyGridComponent */
  38532. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38533. "use strict";
  38534. __webpack_require__.r(__webpack_exports__);
  38535. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputTextPropertyGridComponent", function() { return InputTextPropertyGridComponent; });
  38536. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  38537. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  38538. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  38539. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  38540. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  38541. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  38542. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  38543. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  38544. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  38545. var InputTextPropertyGridComponent = /** @class */ (function (_super) {
  38546. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(InputTextPropertyGridComponent, _super);
  38547. function InputTextPropertyGridComponent(props) {
  38548. return _super.call(this, props) || this;
  38549. }
  38550. InputTextPropertyGridComponent.prototype.render = function () {
  38551. var inputText = this.props.inputText;
  38552. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  38553. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__["CommonControlPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, control: inputText, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38554. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "INPUTTEXT" },
  38555. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Text", target: inputText, propertyName: "text", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38556. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Prompt", target: inputText, propertyName: "promptMessage", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38557. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Max width", target: inputText, propertyName: "maxWidth", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38558. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Highlight color", target: inputText, propertyName: "textHighlightColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38559. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__["SliderLineComponent"], { label: "Highligher opacity", minimum: 0, maximum: 1, step: 0.01, target: inputText, propertyName: "highligherOpacity", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38560. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "On focus select all", target: inputText, propertyName: "onFocusSelectAll", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38561. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Focused background", target: inputText, propertyName: "focusedBackground", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38562. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Max width", target: inputText, propertyName: "maxWidth", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38563. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Margin", target: inputText, propertyName: "margin", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38564. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Auto stretch width", target: inputText, propertyName: "autoStretchWidth", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38565. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_7__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Thickness", target: inputText, propertyName: "thickness", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38566. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Placeholder text", target: inputText, propertyName: "placeholderText", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38567. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Placeholder color", target: inputText, propertyName: "placeholderColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  38568. };
  38569. return InputTextPropertyGridComponent;
  38570. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  38571. /***/ }),
  38572. /***/ "./components/actionTabs/tabs/propertyGrids/gui/linePropertyGridComponent.tsx":
  38573. /*!************************************************************************************!*\
  38574. !*** ./components/actionTabs/tabs/propertyGrids/gui/linePropertyGridComponent.tsx ***!
  38575. \************************************************************************************/
  38576. /*! exports provided: LinePropertyGridComponent */
  38577. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38578. "use strict";
  38579. __webpack_require__.r(__webpack_exports__);
  38580. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LinePropertyGridComponent", function() { return LinePropertyGridComponent; });
  38581. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  38582. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  38583. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  38584. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  38585. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  38586. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  38587. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  38588. var LinePropertyGridComponent = /** @class */ (function (_super) {
  38589. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LinePropertyGridComponent, _super);
  38590. function LinePropertyGridComponent(props) {
  38591. return _super.call(this, props) || this;
  38592. }
  38593. LinePropertyGridComponent.prototype.onDashChange = function (value) {
  38594. var line = this.props.line;
  38595. var split = value.split(",");
  38596. line.dash = [];
  38597. split.forEach(function (v) {
  38598. var int = parseInt(v);
  38599. if (isNaN(int)) {
  38600. return;
  38601. }
  38602. line.dash.push(int);
  38603. });
  38604. };
  38605. LinePropertyGridComponent.prototype.render = function () {
  38606. var _this = this;
  38607. var line = this.props.line;
  38608. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  38609. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__["CommonControlPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, control: line, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38610. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "LINE" },
  38611. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Line width", target: line, propertyName: "lineWidth", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38612. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "X1", target: line, propertyName: "x1", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38613. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Y1", target: line, propertyName: "y1", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38614. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "X2", target: line, propertyName: "x2", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38615. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Y2", target: line, propertyName: "y2", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38616. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Dash pattern", target: line, value: line.dash.join(","), onChange: function (newValue) { return _this.onDashChange(newValue); } }))));
  38617. };
  38618. return LinePropertyGridComponent;
  38619. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  38620. /***/ }),
  38621. /***/ "./components/actionTabs/tabs/propertyGrids/gui/radioButtonPropertyGridComponent.tsx":
  38622. /*!*******************************************************************************************!*\
  38623. !*** ./components/actionTabs/tabs/propertyGrids/gui/radioButtonPropertyGridComponent.tsx ***!
  38624. \*******************************************************************************************/
  38625. /*! exports provided: RadioButtonPropertyGridComponent */
  38626. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38627. "use strict";
  38628. __webpack_require__.r(__webpack_exports__);
  38629. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RadioButtonPropertyGridComponent", function() { return RadioButtonPropertyGridComponent; });
  38630. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  38631. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  38632. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  38633. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  38634. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  38635. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  38636. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  38637. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  38638. var RadioButtonPropertyGridComponent = /** @class */ (function (_super) {
  38639. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RadioButtonPropertyGridComponent, _super);
  38640. function RadioButtonPropertyGridComponent(props) {
  38641. return _super.call(this, props) || this;
  38642. }
  38643. RadioButtonPropertyGridComponent.prototype.render = function () {
  38644. var radioButton = this.props.radioButton;
  38645. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  38646. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__["CommonControlPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, control: radioButton, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38647. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "RADIO BUTTON" },
  38648. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Thickness", target: radioButton, propertyName: "thickness", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38649. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Check size ratio", target: radioButton, propertyName: "checkSizeRatio", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38650. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Group", target: radioButton, propertyName: "group", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38651. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Checked", target: radioButton, propertyName: "isChecked", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  38652. };
  38653. return RadioButtonPropertyGridComponent;
  38654. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  38655. /***/ }),
  38656. /***/ "./components/actionTabs/tabs/propertyGrids/gui/rectanglePropertyGridComponent.tsx":
  38657. /*!*****************************************************************************************!*\
  38658. !*** ./components/actionTabs/tabs/propertyGrids/gui/rectanglePropertyGridComponent.tsx ***!
  38659. \*****************************************************************************************/
  38660. /*! exports provided: RectanglePropertyGridComponent */
  38661. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38662. "use strict";
  38663. __webpack_require__.r(__webpack_exports__);
  38664. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RectanglePropertyGridComponent", function() { return RectanglePropertyGridComponent; });
  38665. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  38666. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  38667. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  38668. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  38669. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  38670. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  38671. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  38672. var RectanglePropertyGridComponent = /** @class */ (function (_super) {
  38673. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RectanglePropertyGridComponent, _super);
  38674. function RectanglePropertyGridComponent(props) {
  38675. return _super.call(this, props) || this;
  38676. }
  38677. RectanglePropertyGridComponent.prototype.render = function () {
  38678. var rectangle = this.props.rectangle;
  38679. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  38680. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__["CommonControlPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, control: rectangle, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38681. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "RECTANGLE" },
  38682. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Clip children", target: rectangle, propertyName: "clipChildren", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38683. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Thickness", target: rectangle, propertyName: "thickness", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38684. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Corner radius", target: rectangle, propertyName: "cornerRadius", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  38685. };
  38686. return RectanglePropertyGridComponent;
  38687. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  38688. /***/ }),
  38689. /***/ "./components/actionTabs/tabs/propertyGrids/gui/scrollViewerPropertyGridComponent.tsx":
  38690. /*!********************************************************************************************!*\
  38691. !*** ./components/actionTabs/tabs/propertyGrids/gui/scrollViewerPropertyGridComponent.tsx ***!
  38692. \********************************************************************************************/
  38693. /*! exports provided: ScrollViewerPropertyGridComponent */
  38694. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38695. "use strict";
  38696. __webpack_require__.r(__webpack_exports__);
  38697. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ScrollViewerPropertyGridComponent", function() { return ScrollViewerPropertyGridComponent; });
  38698. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  38699. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  38700. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  38701. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  38702. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  38703. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  38704. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  38705. var ScrollViewerPropertyGridComponent = /** @class */ (function (_super) {
  38706. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ScrollViewerPropertyGridComponent, _super);
  38707. function ScrollViewerPropertyGridComponent(props) {
  38708. return _super.call(this, props) || this;
  38709. }
  38710. ScrollViewerPropertyGridComponent.prototype.render = function () {
  38711. var scrollViewer = this.props.scrollViewer;
  38712. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  38713. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__["CommonControlPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, control: scrollViewer, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38714. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "RECTANGLE" },
  38715. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Thickness", target: scrollViewer, propertyName: "thickness", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38716. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Corner radius", target: scrollViewer, propertyName: "cornerRadius", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  38717. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "SCROLLVIEWER" },
  38718. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Bar size", target: scrollViewer, propertyName: "barSize", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38719. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Bar color", target: scrollViewer, propertyName: "barColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38720. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Bar background", target: scrollViewer, propertyName: "barBackground", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38721. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Wheel precision", target: scrollViewer, propertyName: "wheelPrecision", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  38722. };
  38723. return ScrollViewerPropertyGridComponent;
  38724. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  38725. /***/ }),
  38726. /***/ "./components/actionTabs/tabs/propertyGrids/gui/sliderPropertyGridComponent.tsx":
  38727. /*!**************************************************************************************!*\
  38728. !*** ./components/actionTabs/tabs/propertyGrids/gui/sliderPropertyGridComponent.tsx ***!
  38729. \**************************************************************************************/
  38730. /*! exports provided: SliderPropertyGridComponent */
  38731. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38732. "use strict";
  38733. __webpack_require__.r(__webpack_exports__);
  38734. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SliderPropertyGridComponent", function() { return SliderPropertyGridComponent; });
  38735. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  38736. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  38737. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  38738. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  38739. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  38740. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  38741. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  38742. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  38743. var SliderPropertyGridComponent = /** @class */ (function (_super) {
  38744. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SliderPropertyGridComponent, _super);
  38745. function SliderPropertyGridComponent(props) {
  38746. return _super.call(this, props) || this;
  38747. }
  38748. SliderPropertyGridComponent.prototype.render = function () {
  38749. var slider = this.props.slider;
  38750. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  38751. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__["CommonControlPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, control: slider, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38752. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "SLIDER" },
  38753. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_6__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Border color", target: slider, propertyName: "borderColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38754. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Display thumb", target: slider, propertyName: "displayThumb", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38755. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Thumb circle", target: slider, propertyName: "isThumbCircle", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38756. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Vertical", target: slider, propertyName: "isVertical", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38757. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Thumb clamped", target: slider, propertyName: "isThumbClamped", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38758. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_6__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Bar offset", target: slider, propertyName: "barOffset", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38759. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_6__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Thumb width", target: slider, propertyName: "thumbWidth", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38760. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Minimum", target: slider, propertyName: "minimum", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38761. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Maximum", target: slider, propertyName: "maximum", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38762. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Value", target: slider, propertyName: "value", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  38763. };
  38764. return SliderPropertyGridComponent;
  38765. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  38766. /***/ }),
  38767. /***/ "./components/actionTabs/tabs/propertyGrids/gui/stackPanelPropertyGridComponent.tsx":
  38768. /*!******************************************************************************************!*\
  38769. !*** ./components/actionTabs/tabs/propertyGrids/gui/stackPanelPropertyGridComponent.tsx ***!
  38770. \******************************************************************************************/
  38771. /*! exports provided: StackPanelPropertyGridComponent */
  38772. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38773. "use strict";
  38774. __webpack_require__.r(__webpack_exports__);
  38775. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StackPanelPropertyGridComponent", function() { return StackPanelPropertyGridComponent; });
  38776. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  38777. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  38778. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  38779. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  38780. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  38781. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  38782. var StackPanelPropertyGridComponent = /** @class */ (function (_super) {
  38783. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StackPanelPropertyGridComponent, _super);
  38784. function StackPanelPropertyGridComponent(props) {
  38785. return _super.call(this, props) || this;
  38786. }
  38787. StackPanelPropertyGridComponent.prototype.render = function () {
  38788. var stackPanel = this.props.stackPanel;
  38789. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  38790. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__["CommonControlPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, control: stackPanel, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38791. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "STACKPANEL" },
  38792. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Clip children", target: stackPanel, propertyName: "clipChildren", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38793. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Vertical", target: stackPanel, propertyName: "isVertical", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  38794. };
  38795. return StackPanelPropertyGridComponent;
  38796. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  38797. /***/ }),
  38798. /***/ "./components/actionTabs/tabs/propertyGrids/gui/textBlockPropertyGridComponent.tsx":
  38799. /*!*****************************************************************************************!*\
  38800. !*** ./components/actionTabs/tabs/propertyGrids/gui/textBlockPropertyGridComponent.tsx ***!
  38801. \*****************************************************************************************/
  38802. /*! exports provided: TextBlockPropertyGridComponent */
  38803. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38804. "use strict";
  38805. __webpack_require__.r(__webpack_exports__);
  38806. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextBlockPropertyGridComponent", function() { return TextBlockPropertyGridComponent; });
  38807. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  38808. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  38809. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  38810. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  38811. /* harmony import */ var babylonjs_gui_2D_controls_textBlock__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs-gui/2D/controls/textBlock */ "babylonjs-gui/2D/adtInstrumentation");
  38812. /* harmony import */ var babylonjs_gui_2D_controls_textBlock__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babylonjs_gui_2D_controls_textBlock__WEBPACK_IMPORTED_MODULE_3__);
  38813. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  38814. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  38815. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  38816. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  38817. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  38818. var TextBlockPropertyGridComponent = /** @class */ (function (_super) {
  38819. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TextBlockPropertyGridComponent, _super);
  38820. function TextBlockPropertyGridComponent(props) {
  38821. return _super.call(this, props) || this;
  38822. }
  38823. TextBlockPropertyGridComponent.prototype.render = function () {
  38824. var textBlock = this.props.textBlock;
  38825. var horizontalOptions = [
  38826. { label: "Left", value: babylonjs_gui_2D_controls_textBlock__WEBPACK_IMPORTED_MODULE_3__["Control"].HORIZONTAL_ALIGNMENT_LEFT },
  38827. { label: "Right", value: babylonjs_gui_2D_controls_textBlock__WEBPACK_IMPORTED_MODULE_3__["Control"].HORIZONTAL_ALIGNMENT_RIGHT },
  38828. { label: "Center", value: babylonjs_gui_2D_controls_textBlock__WEBPACK_IMPORTED_MODULE_3__["Control"].HORIZONTAL_ALIGNMENT_CENTER },
  38829. ];
  38830. var verticalOptions = [
  38831. { label: "Top", value: babylonjs_gui_2D_controls_textBlock__WEBPACK_IMPORTED_MODULE_3__["Control"].VERTICAL_ALIGNMENT_TOP },
  38832. { label: "Bottom", value: babylonjs_gui_2D_controls_textBlock__WEBPACK_IMPORTED_MODULE_3__["Control"].VERTICAL_ALIGNMENT_BOTTOM },
  38833. { label: "Center", value: babylonjs_gui_2D_controls_textBlock__WEBPACK_IMPORTED_MODULE_3__["Control"].VERTICAL_ALIGNMENT_CENTER },
  38834. ];
  38835. var wrappingOptions = [
  38836. { label: "Clip", value: babylonjs_gui_2D_controls_textBlock__WEBPACK_IMPORTED_MODULE_3__["TextWrapping"].Clip },
  38837. { label: "Ellipsis", value: babylonjs_gui_2D_controls_textBlock__WEBPACK_IMPORTED_MODULE_3__["TextWrapping"].Ellipsis },
  38838. { label: "Word wrap", value: babylonjs_gui_2D_controls_textBlock__WEBPACK_IMPORTED_MODULE_3__["TextWrapping"].WordWrap },
  38839. ];
  38840. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  38841. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__["CommonControlPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, control: textBlock, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38842. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "TEXTBLOCK" },
  38843. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Text", target: textBlock, propertyName: "text", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38844. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_6__["OptionsLineComponent"], { label: "Horizontal text alignment", options: horizontalOptions, target: textBlock, propertyName: "textHorizontalAlignment", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38845. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_6__["OptionsLineComponent"], { label: "Vertical text alignment", options: verticalOptions, target: textBlock, propertyName: "textVerticalAlignment", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38846. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_7__["CheckBoxLineComponent"], { label: "Resize to fit", target: textBlock, propertyName: "resizeToFit", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38847. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_6__["OptionsLineComponent"], { label: "Wrapping", options: wrappingOptions, target: textBlock, propertyName: "textWrapping", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38848. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Line spacing", target: textBlock, propertyName: "lineSpacing", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  38849. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "OUTLINE" },
  38850. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Outline width", target: textBlock, propertyName: "outlineWidth", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38851. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Outline color", target: textBlock, propertyName: "outlineColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  38852. };
  38853. return TextBlockPropertyGridComponent;
  38854. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  38855. /***/ }),
  38856. /***/ "./components/actionTabs/tabs/propertyGrids/lights/commonLightPropertyGridComponent.tsx":
  38857. /*!**********************************************************************************************!*\
  38858. !*** ./components/actionTabs/tabs/propertyGrids/lights/commonLightPropertyGridComponent.tsx ***!
  38859. \**********************************************************************************************/
  38860. /*! exports provided: CommonLightPropertyGridComponent */
  38861. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38862. "use strict";
  38863. __webpack_require__.r(__webpack_exports__);
  38864. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CommonLightPropertyGridComponent", function() { return CommonLightPropertyGridComponent; });
  38865. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  38866. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  38867. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  38868. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  38869. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  38870. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  38871. /* harmony import */ var _customPropertyGridComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../customPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/customPropertyGridComponent.tsx");
  38872. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  38873. var CommonLightPropertyGridComponent = /** @class */ (function (_super) {
  38874. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CommonLightPropertyGridComponent, _super);
  38875. function CommonLightPropertyGridComponent(props) {
  38876. return _super.call(this, props) || this;
  38877. }
  38878. CommonLightPropertyGridComponent.prototype.render = function () {
  38879. var _this = this;
  38880. var light = this.props.light;
  38881. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  38882. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_customPropertyGridComponent__WEBPACK_IMPORTED_MODULE_5__["CustomPropertyGridComponent"], { globalState: this.props.globalState, target: light, lockObject: this.props.lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38883. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "GENERAL" },
  38884. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "ID", value: light.id }),
  38885. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Unique ID", value: light.uniqueId.toString() }),
  38886. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Class", value: light.getClassName() }),
  38887. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_3__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Intensity", target: light, propertyName: "intensity", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38888. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_6__["ButtonLineComponent"], { label: "Dispose", onClick: function () {
  38889. light.dispose();
  38890. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  38891. } }))));
  38892. };
  38893. return CommonLightPropertyGridComponent;
  38894. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  38895. /***/ }),
  38896. /***/ "./components/actionTabs/tabs/propertyGrids/lights/commonShadowLightPropertyGridComponent.tsx":
  38897. /*!****************************************************************************************************!*\
  38898. !*** ./components/actionTabs/tabs/propertyGrids/lights/commonShadowLightPropertyGridComponent.tsx ***!
  38899. \****************************************************************************************************/
  38900. /*! exports provided: CommonShadowLightPropertyGridComponent */
  38901. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38902. "use strict";
  38903. __webpack_require__.r(__webpack_exports__);
  38904. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CommonShadowLightPropertyGridComponent", function() { return CommonShadowLightPropertyGridComponent; });
  38905. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  38906. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  38907. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  38908. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  38909. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  38910. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  38911. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  38912. /* harmony import */ var babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! babylonjs/Lights/Shadows/shadowGenerator */ "babylonjs/Misc/observable");
  38913. /* harmony import */ var babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__);
  38914. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  38915. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  38916. var CommonShadowLightPropertyGridComponent = /** @class */ (function (_super) {
  38917. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CommonShadowLightPropertyGridComponent, _super);
  38918. function CommonShadowLightPropertyGridComponent(props) {
  38919. var _this = _super.call(this, props) || this;
  38920. _this._internals = {
  38921. generatorType: 0,
  38922. mapSize: 1024,
  38923. };
  38924. return _this;
  38925. }
  38926. CommonShadowLightPropertyGridComponent.prototype.createShadowGenerator = function () {
  38927. var light = this.props.light;
  38928. var scene = light.getScene();
  38929. var internals = this._internals;
  38930. var generator = internals.generatorType === 0 ? new babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"](internals.mapSize, light) : new babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["CascadedShadowGenerator"](internals.mapSize, light);
  38931. scene.meshes.forEach(function (m) {
  38932. generator.addShadowCaster(m);
  38933. m.receiveShadows = true;
  38934. });
  38935. this.forceUpdate();
  38936. };
  38937. CommonShadowLightPropertyGridComponent.prototype.disposeShadowGenerator = function () {
  38938. var _a;
  38939. var light = this.props.light;
  38940. (_a = light.getShadowGenerator()) === null || _a === void 0 ? void 0 : _a.dispose();
  38941. this.forceUpdate();
  38942. };
  38943. CommonShadowLightPropertyGridComponent.prototype.render = function () {
  38944. var _this = this;
  38945. var light = this.props.light;
  38946. var internals = this._internals;
  38947. var generator = light.getShadowGenerator() || null;
  38948. var csmGenerator = generator instanceof babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["CascadedShadowGenerator"];
  38949. var camera = light.getScene().activeCamera;
  38950. var typeGeneratorOptions = [
  38951. { label: "Shadow Generator", value: 0 }
  38952. ];
  38953. if (light instanceof babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["DirectionalLight"]) {
  38954. typeGeneratorOptions.push({ label: "Cascaded Shadow Generator", value: 1 });
  38955. }
  38956. var mapSizeOptions = [
  38957. { label: "2048x2048", value: 2048 },
  38958. { label: "1024x1024", value: 1024 },
  38959. { label: "512x512", value: 512 },
  38960. { label: "256x256", value: 256 },
  38961. ];
  38962. var blurModeOptions;
  38963. if (generator instanceof babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["CascadedShadowGenerator"]) {
  38964. blurModeOptions = [
  38965. { label: "None", value: babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_NONE },
  38966. { label: "PCF", value: babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_PCF },
  38967. { label: "PCSS", value: babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_PCSS },
  38968. ];
  38969. }
  38970. else {
  38971. blurModeOptions = [
  38972. { label: "None", value: babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_NONE },
  38973. { label: "PCF", value: babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_PCF },
  38974. { label: "PCSS", value: babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_PCSS },
  38975. { label: "Poisson", value: babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_POISSONSAMPLING },
  38976. { label: "Exponential", value: babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_EXPONENTIALSHADOWMAP },
  38977. { label: "Blurred exponential", value: babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_BLUREXPONENTIALSHADOWMAP },
  38978. { label: "Close exponential", value: babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_CLOSEEXPONENTIALSHADOWMAP },
  38979. { label: "Blurred close exponential", value: babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_BLURCLOSEEXPONENTIALSHADOWMAP },
  38980. ];
  38981. }
  38982. var filteringQualityOptions = [
  38983. { label: "Low", value: babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].QUALITY_LOW },
  38984. { label: "Medium", value: babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].QUALITY_MEDIUM },
  38985. { label: "High", value: babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].QUALITY_HIGH },
  38986. ];
  38987. var numCascadesOptions = [
  38988. { label: "2", value: 2 },
  38989. { label: "3", value: 3 },
  38990. { label: "4", value: 4 },
  38991. ];
  38992. var near = camera ? camera.minZ : 0, far = camera ? camera.maxZ : 0;
  38993. var filter = generator ? generator.filter : 0;
  38994. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  38995. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "SHADOWS" },
  38996. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Shadows enabled", target: light, propertyName: "shadowEnabled", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38997. !csmGenerator && react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  38998. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Shadows near plane", target: light, propertyName: "shadowMinZ", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  38999. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Shadows far plane", target: light, propertyName: "shadowMaxZ", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))),
  39000. generator == null &&
  39001. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "SHADOW GENERATOR" },
  39002. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__["OptionsLineComponent"], { label: "Type", options: typeGeneratorOptions, target: internals, propertyName: "generatorType" }),
  39003. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__["OptionsLineComponent"], { label: "Map size", options: mapSizeOptions, target: internals, propertyName: "mapSize" }),
  39004. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_8__["ButtonLineComponent"], { label: "Create generator", onClick: function () { return _this.createShadowGenerator(); } })),
  39005. generator !== null &&
  39006. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "SHADOW GENERATOR" },
  39007. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_8__["ButtonLineComponent"], { label: "Dispose generator", onClick: function () { return _this.disposeShadowGenerator(); } }),
  39008. csmGenerator && react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  39009. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__["OptionsLineComponent"], { label: "Num cascades", options: numCascadesOptions, target: generator, propertyName: "numCascades", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39010. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Debug mode", target: generator, propertyName: "debug", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39011. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Stabilize cascades", target: generator, propertyName: "stabilizeCascades", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39012. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Lambda", minimum: 0, maximum: 1.0, step: 0.01, target: generator, propertyName: "lambda", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39013. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Cascade blend", minimum: 0, maximum: 1.0, step: 0.01, target: generator, propertyName: "cascadeBlendPercentage", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39014. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Depth clamp", target: generator, propertyName: "depthClamp", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39015. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Auto-Calc depth bounds", target: generator, propertyName: "autoCalcDepthBounds", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39016. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Shadow MaxZ", minimum: near, maximum: far, step: 0.5, target: generator, propertyName: "shadowMaxZ", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  39017. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, digits: 4, step: "0.0001", label: "Bias", target: generator, propertyName: "bias", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39018. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Normal bias", target: generator, propertyName: "normalBias", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39019. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Darkness", target: generator, minimum: 0, maximum: 1, step: 0.01, propertyName: "darkness", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39020. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Allow transparent shadows", target: generator, propertyName: "transparencyShadow", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39021. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__["OptionsLineComponent"], { label: "Filter", options: blurModeOptions, onSelect: function () {
  39022. _this.forceUpdate();
  39023. }, target: generator, propertyName: "filter", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39024. (filter === babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_PCF || filter === babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_PCSS) &&
  39025. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__["OptionsLineComponent"], { label: "Filtering quality", options: filteringQualityOptions, onSelect: function () {
  39026. _this.forceUpdate();
  39027. }, target: generator, propertyName: "filteringQuality", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39028. (filter === babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_PCSS) &&
  39029. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Penumbra ratio", minimum: 0, maximum: 0.5, step: 0.001, target: generator, propertyName: "contactHardeningLightSizeUVRatio", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39030. !csmGenerator && (filter === babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_BLUREXPONENTIALSHADOWMAP || filter === babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_BLURCLOSEEXPONENTIALSHADOWMAP) &&
  39031. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Use kernel blur", target: generator, propertyName: "useKernelBlur", onValueChanged: function () { return _this.forceUpdate(); }, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39032. (generator instanceof babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"]) && (filter === babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_BLUREXPONENTIALSHADOWMAP || filter === babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_BLURCLOSEEXPONENTIALSHADOWMAP) &&
  39033. !generator.useKernelBlur &&
  39034. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Blur box offset", target: generator, propertyName: "blurBoxOffset", minimum: 1, maximum: 64, step: 1, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39035. (generator instanceof babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"]) && (filter === babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_BLUREXPONENTIALSHADOWMAP || filter === babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_BLURCLOSEEXPONENTIALSHADOWMAP) &&
  39036. generator.useKernelBlur &&
  39037. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Blur kernel", target: generator, propertyName: "blurKernel", minimum: 1, maximum: 64, step: 1, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39038. (generator instanceof babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"]) && (filter === babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_BLUREXPONENTIALSHADOWMAP || filter === babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_EXPONENTIALSHADOWMAP) &&
  39039. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Depth scale", target: generator, propertyName: "depthScale", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39040. (generator instanceof babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"]) && (filter === babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_BLUREXPONENTIALSHADOWMAP || filter === babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_EXPONENTIALSHADOWMAP) &&
  39041. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Blur scale", target: generator, propertyName: "blurScale", minimum: 1, maximum: 4, step: 1, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39042. csmGenerator && (filter === babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_PCSS) &&
  39043. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Penumbra darkness", minimum: 0, maximum: 1.0, step: 0.01, target: generator, propertyName: "penumbraDarkness", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  39044. };
  39045. return CommonShadowLightPropertyGridComponent;
  39046. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  39047. /***/ }),
  39048. /***/ "./components/actionTabs/tabs/propertyGrids/lights/directionalLightPropertyGridComponent.tsx":
  39049. /*!***************************************************************************************************!*\
  39050. !*** ./components/actionTabs/tabs/propertyGrids/lights/directionalLightPropertyGridComponent.tsx ***!
  39051. \***************************************************************************************************/
  39052. /*! exports provided: DirectionalLightPropertyGridComponent */
  39053. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  39054. "use strict";
  39055. __webpack_require__.r(__webpack_exports__);
  39056. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DirectionalLightPropertyGridComponent", function() { return DirectionalLightPropertyGridComponent; });
  39057. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  39058. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  39059. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  39060. /* harmony import */ var _commonLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonLightPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/lights/commonLightPropertyGridComponent.tsx");
  39061. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  39062. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  39063. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  39064. /* harmony import */ var _commonShadowLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commonShadowLightPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/lights/commonShadowLightPropertyGridComponent.tsx");
  39065. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  39066. /* harmony import */ var babylonjs_Lights_Shadows_cascadedShadowGenerator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! babylonjs/Lights/Shadows/cascadedShadowGenerator */ "babylonjs/Misc/observable");
  39067. /* harmony import */ var babylonjs_Lights_Shadows_cascadedShadowGenerator__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Lights_Shadows_cascadedShadowGenerator__WEBPACK_IMPORTED_MODULE_8__);
  39068. var DirectionalLightPropertyGridComponent = /** @class */ (function (_super) {
  39069. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DirectionalLightPropertyGridComponent, _super);
  39070. function DirectionalLightPropertyGridComponent(props) {
  39071. return _super.call(this, props) || this;
  39072. }
  39073. DirectionalLightPropertyGridComponent.prototype.render = function () {
  39074. var light = this.props.light;
  39075. var generator = light.getShadowGenerator() || null;
  39076. var hideAutoCalcShadowZBounds = generator instanceof babylonjs_Lights_Shadows_cascadedShadowGenerator__WEBPACK_IMPORTED_MODULE_8__["CascadedShadowGenerator"];
  39077. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  39078. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__["CommonLightPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, light: light, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39079. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "SETUP" },
  39080. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Diffuse", target: light, propertyName: "diffuse", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39081. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Specular", target: light, propertyName: "specular", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39082. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_5__["Vector3LineComponent"], { label: "Position", target: light, propertyName: "position", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39083. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_5__["Vector3LineComponent"], { label: "Direction", target: light, propertyName: "direction", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39084. !hideAutoCalcShadowZBounds &&
  39085. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_7__["CheckBoxLineComponent"], { label: "Auto Calc Shadow ZBounds", target: light, propertyName: "autoCalcShadowZBounds", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  39086. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonShadowLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_6__["CommonShadowLightPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, light: light, onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  39087. };
  39088. return DirectionalLightPropertyGridComponent;
  39089. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  39090. /***/ }),
  39091. /***/ "./components/actionTabs/tabs/propertyGrids/lights/hemisphericLightPropertyGridComponent.tsx":
  39092. /*!***************************************************************************************************!*\
  39093. !*** ./components/actionTabs/tabs/propertyGrids/lights/hemisphericLightPropertyGridComponent.tsx ***!
  39094. \***************************************************************************************************/
  39095. /*! exports provided: HemisphericLightPropertyGridComponent */
  39096. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  39097. "use strict";
  39098. __webpack_require__.r(__webpack_exports__);
  39099. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HemisphericLightPropertyGridComponent", function() { return HemisphericLightPropertyGridComponent; });
  39100. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  39101. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  39102. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  39103. /* harmony import */ var _commonLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonLightPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/lights/commonLightPropertyGridComponent.tsx");
  39104. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  39105. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  39106. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  39107. var HemisphericLightPropertyGridComponent = /** @class */ (function (_super) {
  39108. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(HemisphericLightPropertyGridComponent, _super);
  39109. function HemisphericLightPropertyGridComponent(props) {
  39110. return _super.call(this, props) || this;
  39111. }
  39112. HemisphericLightPropertyGridComponent.prototype.render = function () {
  39113. var light = this.props.light;
  39114. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  39115. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__["CommonLightPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, light: light, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39116. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "SETUP" },
  39117. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Diffuse", target: light, propertyName: "diffuse", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39118. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Ground", target: light, propertyName: "groundColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39119. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_5__["Vector3LineComponent"], { label: "Direction", target: light, propertyName: "direction", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  39120. };
  39121. return HemisphericLightPropertyGridComponent;
  39122. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  39123. /***/ }),
  39124. /***/ "./components/actionTabs/tabs/propertyGrids/lights/pointLightPropertyGridComponent.tsx":
  39125. /*!*********************************************************************************************!*\
  39126. !*** ./components/actionTabs/tabs/propertyGrids/lights/pointLightPropertyGridComponent.tsx ***!
  39127. \*********************************************************************************************/
  39128. /*! exports provided: PointLightPropertyGridComponent */
  39129. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  39130. "use strict";
  39131. __webpack_require__.r(__webpack_exports__);
  39132. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PointLightPropertyGridComponent", function() { return PointLightPropertyGridComponent; });
  39133. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  39134. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  39135. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  39136. /* harmony import */ var _commonLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonLightPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/lights/commonLightPropertyGridComponent.tsx");
  39137. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  39138. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  39139. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  39140. /* harmony import */ var _commonShadowLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commonShadowLightPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/lights/commonShadowLightPropertyGridComponent.tsx");
  39141. var PointLightPropertyGridComponent = /** @class */ (function (_super) {
  39142. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PointLightPropertyGridComponent, _super);
  39143. function PointLightPropertyGridComponent(props) {
  39144. return _super.call(this, props) || this;
  39145. }
  39146. PointLightPropertyGridComponent.prototype.render = function () {
  39147. var light = this.props.light;
  39148. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  39149. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__["CommonLightPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, light: light, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39150. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "SETUP" },
  39151. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Diffuse", target: light, propertyName: "diffuse", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39152. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Specular", target: light, propertyName: "specular", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39153. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_5__["Vector3LineComponent"], { label: "Position", target: light, propertyName: "position", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  39154. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonShadowLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_6__["CommonShadowLightPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, light: light, onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  39155. };
  39156. return PointLightPropertyGridComponent;
  39157. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  39158. /***/ }),
  39159. /***/ "./components/actionTabs/tabs/propertyGrids/lights/spotLightPropertyGridComponent.tsx":
  39160. /*!********************************************************************************************!*\
  39161. !*** ./components/actionTabs/tabs/propertyGrids/lights/spotLightPropertyGridComponent.tsx ***!
  39162. \********************************************************************************************/
  39163. /*! exports provided: SpotLightPropertyGridComponent */
  39164. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  39165. "use strict";
  39166. __webpack_require__.r(__webpack_exports__);
  39167. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpotLightPropertyGridComponent", function() { return SpotLightPropertyGridComponent; });
  39168. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  39169. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  39170. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  39171. /* harmony import */ var _commonLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonLightPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/lights/commonLightPropertyGridComponent.tsx");
  39172. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  39173. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  39174. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  39175. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  39176. /* harmony import */ var _commonShadowLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commonShadowLightPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/lights/commonShadowLightPropertyGridComponent.tsx");
  39177. var SpotLightPropertyGridComponent = /** @class */ (function (_super) {
  39178. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SpotLightPropertyGridComponent, _super);
  39179. function SpotLightPropertyGridComponent(props) {
  39180. return _super.call(this, props) || this;
  39181. }
  39182. SpotLightPropertyGridComponent.prototype.render = function () {
  39183. var light = this.props.light;
  39184. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  39185. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__["CommonLightPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, light: light, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39186. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "SETUP" },
  39187. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Diffuse", target: light, propertyName: "diffuse", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39188. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Specular", target: light, propertyName: "specular", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39189. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_5__["Vector3LineComponent"], { label: "Position", target: light, propertyName: "position", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39190. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_5__["Vector3LineComponent"], { label: "Direction", target: light, propertyName: "direction", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39191. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_6__["FloatLineComponent"], { lockObject: this.props.lockObject, useEuler: this.props.globalState.onlyUseEulers, label: "Angle", target: light, propertyName: "angle", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39192. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_6__["FloatLineComponent"], { lockObject: this.props.lockObject, useEuler: this.props.globalState.onlyUseEulers, label: "Inner angle", target: light, propertyName: "innerAngle", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39193. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_6__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Exponent", target: light, propertyName: "exponent", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  39194. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonShadowLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_7__["CommonShadowLightPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, light: light, onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  39195. };
  39196. return SpotLightPropertyGridComponent;
  39197. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  39198. /***/ }),
  39199. /***/ "./components/actionTabs/tabs/propertyGrids/lockObject.ts":
  39200. /*!****************************************************************!*\
  39201. !*** ./components/actionTabs/tabs/propertyGrids/lockObject.ts ***!
  39202. \****************************************************************/
  39203. /*! exports provided: LockObject */
  39204. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  39205. "use strict";
  39206. __webpack_require__.r(__webpack_exports__);
  39207. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LockObject", function() { return LockObject; });
  39208. /**
  39209. * Class used to provide lock mechanism
  39210. */
  39211. var LockObject = /** @class */ (function () {
  39212. function LockObject() {
  39213. /**
  39214. * Gets or set if the lock is engaged
  39215. */
  39216. this.lock = false;
  39217. }
  39218. return LockObject;
  39219. }());
  39220. /***/ }),
  39221. /***/ "./components/actionTabs/tabs/propertyGrids/materials/backgroundMaterialPropertyGridComponent.tsx":
  39222. /*!********************************************************************************************************!*\
  39223. !*** ./components/actionTabs/tabs/propertyGrids/materials/backgroundMaterialPropertyGridComponent.tsx ***!
  39224. \********************************************************************************************************/
  39225. /*! exports provided: BackgroundMaterialPropertyGridComponent */
  39226. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  39227. "use strict";
  39228. __webpack_require__.r(__webpack_exports__);
  39229. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BackgroundMaterialPropertyGridComponent", function() { return BackgroundMaterialPropertyGridComponent; });
  39230. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  39231. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  39232. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  39233. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/observable");
  39234. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__);
  39235. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  39236. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  39237. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  39238. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  39239. /* harmony import */ var _commonMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commonMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/commonMaterialPropertyGridComponent.tsx");
  39240. /* harmony import */ var _lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/textureLinkLineComponent */ "./components/actionTabs/lines/textureLinkLineComponent.tsx");
  39241. var BackgroundMaterialPropertyGridComponent = /** @class */ (function (_super) {
  39242. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BackgroundMaterialPropertyGridComponent, _super);
  39243. function BackgroundMaterialPropertyGridComponent(props) {
  39244. var _this = _super.call(this, props) || this;
  39245. _this._onDebugSelectionChangeObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["Observable"]();
  39246. return _this;
  39247. }
  39248. BackgroundMaterialPropertyGridComponent.prototype.renderTextures = function () {
  39249. var material = this.props.material;
  39250. var onDebugSelectionChangeObservable = this._onDebugSelectionChangeObservable;
  39251. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "TEXTURES" },
  39252. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_8__["TextureLinkLineComponent"], { label: "Diffuse", texture: material.diffuseTexture, material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39253. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_8__["TextureLinkLineComponent"], { label: "Reflection", texture: material.reflectionTexture, material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39254. material.reflectionTexture &&
  39255. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_6__["SliderLineComponent"], { label: "Reflection blur", target: material, propertyName: "reflectionBlur", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  39256. };
  39257. BackgroundMaterialPropertyGridComponent.prototype.render = function () {
  39258. var material = this.props.material;
  39259. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  39260. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_7__["CommonMaterialPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, material: material, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39261. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "LIGHTING & COLORS" },
  39262. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Primary", target: material, propertyName: "primaryColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39263. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_6__["SliderLineComponent"], { label: "Shadow level", target: material, propertyName: "primaryColorShadowLevel", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39264. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_6__["SliderLineComponent"], { label: "Highlight level", target: material, propertyName: "primaryColorHighlightLevel", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  39265. this.renderTextures(),
  39266. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "RENDERING", closed: true },
  39267. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Enable noise", target: material, propertyName: "enableNoise", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39268. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Opacity fresnel", target: material, propertyName: "opacityFresnel", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39269. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Reflection fresnel", target: material, propertyName: "reflectionFresnel", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39270. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_6__["SliderLineComponent"], { label: "Reflection amount", target: material, propertyName: "reflectionAmount", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  39271. };
  39272. return BackgroundMaterialPropertyGridComponent;
  39273. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  39274. /***/ }),
  39275. /***/ "./components/actionTabs/tabs/propertyGrids/materials/commonMaterialPropertyGridComponent.tsx":
  39276. /*!****************************************************************************************************!*\
  39277. !*** ./components/actionTabs/tabs/propertyGrids/materials/commonMaterialPropertyGridComponent.tsx ***!
  39278. \****************************************************************************************************/
  39279. /*! exports provided: CommonMaterialPropertyGridComponent */
  39280. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  39281. "use strict";
  39282. __webpack_require__.r(__webpack_exports__);
  39283. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CommonMaterialPropertyGridComponent", function() { return CommonMaterialPropertyGridComponent; });
  39284. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  39285. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  39286. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  39287. /* harmony import */ var babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Materials/material */ "babylonjs/Misc/observable");
  39288. /* harmony import */ var babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__);
  39289. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  39290. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  39291. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  39292. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  39293. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  39294. /* harmony import */ var _customPropertyGridComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../customPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/customPropertyGridComponent.tsx");
  39295. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  39296. var CommonMaterialPropertyGridComponent = /** @class */ (function (_super) {
  39297. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CommonMaterialPropertyGridComponent, _super);
  39298. function CommonMaterialPropertyGridComponent(props) {
  39299. return _super.call(this, props) || this;
  39300. }
  39301. CommonMaterialPropertyGridComponent.prototype.render = function () {
  39302. var _this = this;
  39303. var _a;
  39304. var material = this.props.material;
  39305. material.depthFunction = (_a = material.depthFunction, (_a !== null && _a !== void 0 ? _a : 0));
  39306. var orientationOptions = [
  39307. { label: "Clockwise", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Material"].ClockWiseSideOrientation },
  39308. { label: "Counterclockwise", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Material"].CounterClockWiseSideOrientation }
  39309. ];
  39310. var transparencyModeOptions = [
  39311. { label: "<Not Defined>", value: _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_7__["Null_Value"] },
  39312. { label: "Opaque", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["PBRMaterial"].PBRMATERIAL_OPAQUE },
  39313. { label: "Alpha test", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["PBRMaterial"].PBRMATERIAL_ALPHATEST },
  39314. { label: "Alpha blend", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["PBRMaterial"].PBRMATERIAL_ALPHABLEND },
  39315. { label: "Alpha blend and test", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["PBRMaterial"].PBRMATERIAL_ALPHATESTANDBLEND },
  39316. ];
  39317. var alphaModeOptions = [
  39318. { label: "Combine", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Constants"].ALPHA_COMBINE },
  39319. { label: "One one", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Constants"].ALPHA_ONEONE },
  39320. { label: "Add", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Constants"].ALPHA_ADD },
  39321. { label: "Subtract", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Constants"].ALPHA_SUBTRACT },
  39322. { label: "Multiply", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Constants"].ALPHA_MULTIPLY },
  39323. { label: "Maximized", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Constants"].ALPHA_MAXIMIZED },
  39324. { label: "Pre-multiplied", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Constants"].ALPHA_PREMULTIPLIED },
  39325. ];
  39326. var depthfunctionOptions = [
  39327. { label: "<Engine Default>", value: 0 },
  39328. { label: "Never", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Engine"].NEVER },
  39329. { label: "Always", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Engine"].ALWAYS },
  39330. { label: "Equal", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Engine"].EQUAL },
  39331. { label: "Less", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Engine"].LESS },
  39332. { label: "Less or equal", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Engine"].LEQUAL },
  39333. { label: "Greater", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Engine"].GREATER },
  39334. { label: "Greater or equal", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Engine"].GEQUAL },
  39335. { label: "Not equal", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Engine"].NOTEQUAL },
  39336. ];
  39337. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  39338. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_customPropertyGridComponent__WEBPACK_IMPORTED_MODULE_8__["CustomPropertyGridComponent"], { globalState: this.props.globalState, target: material, lockObject: this.props.lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39339. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_5__["LineContainerComponent"], { globalState: this.props.globalState, title: "GENERAL" },
  39340. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_6__["TextLineComponent"], { label: "ID", value: material.id }),
  39341. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_6__["TextLineComponent"], { label: "Unique ID", value: material.uniqueId.toString() }),
  39342. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_6__["TextLineComponent"], { label: "Class", value: material.getClassName() }),
  39343. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Backface culling", target: material, propertyName: "backFaceCulling", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39344. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_7__["OptionsLineComponent"], { label: "Orientation", options: orientationOptions, target: material, propertyName: "sideOrientation", onPropertyChangedObservable: this.props.onPropertyChangedObservable, onSelect: function (value) { return _this.setState({ mode: value }); } }),
  39345. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Disable lighting", target: material, propertyName: "disableLighting", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39346. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Disable depth write", target: material, propertyName: "disableDepthWrite", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39347. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_7__["OptionsLineComponent"], { label: "Depth function", options: depthfunctionOptions, target: material, propertyName: "depthFunction", onPropertyChangedObservable: this.props.onPropertyChangedObservable, onSelect: function (value) { return _this.setState({ depthFunction: value }); } }),
  39348. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Need depth pre-pass", target: material, propertyName: "needDepthPrePass", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39349. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Wireframe", target: material, propertyName: "wireframe", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39350. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Point cloud", target: material, propertyName: "pointsCloud", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39351. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_4__["SliderLineComponent"], { label: "Point size", target: material, propertyName: "pointSize", minimum: 0, maximum: 100, step: 0.1, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39352. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_4__["SliderLineComponent"], { label: "Z-offset", target: material, propertyName: "zOffset", minimum: -10, maximum: 10, step: 0.1, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39353. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_9__["ButtonLineComponent"], { label: "Dispose", onClick: function () {
  39354. material.dispose();
  39355. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  39356. } })),
  39357. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_5__["LineContainerComponent"], { globalState: this.props.globalState, title: "TRANSPARENCY" },
  39358. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_4__["SliderLineComponent"], { label: "Alpha", target: material, propertyName: "alpha", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39359. material.transparencyMode !== undefined &&
  39360. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_7__["OptionsLineComponent"], { allowNullValue: true, label: "Transparency mode", options: transparencyModeOptions, target: material, propertyName: "transparencyMode", onPropertyChangedObservable: this.props.onPropertyChangedObservable, onSelect: function (value) { return _this.setState({ transparencyMode: value }); } }),
  39361. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_7__["OptionsLineComponent"], { label: "Alpha mode", options: alphaModeOptions, target: material, propertyName: "alphaMode", onPropertyChangedObservable: this.props.onPropertyChangedObservable, onSelect: function (value) { return _this.setState({ alphaMode: value }); } }),
  39362. material.useAlphaFromDiffuseTexture !== undefined &&
  39363. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Use alpha from diffuse texture", target: material, propertyName: "useAlphaFromDiffuseTexture", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39364. material.useAlphaFromAlbedoTexture !== undefined &&
  39365. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Use alpha from albedo texture", target: material, propertyName: "useAlphaFromAlbedoTexture", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39366. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Separate culling pass", target: material, propertyName: "separateCullingPass", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  39367. };
  39368. return CommonMaterialPropertyGridComponent;
  39369. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  39370. /***/ }),
  39371. /***/ "./components/actionTabs/tabs/propertyGrids/materials/materialPropertyGridComponent.tsx":
  39372. /*!**********************************************************************************************!*\
  39373. !*** ./components/actionTabs/tabs/propertyGrids/materials/materialPropertyGridComponent.tsx ***!
  39374. \**********************************************************************************************/
  39375. /*! exports provided: MaterialPropertyGridComponent */
  39376. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  39377. "use strict";
  39378. __webpack_require__.r(__webpack_exports__);
  39379. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MaterialPropertyGridComponent", function() { return MaterialPropertyGridComponent; });
  39380. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  39381. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  39382. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  39383. /* harmony import */ var _commonMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/commonMaterialPropertyGridComponent.tsx");
  39384. var MaterialPropertyGridComponent = /** @class */ (function (_super) {
  39385. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MaterialPropertyGridComponent, _super);
  39386. function MaterialPropertyGridComponent(props) {
  39387. return _super.call(this, props) || this;
  39388. }
  39389. MaterialPropertyGridComponent.prototype.render = function () {
  39390. var material = this.props.material;
  39391. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  39392. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__["CommonMaterialPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, material: material, onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  39393. };
  39394. return MaterialPropertyGridComponent;
  39395. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  39396. /***/ }),
  39397. /***/ "./components/actionTabs/tabs/propertyGrids/materials/multiMaterialPropertyGridComponent.tsx":
  39398. /*!***************************************************************************************************!*\
  39399. !*** ./components/actionTabs/tabs/propertyGrids/materials/multiMaterialPropertyGridComponent.tsx ***!
  39400. \***************************************************************************************************/
  39401. /*! exports provided: MultiMaterialPropertyGridComponent */
  39402. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  39403. "use strict";
  39404. __webpack_require__.r(__webpack_exports__);
  39405. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MultiMaterialPropertyGridComponent", function() { return MultiMaterialPropertyGridComponent; });
  39406. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  39407. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  39408. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  39409. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  39410. /* harmony import */ var _commonMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commonMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/commonMaterialPropertyGridComponent.tsx");
  39411. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  39412. var MultiMaterialPropertyGridComponent = /** @class */ (function (_super) {
  39413. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MultiMaterialPropertyGridComponent, _super);
  39414. function MultiMaterialPropertyGridComponent(props) {
  39415. return _super.call(this, props) || this;
  39416. }
  39417. MultiMaterialPropertyGridComponent.prototype.onMaterialLink = function (mat) {
  39418. if (!this.props.onSelectionChangedObservable) {
  39419. return;
  39420. }
  39421. this.props.onSelectionChangedObservable.notifyObservers(mat);
  39422. };
  39423. MultiMaterialPropertyGridComponent.prototype.renderChildMaterial = function () {
  39424. var _this = this;
  39425. var material = this.props.material;
  39426. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "CHILDREN" }, material.subMaterials.map(function (mat, i) {
  39427. if (mat) {
  39428. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { key: "Material #" + i, label: "Material #" + i, value: mat.name, onLink: function () { return _this.onMaterialLink(mat); } }));
  39429. }
  39430. return null;
  39431. })));
  39432. };
  39433. MultiMaterialPropertyGridComponent.prototype.render = function () {
  39434. var material = this.props.material;
  39435. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  39436. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_3__["CommonMaterialPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, material: material, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39437. this.renderChildMaterial()));
  39438. };
  39439. return MultiMaterialPropertyGridComponent;
  39440. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  39441. /***/ }),
  39442. /***/ "./components/actionTabs/tabs/propertyGrids/materials/nodeMaterialPropertyGridComponent.tsx":
  39443. /*!**************************************************************************************************!*\
  39444. !*** ./components/actionTabs/tabs/propertyGrids/materials/nodeMaterialPropertyGridComponent.tsx ***!
  39445. \**************************************************************************************************/
  39446. /*! exports provided: NodeMaterialPropertyGridComponent */
  39447. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  39448. "use strict";
  39449. __webpack_require__.r(__webpack_exports__);
  39450. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeMaterialPropertyGridComponent", function() { return NodeMaterialPropertyGridComponent; });
  39451. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  39452. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  39453. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  39454. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/observable");
  39455. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__);
  39456. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  39457. /* harmony import */ var _commonMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commonMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/commonMaterialPropertyGridComponent.tsx");
  39458. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  39459. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  39460. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  39461. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  39462. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  39463. /* harmony import */ var _lines_vector4LineComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../lines/vector4LineComponent */ "./components/actionTabs/lines/vector4LineComponent.tsx");
  39464. /* harmony import */ var _lines_vector2LineComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../lines/vector2LineComponent */ "./components/actionTabs/lines/vector2LineComponent.tsx");
  39465. /* harmony import */ var _lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../lines/textureLinkLineComponent */ "./components/actionTabs/lines/textureLinkLineComponent.tsx");
  39466. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  39467. /* harmony import */ var _lines_color4LineComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../lines/color4LineComponent */ "./components/actionTabs/lines/color4LineComponent.tsx");
  39468. var NodeMaterialPropertyGridComponent = /** @class */ (function (_super) {
  39469. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(NodeMaterialPropertyGridComponent, _super);
  39470. function NodeMaterialPropertyGridComponent(props) {
  39471. var _this = _super.call(this, props) || this;
  39472. _this._onDebugSelectionChangeObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["Observable"]();
  39473. return _this;
  39474. }
  39475. NodeMaterialPropertyGridComponent.prototype.edit = function () {
  39476. this.props.material.edit();
  39477. };
  39478. NodeMaterialPropertyGridComponent.prototype.renderTextures = function () {
  39479. var _this = this;
  39480. var material = this.props.material;
  39481. var onDebugSelectionChangeObservable = this._onDebugSelectionChangeObservable;
  39482. var textureBlocks = material.getTextureBlocks();
  39483. if (!textureBlocks || textureBlocks.length === 0) {
  39484. return null;
  39485. }
  39486. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "TEXTURES" }, textureBlocks.map(function (textureBlock, i) {
  39487. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_12__["TextureLinkLineComponent"], { label: textureBlock.name, key: "nodematText" + i, texture: textureBlock.texture, material: material, onTextureCreated: function (texture) { return textureBlock.texture = texture; }, onSelectionChangedObservable: _this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }));
  39488. })));
  39489. };
  39490. NodeMaterialPropertyGridComponent.prototype.renderInputBlock = function (block) {
  39491. switch (block.type) {
  39492. case babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Float:
  39493. var cantDisplaySlider = (isNaN(block.min) || isNaN(block.max) || block.min === block.max);
  39494. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: block.name },
  39495. block.isBoolean &&
  39496. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { key: block.name, label: block.name, target: block, propertyName: "value", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39497. !block.isBoolean && cantDisplaySlider &&
  39498. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_7__["FloatLineComponent"], { key: block.name, lockObject: this.props.lockObject, label: block.name, target: block, propertyName: "value", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39499. !block.isBoolean && !cantDisplaySlider &&
  39500. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_13__["SliderLineComponent"], { key: block.name, label: block.name, target: block, propertyName: "value", step: (block.max - block.min) / 100.0, minimum: block.min, maximum: block.max, onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  39501. case babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Color3:
  39502. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_8__["Color3LineComponent"], { key: block.name, label: block.name, target: block, propertyName: "value", onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  39503. case babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Color4:
  39504. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color4LineComponent__WEBPACK_IMPORTED_MODULE_14__["Color4LineComponent"], { key: block.name, label: block.name, target: block, propertyName: "value", onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  39505. case babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  39506. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector2LineComponent__WEBPACK_IMPORTED_MODULE_11__["Vector2LineComponent"], { key: block.name, label: block.name, target: block, propertyName: "value", onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  39507. case babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  39508. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_9__["Vector3LineComponent"], { key: block.name, label: block.name, target: block, propertyName: "value", onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  39509. case babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  39510. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector4LineComponent__WEBPACK_IMPORTED_MODULE_10__["Vector4LineComponent"], { key: block.name, label: block.name, target: block, propertyName: "value", onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  39511. }
  39512. return null;
  39513. };
  39514. NodeMaterialPropertyGridComponent.prototype.renderInputValues = function () {
  39515. var _this = this;
  39516. var configurableInputBlocks = this.props.material.getInputBlocks().filter(function (block) {
  39517. return block.visibleInInspector && block.isUniform && !block.isSystemValue;
  39518. }).sort(function (a, b) {
  39519. return a.name.localeCompare(b.name);
  39520. });
  39521. if (configurableInputBlocks.length === 0) {
  39522. return null;
  39523. }
  39524. var namedGroups = [];
  39525. configurableInputBlocks.forEach(function (block) {
  39526. if (!block.groupInInspector) {
  39527. return;
  39528. }
  39529. if (namedGroups.indexOf(block.groupInInspector) === -1) {
  39530. namedGroups.push(block.groupInInspector);
  39531. }
  39532. });
  39533. namedGroups.sort();
  39534. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  39535. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "INPUTS" }, configurableInputBlocks.filter(function (block) { return !block.groupInInspector; }).map(function (block) {
  39536. return _this.renderInputBlock(block);
  39537. })),
  39538. namedGroups.map(function (name, i) {
  39539. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { key: "inputValue" + i, globalState: _this.props.globalState, title: name.toUpperCase() }, configurableInputBlocks.filter(function (block) { return block.groupInInspector === name; }).map(function (block) {
  39540. return _this.renderInputBlock(block);
  39541. })));
  39542. })));
  39543. };
  39544. NodeMaterialPropertyGridComponent.prototype.render = function () {
  39545. var _this = this;
  39546. var material = this.props.material;
  39547. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  39548. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_4__["CommonMaterialPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, material: material, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39549. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "CONFIGURATION" },
  39550. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Ignore alpha", target: material, propertyName: "ignoreAlpha", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39551. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_5__["ButtonLineComponent"], { label: "Node Material Editor", onClick: function () { return _this.edit(); } })),
  39552. this.renderInputValues(),
  39553. this.renderTextures()));
  39554. };
  39555. return NodeMaterialPropertyGridComponent;
  39556. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  39557. /***/ }),
  39558. /***/ "./components/actionTabs/tabs/propertyGrids/materials/pbrMaterialPropertyGridComponent.tsx":
  39559. /*!*************************************************************************************************!*\
  39560. !*** ./components/actionTabs/tabs/propertyGrids/materials/pbrMaterialPropertyGridComponent.tsx ***!
  39561. \*************************************************************************************************/
  39562. /*! exports provided: PBRMaterialPropertyGridComponent */
  39563. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  39564. "use strict";
  39565. __webpack_require__.r(__webpack_exports__);
  39566. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PBRMaterialPropertyGridComponent", function() { return PBRMaterialPropertyGridComponent; });
  39567. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  39568. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  39569. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  39570. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/observable");
  39571. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__);
  39572. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  39573. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  39574. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  39575. /* harmony import */ var _lines_vector2LineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/vector2LineComponent */ "./components/actionTabs/lines/vector2LineComponent.tsx");
  39576. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  39577. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  39578. /* harmony import */ var _commonMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./commonMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/commonMaterialPropertyGridComponent.tsx");
  39579. /* harmony import */ var _lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../lines/textureLinkLineComponent */ "./components/actionTabs/lines/textureLinkLineComponent.tsx");
  39580. var PBRMaterialPropertyGridComponent = /** @class */ (function (_super) {
  39581. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PBRMaterialPropertyGridComponent, _super);
  39582. function PBRMaterialPropertyGridComponent(props) {
  39583. var _this = _super.call(this, props) || this;
  39584. _this._onDebugSelectionChangeObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["Observable"]();
  39585. return _this;
  39586. }
  39587. PBRMaterialPropertyGridComponent.prototype.switchAmbientMode = function (state) {
  39588. this.props.material.debugMode = state ? 21 : 0;
  39589. };
  39590. PBRMaterialPropertyGridComponent.prototype.switchMetallicMode = function (state) {
  39591. this.props.material.debugMode = state ? 62 : 0;
  39592. };
  39593. PBRMaterialPropertyGridComponent.prototype.switchRoughnessMode = function (state) {
  39594. this.props.material.debugMode = state ? 63 : 0;
  39595. };
  39596. PBRMaterialPropertyGridComponent.prototype.renderTextures = function (onDebugSelectionChangeObservable) {
  39597. var _this = this;
  39598. var material = this.props.material;
  39599. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "CHANNELS" },
  39600. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextureLinkLineComponent"], { label: "Albedo", texture: material.albedoTexture, propertyName: "albedoTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39601. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextureLinkLineComponent"], { customDebugAction: function (state) { return _this.switchMetallicMode(state); }, label: "Metallic", texture: material.metallicTexture, propertyName: "metallicTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39602. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextureLinkLineComponent"], { customDebugAction: function (state) { return _this.switchRoughnessMode(state); }, label: "Roughness", texture: material.metallicTexture, propertyName: "metallicTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39603. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextureLinkLineComponent"], { label: "Reflection", texture: material.reflectionTexture, propertyName: "reflectionTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39604. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextureLinkLineComponent"], { label: "Refraction", texture: material.refractionTexture, propertyName: "refractionTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39605. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextureLinkLineComponent"], { label: "Micro-surface", texture: material.microSurfaceTexture, propertyName: "microSurfaceTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39606. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextureLinkLineComponent"], { label: "Bump", texture: material.bumpTexture, propertyName: "bumpTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39607. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextureLinkLineComponent"], { label: "Emissive", texture: material.emissiveTexture, propertyName: "emissiveTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39608. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextureLinkLineComponent"], { label: "Opacity", texture: material.opacityTexture, propertyName: "opacityTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39609. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextureLinkLineComponent"], { customDebugAction: function (state) { return _this.switchAmbientMode(state); }, label: "Ambient", texture: material.ambientTexture, propertyName: "ambientTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39610. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextureLinkLineComponent"], { label: "Lightmap", texture: material.lightmapTexture, propertyName: "lightmapTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39611. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Use lightmap as shadowmap", target: material, propertyName: "useLightmapAsShadowmap ", onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  39612. };
  39613. PBRMaterialPropertyGridComponent.prototype.render = function () {
  39614. var _this = this;
  39615. var _a, _b, _c;
  39616. var material = this.props.material;
  39617. var debugMode = [
  39618. { label: "None", value: 0 },
  39619. // Geometry
  39620. { label: "Normalized position", value: 1 },
  39621. { label: "Normals", value: 2 },
  39622. { label: "Tangents", value: 3 },
  39623. { label: "Bitangents", value: 4 },
  39624. { label: "Bump Normals", value: 5 },
  39625. { label: "UV1", value: 6 },
  39626. { label: "UV2", value: 7 },
  39627. { label: "ClearCoat Normals", value: 8 },
  39628. { label: "ClearCoat Tangents", value: 9 },
  39629. { label: "ClearCoat Bitangents", value: 10 },
  39630. { label: "Anisotropic Normals", value: 11 },
  39631. { label: "Anisotropic Tangents", value: 12 },
  39632. { label: "Anisotropic Bitangents", value: 13 },
  39633. // Maps
  39634. { label: "Albdeo Map", value: 20 },
  39635. { label: "Ambient Map", value: 21 },
  39636. { label: "Opacity Map", value: 22 },
  39637. { label: "Emissive Map", value: 23 },
  39638. { label: "Light Map", value: 24 },
  39639. { label: "Metallic Map", value: 25 },
  39640. { label: "Reflectivity Map", value: 26 },
  39641. { label: "ClearCoat Map", value: 27 },
  39642. { label: "ClearCoat Tint Map", value: 28 },
  39643. { label: "Sheen Map", value: 29 },
  39644. { label: "Anisotropic Map", value: 30 },
  39645. { label: "Thickness Map", value: 31 },
  39646. // Env
  39647. { label: "Env Refraction", value: 40 },
  39648. { label: "Env Reflection", value: 41 },
  39649. { label: "Env Clear Coat", value: 42 },
  39650. // Lighting
  39651. { label: "Direct Diffuse", value: 50 },
  39652. { label: "Direct Specular", value: 51 },
  39653. { label: "Direct Clear Coat", value: 52 },
  39654. { label: "Direct Sheen", value: 53 },
  39655. { label: "Env Irradiance", value: 54 },
  39656. // Lighting Params
  39657. { label: "Surface Albedo", value: 60 },
  39658. { label: "Reflectance 0", value: 61 },
  39659. { label: "Metallic", value: 62 },
  39660. { label: "Metallic F0", value: 71 },
  39661. { label: "Roughness", value: 63 },
  39662. { label: "AlphaG", value: 64 },
  39663. { label: "NdotV", value: 65 },
  39664. { label: "ClearCoat Color", value: 66 },
  39665. { label: "ClearCoat Roughness", value: 67 },
  39666. { label: "ClearCoat NdotV", value: 68 },
  39667. { label: "Transmittance", value: 69 },
  39668. { label: "Refraction Transmittance", value: 70 },
  39669. // Misc
  39670. { label: "SEO", value: 80 },
  39671. { label: "EHO", value: 81 },
  39672. { label: "Energy Factor", value: 82 },
  39673. { label: "Specular Reflectance", value: 83 },
  39674. { label: "Clear Coat Reflectance", value: 84 },
  39675. { label: "Sheen Reflectance", value: 85 },
  39676. { label: "Luminance Over Alpha", value: 86 },
  39677. { label: "Alpha", value: 87 },
  39678. ];
  39679. material.sheen._useRoughness = (_a = material.sheen._useRoughness, (_a !== null && _a !== void 0 ? _a : material.sheen.roughness !== null));
  39680. material.sheen.roughness = (_c = (_b = material.sheen.roughness, (_b !== null && _b !== void 0 ? _b : material.sheen._saveRoughness)), (_c !== null && _c !== void 0 ? _c : 0));
  39681. if (!material.sheen._useRoughness) {
  39682. material.sheen._saveRoughness = material.sheen.roughness;
  39683. material.sheen.roughness = null;
  39684. }
  39685. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  39686. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_9__["CommonMaterialPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, material: material, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39687. this.renderTextures(this._onDebugSelectionChangeObservable),
  39688. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "LIGHTING & COLORS" },
  39689. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Albedo", target: material, propertyName: "albedoColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable, isLinear: true }),
  39690. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Reflectivity", target: material, propertyName: "reflectivityColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable, isLinear: true }),
  39691. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Micro-surface", target: material, propertyName: "microSurface", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39692. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Emissive", target: material, propertyName: "emissiveColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable, isLinear: true }),
  39693. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Ambient", target: material, propertyName: "ambientColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable, isLinear: true }),
  39694. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Use physical light falloff", target: material, propertyName: "usePhysicalLightFalloff", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  39695. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "METALLIC WORKFLOW" },
  39696. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Metallic", target: material, propertyName: "metallic", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39697. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Metallic F0", target: material, propertyName: "metallicF0Factor", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39698. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Metallic F0 From Map", target: material, propertyName: "useMetallicF0FactorFromMetallicTexture", onValueChanged: function () { return _this.forceUpdate(); }, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39699. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Roughness", target: material, propertyName: "roughness", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  39700. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "CLEAR COAT" },
  39701. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Enabled", target: material.clearCoat, propertyName: "isEnabled", onValueChanged: function () { return _this.forceUpdate(); }, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39702. material.clearCoat.isEnabled &&
  39703. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "fragment" },
  39704. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Intensity", target: material.clearCoat, propertyName: "intensity", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39705. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Roughness", target: material.clearCoat, propertyName: "roughness", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39706. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "IOR", target: material.clearCoat, propertyName: "indexOfRefraction", minimum: 1.0, maximum: 3, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39707. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextureLinkLineComponent"], { label: "Texture", texture: material.clearCoat.texture, material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: this._onDebugSelectionChangeObservable }),
  39708. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextureLinkLineComponent"], { label: "Bump", texture: material.clearCoat.bumpTexture, material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: this._onDebugSelectionChangeObservable }),
  39709. material.clearCoat.bumpTexture &&
  39710. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Bump strength", target: material.clearCoat.bumpTexture, propertyName: "level", minimum: 0, maximum: 2, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39711. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Tint", target: material.clearCoat, propertyName: "isTintEnabled", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39712. material.clearCoat.isEnabled && material.clearCoat.isTintEnabled &&
  39713. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Tint Color", target: material.clearCoat, propertyName: "tintColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable, isLinear: true }),
  39714. material.clearCoat.isEnabled && material.clearCoat.isTintEnabled &&
  39715. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "At Distance", target: material.clearCoat, propertyName: "tintColorAtDistance", minimum: 0, maximum: 20, step: 0.1, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39716. material.clearCoat.isEnabled && material.clearCoat.isTintEnabled &&
  39717. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Tint Thickness", target: material.clearCoat, propertyName: "tintThickness", minimum: 0, maximum: 20, step: 0.1, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39718. material.clearCoat.isEnabled && material.clearCoat.isTintEnabled &&
  39719. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextureLinkLineComponent"], { label: "Tint Texture", texture: material.clearCoat.tintTexture, material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: this._onDebugSelectionChangeObservable }))),
  39720. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "ANISOTROPIC" },
  39721. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Enabled", target: material.anisotropy, propertyName: "isEnabled", onValueChanged: function () { return _this.forceUpdate(); }, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39722. material.anisotropy.isEnabled &&
  39723. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "fragment" },
  39724. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Intensity", target: material.anisotropy, propertyName: "intensity", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39725. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector2LineComponent__WEBPACK_IMPORTED_MODULE_6__["Vector2LineComponent"], { label: "Direction", target: material.anisotropy, propertyName: "direction", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39726. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextureLinkLineComponent"], { label: "Texture", texture: material.anisotropy.texture, material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: this._onDebugSelectionChangeObservable }))),
  39727. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "SHEEN" },
  39728. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Enabled", target: material.sheen, propertyName: "isEnabled", onValueChanged: function () { return _this.forceUpdate(); }, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39729. material.sheen.isEnabled &&
  39730. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "fragment" },
  39731. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Link to Albedo", target: material.sheen, propertyName: "linkSheenWithAlbedo", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39732. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Intensity", target: material.sheen, propertyName: "intensity", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39733. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Color", target: material.sheen, propertyName: "color", onPropertyChangedObservable: this.props.onPropertyChangedObservable, isLinear: true }),
  39734. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextureLinkLineComponent"], { label: "Texture", texture: material.sheen.texture, material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: this._onDebugSelectionChangeObservable }),
  39735. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Use roughness", target: material.sheen, propertyName: "_useRoughness" }),
  39736. material.sheen._useRoughness &&
  39737. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Roughness", target: material.sheen, propertyName: "roughness", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39738. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Albedo scaling", target: material.sheen, propertyName: "albedoScaling", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))),
  39739. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "SUBSURFACE" },
  39740. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextureLinkLineComponent"], { label: "Thickness", texture: material.subSurface.thicknessTexture, material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: this._onDebugSelectionChangeObservable }),
  39741. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Min Thickness", target: material.subSurface, propertyName: "minimumThickness", minimum: 0, maximum: 10, step: 0.1, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39742. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Max Thickness", target: material.subSurface, propertyName: "maximumThickness", minimum: 0, maximum: 10, step: 0.1, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39743. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Mask From Thickness", target: material.subSurface, propertyName: "useMaskFromThicknessTexture", onValueChanged: function () { return _this.forceUpdate(); }, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39744. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Tint Color", target: material.subSurface, propertyName: "tintColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable, isLinear: true }),
  39745. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Refraction Enabled", target: material.subSurface, propertyName: "isRefractionEnabled", onValueChanged: function () { return _this.forceUpdate(); }, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39746. material.subSurface.isRefractionEnabled &&
  39747. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "fragment" },
  39748. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Intensity", target: material.subSurface, propertyName: "refractionIntensity", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39749. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Index of Refraction", target: material.subSurface, propertyName: "indexOfRefraction", minimum: 1, maximum: 2, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39750. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Tint at Distance", target: material.subSurface, propertyName: "tintColorAtDistance", minimum: 0, maximum: 10, step: 0.1, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39751. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Link refraction with transparency", target: material.subSurface, propertyName: "linkRefractionWithTransparency", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  39752. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Translucency Enabled", target: material.subSurface, propertyName: "isTranslucencyEnabled", onValueChanged: function () { return _this.forceUpdate(); }, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39753. material.subSurface.isTranslucencyEnabled &&
  39754. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "fragment" },
  39755. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Intensity", target: material.subSurface, propertyName: "translucencyIntensity", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39756. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Diffusion Distance", target: material.subSurface, propertyName: "diffusionDistance", onPropertyChangedObservable: this.props.onPropertyChangedObservable, isLinear: true }))),
  39757. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "LEVELS", closed: true },
  39758. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Environment", target: material, propertyName: "environmentIntensity", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39759. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Specular", target: material, propertyName: "specularIntensity", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39760. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Emissive", target: material, propertyName: "emissiveIntensity", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39761. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Direct", target: material, propertyName: "directIntensity", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39762. material.bumpTexture &&
  39763. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Bump strength", target: material.bumpTexture, propertyName: "level", minimum: 0, maximum: 2, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39764. material.ambientTexture &&
  39765. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Ambient strength", target: material, propertyName: "ambientTextureStrength", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39766. material.reflectionTexture &&
  39767. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Reflection strength", target: material.reflectionTexture, propertyName: "level", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  39768. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "RENDERING", closed: true },
  39769. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Alpha from albedo", target: material, propertyName: "useAlphaFromAlbedoTexture", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39770. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Ambient in grayscale", target: material, propertyName: "useAmbientInGrayScale", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39771. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Radiance over alpha", target: material, propertyName: "useRadianceOverAlpha", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39772. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Micro-surface from ref. map alpha", target: material, propertyName: "useMicroSurfaceFromReflectivityMapAlpha", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39773. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Specular over alpha", target: material, propertyName: "useSpecularOverAlpha", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39774. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Specular anti-aliasing", target: material, propertyName: "enableSpecularAntiAliasing", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  39775. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "NORMAL MAP", closed: true },
  39776. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Invert X axis", target: material, propertyName: "invertNormalMapX", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39777. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Invert Y axis", target: material, propertyName: "invertNormalMapY", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  39778. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "ADVANCED", closed: true },
  39779. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Energy Conservation", target: material.brdf, propertyName: "useEnergyConservation", onValueChanged: function () { return _this.forceUpdate(); }, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39780. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Spherical Harmonics", target: material.brdf, propertyName: "useSphericalHarmonics", onValueChanged: function () { return _this.forceUpdate(); }, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39781. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Radiance occlusion", target: material, propertyName: "useRadianceOcclusion", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39782. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Horizon occlusion ", target: material, propertyName: "useHorizonOcclusion", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39783. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Unlit", target: material, propertyName: "unlit", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  39784. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "DEBUG", closed: true },
  39785. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_8__["OptionsLineComponent"], { label: "Debug mode", options: debugMode, target: material, propertyName: "debugMode" }),
  39786. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Split position", target: material, propertyName: "debugLimit", minimum: -1, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39787. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Output factor", target: material, propertyName: "debugFactor", minimum: 0, maximum: 5, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  39788. };
  39789. return PBRMaterialPropertyGridComponent;
  39790. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  39791. /***/ }),
  39792. /***/ "./components/actionTabs/tabs/propertyGrids/materials/pbrMetallicRoughnessMaterialPropertyGridComponent.tsx":
  39793. /*!******************************************************************************************************************!*\
  39794. !*** ./components/actionTabs/tabs/propertyGrids/materials/pbrMetallicRoughnessMaterialPropertyGridComponent.tsx ***!
  39795. \******************************************************************************************************************/
  39796. /*! exports provided: PBRMetallicRoughnessMaterialPropertyGridComponent */
  39797. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  39798. "use strict";
  39799. __webpack_require__.r(__webpack_exports__);
  39800. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PBRMetallicRoughnessMaterialPropertyGridComponent", function() { return PBRMetallicRoughnessMaterialPropertyGridComponent; });
  39801. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  39802. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  39803. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  39804. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/observable");
  39805. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__);
  39806. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  39807. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  39808. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  39809. /* harmony import */ var _commonMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commonMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/commonMaterialPropertyGridComponent.tsx");
  39810. /* harmony import */ var _lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/textureLinkLineComponent */ "./components/actionTabs/lines/textureLinkLineComponent.tsx");
  39811. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  39812. var PBRMetallicRoughnessMaterialPropertyGridComponent = /** @class */ (function (_super) {
  39813. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PBRMetallicRoughnessMaterialPropertyGridComponent, _super);
  39814. function PBRMetallicRoughnessMaterialPropertyGridComponent(props) {
  39815. var _this = _super.call(this, props) || this;
  39816. _this._onDebugSelectionChangeObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["Observable"]();
  39817. return _this;
  39818. }
  39819. PBRMetallicRoughnessMaterialPropertyGridComponent.prototype.renderTextures = function () {
  39820. var material = this.props.material;
  39821. var onDebugSelectionChangeObservable = this._onDebugSelectionChangeObservable;
  39822. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "TEXTURES" },
  39823. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextureLinkLineComponent"], { label: "Base", texture: material.baseTexture, propertyName: "baseTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39824. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextureLinkLineComponent"], { label: "Metallic roughness", texture: material.metallicRoughnessTexture, propertyName: "metallicRoughnessTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39825. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextureLinkLineComponent"], { label: "Normal", texture: material.normalTexture, propertyName: "normalTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39826. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextureLinkLineComponent"], { label: "Environment", texture: material.environmentTexture, propertyName: "environmentTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39827. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextureLinkLineComponent"], { label: "Emissive", texture: material.emissiveTexture, propertyName: "emissiveTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39828. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextureLinkLineComponent"], { label: "Lightmap", texture: material.lightmapTexture, propertyName: "lightmapTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable })));
  39829. };
  39830. PBRMetallicRoughnessMaterialPropertyGridComponent.prototype.render = function () {
  39831. var material = this.props.material;
  39832. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  39833. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_6__["CommonMaterialPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, material: material, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39834. this.renderTextures(),
  39835. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "LIGHTING & COLORS" },
  39836. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Base", target: material, propertyName: "baseColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable, isLinear: true }),
  39837. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Emissive", target: material, propertyName: "emissiveColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable, isLinear: true })),
  39838. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "LEVELS", closed: true },
  39839. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__["SliderLineComponent"], { label: "Metallic", target: material, propertyName: "metallic", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39840. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__["SliderLineComponent"], { label: "Roughness", target: material, propertyName: "roughness", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  39841. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "NORMAL MAP", closed: true },
  39842. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_8__["CheckBoxLineComponent"], { label: "Invert X axis", target: material, propertyName: "invertNormalMapX", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39843. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_8__["CheckBoxLineComponent"], { label: "Invert Y axis", target: material, propertyName: "invertNormalMapY", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  39844. };
  39845. return PBRMetallicRoughnessMaterialPropertyGridComponent;
  39846. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  39847. /***/ }),
  39848. /***/ "./components/actionTabs/tabs/propertyGrids/materials/pbrSpecularGlossinessMaterialPropertyGridComponent.tsx":
  39849. /*!*******************************************************************************************************************!*\
  39850. !*** ./components/actionTabs/tabs/propertyGrids/materials/pbrSpecularGlossinessMaterialPropertyGridComponent.tsx ***!
  39851. \*******************************************************************************************************************/
  39852. /*! exports provided: PBRSpecularGlossinessMaterialPropertyGridComponent */
  39853. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  39854. "use strict";
  39855. __webpack_require__.r(__webpack_exports__);
  39856. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PBRSpecularGlossinessMaterialPropertyGridComponent", function() { return PBRSpecularGlossinessMaterialPropertyGridComponent; });
  39857. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  39858. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  39859. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  39860. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/observable");
  39861. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__);
  39862. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  39863. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  39864. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  39865. /* harmony import */ var _commonMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commonMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/commonMaterialPropertyGridComponent.tsx");
  39866. /* harmony import */ var _lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/textureLinkLineComponent */ "./components/actionTabs/lines/textureLinkLineComponent.tsx");
  39867. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  39868. var PBRSpecularGlossinessMaterialPropertyGridComponent = /** @class */ (function (_super) {
  39869. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PBRSpecularGlossinessMaterialPropertyGridComponent, _super);
  39870. function PBRSpecularGlossinessMaterialPropertyGridComponent(props) {
  39871. var _this = _super.call(this, props) || this;
  39872. _this._onDebugSelectionChangeObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["Observable"]();
  39873. return _this;
  39874. }
  39875. PBRSpecularGlossinessMaterialPropertyGridComponent.prototype.renderTextures = function () {
  39876. var material = this.props.material;
  39877. var onDebugSelectionChangeObservable = this._onDebugSelectionChangeObservable;
  39878. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "TEXTURES" },
  39879. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextureLinkLineComponent"], { label: "Diffuse", texture: material.diffuseTexture, propertyName: "diffuseTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39880. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextureLinkLineComponent"], { label: "Specular glossiness", texture: material.specularGlossinessTexture, propertyName: "specularGlossinessTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39881. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextureLinkLineComponent"], { label: "Normal", texture: material.normalTexture, propertyName: "normalTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39882. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextureLinkLineComponent"], { label: "Environment", texture: material.environmentTexture, propertyName: "environmentTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39883. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextureLinkLineComponent"], { label: "Emissive", texture: material.emissiveTexture, propertyName: "emissiveTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39884. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextureLinkLineComponent"], { label: "Lightmap", texture: material.lightmapTexture, propertyName: "lightmapTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable })));
  39885. };
  39886. PBRSpecularGlossinessMaterialPropertyGridComponent.prototype.render = function () {
  39887. var material = this.props.material;
  39888. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  39889. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_6__["CommonMaterialPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, material: material, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39890. this.renderTextures(),
  39891. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "LIGHTING & COLORS" },
  39892. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Diffuse", target: material, propertyName: "diffuseColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable, isLinear: true }),
  39893. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Specular", target: material, propertyName: "specularColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable, isLinear: true })),
  39894. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "LEVELS", closed: true },
  39895. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__["SliderLineComponent"], { label: "Glossiness", target: material, propertyName: "glossiness", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  39896. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "NORMAL MAP", closed: true },
  39897. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_8__["CheckBoxLineComponent"], { label: "Invert X axis", target: material, propertyName: "invertNormalMapX", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39898. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_8__["CheckBoxLineComponent"], { label: "Invert Y axis", target: material, propertyName: "invertNormalMapY", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  39899. };
  39900. return PBRSpecularGlossinessMaterialPropertyGridComponent;
  39901. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  39902. /***/ }),
  39903. /***/ "./components/actionTabs/tabs/propertyGrids/materials/standardMaterialPropertyGridComponent.tsx":
  39904. /*!******************************************************************************************************!*\
  39905. !*** ./components/actionTabs/tabs/propertyGrids/materials/standardMaterialPropertyGridComponent.tsx ***!
  39906. \******************************************************************************************************/
  39907. /*! exports provided: StandardMaterialPropertyGridComponent */
  39908. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  39909. "use strict";
  39910. __webpack_require__.r(__webpack_exports__);
  39911. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StandardMaterialPropertyGridComponent", function() { return StandardMaterialPropertyGridComponent; });
  39912. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  39913. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  39914. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  39915. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/observable");
  39916. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__);
  39917. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  39918. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  39919. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  39920. /* harmony import */ var _commonMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commonMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/commonMaterialPropertyGridComponent.tsx");
  39921. /* harmony import */ var _lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/textureLinkLineComponent */ "./components/actionTabs/lines/textureLinkLineComponent.tsx");
  39922. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  39923. var StandardMaterialPropertyGridComponent = /** @class */ (function (_super) {
  39924. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StandardMaterialPropertyGridComponent, _super);
  39925. function StandardMaterialPropertyGridComponent(props) {
  39926. var _this = _super.call(this, props) || this;
  39927. _this._onDebugSelectionChangeObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["Observable"]();
  39928. return _this;
  39929. }
  39930. StandardMaterialPropertyGridComponent.prototype.renderTextures = function () {
  39931. var material = this.props.material;
  39932. var onDebugSelectionChangeObservable = this._onDebugSelectionChangeObservable;
  39933. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "TEXTURES" },
  39934. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextureLinkLineComponent"], { label: "Diffuse", texture: material.diffuseTexture, propertyName: "diffuseTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39935. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextureLinkLineComponent"], { label: "Specular", texture: material.specularTexture, propertyName: "specularTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39936. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextureLinkLineComponent"], { label: "Reflection", texture: material.reflectionTexture, propertyName: "reflectionTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39937. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextureLinkLineComponent"], { label: "Refraction", texture: material.refractionTexture, propertyName: "refractionTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39938. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextureLinkLineComponent"], { label: "Emissive", texture: material.emissiveTexture, propertyName: "emissiveTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39939. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextureLinkLineComponent"], { label: "Bump", texture: material.bumpTexture, propertyName: "bumpTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39940. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextureLinkLineComponent"], { label: "Opacity", texture: material.opacityTexture, propertyName: "opacityTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39941. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextureLinkLineComponent"], { label: "Ambient", texture: material.ambientTexture, propertyName: "ambientTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39942. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextureLinkLineComponent"], { label: "Lightmap", texture: material.lightmapTexture, propertyName: "lightmapTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  39943. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_8__["CheckBoxLineComponent"], { label: "Use lightmap as shadowmap", target: material, propertyName: "useLightmapAsShadowmap ", onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  39944. };
  39945. StandardMaterialPropertyGridComponent.prototype.render = function () {
  39946. var material = this.props.material;
  39947. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  39948. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_6__["CommonMaterialPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, material: material, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39949. this.renderTextures(),
  39950. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "LIGHTING & COLORS" },
  39951. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Diffuse", target: material, propertyName: "diffuseColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39952. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Specular", target: material, propertyName: "specularColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39953. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__["SliderLineComponent"], { label: "Specular power", target: material, propertyName: "specularPower", minimum: 0, maximum: 128, step: 0.1, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39954. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Emissive", target: material, propertyName: "emissiveColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39955. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Ambient", target: material, propertyName: "ambientColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39956. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_8__["CheckBoxLineComponent"], { label: "Use specular over alpha", target: material, propertyName: "useSpecularOverAlpha", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  39957. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "LEVELS", closed: true },
  39958. material.diffuseTexture &&
  39959. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__["SliderLineComponent"], { label: "Diffuse level", target: material.diffuseTexture, propertyName: "level", minimum: 0, maximum: 2, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39960. material.specularTexture &&
  39961. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__["SliderLineComponent"], { label: "Specular level", target: material.specularTexture, propertyName: "level", minimum: 0, maximum: 2, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39962. material.reflectionTexture &&
  39963. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__["SliderLineComponent"], { label: "Reflection level", target: material.reflectionTexture, propertyName: "level", minimum: 0, maximum: 2, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39964. material.refractionTexture &&
  39965. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__["SliderLineComponent"], { label: "Refraction level", target: material.refractionTexture, propertyName: "level", minimum: 0, maximum: 2, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39966. material.emissiveTexture &&
  39967. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__["SliderLineComponent"], { label: "Emissive level", target: material.emissiveTexture, propertyName: "level", minimum: 0, maximum: 2, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39968. material.bumpTexture &&
  39969. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__["SliderLineComponent"], { label: "Bump level", target: material.bumpTexture, propertyName: "level", minimum: 0, maximum: 2, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39970. material.opacityTexture &&
  39971. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__["SliderLineComponent"], { label: "Opacity level", target: material.opacityTexture, propertyName: "level", minimum: 0, maximum: 2, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39972. material.ambientTexture &&
  39973. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__["SliderLineComponent"], { label: "Ambient level", target: material.ambientTexture, propertyName: "level", minimum: 0, maximum: 2, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39974. material.lightmapTexture &&
  39975. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__["SliderLineComponent"], { label: "Lightmap level", target: material.lightmapTexture, propertyName: "level", minimum: 0, maximum: 2, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  39976. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "NORMAL MAP", closed: true },
  39977. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_8__["CheckBoxLineComponent"], { label: "Invert X axis", target: material, propertyName: "invertNormalMapX", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  39978. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_8__["CheckBoxLineComponent"], { label: "Invert Y axis", target: material, propertyName: "invertNormalMapY", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  39979. };
  39980. return StandardMaterialPropertyGridComponent;
  39981. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  39982. /***/ }),
  39983. /***/ "./components/actionTabs/tabs/propertyGrids/materials/texturePropertyGridComponent.tsx":
  39984. /*!*********************************************************************************************!*\
  39985. !*** ./components/actionTabs/tabs/propertyGrids/materials/texturePropertyGridComponent.tsx ***!
  39986. \*********************************************************************************************/
  39987. /*! exports provided: TexturePropertyGridComponent */
  39988. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  39989. "use strict";
  39990. __webpack_require__.r(__webpack_exports__);
  39991. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TexturePropertyGridComponent", function() { return TexturePropertyGridComponent; });
  39992. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  39993. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  39994. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  39995. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/observable");
  39996. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__);
  39997. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  39998. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  39999. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  40000. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  40001. /* harmony import */ var _lines_textureLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/textureLineComponent */ "./components/actionTabs/lines/textureLineComponent.tsx");
  40002. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  40003. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  40004. /* harmony import */ var _lines_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../lines/fileButtonLineComponent */ "./components/actionTabs/lines/fileButtonLineComponent.tsx");
  40005. /* harmony import */ var _lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../lines/valueLineComponent */ "./components/actionTabs/lines/valueLineComponent.tsx");
  40006. /* harmony import */ var babylonjs_gui_2D_adtInstrumentation__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! babylonjs-gui/2D/adtInstrumentation */ "babylonjs-gui/2D/adtInstrumentation");
  40007. /* harmony import */ var babylonjs_gui_2D_adtInstrumentation__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(babylonjs_gui_2D_adtInstrumentation__WEBPACK_IMPORTED_MODULE_12__);
  40008. /* harmony import */ var _customPropertyGridComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../customPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/customPropertyGridComponent.tsx");
  40009. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  40010. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  40011. var TexturePropertyGridComponent = /** @class */ (function (_super) {
  40012. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TexturePropertyGridComponent, _super);
  40013. function TexturePropertyGridComponent(props) {
  40014. var _this = _super.call(this, props) || this;
  40015. var texture = _this.props.texture;
  40016. _this.textureLineRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  40017. if (!texture || !texture.rootContainer) {
  40018. return _this;
  40019. }
  40020. var adt = texture;
  40021. _this._adtInstrumentation = new babylonjs_gui_2D_adtInstrumentation__WEBPACK_IMPORTED_MODULE_12__["AdvancedDynamicTextureInstrumentation"](adt);
  40022. _this._adtInstrumentation.captureRenderTime = true;
  40023. _this._adtInstrumentation.captureLayoutTime = true;
  40024. return _this;
  40025. }
  40026. TexturePropertyGridComponent.prototype.componentWillUnmount = function () {
  40027. if (this._adtInstrumentation) {
  40028. this._adtInstrumentation.dispose();
  40029. this._adtInstrumentation = null;
  40030. }
  40031. };
  40032. TexturePropertyGridComponent.prototype.updateTexture = function (file) {
  40033. var _this = this;
  40034. var texture = this.props.texture;
  40035. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Tools"].ReadFile(file, function (data) {
  40036. var blob = new Blob([data], { type: "octet/stream" });
  40037. var url = URL.createObjectURL(blob);
  40038. if (texture.isCube) {
  40039. var extension = undefined;
  40040. if (file.name.toLowerCase().indexOf(".dds") > 0) {
  40041. extension = ".dds";
  40042. }
  40043. else if (file.name.toLowerCase().indexOf(".env") > 0) {
  40044. extension = ".env";
  40045. }
  40046. texture.updateURL(url, extension, function () { return _this.foreceRefresh(); });
  40047. }
  40048. else {
  40049. texture.updateURL(url, null, function () { return _this.foreceRefresh(); });
  40050. }
  40051. }, undefined, true);
  40052. };
  40053. TexturePropertyGridComponent.prototype.foreceRefresh = function () {
  40054. this.forceUpdate();
  40055. this.textureLineRef.current.updatePreview();
  40056. };
  40057. TexturePropertyGridComponent.prototype.render = function () {
  40058. var _this = this;
  40059. var texture = this.props.texture;
  40060. var samplingMode = [
  40061. { label: "Nearest", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].NEAREST_NEAREST },
  40062. { label: "Nearest & linear mip", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].NEAREST_LINEAR },
  40063. { label: "Linear", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].LINEAR_LINEAR_MIPLINEAR },
  40064. ];
  40065. var coordinatesMode = [
  40066. { label: "Explicit", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].EXPLICIT_MODE },
  40067. { label: "Cubic", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].CUBIC_MODE },
  40068. { label: "Inverse cubic", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].INVCUBIC_MODE },
  40069. { label: "Equirectangular", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].EQUIRECTANGULAR_MODE },
  40070. { label: "Fixed equirectangular", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].FIXED_EQUIRECTANGULAR_MODE },
  40071. { label: "Fixed equirectangular mirrored", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].FIXED_EQUIRECTANGULAR_MIRRORED_MODE },
  40072. { label: "Planar", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].PLANAR_MODE },
  40073. { label: "Projection", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].PROJECTION_MODE },
  40074. { label: "Skybox", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].SKYBOX_MODE },
  40075. { label: "Spherical", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].SPHERICAL_MODE },
  40076. ];
  40077. var extension = "";
  40078. var url = texture.url;
  40079. if (url) {
  40080. for (var index = url.length - 1; index >= 0; index--) {
  40081. if (url[index] === ".") {
  40082. break;
  40083. }
  40084. extension = url[index] + extension;
  40085. }
  40086. }
  40087. else {
  40088. url = "";
  40089. }
  40090. var textureUrl = (url.substring(0, 4) === "data" || url.substring(0, 4) === "blob") ? "" : url;
  40091. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  40092. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "PREVIEW" },
  40093. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextureLineComponent"], { ref: this.textureLineRef, texture: texture, width: 256, height: 256, globalState: this.props.globalState }),
  40094. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_10__["FileButtonLineComponent"], { label: "Load texture from file", onClick: function (file) { return _this.updateTexture(file); }, accept: ".jpg, .png, .tga, .dds, .env" }),
  40095. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_15__["TextInputLineComponent"], { label: "URL", value: textureUrl, lockObject: this.props.lockObject, onChange: function (url) {
  40096. texture.updateURL(url);
  40097. _this.foreceRefresh();
  40098. } })),
  40099. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_customPropertyGridComponent__WEBPACK_IMPORTED_MODULE_13__["CustomPropertyGridComponent"], { globalState: this.props.globalState, target: texture, lockObject: this.props.lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40100. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "GENERAL" },
  40101. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Width", value: texture.getSize().width.toString() }),
  40102. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Height", value: texture.getSize().height.toString() }),
  40103. texture.isRenderTarget &&
  40104. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_14__["ButtonLineComponent"], { label: "Scale up", onClick: function () {
  40105. var scene = texture.getScene();
  40106. texture.scale(2);
  40107. setTimeout(function () {
  40108. _this.props.globalState.onSelectionChangedObservable.notifyObservers(scene.getTextureByUniqueID(texture.uniqueId));
  40109. });
  40110. } }),
  40111. texture.isRenderTarget &&
  40112. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_14__["ButtonLineComponent"], { label: "Scale down", onClick: function () {
  40113. var scene = texture.getScene();
  40114. texture.scale(0.5);
  40115. setTimeout(function () {
  40116. _this.props.globalState.onSelectionChangedObservable.notifyObservers(scene.getTextureByUniqueID(texture.uniqueId));
  40117. });
  40118. } }),
  40119. extension &&
  40120. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "File format", value: extension }),
  40121. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Unique ID", value: texture.uniqueId.toString() }),
  40122. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Class", value: texture.getClassName() }),
  40123. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Has alpha", value: texture.hasAlpha ? "Yes" : "No" }),
  40124. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Is 3D", value: texture.is3D ? "Yes" : "No" }),
  40125. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Is 2D array", value: texture.is2DArray ? "Yes" : "No" }),
  40126. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Is cube", value: texture.isCube ? "Yes" : "No" }),
  40127. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Is render target", value: texture.isRenderTarget ? "Yes" : "No" }),
  40128. (texture instanceof babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"]) &&
  40129. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Stored as inverted on Y", value: texture.invertY ? "Yes" : "No" }),
  40130. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Has mipmaps", value: !texture.noMipmap ? "Yes" : "No" }),
  40131. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_4__["SliderLineComponent"], { label: "UV set", target: texture, propertyName: "coordinatesIndex", minimum: 0, maximum: 3, step: 1, onPropertyChangedObservable: this.props.onPropertyChangedObservable, decimalCount: 0 }),
  40132. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_9__["OptionsLineComponent"], { label: "Mode", options: coordinatesMode, target: texture, propertyName: "coordinatesMode", onPropertyChangedObservable: this.props.onPropertyChangedObservable, onSelect: function (value) { return texture.updateSamplingMode(value); } }),
  40133. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_4__["SliderLineComponent"], { label: "Level", target: texture, propertyName: "level", minimum: 0, maximum: 2, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40134. texture.updateSamplingMode &&
  40135. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_9__["OptionsLineComponent"], { label: "Sampling", options: samplingMode, target: texture, noDirectUpdate: true, propertyName: "samplingMode", onPropertyChangedObservable: this.props.onPropertyChangedObservable, onSelect: function (value) { return texture.updateSamplingMode(value); } })),
  40136. texture.rootContainer &&
  40137. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "ADVANCED TEXTURE PROPERTIES" },
  40138. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_11__["ValueLineComponent"], { label: "Last layout time", value: this._adtInstrumentation.renderTimeCounter.current, units: "ms" }),
  40139. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_11__["ValueLineComponent"], { label: "Last render time", value: this._adtInstrumentation.layoutTimeCounter.current, units: "ms" }),
  40140. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_4__["SliderLineComponent"], { label: "Render scale", minimum: 0.1, maximum: 5, step: 0.1, target: texture, propertyName: "renderScale", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40141. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Premultiply alpha", target: texture, propertyName: "premulAlpha", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40142. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Ideal width", target: texture, propertyName: "idealWidth", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40143. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Ideal height", target: texture, propertyName: "idealHeight", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40144. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Use smallest ideal", target: texture, propertyName: "useSmallestIdeal", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40145. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Render at ideal size", target: texture, propertyName: "renderAtIdealSize", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40146. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Invalidate Rect optimization", target: texture, propertyName: "useInvalidateRectOptimization", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  40147. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "TRANSFORM" },
  40148. !texture.isCube &&
  40149. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  40150. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "U offset", target: texture, propertyName: "uOffset", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40151. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "V offset", target: texture, propertyName: "vOffset", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40152. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "U scale", target: texture, propertyName: "uScale", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40153. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "V scale", target: texture, propertyName: "vScale", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40154. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "U angle", useEuler: this.props.globalState.onlyUseEulers, target: texture, propertyName: "uAng", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40155. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "V angle", useEuler: this.props.globalState.onlyUseEulers, target: texture, propertyName: "vAng", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40156. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "W angle", useEuler: this.props.globalState.onlyUseEulers, target: texture, propertyName: "wAng", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40157. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Clamp U", isSelected: function () { return texture.wrapU === babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].CLAMP_ADDRESSMODE; }, onSelect: function (value) { return texture.wrapU = value ? babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].CLAMP_ADDRESSMODE : babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].WRAP_ADDRESSMODE; } }),
  40158. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Clamp V", isSelected: function () { return texture.wrapV === babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].CLAMP_ADDRESSMODE; }, onSelect: function (value) { return texture.wrapV = value ? babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].CLAMP_ADDRESSMODE : babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].WRAP_ADDRESSMODE; } })),
  40159. texture.isCube &&
  40160. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  40161. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_4__["SliderLineComponent"], { label: "Rotation Y", useEuler: this.props.globalState.onlyUseEulers, minimum: 0, maximum: 2 * Math.PI, step: 0.1, target: texture, propertyName: "rotationY" })))));
  40162. };
  40163. return TexturePropertyGridComponent;
  40164. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  40165. /***/ }),
  40166. /***/ "./components/actionTabs/tabs/propertyGrids/meshes/bonePropertyGridComponent.tsx":
  40167. /*!***************************************************************************************!*\
  40168. !*** ./components/actionTabs/tabs/propertyGrids/meshes/bonePropertyGridComponent.tsx ***!
  40169. \***************************************************************************************/
  40170. /*! exports provided: BonePropertyGridComponent */
  40171. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40172. "use strict";
  40173. __webpack_require__.r(__webpack_exports__);
  40174. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BonePropertyGridComponent", function() { return BonePropertyGridComponent; });
  40175. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  40176. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  40177. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  40178. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  40179. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  40180. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  40181. /* harmony import */ var _lines_quaternionLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/quaternionLineComponent */ "./components/actionTabs/lines/quaternionLineComponent.tsx");
  40182. var BonePropertyGridComponent = /** @class */ (function (_super) {
  40183. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BonePropertyGridComponent, _super);
  40184. function BonePropertyGridComponent(props) {
  40185. return _super.call(this, props) || this;
  40186. }
  40187. BonePropertyGridComponent.prototype.onTransformNodeLink = function () {
  40188. if (!this.props.globalState.onSelectionChangedObservable) {
  40189. return;
  40190. }
  40191. var node = this.props.bone.getTransformNode();
  40192. this.props.globalState.onSelectionChangedObservable.notifyObservers(node);
  40193. };
  40194. BonePropertyGridComponent.prototype.render = function () {
  40195. var _this = this;
  40196. var bone = this.props.bone;
  40197. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  40198. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "GENERAL" },
  40199. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Name", value: bone.name }),
  40200. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Index", value: bone.getIndex().toString() }),
  40201. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Unique ID", value: bone.uniqueId.toString() }),
  40202. bone.getParent() &&
  40203. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Parent", value: bone.getParent().name, onLink: function () { return _this.props.globalState.onSelectionChangedObservable.notifyObservers(bone.getParent()); } }),
  40204. bone.getTransformNode() &&
  40205. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Linked node", value: bone.getTransformNode().name, onLink: function () { return _this.onTransformNodeLink(); } })),
  40206. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "TRANSFORMATIONS" },
  40207. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Vector3LineComponent"], { label: "Position", target: bone, propertyName: "position", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40208. !bone.rotationQuaternion &&
  40209. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Vector3LineComponent"], { label: "Rotation", useEuler: this.props.globalState.onlyUseEulers, target: bone, propertyName: "rotation", step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40210. bone.rotationQuaternion &&
  40211. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_quaternionLineComponent__WEBPACK_IMPORTED_MODULE_5__["QuaternionLineComponent"], { label: "Rotation", useEuler: this.props.globalState.onlyUseEulers, target: bone, propertyName: "rotationQuaternion", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40212. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Vector3LineComponent"], { label: "Scaling", target: bone, propertyName: "scaling", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  40213. };
  40214. return BonePropertyGridComponent;
  40215. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  40216. /***/ }),
  40217. /***/ "./components/actionTabs/tabs/propertyGrids/meshes/meshPropertyGridComponent.tsx":
  40218. /*!***************************************************************************************!*\
  40219. !*** ./components/actionTabs/tabs/propertyGrids/meshes/meshPropertyGridComponent.tsx ***!
  40220. \***************************************************************************************/
  40221. /*! exports provided: MeshPropertyGridComponent */
  40222. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40223. "use strict";
  40224. __webpack_require__.r(__webpack_exports__);
  40225. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MeshPropertyGridComponent", function() { return MeshPropertyGridComponent; });
  40226. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  40227. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  40228. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  40229. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/observable");
  40230. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__);
  40231. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  40232. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  40233. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  40234. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  40235. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  40236. /* harmony import */ var _lines_quaternionLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/quaternionLineComponent */ "./components/actionTabs/lines/quaternionLineComponent.tsx");
  40237. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  40238. /* harmony import */ var _customPropertyGridComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../customPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/customPropertyGridComponent.tsx");
  40239. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  40240. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  40241. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  40242. var MeshPropertyGridComponent = /** @class */ (function (_super) {
  40243. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MeshPropertyGridComponent, _super);
  40244. function MeshPropertyGridComponent(props) {
  40245. var _this = _super.call(this, props) || this;
  40246. _this.state = {
  40247. displayNormals: false,
  40248. displayVertexColors: false
  40249. };
  40250. return _this;
  40251. }
  40252. MeshPropertyGridComponent.prototype.renderWireframeOver = function () {
  40253. var mesh = this.props.mesh;
  40254. var scene = mesh.getScene();
  40255. if (mesh.reservedDataStore && mesh.reservedDataStore.wireframeOver) {
  40256. mesh.reservedDataStore.wireframeOver.dispose(false, true);
  40257. mesh.reservedDataStore.wireframeOver = null;
  40258. this.forceUpdate();
  40259. return;
  40260. }
  40261. var wireframeOver = mesh.clone();
  40262. wireframeOver.reservedDataStore = { hidden: true };
  40263. // Sets up the mesh to be attached to the parent.
  40264. // So all neutral in local space.
  40265. wireframeOver.parent = mesh;
  40266. wireframeOver.position = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Vector3"].Zero();
  40267. wireframeOver.scaling = new babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Vector3"](1, 1, 1);
  40268. wireframeOver.rotation = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Vector3"].Zero();
  40269. wireframeOver.rotationQuaternion = null;
  40270. var material = new babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["StandardMaterial"]("wireframeOver", scene);
  40271. material.reservedDataStore = { hidden: true };
  40272. wireframeOver.material = material;
  40273. material.zOffset = 1;
  40274. material.disableLighting = true;
  40275. material.backFaceCulling = false;
  40276. material.emissiveColor = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Color3"].White();
  40277. material.wireframe = true;
  40278. if (!mesh.reservedDataStore) {
  40279. mesh.reservedDataStore = {};
  40280. }
  40281. mesh.reservedDataStore.wireframeOver = wireframeOver;
  40282. this.forceUpdate();
  40283. };
  40284. MeshPropertyGridComponent.prototype.renderNormalVectors = function () {
  40285. var mesh = this.props.mesh;
  40286. var scene = mesh.getScene();
  40287. if (mesh.reservedDataStore && mesh.reservedDataStore.normalLines) {
  40288. mesh.reservedDataStore.normalLines.dispose();
  40289. mesh.reservedDataStore.normalLines = null;
  40290. this.forceUpdate();
  40291. return;
  40292. }
  40293. var normals = mesh.getVerticesData(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["VertexBuffer"].NormalKind);
  40294. var positions = mesh.getVerticesData(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["VertexBuffer"].PositionKind);
  40295. var color = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Color3"].White();
  40296. var bbox = mesh.getBoundingInfo();
  40297. var diag = bbox.maximum.subtractToRef(bbox.minimum, babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["TmpVectors"].Vector3[0]);
  40298. var size = diag.length() * 0.05;
  40299. var lines = [];
  40300. for (var i = 0; i < normals.length; i += 3) {
  40301. var v1 = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Vector3"].FromArray(positions, i);
  40302. var v2 = v1.add(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Vector3"].FromArray(normals, i).scaleInPlace(size));
  40303. lines.push([v1, v2]);
  40304. }
  40305. var normalLines = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["LinesBuilder"].CreateLineSystem("normalLines", { lines: lines }, scene);
  40306. normalLines.color = color;
  40307. normalLines.parent = mesh;
  40308. normalLines.reservedDataStore = { hidden: true };
  40309. if (!mesh.reservedDataStore) {
  40310. mesh.reservedDataStore = {};
  40311. }
  40312. mesh.reservedDataStore.normalLines = normalLines;
  40313. this.forceUpdate();
  40314. };
  40315. MeshPropertyGridComponent.prototype.displayNormals = function () {
  40316. var _this = this;
  40317. var mesh = this.props.mesh;
  40318. var scene = mesh.getScene();
  40319. if (mesh.material && mesh.material.getClassName() === "NormalMaterial") {
  40320. mesh.material.dispose();
  40321. mesh.material = mesh.reservedDataStore.originalMaterial;
  40322. mesh.reservedDataStore.originalMaterial = null;
  40323. this.setState({ displayNormals: false });
  40324. }
  40325. else {
  40326. if (!BABYLON.NormalMaterial) {
  40327. this.setState({ displayNormals: true });
  40328. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Tools"].LoadScript("https://preview.babylonjs.com/materialsLibrary/babylonjs.materials.js", function () {
  40329. _this.displayNormals();
  40330. });
  40331. return;
  40332. }
  40333. if (!mesh.reservedDataStore) {
  40334. mesh.reservedDataStore = {};
  40335. }
  40336. if (!mesh.reservedDataStore.originalMaterial) {
  40337. mesh.reservedDataStore.originalMaterial = mesh.material;
  40338. }
  40339. var normalMaterial = new BABYLON.NormalMaterial("normalMaterial", scene);
  40340. normalMaterial.disableLighting = true;
  40341. if (mesh.material) {
  40342. normalMaterial.sideOrientation = mesh.material.sideOrientation;
  40343. }
  40344. normalMaterial.reservedDataStore = { hidden: true };
  40345. mesh.material = normalMaterial;
  40346. this.setState({ displayNormals: true });
  40347. }
  40348. };
  40349. MeshPropertyGridComponent.prototype.displayVertexColors = function () {
  40350. var mesh = this.props.mesh;
  40351. var scene = mesh.getScene();
  40352. if (mesh.material && mesh.material.reservedDataStore && mesh.material.reservedDataStore.isVertexColorMaterial) {
  40353. mesh.material.dispose();
  40354. mesh.material = mesh.reservedDataStore.originalMaterial;
  40355. mesh.reservedDataStore.originalMaterial = null;
  40356. this.setState({ displayVertexColors: false });
  40357. }
  40358. else {
  40359. if (!mesh.reservedDataStore) {
  40360. mesh.reservedDataStore = {};
  40361. }
  40362. if (!mesh.reservedDataStore.originalMaterial) {
  40363. mesh.reservedDataStore.originalMaterial = mesh.material;
  40364. }
  40365. var vertexColorMaterial = new babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["StandardMaterial"]("vertex colors", scene);
  40366. vertexColorMaterial.disableLighting = true;
  40367. vertexColorMaterial.emissiveColor = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Color3"].White();
  40368. if (mesh.material) {
  40369. vertexColorMaterial.sideOrientation = mesh.material.sideOrientation;
  40370. }
  40371. vertexColorMaterial.reservedDataStore = { hidden: true, isVertexColorMaterial: true };
  40372. mesh.useVertexColors = true;
  40373. mesh.material = vertexColorMaterial;
  40374. this.setState({ displayVertexColors: true });
  40375. }
  40376. };
  40377. MeshPropertyGridComponent.prototype.onMaterialLink = function () {
  40378. if (!this.props.onSelectionChangedObservable) {
  40379. return;
  40380. }
  40381. var mesh = this.props.mesh;
  40382. this.props.onSelectionChangedObservable.notifyObservers(mesh.material);
  40383. };
  40384. MeshPropertyGridComponent.prototype.onSourceMeshLink = function () {
  40385. if (!this.props.onSelectionChangedObservable) {
  40386. return;
  40387. }
  40388. var instanceMesh = this.props.mesh;
  40389. this.props.onSelectionChangedObservable.notifyObservers(instanceMesh.sourceMesh);
  40390. };
  40391. MeshPropertyGridComponent.prototype.onSkeletonLink = function () {
  40392. if (!this.props.onSelectionChangedObservable) {
  40393. return;
  40394. }
  40395. var mesh = this.props.mesh;
  40396. this.props.onSelectionChangedObservable.notifyObservers(mesh.skeleton);
  40397. };
  40398. MeshPropertyGridComponent.prototype.convertPhysicsTypeToString = function () {
  40399. var mesh = this.props.mesh;
  40400. switch (mesh.physicsImpostor.type) {
  40401. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["PhysicsImpostor"].NoImpostor:
  40402. return "No impostor";
  40403. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["PhysicsImpostor"].SphereImpostor:
  40404. return "Sphere";
  40405. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["PhysicsImpostor"].BoxImpostor:
  40406. return "Box";
  40407. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["PhysicsImpostor"].PlaneImpostor:
  40408. return "Plane";
  40409. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["PhysicsImpostor"].MeshImpostor:
  40410. return "Mesh";
  40411. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["PhysicsImpostor"].CylinderImpostor:
  40412. return "Cylinder";
  40413. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["PhysicsImpostor"].ParticleImpostor:
  40414. return "Particle";
  40415. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["PhysicsImpostor"].HeightmapImpostor:
  40416. return "Heightmap";
  40417. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["PhysicsImpostor"].ConvexHullImpostor:
  40418. return "Convex hull";
  40419. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["PhysicsImpostor"].RopeImpostor:
  40420. return "Rope";
  40421. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["PhysicsImpostor"].SoftbodyImpostor:
  40422. return "Soft body";
  40423. }
  40424. return "Unknown";
  40425. };
  40426. MeshPropertyGridComponent.prototype.render = function () {
  40427. var _this = this;
  40428. var mesh = this.props.mesh;
  40429. var scene = mesh.getScene();
  40430. var displayNormals = mesh.material != null && mesh.material.getClassName() === "NormalMaterial";
  40431. var displayVertexColors = !!(mesh.material != null && mesh.material.reservedDataStore && mesh.material.reservedDataStore.isVertexColorMaterial);
  40432. var renderNormalVectors = (mesh.reservedDataStore && mesh.reservedDataStore.normalLines) ? true : false;
  40433. var renderWireframeOver = (mesh.reservedDataStore && mesh.reservedDataStore.wireframeOver) ? true : false;
  40434. var morphTargets = [];
  40435. if (mesh.morphTargetManager) {
  40436. for (var index = 0; index < mesh.morphTargetManager.numTargets; index++) {
  40437. morphTargets.push(mesh.morphTargetManager.getTarget(index));
  40438. }
  40439. }
  40440. var algorithmOptions = [
  40441. { label: "Accurate", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["AbstractMesh"].OCCLUSION_ALGORITHM_TYPE_ACCURATE },
  40442. { label: "Conservative", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["AbstractMesh"].OCCLUSION_ALGORITHM_TYPE_CONSERVATIVE },
  40443. ];
  40444. var occlusionTypeOptions = [
  40445. { label: "None", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["AbstractMesh"].OCCLUSION_TYPE_NONE },
  40446. { label: "Optimistic", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["AbstractMesh"].OCCLUSION_TYPE_OPTIMISTIC },
  40447. { label: "Strict", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["AbstractMesh"].OCCLUSION_TYPE_STRICT },
  40448. ];
  40449. var sortedMaterials = scene.materials.slice(0).sort(function (a, b) { return (a.name || "no name").localeCompare(b.name || "no name"); });
  40450. var materialOptions = sortedMaterials.map(function (m, i) {
  40451. return {
  40452. label: m.name || "no name",
  40453. value: i
  40454. };
  40455. });
  40456. materialOptions.splice(0, 0, {
  40457. label: "None",
  40458. value: -1
  40459. });
  40460. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  40461. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_customPropertyGridComponent__WEBPACK_IMPORTED_MODULE_10__["CustomPropertyGridComponent"], { globalState: this.props.globalState, target: mesh, lockObject: this.props.lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40462. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "GENERAL" },
  40463. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "ID", value: mesh.id }),
  40464. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Unique ID", value: mesh.uniqueId.toString() }),
  40465. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Class", value: mesh.getClassName() }),
  40466. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Vertices", value: mesh.getTotalVertices().toString() }),
  40467. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Faces", value: (mesh.getTotalIndices() / 3).toFixed(0) }),
  40468. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Sub-meshes", value: mesh.subMeshes ? mesh.subMeshes.length.toString() : "0" }),
  40469. mesh.parent &&
  40470. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Parent", value: mesh.parent.name, onLink: function () { return _this.props.globalState.onSelectionChangedObservable.notifyObservers(mesh.parent); } }),
  40471. mesh.skeleton &&
  40472. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Skeleton", value: mesh.skeleton.name, onLink: function () { return _this.onSkeletonLink(); } }),
  40473. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Is enabled", isSelected: function () { return mesh.isEnabled(); }, onSelect: function (value) { return mesh.setEnabled(value); } }),
  40474. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Is pickable", target: mesh, propertyName: "isPickable", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40475. mesh.material && (!mesh.material.reservedDataStore || !mesh.material.reservedDataStore.hidden) &&
  40476. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Link to material", value: mesh.material.name, onLink: function () { return _this.onMaterialLink(); } }),
  40477. !mesh.isAnInstance &&
  40478. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_12__["OptionsLineComponent"], { label: "Active material", options: materialOptions, target: mesh, propertyName: "material", noDirectUpdate: true, onSelect: function (value) {
  40479. if (value < 0) {
  40480. mesh.material = null;
  40481. }
  40482. else {
  40483. mesh.material = sortedMaterials[value];
  40484. }
  40485. _this.forceUpdate();
  40486. }, extractValue: function () { return mesh.material ? sortedMaterials.indexOf(mesh.material) : -1; }, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40487. mesh.isAnInstance &&
  40488. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Source", value: mesh.sourceMesh.name, onLink: function () { return _this.onSourceMeshLink(); } }),
  40489. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_13__["ButtonLineComponent"], { label: "Dispose", onClick: function () {
  40490. mesh.dispose();
  40491. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  40492. } })),
  40493. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "TRANSFORMS" },
  40494. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_6__["Vector3LineComponent"], { label: "Position", target: mesh, propertyName: "position", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40495. !mesh.rotationQuaternion &&
  40496. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_6__["Vector3LineComponent"], { label: "Rotation", useEuler: this.props.globalState.onlyUseEulers, target: mesh, propertyName: "rotation", step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40497. mesh.rotationQuaternion &&
  40498. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_quaternionLineComponent__WEBPACK_IMPORTED_MODULE_8__["QuaternionLineComponent"], { label: "Rotation", useEuler: this.props.globalState.onlyUseEulers, target: mesh, propertyName: "rotationQuaternion", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40499. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_6__["Vector3LineComponent"], { label: "Scaling", target: mesh, propertyName: "scaling", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  40500. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "DISPLAY", closed: true },
  40501. !mesh.isAnInstance &&
  40502. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Visibility", target: mesh, propertyName: "visibility", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40503. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_9__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Alpha index", target: mesh, propertyName: "alphaIndex", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40504. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Receive shadows", target: mesh, propertyName: "receiveShadows", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40505. mesh.isVerticesDataPresent(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["VertexBuffer"].ColorKind) &&
  40506. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Use vertex colors", target: mesh, propertyName: "useVertexColors", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40507. mesh.isVerticesDataPresent(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["VertexBuffer"].ColorKind) &&
  40508. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Has vertex alpha", target: mesh, propertyName: "hasVertexAlpha", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40509. scene.fogMode !== babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Scene"].FOGMODE_NONE &&
  40510. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Apply fog", target: mesh, propertyName: "applyFog", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40511. !mesh.parent &&
  40512. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Infinite distance", target: mesh, propertyName: "infiniteDistance", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  40513. mesh.morphTargetManager != null &&
  40514. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "MORPH TARGETS", closed: true }, morphTargets.map(function (mt, i) {
  40515. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: mt.name, target: mt, propertyName: "influence", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: _this.props.onPropertyChangedObservable }));
  40516. })),
  40517. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "ADVANCED", closed: true },
  40518. mesh.useBones &&
  40519. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Compute bones using shaders", target: mesh, propertyName: "computeBonesUsingShaders", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40520. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Collisions", target: mesh, propertyName: "checkCollisions", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40521. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Has normals", value: mesh.isVerticesDataPresent(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["VertexBuffer"].NormalKind) ? "Yes" : "No" }),
  40522. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Has vertex colors", value: mesh.isVerticesDataPresent(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["VertexBuffer"].ColorKind) ? "Yes" : "No" }),
  40523. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Has UV set 0", value: mesh.isVerticesDataPresent(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["VertexBuffer"].UVKind) ? "Yes" : "No" }),
  40524. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Has UV set 1", value: mesh.isVerticesDataPresent(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["VertexBuffer"].UV2Kind) ? "Yes" : "No" }),
  40525. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Has UV set 2", value: mesh.isVerticesDataPresent(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["VertexBuffer"].UV3Kind) ? "Yes" : "No" }),
  40526. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Has UV set 3", value: mesh.isVerticesDataPresent(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["VertexBuffer"].UV4Kind) ? "Yes" : "No" }),
  40527. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Has tangents", value: mesh.isVerticesDataPresent(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["VertexBuffer"].TangentKind) ? "Yes" : "No" }),
  40528. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Has matrix weights", value: mesh.isVerticesDataPresent(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["VertexBuffer"].MatricesWeightsKind) ? "Yes" : "No" }),
  40529. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Has matrix indices", value: mesh.isVerticesDataPresent(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["VertexBuffer"].MatricesIndicesKind) ? "Yes" : "No" })),
  40530. mesh.physicsImpostor != null &&
  40531. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "PHYSICS", closed: true },
  40532. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_9__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Mass", target: mesh.physicsImpostor, propertyName: "mass", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40533. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_9__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Friction", target: mesh.physicsImpostor, propertyName: "friction", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40534. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_9__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Restitution", target: mesh.physicsImpostor, propertyName: "restitution", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40535. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Type", value: this.convertPhysicsTypeToString() })),
  40536. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "OCCLUSIONS", closed: true },
  40537. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_12__["OptionsLineComponent"], { label: "Type", options: occlusionTypeOptions, target: mesh, propertyName: "occlusionType", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40538. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Retry count", minimum: -1, maximum: 10, decimalCount: 0, step: 1, target: mesh, propertyName: "occlusionRetryCount", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40539. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_12__["OptionsLineComponent"], { label: "Algorithm", options: algorithmOptions, target: mesh, propertyName: "occlusionQueryAlgorithmType", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  40540. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "EDGE RENDERING", closed: true },
  40541. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Enable", target: mesh, isSelected: function () { return mesh.edgesRenderer != null; }, onSelect: function (value) {
  40542. if (value) {
  40543. mesh.enableEdgesRendering();
  40544. }
  40545. else {
  40546. mesh.disableEdgesRendering();
  40547. }
  40548. } }),
  40549. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Edge width", minimum: 0, maximum: 10, step: 0.1, target: mesh, propertyName: "edgesWidth", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40550. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_11__["Color3LineComponent"], { label: "Edge color", target: mesh, propertyName: "edgesColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  40551. !mesh.isAnInstance &&
  40552. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "OUTLINE & OVERLAY", closed: true },
  40553. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Render overlay", target: mesh, propertyName: "renderOverlay", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40554. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_11__["Color3LineComponent"], { label: "Overlay color", target: mesh, propertyName: "overlayColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40555. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Render outline", target: mesh, propertyName: "renderOutline", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40556. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_11__["Color3LineComponent"], { label: "Outline color", target: mesh, propertyName: "outlineColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  40557. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "DEBUG", closed: true },
  40558. !mesh.isAnInstance &&
  40559. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Display normals", isSelected: function () { return displayNormals; }, onSelect: function () { return _this.displayNormals(); } }),
  40560. !mesh.isAnInstance &&
  40561. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Display vertex colors", isSelected: function () { return displayVertexColors; }, onSelect: function () { return _this.displayVertexColors(); } }),
  40562. mesh.isVerticesDataPresent(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["VertexBuffer"].NormalKind) &&
  40563. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Render vertex normals", isSelected: function () { return renderNormalVectors; }, onSelect: function () { return _this.renderNormalVectors(); } }),
  40564. !mesh.isAnInstance &&
  40565. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Render wireframe over mesh", isSelected: function () { return renderWireframeOver; }, onSelect: function () { return _this.renderWireframeOver(); } }))));
  40566. };
  40567. return MeshPropertyGridComponent;
  40568. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  40569. /***/ }),
  40570. /***/ "./components/actionTabs/tabs/propertyGrids/meshes/skeletonPropertyGridComponent.tsx":
  40571. /*!*******************************************************************************************!*\
  40572. !*** ./components/actionTabs/tabs/propertyGrids/meshes/skeletonPropertyGridComponent.tsx ***!
  40573. \*******************************************************************************************/
  40574. /*! exports provided: SkeletonPropertyGridComponent */
  40575. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40576. "use strict";
  40577. __webpack_require__.r(__webpack_exports__);
  40578. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SkeletonPropertyGridComponent", function() { return SkeletonPropertyGridComponent; });
  40579. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  40580. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  40581. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  40582. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  40583. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  40584. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  40585. /* harmony import */ var _animationPropertyGridComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../animationPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/animationPropertyGridComponent.tsx");
  40586. /* harmony import */ var babylonjs_Debug_skeletonViewer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! babylonjs/Debug/skeletonViewer */ "babylonjs/Misc/observable");
  40587. /* harmony import */ var babylonjs_Debug_skeletonViewer__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Debug_skeletonViewer__WEBPACK_IMPORTED_MODULE_6__);
  40588. /* harmony import */ var _customPropertyGridComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../customPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/customPropertyGridComponent.tsx");
  40589. var SkeletonPropertyGridComponent = /** @class */ (function (_super) {
  40590. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SkeletonPropertyGridComponent, _super);
  40591. function SkeletonPropertyGridComponent(props) {
  40592. var _this = _super.call(this, props) || this;
  40593. _this._skeletonViewersEnabled = false;
  40594. _this._skeletonViewers = new Array();
  40595. _this.checkSkeletonViewerState(_this.props);
  40596. return _this;
  40597. }
  40598. SkeletonPropertyGridComponent.prototype.switchSkeletonViewers = function () {
  40599. this._skeletonViewersEnabled = !this._skeletonViewersEnabled;
  40600. var scene = this.props.skeleton.getScene();
  40601. if (this._skeletonViewersEnabled) {
  40602. for (var _i = 0, _a = scene.meshes; _i < _a.length; _i++) {
  40603. var mesh = _a[_i];
  40604. if (mesh.skeleton === this.props.skeleton) {
  40605. var found = false;
  40606. for (var sIndex = 0; sIndex < this._skeletonViewers.length; sIndex++) {
  40607. if (this._skeletonViewers[sIndex].skeleton === mesh.skeleton) {
  40608. found = true;
  40609. break;
  40610. }
  40611. }
  40612. if (found) {
  40613. continue;
  40614. }
  40615. var viewer = new babylonjs_Debug_skeletonViewer__WEBPACK_IMPORTED_MODULE_6__["SkeletonViewer"](mesh.skeleton, mesh, scene, true, 0);
  40616. viewer.isEnabled = true;
  40617. this._skeletonViewers.push(viewer);
  40618. if (!mesh.reservedDataStore) {
  40619. mesh.reservedDataStore = {};
  40620. }
  40621. mesh.reservedDataStore.skeletonViewer = viewer;
  40622. }
  40623. }
  40624. }
  40625. else {
  40626. for (var index = 0; index < this._skeletonViewers.length; index++) {
  40627. this._skeletonViewers[index].mesh.reservedDataStore.skeletonViewer = null;
  40628. this._skeletonViewers[index].dispose();
  40629. }
  40630. this._skeletonViewers = [];
  40631. }
  40632. };
  40633. SkeletonPropertyGridComponent.prototype.checkSkeletonViewerState = function (props) {
  40634. var scene = props.skeleton.getScene();
  40635. this._skeletonViewers = [];
  40636. if (!scene) {
  40637. return;
  40638. }
  40639. for (var _i = 0, _a = scene.meshes; _i < _a.length; _i++) {
  40640. var mesh = _a[_i];
  40641. if (mesh.skeleton === props.skeleton && mesh.reservedDataStore && mesh.reservedDataStore.skeletonViewer) {
  40642. this._skeletonViewers.push(mesh.reservedDataStore.skeletonViewer);
  40643. }
  40644. }
  40645. this._skeletonViewersEnabled = (this._skeletonViewers.length > 0);
  40646. };
  40647. SkeletonPropertyGridComponent.prototype.shouldComponentUpdate = function (nextProps) {
  40648. if (nextProps.skeleton !== this.props.skeleton) {
  40649. this.checkSkeletonViewerState(nextProps);
  40650. }
  40651. return true;
  40652. };
  40653. SkeletonPropertyGridComponent.prototype.onOverrideMeshLink = function () {
  40654. if (!this.props.globalState.onSelectionChangedObservable) {
  40655. return;
  40656. }
  40657. var skeleton = this.props.skeleton;
  40658. this.props.globalState.onSelectionChangedObservable.notifyObservers(skeleton.overrideMesh);
  40659. };
  40660. SkeletonPropertyGridComponent.prototype.render = function () {
  40661. var _this = this;
  40662. var skeleton = this.props.skeleton;
  40663. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  40664. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_customPropertyGridComponent__WEBPACK_IMPORTED_MODULE_7__["CustomPropertyGridComponent"], { globalState: this.props.globalState, target: skeleton, lockObject: this.props.lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40665. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "GENERAL" },
  40666. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "ID", value: skeleton.id }),
  40667. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Bone count", value: skeleton.bones.length.toString() }),
  40668. skeleton.overrideMesh &&
  40669. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Override mesh", value: skeleton.overrideMesh.name, onLink: function () { return _this.onOverrideMeshLink(); } }),
  40670. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Use texture to store matrices", target: skeleton, propertyName: "useTextureToStoreBoneMatrices", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40671. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Debug mode", isSelected: function () { return _this._skeletonViewersEnabled; }, onSelect: function () { return _this.switchSkeletonViewers(); } })),
  40672. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_animationPropertyGridComponent__WEBPACK_IMPORTED_MODULE_5__["AnimationGridComponent"], { globalState: this.props.globalState, animatable: skeleton, scene: skeleton.getScene(), lockObject: this.props.lockObject })));
  40673. };
  40674. return SkeletonPropertyGridComponent;
  40675. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  40676. /***/ }),
  40677. /***/ "./components/actionTabs/tabs/propertyGrids/meshes/transformNodePropertyGridComponent.tsx":
  40678. /*!************************************************************************************************!*\
  40679. !*** ./components/actionTabs/tabs/propertyGrids/meshes/transformNodePropertyGridComponent.tsx ***!
  40680. \************************************************************************************************/
  40681. /*! exports provided: TransformNodePropertyGridComponent */
  40682. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40683. "use strict";
  40684. __webpack_require__.r(__webpack_exports__);
  40685. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransformNodePropertyGridComponent", function() { return TransformNodePropertyGridComponent; });
  40686. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  40687. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  40688. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  40689. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  40690. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  40691. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  40692. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  40693. /* harmony import */ var _lines_quaternionLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/quaternionLineComponent */ "./components/actionTabs/lines/quaternionLineComponent.tsx");
  40694. /* harmony import */ var _customPropertyGridComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../customPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/customPropertyGridComponent.tsx");
  40695. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  40696. var TransformNodePropertyGridComponent = /** @class */ (function (_super) {
  40697. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TransformNodePropertyGridComponent, _super);
  40698. function TransformNodePropertyGridComponent(props) {
  40699. return _super.call(this, props) || this;
  40700. }
  40701. TransformNodePropertyGridComponent.prototype.render = function () {
  40702. var _this = this;
  40703. var transformNode = this.props.transformNode;
  40704. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  40705. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_customPropertyGridComponent__WEBPACK_IMPORTED_MODULE_7__["CustomPropertyGridComponent"], { globalState: this.props.globalState, target: transformNode, lockObject: this.props.lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40706. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "GENERAL" },
  40707. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "ID", value: transformNode.id }),
  40708. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Unique ID", value: transformNode.uniqueId.toString() }),
  40709. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Class", value: transformNode.getClassName() }),
  40710. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "IsEnabled", isSelected: function () { return transformNode.isEnabled(); }, onSelect: function (value) { return transformNode.setEnabled(value); } }),
  40711. transformNode.parent &&
  40712. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Parent", value: transformNode.parent.name, onLink: function () { return _this.props.globalState.onSelectionChangedObservable.notifyObservers(transformNode.parent); } }),
  40713. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_8__["ButtonLineComponent"], { label: "Dispose", onClick: function () {
  40714. transformNode.dispose();
  40715. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  40716. } })),
  40717. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "TRANSFORMATIONS" },
  40718. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Vector3LineComponent"], { label: "Position", target: transformNode, propertyName: "position", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40719. !transformNode.rotationQuaternion &&
  40720. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Vector3LineComponent"], { label: "Rotation", useEuler: this.props.globalState.onlyUseEulers, target: transformNode, propertyName: "rotation", step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40721. transformNode.rotationQuaternion &&
  40722. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_quaternionLineComponent__WEBPACK_IMPORTED_MODULE_6__["QuaternionLineComponent"], { label: "Rotation", useEuler: this.props.globalState.onlyUseEulers, target: transformNode, propertyName: "rotationQuaternion", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40723. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Vector3LineComponent"], { label: "Scaling", target: transformNode, propertyName: "scaling", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  40724. };
  40725. return TransformNodePropertyGridComponent;
  40726. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  40727. /***/ }),
  40728. /***/ "./components/actionTabs/tabs/propertyGrids/particleSystems/boxEmitterGridComponent.tsx":
  40729. /*!**********************************************************************************************!*\
  40730. !*** ./components/actionTabs/tabs/propertyGrids/particleSystems/boxEmitterGridComponent.tsx ***!
  40731. \**********************************************************************************************/
  40732. /*! exports provided: BoxEmitterGridComponent */
  40733. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40734. "use strict";
  40735. __webpack_require__.r(__webpack_exports__);
  40736. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BoxEmitterGridComponent", function() { return BoxEmitterGridComponent; });
  40737. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  40738. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  40739. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  40740. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  40741. var BoxEmitterGridComponent = /** @class */ (function (_super) {
  40742. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BoxEmitterGridComponent, _super);
  40743. function BoxEmitterGridComponent(props) {
  40744. return _super.call(this, props) || this;
  40745. }
  40746. BoxEmitterGridComponent.prototype.render = function () {
  40747. var emitter = this.props.emitter;
  40748. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  40749. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector3LineComponent"], { replaySourceReplacement: this.props.replaySourceReplacement, label: "Direction 1", target: emitter, propertyName: "direction1", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40750. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector3LineComponent"], { replaySourceReplacement: this.props.replaySourceReplacement, label: "Direction 2", target: emitter, propertyName: "direction2", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40751. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector3LineComponent"], { replaySourceReplacement: this.props.replaySourceReplacement, label: "Min emit box", target: emitter, propertyName: "minEmitBox", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40752. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector3LineComponent"], { replaySourceReplacement: this.props.replaySourceReplacement, label: "Max emit box", target: emitter, propertyName: "maxEmitBox", onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  40753. };
  40754. return BoxEmitterGridComponent;
  40755. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  40756. /***/ }),
  40757. /***/ "./components/actionTabs/tabs/propertyGrids/particleSystems/coneEmitterGridComponent.tsx":
  40758. /*!***********************************************************************************************!*\
  40759. !*** ./components/actionTabs/tabs/propertyGrids/particleSystems/coneEmitterGridComponent.tsx ***!
  40760. \***********************************************************************************************/
  40761. /*! exports provided: ConeEmitterGridComponent */
  40762. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40763. "use strict";
  40764. __webpack_require__.r(__webpack_exports__);
  40765. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConeEmitterGridComponent", function() { return ConeEmitterGridComponent; });
  40766. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  40767. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  40768. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  40769. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  40770. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  40771. var ConeEmitterGridComponent = /** @class */ (function (_super) {
  40772. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ConeEmitterGridComponent, _super);
  40773. function ConeEmitterGridComponent(props) {
  40774. return _super.call(this, props) || this;
  40775. }
  40776. ConeEmitterGridComponent.prototype.render = function () {
  40777. var emitter = this.props.emitter;
  40778. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  40779. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_2__["SliderLineComponent"], { replaySourceReplacement: this.props.replaySourceReplacement, label: "Radius range", target: emitter, propertyName: "radiusRange", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40780. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_2__["SliderLineComponent"], { replaySourceReplacement: this.props.replaySourceReplacement, label: "Height range", target: emitter, propertyName: "heightRange", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40781. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { replaySourceReplacement: this.props.replaySourceReplacement, label: "Emit from spawn point only", target: emitter, propertyName: "emitFromSpawnPointOnly", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40782. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_2__["SliderLineComponent"], { replaySourceReplacement: this.props.replaySourceReplacement, label: "Direction randomizer", target: emitter, propertyName: "directionRandomizer", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  40783. };
  40784. return ConeEmitterGridComponent;
  40785. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  40786. /***/ }),
  40787. /***/ "./components/actionTabs/tabs/propertyGrids/particleSystems/cylinderEmitterGridComponent.tsx":
  40788. /*!***************************************************************************************************!*\
  40789. !*** ./components/actionTabs/tabs/propertyGrids/particleSystems/cylinderEmitterGridComponent.tsx ***!
  40790. \***************************************************************************************************/
  40791. /*! exports provided: CylinderEmitterGridComponent */
  40792. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40793. "use strict";
  40794. __webpack_require__.r(__webpack_exports__);
  40795. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CylinderEmitterGridComponent", function() { return CylinderEmitterGridComponent; });
  40796. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  40797. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  40798. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  40799. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  40800. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  40801. var CylinderEmitterGridComponent = /** @class */ (function (_super) {
  40802. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CylinderEmitterGridComponent, _super);
  40803. function CylinderEmitterGridComponent(props) {
  40804. return _super.call(this, props) || this;
  40805. }
  40806. CylinderEmitterGridComponent.prototype.render = function () {
  40807. var emitter = this.props.emitter;
  40808. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  40809. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_3__["FloatLineComponent"], { replaySourceReplacement: this.props.replaySourceReplacement, lockObject: this.props.lockObject, label: "Radius", target: emitter, propertyName: "radius", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40810. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_3__["FloatLineComponent"], { replaySourceReplacement: this.props.replaySourceReplacement, lockObject: this.props.lockObject, label: "Height", target: emitter, propertyName: "height", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40811. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_2__["SliderLineComponent"], { replaySourceReplacement: this.props.replaySourceReplacement, label: "Radius range", target: emitter, propertyName: "radiusRange", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40812. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_2__["SliderLineComponent"], { replaySourceReplacement: this.props.replaySourceReplacement, label: "Direction randomizer", target: emitter, propertyName: "directionRandomizer", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  40813. };
  40814. return CylinderEmitterGridComponent;
  40815. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  40816. /***/ }),
  40817. /***/ "./components/actionTabs/tabs/propertyGrids/particleSystems/hemisphericEmitterGridComponent.tsx":
  40818. /*!******************************************************************************************************!*\
  40819. !*** ./components/actionTabs/tabs/propertyGrids/particleSystems/hemisphericEmitterGridComponent.tsx ***!
  40820. \******************************************************************************************************/
  40821. /*! exports provided: HemisphericEmitterGridComponent */
  40822. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40823. "use strict";
  40824. __webpack_require__.r(__webpack_exports__);
  40825. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HemisphericEmitterGridComponent", function() { return HemisphericEmitterGridComponent; });
  40826. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  40827. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  40828. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  40829. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  40830. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  40831. var HemisphericEmitterGridComponent = /** @class */ (function (_super) {
  40832. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(HemisphericEmitterGridComponent, _super);
  40833. function HemisphericEmitterGridComponent(props) {
  40834. return _super.call(this, props) || this;
  40835. }
  40836. HemisphericEmitterGridComponent.prototype.render = function () {
  40837. var emitter = this.props.emitter;
  40838. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  40839. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_3__["FloatLineComponent"], { replaySourceReplacement: this.props.replaySourceReplacement, lockObject: this.props.lockObject, label: "Radius", target: emitter, propertyName: "radius", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40840. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_2__["SliderLineComponent"], { replaySourceReplacement: this.props.replaySourceReplacement, label: "Radius range", target: emitter, propertyName: "radiusRange", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40841. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_2__["SliderLineComponent"], { replaySourceReplacement: this.props.replaySourceReplacement, label: "Direction randomizer", target: emitter, propertyName: "directionRandomizer", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  40842. };
  40843. return HemisphericEmitterGridComponent;
  40844. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  40845. /***/ }),
  40846. /***/ "./components/actionTabs/tabs/propertyGrids/particleSystems/meshEmitterGridComponent.tsx":
  40847. /*!***********************************************************************************************!*\
  40848. !*** ./components/actionTabs/tabs/propertyGrids/particleSystems/meshEmitterGridComponent.tsx ***!
  40849. \***********************************************************************************************/
  40850. /*! exports provided: MeshEmitterGridComponent */
  40851. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40852. "use strict";
  40853. __webpack_require__.r(__webpack_exports__);
  40854. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MeshEmitterGridComponent", function() { return MeshEmitterGridComponent; });
  40855. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  40856. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  40857. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  40858. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  40859. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  40860. /* harmony import */ var _lines_meshPickerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/meshPickerComponent */ "./components/actionTabs/lines/meshPickerComponent.tsx");
  40861. var MeshEmitterGridComponent = /** @class */ (function (_super) {
  40862. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MeshEmitterGridComponent, _super);
  40863. function MeshEmitterGridComponent(props) {
  40864. return _super.call(this, props) || this;
  40865. }
  40866. MeshEmitterGridComponent.prototype.render = function () {
  40867. var emitter = this.props.emitter;
  40868. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  40869. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_meshPickerComponent__WEBPACK_IMPORTED_MODULE_4__["MeshPickerComponent"], { replaySourceReplacement: this.props.replaySourceReplacement, globalState: this.props.globalState, label: "Source", scene: this.props.scene, onPropertyChangedObservable: this.props.onPropertyChangedObservable, target: this.props.emitter, property: "mesh" }),
  40870. !emitter.useMeshNormalsForDirection &&
  40871. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector3LineComponent"], { replaySourceReplacement: this.props.replaySourceReplacement, label: "Direction 1", target: emitter, propertyName: "direction1", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40872. !emitter.useMeshNormalsForDirection &&
  40873. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector3LineComponent"], { replaySourceReplacement: this.props.replaySourceReplacement, label: "Direction 2", target: emitter, propertyName: "direction2", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40874. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { replaySourceReplacement: this.props.replaySourceReplacement, label: "Use normals for direction", target: emitter, propertyName: "useMeshNormalsForDirection", onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  40875. };
  40876. return MeshEmitterGridComponent;
  40877. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  40878. /***/ }),
  40879. /***/ "./components/actionTabs/tabs/propertyGrids/particleSystems/particleSystemPropertyGridComponent.tsx":
  40880. /*!**********************************************************************************************************!*\
  40881. !*** ./components/actionTabs/tabs/propertyGrids/particleSystems/particleSystemPropertyGridComponent.tsx ***!
  40882. \**********************************************************************************************************/
  40883. /*! exports provided: ParticleSystemPropertyGridComponent */
  40884. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40885. "use strict";
  40886. __webpack_require__.r(__webpack_exports__);
  40887. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ParticleSystemPropertyGridComponent", function() { return ParticleSystemPropertyGridComponent; });
  40888. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  40889. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  40890. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  40891. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  40892. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  40893. /* harmony import */ var _customPropertyGridComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../customPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/customPropertyGridComponent.tsx");
  40894. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  40895. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  40896. /* harmony import */ var _lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/textureLinkLineComponent */ "./components/actionTabs/lines/textureLinkLineComponent.tsx");
  40897. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  40898. /* harmony import */ var babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! babylonjs/Particles/particleSystem */ "babylonjs/Misc/observable");
  40899. /* harmony import */ var babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__);
  40900. /* harmony import */ var _lines_color4LineComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../lines/color4LineComponent */ "./components/actionTabs/lines/color4LineComponent.tsx");
  40901. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  40902. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  40903. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  40904. /* harmony import */ var _boxEmitterGridComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./boxEmitterGridComponent */ "./components/actionTabs/tabs/propertyGrids/particleSystems/boxEmitterGridComponent.tsx");
  40905. /* harmony import */ var _coneEmitterGridComponent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./coneEmitterGridComponent */ "./components/actionTabs/tabs/propertyGrids/particleSystems/coneEmitterGridComponent.tsx");
  40906. /* harmony import */ var _cylinderEmitterGridComponent__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./cylinderEmitterGridComponent */ "./components/actionTabs/tabs/propertyGrids/particleSystems/cylinderEmitterGridComponent.tsx");
  40907. /* harmony import */ var _hemisphericEmitterGridComponent__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./hemisphericEmitterGridComponent */ "./components/actionTabs/tabs/propertyGrids/particleSystems/hemisphericEmitterGridComponent.tsx");
  40908. /* harmony import */ var _pointEmitterGridComponent__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./pointEmitterGridComponent */ "./components/actionTabs/tabs/propertyGrids/particleSystems/pointEmitterGridComponent.tsx");
  40909. /* harmony import */ var _sphereEmitterGridComponent__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./sphereEmitterGridComponent */ "./components/actionTabs/tabs/propertyGrids/particleSystems/sphereEmitterGridComponent.tsx");
  40910. /* harmony import */ var _meshEmitterGridComponent__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./meshEmitterGridComponent */ "./components/actionTabs/tabs/propertyGrids/particleSystems/meshEmitterGridComponent.tsx");
  40911. var ParticleSystemPropertyGridComponent = /** @class */ (function (_super) {
  40912. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ParticleSystemPropertyGridComponent, _super);
  40913. function ParticleSystemPropertyGridComponent(props) {
  40914. return _super.call(this, props) || this;
  40915. }
  40916. ParticleSystemPropertyGridComponent.prototype.renderEmitter = function () {
  40917. var _a;
  40918. var system = this.props.system;
  40919. var replaySource = "particlesystem.particleEmitterType";
  40920. switch ((_a = system.particleEmitterType) === null || _a === void 0 ? void 0 : _a.getClassName()) {
  40921. case "BoxParticleEmitter":
  40922. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_boxEmitterGridComponent__WEBPACK_IMPORTED_MODULE_14__["BoxEmitterGridComponent"], { replaySourceReplacement: replaySource, globalState: this.props.globalState, emitter: system.particleEmitterType, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  40923. case "ConeParticleEmitter":
  40924. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_coneEmitterGridComponent__WEBPACK_IMPORTED_MODULE_15__["ConeEmitterGridComponent"], { replaySourceReplacement: replaySource, globalState: this.props.globalState, emitter: system.particleEmitterType, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  40925. case "CylinderParticleEmitter":
  40926. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_cylinderEmitterGridComponent__WEBPACK_IMPORTED_MODULE_16__["CylinderEmitterGridComponent"], { replaySourceReplacement: replaySource, lockObject: this.props.lockObject, globalState: this.props.globalState, emitter: system.particleEmitterType, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  40927. case "HemisphericParticleEmitter":
  40928. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_hemisphericEmitterGridComponent__WEBPACK_IMPORTED_MODULE_17__["HemisphericEmitterGridComponent"], { replaySourceReplacement: replaySource, lockObject: this.props.lockObject, globalState: this.props.globalState, emitter: system.particleEmitterType, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  40929. case "MeshParticleEmitter":
  40930. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_meshEmitterGridComponent__WEBPACK_IMPORTED_MODULE_20__["MeshEmitterGridComponent"], { replaySourceReplacement: replaySource, lockObject: this.props.lockObject, scene: system.getScene(), globalState: this.props.globalState, emitter: system.particleEmitterType, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  40931. case "PointParticleEmitter":
  40932. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_pointEmitterGridComponent__WEBPACK_IMPORTED_MODULE_18__["PointEmitterGridComponent"], { replaySourceReplacement: replaySource, lockObject: this.props.lockObject, globalState: this.props.globalState, emitter: system.particleEmitterType, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  40933. case "SphereParticleEmitter":
  40934. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sphereEmitterGridComponent__WEBPACK_IMPORTED_MODULE_19__["SphereEmitterGridComponent"], { replaySourceReplacement: replaySource, lockObject: this.props.lockObject, globalState: this.props.globalState, emitter: system.particleEmitterType, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  40935. }
  40936. return null;
  40937. };
  40938. ParticleSystemPropertyGridComponent.prototype.raiseOnPropertyChanged = function (property, newValue, previousValue) {
  40939. if (!this.props.onPropertyChangedObservable) {
  40940. return;
  40941. }
  40942. var system = this.props.system;
  40943. this.props.onPropertyChangedObservable.notifyObservers({
  40944. object: system,
  40945. property: property,
  40946. value: newValue,
  40947. initialValue: previousValue
  40948. });
  40949. };
  40950. ParticleSystemPropertyGridComponent.prototype.render = function () {
  40951. var _this = this;
  40952. var system = this.props.system;
  40953. var blendModeOptions = [
  40954. { label: "Add", value: babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["ParticleSystem"].BLENDMODE_ADD },
  40955. { label: "Multiply", value: babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["ParticleSystem"].BLENDMODE_MULTIPLY },
  40956. { label: "Multiply Add", value: babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["ParticleSystem"].BLENDMODE_MULTIPLYADD },
  40957. { label: "OneOne", value: babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["ParticleSystem"].BLENDMODE_ONEONE },
  40958. { label: "Standard", value: babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["ParticleSystem"].BLENDMODE_STANDARD },
  40959. ];
  40960. var particleEmitterTypeOptions = [
  40961. { label: "Box", value: 0 },
  40962. { label: "Cone", value: 1 },
  40963. { label: "Cylinder", value: 2 },
  40964. { label: "Hemispheric", value: 3 },
  40965. { label: "Mesh", value: 4 },
  40966. { label: "Point", value: 5 },
  40967. { label: "Sphere", value: 6 },
  40968. ];
  40969. var meshEmitters = this.props.system.getScene().meshes.filter(function (m) { return !!m.name; });
  40970. var emitterOptions = [
  40971. { label: "None", value: -1 },
  40972. { label: "Vector3", value: 0 }
  40973. ];
  40974. meshEmitters.sort(function (a, b) { return a.name.localeCompare(b.name); });
  40975. emitterOptions.push.apply(emitterOptions, meshEmitters.map(function (v, i) {
  40976. return { label: v.name, value: i + 1 };
  40977. }));
  40978. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  40979. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_customPropertyGridComponent__WEBPACK_IMPORTED_MODULE_4__["CustomPropertyGridComponent"], { globalState: this.props.globalState, target: system, lockObject: this.props.lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40980. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "GENERAL" },
  40981. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "ID", value: system.id }),
  40982. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Class", value: system.getClassName() }),
  40983. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Capacity", value: system.getCapacity().toString() }),
  40984. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextureLinkLineComponent"], { label: "Texture", texture: system.particleTexture, onSelectionChangedObservable: this.props.onSelectionChangedObservable }),
  40985. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_8__["OptionsLineComponent"], { label: "Blend mode", options: blendModeOptions, target: system, propertyName: "blendMode", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40986. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_11__["Vector3LineComponent"], { label: "Gravity", target: system, propertyName: "gravity", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40987. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_12__["CheckBoxLineComponent"], { label: "Is billboard", target: system, propertyName: "isBillboardBased", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40988. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_12__["CheckBoxLineComponent"], { label: "Is local", target: system, propertyName: "isLocal", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  40989. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_13__["SliderLineComponent"], { label: "Update speed", target: system, propertyName: "updateSpeed", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  40990. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "OPTIONS" },
  40991. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_6__["ButtonLineComponent"], { label: system.isStarted() ? "Stop" : "Start", onClick: function () {
  40992. if (system.isStarted()) {
  40993. system.stop();
  40994. }
  40995. else {
  40996. system.start();
  40997. }
  40998. } })),
  40999. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "EMITTER" },
  41000. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_8__["OptionsLineComponent"], { label: "Emitter", options: emitterOptions, target: system, propertyName: "emitter", noDirectUpdate: true, onSelect: function (value) {
  41001. switch (value) {
  41002. case -1:
  41003. _this.raiseOnPropertyChanged("emitter", null, system.emitter);
  41004. system.emitter = null;
  41005. break;
  41006. case 0:
  41007. _this.raiseOnPropertyChanged("emitter", babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["Vector3"].Zero(), system.emitter);
  41008. system.emitter = babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["Vector3"].Zero();
  41009. break;
  41010. default:
  41011. _this.raiseOnPropertyChanged("emitter", meshEmitters[value - 1], system.emitter);
  41012. system.emitter = meshEmitters[value - 1];
  41013. }
  41014. _this.forceUpdate();
  41015. }, extractValue: function () {
  41016. if (!system.emitter) {
  41017. return -1;
  41018. }
  41019. if (system.emitter.x !== undefined) {
  41020. return 0;
  41021. }
  41022. var meshIndex = meshEmitters.indexOf(system.emitter);
  41023. if (meshIndex > -1) {
  41024. return meshIndex + 1;
  41025. }
  41026. return -1;
  41027. } }),
  41028. system.emitter && (system.emitter.x === undefined) &&
  41029. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Link to emitter", value: system.emitter.name, onLink: function () { return _this.props.globalState.onSelectionChangedObservable.notifyObservers(system.emitter); } }),
  41030. system.emitter && (system.emitter.x !== undefined) &&
  41031. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_11__["Vector3LineComponent"], { label: "Position", target: system, propertyName: "emitter", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41032. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_8__["OptionsLineComponent"], { label: "Type", options: particleEmitterTypeOptions, target: system, propertyName: "particleEmitterType", noDirectUpdate: true, onSelect: function (value) {
  41033. var currentType = system.particleEmitterType;
  41034. switch (value) {
  41035. case 0:
  41036. system.particleEmitterType = new babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["BoxParticleEmitter"]();
  41037. break;
  41038. case 1:
  41039. system.particleEmitterType = new babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["ConeParticleEmitter"]();
  41040. break;
  41041. case 2:
  41042. system.particleEmitterType = new babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["CylinderParticleEmitter"]();
  41043. break;
  41044. case 3:
  41045. system.particleEmitterType = new babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["HemisphericParticleEmitter"]();
  41046. break;
  41047. case 4:
  41048. system.particleEmitterType = new babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["MeshParticleEmitter"]();
  41049. break;
  41050. case 5:
  41051. system.particleEmitterType = new babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["PointParticleEmitter"]();
  41052. break;
  41053. case 6:
  41054. system.particleEmitterType = new babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["SphereParticleEmitter"]();
  41055. break;
  41056. }
  41057. _this.raiseOnPropertyChanged("particleEmitterType", system.particleEmitterType, currentType);
  41058. _this.forceUpdate();
  41059. }, extractValue: function () {
  41060. var _a;
  41061. switch ((_a = system.particleEmitterType) === null || _a === void 0 ? void 0 : _a.getClassName()) {
  41062. case "BoxParticleEmitter":
  41063. return 0;
  41064. case "ConeParticleEmitter":
  41065. return 1;
  41066. case "CylinderParticleEmitter":
  41067. return 2;
  41068. case "HemisphericParticleEmitter":
  41069. return 3;
  41070. case "MeshParticleEmitter":
  41071. return 4;
  41072. case "PointParticleEmitter":
  41073. return 5;
  41074. case "SphereParticleEmitter":
  41075. return 6;
  41076. }
  41077. return 0;
  41078. } }),
  41079. this.renderEmitter()),
  41080. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "EMISSION" },
  41081. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Rate", target: system, propertyName: "emitRate", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41082. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Min emit power", target: system, propertyName: "minEmitPower", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41083. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Max emit power", target: system, propertyName: "maxEmitPower", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  41084. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "SIZE" },
  41085. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Min size", target: system, propertyName: "minSize", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41086. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Max size", target: system, propertyName: "maxSize", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41087. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Min scale X", target: system, propertyName: "minScaleX", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41088. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Max scale X", target: system, propertyName: "maxScaleX", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41089. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Min scale Y", target: system, propertyName: "minScaleY", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41090. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Max scale Y", target: system, propertyName: "maxScaleY", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  41091. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "LIFETIME" },
  41092. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Min lifetime", target: system, propertyName: "minLifeTime", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41093. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Max lifetime", target: system, propertyName: "maxLifeTime", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  41094. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "COLORS" },
  41095. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color4LineComponent__WEBPACK_IMPORTED_MODULE_10__["Color4LineComponent"], { label: "Color 1", target: system, propertyName: "color1", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41096. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color4LineComponent__WEBPACK_IMPORTED_MODULE_10__["Color4LineComponent"], { label: "Color 2", target: system, propertyName: "color2", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41097. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color4LineComponent__WEBPACK_IMPORTED_MODULE_10__["Color4LineComponent"], { label: "Color dead", target: system, propertyName: "colorDead", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  41098. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "ROTATION" },
  41099. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Min angular speed", target: system, propertyName: "minAngularSpeed", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41100. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Max angular speed", target: system, propertyName: "maxAngularSpeed", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41101. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Min initial rotation", target: system, propertyName: "minInitialRotation", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41102. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Max initial rotation", target: system, propertyName: "maxInitialRotation", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  41103. };
  41104. return ParticleSystemPropertyGridComponent;
  41105. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  41106. /***/ }),
  41107. /***/ "./components/actionTabs/tabs/propertyGrids/particleSystems/pointEmitterGridComponent.tsx":
  41108. /*!************************************************************************************************!*\
  41109. !*** ./components/actionTabs/tabs/propertyGrids/particleSystems/pointEmitterGridComponent.tsx ***!
  41110. \************************************************************************************************/
  41111. /*! exports provided: PointEmitterGridComponent */
  41112. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41113. "use strict";
  41114. __webpack_require__.r(__webpack_exports__);
  41115. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PointEmitterGridComponent", function() { return PointEmitterGridComponent; });
  41116. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  41117. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  41118. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  41119. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  41120. var PointEmitterGridComponent = /** @class */ (function (_super) {
  41121. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PointEmitterGridComponent, _super);
  41122. function PointEmitterGridComponent(props) {
  41123. return _super.call(this, props) || this;
  41124. }
  41125. PointEmitterGridComponent.prototype.render = function () {
  41126. var emitter = this.props.emitter;
  41127. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  41128. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector3LineComponent"], { replaySourceReplacement: this.props.replaySourceReplacement, label: "Direction 1", target: emitter, propertyName: "direction1", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41129. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector3LineComponent"], { replaySourceReplacement: this.props.replaySourceReplacement, label: "Direction 2", target: emitter, propertyName: "direction2", onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  41130. };
  41131. return PointEmitterGridComponent;
  41132. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  41133. /***/ }),
  41134. /***/ "./components/actionTabs/tabs/propertyGrids/particleSystems/sphereEmitterGridComponent.tsx":
  41135. /*!*************************************************************************************************!*\
  41136. !*** ./components/actionTabs/tabs/propertyGrids/particleSystems/sphereEmitterGridComponent.tsx ***!
  41137. \*************************************************************************************************/
  41138. /*! exports provided: SphereEmitterGridComponent */
  41139. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41140. "use strict";
  41141. __webpack_require__.r(__webpack_exports__);
  41142. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SphereEmitterGridComponent", function() { return SphereEmitterGridComponent; });
  41143. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  41144. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  41145. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  41146. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  41147. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  41148. var SphereEmitterGridComponent = /** @class */ (function (_super) {
  41149. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SphereEmitterGridComponent, _super);
  41150. function SphereEmitterGridComponent(props) {
  41151. return _super.call(this, props) || this;
  41152. }
  41153. SphereEmitterGridComponent.prototype.render = function () {
  41154. var emitter = this.props.emitter;
  41155. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  41156. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_2__["FloatLineComponent"], { replaySourceReplacement: this.props.replaySourceReplacement, lockObject: this.props.lockObject, label: "Radius", target: emitter, propertyName: "radius", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41157. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { replaySourceReplacement: this.props.replaySourceReplacement, label: "Radius range", target: emitter, propertyName: "radiusRange", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41158. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { replaySourceReplacement: this.props.replaySourceReplacement, label: "Direction randomizer", target: emitter, propertyName: "directionRandomizer", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  41159. };
  41160. return SphereEmitterGridComponent;
  41161. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  41162. /***/ }),
  41163. /***/ "./components/actionTabs/tabs/propertyGrids/postProcesses/commonPostProcessPropertyGridComponent.tsx":
  41164. /*!***********************************************************************************************************!*\
  41165. !*** ./components/actionTabs/tabs/propertyGrids/postProcesses/commonPostProcessPropertyGridComponent.tsx ***!
  41166. \***********************************************************************************************************/
  41167. /*! exports provided: CommonPostProcessPropertyGridComponent */
  41168. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41169. "use strict";
  41170. __webpack_require__.r(__webpack_exports__);
  41171. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CommonPostProcessPropertyGridComponent", function() { return CommonPostProcessPropertyGridComponent; });
  41172. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  41173. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  41174. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  41175. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  41176. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  41177. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  41178. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  41179. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  41180. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  41181. var CommonPostProcessPropertyGridComponent = /** @class */ (function (_super) {
  41182. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CommonPostProcessPropertyGridComponent, _super);
  41183. function CommonPostProcessPropertyGridComponent(props) {
  41184. return _super.call(this, props) || this;
  41185. }
  41186. CommonPostProcessPropertyGridComponent.prototype.render = function () {
  41187. var _this = this;
  41188. var postProcess = this.props.postProcess;
  41189. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  41190. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "GENERAL" },
  41191. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Class", value: postProcess.getClassName() }),
  41192. postProcess.width &&
  41193. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Width", value: postProcess.width.toString() }),
  41194. postProcess.height &&
  41195. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Height", value: postProcess.height.toString() }),
  41196. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_2__["CheckBoxLineComponent"], { label: "Auto clear", target: postProcess, propertyName: "autoClear", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41197. postProcess.clearColor &&
  41198. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_5__["Color3LineComponent"], { label: "Clear color", target: postProcess, propertyName: "clearColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41199. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_2__["CheckBoxLineComponent"], { label: "Pixel perfect", target: postProcess, propertyName: "enablePixelPerfectMode", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41200. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_2__["CheckBoxLineComponent"], { label: "Fullscreen viewport", target: postProcess, propertyName: "forceFullscreenViewport", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41201. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_6__["SliderLineComponent"], { label: "Samples", target: postProcess, propertyName: "samples", minimum: 1, maximum: 8, step: 1, decimalCount: 0, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41202. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_7__["ButtonLineComponent"], { label: "Dispose", onClick: function () {
  41203. postProcess.dispose();
  41204. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  41205. } }))));
  41206. };
  41207. return CommonPostProcessPropertyGridComponent;
  41208. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  41209. /***/ }),
  41210. /***/ "./components/actionTabs/tabs/propertyGrids/postProcesses/commonRenderingPipelinePropertyGridComponent.tsx":
  41211. /*!*****************************************************************************************************************!*\
  41212. !*** ./components/actionTabs/tabs/propertyGrids/postProcesses/commonRenderingPipelinePropertyGridComponent.tsx ***!
  41213. \*****************************************************************************************************************/
  41214. /*! exports provided: CommonRenderingPipelinePropertyGridComponent */
  41215. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41216. "use strict";
  41217. __webpack_require__.r(__webpack_exports__);
  41218. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CommonRenderingPipelinePropertyGridComponent", function() { return CommonRenderingPipelinePropertyGridComponent; });
  41219. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  41220. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  41221. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  41222. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  41223. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  41224. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  41225. var CommonRenderingPipelinePropertyGridComponent = /** @class */ (function (_super) {
  41226. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CommonRenderingPipelinePropertyGridComponent, _super);
  41227. function CommonRenderingPipelinePropertyGridComponent(props) {
  41228. return _super.call(this, props) || this;
  41229. }
  41230. CommonRenderingPipelinePropertyGridComponent.prototype.render = function () {
  41231. var renderPipeline = this.props.renderPipeline;
  41232. var renderPipelineAsAny = renderPipeline;
  41233. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  41234. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "GENERAL" },
  41235. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Class", value: renderPipeline.getClassName() }),
  41236. renderPipelineAsAny.samples !== undefined &&
  41237. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_4__["SliderLineComponent"], { label: "Samples", minimum: 1, maximum: 8, step: 1, decimalCount: 0, target: renderPipeline, propertyName: "samples", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  41238. };
  41239. return CommonRenderingPipelinePropertyGridComponent;
  41240. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  41241. /***/ }),
  41242. /***/ "./components/actionTabs/tabs/propertyGrids/postProcesses/defaultRenderingPipelinePropertyGridComponent.tsx":
  41243. /*!******************************************************************************************************************!*\
  41244. !*** ./components/actionTabs/tabs/propertyGrids/postProcesses/defaultRenderingPipelinePropertyGridComponent.tsx ***!
  41245. \******************************************************************************************************************/
  41246. /*! exports provided: DefaultRenderingPipelinePropertyGridComponent */
  41247. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41248. "use strict";
  41249. __webpack_require__.r(__webpack_exports__);
  41250. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultRenderingPipelinePropertyGridComponent", function() { return DefaultRenderingPipelinePropertyGridComponent; });
  41251. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  41252. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  41253. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  41254. /* harmony import */ var _commonRenderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonRenderingPipelinePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/postProcesses/commonRenderingPipelinePropertyGridComponent.tsx");
  41255. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  41256. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  41257. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  41258. /* harmony import */ var _lines_vector2LineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/vector2LineComponent */ "./components/actionTabs/lines/vector2LineComponent.tsx");
  41259. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  41260. /* harmony import */ var babylonjs_Materials_imageProcessingConfiguration__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! babylonjs/Materials/imageProcessingConfiguration */ "babylonjs/Misc/observable");
  41261. /* harmony import */ var babylonjs_Materials_imageProcessingConfiguration__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_imageProcessingConfiguration__WEBPACK_IMPORTED_MODULE_8__);
  41262. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  41263. var DefaultRenderingPipelinePropertyGridComponent = /** @class */ (function (_super) {
  41264. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DefaultRenderingPipelinePropertyGridComponent, _super);
  41265. function DefaultRenderingPipelinePropertyGridComponent(props) {
  41266. return _super.call(this, props) || this;
  41267. }
  41268. DefaultRenderingPipelinePropertyGridComponent.prototype.render = function () {
  41269. var _this = this;
  41270. var renderPipeline = this.props.renderPipeline;
  41271. var camera = renderPipeline.scene.activeCamera;
  41272. var toneMappingOptions = [
  41273. { label: "Standard", value: babylonjs_Materials_imageProcessingConfiguration__WEBPACK_IMPORTED_MODULE_8__["ImageProcessingConfiguration"].TONEMAPPING_STANDARD },
  41274. { label: "ACES", value: babylonjs_Materials_imageProcessingConfiguration__WEBPACK_IMPORTED_MODULE_8__["ImageProcessingConfiguration"].TONEMAPPING_ACES }
  41275. ];
  41276. var vignetteModeOptions = [
  41277. { label: "Multiply", value: babylonjs_Materials_imageProcessingConfiguration__WEBPACK_IMPORTED_MODULE_8__["ImageProcessingConfiguration"].VIGNETTEMODE_MULTIPLY },
  41278. { label: "Opaque", value: babylonjs_Materials_imageProcessingConfiguration__WEBPACK_IMPORTED_MODULE_8__["ImageProcessingConfiguration"].VIGNETTEMODE_OPAQUE }
  41279. ];
  41280. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  41281. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonRenderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__["CommonRenderingPipelinePropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, renderPipeline: renderPipeline, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41282. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "BLOOM" },
  41283. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Enabled", target: renderPipeline, onValueChanged: function () { return _this.forceUpdate(); }, propertyName: "bloomEnabled", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41284. renderPipeline.bloomEnabled &&
  41285. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  41286. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Threshold", minimum: 0, maximum: 1, step: 0.05, target: renderPipeline, propertyName: "bloomThreshold", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41287. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Weight", minimum: 0, maximum: 1, step: 0.05, target: renderPipeline, propertyName: "bloomWeight", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41288. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Kernel", minimum: 0, maximum: 128, step: 1, target: renderPipeline, propertyName: "bloomKernel", onPropertyChangedObservable: this.props.onPropertyChangedObservable, decimalCount: 0 }),
  41289. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Scale", minimum: 0, maximum: 1, step: 0.25, target: renderPipeline, propertyName: "bloomScale", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))),
  41290. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "CHROMATIC ABERRATION" },
  41291. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Enabled", target: renderPipeline, onValueChanged: function () { return _this.forceUpdate(); }, propertyName: "chromaticAberrationEnabled", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41292. renderPipeline.chromaticAberrationEnabled &&
  41293. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  41294. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "aberrationAmount", minimum: 0, maximum: 128, step: 0.1, target: renderPipeline.chromaticAberration, propertyName: "aberrationAmount", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41295. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Radial intensity", minimum: 0, maximum: 1, step: 0.01, target: renderPipeline.chromaticAberration, propertyName: "radialIntensity", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41296. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector2LineComponent__WEBPACK_IMPORTED_MODULE_6__["Vector2LineComponent"], { label: "Center", target: renderPipeline.chromaticAberration, propertyName: "centerPosition", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41297. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector2LineComponent__WEBPACK_IMPORTED_MODULE_6__["Vector2LineComponent"], { label: "Direction", target: renderPipeline.chromaticAberration, propertyName: "direction", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))),
  41298. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "DEPTH OF FIELD" },
  41299. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Enabled", target: renderPipeline, onValueChanged: function () { return _this.forceUpdate(); }, propertyName: "depthOfFieldEnabled", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41300. renderPipeline.depthOfFieldEnabled &&
  41301. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  41302. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Focal length", minimum: 0, maximum: camera.maxZ, step: 0.1, target: renderPipeline.depthOfField, propertyName: "focalLength", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41303. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "fStop", minimum: 0, maximum: 32, step: 0.1, target: renderPipeline.depthOfField, propertyName: "fStop", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41304. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Distance", minimum: 0, maximum: camera.maxZ, step: 0.1, target: renderPipeline.depthOfField, propertyName: "focusDistance", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41305. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Lens size", minimum: 0, maximum: 1000, step: 1, target: renderPipeline.depthOfField, propertyName: "lensSize", onPropertyChangedObservable: this.props.onPropertyChangedObservable, decimalCount: 0 }))),
  41306. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "FXAA" },
  41307. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Enabled", target: renderPipeline, propertyName: "fxaaEnabled", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  41308. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "GLOW LAYER" },
  41309. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Enabled", target: renderPipeline, propertyName: "glowLayerEnabled", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41310. renderPipeline.glowLayerEnabled &&
  41311. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  41312. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Blur kernel size", minimum: 1, maximum: 128, step: 1, decimalCount: 0, target: renderPipeline.glowLayer, propertyName: "blurKernelSize", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41313. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Intensity", minimum: 0, maximum: 10, step: 0.1, target: renderPipeline.glowLayer, propertyName: "intensity", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))),
  41314. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "GRAIN" },
  41315. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Enabled", target: renderPipeline, onValueChanged: function () { return _this.forceUpdate(); }, propertyName: "grainEnabled", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41316. renderPipeline.grainEnabled &&
  41317. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  41318. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Animated", target: renderPipeline.grain, propertyName: "animated", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41319. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Intensity", minimum: 0, maximum: 50, step: 0.1, target: renderPipeline.grain, propertyName: "intensity", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))),
  41320. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "IMAGE PROCESSING" },
  41321. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Enabled", target: renderPipeline, onValueChanged: function () { return _this.forceUpdate(); }, propertyName: "imageProcessingEnabled", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41322. renderPipeline.imageProcessing &&
  41323. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  41324. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { minimum: 0, maximum: 4, step: 0.1, label: "Contrast", target: renderPipeline.imageProcessing, propertyName: "contrast", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41325. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { minimum: 0, maximum: 4, step: 0.1, label: "Exposure", target: renderPipeline.imageProcessing, propertyName: "exposure", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41326. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Tone mapping", target: renderPipeline.imageProcessing, propertyName: "toneMappingEnabled", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41327. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_7__["OptionsLineComponent"], { label: "Tone mapping type", options: toneMappingOptions, target: renderPipeline.imageProcessing, propertyName: "toneMappingType", onPropertyChangedObservable: this.props.onPropertyChangedObservable, onSelect: function (value) { return _this.setState({ mode: value }); } }),
  41328. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Vignette", target: renderPipeline.imageProcessing, propertyName: "vignetteEnabled", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41329. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { minimum: 0, maximum: 4, step: 0.1, label: "Vignette weight", target: renderPipeline.imageProcessing, propertyName: "vignetteWeight", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41330. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { minimum: 0, maximum: 1, step: 0.1, label: "Vignette stretch", target: renderPipeline.imageProcessing, propertyName: "vignetteStretch", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41331. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { minimum: 0, maximum: Math.PI, step: 0.1, label: "Vignette FOV", target: renderPipeline.imageProcessing, propertyName: "vignetteCameraFov", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41332. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { minimum: 0, maximum: 1, step: 0.1, label: "Vignette center X", target: renderPipeline.imageProcessing, propertyName: "vignetteCentreX", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41333. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { minimum: 0, maximum: 1, step: 0.1, label: "Vignette center Y", target: renderPipeline.imageProcessing, propertyName: "vignetteCentreY", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41334. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_9__["Color3LineComponent"], { label: "Vignette color", target: renderPipeline.imageProcessing, propertyName: "vignetteColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41335. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_7__["OptionsLineComponent"], { label: "Vignette blend mode", options: vignetteModeOptions, target: renderPipeline.imageProcessing, propertyName: "vignetteBlendMode", onPropertyChangedObservable: this.props.onPropertyChangedObservable, onSelect: function (value) { return _this.setState({ mode: value }); } }))),
  41336. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "SHARPEN" },
  41337. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Enabled", target: renderPipeline, onValueChanged: function () { return _this.forceUpdate(); }, propertyName: "sharpenEnabled", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41338. renderPipeline.sharpenEnabled &&
  41339. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  41340. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Color amount", minimum: 0, maximum: 1, step: 0.05, target: renderPipeline.sharpen, propertyName: "colorAmount", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41341. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Edge amount", minimum: 0, maximum: 5, step: 0.05, target: renderPipeline.sharpen, propertyName: "edgeAmount", onPropertyChangedObservable: this.props.onPropertyChangedObservable })))));
  41342. };
  41343. return DefaultRenderingPipelinePropertyGridComponent;
  41344. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  41345. /***/ }),
  41346. /***/ "./components/actionTabs/tabs/propertyGrids/postProcesses/lensRenderingPipelinePropertyGridComponent.tsx":
  41347. /*!***************************************************************************************************************!*\
  41348. !*** ./components/actionTabs/tabs/propertyGrids/postProcesses/lensRenderingPipelinePropertyGridComponent.tsx ***!
  41349. \***************************************************************************************************************/
  41350. /*! exports provided: LensRenderingPipelinePropertyGridComponent */
  41351. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41352. "use strict";
  41353. __webpack_require__.r(__webpack_exports__);
  41354. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LensRenderingPipelinePropertyGridComponent", function() { return LensRenderingPipelinePropertyGridComponent; });
  41355. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  41356. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  41357. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  41358. /* harmony import */ var _commonRenderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonRenderingPipelinePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/postProcesses/commonRenderingPipelinePropertyGridComponent.tsx");
  41359. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  41360. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  41361. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  41362. var LensRenderingPipelinePropertyGridComponent = /** @class */ (function (_super) {
  41363. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LensRenderingPipelinePropertyGridComponent, _super);
  41364. function LensRenderingPipelinePropertyGridComponent(props) {
  41365. return _super.call(this, props) || this;
  41366. }
  41367. LensRenderingPipelinePropertyGridComponent.prototype.render = function () {
  41368. var renderPipeline = this.props.renderPipeline;
  41369. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  41370. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonRenderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__["CommonRenderingPipelinePropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, renderPipeline: renderPipeline, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41371. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "OPTIONS" },
  41372. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Edge blur", minimum: 0, maximum: 5, step: 0.1, target: renderPipeline, propertyName: "edgeBlur", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41373. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Edge distortion", minimum: 0, maximum: 5, step: 0.1, target: renderPipeline, propertyName: "edgeDistortion", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41374. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Grain amount", minimum: 0, maximum: 1, step: 0.1, target: renderPipeline, propertyName: "grainAmount", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41375. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Chromatic aberration", minimum: 0, maximum: 5, step: 0.1, target: renderPipeline, propertyName: "chromaticAberration", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41376. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Darken out of focus", minimum: 0, maximum: 5, step: 0.1, target: renderPipeline, propertyName: "darkenOutOfFocus", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41377. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Blur noise", target: renderPipeline, propertyName: "blurNoise", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  41378. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "DEPTH OF FIELD" },
  41379. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Aperture", minimum: 0, maximum: 10, step: 0.1, target: renderPipeline, propertyName: "dofAperture", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41380. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Distortion", minimum: 0, maximum: 10, step: 0.1, target: renderPipeline, propertyName: "dofDistortion", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41381. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Pentagon bokeh", target: renderPipeline, propertyName: "pentagonBokeh", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41382. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Highlight gain", minimum: 0, maximum: 5, step: 0.1, target: renderPipeline, propertyName: "highlightsGain", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41383. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Highlight threshold", minimum: 0, maximum: 5, step: 0.1, target: renderPipeline, propertyName: "highlightsThreshold", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  41384. };
  41385. return LensRenderingPipelinePropertyGridComponent;
  41386. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  41387. /***/ }),
  41388. /***/ "./components/actionTabs/tabs/propertyGrids/postProcesses/postProcessPropertyGridComponent.tsx":
  41389. /*!*****************************************************************************************************!*\
  41390. !*** ./components/actionTabs/tabs/propertyGrids/postProcesses/postProcessPropertyGridComponent.tsx ***!
  41391. \*****************************************************************************************************/
  41392. /*! exports provided: PostProcessPropertyGridComponent */
  41393. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41394. "use strict";
  41395. __webpack_require__.r(__webpack_exports__);
  41396. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PostProcessPropertyGridComponent", function() { return PostProcessPropertyGridComponent; });
  41397. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  41398. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  41399. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  41400. /* harmony import */ var _commonPostProcessPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonPostProcessPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/postProcesses/commonPostProcessPropertyGridComponent.tsx");
  41401. var PostProcessPropertyGridComponent = /** @class */ (function (_super) {
  41402. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PostProcessPropertyGridComponent, _super);
  41403. function PostProcessPropertyGridComponent(props) {
  41404. return _super.call(this, props) || this;
  41405. }
  41406. PostProcessPropertyGridComponent.prototype.render = function () {
  41407. var postProcess = this.props.postProcess;
  41408. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  41409. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonPostProcessPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__["CommonPostProcessPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, postProcess: postProcess, onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  41410. };
  41411. return PostProcessPropertyGridComponent;
  41412. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  41413. /***/ }),
  41414. /***/ "./components/actionTabs/tabs/propertyGrids/postProcesses/renderingPipelinePropertyGridComponent.tsx":
  41415. /*!***********************************************************************************************************!*\
  41416. !*** ./components/actionTabs/tabs/propertyGrids/postProcesses/renderingPipelinePropertyGridComponent.tsx ***!
  41417. \***********************************************************************************************************/
  41418. /*! exports provided: RenderingPipelinePropertyGridComponent */
  41419. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41420. "use strict";
  41421. __webpack_require__.r(__webpack_exports__);
  41422. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RenderingPipelinePropertyGridComponent", function() { return RenderingPipelinePropertyGridComponent; });
  41423. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  41424. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  41425. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  41426. /* harmony import */ var _commonRenderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonRenderingPipelinePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/postProcesses/commonRenderingPipelinePropertyGridComponent.tsx");
  41427. var RenderingPipelinePropertyGridComponent = /** @class */ (function (_super) {
  41428. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RenderingPipelinePropertyGridComponent, _super);
  41429. function RenderingPipelinePropertyGridComponent(props) {
  41430. return _super.call(this, props) || this;
  41431. }
  41432. RenderingPipelinePropertyGridComponent.prototype.render = function () {
  41433. var renderPipeline = this.props.renderPipeline;
  41434. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  41435. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonRenderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__["CommonRenderingPipelinePropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, renderPipeline: renderPipeline, onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  41436. };
  41437. return RenderingPipelinePropertyGridComponent;
  41438. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  41439. /***/ }),
  41440. /***/ "./components/actionTabs/tabs/propertyGrids/postProcesses/ssao2RenderingPipelinePropertyGridComponent.tsx":
  41441. /*!****************************************************************************************************************!*\
  41442. !*** ./components/actionTabs/tabs/propertyGrids/postProcesses/ssao2RenderingPipelinePropertyGridComponent.tsx ***!
  41443. \****************************************************************************************************************/
  41444. /*! exports provided: SSAO2RenderingPipelinePropertyGridComponent */
  41445. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41446. "use strict";
  41447. __webpack_require__.r(__webpack_exports__);
  41448. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SSAO2RenderingPipelinePropertyGridComponent", function() { return SSAO2RenderingPipelinePropertyGridComponent; });
  41449. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  41450. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  41451. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  41452. /* harmony import */ var _commonRenderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonRenderingPipelinePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/postProcesses/commonRenderingPipelinePropertyGridComponent.tsx");
  41453. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  41454. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  41455. var SSAO2RenderingPipelinePropertyGridComponent = /** @class */ (function (_super) {
  41456. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SSAO2RenderingPipelinePropertyGridComponent, _super);
  41457. function SSAO2RenderingPipelinePropertyGridComponent(props) {
  41458. return _super.call(this, props) || this;
  41459. }
  41460. SSAO2RenderingPipelinePropertyGridComponent.prototype.render = function () {
  41461. var renderPipeline = this.props.renderPipeline;
  41462. var camera = renderPipeline.scene.activeCamera;
  41463. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  41464. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonRenderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__["CommonRenderingPipelinePropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, renderPipeline: renderPipeline, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41465. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "SSAO" },
  41466. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Strength", minimum: 0, maximum: 2, step: 0.05, target: renderPipeline, propertyName: "totalStrength", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41467. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Base", minimum: 0, maximum: 1, step: 0.05, target: renderPipeline, propertyName: "base", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41468. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Max Z", minimum: 0, maximum: camera.maxZ, step: 1, target: renderPipeline, propertyName: "maxZ", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41469. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Min Z aspect", minimum: 0, maximum: 0.5, step: 0.01, target: renderPipeline, propertyName: "minZAspect", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41470. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Radius", minimum: 0, maximum: 10, step: 0.05, target: renderPipeline, propertyName: "radius", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  41471. };
  41472. return SSAO2RenderingPipelinePropertyGridComponent;
  41473. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  41474. /***/ }),
  41475. /***/ "./components/actionTabs/tabs/propertyGrids/postProcesses/ssaoRenderingPipelinePropertyGridComponent.tsx":
  41476. /*!***************************************************************************************************************!*\
  41477. !*** ./components/actionTabs/tabs/propertyGrids/postProcesses/ssaoRenderingPipelinePropertyGridComponent.tsx ***!
  41478. \***************************************************************************************************************/
  41479. /*! exports provided: SSAORenderingPipelinePropertyGridComponent */
  41480. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41481. "use strict";
  41482. __webpack_require__.r(__webpack_exports__);
  41483. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SSAORenderingPipelinePropertyGridComponent", function() { return SSAORenderingPipelinePropertyGridComponent; });
  41484. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  41485. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  41486. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  41487. /* harmony import */ var _commonRenderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonRenderingPipelinePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/postProcesses/commonRenderingPipelinePropertyGridComponent.tsx");
  41488. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  41489. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  41490. var SSAORenderingPipelinePropertyGridComponent = /** @class */ (function (_super) {
  41491. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SSAORenderingPipelinePropertyGridComponent, _super);
  41492. function SSAORenderingPipelinePropertyGridComponent(props) {
  41493. return _super.call(this, props) || this;
  41494. }
  41495. SSAORenderingPipelinePropertyGridComponent.prototype.render = function () {
  41496. var renderPipeline = this.props.renderPipeline;
  41497. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  41498. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonRenderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__["CommonRenderingPipelinePropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, renderPipeline: renderPipeline, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41499. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "SSAO" },
  41500. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Strength", minimum: 0, maximum: 2, step: 0.05, target: renderPipeline, propertyName: "totalStrength", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41501. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Base", minimum: 0, maximum: 1, step: 0.05, target: renderPipeline, propertyName: "base", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41502. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Radius", minimum: 0.0001, maximum: 0.001, step: 0.0001, target: renderPipeline, propertyName: "radius", onPropertyChangedObservable: this.props.onPropertyChangedObservable, decimalCount: 4 }),
  41503. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Area", minimum: 0.0001, maximum: 0.01, step: 0.0001, target: renderPipeline, propertyName: "area", onPropertyChangedObservable: this.props.onPropertyChangedObservable, decimalCount: 4 }),
  41504. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Falloff", minimum: 0, maximum: 0.00001, step: 0.000001, target: renderPipeline, propertyName: "fallOff", onPropertyChangedObservable: this.props.onPropertyChangedObservable, decimalCount: 6 }))));
  41505. };
  41506. return SSAORenderingPipelinePropertyGridComponent;
  41507. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  41508. /***/ }),
  41509. /***/ "./components/actionTabs/tabs/propertyGrids/renderGridPropertyGridComponent.tsx":
  41510. /*!**************************************************************************************!*\
  41511. !*** ./components/actionTabs/tabs/propertyGrids/renderGridPropertyGridComponent.tsx ***!
  41512. \**************************************************************************************/
  41513. /*! exports provided: RenderGridPropertyGridComponent */
  41514. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41515. "use strict";
  41516. __webpack_require__.r(__webpack_exports__);
  41517. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RenderGridPropertyGridComponent", function() { return RenderGridPropertyGridComponent; });
  41518. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  41519. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  41520. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  41521. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Misc/observable");
  41522. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__);
  41523. /* harmony import */ var babylonjs_materials_grid_gridMaterial__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs-materials/grid/gridMaterial */ "babylonjs-materials/grid/gridMaterial");
  41524. /* harmony import */ var babylonjs_materials_grid_gridMaterial__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babylonjs_materials_grid_gridMaterial__WEBPACK_IMPORTED_MODULE_3__);
  41525. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  41526. var RenderGridPropertyGridComponent = /** @class */ (function (_super) {
  41527. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RenderGridPropertyGridComponent, _super);
  41528. function RenderGridPropertyGridComponent(props) {
  41529. var _this = _super.call(this, props) || this;
  41530. _this.state = { isEnabled: false };
  41531. return _this;
  41532. }
  41533. RenderGridPropertyGridComponent.prototype.componentDidMount = function () {
  41534. var scene = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["UtilityLayerRenderer"].DefaultKeepDepthUtilityLayer.utilityLayerScene;
  41535. for (var _i = 0, _a = scene.meshes; _i < _a.length; _i++) {
  41536. var mesh = _a[_i];
  41537. if (mesh.reservedDataStore && mesh.reservedDataStore.isInspectorGrid) {
  41538. this._gridMesh = mesh;
  41539. this.setState({ isEnabled: true });
  41540. return;
  41541. }
  41542. }
  41543. };
  41544. RenderGridPropertyGridComponent.prototype.addOrRemoveGrid = function () {
  41545. var scene = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["UtilityLayerRenderer"].DefaultKeepDepthUtilityLayer.utilityLayerScene;
  41546. if (!this._gridMesh) {
  41547. var extend = this.props.scene.getWorldExtends();
  41548. var width = (extend.max.x - extend.min.x) * 5.0;
  41549. var depth = (extend.max.z - extend.min.z) * 5.0;
  41550. this._gridMesh = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Mesh"].CreateGround("grid", 1.0, 1.0, 1, scene);
  41551. if (!this._gridMesh.reservedDataStore) {
  41552. this._gridMesh.reservedDataStore = {};
  41553. }
  41554. this._gridMesh.scaling.x = Math.max(width, depth);
  41555. this._gridMesh.scaling.z = this._gridMesh.scaling.x;
  41556. this._gridMesh.reservedDataStore.isInspectorGrid = true;
  41557. this._gridMesh.isPickable = false;
  41558. var groundMaterial = new babylonjs_materials_grid_gridMaterial__WEBPACK_IMPORTED_MODULE_3__["GridMaterial"]("GridMaterial", scene);
  41559. groundMaterial.majorUnitFrequency = 10;
  41560. groundMaterial.minorUnitVisibility = 0.3;
  41561. groundMaterial.gridRatio = 0.01;
  41562. groundMaterial.backFaceCulling = false;
  41563. groundMaterial.mainColor = new babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color3"](1, 1, 1);
  41564. groundMaterial.lineColor = new babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color3"](1.0, 1.0, 1.0);
  41565. groundMaterial.opacity = 0.8;
  41566. groundMaterial.zOffset = 1.0;
  41567. groundMaterial.opacityTexture = new babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Texture"]("https://assets.babylonjs.com/environments/backgroundGround.png", scene);
  41568. this._gridMesh.material = groundMaterial;
  41569. this.setState({ isEnabled: true });
  41570. return;
  41571. }
  41572. this.setState({ isEnabled: !this.state.isEnabled });
  41573. this._gridMesh.dispose(true, true);
  41574. this._gridMesh = null;
  41575. };
  41576. RenderGridPropertyGridComponent.prototype.render = function () {
  41577. var _this = this;
  41578. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  41579. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Render grid", isSelected: function () { return _this.state.isEnabled; }, onSelect: function () { return _this.addOrRemoveGrid(); } })));
  41580. };
  41581. return RenderGridPropertyGridComponent;
  41582. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  41583. /***/ }),
  41584. /***/ "./components/actionTabs/tabs/propertyGrids/scenePropertyGridComponent.tsx":
  41585. /*!*********************************************************************************!*\
  41586. !*** ./components/actionTabs/tabs/propertyGrids/scenePropertyGridComponent.tsx ***!
  41587. \*********************************************************************************/
  41588. /*! exports provided: ScenePropertyGridComponent */
  41589. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41590. "use strict";
  41591. __webpack_require__.r(__webpack_exports__);
  41592. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ScenePropertyGridComponent", function() { return ScenePropertyGridComponent; });
  41593. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  41594. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  41595. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  41596. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/observable");
  41597. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__);
  41598. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  41599. /* harmony import */ var _lines_radioLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../lines/radioLineComponent */ "./components/actionTabs/lines/radioLineComponent.tsx");
  41600. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  41601. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  41602. /* harmony import */ var _fogPropertyGridComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./fogPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/fogPropertyGridComponent.tsx");
  41603. /* harmony import */ var _lines_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../lines/fileButtonLineComponent */ "./components/actionTabs/lines/fileButtonLineComponent.tsx");
  41604. /* harmony import */ var _lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../lines/textureLinkLineComponent */ "./components/actionTabs/lines/textureLinkLineComponent.tsx");
  41605. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  41606. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  41607. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  41608. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  41609. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  41610. var ScenePropertyGridComponent = /** @class */ (function (_super) {
  41611. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ScenePropertyGridComponent, _super);
  41612. function ScenePropertyGridComponent(props) {
  41613. var _this = _super.call(this, props) || this;
  41614. _this._renderingModeGroupObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["Observable"]();
  41615. return _this;
  41616. }
  41617. ScenePropertyGridComponent.prototype.setRenderingModes = function (point, wireframe) {
  41618. var scene = this.props.scene;
  41619. scene.forcePointsCloud = point;
  41620. scene.forceWireframe = wireframe;
  41621. };
  41622. ScenePropertyGridComponent.prototype.switchIBL = function () {
  41623. var scene = this.props.scene;
  41624. if (scene.environmentTexture) {
  41625. this._storedEnvironmentTexture = scene.environmentTexture;
  41626. scene.environmentTexture = null;
  41627. }
  41628. else {
  41629. scene.environmentTexture = this._storedEnvironmentTexture;
  41630. this._storedEnvironmentTexture = null;
  41631. }
  41632. };
  41633. ScenePropertyGridComponent.prototype.updateEnvironmentTexture = function (file) {
  41634. var isFileDDS = file.name.toLowerCase().indexOf(".dds") > 0;
  41635. var isFileEnv = file.name.toLowerCase().indexOf(".env") > 0;
  41636. if (!isFileDDS && !isFileEnv) {
  41637. console.error("Unable to update environment texture. Please select a dds or env file.");
  41638. return;
  41639. }
  41640. var scene = this.props.scene;
  41641. babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["Tools"].ReadFile(file, function (data) {
  41642. var blob = new Blob([data], { type: "octet/stream" });
  41643. var url = URL.createObjectURL(blob);
  41644. if (isFileDDS) {
  41645. scene.environmentTexture = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["CubeTexture"].CreateFromPrefilteredData(url, scene, ".dds");
  41646. }
  41647. else {
  41648. scene.environmentTexture = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["CubeTexture"](url, scene, undefined, undefined, undefined, function () {
  41649. }, function (message) {
  41650. if (message) {
  41651. console.error(message);
  41652. }
  41653. }, undefined, undefined, ".env");
  41654. }
  41655. }, undefined, true);
  41656. };
  41657. ScenePropertyGridComponent.prototype.updateGravity = function (newValue) {
  41658. var scene = this.props.scene;
  41659. var physicsEngine = scene.getPhysicsEngine();
  41660. physicsEngine.setGravity(newValue);
  41661. };
  41662. ScenePropertyGridComponent.prototype.updateTimeStep = function (newValue) {
  41663. var scene = this.props.scene;
  41664. var physicsEngine = scene.getPhysicsEngine();
  41665. physicsEngine.setTimeStep(newValue);
  41666. };
  41667. ScenePropertyGridComponent.prototype.normalizeScene = function () {
  41668. var scene = this.props.scene;
  41669. scene.meshes.forEach(function (mesh) {
  41670. mesh.normalizeToUnitCube(true);
  41671. mesh.computeWorldMatrix(true);
  41672. });
  41673. };
  41674. ScenePropertyGridComponent.prototype.render = function () {
  41675. var _this = this;
  41676. var scene = this.props.scene;
  41677. var physicsEngine = scene.getPhysicsEngine();
  41678. var dummy = null;
  41679. if (physicsEngine) {
  41680. dummy = {
  41681. gravity: physicsEngine.gravity,
  41682. timeStep: physicsEngine.getTimeStep()
  41683. };
  41684. }
  41685. var imageProcessing = scene.imageProcessingConfiguration;
  41686. var toneMappingOptions = [
  41687. { label: "Standard", value: babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["ImageProcessingConfiguration"].TONEMAPPING_STANDARD },
  41688. { label: "ACES", value: babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["ImageProcessingConfiguration"].TONEMAPPING_ACES }
  41689. ];
  41690. var vignetteModeOptions = [
  41691. { label: "Multiply", value: babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["ImageProcessingConfiguration"].VIGNETTEMODE_MULTIPLY },
  41692. { label: "Opaque", value: babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["ImageProcessingConfiguration"].VIGNETTEMODE_OPAQUE }
  41693. ];
  41694. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  41695. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "RENDERING MODE" },
  41696. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_radioLineComponent__WEBPACK_IMPORTED_MODULE_4__["RadioButtonLineComponent"], { onSelectionChangedObservable: this._renderingModeGroupObservable, label: "Point", isSelected: function () { return scene.forcePointsCloud; }, onSelect: function () { return _this.setRenderingModes(true, false); } }),
  41697. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_radioLineComponent__WEBPACK_IMPORTED_MODULE_4__["RadioButtonLineComponent"], { onSelectionChangedObservable: this._renderingModeGroupObservable, label: "Wireframe", isSelected: function () { return scene.forceWireframe; }, onSelect: function () { return _this.setRenderingModes(false, true); } }),
  41698. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_radioLineComponent__WEBPACK_IMPORTED_MODULE_4__["RadioButtonLineComponent"], { onSelectionChangedObservable: this._renderingModeGroupObservable, label: "Solid", isSelected: function () { return !scene.forcePointsCloud && !scene.forceWireframe; }, onSelect: function () { return _this.setRenderingModes(false, false); } })),
  41699. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "ENVIRONMENT" },
  41700. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_5__["Color3LineComponent"], { label: "Clear color", target: scene, propertyName: "clearColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41701. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Clear color enabled", target: scene, propertyName: "autoClear", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41702. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_5__["Color3LineComponent"], { label: "Ambient color", target: scene, propertyName: "ambientColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41703. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Environment texture (IBL)", isSelected: function () { return scene.environmentTexture != null; }, onSelect: function () { return _this.switchIBL(); } }),
  41704. scene.environmentTexture &&
  41705. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_9__["TextureLinkLineComponent"], { label: "Env. texture", texture: scene.environmentTexture, onSelectionChangedObservable: this.props.onSelectionChangedObservable }),
  41706. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_8__["FileButtonLineComponent"], { label: "Update environment texture", onClick: function (file) { return _this.updateEnvironmentTexture(file); }, accept: ".dds, .env" }),
  41707. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_12__["SliderLineComponent"], { minimum: 0, maximum: 2, step: 0.01, label: "IBL Intensity", target: scene, propertyName: "environmentIntensity", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41708. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fogPropertyGridComponent__WEBPACK_IMPORTED_MODULE_7__["FogPropertyGridComponent"], { globalState: this.props.globalState, lockObject: this.props.lockObject, scene: scene, onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  41709. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "MATERIAL IMAGE PROCESSING" },
  41710. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_12__["SliderLineComponent"], { minimum: 0, maximum: 4, step: 0.1, label: "Contrast", target: imageProcessing, propertyName: "contrast", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41711. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_12__["SliderLineComponent"], { minimum: 0, maximum: 4, step: 0.1, label: "Exposure", target: imageProcessing, propertyName: "exposure", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41712. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Tone mapping", target: imageProcessing, propertyName: "toneMappingEnabled", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41713. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_13__["OptionsLineComponent"], { label: "Tone mapping type", options: toneMappingOptions, target: imageProcessing, propertyName: "toneMappingType", onPropertyChangedObservable: this.props.onPropertyChangedObservable, onSelect: function (value) { return _this.setState({ mode: value }); } }),
  41714. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Vignette", target: imageProcessing, propertyName: "vignetteEnabled", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41715. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_12__["SliderLineComponent"], { minimum: 0, maximum: 4, step: 0.1, label: "Vignette weight", target: imageProcessing, propertyName: "vignetteWeight", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41716. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_12__["SliderLineComponent"], { minimum: 0, maximum: 1, step: 0.1, label: "Vignette stretch", target: imageProcessing, propertyName: "vignetteStretch", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41717. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_12__["SliderLineComponent"], { minimum: 0, maximum: Math.PI, step: 0.1, label: "Vignette FOV", target: imageProcessing, propertyName: "vignetteCameraFov", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41718. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_12__["SliderLineComponent"], { minimum: 0, maximum: 1, step: 0.1, label: "Vignette center X", target: imageProcessing, propertyName: "vignetteCentreX", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41719. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_12__["SliderLineComponent"], { minimum: 0, maximum: 1, step: 0.1, label: "Vignette center Y", target: imageProcessing, propertyName: "vignetteCentreY", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41720. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_5__["Color3LineComponent"], { label: "Vignette color", target: imageProcessing, propertyName: "vignetteColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41721. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_13__["OptionsLineComponent"], { label: "Vignette blend mode", options: vignetteModeOptions, target: imageProcessing, propertyName: "vignetteBlendMode", onPropertyChangedObservable: this.props.onPropertyChangedObservable, onSelect: function (value) { return _this.setState({ mode: value }); } })),
  41722. dummy !== null &&
  41723. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "PHYSICS", closed: true },
  41724. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_11__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Time step", target: dummy, propertyName: "timeStep", onChange: function (newValue) { return _this.updateTimeStep(newValue); }, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  41725. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_10__["Vector3LineComponent"], { label: "Gravity", target: dummy, propertyName: "gravity", onChange: function (newValue) { return _this.updateGravity(newValue); }, onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  41726. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "COLLISIONS", closed: true },
  41727. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_10__["Vector3LineComponent"], { label: "Gravity", target: scene, propertyName: "gravity", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  41728. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "SHADOWS", closed: true },
  41729. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_14__["ButtonLineComponent"], { label: "Normalize scene", onClick: function () { return _this.normalizeScene(); } }))));
  41730. };
  41731. return ScenePropertyGridComponent;
  41732. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  41733. /***/ }),
  41734. /***/ "./components/actionTabs/tabs/settingsTabComponent.tsx":
  41735. /*!*************************************************************!*\
  41736. !*** ./components/actionTabs/tabs/settingsTabComponent.tsx ***!
  41737. \*************************************************************/
  41738. /*! exports provided: SettingsTabComponent */
  41739. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41740. "use strict";
  41741. __webpack_require__.r(__webpack_exports__);
  41742. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SettingsTabComponent", function() { return SettingsTabComponent; });
  41743. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  41744. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  41745. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  41746. /* harmony import */ var _paneComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../paneComponent */ "./components/actionTabs/paneComponent.tsx");
  41747. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  41748. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  41749. var SettingsTabComponent = /** @class */ (function (_super) {
  41750. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SettingsTabComponent, _super);
  41751. function SettingsTabComponent(props) {
  41752. return _super.call(this, props) || this;
  41753. }
  41754. SettingsTabComponent.prototype.render = function () {
  41755. var state = this.props.globalState;
  41756. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  41757. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "UI" },
  41758. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Only display Euler values", target: state, propertyName: "onlyUseEulers" }),
  41759. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Ignore backfaces when picking", target: state, propertyName: "ignoreBackfacesForPicking" }))));
  41760. };
  41761. return SettingsTabComponent;
  41762. }(_paneComponent__WEBPACK_IMPORTED_MODULE_2__["PaneComponent"]));
  41763. /***/ }),
  41764. /***/ "./components/actionTabs/tabs/statisticsTabComponent.tsx":
  41765. /*!***************************************************************!*\
  41766. !*** ./components/actionTabs/tabs/statisticsTabComponent.tsx ***!
  41767. \***************************************************************/
  41768. /*! exports provided: StatisticsTabComponent */
  41769. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41770. "use strict";
  41771. __webpack_require__.r(__webpack_exports__);
  41772. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StatisticsTabComponent", function() { return StatisticsTabComponent; });
  41773. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  41774. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  41775. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  41776. /* harmony import */ var _paneComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../paneComponent */ "./components/actionTabs/paneComponent.tsx");
  41777. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  41778. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  41779. /* harmony import */ var babylonjs_Instrumentation_engineInstrumentation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! babylonjs/Instrumentation/engineInstrumentation */ "babylonjs/Misc/observable");
  41780. /* harmony import */ var babylonjs_Instrumentation_engineInstrumentation__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Instrumentation_engineInstrumentation__WEBPACK_IMPORTED_MODULE_5__);
  41781. /* harmony import */ var _lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../lines/valueLineComponent */ "./components/actionTabs/lines/valueLineComponent.tsx");
  41782. /* harmony import */ var _lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../lines/booleanLineComponent */ "./components/actionTabs/lines/booleanLineComponent.tsx");
  41783. var StatisticsTabComponent = /** @class */ (function (_super) {
  41784. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StatisticsTabComponent, _super);
  41785. function StatisticsTabComponent(props) {
  41786. var _this = _super.call(this, props) || this;
  41787. var scene = _this.props.scene;
  41788. if (!scene) {
  41789. return _this;
  41790. }
  41791. _this._sceneInstrumentation = new babylonjs_Instrumentation_engineInstrumentation__WEBPACK_IMPORTED_MODULE_5__["SceneInstrumentation"](scene);
  41792. _this._sceneInstrumentation.captureActiveMeshesEvaluationTime = true;
  41793. _this._sceneInstrumentation.captureRenderTargetsRenderTime = true;
  41794. _this._sceneInstrumentation.captureFrameTime = true;
  41795. _this._sceneInstrumentation.captureRenderTime = true;
  41796. _this._sceneInstrumentation.captureInterFrameTime = true;
  41797. _this._sceneInstrumentation.captureParticlesRenderTime = true;
  41798. _this._sceneInstrumentation.captureSpritesRenderTime = true;
  41799. _this._sceneInstrumentation.capturePhysicsTime = true;
  41800. _this._sceneInstrumentation.captureAnimationsTime = true;
  41801. _this._engineInstrumentation = new babylonjs_Instrumentation_engineInstrumentation__WEBPACK_IMPORTED_MODULE_5__["EngineInstrumentation"](scene.getEngine());
  41802. _this._engineInstrumentation.captureGPUFrameTime = true;
  41803. _this._timerIntervalId = window.setInterval(function () { return _this.forceUpdate(); }, 500);
  41804. return _this;
  41805. }
  41806. StatisticsTabComponent.prototype.componentWillUnmount = function () {
  41807. if (this._sceneInstrumentation) {
  41808. this._sceneInstrumentation.dispose();
  41809. this._sceneInstrumentation = null;
  41810. }
  41811. if (this._engineInstrumentation) {
  41812. this._engineInstrumentation.dispose();
  41813. this._engineInstrumentation = null;
  41814. }
  41815. window.clearInterval(this._timerIntervalId);
  41816. };
  41817. StatisticsTabComponent.prototype.render = function () {
  41818. var scene = this.props.scene;
  41819. if (!scene || !this._sceneInstrumentation || !this._engineInstrumentation) {
  41820. return null;
  41821. }
  41822. var engine = scene.getEngine();
  41823. var sceneInstrumentation = this._sceneInstrumentation;
  41824. var engineInstrumentation = this._engineInstrumentation;
  41825. var caps = engine.getCaps();
  41826. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  41827. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Version", value: babylonjs_Instrumentation_engineInstrumentation__WEBPACK_IMPORTED_MODULE_5__["Engine"].Version, color: "rgb(113, 159, 255)" }),
  41828. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "FPS", value: engine.getFps(), fractionDigits: 0 }),
  41829. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "COUNT" },
  41830. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Total meshes", value: scene.meshes.length.toString() }),
  41831. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Active meshes", value: scene.getActiveMeshes().length.toString() }),
  41832. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Active indices", value: scene.getActiveIndices().toString() }),
  41833. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Active faces", value: (scene.getActiveIndices() / 3).toString() }),
  41834. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Active bones", value: scene.getActiveBones().toString() }),
  41835. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Active particles", value: scene.getActiveParticles().toString() }),
  41836. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Draw calls", value: sceneInstrumentation.drawCallsCounter.current.toString() }),
  41837. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Total lights", value: scene.lights.length.toString() }),
  41838. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Total vertices", value: scene.getTotalVertices().toString() }),
  41839. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Total materials", value: scene.materials.length.toString() }),
  41840. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Total textures", value: scene.textures.length.toString() })),
  41841. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "FRAME STEPS DURATION" },
  41842. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "Absolute FPS", value: 1000.0 / this._sceneInstrumentation.frameTimeCounter.lastSecAverage, fractionDigits: 0 }),
  41843. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "Meshes selection", value: sceneInstrumentation.activeMeshesEvaluationTimeCounter.lastSecAverage, units: "ms" }),
  41844. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "Render targets", value: sceneInstrumentation.renderTargetsRenderTimeCounter.lastSecAverage, units: "ms" }),
  41845. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "Particles", value: sceneInstrumentation.particlesRenderTimeCounter.lastSecAverage, units: "ms" }),
  41846. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "Sprites", value: sceneInstrumentation.spritesRenderTimeCounter.lastSecAverage, units: "ms" }),
  41847. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "Animations", value: sceneInstrumentation.animationsTimeCounter.lastSecAverage, units: "ms" }),
  41848. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "Physics", value: sceneInstrumentation.physicsTimeCounter.lastSecAverage, units: "ms" }),
  41849. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "Render", value: sceneInstrumentation.renderTimeCounter.lastSecAverage, units: "ms" }),
  41850. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "Frame total", value: sceneInstrumentation.frameTimeCounter.lastSecAverage, units: "ms" }),
  41851. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "Inter-frame", value: sceneInstrumentation.interFrameTimeCounter.lastSecAverage, units: "ms" }),
  41852. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "GPU Frame time", value: engineInstrumentation.gpuFrameTimeCounter.lastSecAverage * 0.000001, units: "ms" }),
  41853. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "GPU Frame time (average)", value: engineInstrumentation.gpuFrameTimeCounter.average * 0.000001, units: "ms" })),
  41854. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "SYSTEM INFO" },
  41855. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Resolution", value: engine.getRenderWidth() + "x" + engine.getRenderHeight() }),
  41856. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "WebGL version", value: engine.webGLVersion.toString() }),
  41857. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "Std derivatives", value: caps.standardDerivatives }),
  41858. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "Compressed textures", value: caps.s3tc !== undefined }),
  41859. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "Hardware instances", value: caps.instancedArrays }),
  41860. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "Texture float", value: caps.textureFloat }),
  41861. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "Texture half-float", value: caps.textureHalfFloat }),
  41862. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "Render to texture float", value: caps.textureFloatRender }),
  41863. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "Render to texture half-float", value: caps.textureHalfFloatRender }),
  41864. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "32bits indices", value: caps.uintIndices }),
  41865. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "Fragment depth", value: caps.fragmentDepthSupported }),
  41866. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "High precision shaders", value: caps.highPrecisionShaderSupported }),
  41867. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "Draw buffers", value: caps.drawBuffersExtension }),
  41868. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "Vertex array object", value: caps.vertexArrayObject }),
  41869. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "Timer query", value: caps.timerQuery !== undefined }),
  41870. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "Stencil", value: engine.isStencilEnable }),
  41871. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "Parallel shader compilation", value: caps.parallelShaderCompile != null }),
  41872. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "Max textures units", value: caps.maxTexturesImageUnits, fractionDigits: 0 }),
  41873. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "Max textures size", value: caps.maxTextureSize, fractionDigits: 0 }),
  41874. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "Max anisotropy", value: caps.maxAnisotropy, fractionDigits: 0 }),
  41875. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Driver", value: engine.getGlInfo().renderer }))));
  41876. };
  41877. return StatisticsTabComponent;
  41878. }(_paneComponent__WEBPACK_IMPORTED_MODULE_2__["PaneComponent"]));
  41879. /***/ }),
  41880. /***/ "./components/actionTabs/tabs/tools/gltfComponent.tsx":
  41881. /*!************************************************************!*\
  41882. !*** ./components/actionTabs/tabs/tools/gltfComponent.tsx ***!
  41883. \************************************************************/
  41884. /*! exports provided: GLTFComponent */
  41885. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41886. "use strict";
  41887. __webpack_require__.r(__webpack_exports__);
  41888. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GLTFComponent", function() { return GLTFComponent; });
  41889. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  41890. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  41891. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  41892. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  41893. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  41894. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  41895. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  41896. /* harmony import */ var _lines_messageLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../lines/messageLineComponent */ "./components/actionTabs/lines/messageLineComponent.tsx");
  41897. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  41898. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  41899. /* harmony import */ var babylonjs_loaders_glTF_index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! babylonjs-loaders/glTF/index */ "babylonjs-loaders/glTF/index");
  41900. /* harmony import */ var babylonjs_loaders_glTF_index__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(babylonjs_loaders_glTF_index__WEBPACK_IMPORTED_MODULE_9__);
  41901. var GLTFComponent = /** @class */ (function (_super) {
  41902. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GLTFComponent, _super);
  41903. function GLTFComponent(props) {
  41904. var _this = _super.call(this, props) || this;
  41905. _this._onValidationResultsUpdatedObserver = null;
  41906. var extensionStates = _this.props.globalState.glTFLoaderExtensionDefaults;
  41907. extensionStates["MSFT_lod"] = extensionStates["MSFT_lod"] || { enabled: true, maxLODsToLoad: 10 };
  41908. extensionStates["MSFT_minecraftMesh"] = extensionStates["MSFT_minecraftMesh"] || { enabled: true };
  41909. extensionStates["MSFT_sRGBFactors"] = extensionStates["MSFT_sRGBFactors"] || { enabled: true };
  41910. extensionStates["MSFT_audio_emitter"] = extensionStates["MSFT_audio_emitter"] || { enabled: true };
  41911. extensionStates["KHR_draco_mesh_compression"] = extensionStates["KHR_draco_mesh_compression"] || { enabled: true };
  41912. extensionStates["KHR_materials_pbrSpecularGlossiness"] = extensionStates["KHR_materials_pbrSpecularGlossiness"] || { enabled: true };
  41913. extensionStates["KHR_materials_clearcoat"] = extensionStates["KHR_materials_clearcoat"] || { enabled: true };
  41914. extensionStates["KHR_materials_sheen"] = extensionStates["KHR_materials_sheen"] || { enabled: true };
  41915. extensionStates["KHR_materials_specular"] = extensionStates["KHR_materials_specular"] || { enabled: true };
  41916. extensionStates["KHR_materials_unlit"] = extensionStates["KHR_materials_unlit"] || { enabled: true };
  41917. extensionStates["KHR_lights_punctual"] = extensionStates["KHR_lights_punctual"] || { enabled: true };
  41918. extensionStates["KHR_texture_transform"] = extensionStates["KHR_texture_transform"] || { enabled: true };
  41919. extensionStates["EXT_lights_image_based"] = extensionStates["EXT_lights_image_based"] || { enabled: true };
  41920. var loaderState = _this.props.globalState.glTFLoaderDefaults;
  41921. if (loaderState["animationStartMode"] === undefined) {
  41922. loaderState["animationStartMode"] = babylonjs_loaders_glTF_index__WEBPACK_IMPORTED_MODULE_9__["GLTFLoaderAnimationStartMode"].FIRST;
  41923. }
  41924. loaderState["capturePerformanceCounters"] = loaderState["capturePerformanceCounters"] || false;
  41925. loaderState["compileMaterials"] = loaderState["compileMaterials"] || false;
  41926. loaderState["compileShadowGenerators"] = loaderState["compileShadowGenerators"] || false;
  41927. loaderState["coordinateSystemMode"] = loaderState["coordinateSystemMode"] || babylonjs_loaders_glTF_index__WEBPACK_IMPORTED_MODULE_9__["GLTFLoaderCoordinateSystemMode"].AUTO;
  41928. loaderState["loggingEnabled"] = loaderState["loggingEnabled"] || false;
  41929. loaderState["transparencyAsCoverage"] = loaderState["transparencyAsCoverage"] || false;
  41930. loaderState["useClipPlane"] = loaderState["useClipPlane"] || false;
  41931. loaderState["validate"] = loaderState["validate"] || true;
  41932. return _this;
  41933. }
  41934. GLTFComponent.prototype.openValidationDetails = function () {
  41935. var validationResults = this.props.globalState.validationResults;
  41936. var win = window.open("", "_blank");
  41937. if (win) {
  41938. // TODO: format this better and use generator registry (https://github.com/KhronosGroup/glTF-Generator-Registry)
  41939. win.document.title = "glTF Validation Results";
  41940. win.document.body.innerText = JSON.stringify(validationResults, null, 2);
  41941. win.document.body.style.whiteSpace = "pre";
  41942. win.document.body.style.fontFamily = "monospace";
  41943. win.document.body.style.fontSize = "14px";
  41944. win.focus();
  41945. }
  41946. };
  41947. GLTFComponent.prototype.prepareText = function (singularForm, count) {
  41948. if (count) {
  41949. return count + " " + singularForm + "s";
  41950. }
  41951. return "" + singularForm;
  41952. };
  41953. GLTFComponent.prototype.componentDidMount = function () {
  41954. var _this = this;
  41955. if (this.props.globalState) {
  41956. this._onValidationResultsUpdatedObserver = this.props.globalState.onValidationResultsUpdatedObservable.add(function () {
  41957. _this.forceUpdate();
  41958. });
  41959. }
  41960. };
  41961. GLTFComponent.prototype.componentWillUnmount = function () {
  41962. if (this.props.globalState) {
  41963. if (this._onValidationResultsUpdatedObserver) {
  41964. this.props.globalState.onValidationResultsUpdatedObservable.remove(this._onValidationResultsUpdatedObserver);
  41965. }
  41966. }
  41967. };
  41968. GLTFComponent.prototype.renderValidation = function () {
  41969. var _this = this;
  41970. var validationResults = this.props.globalState.validationResults;
  41971. if (!validationResults) {
  41972. return null;
  41973. }
  41974. var issues = validationResults.issues;
  41975. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "GLTF VALIDATION", closed: !issues.numErrors && !issues.numWarnings },
  41976. issues.numErrors !== 0 &&
  41977. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_messageLineComponent__WEBPACK_IMPORTED_MODULE_6__["MessageLineComponent"], { text: "Your file has some validation issues", icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_7__["faTimesCircle"], color: "Red" }),
  41978. issues.numErrors === 0 &&
  41979. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_messageLineComponent__WEBPACK_IMPORTED_MODULE_6__["MessageLineComponent"], { text: "Your file is a valid glTF file", icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_7__["faCheck"], color: "Green" }),
  41980. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_8__["TextLineComponent"], { label: "Errors", value: issues.numErrors.toString() }),
  41981. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_8__["TextLineComponent"], { label: "Warnings", value: issues.numWarnings.toString() }),
  41982. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_8__["TextLineComponent"], { label: "Infos", value: issues.numInfos.toString() }),
  41983. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_8__["TextLineComponent"], { label: "Hints", value: issues.numHints.toString() }),
  41984. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_8__["TextLineComponent"], { label: "More details", value: "Click here", onLink: function () { return _this.openValidationDetails(); } })));
  41985. };
  41986. GLTFComponent.prototype.render = function () {
  41987. var extensionStates = this.props.globalState.glTFLoaderExtensionDefaults;
  41988. var loaderState = this.props.globalState.glTFLoaderDefaults;
  41989. var animationStartMode = [
  41990. { label: "None", value: babylonjs_loaders_glTF_index__WEBPACK_IMPORTED_MODULE_9__["GLTFLoaderAnimationStartMode"].NONE },
  41991. { label: "First", value: babylonjs_loaders_glTF_index__WEBPACK_IMPORTED_MODULE_9__["GLTFLoaderAnimationStartMode"].FIRST },
  41992. { label: "ALL", value: babylonjs_loaders_glTF_index__WEBPACK_IMPORTED_MODULE_9__["GLTFLoaderAnimationStartMode"].ALL }
  41993. ];
  41994. var coordinateSystemMode = [
  41995. { label: "Auto", value: babylonjs_loaders_glTF_index__WEBPACK_IMPORTED_MODULE_9__["GLTFLoaderCoordinateSystemMode"].AUTO },
  41996. { label: "Right handed", value: babylonjs_loaders_glTF_index__WEBPACK_IMPORTED_MODULE_9__["GLTFLoaderCoordinateSystemMode"].FORCE_RIGHT_HANDED }
  41997. ];
  41998. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  41999. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "GLTF LOADER", closed: true },
  42000. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__["OptionsLineComponent"], { label: "Animation start mode", options: animationStartMode, target: loaderState, propertyName: "animationStartMode" }),
  42001. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Capture performance counters", target: loaderState, propertyName: "capturePerformanceCounters" }),
  42002. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Compile materials", target: loaderState, propertyName: "compileMaterials" }),
  42003. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Compile shadow generators", target: loaderState, propertyName: "compileShadowGenerators" }),
  42004. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__["OptionsLineComponent"], { label: "Coordinate system", options: coordinateSystemMode, target: loaderState, propertyName: "coordinateSystemMode" }),
  42005. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Enable logging", target: loaderState, propertyName: "loggingEnabled" }),
  42006. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Transparency as coverage", target: loaderState, propertyName: "transparencyAsCoverage" }),
  42007. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Use clip plane", target: loaderState, propertyName: "useClipPlane" }),
  42008. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Validate", target: loaderState, propertyName: "validate" }),
  42009. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_messageLineComponent__WEBPACK_IMPORTED_MODULE_6__["MessageLineComponent"], { text: "You need to reload your file to see these changes" })),
  42010. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "GLTF EXTENSIONS", closed: true },
  42011. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "MSFT_lod", isSelected: function () { return extensionStates["MSFT_lod"].enabled; }, onSelect: function (value) { return extensionStates["MSFT_lod"].enabled = value; } }),
  42012. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { label: "Maximum LODs", target: extensionStates["MSFT_lod"], propertyName: "maxLODsToLoad", additionalClass: "gltf-extension-property", isInteger: true }),
  42013. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "MSFT_minecraftMesh", isSelected: function () { return extensionStates["MSFT_minecraftMesh"].enabled; }, onSelect: function (value) { return extensionStates["MSFT_minecraftMesh"].enabled = value; } }),
  42014. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "MSFT_sRGBFactors", isSelected: function () { return extensionStates["MSFT_sRGBFactors"].enabled; }, onSelect: function (value) { return extensionStates["MSFT_sRGBFactors"].enabled = value; } }),
  42015. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "MSFT_audio_emitter", isSelected: function () { return extensionStates["MSFT_audio_emitter"].enabled; }, onSelect: function (value) { return extensionStates["MSFT_audio_emitter"].enabled = value; } }),
  42016. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "KHR_draco_mesh_compression", isSelected: function () { return extensionStates["KHR_draco_mesh_compression"].enabled; }, onSelect: function (value) { return extensionStates["KHR_draco_mesh_compression"].enabled = value; } }),
  42017. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "KHR_materials_pbrSpecularGlossiness", isSelected: function () { return extensionStates["KHR_materials_pbrSpecularGlossiness"].enabled; }, onSelect: function (value) { return extensionStates["KHR_materials_pbrSpecularGlossiness"].enabled = value; } }),
  42018. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "KHR_materials_clearcoat", isSelected: function () { return extensionStates["KHR_materials_clearcoat"].enabled; }, onSelect: function (value) { return extensionStates["KHR_materials_clearcoat"].enabled = value; } }),
  42019. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "KHR_materials_sheen", isSelected: function () { return extensionStates["KHR_materials_sheen"].enabled; }, onSelect: function (value) { return extensionStates["KHR_materials_sheen"].enabled = value; } }),
  42020. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "KHR_materials_specular", isSelected: function () { return extensionStates["KHR_materials_specular"].enabled; }, onSelect: function (value) { return extensionStates["KHR_materials_specular"].enabled = value; } }),
  42021. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "KHR_materials_unlit", isSelected: function () { return extensionStates["KHR_materials_unlit"].enabled; }, onSelect: function (value) { return extensionStates["KHR_materials_unlit"].enabled = value; } }),
  42022. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "KHR_lights_punctual", isSelected: function () { return extensionStates["KHR_lights_punctual"].enabled; }, onSelect: function (value) { return extensionStates["KHR_lights_punctual"].enabled = value; } }),
  42023. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "KHR_texture_transform", isSelected: function () { return extensionStates["KHR_texture_transform"].enabled; }, onSelect: function (value) { return extensionStates["KHR_texture_transform"].enabled = value; } }),
  42024. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "EXT_lights_image_based", isSelected: function () { return extensionStates["EXT_lights_image_based"].enabled; }, onSelect: function (value) { return extensionStates["EXT_lights_image_based"].enabled = value; } }),
  42025. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_messageLineComponent__WEBPACK_IMPORTED_MODULE_6__["MessageLineComponent"], { text: "You need to reload your file to see these changes" })),
  42026. loaderState["validate"] && this.props.globalState.validationResults &&
  42027. this.renderValidation()));
  42028. };
  42029. return GLTFComponent;
  42030. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  42031. /***/ }),
  42032. /***/ "./components/actionTabs/tabs/toolsTabComponent.tsx":
  42033. /*!**********************************************************!*\
  42034. !*** ./components/actionTabs/tabs/toolsTabComponent.tsx ***!
  42035. \**********************************************************/
  42036. /*! exports provided: ToolsTabComponent */
  42037. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42038. "use strict";
  42039. __webpack_require__.r(__webpack_exports__);
  42040. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ToolsTabComponent", function() { return ToolsTabComponent; });
  42041. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  42042. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  42043. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  42044. /* harmony import */ var _paneComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../paneComponent */ "./components/actionTabs/paneComponent.tsx");
  42045. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  42046. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  42047. /* harmony import */ var babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! babylonjs/Misc/videoRecorder */ "babylonjs/Misc/observable");
  42048. /* harmony import */ var babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__);
  42049. /* harmony import */ var _tools_gltfComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./tools/gltfComponent */ "./components/actionTabs/tabs/tools/gltfComponent.tsx");
  42050. /* harmony import */ var babylonjs_serializers_glTF_2_0_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! babylonjs-serializers/glTF/2.0/index */ "babylonjs-serializers/glTF/2.0/index");
  42051. /* harmony import */ var babylonjs_serializers_glTF_2_0_index__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(babylonjs_serializers_glTF_2_0_index__WEBPACK_IMPORTED_MODULE_7__);
  42052. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  42053. /* harmony import */ var _lines_numericInputComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../lines/numericInputComponent */ "./components/actionTabs/lines/numericInputComponent.tsx");
  42054. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  42055. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  42056. /* harmony import */ var _lines_fileMultipleButtonLineComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../lines/fileMultipleButtonLineComponent */ "./components/actionTabs/lines/fileMultipleButtonLineComponent.tsx");
  42057. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  42058. var ToolsTabComponent = /** @class */ (function (_super) {
  42059. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ToolsTabComponent, _super);
  42060. function ToolsTabComponent(props) {
  42061. var _this = _super.call(this, props) || this;
  42062. _this._screenShotSize = { precision: 1 };
  42063. _this._useWidthHeight = false;
  42064. _this._isExporting = false;
  42065. _this.state = { tag: "Record video" };
  42066. var sceneImportDefaults = _this.props.globalState.sceneImportDefaults;
  42067. if (sceneImportDefaults["overwriteAnimations"] === undefined) {
  42068. sceneImportDefaults["overwriteAnimations"] = true;
  42069. }
  42070. if (sceneImportDefaults["animationGroupLoadingMode"] === undefined) {
  42071. sceneImportDefaults["animationGroupLoadingMode"] = babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["SceneLoaderAnimationGroupLoadingMode"].Clean;
  42072. }
  42073. return _this;
  42074. }
  42075. ToolsTabComponent.prototype.componentDidMount = function () {
  42076. if (!BABYLON.GLTF2Export) {
  42077. babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["Tools"].LoadScript("https://preview.babylonjs.com/serializers/babylonjs.serializers.min.js", function () {
  42078. });
  42079. return;
  42080. }
  42081. };
  42082. ToolsTabComponent.prototype.componentWillUnmount = function () {
  42083. if (this._videoRecorder) {
  42084. this._videoRecorder.stopRecording();
  42085. this._videoRecorder.dispose();
  42086. this._videoRecorder = null;
  42087. }
  42088. };
  42089. ToolsTabComponent.prototype.captureScreenshot = function () {
  42090. var scene = this.props.scene;
  42091. if (scene.activeCamera) {
  42092. babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["Tools"].CreateScreenshot(scene.getEngine(), scene.activeCamera, this._screenShotSize);
  42093. }
  42094. };
  42095. ToolsTabComponent.prototype.captureRender = function () {
  42096. var scene = this.props.scene;
  42097. var oldScreenshotSize = {
  42098. height: this._screenShotSize.height,
  42099. width: this._screenShotSize.width,
  42100. precision: this._screenShotSize.precision
  42101. };
  42102. if (!this._useWidthHeight) {
  42103. this._screenShotSize.width = undefined;
  42104. this._screenShotSize.height = undefined;
  42105. }
  42106. if (scene.activeCamera) {
  42107. babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["Tools"].CreateScreenshotUsingRenderTarget(scene.getEngine(), scene.activeCamera, this._screenShotSize);
  42108. }
  42109. this._screenShotSize = oldScreenshotSize;
  42110. };
  42111. ToolsTabComponent.prototype.recordVideo = function () {
  42112. var _this = this;
  42113. if (this._videoRecorder && this._videoRecorder.isRecording) {
  42114. this._videoRecorder.stopRecording();
  42115. return;
  42116. }
  42117. var scene = this.props.scene;
  42118. if (!this._videoRecorder) {
  42119. this._videoRecorder = new babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["VideoRecorder"](scene.getEngine());
  42120. }
  42121. this._videoRecorder.startRecording().then(function () {
  42122. _this.setState({ tag: "Record video" });
  42123. });
  42124. this.setState({ tag: "Stop recording" });
  42125. };
  42126. ToolsTabComponent.prototype.importAnimations = function (event) {
  42127. var scene = this.props.scene;
  42128. var overwriteAnimations = this.props.globalState.sceneImportDefaults["overwriteAnimations"];
  42129. var animationGroupLoadingMode = this.props.globalState.sceneImportDefaults["animationGroupLoadingMode"];
  42130. var reload = function (sceneFile) {
  42131. // If a scene file has been provided
  42132. if (sceneFile) {
  42133. var onSuccess = function (scene) {
  42134. if (scene.animationGroups.length > 0) {
  42135. var currentGroup = scene.animationGroups[0];
  42136. currentGroup.play(true);
  42137. }
  42138. };
  42139. BABYLON.SceneLoader.ImportAnimationsAsync("file:", sceneFile, scene, overwriteAnimations, animationGroupLoadingMode, null, onSuccess);
  42140. }
  42141. };
  42142. var filesInputAnimation = new babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["FilesInput"](scene.getEngine(), scene, function () { }, function () { }, function () { }, function (remaining) { }, function () { }, reload, function () { });
  42143. filesInputAnimation.loadFiles(event);
  42144. };
  42145. ToolsTabComponent.prototype.shouldExport = function (node) {
  42146. // No skybox
  42147. if (node instanceof babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["Mesh"]) {
  42148. if (node.material) {
  42149. var material = node.material;
  42150. var reflectionTexture = material.reflectionTexture;
  42151. if (reflectionTexture && reflectionTexture.coordinatesMode === babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["Texture"].SKYBOX_MODE) {
  42152. return false;
  42153. }
  42154. }
  42155. }
  42156. return true;
  42157. };
  42158. ToolsTabComponent.prototype.exportGLTF = function () {
  42159. var _this = this;
  42160. var scene = this.props.scene;
  42161. this._isExporting = true;
  42162. this.forceUpdate();
  42163. babylonjs_serializers_glTF_2_0_index__WEBPACK_IMPORTED_MODULE_7__["GLTF2Export"].GLBAsync(scene, "scene", {
  42164. shouldExportNode: function (node) { return _this.shouldExport(node); }
  42165. }).then(function (glb) {
  42166. glb.downloadFiles();
  42167. _this._isExporting = false;
  42168. _this.forceUpdate();
  42169. }).catch(function (reason) {
  42170. _this._isExporting = false;
  42171. _this.forceUpdate();
  42172. });
  42173. };
  42174. ToolsTabComponent.prototype.exportBabylon = function () {
  42175. var scene = this.props.scene;
  42176. var strScene = JSON.stringify(babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["SceneSerializer"].Serialize(scene));
  42177. var blob = new Blob([strScene], { type: "octet/stream" });
  42178. babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["Tools"].Download(blob, "scene.babylon");
  42179. };
  42180. ToolsTabComponent.prototype.createEnvTexture = function () {
  42181. var scene = this.props.scene;
  42182. babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["EnvironmentTextureTools"].CreateEnvTextureAsync(scene.environmentTexture)
  42183. .then(function (buffer) {
  42184. var blob = new Blob([buffer], { type: "octet/stream" });
  42185. babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["Tools"].Download(blob, "environment.env");
  42186. })
  42187. .catch(function (error) {
  42188. console.error(error);
  42189. alert(error);
  42190. });
  42191. };
  42192. ToolsTabComponent.prototype.resetReplay = function () {
  42193. this.props.globalState.recorder.reset();
  42194. };
  42195. ToolsTabComponent.prototype.exportReplay = function () {
  42196. this.props.globalState.recorder.export();
  42197. };
  42198. ToolsTabComponent.prototype.render = function () {
  42199. var _this = this;
  42200. var scene = this.props.scene;
  42201. if (!scene) {
  42202. return null;
  42203. }
  42204. var sceneImportDefaults = this.props.globalState.sceneImportDefaults;
  42205. var animationGroupLoadingModes = [
  42206. { label: "Clean", value: babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["SceneLoaderAnimationGroupLoadingMode"].Clean },
  42207. { label: "Stop", value: babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["SceneLoaderAnimationGroupLoadingMode"].Stop },
  42208. { label: "Sync", value: babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["SceneLoaderAnimationGroupLoadingMode"].Sync },
  42209. { label: "NoSync", value: babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["SceneLoaderAnimationGroupLoadingMode"].NoSync },
  42210. ];
  42211. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  42212. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "CAPTURE" },
  42213. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__["ButtonLineComponent"], { label: "Screenshot", onClick: function () { return _this.captureScreenshot(); } }),
  42214. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__["ButtonLineComponent"], { label: this.state.tag, onClick: function () { return _this.recordVideo(); } })),
  42215. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "CAPTURE WITH RTT" },
  42216. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__["ButtonLineComponent"], { label: "Capture", onClick: function () { return _this.captureRender(); } }),
  42217. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  42218. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__["FloatLineComponent"], { label: "Precision", target: this._screenShotSize, propertyName: 'precision', onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  42219. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_10__["CheckBoxLineComponent"], { label: "Use Width/Height", onSelect: function (value) {
  42220. _this._useWidthHeight = value;
  42221. _this.forceUpdate();
  42222. }, isSelected: function () { return _this._useWidthHeight; } }),
  42223. this._useWidthHeight &&
  42224. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  42225. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_numericInputComponent__WEBPACK_IMPORTED_MODULE_9__["NumericInputComponent"], { label: "Width", precision: 0, step: 1, value: this._screenShotSize.width ? this._screenShotSize.width : 512, onChange: function (value) { return _this._screenShotSize.width = value; } }),
  42226. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_numericInputComponent__WEBPACK_IMPORTED_MODULE_9__["NumericInputComponent"], { label: "Height", precision: 0, step: 1, value: this._screenShotSize.height ? this._screenShotSize.height : 512, onChange: function (value) { return _this._screenShotSize.height = value; } })))),
  42227. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "REPLAY" },
  42228. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__["ButtonLineComponent"], { label: "Generate replay code", onClick: function () { return _this.exportReplay(); } }),
  42229. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__["ButtonLineComponent"], { label: "Reset", onClick: function () { return _this.resetReplay(); } })),
  42230. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "SCENE IMPORT" },
  42231. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_fileMultipleButtonLineComponent__WEBPACK_IMPORTED_MODULE_12__["FileMultipleButtonLineComponent"], { label: "Import animations", accept: "gltf", onClick: function (evt) { return _this.importAnimations(evt); } }),
  42232. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_10__["CheckBoxLineComponent"], { label: "Overwrite animations", target: sceneImportDefaults, propertyName: "overwriteAnimations", onSelect: function (value) {
  42233. sceneImportDefaults["overwriteAnimations"] = value;
  42234. _this.forceUpdate();
  42235. } }),
  42236. sceneImportDefaults["overwriteAnimations"] === false &&
  42237. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_13__["OptionsLineComponent"], { label: "Animation merge mode", options: animationGroupLoadingModes, target: sceneImportDefaults, propertyName: "animationGroupLoadingMode" })),
  42238. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "SCENE EXPORT" },
  42239. this._isExporting &&
  42240. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_11__["TextLineComponent"], { label: "Please wait..exporting", ignoreValue: true }),
  42241. !this._isExporting &&
  42242. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  42243. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__["ButtonLineComponent"], { label: "Export to GLB", onClick: function () { return _this.exportGLTF(); } }),
  42244. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__["ButtonLineComponent"], { label: "Export to Babylon", onClick: function () { return _this.exportBabylon(); } }),
  42245. !scene.getEngine().premultipliedAlpha && scene.environmentTexture && scene.environmentTexture.isPrefiltered && scene.activeCamera &&
  42246. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__["ButtonLineComponent"], { label: "Generate .env texture", onClick: function () { return _this.createEnvTexture(); } }))),
  42247. BABYLON.GLTFFileLoader &&
  42248. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_tools_gltfComponent__WEBPACK_IMPORTED_MODULE_6__["GLTFComponent"], { scene: scene, globalState: this.props.globalState })));
  42249. };
  42250. return ToolsTabComponent;
  42251. }(_paneComponent__WEBPACK_IMPORTED_MODULE_2__["PaneComponent"]));
  42252. /***/ }),
  42253. /***/ "./components/actionTabs/tabsComponent.tsx":
  42254. /*!*************************************************!*\
  42255. !*** ./components/actionTabs/tabsComponent.tsx ***!
  42256. \*************************************************/
  42257. /*! exports provided: TabsComponent */
  42258. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42259. "use strict";
  42260. __webpack_require__.r(__webpack_exports__);
  42261. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TabsComponent", function() { return TabsComponent; });
  42262. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  42263. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  42264. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  42265. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  42266. var TabsComponent = /** @class */ (function (_super) {
  42267. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TabsComponent, _super);
  42268. function TabsComponent(props) {
  42269. return _super.call(this, props) || this;
  42270. }
  42271. TabsComponent.prototype.onSelect = function (index) {
  42272. this.props.onSelectedIndexChange(index);
  42273. };
  42274. TabsComponent.prototype.renderLabel = function (child, index) {
  42275. var _this = this;
  42276. var activeClass = (this.props.selectedIndex === index ? 'label active' : 'label');
  42277. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: activeClass, key: index, onClick: function () { return _this.onSelect(index); }, title: child.props.title },
  42278. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  42279. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: child.props.icon }))));
  42280. };
  42281. TabsComponent.prototype.render = function () {
  42282. var _this = this;
  42283. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "tabs", onContextMenu: function (e) { return e.preventDefault(); } },
  42284. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "labels" }, this.props.children.map(function (child, index) {
  42285. return _this.renderLabel(child, index);
  42286. })),
  42287. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "panes" }, this.props.children[this.props.selectedIndex])));
  42288. };
  42289. return TabsComponent;
  42290. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  42291. /***/ }),
  42292. /***/ "./components/embedHost/embedHost.scss":
  42293. /*!*********************************************!*\
  42294. !*** ./components/embedHost/embedHost.scss ***!
  42295. \*********************************************/
  42296. /*! no static exports found */
  42297. /***/ (function(module, exports, __webpack_require__) {
  42298. var content = __webpack_require__(/*! !../../../../node_modules/css-loader!../../../../node_modules/sass-loader/lib/loader.js!./embedHost.scss */ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/embedHost/embedHost.scss");
  42299. if(typeof content === 'string') content = [[module.i, content, '']];
  42300. var transform;
  42301. var insertInto;
  42302. var options = {"hmr":true}
  42303. options.transform = transform
  42304. options.insertInto = undefined;
  42305. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  42306. if(content.locals) module.exports = content.locals;
  42307. if(false) {}
  42308. /***/ }),
  42309. /***/ "./components/embedHost/embedHostComponent.tsx":
  42310. /*!*****************************************************!*\
  42311. !*** ./components/embedHost/embedHostComponent.tsx ***!
  42312. \*****************************************************/
  42313. /*! exports provided: EmbedHostComponent */
  42314. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42315. "use strict";
  42316. __webpack_require__.r(__webpack_exports__);
  42317. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmbedHostComponent", function() { return EmbedHostComponent; });
  42318. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  42319. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  42320. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  42321. /* harmony import */ var _headerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../headerComponent */ "./components/headerComponent.tsx");
  42322. /* harmony import */ var re_resizable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! re-resizable */ "../../node_modules/re-resizable/lib/index.es5.js");
  42323. /* harmony import */ var re_resizable__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(re_resizable__WEBPACK_IMPORTED_MODULE_3__);
  42324. /* harmony import */ var _sceneExplorer_sceneExplorerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../sceneExplorer/sceneExplorerComponent */ "./components/sceneExplorer/sceneExplorerComponent.tsx");
  42325. /* harmony import */ var _actionTabs_actionTabsComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../actionTabs/actionTabsComponent */ "./components/actionTabs/actionTabsComponent.tsx");
  42326. var Split = __webpack_require__(/*! split.js */ "../../node_modules/split.js/dist/split.es.js").default;
  42327. __webpack_require__(/*! ./embedHost.scss */ "./components/embedHost/embedHost.scss");
  42328. var EmbedHostComponent = /** @class */ (function (_super) {
  42329. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(EmbedHostComponent, _super);
  42330. function EmbedHostComponent(props) {
  42331. var _this = _super.call(this, props) || this;
  42332. _this._once = true;
  42333. _this.splitRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  42334. _this.topPartRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  42335. _this.bottomPartRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  42336. return _this;
  42337. }
  42338. EmbedHostComponent.prototype.componentDidMount = function () {
  42339. var container = this.splitRef.current;
  42340. if (!container) {
  42341. return;
  42342. }
  42343. Split([this.topPartRef.current, this.bottomPartRef.current], {
  42344. direction: "vertical",
  42345. minSize: [200, 200],
  42346. gutterSize: 4
  42347. });
  42348. };
  42349. EmbedHostComponent.prototype.renderContent = function () {
  42350. if (this.props.popupMode) {
  42351. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "split", className: "splitPopup" },
  42352. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "topPart" },
  42353. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sceneExplorer_sceneExplorerComponent__WEBPACK_IMPORTED_MODULE_4__["SceneExplorerComponent"], { scene: this.props.scene, extensibilityGroups: this.props.extensibilityGroups, popupMode: true, globalState: this.props.globalState, noHeader: true })),
  42354. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "separator" }),
  42355. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "bottomPart", style: { marginTop: "4px", overflow: "hidden" } },
  42356. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_actionTabs_actionTabsComponent__WEBPACK_IMPORTED_MODULE_5__["ActionTabsComponent"], { scene: this.props.scene, popupMode: true, globalState: this.props.globalState, noHeader: true, initialTab: this.props.initialTab }))));
  42357. }
  42358. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { ref: this.splitRef, id: "split", className: "noPopup" },
  42359. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "topPart", ref: this.topPartRef },
  42360. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sceneExplorer_sceneExplorerComponent__WEBPACK_IMPORTED_MODULE_4__["SceneExplorerComponent"], { scene: this.props.scene, extensibilityGroups: this.props.extensibilityGroups, globalState: this.props.globalState, popupMode: true, noHeader: true })),
  42361. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "bottomPart", ref: this.bottomPartRef, style: { marginTop: "4px", overflow: "hidden" } },
  42362. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_actionTabs_actionTabsComponent__WEBPACK_IMPORTED_MODULE_5__["ActionTabsComponent"], { scene: this.props.scene, globalState: this.props.globalState, popupMode: true, noHeader: true, initialTab: this.props.initialTab }))));
  42363. };
  42364. EmbedHostComponent.prototype.render = function () {
  42365. var _this = this;
  42366. if (this.props.popupMode) {
  42367. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "embed" },
  42368. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_headerComponent__WEBPACK_IMPORTED_MODULE_2__["HeaderComponent"], { title: "INSPECTOR", noClose: this.props.noClose, noExpand: this.props.noExpand, handleBack: true, onClose: function () { return _this.props.onClose(); }, onPopup: function () { return _this.props.onPopup(); }, onSelectionChangedObservable: this.props.globalState.onSelectionChangedObservable }),
  42369. this.renderContent()));
  42370. }
  42371. if (this._once) {
  42372. this._once = false;
  42373. // A bit hacky but no other way to force the initial width to 300px and not auto
  42374. setTimeout(function () {
  42375. var element = document.getElementById("embed");
  42376. if (!element) {
  42377. return;
  42378. }
  42379. element.style.width = "300px";
  42380. }, 150);
  42381. }
  42382. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](re_resizable__WEBPACK_IMPORTED_MODULE_3___default.a, { id: "embed", minWidth: 300, maxWidth: 600, size: { height: "100%" }, minHeight: "100%", enable: { top: false, right: false, bottom: false, left: true, topRight: false, bottomRight: false, bottomLeft: false, topLeft: false } },
  42383. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_headerComponent__WEBPACK_IMPORTED_MODULE_2__["HeaderComponent"], { title: "INSPECTOR", noClose: this.props.noClose, noExpand: this.props.noExpand, handleBack: true, onClose: function () { return _this.props.onClose(); }, onPopup: function () { return _this.props.onPopup(); }, onSelectionChangedObservable: this.props.globalState.onSelectionChangedObservable }),
  42384. this.renderContent()));
  42385. };
  42386. return EmbedHostComponent;
  42387. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  42388. /***/ }),
  42389. /***/ "./components/globalState.ts":
  42390. /*!***********************************!*\
  42391. !*** ./components/globalState.ts ***!
  42392. \***********************************/
  42393. /*! exports provided: GlobalState */
  42394. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42395. "use strict";
  42396. __webpack_require__.r(__webpack_exports__);
  42397. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GlobalState", function() { return GlobalState; });
  42398. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/observable");
  42399. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__);
  42400. /* harmony import */ var _replayRecorder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./replayRecorder */ "./components/replayRecorder.ts");
  42401. var GlobalState = /** @class */ (function () {
  42402. function GlobalState() {
  42403. this.onInspectorClosedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  42404. this.onTabChangedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  42405. this.sceneImportDefaults = {};
  42406. this.validationResults = null;
  42407. this.onValidationResultsUpdatedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  42408. this.glTFLoaderExtensionDefaults = {};
  42409. this.glTFLoaderDefaults = { "validate": true };
  42410. this.blockMutationUpdates = false;
  42411. this.selectedLineContainerTitle = "";
  42412. this.recorder = new _replayRecorder__WEBPACK_IMPORTED_MODULE_1__["ReplayRecorder"]();
  42413. this._onlyUseEulers = null;
  42414. this._ignoreBackfacesForPicking = null;
  42415. // Light gizmos
  42416. this.lightGizmos = [];
  42417. }
  42418. Object.defineProperty(GlobalState.prototype, "onlyUseEulers", {
  42419. get: function () {
  42420. if (this._onlyUseEulers === null) {
  42421. this._onlyUseEulers = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadBoolean("settings_onlyUseEulers", true);
  42422. }
  42423. return this._onlyUseEulers;
  42424. },
  42425. set: function (value) {
  42426. this._onlyUseEulers = value;
  42427. babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].WriteBoolean("settings_onlyUseEulers", value);
  42428. },
  42429. enumerable: true,
  42430. configurable: true
  42431. });
  42432. Object.defineProperty(GlobalState.prototype, "ignoreBackfacesForPicking", {
  42433. get: function () {
  42434. if (this._ignoreBackfacesForPicking === null) {
  42435. this._ignoreBackfacesForPicking = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadBoolean("settings_ignoreBackfacesForPicking", false);
  42436. }
  42437. return this._ignoreBackfacesForPicking;
  42438. },
  42439. set: function (value) {
  42440. this._ignoreBackfacesForPicking = value;
  42441. babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].WriteBoolean("settings_ignoreBackfacesForPicking", value);
  42442. },
  42443. enumerable: true,
  42444. configurable: true
  42445. });
  42446. GlobalState.prototype.init = function (propertyChangedObservable) {
  42447. var _this = this;
  42448. this.onPropertyChangedObservable = propertyChangedObservable;
  42449. propertyChangedObservable.add(function (event) {
  42450. _this.recorder.record(event);
  42451. });
  42452. };
  42453. GlobalState.prototype.prepareGLTFPlugin = function (loader) {
  42454. var _this = this;
  42455. var loaderState = this.glTFLoaderDefaults;
  42456. if (loaderState !== undefined) {
  42457. for (var key in loaderState) {
  42458. loader[key] = loaderState[key];
  42459. }
  42460. }
  42461. loader.onExtensionLoadedObservable.add(function (extension) {
  42462. var extensionState = _this.glTFLoaderExtensionDefaults[extension.name];
  42463. if (extensionState !== undefined) {
  42464. for (var key in extensionState) {
  42465. extension[key] = extensionState[key];
  42466. }
  42467. }
  42468. });
  42469. if (this.validationResults) {
  42470. this.validationResults = null;
  42471. this.onValidationResultsUpdatedObservable.notifyObservers(null);
  42472. }
  42473. loader.onValidatedObservable.add(function (results) {
  42474. _this.validationResults = results;
  42475. _this.onValidationResultsUpdatedObservable.notifyObservers(results);
  42476. if (results.issues.numErrors || results.issues.numWarnings) {
  42477. _this.onTabChangedObservable.notifyObservers(3);
  42478. }
  42479. });
  42480. };
  42481. GlobalState.prototype.enableLightGizmo = function (light, enable) {
  42482. if (enable === void 0) { enable = true; }
  42483. if (enable) {
  42484. if (!light.reservedDataStore) {
  42485. light.reservedDataStore = {};
  42486. }
  42487. if (!light.reservedDataStore.lightGizmo) {
  42488. light.reservedDataStore.lightGizmo = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["LightGizmo"]();
  42489. this.lightGizmos.push(light.reservedDataStore.lightGizmo);
  42490. light.reservedDataStore.lightGizmo.light = light;
  42491. light.reservedDataStore.lightGizmo.material.reservedDataStore = { hidden: true };
  42492. }
  42493. }
  42494. else if (light.reservedDataStore && light.reservedDataStore.lightGizmo) {
  42495. this.lightGizmos.splice(this.lightGizmos.indexOf(light.reservedDataStore.lightGizmo), 1);
  42496. light.reservedDataStore.lightGizmo.dispose();
  42497. light.reservedDataStore.lightGizmo = null;
  42498. }
  42499. };
  42500. return GlobalState;
  42501. }());
  42502. /***/ }),
  42503. /***/ "./components/headerComponent.tsx":
  42504. /*!****************************************!*\
  42505. !*** ./components/headerComponent.tsx ***!
  42506. \****************************************/
  42507. /*! exports provided: HeaderComponent */
  42508. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42509. "use strict";
  42510. __webpack_require__.r(__webpack_exports__);
  42511. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HeaderComponent", function() { return HeaderComponent; });
  42512. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  42513. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  42514. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  42515. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  42516. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
  42517. var HeaderComponent = /** @class */ (function (_super) {
  42518. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(HeaderComponent, _super);
  42519. function HeaderComponent(props) {
  42520. var _this = _super.call(this, props) || this;
  42521. _this._backStack = new Array();
  42522. _this.state = { isBackVisible: false };
  42523. return _this;
  42524. }
  42525. HeaderComponent.prototype.componentDidMount = function () {
  42526. var _this = this;
  42527. if (!this.props.onSelectionChangedObservable) {
  42528. return;
  42529. }
  42530. this._onSelectionChangeObserver = this.props.onSelectionChangedObservable.add(function (entity) {
  42531. if (_this._backStack.length === 0 || entity !== _this._backStack[_this._backStack.length - 1]) {
  42532. _this._backStack.push(entity);
  42533. _this.setState({ isBackVisible: _this._backStack.length > 1 });
  42534. }
  42535. });
  42536. };
  42537. HeaderComponent.prototype.componentWillUnmount = function () {
  42538. if (this._onSelectionChangeObserver) {
  42539. this.props.onSelectionChangedObservable.remove(this._onSelectionChangeObserver);
  42540. }
  42541. };
  42542. HeaderComponent.prototype.goBack = function () {
  42543. this._backStack.pop(); // remove current
  42544. var entity = this._backStack[this._backStack.length - 1];
  42545. if (this.props.onSelectionChangedObservable) {
  42546. this.props.onSelectionChangedObservable.notifyObservers(entity);
  42547. }
  42548. this.setState({ isBackVisible: this._backStack.length > 1 });
  42549. };
  42550. HeaderComponent.prototype.renderLogo = function () {
  42551. var _this = this;
  42552. if (this.props.noCommands) {
  42553. return null;
  42554. }
  42555. if (this.props.handleBack) {
  42556. if (!this.state.isBackVisible) {
  42557. return null;
  42558. }
  42559. return (react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("div", { id: "back", onClick: function () { return _this.goBack(); } },
  42560. react__WEBPACK_IMPORTED_MODULE_3__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_2__["faArrowLeft"] })));
  42561. }
  42562. return (react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("img", { id: "logo", style: { top: "0%" }, src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }));
  42563. };
  42564. HeaderComponent.prototype.render = function () {
  42565. var _this = this;
  42566. return (react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("div", { id: "header" },
  42567. this.renderLogo(),
  42568. react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("div", { id: "title" }, this.props.title),
  42569. react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("div", { id: "commands" },
  42570. !this.props.noCommands && !this.props.noExpand &&
  42571. react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("div", { className: "expand", onClick: function () { return _this.props.onPopup(); } },
  42572. react__WEBPACK_IMPORTED_MODULE_3__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_2__["faWindowRestore"] })),
  42573. !this.props.noCommands && !this.props.noClose &&
  42574. react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("div", { className: "close", onClick: function () { return _this.props.onClose(); } },
  42575. react__WEBPACK_IMPORTED_MODULE_3__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_2__["faTimes"] })))));
  42576. };
  42577. return HeaderComponent;
  42578. }(react__WEBPACK_IMPORTED_MODULE_3__["Component"]));
  42579. /***/ }),
  42580. /***/ "./components/propertyChangedEvent.ts":
  42581. /*!********************************************!*\
  42582. !*** ./components/propertyChangedEvent.ts ***!
  42583. \********************************************/
  42584. /*! exports provided: PropertyChangedEvent */
  42585. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42586. "use strict";
  42587. __webpack_require__.r(__webpack_exports__);
  42588. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyChangedEvent", function() { return PropertyChangedEvent; });
  42589. var PropertyChangedEvent = /** @class */ (function () {
  42590. function PropertyChangedEvent() {
  42591. }
  42592. return PropertyChangedEvent;
  42593. }());
  42594. /***/ }),
  42595. /***/ "./components/replayRecorder.ts":
  42596. /*!**************************************!*\
  42597. !*** ./components/replayRecorder.ts ***!
  42598. \**************************************/
  42599. /*! exports provided: ReplayRecorder */
  42600. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42601. "use strict";
  42602. __webpack_require__.r(__webpack_exports__);
  42603. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReplayRecorder", function() { return ReplayRecorder; });
  42604. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/observable");
  42605. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_0__);
  42606. var ReplayRecorder = /** @class */ (function () {
  42607. function ReplayRecorder() {
  42608. }
  42609. ReplayRecorder.prototype.reset = function () {
  42610. this._recordedCodeLines = [];
  42611. this._previousObject = null;
  42612. this._previousProperty = "";
  42613. };
  42614. ReplayRecorder.prototype._getIndirectData = function (data) {
  42615. if (!data.getClassName) {
  42616. return data;
  42617. }
  42618. var indirectData = data.getClassName().toLowerCase();
  42619. if (data.id) {
  42620. if (indirectData === "Scene") {
  42621. indirectData = "scene";
  42622. }
  42623. else if (indirectData.indexOf("camera") > -1) {
  42624. indirectData = "scene.getCameraByID(\"" + data.id + "\")";
  42625. }
  42626. else if (indirectData.indexOf("mesh") > -1) {
  42627. indirectData = "scene.getMeshByID(\"" + data.id + "\")";
  42628. }
  42629. else if (indirectData.indexOf("light") > -1) {
  42630. indirectData = "scene.getLightByID(\"" + data.id + "\")";
  42631. }
  42632. else if (indirectData === "transformnode") {
  42633. indirectData = "scene.getTransformNodeByID(\"" + data.id + "\")";
  42634. }
  42635. else if (indirectData === "skeleton") {
  42636. indirectData = "scene.getSkeletonById(\"" + data.id + "\")";
  42637. }
  42638. else if (indirectData.indexOf("material") > -1) {
  42639. indirectData = "scene.getMaterialByID(\"" + data.id + "\")";
  42640. }
  42641. }
  42642. else {
  42643. indirectData = "new BABYLON." + data.getClassName() + "()";
  42644. }
  42645. return indirectData;
  42646. };
  42647. ReplayRecorder.prototype.record = function (event) {
  42648. if (!this._recordedCodeLines) {
  42649. this._recordedCodeLines = [];
  42650. }
  42651. if (this._previousObject === event.object && this._previousProperty === event.property) {
  42652. this._recordedCodeLines.pop();
  42653. }
  42654. var value = event.value;
  42655. if (!event.allowNullValue || event.allowNullValue && value !== null) {
  42656. if (value.w !== undefined) { // Quaternion
  42657. value = "new BABYLON.Quaternion(" + value.x + ", " + value.y + ", " + value.z + ", " + value.w + ")";
  42658. }
  42659. else if (value.z !== undefined) { // Vector3
  42660. value = "new BABYLON.Vector3(" + value.x + ", " + value.y + ", " + value.z + ")";
  42661. }
  42662. else if (value.y !== undefined) { // Vector2
  42663. value = "new BABYLON.Vector2(" + value.x + ", " + value.y + ")";
  42664. }
  42665. else if (value.a !== undefined) { // Color4
  42666. value = "new BABYLON.Color4(" + value.r + ", " + value.g + ", " + value.b + ", " + value.a + ")";
  42667. if (event.object._isLinearColor) {
  42668. value += '.toLinearSpace()';
  42669. }
  42670. }
  42671. else if (value.b !== undefined) { // Color3
  42672. value = "new BABYLON.Color3(" + value.r + ", " + value.g + ", " + value.b + ")";
  42673. if (event.object._isLinearColor) {
  42674. value += '.toLinearSpace()';
  42675. }
  42676. }
  42677. else if (value.getClassName) {
  42678. value = this._getIndirectData(value);
  42679. }
  42680. }
  42681. var target = this._getIndirectData(event.object);
  42682. this._recordedCodeLines.push(target + "." + event.property + " = " + value + ";");
  42683. this._previousObject = event.object;
  42684. this._previousProperty = event.property;
  42685. };
  42686. ReplayRecorder.prototype.export = function () {
  42687. var content = "// Code generated by babylon.js Inspector\r\n// Please keep in mind to define the 'scene' variable before using that code\r\n\r\n";
  42688. if (this._recordedCodeLines) {
  42689. content += this._recordedCodeLines.join("\r\n");
  42690. }
  42691. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_0__["Tools"].Download(new Blob([content]), "pseudo-code.txt");
  42692. };
  42693. return ReplayRecorder;
  42694. }());
  42695. /***/ }),
  42696. /***/ "./components/sceneExplorer/entities/animationGroupTreeItemComponent.tsx":
  42697. /*!*******************************************************************************!*\
  42698. !*** ./components/sceneExplorer/entities/animationGroupTreeItemComponent.tsx ***!
  42699. \*******************************************************************************/
  42700. /*! exports provided: AnimationGroupItemComponent */
  42701. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42702. "use strict";
  42703. __webpack_require__.r(__webpack_exports__);
  42704. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationGroupItemComponent", function() { return AnimationGroupItemComponent; });
  42705. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  42706. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  42707. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  42708. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  42709. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  42710. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  42711. var AnimationGroupItemComponent = /** @class */ (function (_super) {
  42712. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(AnimationGroupItemComponent, _super);
  42713. function AnimationGroupItemComponent(props) {
  42714. return _super.call(this, props) || this;
  42715. }
  42716. AnimationGroupItemComponent.prototype.render = function () {
  42717. var _this = this;
  42718. var animationGroup = this.props.animationGroup;
  42719. return (react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "animationGroupTools" },
  42720. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__["TreeItemLabelComponent"], { label: animationGroup.name, onClick: function () { return _this.props.onClick(); }, icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__["faFilm"], color: "cornflowerblue" }),
  42721. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_3__["ExtensionsComponent"], { target: animationGroup, extensibilityGroups: this.props.extensibilityGroups })));
  42722. };
  42723. return AnimationGroupItemComponent;
  42724. }(react__WEBPACK_IMPORTED_MODULE_4__["Component"]));
  42725. /***/ }),
  42726. /***/ "./components/sceneExplorer/entities/boneTreeItemComponent.tsx":
  42727. /*!*********************************************************************!*\
  42728. !*** ./components/sceneExplorer/entities/boneTreeItemComponent.tsx ***!
  42729. \*********************************************************************/
  42730. /*! exports provided: BoneTreeItemComponent */
  42731. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42732. "use strict";
  42733. __webpack_require__.r(__webpack_exports__);
  42734. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BoneTreeItemComponent", function() { return BoneTreeItemComponent; });
  42735. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  42736. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  42737. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  42738. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  42739. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  42740. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  42741. var BoneTreeItemComponent = /** @class */ (function (_super) {
  42742. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BoneTreeItemComponent, _super);
  42743. function BoneTreeItemComponent(props) {
  42744. return _super.call(this, props) || this;
  42745. }
  42746. BoneTreeItemComponent.prototype.render = function () {
  42747. var _this = this;
  42748. var bone = this.props.bone;
  42749. return (react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "skeletonTools" },
  42750. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__["TreeItemLabelComponent"], { label: bone.name || "no name", onClick: function () { return _this.props.onClick(); }, icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__["faBone"], color: "lightgray" }),
  42751. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_3__["ExtensionsComponent"], { target: bone, extensibilityGroups: this.props.extensibilityGroups })));
  42752. };
  42753. return BoneTreeItemComponent;
  42754. }(react__WEBPACK_IMPORTED_MODULE_4__["Component"]));
  42755. /***/ }),
  42756. /***/ "./components/sceneExplorer/entities/cameraTreeItemComponent.tsx":
  42757. /*!***********************************************************************!*\
  42758. !*** ./components/sceneExplorer/entities/cameraTreeItemComponent.tsx ***!
  42759. \***********************************************************************/
  42760. /*! exports provided: CameraTreeItemComponent */
  42761. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42762. "use strict";
  42763. __webpack_require__.r(__webpack_exports__);
  42764. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CameraTreeItemComponent", function() { return CameraTreeItemComponent; });
  42765. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  42766. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  42767. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  42768. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  42769. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  42770. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  42771. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
  42772. var CameraTreeItemComponent = /** @class */ (function (_super) {
  42773. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CameraTreeItemComponent, _super);
  42774. function CameraTreeItemComponent(props) {
  42775. var _this = _super.call(this, props) || this;
  42776. var camera = _this.props.camera;
  42777. var scene = camera.getScene();
  42778. _this.state = { isActive: scene.activeCamera === camera };
  42779. return _this;
  42780. }
  42781. CameraTreeItemComponent.prototype.setActive = function () {
  42782. var camera = this.props.camera;
  42783. var scene = camera.getScene();
  42784. scene.activeCamera = camera;
  42785. camera.attachControl(scene.getEngine().getRenderingCanvas(), true);
  42786. this.setState({ isActive: true });
  42787. };
  42788. CameraTreeItemComponent.prototype.componentDidMount = function () {
  42789. var _this = this;
  42790. var scene = this.props.camera.getScene();
  42791. this._onBeforeRenderObserver = scene.onBeforeRenderObservable.add(function () {
  42792. var camera = _this.props.camera;
  42793. // This will deactivate the previous camera when the camera is changed. Multiple camera's cycle frequently so only do this for single cameras
  42794. if (_this.state.isActive && scene.activeCameras.length <= 1 && scene.activeCamera !== camera) {
  42795. camera.detachControl(scene.getEngine().getRenderingCanvas());
  42796. }
  42797. _this.setState({ isActive: scene.activeCamera === camera });
  42798. });
  42799. };
  42800. CameraTreeItemComponent.prototype.componentWillUnmount = function () {
  42801. if (this._onBeforeRenderObserver) {
  42802. var camera = this.props.camera;
  42803. var scene = camera.getScene();
  42804. scene.onBeforeRenderObservable.remove(this._onBeforeRenderObserver);
  42805. }
  42806. };
  42807. CameraTreeItemComponent.prototype.render = function () {
  42808. var _this = this;
  42809. var isActiveElement = this.state.isActive ? react__WEBPACK_IMPORTED_MODULE_5__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_2__["faVideo"] }) : react__WEBPACK_IMPORTED_MODULE_5__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_2__["faVideo"], className: "isNotActive" });
  42810. var scene = this.props.camera.getScene();
  42811. return (react__WEBPACK_IMPORTED_MODULE_5__["createElement"]("div", { className: "cameraTools" },
  42812. react__WEBPACK_IMPORTED_MODULE_5__["createElement"](_treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_3__["TreeItemLabelComponent"], { label: this.props.camera.name, onClick: function () { return _this.props.onClick(); }, icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_2__["faCamera"], color: "green" }),
  42813. (!scene.activeCameras || scene.activeCameras.length === 0) &&
  42814. react__WEBPACK_IMPORTED_MODULE_5__["createElement"]("div", { className: "activeCamera icon", onClick: function () { return _this.setActive(); }, title: "Set as main camera and attach to controls" }, isActiveElement),
  42815. react__WEBPACK_IMPORTED_MODULE_5__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_4__["ExtensionsComponent"], { target: this.props.camera, extensibilityGroups: this.props.extensibilityGroups })));
  42816. };
  42817. return CameraTreeItemComponent;
  42818. }(react__WEBPACK_IMPORTED_MODULE_5__["Component"]));
  42819. /***/ }),
  42820. /***/ "./components/sceneExplorer/entities/gui/advancedDynamicTextureTreeItemComponent.tsx":
  42821. /*!*******************************************************************************************!*\
  42822. !*** ./components/sceneExplorer/entities/gui/advancedDynamicTextureTreeItemComponent.tsx ***!
  42823. \*******************************************************************************************/
  42824. /*! exports provided: AdvancedDynamicTextureTreeItemComponent */
  42825. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42826. "use strict";
  42827. __webpack_require__.r(__webpack_exports__);
  42828. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AdvancedDynamicTextureTreeItemComponent", function() { return AdvancedDynamicTextureTreeItemComponent; });
  42829. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  42830. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  42831. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  42832. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  42833. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  42834. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  42835. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  42836. var AdvancedDynamicTextureTreeItemComponent = /** @class */ (function (_super) {
  42837. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(AdvancedDynamicTextureTreeItemComponent, _super);
  42838. function AdvancedDynamicTextureTreeItemComponent(props) {
  42839. var _this = _super.call(this, props) || this;
  42840. _this.state = { isInPickingMode: false };
  42841. return _this;
  42842. }
  42843. AdvancedDynamicTextureTreeItemComponent.prototype.componentWillUnmount = function () {
  42844. var adt = this.props.texture;
  42845. if (this._onControlPickedObserver) {
  42846. adt.onControlPickedObservable.remove(this._onControlPickedObserver);
  42847. this._onControlPickedObserver = null;
  42848. }
  42849. };
  42850. AdvancedDynamicTextureTreeItemComponent.prototype.onPickingMode = function () {
  42851. var _this = this;
  42852. var adt = this.props.texture;
  42853. if (this._onControlPickedObserver) {
  42854. adt.onControlPickedObservable.remove(this._onControlPickedObserver);
  42855. this._onControlPickedObserver = null;
  42856. }
  42857. if (!this.state.isInPickingMode) {
  42858. this._onControlPickedObserver = adt.onControlPickedObservable.add(function (control) {
  42859. if (!_this.props.onSelectionChangedObservable) {
  42860. return;
  42861. }
  42862. if (control.getClassName() === "ScrollViewerWindow") {
  42863. control = control.getAscendantOfClass("ScrollViewer");
  42864. }
  42865. _this.props.onSelectionChangedObservable.notifyObservers(control);
  42866. });
  42867. }
  42868. this.setState({ isInPickingMode: !this.state.isInPickingMode });
  42869. };
  42870. AdvancedDynamicTextureTreeItemComponent.prototype.render = function () {
  42871. var _this = this;
  42872. return (react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "adtextureTools" },
  42873. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__["TreeItemLabelComponent"], { label: this.props.texture.name, onClick: function () { return _this.props.onClick(); }, icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__["faImage"], color: "mediumpurple" }),
  42874. react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: this.state.isInPickingMode ? "pickingMode selected icon" : "pickingMode icon", onClick: function () { return _this.onPickingMode(); }, title: "Turn picking mode on/off" },
  42875. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_5__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__["faCrosshairs"] })),
  42876. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_3__["ExtensionsComponent"], { target: this.props.texture, extensibilityGroups: this.props.extensibilityGroups })));
  42877. };
  42878. return AdvancedDynamicTextureTreeItemComponent;
  42879. }(react__WEBPACK_IMPORTED_MODULE_4__["Component"]));
  42880. /***/ }),
  42881. /***/ "./components/sceneExplorer/entities/gui/controlTreeItemComponent.tsx":
  42882. /*!****************************************************************************!*\
  42883. !*** ./components/sceneExplorer/entities/gui/controlTreeItemComponent.tsx ***!
  42884. \****************************************************************************/
  42885. /*! exports provided: ControlTreeItemComponent */
  42886. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42887. "use strict";
  42888. __webpack_require__.r(__webpack_exports__);
  42889. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ControlTreeItemComponent", function() { return ControlTreeItemComponent; });
  42890. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  42891. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  42892. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  42893. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  42894. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  42895. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  42896. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  42897. var ControlTreeItemComponent = /** @class */ (function (_super) {
  42898. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ControlTreeItemComponent, _super);
  42899. function ControlTreeItemComponent(props) {
  42900. var _this = _super.call(this, props) || this;
  42901. var control = _this.props.control;
  42902. _this.state = { isActive: control.isHighlighted, isVisible: control.isVisible };
  42903. return _this;
  42904. }
  42905. ControlTreeItemComponent.prototype.highlight = function () {
  42906. var control = this.props.control;
  42907. control.isHighlighted = !control.isHighlighted;
  42908. this.setState({ isActive: control.isHighlighted });
  42909. };
  42910. ControlTreeItemComponent.prototype.switchVisibility = function () {
  42911. var newState = !this.state.isVisible;
  42912. this.setState({ isVisible: newState });
  42913. this.props.control.isVisible = newState;
  42914. };
  42915. ControlTreeItemComponent.prototype.render = function () {
  42916. var _this = this;
  42917. var control = this.props.control;
  42918. var name = (control.name || "No name") + (" [" + control.getClassName() + "]");
  42919. var isActiveElement = this.state.isActive ? react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_5__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__["faHighlighter"] }) : react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_5__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__["faHighlighter"], className: "isNotActive" });
  42920. var visibilityElement = this.state.isVisible ? react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_5__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__["faEye"] }) : react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_5__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__["faEyeSlash"], className: "isNotActive" });
  42921. return (react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "controlTools" },
  42922. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__["TreeItemLabelComponent"], { label: name, onClick: function () { return _this.props.onClick(); }, icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__["faObjectGroup"], color: "greenyellow" }),
  42923. react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "highlight icon", onClick: function () { return _this.highlight(); }, title: "Highlight this control" }, isActiveElement),
  42924. react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "visibility icon", onClick: function () { return _this.switchVisibility(); }, title: "Show/Hide control" }, visibilityElement),
  42925. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_3__["ExtensionsComponent"], { target: control, extensibilityGroups: this.props.extensibilityGroups })));
  42926. };
  42927. return ControlTreeItemComponent;
  42928. }(react__WEBPACK_IMPORTED_MODULE_4__["Component"]));
  42929. /***/ }),
  42930. /***/ "./components/sceneExplorer/entities/lightTreeItemComponent.tsx":
  42931. /*!**********************************************************************!*\
  42932. !*** ./components/sceneExplorer/entities/lightTreeItemComponent.tsx ***!
  42933. \**********************************************************************/
  42934. /*! exports provided: LightTreeItemComponent */
  42935. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42936. "use strict";
  42937. __webpack_require__.r(__webpack_exports__);
  42938. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightTreeItemComponent", function() { return LightTreeItemComponent; });
  42939. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  42940. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  42941. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  42942. /* harmony import */ var _fortawesome_free_regular_svg_icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/free-regular-svg-icons */ "../../node_modules/@fortawesome/free-regular-svg-icons/index.es.js");
  42943. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  42944. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  42945. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  42946. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
  42947. var LightTreeItemComponent = /** @class */ (function (_super) {
  42948. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LightTreeItemComponent, _super);
  42949. function LightTreeItemComponent(props) {
  42950. var _this = _super.call(this, props) || this;
  42951. var light = _this.props.light;
  42952. _this.state = { isEnabled: light.isEnabled(), isGizmoEnabled: (light.reservedDataStore && light.reservedDataStore.lightGizmo) };
  42953. return _this;
  42954. }
  42955. LightTreeItemComponent.prototype.switchIsEnabled = function () {
  42956. var light = this.props.light;
  42957. light.setEnabled(!light.isEnabled());
  42958. this.setState({ isEnabled: light.isEnabled() });
  42959. };
  42960. LightTreeItemComponent.prototype.toggleGizmo = function () {
  42961. var light = this.props.light;
  42962. if (light.reservedDataStore && light.reservedDataStore.lightGizmo) {
  42963. if (light.getScene().reservedDataStore && light.getScene().reservedDataStore.gizmoManager) {
  42964. light.getScene().reservedDataStore.gizmoManager.attachToMesh(null);
  42965. }
  42966. this.props.globalState.enableLightGizmo(light, false);
  42967. this.setState({ isGizmoEnabled: false });
  42968. }
  42969. else {
  42970. this.props.globalState.enableLightGizmo(light, true);
  42971. this.setState({ isGizmoEnabled: true });
  42972. }
  42973. };
  42974. LightTreeItemComponent.prototype.render = function () {
  42975. var _this = this;
  42976. var isEnabledElement = this.state.isEnabled ? react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__["FontAwesomeIcon"], { icon: _fortawesome_free_regular_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faLightbulb"] }) : react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__["FontAwesomeIcon"], { icon: _fortawesome_free_regular_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faLightbulb"], className: "isNotActive" });
  42977. var isGizmoEnabled = (this.state.isGizmoEnabled || (this.props.light && this.props.light.reservedDataStore && this.props.light.reservedDataStore.lightGizmo)) ? react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_2__["faEye"] }) : react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_2__["faEye"], className: "isNotActive" });
  42978. return (react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", { className: "lightTools" },
  42979. react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_4__["TreeItemLabelComponent"], { label: this.props.light.name, onClick: function () { return _this.props.onClick(); }, icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_2__["faLightbulb"], color: "yellow" }),
  42980. react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", { className: "visibility icon", onClick: function () { return _this.switchIsEnabled(); }, title: "Turn on/off the light" }, isEnabledElement),
  42981. react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", { className: "enableGizmo icon", onClick: function () { return _this.toggleGizmo(); }, title: "Turn on/off the light's gizmo" }, isGizmoEnabled),
  42982. react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_5__["ExtensionsComponent"], { target: this.props.light, extensibilityGroups: this.props.extensibilityGroups })));
  42983. };
  42984. return LightTreeItemComponent;
  42985. }(react__WEBPACK_IMPORTED_MODULE_6__["Component"]));
  42986. /***/ }),
  42987. /***/ "./components/sceneExplorer/entities/materialTreeItemComponent.tsx":
  42988. /*!*************************************************************************!*\
  42989. !*** ./components/sceneExplorer/entities/materialTreeItemComponent.tsx ***!
  42990. \*************************************************************************/
  42991. /*! exports provided: MaterialTreeItemComponent */
  42992. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42993. "use strict";
  42994. __webpack_require__.r(__webpack_exports__);
  42995. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MaterialTreeItemComponent", function() { return MaterialTreeItemComponent; });
  42996. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  42997. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  42998. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  42999. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  43000. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43001. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  43002. var MaterialTreeItemComponent = /** @class */ (function (_super) {
  43003. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MaterialTreeItemComponent, _super);
  43004. function MaterialTreeItemComponent(props) {
  43005. return _super.call(this, props) || this;
  43006. }
  43007. MaterialTreeItemComponent.prototype.render = function () {
  43008. var _this = this;
  43009. return (react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "materialTools" },
  43010. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__["TreeItemLabelComponent"], { label: this.props.material.name, onClick: function () { return _this.props.onClick(); }, icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__["faBrush"], color: "orange" }),
  43011. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_3__["ExtensionsComponent"], { target: this.props.material, extensibilityGroups: this.props.extensibilityGroups })));
  43012. };
  43013. return MaterialTreeItemComponent;
  43014. }(react__WEBPACK_IMPORTED_MODULE_4__["Component"]));
  43015. /***/ }),
  43016. /***/ "./components/sceneExplorer/entities/meshTreeItemComponent.tsx":
  43017. /*!*********************************************************************!*\
  43018. !*** ./components/sceneExplorer/entities/meshTreeItemComponent.tsx ***!
  43019. \*********************************************************************/
  43020. /*! exports provided: MeshTreeItemComponent */
  43021. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43022. "use strict";
  43023. __webpack_require__.r(__webpack_exports__);
  43024. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MeshTreeItemComponent", function() { return MeshTreeItemComponent; });
  43025. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43026. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  43027. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  43028. /* harmony import */ var _fortawesome_free_regular_svg_icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/free-regular-svg-icons */ "../../node_modules/@fortawesome/free-regular-svg-icons/index.es.js");
  43029. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  43030. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  43031. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43032. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
  43033. var MeshTreeItemComponent = /** @class */ (function (_super) {
  43034. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MeshTreeItemComponent, _super);
  43035. function MeshTreeItemComponent(props) {
  43036. var _this = _super.call(this, props) || this;
  43037. var mesh = _this.props.mesh;
  43038. _this.state = { isBoundingBoxEnabled: mesh.showBoundingBox, isVisible: _this.props.mesh.isVisible };
  43039. return _this;
  43040. }
  43041. MeshTreeItemComponent.prototype.showBoundingBox = function () {
  43042. var mesh = this.props.mesh;
  43043. mesh.showBoundingBox = !this.state.isBoundingBoxEnabled;
  43044. this.setState({ isBoundingBoxEnabled: !this.state.isBoundingBoxEnabled });
  43045. };
  43046. MeshTreeItemComponent.prototype.switchVisibility = function () {
  43047. var newState = !this.state.isVisible;
  43048. this.setState({ isVisible: newState });
  43049. this.props.mesh.isVisible = newState;
  43050. };
  43051. MeshTreeItemComponent.prototype.render = function () {
  43052. var _this = this;
  43053. var mesh = this.props.mesh;
  43054. var visibilityElement = this.state.isVisible ? react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__["FontAwesomeIcon"], { icon: _fortawesome_free_regular_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faEye"] }) : react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__["FontAwesomeIcon"], { icon: _fortawesome_free_regular_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faEyeSlash"], className: "isNotActive" });
  43055. return (react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", { className: "meshTools" },
  43056. react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_4__["TreeItemLabelComponent"], { label: mesh.name, onClick: function () { return _this.props.onClick(); }, icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_2__["faCube"], color: "dodgerblue" }),
  43057. react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", { className: this.state.isBoundingBoxEnabled ? "bounding-box selected icon" : "bounding-box icon", onClick: function () { return _this.showBoundingBox(); }, title: "Show/Hide bounding box" },
  43058. react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__["FontAwesomeIcon"], { icon: _fortawesome_free_regular_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faSquare"] })),
  43059. react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", { className: "visibility icon", onClick: function () { return _this.switchVisibility(); }, title: "Show/Hide mesh" }, visibilityElement),
  43060. react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_5__["ExtensionsComponent"], { target: mesh, extensibilityGroups: this.props.extensibilityGroups })));
  43061. };
  43062. return MeshTreeItemComponent;
  43063. }(react__WEBPACK_IMPORTED_MODULE_6__["Component"]));
  43064. /***/ }),
  43065. /***/ "./components/sceneExplorer/entities/particleSystemTreeItemComponent.tsx":
  43066. /*!*******************************************************************************!*\
  43067. !*** ./components/sceneExplorer/entities/particleSystemTreeItemComponent.tsx ***!
  43068. \*******************************************************************************/
  43069. /*! exports provided: ParticleSystemTreeItemComponent */
  43070. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43071. "use strict";
  43072. __webpack_require__.r(__webpack_exports__);
  43073. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ParticleSystemTreeItemComponent", function() { return ParticleSystemTreeItemComponent; });
  43074. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43075. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  43076. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  43077. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  43078. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43079. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  43080. var ParticleSystemTreeItemComponent = /** @class */ (function (_super) {
  43081. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ParticleSystemTreeItemComponent, _super);
  43082. function ParticleSystemTreeItemComponent(props) {
  43083. return _super.call(this, props) || this;
  43084. }
  43085. ParticleSystemTreeItemComponent.prototype.render = function () {
  43086. var _this = this;
  43087. return (react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "particleSystemTools" },
  43088. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__["TreeItemLabelComponent"], { label: this.props.system.name || "Particle system", onClick: function () { return _this.props.onClick(); }, icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__["faBraille"], color: "crimson" }),
  43089. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_3__["ExtensionsComponent"], { target: this.props.system, extensibilityGroups: this.props.extensibilityGroups })));
  43090. };
  43091. return ParticleSystemTreeItemComponent;
  43092. }(react__WEBPACK_IMPORTED_MODULE_4__["Component"]));
  43093. /***/ }),
  43094. /***/ "./components/sceneExplorer/entities/postProcessTreeItemComponent.tsx":
  43095. /*!****************************************************************************!*\
  43096. !*** ./components/sceneExplorer/entities/postProcessTreeItemComponent.tsx ***!
  43097. \****************************************************************************/
  43098. /*! exports provided: PostProcessItemComponent */
  43099. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43100. "use strict";
  43101. __webpack_require__.r(__webpack_exports__);
  43102. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PostProcessItemComponent", function() { return PostProcessItemComponent; });
  43103. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43104. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  43105. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  43106. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  43107. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43108. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  43109. var PostProcessItemComponent = /** @class */ (function (_super) {
  43110. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PostProcessItemComponent, _super);
  43111. function PostProcessItemComponent(props) {
  43112. return _super.call(this, props) || this;
  43113. }
  43114. PostProcessItemComponent.prototype.render = function () {
  43115. var _this = this;
  43116. return (react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "postProcessTools" },
  43117. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__["TreeItemLabelComponent"], { label: this.props.postProcess.name, onClick: function () { return _this.props.onClick(); }, icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__["faMagic"], color: "red" }),
  43118. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_3__["ExtensionsComponent"], { target: this.props.postProcess, extensibilityGroups: this.props.extensibilityGroups })));
  43119. };
  43120. return PostProcessItemComponent;
  43121. }(react__WEBPACK_IMPORTED_MODULE_4__["Component"]));
  43122. /***/ }),
  43123. /***/ "./components/sceneExplorer/entities/renderingPipelineTreeItemComponent.tsx":
  43124. /*!**********************************************************************************!*\
  43125. !*** ./components/sceneExplorer/entities/renderingPipelineTreeItemComponent.tsx ***!
  43126. \**********************************************************************************/
  43127. /*! exports provided: RenderingPipelineItemComponent */
  43128. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43129. "use strict";
  43130. __webpack_require__.r(__webpack_exports__);
  43131. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RenderingPipelineItemComponent", function() { return RenderingPipelineItemComponent; });
  43132. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43133. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  43134. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  43135. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  43136. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43137. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  43138. var RenderingPipelineItemComponent = /** @class */ (function (_super) {
  43139. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RenderingPipelineItemComponent, _super);
  43140. function RenderingPipelineItemComponent(props) {
  43141. return _super.call(this, props) || this;
  43142. }
  43143. RenderingPipelineItemComponent.prototype.render = function () {
  43144. var _this = this;
  43145. return (react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "postProcessTools" },
  43146. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__["TreeItemLabelComponent"], { label: this.props.renderPipeline.name, onClick: function () { return _this.props.onClick(); }, icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__["faMagic"], color: "orangered" }),
  43147. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_3__["ExtensionsComponent"], { target: this.props.renderPipeline, extensibilityGroups: this.props.extensibilityGroups })));
  43148. };
  43149. return RenderingPipelineItemComponent;
  43150. }(react__WEBPACK_IMPORTED_MODULE_4__["Component"]));
  43151. /***/ }),
  43152. /***/ "./components/sceneExplorer/entities/sceneTreeItemComponent.tsx":
  43153. /*!**********************************************************************!*\
  43154. !*** ./components/sceneExplorer/entities/sceneTreeItemComponent.tsx ***!
  43155. \**********************************************************************/
  43156. /*! exports provided: SceneTreeItemComponent */
  43157. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43158. "use strict";
  43159. __webpack_require__.r(__webpack_exports__);
  43160. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SceneTreeItemComponent", function() { return SceneTreeItemComponent; });
  43161. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43162. /* harmony import */ var babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babylonjs/Events/pointerEvents */ "babylonjs/Misc/observable");
  43163. /* harmony import */ var babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1__);
  43164. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  43165. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  43166. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  43167. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43168. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
  43169. /* harmony import */ var _components_propertyChangedEvent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../components/propertyChangedEvent */ "./components/propertyChangedEvent.ts");
  43170. var SceneTreeItemComponent = /** @class */ (function (_super) {
  43171. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SceneTreeItemComponent, _super);
  43172. function SceneTreeItemComponent(props) {
  43173. var _this = _super.call(this, props) || this;
  43174. _this._posDragEnd = null;
  43175. _this._scaleDragEnd = null;
  43176. _this._rotateDragEnd = null;
  43177. var scene = _this.props.scene;
  43178. var gizmoMode = 0;
  43179. if (scene.reservedDataStore && scene.reservedDataStore.gizmoManager) {
  43180. var manager = scene.reservedDataStore.gizmoManager;
  43181. if (manager.positionGizmoEnabled) {
  43182. gizmoMode = 1;
  43183. }
  43184. else if (manager.rotationGizmoEnabled) {
  43185. gizmoMode = 2;
  43186. }
  43187. else if (manager.scaleGizmoEnabled) {
  43188. gizmoMode = 3;
  43189. }
  43190. else if (manager.boundingBoxGizmoEnabled) {
  43191. gizmoMode = 4;
  43192. }
  43193. }
  43194. _this.state = { isSelected: false, isInPickingMode: false, gizmoMode: gizmoMode };
  43195. return _this;
  43196. }
  43197. SceneTreeItemComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  43198. if (nextProps.selectedEntity) {
  43199. if (nextProps.scene === nextProps.selectedEntity) {
  43200. nextState.isSelected = true;
  43201. return true;
  43202. }
  43203. else {
  43204. nextState.isSelected = false;
  43205. }
  43206. }
  43207. return true;
  43208. };
  43209. SceneTreeItemComponent.prototype.componentDidMount = function () {
  43210. var _this = this;
  43211. if (!this.props.onSelectionChangedObservable) {
  43212. return;
  43213. }
  43214. var scene = this.props.scene;
  43215. this._onSelectionChangeObserver = this.props.onSelectionChangedObservable.add(function (entity) {
  43216. _this._selectedEntity = entity;
  43217. if (scene.reservedDataStore && scene.reservedDataStore.gizmoManager) {
  43218. var manager = scene.reservedDataStore.gizmoManager;
  43219. var className = entity.getClassName();
  43220. if (className === "TransformNode" || className.indexOf("Mesh") !== -1) {
  43221. manager.attachToMesh(entity);
  43222. }
  43223. else if (className.indexOf("Light") !== -1) {
  43224. if (!_this._selectedEntity.reservedDataStore || !_this._selectedEntity.reservedDataStore.lightGizmo) {
  43225. _this.props.globalState.enableLightGizmo(_this._selectedEntity, true);
  43226. _this.forceUpdate();
  43227. }
  43228. manager.attachToMesh(_this._selectedEntity.reservedDataStore.lightGizmo.attachedMesh);
  43229. }
  43230. else {
  43231. manager.attachToMesh(null);
  43232. }
  43233. }
  43234. });
  43235. };
  43236. SceneTreeItemComponent.prototype.componentWillUnmount = function () {
  43237. var scene = this.props.scene;
  43238. if (this._onPointerObserver) {
  43239. scene.onPointerObservable.remove(this._onPointerObserver);
  43240. this._onPointerObserver = null;
  43241. }
  43242. if (this._gizmoLayerOnPointerObserver) {
  43243. scene.onPointerObservable.remove(this._gizmoLayerOnPointerObserver);
  43244. this._gizmoLayerOnPointerObserver = null;
  43245. }
  43246. if (this._onSelectionChangeObserver && this.props.onSelectionChangedObservable) {
  43247. this.props.onSelectionChangedObservable.remove(this._onSelectionChangeObserver);
  43248. }
  43249. };
  43250. SceneTreeItemComponent.prototype.onSelect = function () {
  43251. if (!this.props.onSelectionChangedObservable) {
  43252. return;
  43253. }
  43254. var scene = this.props.scene;
  43255. this.props.onSelectionChangedObservable.notifyObservers(scene);
  43256. };
  43257. SceneTreeItemComponent.prototype.onPickingMode = function () {
  43258. var _this = this;
  43259. var scene = this.props.scene;
  43260. if (this._onPointerObserver) {
  43261. scene.onPointerObservable.remove(this._onPointerObserver);
  43262. this._onPointerObserver = null;
  43263. }
  43264. if (!this.state.isInPickingMode) {
  43265. this._onPointerObserver = scene.onPointerObservable.add(function () {
  43266. var pickPosition = scene.unTranslatedPointer;
  43267. var pickInfo = scene.pick(pickPosition.x, pickPosition.y, function (mesh) { return mesh.isEnabled() && mesh.isVisible && mesh.getTotalVertices() > 0; }, false, undefined, function (p0, p1, p2, ray) {
  43268. if (!_this.props.globalState.ignoreBackfacesForPicking) {
  43269. return true;
  43270. }
  43271. var p0p1 = babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1__["TmpVectors"].Vector3[0];
  43272. var p1p2 = babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1__["TmpVectors"].Vector3[1];
  43273. var normal = babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1__["TmpVectors"].Vector3[2];
  43274. p1.subtractToRef(p0, p0p1);
  43275. p2.subtractToRef(p1, p1p2);
  43276. normal = babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1__["Vector3"].Cross(p0p1, p1p2);
  43277. return babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1__["Vector3"].Dot(normal, ray.direction) < 0;
  43278. });
  43279. // Pick light gizmos first
  43280. if (_this.props.globalState.lightGizmos.length > 0) {
  43281. var gizmoScene = _this.props.globalState.lightGizmos[0].gizmoLayer.utilityLayerScene;
  43282. var pickInfo_1 = gizmoScene.pick(pickPosition.x, pickPosition.y, function (m) {
  43283. for (var _i = 0, _a = _this.props.globalState.lightGizmos; _i < _a.length; _i++) {
  43284. var g = _a[_i];
  43285. if (g.attachedMesh == m) {
  43286. return true;
  43287. }
  43288. }
  43289. return false;
  43290. });
  43291. if (pickInfo_1 && pickInfo_1.hit && _this.props.onSelectionChangedObservable) {
  43292. _this.props.onSelectionChangedObservable.notifyObservers(pickInfo_1.pickedMesh);
  43293. return;
  43294. }
  43295. }
  43296. if (pickInfo && pickInfo.hit && _this.props.onSelectionChangedObservable) {
  43297. _this.props.onSelectionChangedObservable.notifyObservers(pickInfo.pickedMesh);
  43298. }
  43299. }, babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1__["PointerEventTypes"].POINTERTAP);
  43300. }
  43301. this.setState({ isInPickingMode: !this.state.isInPickingMode });
  43302. };
  43303. SceneTreeItemComponent.prototype.setGizmoMode = function (mode) {
  43304. var _this = this;
  43305. var scene = this.props.scene;
  43306. if (!scene.reservedDataStore) {
  43307. scene.reservedDataStore = {};
  43308. }
  43309. if (this._gizmoLayerOnPointerObserver) {
  43310. scene.onPointerObservable.remove(this._gizmoLayerOnPointerObserver);
  43311. this._gizmoLayerOnPointerObserver = null;
  43312. }
  43313. if (!scene.reservedDataStore.gizmoManager) {
  43314. scene.reservedDataStore.gizmoManager = new babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1__["GizmoManager"](scene);
  43315. }
  43316. var manager = scene.reservedDataStore.gizmoManager;
  43317. // Allow picking of light gizmo when a gizmo mode is selected
  43318. this._gizmoLayerOnPointerObserver = babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1__["UtilityLayerRenderer"].DefaultUtilityLayer.utilityLayerScene.onPointerObservable.add(function (pointerInfo) {
  43319. if (pointerInfo.type == babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1__["PointerEventTypes"].POINTERDOWN) {
  43320. if (pointerInfo.pickInfo && pointerInfo.pickInfo.pickedMesh) {
  43321. var node = pointerInfo.pickInfo.pickedMesh;
  43322. // Attach to the most parent node
  43323. while (node && node.parent != null) {
  43324. node = node.parent;
  43325. }
  43326. for (var _i = 0, _a = _this.props.globalState.lightGizmos; _i < _a.length; _i++) {
  43327. var gizmo = _a[_i];
  43328. if (gizmo._rootMesh == node) {
  43329. manager.attachToMesh(gizmo.attachedMesh);
  43330. }
  43331. }
  43332. }
  43333. }
  43334. });
  43335. manager.boundingBoxGizmoEnabled = false;
  43336. manager.positionGizmoEnabled = false;
  43337. manager.rotationGizmoEnabled = false;
  43338. manager.scaleGizmoEnabled = false;
  43339. if (this.state.gizmoMode === mode) {
  43340. mode = 0;
  43341. manager.dispose();
  43342. scene.reservedDataStore.gizmoManager = null;
  43343. }
  43344. else {
  43345. switch (mode) {
  43346. case 1:
  43347. manager.positionGizmoEnabled = true;
  43348. if (!this._posDragEnd) {
  43349. // Record movement for generating replay code
  43350. this._posDragEnd = manager.gizmos.positionGizmo.onDragEndObservable.add(function () {
  43351. if (manager.gizmos.positionGizmo && manager.gizmos.positionGizmo.attachedMesh) {
  43352. var lightGizmo = manager.gizmos.positionGizmo.attachedMesh.reservedDataStore ? manager.gizmos.positionGizmo.attachedMesh.reservedDataStore.lightGizmo : null;
  43353. var obj = (lightGizmo && lightGizmo.light) ? lightGizmo.light : manager.gizmos.positionGizmo.attachedMesh;
  43354. if (obj.position) {
  43355. var e = new _components_propertyChangedEvent__WEBPACK_IMPORTED_MODULE_6__["PropertyChangedEvent"]();
  43356. e.object = obj;
  43357. e.property = "position";
  43358. e.value = obj.position;
  43359. _this.props.globalState.onPropertyChangedObservable.notifyObservers(e);
  43360. }
  43361. }
  43362. });
  43363. }
  43364. break;
  43365. case 2:
  43366. manager.rotationGizmoEnabled = true;
  43367. if (!this._rotateDragEnd) {
  43368. // Record movement for generating replay code
  43369. this._rotateDragEnd = manager.gizmos.rotationGizmo.onDragEndObservable.add(function () {
  43370. if (manager.gizmos.rotationGizmo && manager.gizmos.rotationGizmo.attachedMesh) {
  43371. var lightGizmo = manager.gizmos.rotationGizmo.attachedMesh.reservedDataStore ? manager.gizmos.rotationGizmo.attachedMesh.reservedDataStore.lightGizmo : null;
  43372. var obj = (lightGizmo && lightGizmo.light) ? lightGizmo.light : manager.gizmos.rotationGizmo.attachedMesh;
  43373. if (obj.rotationQuaternion) {
  43374. var e = new _components_propertyChangedEvent__WEBPACK_IMPORTED_MODULE_6__["PropertyChangedEvent"]();
  43375. e.object = obj;
  43376. e.property = "rotationQuaternion";
  43377. e.value = obj.rotationQuaternion;
  43378. _this.props.globalState.onPropertyChangedObservable.notifyObservers(e);
  43379. }
  43380. else if (obj.rotation) {
  43381. var e = new _components_propertyChangedEvent__WEBPACK_IMPORTED_MODULE_6__["PropertyChangedEvent"]();
  43382. e.object = obj;
  43383. e.property = "rotation";
  43384. e.value = obj.rotation;
  43385. _this.props.globalState.onPropertyChangedObservable.notifyObservers(e);
  43386. }
  43387. else if (obj.direction) {
  43388. var e = new _components_propertyChangedEvent__WEBPACK_IMPORTED_MODULE_6__["PropertyChangedEvent"]();
  43389. e.object = obj;
  43390. e.property = "direction";
  43391. e.value = obj.direction;
  43392. _this.props.globalState.onPropertyChangedObservable.notifyObservers(e);
  43393. }
  43394. }
  43395. });
  43396. }
  43397. break;
  43398. case 3:
  43399. manager.scaleGizmoEnabled = true;
  43400. if (!this._scaleDragEnd) {
  43401. // Record movement for generating replay code
  43402. this._scaleDragEnd = manager.gizmos.scaleGizmo.onDragEndObservable.add(function () {
  43403. if (manager.gizmos.scaleGizmo && manager.gizmos.scaleGizmo.attachedMesh) {
  43404. var lightGizmo = manager.gizmos.scaleGizmo.attachedMesh.reservedDataStore ? manager.gizmos.scaleGizmo.attachedMesh.reservedDataStore.lightGizmo : null;
  43405. var obj = (lightGizmo && lightGizmo.light) ? lightGizmo.light : manager.gizmos.scaleGizmo.attachedMesh;
  43406. if (obj.scaling) {
  43407. var e = new _components_propertyChangedEvent__WEBPACK_IMPORTED_MODULE_6__["PropertyChangedEvent"]();
  43408. e.object = obj;
  43409. e.property = "scaling";
  43410. e.value = obj.scaling;
  43411. _this.props.globalState.onPropertyChangedObservable.notifyObservers(e);
  43412. }
  43413. }
  43414. });
  43415. }
  43416. break;
  43417. case 4:
  43418. manager.boundingBoxGizmoEnabled = true;
  43419. if (manager.gizmos.boundingBoxGizmo) {
  43420. manager.gizmos.boundingBoxGizmo.fixedDragMeshScreenSize = true;
  43421. }
  43422. break;
  43423. }
  43424. if (this._selectedEntity && this._selectedEntity.getClassName) {
  43425. var className = this._selectedEntity.getClassName();
  43426. if (className === "TransformNode" || className.indexOf("Mesh") !== -1) {
  43427. manager.attachToMesh(this._selectedEntity);
  43428. }
  43429. else if (className.indexOf("Light") !== -1) {
  43430. if (!this._selectedEntity.reservedDataStore || !this._selectedEntity.reservedDataStore.lightGizmo) {
  43431. this.props.globalState.enableLightGizmo(this._selectedEntity, true);
  43432. this.forceUpdate();
  43433. }
  43434. manager.attachToMesh(this._selectedEntity.reservedDataStore.lightGizmo.attachedMesh);
  43435. }
  43436. }
  43437. }
  43438. this.setState({ gizmoMode: mode });
  43439. };
  43440. SceneTreeItemComponent.prototype.render = function () {
  43441. var _this = this;
  43442. return (react__WEBPACK_IMPORTED_MODULE_5__["createElement"]("div", { className: this.state.isSelected ? "itemContainer selected" : "itemContainer" },
  43443. react__WEBPACK_IMPORTED_MODULE_5__["createElement"]("div", { className: "sceneNode" },
  43444. react__WEBPACK_IMPORTED_MODULE_5__["createElement"]("div", { className: "sceneTitle", onClick: function () { return _this.onSelect(); } },
  43445. react__WEBPACK_IMPORTED_MODULE_5__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faImage"] }),
  43446. "\u00A0Scene"),
  43447. react__WEBPACK_IMPORTED_MODULE_5__["createElement"]("div", { className: this.state.gizmoMode === 1 ? "translation selected icon" : "translation icon", onClick: function () { return _this.setGizmoMode(1); }, title: "Enable/Disable position mode" },
  43448. react__WEBPACK_IMPORTED_MODULE_5__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faArrowsAlt"] })),
  43449. react__WEBPACK_IMPORTED_MODULE_5__["createElement"]("div", { className: this.state.gizmoMode === 2 ? "rotation selected icon" : "rotation icon", onClick: function () { return _this.setGizmoMode(2); }, title: "Enable/Disable rotation mode" },
  43450. react__WEBPACK_IMPORTED_MODULE_5__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faRedoAlt"] })),
  43451. react__WEBPACK_IMPORTED_MODULE_5__["createElement"]("div", { className: this.state.gizmoMode === 3 ? "scaling selected icon" : "scaling icon", onClick: function () { return _this.setGizmoMode(3); }, title: "Enable/Disable scaling mode" },
  43452. react__WEBPACK_IMPORTED_MODULE_5__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faCompress"] })),
  43453. react__WEBPACK_IMPORTED_MODULE_5__["createElement"]("div", { className: this.state.gizmoMode === 4 ? "bounding selected icon" : "bounding icon", onClick: function () { return _this.setGizmoMode(4); }, title: "Enable/Disable bounding box mode" },
  43454. react__WEBPACK_IMPORTED_MODULE_5__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faVectorSquare"] })),
  43455. react__WEBPACK_IMPORTED_MODULE_5__["createElement"]("div", { className: "separator" }),
  43456. react__WEBPACK_IMPORTED_MODULE_5__["createElement"]("div", { className: this.state.isInPickingMode ? "pickingMode selected icon" : "pickingMode icon", onClick: function () { return _this.onPickingMode(); }, title: "Turn picking mode on/off" },
  43457. react__WEBPACK_IMPORTED_MODULE_5__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faCrosshairs"] })),
  43458. react__WEBPACK_IMPORTED_MODULE_5__["createElement"]("div", { className: "refresh icon", onClick: function () { return _this.props.onRefresh(); }, title: "Refresh the explorer" },
  43459. react__WEBPACK_IMPORTED_MODULE_5__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faSyncAlt"] })),
  43460. react__WEBPACK_IMPORTED_MODULE_5__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_4__["ExtensionsComponent"], { target: this.props.scene, extensibilityGroups: this.props.extensibilityGroups }))));
  43461. };
  43462. return SceneTreeItemComponent;
  43463. }(react__WEBPACK_IMPORTED_MODULE_5__["Component"]));
  43464. /***/ }),
  43465. /***/ "./components/sceneExplorer/entities/skeletonTreeItemComponent.tsx":
  43466. /*!*************************************************************************!*\
  43467. !*** ./components/sceneExplorer/entities/skeletonTreeItemComponent.tsx ***!
  43468. \*************************************************************************/
  43469. /*! exports provided: SkeletonTreeItemComponent */
  43470. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43471. "use strict";
  43472. __webpack_require__.r(__webpack_exports__);
  43473. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SkeletonTreeItemComponent", function() { return SkeletonTreeItemComponent; });
  43474. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43475. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  43476. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  43477. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  43478. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43479. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  43480. var SkeletonTreeItemComponent = /** @class */ (function (_super) {
  43481. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SkeletonTreeItemComponent, _super);
  43482. function SkeletonTreeItemComponent(props) {
  43483. return _super.call(this, props) || this;
  43484. }
  43485. SkeletonTreeItemComponent.prototype.render = function () {
  43486. var _this = this;
  43487. var skeleton = this.props.skeleton;
  43488. return (react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "skeletonTools" },
  43489. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__["TreeItemLabelComponent"], { label: skeleton.name || "no name", onClick: function () { return _this.props.onClick(); }, icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__["faSkull"], color: "gray" }),
  43490. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_3__["ExtensionsComponent"], { target: skeleton, extensibilityGroups: this.props.extensibilityGroups })));
  43491. };
  43492. return SkeletonTreeItemComponent;
  43493. }(react__WEBPACK_IMPORTED_MODULE_4__["Component"]));
  43494. /***/ }),
  43495. /***/ "./components/sceneExplorer/entities/textureTreeItemComponent.tsx":
  43496. /*!************************************************************************!*\
  43497. !*** ./components/sceneExplorer/entities/textureTreeItemComponent.tsx ***!
  43498. \************************************************************************/
  43499. /*! exports provided: TextureTreeItemComponent */
  43500. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43501. "use strict";
  43502. __webpack_require__.r(__webpack_exports__);
  43503. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureTreeItemComponent", function() { return TextureTreeItemComponent; });
  43504. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43505. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  43506. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  43507. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  43508. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43509. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  43510. var TextureTreeItemComponent = /** @class */ (function (_super) {
  43511. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TextureTreeItemComponent, _super);
  43512. function TextureTreeItemComponent(props) {
  43513. return _super.call(this, props) || this;
  43514. }
  43515. TextureTreeItemComponent.prototype.render = function () {
  43516. var _this = this;
  43517. return (react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "textureTools" },
  43518. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__["TreeItemLabelComponent"], { label: this.props.texture.name, onClick: function () { return _this.props.onClick(); }, icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__["faImage"], color: "mediumpurple" }),
  43519. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_3__["ExtensionsComponent"], { target: this.props.texture, extensibilityGroups: this.props.extensibilityGroups })));
  43520. };
  43521. return TextureTreeItemComponent;
  43522. }(react__WEBPACK_IMPORTED_MODULE_4__["Component"]));
  43523. /***/ }),
  43524. /***/ "./components/sceneExplorer/entities/transformNodeTreeItemComponent.tsx":
  43525. /*!******************************************************************************!*\
  43526. !*** ./components/sceneExplorer/entities/transformNodeTreeItemComponent.tsx ***!
  43527. \******************************************************************************/
  43528. /*! exports provided: TransformNodeItemComponent */
  43529. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43530. "use strict";
  43531. __webpack_require__.r(__webpack_exports__);
  43532. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransformNodeItemComponent", function() { return TransformNodeItemComponent; });
  43533. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43534. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  43535. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  43536. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  43537. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43538. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  43539. var TransformNodeItemComponent = /** @class */ (function (_super) {
  43540. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TransformNodeItemComponent, _super);
  43541. function TransformNodeItemComponent(props) {
  43542. return _super.call(this, props) || this;
  43543. }
  43544. TransformNodeItemComponent.prototype.render = function () {
  43545. var _this = this;
  43546. var transformNode = this.props.transformNode;
  43547. return (react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "transformNodeTools" },
  43548. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__["TreeItemLabelComponent"], { label: transformNode.name, onClick: function () { return _this.props.onClick(); }, icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__["faCodeBranch"], color: "cornflowerblue" }),
  43549. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_3__["ExtensionsComponent"], { target: transformNode, extensibilityGroups: this.props.extensibilityGroups })));
  43550. };
  43551. return TransformNodeItemComponent;
  43552. }(react__WEBPACK_IMPORTED_MODULE_4__["Component"]));
  43553. /***/ }),
  43554. /***/ "./components/sceneExplorer/extensionsComponent.tsx":
  43555. /*!**********************************************************!*\
  43556. !*** ./components/sceneExplorer/extensionsComponent.tsx ***!
  43557. \**********************************************************/
  43558. /*! exports provided: ExtensionsComponent */
  43559. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43560. "use strict";
  43561. __webpack_require__.r(__webpack_exports__);
  43562. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExtensionsComponent", function() { return ExtensionsComponent; });
  43563. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43564. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  43565. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  43566. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43567. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
  43568. var ExtensionsComponent = /** @class */ (function (_super) {
  43569. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ExtensionsComponent, _super);
  43570. function ExtensionsComponent(props) {
  43571. var _this = _super.call(this, props) || this;
  43572. _this.state = { popupVisible: false };
  43573. _this.extensionRef = react__WEBPACK_IMPORTED_MODULE_3__["createRef"]();
  43574. return _this;
  43575. }
  43576. ExtensionsComponent.prototype.showPopup = function () {
  43577. this.setState({ popupVisible: true });
  43578. };
  43579. ExtensionsComponent.prototype.componentDidMount = function () {
  43580. if (!this._popup) {
  43581. return;
  43582. }
  43583. this._popup.focus();
  43584. };
  43585. ExtensionsComponent.prototype.componentDidUpdate = function () {
  43586. if (!this._popup) {
  43587. return;
  43588. }
  43589. this._popup.focus();
  43590. };
  43591. ExtensionsComponent.prototype.render = function () {
  43592. var _this = this;
  43593. if (!this.props.extensibilityGroups) {
  43594. return null;
  43595. }
  43596. var options = [];
  43597. for (var _i = 0, _a = this.props.extensibilityGroups; _i < _a.length; _i++) {
  43598. var group = _a[_i];
  43599. if (group.predicate(this.props.target)) {
  43600. options.push.apply(options, group.entries);
  43601. }
  43602. }
  43603. if (options.length === 0) {
  43604. return null;
  43605. }
  43606. return (react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("div", { ref: this.extensionRef, className: "extensions", onClick: function () { return _this.showPopup(); } },
  43607. react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("div", { title: "Additional options", className: "icon" },
  43608. react__WEBPACK_IMPORTED_MODULE_3__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_2__["faEllipsisH"] })),
  43609. react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("div", { ref: function (input) { _this._popup = input; }, tabIndex: -1, className: this.state.popupVisible ? "popup show" : "popup", onBlur: function () { return _this.setState({ popupVisible: false }); } }, options.map(function (extensibility) {
  43610. return (react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("div", { key: extensibility.label, className: "popupMenu", onClick: function () { return extensibility.action(_this.props.target); } }, extensibility.label));
  43611. }))));
  43612. };
  43613. return ExtensionsComponent;
  43614. }(react__WEBPACK_IMPORTED_MODULE_3__["Component"]));
  43615. /***/ }),
  43616. /***/ "./components/sceneExplorer/sceneExplorer.scss":
  43617. /*!*****************************************************!*\
  43618. !*** ./components/sceneExplorer/sceneExplorer.scss ***!
  43619. \*****************************************************/
  43620. /*! no static exports found */
  43621. /***/ (function(module, exports, __webpack_require__) {
  43622. var content = __webpack_require__(/*! !../../../../node_modules/css-loader!../../../../node_modules/sass-loader/lib/loader.js!./sceneExplorer.scss */ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/sceneExplorer/sceneExplorer.scss");
  43623. if(typeof content === 'string') content = [[module.i, content, '']];
  43624. var transform;
  43625. var insertInto;
  43626. var options = {"hmr":true}
  43627. options.transform = transform
  43628. options.insertInto = undefined;
  43629. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  43630. if(content.locals) module.exports = content.locals;
  43631. if(false) {}
  43632. /***/ }),
  43633. /***/ "./components/sceneExplorer/sceneExplorerComponent.tsx":
  43634. /*!*************************************************************!*\
  43635. !*** ./components/sceneExplorer/sceneExplorerComponent.tsx ***!
  43636. \*************************************************************/
  43637. /*! exports provided: SceneExplorerFilterComponent, SceneExplorerComponent */
  43638. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43639. "use strict";
  43640. __webpack_require__.r(__webpack_exports__);
  43641. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SceneExplorerFilterComponent", function() { return SceneExplorerFilterComponent; });
  43642. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SceneExplorerComponent", function() { return SceneExplorerComponent; });
  43643. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43644. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43645. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  43646. /* harmony import */ var babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Engines/engineStore */ "babylonjs/Misc/observable");
  43647. /* harmony import */ var babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__);
  43648. /* harmony import */ var _treeItemComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./treeItemComponent */ "./components/sceneExplorer/treeItemComponent.tsx");
  43649. /* harmony import */ var re_resizable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! re-resizable */ "../../node_modules/re-resizable/lib/index.es5.js");
  43650. /* harmony import */ var re_resizable__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(re_resizable__WEBPACK_IMPORTED_MODULE_4__);
  43651. /* harmony import */ var _headerComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../headerComponent */ "./components/headerComponent.tsx");
  43652. /* harmony import */ var _entities_sceneTreeItemComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./entities/sceneTreeItemComponent */ "./components/sceneExplorer/entities/sceneTreeItemComponent.tsx");
  43653. /* harmony import */ var _tools__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../tools */ "./tools.ts");
  43654. __webpack_require__(/*! ./sceneExplorer.scss */ "./components/sceneExplorer/sceneExplorer.scss");
  43655. var SceneExplorerFilterComponent = /** @class */ (function (_super) {
  43656. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SceneExplorerFilterComponent, _super);
  43657. function SceneExplorerFilterComponent(props) {
  43658. return _super.call(this, props) || this;
  43659. }
  43660. SceneExplorerFilterComponent.prototype.render = function () {
  43661. var _this = this;
  43662. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "filter" },
  43663. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "text", placeholder: "Filter", onChange: function (evt) { return _this.props.onFilter(evt.target.value); } })));
  43664. };
  43665. return SceneExplorerFilterComponent;
  43666. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  43667. var SceneExplorerComponent = /** @class */ (function (_super) {
  43668. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SceneExplorerComponent, _super);
  43669. function SceneExplorerComponent(props) {
  43670. var _this = _super.call(this, props) || this;
  43671. _this._once = true;
  43672. _this._hooked = false;
  43673. _this.state = { filter: null, selectedEntity: null, scene: _this.props.scene };
  43674. _this.sceneMutationFunc = _this.processMutation.bind(_this);
  43675. _this.sceneExplorerRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  43676. return _this;
  43677. }
  43678. SceneExplorerComponent.prototype.processMutation = function () {
  43679. var _this = this;
  43680. if (this.props.globalState.blockMutationUpdates) {
  43681. return;
  43682. }
  43683. setTimeout(function () { return _this.forceUpdate(); });
  43684. };
  43685. SceneExplorerComponent.prototype.componentDidMount = function () {
  43686. var _this = this;
  43687. this._onSelectionChangeObserver = this.props.globalState.onSelectionChangedObservable.add(function (entity) {
  43688. if (_this.state.selectedEntity !== entity) {
  43689. _this.setState({ selectedEntity: entity });
  43690. }
  43691. });
  43692. };
  43693. SceneExplorerComponent.prototype.componentWillUnmount = function () {
  43694. if (this._onSelectionChangeObserver) {
  43695. this.props.globalState.onSelectionChangedObservable.remove(this._onSelectionChangeObserver);
  43696. }
  43697. if (this._onNewSceneAddedObserver) {
  43698. babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["EngineStore"].LastCreatedEngine.onNewSceneAddedObservable.remove(this._onNewSceneAddedObserver);
  43699. }
  43700. var scene = this.state.scene;
  43701. scene.onNewSkeletonAddedObservable.removeCallback(this.sceneMutationFunc);
  43702. scene.onNewCameraAddedObservable.removeCallback(this.sceneMutationFunc);
  43703. scene.onNewLightAddedObservable.removeCallback(this.sceneMutationFunc);
  43704. scene.onNewMaterialAddedObservable.removeCallback(this.sceneMutationFunc);
  43705. scene.onNewMeshAddedObservable.removeCallback(this.sceneMutationFunc);
  43706. scene.onNewTextureAddedObservable.removeCallback(this.sceneMutationFunc);
  43707. scene.onNewTransformNodeAddedObservable.removeCallback(this.sceneMutationFunc);
  43708. scene.onSkeletonRemovedObservable.removeCallback(this.sceneMutationFunc);
  43709. scene.onMeshRemovedObservable.removeCallback(this.sceneMutationFunc);
  43710. scene.onCameraRemovedObservable.removeCallback(this.sceneMutationFunc);
  43711. scene.onLightRemovedObservable.removeCallback(this.sceneMutationFunc);
  43712. scene.onMaterialRemovedObservable.removeCallback(this.sceneMutationFunc);
  43713. scene.onTransformNodeRemovedObservable.removeCallback(this.sceneMutationFunc);
  43714. scene.onTextureRemovedObservable.removeCallback(this.sceneMutationFunc);
  43715. };
  43716. SceneExplorerComponent.prototype.filterContent = function (filter) {
  43717. this.setState({ filter: filter });
  43718. };
  43719. SceneExplorerComponent.prototype.findSiblings = function (parent, items, target, goNext, data) {
  43720. if (!items) {
  43721. return false;
  43722. }
  43723. var sortedItems = _tools__WEBPACK_IMPORTED_MODULE_7__["Tools"].SortAndFilter(parent, items);
  43724. if (!items || sortedItems.length === 0) {
  43725. return false;
  43726. }
  43727. for (var _i = 0, sortedItems_1 = sortedItems; _i < sortedItems_1.length; _i++) {
  43728. var item = sortedItems_1[_i];
  43729. if (item === target) { // found the current selection!
  43730. data.found = true;
  43731. if (!goNext) {
  43732. if (data.previousOne) {
  43733. this.props.globalState.onSelectionChangedObservable.notifyObservers(data.previousOne);
  43734. }
  43735. return true;
  43736. }
  43737. }
  43738. else {
  43739. if (data.found) {
  43740. this.props.globalState.onSelectionChangedObservable.notifyObservers(item);
  43741. return true;
  43742. }
  43743. data.previousOne = item;
  43744. }
  43745. if (item.getChildren && item.reservedDataStore && item.reservedDataStore.isExpanded) {
  43746. if (this.findSiblings(item, item.getChildren(), target, goNext, data)) {
  43747. return true;
  43748. }
  43749. }
  43750. }
  43751. return false;
  43752. };
  43753. SceneExplorerComponent.prototype.processKeys = function (keyEvent) {
  43754. if (!this.state.selectedEntity) {
  43755. return;
  43756. }
  43757. var scene = this.state.scene;
  43758. var search = false;
  43759. var goNext = false;
  43760. if (keyEvent.keyCode === 38) { // up
  43761. search = true;
  43762. }
  43763. else if (keyEvent.keyCode === 40) { // down
  43764. goNext = true;
  43765. search = true;
  43766. }
  43767. else if (keyEvent.keyCode === 13 || keyEvent.keyCode === 39) { // enter or right
  43768. var reservedDataStore = this.state.selectedEntity.reservedDataStore;
  43769. if (reservedDataStore && reservedDataStore.setExpandedState) {
  43770. reservedDataStore.setExpandedState(true);
  43771. }
  43772. keyEvent.preventDefault();
  43773. return;
  43774. }
  43775. else if (keyEvent.keyCode === 37) { // left
  43776. var reservedDataStore = this.state.selectedEntity.reservedDataStore;
  43777. if (reservedDataStore && reservedDataStore.setExpandedState) {
  43778. reservedDataStore.setExpandedState(false);
  43779. }
  43780. keyEvent.preventDefault();
  43781. return;
  43782. }
  43783. if (!search) {
  43784. return;
  43785. }
  43786. keyEvent.preventDefault();
  43787. var data = {};
  43788. if (!this.findSiblings(null, scene.rootNodes, this.state.selectedEntity, goNext, data)) {
  43789. if (!this.findSiblings(null, scene.materials, this.state.selectedEntity, goNext, data)) {
  43790. this.findSiblings(null, scene.textures, this.state.selectedEntity, goNext, data);
  43791. }
  43792. }
  43793. };
  43794. SceneExplorerComponent.prototype.renderContent = function () {
  43795. var _this = this;
  43796. var scene = this.state.scene;
  43797. if (!scene) {
  43798. this._onNewSceneAddedObserver = babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["EngineStore"].LastCreatedEngine.onNewSceneAddedObservable.addOnce(function (scene) { return _this.setState({ scene: scene }); });
  43799. return null;
  43800. }
  43801. if (!this._hooked) {
  43802. this._hooked = true;
  43803. scene.onNewSkeletonAddedObservable.add(this.sceneMutationFunc);
  43804. scene.onNewCameraAddedObservable.add(this.sceneMutationFunc);
  43805. scene.onNewLightAddedObservable.add(this.sceneMutationFunc);
  43806. scene.onNewMaterialAddedObservable.add(this.sceneMutationFunc);
  43807. scene.onNewMeshAddedObservable.add(this.sceneMutationFunc);
  43808. scene.onNewTextureAddedObservable.add(this.sceneMutationFunc);
  43809. scene.onNewTransformNodeAddedObservable.add(this.sceneMutationFunc);
  43810. scene.onSkeletonRemovedObservable.add(this.sceneMutationFunc);
  43811. scene.onMeshRemovedObservable.add(this.sceneMutationFunc);
  43812. scene.onCameraRemovedObservable.add(this.sceneMutationFunc);
  43813. scene.onLightRemovedObservable.add(this.sceneMutationFunc);
  43814. scene.onMaterialRemovedObservable.add(this.sceneMutationFunc);
  43815. scene.onTransformNodeRemovedObservable.add(this.sceneMutationFunc);
  43816. scene.onTextureRemovedObservable.add(this.sceneMutationFunc);
  43817. }
  43818. var guiElements = scene.textures.filter(function (t) { return t.getClassName() === "AdvancedDynamicTexture"; });
  43819. var textures = scene.textures.filter(function (t) { return t.getClassName() !== "AdvancedDynamicTexture"; });
  43820. var postProcessses = scene.postProcesses;
  43821. var pipelines = scene.postProcessRenderPipelineManager.supportedPipelines;
  43822. // Context menus
  43823. var pipelineContextMenus = [];
  43824. if (scene.activeCamera) {
  43825. if (!pipelines.some(function (p) { return p.getClassName() === "DefaultRenderingPipeline"; })) {
  43826. pipelineContextMenus.push({
  43827. label: "Add new Default Rendering Pipeline",
  43828. action: function () {
  43829. var newPipeline = new babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["DefaultRenderingPipeline"]("Default rendering pipeline", true, scene, [scene.activeCamera]);
  43830. _this.props.globalState.onSelectionChangedObservable.notifyObservers(newPipeline);
  43831. }
  43832. });
  43833. }
  43834. if (!pipelines.some(function (p) { return p.getClassName() === "SSAORenderingPipeline"; })) {
  43835. pipelineContextMenus.push({
  43836. label: "Add new SSAO Rendering Pipeline",
  43837. action: function () {
  43838. var newPipeline = new babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["SSAORenderingPipeline"]("SSAO rendering pipeline", scene, 1, [scene.activeCamera]);
  43839. _this.props.globalState.onSelectionChangedObservable.notifyObservers(newPipeline);
  43840. }
  43841. });
  43842. }
  43843. if (scene.getEngine().webGLVersion > 1 && !pipelines.some(function (p) { return p.getClassName() === "SSAORenderingPipeline"; })) {
  43844. pipelineContextMenus.push({
  43845. label: "Add new SSAO2 Rendering Pipeline",
  43846. action: function () {
  43847. var newPipeline = new babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["SSAORenderingPipeline"]("SSAO2 rendering pipeline", scene, 1, [scene.activeCamera]);
  43848. _this.props.globalState.onSelectionChangedObservable.notifyObservers(newPipeline);
  43849. }
  43850. });
  43851. }
  43852. }
  43853. var nodeContextMenus = [];
  43854. nodeContextMenus.push({
  43855. label: "Add new point light",
  43856. action: function () {
  43857. var newPointLight = new babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["PointLight"]("point light", babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["Vector3"].Zero(), scene);
  43858. _this.props.globalState.onSelectionChangedObservable.notifyObservers(newPointLight);
  43859. }
  43860. });
  43861. nodeContextMenus.push({
  43862. label: "Add new directional light",
  43863. action: function () {
  43864. var newDirectionalLight = new babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["DirectionalLight"]("directional light", new babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["Vector3"](-1, -1, -0.5), scene);
  43865. _this.props.globalState.onSelectionChangedObservable.notifyObservers(newDirectionalLight);
  43866. }
  43867. });
  43868. nodeContextMenus.push({
  43869. label: "Add new free camera",
  43870. action: function () {
  43871. var newFreeCamera = new babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["FreeCamera"]("free camera", scene.activeCamera ? scene.activeCamera.globalPosition : new babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["Vector3"](0, 0, -5), scene);
  43872. _this.props.globalState.onSelectionChangedObservable.notifyObservers(newFreeCamera);
  43873. }
  43874. });
  43875. // Materials
  43876. var materialsContextMenus = [];
  43877. materialsContextMenus.push({
  43878. label: "Add new node material",
  43879. action: function () {
  43880. var newNodeMaterial = new babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["NodeMaterial"]("node material", scene);
  43881. newNodeMaterial.setToDefault();
  43882. newNodeMaterial.build();
  43883. _this.props.globalState.onSelectionChangedObservable.notifyObservers(newNodeMaterial);
  43884. }
  43885. });
  43886. var materials = [];
  43887. materials.push.apply(materials, scene.materials);
  43888. if (scene.multiMaterials && scene.multiMaterials.length) {
  43889. materials.push.apply(materials, scene.multiMaterials);
  43890. }
  43891. // Particle systems
  43892. var particleSystemsContextMenus = [];
  43893. particleSystemsContextMenus.push({
  43894. label: "Add new particle system",
  43895. action: function () {
  43896. var newSystem = babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["ParticleHelper"].CreateDefault(babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["Vector3"].Zero(), 1000, scene);
  43897. newSystem.start();
  43898. _this.props.globalState.onSelectionChangedObservable.notifyObservers(newSystem);
  43899. }
  43900. });
  43901. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "tree", onContextMenu: function (e) { return e.preventDefault(); } },
  43902. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](SceneExplorerFilterComponent, { onFilter: function (filter) { return _this.filterContent(filter); } }),
  43903. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_entities_sceneTreeItemComponent__WEBPACK_IMPORTED_MODULE_6__["SceneTreeItemComponent"], { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, scene: scene, onRefresh: function () { return _this.forceUpdate(); }, onSelectionChangedObservable: this.props.globalState.onSelectionChangedObservable }),
  43904. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__["TreeItemComponent"], { globalState: this.props.globalState, contextMenuItems: nodeContextMenus, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: scene.rootNodes, label: "Nodes", offset: 1, filter: this.state.filter }),
  43905. scene.skeletons.length > 0 &&
  43906. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__["TreeItemComponent"], { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: scene.skeletons, label: "Skeletons", offset: 1, filter: this.state.filter }),
  43907. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__["TreeItemComponent"], { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: materials, contextMenuItems: materialsContextMenus, label: "Materials", offset: 1, filter: this.state.filter }),
  43908. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__["TreeItemComponent"], { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: textures, label: "Textures", offset: 1, filter: this.state.filter }),
  43909. postProcessses.length > 0 &&
  43910. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__["TreeItemComponent"], { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: postProcessses, label: "Post-processes", offset: 1, filter: this.state.filter }),
  43911. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__["TreeItemComponent"], { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, contextMenuItems: pipelineContextMenus, selectedEntity: this.state.selectedEntity, items: pipelines, label: "Rendering pipelines", offset: 1, filter: this.state.filter }),
  43912. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__["TreeItemComponent"], { globalState: this.props.globalState, contextMenuItems: particleSystemsContextMenus, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: scene.particleSystems, label: "Particle systems", offset: 1, filter: this.state.filter }),
  43913. guiElements && guiElements.length > 0 &&
  43914. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__["TreeItemComponent"], { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: guiElements, label: "GUI", offset: 1, filter: this.state.filter }),
  43915. scene.animationGroups.length > 0 &&
  43916. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__["TreeItemComponent"], { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: scene.animationGroups, label: "Animation groups", offset: 1, filter: this.state.filter })));
  43917. };
  43918. SceneExplorerComponent.prototype.onClose = function () {
  43919. if (!this.props.onClose) {
  43920. return;
  43921. }
  43922. this.props.onClose();
  43923. };
  43924. SceneExplorerComponent.prototype.onPopup = function () {
  43925. if (!this.props.onPopup) {
  43926. return;
  43927. }
  43928. this.props.onPopup();
  43929. };
  43930. SceneExplorerComponent.prototype.render = function () {
  43931. var _this = this;
  43932. if (this.props.popupMode) {
  43933. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "sceneExplorer" },
  43934. !this.props.noHeader &&
  43935. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_headerComponent__WEBPACK_IMPORTED_MODULE_5__["HeaderComponent"], { title: "SCENE EXPLORER", noClose: this.props.noClose, noExpand: this.props.noExpand, noCommands: this.props.noCommands, onClose: function () { return _this.onClose(); }, onPopup: function () { return _this.onPopup(); } }),
  43936. this.renderContent()));
  43937. }
  43938. if (this._once) {
  43939. this._once = false;
  43940. // A bit hacky but no other way to force the initial width to 300px and not auto
  43941. setTimeout(function () {
  43942. var element = document.getElementById("sceneExplorer");
  43943. if (!element) {
  43944. return;
  43945. }
  43946. element.style.width = "300px";
  43947. }, 150);
  43948. }
  43949. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](re_resizable__WEBPACK_IMPORTED_MODULE_4___default.a, { tabIndex: -1, id: "sceneExplorer", ref: this.sceneExplorerRef, size: { height: "100%" }, minWidth: 300, maxWidth: 600, minHeight: "100%", enable: { top: false, right: true, bottom: false, left: false, topRight: false, bottomRight: false, bottomLeft: false, topLeft: false }, onKeyDown: function (keyEvent) { return _this.processKeys(keyEvent); } },
  43950. !this.props.noHeader &&
  43951. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_headerComponent__WEBPACK_IMPORTED_MODULE_5__["HeaderComponent"], { title: "SCENE EXPLORER", noClose: this.props.noClose, noExpand: this.props.noExpand, noCommands: this.props.noCommands, onClose: function () { return _this.onClose(); }, onPopup: function () { return _this.onPopup(); } }),
  43952. this.renderContent()));
  43953. };
  43954. return SceneExplorerComponent;
  43955. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  43956. /***/ }),
  43957. /***/ "./components/sceneExplorer/treeItemComponent.tsx":
  43958. /*!********************************************************!*\
  43959. !*** ./components/sceneExplorer/treeItemComponent.tsx ***!
  43960. \********************************************************/
  43961. /*! exports provided: TreeItemComponent */
  43962. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43963. "use strict";
  43964. __webpack_require__.r(__webpack_exports__);
  43965. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeItemComponent", function() { return TreeItemComponent; });
  43966. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43967. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43968. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  43969. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  43970. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  43971. /* harmony import */ var _treeItemSelectableComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./treeItemSelectableComponent */ "./components/sceneExplorer/treeItemSelectableComponent.tsx");
  43972. /* harmony import */ var _tools__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../tools */ "./tools.ts");
  43973. /* harmony import */ var react_contextmenu__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-contextmenu */ "../../node_modules/react-contextmenu/es6/index.js");
  43974. var TreeItemExpandableHeaderComponent = /** @class */ (function (_super) {
  43975. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TreeItemExpandableHeaderComponent, _super);
  43976. function TreeItemExpandableHeaderComponent(props) {
  43977. return _super.call(this, props) || this;
  43978. }
  43979. TreeItemExpandableHeaderComponent.prototype.expandAll = function () {
  43980. this.props.onExpandAll(!this.props.isExpanded);
  43981. };
  43982. TreeItemExpandableHeaderComponent.prototype.render = function () {
  43983. var _this = this;
  43984. var chevron = this.props.isExpanded ? react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faMinus"] }) : react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faPlus"] });
  43985. var expandAll = this.props.isExpanded ? react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faCompress"] }) : react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faExpandArrowsAlt"] });
  43986. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expandableHeader" },
  43987. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "text" },
  43988. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "arrow icon", onClick: function () { return _this.props.onClick(); } }, chevron),
  43989. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "text-value" }, this.props.label)),
  43990. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expandAll icon", onClick: function () { return _this.expandAll(); }, title: this.props.isExpanded ? "Collapse all" : "Expand all" }, expandAll)));
  43991. };
  43992. return TreeItemExpandableHeaderComponent;
  43993. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  43994. var TreeItemRootHeaderComponent = /** @class */ (function (_super) {
  43995. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TreeItemRootHeaderComponent, _super);
  43996. function TreeItemRootHeaderComponent(props) {
  43997. return _super.call(this, props) || this;
  43998. }
  43999. TreeItemRootHeaderComponent.prototype.render = function () {
  44000. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expandableHeader" },
  44001. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "text" },
  44002. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "arrow icon" },
  44003. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faBan"] })),
  44004. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "text-value" }, this.props.label))));
  44005. };
  44006. return TreeItemRootHeaderComponent;
  44007. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  44008. var TreeItemComponent = /** @class */ (function (_super) {
  44009. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TreeItemComponent, _super);
  44010. function TreeItemComponent(props) {
  44011. var _this = _super.call(this, props) || this;
  44012. _this.state = { isExpanded: false, mustExpand: false };
  44013. return _this;
  44014. }
  44015. TreeItemComponent.prototype.switchExpandedState = function () {
  44016. this.setState({ isExpanded: !this.state.isExpanded, mustExpand: false });
  44017. };
  44018. TreeItemComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  44019. if (!nextState.isExpanded && this.state.isExpanded) {
  44020. return true;
  44021. }
  44022. var items = nextProps.items;
  44023. if (items && items.length) {
  44024. if (nextProps.selectedEntity) {
  44025. for (var _i = 0, items_1 = items; _i < items_1.length; _i++) {
  44026. var item = items_1[_i];
  44027. if (_tools__WEBPACK_IMPORTED_MODULE_5__["Tools"].LookForItem(item, nextProps.selectedEntity)) {
  44028. nextState.isExpanded = true;
  44029. return true;
  44030. }
  44031. }
  44032. }
  44033. }
  44034. return true;
  44035. };
  44036. TreeItemComponent.prototype.expandAll = function (expand) {
  44037. this.setState({ isExpanded: expand, mustExpand: expand });
  44038. };
  44039. TreeItemComponent.prototype.renderContextMenu = function () {
  44040. if (!this.props.contextMenuItems) {
  44041. TreeItemComponent._ContextMenuUniqueIdGenerator++;
  44042. return null;
  44043. }
  44044. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react_contextmenu__WEBPACK_IMPORTED_MODULE_6__["ContextMenu"], { id: "contextmenu#" + TreeItemComponent._ContextMenuUniqueIdGenerator++, className: "context-menu" }, this.props.contextMenuItems.map(function (c) {
  44045. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react_contextmenu__WEBPACK_IMPORTED_MODULE_6__["MenuItem"], { onClick: function () { return c.action(); }, key: c.label }, c.label));
  44046. })));
  44047. };
  44048. TreeItemComponent.prototype.render = function () {
  44049. var _this = this;
  44050. var items = this.props.items;
  44051. var marginStyle = {
  44052. paddingLeft: (10 * (this.props.offset + 0.5)) + "px"
  44053. };
  44054. if (!items) {
  44055. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "groupContainer", style: marginStyle },
  44056. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null, this.props.label)));
  44057. }
  44058. if (!items.length) {
  44059. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "groupContainer", style: marginStyle },
  44060. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react_contextmenu__WEBPACK_IMPORTED_MODULE_6__["ContextMenuTrigger"], { id: "contextmenu#" + TreeItemComponent._ContextMenuUniqueIdGenerator },
  44061. this.renderContextMenu(),
  44062. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](TreeItemRootHeaderComponent, { label: this.props.label }))));
  44063. }
  44064. if (!this.state.isExpanded) {
  44065. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "groupContainer", style: marginStyle },
  44066. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react_contextmenu__WEBPACK_IMPORTED_MODULE_6__["ContextMenuTrigger"], { id: "contextmenu#" + TreeItemComponent._ContextMenuUniqueIdGenerator },
  44067. this.renderContextMenu(),
  44068. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](TreeItemExpandableHeaderComponent, { isExpanded: false, label: this.props.label, onClick: function () { return _this.switchExpandedState(); }, onExpandAll: function (expand) { return _this.expandAll(expand); } }))));
  44069. }
  44070. var sortedItems = _tools__WEBPACK_IMPORTED_MODULE_5__["Tools"].SortAndFilter(null, items);
  44071. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  44072. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "groupContainer", style: marginStyle },
  44073. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react_contextmenu__WEBPACK_IMPORTED_MODULE_6__["ContextMenuTrigger"], { id: "contextmenu#" + TreeItemComponent._ContextMenuUniqueIdGenerator },
  44074. this.renderContextMenu(),
  44075. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](TreeItemExpandableHeaderComponent, { isExpanded: this.state.isExpanded, label: this.props.label, onClick: function () { return _this.switchExpandedState(); }, onExpandAll: function (expand) { return _this.expandAll(expand); } }))),
  44076. sortedItems.map(function (item) {
  44077. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_treeItemSelectableComponent__WEBPACK_IMPORTED_MODULE_4__["TreeItemSelectableComponent"], { mustExpand: _this.state.mustExpand, extensibilityGroups: _this.props.extensibilityGroups, key: item.uniqueId !== undefined && item.uniqueId !== null ? item.uniqueId : item.name, offset: _this.props.offset + 1, selectedEntity: _this.props.selectedEntity, entity: item, globalState: _this.props.globalState, filter: _this.props.filter }));
  44078. })));
  44079. };
  44080. TreeItemComponent._ContextMenuUniqueIdGenerator = 0;
  44081. return TreeItemComponent;
  44082. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  44083. /***/ }),
  44084. /***/ "./components/sceneExplorer/treeItemLabelComponent.tsx":
  44085. /*!*************************************************************!*\
  44086. !*** ./components/sceneExplorer/treeItemLabelComponent.tsx ***!
  44087. \*************************************************************/
  44088. /*! exports provided: TreeItemLabelComponent */
  44089. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44090. "use strict";
  44091. __webpack_require__.r(__webpack_exports__);
  44092. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeItemLabelComponent", function() { return TreeItemLabelComponent; });
  44093. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44094. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44095. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  44096. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  44097. var TreeItemLabelComponent = /** @class */ (function (_super) {
  44098. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TreeItemLabelComponent, _super);
  44099. function TreeItemLabelComponent(props) {
  44100. return _super.call(this, props) || this;
  44101. }
  44102. TreeItemLabelComponent.prototype.onClick = function () {
  44103. if (!this.props.onClick) {
  44104. return;
  44105. }
  44106. this.props.onClick();
  44107. };
  44108. TreeItemLabelComponent.prototype.render = function () {
  44109. var _this = this;
  44110. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "title", onClick: function () { return _this.onClick(); } },
  44111. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "titleIcon" },
  44112. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: this.props.icon, color: this.props.color })),
  44113. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "titleText" }, this.props.label || "no name")));
  44114. };
  44115. return TreeItemLabelComponent;
  44116. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  44117. /***/ }),
  44118. /***/ "./components/sceneExplorer/treeItemSelectableComponent.tsx":
  44119. /*!******************************************************************!*\
  44120. !*** ./components/sceneExplorer/treeItemSelectableComponent.tsx ***!
  44121. \******************************************************************/
  44122. /*! exports provided: TreeItemSelectableComponent */
  44123. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44124. "use strict";
  44125. __webpack_require__.r(__webpack_exports__);
  44126. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeItemSelectableComponent", function() { return TreeItemSelectableComponent; });
  44127. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44128. /* harmony import */ var _treeItemSpecializedComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./treeItemSpecializedComponent */ "./components/sceneExplorer/treeItemSpecializedComponent.tsx");
  44129. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  44130. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  44131. /* harmony import */ var _tools__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../tools */ "./tools.ts");
  44132. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  44133. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_5__);
  44134. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44135. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
  44136. var TreeItemSelectableComponent = /** @class */ (function (_super) {
  44137. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TreeItemSelectableComponent, _super);
  44138. function TreeItemSelectableComponent(props) {
  44139. var _this = _super.call(this, props) || this;
  44140. _this._wasSelected = false;
  44141. _this.state = { isSelected: _this.props.entity === _this.props.selectedEntity, isExpanded: _this.props.mustExpand || _tools__WEBPACK_IMPORTED_MODULE_4__["Tools"].LookForItem(_this.props.entity, _this.props.selectedEntity) };
  44142. return _this;
  44143. }
  44144. TreeItemSelectableComponent.prototype.switchExpandedState = function () {
  44145. this.setState({ isExpanded: !this.state.isExpanded });
  44146. };
  44147. TreeItemSelectableComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  44148. if (!nextState.isExpanded && this.state.isExpanded) {
  44149. return true;
  44150. }
  44151. if (nextProps.selectedEntity) {
  44152. if (nextProps.entity === nextProps.selectedEntity) {
  44153. nextState.isSelected = true;
  44154. return true;
  44155. }
  44156. else {
  44157. nextState.isSelected = false;
  44158. }
  44159. if (_tools__WEBPACK_IMPORTED_MODULE_4__["Tools"].LookForItem(nextProps.entity, nextProps.selectedEntity)) {
  44160. nextState.isExpanded = true;
  44161. return true;
  44162. }
  44163. }
  44164. return true;
  44165. };
  44166. TreeItemSelectableComponent.prototype.scrollIntoView = function () {
  44167. var element = react_dom__WEBPACK_IMPORTED_MODULE_5__["findDOMNode"](this);
  44168. if (element) {
  44169. element.scrollIntoView(false);
  44170. }
  44171. };
  44172. TreeItemSelectableComponent.prototype.componentDidMount = function () {
  44173. if (this.state.isSelected) {
  44174. this.scrollIntoView();
  44175. }
  44176. };
  44177. TreeItemSelectableComponent.prototype.componentDidUpdate = function () {
  44178. if (this.state.isSelected && !this._wasSelected) {
  44179. this.scrollIntoView();
  44180. }
  44181. this._wasSelected = false;
  44182. };
  44183. TreeItemSelectableComponent.prototype.onSelect = function () {
  44184. if (!this.props.globalState.onSelectionChangedObservable) {
  44185. return;
  44186. }
  44187. this._wasSelected = true;
  44188. var entity = this.props.entity;
  44189. this.props.globalState.onSelectionChangedObservable.notifyObservers(entity);
  44190. };
  44191. TreeItemSelectableComponent.prototype.renderChildren = function () {
  44192. var _this = this;
  44193. var entity = this.props.entity;
  44194. if (!entity.getChildren && !entity.children || !this.state.isExpanded) {
  44195. return null;
  44196. }
  44197. var children = _tools__WEBPACK_IMPORTED_MODULE_4__["Tools"].SortAndFilter(entity, entity.getChildren ? entity.getChildren() : entity.children);
  44198. return (children.map(function (item) {
  44199. return (react__WEBPACK_IMPORTED_MODULE_6__["createElement"](TreeItemSelectableComponent, { globalState: _this.props.globalState, mustExpand: _this.props.mustExpand, extensibilityGroups: _this.props.extensibilityGroups, selectedEntity: _this.props.selectedEntity, key: item.uniqueId, offset: _this.props.offset + 2, entity: item, filter: _this.props.filter }));
  44200. }));
  44201. };
  44202. TreeItemSelectableComponent.prototype.render = function () {
  44203. var _this = this;
  44204. var marginStyle = {
  44205. paddingLeft: (10 * (this.props.offset + 0.5)) + "px"
  44206. };
  44207. var entity = this.props.entity;
  44208. var chevron = this.state.isExpanded ? react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faMinus"] }) : react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faPlus"] });
  44209. var children = entity.getClassName() === "MultiMaterial" ? [] : _tools__WEBPACK_IMPORTED_MODULE_4__["Tools"].SortAndFilter(entity, entity.getChildren ? entity.getChildren() : entity.children);
  44210. var hasChildren = children.length > 0;
  44211. if (!entity.reservedDataStore) {
  44212. entity.reservedDataStore = {};
  44213. }
  44214. entity.reservedDataStore.setExpandedState = function (value) {
  44215. _this.setState({ isExpanded: value });
  44216. };
  44217. entity.reservedDataStore.isExpanded = this.state.isExpanded;
  44218. if (this.props.filter) {
  44219. var lowerCaseFilter_1 = this.props.filter.toLowerCase();
  44220. if (!entity.name || entity.name.toLowerCase().indexOf(lowerCaseFilter_1) === -1) {
  44221. if (!hasChildren) {
  44222. return null;
  44223. }
  44224. if (entity.getDescendants) {
  44225. if (entity.getDescendants(false, function (n) {
  44226. return n.name && n.name.toLowerCase().indexOf(lowerCaseFilter_1) !== -1;
  44227. }).length === 0) {
  44228. return null;
  44229. }
  44230. }
  44231. }
  44232. }
  44233. return (react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", null,
  44234. react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", { className: this.state.isSelected ? "itemContainer selected" : "itemContainer", style: marginStyle },
  44235. hasChildren &&
  44236. react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", { className: "arrow icon", onClick: function () { return _this.switchExpandedState(); } }, chevron),
  44237. react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_treeItemSpecializedComponent__WEBPACK_IMPORTED_MODULE_1__["TreeItemSpecializedComponent"], { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, label: entity.name, entity: entity, onClick: function () { return _this.onSelect(); } })),
  44238. this.renderChildren()));
  44239. };
  44240. return TreeItemSelectableComponent;
  44241. }(react__WEBPACK_IMPORTED_MODULE_6__["Component"]));
  44242. /***/ }),
  44243. /***/ "./components/sceneExplorer/treeItemSpecializedComponent.tsx":
  44244. /*!*******************************************************************!*\
  44245. !*** ./components/sceneExplorer/treeItemSpecializedComponent.tsx ***!
  44246. \*******************************************************************/
  44247. /*! exports provided: TreeItemSpecializedComponent */
  44248. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44249. "use strict";
  44250. __webpack_require__.r(__webpack_exports__);
  44251. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeItemSpecializedComponent", function() { return TreeItemSpecializedComponent; });
  44252. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44253. /* harmony import */ var _entities_meshTreeItemComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./entities/meshTreeItemComponent */ "./components/sceneExplorer/entities/meshTreeItemComponent.tsx");
  44254. /* harmony import */ var _entities_cameraTreeItemComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./entities/cameraTreeItemComponent */ "./components/sceneExplorer/entities/cameraTreeItemComponent.tsx");
  44255. /* harmony import */ var _entities_lightTreeItemComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./entities/lightTreeItemComponent */ "./components/sceneExplorer/entities/lightTreeItemComponent.tsx");
  44256. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  44257. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  44258. /* harmony import */ var _entities_materialTreeItemComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./entities/materialTreeItemComponent */ "./components/sceneExplorer/entities/materialTreeItemComponent.tsx");
  44259. /* harmony import */ var _entities_textureTreeItemComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./entities/textureTreeItemComponent */ "./components/sceneExplorer/entities/textureTreeItemComponent.tsx");
  44260. /* harmony import */ var _entities_transformNodeTreeItemComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./entities/transformNodeTreeItemComponent */ "./components/sceneExplorer/entities/transformNodeTreeItemComponent.tsx");
  44261. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44262. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
  44263. /* harmony import */ var _entities_gui_controlTreeItemComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./entities/gui/controlTreeItemComponent */ "./components/sceneExplorer/entities/gui/controlTreeItemComponent.tsx");
  44264. /* harmony import */ var _entities_gui_advancedDynamicTextureTreeItemComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./entities/gui/advancedDynamicTextureTreeItemComponent */ "./components/sceneExplorer/entities/gui/advancedDynamicTextureTreeItemComponent.tsx");
  44265. /* harmony import */ var _entities_animationGroupTreeItemComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./entities/animationGroupTreeItemComponent */ "./components/sceneExplorer/entities/animationGroupTreeItemComponent.tsx");
  44266. /* harmony import */ var _entities_postProcessTreeItemComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./entities/postProcessTreeItemComponent */ "./components/sceneExplorer/entities/postProcessTreeItemComponent.tsx");
  44267. /* harmony import */ var _entities_renderingPipelineTreeItemComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./entities/renderingPipelineTreeItemComponent */ "./components/sceneExplorer/entities/renderingPipelineTreeItemComponent.tsx");
  44268. /* harmony import */ var _entities_skeletonTreeItemComponent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./entities/skeletonTreeItemComponent */ "./components/sceneExplorer/entities/skeletonTreeItemComponent.tsx");
  44269. /* harmony import */ var _entities_boneTreeItemComponent__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./entities/boneTreeItemComponent */ "./components/sceneExplorer/entities/boneTreeItemComponent.tsx");
  44270. /* harmony import */ var _entities_particleSystemTreeItemComponent__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./entities/particleSystemTreeItemComponent */ "./components/sceneExplorer/entities/particleSystemTreeItemComponent.tsx");
  44271. var TreeItemSpecializedComponent = /** @class */ (function (_super) {
  44272. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TreeItemSpecializedComponent, _super);
  44273. function TreeItemSpecializedComponent(props) {
  44274. return _super.call(this, props) || this;
  44275. }
  44276. TreeItemSpecializedComponent.prototype.onClick = function () {
  44277. if (!this.props.onClick) {
  44278. return;
  44279. }
  44280. this.props.onClick();
  44281. };
  44282. TreeItemSpecializedComponent.prototype.render = function () {
  44283. var _this = this;
  44284. var entity = this.props.entity;
  44285. if (entity && entity.getClassName) {
  44286. var className = entity.getClassName();
  44287. if (className.indexOf("Mesh") !== -1) {
  44288. var mesh = entity;
  44289. if (mesh.isAnInstance || mesh.getTotalVertices() > 0) {
  44290. return (react__WEBPACK_IMPORTED_MODULE_9__["createElement"](_entities_meshTreeItemComponent__WEBPACK_IMPORTED_MODULE_1__["MeshTreeItemComponent"], { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, mesh: mesh, onClick: function () { return _this.onClick(); } }));
  44291. }
  44292. else {
  44293. return (react__WEBPACK_IMPORTED_MODULE_9__["createElement"](_entities_transformNodeTreeItemComponent__WEBPACK_IMPORTED_MODULE_8__["TransformNodeItemComponent"], { extensibilityGroups: this.props.extensibilityGroups, transformNode: entity, onClick: function () { return _this.onClick(); } }));
  44294. }
  44295. }
  44296. if (className.indexOf("Skeleton") !== -1) {
  44297. return (react__WEBPACK_IMPORTED_MODULE_9__["createElement"](_entities_skeletonTreeItemComponent__WEBPACK_IMPORTED_MODULE_15__["SkeletonTreeItemComponent"], { extensibilityGroups: this.props.extensibilityGroups, skeleton: entity, onClick: function () { return _this.onClick(); } }));
  44298. }
  44299. if (className.indexOf("Bone") !== -1) {
  44300. return (react__WEBPACK_IMPORTED_MODULE_9__["createElement"](_entities_boneTreeItemComponent__WEBPACK_IMPORTED_MODULE_16__["BoneTreeItemComponent"], { extensibilityGroups: this.props.extensibilityGroups, bone: entity, onClick: function () { return _this.onClick(); } }));
  44301. }
  44302. if (className.indexOf("TransformNode") !== -1) {
  44303. return (react__WEBPACK_IMPORTED_MODULE_9__["createElement"](_entities_transformNodeTreeItemComponent__WEBPACK_IMPORTED_MODULE_8__["TransformNodeItemComponent"], { extensibilityGroups: this.props.extensibilityGroups, transformNode: entity, onClick: function () { return _this.onClick(); } }));
  44304. }
  44305. if (className.indexOf("Camera") !== -1) {
  44306. return (react__WEBPACK_IMPORTED_MODULE_9__["createElement"](_entities_cameraTreeItemComponent__WEBPACK_IMPORTED_MODULE_2__["CameraTreeItemComponent"], { extensibilityGroups: this.props.extensibilityGroups, camera: entity, onClick: function () { return _this.onClick(); } }));
  44307. }
  44308. if (className.indexOf("Light", className.length - 5) !== -1) {
  44309. return (react__WEBPACK_IMPORTED_MODULE_9__["createElement"](_entities_lightTreeItemComponent__WEBPACK_IMPORTED_MODULE_3__["LightTreeItemComponent"], { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, light: entity, onClick: function () { return _this.onClick(); } }));
  44310. }
  44311. if (className.indexOf("Material") !== -1) {
  44312. return (react__WEBPACK_IMPORTED_MODULE_9__["createElement"](_entities_materialTreeItemComponent__WEBPACK_IMPORTED_MODULE_6__["MaterialTreeItemComponent"], { extensibilityGroups: this.props.extensibilityGroups, material: entity, onClick: function () { return _this.onClick(); } }));
  44313. }
  44314. if (className.indexOf("ParticleSystem") !== -1) {
  44315. return (react__WEBPACK_IMPORTED_MODULE_9__["createElement"](_entities_particleSystemTreeItemComponent__WEBPACK_IMPORTED_MODULE_17__["ParticleSystemTreeItemComponent"], { extensibilityGroups: this.props.extensibilityGroups, system: entity, onClick: function () { return _this.onClick(); } }));
  44316. }
  44317. if (className === "AdvancedDynamicTexture") {
  44318. return (react__WEBPACK_IMPORTED_MODULE_9__["createElement"](_entities_gui_advancedDynamicTextureTreeItemComponent__WEBPACK_IMPORTED_MODULE_11__["AdvancedDynamicTextureTreeItemComponent"], { onSelectionChangedObservable: this.props.globalState.onSelectionChangedObservable, extensibilityGroups: this.props.extensibilityGroups, texture: entity, onClick: function () { return _this.onClick(); } }));
  44319. }
  44320. if (className === "AnimationGroup") {
  44321. return (react__WEBPACK_IMPORTED_MODULE_9__["createElement"](_entities_animationGroupTreeItemComponent__WEBPACK_IMPORTED_MODULE_12__["AnimationGroupItemComponent"], { extensibilityGroups: this.props.extensibilityGroups, animationGroup: entity, onClick: function () { return _this.onClick(); } }));
  44322. }
  44323. if (className.indexOf("Texture") !== -1) {
  44324. return (react__WEBPACK_IMPORTED_MODULE_9__["createElement"](_entities_textureTreeItemComponent__WEBPACK_IMPORTED_MODULE_7__["TextureTreeItemComponent"], { extensibilityGroups: this.props.extensibilityGroups, texture: entity, onClick: function () { return _this.onClick(); } }));
  44325. }
  44326. if (className.indexOf("RenderingPipeline") !== -1) {
  44327. return (react__WEBPACK_IMPORTED_MODULE_9__["createElement"](_entities_renderingPipelineTreeItemComponent__WEBPACK_IMPORTED_MODULE_14__["RenderingPipelineItemComponent"], { extensibilityGroups: this.props.extensibilityGroups, renderPipeline: entity, onClick: function () { return _this.onClick(); } }));
  44328. }
  44329. if (className.indexOf("PostProcess") !== -1) {
  44330. return (react__WEBPACK_IMPORTED_MODULE_9__["createElement"](_entities_postProcessTreeItemComponent__WEBPACK_IMPORTED_MODULE_13__["PostProcessItemComponent"], { extensibilityGroups: this.props.extensibilityGroups, postProcess: entity, onClick: function () { return _this.onClick(); } }));
  44331. }
  44332. if (entity._host) {
  44333. return (react__WEBPACK_IMPORTED_MODULE_9__["createElement"](_entities_gui_controlTreeItemComponent__WEBPACK_IMPORTED_MODULE_10__["ControlTreeItemComponent"], { extensibilityGroups: this.props.extensibilityGroups, control: entity, onClick: function () { return _this.onClick(); } }));
  44334. }
  44335. }
  44336. return (react__WEBPACK_IMPORTED_MODULE_9__["createElement"]("div", { className: "meshTools" },
  44337. react__WEBPACK_IMPORTED_MODULE_9__["createElement"](_treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_4__["TreeItemLabelComponent"], { label: entity.name, onClick: function () { return _this.onClick(); }, icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__["faProjectDiagram"], color: "cornflowerblue" })));
  44338. };
  44339. return TreeItemSpecializedComponent;
  44340. }(react__WEBPACK_IMPORTED_MODULE_9__["Component"]));
  44341. /***/ }),
  44342. /***/ "./index.ts":
  44343. /*!******************!*\
  44344. !*** ./index.ts ***!
  44345. \******************/
  44346. /*! exports provided: Inspector */
  44347. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44348. "use strict";
  44349. __webpack_require__.r(__webpack_exports__);
  44350. /* harmony import */ var _inspector__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./inspector */ "./inspector.ts");
  44351. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Inspector", function() { return _inspector__WEBPACK_IMPORTED_MODULE_0__["Inspector"]; });
  44352. /***/ }),
  44353. /***/ "./inspector.ts":
  44354. /*!**********************!*\
  44355. !*** ./inspector.ts ***!
  44356. \**********************/
  44357. /*! exports provided: Inspector */
  44358. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44359. "use strict";
  44360. __webpack_require__.r(__webpack_exports__);
  44361. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Inspector", function() { return Inspector; });
  44362. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44363. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44364. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  44365. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  44366. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
  44367. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/observable");
  44368. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_3__);
  44369. /* harmony import */ var _components_actionTabs_actionTabsComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/actionTabs/actionTabsComponent */ "./components/actionTabs/actionTabsComponent.tsx");
  44370. /* harmony import */ var _components_sceneExplorer_sceneExplorerComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/sceneExplorer/sceneExplorerComponent */ "./components/sceneExplorer/sceneExplorerComponent.tsx");
  44371. /* harmony import */ var _components_embedHost_embedHostComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/embedHost/embedHostComponent */ "./components/embedHost/embedHostComponent.tsx");
  44372. /* harmony import */ var _components_globalState__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/globalState */ "./components/globalState.ts");
  44373. var Inspector = /** @class */ (function () {
  44374. function Inspector() {
  44375. }
  44376. Inspector.MarkLineContainerTitleForHighlighting = function (title) {
  44377. this._GlobalState.selectedLineContainerTitle = title;
  44378. };
  44379. Inspector._CopyStyles = function (sourceDoc, targetDoc) {
  44380. for (var index = 0; index < sourceDoc.styleSheets.length; index++) {
  44381. var styleSheet = sourceDoc.styleSheets[index];
  44382. try {
  44383. if (styleSheet.cssRules) { // for <style> elements
  44384. var newStyleEl = sourceDoc.createElement('style');
  44385. for (var _i = 0, _a = styleSheet.cssRules; _i < _a.length; _i++) {
  44386. var cssRule = _a[_i];
  44387. // write the text of each rule into the body of the style element
  44388. newStyleEl.appendChild(sourceDoc.createTextNode(cssRule.cssText));
  44389. }
  44390. targetDoc.head.appendChild(newStyleEl);
  44391. }
  44392. else if (styleSheet.href) { // for <link> elements loading CSS from a URL
  44393. var newLinkEl = sourceDoc.createElement('link');
  44394. newLinkEl.rel = 'stylesheet';
  44395. newLinkEl.href = styleSheet.href;
  44396. targetDoc.head.appendChild(newLinkEl);
  44397. }
  44398. }
  44399. catch (e) {
  44400. console.log(e);
  44401. }
  44402. }
  44403. };
  44404. Inspector._CreateSceneExplorer = function (scene, options, parentControlExplorer) {
  44405. var _this = this;
  44406. // Duplicating the options as they can be different for each pane
  44407. if (options.original) {
  44408. options = {
  44409. original: false,
  44410. popup: options.popup,
  44411. overlay: options.overlay,
  44412. showExplorer: options.showExplorer,
  44413. showInspector: options.showInspector,
  44414. embedMode: options.embedMode,
  44415. handleResize: options.handleResize,
  44416. enablePopup: options.enablePopup,
  44417. enableClose: options.enableClose,
  44418. explorerExtensibility: options.explorerExtensibility
  44419. };
  44420. }
  44421. // Prepare the scene explorer host
  44422. if (parentControlExplorer) {
  44423. this._SceneExplorerHost = parentControlExplorer.ownerDocument.createElement("div");
  44424. this._SceneExplorerHost.id = "scene-explorer-host";
  44425. this._SceneExplorerHost.style.width = options.explorerWidth || "auto";
  44426. if (!options.popup) {
  44427. parentControlExplorer.insertBefore(this._SceneExplorerHost, this._NewCanvasContainer);
  44428. }
  44429. else {
  44430. parentControlExplorer.appendChild(this._SceneExplorerHost);
  44431. }
  44432. if (!options.overlay) {
  44433. this._SceneExplorerHost.style.position = "relative";
  44434. }
  44435. }
  44436. // Scene
  44437. if (this._SceneExplorerHost) {
  44438. this._OpenedPane++;
  44439. var sceneExplorerElement = react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_sceneExplorer_sceneExplorerComponent__WEBPACK_IMPORTED_MODULE_5__["SceneExplorerComponent"], {
  44440. scene: scene, globalState: this._GlobalState,
  44441. extensibilityGroups: options.explorerExtensibility,
  44442. noClose: !options.enableClose,
  44443. noExpand: !options.enablePopup, popupMode: options.popup, onPopup: function () {
  44444. react_dom__WEBPACK_IMPORTED_MODULE_2__["unmountComponentAtNode"](_this._SceneExplorerHost);
  44445. _this._RemoveElementFromDOM(_this._SceneExplorerHost);
  44446. if (options.popup) {
  44447. _this._SceneExplorerWindow.close();
  44448. }
  44449. options.popup = !options.popup;
  44450. options.showExplorer = true;
  44451. options.showInspector = false;
  44452. options.explorerWidth = options.popup ? "100%" : "300px";
  44453. Inspector.Show(scene, options);
  44454. }, onClose: function () {
  44455. react_dom__WEBPACK_IMPORTED_MODULE_2__["unmountComponentAtNode"](_this._SceneExplorerHost);
  44456. Inspector._OpenedPane--;
  44457. _this._RemoveElementFromDOM(_this._SceneExplorerHost);
  44458. _this._Cleanup();
  44459. if (options.popup) {
  44460. _this._SceneExplorerWindow.close();
  44461. }
  44462. }
  44463. });
  44464. react_dom__WEBPACK_IMPORTED_MODULE_2__["render"](sceneExplorerElement, this._SceneExplorerHost);
  44465. }
  44466. };
  44467. Inspector._CreateActionTabs = function (scene, options, parentControlActions) {
  44468. var _this = this;
  44469. options.original = false;
  44470. // Prepare the inspector host
  44471. if (parentControlActions) {
  44472. var host = parentControlActions.ownerDocument.createElement("div");
  44473. host.id = "inspector-host";
  44474. host.style.width = options.inspectorWidth || "auto";
  44475. parentControlActions.appendChild(host);
  44476. this._ActionTabsHost = host;
  44477. if (!options.overlay) {
  44478. this._ActionTabsHost.style.position = "relative";
  44479. }
  44480. }
  44481. if (this._ActionTabsHost) {
  44482. this._OpenedPane++;
  44483. var actionTabsElement = react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_actionTabs_actionTabsComponent__WEBPACK_IMPORTED_MODULE_4__["ActionTabsComponent"], {
  44484. globalState: this._GlobalState, scene: scene,
  44485. noClose: !options.enableClose,
  44486. noExpand: !options.enablePopup, popupMode: options.popup, onPopup: function () {
  44487. react_dom__WEBPACK_IMPORTED_MODULE_2__["unmountComponentAtNode"](_this._ActionTabsHost);
  44488. _this._RemoveElementFromDOM(_this._ActionTabsHost);
  44489. if (options.popup) {
  44490. _this._ActionTabsWindow.close();
  44491. }
  44492. options.popup = !options.popup;
  44493. options.showExplorer = false;
  44494. options.showInspector = true;
  44495. options.inspectorWidth = options.popup ? "100%" : "300px";
  44496. Inspector.Show(scene, options);
  44497. }, onClose: function () {
  44498. react_dom__WEBPACK_IMPORTED_MODULE_2__["unmountComponentAtNode"](_this._ActionTabsHost);
  44499. Inspector._OpenedPane--;
  44500. _this._Cleanup();
  44501. _this._RemoveElementFromDOM(_this._ActionTabsHost);
  44502. if (options.popup) {
  44503. _this._ActionTabsWindow.close();
  44504. }
  44505. },
  44506. initialTab: options.initialTab
  44507. });
  44508. react_dom__WEBPACK_IMPORTED_MODULE_2__["render"](actionTabsElement, this._ActionTabsHost);
  44509. }
  44510. };
  44511. Inspector._CreateEmbedHost = function (scene, options, parentControl, onSelectionChangedObservable) {
  44512. var _this = this;
  44513. // Prepare the inspector host
  44514. if (parentControl) {
  44515. var host = parentControl.ownerDocument.createElement("div");
  44516. host.id = "embed-host";
  44517. host.style.width = options.embedHostWidth || "auto";
  44518. parentControl.appendChild(host);
  44519. this._EmbedHost = host;
  44520. if (!options.overlay) {
  44521. this._EmbedHost.style.position = "relative";
  44522. }
  44523. }
  44524. if (this._EmbedHost) {
  44525. this._OpenedPane++;
  44526. var embedHostElement = react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_embedHost_embedHostComponent__WEBPACK_IMPORTED_MODULE_6__["EmbedHostComponent"], {
  44527. globalState: this._GlobalState, scene: scene,
  44528. extensibilityGroups: options.explorerExtensibility,
  44529. noExpand: !options.enablePopup,
  44530. noClose: !options.enableClose,
  44531. popupMode: options.popup, onPopup: function () {
  44532. react_dom__WEBPACK_IMPORTED_MODULE_2__["unmountComponentAtNode"](_this._EmbedHost);
  44533. if (options.popup) {
  44534. _this._EmbedHostWindow.close();
  44535. }
  44536. _this._RemoveElementFromDOM(_this._EmbedHost);
  44537. options.popup = !options.popup;
  44538. options.embedMode = true;
  44539. options.showExplorer = true;
  44540. options.showInspector = true;
  44541. options.embedHostWidth = options.popup ? "100%" : "auto";
  44542. Inspector.Show(scene, options);
  44543. }, onClose: function () {
  44544. react_dom__WEBPACK_IMPORTED_MODULE_2__["unmountComponentAtNode"](_this._EmbedHost);
  44545. _this._OpenedPane = 0;
  44546. _this._Cleanup();
  44547. _this._RemoveElementFromDOM(_this._EmbedHost);
  44548. if (options.popup) {
  44549. _this._EmbedHostWindow.close();
  44550. }
  44551. },
  44552. initialTab: options.initialTab
  44553. });
  44554. react_dom__WEBPACK_IMPORTED_MODULE_2__["render"](embedHostElement, this._EmbedHost);
  44555. }
  44556. };
  44557. Inspector._CreatePopup = function (title, windowVariableName, width, height) {
  44558. if (width === void 0) { width = 300; }
  44559. if (height === void 0) { height = 800; }
  44560. var windowCreationOptionsList = {
  44561. width: width,
  44562. height: height,
  44563. top: (window.innerHeight - width) / 2 + window.screenY,
  44564. left: (window.innerWidth - height) / 2 + window.screenX
  44565. };
  44566. var windowCreationOptions = Object.keys(windowCreationOptionsList)
  44567. .map(function (key) { return key + '=' + windowCreationOptionsList[key]; })
  44568. .join(',');
  44569. var popupWindow = window.open("", title, windowCreationOptions);
  44570. if (!popupWindow) {
  44571. return null;
  44572. }
  44573. var parentDocument = popupWindow.document;
  44574. parentDocument.title = title;
  44575. parentDocument.body.style.width = "100%";
  44576. parentDocument.body.style.height = "100%";
  44577. parentDocument.body.style.margin = "0";
  44578. parentDocument.body.style.padding = "0";
  44579. var parentControl = parentDocument.createElement("div");
  44580. parentControl.style.width = "100%";
  44581. parentControl.style.height = "100%";
  44582. parentControl.style.margin = "0";
  44583. parentControl.style.padding = "0";
  44584. popupWindow.document.body.appendChild(parentControl);
  44585. this._CopyStyles(window.document, parentDocument);
  44586. this[windowVariableName] = popupWindow;
  44587. return parentControl;
  44588. };
  44589. Object.defineProperty(Inspector, "IsVisible", {
  44590. get: function () {
  44591. return this._OpenedPane > 0;
  44592. },
  44593. enumerable: true,
  44594. configurable: true
  44595. });
  44596. Inspector.EarlyAttachToLoader = function () {
  44597. var _this = this;
  44598. if (!this._GlobalState.onPluginActivatedObserver) {
  44599. this._GlobalState.onPluginActivatedObserver = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_3__["SceneLoader"].OnPluginActivatedObservable.add(function (rawLoader) {
  44600. var loader = rawLoader;
  44601. if (loader.name === "gltf") {
  44602. _this._GlobalState.prepareGLTFPlugin(loader);
  44603. }
  44604. });
  44605. }
  44606. };
  44607. Inspector.Show = function (scene, userOptions) {
  44608. var options = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ original: true, popup: false, overlay: false, showExplorer: true, showInspector: true, embedMode: false, enableClose: true, handleResize: true, enablePopup: true }, userOptions);
  44609. // Prepare state
  44610. if (!this._GlobalState.onPropertyChangedObservable) {
  44611. this._GlobalState.init(this.OnPropertyChangedObservable);
  44612. }
  44613. if (!this._GlobalState.onSelectionChangedObservable) {
  44614. this._GlobalState.onSelectionChangedObservable = this.OnSelectionChangeObservable;
  44615. }
  44616. // Make sure it is not already opened
  44617. if (this.IsVisible && options.original) {
  44618. this.Hide();
  44619. }
  44620. if (!scene) {
  44621. scene = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_3__["EngineStore"].LastCreatedScene;
  44622. }
  44623. this._Scene = scene;
  44624. var rootElement = scene ? scene.getEngine().getInputElement() : babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_3__["EngineStore"].LastCreatedEngine.getInputElement();
  44625. if (options.embedMode && options.showExplorer && options.showInspector) {
  44626. if (options.popup) {
  44627. this._CreateEmbedHost(scene, options, this._CreatePopup("INSPECTOR", "_EmbedHostWindow"), Inspector.OnSelectionChangeObservable);
  44628. }
  44629. else {
  44630. var parentControl = (options.globalRoot ? options.globalRoot : rootElement.parentElement);
  44631. if (!options.overlay && !this._NewCanvasContainer) {
  44632. this._CreateCanvasContainer(parentControl);
  44633. }
  44634. else if (!options.overlay && this._NewCanvasContainer && this._NewCanvasContainer.parentElement) {
  44635. // the root is now the parent of the canvas container
  44636. parentControl = this._NewCanvasContainer.parentElement;
  44637. }
  44638. if (this._NewCanvasContainer) {
  44639. // If we move things around, let's control the resize
  44640. if (options.handleResize && scene) {
  44641. this._OnBeforeRenderObserver = scene.onBeforeRenderObservable.add(function () {
  44642. scene.getEngine().resize();
  44643. });
  44644. }
  44645. }
  44646. this._CreateEmbedHost(scene, options, parentControl, Inspector.OnSelectionChangeObservable);
  44647. }
  44648. }
  44649. else if (options.popup) {
  44650. if (options.showExplorer) {
  44651. if (this._SceneExplorerHost) {
  44652. this._SceneExplorerHost.style.width = "0";
  44653. }
  44654. this._CreateSceneExplorer(scene, options, this._CreatePopup("SCENE EXPLORER", "_SceneExplorerWindow"));
  44655. }
  44656. if (options.showInspector) {
  44657. if (this._ActionTabsHost) {
  44658. this._ActionTabsHost.style.width = "0";
  44659. }
  44660. this._CreateActionTabs(scene, options, this._CreatePopup("INSPECTOR", "_ActionTabsWindow"));
  44661. }
  44662. }
  44663. else {
  44664. var parentControl = (options.globalRoot ? options.globalRoot : rootElement.parentElement);
  44665. if (!options.overlay && !this._NewCanvasContainer) {
  44666. this._CreateCanvasContainer(parentControl);
  44667. }
  44668. else if (!options.overlay && this._NewCanvasContainer && this._NewCanvasContainer.parentElement) {
  44669. // the root is now the parent of the canvas container
  44670. parentControl = this._NewCanvasContainer.parentElement;
  44671. }
  44672. if (this._NewCanvasContainer) {
  44673. // If we move things around, let's control the resize
  44674. if (options.handleResize && scene) {
  44675. this._OnBeforeRenderObserver = scene.onBeforeRenderObservable.add(function () {
  44676. scene.getEngine().resize();
  44677. });
  44678. }
  44679. }
  44680. if (options.showExplorer) {
  44681. this._CreateSceneExplorer(scene, options, parentControl);
  44682. }
  44683. if (options.showInspector) {
  44684. this._CreateActionTabs(scene, options, parentControl);
  44685. }
  44686. }
  44687. };
  44688. Inspector._CreateCanvasContainer = function (parentControl) {
  44689. // Create a container for previous elements
  44690. this._NewCanvasContainer = parentControl.ownerDocument.createElement("div");
  44691. this._NewCanvasContainer.style.display = parentControl.style.display;
  44692. parentControl.style.display = "flex";
  44693. while (parentControl.childElementCount > 0) {
  44694. var child = parentControl.childNodes[0];
  44695. parentControl.removeChild(child);
  44696. this._NewCanvasContainer.appendChild(child);
  44697. }
  44698. parentControl.appendChild(this._NewCanvasContainer);
  44699. this._NewCanvasContainer.style.width = "100%";
  44700. this._NewCanvasContainer.style.height = "100%";
  44701. };
  44702. Inspector._DestroyCanvasContainer = function () {
  44703. var parentControl = this._NewCanvasContainer.parentElement;
  44704. while (this._NewCanvasContainer.childElementCount > 0) {
  44705. var child = this._NewCanvasContainer.childNodes[0];
  44706. this._NewCanvasContainer.removeChild(child);
  44707. parentControl.appendChild(child);
  44708. }
  44709. parentControl.removeChild(this._NewCanvasContainer);
  44710. parentControl.style.display = this._NewCanvasContainer.style.display;
  44711. delete this._NewCanvasContainer;
  44712. };
  44713. Inspector._Cleanup = function () {
  44714. var _this = this;
  44715. if (Inspector._OpenedPane !== 0) {
  44716. return;
  44717. }
  44718. // Gizmo disposal
  44719. this._GlobalState.lightGizmos.forEach(function (g) {
  44720. if (g.light) {
  44721. _this._GlobalState.enableLightGizmo(g.light, false);
  44722. }
  44723. });
  44724. if (this._Scene && this._Scene.reservedDataStore && this._Scene.reservedDataStore.gizmoManager) {
  44725. this._Scene.reservedDataStore.gizmoManager.dispose();
  44726. this._Scene.reservedDataStore.gizmoManager = null;
  44727. }
  44728. if (this._NewCanvasContainer) {
  44729. this._DestroyCanvasContainer();
  44730. }
  44731. if (this._OnBeforeRenderObserver && this._Scene) {
  44732. this._Scene.onBeforeRenderObservable.remove(this._OnBeforeRenderObserver);
  44733. this._OnBeforeRenderObserver = null;
  44734. this._Scene.getEngine().resize();
  44735. }
  44736. this._GlobalState.onInspectorClosedObservable.notifyObservers(this._Scene);
  44737. };
  44738. Inspector._RemoveElementFromDOM = function (element) {
  44739. if (element && element.parentElement) {
  44740. element.parentElement.removeChild(element);
  44741. }
  44742. };
  44743. Inspector.Hide = function () {
  44744. if (this._ActionTabsHost) {
  44745. react_dom__WEBPACK_IMPORTED_MODULE_2__["unmountComponentAtNode"](this._ActionTabsHost);
  44746. this._RemoveElementFromDOM(this._ActionTabsHost);
  44747. this._ActionTabsHost = null;
  44748. }
  44749. if (this._SceneExplorerHost) {
  44750. react_dom__WEBPACK_IMPORTED_MODULE_2__["unmountComponentAtNode"](this._SceneExplorerHost);
  44751. if (this._SceneExplorerHost.parentElement) {
  44752. this._SceneExplorerHost.parentElement.removeChild(this._SceneExplorerHost);
  44753. }
  44754. this._SceneExplorerHost = null;
  44755. }
  44756. if (this._EmbedHost) {
  44757. react_dom__WEBPACK_IMPORTED_MODULE_2__["unmountComponentAtNode"](this._EmbedHost);
  44758. if (this._EmbedHost.parentElement) {
  44759. this._EmbedHost.parentElement.removeChild(this._EmbedHost);
  44760. }
  44761. this._EmbedHost = null;
  44762. }
  44763. Inspector._OpenedPane = 0;
  44764. this._Cleanup();
  44765. if (!this._GlobalState.onPluginActivatedObserver) {
  44766. babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_3__["SceneLoader"].OnPluginActivatedObservable.remove(this._GlobalState.onPluginActivatedObserver);
  44767. this._GlobalState.onPluginActivatedObserver = null;
  44768. }
  44769. };
  44770. Inspector._OpenedPane = 0;
  44771. Inspector.OnSelectionChangeObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_3__["Observable"]();
  44772. Inspector.OnPropertyChangedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_3__["Observable"]();
  44773. Inspector._GlobalState = new _components_globalState__WEBPACK_IMPORTED_MODULE_7__["GlobalState"]();
  44774. return Inspector;
  44775. }());
  44776. Inspector.EarlyAttachToLoader();
  44777. /***/ }),
  44778. /***/ "./legacy/legacy.ts":
  44779. /*!**************************!*\
  44780. !*** ./legacy/legacy.ts ***!
  44781. \**************************/
  44782. /*! exports provided: Inspector */
  44783. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44784. "use strict";
  44785. __webpack_require__.r(__webpack_exports__);
  44786. /* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index */ "./index.ts");
  44787. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Inspector", function() { return _index__WEBPACK_IMPORTED_MODULE_0__["Inspector"]; });
  44788. var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
  44789. if (typeof globalObject !== "undefined") {
  44790. globalObject.BABYLON = globalObject.BABYLON || {};
  44791. globalObject.BABYLON.Inspector = _index__WEBPACK_IMPORTED_MODULE_0__["Inspector"];
  44792. }
  44793. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../node_modules/webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  44794. /***/ }),
  44795. /***/ "./tools.ts":
  44796. /*!******************!*\
  44797. !*** ./tools.ts ***!
  44798. \******************/
  44799. /*! exports provided: Tools */
  44800. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44801. "use strict";
  44802. __webpack_require__.r(__webpack_exports__);
  44803. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tools", function() { return Tools; });
  44804. var Tools = /** @class */ (function () {
  44805. function Tools() {
  44806. }
  44807. Tools.LookForItem = function (item, selectedEntity) {
  44808. if (item === selectedEntity) {
  44809. return true;
  44810. }
  44811. var children = item.getChildren ? item.getChildren() : item.children;
  44812. if (children && item.getClassName() !== "MultiMaterial") {
  44813. for (var _i = 0, children_1 = children; _i < children_1.length; _i++) {
  44814. var child = children_1[_i];
  44815. if (Tools.LookForItem(child, selectedEntity)) {
  44816. return true;
  44817. }
  44818. }
  44819. }
  44820. return false;
  44821. };
  44822. Tools._RecursiveRemoveHiddenMeshesAndHoistChildren = function (items) {
  44823. var result = [];
  44824. for (var _i = 0, items_1 = items; _i < items_1.length; _i++) {
  44825. var i = items_1[_i];
  44826. // If the mesh is hidden, add it's children that are not hidden, this will handle the case of bounding box parenting for bounding box gizmo
  44827. if (i.reservedDataStore && i.reservedDataStore.hidden && i.getChildMeshes) {
  44828. Tools._RecursiveRemoveHiddenMeshesAndHoistChildren(i.getChildMeshes()).forEach(function (m) {
  44829. result.push(m);
  44830. });
  44831. }
  44832. else if (!i.reservedDataStore || !i.reservedDataStore.hidden) {
  44833. result.push(i);
  44834. }
  44835. }
  44836. return result;
  44837. };
  44838. Tools.SortAndFilter = function (parent, items) {
  44839. if (!items) {
  44840. return [];
  44841. }
  44842. var finalArray = Tools._RecursiveRemoveHiddenMeshesAndHoistChildren(items);
  44843. if (parent && parent.reservedDataStore && parent.reservedDataStore.detachedChildren) {
  44844. finalArray.push.apply(finalArray, parent.reservedDataStore.detachedChildren);
  44845. }
  44846. return finalArray.sort(function (a, b) {
  44847. var lowerCaseA = (a.name || "").toLowerCase();
  44848. var lowerCaseB = (b.name || "").toLowerCase();
  44849. if (lowerCaseA === lowerCaseB) {
  44850. return 0;
  44851. }
  44852. if (lowerCaseA > lowerCaseB) {
  44853. return 1;
  44854. }
  44855. return -1;
  44856. });
  44857. };
  44858. return Tools;
  44859. }());
  44860. /***/ }),
  44861. /***/ "babylonjs-gui/2D/adtInstrumentation":
  44862. /*!************************************************************************************************************************!*\
  44863. !*** external {"root":["BABYLON","GUI"],"commonjs":"babylonjs-gui","commonjs2":"babylonjs-gui","amd":"babylonjs-gui"} ***!
  44864. \************************************************************************************************************************/
  44865. /*! no static exports found */
  44866. /***/ (function(module, exports) {
  44867. module.exports = __WEBPACK_EXTERNAL_MODULE_babylonjs_gui_2D_adtInstrumentation__;
  44868. /***/ }),
  44869. /***/ "babylonjs-loaders/glTF/index":
  44870. /*!****************************************************************************************************************************!*\
  44871. !*** external {"root":"BABYLON","commonjs":"babylonjs-loaders","commonjs2":"babylonjs-loaders","amd":"babylonjs-loaders"} ***!
  44872. \****************************************************************************************************************************/
  44873. /*! no static exports found */
  44874. /***/ (function(module, exports) {
  44875. module.exports = __WEBPACK_EXTERNAL_MODULE_babylonjs_loaders_glTF_index__;
  44876. /***/ }),
  44877. /***/ "babylonjs-materials/grid/gridMaterial":
  44878. /*!**********************************************************************************************************************************!*\
  44879. !*** external {"root":"BABYLON","commonjs":"babylonjs-materials","commonjs2":"babylonjs-materials","amd":"babylonjs-materials"} ***!
  44880. \**********************************************************************************************************************************/
  44881. /*! no static exports found */
  44882. /***/ (function(module, exports) {
  44883. module.exports = __WEBPACK_EXTERNAL_MODULE_babylonjs_materials_grid_gridMaterial__;
  44884. /***/ }),
  44885. /***/ "babylonjs-serializers/glTF/2.0/index":
  44886. /*!****************************************************************************************************************************************!*\
  44887. !*** external {"root":"BABYLON","commonjs":"babylonjs-serializers","commonjs2":"babylonjs-serializers","amd":"babylonjs-serializers"} ***!
  44888. \****************************************************************************************************************************************/
  44889. /*! no static exports found */
  44890. /***/ (function(module, exports) {
  44891. module.exports = __WEBPACK_EXTERNAL_MODULE_babylonjs_serializers_glTF_2_0_index__;
  44892. /***/ }),
  44893. /***/ "babylonjs/Misc/observable":
  44894. /*!****************************************************************************************************!*\
  44895. !*** external {"root":"BABYLON","commonjs":"babylonjs","commonjs2":"babylonjs","amd":"babylonjs"} ***!
  44896. \****************************************************************************************************/
  44897. /*! no static exports found */
  44898. /***/ (function(module, exports) {
  44899. module.exports = __WEBPACK_EXTERNAL_MODULE_babylonjs_Misc_observable__;
  44900. /***/ })
  44901. /******/ });
  44902. });
  44903. //# sourceMappingURL=babylon.inspector.bundle.max.js.map